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