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