xref: /freebsd/contrib/bmake/configure (revision 1719886f)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for bmake 20240212.
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='20240212'
614PACKAGE_STRING='bmake 20240212'
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 20240212 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 20240212:";;
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 20240212
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 20240212, 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" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
5218if test "x$ac_cv_header_regex_h" = xyes
5219then :
5220  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
5221
5222fi
5223ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
5224if test "x$ac_cv_header_sys_mman_h" = xyes
5225then :
5226  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
5227
5228fi
5229ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5230if test "x$ac_cv_header_sys_select_h" = xyes
5231then :
5232  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5233
5234fi
5235ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
5236if test "x$ac_cv_header_sys_socket_h" = xyes
5237then :
5238  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
5239
5240fi
5241ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5242if test "x$ac_cv_header_sys_time_h" = xyes
5243then :
5244  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5245
5246fi
5247ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
5248if test "x$ac_cv_header_sys_uio_h" = xyes
5249then :
5250  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
5251
5252fi
5253ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
5254if test "x$ac_cv_header_utime_h" = xyes
5255then :
5256  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
5257
5258fi
5259
5260
5261ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
5262if test "x$ac_cv_header_sys_cdefs_h" = xyes
5263then :
5264
5265else $as_nop
5266  CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
5267fi
5268
5269
5270
5271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5272printf %s "checking for __attribute__... " >&6; }
5273if test ${ac_cv___attribute__+y}
5274then :
5275  printf %s "(cached) " >&6
5276else $as_nop
5277
5278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280
5281#include <stdlib.h>
5282
5283static void foo(void) __attribute__ ((noreturn));
5284
5285static void
5286foo(void)
5287{
5288  exit(1);
5289}
5290
5291int
5292main(int argc, char **argv)
5293{
5294	foo();
5295}
5296
5297_ACEOF
5298if ac_fn_c_try_link "$LINENO"
5299then :
5300  ac_cv___attribute__=yes
5301else $as_nop
5302  ac_cv___attribute__=no
5303fi
5304rm -f core conftest.err conftest.$ac_objext conftest.beam \
5305    conftest$ac_exeext conftest.$ac_ext
5306fi
5307
5308if test "$ac_cv___attribute__" = "yes"; then
5309
5310printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
5311
5312fi
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
5314printf "%s\n" "$ac_cv___attribute__" >&6; }
5315
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5317printf %s "checking whether byte ordering is bigendian... " >&6; }
5318if test ${ac_cv_c_bigendian+y}
5319then :
5320  printf %s "(cached) " >&6
5321else $as_nop
5322  ac_cv_c_bigendian=unknown
5323    # See if we're dealing with a universal compiler.
5324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326#ifndef __APPLE_CC__
5327	       not a universal capable compiler
5328	     #endif
5329	     typedef int dummy;
5330
5331_ACEOF
5332if ac_fn_c_try_compile "$LINENO"
5333then :
5334
5335	# Check for potential -arch flags.  It is not universal unless
5336	# there are at least two -arch flags with different values.
5337	ac_arch=
5338	ac_prev=
5339	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5340	 if test -n "$ac_prev"; then
5341	   case $ac_word in
5342	     i?86 | x86_64 | ppc | ppc64)
5343	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5344		 ac_arch=$ac_word
5345	       else
5346		 ac_cv_c_bigendian=universal
5347		 break
5348	       fi
5349	       ;;
5350	   esac
5351	   ac_prev=
5352	 elif test "x$ac_word" = "x-arch"; then
5353	   ac_prev=arch
5354	 fi
5355       done
5356fi
5357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5358    if test $ac_cv_c_bigendian = unknown; then
5359      # See if sys/param.h defines the BYTE_ORDER macro.
5360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362#include <sys/types.h>
5363	     #include <sys/param.h>
5364
5365int
5366main (void)
5367{
5368#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5369		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5370		     && LITTLE_ENDIAN)
5371	      bogus endian macros
5372	     #endif
5373
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_compile "$LINENO"
5379then :
5380  # It does; now see whether it defined to BIG_ENDIAN or not.
5381	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h.  */
5383#include <sys/types.h>
5384		#include <sys/param.h>
5385
5386int
5387main (void)
5388{
5389#if BYTE_ORDER != BIG_ENDIAN
5390		 not big endian
5391		#endif
5392
5393  ;
5394  return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"
5398then :
5399  ac_cv_c_bigendian=yes
5400else $as_nop
5401  ac_cv_c_bigendian=no
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5406    fi
5407    if test $ac_cv_c_bigendian = unknown; then
5408      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5409      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411#include <limits.h>
5412
5413int
5414main (void)
5415{
5416#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5417	      bogus endian macros
5418	     #endif
5419
5420  ;
5421  return 0;
5422}
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"
5425then :
5426  # It does; now see whether it defined to _BIG_ENDIAN or not.
5427	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429#include <limits.h>
5430
5431int
5432main (void)
5433{
5434#ifndef _BIG_ENDIAN
5435		 not big endian
5436		#endif
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442if ac_fn_c_try_compile "$LINENO"
5443then :
5444  ac_cv_c_bigendian=yes
5445else $as_nop
5446  ac_cv_c_bigendian=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451    fi
5452    if test $ac_cv_c_bigendian = unknown; then
5453      # Compile a test program.
5454      if test "$cross_compiling" = yes
5455then :
5456  # Try to guess by grepping values from an object file.
5457	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459unsigned short int ascii_mm[] =
5460		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5461		unsigned short int ascii_ii[] =
5462		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5463		int use_ascii (int i) {
5464		  return ascii_mm[i] + ascii_ii[i];
5465		}
5466		unsigned short int ebcdic_ii[] =
5467		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5468		unsigned short int ebcdic_mm[] =
5469		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5470		int use_ebcdic (int i) {
5471		  return ebcdic_mm[i] + ebcdic_ii[i];
5472		}
5473		extern int foo;
5474
5475int
5476main (void)
5477{
5478return use_ascii (foo) == use_ebcdic (foo);
5479  ;
5480  return 0;
5481}
5482_ACEOF
5483if ac_fn_c_try_compile "$LINENO"
5484then :
5485  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5486	      ac_cv_c_bigendian=yes
5487	    fi
5488	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5489	      if test "$ac_cv_c_bigendian" = unknown; then
5490		ac_cv_c_bigendian=no
5491	      else
5492		# finding both strings is unlikely to happen, but who knows?
5493		ac_cv_c_bigendian=unknown
5494	      fi
5495	    fi
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5498else $as_nop
5499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h.  */
5501$ac_includes_default
5502int
5503main (void)
5504{
5505
5506	     /* Are we little or big endian?  From Harbison&Steele.  */
5507	     union
5508	     {
5509	       long int l;
5510	       char c[sizeof (long int)];
5511	     } u;
5512	     u.l = 1;
5513	     return u.c[sizeof (long int) - 1] == 1;
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519if ac_fn_c_try_run "$LINENO"
5520then :
5521  ac_cv_c_bigendian=no
5522else $as_nop
5523  ac_cv_c_bigendian=yes
5524fi
5525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5526  conftest.$ac_objext conftest.beam conftest.$ac_ext
5527fi
5528
5529    fi
5530fi
5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5532printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5533 case $ac_cv_c_bigendian in #(
5534   yes)
5535     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5536;; #(
5537   no)
5538      ;; #(
5539   universal)
5540
5541printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5542
5543     ;; #(
5544   *)
5545     as_fn_error $? "unknown endianness
5546 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5547 esac
5548
5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5550printf %s "checking for an ANSI C-conforming const... " >&6; }
5551if test ${ac_cv_c_const+y}
5552then :
5553  printf %s "(cached) " >&6
5554else $as_nop
5555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557
5558int
5559main (void)
5560{
5561
5562#ifndef __cplusplus
5563  /* Ultrix mips cc rejects this sort of thing.  */
5564  typedef int charset[2];
5565  const charset cs = { 0, 0 };
5566  /* SunOS 4.1.1 cc rejects this.  */
5567  char const *const *pcpcc;
5568  char **ppc;
5569  /* NEC SVR4.0.2 mips cc rejects this.  */
5570  struct point {int x, y;};
5571  static struct point const zero = {0,0};
5572  /* IBM XL C 1.02.0.0 rejects this.
5573     It does not let you subtract one const X* pointer from another in
5574     an arm of an if-expression whose if-part is not a constant
5575     expression */
5576  const char *g = "string";
5577  pcpcc = &g + (g ? g-g : 0);
5578  /* HPUX 7.0 cc rejects these. */
5579  ++pcpcc;
5580  ppc = (char**) pcpcc;
5581  pcpcc = (char const *const *) ppc;
5582  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5583    char tx;
5584    char *t = &tx;
5585    char const *s = 0 ? (char *) 0 : (char const *) 0;
5586
5587    *t++ = 0;
5588    if (s) return 0;
5589  }
5590  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5591    int x[] = {25, 17};
5592    const int *foo = &x[0];
5593    ++foo;
5594  }
5595  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5596    typedef const int *iptr;
5597    iptr p = 0;
5598    ++p;
5599  }
5600  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5601       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5602    struct s { int j; const int *ap[3]; } bx;
5603    struct s *b = &bx; b->j = 5;
5604  }
5605  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5606    const int foo = 10;
5607    if (!foo) return 0;
5608  }
5609  return !cs[0] && !zero.x;
5610#endif
5611
5612  ;
5613  return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"
5617then :
5618  ac_cv_c_const=yes
5619else $as_nop
5620  ac_cv_c_const=no
5621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5623fi
5624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5625printf "%s\n" "$ac_cv_c_const" >&6; }
5626if test $ac_cv_c_const = no; then
5627
5628printf "%s\n" "#define const /**/" >>confdefs.h
5629
5630fi
5631
5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5633printf %s "checking for inline... " >&6; }
5634if test ${ac_cv_c_inline+y}
5635then :
5636  printf %s "(cached) " >&6
5637else $as_nop
5638  ac_cv_c_inline=no
5639for ac_kw in inline __inline__ __inline; do
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642#ifndef __cplusplus
5643typedef int foo_t;
5644static $ac_kw foo_t static_foo (void) {return 0; }
5645$ac_kw foo_t foo (void) {return 0; }
5646#endif
5647
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"
5650then :
5651  ac_cv_c_inline=$ac_kw
5652fi
5653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5654  test "$ac_cv_c_inline" != no && break
5655done
5656
5657fi
5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5659printf "%s\n" "$ac_cv_c_inline" >&6; }
5660
5661case $ac_cv_c_inline in
5662  inline | yes) ;;
5663  *)
5664    case $ac_cv_c_inline in
5665      no) ac_val=;;
5666      *) ac_val=$ac_cv_c_inline;;
5667    esac
5668    cat >>confdefs.h <<_ACEOF
5669#ifndef __cplusplus
5670#define inline $ac_val
5671#endif
5672_ACEOF
5673    ;;
5674esac
5675
5676ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5677case $ac_cv_c_int64_t in #(
5678  no|yes) ;; #(
5679  *)
5680
5681printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
5682;;
5683esac
5684
5685
5686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5687printf %s "checking for unsigned long long int... " >&6; }
5688if test ${ac_cv_type_unsigned_long_long_int+y}
5689then :
5690  printf %s "(cached) " >&6
5691else $as_nop
5692  ac_cv_type_unsigned_long_long_int=yes
5693     case $ac_prog_cc_stdc in
5694       no | c89) ;;
5695       *)
5696	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698
5699  /* For now, do not test the preprocessor; as of 2007 there are too many
5700	 implementations with broken preprocessors.  Perhaps this can
5701	 be revisited in 2012.  In the meantime, code should not expect
5702	 #if to work with literals wider than 32 bits.  */
5703      /* Test literals.  */
5704      long long int ll = 9223372036854775807ll;
5705      long long int nll = -9223372036854775807LL;
5706      unsigned long long int ull = 18446744073709551615ULL;
5707      /* Test constant expressions.   */
5708      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5709		     ? 1 : -1)];
5710      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5711		     ? 1 : -1)];
5712      int i = 63;
5713int
5714main (void)
5715{
5716/* Test availability of runtime routines for shift and division.  */
5717      long long int llmax = 9223372036854775807ll;
5718      unsigned long long int ullmax = 18446744073709551615ull;
5719      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5720	      | (llmax / ll) | (llmax % ll)
5721	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5722	      | (ullmax / ull) | (ullmax % ull));
5723  ;
5724  return 0;
5725}
5726
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"
5729then :
5730
5731else $as_nop
5732  ac_cv_type_unsigned_long_long_int=no
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.beam \
5735    conftest$ac_exeext conftest.$ac_ext;;
5736     esac
5737fi
5738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5739printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
5740  if test $ac_cv_type_unsigned_long_long_int = yes; then
5741
5742printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5743
5744  fi
5745
5746
5747
5748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5749printf %s "checking for long long int... " >&6; }
5750if test ${ac_cv_type_long_long_int+y}
5751then :
5752  printf %s "(cached) " >&6
5753else $as_nop
5754  ac_cv_type_long_long_int=yes
5755      case $ac_prog_cc_stdc in
5756	no | c89) ;;
5757	*)
5758	  ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5759	  if test $ac_cv_type_long_long_int = yes; then
5760	    	    	    	    if test "$cross_compiling" = yes
5761then :
5762  :
5763else $as_nop
5764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h.  */
5766#include <limits.h>
5767		   #ifndef LLONG_MAX
5768		   # define HALF \
5769			    (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5770		   # define LLONG_MAX (HALF - 1 + HALF)
5771		   #endif
5772int
5773main (void)
5774{
5775long long int n = 1;
5776		   int i;
5777		   for (i = 0; ; i++)
5778		     {
5779		       long long int m = n << i;
5780		       if (m >> i != n)
5781			 return 1;
5782		       if (LLONG_MAX / 2 < m)
5783			 break;
5784		     }
5785		   return 0;
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790if ac_fn_c_try_run "$LINENO"
5791then :
5792
5793else $as_nop
5794  ac_cv_type_long_long_int=no
5795fi
5796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5797  conftest.$ac_objext conftest.beam conftest.$ac_ext
5798fi
5799
5800	  fi;;
5801      esac
5802fi
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5804printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
5805  if test $ac_cv_type_long_long_int = yes; then
5806
5807printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5808
5809  fi
5810
5811ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5812if test "x$ac_cv_type_mode_t" = xyes
5813then :
5814
5815else $as_nop
5816
5817printf "%s\n" "#define mode_t int" >>confdefs.h
5818
5819fi
5820
5821ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5822if test "x$ac_cv_type_off_t" = xyes
5823then :
5824
5825else $as_nop
5826
5827printf "%s\n" "#define off_t long int" >>confdefs.h
5828
5829fi
5830
5831
5832  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
5833"
5834if test "x$ac_cv_type_pid_t" = xyes
5835then :
5836
5837else $as_nop
5838                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h.  */
5840
5841          #if defined _WIN64 && !defined __CYGWIN__
5842          LLP64
5843          #endif
5844
5845int
5846main (void)
5847{
5848
5849  ;
5850  return 0;
5851}
5852
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"
5855then :
5856  ac_pid_type='int'
5857else $as_nop
5858  ac_pid_type='__int64'
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5861
5862printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
5863
5864
5865fi
5866
5867
5868ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5869if test "x$ac_cv_type_size_t" = xyes
5870then :
5871
5872else $as_nop
5873
5874printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5875
5876fi
5877
5878ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5879case $ac_cv_c_uint32_t in #(
5880  no|yes) ;; #(
5881  *)
5882
5883printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
5884
5885
5886printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
5887;;
5888  esac
5889
5890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5891printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5892if test ${ac_cv_c_undeclared_builtin_options+y}
5893then :
5894  printf %s "(cached) " >&6
5895else $as_nop
5896  ac_save_CFLAGS=$CFLAGS
5897   ac_cv_c_undeclared_builtin_options='cannot detect'
5898   for ac_arg in '' -fno-builtin; do
5899     CFLAGS="$ac_save_CFLAGS $ac_arg"
5900     # This test program should *not* compile successfully.
5901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903
5904int
5905main (void)
5906{
5907(void) strchr;
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"
5913then :
5914
5915else $as_nop
5916  # This test program should compile successfully.
5917        # No library function is consistently available on
5918        # freestanding implementations, so test against a dummy
5919        # declaration.  Include always-available headers on the
5920        # off chance that they somehow elicit warnings.
5921        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923#include <float.h>
5924#include <limits.h>
5925#include <stdarg.h>
5926#include <stddef.h>
5927extern void ac_decl (int, char *);
5928
5929int
5930main (void)
5931{
5932(void) ac_decl (0, (char *) 0);
5933  (void) ac_decl;
5934
5935  ;
5936  return 0;
5937}
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"
5940then :
5941  if test x"$ac_arg" = x
5942then :
5943  ac_cv_c_undeclared_builtin_options='none needed'
5944else $as_nop
5945  ac_cv_c_undeclared_builtin_options=$ac_arg
5946fi
5947          break
5948fi
5949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5950fi
5951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5952    done
5953    CFLAGS=$ac_save_CFLAGS
5954
5955fi
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5957printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5958  case $ac_cv_c_undeclared_builtin_options in #(
5959  'cannot detect') :
5960    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5961printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5962as_fn_error $? "cannot make $CC report undeclared builtins
5963See \`config.log' for more details" "$LINENO" 5; } ;; #(
5964  'none needed') :
5965    ac_c_undeclared_builtin_options='' ;; #(
5966  *) :
5967    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5968esac
5969
5970ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5971/* NetBSD declares sys_siglist in unistd.h.  */
5972#ifdef HAVE_UNISTD_H
5973# include <unistd.h>
5974#endif
5975
5976" "$ac_c_undeclared_builtin_options" "CFLAGS"
5977if test "x$ac_cv_have_decl_sys_siglist" = xyes
5978then :
5979  ac_have_decl=1
5980else $as_nop
5981  ac_have_decl=0
5982fi
5983printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
5984
5985
5986
5987
5988
5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5990printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5991if test ${ac_cv_struct_tm+y}
5992then :
5993  printf %s "(cached) " >&6
5994else $as_nop
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997#include <sys/types.h>
5998#include <time.h>
5999
6000int
6001main (void)
6002{
6003struct tm tm;
6004				     int *p = &tm.tm_sec;
6005				     return !p;
6006  ;
6007  return 0;
6008}
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"
6011then :
6012  ac_cv_struct_tm=time.h
6013else $as_nop
6014  ac_cv_struct_tm=sys/time.h
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017fi
6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6019printf "%s\n" "$ac_cv_struct_tm" >&6; }
6020if test $ac_cv_struct_tm = sys/time.h; then
6021
6022printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
6023
6024fi
6025
6026
6027
6028ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
6029#ifdef HAVE_SYS_TYPES_H
6030#include <sys/types.h>
6031#endif
6032#include <signal.h>
6033
6034"
6035if test "x$ac_cv_type_sig_atomic_t" = xyes
6036then :
6037
6038printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
6039
6040
6041fi
6042
6043
6044
6045ac_func=
6046for ac_item in $ac_func_c_list
6047do
6048  if test $ac_func; then
6049    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6050    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6051      echo "#define $ac_item 1" >> confdefs.h
6052    fi
6053    ac_func=
6054  else
6055    ac_func=$ac_item
6056  fi
6057done
6058
6059
6060
6061if test "x$ac_cv_func_fork" = xyes; then
6062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6063printf %s "checking for working fork... " >&6; }
6064if test ${ac_cv_func_fork_works+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  if test "$cross_compiling" = yes
6069then :
6070  ac_cv_func_fork_works=cross
6071else $as_nop
6072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074$ac_includes_default
6075int
6076main (void)
6077{
6078
6079	  /* By Ruediger Kuhlmann. */
6080	  return fork () < 0;
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_run "$LINENO"
6087then :
6088  ac_cv_func_fork_works=yes
6089else $as_nop
6090  ac_cv_func_fork_works=no
6091fi
6092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6093  conftest.$ac_objext conftest.beam conftest.$ac_ext
6094fi
6095
6096fi
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6098printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6099
6100else
6101  ac_cv_func_fork_works=$ac_cv_func_fork
6102fi
6103if test "x$ac_cv_func_fork_works" = xcross; then
6104  case $host in
6105    *-*-amigaos* | *-*-msdosdjgpp*)
6106      # Override, as these systems have only a dummy fork() stub
6107      ac_cv_func_fork_works=no
6108      ;;
6109    *)
6110      ac_cv_func_fork_works=yes
6111      ;;
6112  esac
6113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6114printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6115fi
6116ac_cv_func_vfork_works=$ac_cv_func_vfork
6117if test "x$ac_cv_func_vfork" = xyes; then
6118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6119printf %s "checking for working vfork... " >&6; }
6120if test ${ac_cv_func_vfork_works+y}
6121then :
6122  printf %s "(cached) " >&6
6123else $as_nop
6124  if test "$cross_compiling" = yes
6125then :
6126  ac_cv_func_vfork_works=cross
6127else $as_nop
6128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h.  */
6130/* Thanks to Paul Eggert for this test.  */
6131$ac_includes_default
6132#include <signal.h>
6133#include <sys/wait.h>
6134#ifdef HAVE_VFORK_H
6135# include <vfork.h>
6136#endif
6137
6138static void
6139do_nothing (int sig)
6140{
6141  (void) sig;
6142}
6143
6144/* On some sparc systems, changes by the child to local and incoming
6145   argument registers are propagated back to the parent.  The compiler
6146   is told about this with #include <vfork.h>, but some compilers
6147   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
6148   static variable whose address is put into a register that is
6149   clobbered by the vfork.  */
6150static void
6151sparc_address_test (int arg)
6152{
6153  static pid_t child;
6154  if (!child) {
6155    child = vfork ();
6156    if (child < 0) {
6157      perror ("vfork");
6158      _exit(2);
6159    }
6160    if (!child) {
6161      arg = getpid();
6162      write(-1, "", 0);
6163      _exit (arg);
6164    }
6165  }
6166}
6167
6168int
6169main (void)
6170{
6171  pid_t parent = getpid ();
6172  pid_t child;
6173
6174  sparc_address_test (0);
6175
6176  /* On Solaris 2.4, changes by the child to the signal handler
6177     also munge signal handlers in the parent.  To detect this,
6178     start by putting the parent's handler in a known state.  */
6179  signal (SIGTERM, SIG_DFL);
6180
6181  child = vfork ();
6182
6183  if (child == 0) {
6184    /* Here is another test for sparc vfork register problems.  This
6185       test uses lots of local variables, at least as many local
6186       variables as main has allocated so far including compiler
6187       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
6188       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
6189       reuse the register of parent for one of the local variables,
6190       since it will think that parent can't possibly be used any more
6191       in this routine.  Assigning to the local variable will thus
6192       munge parent in the parent process.  */
6193    pid_t
6194      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6195      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6196    /* Convince the compiler that p..p7 are live; otherwise, it might
6197       use the same hardware register for all 8 local variables.  */
6198    if (p != p1 || p != p2 || p != p3 || p != p4
6199	|| p != p5 || p != p6 || p != p7)
6200      _exit(1);
6201
6202    /* Alter the child's signal handler.  */
6203    if (signal (SIGTERM, do_nothing) != SIG_DFL)
6204      _exit(1);
6205
6206    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6207       from child file descriptors.  If the child closes a descriptor
6208       before it execs or exits, this munges the parent's descriptor
6209       as well.  Test for this by closing stdout in the child.  */
6210    _exit(close(fileno(stdout)) != 0);
6211  } else {
6212    int status;
6213    struct stat st;
6214
6215    while (wait(&status) != child)
6216      ;
6217    return (
6218	 /* Was there some problem with vforking?  */
6219	 child < 0
6220
6221	 /* Did the child munge the parent's signal handler?  */
6222	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6223
6224	 /* Did the child fail?  (This shouldn't happen.)  */
6225	 || status
6226
6227	 /* Did the vfork/compiler bug occur?  */
6228	 || parent != getpid()
6229
6230	 /* Did the file descriptor bug occur?  */
6231	 || fstat(fileno(stdout), &st) != 0
6232	 );
6233  }
6234}
6235_ACEOF
6236if ac_fn_c_try_run "$LINENO"
6237then :
6238  ac_cv_func_vfork_works=yes
6239else $as_nop
6240  ac_cv_func_vfork_works=no
6241fi
6242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6243  conftest.$ac_objext conftest.beam conftest.$ac_ext
6244fi
6245
6246fi
6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6248printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6249
6250fi;
6251if test "x$ac_cv_func_fork_works" = xcross; then
6252  ac_cv_func_vfork_works=$ac_cv_func_vfork
6253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6254printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6255fi
6256
6257if test "x$ac_cv_func_vfork_works" = xyes; then
6258
6259printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6260
6261else
6262
6263printf "%s\n" "#define vfork fork" >>confdefs.h
6264
6265fi
6266if test "x$ac_cv_func_fork_works" = xyes; then
6267
6268printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6269
6270fi
6271
6272
6273
6274if test "x$ac_cv_func_vprintf" = xno
6275then :
6276  ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6277if test "x$ac_cv_func__doprnt" = xyes
6278then :
6279
6280printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
6281
6282fi
6283
6284fi
6285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
6286printf %s "checking for wait3 that fills in rusage... " >&6; }
6287if test ${ac_cv_func_wait3_rusage+y}
6288then :
6289  printf %s "(cached) " >&6
6290else $as_nop
6291  if test "$cross_compiling" = yes
6292then :
6293  ac_cv_func_wait3_rusage=no
6294else $as_nop
6295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297$ac_includes_default
6298#include <sys/time.h>
6299#include <sys/resource.h>
6300#include <sys/wait.h>
6301/* HP-UX has wait3 but does not fill in rusage at all.  */
6302int
6303main (void)
6304{
6305  struct rusage r;
6306  int i;
6307  /* Use a field that we can force nonzero --
6308     voluntary context switches.
6309     For systems like NeXT and OSF/1 that don't set it,
6310     also use the system CPU time.  And page faults (I/O) for Linux.  */
6311  r.ru_nvcsw = 0;
6312  r.ru_stime.tv_sec = 0;
6313  r.ru_stime.tv_usec = 0;
6314  r.ru_majflt = r.ru_minflt = 0;
6315  switch (fork ())
6316    {
6317    case 0: /* Child.  */
6318      sleep(1); /* Give up the CPU.  */
6319      _exit(0);
6320      break;
6321    case -1: /* What can we do?  */
6322      _exit(0);
6323      break;
6324    default: /* Parent.  */
6325      wait3(&i, 0, &r);
6326      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
6327      sleep(2);
6328      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6329	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6330    }
6331}
6332_ACEOF
6333if ac_fn_c_try_run "$LINENO"
6334then :
6335  ac_cv_func_wait3_rusage=yes
6336else $as_nop
6337  ac_cv_func_wait3_rusage=no
6338fi
6339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6340  conftest.$ac_objext conftest.beam conftest.$ac_ext
6341fi
6342
6343fi
6344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
6345printf "%s\n" "$ac_cv_func_wait3_rusage" >&6; }
6346if test $ac_cv_func_wait3_rusage = yes; then
6347
6348printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6349
6350fi
6351
6352ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err"
6353if test "x$ac_cv_func_err" = xyes
6354then :
6355  printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h
6356
6357fi
6358ac_fn_c_check_func "$LINENO" "errx" "ac_cv_func_errx"
6359if test "x$ac_cv_func_errx" = xyes
6360then :
6361  printf "%s\n" "#define HAVE_ERRX 1" >>confdefs.h
6362
6363fi
6364ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
6365if test "x$ac_cv_func_getcwd" = xyes
6366then :
6367  printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
6368
6369fi
6370ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
6371if test "x$ac_cv_func_getenv" = xyes
6372then :
6373  printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
6374
6375fi
6376ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
6377if test "x$ac_cv_func_getwd" = xyes
6378then :
6379  printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
6380
6381fi
6382ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
6383if test "x$ac_cv_func_killpg" = xyes
6384then :
6385  printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
6386
6387fi
6388ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
6389if test "x$ac_cv_func_mmap" = xyes
6390then :
6391  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
6392
6393fi
6394ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
6395if test "x$ac_cv_func_putenv" = xyes
6396then :
6397  printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
6398
6399fi
6400ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
6401if test "x$ac_cv_func_select" = xyes
6402then :
6403  printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
6404
6405fi
6406ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6407if test "x$ac_cv_func_setenv" = xyes
6408then :
6409  printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
6410
6411fi
6412ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
6413if test "x$ac_cv_func_setpgid" = xyes
6414then :
6415  printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6416
6417fi
6418ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
6419if test "x$ac_cv_func_setrlimit" = xyes
6420then :
6421  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
6422
6423fi
6424ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
6425if test "x$ac_cv_func_setsid" = xyes
6426then :
6427  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
6428
6429fi
6430ac_fn_c_check_func "$LINENO" "sigaddset" "ac_cv_func_sigaddset"
6431if test "x$ac_cv_func_sigaddset" = xyes
6432then :
6433  printf "%s\n" "#define HAVE_SIGADDSET 1" >>confdefs.h
6434
6435fi
6436ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending"
6437if test "x$ac_cv_func_sigpending" = xyes
6438then :
6439  printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
6440
6441fi
6442ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
6443if test "x$ac_cv_func_sigprocmask" = xyes
6444then :
6445  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
6446
6447fi
6448ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
6449if test "x$ac_cv_func_sigsetmask" = xyes
6450then :
6451  printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
6452
6453fi
6454ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
6455if test "x$ac_cv_func_sigsuspend" = xyes
6456then :
6457  printf "%s\n" "#define HAVE_SIGSUSPEND 1" >>confdefs.h
6458
6459fi
6460ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
6461if test "x$ac_cv_func_sigvec" = xyes
6462then :
6463  printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
6464
6465fi
6466ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6467if test "x$ac_cv_func_snprintf" = xyes
6468then :
6469  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
6470
6471fi
6472ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6473if test "x$ac_cv_func_strerror" = xyes
6474then :
6475  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
6476
6477fi
6478ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6479if test "x$ac_cv_func_stresep" = xyes
6480then :
6481  printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6482
6483fi
6484ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
6485if test "x$ac_cv_func_strftime" = xyes
6486then :
6487  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
6488
6489fi
6490ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
6491if test "x$ac_cv_func_strsep" = xyes
6492then :
6493  printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
6494
6495fi
6496ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
6497if test "x$ac_cv_func_strtod" = xyes
6498then :
6499  printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
6500
6501fi
6502ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
6503if test "x$ac_cv_func_strtol" = xyes
6504then :
6505  printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
6506
6507fi
6508ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
6509if test "x$ac_cv_func_strtoll" = xyes
6510then :
6511  printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
6512
6513fi
6514ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
6515if test "x$ac_cv_func_strtoul" = xyes
6516then :
6517  printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
6518
6519fi
6520ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
6521if test "x$ac_cv_func_sysctl" = xyes
6522then :
6523  printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
6524
6525fi
6526ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6527if test "x$ac_cv_func_unsetenv" = xyes
6528then :
6529  printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
6530
6531fi
6532ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6533if test "x$ac_cv_func_vsnprintf" = xyes
6534then :
6535  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
6536
6537fi
6538ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
6539if test "x$ac_cv_func_wait3" = xyes
6540then :
6541  printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6542
6543fi
6544ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
6545if test "x$ac_cv_func_wait4" = xyes
6546then :
6547  printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
6548
6549fi
6550ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6551if test "x$ac_cv_func_waitpid" = xyes
6552then :
6553  printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6554
6555fi
6556ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn"
6557if test "x$ac_cv_func_warn" = xyes
6558then :
6559  printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h
6560
6561fi
6562ac_fn_c_check_func "$LINENO" "warnx" "ac_cv_func_warnx"
6563if test "x$ac_cv_func_warnx" = xyes
6564then :
6565  printf "%s\n" "#define HAVE_WARNX 1" >>confdefs.h
6566
6567fi
6568
6569
6570ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6571if test "x$ac_cv_func_getopt" = xyes
6572then :
6573  printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
6574
6575else $as_nop
6576  case " $LIBOBJS " in
6577  *" getopt.$ac_objext "* ) ;;
6578  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
6579 ;;
6580esac
6581
6582fi
6583ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
6584if test "x$ac_cv_func_realpath" = xyes
6585then :
6586  printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
6587
6588else $as_nop
6589  case " $LIBOBJS " in
6590  *" realpath.$ac_objext "* ) ;;
6591  *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
6592 ;;
6593esac
6594
6595fi
6596ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
6597if test "x$ac_cv_func_dirname" = xyes
6598then :
6599  printf "%s\n" "#define HAVE_DIRNAME 1" >>confdefs.h
6600
6601else $as_nop
6602  case " $LIBOBJS " in
6603  *" dirname.$ac_objext "* ) ;;
6604  *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
6605 ;;
6606esac
6607
6608fi
6609ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
6610if test "x$ac_cv_func_sigaction" = xyes
6611then :
6612  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
6613
6614else $as_nop
6615  case " $LIBOBJS " in
6616  *" sigaction.$ac_objext "* ) ;;
6617  *) LIBOBJS="$LIBOBJS sigaction.$ac_objext"
6618 ;;
6619esac
6620
6621fi
6622ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
6623if test "x$ac_cv_func_stresep" = xyes
6624then :
6625  printf "%s\n" "#define HAVE_STRESEP 1" >>confdefs.h
6626
6627else $as_nop
6628  case " $LIBOBJS " in
6629  *" stresep.$ac_objext "* ) ;;
6630  *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
6631 ;;
6632esac
6633
6634fi
6635ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6636if test "x$ac_cv_func_strlcpy" = xyes
6637then :
6638  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6639
6640else $as_nop
6641  case " $LIBOBJS " in
6642  *" strlcpy.$ac_objext "* ) ;;
6643  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
6644 ;;
6645esac
6646
6647fi
6648
6649
6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
6651printf %s "checking for emalloc in -lutil... " >&6; }
6652if test ${ac_cv_lib_util_emalloc+y}
6653then :
6654  printf %s "(cached) " >&6
6655else $as_nop
6656  ac_check_lib_save_LIBS=$LIBS
6657LIBS="-lutil  $LIBS"
6658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660
6661/* Override any GCC internal prototype to avoid an error.
6662   Use char because int might match the return type of a GCC
6663   builtin and then its argument prototype would still apply.  */
6664char emalloc ();
6665int
6666main (void)
6667{
6668return emalloc ();
6669  ;
6670  return 0;
6671}
6672_ACEOF
6673if ac_fn_c_try_link "$LINENO"
6674then :
6675  ac_cv_lib_util_emalloc=yes
6676else $as_nop
6677  ac_cv_lib_util_emalloc=no
6678fi
6679rm -f core conftest.err conftest.$ac_objext conftest.beam \
6680    conftest$ac_exeext conftest.$ac_ext
6681LIBS=$ac_check_lib_save_LIBS
6682fi
6683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
6684printf "%s\n" "$ac_cv_lib_util_emalloc" >&6; }
6685if test "x$ac_cv_lib_util_emalloc" = xyes
6686then :
6687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
6688printf %s "checking for erealloc in -lutil... " >&6; }
6689if test ${ac_cv_lib_util_erealloc+y}
6690then :
6691  printf %s "(cached) " >&6
6692else $as_nop
6693  ac_check_lib_save_LIBS=$LIBS
6694LIBS="-lutil  $LIBS"
6695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697
6698/* Override any GCC internal prototype to avoid an error.
6699   Use char because int might match the return type of a GCC
6700   builtin and then its argument prototype would still apply.  */
6701char erealloc ();
6702int
6703main (void)
6704{
6705return erealloc ();
6706  ;
6707  return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_link "$LINENO"
6711then :
6712  ac_cv_lib_util_erealloc=yes
6713else $as_nop
6714  ac_cv_lib_util_erealloc=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.beam \
6717    conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
6721printf "%s\n" "$ac_cv_lib_util_erealloc" >&6; }
6722if test "x$ac_cv_lib_util_erealloc" = xyes
6723then :
6724   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
6725printf %s "checking for estrdup in -lutil... " >&6; }
6726if test ${ac_cv_lib_util_estrdup+y}
6727then :
6728  printf %s "(cached) " >&6
6729else $as_nop
6730  ac_check_lib_save_LIBS=$LIBS
6731LIBS="-lutil  $LIBS"
6732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h.  */
6734
6735/* Override any GCC internal prototype to avoid an error.
6736   Use char because int might match the return type of a GCC
6737   builtin and then its argument prototype would still apply.  */
6738char estrdup ();
6739int
6740main (void)
6741{
6742return estrdup ();
6743  ;
6744  return 0;
6745}
6746_ACEOF
6747if ac_fn_c_try_link "$LINENO"
6748then :
6749  ac_cv_lib_util_estrdup=yes
6750else $as_nop
6751  ac_cv_lib_util_estrdup=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.beam \
6754    conftest$ac_exeext conftest.$ac_ext
6755LIBS=$ac_check_lib_save_LIBS
6756fi
6757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
6758printf "%s\n" "$ac_cv_lib_util_estrdup" >&6; }
6759if test "x$ac_cv_lib_util_estrdup" = xyes
6760then :
6761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
6762printf %s "checking for estrndup in -lutil... " >&6; }
6763if test ${ac_cv_lib_util_estrndup+y}
6764then :
6765  printf %s "(cached) " >&6
6766else $as_nop
6767  ac_check_lib_save_LIBS=$LIBS
6768LIBS="-lutil  $LIBS"
6769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771
6772/* Override any GCC internal prototype to avoid an error.
6773   Use char because int might match the return type of a GCC
6774   builtin and then its argument prototype would still apply.  */
6775char estrndup ();
6776int
6777main (void)
6778{
6779return estrndup ();
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_c_try_link "$LINENO"
6785then :
6786  ac_cv_lib_util_estrndup=yes
6787else $as_nop
6788  ac_cv_lib_util_estrndup=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.beam \
6791    conftest$ac_exeext conftest.$ac_ext
6792LIBS=$ac_check_lib_save_LIBS
6793fi
6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6795printf "%s\n" "$ac_cv_lib_util_estrndup" >&6; }
6796if test "x$ac_cv_lib_util_estrndup" = xyes
6797then :
6798   LIBS="$LIBS -lutil"
6799	    CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6800fi
6801
6802fi
6803
6804fi
6805
6806fi
6807
6808
6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6810printf %s "checking whether stat file-mode macros are broken... " >&6; }
6811if test ${ac_cv_header_stat_broken+y}
6812then :
6813  printf %s "(cached) " >&6
6814else $as_nop
6815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h.  */
6817#include <sys/types.h>
6818#include <sys/stat.h>
6819
6820#if defined S_ISBLK && defined S_IFDIR
6821extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6822#endif
6823
6824#if defined S_ISBLK && defined S_IFCHR
6825extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6826#endif
6827
6828#if defined S_ISLNK && defined S_IFREG
6829extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6830#endif
6831
6832#if defined S_ISSOCK && defined S_IFREG
6833extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6834#endif
6835
6836_ACEOF
6837if ac_fn_c_try_compile "$LINENO"
6838then :
6839  ac_cv_header_stat_broken=no
6840else $as_nop
6841  ac_cv_header_stat_broken=yes
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6844fi
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6846printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
6847if test $ac_cv_header_stat_broken = yes; then
6848
6849printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6850
6851fi
6852
6853echo "checking if compiler supports __func__" >&6
6854ac_ext=c
6855ac_cpp='$CPP $CPPFLAGS'
6856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862
6863int
6864main (void)
6865{
6866const char *func = __func__;
6867  ;
6868  return 0;
6869}
6870_ACEOF
6871if ac_fn_c_try_compile "$LINENO"
6872then :
6873
6874else $as_nop
6875
6876printf "%s\n" "#define __func__ __FUNCTION__" >>confdefs.h
6877
6878fi
6879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6880if test -x /usr/gnu/bin/diff; then
6881	diff=/usr/gnu/bin/diff
6882	diff_u=-u
6883else
6884	diff=${diff:-diff}
6885	echo $ECHO_N "checking if $diff -u works... $ECHO_C" >&6
6886	if $diff -u /dev/null /dev/null > /dev/null 2>&1; then
6887		diff_u=-u
6888		echo yes >&6
6889	else
6890		diff_u=
6891		echo no >&6
6892	fi
6893fi
6894echo "checking for MACHINE & MACHINE_ARCH..." >&6
6895cat > conftest.$ac_ext <<EOF
6896#include "confdefs.h"
6897#include <sys/param.h>
6898#ifdef MACHINE
6899machine=MACHINE
6900#endif
6901#ifdef MACHINE_ARCH
6902machine_arch=MACHINE_ARCH
6903#endif
6904EOF
6905
6906default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907	grep machine= | tr -d ' "'`
6908rm -rf conftest*
6909if test "$default_machine"; then
6910	eval "$default_machine"
6911fi
6912machine=${machine:-`$srcdir/machine.sh`}
6913machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6914echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6915
6916# Check whether --with-machine was given.
6917if test ${with_machine+y}
6918then :
6919  withval=$with_machine; case "${withval}" in
6920yes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6921no)    ;;
6922generic) machine=`$srcdir/machine.sh`;;
6923*)     machine=$with_machine;;
6924esac
6925fi
6926
6927force_machine=
6928
6929# Check whether --with-force_machine was given.
6930if test ${with_force_machine+y}
6931then :
6932  withval=$with_force_machine; case "${withval}" in
6933yes)   force_machine=FORCE_;;
6934no)    ;;
6935*)     force_machine=FORCE_; machine=$with_force_machine;;
6936esac
6937fi
6938
6939force_machine_arch=
6940
6941# Check whether --with-force_machine_arch was given.
6942if test ${with_force_machine_arch+y}
6943then :
6944  withval=$with_force_machine_arch; case "${withval}" in
6945yes)   force_machine_arch=FORCE_;;
6946no)    ;;
6947*)     force_machine_arch=FORCE_; machine_arch=$with_force_machine_arch;;
6948esac
6949fi
6950
6951
6952# Check whether --with-machine_arch was given.
6953if test ${with_machine_arch+y}
6954then :
6955  withval=$with_machine_arch; case "${withval}" in
6956yes)   as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6957no)    ;;
6958*)     machine_arch=$with_machine_arch;;
6959esac
6960fi
6961
6962echo "Using: ${force_machine}MACHINE=$machine, ${force_machine_arch}MACHINE_ARCH=$machine_arch" 1>&6
6963default_sys_path=\${prefix}/share/mk
6964
6965# Check whether --with-default-sys-path was given.
6966if test ${with_default_sys_path+y}
6967then :
6968  withval=$with_default_sys_path; case "${withval}" in
6969yes)	as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6970no)	;;
6971*)	default_sys_path="$with_default_sys_path"
6972	;;
6973esac
6974fi
6975
6976
6977# Check whether --with-path-objdirprefix was given.
6978if test ${with_path_objdirprefix+y}
6979then :
6980  withval=$with_path_objdirprefix; case "${withval}" in
6981yes)   as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6982no)    CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6983*)     CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6984esac
6985fi
6986
6987# Check whether --enable-pwd-override was given.
6988if test ${enable_pwd_override+y}
6989then :
6990  enableval=$enable_pwd_override; case "${enableval}" in
6991yes)   ;;
6992no)    CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6993*)     as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6994esac
6995fi
6996
6997# Check whether --enable-check-make-chdir was given.
6998if test ${enable_check_make_chdir+y}
6999then :
7000  enableval=$enable_check_make_chdir; case "${enableval}" in
7001yes)   ;;
7002no)    CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
7003*)     as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
7004esac
7005fi
7006
7007
7008# Check whether --with-mksrc was given.
7009if test ${with_mksrc+y}
7010then :
7011  withval=$with_mksrc; case "${withval}" in
7012""|yes|no) ;;
7013*) test -s $withval/install-mk && mksrc=$withval ||
7014as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
7015;;
7016esac
7017
7018fi
7019
7020srcdir=`cd $srcdir && pwd`
7021for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
7022do
7023	test -s $mksrc/install-mk || continue
7024	mksrc=`cd $mksrc && pwd`
7025	break
7026done
7027mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
7028echo "Using: MKSRC=$mksrc" 1>&6
7029for sh in /usr/xpg4/bin/sh $ALT_DEF_SHELLS
7030do
7031	test -x $sh || continue
7032	use_defshell $sh
7033	break
7034done
7035case "$defshell_path$DEFSHELL_INDEX" in
7036"")	;;
7037*DEFSHELL_INDEX_CUSTOM)
7038	echo "Using: SHELL=$defshell_path"  >&6
7039
7040printf "%s\n" "#define DEFSHELL_CUSTOM \"$defshell_path\"" >>confdefs.h
7041
7042	;;
7043/*INDEX*)
7044	echo "Using: SHELL=$DEFSHELL_INDEX ($defshell_path)" | sed 's,DEFSHELL_INDEX_,,' >&6
7045
7046printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7047
7048
7049printf "%s\n" "#define DEFSHELL_PATH \"$defshell_path\"" >>confdefs.h
7050
7051	;;
7052*)
7053	echo "Using: SHELL=$DEFSHELL_INDEX" | sed 's,DEFSHELL_INDEX_,,' >&6
7054
7055printf "%s\n" "#define DEFSHELL_INDEX $DEFSHELL_INDEX" >>confdefs.h
7056
7057	;;
7058esac
7059case "`echo bmake | egrep 'a|b' 2>&1`" in
7060bmake) egrep=egrep;;
7061*) egrep='grep -E';;
7062esac
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
7080if test $use_makefile = yes; then
7081   bm_outfiles="makefile $bm_outfiles"
7082fi
7083
7084here=`'pwd'`
7085: srcdir=$srcdir
7086: here=  $here
7087case "$here" in
7088$srcdir/obj*) # make sure we put unit-tests/Makefile.config in the right place
7089	obj=`basename $here`
7090	mkdir -p $srcdir/unit-tests/$obj
7091	test -d unit-tests || ln -s ../unit-tests/$obj unit-tests
7092	;;
7093esac
7094
7095ac_config_files="$ac_config_files $bm_outfiles"
7096
7097cat >confcache <<\_ACEOF
7098# This file is a shell script that caches the results of configure
7099# tests run on this system so they can be shared between configure
7100# scripts and configure runs, see configure's option --config-cache.
7101# It is not useful on other systems.  If it contains results you don't
7102# want to keep, you may remove or edit it.
7103#
7104# config.status only pays attention to the cache file if you give it
7105# the --recheck option to rerun configure.
7106#
7107# `ac_cv_env_foo' variables (set or unset) will be overridden when
7108# loading this file, other *unset* `ac_cv_foo' will be assigned the
7109# following values.
7110
7111_ACEOF
7112
7113# The following way of writing the cache mishandles newlines in values,
7114# but we know of no workaround that is simple, portable, and efficient.
7115# So, we kill variables containing newlines.
7116# Ultrix sh set writes to stderr and can't be redirected directly,
7117# and sets the high bit in the cache file unless we assign to the vars.
7118(
7119  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7120    eval ac_val=\$$ac_var
7121    case $ac_val in #(
7122    *${as_nl}*)
7123      case $ac_var in #(
7124      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7125printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7126      esac
7127      case $ac_var in #(
7128      _ | IFS | as_nl) ;; #(
7129      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7130      *) { eval $ac_var=; unset $ac_var;} ;;
7131      esac ;;
7132    esac
7133  done
7134
7135  (set) 2>&1 |
7136    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7137    *${as_nl}ac_space=\ *)
7138      # `set' does not quote correctly, so add quotes: double-quote
7139      # substitution turns \\\\ into \\, and sed turns \\ into \.
7140      sed -n \
7141	"s/'/'\\\\''/g;
7142	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7143      ;; #(
7144    *)
7145      # `set' quotes correctly as required by POSIX, so do not add quotes.
7146      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7147      ;;
7148    esac |
7149    sort
7150) |
7151  sed '
7152     /^ac_cv_env_/b end
7153     t clear
7154     :clear
7155     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7156     t end
7157     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7158     :end' >>confcache
7159if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7160  if test -w "$cache_file"; then
7161    if test "x$cache_file" != "x/dev/null"; then
7162      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7163printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7164      if test ! -f "$cache_file" || test -h "$cache_file"; then
7165	cat confcache >"$cache_file"
7166      else
7167        case $cache_file in #(
7168        */* | ?:*)
7169	  mv -f confcache "$cache_file"$$ &&
7170	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7171        *)
7172	  mv -f confcache "$cache_file" ;;
7173	esac
7174      fi
7175    fi
7176  else
7177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7178printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7179  fi
7180fi
7181rm -f confcache
7182
7183test "x$prefix" = xNONE && prefix=$ac_default_prefix
7184# Let make expand exec_prefix.
7185test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7186
7187DEFS=-DHAVE_CONFIG_H
7188
7189ac_libobjs=
7190ac_ltlibobjs=
7191U=
7192for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7193  # 1. Remove the extension, and $U if already installed.
7194  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7195  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7196  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7197  #    will be set to the directory where LIBOBJS objects are built.
7198  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7199  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7200done
7201LIBOBJS=$ac_libobjs
7202
7203LTLIBOBJS=$ac_ltlibobjs
7204
7205
7206
7207
7208: "${CONFIG_STATUS=./config.status}"
7209ac_write_fail=0
7210ac_clean_files_save=$ac_clean_files
7211ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7213printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7214as_write_fail=0
7215cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7216#! $SHELL
7217# Generated by $as_me.
7218# Run this file to recreate the current configuration.
7219# Compiler output produced by configure, useful for debugging
7220# configure, is in config.log if it exists.
7221
7222debug=false
7223ac_cs_recheck=false
7224ac_cs_silent=false
7225
7226SHELL=\${CONFIG_SHELL-$SHELL}
7227export SHELL
7228_ASEOF
7229cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7230## -------------------- ##
7231## M4sh Initialization. ##
7232## -------------------- ##
7233
7234# Be more Bourne compatible
7235DUALCASE=1; export DUALCASE # for MKS sh
7236as_nop=:
7237if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7238then :
7239  emulate sh
7240  NULLCMD=:
7241  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7242  # is contrary to our usage.  Disable this feature.
7243  alias -g '${1+"$@"}'='"$@"'
7244  setopt NO_GLOB_SUBST
7245else $as_nop
7246  case `(set -o) 2>/dev/null` in #(
7247  *posix*) :
7248    set -o posix ;; #(
7249  *) :
7250     ;;
7251esac
7252fi
7253
7254
7255
7256# Reset variables that may have inherited troublesome values from
7257# the environment.
7258
7259# IFS needs to be set, to space, tab, and newline, in precisely that order.
7260# (If _AS_PATH_WALK were called with IFS unset, it would have the
7261# side effect of setting IFS to empty, thus disabling word splitting.)
7262# Quoting is to prevent editors from complaining about space-tab.
7263as_nl='
7264'
7265export as_nl
7266IFS=" ""	$as_nl"
7267
7268PS1='$ '
7269PS2='> '
7270PS4='+ '
7271
7272# Ensure predictable behavior from utilities with locale-dependent output.
7273LC_ALL=C
7274export LC_ALL
7275LANGUAGE=C
7276export LANGUAGE
7277
7278# We cannot yet rely on "unset" to work, but we need these variables
7279# to be unset--not just set to an empty or harmless value--now, to
7280# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
7281# also avoids known problems related to "unset" and subshell syntax
7282# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7283for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7284do eval test \${$as_var+y} \
7285  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7286done
7287
7288# Ensure that fds 0, 1, and 2 are open.
7289if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7290if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7291if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
7292
7293# The user is always right.
7294if ${PATH_SEPARATOR+false} :; then
7295  PATH_SEPARATOR=:
7296  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7297    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7298      PATH_SEPARATOR=';'
7299  }
7300fi
7301
7302
7303# Find who we are.  Look in the path if we contain no directory separator.
7304as_myself=
7305case $0 in #((
7306  *[\\/]* ) as_myself=$0 ;;
7307  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310  IFS=$as_save_IFS
7311  case $as_dir in #(((
7312    '') as_dir=./ ;;
7313    */) ;;
7314    *) as_dir=$as_dir/ ;;
7315  esac
7316    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7317  done
7318IFS=$as_save_IFS
7319
7320     ;;
7321esac
7322# We did not find ourselves, most probably we were run as `sh COMMAND'
7323# in which case we are not to be found in the path.
7324if test "x$as_myself" = x; then
7325  as_myself=$0
7326fi
7327if test ! -f "$as_myself"; then
7328  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7329  exit 1
7330fi
7331
7332
7333
7334# as_fn_error STATUS ERROR [LINENO LOG_FD]
7335# ----------------------------------------
7336# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7337# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7338# script with STATUS, using 1 if that was 0.
7339as_fn_error ()
7340{
7341  as_status=$1; test $as_status -eq 0 && as_status=1
7342  if test "$4"; then
7343    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7344    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7345  fi
7346  printf "%s\n" "$as_me: error: $2" >&2
7347  as_fn_exit $as_status
7348} # as_fn_error
7349
7350
7351
7352# as_fn_set_status STATUS
7353# -----------------------
7354# Set $? to STATUS, without forking.
7355as_fn_set_status ()
7356{
7357  return $1
7358} # as_fn_set_status
7359
7360# as_fn_exit STATUS
7361# -----------------
7362# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7363as_fn_exit ()
7364{
7365  set +e
7366  as_fn_set_status $1
7367  exit $1
7368} # as_fn_exit
7369
7370# as_fn_unset VAR
7371# ---------------
7372# Portably unset VAR.
7373as_fn_unset ()
7374{
7375  { eval $1=; unset $1;}
7376}
7377as_unset=as_fn_unset
7378
7379# as_fn_append VAR VALUE
7380# ----------------------
7381# Append the text in VALUE to the end of the definition contained in VAR. Take
7382# advantage of any shell optimizations that allow amortized linear growth over
7383# repeated appends, instead of the typical quadratic growth present in naive
7384# implementations.
7385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7386then :
7387  eval 'as_fn_append ()
7388  {
7389    eval $1+=\$2
7390  }'
7391else $as_nop
7392  as_fn_append ()
7393  {
7394    eval $1=\$$1\$2
7395  }
7396fi # as_fn_append
7397
7398# as_fn_arith ARG...
7399# ------------------
7400# Perform arithmetic evaluation on the ARGs, and store the result in the
7401# global $as_val. Take advantage of shells that can avoid forks. The arguments
7402# must be portable across $(()) and expr.
7403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7404then :
7405  eval 'as_fn_arith ()
7406  {
7407    as_val=$(( $* ))
7408  }'
7409else $as_nop
7410  as_fn_arith ()
7411  {
7412    as_val=`expr "$@" || test $? -eq 1`
7413  }
7414fi # as_fn_arith
7415
7416
7417if expr a : '\(a\)' >/dev/null 2>&1 &&
7418   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7419  as_expr=expr
7420else
7421  as_expr=false
7422fi
7423
7424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7425  as_basename=basename
7426else
7427  as_basename=false
7428fi
7429
7430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7431  as_dirname=dirname
7432else
7433  as_dirname=false
7434fi
7435
7436as_me=`$as_basename -- "$0" ||
7437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7438	 X"$0" : 'X\(//\)$' \| \
7439	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7440printf "%s\n" X/"$0" |
7441    sed '/^.*\/\([^/][^/]*\)\/*$/{
7442	    s//\1/
7443	    q
7444	  }
7445	  /^X\/\(\/\/\)$/{
7446	    s//\1/
7447	    q
7448	  }
7449	  /^X\/\(\/\).*/{
7450	    s//\1/
7451	    q
7452	  }
7453	  s/.*/./; q'`
7454
7455# Avoid depending upon Character Ranges.
7456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7459as_cr_digits='0123456789'
7460as_cr_alnum=$as_cr_Letters$as_cr_digits
7461
7462
7463# Determine whether it's possible to make 'echo' print without a newline.
7464# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7465# for compatibility with existing Makefiles.
7466ECHO_C= ECHO_N= ECHO_T=
7467case `echo -n x` in #(((((
7468-n*)
7469  case `echo 'xy\c'` in
7470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7471  xy)  ECHO_C='\c';;
7472  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7473       ECHO_T='	';;
7474  esac;;
7475*)
7476  ECHO_N='-n';;
7477esac
7478
7479# For backward compatibility with old third-party macros, we provide
7480# the shell variables $as_echo and $as_echo_n.  New code should use
7481# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7482as_echo='printf %s\n'
7483as_echo_n='printf %s'
7484
7485rm -f conf$$ conf$$.exe conf$$.file
7486if test -d conf$$.dir; then
7487  rm -f conf$$.dir/conf$$.file
7488else
7489  rm -f conf$$.dir
7490  mkdir conf$$.dir 2>/dev/null
7491fi
7492if (echo >conf$$.file) 2>/dev/null; then
7493  if ln -s conf$$.file conf$$ 2>/dev/null; then
7494    as_ln_s='ln -s'
7495    # ... but there are two gotchas:
7496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7498    # In both cases, we have to default to `cp -pR'.
7499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7500      as_ln_s='cp -pR'
7501  elif ln conf$$.file conf$$ 2>/dev/null; then
7502    as_ln_s=ln
7503  else
7504    as_ln_s='cp -pR'
7505  fi
7506else
7507  as_ln_s='cp -pR'
7508fi
7509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7510rmdir conf$$.dir 2>/dev/null
7511
7512
7513# as_fn_mkdir_p
7514# -------------
7515# Create "$as_dir" as a directory, including parents if necessary.
7516as_fn_mkdir_p ()
7517{
7518
7519  case $as_dir in #(
7520  -*) as_dir=./$as_dir;;
7521  esac
7522  test -d "$as_dir" || eval $as_mkdir_p || {
7523    as_dirs=
7524    while :; do
7525      case $as_dir in #(
7526      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7527      *) as_qdir=$as_dir;;
7528      esac
7529      as_dirs="'$as_qdir' $as_dirs"
7530      as_dir=`$as_dirname -- "$as_dir" ||
7531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7532	 X"$as_dir" : 'X\(//\)[^/]' \| \
7533	 X"$as_dir" : 'X\(//\)$' \| \
7534	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7535printf "%s\n" X"$as_dir" |
7536    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7537	    s//\1/
7538	    q
7539	  }
7540	  /^X\(\/\/\)[^/].*/{
7541	    s//\1/
7542	    q
7543	  }
7544	  /^X\(\/\/\)$/{
7545	    s//\1/
7546	    q
7547	  }
7548	  /^X\(\/\).*/{
7549	    s//\1/
7550	    q
7551	  }
7552	  s/.*/./; q'`
7553      test -d "$as_dir" && break
7554    done
7555    test -z "$as_dirs" || eval "mkdir $as_dirs"
7556  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7557
7558
7559} # as_fn_mkdir_p
7560if mkdir -p . 2>/dev/null; then
7561  as_mkdir_p='mkdir -p "$as_dir"'
7562else
7563  test -d ./-p && rmdir ./-p
7564  as_mkdir_p=false
7565fi
7566
7567
7568# as_fn_executable_p FILE
7569# -----------------------
7570# Test if FILE is an executable regular file.
7571as_fn_executable_p ()
7572{
7573  test -f "$1" && test -x "$1"
7574} # as_fn_executable_p
7575as_test_x='test -x'
7576as_executable_p=as_fn_executable_p
7577
7578# Sed expression to map a string onto a valid CPP name.
7579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7580
7581# Sed expression to map a string onto a valid variable name.
7582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7583
7584
7585exec 6>&1
7586## ----------------------------------- ##
7587## Main body of $CONFIG_STATUS script. ##
7588## ----------------------------------- ##
7589_ASEOF
7590test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7591
7592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7593# Save the log message, to keep $0 and so on meaningful, and to
7594# report actual input values of CONFIG_FILES etc. instead of their
7595# values after options handling.
7596ac_log="
7597This file was extended by bmake $as_me 20240212, which was
7598generated by GNU Autoconf 2.71.  Invocation command line was
7599
7600  CONFIG_FILES    = $CONFIG_FILES
7601  CONFIG_HEADERS  = $CONFIG_HEADERS
7602  CONFIG_LINKS    = $CONFIG_LINKS
7603  CONFIG_COMMANDS = $CONFIG_COMMANDS
7604  $ $0 $@
7605
7606on `(hostname || uname -n) 2>/dev/null | sed 1q`
7607"
7608
7609_ACEOF
7610
7611case $ac_config_files in *"
7612"*) set x $ac_config_files; shift; ac_config_files=$*;;
7613esac
7614
7615case $ac_config_headers in *"
7616"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7617esac
7618
7619
7620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7621# Files that config.status was made for.
7622config_files="$ac_config_files"
7623config_headers="$ac_config_headers"
7624
7625_ACEOF
7626
7627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7628ac_cs_usage="\
7629\`$as_me' instantiates files and other configuration actions
7630from templates according to the current configuration.  Unless the files
7631and actions are specified as TAGs, all are instantiated by default.
7632
7633Usage: $0 [OPTION]... [TAG]...
7634
7635  -h, --help       print this help, then exit
7636  -V, --version    print version number and configuration settings, then exit
7637      --config     print configuration, then exit
7638  -q, --quiet, --silent
7639                   do not print progress messages
7640  -d, --debug      don't remove temporary files
7641      --recheck    update $as_me by reconfiguring in the same conditions
7642      --file=FILE[:TEMPLATE]
7643                   instantiate the configuration file FILE
7644      --header=FILE[:TEMPLATE]
7645                   instantiate the configuration header FILE
7646
7647Configuration files:
7648$config_files
7649
7650Configuration headers:
7651$config_headers
7652
7653Report bugs to <sjg@NetBSD.org>."
7654
7655_ACEOF
7656ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7657ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7659ac_cs_config='$ac_cs_config_escaped'
7660ac_cs_version="\\
7661bmake config.status 20240212
7662configured by $0, generated by GNU Autoconf 2.71,
7663  with options \\"\$ac_cs_config\\"
7664
7665Copyright (C) 2021 Free Software Foundation, Inc.
7666This config.status script is free software; the Free Software Foundation
7667gives unlimited permission to copy, distribute and modify it."
7668
7669ac_pwd='$ac_pwd'
7670srcdir='$srcdir'
7671INSTALL='$INSTALL'
7672test -n "\$AWK" || AWK=awk
7673_ACEOF
7674
7675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7676# The default lists apply if the user does not specify any file.
7677ac_need_defaults=:
7678while test $# != 0
7679do
7680  case $1 in
7681  --*=?*)
7682    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7683    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7684    ac_shift=:
7685    ;;
7686  --*=)
7687    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7688    ac_optarg=
7689    ac_shift=:
7690    ;;
7691  *)
7692    ac_option=$1
7693    ac_optarg=$2
7694    ac_shift=shift
7695    ;;
7696  esac
7697
7698  case $ac_option in
7699  # Handling of the options.
7700  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7701    ac_cs_recheck=: ;;
7702  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7703    printf "%s\n" "$ac_cs_version"; exit ;;
7704  --config | --confi | --conf | --con | --co | --c )
7705    printf "%s\n" "$ac_cs_config"; exit ;;
7706  --debug | --debu | --deb | --de | --d | -d )
7707    debug=: ;;
7708  --file | --fil | --fi | --f )
7709    $ac_shift
7710    case $ac_optarg in
7711    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7712    '') as_fn_error $? "missing file argument" ;;
7713    esac
7714    as_fn_append CONFIG_FILES " '$ac_optarg'"
7715    ac_need_defaults=false;;
7716  --header | --heade | --head | --hea )
7717    $ac_shift
7718    case $ac_optarg in
7719    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7720    esac
7721    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7722    ac_need_defaults=false;;
7723  --he | --h)
7724    # Conflict between --help and --header
7725    as_fn_error $? "ambiguous option: \`$1'
7726Try \`$0 --help' for more information.";;
7727  --help | --hel | -h )
7728    printf "%s\n" "$ac_cs_usage"; exit ;;
7729  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7730  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7731    ac_cs_silent=: ;;
7732
7733  # This is an error.
7734  -*) as_fn_error $? "unrecognized option: \`$1'
7735Try \`$0 --help' for more information." ;;
7736
7737  *) as_fn_append ac_config_targets " $1"
7738     ac_need_defaults=false ;;
7739
7740  esac
7741  shift
7742done
7743
7744ac_configure_extra_args=
7745
7746if $ac_cs_silent; then
7747  exec 6>/dev/null
7748  ac_configure_extra_args="$ac_configure_extra_args --silent"
7749fi
7750
7751_ACEOF
7752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7753if \$ac_cs_recheck; then
7754  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7755  shift
7756  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7757  CONFIG_SHELL='$SHELL'
7758  export CONFIG_SHELL
7759  exec "\$@"
7760fi
7761
7762_ACEOF
7763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7764exec 5>>config.log
7765{
7766  echo
7767  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7768## Running $as_me. ##
7769_ASBOX
7770  printf "%s\n" "$ac_log"
7771} >&5
7772
7773_ACEOF
7774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7775_ACEOF
7776
7777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7778
7779# Handling of arguments.
7780for ac_config_target in $ac_config_targets
7781do
7782  case $ac_config_target in
7783    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7784    "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
7785
7786  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7787  esac
7788done
7789
7790
7791# If the user did not use the arguments to specify the items to instantiate,
7792# then the envvar interface is used.  Set only those that are not.
7793# We use the long form for the default assignment because of an extremely
7794# bizarre bug on SunOS 4.1.3.
7795if $ac_need_defaults; then
7796  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7797  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7798fi
7799
7800# Have a temporary directory for convenience.  Make it in the build tree
7801# simply because there is no reason against having it here, and in addition,
7802# creating and moving files from /tmp can sometimes cause problems.
7803# Hook for its removal unless debugging.
7804# Note that there is a small window in which the directory will not be cleaned:
7805# after its creation but before its name has been assigned to `$tmp'.
7806$debug ||
7807{
7808  tmp= ac_tmp=
7809  trap 'exit_status=$?
7810  : "${ac_tmp:=$tmp}"
7811  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7812' 0
7813  trap 'as_fn_exit 1' 1 2 13 15
7814}
7815# Create a (secure) tmp directory for tmp files.
7816
7817{
7818  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7819  test -d "$tmp"
7820}  ||
7821{
7822  tmp=./conf$$-$RANDOM
7823  (umask 077 && mkdir "$tmp")
7824} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7825ac_tmp=$tmp
7826
7827# Set up the scripts for CONFIG_FILES section.
7828# No need to generate them if there are no CONFIG_FILES.
7829# This happens for instance with `./config.status config.h'.
7830if test -n "$CONFIG_FILES"; then
7831
7832
7833ac_cr=`echo X | tr X '\015'`
7834# On cygwin, bash can eat \r inside `` if the user requested igncr.
7835# But we know of no other shell where ac_cr would be empty at this
7836# point, so we can use a bashism as a fallback.
7837if test "x$ac_cr" = x; then
7838  eval ac_cr=\$\'\\r\'
7839fi
7840ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7841if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7842  ac_cs_awk_cr='\\r'
7843else
7844  ac_cs_awk_cr=$ac_cr
7845fi
7846
7847echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7848_ACEOF
7849
7850
7851{
7852  echo "cat >conf$$subs.awk <<_ACEOF" &&
7853  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7854  echo "_ACEOF"
7855} >conf$$subs.sh ||
7856  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7857ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7858ac_delim='%!_!# '
7859for ac_last_try in false false false false false :; do
7860  . ./conf$$subs.sh ||
7861    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7862
7863  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7864  if test $ac_delim_n = $ac_delim_num; then
7865    break
7866  elif $ac_last_try; then
7867    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7868  else
7869    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7870  fi
7871done
7872rm -f conf$$subs.sh
7873
7874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7875cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7876_ACEOF
7877sed -n '
7878h
7879s/^/S["/; s/!.*/"]=/
7880p
7881g
7882s/^[^!]*!//
7883:repl
7884t repl
7885s/'"$ac_delim"'$//
7886t delim
7887:nl
7888h
7889s/\(.\{148\}\)..*/\1/
7890t more1
7891s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7892p
7893n
7894b repl
7895:more1
7896s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7897p
7898g
7899s/.\{148\}//
7900t nl
7901:delim
7902h
7903s/\(.\{148\}\)..*/\1/
7904t more2
7905s/["\\]/\\&/g; s/^/"/; s/$/"/
7906p
7907b
7908:more2
7909s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7910p
7911g
7912s/.\{148\}//
7913t delim
7914' <conf$$subs.awk | sed '
7915/^[^""]/{
7916  N
7917  s/\n//
7918}
7919' >>$CONFIG_STATUS || ac_write_fail=1
7920rm -f conf$$subs.awk
7921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7922_ACAWK
7923cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7924  for (key in S) S_is_set[key] = 1
7925  FS = ""
7926
7927}
7928{
7929  line = $ 0
7930  nfields = split(line, field, "@")
7931  substed = 0
7932  len = length(field[1])
7933  for (i = 2; i < nfields; i++) {
7934    key = field[i]
7935    keylen = length(key)
7936    if (S_is_set[key]) {
7937      value = S[key]
7938      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7939      len += length(value) + length(field[++i])
7940      substed = 1
7941    } else
7942      len += 1 + keylen
7943  }
7944
7945  print line
7946}
7947
7948_ACAWK
7949_ACEOF
7950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7951if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7952  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7953else
7954  cat
7955fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7956  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7957_ACEOF
7958
7959# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7960# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7961# trailing colons and then remove the whole line if VPATH becomes empty
7962# (actually we leave an empty line to preserve line numbers).
7963if test "x$srcdir" = x.; then
7964  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7965h
7966s///
7967s/^/:/
7968s/[	 ]*$/:/
7969s/:\$(srcdir):/:/g
7970s/:\${srcdir}:/:/g
7971s/:@srcdir@:/:/g
7972s/^:*//
7973s/:*$//
7974x
7975s/\(=[	 ]*\).*/\1/
7976G
7977s/\n//
7978s/^[^=]*=[	 ]*$//
7979}'
7980fi
7981
7982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7983fi # test -n "$CONFIG_FILES"
7984
7985# Set up the scripts for CONFIG_HEADERS section.
7986# No need to generate them if there are no CONFIG_HEADERS.
7987# This happens for instance with `./config.status Makefile'.
7988if test -n "$CONFIG_HEADERS"; then
7989cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7990BEGIN {
7991_ACEOF
7992
7993# Transform confdefs.h into an awk script `defines.awk', embedded as
7994# here-document in config.status, that substitutes the proper values into
7995# config.h.in to produce config.h.
7996
7997# Create a delimiter string that does not exist in confdefs.h, to ease
7998# handling of long lines.
7999ac_delim='%!_!# '
8000for ac_last_try in false false :; do
8001  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8002  if test -z "$ac_tt"; then
8003    break
8004  elif $ac_last_try; then
8005    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8006  else
8007    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8008  fi
8009done
8010
8011# For the awk script, D is an array of macro values keyed by name,
8012# likewise P contains macro parameters if any.  Preserve backslash
8013# newline sequences.
8014
8015ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8016sed -n '
8017s/.\{148\}/&'"$ac_delim"'/g
8018t rset
8019:rset
8020s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8021t def
8022d
8023:def
8024s/\\$//
8025t bsnl
8026s/["\\]/\\&/g
8027s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8028D["\1"]=" \3"/p
8029s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8030d
8031:bsnl
8032s/["\\]/\\&/g
8033s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8034D["\1"]=" \3\\\\\\n"\\/p
8035t cont
8036s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8037t cont
8038d
8039:cont
8040n
8041s/.\{148\}/&'"$ac_delim"'/g
8042t clear
8043:clear
8044s/\\$//
8045t bsnlc
8046s/["\\]/\\&/g; s/^/"/; s/$/"/p
8047d
8048:bsnlc
8049s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8050b cont
8051' <confdefs.h | sed '
8052s/'"$ac_delim"'/"\\\
8053"/g' >>$CONFIG_STATUS || ac_write_fail=1
8054
8055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8056  for (key in D) D_is_set[key] = 1
8057  FS = ""
8058}
8059/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8060  line = \$ 0
8061  split(line, arg, " ")
8062  if (arg[1] == "#") {
8063    defundef = arg[2]
8064    mac1 = arg[3]
8065  } else {
8066    defundef = substr(arg[1], 2)
8067    mac1 = arg[2]
8068  }
8069  split(mac1, mac2, "(") #)
8070  macro = mac2[1]
8071  prefix = substr(line, 1, index(line, defundef) - 1)
8072  if (D_is_set[macro]) {
8073    # Preserve the white space surrounding the "#".
8074    print prefix "define", macro P[macro] D[macro]
8075    next
8076  } else {
8077    # Replace #undef with comments.  This is necessary, for example,
8078    # in the case of _POSIX_SOURCE, which is predefined and required
8079    # on some systems where configure will not decide to define it.
8080    if (defundef == "undef") {
8081      print "/*", prefix defundef, macro, "*/"
8082      next
8083    }
8084  }
8085}
8086{ print }
8087_ACAWK
8088_ACEOF
8089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8090  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8091fi # test -n "$CONFIG_HEADERS"
8092
8093
8094eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8095shift
8096for ac_tag
8097do
8098  case $ac_tag in
8099  :[FHLC]) ac_mode=$ac_tag; continue;;
8100  esac
8101  case $ac_mode$ac_tag in
8102  :[FHL]*:*);;
8103  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8104  :[FH]-) ac_tag=-:-;;
8105  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8106  esac
8107  ac_save_IFS=$IFS
8108  IFS=:
8109  set x $ac_tag
8110  IFS=$ac_save_IFS
8111  shift
8112  ac_file=$1
8113  shift
8114
8115  case $ac_mode in
8116  :L) ac_source=$1;;
8117  :[FH])
8118    ac_file_inputs=
8119    for ac_f
8120    do
8121      case $ac_f in
8122      -) ac_f="$ac_tmp/stdin";;
8123      *) # Look for the file first in the build tree, then in the source tree
8124	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8125	 # because $ac_f cannot contain `:'.
8126	 test -f "$ac_f" ||
8127	   case $ac_f in
8128	   [\\/$]*) false;;
8129	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8130	   esac ||
8131	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8132      esac
8133      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8134      as_fn_append ac_file_inputs " '$ac_f'"
8135    done
8136
8137    # Let's still pretend it is `configure' which instantiates (i.e., don't
8138    # use $as_me), people would be surprised to read:
8139    #    /* config.h.  Generated by config.status.  */
8140    configure_input='Generated from '`
8141	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8142	`' by configure.'
8143    if test x"$ac_file" != x-; then
8144      configure_input="$ac_file.  $configure_input"
8145      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8146printf "%s\n" "$as_me: creating $ac_file" >&6;}
8147    fi
8148    # Neutralize special characters interpreted by sed in replacement strings.
8149    case $configure_input in #(
8150    *\&* | *\|* | *\\* )
8151       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8152       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8153    *) ac_sed_conf_input=$configure_input;;
8154    esac
8155
8156    case $ac_tag in
8157    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8158      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8159    esac
8160    ;;
8161  esac
8162
8163  ac_dir=`$as_dirname -- "$ac_file" ||
8164$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8165	 X"$ac_file" : 'X\(//\)[^/]' \| \
8166	 X"$ac_file" : 'X\(//\)$' \| \
8167	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8168printf "%s\n" X"$ac_file" |
8169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8170	    s//\1/
8171	    q
8172	  }
8173	  /^X\(\/\/\)[^/].*/{
8174	    s//\1/
8175	    q
8176	  }
8177	  /^X\(\/\/\)$/{
8178	    s//\1/
8179	    q
8180	  }
8181	  /^X\(\/\).*/{
8182	    s//\1/
8183	    q
8184	  }
8185	  s/.*/./; q'`
8186  as_dir="$ac_dir"; as_fn_mkdir_p
8187  ac_builddir=.
8188
8189case "$ac_dir" in
8190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8191*)
8192  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8193  # A ".." for each directory in $ac_dir_suffix.
8194  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8195  case $ac_top_builddir_sub in
8196  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8197  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8198  esac ;;
8199esac
8200ac_abs_top_builddir=$ac_pwd
8201ac_abs_builddir=$ac_pwd$ac_dir_suffix
8202# for backward compatibility:
8203ac_top_builddir=$ac_top_build_prefix
8204
8205case $srcdir in
8206  .)  # We are building in place.
8207    ac_srcdir=.
8208    ac_top_srcdir=$ac_top_builddir_sub
8209    ac_abs_top_srcdir=$ac_pwd ;;
8210  [\\/]* | ?:[\\/]* )  # Absolute name.
8211    ac_srcdir=$srcdir$ac_dir_suffix;
8212    ac_top_srcdir=$srcdir
8213    ac_abs_top_srcdir=$srcdir ;;
8214  *) # Relative name.
8215    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8216    ac_top_srcdir=$ac_top_build_prefix$srcdir
8217    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8218esac
8219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8220
8221
8222  case $ac_mode in
8223  :F)
8224  #
8225  # CONFIG_FILE
8226  #
8227
8228  case $INSTALL in
8229  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8230  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8231  esac
8232_ACEOF
8233
8234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8235# If the template does not know about datarootdir, expand it.
8236# FIXME: This hack should be removed a few years after 2.60.
8237ac_datarootdir_hack=; ac_datarootdir_seen=
8238ac_sed_dataroot='
8239/datarootdir/ {
8240  p
8241  q
8242}
8243/@datadir@/p
8244/@docdir@/p
8245/@infodir@/p
8246/@localedir@/p
8247/@mandir@/p'
8248case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8249*datarootdir*) ac_datarootdir_seen=yes;;
8250*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8252printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8253_ACEOF
8254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8255  ac_datarootdir_hack='
8256  s&@datadir@&$datadir&g
8257  s&@docdir@&$docdir&g
8258  s&@infodir@&$infodir&g
8259  s&@localedir@&$localedir&g
8260  s&@mandir@&$mandir&g
8261  s&\\\${datarootdir}&$datarootdir&g' ;;
8262esac
8263_ACEOF
8264
8265# Neutralize VPATH when `$srcdir' = `.'.
8266# Shell code in configure.ac might set extrasub.
8267# FIXME: do we really want to maintain this feature?
8268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8269ac_sed_extra="$ac_vpsub
8270$extrasub
8271_ACEOF
8272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8273:t
8274/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8275s|@configure_input@|$ac_sed_conf_input|;t t
8276s&@top_builddir@&$ac_top_builddir_sub&;t t
8277s&@top_build_prefix@&$ac_top_build_prefix&;t t
8278s&@srcdir@&$ac_srcdir&;t t
8279s&@abs_srcdir@&$ac_abs_srcdir&;t t
8280s&@top_srcdir@&$ac_top_srcdir&;t t
8281s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8282s&@builddir@&$ac_builddir&;t t
8283s&@abs_builddir@&$ac_abs_builddir&;t t
8284s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8285s&@INSTALL@&$ac_INSTALL&;t t
8286$ac_datarootdir_hack
8287"
8288eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8289  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8290
8291test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8292  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8293  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8294      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8296which seems to be undefined.  Please make sure it is defined" >&5
8297printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8298which seems to be undefined.  Please make sure it is defined" >&2;}
8299
8300  rm -f "$ac_tmp/stdin"
8301  case $ac_file in
8302  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8303  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8304  esac \
8305  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8306 ;;
8307  :H)
8308  #
8309  # CONFIG_HEADER
8310  #
8311  if test x"$ac_file" != x-; then
8312    {
8313      printf "%s\n" "/* $configure_input  */" >&1 \
8314      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8315    } >"$ac_tmp/config.h" \
8316      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8317    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8318      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8319printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8320    else
8321      rm -f "$ac_file"
8322      mv "$ac_tmp/config.h" "$ac_file" \
8323	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8324    fi
8325  else
8326    printf "%s\n" "/* $configure_input  */" >&1 \
8327      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8328      || as_fn_error $? "could not create -" "$LINENO" 5
8329  fi
8330 ;;
8331
8332
8333  esac
8334
8335done # for ac_tag
8336
8337
8338as_fn_exit 0
8339_ACEOF
8340ac_clean_files=$ac_clean_files_save
8341
8342test $ac_write_fail = 0 ||
8343  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8344
8345
8346# configure is writing to config.log, and then calls config.status.
8347# config.status does its own redirection, appending to config.log.
8348# Unfortunately, on DOS this fails, as config.log is still kept open
8349# by configure, so config.status won't be able to write to it; its
8350# output is simply discarded.  So we exec the FD to /dev/null,
8351# effectively closing config.log, so it can be properly (re)opened and
8352# appended to by config.status.  When coming back to configure, we
8353# need to make the FD available again.
8354if test "$no_create" != yes; then
8355  ac_cs_success=:
8356  ac_config_status_args=
8357  test "$silent" = yes &&
8358    ac_config_status_args="$ac_config_status_args --quiet"
8359  exec 5>/dev/null
8360  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8361  exec 5>>config.log
8362  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8363  # would make configure fail if this is the last instruction.
8364  $ac_cs_success || as_fn_exit 1
8365fi
8366if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8368printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8369fi
8370
8371cat <<EOF
8372
8373You can now run
8374
8375	sh ./make-bootstrap.sh
8376
8377to produce a fully functional bmake.
8378
8379EOF
8380
8381