]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/configure
MFV r353617: 9425 allow channel programs to be stopped via signals
[FreeBSD/FreeBSD.git] / contrib / bmake / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bmake 20171126.
4 #
5 # Report bugs to <sjg@NetBSD.org>.
6 #
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.
10 #
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 ## -------------------- ##
16
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   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80   }
81 fi
82
83
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"
90
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
96 do
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
102
103      ;;
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
109 fi
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
113 fi
114
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='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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   *) :
149      ;;
150 esac
151 fi
152 "
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; }
158
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 :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
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
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
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
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
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
200 fi
201 fi
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
211
212
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+"$@"}
222 fi
223
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."
236   fi
237   exit 1
238 fi
239 fi
240 fi
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
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
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 ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
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/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
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"
321
322
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 ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
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 ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
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 ()
366 {
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
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
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
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
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
393 fi
394
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/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
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
420
421
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 '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
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; }
444
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
451 }
452
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;;
462 *)
463   ECHO_N='-n';;
464 esac
465
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
472 fi
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'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
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
498 fi
499
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=
507   fi
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
519   '
520 fi
521 as_executable_p=$as_test_x
522
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'"
525
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'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
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`
536
537 #
538 # Initializations.
539 #
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=
548
549 # Identity of this package.
550 PACKAGE_NAME='bmake'
551 PACKAGE_TARNAME='bmake'
552 PACKAGE_VERSION='20171126'
553 PACKAGE_STRING='bmake 20171126'
554 PACKAGE_BUGREPORT='sjg@NetBSD.org'
555 PACKAGE_URL=''
556
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"
592
593 ac_subst_vars='LTLIBOBJS
594 _MAKE_VERSION
595 filemon_h
596 use_meta
597 diff_u
598 GCC
599 INSTALL
600 default_sys_path
601 mksrc
602 machine_arch
603 force_machine
604 machine
605 LIBOBJS
606 bmake_path_max
607 ac_exe_suffix
608 INSTALL_DATA
609 INSTALL_SCRIPT
610 INSTALL_PROGRAM
611 EGREP
612 GREP
613 CPP
614 OBJEXT
615 EXEEXT
616 ac_ct_CC
617 CPPFLAGS
618 LDFLAGS
619 CFLAGS
620 CC
621 target_alias
622 host_alias
623 build_alias
624 LIBS
625 ECHO_T
626 ECHO_N
627 ECHO_C
628 DEFS
629 mandir
630 localedir
631 libdir
632 psdir
633 pdfdir
634 dvidir
635 htmldir
636 infodir
637 docdir
638 oldincludedir
639 includedir
640 localstatedir
641 sharedstatedir
642 sysconfdir
643 datadir
644 datarootdir
645 libexecdir
646 sbindir
647 bindir
648 program_transform_name
649 prefix
650 exec_prefix
651 PACKAGE_URL
652 PACKAGE_BUGREPORT
653 PACKAGE_STRING
654 PACKAGE_VERSION
655 PACKAGE_TARNAME
656 PACKAGE_NAME
657 PATH_SEPARATOR
658 SHELL'
659 ac_subst_files=''
660 ac_user_opts='
661 enable_option_checking
662 with_defshell
663 with_meta
664 with_filemon
665 with_machine
666 with_force_machine
667 with_force_machine_arch
668 with_machine_arch
669 with_default_sys_path
670 with_path_objdirprefix
671 enable_pwd_override
672 enable_check_make_chdir
673 with_mksrc
674 '
675       ac_precious_vars='build_alias
676 host_alias
677 target_alias
678 CC
679 CFLAGS
680 LDFLAGS
681 LIBS
682 CPPFLAGS
683 CPP'
684
685
686 # Initialize some variables set by options.
687 ac_init_help=
688 ac_init_version=false
689 ac_unrecognized_opts=
690 ac_unrecognized_sep=
691 # The variables have the same names as the options, with
692 # dashes changed to underlines.
693 cache_file=/dev/null
694 exec_prefix=NONE
695 no_create=
696 no_recursion=
697 prefix=NONE
698 program_prefix=NONE
699 program_suffix=NONE
700 program_transform_name=s,x,x,
701 silent=
702 site=
703 srcdir=
704 verbose=
705 x_includes=NONE
706 x_libraries=NONE
707
708 # Installation directory options.
709 # These are left unexpanded so users can "make install exec_prefix=/foo"
710 # and all the variables that are supposed to be based on exec_prefix
711 # by default will actually change.
712 # Use braces instead of parens because sh, perl, etc. also accept them.
713 # (The list follows the same order as the GNU Coding Standards.)
714 bindir='${exec_prefix}/bin'
715 sbindir='${exec_prefix}/sbin'
716 libexecdir='${exec_prefix}/libexec'
717 datarootdir='${prefix}/share'
718 datadir='${datarootdir}'
719 sysconfdir='${prefix}/etc'
720 sharedstatedir='${prefix}/com'
721 localstatedir='${prefix}/var'
722 includedir='${prefix}/include'
723 oldincludedir='/usr/include'
724 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
725 infodir='${datarootdir}/info'
726 htmldir='${docdir}'
727 dvidir='${docdir}'
728 pdfdir='${docdir}'
729 psdir='${docdir}'
730 libdir='${exec_prefix}/lib'
731 localedir='${datarootdir}/locale'
732 mandir='${datarootdir}/man'
733
734 ac_prev=
735 ac_dashdash=
736 for ac_option
737 do
738   # If the previous option needs an argument, assign it.
739   if test -n "$ac_prev"; then
740     eval $ac_prev=\$ac_option
741     ac_prev=
742     continue
743   fi
744
745   case $ac_option in
746   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747   *)    ac_optarg=yes ;;
748   esac
749
750   # Accept the important Cygnus configure options, so we can diagnose typos.
751
752   case $ac_dashdash$ac_option in
753   --)
754     ac_dashdash=yes ;;
755
756   -bindir | --bindir | --bindi | --bind | --bin | --bi)
757     ac_prev=bindir ;;
758   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
759     bindir=$ac_optarg ;;
760
761   -build | --build | --buil | --bui | --bu)
762     ac_prev=build_alias ;;
763   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
764     build_alias=$ac_optarg ;;
765
766   -cache-file | --cache-file | --cache-fil | --cache-fi \
767   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
768     ac_prev=cache_file ;;
769   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
770   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
771     cache_file=$ac_optarg ;;
772
773   --config-cache | -C)
774     cache_file=config.cache ;;
775
776   -datadir | --datadir | --datadi | --datad)
777     ac_prev=datadir ;;
778   -datadir=* | --datadir=* | --datadi=* | --datad=*)
779     datadir=$ac_optarg ;;
780
781   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
782   | --dataroo | --dataro | --datar)
783     ac_prev=datarootdir ;;
784   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
785   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
786     datarootdir=$ac_optarg ;;
787
788   -disable-* | --disable-*)
789     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792       as_fn_error "invalid feature name: $ac_useropt"
793     ac_useropt_orig=$ac_useropt
794     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795     case $ac_user_opts in
796       *"
797 "enable_$ac_useropt"
798 "*) ;;
799       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
800          ac_unrecognized_sep=', ';;
801     esac
802     eval enable_$ac_useropt=no ;;
803
804   -docdir | --docdir | --docdi | --doc | --do)
805     ac_prev=docdir ;;
806   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
807     docdir=$ac_optarg ;;
808
809   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
810     ac_prev=dvidir ;;
811   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
812     dvidir=$ac_optarg ;;
813
814   -enable-* | --enable-*)
815     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
816     # Reject names that are not valid shell variable names.
817     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818       as_fn_error "invalid feature name: $ac_useropt"
819     ac_useropt_orig=$ac_useropt
820     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821     case $ac_user_opts in
822       *"
823 "enable_$ac_useropt"
824 "*) ;;
825       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
826          ac_unrecognized_sep=', ';;
827     esac
828     eval enable_$ac_useropt=\$ac_optarg ;;
829
830   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
831   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
832   | --exec | --exe | --ex)
833     ac_prev=exec_prefix ;;
834   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
835   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
836   | --exec=* | --exe=* | --ex=*)
837     exec_prefix=$ac_optarg ;;
838
839   -gas | --gas | --ga | --g)
840     # Obsolete; use --with-gas.
841     with_gas=yes ;;
842
843   -help | --help | --hel | --he | -h)
844     ac_init_help=long ;;
845   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
846     ac_init_help=recursive ;;
847   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
848     ac_init_help=short ;;
849
850   -host | --host | --hos | --ho)
851     ac_prev=host_alias ;;
852   -host=* | --host=* | --hos=* | --ho=*)
853     host_alias=$ac_optarg ;;
854
855   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856     ac_prev=htmldir ;;
857   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858   | --ht=*)
859     htmldir=$ac_optarg ;;
860
861   -includedir | --includedir | --includedi | --included | --include \
862   | --includ | --inclu | --incl | --inc)
863     ac_prev=includedir ;;
864   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
865   | --includ=* | --inclu=* | --incl=* | --inc=*)
866     includedir=$ac_optarg ;;
867
868   -infodir | --infodir | --infodi | --infod | --info | --inf)
869     ac_prev=infodir ;;
870   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
871     infodir=$ac_optarg ;;
872
873   -libdir | --libdir | --libdi | --libd)
874     ac_prev=libdir ;;
875   -libdir=* | --libdir=* | --libdi=* | --libd=*)
876     libdir=$ac_optarg ;;
877
878   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
879   | --libexe | --libex | --libe)
880     ac_prev=libexecdir ;;
881   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
882   | --libexe=* | --libex=* | --libe=*)
883     libexecdir=$ac_optarg ;;
884
885   -localedir | --localedir | --localedi | --localed | --locale)
886     ac_prev=localedir ;;
887   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
888     localedir=$ac_optarg ;;
889
890   -localstatedir | --localstatedir | --localstatedi | --localstated \
891   | --localstate | --localstat | --localsta | --localst | --locals)
892     ac_prev=localstatedir ;;
893   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
894   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
895     localstatedir=$ac_optarg ;;
896
897   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898     ac_prev=mandir ;;
899   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
900     mandir=$ac_optarg ;;
901
902   -nfp | --nfp | --nf)
903     # Obsolete; use --without-fp.
904     with_fp=no ;;
905
906   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
907   | --no-cr | --no-c | -n)
908     no_create=yes ;;
909
910   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
911   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
912     no_recursion=yes ;;
913
914   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
915   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
916   | --oldin | --oldi | --old | --ol | --o)
917     ac_prev=oldincludedir ;;
918   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
919   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
920   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
921     oldincludedir=$ac_optarg ;;
922
923   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924     ac_prev=prefix ;;
925   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
926     prefix=$ac_optarg ;;
927
928   -program-prefix | --program-prefix | --program-prefi | --program-pref \
929   | --program-pre | --program-pr | --program-p)
930     ac_prev=program_prefix ;;
931   -program-prefix=* | --program-prefix=* | --program-prefi=* \
932   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
933     program_prefix=$ac_optarg ;;
934
935   -program-suffix | --program-suffix | --program-suffi | --program-suff \
936   | --program-suf | --program-su | --program-s)
937     ac_prev=program_suffix ;;
938   -program-suffix=* | --program-suffix=* | --program-suffi=* \
939   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
940     program_suffix=$ac_optarg ;;
941
942   -program-transform-name | --program-transform-name \
943   | --program-transform-nam | --program-transform-na \
944   | --program-transform-n | --program-transform- \
945   | --program-transform | --program-transfor \
946   | --program-transfo | --program-transf \
947   | --program-trans | --program-tran \
948   | --progr-tra | --program-tr | --program-t)
949     ac_prev=program_transform_name ;;
950   -program-transform-name=* | --program-transform-name=* \
951   | --program-transform-nam=* | --program-transform-na=* \
952   | --program-transform-n=* | --program-transform-=* \
953   | --program-transform=* | --program-transfor=* \
954   | --program-transfo=* | --program-transf=* \
955   | --program-trans=* | --program-tran=* \
956   | --progr-tra=* | --program-tr=* | --program-t=*)
957     program_transform_name=$ac_optarg ;;
958
959   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960     ac_prev=pdfdir ;;
961   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
962     pdfdir=$ac_optarg ;;
963
964   -psdir | --psdir | --psdi | --psd | --ps)
965     ac_prev=psdir ;;
966   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
967     psdir=$ac_optarg ;;
968
969   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
970   | -silent | --silent | --silen | --sile | --sil)
971     silent=yes ;;
972
973   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974     ac_prev=sbindir ;;
975   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976   | --sbi=* | --sb=*)
977     sbindir=$ac_optarg ;;
978
979   -sharedstatedir | --sharedstatedir | --sharedstatedi \
980   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
981   | --sharedst | --shareds | --shared | --share | --shar \
982   | --sha | --sh)
983     ac_prev=sharedstatedir ;;
984   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
985   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
986   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987   | --sha=* | --sh=*)
988     sharedstatedir=$ac_optarg ;;
989
990   -site | --site | --sit)
991     ac_prev=site ;;
992   -site=* | --site=* | --sit=*)
993     site=$ac_optarg ;;
994
995   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996     ac_prev=srcdir ;;
997   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
998     srcdir=$ac_optarg ;;
999
1000   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1001   | --syscon | --sysco | --sysc | --sys | --sy)
1002     ac_prev=sysconfdir ;;
1003   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1004   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1005     sysconfdir=$ac_optarg ;;
1006
1007   -target | --target | --targe | --targ | --tar | --ta | --t)
1008     ac_prev=target_alias ;;
1009   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1010     target_alias=$ac_optarg ;;
1011
1012   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1013     verbose=yes ;;
1014
1015   -version | --version | --versio | --versi | --vers | -V)
1016     ac_init_version=: ;;
1017
1018   -with-* | --with-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error "invalid package name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "with_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval with_$ac_useropt=\$ac_optarg ;;
1033
1034   -without-* | --without-*)
1035     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038       as_fn_error "invalid package name: $ac_useropt"
1039     ac_useropt_orig=$ac_useropt
1040     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041     case $ac_user_opts in
1042       *"
1043 "with_$ac_useropt"
1044 "*) ;;
1045       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046          ac_unrecognized_sep=', ';;
1047     esac
1048     eval with_$ac_useropt=no ;;
1049
1050   --x)
1051     # Obsolete; use --with-x.
1052     with_x=yes ;;
1053
1054   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055   | --x-incl | --x-inc | --x-in | --x-i)
1056     ac_prev=x_includes ;;
1057   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059     x_includes=$ac_optarg ;;
1060
1061   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063     ac_prev=x_libraries ;;
1064   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066     x_libraries=$ac_optarg ;;
1067
1068   -*) as_fn_error "unrecognized option: \`$ac_option'
1069 Try \`$0 --help' for more information."
1070     ;;
1071
1072   *=*)
1073     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1074     # Reject names that are not valid shell variable names.
1075     case $ac_envvar in #(
1076       '' | [0-9]* | *[!_$as_cr_alnum]* )
1077       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1078     esac
1079     eval $ac_envvar=\$ac_optarg
1080     export $ac_envvar ;;
1081
1082   *)
1083     # FIXME: should be removed in autoconf 3.0.
1084     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088     ;;
1089
1090   esac
1091 done
1092
1093 if test -n "$ac_prev"; then
1094   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095   as_fn_error "missing argument to $ac_option"
1096 fi
1097
1098 if test -n "$ac_unrecognized_opts"; then
1099   case $enable_option_checking in
1100     no) ;;
1101     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1102     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1103   esac
1104 fi
1105
1106 # Check all directory arguments for consistency.
1107 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108                 datadir sysconfdir sharedstatedir localstatedir includedir \
1109                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110                 libdir localedir mandir
1111 do
1112   eval ac_val=\$$ac_var
1113   # Remove trailing slashes.
1114   case $ac_val in
1115     */ )
1116       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117       eval $ac_var=\$ac_val;;
1118   esac
1119   # Be sure to have absolute directory names.
1120   case $ac_val in
1121     [\\/$]* | ?:[\\/]* )  continue;;
1122     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1123   esac
1124   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1125 done
1126
1127 # There might be people who depend on the old broken behavior: `$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1130 build=$build_alias
1131 host=$host_alias
1132 target=$target_alias
1133
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x; then
1136   if test "x$build_alias" = x; then
1137     cross_compiling=maybe
1138     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139     If a cross compiler is detected then cross compile mode will be used." >&2
1140   elif test "x$build_alias" != "x$host_alias"; then
1141     cross_compiling=yes
1142   fi
1143 fi
1144
1145 ac_tool_prefix=
1146 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147
1148 test "$silent" = yes && exec 6>/dev/null
1149
1150
1151 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di=`ls -di .` &&
1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1154   as_fn_error "working directory cannot be determined"
1155 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156   as_fn_error "pwd does not report name of working directory"
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161   ac_srcdir_defaulted=yes
1162   # Try the directory containing this script, then the parent directory.
1163   ac_confdir=`$as_dirname -- "$as_myself" ||
1164 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165          X"$as_myself" : 'X\(//\)[^/]' \| \
1166          X"$as_myself" : 'X\(//\)$' \| \
1167          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168 $as_echo X"$as_myself" |
1169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\/\)[^/].*/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\).*/{
1182             s//\1/
1183             q
1184           }
1185           s/.*/./; q'`
1186   srcdir=$ac_confdir
1187   if test ! -r "$srcdir/$ac_unique_file"; then
1188     srcdir=..
1189   fi
1190 else
1191   ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1196 fi
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1200         pwd)`
1201 # When building in place, set srcdir=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1203   srcdir=.
1204 fi
1205 # Remove unnecessary trailing slashes from srcdir.
1206 # Double slashes in file names in object file debugging info
1207 # mess up M-x gdb in Emacs.
1208 case $srcdir in
1209 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 esac
1211 for ac_var in $ac_precious_vars; do
1212   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213   eval ac_env_${ac_var}_value=\$${ac_var}
1214   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216 done
1217
1218 #
1219 # Report the --help message.
1220 #
1221 if test "$ac_init_help" = "long"; then
1222   # Omit some internal or obsolete options to make the list less imposing.
1223   # This message is too long to be a string in the A/UX 3.1 sh.
1224   cat <<_ACEOF
1225 \`configure' configures bmake 20171126 to adapt to many kinds of systems.
1226
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE.  See below for descriptions of some of the useful variables.
1231
1232 Defaults for the options are specified in brackets.
1233
1234 Configuration:
1235   -h, --help              display this help and exit
1236       --help=short        display options specific to this package
1237       --help=recursive    display the short help of all the included packages
1238   -V, --version           display version information and exit
1239   -q, --quiet, --silent   do not print \`checking...' messages
1240       --cache-file=FILE   cache test results in FILE [disabled]
1241   -C, --config-cache      alias for \`--cache-file=config.cache'
1242   -n, --no-create         do not create output files
1243       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1244
1245 Installation directories:
1246   --prefix=PREFIX         install architecture-independent files in PREFIX
1247                           [$ac_default_prefix]
1248   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1249                           [PREFIX]
1250
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1255
1256 For better control, use the options below.
1257
1258 Fine tuning of the installation directories:
1259   --bindir=DIR            user executables [EPREFIX/bin]
1260   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1261   --libexecdir=DIR        program executables [EPREFIX/libexec]
1262   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1263   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1264   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1265   --libdir=DIR            object code libraries [EPREFIX/lib]
1266   --includedir=DIR        C header files [PREFIX/include]
1267   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1268   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1269   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1270   --infodir=DIR           info documentation [DATAROOTDIR/info]
1271   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1272   --mandir=DIR            man documentation [DATAROOTDIR/man]
1273   --docdir=DIR            documentation root [DATAROOTDIR/doc/bmake]
1274   --htmldir=DIR           html documentation [DOCDIR]
1275   --dvidir=DIR            dvi documentation [DOCDIR]
1276   --pdfdir=DIR            pdf documentation [DOCDIR]
1277   --psdir=DIR             ps documentation [DOCDIR]
1278 _ACEOF
1279
1280   cat <<\_ACEOF
1281 _ACEOF
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285   case $ac_init_help in
1286      short | recursive ) echo "Configuration of bmake 20171126:";;
1287    esac
1288   cat <<\_ACEOF
1289
1290 Optional Features:
1291   --disable-option-checking  ignore unrecognized --enable/--with options
1292   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1293   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1294   --disable-pwd-override  disable \$PWD overriding getcwd()
1295   --disable-check-make-chdir disable make trying to guess
1296         when it should automatically cd \${.CURDIR}
1297
1298 Optional Packages:
1299   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1300   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1301   --with-defshell=SHELL  use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1302  --without-meta dissable use of meta-mode
1303  --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode
1304   --with-machine=MACHINE  explicitly set MACHINE
1305   --with-force-machine=MACHINE  set FORCE_MACHINE
1306   --with-force-machine-arch=MACHINE  set FORCE_MACHINE_ARCH
1307   --with-machine_arch=MACHINE_ARCH  explicitly set MACHINE_ARCH
1308   --with-default-sys-path=PATH:DIR:LIST  use an explicit _PATH_DEFSYSPATH
1309         MAKESYSPATH is a ':' separated list of directories
1310         that bmake will search for system .mk files.
1311         _PATH_DEFSYSPATH is its default value.
1312   --with-path-objdirprefix=PATH  override _PATH_OBJDIRPREFIX
1313   --with-mksrc=PATH tell makefile.boot where to find mk src
1314
1315 Some influential environment variables:
1316   CC          C compiler command
1317   CFLAGS      C compiler flags
1318   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1319               nonstandard directory <lib dir>
1320   LIBS        libraries to pass to the linker, e.g. -l<library>
1321   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1322               you have headers in a nonstandard directory <include dir>
1323   CPP         C preprocessor
1324
1325 Use these variables to override the choices made by `configure' or to help
1326 it to find libraries and programs with nonstandard names/locations.
1327
1328 Report bugs to <sjg@NetBSD.org>.
1329 _ACEOF
1330 ac_status=$?
1331 fi
1332
1333 if test "$ac_init_help" = "recursive"; then
1334   # If there are subdirs, report their specific --help.
1335   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1336     test -d "$ac_dir" ||
1337       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1338       continue
1339     ac_builddir=.
1340
1341 case "$ac_dir" in
1342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 *)
1344   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1345   # A ".." for each directory in $ac_dir_suffix.
1346   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1347   case $ac_top_builddir_sub in
1348   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1349   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1350   esac ;;
1351 esac
1352 ac_abs_top_builddir=$ac_pwd
1353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1354 # for backward compatibility:
1355 ac_top_builddir=$ac_top_build_prefix
1356
1357 case $srcdir in
1358   .)  # We are building in place.
1359     ac_srcdir=.
1360     ac_top_srcdir=$ac_top_builddir_sub
1361     ac_abs_top_srcdir=$ac_pwd ;;
1362   [\\/]* | ?:[\\/]* )  # Absolute name.
1363     ac_srcdir=$srcdir$ac_dir_suffix;
1364     ac_top_srcdir=$srcdir
1365     ac_abs_top_srcdir=$srcdir ;;
1366   *) # Relative name.
1367     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1368     ac_top_srcdir=$ac_top_build_prefix$srcdir
1369     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370 esac
1371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372
1373     cd "$ac_dir" || { ac_status=$?; continue; }
1374     # Check for guested configure.
1375     if test -f "$ac_srcdir/configure.gnu"; then
1376       echo &&
1377       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1378     elif test -f "$ac_srcdir/configure"; then
1379       echo &&
1380       $SHELL "$ac_srcdir/configure" --help=recursive
1381     else
1382       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383     fi || ac_status=$?
1384     cd "$ac_pwd" || { ac_status=$?; break; }
1385   done
1386 fi
1387
1388 test -n "$ac_init_help" && exit $ac_status
1389 if $ac_init_version; then
1390   cat <<\_ACEOF
1391 bmake configure 20171126
1392 generated by GNU Autoconf 2.64
1393
1394 Copyright (C) 2009 Free Software Foundation, Inc.
1395 This configure script is free software; the Free Software Foundation
1396 gives unlimited permission to copy, distribute and modify it.
1397 _ACEOF
1398   exit
1399 fi
1400
1401 ## ------------------------ ##
1402 ## Autoconf initialization. ##
1403 ## ------------------------ ##
1404
1405 # ac_fn_c_try_compile LINENO
1406 # --------------------------
1407 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1408 ac_fn_c_try_compile ()
1409 {
1410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1411   rm -f conftest.$ac_objext
1412   if { { ac_try="$ac_compile"
1413 case "(($ac_try" in
1414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1415   *) ac_try_echo=$ac_try;;
1416 esac
1417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1418 $as_echo "$ac_try_echo"; } >&5
1419   (eval "$ac_compile") 2>conftest.err
1420   ac_status=$?
1421   if test -s conftest.err; then
1422     grep -v '^ *+' conftest.err >conftest.er1
1423     cat conftest.er1 >&5
1424     mv -f conftest.er1 conftest.err
1425   fi
1426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1427   test $ac_status = 0; } && {
1428          test -z "$ac_c_werror_flag" ||
1429          test ! -s conftest.err
1430        } && test -s conftest.$ac_objext; then :
1431   ac_retval=0
1432 else
1433   $as_echo "$as_me: failed program was:" >&5
1434 sed 's/^/| /' conftest.$ac_ext >&5
1435
1436         ac_retval=1
1437 fi
1438   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1439   return $ac_retval
1440
1441 } # ac_fn_c_try_compile
1442
1443 # ac_fn_c_try_cpp LINENO
1444 # ----------------------
1445 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_cpp ()
1447 {
1448   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449   if { { ac_try="$ac_cpp conftest.$ac_ext"
1450 case "(($ac_try" in
1451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1452   *) ac_try_echo=$ac_try;;
1453 esac
1454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1455 $as_echo "$ac_try_echo"; } >&5
1456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1457   ac_status=$?
1458   if test -s conftest.err; then
1459     grep -v '^ *+' conftest.err >conftest.er1
1460     cat conftest.er1 >&5
1461     mv -f conftest.er1 conftest.err
1462   fi
1463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1464   test $ac_status = 0; } >/dev/null && {
1465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1466          test ! -s conftest.err
1467        }; then :
1468   ac_retval=0
1469 else
1470   $as_echo "$as_me: failed program was:" >&5
1471 sed 's/^/| /' conftest.$ac_ext >&5
1472
1473     ac_retval=1
1474 fi
1475   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1476   return $ac_retval
1477
1478 } # ac_fn_c_try_cpp
1479
1480 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1481 # -------------------------------------------------------
1482 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1483 # the include files in INCLUDES and setting the cache variable VAR
1484 # accordingly.
1485 ac_fn_c_check_header_mongrel ()
1486 {
1487   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1490 $as_echo_n "checking for $2... " >&6; }
1491 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1492   $as_echo_n "(cached) " >&6
1493 fi
1494 eval ac_res=\$$3
1495                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1496 $as_echo "$ac_res" >&6; }
1497 else
1498   # Is the header compilable?
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1500 $as_echo_n "checking $2 usability... " >&6; }
1501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1502 /* end confdefs.h.  */
1503 $4
1504 #include <$2>
1505 _ACEOF
1506 if ac_fn_c_try_compile "$LINENO"; then :
1507   ac_header_compiler=yes
1508 else
1509   ac_header_compiler=no
1510 fi
1511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1513 $as_echo "$ac_header_compiler" >&6; }
1514
1515 # Is the header present?
1516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1517 $as_echo_n "checking $2 presence... " >&6; }
1518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1519 /* end confdefs.h.  */
1520 #include <$2>
1521 _ACEOF
1522 if ac_fn_c_try_cpp "$LINENO"; then :
1523   ac_header_preproc=yes
1524 else
1525   ac_header_preproc=no
1526 fi
1527 rm -f conftest.err conftest.$ac_ext
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1529 $as_echo "$ac_header_preproc" >&6; }
1530
1531 # So?  What about this header?
1532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1533   yes:no: )
1534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1535 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1537 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1538     ;;
1539   no:yes:* )
1540     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1541 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1542     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1543 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1544     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1545 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1547 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1548     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1549 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1550 ( cat <<\_ASBOX
1551 ## ----------------------------- ##
1552 ## Report this to sjg@NetBSD.org ##
1553 ## ----------------------------- ##
1554 _ASBOX
1555      ) | sed "s/^/$as_me: WARNING:     /" >&2
1556     ;;
1557 esac
1558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1559 $as_echo_n "checking for $2... " >&6; }
1560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561   $as_echo_n "(cached) " >&6
1562 else
1563   eval "$3=\$ac_header_compiler"
1564 fi
1565 eval ac_res=\$$3
1566                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1567 $as_echo "$ac_res" >&6; }
1568 fi
1569   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570
1571 } # ac_fn_c_check_header_mongrel
1572
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1577 ac_fn_c_try_run ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   if { { ac_try="$ac_link"
1581 case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_link") 2>&5
1588   ac_status=$?
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591   { { case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597   (eval "$ac_try") 2>&5
1598   ac_status=$?
1599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600   test $ac_status = 0; }; }; then :
1601   ac_retval=0
1602 else
1603   $as_echo "$as_me: program exited with status $ac_status" >&5
1604        $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607        ac_retval=$ac_status
1608 fi
1609   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611   return $ac_retval
1612
1613 } # ac_fn_c_try_run
1614
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625   $as_echo_n "(cached) " >&6
1626 else
1627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h.  */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633   eval "$3=yes"
1634 else
1635   eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643
1644 } # ac_fn_c_check_header_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext conftest$ac_exeext
1653   if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_link") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_c_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest$ac_exeext && {
1672          test "$cross_compiling" = yes ||
1673          $as_test_x conftest$ac_exeext
1674        }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680         ac_retval=1
1681 fi
1682   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684   # interfere with the next link command; also delete a directory that is
1685   # left behind by Apple's compiler.  We do this before executing the actions.
1686   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688   return $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1693 # -------------------------------------------
1694 # Tests whether TYPE exists after having included INCLUDES, setting cache
1695 # variable VAR accordingly.
1696 ac_fn_c_check_type ()
1697 {
1698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702   $as_echo_n "(cached) " >&6
1703 else
1704   eval "$3=no"
1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h.  */
1707 $4
1708 int
1709 main ()
1710 {
1711 if (sizeof ($2))
1712          return 0;
1713   ;
1714   return 0;
1715 }
1716 _ACEOF
1717 if ac_fn_c_try_compile "$LINENO"; then :
1718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 int
1722 main ()
1723 {
1724 if (sizeof (($2)))
1725             return 0;
1726   ;
1727   return 0;
1728 }
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731
1732 else
1733   eval "$3=yes"
1734 fi
1735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743
1744 } # ac_fn_c_check_type
1745
1746 # ac_fn_c_find_uintX_t LINENO BITS VAR
1747 # ------------------------------------
1748 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1749 # accordingly.
1750 ac_fn_c_find_uintX_t ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1754 $as_echo_n "checking for uint$2_t... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   eval "$3=no"
1759      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1760          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1761        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $ac_includes_default
1764 int
1765 main ()
1766 {
1767 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1768 test_array [0] = 0
1769
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775   case $ac_type in #(
1776   uint$2_t) :
1777     eval "$3=yes" ;; #(
1778   *) :
1779     eval "$3=\$ac_type" ;;
1780 esac
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783        eval as_val=\$$3
1784    if test "x$as_val" = x""no; then :
1785
1786 else
1787   break
1788 fi
1789      done
1790 fi
1791 eval ac_res=\$$3
1792                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796 } # ac_fn_c_find_uintX_t
1797
1798 # ac_fn_c_check_decl LINENO SYMBOL VAR
1799 # ------------------------------------
1800 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1801 ac_fn_c_check_decl ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1805 $as_echo_n "checking whether $2 is declared... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807   $as_echo_n "(cached) " >&6
1808 else
1809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 int
1813 main ()
1814 {
1815 #ifndef $2
1816   (void) $2;
1817 #endif
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824   eval "$3=yes"
1825 else
1826   eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835 } # ac_fn_c_check_decl
1836
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h.  */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852 #define $2 innocuous_$2
1853
1854 /* System header to define __stub macros and hopefully few prototypes,
1855     which can conflict with char $2 (); below.
1856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857     <limits.h> exists even on freestanding compilers.  */
1858
1859 #ifdef __STDC__
1860 # include <limits.h>
1861 #else
1862 # include <assert.h>
1863 #endif
1864
1865 #undef $2
1866
1867 /* Override any GCC internal prototype to avoid an error.
1868    Use char because int might match the return type of a GCC
1869    builtin and then its argument prototype would still apply.  */
1870 #ifdef __cplusplus
1871 extern "C"
1872 #endif
1873 char $2 ();
1874 /* The GNU C library defines this for functions which it implements
1875     to always fail with ENOSYS.  Some functions are actually named
1876     something starting with __ and the normal name is an alias.  */
1877 #if defined __stub_$2 || defined __stub___$2
1878 choke me
1879 #endif
1880
1881 int
1882 main ()
1883 {
1884 return $2 ();
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_link "$LINENO"; then :
1890   eval "$3=yes"
1891 else
1892   eval "$3=no"
1893 fi
1894 rm -f core conftest.err conftest.$ac_objext \
1895     conftest$ac_exeext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902 } # ac_fn_c_check_func
1903
1904 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1905 # ----------------------------------------------------
1906 # Tries to find if the field MEMBER exists in type AGGR, after including
1907 # INCLUDES, setting cache variable VAR accordingly.
1908 ac_fn_c_check_member ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1912 $as_echo_n "checking for $2.$3... " >&6; }
1913 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 $5
1919 int
1920 main ()
1921 {
1922 static $2 ac_aggr;
1923 if (ac_aggr.$3)
1924 return 0;
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   eval "$4=yes"
1931 else
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $5
1935 int
1936 main ()
1937 {
1938 static $2 ac_aggr;
1939 if (sizeof ac_aggr.$3)
1940 return 0;
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   eval "$4=yes"
1947 else
1948   eval "$4=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$4
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_member
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1963
1964 It was created by bmake $as_me 20171126, which was
1965 generated by GNU Autoconf 2.64.  Invocation command line was
1966
1967   $ $0 $@
1968
1969 _ACEOF
1970 exec 5>>config.log
1971 {
1972 cat <<_ASUNAME
1973 ## --------- ##
1974 ## Platform. ##
1975 ## --------- ##
1976
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994 _ASUNAME
1995
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001     $as_echo "PATH: $as_dir"
2002   done
2003 IFS=$as_save_IFS
2004
2005 } >&5
2006
2007 cat >&5 <<_ACEOF
2008
2009
2010 ## ----------- ##
2011 ## Core tests. ##
2012 ## ----------- ##
2013
2014 _ACEOF
2015
2016
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2022 ac_configure_args=
2023 ac_configure_args0=
2024 ac_configure_args1=
2025 ac_must_keep_next=false
2026 for ac_pass in 1 2
2027 do
2028   for ac_arg
2029   do
2030     case $ac_arg in
2031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033     | -silent | --silent | --silen | --sile | --sil)
2034       continue ;;
2035     *\'*)
2036       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037     esac
2038     case $ac_pass in
2039     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040     2)
2041       as_fn_append ac_configure_args1 " '$ac_arg'"
2042       if test $ac_must_keep_next = true; then
2043         ac_must_keep_next=false # Got value, back to normal.
2044       else
2045         case $ac_arg in
2046           *=* | --config-cache | -C | -disable-* | --disable-* \
2047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049           | -with-* | --with-* | -without-* | --without-* | --x)
2050             case "$ac_configure_args0 " in
2051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052             esac
2053             ;;
2054           -* ) ac_must_keep_next=true ;;
2055         esac
2056       fi
2057       as_fn_append ac_configure_args " '$ac_arg'"
2058       ;;
2059     esac
2060   done
2061 done
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2064
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log.  We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071   # Save into config.log some information that might help in debugging.
2072   {
2073     echo
2074
2075     cat <<\_ASBOX
2076 ## ---------------- ##
2077 ## Cache variables. ##
2078 ## ---------------- ##
2079 _ASBOX
2080     echo
2081     # The following way of writing the cache mishandles newlines in values,
2082 (
2083   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084     eval ac_val=\$$ac_var
2085     case $ac_val in #(
2086     *${as_nl}*)
2087       case $ac_var in #(
2088       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090       esac
2091       case $ac_var in #(
2092       _ | IFS | as_nl) ;; #(
2093       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094       *) { eval $ac_var=; unset $ac_var;} ;;
2095       esac ;;
2096     esac
2097   done
2098   (set) 2>&1 |
2099     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100     *${as_nl}ac_space=\ *)
2101       sed -n \
2102         "s/'\''/'\''\\\\'\'''\''/g;
2103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104       ;; #(
2105     *)
2106       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107       ;;
2108     esac |
2109     sort
2110 )
2111     echo
2112
2113     cat <<\_ASBOX
2114 ## ----------------- ##
2115 ## Output variables. ##
2116 ## ----------------- ##
2117 _ASBOX
2118     echo
2119     for ac_var in $ac_subst_vars
2120     do
2121       eval ac_val=\$$ac_var
2122       case $ac_val in
2123       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124       esac
2125       $as_echo "$ac_var='\''$ac_val'\''"
2126     done | sort
2127     echo
2128
2129     if test -n "$ac_subst_files"; then
2130       cat <<\_ASBOX
2131 ## ------------------- ##
2132 ## File substitutions. ##
2133 ## ------------------- ##
2134 _ASBOX
2135       echo
2136       for ac_var in $ac_subst_files
2137       do
2138         eval ac_val=\$$ac_var
2139         case $ac_val in
2140         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141         esac
2142         $as_echo "$ac_var='\''$ac_val'\''"
2143       done | sort
2144       echo
2145     fi
2146
2147     if test -s confdefs.h; then
2148       cat <<\_ASBOX
2149 ## ----------- ##
2150 ## confdefs.h. ##
2151 ## ----------- ##
2152 _ASBOX
2153       echo
2154       cat confdefs.h
2155       echo
2156     fi
2157     test "$ac_signal" != 0 &&
2158       $as_echo "$as_me: caught signal $ac_signal"
2159     $as_echo "$as_me: exit $exit_status"
2160   } >&5
2161   rm -f core *.core core.conftest.* &&
2162     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163     exit $exit_status
2164 ' 0
2165 for ac_signal in 1 2 13 15; do
2166   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2167 done
2168 ac_signal=0
2169
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest* confdefs.h
2172
2173 $as_echo "/* confdefs.h */" > confdefs.h
2174
2175 # Predefined preprocessor variables.
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2199 _ACEOF
2200
2201
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2204 ac_site_file1=NONE
2205 ac_site_file2=NONE
2206 if test -n "$CONFIG_SITE"; then
2207   ac_site_file1=$CONFIG_SITE
2208 elif test "x$prefix" != xNONE; then
2209   ac_site_file1=$prefix/share/config.site
2210   ac_site_file2=$prefix/etc/config.site
2211 else
2212   ac_site_file1=$ac_default_prefix/share/config.site
2213   ac_site_file2=$ac_default_prefix/etc/config.site
2214 fi
2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 do
2217   test "x$ac_site_file" = xNONE && continue
2218   if test -r "$ac_site_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2221     sed 's/^/| /' "$ac_site_file" >&5
2222     . "$ac_site_file"
2223   fi
2224 done
2225
2226 if test -r "$cache_file"; then
2227   # Some versions of bash will fail to source /dev/null (special
2228   # files actually), so we avoid doing that.
2229   if test -f "$cache_file"; then
2230     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2231 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232     case $cache_file in
2233       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2234       *)                      . "./$cache_file";;
2235     esac
2236   fi
2237 else
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2239 $as_echo "$as_me: creating cache $cache_file" >&6;}
2240   >$cache_file
2241 fi
2242
2243 # Check that the precious variables saved in the cache have kept the same
2244 # value.
2245 ac_cache_corrupted=false
2246 for ac_var in $ac_precious_vars; do
2247   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2248   eval ac_new_set=\$ac_env_${ac_var}_set
2249   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2250   eval ac_new_val=\$ac_env_${ac_var}_value
2251   case $ac_old_set,$ac_new_set in
2252     set,)
2253       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2255       ac_cache_corrupted=: ;;
2256     ,set)
2257       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2259       ac_cache_corrupted=: ;;
2260     ,);;
2261     *)
2262       if test "x$ac_old_val" != "x$ac_new_val"; then
2263         # differences in whitespace do not lead to failure.
2264         ac_old_val_w=`echo x $ac_old_val`
2265         ac_new_val_w=`echo x $ac_new_val`
2266         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2267           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2269           ac_cache_corrupted=:
2270         else
2271           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2273           eval $ac_var=\$ac_old_val
2274         fi
2275         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2276 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2277         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2278 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2279       fi;;
2280   esac
2281   # Pass precious variables to config.status.
2282   if test "$ac_new_set" = set; then
2283     case $ac_new_val in
2284     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2285     *) ac_arg=$ac_var=$ac_new_val ;;
2286     esac
2287     case " $ac_configure_args " in
2288       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2289       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2290     esac
2291   fi
2292 done
2293 if $ac_cache_corrupted; then
2294   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2298   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 fi
2300 ## -------------------- ##
2301 ## Main body of script. ##
2302 ## -------------------- ##
2303
2304 ac_ext=c
2305 ac_cpp='$CPP $CPPFLAGS'
2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
2310
2311 ac_config_headers="$ac_config_headers config.h"
2312
2313
2314 case "$srcdir" in
2315 /*) ;;
2316 *) srcdir=`cd $srcdir && pwd`;;
2317 esac
2318
2319 . $srcdir/VERSION
2320
2321
2322 # Check whether --with-defshell was given.
2323 if test "${with_defshell+set}" = set; then :
2324   withval=$with_defshell; case "${withval}" in
2325 yes)   as_fn_error "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2326 no)    ;;
2327 *)     case "$with_defshell" in
2328        sh)  DEFSHELL_INDEX=DEFSHELL_INDEX_SH;;  # it's the default anyway
2329        ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2330        csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
2331        *)   defshell_path=$with_defshell;;      # better be sh compatible!
2332        esac
2333        ;;
2334        esac
2335 fi
2336
2337 use_meta=yes
2338
2339 # Check whether --with-meta was given.
2340 if test "${with_meta+set}" = set; then :
2341   withval=$with_meta; case "${withval}" in
2342 yes|no) use_meta=${withval};;
2343 *) as_fn_error "bad value ${withval} given for meta" "$LINENO" 5 ;;
2344 esac
2345 fi
2346
2347
2348 # Check whether --with-filemon was given.
2349 if test "${with_filemon+set}" = set; then :
2350   withval=$with_filemon;  case "/${withval}" in
2351 /no|*/filemon.h) filemon_h="${withval}";;
2352 */filemon*) filemon_h="${withval}/filemon.h";;
2353 *) as_fn_error "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2354 esac
2355 else
2356
2357 OS=`uname -s`
2358 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon"
2359 do
2360         for x in "/$OS" ""
2361         do
2362                 filemon_h="$d$x/filemon.h"
2363                 test -s "$filemon_h" && break
2364         done
2365         test -s "$filemon_h" && break
2366 done
2367 test -s "${filemon_h:-/dev/null}" || filemon_h=no
2368
2369 fi
2370
2371 case "$use_meta" in
2372 yes)
2373         case "$filemon_h" in
2374         *.h) echo "Using: filemon=$filemon_h" >&6;;
2375         esac
2376         ;;
2377 esac
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383 if test -n "$ac_tool_prefix"; then
2384   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387 $as_echo_n "checking for $ac_word... " >&6; }
2388 if test "${ac_cv_prog_CC+set}" = set; then :
2389   $as_echo_n "(cached) " >&6
2390 else
2391   if test -n "$CC"; then
2392   ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399     for ac_exec_ext in '' $ac_executable_extensions; do
2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406   done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2414 $as_echo "$CC" >&6; }
2415 else
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417 $as_echo "no" >&6; }
2418 fi
2419
2420
2421 fi
2422 if test -z "$ac_cv_prog_CC"; then
2423   ac_ct_CC=$CC
2424   # Extract the first word of "gcc", so it can be a program name with args.
2425 set dummy gcc; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2429   $as_echo_n "(cached) " >&6
2430 else
2431   if test -n "$ac_ct_CC"; then
2432   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439     for ac_exec_ext in '' $ac_executable_extensions; do
2440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441     ac_cv_prog_ac_ct_CC="gcc"
2442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446   done
2447 IFS=$as_save_IFS
2448
2449 fi
2450 fi
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2454 $as_echo "$ac_ct_CC" >&6; }
2455 else
2456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2458 fi
2459
2460   if test "x$ac_ct_CC" = x; then
2461     CC=""
2462   else
2463     case $cross_compiling:$ac_tool_warned in
2464 yes:)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469     CC=$ac_ct_CC
2470   fi
2471 else
2472   CC="$ac_cv_prog_CC"
2473 fi
2474
2475 if test -z "$CC"; then
2476           if test -n "$ac_tool_prefix"; then
2477     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}cc; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   if test -n "$CC"; then
2485   ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492     for ac_exec_ext in '' $ac_executable_extensions; do
2493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494     ac_cv_prog_CC="${ac_tool_prefix}cc"
2495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496     break 2
2497   fi
2498 done
2499   done
2500 IFS=$as_save_IFS
2501
2502 fi
2503 fi
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2507 $as_echo "$CC" >&6; }
2508 else
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2511 fi
2512
2513
2514   fi
2515 fi
2516 if test -z "$CC"; then
2517   # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   if test -n "$CC"; then
2525   ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527   ac_prog_rejected=no
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533     for ac_exec_ext in '' $ac_executable_extensions; do
2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536        ac_prog_rejected=yes
2537        continue
2538      fi
2539     ac_cv_prog_CC="cc"
2540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544   done
2545 IFS=$as_save_IFS
2546
2547 if test $ac_prog_rejected = yes; then
2548   # We found a bogon in the path, so make sure we never use it.
2549   set dummy $ac_cv_prog_CC
2550   shift
2551   if test $# != 0; then
2552     # We chose a different compiler from the bogus one.
2553     # However, it has the same basename, so the bogon will be chosen
2554     # first if we set CC to just the basename; use the full file name.
2555     shift
2556     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557   fi
2558 fi
2559 fi
2560 fi
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2564 $as_echo "$CC" >&6; }
2565 else
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570
2571 fi
2572 if test -z "$CC"; then
2573   if test -n "$ac_tool_prefix"; then
2574   for ac_prog in cl.exe
2575   do
2576     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then :
2581   $as_echo_n "(cached) " >&6
2582 else
2583   if test -n "$CC"; then
2584   ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_exec_ext in '' $ac_executable_extensions; do
2592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595     break 2
2596   fi
2597 done
2598   done
2599 IFS=$as_save_IFS
2600
2601 fi
2602 fi
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2606 $as_echo "$CC" >&6; }
2607 else
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2610 fi
2611
2612
2613     test -n "$CC" && break
2614   done
2615 fi
2616 if test -z "$CC"; then
2617   ac_ct_CC=$CC
2618   for ac_prog in cl.exe
2619 do
2620   # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   if test -n "$ac_ct_CC"; then
2628   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635     for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_ac_ct_CC="$ac_prog"
2638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642   done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2650 $as_echo "$ac_ct_CC" >&6; }
2651 else
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657   test -n "$ac_ct_CC" && break
2658 done
2659
2660   if test "x$ac_ct_CC" = x; then
2661     CC=""
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     CC=$ac_ct_CC
2670   fi
2671 fi
2672
2673 fi
2674
2675
2676 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 as_fn_error "no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." "$LINENO" 5; }
2680
2681 # Provide some information about the compiler.
2682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2683 set X $ac_compile
2684 ac_compiler=$2
2685 for ac_option in --version -v -V -qversion; do
2686   { { ac_try="$ac_compiler $ac_option >&5"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2694   ac_status=$?
2695   if test -s conftest.err; then
2696     sed '10a\
2697 ... rest of stderr output deleted ...
2698          10q' conftest.err >conftest.er1
2699     cat conftest.er1 >&5
2700     rm -f conftest.er1 conftest.err
2701   fi
2702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703   test $ac_status = 0; }
2704 done
2705
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h.  */
2708 #include <stdio.h>
2709 int
2710 main ()
2711 {
2712 FILE *f = fopen ("conftest.out", "w");
2713  return ferror (f) || fclose (f) != 0;
2714
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 ac_clean_files_save=$ac_clean_files
2720 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2721 # Try to create an executable without -o first, disregard a.out.
2722 # It will help us diagnose broken compilers, and finding out an intuition
2723 # of exeext.
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2725 $as_echo_n "checking for C compiler default output file name... " >&6; }
2726 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727
2728 # The possible output files:
2729 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2730
2731 ac_rmfiles=
2732 for ac_file in $ac_files
2733 do
2734   case $ac_file in
2735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2736     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2737   esac
2738 done
2739 rm -f $ac_rmfiles
2740
2741 if { { ac_try="$ac_link_default"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748   (eval "$ac_link_default") 2>&5
2749   ac_status=$?
2750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751   test $ac_status = 0; }; then :
2752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2756 # Autoconf.
2757 for ac_file in $ac_files ''
2758 do
2759   test -f "$ac_file" || continue
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2762         ;;
2763     [ab].out )
2764         # We found the default executable, but exeext='' is most
2765         # certainly right.
2766         break;;
2767     *.* )
2768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769         then :; else
2770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771         fi
2772         # We set ac_cv_exeext here because the later test for it is not
2773         # safe: cross compilers may not add the suffix if given an `-o'
2774         # argument, so we may need to know it at that point already.
2775         # Even if this section looks crufty: it has the advantage of
2776         # actually working.
2777         break;;
2778     * )
2779         break;;
2780   esac
2781 done
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784 else
2785   ac_file=''
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2788 $as_echo "$ac_file" >&6; }
2789 if test -z "$ac_file"; then :
2790   $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795 { as_fn_set_status 77
2796 as_fn_error "C compiler cannot create executables
2797 See \`config.log' for more details." "$LINENO" 5; }; }
2798 fi
2799 ac_exeext=$ac_cv_exeext
2800
2801 # Check that the compiler produces executables we can run.  If not, either
2802 # the compiler is broken, or we cross compile.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2804 $as_echo_n "checking whether the C compiler works... " >&6; }
2805 # If not cross compiling, check that we can run a simple program.
2806 if test "$cross_compiling" != yes; then
2807   if { ac_try='./$ac_file'
2808   { { case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814   (eval "$ac_try") 2>&5
2815   ac_status=$?
2816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817   test $ac_status = 0; }; }; then
2818     cross_compiling=no
2819   else
2820     if test "$cross_compiling" = maybe; then
2821         cross_compiling=yes
2822     else
2823         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 as_fn_error "cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." "$LINENO" 5; }
2828     fi
2829   fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832 $as_echo "yes" >&6; }
2833
2834 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2839 $as_echo_n "checking whether we are cross compiling... " >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2841 $as_echo "$cross_compiling" >&6; }
2842
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2844 $as_echo_n "checking for suffix of executables... " >&6; }
2845 if { { ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2851 $as_echo "$ac_try_echo"; } >&5
2852   (eval "$ac_link") 2>&5
2853   ac_status=$?
2854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855   test $ac_status = 0; }; then :
2856   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 # `rm'.
2860 for ac_file in conftest.exe conftest conftest.*; do
2861   test -f "$ac_file" || continue
2862   case $ac_file in
2863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2864     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865           break;;
2866     * ) break;;
2867   esac
2868 done
2869 else
2870   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error "cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." "$LINENO" 5; }
2874 fi
2875 rm -f conftest$ac_cv_exeext
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2877 $as_echo "$ac_cv_exeext" >&6; }
2878
2879 rm -f conftest.$ac_ext
2880 EXEEXT=$ac_cv_exeext
2881 ac_exeext=$EXEEXT
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2883 $as_echo_n "checking for suffix of object files... " >&6; }
2884 if test "${ac_cv_objext+set}" = set; then :
2885   $as_echo_n "(cached) " >&6
2886 else
2887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h.  */
2889
2890 int
2891 main ()
2892 {
2893
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.o conftest.obj
2899 if { { ac_try="$ac_compile"
2900 case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906   (eval "$ac_compile") 2>&5
2907   ac_status=$?
2908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2909   test $ac_status = 0; }; then :
2910   for ac_file in conftest.o conftest.obj conftest.*; do
2911   test -f "$ac_file" || continue;
2912   case $ac_file in
2913     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2914     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2915        break;;
2916   esac
2917 done
2918 else
2919   $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 as_fn_error "cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." "$LINENO" 5; }
2926 fi
2927 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2930 $as_echo "$ac_cv_objext" >&6; }
2931 OBJEXT=$ac_cv_objext
2932 ac_objext=$OBJEXT
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2935 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944 #ifndef __GNUC__
2945        choke me
2946 #endif
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 if ac_fn_c_try_compile "$LINENO"; then :
2953   ac_compiler_gnu=yes
2954 else
2955   ac_compiler_gnu=no
2956 fi
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2959
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2962 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2963 if test $ac_compiler_gnu = yes; then
2964   GCC=yes
2965 else
2966   GCC=
2967 fi
2968 ac_test_CFLAGS=${CFLAGS+set}
2969 ac_save_CFLAGS=$CFLAGS
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2971 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2972 if test "${ac_cv_prog_cc_g+set}" = set; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   ac_save_c_werror_flag=$ac_c_werror_flag
2976    ac_c_werror_flag=yes
2977    ac_cv_prog_cc_g=no
2978    CFLAGS="-g"
2979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980 /* end confdefs.h.  */
2981
2982 int
2983 main ()
2984 {
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991   ac_cv_prog_cc_g=yes
2992 else
2993   CFLAGS=""
2994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006
3007 else
3008   ac_c_werror_flag=$ac_save_c_werror_flag
3009          CFLAGS="-g"
3010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 if ac_fn_c_try_compile "$LINENO"; then :
3022   ac_cv_prog_cc_g=yes
3023 fi
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 fi
3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 fi
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029    ac_c_werror_flag=$ac_save_c_werror_flag
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3032 $as_echo "$ac_cv_prog_cc_g" >&6; }
3033 if test "$ac_test_CFLAGS" = set; then
3034   CFLAGS=$ac_save_CFLAGS
3035 elif test $ac_cv_prog_cc_g = yes; then
3036   if test "$GCC" = yes; then
3037     CFLAGS="-g -O2"
3038   else
3039     CFLAGS="-g"
3040   fi
3041 else
3042   if test "$GCC" = yes; then
3043     CFLAGS="-O2"
3044   else
3045     CFLAGS=
3046   fi
3047 fi
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3050 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   ac_cv_prog_cc_c89=no
3054 ac_save_CC=$CC
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h.  */
3057 #include <stdarg.h>
3058 #include <stdio.h>
3059 #include <sys/types.h>
3060 #include <sys/stat.h>
3061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3062 struct buf { int x; };
3063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3064 static char *e (p, i)
3065      char **p;
3066      int i;
3067 {
3068   return p[i];
3069 }
3070 static char *f (char * (*g) (char **, int), char **p, ...)
3071 {
3072   char *s;
3073   va_list v;
3074   va_start (v,p);
3075   s = g (p, va_arg (v,int));
3076   va_end (v);
3077   return s;
3078 }
3079
3080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3081    function prototypes and stuff, but not '\xHH' hex character constants.
3082    These don't provoke an error unfortunately, instead are silently treated
3083    as 'x'.  The following induces an error, until -std is added to get
3084    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3085    array size at least.  It's necessary to write '\x00'==0 to get something
3086    that's true only with -std.  */
3087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3088
3089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3090    inside strings and character constants.  */
3091 #define FOO(x) 'x'
3092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3093
3094 int test (int i, double x);
3095 struct s1 {int (*f) (int a);};
3096 struct s2 {int (*f) (double a);};
3097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3098 int argc;
3099 char **argv;
3100 int
3101 main ()
3102 {
3103 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3109         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3110 do
3111   CC="$ac_save_CC $ac_arg"
3112   if ac_fn_c_try_compile "$LINENO"; then :
3113   ac_cv_prog_cc_c89=$ac_arg
3114 fi
3115 rm -f core conftest.err conftest.$ac_objext
3116   test "x$ac_cv_prog_cc_c89" != "xno" && break
3117 done
3118 rm -f conftest.$ac_ext
3119 CC=$ac_save_CC
3120
3121 fi
3122 # AC_CACHE_VAL
3123 case "x$ac_cv_prog_cc_c89" in
3124   x)
3125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3126 $as_echo "none needed" >&6; } ;;
3127   xno)
3128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3129 $as_echo "unsupported" >&6; } ;;
3130   *)
3131     CC="$CC $ac_cv_prog_cc_c89"
3132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3134 esac
3135 if test "x$ac_cv_prog_cc_c89" != xno; then :
3136
3137 fi
3138
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144
3145
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3152 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3153 # On Suns, sometimes $CPP names a directory.
3154 if test -n "$CPP" && test -d "$CPP"; then
3155   CPP=
3156 fi
3157 if test -z "$CPP"; then
3158   if test "${ac_cv_prog_CPP+set}" = set; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161       # Double quotes because CPP needs to be expanded
3162     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3163     do
3164       ac_preproc_ok=false
3165 for ac_c_preproc_warn_flag in '' yes
3166 do
3167   # Use a header file that comes with gcc, so configuring glibc
3168   # with a fresh cross-compiler works.
3169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170   # <limits.h> exists even on freestanding compilers.
3171   # On the NeXT, cc -E runs the code through the compiler's parser,
3172   # not just through cpp. "Syntax error" is here to catch this case.
3173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h.  */
3175 #ifdef __STDC__
3176 # include <limits.h>
3177 #else
3178 # include <assert.h>
3179 #endif
3180                      Syntax error
3181 _ACEOF
3182 if ac_fn_c_try_cpp "$LINENO"; then :
3183
3184 else
3185   # Broken: fails on valid input.
3186 continue
3187 fi
3188 rm -f conftest.err conftest.$ac_ext
3189
3190   # OK, works on sane cases.  Now check whether nonexistent headers
3191   # can be detected and how.
3192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h.  */
3194 #include <ac_nonexistent.h>
3195 _ACEOF
3196 if ac_fn_c_try_cpp "$LINENO"; then :
3197   # Broken: success on invalid input.
3198 continue
3199 else
3200   # Passes both tests.
3201 ac_preproc_ok=:
3202 break
3203 fi
3204 rm -f conftest.err conftest.$ac_ext
3205
3206 done
3207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208 rm -f conftest.err conftest.$ac_ext
3209 if $ac_preproc_ok; then :
3210   break
3211 fi
3212
3213     done
3214     ac_cv_prog_CPP=$CPP
3215
3216 fi
3217   CPP=$ac_cv_prog_CPP
3218 else
3219   ac_cv_prog_CPP=$CPP
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3222 $as_echo "$CPP" >&6; }
3223 ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3225 do
3226   # Use a header file that comes with gcc, so configuring glibc
3227   # with a fresh cross-compiler works.
3228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229   # <limits.h> exists even on freestanding compilers.
3230   # On the NeXT, cc -E runs the code through the compiler's parser,
3231   # not just through cpp. "Syntax error" is here to catch this case.
3232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234 #ifdef __STDC__
3235 # include <limits.h>
3236 #else
3237 # include <assert.h>
3238 #endif
3239                      Syntax error
3240 _ACEOF
3241 if ac_fn_c_try_cpp "$LINENO"; then :
3242
3243 else
3244   # Broken: fails on valid input.
3245 continue
3246 fi
3247 rm -f conftest.err conftest.$ac_ext
3248
3249   # OK, works on sane cases.  Now check whether nonexistent headers
3250   # can be detected and how.
3251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h.  */
3253 #include <ac_nonexistent.h>
3254 _ACEOF
3255 if ac_fn_c_try_cpp "$LINENO"; then :
3256   # Broken: success on invalid input.
3257 continue
3258 else
3259   # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then :
3269
3270 else
3271   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." "$LINENO" 5; }
3275 fi
3276
3277 ac_ext=c
3278 ac_cpp='$CPP $CPPFLAGS'
3279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3285 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3286 if test "${ac_cv_path_GREP+set}" = set; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -z "$GREP"; then
3290   ac_path_GREP_found=false
3291   # Loop through the user's path and test for each of PROGNAME-LIST
3292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297     for ac_prog in grep ggrep; do
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3300       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3301 # Check for GNU ac_path_GREP and select it if it is found.
3302   # Check for GNU $ac_path_GREP
3303 case `"$ac_path_GREP" --version 2>&1` in
3304 *GNU*)
3305   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3306 *)
3307   ac_count=0
3308   $as_echo_n 0123456789 >"conftest.in"
3309   while :
3310   do
3311     cat "conftest.in" "conftest.in" >"conftest.tmp"
3312     mv "conftest.tmp" "conftest.in"
3313     cp "conftest.in" "conftest.nl"
3314     $as_echo 'GREP' >> "conftest.nl"
3315     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317     as_fn_arith $ac_count + 1 && ac_count=$as_val
3318     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3319       # Best one so far, save it but keep looking for a better one
3320       ac_cv_path_GREP="$ac_path_GREP"
3321       ac_path_GREP_max=$ac_count
3322     fi
3323     # 10*(2^10) chars as input seems more than enough
3324     test $ac_count -gt 10 && break
3325   done
3326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327 esac
3328
3329       $ac_path_GREP_found && break 3
3330     done
3331   done
3332   done
3333 IFS=$as_save_IFS
3334   if test -z "$ac_cv_path_GREP"; then
3335     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3336   fi
3337 else
3338   ac_cv_path_GREP=$GREP
3339 fi
3340
3341 fi
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3343 $as_echo "$ac_cv_path_GREP" >&6; }
3344  GREP="$ac_cv_path_GREP"
3345
3346
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3348 $as_echo_n "checking for egrep... " >&6; }
3349 if test "${ac_cv_path_EGREP+set}" = set; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3353    then ac_cv_path_EGREP="$GREP -E"
3354    else
3355      if test -z "$EGREP"; then
3356   ac_path_EGREP_found=false
3357   # Loop through the user's path and test for each of PROGNAME-LIST
3358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_prog in egrep; do
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3366       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3367 # Check for GNU ac_path_EGREP and select it if it is found.
3368   # Check for GNU $ac_path_EGREP
3369 case `"$ac_path_EGREP" --version 2>&1` in
3370 *GNU*)
3371   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3372 *)
3373   ac_count=0
3374   $as_echo_n 0123456789 >"conftest.in"
3375   while :
3376   do
3377     cat "conftest.in" "conftest.in" >"conftest.tmp"
3378     mv "conftest.tmp" "conftest.in"
3379     cp "conftest.in" "conftest.nl"
3380     $as_echo 'EGREP' >> "conftest.nl"
3381     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3382     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3383     as_fn_arith $ac_count + 1 && ac_count=$as_val
3384     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3385       # Best one so far, save it but keep looking for a better one
3386       ac_cv_path_EGREP="$ac_path_EGREP"
3387       ac_path_EGREP_max=$ac_count
3388     fi
3389     # 10*(2^10) chars as input seems more than enough
3390     test $ac_count -gt 10 && break
3391   done
3392   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393 esac
3394
3395       $ac_path_EGREP_found && break 3
3396     done
3397   done
3398   done
3399 IFS=$as_save_IFS
3400   if test -z "$ac_cv_path_EGREP"; then
3401     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3402   fi
3403 else
3404   ac_cv_path_EGREP=$EGREP
3405 fi
3406
3407    fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3410 $as_echo "$ac_cv_path_EGREP" >&6; }
3411  EGREP="$ac_cv_path_EGREP"
3412
3413
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3415 $as_echo_n "checking for ANSI C header files... " >&6; }
3416 if test "${ac_cv_header_stdc+set}" = set; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421 #include <stdlib.h>
3422 #include <stdarg.h>
3423 #include <string.h>
3424 #include <float.h>
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 if ac_fn_c_try_compile "$LINENO"; then :
3435   ac_cv_header_stdc=yes
3436 else
3437   ac_cv_header_stdc=no
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440
3441 if test $ac_cv_header_stdc = yes; then
3442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h.  */
3445 #include <string.h>
3446
3447 _ACEOF
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449   $EGREP "memchr" >/dev/null 2>&1; then :
3450
3451 else
3452   ac_cv_header_stdc=no
3453 fi
3454 rm -f conftest*
3455
3456 fi
3457
3458 if test $ac_cv_header_stdc = yes; then
3459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462 #include <stdlib.h>
3463
3464 _ACEOF
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466   $EGREP "free" >/dev/null 2>&1; then :
3467
3468 else
3469   ac_cv_header_stdc=no
3470 fi
3471 rm -f conftest*
3472
3473 fi
3474
3475 if test $ac_cv_header_stdc = yes; then
3476   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3477   if test "$cross_compiling" = yes; then :
3478   :
3479 else
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482 #include <ctype.h>
3483 #include <stdlib.h>
3484 #if ((' ' & 0x0FF) == 0x020)
3485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3487 #else
3488 # define ISLOWER(c) \
3489                    (('a' <= (c) && (c) <= 'i') \
3490                      || ('j' <= (c) && (c) <= 'r') \
3491                      || ('s' <= (c) && (c) <= 'z'))
3492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3493 #endif
3494
3495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3496 int
3497 main ()
3498 {
3499   int i;
3500   for (i = 0; i < 256; i++)
3501     if (XOR (islower (i), ISLOWER (i))
3502         || toupper (i) != TOUPPER (i))
3503       return 2;
3504   return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_run "$LINENO"; then :
3508
3509 else
3510   ac_cv_header_stdc=no
3511 fi
3512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3513   conftest.$ac_objext conftest.beam conftest.$ac_ext
3514 fi
3515
3516 fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3519 $as_echo "$ac_cv_header_stdc" >&6; }
3520 if test $ac_cv_header_stdc = yes; then
3521
3522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3523
3524 fi
3525
3526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3528                   inttypes.h stdint.h unistd.h
3529 do :
3530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3531 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3532 "
3533 eval as_val=\$$as_ac_Header
3534    if test "x$as_val" = x""yes; then :
3535   cat >>confdefs.h <<_ACEOF
3536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3537 _ACEOF
3538
3539 fi
3540
3541 done
3542
3543
3544
3545   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3546 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3547   MINIX=yes
3548 else
3549   MINIX=
3550 fi
3551
3552
3553   if test "$MINIX" = yes; then
3554
3555 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3556
3557
3558 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3559
3560
3561 $as_echo "#define _MINIX 1" >>confdefs.h
3562
3563   fi
3564
3565
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3567 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3568 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h.  */
3573
3574 #         define __EXTENSIONS__ 1
3575           $ac_includes_default
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585   ac_cv_safe_to_define___extensions__=yes
3586 else
3587   ac_cv_safe_to_define___extensions__=no
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3592 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3593   test $ac_cv_safe_to_define___extensions__ = yes &&
3594     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3595
3596   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3597
3598   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3599
3600   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3601
3602   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3603
3604
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -n "$CC"; then
3619   ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648 fi
3649 if test -z "$ac_cv_prog_CC"; then
3650   ac_ct_CC=$CC
3651   # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$ac_ct_CC"; then
3659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668     ac_cv_prog_ac_ct_CC="gcc"
3669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673   done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687   if test "x$ac_ct_CC" = x; then
3688     CC=""
3689   else
3690     case $cross_compiling:$ac_tool_warned in
3691 yes:)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3695 esac
3696     CC=$ac_ct_CC
3697   fi
3698 else
3699   CC="$ac_cv_prog_CC"
3700 fi
3701
3702 if test -z "$CC"; then
3703           if test -n "$ac_tool_prefix"; then
3704     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}cc; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_CC+set}" = set; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test -n "$CC"; then
3712   ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721     ac_cv_prog_CC="${ac_tool_prefix}cc"
3722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726   done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741   fi
3742 fi
3743 if test -z "$CC"; then
3744   # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_CC+set}" = set; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -n "$CC"; then
3752   ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754   ac_prog_rejected=no
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760     for ac_exec_ext in '' $ac_executable_extensions; do
3761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763        ac_prog_rejected=yes
3764        continue
3765      fi
3766     ac_cv_prog_CC="cc"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 if test $ac_prog_rejected = yes; then
3775   # We found a bogon in the path, so make sure we never use it.
3776   set dummy $ac_cv_prog_CC
3777   shift
3778   if test $# != 0; then
3779     # We chose a different compiler from the bogus one.
3780     # However, it has the same basename, so the bogon will be chosen
3781     # first if we set CC to just the basename; use the full file name.
3782     shift
3783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3784   fi
3785 fi
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 if test -z "$CC"; then
3800   if test -n "$ac_tool_prefix"; then
3801   for ac_prog in cl.exe
3802   do
3803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if test "${ac_cv_prog_CC+set}" = set; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$CC"; then
3811   ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825   done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840     test -n "$CC" && break
3841   done
3842 fi
3843 if test -z "$CC"; then
3844   ac_ct_CC=$CC
3845   for ac_prog in cl.exe
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -n "$ac_ct_CC"; then
3855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864     ac_cv_prog_ac_ct_CC="$ac_prog"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884   test -n "$ac_ct_CC" && break
3885 done
3886
3887   if test "x$ac_ct_CC" = x; then
3888     CC=""
3889   else
3890     case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896     CC=$ac_ct_CC
3897   fi
3898 fi
3899
3900 fi
3901
3902
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error "no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details." "$LINENO" 5; }
3907
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3910 set X $ac_compile
3911 ac_compiler=$2
3912 for ac_option in --version -v -V -qversion; do
3913   { { ac_try="$ac_compiler $ac_option >&5"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3921   ac_status=$?
3922   if test -s conftest.err; then
3923     sed '10a\
3924 ... rest of stderr output deleted ...
3925          10q' conftest.err >conftest.er1
3926     cat conftest.er1 >&5
3927     rm -f conftest.er1 conftest.err
3928   fi
3929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930   test $ac_status = 0; }
3931 done
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3935 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3936   $as_echo_n "(cached) " >&6
3937 else
3938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944 #ifndef __GNUC__
3945        choke me
3946 #endif
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953   ac_compiler_gnu=yes
3954 else
3955   ac_compiler_gnu=no
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3959
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3962 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3963 if test $ac_compiler_gnu = yes; then
3964   GCC=yes
3965 else
3966   GCC=
3967 fi
3968 ac_test_CFLAGS=${CFLAGS+set}
3969 ac_save_CFLAGS=$CFLAGS
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3971 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3972 if test "${ac_cv_prog_cc_g+set}" = set; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   ac_save_c_werror_flag=$ac_c_werror_flag
3976    ac_c_werror_flag=yes
3977    ac_cv_prog_cc_g=no
3978    CFLAGS="-g"
3979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991   ac_cv_prog_cc_g=yes
3992 else
3993   CFLAGS=""
3994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006
4007 else
4008   ac_c_werror_flag=$ac_save_c_werror_flag
4009          CFLAGS="-g"
4010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022   ac_cv_prog_cc_g=yes
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029    ac_c_werror_flag=$ac_save_c_werror_flag
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4032 $as_echo "$ac_cv_prog_cc_g" >&6; }
4033 if test "$ac_test_CFLAGS" = set; then
4034   CFLAGS=$ac_save_CFLAGS
4035 elif test $ac_cv_prog_cc_g = yes; then
4036   if test "$GCC" = yes; then
4037     CFLAGS="-g -O2"
4038   else
4039     CFLAGS="-g"
4040   fi
4041 else
4042   if test "$GCC" = yes; then
4043     CFLAGS="-O2"
4044   else
4045     CFLAGS=
4046   fi
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4050 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   ac_cv_prog_cc_c89=no
4054 ac_save_CC=$CC
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4057 #include <stdarg.h>
4058 #include <stdio.h>
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4065      char **p;
4066      int i;
4067 {
4068   return p[i];
4069 }
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4071 {
4072   char *s;
4073   va_list v;
4074   va_start (v,p);
4075   s = g (p, va_arg (v,int));
4076   va_end (v);
4077   return s;
4078 }
4079
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4081    function prototypes and stuff, but not '\xHH' hex character constants.
4082    These don't provoke an error unfortunately, instead are silently treated
4083    as 'x'.  The following induces an error, until -std is added to get
4084    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4085    array size at least.  It's necessary to write '\x00'==0 to get something
4086    that's true only with -std.  */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090    inside strings and character constants.  */
4091 #define FOO(x) 'x'
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 int argc;
4099 char **argv;
4100 int
4101 main ()
4102 {
4103 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 do
4111   CC="$ac_save_CC $ac_arg"
4112   if ac_fn_c_try_compile "$LINENO"; then :
4113   ac_cv_prog_cc_c89=$ac_arg
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext
4116   test "x$ac_cv_prog_cc_c89" != "xno" && break
4117 done
4118 rm -f conftest.$ac_ext
4119 CC=$ac_save_CC
4120
4121 fi
4122 # AC_CACHE_VAL
4123 case "x$ac_cv_prog_cc_c89" in
4124   x)
4125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126 $as_echo "none needed" >&6; } ;;
4127   xno)
4128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129 $as_echo "unsupported" >&6; } ;;
4130   *)
4131     CC="$CC $ac_cv_prog_cc_c89"
4132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4134 esac
4135 if test "x$ac_cv_prog_cc_c89" != xno; then :
4136
4137 fi
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145 if test $ac_cv_c_compiler_gnu = yes; then
4146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4147 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4148 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151     ac_pattern="Autoconf.*'x'"
4152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154 #include <sgtty.h>
4155 Autoconf TIOCGETP
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4159   ac_cv_prog_gcc_traditional=yes
4160 else
4161   ac_cv_prog_gcc_traditional=no
4162 fi
4163 rm -f conftest*
4164
4165
4166   if test $ac_cv_prog_gcc_traditional = no; then
4167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169 #include <termio.h>
4170 Autoconf TCGETA
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4174   ac_cv_prog_gcc_traditional=yes
4175 fi
4176 rm -f conftest*
4177
4178   fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4181 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4182   if test $ac_cv_prog_gcc_traditional = yes; then
4183     CC="$CC -traditional"
4184   fi
4185 fi
4186
4187 ac_aux_dir=
4188 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4189   for ac_t in install-sh install.sh shtool; do
4190     if test -f "$ac_dir/$ac_t"; then
4191       ac_aux_dir=$ac_dir
4192       ac_install_sh="$ac_aux_dir/$ac_t -c"
4193       break 2
4194     fi
4195   done
4196 done
4197 if test -z "$ac_aux_dir"; then
4198   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4199 fi
4200
4201 # These three variables are undocumented and unsupported,
4202 # and are intended to be withdrawn in a future Autoconf release.
4203 # They can cause serious problems if a builder's source tree is in a directory
4204 # whose full name contains unusual characters.
4205 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4206 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4207 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4208
4209
4210 # Find a good install program.  We prefer a C program (faster),
4211 # so one script is as good as another.  But avoid the broken or
4212 # incompatible versions:
4213 # SysV /etc/install, /usr/sbin/install
4214 # SunOS /usr/etc/install
4215 # IRIX /sbin/install
4216 # AIX /bin/install
4217 # AmigaOS /C/install, which installs bootblocks on floppy discs
4218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4221 # OS/2's system install, which has a completely different semantic
4222 # ./install, which can be erroneously created by make from ./install.sh.
4223 # Reject install programs that cannot install multiple files.
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4225 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4226 if test -z "$INSTALL"; then
4227 if test "${ac_cv_path_install+set}" = set; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     # Account for people who put trailing slashes in PATH elements.
4236 case $as_dir/ in #((
4237   ./ | .// | /[cC]/* | \
4238   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4239   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4240   /usr/ucb/* ) ;;
4241   *)
4242     # OSF1 and SCO ODT 3.0 have their own names for install.
4243     # Don't use installbsd from OSF since it installs stuff as root
4244     # by default.
4245     for ac_prog in ginstall scoinst install; do
4246       for ac_exec_ext in '' $ac_executable_extensions; do
4247         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4248           if test $ac_prog = install &&
4249             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4250             # AIX install.  It has an incompatible calling convention.
4251             :
4252           elif test $ac_prog = install &&
4253             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4254             # program-specific install script used by HP pwplus--don't use.
4255             :
4256           else
4257             rm -rf conftest.one conftest.two conftest.dir
4258             echo one > conftest.one
4259             echo two > conftest.two
4260             mkdir conftest.dir
4261             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4262               test -s conftest.one && test -s conftest.two &&
4263               test -s conftest.dir/conftest.one &&
4264               test -s conftest.dir/conftest.two
4265             then
4266               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4267               break 3
4268             fi
4269           fi
4270         fi
4271       done
4272     done
4273     ;;
4274 esac
4275
4276   done
4277 IFS=$as_save_IFS
4278
4279 rm -rf conftest.one conftest.two conftest.dir
4280
4281 fi
4282   if test "${ac_cv_path_install+set}" = set; then
4283     INSTALL=$ac_cv_path_install
4284   else
4285     # As a last resort, use the slow shell script.  Don't cache a
4286     # value for INSTALL within a source directory, because that will
4287     # break other packages using the cache if that directory is
4288     # removed, or if the value is a relative name.
4289     INSTALL=$ac_install_sh
4290   fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4293 $as_echo "$INSTALL" >&6; }
4294
4295 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4296 # It thinks the first close brace ends the variable substitution.
4297 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4298
4299 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4300
4301 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4302
4303 if test -x /usr/bin/getconf; then
4304    bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4305    # only a numeric response is useful
4306    test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4307 fi
4308 bmake_path_max=${bmake_path_max:-1024}
4309 if test $bmake_path_max -gt 1024; then
4310    # this is all we expect
4311    bmake_path_max=1024
4312 fi
4313 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4316 $as_echo_n "checking for ANSI C header files... " >&6; }
4317 if test "${ac_cv_header_stdc+set}" = set; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h.  */
4322 #include <stdlib.h>
4323 #include <stdarg.h>
4324 #include <string.h>
4325 #include <float.h>
4326
4327 int
4328 main ()
4329 {
4330
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336   ac_cv_header_stdc=yes
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341
4342 if test $ac_cv_header_stdc = yes; then
4343   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346 #include <string.h>
4347
4348 _ACEOF
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350   $EGREP "memchr" >/dev/null 2>&1; then :
4351
4352 else
4353   ac_cv_header_stdc=no
4354 fi
4355 rm -f conftest*
4356
4357 fi
4358
4359 if test $ac_cv_header_stdc = yes; then
4360   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363 #include <stdlib.h>
4364
4365 _ACEOF
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367   $EGREP "free" >/dev/null 2>&1; then :
4368
4369 else
4370   ac_cv_header_stdc=no
4371 fi
4372 rm -f conftest*
4373
4374 fi
4375
4376 if test $ac_cv_header_stdc = yes; then
4377   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4378   if test "$cross_compiling" = yes; then :
4379   :
4380 else
4381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383 #include <ctype.h>
4384 #include <stdlib.h>
4385 #if ((' ' & 0x0FF) == 0x020)
4386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4388 #else
4389 # define ISLOWER(c) \
4390                    (('a' <= (c) && (c) <= 'i') \
4391                      || ('j' <= (c) && (c) <= 'r') \
4392                      || ('s' <= (c) && (c) <= 'z'))
4393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4394 #endif
4395
4396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4397 int
4398 main ()
4399 {
4400   int i;
4401   for (i = 0; i < 256; i++)
4402     if (XOR (islower (i), ISLOWER (i))
4403         || toupper (i) != TOUPPER (i))
4404       return 2;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_run "$LINENO"; then :
4409
4410 else
4411   ac_cv_header_stdc=no
4412 fi
4413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4414   conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 fi
4416
4417 fi
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4420 $as_echo "$ac_cv_header_stdc" >&6; }
4421 if test $ac_cv_header_stdc = yes; then
4422
4423 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424
4425 fi
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4428 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4429 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434 #include <sys/types.h>
4435 #include <sys/wait.h>
4436 #ifndef WEXITSTATUS
4437 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4438 #endif
4439 #ifndef WIFEXITED
4440 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4441 #endif
4442
4443 int
4444 main ()
4445 {
4446   int s;
4447   wait (&s);
4448   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 if ac_fn_c_try_compile "$LINENO"; then :
4454   ac_cv_header_sys_wait_h=yes
4455 else
4456   ac_cv_header_sys_wait_h=no
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 fi
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4461 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4462 if test $ac_cv_header_sys_wait_h = yes; then
4463
4464 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4465
4466 fi
4467
4468 ac_header_dirent=no
4469 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4470   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4472 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478 #include <sys/types.h>
4479 #include <$ac_hdr>
4480
4481 int
4482 main ()
4483 {
4484 if ((DIR *) 0)
4485 return 0;
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491   eval "$as_ac_Header=yes"
4492 else
4493   eval "$as_ac_Header=no"
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 fi
4497 eval ac_res=\$$as_ac_Header
4498                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4499 $as_echo "$ac_res" >&6; }
4500 eval as_val=\$$as_ac_Header
4501    if test "x$as_val" = x""yes; then :
4502   cat >>confdefs.h <<_ACEOF
4503 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4504 _ACEOF
4505
4506 ac_header_dirent=$ac_hdr; break
4507 fi
4508
4509 done
4510 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4511 if test $ac_header_dirent = dirent.h; then
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4513 $as_echo_n "checking for library containing opendir... " >&6; }
4514 if test "${ac_cv_search_opendir+set}" = set; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   ac_func_search_save_LIBS=$LIBS
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 /* Override any GCC internal prototype to avoid an error.
4522    Use char because int might match the return type of a GCC
4523    builtin and then its argument prototype would still apply.  */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 char opendir ();
4528 int
4529 main ()
4530 {
4531 return opendir ();
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 for ac_lib in '' dir; do
4537   if test -z "$ac_lib"; then
4538     ac_res="none required"
4539   else
4540     ac_res=-l$ac_lib
4541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4542   fi
4543   if ac_fn_c_try_link "$LINENO"; then :
4544   ac_cv_search_opendir=$ac_res
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext \
4547     conftest$ac_exeext
4548   if test "${ac_cv_search_opendir+set}" = set; then :
4549   break
4550 fi
4551 done
4552 if test "${ac_cv_search_opendir+set}" = set; then :
4553
4554 else
4555   ac_cv_search_opendir=no
4556 fi
4557 rm conftest.$ac_ext
4558 LIBS=$ac_func_search_save_LIBS
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4561 $as_echo "$ac_cv_search_opendir" >&6; }
4562 ac_res=$ac_cv_search_opendir
4563 if test "$ac_res" != no; then :
4564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4565
4566 fi
4567
4568 else
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4570 $as_echo_n "checking for library containing opendir... " >&6; }
4571 if test "${ac_cv_search_opendir+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   ac_func_search_save_LIBS=$LIBS
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h.  */
4577
4578 /* Override any GCC internal prototype to avoid an error.
4579    Use char because int might match the return type of a GCC
4580    builtin and then its argument prototype would still apply.  */
4581 #ifdef __cplusplus
4582 extern "C"
4583 #endif
4584 char opendir ();
4585 int
4586 main ()
4587 {
4588 return opendir ();
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 for ac_lib in '' x; do
4594   if test -z "$ac_lib"; then
4595     ac_res="none required"
4596   else
4597     ac_res=-l$ac_lib
4598     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4599   fi
4600   if ac_fn_c_try_link "$LINENO"; then :
4601   ac_cv_search_opendir=$ac_res
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext \
4604     conftest$ac_exeext
4605   if test "${ac_cv_search_opendir+set}" = set; then :
4606   break
4607 fi
4608 done
4609 if test "${ac_cv_search_opendir+set}" = set; then :
4610
4611 else
4612   ac_cv_search_opendir=no
4613 fi
4614 rm conftest.$ac_ext
4615 LIBS=$ac_func_search_save_LIBS
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4618 $as_echo "$ac_cv_search_opendir" >&6; }
4619 ac_res=$ac_cv_search_opendir
4620 if test "$ac_res" != no; then :
4621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4622
4623 fi
4624
4625 fi
4626
4627 for ac_header in sys/param.h
4628 do :
4629   ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4630 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
4631   cat >>confdefs.h <<_ACEOF
4632 #define HAVE_SYS_PARAM_H 1
4633 _ACEOF
4634
4635 fi
4636
4637 done
4638
4639 for ac_header in sys/sysctl.h
4640 do :
4641   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4642 # include <sys/param.h>
4643 # endif
4644
4645 "
4646 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
4647   cat >>confdefs.h <<_ACEOF
4648 #define HAVE_SYS_SYSCTL_H 1
4649 _ACEOF
4650
4651 fi
4652
4653 done
4654
4655
4656 for ac_header in \
4657         ar.h \
4658         err.h \
4659         fcntl.h \
4660         libgen.h \
4661         limits.h \
4662         paths.h \
4663         poll.h \
4664         ranlib.h \
4665         string.h \
4666         sys/mman.h \
4667         sys/select.h \
4668         sys/socket.h \
4669         sys/time.h \
4670         sys/uio.h \
4671         unistd.h \
4672         utime.h \
4673
4674 do :
4675   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4676 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4677 eval as_val=\$$as_ac_Header
4678    if test "x$as_val" = x""yes; then :
4679   cat >>confdefs.h <<_ACEOF
4680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4682
4683 fi
4684
4685 done
4686
4687
4688 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4689 if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
4690   echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h.  */
4693 #include <sys/cdefs.h>
4694 #ifdef __RCSID
4695 yes
4696 #endif
4697
4698 _ACEOF
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700   $EGREP "yes" >/dev/null 2>&1; then :
4701   echo yes  >&6
4702 else
4703   echo no  >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"
4704 fi
4705 rm -f conftest*
4706
4707 else
4708   CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4709 fi
4710
4711
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4715 $as_echo_n "checking for __attribute__... " >&6; }
4716 if test "${ac_cv___attribute__+set}" = set; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722
4723 #include <stdlib.h>
4724
4725 static void foo(void) __attribute__ ((noreturn));
4726
4727 static void
4728 foo(void)
4729 {
4730   exit(1);
4731 }
4732
4733 int
4734 main(int argc, char **argv)
4735 {
4736         foo();
4737 }
4738
4739 _ACEOF
4740 if ac_fn_c_try_link "$LINENO"; then :
4741   ac_cv___attribute__=yes
4742 else
4743   ac_cv___attribute__=no
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext \
4746     conftest$ac_exeext conftest.$ac_ext
4747 fi
4748
4749 if test "$ac_cv___attribute__" = "yes"; then
4750
4751 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4755 $as_echo "$ac_cv___attribute__" >&6; }
4756
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4758 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4759 if test "${ac_cv_c_bigendian+set}" = set; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   ac_cv_c_bigendian=unknown
4763     # See if we're dealing with a universal compiler.
4764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h.  */
4766 #ifndef __APPLE_CC__
4767                not a universal capable compiler
4768              #endif
4769              typedef int dummy;
4770
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773
4774         # Check for potential -arch flags.  It is not universal unless
4775         # there are at least two -arch flags with different values.
4776         ac_arch=
4777         ac_prev=
4778         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4779          if test -n "$ac_prev"; then
4780            case $ac_word in
4781              i?86 | x86_64 | ppc | ppc64)
4782                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4783                  ac_arch=$ac_word
4784                else
4785                  ac_cv_c_bigendian=universal
4786                  break
4787                fi
4788                ;;
4789            esac
4790            ac_prev=
4791          elif test "x$ac_word" = "x-arch"; then
4792            ac_prev=arch
4793          fi
4794        done
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797     if test $ac_cv_c_bigendian = unknown; then
4798       # See if sys/param.h defines the BYTE_ORDER macro.
4799       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h.  */
4801 #include <sys/types.h>
4802              #include <sys/param.h>
4803
4804 int
4805 main ()
4806 {
4807 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4808                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4809                      && LITTLE_ENDIAN)
4810               bogus endian macros
4811              #endif
4812
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818   # It does; now see whether it defined to BIG_ENDIAN or not.
4819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821 #include <sys/types.h>
4822                 #include <sys/param.h>
4823
4824 int
4825 main ()
4826 {
4827 #if BYTE_ORDER != BIG_ENDIAN
4828                  not big endian
4829                 #endif
4830
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836   ac_cv_c_bigendian=yes
4837 else
4838   ac_cv_c_bigendian=no
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843     fi
4844     if test $ac_cv_c_bigendian = unknown; then
4845       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h.  */
4848 #include <limits.h>
4849
4850 int
4851 main ()
4852 {
4853 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4854               bogus endian macros
4855              #endif
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862   # It does; now see whether it defined to _BIG_ENDIAN or not.
4863          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h.  */
4865 #include <limits.h>
4866
4867 int
4868 main ()
4869 {
4870 #ifndef _BIG_ENDIAN
4871                  not big endian
4872                 #endif
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879   ac_cv_c_bigendian=yes
4880 else
4881   ac_cv_c_bigendian=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886     fi
4887     if test $ac_cv_c_bigendian = unknown; then
4888       # Compile a test program.
4889       if test "$cross_compiling" = yes; then :
4890   # Try to guess by grepping values from an object file.
4891          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h.  */
4893 short int ascii_mm[] =
4894                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4895                 short int ascii_ii[] =
4896                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4897                 int use_ascii (int i) {
4898                   return ascii_mm[i] + ascii_ii[i];
4899                 }
4900                 short int ebcdic_ii[] =
4901                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4902                 short int ebcdic_mm[] =
4903                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4904                 int use_ebcdic (int i) {
4905                   return ebcdic_mm[i] + ebcdic_ii[i];
4906                 }
4907                 extern int foo;
4908
4909 int
4910 main ()
4911 {
4912 return use_ascii (foo) == use_ebcdic (foo);
4913   ;
4914   return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4919               ac_cv_c_bigendian=yes
4920             fi
4921             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4922               if test "$ac_cv_c_bigendian" = unknown; then
4923                 ac_cv_c_bigendian=no
4924               else
4925                 # finding both strings is unlikely to happen, but who knows?
4926                 ac_cv_c_bigendian=unknown
4927               fi
4928             fi
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 else
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 $ac_includes_default
4935 int
4936 main ()
4937 {
4938
4939              /* Are we little or big endian?  From Harbison&Steele.  */
4940              union
4941              {
4942                long int l;
4943                char c[sizeof (long int)];
4944              } u;
4945              u.l = 1;
4946              return u.c[sizeof (long int) - 1] == 1;
4947
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_run "$LINENO"; then :
4953   ac_cv_c_bigendian=no
4954 else
4955   ac_cv_c_bigendian=yes
4956 fi
4957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4958   conftest.$ac_objext conftest.beam conftest.$ac_ext
4959 fi
4960
4961     fi
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4964 $as_echo "$ac_cv_c_bigendian" >&6; }
4965  case $ac_cv_c_bigendian in #(
4966    yes)
4967      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4968 ;; #(
4969    no)
4970       ;; #(
4971    universal)
4972
4973 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4974
4975      ;; #(
4976    *)
4977      as_fn_error "unknown endianness
4978  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4979  esac
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4982 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4983 if test "${ac_cv_c_const+set}" = set; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h.  */
4988
4989 int
4990 main ()
4991 {
4992 /* FIXME: Include the comments suggested by Paul. */
4993 #ifndef __cplusplus
4994   /* Ultrix mips cc rejects this.  */
4995   typedef int charset[2];
4996   const charset cs;
4997   /* SunOS 4.1.1 cc rejects this.  */
4998   char const *const *pcpcc;
4999   char **ppc;
5000   /* NEC SVR4.0.2 mips cc rejects this.  */
5001   struct point {int x, y;};
5002   static struct point const zero = {0,0};
5003   /* AIX XL C 1.02.0.0 rejects this.
5004      It does not let you subtract one const X* pointer from another in
5005      an arm of an if-expression whose if-part is not a constant
5006      expression */
5007   const char *g = "string";
5008   pcpcc = &g + (g ? g-g : 0);
5009   /* HPUX 7.0 cc rejects these. */
5010   ++pcpcc;
5011   ppc = (char**) pcpcc;
5012   pcpcc = (char const *const *) ppc;
5013   { /* SCO 3.2v4 cc rejects this.  */
5014     char *t;
5015     char const *s = 0 ? (char *) 0 : (char const *) 0;
5016
5017     *t++ = 0;
5018     if (s) return 0;
5019   }
5020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5021     int x[] = {25, 17};
5022     const int *foo = &x[0];
5023     ++foo;
5024   }
5025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5026     typedef const int *iptr;
5027     iptr p = 0;
5028     ++p;
5029   }
5030   { /* AIX XL C 1.02.0.0 rejects this saying
5031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5032     struct s { int j; const int *ap[3]; };
5033     struct s *b; b->j = 5;
5034   }
5035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5036     const int foo = 10;
5037     if (!foo) return 0;
5038   }
5039   return !cs[0] && !zero.x;
5040 #endif
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047   ac_cv_c_const=yes
5048 else
5049   ac_cv_c_const=no
5050 fi
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5054 $as_echo "$ac_cv_c_const" >&6; }
5055 if test $ac_cv_c_const = no; then
5056
5057 $as_echo "#define const /**/" >>confdefs.h
5058
5059 fi
5060
5061 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5062 if test "x$ac_cv_type_mode_t" = x""yes; then :
5063
5064 else
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define mode_t int
5068 _ACEOF
5069
5070 fi
5071
5072 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5073 if test "x$ac_cv_type_off_t" = x""yes; then :
5074
5075 else
5076
5077 cat >>confdefs.h <<_ACEOF
5078 #define off_t long int
5079 _ACEOF
5080
5081 fi
5082
5083 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5084 if test "x$ac_cv_type_pid_t" = x""yes; then :
5085
5086 else
5087
5088 cat >>confdefs.h <<_ACEOF
5089 #define pid_t int
5090 _ACEOF
5091
5092 fi
5093
5094 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5095 if test "x$ac_cv_type_size_t" = x""yes; then :
5096
5097 else
5098
5099 cat >>confdefs.h <<_ACEOF
5100 #define size_t unsigned int
5101 _ACEOF
5102
5103 fi
5104
5105 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5106 case $ac_cv_c_uint32_t in #(
5107   no|yes) ;; #(
5108   *)
5109
5110 $as_echo "#define _UINT32_T 1" >>confdefs.h
5111
5112
5113 cat >>confdefs.h <<_ACEOF
5114 #define uint32_t $ac_cv_c_uint32_t
5115 _ACEOF
5116 ;;
5117   esac
5118
5119 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5120 /* NetBSD declares sys_siglist in unistd.h.  */
5121 #ifdef HAVE_UNISTD_H
5122 # include <unistd.h>
5123 #endif
5124
5125 "
5126 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
5127   ac_have_decl=1
5128 else
5129   ac_have_decl=0
5130 fi
5131
5132 cat >>confdefs.h <<_ACEOF
5133 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5134 _ACEOF
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5138 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5139 if test "${ac_cv_header_time+set}" = set; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h.  */
5144 #include <sys/types.h>
5145 #include <sys/time.h>
5146 #include <time.h>
5147
5148 int
5149 main ()
5150 {
5151 if ((struct tm *) 0)
5152 return 0;
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158   ac_cv_header_time=yes
5159 else
5160   ac_cv_header_time=no
5161 fi
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5165 $as_echo "$ac_cv_header_time" >&6; }
5166 if test $ac_cv_header_time = yes; then
5167
5168 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5169
5170 fi
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5173 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5174 if test "${ac_cv_struct_tm+set}" = set; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h.  */
5179 #include <sys/types.h>
5180 #include <time.h>
5181
5182 int
5183 main ()
5184 {
5185 struct tm tm;
5186                                      int *p = &tm.tm_sec;
5187                                      return !p;
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193   ac_cv_struct_tm=time.h
5194 else
5195   ac_cv_struct_tm=sys/time.h
5196 fi
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5200 $as_echo "$ac_cv_struct_tm" >&6; }
5201 if test $ac_cv_struct_tm = sys/time.h; then
5202
5203 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5204
5205 fi
5206
5207
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5209 $as_echo_n "checking return type of signal handlers... " >&6; }
5210 if test "${ac_cv_type_signal+set}" = set; then :
5211   $as_echo_n "(cached) " >&6
5212 else
5213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h.  */
5215 #include <sys/types.h>
5216 #include <signal.h>
5217
5218 int
5219 main ()
5220 {
5221 return *(signal (0, 0)) (0) == 1;
5222   ;
5223   return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227   ac_cv_type_signal=int
5228 else
5229   ac_cv_type_signal=void
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5234 $as_echo "$ac_cv_type_signal" >&6; }
5235
5236 cat >>confdefs.h <<_ACEOF
5237 #define RETSIGTYPE $ac_cv_type_signal
5238 _ACEOF
5239
5240
5241 for ac_header in vfork.h
5242 do :
5243   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5245   cat >>confdefs.h <<_ACEOF
5246 #define HAVE_VFORK_H 1
5247 _ACEOF
5248
5249 fi
5250
5251 done
5252
5253 for ac_func in fork vfork
5254 do :
5255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5257 eval as_val=\$$as_ac_var
5258    if test "x$as_val" = x""yes; then :
5259   cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5261 _ACEOF
5262
5263 fi
5264 done
5265
5266 if test "x$ac_cv_func_fork" = xyes; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5268 $as_echo_n "checking for working fork... " >&6; }
5269 if test "${ac_cv_func_fork_works+set}" = set; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   if test "$cross_compiling" = yes; then :
5273   ac_cv_func_fork_works=cross
5274 else
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277 $ac_includes_default
5278 int
5279 main ()
5280 {
5281
5282           /* By Ruediger Kuhlmann. */
5283           return fork () < 0;
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_run "$LINENO"; then :
5290   ac_cv_func_fork_works=yes
5291 else
5292   ac_cv_func_fork_works=no
5293 fi
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5295   conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 fi
5297
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5300 $as_echo "$ac_cv_func_fork_works" >&6; }
5301
5302 else
5303   ac_cv_func_fork_works=$ac_cv_func_fork
5304 fi
5305 if test "x$ac_cv_func_fork_works" = xcross; then
5306   case $host in
5307     *-*-amigaos* | *-*-msdosdjgpp*)
5308       # Override, as these systems have only a dummy fork() stub
5309       ac_cv_func_fork_works=no
5310       ;;
5311     *)
5312       ac_cv_func_fork_works=yes
5313       ;;
5314   esac
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5316 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5317 fi
5318 ac_cv_func_vfork_works=$ac_cv_func_vfork
5319 if test "x$ac_cv_func_vfork" = xyes; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5321 $as_echo_n "checking for working vfork... " >&6; }
5322 if test "${ac_cv_func_vfork_works+set}" = set; then :
5323   $as_echo_n "(cached) " >&6
5324 else
5325   if test "$cross_compiling" = yes; then :
5326   ac_cv_func_vfork_works=cross
5327 else
5328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h.  */
5330 /* Thanks to Paul Eggert for this test.  */
5331 $ac_includes_default
5332 #include <sys/wait.h>
5333 #ifdef HAVE_VFORK_H
5334 # include <vfork.h>
5335 #endif
5336 /* On some sparc systems, changes by the child to local and incoming
5337    argument registers are propagated back to the parent.  The compiler
5338    is told about this with #include <vfork.h>, but some compilers
5339    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5340    static variable whose address is put into a register that is
5341    clobbered by the vfork.  */
5342 static void
5343 #ifdef __cplusplus
5344 sparc_address_test (int arg)
5345 # else
5346 sparc_address_test (arg) int arg;
5347 #endif
5348 {
5349   static pid_t child;
5350   if (!child) {
5351     child = vfork ();
5352     if (child < 0) {
5353       perror ("vfork");
5354       _exit(2);
5355     }
5356     if (!child) {
5357       arg = getpid();
5358       write(-1, "", 0);
5359       _exit (arg);
5360     }
5361   }
5362 }
5363
5364 int
5365 main ()
5366 {
5367   pid_t parent = getpid ();
5368   pid_t child;
5369
5370   sparc_address_test (0);
5371
5372   child = vfork ();
5373
5374   if (child == 0) {
5375     /* Here is another test for sparc vfork register problems.  This
5376        test uses lots of local variables, at least as many local
5377        variables as main has allocated so far including compiler
5378        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5379        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5380        reuse the register of parent for one of the local variables,
5381        since it will think that parent can't possibly be used any more
5382        in this routine.  Assigning to the local variable will thus
5383        munge parent in the parent process.  */
5384     pid_t
5385       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5386       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5387     /* Convince the compiler that p..p7 are live; otherwise, it might
5388        use the same hardware register for all 8 local variables.  */
5389     if (p != p1 || p != p2 || p != p3 || p != p4
5390         || p != p5 || p != p6 || p != p7)
5391       _exit(1);
5392
5393     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5394        from child file descriptors.  If the child closes a descriptor
5395        before it execs or exits, this munges the parent's descriptor
5396        as well.  Test for this by closing stdout in the child.  */
5397     _exit(close(fileno(stdout)) != 0);
5398   } else {
5399     int status;
5400     struct stat st;
5401
5402     while (wait(&status) != child)
5403       ;
5404     return (
5405          /* Was there some problem with vforking?  */
5406          child < 0
5407
5408          /* Did the child fail?  (This shouldn't happen.)  */
5409          || status
5410
5411          /* Did the vfork/compiler bug occur?  */
5412          || parent != getpid()
5413
5414          /* Did the file descriptor bug occur?  */
5415          || fstat(fileno(stdout), &st) != 0
5416          );
5417   }
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_run "$LINENO"; then :
5421   ac_cv_func_vfork_works=yes
5422 else
5423   ac_cv_func_vfork_works=no
5424 fi
5425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5426   conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 fi
5428
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5431 $as_echo "$ac_cv_func_vfork_works" >&6; }
5432
5433 fi;
5434 if test "x$ac_cv_func_fork_works" = xcross; then
5435   ac_cv_func_vfork_works=$ac_cv_func_vfork
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5437 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5438 fi
5439
5440 if test "x$ac_cv_func_vfork_works" = xyes; then
5441
5442 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5443
5444 else
5445
5446 $as_echo "#define vfork fork" >>confdefs.h
5447
5448 fi
5449 if test "x$ac_cv_func_fork_works" = xyes; then
5450
5451 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5452
5453 fi
5454
5455 for ac_func in vprintf
5456 do :
5457   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5458 if test "x$ac_cv_func_vprintf" = x""yes; then :
5459   cat >>confdefs.h <<_ACEOF
5460 #define HAVE_VPRINTF 1
5461 _ACEOF
5462
5463 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5464 if test "x$ac_cv_func__doprnt" = x""yes; then :
5465
5466 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5467
5468 fi
5469
5470 fi
5471 done
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5475 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5476 if test "${ac_cv_func_wait3_rusage+set}" = set; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   if test "$cross_compiling" = yes; then :
5480   ac_cv_func_wait3_rusage=no
5481 else
5482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h.  */
5484 $ac_includes_default
5485 #include <sys/time.h>
5486 #include <sys/resource.h>
5487 #include <sys/wait.h>
5488 /* HP-UX has wait3 but does not fill in rusage at all.  */
5489 int
5490 main ()
5491 {
5492   struct rusage r;
5493   int i;
5494   /* Use a field that we can force nonzero --
5495      voluntary context switches.
5496      For systems like NeXT and OSF/1 that don't set it,
5497      also use the system CPU time.  And page faults (I/O) for Linux.  */
5498   r.ru_nvcsw = 0;
5499   r.ru_stime.tv_sec = 0;
5500   r.ru_stime.tv_usec = 0;
5501   r.ru_majflt = r.ru_minflt = 0;
5502   switch (fork ())
5503     {
5504     case 0: /* Child.  */
5505       sleep(1); /* Give up the CPU.  */
5506       _exit(0);
5507       break;
5508     case -1: /* What can we do?  */
5509       _exit(0);
5510       break;
5511     default: /* Parent.  */
5512       wait3(&i, 0, &r);
5513       /* Avoid "text file busy" from rm on fast HP-UX machines.  */
5514       sleep(2);
5515       return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5516               && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5517     }
5518 }
5519 _ACEOF
5520 if ac_fn_c_try_run "$LINENO"; then :
5521   ac_cv_func_wait3_rusage=yes
5522 else
5523   ac_cv_func_wait3_rusage=no
5524 fi
5525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5526   conftest.$ac_objext conftest.beam conftest.$ac_ext
5527 fi
5528
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5531 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5532 if test $ac_cv_func_wait3_rusage = yes; then
5533
5534 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5535
5536 fi
5537
5538 for ac_func in \
5539         err \
5540         errx \
5541         getcwd \
5542         getenv \
5543         getopt \
5544         getwd \
5545         killpg \
5546         mmap \
5547         putenv \
5548         select \
5549         setenv \
5550         setpgid \
5551         setsid \
5552         sigaction \
5553         sigvec \
5554         snprintf \
5555         strerror \
5556         strftime \
5557         strsep \
5558         strtod \
5559         strtol \
5560         sysctl \
5561         unsetenv \
5562         vsnprintf \
5563         wait3 \
5564         wait4 \
5565         waitpid \
5566         warn \
5567         warnx \
5568
5569 do :
5570   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5572 eval as_val=\$$as_ac_var
5573    if test "x$as_val" = x""yes; then :
5574   cat >>confdefs.h <<_ACEOF
5575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5576 _ACEOF
5577
5578 fi
5579 done
5580
5581
5582 for ac_func in \
5583         realpath \
5584         dirname \
5585         stresep \
5586         strlcpy \
5587
5588 do :
5589   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5591 eval as_val=\$$as_ac_var
5592    if test "x$as_val" = x""yes; then :
5593   cat >>confdefs.h <<_ACEOF
5594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5595 _ACEOF
5596
5597 else
5598   case " $LIBOBJS " in
5599   *" $ac_func.$ac_objext "* ) ;;
5600   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5601  ;;
5602 esac
5603
5604 fi
5605 done
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5610 $as_echo_n "checking for emalloc in -lutil... " >&6; }
5611 if test "${ac_cv_lib_util_emalloc+set}" = set; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   ac_check_lib_save_LIBS=$LIBS
5615 LIBS="-lutil  $LIBS"
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h.  */
5618
5619 /* Override any GCC internal prototype to avoid an error.
5620    Use char because int might match the return type of a GCC
5621    builtin and then its argument prototype would still apply.  */
5622 #ifdef __cplusplus
5623 extern "C"
5624 #endif
5625 char emalloc ();
5626 int
5627 main ()
5628 {
5629 return emalloc ();
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 if ac_fn_c_try_link "$LINENO"; then :
5635   ac_cv_lib_util_emalloc=yes
5636 else
5637   ac_cv_lib_util_emalloc=no
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext \
5640     conftest$ac_exeext conftest.$ac_ext
5641 LIBS=$ac_check_lib_save_LIBS
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5644 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
5645 if test "x$ac_cv_lib_util_emalloc" = x""yes; then :
5646    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5647 $as_echo_n "checking for erealloc in -lutil... " >&6; }
5648 if test "${ac_cv_lib_util_erealloc+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lutil  $LIBS"
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h.  */
5655
5656 /* Override any GCC internal prototype to avoid an error.
5657    Use char because int might match the return type of a GCC
5658    builtin and then its argument prototype would still apply.  */
5659 #ifdef __cplusplus
5660 extern "C"
5661 #endif
5662 char erealloc ();
5663 int
5664 main ()
5665 {
5666 return erealloc ();
5667   ;
5668   return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"; then :
5672   ac_cv_lib_util_erealloc=yes
5673 else
5674   ac_cv_lib_util_erealloc=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext \
5677     conftest$ac_exeext conftest.$ac_ext
5678 LIBS=$ac_check_lib_save_LIBS
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5681 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
5682 if test "x$ac_cv_lib_util_erealloc" = x""yes; then :
5683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5684 $as_echo_n "checking for estrdup in -lutil... " >&6; }
5685 if test "${ac_cv_lib_util_estrdup+set}" = set; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   ac_check_lib_save_LIBS=$LIBS
5689 LIBS="-lutil  $LIBS"
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692
5693 /* Override any GCC internal prototype to avoid an error.
5694    Use char because int might match the return type of a GCC
5695    builtin and then its argument prototype would still apply.  */
5696 #ifdef __cplusplus
5697 extern "C"
5698 #endif
5699 char estrdup ();
5700 int
5701 main ()
5702 {
5703 return estrdup ();
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_link "$LINENO"; then :
5709   ac_cv_lib_util_estrdup=yes
5710 else
5711   ac_cv_lib_util_estrdup=no
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext \
5714     conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5718 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
5719 if test "x$ac_cv_lib_util_estrdup" = x""yes; then :
5720    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5721 $as_echo_n "checking for estrndup in -lutil... " >&6; }
5722 if test "${ac_cv_lib_util_estrndup+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   ac_check_lib_save_LIBS=$LIBS
5726 LIBS="-lutil  $LIBS"
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h.  */
5729
5730 /* Override any GCC internal prototype to avoid an error.
5731    Use char because int might match the return type of a GCC
5732    builtin and then its argument prototype would still apply.  */
5733 #ifdef __cplusplus
5734 extern "C"
5735 #endif
5736 char estrndup ();
5737 int
5738 main ()
5739 {
5740 return estrndup ();
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_link "$LINENO"; then :
5746   ac_cv_lib_util_estrndup=yes
5747 else
5748   ac_cv_lib_util_estrndup=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext \
5751     conftest$ac_exeext conftest.$ac_ext
5752 LIBS=$ac_check_lib_save_LIBS
5753 fi
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
5755 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
5756 if test "x$ac_cv_lib_util_estrndup" = x""yes; then :
5757    LIBS="$LIBS -lutil"
5758             CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
5759 fi
5760
5761 fi
5762
5763 fi
5764
5765 fi
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5769 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5770 if test "${ac_cv_header_stat_broken+set}" = set; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h.  */
5775 #include <sys/types.h>
5776 #include <sys/stat.h>
5777
5778 #if defined S_ISBLK && defined S_IFDIR
5779 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5780 #endif
5781
5782 #if defined S_ISBLK && defined S_IFCHR
5783 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5784 #endif
5785
5786 #if defined S_ISLNK && defined S_IFREG
5787 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5788 #endif
5789
5790 #if defined S_ISSOCK && defined S_IFREG
5791 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5792 #endif
5793
5794 _ACEOF
5795 if ac_fn_c_try_compile "$LINENO"; then :
5796   ac_cv_header_stat_broken=no
5797 else
5798   ac_cv_header_stat_broken=yes
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5803 $as_echo "$ac_cv_header_stat_broken" >&6; }
5804 if test $ac_cv_header_stat_broken = yes; then
5805
5806 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5807
5808 fi
5809
5810 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5811 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5812
5813 cat >>confdefs.h <<_ACEOF
5814 #define HAVE_STRUCT_STAT_ST_RDEV 1
5815 _ACEOF
5816
5817
5818 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5819
5820 fi
5821
5822
5823 echo "checking if compiler supports __func__" >&6
5824 ac_ext=c
5825 ac_cpp='$CPP $CPPFLAGS'
5826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5829
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h.  */
5832
5833 int
5834 main ()
5835 {
5836 const char *func = __func__;
5837   ;
5838   return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_compile "$LINENO"; then :
5842
5843 else
5844
5845 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5846
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
5850 if diff -u /dev/null /dev/null > /dev/null 2>&1; then
5851    diff_u=-u
5852    echo yes >&6
5853 else
5854    diff_u=
5855    echo no >&6
5856 fi
5857 echo "checking for MACHINE & MACHINE_ARCH..." >&6
5858 cat > conftest.$ac_ext <<EOF
5859 #include "confdefs.h"
5860 #include <sys/param.h>
5861 #ifdef MACHINE
5862 machine=MACHINE
5863 #endif
5864 #ifdef MACHINE_ARCH
5865 machine_arch=MACHINE_ARCH
5866 #endif
5867 EOF
5868
5869 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870         egrep machine= | tr -d ' "'`
5871 rm -rf conftest*
5872 if test "$default_machine"; then
5873         eval "$default_machine"
5874 fi
5875 machine=${machine:-`$srcdir/machine.sh`}
5876 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
5877 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5878
5879 # Check whether --with-machine was given.
5880 if test "${with_machine+set}" = set; then :
5881   withval=$with_machine; case "${withval}" in
5882 yes)   as_fn_error "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
5883 no)    ;;
5884 generic) machine=`$srcdir/machine.sh`;;
5885 *)     machine=$with_machine;;
5886 esac
5887 fi
5888
5889 force_machine=
5890
5891 # Check whether --with-force_machine was given.
5892 if test "${with_force_machine+set}" = set; then :
5893   withval=$with_force_machine; case "${withval}" in
5894 yes)   force_machine=FORCE_;;
5895 no)    ;;
5896 *)     force_machine=FORCE_; machine=$with_force_machine;;
5897 esac
5898 fi
5899
5900 force_machine_arch=
5901
5902 # Check whether --with-force_machine_arch was given.
5903 if test "${with_force_machine_arch+set}" = set; then :
5904   withval=$with_force_machine_arch; case "${withval}" in
5905 yes)   force_machine_arch=FORCE_;;
5906 no)    ;;
5907 *)     force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
5908 esac
5909 fi
5910
5911
5912 # Check whether --with-machine_arch was given.
5913 if test "${with_machine_arch+set}" = set; then :
5914   withval=$with_machine_arch; case "${withval}" in
5915 yes)   as_fn_error "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
5916 no)    ;;
5917 *)     machine_arch=$with_machine_arch;;
5918 esac
5919 fi
5920
5921 echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5922 default_sys_path=\${prefix}/share/mk
5923
5924 # Check whether --with-default-sys-path was given.
5925 if test "${with_default_sys_path+set}" = set; then :
5926   withval=$with_default_sys_path; case "${withval}" in
5927 yes)    as_fn_error "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
5928 no)     ;;
5929 *)      default_sys_path="$with_default_sys_path"
5930         ;;
5931 esac
5932 fi
5933
5934
5935 # Check whether --with-path-objdirprefix was given.
5936 if test "${with_path_objdirprefix+set}" = set; then :
5937   withval=$with_path_objdirprefix; case "${withval}" in
5938 yes)   as_fn_error "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
5939 no)    CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
5940 *)     CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
5941 esac
5942 fi
5943
5944 # Check whether --enable-pwd-override was given.
5945 if test "${enable_pwd_override+set}" = set; then :
5946   enableval=$enable_pwd_override; case "${enableval}" in
5947 yes)   ;;
5948 no)    CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
5949 *)     as_fn_error "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
5950 esac
5951 fi
5952
5953 # Check whether --enable-check-make-chdir was given.
5954 if test "${enable_check_make_chdir+set}" = set; then :
5955   enableval=$enable_check_make_chdir; case "${enableval}" in
5956 yes)   ;;
5957 no)    CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
5958 *)     as_fn_error "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
5959 esac
5960 fi
5961
5962
5963 # Check whether --with-mksrc was given.
5964 if test "${with_mksrc+set}" = set; then :
5965   withval=$with_mksrc; case "${withval}" in
5966 ""|yes|no) ;;
5967 *) test -s $withval/install-mk && mksrc=$withval ||
5968 as_fn_error "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
5969 ;;
5970 esac
5971
5972 fi
5973
5974 srcdir=`cd $srcdir && pwd`
5975 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
5976 do
5977         test -s $mksrc/install-mk || continue
5978         mksrc=`cd $mksrc && pwd`
5979         break
5980 done
5981 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
5982 echo "Using: MKSRC=$mksrc" 1>&6
5983 if test -x /usr/xpg4/bin/sh; then
5984         defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
5985 fi
5986 if test -n "$defshell_path"; then
5987         echo "Using: SHELL=$defshell_path"  >&6
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define DEFSHELL_CUSTOM "$defshell_path"
5991 _ACEOF
5992
5993 fi
5994 if test -n "$DEFSHELL_INDEX"; then
5995
5996 cat >>confdefs.h <<_ACEOF
5997 #define DEFSHELL_INDEX $DEFSHELL_INDEX
5998 _ACEOF
5999
6000 fi
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 ac_config_files="$ac_config_files makefile Makefile.config make-bootstrap.sh unit-tests/Makefile"
6013
6014 cat >confcache <<\_ACEOF
6015 # This file is a shell script that caches the results of configure
6016 # tests run on this system so they can be shared between configure
6017 # scripts and configure runs, see configure's option --config-cache.
6018 # It is not useful on other systems.  If it contains results you don't
6019 # want to keep, you may remove or edit it.
6020 #
6021 # config.status only pays attention to the cache file if you give it
6022 # the --recheck option to rerun configure.
6023 #
6024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6026 # following values.
6027
6028 _ACEOF
6029
6030 # The following way of writing the cache mishandles newlines in values,
6031 # but we know of no workaround that is simple, portable, and efficient.
6032 # So, we kill variables containing newlines.
6033 # Ultrix sh set writes to stderr and can't be redirected directly,
6034 # and sets the high bit in the cache file unless we assign to the vars.
6035 (
6036   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6037     eval ac_val=\$$ac_var
6038     case $ac_val in #(
6039     *${as_nl}*)
6040       case $ac_var in #(
6041       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6042 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6043       esac
6044       case $ac_var in #(
6045       _ | IFS | as_nl) ;; #(
6046       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6047       *) { eval $ac_var=; unset $ac_var;} ;;
6048       esac ;;
6049     esac
6050   done
6051
6052   (set) 2>&1 |
6053     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6054     *${as_nl}ac_space=\ *)
6055       # `set' does not quote correctly, so add quotes: double-quote
6056       # substitution turns \\\\ into \\, and sed turns \\ into \.
6057       sed -n \
6058         "s/'/'\\\\''/g;
6059           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6060       ;; #(
6061     *)
6062       # `set' quotes correctly as required by POSIX, so do not add quotes.
6063       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6064       ;;
6065     esac |
6066     sort
6067 ) |
6068   sed '
6069      /^ac_cv_env_/b end
6070      t clear
6071      :clear
6072      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6073      t end
6074      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6075      :end' >>confcache
6076 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6077   if test -w "$cache_file"; then
6078     test "x$cache_file" != "x/dev/null" &&
6079       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6080 $as_echo "$as_me: updating cache $cache_file" >&6;}
6081     cat confcache >$cache_file
6082   else
6083     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6084 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6085   fi
6086 fi
6087 rm -f confcache
6088
6089 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6090 # Let make expand exec_prefix.
6091 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6092
6093 DEFS=-DHAVE_CONFIG_H
6094
6095 ac_libobjs=
6096 ac_ltlibobjs=
6097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6098   # 1. Remove the extension, and $U if already installed.
6099   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6100   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6101   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6102   #    will be set to the directory where LIBOBJS objects are built.
6103   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6104   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6105 done
6106 LIBOBJS=$ac_libobjs
6107
6108 LTLIBOBJS=$ac_ltlibobjs
6109
6110
6111
6112
6113 : ${CONFIG_STATUS=./config.status}
6114 ac_write_fail=0
6115 ac_clean_files_save=$ac_clean_files
6116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6118 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6119 as_write_fail=0
6120 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6121 #! $SHELL
6122 # Generated by $as_me.
6123 # Run this file to recreate the current configuration.
6124 # Compiler output produced by configure, useful for debugging
6125 # configure, is in config.log if it exists.
6126
6127 debug=false
6128 ac_cs_recheck=false
6129 ac_cs_silent=false
6130
6131 SHELL=\${CONFIG_SHELL-$SHELL}
6132 export SHELL
6133 _ASEOF
6134 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6135 ## -------------------- ##
6136 ## M4sh Initialization. ##
6137 ## -------------------- ##
6138
6139 # Be more Bourne compatible
6140 DUALCASE=1; export DUALCASE # for MKS sh
6141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6142   emulate sh
6143   NULLCMD=:
6144   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6145   # is contrary to our usage.  Disable this feature.
6146   alias -g '${1+"$@"}'='"$@"'
6147   setopt NO_GLOB_SUBST
6148 else
6149   case `(set -o) 2>/dev/null` in #(
6150   *posix*) :
6151     set -o posix ;; #(
6152   *) :
6153      ;;
6154 esac
6155 fi
6156
6157
6158 as_nl='
6159 '
6160 export as_nl
6161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6165 # Prefer a ksh shell builtin over an external printf program on Solaris,
6166 # but without wasting forks for bash or zsh.
6167 if test -z "$BASH_VERSION$ZSH_VERSION" \
6168     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6169   as_echo='print -r --'
6170   as_echo_n='print -rn --'
6171 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6172   as_echo='printf %s\n'
6173   as_echo_n='printf %s'
6174 else
6175   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6176     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6177     as_echo_n='/usr/ucb/echo -n'
6178   else
6179     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6180     as_echo_n_body='eval
6181       arg=$1;
6182       case $arg in #(
6183       *"$as_nl"*)
6184         expr "X$arg" : "X\\(.*\\)$as_nl";
6185         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6186       esac;
6187       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6188     '
6189     export as_echo_n_body
6190     as_echo_n='sh -c $as_echo_n_body as_echo'
6191   fi
6192   export as_echo_body
6193   as_echo='sh -c $as_echo_body as_echo'
6194 fi
6195
6196 # The user is always right.
6197 if test "${PATH_SEPARATOR+set}" != set; then
6198   PATH_SEPARATOR=:
6199   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6200     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6201       PATH_SEPARATOR=';'
6202   }
6203 fi
6204
6205
6206 # IFS
6207 # We need space, tab and new line, in precisely that order.  Quoting is
6208 # there to prevent editors from complaining about space-tab.
6209 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6210 # splitting by setting IFS to empty value.)
6211 IFS=" ""        $as_nl"
6212
6213 # Find who we are.  Look in the path if we contain no directory separator.
6214 case $0 in #((
6215   *[\\/]* ) as_myself=$0 ;;
6216   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6222   done
6223 IFS=$as_save_IFS
6224
6225      ;;
6226 esac
6227 # We did not find ourselves, most probably we were run as `sh COMMAND'
6228 # in which case we are not to be found in the path.
6229 if test "x$as_myself" = x; then
6230   as_myself=$0
6231 fi
6232 if test ! -f "$as_myself"; then
6233   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6234   exit 1
6235 fi
6236
6237 # Unset variables that we do not need and which cause bugs (e.g. in
6238 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6239 # suppresses any "Segmentation fault" message there.  '((' could
6240 # trigger a bug in pdksh 5.2.14.
6241 for as_var in BASH_ENV ENV MAIL MAILPATH
6242 do eval test x\${$as_var+set} = xset \
6243   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6244 done
6245 PS1='$ '
6246 PS2='> '
6247 PS4='+ '
6248
6249 # NLS nuisances.
6250 LC_ALL=C
6251 export LC_ALL
6252 LANGUAGE=C
6253 export LANGUAGE
6254
6255 # CDPATH.
6256 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6257
6258
6259 # as_fn_error ERROR [LINENO LOG_FD]
6260 # ---------------------------------
6261 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6262 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6263 # script with status $?, using 1 if that was 0.
6264 as_fn_error ()
6265 {
6266   as_status=$?; test $as_status -eq 0 && as_status=1
6267   if test "$3"; then
6268     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6269     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6270   fi
6271   $as_echo "$as_me: error: $1" >&2
6272   as_fn_exit $as_status
6273 } # as_fn_error
6274
6275
6276 # as_fn_set_status STATUS
6277 # -----------------------
6278 # Set $? to STATUS, without forking.
6279 as_fn_set_status ()
6280 {
6281   return $1
6282 } # as_fn_set_status
6283
6284 # as_fn_exit STATUS
6285 # -----------------
6286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6287 as_fn_exit ()
6288 {
6289   set +e
6290   as_fn_set_status $1
6291   exit $1
6292 } # as_fn_exit
6293
6294 # as_fn_unset VAR
6295 # ---------------
6296 # Portably unset VAR.
6297 as_fn_unset ()
6298 {
6299   { eval $1=; unset $1;}
6300 }
6301 as_unset=as_fn_unset
6302 # as_fn_append VAR VALUE
6303 # ----------------------
6304 # Append the text in VALUE to the end of the definition contained in VAR. Take
6305 # advantage of any shell optimizations that allow amortized linear growth over
6306 # repeated appends, instead of the typical quadratic growth present in naive
6307 # implementations.
6308 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6309   eval 'as_fn_append ()
6310   {
6311     eval $1+=\$2
6312   }'
6313 else
6314   as_fn_append ()
6315   {
6316     eval $1=\$$1\$2
6317   }
6318 fi # as_fn_append
6319
6320 # as_fn_arith ARG...
6321 # ------------------
6322 # Perform arithmetic evaluation on the ARGs, and store the result in the
6323 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6324 # must be portable across $(()) and expr.
6325 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6326   eval 'as_fn_arith ()
6327   {
6328     as_val=$(( $* ))
6329   }'
6330 else
6331   as_fn_arith ()
6332   {
6333     as_val=`expr "$@" || test $? -eq 1`
6334   }
6335 fi # as_fn_arith
6336
6337
6338 if expr a : '\(a\)' >/dev/null 2>&1 &&
6339    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6340   as_expr=expr
6341 else
6342   as_expr=false
6343 fi
6344
6345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6346   as_basename=basename
6347 else
6348   as_basename=false
6349 fi
6350
6351 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6352   as_dirname=dirname
6353 else
6354   as_dirname=false
6355 fi
6356
6357 as_me=`$as_basename -- "$0" ||
6358 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6359          X"$0" : 'X\(//\)$' \| \
6360          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6361 $as_echo X/"$0" |
6362     sed '/^.*\/\([^/][^/]*\)\/*$/{
6363             s//\1/
6364             q
6365           }
6366           /^X\/\(\/\/\)$/{
6367             s//\1/
6368             q
6369           }
6370           /^X\/\(\/\).*/{
6371             s//\1/
6372             q
6373           }
6374           s/.*/./; q'`
6375
6376 # Avoid depending upon Character Ranges.
6377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6380 as_cr_digits='0123456789'
6381 as_cr_alnum=$as_cr_Letters$as_cr_digits
6382
6383 ECHO_C= ECHO_N= ECHO_T=
6384 case `echo -n x` in #(((((
6385 -n*)
6386   case `echo 'xy\c'` in
6387   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6388   xy)  ECHO_C='\c';;
6389   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6390        ECHO_T=' ';;
6391   esac;;
6392 *)
6393   ECHO_N='-n';;
6394 esac
6395
6396 rm -f conf$$ conf$$.exe conf$$.file
6397 if test -d conf$$.dir; then
6398   rm -f conf$$.dir/conf$$.file
6399 else
6400   rm -f conf$$.dir
6401   mkdir conf$$.dir 2>/dev/null
6402 fi
6403 if (echo >conf$$.file) 2>/dev/null; then
6404   if ln -s conf$$.file conf$$ 2>/dev/null; then
6405     as_ln_s='ln -s'
6406     # ... but there are two gotchas:
6407     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6408     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6409     # In both cases, we have to default to `cp -p'.
6410     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6411       as_ln_s='cp -p'
6412   elif ln conf$$.file conf$$ 2>/dev/null; then
6413     as_ln_s=ln
6414   else
6415     as_ln_s='cp -p'
6416   fi
6417 else
6418   as_ln_s='cp -p'
6419 fi
6420 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6421 rmdir conf$$.dir 2>/dev/null
6422
6423
6424 # as_fn_mkdir_p
6425 # -------------
6426 # Create "$as_dir" as a directory, including parents if necessary.
6427 as_fn_mkdir_p ()
6428 {
6429
6430   case $as_dir in #(
6431   -*) as_dir=./$as_dir;;
6432   esac
6433   test -d "$as_dir" || eval $as_mkdir_p || {
6434     as_dirs=
6435     while :; do
6436       case $as_dir in #(
6437       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6438       *) as_qdir=$as_dir;;
6439       esac
6440       as_dirs="'$as_qdir' $as_dirs"
6441       as_dir=`$as_dirname -- "$as_dir" ||
6442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6443          X"$as_dir" : 'X\(//\)[^/]' \| \
6444          X"$as_dir" : 'X\(//\)$' \| \
6445          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6446 $as_echo X"$as_dir" |
6447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6448             s//\1/
6449             q
6450           }
6451           /^X\(\/\/\)[^/].*/{
6452             s//\1/
6453             q
6454           }
6455           /^X\(\/\/\)$/{
6456             s//\1/
6457             q
6458           }
6459           /^X\(\/\).*/{
6460             s//\1/
6461             q
6462           }
6463           s/.*/./; q'`
6464       test -d "$as_dir" && break
6465     done
6466     test -z "$as_dirs" || eval "mkdir $as_dirs"
6467   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6468
6469
6470 } # as_fn_mkdir_p
6471 if mkdir -p . 2>/dev/null; then
6472   as_mkdir_p='mkdir -p "$as_dir"'
6473 else
6474   test -d ./-p && rmdir ./-p
6475   as_mkdir_p=false
6476 fi
6477
6478 if test -x / >/dev/null 2>&1; then
6479   as_test_x='test -x'
6480 else
6481   if ls -dL / >/dev/null 2>&1; then
6482     as_ls_L_option=L
6483   else
6484     as_ls_L_option=
6485   fi
6486   as_test_x='
6487     eval sh -c '\''
6488       if test -d "$1"; then
6489         test -d "$1/.";
6490       else
6491         case $1 in #(
6492         -*)set "./$1";;
6493         esac;
6494         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6495         ???[sx]*):;;*)false;;esac;fi
6496     '\'' sh
6497   '
6498 fi
6499 as_executable_p=$as_test_x
6500
6501 # Sed expression to map a string onto a valid CPP name.
6502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6503
6504 # Sed expression to map a string onto a valid variable name.
6505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6506
6507
6508 exec 6>&1
6509 ## ----------------------------------- ##
6510 ## Main body of $CONFIG_STATUS script. ##
6511 ## ----------------------------------- ##
6512 _ASEOF
6513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6514
6515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6516 # Save the log message, to keep $0 and so on meaningful, and to
6517 # report actual input values of CONFIG_FILES etc. instead of their
6518 # values after options handling.
6519 ac_log="
6520 This file was extended by bmake $as_me 20171126, which was
6521 generated by GNU Autoconf 2.64.  Invocation command line was
6522
6523   CONFIG_FILES    = $CONFIG_FILES
6524   CONFIG_HEADERS  = $CONFIG_HEADERS
6525   CONFIG_LINKS    = $CONFIG_LINKS
6526   CONFIG_COMMANDS = $CONFIG_COMMANDS
6527   $ $0 $@
6528
6529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6530 "
6531
6532 _ACEOF
6533
6534 case $ac_config_files in *"
6535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6536 esac
6537
6538 case $ac_config_headers in *"
6539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6540 esac
6541
6542
6543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6544 # Files that config.status was made for.
6545 config_files="$ac_config_files"
6546 config_headers="$ac_config_headers"
6547
6548 _ACEOF
6549
6550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6551 ac_cs_usage="\
6552 \`$as_me' instantiates files and other configuration actions
6553 from templates according to the current configuration.  Unless the files
6554 and actions are specified as TAGs, all are instantiated by default.
6555
6556 Usage: $0 [OPTION]... [TAG]...
6557
6558   -h, --help       print this help, then exit
6559   -V, --version    print version number and configuration settings, then exit
6560   -q, --quiet, --silent
6561                    do not print progress messages
6562   -d, --debug      don't remove temporary files
6563       --recheck    update $as_me by reconfiguring in the same conditions
6564       --file=FILE[:TEMPLATE]
6565                    instantiate the configuration file FILE
6566       --header=FILE[:TEMPLATE]
6567                    instantiate the configuration header FILE
6568
6569 Configuration files:
6570 $config_files
6571
6572 Configuration headers:
6573 $config_headers
6574
6575 Report bugs to <sjg@NetBSD.org>."
6576
6577 _ACEOF
6578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6579 ac_cs_version="\\
6580 bmake config.status 20171126
6581 configured by $0, generated by GNU Autoconf 2.64,
6582   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6583
6584 Copyright (C) 2009 Free Software Foundation, Inc.
6585 This config.status script is free software; the Free Software Foundation
6586 gives unlimited permission to copy, distribute and modify it."
6587
6588 ac_pwd='$ac_pwd'
6589 srcdir='$srcdir'
6590 INSTALL='$INSTALL'
6591 test -n "\$AWK" || AWK=awk
6592 _ACEOF
6593
6594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6595 # The default lists apply if the user does not specify any file.
6596 ac_need_defaults=:
6597 while test $# != 0
6598 do
6599   case $1 in
6600   --*=*)
6601     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6602     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6603     ac_shift=:
6604     ;;
6605   *)
6606     ac_option=$1
6607     ac_optarg=$2
6608     ac_shift=shift
6609     ;;
6610   esac
6611
6612   case $ac_option in
6613   # Handling of the options.
6614   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6615     ac_cs_recheck=: ;;
6616   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6617     $as_echo "$ac_cs_version"; exit ;;
6618   --debug | --debu | --deb | --de | --d | -d )
6619     debug=: ;;
6620   --file | --fil | --fi | --f )
6621     $ac_shift
6622     case $ac_optarg in
6623     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6624     esac
6625     as_fn_append CONFIG_FILES " '$ac_optarg'"
6626     ac_need_defaults=false;;
6627   --header | --heade | --head | --hea )
6628     $ac_shift
6629     case $ac_optarg in
6630     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6631     esac
6632     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6633     ac_need_defaults=false;;
6634   --he | --h)
6635     # Conflict between --help and --header
6636     as_fn_error "ambiguous option: \`$1'
6637 Try \`$0 --help' for more information.";;
6638   --help | --hel | -h )
6639     $as_echo "$ac_cs_usage"; exit ;;
6640   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6641   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6642     ac_cs_silent=: ;;
6643
6644   # This is an error.
6645   -*) as_fn_error "unrecognized option: \`$1'
6646 Try \`$0 --help' for more information." ;;
6647
6648   *) as_fn_append ac_config_targets " $1"
6649      ac_need_defaults=false ;;
6650
6651   esac
6652   shift
6653 done
6654
6655 ac_configure_extra_args=
6656
6657 if $ac_cs_silent; then
6658   exec 6>/dev/null
6659   ac_configure_extra_args="$ac_configure_extra_args --silent"
6660 fi
6661
6662 _ACEOF
6663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6664 if \$ac_cs_recheck; then
6665   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6666   shift
6667   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6668   CONFIG_SHELL='$SHELL'
6669   export CONFIG_SHELL
6670   exec "\$@"
6671 fi
6672
6673 _ACEOF
6674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6675 exec 5>>config.log
6676 {
6677   echo
6678   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6679 ## Running $as_me. ##
6680 _ASBOX
6681   $as_echo "$ac_log"
6682 } >&5
6683
6684 _ACEOF
6685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6686 _ACEOF
6687
6688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6689
6690 # Handling of arguments.
6691 for ac_config_target in $ac_config_targets
6692 do
6693   case $ac_config_target in
6694     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6695     "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
6696     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
6697     "make-bootstrap.sh") CONFIG_FILES="$CONFIG_FILES make-bootstrap.sh" ;;
6698     "unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;;
6699
6700   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6701   esac
6702 done
6703
6704
6705 # If the user did not use the arguments to specify the items to instantiate,
6706 # then the envvar interface is used.  Set only those that are not.
6707 # We use the long form for the default assignment because of an extremely
6708 # bizarre bug on SunOS 4.1.3.
6709 if $ac_need_defaults; then
6710   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6711   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6712 fi
6713
6714 # Have a temporary directory for convenience.  Make it in the build tree
6715 # simply because there is no reason against having it here, and in addition,
6716 # creating and moving files from /tmp can sometimes cause problems.
6717 # Hook for its removal unless debugging.
6718 # Note that there is a small window in which the directory will not be cleaned:
6719 # after its creation but before its name has been assigned to `$tmp'.
6720 $debug ||
6721 {
6722   tmp=
6723   trap 'exit_status=$?
6724   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6725 ' 0
6726   trap 'as_fn_exit 1' 1 2 13 15
6727 }
6728 # Create a (secure) tmp directory for tmp files.
6729
6730 {
6731   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6732   test -n "$tmp" && test -d "$tmp"
6733 }  ||
6734 {
6735   tmp=./conf$$-$RANDOM
6736   (umask 077 && mkdir "$tmp")
6737 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6738
6739 # Set up the scripts for CONFIG_FILES section.
6740 # No need to generate them if there are no CONFIG_FILES.
6741 # This happens for instance with `./config.status config.h'.
6742 if test -n "$CONFIG_FILES"; then
6743
6744
6745 ac_cr=`echo X | tr X '\015'`
6746 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6747 # But we know of no other shell where ac_cr would be empty at this
6748 # point, so we can use a bashism as a fallback.
6749 if test "x$ac_cr" = x; then
6750   eval ac_cr=\$\'\\r\'
6751 fi
6752 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6754   ac_cs_awk_cr='\r'
6755 else
6756   ac_cs_awk_cr=$ac_cr
6757 fi
6758
6759 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6760 _ACEOF
6761
6762
6763 {
6764   echo "cat >conf$$subs.awk <<_ACEOF" &&
6765   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6766   echo "_ACEOF"
6767 } >conf$$subs.sh ||
6768   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6770 ac_delim='%!_!# '
6771 for ac_last_try in false false false false false :; do
6772   . ./conf$$subs.sh ||
6773     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6774
6775   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6776   if test $ac_delim_n = $ac_delim_num; then
6777     break
6778   elif $ac_last_try; then
6779     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6780   else
6781     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6782   fi
6783 done
6784 rm -f conf$$subs.sh
6785
6786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6787 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6788 _ACEOF
6789 sed -n '
6790 h
6791 s/^/S["/; s/!.*/"]=/
6792 p
6793 g
6794 s/^[^!]*!//
6795 :repl
6796 t repl
6797 s/'"$ac_delim"'$//
6798 t delim
6799 :nl
6800 h
6801 s/\(.\{148\}\).*/\1/
6802 t more1
6803 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6804 p
6805 n
6806 b repl
6807 :more1
6808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6809 p
6810 g
6811 s/.\{148\}//
6812 t nl
6813 :delim
6814 h
6815 s/\(.\{148\}\).*/\1/
6816 t more2
6817 s/["\\]/\\&/g; s/^/"/; s/$/"/
6818 p
6819 b
6820 :more2
6821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6822 p
6823 g
6824 s/.\{148\}//
6825 t delim
6826 ' <conf$$subs.awk | sed '
6827 /^[^""]/{
6828   N
6829   s/\n//
6830 }
6831 ' >>$CONFIG_STATUS || ac_write_fail=1
6832 rm -f conf$$subs.awk
6833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6834 _ACAWK
6835 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6836   for (key in S) S_is_set[key] = 1
6837   FS = "\a"
6838
6839 }
6840 {
6841   line = $ 0
6842   nfields = split(line, field, "@")
6843   substed = 0
6844   len = length(field[1])
6845   for (i = 2; i < nfields; i++) {
6846     key = field[i]
6847     keylen = length(key)
6848     if (S_is_set[key]) {
6849       value = S[key]
6850       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6851       len += length(value) + length(field[++i])
6852       substed = 1
6853     } else
6854       len += 1 + keylen
6855   }
6856
6857   print line
6858 }
6859
6860 _ACAWK
6861 _ACEOF
6862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6863 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6864   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6865 else
6866   cat
6867 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6868   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6869 _ACEOF
6870
6871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6873 # trailing colons and then remove the whole line if VPATH becomes empty
6874 # (actually we leave an empty line to preserve line numbers).
6875 if test "x$srcdir" = x.; then
6876   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6877 s/:*\$(srcdir):*/:/
6878 s/:*\${srcdir}:*/:/
6879 s/:*@srcdir@:*/:/
6880 s/^\([^=]*=[     ]*\):*/\1/
6881 s/:*$//
6882 s/^[^=]*=[       ]*$//
6883 }'
6884 fi
6885
6886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6887 fi # test -n "$CONFIG_FILES"
6888
6889 # Set up the scripts for CONFIG_HEADERS section.
6890 # No need to generate them if there are no CONFIG_HEADERS.
6891 # This happens for instance with `./config.status Makefile'.
6892 if test -n "$CONFIG_HEADERS"; then
6893 cat >"$tmp/defines.awk" <<\_ACAWK ||
6894 BEGIN {
6895 _ACEOF
6896
6897 # Transform confdefs.h into an awk script `defines.awk', embedded as
6898 # here-document in config.status, that substitutes the proper values into
6899 # config.h.in to produce config.h.
6900
6901 # Create a delimiter string that does not exist in confdefs.h, to ease
6902 # handling of long lines.
6903 ac_delim='%!_!# '
6904 for ac_last_try in false false :; do
6905   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6906   if test -z "$ac_t"; then
6907     break
6908   elif $ac_last_try; then
6909     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6910   else
6911     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6912   fi
6913 done
6914
6915 # For the awk script, D is an array of macro values keyed by name,
6916 # likewise P contains macro parameters if any.  Preserve backslash
6917 # newline sequences.
6918
6919 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6920 sed -n '
6921 s/.\{148\}/&'"$ac_delim"'/g
6922 t rset
6923 :rset
6924 s/^[     ]*#[    ]*define[       ][      ]*/ /
6925 t def
6926 d
6927 :def
6928 s/\\$//
6929 t bsnl
6930 s/["\\]/\\&/g
6931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6932 D["\1"]=" \3"/p
6933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6934 d
6935 :bsnl
6936 s/["\\]/\\&/g
6937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6938 D["\1"]=" \3\\\\\\n"\\/p
6939 t cont
6940 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6941 t cont
6942 d
6943 :cont
6944 n
6945 s/.\{148\}/&'"$ac_delim"'/g
6946 t clear
6947 :clear
6948 s/\\$//
6949 t bsnlc
6950 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6951 d
6952 :bsnlc
6953 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6954 b cont
6955 ' <confdefs.h | sed '
6956 s/'"$ac_delim"'/"\\\
6957 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6958
6959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6960   for (key in D) D_is_set[key] = 1
6961   FS = "\a"
6962 }
6963 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6964   line = \$ 0
6965   split(line, arg, " ")
6966   if (arg[1] == "#") {
6967     defundef = arg[2]
6968     mac1 = arg[3]
6969   } else {
6970     defundef = substr(arg[1], 2)
6971     mac1 = arg[2]
6972   }
6973   split(mac1, mac2, "(") #)
6974   macro = mac2[1]
6975   prefix = substr(line, 1, index(line, defundef) - 1)
6976   if (D_is_set[macro]) {
6977     # Preserve the white space surrounding the "#".
6978     print prefix "define", macro P[macro] D[macro]
6979     next
6980   } else {
6981     # Replace #undef with comments.  This is necessary, for example,
6982     # in the case of _POSIX_SOURCE, which is predefined and required
6983     # on some systems where configure will not decide to define it.
6984     if (defundef == "undef") {
6985       print "/*", prefix defundef, macro, "*/"
6986       next
6987     }
6988   }
6989 }
6990 { print }
6991 _ACAWK
6992 _ACEOF
6993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6994   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6995 fi # test -n "$CONFIG_HEADERS"
6996
6997
6998 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6999 shift
7000 for ac_tag
7001 do
7002   case $ac_tag in
7003   :[FHLC]) ac_mode=$ac_tag; continue;;
7004   esac
7005   case $ac_mode$ac_tag in
7006   :[FHL]*:*);;
7007   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7008   :[FH]-) ac_tag=-:-;;
7009   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7010   esac
7011   ac_save_IFS=$IFS
7012   IFS=:
7013   set x $ac_tag
7014   IFS=$ac_save_IFS
7015   shift
7016   ac_file=$1
7017   shift
7018
7019   case $ac_mode in
7020   :L) ac_source=$1;;
7021   :[FH])
7022     ac_file_inputs=
7023     for ac_f
7024     do
7025       case $ac_f in
7026       -) ac_f="$tmp/stdin";;
7027       *) # Look for the file first in the build tree, then in the source tree
7028          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7029          # because $ac_f cannot contain `:'.
7030          test -f "$ac_f" ||
7031            case $ac_f in
7032            [\\/$]*) false;;
7033            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7034            esac ||
7035            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7036       esac
7037       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7038       as_fn_append ac_file_inputs " '$ac_f'"
7039     done
7040
7041     # Let's still pretend it is `configure' which instantiates (i.e., don't
7042     # use $as_me), people would be surprised to read:
7043     #    /* config.h.  Generated by config.status.  */
7044     configure_input='Generated from '`
7045           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7046         `' by configure.'
7047     if test x"$ac_file" != x-; then
7048       configure_input="$ac_file.  $configure_input"
7049       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7050 $as_echo "$as_me: creating $ac_file" >&6;}
7051     fi
7052     # Neutralize special characters interpreted by sed in replacement strings.
7053     case $configure_input in #(
7054     *\&* | *\|* | *\\* )
7055        ac_sed_conf_input=`$as_echo "$configure_input" |
7056        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7057     *) ac_sed_conf_input=$configure_input;;
7058     esac
7059
7060     case $ac_tag in
7061     *:-:* | *:-) cat >"$tmp/stdin" \
7062       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7063     esac
7064     ;;
7065   esac
7066
7067   ac_dir=`$as_dirname -- "$ac_file" ||
7068 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7069          X"$ac_file" : 'X\(//\)[^/]' \| \
7070          X"$ac_file" : 'X\(//\)$' \| \
7071          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7072 $as_echo X"$ac_file" |
7073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7074             s//\1/
7075             q
7076           }
7077           /^X\(\/\/\)[^/].*/{
7078             s//\1/
7079             q
7080           }
7081           /^X\(\/\/\)$/{
7082             s//\1/
7083             q
7084           }
7085           /^X\(\/\).*/{
7086             s//\1/
7087             q
7088           }
7089           s/.*/./; q'`
7090   as_dir="$ac_dir"; as_fn_mkdir_p
7091   ac_builddir=.
7092
7093 case "$ac_dir" in
7094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7095 *)
7096   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7097   # A ".." for each directory in $ac_dir_suffix.
7098   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7099   case $ac_top_builddir_sub in
7100   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7101   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7102   esac ;;
7103 esac
7104 ac_abs_top_builddir=$ac_pwd
7105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7106 # for backward compatibility:
7107 ac_top_builddir=$ac_top_build_prefix
7108
7109 case $srcdir in
7110   .)  # We are building in place.
7111     ac_srcdir=.
7112     ac_top_srcdir=$ac_top_builddir_sub
7113     ac_abs_top_srcdir=$ac_pwd ;;
7114   [\\/]* | ?:[\\/]* )  # Absolute name.
7115     ac_srcdir=$srcdir$ac_dir_suffix;
7116     ac_top_srcdir=$srcdir
7117     ac_abs_top_srcdir=$srcdir ;;
7118   *) # Relative name.
7119     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7120     ac_top_srcdir=$ac_top_build_prefix$srcdir
7121     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7122 esac
7123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7124
7125
7126   case $ac_mode in
7127   :F)
7128   #
7129   # CONFIG_FILE
7130   #
7131
7132   case $INSTALL in
7133   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7134   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7135   esac
7136 _ACEOF
7137
7138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7139 # If the template does not know about datarootdir, expand it.
7140 # FIXME: This hack should be removed a few years after 2.60.
7141 ac_datarootdir_hack=; ac_datarootdir_seen=
7142 ac_sed_dataroot='
7143 /datarootdir/ {
7144   p
7145   q
7146 }
7147 /@datadir@/p
7148 /@docdir@/p
7149 /@infodir@/p
7150 /@localedir@/p
7151 /@mandir@/p'
7152 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7153 *datarootdir*) ac_datarootdir_seen=yes;;
7154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7156 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7157 _ACEOF
7158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7159   ac_datarootdir_hack='
7160   s&@datadir@&$datadir&g
7161   s&@docdir@&$docdir&g
7162   s&@infodir@&$infodir&g
7163   s&@localedir@&$localedir&g
7164   s&@mandir@&$mandir&g
7165   s&\\\${datarootdir}&$datarootdir&g' ;;
7166 esac
7167 _ACEOF
7168
7169 # Neutralize VPATH when `$srcdir' = `.'.
7170 # Shell code in configure.ac might set extrasub.
7171 # FIXME: do we really want to maintain this feature?
7172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7173 ac_sed_extra="$ac_vpsub
7174 $extrasub
7175 _ACEOF
7176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7177 :t
7178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7179 s|@configure_input@|$ac_sed_conf_input|;t t
7180 s&@top_builddir@&$ac_top_builddir_sub&;t t
7181 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7182 s&@srcdir@&$ac_srcdir&;t t
7183 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7184 s&@top_srcdir@&$ac_top_srcdir&;t t
7185 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7186 s&@builddir@&$ac_builddir&;t t
7187 s&@abs_builddir@&$ac_abs_builddir&;t t
7188 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7189 s&@INSTALL@&$ac_INSTALL&;t t
7190 $ac_datarootdir_hack
7191 "
7192 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7193   || as_fn_error "could not create $ac_file" "$LINENO" 5
7194
7195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7196   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7197   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7199 which seems to be undefined.  Please make sure it is defined." >&5
7200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7201 which seems to be undefined.  Please make sure it is defined." >&2;}
7202
7203   rm -f "$tmp/stdin"
7204   case $ac_file in
7205   -) cat "$tmp/out" && rm -f "$tmp/out";;
7206   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7207   esac \
7208   || as_fn_error "could not create $ac_file" "$LINENO" 5
7209  ;;
7210   :H)
7211   #
7212   # CONFIG_HEADER
7213   #
7214   if test x"$ac_file" != x-; then
7215     {
7216       $as_echo "/* $configure_input  */" \
7217       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7218     } >"$tmp/config.h" \
7219       || as_fn_error "could not create $ac_file" "$LINENO" 5
7220     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7221       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7223     else
7224       rm -f "$ac_file"
7225       mv "$tmp/config.h" "$ac_file" \
7226         || as_fn_error "could not create $ac_file" "$LINENO" 5
7227     fi
7228   else
7229     $as_echo "/* $configure_input  */" \
7230       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7231       || as_fn_error "could not create -" "$LINENO" 5
7232   fi
7233  ;;
7234
7235
7236   esac
7237
7238 done # for ac_tag
7239
7240
7241 as_fn_exit 0
7242 _ACEOF
7243 ac_clean_files=$ac_clean_files_save
7244
7245 test $ac_write_fail = 0 ||
7246   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7247
7248
7249 # configure is writing to config.log, and then calls config.status.
7250 # config.status does its own redirection, appending to config.log.
7251 # Unfortunately, on DOS this fails, as config.log is still kept open
7252 # by configure, so config.status won't be able to write to it; its
7253 # output is simply discarded.  So we exec the FD to /dev/null,
7254 # effectively closing config.log, so it can be properly (re)opened and
7255 # appended to by config.status.  When coming back to configure, we
7256 # need to make the FD available again.
7257 if test "$no_create" != yes; then
7258   ac_cs_success=:
7259   ac_config_status_args=
7260   test "$silent" = yes &&
7261     ac_config_status_args="$ac_config_status_args --quiet"
7262   exec 5>/dev/null
7263   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7264   exec 5>>config.log
7265   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7266   # would make configure fail if this is the last instruction.
7267   $ac_cs_success || as_fn_exit $?
7268 fi
7269 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7271 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7272 fi
7273
7274
7275 cat <<EOF
7276
7277 You can now run
7278
7279         sh ./make-bootstrap.sh
7280
7281 to produce a fully functional bmake.
7282
7283 EOF