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