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