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