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