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