xref: /netbsd-src/external/bsd/nsd/dist/configure (revision 87d689fb734c654d2486f87f7be32f1b53ecdbec)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for NSD 4.1.14.
4#
5# Report bugs to <nsd-bugs@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: nsd-bugs@nlnetlabs.nl about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do 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# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='NSD'
582PACKAGE_TARNAME='nsd'
583PACKAGE_VERSION='4.1.14'
584PACKAGE_STRING='NSD 4.1.14'
585PACKAGE_BUGREPORT='nsd-bugs@nlnetlabs.nl'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625SSL_LIBS
626HAVE_SSL
627ratelimit_default
628ratelimit
629LIBOBJS
630YFLAGS
631YACC
632LEXLIB
633LEX_OUTPUT_ROOT
634LEX
635INSTALL_DATA
636INSTALL_SCRIPT
637INSTALL_PROGRAM
638LN_S
639AWK
640user
641chrootdir
642xfrdir
643zonelistfile
644xfrdfile
645zonesdir
646piddir
647dbdir
648dbfile
649pidfile
650logfile
651nsd_conf_file
652configdir
653EGREP
654GREP
655CPP
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663target_alias
664host_alias
665build_alias
666LIBS
667ECHO_T
668ECHO_N
669ECHO_C
670DEFS
671mandir
672localedir
673libdir
674psdir
675pdfdir
676dvidir
677htmldir
678infodir
679docdir
680oldincludedir
681includedir
682localstatedir
683sharedstatedir
684sysconfdir
685datadir
686datarootdir
687libexecdir
688sbindir
689bindir
690program_transform_name
691prefix
692exec_prefix
693PACKAGE_URL
694PACKAGE_BUGREPORT
695PACKAGE_STRING
696PACKAGE_VERSION
697PACKAGE_TARNAME
698PACKAGE_NAME
699PATH_SEPARATOR
700SHELL'
701ac_subst_files=''
702ac_user_opts='
703enable_option_checking
704with_configdir
705with_nsd_conf_file
706with_logfile
707with_pidfile
708with_dbfile
709with_zonesdir
710with_xfrdfile
711with_zonelistfile
712with_xfrdir
713with_chroot
714with_user
715enable_flto
716enable_pie
717enable_relro_now
718with_libevent
719enable_largefile
720enable_recvmmsg
721with_facility
722with_tcp_timeout
723enable_root_server
724enable_ipv6
725enable_bind8_stats
726enable_zone_stats
727enable_checking
728enable_ratelimit
729enable_ratelimit_default_is_off
730with_ssl
731enable_nsec3
732enable_minimal_responses
733enable_mmap
734enable_radix_tree
735'
736      ac_precious_vars='build_alias
737host_alias
738target_alias
739CC
740CFLAGS
741LDFLAGS
742LIBS
743CPPFLAGS
744CPP
745YACC
746YFLAGS'
747
748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
752ac_unrecognized_opts=
753ac_unrecognized_sep=
754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
776# (The list follows the same order as the GNU Coding Standards.)
777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
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  # Accept the important Cygnus configure options, so we can diagnose typos.
815
816  case $ac_dashdash$ac_option in
817  --)
818    ac_dashdash=yes ;;
819
820  -bindir | --bindir | --bindi | --bind | --bin | --bi)
821    ac_prev=bindir ;;
822  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823    bindir=$ac_optarg ;;
824
825  -build | --build | --buil | --bui | --bu)
826    ac_prev=build_alias ;;
827  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828    build_alias=$ac_optarg ;;
829
830  -cache-file | --cache-file | --cache-fil | --cache-fi \
831  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832    ac_prev=cache_file ;;
833  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835    cache_file=$ac_optarg ;;
836
837  --config-cache | -C)
838    cache_file=config.cache ;;
839
840  -datadir | --datadir | --datadi | --datad)
841    ac_prev=datadir ;;
842  -datadir=* | --datadir=* | --datadi=* | --datad=*)
843    datadir=$ac_optarg ;;
844
845  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846  | --dataroo | --dataro | --datar)
847    ac_prev=datarootdir ;;
848  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850    datarootdir=$ac_optarg ;;
851
852  -disable-* | --disable-*)
853    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854    # Reject names that are not valid shell variable names.
855    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856      as_fn_error $? "invalid feature name: $ac_useropt"
857    ac_useropt_orig=$ac_useropt
858    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859    case $ac_user_opts in
860      *"
861"enable_$ac_useropt"
862"*) ;;
863      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864	 ac_unrecognized_sep=', ';;
865    esac
866    eval enable_$ac_useropt=no ;;
867
868  -docdir | --docdir | --docdi | --doc | --do)
869    ac_prev=docdir ;;
870  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871    docdir=$ac_optarg ;;
872
873  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874    ac_prev=dvidir ;;
875  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876    dvidir=$ac_optarg ;;
877
878  -enable-* | --enable-*)
879    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882      as_fn_error $? "invalid feature name: $ac_useropt"
883    ac_useropt_orig=$ac_useropt
884    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885    case $ac_user_opts in
886      *"
887"enable_$ac_useropt"
888"*) ;;
889      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890	 ac_unrecognized_sep=', ';;
891    esac
892    eval enable_$ac_useropt=\$ac_optarg ;;
893
894  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896  | --exec | --exe | --ex)
897    ac_prev=exec_prefix ;;
898  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900  | --exec=* | --exe=* | --ex=*)
901    exec_prefix=$ac_optarg ;;
902
903  -gas | --gas | --ga | --g)
904    # Obsolete; use --with-gas.
905    with_gas=yes ;;
906
907  -help | --help | --hel | --he | -h)
908    ac_init_help=long ;;
909  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910    ac_init_help=recursive ;;
911  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912    ac_init_help=short ;;
913
914  -host | --host | --hos | --ho)
915    ac_prev=host_alias ;;
916  -host=* | --host=* | --hos=* | --ho=*)
917    host_alias=$ac_optarg ;;
918
919  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920    ac_prev=htmldir ;;
921  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922  | --ht=*)
923    htmldir=$ac_optarg ;;
924
925  -includedir | --includedir | --includedi | --included | --include \
926  | --includ | --inclu | --incl | --inc)
927    ac_prev=includedir ;;
928  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929  | --includ=* | --inclu=* | --incl=* | --inc=*)
930    includedir=$ac_optarg ;;
931
932  -infodir | --infodir | --infodi | --infod | --info | --inf)
933    ac_prev=infodir ;;
934  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935    infodir=$ac_optarg ;;
936
937  -libdir | --libdir | --libdi | --libd)
938    ac_prev=libdir ;;
939  -libdir=* | --libdir=* | --libdi=* | --libd=*)
940    libdir=$ac_optarg ;;
941
942  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943  | --libexe | --libex | --libe)
944    ac_prev=libexecdir ;;
945  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946  | --libexe=* | --libex=* | --libe=*)
947    libexecdir=$ac_optarg ;;
948
949  -localedir | --localedir | --localedi | --localed | --locale)
950    ac_prev=localedir ;;
951  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952    localedir=$ac_optarg ;;
953
954  -localstatedir | --localstatedir | --localstatedi | --localstated \
955  | --localstate | --localstat | --localsta | --localst | --locals)
956    ac_prev=localstatedir ;;
957  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959    localstatedir=$ac_optarg ;;
960
961  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962    ac_prev=mandir ;;
963  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964    mandir=$ac_optarg ;;
965
966  -nfp | --nfp | --nf)
967    # Obsolete; use --without-fp.
968    with_fp=no ;;
969
970  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971  | --no-cr | --no-c | -n)
972    no_create=yes ;;
973
974  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976    no_recursion=yes ;;
977
978  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980  | --oldin | --oldi | --old | --ol | --o)
981    ac_prev=oldincludedir ;;
982  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985    oldincludedir=$ac_optarg ;;
986
987  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988    ac_prev=prefix ;;
989  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990    prefix=$ac_optarg ;;
991
992  -program-prefix | --program-prefix | --program-prefi | --program-pref \
993  | --program-pre | --program-pr | --program-p)
994    ac_prev=program_prefix ;;
995  -program-prefix=* | --program-prefix=* | --program-prefi=* \
996  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997    program_prefix=$ac_optarg ;;
998
999  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000  | --program-suf | --program-su | --program-s)
1001    ac_prev=program_suffix ;;
1002  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004    program_suffix=$ac_optarg ;;
1005
1006  -program-transform-name | --program-transform-name \
1007  | --program-transform-nam | --program-transform-na \
1008  | --program-transform-n | --program-transform- \
1009  | --program-transform | --program-transfor \
1010  | --program-transfo | --program-transf \
1011  | --program-trans | --program-tran \
1012  | --progr-tra | --program-tr | --program-t)
1013    ac_prev=program_transform_name ;;
1014  -program-transform-name=* | --program-transform-name=* \
1015  | --program-transform-nam=* | --program-transform-na=* \
1016  | --program-transform-n=* | --program-transform-=* \
1017  | --program-transform=* | --program-transfor=* \
1018  | --program-transfo=* | --program-transf=* \
1019  | --program-trans=* | --program-tran=* \
1020  | --progr-tra=* | --program-tr=* | --program-t=*)
1021    program_transform_name=$ac_optarg ;;
1022
1023  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024    ac_prev=pdfdir ;;
1025  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026    pdfdir=$ac_optarg ;;
1027
1028  -psdir | --psdir | --psdi | --psd | --ps)
1029    ac_prev=psdir ;;
1030  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031    psdir=$ac_optarg ;;
1032
1033  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034  | -silent | --silent | --silen | --sile | --sil)
1035    silent=yes ;;
1036
1037  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038    ac_prev=sbindir ;;
1039  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040  | --sbi=* | --sb=*)
1041    sbindir=$ac_optarg ;;
1042
1043  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045  | --sharedst | --shareds | --shared | --share | --shar \
1046  | --sha | --sh)
1047    ac_prev=sharedstatedir ;;
1048  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051  | --sha=* | --sh=*)
1052    sharedstatedir=$ac_optarg ;;
1053
1054  -site | --site | --sit)
1055    ac_prev=site ;;
1056  -site=* | --site=* | --sit=*)
1057    site=$ac_optarg ;;
1058
1059  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060    ac_prev=srcdir ;;
1061  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062    srcdir=$ac_optarg ;;
1063
1064  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065  | --syscon | --sysco | --sysc | --sys | --sy)
1066    ac_prev=sysconfdir ;;
1067  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069    sysconfdir=$ac_optarg ;;
1070
1071  -target | --target | --targe | --targ | --tar | --ta | --t)
1072    ac_prev=target_alias ;;
1073  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074    target_alias=$ac_optarg ;;
1075
1076  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077    verbose=yes ;;
1078
1079  -version | --version | --versio | --versi | --vers | -V)
1080    ac_init_version=: ;;
1081
1082  -with-* | --with-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=\$ac_optarg ;;
1097
1098  -without-* | --without-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error $? "invalid package name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"with_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval with_$ac_useropt=no ;;
1113
1114  --x)
1115    # Obsolete; use --with-x.
1116    with_x=yes ;;
1117
1118  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119  | --x-incl | --x-inc | --x-in | --x-i)
1120    ac_prev=x_includes ;;
1121  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123    x_includes=$ac_optarg ;;
1124
1125  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127    ac_prev=x_libraries ;;
1128  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130    x_libraries=$ac_optarg ;;
1131
1132  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information"
1134    ;;
1135
1136  *=*)
1137    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138    # Reject names that are not valid shell variable names.
1139    case $ac_envvar in #(
1140      '' | [0-9]* | *[!_$as_cr_alnum]* )
1141      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142    esac
1143    eval $ac_envvar=\$ac_optarg
1144    export $ac_envvar ;;
1145
1146  *)
1147    # FIXME: should be removed in autoconf 3.0.
1148    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152    ;;
1153
1154  esac
1155done
1156
1157if test -n "$ac_prev"; then
1158  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159  as_fn_error $? "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163  case $enable_option_checking in
1164    no) ;;
1165    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167  esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172		datadir sysconfdir sharedstatedir localstatedir includedir \
1173		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174		libdir localedir mandir
1175do
1176  eval ac_val=\$$ac_var
1177  # Remove trailing slashes.
1178  case $ac_val in
1179    */ )
1180      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181      eval $ac_var=\$ac_val;;
1182  esac
1183  # Be sure to have absolute directory names.
1184  case $ac_val in
1185    [\\/$]* | ?:[\\/]* )  continue;;
1186    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187  esac
1188  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200  if test "x$build_alias" = x; then
1201    cross_compiling=maybe
1202  elif test "x$build_alias" != "x$host_alias"; then
1203    cross_compiling=yes
1204  fi
1205fi
1206
1207ac_tool_prefix=
1208test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210test "$silent" = yes && exec 6>/dev/null
1211
1212
1213ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214ac_ls_di=`ls -di .` &&
1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216  as_fn_error $? "working directory cannot be determined"
1217test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218  as_fn_error $? "pwd does not report name of working directory"
1219
1220
1221# Find the source files, if location was not specified.
1222if test -z "$srcdir"; then
1223  ac_srcdir_defaulted=yes
1224  # Try the directory containing this script, then the parent directory.
1225  ac_confdir=`$as_dirname -- "$as_myself" ||
1226$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227	 X"$as_myself" : 'X\(//\)[^/]' \| \
1228	 X"$as_myself" : 'X\(//\)$' \| \
1229	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230$as_echo X"$as_myself" |
1231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232	    s//\1/
1233	    q
1234	  }
1235	  /^X\(\/\/\)[^/].*/{
1236	    s//\1/
1237	    q
1238	  }
1239	  /^X\(\/\/\)$/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\).*/{
1244	    s//\1/
1245	    q
1246	  }
1247	  s/.*/./; q'`
1248  srcdir=$ac_confdir
1249  if test ! -r "$srcdir/$ac_unique_file"; then
1250    srcdir=..
1251  fi
1252else
1253  ac_srcdir_defaulted=no
1254fi
1255if test ! -r "$srcdir/$ac_unique_file"; then
1256  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258fi
1259ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260ac_abs_confdir=`(
1261	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262	pwd)`
1263# When building in place, set srcdir=.
1264if test "$ac_abs_confdir" = "$ac_pwd"; then
1265  srcdir=.
1266fi
1267# Remove unnecessary trailing slashes from srcdir.
1268# Double slashes in file names in object file debugging info
1269# mess up M-x gdb in Emacs.
1270case $srcdir in
1271*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272esac
1273for ac_var in $ac_precious_vars; do
1274  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275  eval ac_env_${ac_var}_value=\$${ac_var}
1276  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278done
1279
1280#
1281# Report the --help message.
1282#
1283if test "$ac_init_help" = "long"; then
1284  # Omit some internal or obsolete options to make the list less imposing.
1285  # This message is too long to be a string in the A/UX 3.1 sh.
1286  cat <<_ACEOF
1287\`configure' configures NSD 4.1.14 to adapt to many kinds of systems.
1288
1289Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292VAR=VALUE.  See below for descriptions of some of the useful variables.
1293
1294Defaults for the options are specified in brackets.
1295
1296Configuration:
1297  -h, --help              display this help and exit
1298      --help=short        display options specific to this package
1299      --help=recursive    display the short help of all the included packages
1300  -V, --version           display version information and exit
1301  -q, --quiet, --silent   do not print \`checking ...' messages
1302      --cache-file=FILE   cache test results in FILE [disabled]
1303  -C, --config-cache      alias for \`--cache-file=config.cache'
1304  -n, --no-create         do not create output files
1305      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1306
1307Installation directories:
1308  --prefix=PREFIX         install architecture-independent files in PREFIX
1309                          [$ac_default_prefix]
1310  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1311                          [PREFIX]
1312
1313By default, \`make install' will install all the files in
1314\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1315an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316for instance \`--prefix=\$HOME'.
1317
1318For better control, use the options below.
1319
1320Fine tuning of the installation directories:
1321  --bindir=DIR            user executables [EPREFIX/bin]
1322  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1323  --libexecdir=DIR        program executables [EPREFIX/libexec]
1324  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1325  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1326  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1327  --libdir=DIR            object code libraries [EPREFIX/lib]
1328  --includedir=DIR        C header files [PREFIX/include]
1329  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1330  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1331  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1332  --infodir=DIR           info documentation [DATAROOTDIR/info]
1333  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1334  --mandir=DIR            man documentation [DATAROOTDIR/man]
1335  --docdir=DIR            documentation root [DATAROOTDIR/doc/nsd]
1336  --htmldir=DIR           html documentation [DOCDIR]
1337  --dvidir=DIR            dvi documentation [DOCDIR]
1338  --pdfdir=DIR            pdf documentation [DOCDIR]
1339  --psdir=DIR             ps documentation [DOCDIR]
1340_ACEOF
1341
1342  cat <<\_ACEOF
1343_ACEOF
1344fi
1345
1346if test -n "$ac_init_help"; then
1347  case $ac_init_help in
1348     short | recursive ) echo "Configuration of NSD 4.1.14:";;
1349   esac
1350  cat <<\_ACEOF
1351
1352Optional Features:
1353  --disable-option-checking  ignore unrecognized --enable/--with options
1354  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1355  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1356  --disable-flto          Disable link-time optimization (gcc specific option)
1357  --enable-pie            Enable Position-Independent Executable (eg. to fully
1358                          benefit from ASLR, small performance penalty)
1359  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1360                          NOW, to protect GOT and .dtor areas)
1361  --disable-largefile     omit support for large files
1362  --enable-recvmmsg       Enable recvmmsg and sendmmsg compilation, faster but
1363                          some kernel versions may have implementation
1364                          problems for IPv6
1365  --enable-root-server    Configure NSD as a root server
1366  --disable-ipv6          Disables IPv6 support
1367  --enable-bind8-stats    Enables BIND8 like NSTATS & XSTATS and statistics in
1368                          nsd-control
1369  --enable-zone-stats     Enable per-zone statistics gathering (needs
1370                          --enable-bind8-stats)
1371  --enable-checking       Enable internal runtime checks
1372  --enable-ratelimit      Enable rate limiting
1373  --enable-ratelimit-default-is-off
1374                          Enable this to set default of ratelimit to off
1375                          (enable in nsd.conf), otherwise ratelimit is enabled
1376                          by default if --enable-ratelimit is enabled
1377  --disable-nsec3         Disable NSEC3 support
1378  --disable-minimal-responses
1379                          Disable response minimization. More truncation.
1380  --enable-mmap           Use mmap instead of malloc. Experimental.
1381  --disable-radix-tree    You can disable the radix tree and use the red-black
1382                          tree for the main lookups, the red-black tree uses
1383                          less memory, but uses some more CPU.
1384
1385Optional Packages:
1386  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388  --with-configdir=dir    NSD configuration directory
1389  --with-nsd_conf_file=path
1390                          Pathname to the NSD configuration file
1391  --with-logfile=path     Pathname to the default log file
1392  --with-pidfile=path     Pathname to the NSD pidfile
1393  --with-dbfile=path      Pathname to the NSD database
1394  --with-zonesdir=dir     NSD default location for zone files
1395  --with-xfrdfile=path    Pathname to the NSD xfrd zone timer state file
1396  --with-zonelistfile=path
1397                          Pathname to the NSD zone list file
1398  --with-xfrdir=path      Pathname to where the NSD transfer dir is created
1399  --with-chroot=dir       NSD default chroot directory
1400  --with-user=username    User name or ID to answer the queries with
1401  --with-libevent=pathname
1402                          use libevent (will check /usr/local /opt/local
1403                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1404                          an explicit path), useful when the zone count is
1405                          high.
1406  --with-facility=name    Syslog default facility (LOG_DAEMON)
1407  --with-tcp-timeout=number
1408                          Limit the default tcp timeout
1409  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1410                          /usr/ssl /usr/pkg /usr/sfw /usr/local /usr)
1411
1412Some influential environment variables:
1413  CC          C compiler command
1414  CFLAGS      C compiler flags
1415  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1416              nonstandard directory <lib dir>
1417  LIBS        libraries to pass to the linker, e.g. -l<library>
1418  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419              you have headers in a nonstandard directory <include dir>
1420  CPP         C preprocessor
1421  YACC        The `Yet Another Compiler Compiler' implementation to use.
1422              Defaults to the first program found out of: `bison -y', `byacc',
1423              `yacc'.
1424  YFLAGS      The list of arguments that will be passed by default to $YACC.
1425              This script will default YFLAGS to the empty string to avoid a
1426              default value of `-d' given by some make applications.
1427
1428Use these variables to override the choices made by `configure' or to help
1429it to find libraries and programs with nonstandard names/locations.
1430
1431Report bugs to <nsd-bugs@nlnetlabs.nl>.
1432_ACEOF
1433ac_status=$?
1434fi
1435
1436if test "$ac_init_help" = "recursive"; then
1437  # If there are subdirs, report their specific --help.
1438  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439    test -d "$ac_dir" ||
1440      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1441      continue
1442    ac_builddir=.
1443
1444case "$ac_dir" in
1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446*)
1447  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448  # A ".." for each directory in $ac_dir_suffix.
1449  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450  case $ac_top_builddir_sub in
1451  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453  esac ;;
1454esac
1455ac_abs_top_builddir=$ac_pwd
1456ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457# for backward compatibility:
1458ac_top_builddir=$ac_top_build_prefix
1459
1460case $srcdir in
1461  .)  # We are building in place.
1462    ac_srcdir=.
1463    ac_top_srcdir=$ac_top_builddir_sub
1464    ac_abs_top_srcdir=$ac_pwd ;;
1465  [\\/]* | ?:[\\/]* )  # Absolute name.
1466    ac_srcdir=$srcdir$ac_dir_suffix;
1467    ac_top_srcdir=$srcdir
1468    ac_abs_top_srcdir=$srcdir ;;
1469  *) # Relative name.
1470    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471    ac_top_srcdir=$ac_top_build_prefix$srcdir
1472    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473esac
1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
1476    cd "$ac_dir" || { ac_status=$?; continue; }
1477    # Check for guested configure.
1478    if test -f "$ac_srcdir/configure.gnu"; then
1479      echo &&
1480      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481    elif test -f "$ac_srcdir/configure"; then
1482      echo &&
1483      $SHELL "$ac_srcdir/configure" --help=recursive
1484    else
1485      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486    fi || ac_status=$?
1487    cd "$ac_pwd" || { ac_status=$?; break; }
1488  done
1489fi
1490
1491test -n "$ac_init_help" && exit $ac_status
1492if $ac_init_version; then
1493  cat <<\_ACEOF
1494NSD configure 4.1.14
1495generated by GNU Autoconf 2.69
1496
1497Copyright (C) 2012 Free Software Foundation, Inc.
1498This configure script is free software; the Free Software Foundation
1499gives unlimited permission to copy, distribute and modify it.
1500_ACEOF
1501  exit
1502fi
1503
1504## ------------------------ ##
1505## Autoconf initialization. ##
1506## ------------------------ ##
1507
1508# ac_fn_c_try_compile LINENO
1509# --------------------------
1510# Try to compile conftest.$ac_ext, and return whether this succeeded.
1511ac_fn_c_try_compile ()
1512{
1513  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514  rm -f conftest.$ac_objext
1515  if { { ac_try="$ac_compile"
1516case "(($ac_try" in
1517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518  *) ac_try_echo=$ac_try;;
1519esac
1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521$as_echo "$ac_try_echo"; } >&5
1522  (eval "$ac_compile") 2>conftest.err
1523  ac_status=$?
1524  if test -s conftest.err; then
1525    grep -v '^ *+' conftest.err >conftest.er1
1526    cat conftest.er1 >&5
1527    mv -f conftest.er1 conftest.err
1528  fi
1529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530  test $ac_status = 0; } && {
1531	 test -z "$ac_c_werror_flag" ||
1532	 test ! -s conftest.err
1533       } && test -s conftest.$ac_objext; then :
1534  ac_retval=0
1535else
1536  $as_echo "$as_me: failed program was:" >&5
1537sed 's/^/| /' conftest.$ac_ext >&5
1538
1539	ac_retval=1
1540fi
1541  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542  as_fn_set_status $ac_retval
1543
1544} # ac_fn_c_try_compile
1545
1546# ac_fn_c_try_cpp LINENO
1547# ----------------------
1548# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549ac_fn_c_try_cpp ()
1550{
1551  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552  if { { ac_try="$ac_cpp conftest.$ac_ext"
1553case "(($ac_try" in
1554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555  *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560  ac_status=$?
1561  if test -s conftest.err; then
1562    grep -v '^ *+' conftest.err >conftest.er1
1563    cat conftest.er1 >&5
1564    mv -f conftest.er1 conftest.err
1565  fi
1566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567  test $ac_status = 0; } > conftest.i && {
1568	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569	 test ! -s conftest.err
1570       }; then :
1571  ac_retval=0
1572else
1573  $as_echo "$as_me: failed program was:" >&5
1574sed 's/^/| /' conftest.$ac_ext >&5
1575
1576    ac_retval=1
1577fi
1578  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579  as_fn_set_status $ac_retval
1580
1581} # ac_fn_c_try_cpp
1582
1583# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584# -------------------------------------------------------
1585# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586# the include files in INCLUDES and setting the cache variable VAR
1587# accordingly.
1588ac_fn_c_check_header_mongrel ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  if eval \${$3+:} false; then :
1592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593$as_echo_n "checking for $2... " >&6; }
1594if eval \${$3+:} false; then :
1595  $as_echo_n "(cached) " >&6
1596fi
1597eval ac_res=\$$3
1598	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599$as_echo "$ac_res" >&6; }
1600else
1601  # Is the header compilable?
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603$as_echo_n "checking $2 usability... " >&6; }
1604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605/* end confdefs.h.  */
1606$4
1607#include <$2>
1608_ACEOF
1609if ac_fn_c_try_compile "$LINENO"; then :
1610  ac_header_compiler=yes
1611else
1612  ac_header_compiler=no
1613fi
1614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616$as_echo "$ac_header_compiler" >&6; }
1617
1618# Is the header present?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620$as_echo_n "checking $2 presence... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623#include <$2>
1624_ACEOF
1625if ac_fn_c_try_cpp "$LINENO"; then :
1626  ac_header_preproc=yes
1627else
1628  ac_header_preproc=no
1629fi
1630rm -f conftest.err conftest.i conftest.$ac_ext
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632$as_echo "$ac_header_preproc" >&6; }
1633
1634# So?  What about this header?
1635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1636  yes:no: )
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641    ;;
1642  no:yes:* )
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1646$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1650$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653( $as_echo "## ------------------------------------ ##
1654## Report this to nsd-bugs@nlnetlabs.nl ##
1655## ------------------------------------ ##"
1656     ) | sed "s/^/$as_me: WARNING:     /" >&2
1657    ;;
1658esac
1659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
1661if eval \${$3+:} false; then :
1662  $as_echo_n "(cached) " >&6
1663else
1664  eval "$3=\$ac_header_compiler"
1665fi
1666eval ac_res=\$$3
1667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672} # ac_fn_c_check_header_mongrel
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726  $as_echo_n "(cached) " >&6
1727else
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734  eval "$3=yes"
1735else
1736  eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_c_try_link LINENO
1748# -----------------------
1749# Try to link conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_link ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  rm -f conftest.$ac_objext conftest$ac_exeext
1754  if { { ac_try="$ac_link"
1755case "(($ac_try" in
1756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757  *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761  (eval "$ac_link") 2>conftest.err
1762  ac_status=$?
1763  if test -s conftest.err; then
1764    grep -v '^ *+' conftest.err >conftest.er1
1765    cat conftest.er1 >&5
1766    mv -f conftest.er1 conftest.err
1767  fi
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; } && {
1770	 test -z "$ac_c_werror_flag" ||
1771	 test ! -s conftest.err
1772       } && test -s conftest$ac_exeext && {
1773	 test "$cross_compiling" = yes ||
1774	 test -x conftest$ac_exeext
1775       }; then :
1776  ac_retval=0
1777else
1778  $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781	ac_retval=1
1782fi
1783  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785  # interfere with the next link command; also delete a directory that is
1786  # left behind by Apple's compiler.  We do this before executing the actions.
1787  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789  as_fn_set_status $ac_retval
1790
1791} # ac_fn_c_try_link
1792
1793# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1794# -------------------------------------------
1795# Tests whether TYPE exists after having included INCLUDES, setting cache
1796# variable VAR accordingly.
1797ac_fn_c_check_type ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  eval "$3=no"
1806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h.  */
1808$4
1809int
1810main ()
1811{
1812if (sizeof ($2))
1813	 return 0;
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821$4
1822int
1823main ()
1824{
1825if (sizeof (($2)))
1826	    return 0;
1827  ;
1828  return 0;
1829}
1830_ACEOF
1831if ac_fn_c_try_compile "$LINENO"; then :
1832
1833else
1834  eval "$3=yes"
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_type
1846
1847# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1848# ---------------------------------------------
1849# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1850# accordingly.
1851ac_fn_c_check_decl ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  as_decl_name=`echo $2|sed 's/ *(.*//'`
1855  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1857$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863$4
1864int
1865main ()
1866{
1867#ifndef $as_decl_name
1868#ifdef __cplusplus
1869  (void) $as_decl_use;
1870#else
1871  (void) $as_decl_name;
1872#endif
1873#endif
1874
1875  ;
1876  return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  eval "$3=yes"
1881else
1882  eval "$3=no"
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_decl
1892
1893# ac_fn_c_check_func LINENO FUNC VAR
1894# ----------------------------------
1895# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896ac_fn_c_check_func ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902  $as_echo_n "(cached) " >&6
1903else
1904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h.  */
1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1908#define $2 innocuous_$2
1909
1910/* System header to define __stub macros and hopefully few prototypes,
1911    which can conflict with char $2 (); below.
1912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913    <limits.h> exists even on freestanding compilers.  */
1914
1915#ifdef __STDC__
1916# include <limits.h>
1917#else
1918# include <assert.h>
1919#endif
1920
1921#undef $2
1922
1923/* Override any GCC internal prototype to avoid an error.
1924   Use char because int might match the return type of a GCC
1925   builtin and then its argument prototype would still apply.  */
1926#ifdef __cplusplus
1927extern "C"
1928#endif
1929char $2 ();
1930/* The GNU C library defines this for functions which it implements
1931    to always fail with ENOSYS.  Some functions are actually named
1932    something starting with __ and the normal name is an alias.  */
1933#if defined __stub_$2 || defined __stub___$2
1934choke me
1935#endif
1936
1937int
1938main ()
1939{
1940return $2 ();
1941  ;
1942  return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_link "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext \
1951    conftest$ac_exeext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_func
1959
1960# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1961# ----------------------------------------------------
1962# Tries to find if the field MEMBER exists in type AGGR, after including
1963# INCLUDES, setting cache variable VAR accordingly.
1964ac_fn_c_check_member ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1968$as_echo_n "checking for $2.$3... " >&6; }
1969if eval \${$4+:} false; then :
1970  $as_echo_n "(cached) " >&6
1971else
1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h.  */
1974$5
1975int
1976main ()
1977{
1978static $2 ac_aggr;
1979if (ac_aggr.$3)
1980return 0;
1981  ;
1982  return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986  eval "$4=yes"
1987else
1988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h.  */
1990$5
1991int
1992main ()
1993{
1994static $2 ac_aggr;
1995if (sizeof ac_aggr.$3)
1996return 0;
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002  eval "$4=yes"
2003else
2004  eval "$4=no"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010eval ac_res=\$$4
2011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_member
2016
2017# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2018# --------------------------------------------
2019# Tries to find the compile-time value of EXPR in a program that includes
2020# INCLUDES, setting VAR accordingly. Returns whether the value could be
2021# computed
2022ac_fn_c_compute_int ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  if test "$cross_compiling" = yes; then
2026    # Depending upon the size, compute the lo and hi bounds.
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h.  */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) >= 0)];
2034test_array [0] = 0;
2035return test_array [0];
2036
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041if ac_fn_c_try_compile "$LINENO"; then :
2042  ac_lo=0 ac_mid=0
2043  while :; do
2044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h.  */
2046$4
2047int
2048main ()
2049{
2050static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2051test_array [0] = 0;
2052return test_array [0];
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059  ac_hi=$ac_mid; break
2060else
2061  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2062			if test $ac_lo -le $ac_mid; then
2063			  ac_lo= ac_hi=
2064			  break
2065			fi
2066			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069  done
2070else
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074int
2075main ()
2076{
2077static int test_array [1 - 2 * !(($2) < 0)];
2078test_array [0] = 0;
2079return test_array [0];
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
2086  ac_hi=-1 ac_mid=-1
2087  while :; do
2088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090$4
2091int
2092main ()
2093{
2094static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2095test_array [0] = 0;
2096return test_array [0];
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103  ac_lo=$ac_mid; break
2104else
2105  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106			if test $ac_mid -le $ac_hi; then
2107			  ac_lo= ac_hi=
2108			  break
2109			fi
2110			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113  done
2114else
2115  ac_lo= ac_hi=
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120# Binary search between lo and hi bounds.
2121while test "x$ac_lo" != "x$ac_hi"; do
2122  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130test_array [0] = 0;
2131return test_array [0];
2132
2133  ;
2134  return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138  ac_hi=$ac_mid
2139else
2140  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143done
2144case $ac_lo in #((
2145?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2146'') ac_retval=1 ;;
2147esac
2148  else
2149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h.  */
2151$4
2152static long int longval () { return $2; }
2153static unsigned long int ulongval () { return $2; }
2154#include <stdio.h>
2155#include <stdlib.h>
2156int
2157main ()
2158{
2159
2160  FILE *f = fopen ("conftest.val", "w");
2161  if (! f)
2162    return 1;
2163  if (($2) < 0)
2164    {
2165      long int i = longval ();
2166      if (i != ($2))
2167	return 1;
2168      fprintf (f, "%ld", i);
2169    }
2170  else
2171    {
2172      unsigned long int i = ulongval ();
2173      if (i != ($2))
2174	return 1;
2175      fprintf (f, "%lu", i);
2176    }
2177  /* Do not output a trailing newline, as this causes \r\n confusion
2178     on some platforms.  */
2179  return ferror (f) || fclose (f) != 0;
2180
2181  ;
2182  return 0;
2183}
2184_ACEOF
2185if ac_fn_c_try_run "$LINENO"; then :
2186  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2187else
2188  ac_retval=1
2189fi
2190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2191  conftest.$ac_objext conftest.beam conftest.$ac_ext
2192rm -f conftest.val
2193
2194  fi
2195  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196  as_fn_set_status $ac_retval
2197
2198} # ac_fn_c_compute_int
2199cat >config.log <<_ACEOF
2200This file contains any messages produced by compilers while
2201running configure, to aid debugging if configure makes a mistake.
2202
2203It was created by NSD $as_me 4.1.14, which was
2204generated by GNU Autoconf 2.69.  Invocation command line was
2205
2206  $ $0 $@
2207
2208_ACEOF
2209exec 5>>config.log
2210{
2211cat <<_ASUNAME
2212## --------- ##
2213## Platform. ##
2214## --------- ##
2215
2216hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2224
2225/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2226/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2227/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2229/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2230/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2231/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2232
2233_ASUNAME
2234
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240    $as_echo "PATH: $as_dir"
2241  done
2242IFS=$as_save_IFS
2243
2244} >&5
2245
2246cat >&5 <<_ACEOF
2247
2248
2249## ----------- ##
2250## Core tests. ##
2251## ----------- ##
2252
2253_ACEOF
2254
2255
2256# Keep a trace of the command line.
2257# Strip out --no-create and --no-recursion so they do not pile up.
2258# Strip out --silent because we don't want to record it for future runs.
2259# Also quote any args containing shell meta-characters.
2260# Make two passes to allow for proper duplicate-argument suppression.
2261ac_configure_args=
2262ac_configure_args0=
2263ac_configure_args1=
2264ac_must_keep_next=false
2265for ac_pass in 1 2
2266do
2267  for ac_arg
2268  do
2269    case $ac_arg in
2270    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272    | -silent | --silent | --silen | --sile | --sil)
2273      continue ;;
2274    *\'*)
2275      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276    esac
2277    case $ac_pass in
2278    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2279    2)
2280      as_fn_append ac_configure_args1 " '$ac_arg'"
2281      if test $ac_must_keep_next = true; then
2282	ac_must_keep_next=false # Got value, back to normal.
2283      else
2284	case $ac_arg in
2285	  *=* | --config-cache | -C | -disable-* | --disable-* \
2286	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288	  | -with-* | --with-* | -without-* | --without-* | --x)
2289	    case "$ac_configure_args0 " in
2290	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291	    esac
2292	    ;;
2293	  -* ) ac_must_keep_next=true ;;
2294	esac
2295      fi
2296      as_fn_append ac_configure_args " '$ac_arg'"
2297      ;;
2298    esac
2299  done
2300done
2301{ ac_configure_args0=; unset ac_configure_args0;}
2302{ ac_configure_args1=; unset ac_configure_args1;}
2303
2304# When interrupted or exit'd, cleanup temporary files, and complete
2305# config.log.  We remove comments because anyway the quotes in there
2306# would cause problems or look ugly.
2307# WARNING: Use '\'' to represent an apostrophe within the trap.
2308# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309trap 'exit_status=$?
2310  # Save into config.log some information that might help in debugging.
2311  {
2312    echo
2313
2314    $as_echo "## ---------------- ##
2315## Cache variables. ##
2316## ---------------- ##"
2317    echo
2318    # The following way of writing the cache mishandles newlines in values,
2319(
2320  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321    eval ac_val=\$$ac_var
2322    case $ac_val in #(
2323    *${as_nl}*)
2324      case $ac_var in #(
2325      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327      esac
2328      case $ac_var in #(
2329      _ | IFS | as_nl) ;; #(
2330      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331      *) { eval $ac_var=; unset $ac_var;} ;;
2332      esac ;;
2333    esac
2334  done
2335  (set) 2>&1 |
2336    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337    *${as_nl}ac_space=\ *)
2338      sed -n \
2339	"s/'\''/'\''\\\\'\'''\''/g;
2340	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341      ;; #(
2342    *)
2343      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344      ;;
2345    esac |
2346    sort
2347)
2348    echo
2349
2350    $as_echo "## ----------------- ##
2351## Output variables. ##
2352## ----------------- ##"
2353    echo
2354    for ac_var in $ac_subst_vars
2355    do
2356      eval ac_val=\$$ac_var
2357      case $ac_val in
2358      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359      esac
2360      $as_echo "$ac_var='\''$ac_val'\''"
2361    done | sort
2362    echo
2363
2364    if test -n "$ac_subst_files"; then
2365      $as_echo "## ------------------- ##
2366## File substitutions. ##
2367## ------------------- ##"
2368      echo
2369      for ac_var in $ac_subst_files
2370      do
2371	eval ac_val=\$$ac_var
2372	case $ac_val in
2373	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374	esac
2375	$as_echo "$ac_var='\''$ac_val'\''"
2376      done | sort
2377      echo
2378    fi
2379
2380    if test -s confdefs.h; then
2381      $as_echo "## ----------- ##
2382## confdefs.h. ##
2383## ----------- ##"
2384      echo
2385      cat confdefs.h
2386      echo
2387    fi
2388    test "$ac_signal" != 0 &&
2389      $as_echo "$as_me: caught signal $ac_signal"
2390    $as_echo "$as_me: exit $exit_status"
2391  } >&5
2392  rm -f core *.core core.conftest.* &&
2393    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394    exit $exit_status
2395' 0
2396for ac_signal in 1 2 13 15; do
2397  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398done
2399ac_signal=0
2400
2401# confdefs.h avoids OS command line length limits that DEFS can exceed.
2402rm -f -r conftest* confdefs.h
2403
2404$as_echo "/* confdefs.h */" > confdefs.h
2405
2406# Predefined preprocessor variables.
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_NAME "$PACKAGE_NAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_VERSION "$PACKAGE_VERSION"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_STRING "$PACKAGE_STRING"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426_ACEOF
2427
2428cat >>confdefs.h <<_ACEOF
2429#define PACKAGE_URL "$PACKAGE_URL"
2430_ACEOF
2431
2432
2433# Let the site file select an alternate cache file if it wants to.
2434# Prefer an explicitly selected file to automatically selected ones.
2435ac_site_file1=NONE
2436ac_site_file2=NONE
2437if test -n "$CONFIG_SITE"; then
2438  # We do not want a PATH search for config.site.
2439  case $CONFIG_SITE in #((
2440    -*)  ac_site_file1=./$CONFIG_SITE;;
2441    */*) ac_site_file1=$CONFIG_SITE;;
2442    *)   ac_site_file1=./$CONFIG_SITE;;
2443  esac
2444elif test "x$prefix" != xNONE; then
2445  ac_site_file1=$prefix/share/config.site
2446  ac_site_file2=$prefix/etc/config.site
2447else
2448  ac_site_file1=$ac_default_prefix/share/config.site
2449  ac_site_file2=$ac_default_prefix/etc/config.site
2450fi
2451for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452do
2453  test "x$ac_site_file" = xNONE && continue
2454  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457    sed 's/^/| /' "$ac_site_file" >&5
2458    . "$ac_site_file" \
2459      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461as_fn_error $? "failed to load site script $ac_site_file
2462See \`config.log' for more details" "$LINENO" 5; }
2463  fi
2464done
2465
2466if test -r "$cache_file"; then
2467  # Some versions of bash will fail to source /dev/null (special files
2468  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2469  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471$as_echo "$as_me: loading cache $cache_file" >&6;}
2472    case $cache_file in
2473      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474      *)                      . "./$cache_file";;
2475    esac
2476  fi
2477else
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479$as_echo "$as_me: creating cache $cache_file" >&6;}
2480  >$cache_file
2481fi
2482
2483# Check that the precious variables saved in the cache have kept the same
2484# value.
2485ac_cache_corrupted=false
2486for ac_var in $ac_precious_vars; do
2487  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488  eval ac_new_set=\$ac_env_${ac_var}_set
2489  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490  eval ac_new_val=\$ac_env_${ac_var}_value
2491  case $ac_old_set,$ac_new_set in
2492    set,)
2493      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495      ac_cache_corrupted=: ;;
2496    ,set)
2497      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499      ac_cache_corrupted=: ;;
2500    ,);;
2501    *)
2502      if test "x$ac_old_val" != "x$ac_new_val"; then
2503	# differences in whitespace do not lead to failure.
2504	ac_old_val_w=`echo x $ac_old_val`
2505	ac_new_val_w=`echo x $ac_new_val`
2506	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509	  ac_cache_corrupted=:
2510	else
2511	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513	  eval $ac_var=\$ac_old_val
2514	fi
2515	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2516$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2517	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2518$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2519      fi;;
2520  esac
2521  # Pass precious variables to config.status.
2522  if test "$ac_new_set" = set; then
2523    case $ac_new_val in
2524    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525    *) ac_arg=$ac_var=$ac_new_val ;;
2526    esac
2527    case " $ac_configure_args " in
2528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2529      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530    esac
2531  fi
2532done
2533if $ac_cache_corrupted; then
2534  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539fi
2540## -------------------- ##
2541## Main body of script. ##
2542## -------------------- ##
2543
2544ac_ext=c
2545ac_cpp='$CPP $CPPFLAGS'
2546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551ac_config_headers="$ac_config_headers config.h"
2552
2553
2554CFLAGS="$CFLAGS"
2555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560if test -n "$ac_tool_prefix"; then
2561  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}gcc; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_CC+:} false; then :
2566  $as_echo_n "(cached) " >&6
2567else
2568  if test -n "$CC"; then
2569  ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576    for ac_exec_ext in '' $ac_executable_extensions; do
2577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580    break 2
2581  fi
2582done
2583  done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591$as_echo "$CC" >&6; }
2592else
2593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597
2598fi
2599if test -z "$ac_cv_prog_CC"; then
2600  ac_ct_CC=$CC
2601  # Extract the first word of "gcc", so it can be a program name with args.
2602set dummy gcc; ac_word=$2
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604$as_echo_n "checking for $ac_word... " >&6; }
2605if ${ac_cv_prog_ac_ct_CC+:} false; then :
2606  $as_echo_n "(cached) " >&6
2607else
2608  if test -n "$ac_ct_CC"; then
2609  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616    for ac_exec_ext in '' $ac_executable_extensions; do
2617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618    ac_cv_prog_ac_ct_CC="gcc"
2619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620    break 2
2621  fi
2622done
2623  done
2624IFS=$as_save_IFS
2625
2626fi
2627fi
2628ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629if test -n "$ac_ct_CC"; then
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2631$as_echo "$ac_ct_CC" >&6; }
2632else
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634$as_echo "no" >&6; }
2635fi
2636
2637  if test "x$ac_ct_CC" = x; then
2638    CC=""
2639  else
2640    case $cross_compiling:$ac_tool_warned in
2641yes:)
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644ac_tool_warned=yes ;;
2645esac
2646    CC=$ac_ct_CC
2647  fi
2648else
2649  CC="$ac_cv_prog_CC"
2650fi
2651
2652if test -z "$CC"; then
2653          if test -n "$ac_tool_prefix"; then
2654    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655set dummy ${ac_tool_prefix}cc; ac_word=$2
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
2658if ${ac_cv_prog_CC+:} false; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  if test -n "$CC"; then
2662  ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667  IFS=$as_save_IFS
2668  test -z "$as_dir" && as_dir=.
2669    for ac_exec_ext in '' $ac_executable_extensions; do
2670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671    ac_cv_prog_CC="${ac_tool_prefix}cc"
2672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673    break 2
2674  fi
2675done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684$as_echo "$CC" >&6; }
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688fi
2689
2690
2691  fi
2692fi
2693if test -z "$CC"; then
2694  # Extract the first word of "cc", so it can be a program name with args.
2695set dummy cc; ac_word=$2
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697$as_echo_n "checking for $ac_word... " >&6; }
2698if ${ac_cv_prog_CC+:} false; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  if test -n "$CC"; then
2702  ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704  ac_prog_rejected=no
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713       ac_prog_rejected=yes
2714       continue
2715     fi
2716    ac_cv_prog_CC="cc"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724if test $ac_prog_rejected = yes; then
2725  # We found a bogon in the path, so make sure we never use it.
2726  set dummy $ac_cv_prog_CC
2727  shift
2728  if test $# != 0; then
2729    # We chose a different compiler from the bogus one.
2730    # However, it has the same basename, so the bogon will be chosen
2731    # first if we set CC to just the basename; use the full file name.
2732    shift
2733    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2734  fi
2735fi
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741$as_echo "$CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747
2748fi
2749if test -z "$CC"; then
2750  if test -n "$ac_tool_prefix"; then
2751  for ac_prog in cl.exe
2752  do
2753    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if ${ac_cv_prog_CC+:} false; then :
2758  $as_echo_n "(cached) " >&6
2759else
2760  if test -n "$CC"; then
2761  ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768    for ac_exec_ext in '' $ac_executable_extensions; do
2769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772    break 2
2773  fi
2774done
2775  done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
2782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783$as_echo "$CC" >&6; }
2784else
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789
2790    test -n "$CC" && break
2791  done
2792fi
2793if test -z "$CC"; then
2794  ac_ct_CC=$CC
2795  for ac_prog in cl.exe
2796do
2797  # Extract the first word of "$ac_prog", so it can be a program name with args.
2798set dummy $ac_prog; ac_word=$2
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if ${ac_cv_prog_ac_ct_CC+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812    for ac_exec_ext in '' $ac_executable_extensions; do
2813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="$ac_prog"
2815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819  done
2820IFS=$as_save_IFS
2821
2822fi
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2827$as_echo "$ac_ct_CC" >&6; }
2828else
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
2831fi
2832
2833
2834  test -n "$ac_ct_CC" && break
2835done
2836
2837  if test "x$ac_ct_CC" = x; then
2838    CC=""
2839  else
2840    case $cross_compiling:$ac_tool_warned in
2841yes:)
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844ac_tool_warned=yes ;;
2845esac
2846    CC=$ac_ct_CC
2847  fi
2848fi
2849
2850fi
2851
2852
2853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855as_fn_error $? "no acceptable C compiler found in \$PATH
2856See \`config.log' for more details" "$LINENO" 5; }
2857
2858# Provide some information about the compiler.
2859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2860set X $ac_compile
2861ac_compiler=$2
2862for ac_option in --version -v -V -qversion; do
2863  { { ac_try="$ac_compiler $ac_option >&5"
2864case "(($ac_try" in
2865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866  *) ac_try_echo=$ac_try;;
2867esac
2868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869$as_echo "$ac_try_echo"; } >&5
2870  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2871  ac_status=$?
2872  if test -s conftest.err; then
2873    sed '10a\
2874... rest of stderr output deleted ...
2875         10q' conftest.err >conftest.er1
2876    cat conftest.er1 >&5
2877  fi
2878  rm -f conftest.er1 conftest.err
2879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880  test $ac_status = 0; }
2881done
2882
2883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894ac_clean_files_save=$ac_clean_files
2895ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2896# Try to create an executable without -o first, disregard a.out.
2897# It will help us diagnose broken compilers, and finding out an intuition
2898# of exeext.
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2900$as_echo_n "checking whether the C compiler works... " >&6; }
2901ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2902
2903# The possible output files:
2904ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905
2906ac_rmfiles=
2907for ac_file in $ac_files
2908do
2909  case $ac_file in
2910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2911    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912  esac
2913done
2914rm -f $ac_rmfiles
2915
2916if { { ac_try="$ac_link_default"
2917case "(($ac_try" in
2918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919  *) ac_try_echo=$ac_try;;
2920esac
2921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922$as_echo "$ac_try_echo"; } >&5
2923  (eval "$ac_link_default") 2>&5
2924  ac_status=$?
2925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926  test $ac_status = 0; }; then :
2927  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2930# so that the user can short-circuit this test for compilers unknown to
2931# Autoconf.
2932for ac_file in $ac_files ''
2933do
2934  test -f "$ac_file" || continue
2935  case $ac_file in
2936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2937	;;
2938    [ab].out )
2939	# We found the default executable, but exeext='' is most
2940	# certainly right.
2941	break;;
2942    *.* )
2943	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2944	then :; else
2945	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946	fi
2947	# We set ac_cv_exeext here because the later test for it is not
2948	# safe: cross compilers may not add the suffix if given an `-o'
2949	# argument, so we may need to know it at that point already.
2950	# Even if this section looks crufty: it has the advantage of
2951	# actually working.
2952	break;;
2953    * )
2954	break;;
2955  esac
2956done
2957test "$ac_cv_exeext" = no && ac_cv_exeext=
2958
2959else
2960  ac_file=''
2961fi
2962if test -z "$ac_file"; then :
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965$as_echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970as_fn_error 77 "C compiler cannot create executables
2971See \`config.log' for more details" "$LINENO" 5; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974$as_echo "yes" >&6; }
2975fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977$as_echo_n "checking for C compiler default output file name... " >&6; }
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2979$as_echo "$ac_file" >&6; }
2980ac_exeext=$ac_cv_exeext
2981
2982rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2983ac_clean_files=$ac_clean_files_save
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2985$as_echo_n "checking for suffix of executables... " >&6; }
2986if { { ac_try="$ac_link"
2987case "(($ac_try" in
2988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989  *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993  (eval "$ac_link") 2>&5
2994  ac_status=$?
2995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996  test $ac_status = 0; }; then :
2997  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2999# work properly (i.e., refer to `conftest.exe'), while it won't with
3000# `rm'.
3001for ac_file in conftest.exe conftest conftest.*; do
3002  test -f "$ac_file" || continue
3003  case $ac_file in
3004    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3005    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006	  break;;
3007    * ) break;;
3008  esac
3009done
3010else
3011  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3014See \`config.log' for more details" "$LINENO" 5; }
3015fi
3016rm -f conftest conftest$ac_cv_exeext
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3018$as_echo "$ac_cv_exeext" >&6; }
3019
3020rm -f conftest.$ac_ext
3021EXEEXT=$ac_cv_exeext
3022ac_exeext=$EXEEXT
3023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h.  */
3025#include <stdio.h>
3026int
3027main ()
3028{
3029FILE *f = fopen ("conftest.out", "w");
3030 return ferror (f) || fclose (f) != 0;
3031
3032  ;
3033  return 0;
3034}
3035_ACEOF
3036ac_clean_files="$ac_clean_files conftest.out"
3037# Check that the compiler produces executables we can run.  If not, either
3038# the compiler is broken, or we cross compile.
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3040$as_echo_n "checking whether we are cross compiling... " >&6; }
3041if test "$cross_compiling" != yes; then
3042  { { ac_try="$ac_link"
3043case "(($ac_try" in
3044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045  *) ac_try_echo=$ac_try;;
3046esac
3047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048$as_echo "$ac_try_echo"; } >&5
3049  (eval "$ac_link") 2>&5
3050  ac_status=$?
3051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052  test $ac_status = 0; }
3053  if { ac_try='./conftest$ac_cv_exeext'
3054  { { case "(($ac_try" in
3055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056  *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060  (eval "$ac_try") 2>&5
3061  ac_status=$?
3062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063  test $ac_status = 0; }; }; then
3064    cross_compiling=no
3065  else
3066    if test "$cross_compiling" = maybe; then
3067	cross_compiling=yes
3068    else
3069	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071as_fn_error $? "cannot run C compiled programs.
3072If you meant to cross compile, use \`--host'.
3073See \`config.log' for more details" "$LINENO" 5; }
3074    fi
3075  fi
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078$as_echo "$cross_compiling" >&6; }
3079
3080rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3081ac_clean_files=$ac_clean_files_save
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3083$as_echo_n "checking for suffix of object files... " >&6; }
3084if ${ac_cv_objext+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.o conftest.obj
3099if { { ac_try="$ac_compile"
3100case "(($ac_try" in
3101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102  *) ac_try_echo=$ac_try;;
3103esac
3104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
3106  (eval "$ac_compile") 2>&5
3107  ac_status=$?
3108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109  test $ac_status = 0; }; then :
3110  for ac_file in conftest.o conftest.obj conftest.*; do
3111  test -f "$ac_file" || continue;
3112  case $ac_file in
3113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3114    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115       break;;
3116  esac
3117done
3118else
3119  $as_echo "$as_me: failed program was:" >&5
3120sed 's/^/| /' conftest.$ac_ext >&5
3121
3122{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124as_fn_error $? "cannot compute suffix of object files: cannot compile
3125See \`config.log' for more details" "$LINENO" 5; }
3126fi
3127rm -f conftest.$ac_cv_objext conftest.$ac_ext
3128fi
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3130$as_echo "$ac_cv_objext" >&6; }
3131OBJEXT=$ac_cv_objext
3132ac_objext=$OBJEXT
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3135if ${ac_cv_c_compiler_gnu+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h.  */
3140
3141int
3142main ()
3143{
3144#ifndef __GNUC__
3145       choke me
3146#endif
3147
3148  ;
3149  return 0;
3150}
3151_ACEOF
3152if ac_fn_c_try_compile "$LINENO"; then :
3153  ac_compiler_gnu=yes
3154else
3155  ac_compiler_gnu=no
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158ac_cv_c_compiler_gnu=$ac_compiler_gnu
3159
3160fi
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3163if test $ac_compiler_gnu = yes; then
3164  GCC=yes
3165else
3166  GCC=
3167fi
3168ac_test_CFLAGS=${CFLAGS+set}
3169ac_save_CFLAGS=$CFLAGS
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3171$as_echo_n "checking whether $CC accepts -g... " >&6; }
3172if ${ac_cv_prog_cc_g+:} false; then :
3173  $as_echo_n "(cached) " >&6
3174else
3175  ac_save_c_werror_flag=$ac_c_werror_flag
3176   ac_c_werror_flag=yes
3177   ac_cv_prog_cc_g=no
3178   CFLAGS="-g"
3179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190if ac_fn_c_try_compile "$LINENO"; then :
3191  ac_cv_prog_cc_g=yes
3192else
3193  CFLAGS=""
3194      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196
3197int
3198main ()
3199{
3200
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205if ac_fn_c_try_compile "$LINENO"; then :
3206
3207else
3208  ac_c_werror_flag=$ac_save_c_werror_flag
3209	 CFLAGS="-g"
3210	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h.  */
3212
3213int
3214main ()
3215{
3216
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221if ac_fn_c_try_compile "$LINENO"; then :
3222  ac_cv_prog_cc_g=yes
3223fi
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229   ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3232$as_echo "$ac_cv_prog_cc_g" >&6; }
3233if test "$ac_test_CFLAGS" = set; then
3234  CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236  if test "$GCC" = yes; then
3237    CFLAGS="-g -O2"
3238  else
3239    CFLAGS="-g"
3240  fi
3241else
3242  if test "$GCC" = yes; then
3243    CFLAGS="-O2"
3244  else
3245    CFLAGS=
3246  fi
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3250if ${ac_cv_prog_cc_c89+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  ac_cv_prog_cc_c89=no
3254ac_save_CC=$CC
3255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h.  */
3257#include <stdarg.h>
3258#include <stdio.h>
3259struct stat;
3260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3261struct buf { int x; };
3262FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263static char *e (p, i)
3264     char **p;
3265     int i;
3266{
3267  return p[i];
3268}
3269static char *f (char * (*g) (char **, int), char **p, ...)
3270{
3271  char *s;
3272  va_list v;
3273  va_start (v,p);
3274  s = g (p, va_arg (v,int));
3275  va_end (v);
3276  return s;
3277}
3278
3279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3280   function prototypes and stuff, but not '\xHH' hex character constants.
3281   These don't provoke an error unfortunately, instead are silently treated
3282   as 'x'.  The following induces an error, until -std is added to get
3283   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3284   array size at least.  It's necessary to write '\x00'==0 to get something
3285   that's true only with -std.  */
3286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287
3288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289   inside strings and character constants.  */
3290#define FOO(x) 'x'
3291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292
3293int test (int i, double x);
3294struct s1 {int (*f) (int a);};
3295struct s2 {int (*f) (double a);};
3296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297int argc;
3298char **argv;
3299int
3300main ()
3301{
3302return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3303  ;
3304  return 0;
3305}
3306_ACEOF
3307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3309do
3310  CC="$ac_save_CC $ac_arg"
3311  if ac_fn_c_try_compile "$LINENO"; then :
3312  ac_cv_prog_cc_c89=$ac_arg
3313fi
3314rm -f core conftest.err conftest.$ac_objext
3315  test "x$ac_cv_prog_cc_c89" != "xno" && break
3316done
3317rm -f conftest.$ac_ext
3318CC=$ac_save_CC
3319
3320fi
3321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323  x)
3324    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3325$as_echo "none needed" >&6; } ;;
3326  xno)
3327    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3328$as_echo "unsupported" >&6; } ;;
3329  *)
3330    CC="$CC $ac_cv_prog_cc_c89"
3331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3333esac
3334if test "x$ac_cv_prog_cc_c89" != xno; then :
3335
3336fi
3337
3338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343
3344
3345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3351$as_echo_n "checking how to run the C preprocessor... " >&6; }
3352# On Suns, sometimes $CPP names a directory.
3353if test -n "$CPP" && test -d "$CPP"; then
3354  CPP=
3355fi
3356if test -z "$CPP"; then
3357  if ${ac_cv_prog_CPP+:} false; then :
3358  $as_echo_n "(cached) " >&6
3359else
3360      # Double quotes because CPP needs to be expanded
3361    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362    do
3363      ac_preproc_ok=false
3364for ac_c_preproc_warn_flag in '' yes
3365do
3366  # Use a header file that comes with gcc, so configuring glibc
3367  # with a fresh cross-compiler works.
3368  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369  # <limits.h> exists even on freestanding compilers.
3370  # On the NeXT, cc -E runs the code through the compiler's parser,
3371  # not just through cpp. "Syntax error" is here to catch this case.
3372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h.  */
3374#ifdef __STDC__
3375# include <limits.h>
3376#else
3377# include <assert.h>
3378#endif
3379		     Syntax error
3380_ACEOF
3381if ac_fn_c_try_cpp "$LINENO"; then :
3382
3383else
3384  # Broken: fails on valid input.
3385continue
3386fi
3387rm -f conftest.err conftest.i conftest.$ac_ext
3388
3389  # OK, works on sane cases.  Now check whether nonexistent headers
3390  # can be detected and how.
3391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393#include <ac_nonexistent.h>
3394_ACEOF
3395if ac_fn_c_try_cpp "$LINENO"; then :
3396  # Broken: success on invalid input.
3397continue
3398else
3399  # Passes both tests.
3400ac_preproc_ok=:
3401break
3402fi
3403rm -f conftest.err conftest.i conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.i conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then :
3409  break
3410fi
3411
3412    done
3413    ac_cv_prog_CPP=$CPP
3414
3415fi
3416  CPP=$ac_cv_prog_CPP
3417else
3418  ac_cv_prog_CPP=$CPP
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3421$as_echo "$CPP" >&6; }
3422ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425  # Use a header file that comes with gcc, so configuring glibc
3426  # with a fresh cross-compiler works.
3427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428  # <limits.h> exists even on freestanding compilers.
3429  # On the NeXT, cc -E runs the code through the compiler's parser,
3430  # not just through cpp. "Syntax error" is here to catch this case.
3431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h.  */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438		     Syntax error
3439_ACEOF
3440if ac_fn_c_try_cpp "$LINENO"; then :
3441
3442else
3443  # Broken: fails on valid input.
3444continue
3445fi
3446rm -f conftest.err conftest.i conftest.$ac_ext
3447
3448  # OK, works on sane cases.  Now check whether nonexistent headers
3449  # can be detected and how.
3450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452#include <ac_nonexistent.h>
3453_ACEOF
3454if ac_fn_c_try_cpp "$LINENO"; then :
3455  # Broken: success on invalid input.
3456continue
3457else
3458  # Passes both tests.
3459ac_preproc_ok=:
3460break
3461fi
3462rm -f conftest.err conftest.i conftest.$ac_ext
3463
3464done
3465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466rm -f conftest.i conftest.err conftest.$ac_ext
3467if $ac_preproc_ok; then :
3468
3469else
3470  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3473See \`config.log' for more details" "$LINENO" 5; }
3474fi
3475
3476ac_ext=c
3477ac_cpp='$CPP $CPPFLAGS'
3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481
3482
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3485if ${ac_cv_path_GREP+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -z "$GREP"; then
3489  ac_path_GREP_found=false
3490  # Loop through the user's path and test for each of PROGNAME-LIST
3491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3493do
3494  IFS=$as_save_IFS
3495  test -z "$as_dir" && as_dir=.
3496    for ac_prog in grep ggrep; do
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3499      as_fn_executable_p "$ac_path_GREP" || continue
3500# Check for GNU ac_path_GREP and select it if it is found.
3501  # Check for GNU $ac_path_GREP
3502case `"$ac_path_GREP" --version 2>&1` in
3503*GNU*)
3504  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3505*)
3506  ac_count=0
3507  $as_echo_n 0123456789 >"conftest.in"
3508  while :
3509  do
3510    cat "conftest.in" "conftest.in" >"conftest.tmp"
3511    mv "conftest.tmp" "conftest.in"
3512    cp "conftest.in" "conftest.nl"
3513    $as_echo 'GREP' >> "conftest.nl"
3514    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3515    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3516    as_fn_arith $ac_count + 1 && ac_count=$as_val
3517    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3518      # Best one so far, save it but keep looking for a better one
3519      ac_cv_path_GREP="$ac_path_GREP"
3520      ac_path_GREP_max=$ac_count
3521    fi
3522    # 10*(2^10) chars as input seems more than enough
3523    test $ac_count -gt 10 && break
3524  done
3525  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3526esac
3527
3528      $ac_path_GREP_found && break 3
3529    done
3530  done
3531  done
3532IFS=$as_save_IFS
3533  if test -z "$ac_cv_path_GREP"; then
3534    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3535  fi
3536else
3537  ac_cv_path_GREP=$GREP
3538fi
3539
3540fi
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3542$as_echo "$ac_cv_path_GREP" >&6; }
3543 GREP="$ac_cv_path_GREP"
3544
3545
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3547$as_echo_n "checking for egrep... " >&6; }
3548if ${ac_cv_path_EGREP+:} false; then :
3549  $as_echo_n "(cached) " >&6
3550else
3551  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3552   then ac_cv_path_EGREP="$GREP -E"
3553   else
3554     if test -z "$EGREP"; then
3555  ac_path_EGREP_found=false
3556  # Loop through the user's path and test for each of PROGNAME-LIST
3557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559do
3560  IFS=$as_save_IFS
3561  test -z "$as_dir" && as_dir=.
3562    for ac_prog in egrep; do
3563    for ac_exec_ext in '' $ac_executable_extensions; do
3564      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3565      as_fn_executable_p "$ac_path_EGREP" || continue
3566# Check for GNU ac_path_EGREP and select it if it is found.
3567  # Check for GNU $ac_path_EGREP
3568case `"$ac_path_EGREP" --version 2>&1` in
3569*GNU*)
3570  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3571*)
3572  ac_count=0
3573  $as_echo_n 0123456789 >"conftest.in"
3574  while :
3575  do
3576    cat "conftest.in" "conftest.in" >"conftest.tmp"
3577    mv "conftest.tmp" "conftest.in"
3578    cp "conftest.in" "conftest.nl"
3579    $as_echo 'EGREP' >> "conftest.nl"
3580    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582    as_fn_arith $ac_count + 1 && ac_count=$as_val
3583    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3584      # Best one so far, save it but keep looking for a better one
3585      ac_cv_path_EGREP="$ac_path_EGREP"
3586      ac_path_EGREP_max=$ac_count
3587    fi
3588    # 10*(2^10) chars as input seems more than enough
3589    test $ac_count -gt 10 && break
3590  done
3591  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592esac
3593
3594      $ac_path_EGREP_found && break 3
3595    done
3596  done
3597  done
3598IFS=$as_save_IFS
3599  if test -z "$ac_cv_path_EGREP"; then
3600    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3601  fi
3602else
3603  ac_cv_path_EGREP=$EGREP
3604fi
3605
3606   fi
3607fi
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3609$as_echo "$ac_cv_path_EGREP" >&6; }
3610 EGREP="$ac_cv_path_EGREP"
3611
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3614$as_echo_n "checking for ANSI C header files... " >&6; }
3615if ${ac_cv_header_stdc+:} false; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620#include <stdlib.h>
3621#include <stdarg.h>
3622#include <string.h>
3623#include <float.h>
3624
3625int
3626main ()
3627{
3628
3629  ;
3630  return 0;
3631}
3632_ACEOF
3633if ac_fn_c_try_compile "$LINENO"; then :
3634  ac_cv_header_stdc=yes
3635else
3636  ac_cv_header_stdc=no
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639
3640if test $ac_cv_header_stdc = yes; then
3641  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644#include <string.h>
3645
3646_ACEOF
3647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648  $EGREP "memchr" >/dev/null 2>&1; then :
3649
3650else
3651  ac_cv_header_stdc=no
3652fi
3653rm -f conftest*
3654
3655fi
3656
3657if test $ac_cv_header_stdc = yes; then
3658  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661#include <stdlib.h>
3662
3663_ACEOF
3664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665  $EGREP "free" >/dev/null 2>&1; then :
3666
3667else
3668  ac_cv_header_stdc=no
3669fi
3670rm -f conftest*
3671
3672fi
3673
3674if test $ac_cv_header_stdc = yes; then
3675  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3676  if test "$cross_compiling" = yes; then :
3677  :
3678else
3679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680/* end confdefs.h.  */
3681#include <ctype.h>
3682#include <stdlib.h>
3683#if ((' ' & 0x0FF) == 0x020)
3684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3686#else
3687# define ISLOWER(c) \
3688		   (('a' <= (c) && (c) <= 'i') \
3689		     || ('j' <= (c) && (c) <= 'r') \
3690		     || ('s' <= (c) && (c) <= 'z'))
3691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692#endif
3693
3694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3695int
3696main ()
3697{
3698  int i;
3699  for (i = 0; i < 256; i++)
3700    if (XOR (islower (i), ISLOWER (i))
3701	|| toupper (i) != TOUPPER (i))
3702      return 2;
3703  return 0;
3704}
3705_ACEOF
3706if ac_fn_c_try_run "$LINENO"; then :
3707
3708else
3709  ac_cv_header_stdc=no
3710fi
3711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3712  conftest.$ac_objext conftest.beam conftest.$ac_ext
3713fi
3714
3715fi
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3718$as_echo "$ac_cv_header_stdc" >&6; }
3719if test $ac_cv_header_stdc = yes; then
3720
3721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3722
3723fi
3724
3725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3727		  inttypes.h stdint.h unistd.h
3728do :
3729  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3731"
3732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3733  cat >>confdefs.h <<_ACEOF
3734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3735_ACEOF
3736
3737fi
3738
3739done
3740
3741
3742
3743  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3744if test "x$ac_cv_header_minix_config_h" = xyes; then :
3745  MINIX=yes
3746else
3747  MINIX=
3748fi
3749
3750
3751  if test "$MINIX" = yes; then
3752
3753$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3754
3755
3756$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3757
3758
3759$as_echo "#define _MINIX 1" >>confdefs.h
3760
3761  fi
3762
3763
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3765$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3766if ${ac_cv_safe_to_define___extensions__+:} false; then :
3767  $as_echo_n "(cached) " >&6
3768else
3769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h.  */
3771
3772#         define __EXTENSIONS__ 1
3773          $ac_includes_default
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_c_try_compile "$LINENO"; then :
3783  ac_cv_safe_to_define___extensions__=yes
3784else
3785  ac_cv_safe_to_define___extensions__=no
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3790$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3791  test $ac_cv_safe_to_define___extensions__ = yes &&
3792    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3793
3794  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3795
3796  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3797
3798  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3799
3800  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3801
3802
3803
3804if test "$ac_cv_header_minix_config_h" = "yes"; then
3805
3806$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3807
3808fi
3809
3810case "$prefix" in
3811	NONE)
3812		case "$sysconfdir" in
3813			'${prefix}/etc')
3814				sysconfdir=/etc
3815			;;
3816                esac
3817		case "$localstatedir" in
3818			'${prefix}/var')
3819				localstatedir=/var
3820			;;
3821		esac
3822	;;
3823esac
3824
3825#
3826# Determine configuration directory
3827#
3828configdir=$sysconfdir/nsd
3829
3830# Check whether --with-configdir was given.
3831if test "${with_configdir+set}" = set; then :
3832  withval=$with_configdir; configdir=$withval
3833fi
3834
3835
3836cat >>confdefs.h <<_ACEOF
3837#define CONFIGDIR "`eval echo $configdir`"
3838_ACEOF
3839
3840
3841
3842#
3843# Determine configuration file
3844nsd_conf_file=${configdir}/nsd.conf
3845
3846# Check whether --with-nsd_conf_file was given.
3847if test "${with_nsd_conf_file+set}" = set; then :
3848  withval=$with_nsd_conf_file; nsd_conf_file=$withval
3849fi
3850
3851
3852# the eval is to evaluate shell expansion twice, once
3853# for $nsd_conf_file and once for the ${prefix} within it.
3854
3855cat >>confdefs.h <<_ACEOF
3856#define CONFIGFILE "`eval echo $nsd_conf_file`"
3857_ACEOF
3858
3859
3860#
3861# Default logfile
3862#
3863logfile=${localstatedir}/log/nsd.log
3864
3865# Check whether --with-logfile was given.
3866if test "${with_logfile+set}" = set; then :
3867  withval=$with_logfile; logfile=$withval
3868fi
3869
3870
3871
3872#
3873# Database directory
3874#
3875dbdir=${localstatedir}/db/nsd
3876
3877#
3878# Determine the pidfile location. Check if /var/run exists, if so set pidfile
3879# to /var/run/nsd.pid by default
3880#
3881if test -d ${localstatedir}/run; then
3882	pidfile=${localstatedir}/run/nsd.pid
3883else
3884	pidfile=${dbdir}/nsd.pid
3885fi
3886
3887# Check whether --with-pidfile was given.
3888if test "${with_pidfile+set}" = set; then :
3889  withval=$with_pidfile; pidfile=$withval
3890fi
3891
3892
3893
3894cat >>confdefs.h <<_ACEOF
3895#define PIDFILE "`eval echo $pidfile`"
3896_ACEOF
3897
3898
3899#
3900# Determine location of nsd.db
3901#
3902dbfile=${dbdir}/nsd.db
3903
3904# Check whether --with-dbfile was given.
3905if test "${with_dbfile+set}" = set; then :
3906  withval=$with_dbfile; dbfile=$withval
3907fi
3908
3909
3910
3911cat >>confdefs.h <<_ACEOF
3912#define DBFILE "`eval echo $dbfile`"
3913_ACEOF
3914
3915
3916if test -n "$dbfile"; then
3917	dbdir=`dirname $dbfile`
3918fi
3919
3920
3921piddir=`dirname $pidfile`
3922
3923
3924#
3925# Determine the default directory for the zone files
3926#
3927zonesdir=$configdir
3928
3929# Check whether --with-zonesdir was given.
3930if test "${with_zonesdir+set}" = set; then :
3931  withval=$with_zonesdir; zonesdir=$withval
3932fi
3933
3934
3935
3936cat >>confdefs.h <<_ACEOF
3937#define ZONESDIR "`eval echo $zonesdir`"
3938_ACEOF
3939
3940
3941# default xfrd file location.
3942xfrdfile=${dbdir}/xfrd.state
3943
3944# Check whether --with-xfrdfile was given.
3945if test "${with_xfrdfile+set}" = set; then :
3946  withval=$with_xfrdfile; xfrdfile=$withval
3947fi
3948
3949
3950cat >>confdefs.h <<_ACEOF
3951#define XFRDFILE "`eval echo $xfrdfile`"
3952_ACEOF
3953
3954
3955
3956# default zonelist file location.
3957zonelistfile=${dbdir}/zone.list
3958
3959# Check whether --with-zonelistfile was given.
3960if test "${with_zonelistfile+set}" = set; then :
3961  withval=$with_zonelistfile; zonelistfile=$withval
3962fi
3963
3964
3965cat >>confdefs.h <<_ACEOF
3966#define ZONELISTFILE "`eval echo $zonelistfile`"
3967_ACEOF
3968
3969
3970
3971# default xfr dir location.
3972xfrdir="/tmp"
3973
3974# Check whether --with-xfrdir was given.
3975if test "${with_xfrdir+set}" = set; then :
3976  withval=$with_xfrdir; xfrdir=$withval
3977fi
3978
3979
3980cat >>confdefs.h <<_ACEOF
3981#define XFRDIR "`eval echo $xfrdir`"
3982_ACEOF
3983
3984
3985
3986# nsd sbin location. tmpinstantiate execprefix with defaults if not yet done.
3987if test "x${exec_prefix}" = "xNONE"; then
3988	if test "x${prefix}" = "xNONE"; then exec_prefix="$ac_default_prefix"
3989	else exec_prefix="${prefix}"; fi
3990	nsd_start_path="`eval echo $sbindir`/nsd"
3991	exec_prefix="NONE"
3992else
3993	nsd_start_path="`eval echo $sbindir`/nsd"
3994fi
3995
3996cat >>confdefs.h <<_ACEOF
3997#define NSD_START_PATH "$nsd_start_path"
3998_ACEOF
3999
4000
4001#
4002# Determine default chroot directory
4003#
4004
4005# Check whether --with-chroot was given.
4006if test "${with_chroot+set}" = set; then :
4007  withval=$with_chroot;
4008		chrootdir=$withval
4009
4010cat >>confdefs.h <<_ACEOF
4011#define CHROOTDIR "`eval echo $chrootdir`"
4012_ACEOF
4013
4014
4015fi
4016
4017
4018
4019#
4020# Determine the user name to drop privileges to
4021#
4022user=nsd
4023
4024# Check whether --with-user was given.
4025if test "${with_user+set}" = set; then :
4026  withval=$with_user; user=$withval
4027fi
4028
4029
4030
4031cat >>confdefs.h <<_ACEOF
4032#define USER "$user"
4033_ACEOF
4034
4035
4036# Checks for programs.
4037for ac_prog in gawk mawk nawk awk
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if ${ac_cv_prog_AWK+:} false; then :
4044  $as_echo_n "(cached) " >&6
4045else
4046  if test -n "$AWK"; then
4047  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054    for ac_exec_ext in '' $ac_executable_extensions; do
4055  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_AWK="$ac_prog"
4057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061  done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066AWK=$ac_cv_prog_AWK
4067if test -n "$AWK"; then
4068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4069$as_echo "$AWK" >&6; }
4070else
4071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072$as_echo "no" >&6; }
4073fi
4074
4075
4076  test -n "$AWK" && break
4077done
4078
4079ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084if test -n "$ac_tool_prefix"; then
4085  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4086set dummy ${ac_tool_prefix}gcc; ac_word=$2
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if ${ac_cv_prog_CC+:} false; then :
4090  $as_echo_n "(cached) " >&6
4091else
4092  if test -n "$CC"; then
4093  ac_cv_prog_CC="$CC" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098  IFS=$as_save_IFS
4099  test -z "$as_dir" && as_dir=.
4100    for ac_exec_ext in '' $ac_executable_extensions; do
4101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104    break 2
4105  fi
4106done
4107  done
4108IFS=$as_save_IFS
4109
4110fi
4111fi
4112CC=$ac_cv_prog_CC
4113if test -n "$CC"; then
4114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115$as_echo "$CC" >&6; }
4116else
4117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119fi
4120
4121
4122fi
4123if test -z "$ac_cv_prog_CC"; then
4124  ac_ct_CC=$CC
4125  # Extract the first word of "gcc", so it can be a program name with args.
4126set dummy gcc; ac_word=$2
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128$as_echo_n "checking for $ac_word... " >&6; }
4129if ${ac_cv_prog_ac_ct_CC+:} false; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  if test -n "$ac_ct_CC"; then
4133  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140    for ac_exec_ext in '' $ac_executable_extensions; do
4141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_ac_ct_CC="gcc"
4143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147  done
4148IFS=$as_save_IFS
4149
4150fi
4151fi
4152ac_ct_CC=$ac_cv_prog_ac_ct_CC
4153if test -n "$ac_ct_CC"; then
4154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4155$as_echo "$ac_ct_CC" >&6; }
4156else
4157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158$as_echo "no" >&6; }
4159fi
4160
4161  if test "x$ac_ct_CC" = x; then
4162    CC=""
4163  else
4164    case $cross_compiling:$ac_tool_warned in
4165yes:)
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168ac_tool_warned=yes ;;
4169esac
4170    CC=$ac_ct_CC
4171  fi
4172else
4173  CC="$ac_cv_prog_CC"
4174fi
4175
4176if test -z "$CC"; then
4177          if test -n "$ac_tool_prefix"; then
4178    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4179set dummy ${ac_tool_prefix}cc; ac_word=$2
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
4182if ${ac_cv_prog_CC+:} false; then :
4183  $as_echo_n "(cached) " >&6
4184else
4185  if test -n "$CC"; then
4186  ac_cv_prog_CC="$CC" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193    for ac_exec_ext in '' $ac_executable_extensions; do
4194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195    ac_cv_prog_CC="${ac_tool_prefix}cc"
4196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200  done
4201IFS=$as_save_IFS
4202
4203fi
4204fi
4205CC=$ac_cv_prog_CC
4206if test -n "$CC"; then
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208$as_echo "$CC" >&6; }
4209else
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212fi
4213
4214
4215  fi
4216fi
4217if test -z "$CC"; then
4218  # Extract the first word of "cc", so it can be a program name with args.
4219set dummy cc; ac_word=$2
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
4222if ${ac_cv_prog_CC+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  if test -n "$CC"; then
4226  ac_cv_prog_CC="$CC" # Let the user override the test.
4227else
4228  ac_prog_rejected=no
4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_exec_ext in '' $ac_executable_extensions; do
4235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4237       ac_prog_rejected=yes
4238       continue
4239     fi
4240    ac_cv_prog_CC="cc"
4241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242    break 2
4243  fi
4244done
4245  done
4246IFS=$as_save_IFS
4247
4248if test $ac_prog_rejected = yes; then
4249  # We found a bogon in the path, so make sure we never use it.
4250  set dummy $ac_cv_prog_CC
4251  shift
4252  if test $# != 0; then
4253    # We chose a different compiler from the bogus one.
4254    # However, it has the same basename, so the bogon will be chosen
4255    # first if we set CC to just the basename; use the full file name.
4256    shift
4257    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4258  fi
4259fi
4260fi
4261fi
4262CC=$ac_cv_prog_CC
4263if test -n "$CC"; then
4264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4265$as_echo "$CC" >&6; }
4266else
4267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268$as_echo "no" >&6; }
4269fi
4270
4271
4272fi
4273if test -z "$CC"; then
4274  if test -n "$ac_tool_prefix"; then
4275  for ac_prog in cl.exe
4276  do
4277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280$as_echo_n "checking for $ac_word... " >&6; }
4281if ${ac_cv_prog_CC+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  if test -n "$CC"; then
4285  ac_cv_prog_CC="$CC" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_exec_ext in '' $ac_executable_extensions; do
4293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296    break 2
4297  fi
4298done
4299  done
4300IFS=$as_save_IFS
4301
4302fi
4303fi
4304CC=$ac_cv_prog_CC
4305if test -n "$CC"; then
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307$as_echo "$CC" >&6; }
4308else
4309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314    test -n "$CC" && break
4315  done
4316fi
4317if test -z "$CC"; then
4318  ac_ct_CC=$CC
4319  for ac_prog in cl.exe
4320do
4321  # Extract the first word of "$ac_prog", so it can be a program name with args.
4322set dummy $ac_prog; ac_word=$2
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324$as_echo_n "checking for $ac_word... " >&6; }
4325if ${ac_cv_prog_ac_ct_CC+:} false; then :
4326  $as_echo_n "(cached) " >&6
4327else
4328  if test -n "$ac_ct_CC"; then
4329  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334  IFS=$as_save_IFS
4335  test -z "$as_dir" && as_dir=.
4336    for ac_exec_ext in '' $ac_executable_extensions; do
4337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338    ac_cv_prog_ac_ct_CC="$ac_prog"
4339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340    break 2
4341  fi
4342done
4343  done
4344IFS=$as_save_IFS
4345
4346fi
4347fi
4348ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349if test -n "$ac_ct_CC"; then
4350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351$as_echo "$ac_ct_CC" >&6; }
4352else
4353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354$as_echo "no" >&6; }
4355fi
4356
4357
4358  test -n "$ac_ct_CC" && break
4359done
4360
4361  if test "x$ac_ct_CC" = x; then
4362    CC=""
4363  else
4364    case $cross_compiling:$ac_tool_warned in
4365yes:)
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4368ac_tool_warned=yes ;;
4369esac
4370    CC=$ac_ct_CC
4371  fi
4372fi
4373
4374fi
4375
4376
4377test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379as_fn_error $? "no acceptable C compiler found in \$PATH
4380See \`config.log' for more details" "$LINENO" 5; }
4381
4382# Provide some information about the compiler.
4383$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4384set X $ac_compile
4385ac_compiler=$2
4386for ac_option in --version -v -V -qversion; do
4387  { { ac_try="$ac_compiler $ac_option >&5"
4388case "(($ac_try" in
4389  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390  *) ac_try_echo=$ac_try;;
4391esac
4392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393$as_echo "$ac_try_echo"; } >&5
4394  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4395  ac_status=$?
4396  if test -s conftest.err; then
4397    sed '10a\
4398... rest of stderr output deleted ...
4399         10q' conftest.err >conftest.er1
4400    cat conftest.er1 >&5
4401  fi
4402  rm -f conftest.er1 conftest.err
4403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404  test $ac_status = 0; }
4405done
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4409if ${ac_cv_c_compiler_gnu+:} false; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414
4415int
4416main ()
4417{
4418#ifndef __GNUC__
4419       choke me
4420#endif
4421
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_compile "$LINENO"; then :
4427  ac_compiler_gnu=yes
4428else
4429  ac_compiler_gnu=no
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432ac_cv_c_compiler_gnu=$ac_compiler_gnu
4433
4434fi
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4436$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4437if test $ac_compiler_gnu = yes; then
4438  GCC=yes
4439else
4440  GCC=
4441fi
4442ac_test_CFLAGS=${CFLAGS+set}
4443ac_save_CFLAGS=$CFLAGS
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4445$as_echo_n "checking whether $CC accepts -g... " >&6; }
4446if ${ac_cv_prog_cc_g+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  ac_save_c_werror_flag=$ac_c_werror_flag
4450   ac_c_werror_flag=yes
4451   ac_cv_prog_cc_g=no
4452   CFLAGS="-g"
4453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h.  */
4455
4456int
4457main ()
4458{
4459
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464if ac_fn_c_try_compile "$LINENO"; then :
4465  ac_cv_prog_cc_g=yes
4466else
4467  CFLAGS=""
4468      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469/* end confdefs.h.  */
4470
4471int
4472main ()
4473{
4474
4475  ;
4476  return 0;
4477}
4478_ACEOF
4479if ac_fn_c_try_compile "$LINENO"; then :
4480
4481else
4482  ac_c_werror_flag=$ac_save_c_werror_flag
4483	 CFLAGS="-g"
4484	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h.  */
4486
4487int
4488main ()
4489{
4490
4491  ;
4492  return 0;
4493}
4494_ACEOF
4495if ac_fn_c_try_compile "$LINENO"; then :
4496  ac_cv_prog_cc_g=yes
4497fi
4498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499fi
4500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501fi
4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503   ac_c_werror_flag=$ac_save_c_werror_flag
4504fi
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4506$as_echo "$ac_cv_prog_cc_g" >&6; }
4507if test "$ac_test_CFLAGS" = set; then
4508  CFLAGS=$ac_save_CFLAGS
4509elif test $ac_cv_prog_cc_g = yes; then
4510  if test "$GCC" = yes; then
4511    CFLAGS="-g -O2"
4512  else
4513    CFLAGS="-g"
4514  fi
4515else
4516  if test "$GCC" = yes; then
4517    CFLAGS="-O2"
4518  else
4519    CFLAGS=
4520  fi
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4524if ${ac_cv_prog_cc_c89+:} false; then :
4525  $as_echo_n "(cached) " >&6
4526else
4527  ac_cv_prog_cc_c89=no
4528ac_save_CC=$CC
4529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530/* end confdefs.h.  */
4531#include <stdarg.h>
4532#include <stdio.h>
4533struct stat;
4534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4535struct buf { int x; };
4536FILE * (*rcsopen) (struct buf *, struct stat *, int);
4537static char *e (p, i)
4538     char **p;
4539     int i;
4540{
4541  return p[i];
4542}
4543static char *f (char * (*g) (char **, int), char **p, ...)
4544{
4545  char *s;
4546  va_list v;
4547  va_start (v,p);
4548  s = g (p, va_arg (v,int));
4549  va_end (v);
4550  return s;
4551}
4552
4553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4554   function prototypes and stuff, but not '\xHH' hex character constants.
4555   These don't provoke an error unfortunately, instead are silently treated
4556   as 'x'.  The following induces an error, until -std is added to get
4557   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4558   array size at least.  It's necessary to write '\x00'==0 to get something
4559   that's true only with -std.  */
4560int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4561
4562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4563   inside strings and character constants.  */
4564#define FOO(x) 'x'
4565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4566
4567int test (int i, double x);
4568struct s1 {int (*f) (int a);};
4569struct s2 {int (*f) (double a);};
4570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4571int argc;
4572char **argv;
4573int
4574main ()
4575{
4576return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4577  ;
4578  return 0;
4579}
4580_ACEOF
4581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4582	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4583do
4584  CC="$ac_save_CC $ac_arg"
4585  if ac_fn_c_try_compile "$LINENO"; then :
4586  ac_cv_prog_cc_c89=$ac_arg
4587fi
4588rm -f core conftest.err conftest.$ac_objext
4589  test "x$ac_cv_prog_cc_c89" != "xno" && break
4590done
4591rm -f conftest.$ac_ext
4592CC=$ac_save_CC
4593
4594fi
4595# AC_CACHE_VAL
4596case "x$ac_cv_prog_cc_c89" in
4597  x)
4598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4599$as_echo "none needed" >&6; } ;;
4600  xno)
4601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4602$as_echo "unsupported" >&6; } ;;
4603  *)
4604    CC="$CC $ac_cv_prog_cc_c89"
4605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4607esac
4608if test "x$ac_cv_prog_cc_c89" != xno; then :
4609
4610fi
4611
4612ac_ext=c
4613ac_cpp='$CPP $CPPFLAGS'
4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4619$as_echo_n "checking whether ln -s works... " >&6; }
4620LN_S=$as_ln_s
4621if test "$LN_S" = "ln -s"; then
4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623$as_echo "yes" >&6; }
4624else
4625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4626$as_echo "no, using $LN_S" >&6; }
4627fi
4628
4629ac_aux_dir=
4630for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4631  if test -f "$ac_dir/install-sh"; then
4632    ac_aux_dir=$ac_dir
4633    ac_install_sh="$ac_aux_dir/install-sh -c"
4634    break
4635  elif test -f "$ac_dir/install.sh"; then
4636    ac_aux_dir=$ac_dir
4637    ac_install_sh="$ac_aux_dir/install.sh -c"
4638    break
4639  elif test -f "$ac_dir/shtool"; then
4640    ac_aux_dir=$ac_dir
4641    ac_install_sh="$ac_aux_dir/shtool install -c"
4642    break
4643  fi
4644done
4645if test -z "$ac_aux_dir"; then
4646  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4647fi
4648
4649# These three variables are undocumented and unsupported,
4650# and are intended to be withdrawn in a future Autoconf release.
4651# They can cause serious problems if a builder's source tree is in a directory
4652# whose full name contains unusual characters.
4653ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4654ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4655ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4656
4657
4658# Find a good install program.  We prefer a C program (faster),
4659# so one script is as good as another.  But avoid the broken or
4660# incompatible versions:
4661# SysV /etc/install, /usr/sbin/install
4662# SunOS /usr/etc/install
4663# IRIX /sbin/install
4664# AIX /bin/install
4665# AmigaOS /C/install, which installs bootblocks on floppy discs
4666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669# OS/2's system install, which has a completely different semantic
4670# ./install, which can be erroneously created by make from ./install.sh.
4671# Reject install programs that cannot install multiple files.
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4673$as_echo_n "checking for a BSD-compatible install... " >&6; }
4674if test -z "$INSTALL"; then
4675if ${ac_cv_path_install+:} false; then :
4676  $as_echo_n "(cached) " >&6
4677else
4678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  test -z "$as_dir" && as_dir=.
4683    # Account for people who put trailing slashes in PATH elements.
4684case $as_dir/ in #((
4685  ./ | .// | /[cC]/* | \
4686  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4687  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4688  /usr/ucb/* ) ;;
4689  *)
4690    # OSF1 and SCO ODT 3.0 have their own names for install.
4691    # Don't use installbsd from OSF since it installs stuff as root
4692    # by default.
4693    for ac_prog in ginstall scoinst install; do
4694      for ac_exec_ext in '' $ac_executable_extensions; do
4695	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4696	  if test $ac_prog = install &&
4697	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4698	    # AIX install.  It has an incompatible calling convention.
4699	    :
4700	  elif test $ac_prog = install &&
4701	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4702	    # program-specific install script used by HP pwplus--don't use.
4703	    :
4704	  else
4705	    rm -rf conftest.one conftest.two conftest.dir
4706	    echo one > conftest.one
4707	    echo two > conftest.two
4708	    mkdir conftest.dir
4709	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4710	      test -s conftest.one && test -s conftest.two &&
4711	      test -s conftest.dir/conftest.one &&
4712	      test -s conftest.dir/conftest.two
4713	    then
4714	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4715	      break 3
4716	    fi
4717	  fi
4718	fi
4719      done
4720    done
4721    ;;
4722esac
4723
4724  done
4725IFS=$as_save_IFS
4726
4727rm -rf conftest.one conftest.two conftest.dir
4728
4729fi
4730  if test "${ac_cv_path_install+set}" = set; then
4731    INSTALL=$ac_cv_path_install
4732  else
4733    # As a last resort, use the slow shell script.  Don't cache a
4734    # value for INSTALL within a source directory, because that will
4735    # break other packages using the cache if that directory is
4736    # removed, or if the value is a relative name.
4737    INSTALL=$ac_install_sh
4738  fi
4739fi
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4741$as_echo "$INSTALL" >&6; }
4742
4743# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4744# It thinks the first close brace ends the variable substitution.
4745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4746
4747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4748
4749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4750
4751for ac_prog in flex lex
4752do
4753  # Extract the first word of "$ac_prog", so it can be a program name with args.
4754set dummy $ac_prog; ac_word=$2
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756$as_echo_n "checking for $ac_word... " >&6; }
4757if ${ac_cv_prog_LEX+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  if test -n "$LEX"; then
4761  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766  IFS=$as_save_IFS
4767  test -z "$as_dir" && as_dir=.
4768    for ac_exec_ext in '' $ac_executable_extensions; do
4769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770    ac_cv_prog_LEX="$ac_prog"
4771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772    break 2
4773  fi
4774done
4775  done
4776IFS=$as_save_IFS
4777
4778fi
4779fi
4780LEX=$ac_cv_prog_LEX
4781if test -n "$LEX"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4783$as_echo "$LEX" >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786$as_echo "no" >&6; }
4787fi
4788
4789
4790  test -n "$LEX" && break
4791done
4792test -n "$LEX" || LEX=":"
4793
4794if test "x$LEX" != "x:"; then
4795  cat >conftest.l <<_ACEOF
4796%%
4797a { ECHO; }
4798b { REJECT; }
4799c { yymore (); }
4800d { yyless (1); }
4801e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4802    yyless ((input () != 0)); }
4803f { unput (yytext[0]); }
4804. { BEGIN INITIAL; }
4805%%
4806#ifdef YYTEXT_POINTER
4807extern char *yytext;
4808#endif
4809int
4810main (void)
4811{
4812  return ! yylex () + ! yywrap ();
4813}
4814_ACEOF
4815{ { ac_try="$LEX conftest.l"
4816case "(($ac_try" in
4817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818  *) ac_try_echo=$ac_try;;
4819esac
4820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4821$as_echo "$ac_try_echo"; } >&5
4822  (eval "$LEX conftest.l") 2>&5
4823  ac_status=$?
4824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825  test $ac_status = 0; }
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4827$as_echo_n "checking lex output file root... " >&6; }
4828if ${ac_cv_prog_lex_root+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831
4832if test -f lex.yy.c; then
4833  ac_cv_prog_lex_root=lex.yy
4834elif test -f lexyy.c; then
4835  ac_cv_prog_lex_root=lexyy
4836else
4837  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4838fi
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4841$as_echo "$ac_cv_prog_lex_root" >&6; }
4842LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4843
4844if test -z "${LEXLIB+set}"; then
4845  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4846$as_echo_n "checking lex library... " >&6; }
4847if ${ac_cv_lib_lex+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850
4851    ac_save_LIBS=$LIBS
4852    ac_cv_lib_lex='none needed'
4853    for ac_lib in '' -lfl -ll; do
4854      LIBS="$ac_lib $ac_save_LIBS"
4855      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h.  */
4857`cat $LEX_OUTPUT_ROOT.c`
4858_ACEOF
4859if ac_fn_c_try_link "$LINENO"; then :
4860  ac_cv_lib_lex=$ac_lib
4861fi
4862rm -f core conftest.err conftest.$ac_objext \
4863    conftest$ac_exeext conftest.$ac_ext
4864      test "$ac_cv_lib_lex" != 'none needed' && break
4865    done
4866    LIBS=$ac_save_LIBS
4867
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4870$as_echo "$ac_cv_lib_lex" >&6; }
4871  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4872fi
4873
4874
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4876$as_echo_n "checking whether yytext is a pointer... " >&6; }
4877if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  # POSIX says lex can declare yytext either as a pointer or an array; the
4881# default is implementation-dependent.  Figure out which it is, since
4882# not all implementations provide the %pointer and %array declarations.
4883ac_cv_prog_lex_yytext_pointer=no
4884ac_save_LIBS=$LIBS
4885LIBS="$LEXLIB $ac_save_LIBS"
4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888
4889  #define YYTEXT_POINTER 1
4890`cat $LEX_OUTPUT_ROOT.c`
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893  ac_cv_prog_lex_yytext_pointer=yes
4894fi
4895rm -f core conftest.err conftest.$ac_objext \
4896    conftest$ac_exeext conftest.$ac_ext
4897LIBS=$ac_save_LIBS
4898
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4901$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4902if test $ac_cv_prog_lex_yytext_pointer = yes; then
4903
4904$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4905
4906fi
4907rm -f conftest.l $LEX_OUTPUT_ROOT.c
4908
4909fi
4910for ac_prog in 'bison -y' byacc
4911do
4912  # Extract the first word of "$ac_prog", so it can be a program name with args.
4913set dummy $ac_prog; ac_word=$2
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915$as_echo_n "checking for $ac_word... " >&6; }
4916if ${ac_cv_prog_YACC+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  if test -n "$YACC"; then
4920  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925  IFS=$as_save_IFS
4926  test -z "$as_dir" && as_dir=.
4927    for ac_exec_ext in '' $ac_executable_extensions; do
4928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929    ac_cv_prog_YACC="$ac_prog"
4930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931    break 2
4932  fi
4933done
4934  done
4935IFS=$as_save_IFS
4936
4937fi
4938fi
4939YACC=$ac_cv_prog_YACC
4940if test -n "$YACC"; then
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4942$as_echo "$YACC" >&6; }
4943else
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946fi
4947
4948
4949  test -n "$YACC" && break
4950done
4951test -n "$YACC" || YACC="yacc"
4952
4953
4954if test "$LEX" != ":" -a "$LEX" != ""; then
4955  # Check if lex defines yy_current_buffer, because 2.4.6 and older use it,
4956  # but later could define it as a macro and then we should not redefine it.
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex defines yy_current_buffer" >&5
4958$as_echo_n "checking if lex defines yy_current_buffer... " >&6; }
4959  cat <<EOF >conftest.lex
4960%%
4961EOF
4962  $LEX -i -t conftest.lex >> conftest.c
4963  if grep "^#define yy_current_buffer" conftest.c >/dev/null; then
4964
4965cat >>confdefs.h <<_ACEOF
4966#define LEX_DEFINES_YY_CURRENT_BUFFER 1
4967_ACEOF
4968
4969	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970$as_echo "yes" >&6; }
4971  else
4972	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
4974  fi
4975  rm -f conftest.lex conftest.c
4976fi
4977
4978
4979
4980
4981
4982
4983# Checks for typedefs, structures, and compiler characteristics.
4984# allow user to override the -g -O2 flags.
4985if test "x$CFLAGS" = "x" ; then
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4989$as_echo_n "checking whether $CC supports -g... " >&6; }
4990cache=`echo g | sed 'y%.=/+-%___p_%'`
4991if eval \${cv_prog_cc_flag_$cache+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994
4995echo 'void f(void){}' >conftest.c
4996if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4997eval "cv_prog_cc_flag_$cache=yes"
4998else
4999eval "cv_prog_cc_flag_$cache=no"
5000fi
5001rm -f conftest conftest.o conftest.c
5002
5003fi
5004
5005if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007$as_echo "yes" >&6; }
5008:
5009CFLAGS="$CFLAGS -g"
5010else
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012$as_echo "no" >&6; }
5013:
5014
5015fi
5016
5017	# we do not use O3 because it causes miscompilations.
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
5021$as_echo_n "checking whether $CC supports -O2... " >&6; }
5022cache=`echo O2 | sed 'y%.=/+-%___p_%'`
5023if eval \${cv_prog_cc_flag_$cache+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026
5027echo 'void f(void){}' >conftest.c
5028if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
5029eval "cv_prog_cc_flag_$cache=yes"
5030else
5031eval "cv_prog_cc_flag_$cache=no"
5032fi
5033rm -f conftest conftest.o conftest.c
5034
5035fi
5036
5037if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5039$as_echo "yes" >&6; }
5040:
5041CFLAGS="$CFLAGS -O2"
5042else
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
5045:
5046
5047fi
5048
5049
5050    # Check whether --enable-flto was given.
5051if test "${enable_flto+set}" = set; then :
5052  enableval=$enable_flto;
5053fi
5054
5055    if test "x$enable_flto" != "xno"; then :
5056
5057        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5058$as_echo_n "checking if $CC supports -flto... " >&6; }
5059        BAKCFLAGS="$CFLAGS"
5060        CFLAGS="$CFLAGS -flto"
5061        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063
5064int
5065main ()
5066{
5067
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072if ac_fn_c_try_link "$LINENO"; then :
5073
5074            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5075                CFLAGS="$BAKCFLAGS"
5076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078            else
5079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5080$as_echo "yes" >&6; }
5081            fi
5082            rm -f conftest conftest.c conftest.o
5083
5084else
5085  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088rm -f core conftest.err conftest.$ac_objext \
5089    conftest$ac_exeext conftest.$ac_ext
5090
5091fi
5092
5093
5094    # Check whether --enable-pie was given.
5095if test "${enable_pie+set}" = set; then :
5096  enableval=$enable_pie;
5097fi
5098
5099    if test "x$enable_pie" = "xyes"; then :
5100
5101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5102$as_echo_n "checking if $CC supports PIE... " >&6; }
5103	BAKLDFLAGS="$LDFLAGS"
5104	BAKCFLAGS="$CFLAGS"
5105	LDFLAGS="$LDFLAGS -pie"
5106	CFLAGS="$CFLAGS -fPIE"
5107	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h.  */
5109
5110int
5111main ()
5112{
5113
5114  ;
5115  return 0;
5116}
5117_ACEOF
5118if ac_fn_c_try_link "$LINENO"; then :
5119
5120	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5121		LDFLAGS="$BAKLDFLAGS"
5122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
5124	    else
5125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5126$as_echo "yes" >&6; }
5127	    fi
5128	    rm -f conftest conftest.c conftest.o
5129
5130else
5131  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133fi
5134rm -f core conftest.err conftest.$ac_objext \
5135    conftest$ac_exeext conftest.$ac_ext
5136
5137fi
5138
5139
5140    # Check whether --enable-relro_now was given.
5141if test "${enable_relro_now+set}" = set; then :
5142  enableval=$enable_relro_now;
5143fi
5144
5145    if test "x$enable_relro_now" = "xyes"; then :
5146
5147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5148$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5149	BAKLDFLAGS="$LDFLAGS"
5150	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5151	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153
5154int
5155main ()
5156{
5157
5158  ;
5159  return 0;
5160}
5161_ACEOF
5162if ac_fn_c_try_link "$LINENO"; then :
5163
5164	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5165		LDFLAGS="$BAKLDFLAGS"
5166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168	    else
5169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170$as_echo "yes" >&6; }
5171	    fi
5172	    rm -f conftest conftest.c conftest.o
5173
5174else
5175  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
5177fi
5178rm -f core conftest.err conftest.$ac_objext \
5179    conftest$ac_exeext conftest.$ac_ext
5180
5181fi
5182
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5185$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5186if ${ac_cv_c_const+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191
5192int
5193main ()
5194{
5195
5196#ifndef __cplusplus
5197  /* Ultrix mips cc rejects this sort of thing.  */
5198  typedef int charset[2];
5199  const charset cs = { 0, 0 };
5200  /* SunOS 4.1.1 cc rejects this.  */
5201  char const *const *pcpcc;
5202  char **ppc;
5203  /* NEC SVR4.0.2 mips cc rejects this.  */
5204  struct point {int x, y;};
5205  static struct point const zero = {0,0};
5206  /* AIX XL C 1.02.0.0 rejects this.
5207     It does not let you subtract one const X* pointer from another in
5208     an arm of an if-expression whose if-part is not a constant
5209     expression */
5210  const char *g = "string";
5211  pcpcc = &g + (g ? g-g : 0);
5212  /* HPUX 7.0 cc rejects these. */
5213  ++pcpcc;
5214  ppc = (char**) pcpcc;
5215  pcpcc = (char const *const *) ppc;
5216  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5217    char tx;
5218    char *t = &tx;
5219    char const *s = 0 ? (char *) 0 : (char const *) 0;
5220
5221    *t++ = 0;
5222    if (s) return 0;
5223  }
5224  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5225    int x[] = {25, 17};
5226    const int *foo = &x[0];
5227    ++foo;
5228  }
5229  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5230    typedef const int *iptr;
5231    iptr p = 0;
5232    ++p;
5233  }
5234  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5235       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5236    struct s { int j; const int *ap[3]; } bx;
5237    struct s *b = &bx; b->j = 5;
5238  }
5239  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5240    const int foo = 10;
5241    if (!foo) return 0;
5242  }
5243  return !cs[0] && !zero.x;
5244#endif
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250if ac_fn_c_try_compile "$LINENO"; then :
5251  ac_cv_c_const=yes
5252else
5253  ac_cv_c_const=no
5254fi
5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256fi
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5258$as_echo "$ac_cv_c_const" >&6; }
5259if test $ac_cv_c_const = no; then
5260
5261$as_echo "#define const /**/" >>confdefs.h
5262
5263fi
5264
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5266$as_echo_n "checking for inline... " >&6; }
5267if ${ac_cv_c_inline+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  ac_cv_c_inline=no
5271for ac_kw in inline __inline__ __inline; do
5272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274#ifndef __cplusplus
5275typedef int foo_t;
5276static $ac_kw foo_t static_foo () {return 0; }
5277$ac_kw foo_t foo () {return 0; }
5278#endif
5279
5280_ACEOF
5281if ac_fn_c_try_compile "$LINENO"; then :
5282  ac_cv_c_inline=$ac_kw
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285  test "$ac_cv_c_inline" != no && break
5286done
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5290$as_echo "$ac_cv_c_inline" >&6; }
5291
5292case $ac_cv_c_inline in
5293  inline | yes) ;;
5294  *)
5295    case $ac_cv_c_inline in
5296      no) ac_val=;;
5297      *) ac_val=$ac_cv_c_inline;;
5298    esac
5299    cat >>confdefs.h <<_ACEOF
5300#ifndef __cplusplus
5301#define inline $ac_val
5302#endif
5303_ACEOF
5304    ;;
5305esac
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5308$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5309if ${ac_cv_type_uid_t+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314#include <sys/types.h>
5315
5316_ACEOF
5317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318  $EGREP "uid_t" >/dev/null 2>&1; then :
5319  ac_cv_type_uid_t=yes
5320else
5321  ac_cv_type_uid_t=no
5322fi
5323rm -f conftest*
5324
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5327$as_echo "$ac_cv_type_uid_t" >&6; }
5328if test $ac_cv_type_uid_t = no; then
5329
5330$as_echo "#define uid_t int" >>confdefs.h
5331
5332
5333$as_echo "#define gid_t int" >>confdefs.h
5334
5335fi
5336
5337ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5338if test "x$ac_cv_type_pid_t" = xyes; then :
5339
5340else
5341
5342cat >>confdefs.h <<_ACEOF
5343#define pid_t int
5344_ACEOF
5345
5346fi
5347
5348ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5349if test "x$ac_cv_type_size_t" = xyes; then :
5350
5351else
5352
5353cat >>confdefs.h <<_ACEOF
5354#define size_t unsigned int
5355_ACEOF
5356
5357fi
5358
5359ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5360if test "x$ac_cv_type_off_t" = xyes; then :
5361
5362else
5363
5364cat >>confdefs.h <<_ACEOF
5365#define off_t long int
5366_ACEOF
5367
5368fi
5369
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5373$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5374if ${ac_cv_c_format_attribute+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  ac_cv_c_format_attribute=no
5378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380#include <stdio.h>
5381void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5382void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5383
5384int
5385main ()
5386{
5387
5388   f ("%s", "str");
5389
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394if ac_fn_c_try_compile "$LINENO"; then :
5395  ac_cv_c_format_attribute="yes"
5396else
5397  ac_cv_c_format_attribute="no"
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400
5401fi
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5405$as_echo "$ac_cv_c_format_attribute" >&6; }
5406if test $ac_cv_c_format_attribute = yes; then
5407
5408$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5409
5410fi
5411
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5414$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5415if ${ac_cv_c_unused_attribute+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  ac_cv_c_unused_attribute=no
5419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421#include <stdio.h>
5422void f (char *u __attribute__((unused)));
5423
5424int
5425main ()
5426{
5427
5428   f ("x");
5429
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"; then :
5435  ac_cv_c_unused_attribute="yes"
5436else
5437  ac_cv_c_unused_attribute="no"
5438fi
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440
5441fi
5442
5443
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5445$as_echo "$ac_cv_c_unused_attribute" >&6; }
5446if test $ac_cv_c_unused_attribute = yes; then
5447
5448$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5449
5450fi
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
5453$as_echo_n "checking if memcmp compares unsigned... " >&6; }
5454if test "$cross_compiling" = yes; then :
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
5456$as_echo "cross-compile no" >&6; }
5457
5458$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
5459
5460  case " $LIBOBJS " in
5461  *" memcmp.$ac_objext "* ) ;;
5462  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5463 ;;
5464esac
5465
5466
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470
5471#include <stdio.h>
5472#include <stdlib.h>
5473#include <string.h>
5474int main(void)
5475{
5476	char a = 255, b = 0;
5477	if(memcmp(&a, &b, 1) < 0)
5478		return 1;
5479	return 0;
5480}
5481
5482_ACEOF
5483if ac_fn_c_try_run "$LINENO"; then :
5484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5485$as_echo "yes" >&6; }
5486else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488$as_echo "no" >&6; }
5489
5490$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
5491
5492  case " $LIBOBJS " in
5493  *" memcmp.$ac_objext "* ) ;;
5494  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5495 ;;
5496esac
5497
5498
5499fi
5500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5501  conftest.$ac_objext conftest.beam conftest.$ac_ext
5502fi
5503
5504
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime_r works with two arguments" >&5
5506$as_echo_n "checking whether ctime_r works with two arguments... " >&6; }
5507if ${ac_cv_c_ctime_c+:} false; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  ac_cv_c_ctime_c=no
5511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513#include <time.h>
5514void testing (void) { time_t clock; char current_time[40]; ctime_r(&clock, current_time); }
5515int
5516main ()
5517{
5518
5519        testing();
5520
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525if ac_fn_c_try_compile "$LINENO"; then :
5526  ac_cv_c_ctime_c="yes"
5527else
5528  ac_cv_c_ctime_c="no"
5529fi
5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531
5532fi
5533
5534
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ctime_c" >&5
5536$as_echo "$ac_cv_c_ctime_c" >&6; }
5537if test $ac_cv_c_ctime_c = no; then
5538        CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
5539fi
5540
5541
5542# Checks for libraries.
5543
5544# Check for SSL, original taken from
5545# http://www.gnu.org/software/ac-archive/htmldoc/check_ssl.html and
5546# modified for NSD.
5547
5548# check for libevent
5549
5550# Check whether --with-libevent was given.
5551if test "${with_libevent+set}" = set; then :
5552  withval=$with_libevent;
5553else
5554   withval="yes"
5555fi
5556
5557if test x_$withval = x_yes -o x_$withval != x_no; then
5558        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
5559$as_echo_n "checking for libevent... " >&6; }
5560        if test x_$withval = x_ -o x_$withval = x_yes; then
5561            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
5562        fi
5563        for dir in $withval; do
5564            thedir="$dir"
5565            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
5566                found_libevent="yes"
5567				if test "$thedir" != "/usr"; then
5568                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
5569		fi
5570                break;
5571            fi
5572        done
5573        if test x_$found_libevent != x_yes; then
5574		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
5575			# libevent source directory
5576            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
5577$as_echo "found in $thedir" >&6; }
5578                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
5579			# remove evdns from linking
5580			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
5581			cp $ev_files_o .
5582			LDFLAGS="$ev_files_o $LDFLAGS -lm"
5583		else
5584            		as_fn_error $? "Cannot find the libevent library.
5585You can restart ./configure --with-libevent=no to use a builtin alternative." "$LINENO" 5
5586		fi
5587        else
5588            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
5589$as_echo "found in $thedir" >&6; }
5590	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
5591		LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
5592
5593	if test "x$enable_rpath" = xyes; then
5594		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
5595			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
5596		fi
5597	fi
5598
5599	    else
5600		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
5601			LDFLAGS="$LDFLAGS -L$thedir/lib"
5602
5603	if test "x$enable_rpath" = xyes; then
5604		if echo "$thedir/lib" | grep "^/" >/dev/null; then
5605			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
5606		fi
5607	fi
5608
5609		    fi
5610	    fi
5611        fi
5612	# check for library used by libevent after 1.3c
5613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5614$as_echo_n "checking for library containing clock_gettime... " >&6; }
5615if ${ac_cv_search_clock_gettime+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  ac_func_search_save_LIBS=$LIBS
5619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620/* end confdefs.h.  */
5621
5622/* Override any GCC internal prototype to avoid an error.
5623   Use char because int might match the return type of a GCC
5624   builtin and then its argument prototype would still apply.  */
5625#ifdef __cplusplus
5626extern "C"
5627#endif
5628char clock_gettime ();
5629int
5630main ()
5631{
5632return clock_gettime ();
5633  ;
5634  return 0;
5635}
5636_ACEOF
5637for ac_lib in '' rt; do
5638  if test -z "$ac_lib"; then
5639    ac_res="none required"
5640  else
5641    ac_res=-l$ac_lib
5642    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5643  fi
5644  if ac_fn_c_try_link "$LINENO"; then :
5645  ac_cv_search_clock_gettime=$ac_res
5646fi
5647rm -f core conftest.err conftest.$ac_objext \
5648    conftest$ac_exeext
5649  if ${ac_cv_search_clock_gettime+:} false; then :
5650  break
5651fi
5652done
5653if ${ac_cv_search_clock_gettime+:} false; then :
5654
5655else
5656  ac_cv_search_clock_gettime=no
5657fi
5658rm conftest.$ac_ext
5659LIBS=$ac_func_search_save_LIBS
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5662$as_echo "$ac_cv_search_clock_gettime" >&6; }
5663ac_res=$ac_cv_search_clock_gettime
5664if test "$ac_res" != no; then :
5665  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5666
5667fi
5668
5669
5670	# is the event.h header libev or libevent?
5671	for ac_header in event.h
5672do :
5673  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
5674"
5675if test "x$ac_cv_header_event_h" = xyes; then :
5676  cat >>confdefs.h <<_ACEOF
5677#define HAVE_EVENT_H 1
5678_ACEOF
5679
5680fi
5681
5682done
5683
5684	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
5685#include <event.h>
5686
5687"
5688if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
5689
5690		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
5691$as_echo_n "checking for library containing event_set... " >&6; }
5692if ${ac_cv_search_event_set+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  ac_func_search_save_LIBS=$LIBS
5696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698
5699/* Override any GCC internal prototype to avoid an error.
5700   Use char because int might match the return type of a GCC
5701   builtin and then its argument prototype would still apply.  */
5702#ifdef __cplusplus
5703extern "C"
5704#endif
5705char event_set ();
5706int
5707main ()
5708{
5709return event_set ();
5710  ;
5711  return 0;
5712}
5713_ACEOF
5714for ac_lib in '' ev; do
5715  if test -z "$ac_lib"; then
5716    ac_res="none required"
5717  else
5718    ac_res=-l$ac_lib
5719    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5720  fi
5721  if ac_fn_c_try_link "$LINENO"; then :
5722  ac_cv_search_event_set=$ac_res
5723fi
5724rm -f core conftest.err conftest.$ac_objext \
5725    conftest$ac_exeext
5726  if ${ac_cv_search_event_set+:} false; then :
5727  break
5728fi
5729done
5730if ${ac_cv_search_event_set+:} false; then :
5731
5732else
5733  ac_cv_search_event_set=no
5734fi
5735rm conftest.$ac_ext
5736LIBS=$ac_func_search_save_LIBS
5737fi
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
5739$as_echo "$ac_cv_search_event_set" >&6; }
5740ac_res=$ac_cv_search_event_set
5741if test "$ac_res" != no; then :
5742  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5743
5744fi
5745
5746
5747else
5748
5749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
5750$as_echo_n "checking for library containing event_set... " >&6; }
5751if ${ac_cv_search_event_set+:} false; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  ac_func_search_save_LIBS=$LIBS
5755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h.  */
5757
5758/* Override any GCC internal prototype to avoid an error.
5759   Use char because int might match the return type of a GCC
5760   builtin and then its argument prototype would still apply.  */
5761#ifdef __cplusplus
5762extern "C"
5763#endif
5764char event_set ();
5765int
5766main ()
5767{
5768return event_set ();
5769  ;
5770  return 0;
5771}
5772_ACEOF
5773for ac_lib in '' event; do
5774  if test -z "$ac_lib"; then
5775    ac_res="none required"
5776  else
5777    ac_res=-l$ac_lib
5778    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5779  fi
5780  if ac_fn_c_try_link "$LINENO"; then :
5781  ac_cv_search_event_set=$ac_res
5782fi
5783rm -f core conftest.err conftest.$ac_objext \
5784    conftest$ac_exeext
5785  if ${ac_cv_search_event_set+:} false; then :
5786  break
5787fi
5788done
5789if ${ac_cv_search_event_set+:} false; then :
5790
5791else
5792  ac_cv_search_event_set=no
5793fi
5794rm conftest.$ac_ext
5795LIBS=$ac_func_search_save_LIBS
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
5798$as_echo "$ac_cv_search_event_set" >&6; }
5799ac_res=$ac_cv_search_event_set
5800if test "$ac_res" != no; then :
5801  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5802
5803fi
5804
5805
5806fi
5807
5808	for ac_func in event_base_free
5809do :
5810  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
5811if test "x$ac_cv_func_event_base_free" = xyes; then :
5812  cat >>confdefs.h <<_ACEOF
5813#define HAVE_EVENT_BASE_FREE 1
5814_ACEOF
5815
5816fi
5817done
5818 # only in libevent 1.2 and later
5819	for ac_func in event_base_once
5820do :
5821  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
5822if test "x$ac_cv_func_event_base_once" = xyes; then :
5823  cat >>confdefs.h <<_ACEOF
5824#define HAVE_EVENT_BASE_ONCE 1
5825_ACEOF
5826
5827fi
5828done
5829 # only in libevent 1.4.1 and later
5830	for ac_func in event_base_new
5831do :
5832  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
5833if test "x$ac_cv_func_event_base_new" = xyes; then :
5834  cat >>confdefs.h <<_ACEOF
5835#define HAVE_EVENT_BASE_NEW 1
5836_ACEOF
5837
5838fi
5839done
5840 # only in libevent 1.4.1 and later
5841	for ac_func in event_base_get_method
5842do :
5843  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
5844if test "x$ac_cv_func_event_base_get_method" = xyes; then :
5845  cat >>confdefs.h <<_ACEOF
5846#define HAVE_EVENT_BASE_GET_METHOD 1
5847_ACEOF
5848
5849fi
5850done
5851 # only in libevent 1.4.3 and later
5852	for ac_func in ev_loop
5853do :
5854  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
5855if test "x$ac_cv_func_ev_loop" = xyes; then :
5856  cat >>confdefs.h <<_ACEOF
5857#define HAVE_EV_LOOP 1
5858_ACEOF
5859
5860fi
5861done
5862 # only in libev. (tested on 3.51)
5863	for ac_func in ev_default_loop
5864do :
5865  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
5866if test "x$ac_cv_func_ev_default_loop" = xyes; then :
5867  cat >>confdefs.h <<_ACEOF
5868#define HAVE_EV_DEFAULT_LOOP 1
5869_ACEOF
5870
5871fi
5872done
5873 # only in libev. (tested on 4.00)
5874else
5875
5876$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
5877
5878fi
5879
5880# Checks for header files.
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5882$as_echo_n "checking for ANSI C header files... " >&6; }
5883if ${ac_cv_header_stdc+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888#include <stdlib.h>
5889#include <stdarg.h>
5890#include <string.h>
5891#include <float.h>
5892
5893int
5894main ()
5895{
5896
5897  ;
5898  return 0;
5899}
5900_ACEOF
5901if ac_fn_c_try_compile "$LINENO"; then :
5902  ac_cv_header_stdc=yes
5903else
5904  ac_cv_header_stdc=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907
5908if test $ac_cv_header_stdc = yes; then
5909  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912#include <string.h>
5913
5914_ACEOF
5915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916  $EGREP "memchr" >/dev/null 2>&1; then :
5917
5918else
5919  ac_cv_header_stdc=no
5920fi
5921rm -f conftest*
5922
5923fi
5924
5925if test $ac_cv_header_stdc = yes; then
5926  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929#include <stdlib.h>
5930
5931_ACEOF
5932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5933  $EGREP "free" >/dev/null 2>&1; then :
5934
5935else
5936  ac_cv_header_stdc=no
5937fi
5938rm -f conftest*
5939
5940fi
5941
5942if test $ac_cv_header_stdc = yes; then
5943  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5944  if test "$cross_compiling" = yes; then :
5945  :
5946else
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949#include <ctype.h>
5950#include <stdlib.h>
5951#if ((' ' & 0x0FF) == 0x020)
5952# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5953# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5954#else
5955# define ISLOWER(c) \
5956		   (('a' <= (c) && (c) <= 'i') \
5957		     || ('j' <= (c) && (c) <= 'r') \
5958		     || ('s' <= (c) && (c) <= 'z'))
5959# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5960#endif
5961
5962#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5963int
5964main ()
5965{
5966  int i;
5967  for (i = 0; i < 256; i++)
5968    if (XOR (islower (i), ISLOWER (i))
5969	|| toupper (i) != TOUPPER (i))
5970      return 2;
5971  return 0;
5972}
5973_ACEOF
5974if ac_fn_c_try_run "$LINENO"; then :
5975
5976else
5977  ac_cv_header_stdc=no
5978fi
5979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5980  conftest.$ac_objext conftest.beam conftest.$ac_ext
5981fi
5982
5983fi
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5986$as_echo "$ac_cv_header_stdc" >&6; }
5987if test $ac_cv_header_stdc = yes; then
5988
5989$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5990
5991fi
5992
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5994$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5995if ${ac_cv_header_sys_wait_h+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000#include <sys/types.h>
6001#include <sys/wait.h>
6002#ifndef WEXITSTATUS
6003# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6004#endif
6005#ifndef WIFEXITED
6006# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6007#endif
6008
6009int
6010main ()
6011{
6012  int s;
6013  wait (&s);
6014  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6015  ;
6016  return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_compile "$LINENO"; then :
6020  ac_cv_header_sys_wait_h=yes
6021else
6022  ac_cv_header_sys_wait_h=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6027$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6028if test $ac_cv_header_sys_wait_h = yes; then
6029
6030$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6031
6032fi
6033
6034for ac_header in time.h arpa/inet.h signal.h string.h strings.h fcntl.h limits.h netinet/in.h netinet/tcp.h stddef.h sys/param.h sys/socket.h syslog.h unistd.h sys/select.h stdarg.h stdint.h netdb.h sys/bitypes.h tcpd.h glob.h grp.h endian.h
6035do :
6036  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6039  cat >>confdefs.h <<_ACEOF
6040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6041_ACEOF
6042
6043fi
6044
6045done
6046
6047
6048
6049
6050
6051
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for double definition of struct va_list" >&5
6053$as_echo_n "checking for double definition of struct va_list... " >&6; }
6054if ${ac_cv_c_va_list_def+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057
6058cat >conftest.c <<EOF
6059#include <stdio.h>
6060#include <stdarg.h>
6061int foo(void);
6062EOF
6063if test -z "`$CC -Werror -D_XOPEN_SOURCE=600 -c conftest.c 2>&1`"; then
6064eval "ac_cv_c_va_list_def=no"
6065else
6066eval "ac_cv_c_va_list_def=yes"
6067fi
6068rm -f conftest*
6069
6070fi
6071
6072if test $ac_cv_c_va_list_def = yes; then
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6074$as_echo "yes" >&6; }
6075:
6076
6077cat >>confdefs.h <<_ACEOF
6078#define HAVE_VA_LIST_DOUBLE_DEF /**/
6079_ACEOF
6080
6081else
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084:
6085
6086fi
6087
6088
6089
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs defines" >&5
6092$as_echo_n "checking whether strptime needs defines... " >&6; }
6093if ${ac_cv_c_strptime_needs_defs+:} false; then :
6094  $as_echo_n "(cached) " >&6
6095else
6096
6097cat >conftest.c <<EOF
6098#include <time.h>
6099int testing (void) { struct tm t; const char *timestr="201201"; return strptime(timestr, "%Y%m", &t) != 0; }
6100EOF
6101if test -z "`$CC -Wall -Werror -c conftest.c 2>&1`"; then
6102eval "ac_cv_c_strptime_needs_defs=no"
6103else
6104eval "ac_cv_c_strptime_needs_defs=yes"
6105fi
6106rm -f conftest*
6107
6108fi
6109
6110
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_needs_defs" >&5
6112$as_echo "$ac_cv_c_strptime_needs_defs" >&6; }
6113if test $ac_cv_c_strptime_needs_defs = yes; then
6114
6115cat >>confdefs.h <<_ACEOF
6116#define STRPTIME_NEEDS_DEFINES 1
6117_ACEOF
6118
6119fi
6120
6121
6122# check wether strptime also works
6123
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
6125$as_echo_n "checking for library containing inet_pton... " >&6; }
6126if ${ac_cv_search_inet_pton+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  ac_func_search_save_LIBS=$LIBS
6130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132
6133/* Override any GCC internal prototype to avoid an error.
6134   Use char because int might match the return type of a GCC
6135   builtin and then its argument prototype would still apply.  */
6136#ifdef __cplusplus
6137extern "C"
6138#endif
6139char inet_pton ();
6140int
6141main ()
6142{
6143return inet_pton ();
6144  ;
6145  return 0;
6146}
6147_ACEOF
6148for ac_lib in '' nsl; do
6149  if test -z "$ac_lib"; then
6150    ac_res="none required"
6151  else
6152    ac_res=-l$ac_lib
6153    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6154  fi
6155  if ac_fn_c_try_link "$LINENO"; then :
6156  ac_cv_search_inet_pton=$ac_res
6157fi
6158rm -f core conftest.err conftest.$ac_objext \
6159    conftest$ac_exeext
6160  if ${ac_cv_search_inet_pton+:} false; then :
6161  break
6162fi
6163done
6164if ${ac_cv_search_inet_pton+:} false; then :
6165
6166else
6167  ac_cv_search_inet_pton=no
6168fi
6169rm conftest.$ac_ext
6170LIBS=$ac_func_search_save_LIBS
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
6173$as_echo "$ac_cv_search_inet_pton" >&6; }
6174ac_res=$ac_cv_search_inet_pton
6175if test "$ac_res" != no; then :
6176  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6177
6178fi
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6181$as_echo_n "checking for library containing socket... " >&6; }
6182if ${ac_cv_search_socket+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  ac_func_search_save_LIBS=$LIBS
6186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188
6189/* Override any GCC internal prototype to avoid an error.
6190   Use char because int might match the return type of a GCC
6191   builtin and then its argument prototype would still apply.  */
6192#ifdef __cplusplus
6193extern "C"
6194#endif
6195char socket ();
6196int
6197main ()
6198{
6199return socket ();
6200  ;
6201  return 0;
6202}
6203_ACEOF
6204for ac_lib in '' socket; do
6205  if test -z "$ac_lib"; then
6206    ac_res="none required"
6207  else
6208    ac_res=-l$ac_lib
6209    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6210  fi
6211  if ac_fn_c_try_link "$LINENO"; then :
6212  ac_cv_search_socket=$ac_res
6213fi
6214rm -f core conftest.err conftest.$ac_objext \
6215    conftest$ac_exeext
6216  if ${ac_cv_search_socket+:} false; then :
6217  break
6218fi
6219done
6220if ${ac_cv_search_socket+:} false; then :
6221
6222else
6223  ac_cv_search_socket=no
6224fi
6225rm conftest.$ac_ext
6226LIBS=$ac_func_search_save_LIBS
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6229$as_echo "$ac_cv_search_socket" >&6; }
6230ac_res=$ac_cv_search_socket
6231if test "$ac_res" != no; then :
6232  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6233
6234fi
6235
6236
6237
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
6239$as_echo_n "checking whether strptime works... " >&6; }
6240if test c${cross_compiling} = cno; then
6241if test "$cross_compiling" = yes; then :
6242  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6244as_fn_error $? "cannot run test program while cross compiling
6245See \`config.log' for more details" "$LINENO" 5; }
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249
6250#define _XOPEN_SOURCE 600
6251#include <time.h>
6252int main(void) { struct tm tm; char *res;
6253res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
6254if (!res) return 1; return 0; }
6255
6256_ACEOF
6257if ac_fn_c_try_run "$LINENO"; then :
6258  eval "ac_cv_c_strptime_works=yes"
6259else
6260  eval "ac_cv_c_strptime_works=no"
6261fi
6262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6263  conftest.$ac_objext conftest.beam conftest.$ac_ext
6264fi
6265
6266else
6267eval "ac_cv_c_strptime_works=maybe"
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
6270$as_echo "$ac_cv_c_strptime_works" >&6; }
6271if test $ac_cv_c_strptime_works = no; then
6272case " $LIBOBJS " in
6273  *" strptime.$ac_objext "* ) ;;
6274  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
6275 ;;
6276esac
6277
6278else
6279
6280cat >>confdefs.h <<_ACEOF
6281#define STRPTIME_WORKS 1
6282_ACEOF
6283
6284fi
6285
6286
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
6288$as_echo_n "checking if nonblocking sockets work... " >&6; }
6289if echo $target | grep mingw32 >/dev/null; then
6290	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
6291$as_echo "no (windows)" >&6; }
6292
6293$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
6294
6295else
6296if test "$cross_compiling" = yes; then :
6297
6298	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
6299$as_echo "crosscompile(yes)" >&6; }
6300
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304
6305
6306#include <stdio.h>
6307#include <string.h>
6308#include <stdlib.h>
6309#include <fcntl.h>
6310#include <errno.h>
6311#ifdef HAVE_SYS_TYPES_H
6312#include <sys/types.h>
6313#endif
6314#ifdef HAVE_SYS_SOCKET_H
6315#include <sys/socket.h>
6316#endif
6317#ifdef HAVE_NETINET_IN_H
6318#include <netinet/in.h>
6319#endif
6320#ifdef HAVE_ARPA_INET_H
6321#include <arpa/inet.h>
6322#endif
6323#ifdef HAVE_UNISTD_H
6324#include <unistd.h>
6325#endif
6326#ifdef HAVE_TIME_H
6327#include <time.h>
6328#endif
6329
6330int main(void)
6331{
6332	int port;
6333	int sfd, cfd;
6334	int num = 10;
6335	int i, p;
6336	struct sockaddr_in a;
6337	/* test if select and nonblocking reads work well together */
6338	/* open port.
6339	   fork child to send 10 messages.
6340	   select to read.
6341	   then try to nonblocking read the 10 messages
6342	   then, nonblocking read must give EAGAIN
6343	*/
6344
6345	port = 12345 + (time(0)%32);
6346	sfd = socket(PF_INET, SOCK_DGRAM, 0);
6347	if(sfd == -1) {
6348		perror("socket");
6349		return 1;
6350	}
6351	memset(&a, 0, sizeof(a));
6352	a.sin_family = AF_INET;
6353	a.sin_port = htons(port);
6354	a.sin_addr.s_addr = inet_addr("127.0.0.1");
6355	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
6356		perror("bind");
6357		return 1;
6358	}
6359	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
6360		perror("fcntl");
6361		return 1;
6362	}
6363
6364	cfd = socket(PF_INET, SOCK_DGRAM, 0);
6365	if(cfd == -1) {
6366		perror("client socket");
6367		return 1;
6368	}
6369	a.sin_port = 0;
6370	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
6371		perror("client bind");
6372		return 1;
6373	}
6374	a.sin_port = htons(port);
6375
6376	/* no handler, causes exit in 10 seconds */
6377	alarm(10);
6378
6379	/* send and receive on the socket */
6380	if((p=fork()) == 0) {
6381		for(i=0; i<num; i++) {
6382			if(sendto(cfd, &i, sizeof(i), 0,
6383				(struct sockaddr*)&a, sizeof(a)) < 0) {
6384				perror("sendto");
6385				return 1;
6386			}
6387		}
6388	} else {
6389		/* parent */
6390		fd_set rset;
6391		int x;
6392		if(p == -1) {
6393			perror("fork");
6394			return 1;
6395		}
6396		FD_ZERO(&rset);
6397		FD_SET(sfd, &rset);
6398		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
6399			perror("select");
6400			return 1;
6401		}
6402		i = 0;
6403		while(i < num) {
6404			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
6405				if(errno == EAGAIN)
6406					continue;
6407				perror("recv");
6408				return 1;
6409			}
6410			i++;
6411		}
6412		/* now we want to get EAGAIN: nonblocking goodness */
6413		errno = 0;
6414		recv(sfd, &x, sizeof(x), 0);
6415		if(errno != EAGAIN) {
6416			perror("trying to recv again");
6417			return 1;
6418		}
6419		/* EAGAIN encountered */
6420	}
6421
6422	close(sfd);
6423	close(cfd);
6424	return 0;
6425}
6426
6427_ACEOF
6428if ac_fn_c_try_run "$LINENO"; then :
6429
6430	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6431$as_echo "yes" >&6; }
6432
6433else
6434
6435	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437
6438$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
6439
6440
6441fi
6442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6443  conftest.$ac_objext conftest.beam conftest.$ac_ext
6444fi
6445
6446fi
6447
6448
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
6450$as_echo_n "checking whether mkdir has one arg... " >&6; }
6451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453
6454#include <stdio.h>
6455#include <unistd.h>
6456#ifdef HAVE_WINSOCK2_H
6457#include <winsock2.h>
6458#endif
6459#ifdef HAVE_SYS_STAT_H
6460#include <sys/stat.h>
6461#endif
6462
6463int
6464main ()
6465{
6466
6467	(void)mkdir("directory");
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_compile "$LINENO"; then :
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475$as_echo "yes" >&6; }
6476
6477$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
6478
6479
6480else
6481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
6483
6484fi
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486
6487
6488# set -I. and -Isrcdir
6489if test -n "$CPPFLAGS"; then
6490	CPPFLAGS="$CPPFLAGS -I."
6491else
6492	CPPFLAGS="-I."
6493fi
6494if test "$srcdir" != "."; then
6495	CPPFLAGS="$CPPFLAGS -I$srcdir"
6496	if test -f $srcdir/config.h; then
6497		as_fn_error $? "$srcdir/config.h is in the way, please remove it" "$LINENO" 5
6498	fi
6499fi
6500
6501
6502
6503
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5
6505$as_echo_n "checking for int8_t... " >&6; }
6506if ${ac_cv_type_int8_t+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511
6512#include <sys/types.h>
6513#if STDC_HEADERS
6514#include <stdlib.h>
6515#include <stddef.h>
6516#endif
6517
6518#ifdef HAVE_STDINT_H
6519#include <stdint.h>
6520#endif
6521
6522#ifdef HAVE_SYS_SOCKET_H
6523#include <sys/socket.h>
6524#endif
6525
6526#ifdef HAVE_ARPA_INET_H
6527#include <arpa/inet.h>
6528#endif
6529
6530#ifdef HAVE_SIGNAL_H
6531#include <signal.h>
6532#endif
6533
6534/* For Tru64 */
6535#ifdef HAVE_SYS_BITYPES_H
6536#include <sys/bitypes.h>
6537#endif
6538
6539_ACEOF
6540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6541  $EGREP "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6542  ac_cv_type_int8_t=yes
6543else
6544  ac_cv_type_int8_t=no
6545fi
6546rm -f conftest*
6547
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int8_t" >&5
6550$as_echo "$ac_cv_type_int8_t" >&6; }
6551if test $ac_cv_type_int8_t = no; then
6552
6553$as_echo "#define int8_t char" >>confdefs.h
6554
6555fi
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5
6558$as_echo_n "checking for int16_t... " >&6; }
6559if ${ac_cv_type_int16_t+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564
6565#include <sys/types.h>
6566#if STDC_HEADERS
6567#include <stdlib.h>
6568#include <stddef.h>
6569#endif
6570
6571#ifdef HAVE_STDINT_H
6572#include <stdint.h>
6573#endif
6574
6575#ifdef HAVE_SYS_SOCKET_H
6576#include <sys/socket.h>
6577#endif
6578
6579#ifdef HAVE_ARPA_INET_H
6580#include <arpa/inet.h>
6581#endif
6582
6583#ifdef HAVE_SIGNAL_H
6584#include <signal.h>
6585#endif
6586
6587/* For Tru64 */
6588#ifdef HAVE_SYS_BITYPES_H
6589#include <sys/bitypes.h>
6590#endif
6591
6592_ACEOF
6593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6594  $EGREP "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6595  ac_cv_type_int16_t=yes
6596else
6597  ac_cv_type_int16_t=no
6598fi
6599rm -f conftest*
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int16_t" >&5
6603$as_echo "$ac_cv_type_int16_t" >&6; }
6604if test $ac_cv_type_int16_t = no; then
6605
6606$as_echo "#define int16_t short" >>confdefs.h
6607
6608fi
6609
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
6611$as_echo_n "checking for int32_t... " >&6; }
6612if ${ac_cv_type_int32_t+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617
6618#include <sys/types.h>
6619#if STDC_HEADERS
6620#include <stdlib.h>
6621#include <stddef.h>
6622#endif
6623
6624#ifdef HAVE_STDINT_H
6625#include <stdint.h>
6626#endif
6627
6628#ifdef HAVE_SYS_SOCKET_H
6629#include <sys/socket.h>
6630#endif
6631
6632#ifdef HAVE_ARPA_INET_H
6633#include <arpa/inet.h>
6634#endif
6635
6636#ifdef HAVE_SIGNAL_H
6637#include <signal.h>
6638#endif
6639
6640/* For Tru64 */
6641#ifdef HAVE_SYS_BITYPES_H
6642#include <sys/bitypes.h>
6643#endif
6644
6645_ACEOF
6646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6647  $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6648  ac_cv_type_int32_t=yes
6649else
6650  ac_cv_type_int32_t=no
6651fi
6652rm -f conftest*
6653
6654fi
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int32_t" >&5
6656$as_echo "$ac_cv_type_int32_t" >&6; }
6657if test $ac_cv_type_int32_t = no; then
6658
6659$as_echo "#define int32_t int" >>confdefs.h
6660
6661fi
6662
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
6664$as_echo_n "checking for int64_t... " >&6; }
6665if ${ac_cv_type_int64_t+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h.  */
6670
6671#include <sys/types.h>
6672#if STDC_HEADERS
6673#include <stdlib.h>
6674#include <stddef.h>
6675#endif
6676
6677#ifdef HAVE_STDINT_H
6678#include <stdint.h>
6679#endif
6680
6681#ifdef HAVE_SYS_SOCKET_H
6682#include <sys/socket.h>
6683#endif
6684
6685#ifdef HAVE_ARPA_INET_H
6686#include <arpa/inet.h>
6687#endif
6688
6689#ifdef HAVE_SIGNAL_H
6690#include <signal.h>
6691#endif
6692
6693/* For Tru64 */
6694#ifdef HAVE_SYS_BITYPES_H
6695#include <sys/bitypes.h>
6696#endif
6697
6698_ACEOF
6699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700  $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6701  ac_cv_type_int64_t=yes
6702else
6703  ac_cv_type_int64_t=no
6704fi
6705rm -f conftest*
6706
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_int64_t" >&5
6709$as_echo "$ac_cv_type_int64_t" >&6; }
6710if test $ac_cv_type_int64_t = no; then
6711
6712$as_echo "#define int64_t long long" >>confdefs.h
6713
6714fi
6715
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
6717$as_echo_n "checking for uint8_t... " >&6; }
6718if ${ac_cv_type_uint8_t+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723
6724#include <sys/types.h>
6725#if STDC_HEADERS
6726#include <stdlib.h>
6727#include <stddef.h>
6728#endif
6729
6730#ifdef HAVE_STDINT_H
6731#include <stdint.h>
6732#endif
6733
6734#ifdef HAVE_SYS_SOCKET_H
6735#include <sys/socket.h>
6736#endif
6737
6738#ifdef HAVE_ARPA_INET_H
6739#include <arpa/inet.h>
6740#endif
6741
6742#ifdef HAVE_SIGNAL_H
6743#include <signal.h>
6744#endif
6745
6746/* For Tru64 */
6747#ifdef HAVE_SYS_BITYPES_H
6748#include <sys/bitypes.h>
6749#endif
6750
6751_ACEOF
6752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753  $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6754  ac_cv_type_uint8_t=yes
6755else
6756  ac_cv_type_uint8_t=no
6757fi
6758rm -f conftest*
6759
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
6762$as_echo "$ac_cv_type_uint8_t" >&6; }
6763if test $ac_cv_type_uint8_t = no; then
6764
6765$as_echo "#define uint8_t unsigned char" >>confdefs.h
6766
6767fi
6768
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
6770$as_echo_n "checking for uint16_t... " >&6; }
6771if ${ac_cv_type_uint16_t+:} false; then :
6772  $as_echo_n "(cached) " >&6
6773else
6774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776
6777#include <sys/types.h>
6778#if STDC_HEADERS
6779#include <stdlib.h>
6780#include <stddef.h>
6781#endif
6782
6783#ifdef HAVE_STDINT_H
6784#include <stdint.h>
6785#endif
6786
6787#ifdef HAVE_SYS_SOCKET_H
6788#include <sys/socket.h>
6789#endif
6790
6791#ifdef HAVE_ARPA_INET_H
6792#include <arpa/inet.h>
6793#endif
6794
6795#ifdef HAVE_SIGNAL_H
6796#include <signal.h>
6797#endif
6798
6799/* For Tru64 */
6800#ifdef HAVE_SYS_BITYPES_H
6801#include <sys/bitypes.h>
6802#endif
6803
6804_ACEOF
6805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6806  $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6807  ac_cv_type_uint16_t=yes
6808else
6809  ac_cv_type_uint16_t=no
6810fi
6811rm -f conftest*
6812
6813fi
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
6815$as_echo "$ac_cv_type_uint16_t" >&6; }
6816if test $ac_cv_type_uint16_t = no; then
6817
6818$as_echo "#define uint16_t unsigned short" >>confdefs.h
6819
6820fi
6821
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
6823$as_echo_n "checking for uint32_t... " >&6; }
6824if ${ac_cv_type_uint32_t+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829
6830#include <sys/types.h>
6831#if STDC_HEADERS
6832#include <stdlib.h>
6833#include <stddef.h>
6834#endif
6835
6836#ifdef HAVE_STDINT_H
6837#include <stdint.h>
6838#endif
6839
6840#ifdef HAVE_SYS_SOCKET_H
6841#include <sys/socket.h>
6842#endif
6843
6844#ifdef HAVE_ARPA_INET_H
6845#include <arpa/inet.h>
6846#endif
6847
6848#ifdef HAVE_SIGNAL_H
6849#include <signal.h>
6850#endif
6851
6852/* For Tru64 */
6853#ifdef HAVE_SYS_BITYPES_H
6854#include <sys/bitypes.h>
6855#endif
6856
6857_ACEOF
6858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859  $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6860  ac_cv_type_uint32_t=yes
6861else
6862  ac_cv_type_uint32_t=no
6863fi
6864rm -f conftest*
6865
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
6868$as_echo "$ac_cv_type_uint32_t" >&6; }
6869if test $ac_cv_type_uint32_t = no; then
6870
6871$as_echo "#define uint32_t unsigned int" >>confdefs.h
6872
6873fi
6874
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
6876$as_echo_n "checking for uint64_t... " >&6; }
6877if ${ac_cv_type_uint64_t+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882
6883#include <sys/types.h>
6884#if STDC_HEADERS
6885#include <stdlib.h>
6886#include <stddef.h>
6887#endif
6888
6889#ifdef HAVE_STDINT_H
6890#include <stdint.h>
6891#endif
6892
6893#ifdef HAVE_SYS_SOCKET_H
6894#include <sys/socket.h>
6895#endif
6896
6897#ifdef HAVE_ARPA_INET_H
6898#include <arpa/inet.h>
6899#endif
6900
6901#ifdef HAVE_SIGNAL_H
6902#include <signal.h>
6903#endif
6904
6905/* For Tru64 */
6906#ifdef HAVE_SYS_BITYPES_H
6907#include <sys/bitypes.h>
6908#endif
6909
6910_ACEOF
6911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912  $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6913  ac_cv_type_uint64_t=yes
6914else
6915  ac_cv_type_uint64_t=no
6916fi
6917rm -f conftest*
6918
6919fi
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint64_t" >&5
6921$as_echo "$ac_cv_type_uint64_t" >&6; }
6922if test $ac_cv_type_uint64_t = no; then
6923
6924$as_echo "#define uint64_t unsigned long long" >>confdefs.h
6925
6926fi
6927
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6929$as_echo_n "checking for socklen_t... " >&6; }
6930if ${ac_cv_type_socklen_t+:} false; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h.  */
6935
6936#include <sys/types.h>
6937#if STDC_HEADERS
6938#include <stdlib.h>
6939#include <stddef.h>
6940#endif
6941
6942#ifdef HAVE_STDINT_H
6943#include <stdint.h>
6944#endif
6945
6946#ifdef HAVE_SYS_SOCKET_H
6947#include <sys/socket.h>
6948#endif
6949
6950#ifdef HAVE_ARPA_INET_H
6951#include <arpa/inet.h>
6952#endif
6953
6954#ifdef HAVE_SIGNAL_H
6955#include <signal.h>
6956#endif
6957
6958/* For Tru64 */
6959#ifdef HAVE_SYS_BITYPES_H
6960#include <sys/bitypes.h>
6961#endif
6962
6963_ACEOF
6964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6965  $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
6966  ac_cv_type_socklen_t=yes
6967else
6968  ac_cv_type_socklen_t=no
6969fi
6970rm -f conftest*
6971
6972fi
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
6974$as_echo "$ac_cv_type_socklen_t" >&6; }
6975if test $ac_cv_type_socklen_t = no; then
6976
6977$as_echo "#define socklen_t int" >>confdefs.h
6978
6979fi
6980
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
6982$as_echo_n "checking for sig_atomic_t... " >&6; }
6983if ${ac_cv_type_sig_atomic_t+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988
6989#include <sys/types.h>
6990#if STDC_HEADERS
6991#include <stdlib.h>
6992#include <stddef.h>
6993#endif
6994
6995#ifdef HAVE_STDINT_H
6996#include <stdint.h>
6997#endif
6998
6999#ifdef HAVE_SYS_SOCKET_H
7000#include <sys/socket.h>
7001#endif
7002
7003#ifdef HAVE_ARPA_INET_H
7004#include <arpa/inet.h>
7005#endif
7006
7007#ifdef HAVE_SIGNAL_H
7008#include <signal.h>
7009#endif
7010
7011/* For Tru64 */
7012#ifdef HAVE_SYS_BITYPES_H
7013#include <sys/bitypes.h>
7014#endif
7015
7016_ACEOF
7017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018  $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7019  ac_cv_type_sig_atomic_t=yes
7020else
7021  ac_cv_type_sig_atomic_t=no
7022fi
7023rm -f conftest*
7024
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
7027$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
7028if test $ac_cv_type_sig_atomic_t = no; then
7029
7030$as_echo "#define sig_atomic_t int" >>confdefs.h
7031
7032fi
7033
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
7035$as_echo_n "checking for ssize_t... " >&6; }
7036if ${ac_cv_type_ssize_t+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041
7042#include <sys/types.h>
7043#if STDC_HEADERS
7044#include <stdlib.h>
7045#include <stddef.h>
7046#endif
7047
7048#ifdef HAVE_STDINT_H
7049#include <stdint.h>
7050#endif
7051
7052#ifdef HAVE_SYS_SOCKET_H
7053#include <sys/socket.h>
7054#endif
7055
7056#ifdef HAVE_ARPA_INET_H
7057#include <arpa/inet.h>
7058#endif
7059
7060#ifdef HAVE_SIGNAL_H
7061#include <signal.h>
7062#endif
7063
7064/* For Tru64 */
7065#ifdef HAVE_SYS_BITYPES_H
7066#include <sys/bitypes.h>
7067#endif
7068
7069_ACEOF
7070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071  $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7072  ac_cv_type_ssize_t=yes
7073else
7074  ac_cv_type_ssize_t=no
7075fi
7076rm -f conftest*
7077
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_ssize_t" >&5
7080$as_echo "$ac_cv_type_ssize_t" >&6; }
7081if test $ac_cv_type_ssize_t = no; then
7082
7083$as_echo "#define ssize_t int" >>confdefs.h
7084
7085fi
7086
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suseconds_t" >&5
7088$as_echo_n "checking for suseconds_t... " >&6; }
7089if ${ac_cv_type_suseconds_t+:} false; then :
7090  $as_echo_n "(cached) " >&6
7091else
7092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094
7095#include <sys/types.h>
7096#if STDC_HEADERS
7097#include <stdlib.h>
7098#include <stddef.h>
7099#endif
7100
7101#ifdef HAVE_STDINT_H
7102#include <stdint.h>
7103#endif
7104
7105#ifdef HAVE_SYS_SOCKET_H
7106#include <sys/socket.h>
7107#endif
7108
7109#ifdef HAVE_ARPA_INET_H
7110#include <arpa/inet.h>
7111#endif
7112
7113#ifdef HAVE_SIGNAL_H
7114#include <signal.h>
7115#endif
7116
7117/* For Tru64 */
7118#ifdef HAVE_SYS_BITYPES_H
7119#include <sys/bitypes.h>
7120#endif
7121
7122_ACEOF
7123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124  $EGREP "(^|[^a-zA-Z_0-9])suseconds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
7125  ac_cv_type_suseconds_t=yes
7126else
7127  ac_cv_type_suseconds_t=no
7128fi
7129rm -f conftest*
7130
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_suseconds_t" >&5
7133$as_echo "$ac_cv_type_suseconds_t" >&6; }
7134if test $ac_cv_type_suseconds_t = no; then
7135
7136$as_echo "#define suseconds_t time_t" >>confdefs.h
7137
7138fi
7139
7140
7141ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
7142#if HAVE_SYS_TYPES_H
7143# include <sys/types.h>
7144#endif
7145#if HAVE_NETINET_IN_H
7146# include <netinet/in.h>
7147#endif
7148"
7149if test "x$ac_cv_type_in_addr_t" = xyes; then :
7150
7151else
7152
7153$as_echo "#define in_addr_t uint32_t" >>confdefs.h
7154
7155fi
7156
7157ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
7158#ifdef HAVE_NETINET_IN_H
7159#include <netinet/in.h>
7160#endif
7161#ifdef HAVE_SYS_SOCKET_H
7162#include <sys/socket.h>
7163#endif
7164#ifdef HAVE_NETDB_H
7165#include <netdb.h>
7166#endif
7167#ifdef HAVE_ARPA_INET_H
7168#include <arpa/inet.h>
7169#endif
7170
7171"
7172if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
7173
7174else
7175
7176        ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
7177#ifdef HAVE_NETINET_IN_H
7178#include <netinet/in.h>
7179#endif
7180#ifdef HAVE_SYS_SOCKET_H
7181#include <sys/socket.h>
7182#endif
7183#ifdef HAVE_NETDB_H
7184#include <netdb.h>
7185#endif
7186#ifdef HAVE_ARPA_INET_H
7187#include <arpa/inet.h>
7188#endif
7189
7190"
7191if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
7192
7193
7194$as_echo "#define ss_family __ss_family" >>confdefs.h
7195
7196
7197fi
7198
7199
7200fi
7201
7202ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
7203if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
7204
7205cat >>confdefs.h <<_ACEOF
7206#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
7207_ACEOF
7208
7209
7210fi
7211ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
7212if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
7213
7214cat >>confdefs.h <<_ACEOF
7215#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7216_ACEOF
7217
7218
7219fi
7220
7221
7222# Checks for library functions.
7223for ac_header in unistd.h
7224do :
7225  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7226if test "x$ac_cv_header_unistd_h" = xyes; then :
7227  cat >>confdefs.h <<_ACEOF
7228#define HAVE_UNISTD_H 1
7229_ACEOF
7230
7231fi
7232
7233done
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
7236$as_echo_n "checking for working chown... " >&6; }
7237if ${ac_cv_func_chown_works+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test "$cross_compiling" = yes; then :
7241  ac_cv_func_chown_works=no
7242else
7243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245$ac_includes_default
7246#include <fcntl.h>
7247
7248int
7249main ()
7250{
7251  char *f = "conftest.chown";
7252  struct stat before, after;
7253
7254  if (creat (f, 0600) < 0)
7255    return 1;
7256  if (stat (f, &before) < 0)
7257    return 1;
7258  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7259    return 1;
7260  if (stat (f, &after) < 0)
7261    return 1;
7262  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
7263
7264  ;
7265  return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_run "$LINENO"; then :
7269  ac_cv_func_chown_works=yes
7270else
7271  ac_cv_func_chown_works=no
7272fi
7273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7274  conftest.$ac_objext conftest.beam conftest.$ac_ext
7275fi
7276
7277rm -f conftest.chown
7278
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
7281$as_echo "$ac_cv_func_chown_works" >&6; }
7282if test $ac_cv_func_chown_works = yes; then
7283
7284$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
7285
7286fi
7287
7288for ac_header in vfork.h
7289do :
7290  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7291if test "x$ac_cv_header_vfork_h" = xyes; then :
7292  cat >>confdefs.h <<_ACEOF
7293#define HAVE_VFORK_H 1
7294_ACEOF
7295
7296fi
7297
7298done
7299
7300for ac_func in fork vfork
7301do :
7302  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7305  cat >>confdefs.h <<_ACEOF
7306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7307_ACEOF
7308
7309fi
7310done
7311
7312if test "x$ac_cv_func_fork" = xyes; then
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7314$as_echo_n "checking for working fork... " >&6; }
7315if ${ac_cv_func_fork_works+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  if test "$cross_compiling" = yes; then :
7319  ac_cv_func_fork_works=cross
7320else
7321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323$ac_includes_default
7324int
7325main ()
7326{
7327
7328	  /* By Ruediger Kuhlmann. */
7329	  return fork () < 0;
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335if ac_fn_c_try_run "$LINENO"; then :
7336  ac_cv_func_fork_works=yes
7337else
7338  ac_cv_func_fork_works=no
7339fi
7340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7341  conftest.$ac_objext conftest.beam conftest.$ac_ext
7342fi
7343
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7346$as_echo "$ac_cv_func_fork_works" >&6; }
7347
7348else
7349  ac_cv_func_fork_works=$ac_cv_func_fork
7350fi
7351if test "x$ac_cv_func_fork_works" = xcross; then
7352  case $host in
7353    *-*-amigaos* | *-*-msdosdjgpp*)
7354      # Override, as these systems have only a dummy fork() stub
7355      ac_cv_func_fork_works=no
7356      ;;
7357    *)
7358      ac_cv_func_fork_works=yes
7359      ;;
7360  esac
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7362$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7363fi
7364ac_cv_func_vfork_works=$ac_cv_func_vfork
7365if test "x$ac_cv_func_vfork" = xyes; then
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7367$as_echo_n "checking for working vfork... " >&6; }
7368if ${ac_cv_func_vfork_works+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  if test "$cross_compiling" = yes; then :
7372  ac_cv_func_vfork_works=cross
7373else
7374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376/* Thanks to Paul Eggert for this test.  */
7377$ac_includes_default
7378#include <sys/wait.h>
7379#ifdef HAVE_VFORK_H
7380# include <vfork.h>
7381#endif
7382/* On some sparc systems, changes by the child to local and incoming
7383   argument registers are propagated back to the parent.  The compiler
7384   is told about this with #include <vfork.h>, but some compilers
7385   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7386   static variable whose address is put into a register that is
7387   clobbered by the vfork.  */
7388static void
7389#ifdef __cplusplus
7390sparc_address_test (int arg)
7391# else
7392sparc_address_test (arg) int arg;
7393#endif
7394{
7395  static pid_t child;
7396  if (!child) {
7397    child = vfork ();
7398    if (child < 0) {
7399      perror ("vfork");
7400      _exit(2);
7401    }
7402    if (!child) {
7403      arg = getpid();
7404      write(-1, "", 0);
7405      _exit (arg);
7406    }
7407  }
7408}
7409
7410int
7411main ()
7412{
7413  pid_t parent = getpid ();
7414  pid_t child;
7415
7416  sparc_address_test (0);
7417
7418  child = vfork ();
7419
7420  if (child == 0) {
7421    /* Here is another test for sparc vfork register problems.  This
7422       test uses lots of local variables, at least as many local
7423       variables as main has allocated so far including compiler
7424       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7425       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7426       reuse the register of parent for one of the local variables,
7427       since it will think that parent can't possibly be used any more
7428       in this routine.  Assigning to the local variable will thus
7429       munge parent in the parent process.  */
7430    pid_t
7431      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7432      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7433    /* Convince the compiler that p..p7 are live; otherwise, it might
7434       use the same hardware register for all 8 local variables.  */
7435    if (p != p1 || p != p2 || p != p3 || p != p4
7436	|| p != p5 || p != p6 || p != p7)
7437      _exit(1);
7438
7439    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7440       from child file descriptors.  If the child closes a descriptor
7441       before it execs or exits, this munges the parent's descriptor
7442       as well.  Test for this by closing stdout in the child.  */
7443    _exit(close(fileno(stdout)) != 0);
7444  } else {
7445    int status;
7446    struct stat st;
7447
7448    while (wait(&status) != child)
7449      ;
7450    return (
7451	 /* Was there some problem with vforking?  */
7452	 child < 0
7453
7454	 /* Did the child fail?  (This shouldn't happen.)  */
7455	 || status
7456
7457	 /* Did the vfork/compiler bug occur?  */
7458	 || parent != getpid()
7459
7460	 /* Did the file descriptor bug occur?  */
7461	 || fstat(fileno(stdout), &st) != 0
7462	 );
7463  }
7464}
7465_ACEOF
7466if ac_fn_c_try_run "$LINENO"; then :
7467  ac_cv_func_vfork_works=yes
7468else
7469  ac_cv_func_vfork_works=no
7470fi
7471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7472  conftest.$ac_objext conftest.beam conftest.$ac_ext
7473fi
7474
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7477$as_echo "$ac_cv_func_vfork_works" >&6; }
7478
7479fi;
7480if test "x$ac_cv_func_fork_works" = xcross; then
7481  ac_cv_func_vfork_works=$ac_cv_func_vfork
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7483$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7484fi
7485
7486if test "x$ac_cv_func_vfork_works" = xyes; then
7487
7488$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7489
7490else
7491
7492$as_echo "#define vfork fork" >>confdefs.h
7493
7494fi
7495if test "x$ac_cv_func_fork_works" = xyes; then
7496
7497$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7498
7499fi
7500
7501for ac_header in stdlib.h
7502do :
7503  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7504if test "x$ac_cv_header_stdlib_h" = xyes; then :
7505  cat >>confdefs.h <<_ACEOF
7506#define HAVE_STDLIB_H 1
7507_ACEOF
7508
7509fi
7510
7511done
7512
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7514$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7515if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7516  $as_echo_n "(cached) " >&6
7517else
7518  if test "$cross_compiling" = yes; then :
7519  ac_cv_func_malloc_0_nonnull=no
7520else
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7524# include <stdlib.h>
7525#else
7526char *malloc ();
7527#endif
7528
7529int
7530main ()
7531{
7532return ! malloc (0);
7533  ;
7534  return 0;
7535}
7536_ACEOF
7537if ac_fn_c_try_run "$LINENO"; then :
7538  ac_cv_func_malloc_0_nonnull=yes
7539else
7540  ac_cv_func_malloc_0_nonnull=no
7541fi
7542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7543  conftest.$ac_objext conftest.beam conftest.$ac_ext
7544fi
7545
7546fi
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7548$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7549if test $ac_cv_func_malloc_0_nonnull = yes; then :
7550
7551$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7552
7553else
7554  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7555
7556   case " $LIBOBJS " in
7557  *" malloc.$ac_objext "* ) ;;
7558  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7559 ;;
7560esac
7561
7562
7563$as_echo "#define malloc rpl_malloc" >>confdefs.h
7564
7565fi
7566
7567
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7569$as_echo_n "checking return type of signal handlers... " >&6; }
7570if ${ac_cv_type_signal+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575#include <sys/types.h>
7576#include <signal.h>
7577
7578int
7579main ()
7580{
7581return *(signal (0, 0)) (0) == 1;
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586if ac_fn_c_try_compile "$LINENO"; then :
7587  ac_cv_type_signal=int
7588else
7589  ac_cv_type_signal=void
7590fi
7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7594$as_echo "$ac_cv_type_signal" >&6; }
7595
7596cat >>confdefs.h <<_ACEOF
7597#define RETSIGTYPE $ac_cv_type_signal
7598_ACEOF
7599
7600
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7602$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7603if ${ac_cv_sys_largefile_source+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  while :; do
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609#include <sys/types.h> /* for off_t */
7610     #include <stdio.h>
7611int
7612main ()
7613{
7614int (*fp) (FILE *, off_t, int) = fseeko;
7615     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620if ac_fn_c_try_link "$LINENO"; then :
7621  ac_cv_sys_largefile_source=no; break
7622fi
7623rm -f core conftest.err conftest.$ac_objext \
7624    conftest$ac_exeext conftest.$ac_ext
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627#define _LARGEFILE_SOURCE 1
7628#include <sys/types.h> /* for off_t */
7629     #include <stdio.h>
7630int
7631main ()
7632{
7633int (*fp) (FILE *, off_t, int) = fseeko;
7634     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7635  ;
7636  return 0;
7637}
7638_ACEOF
7639if ac_fn_c_try_link "$LINENO"; then :
7640  ac_cv_sys_largefile_source=1; break
7641fi
7642rm -f core conftest.err conftest.$ac_objext \
7643    conftest$ac_exeext conftest.$ac_ext
7644  ac_cv_sys_largefile_source=unknown
7645  break
7646done
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
7649$as_echo "$ac_cv_sys_largefile_source" >&6; }
7650case $ac_cv_sys_largefile_source in #(
7651  no | unknown) ;;
7652  *)
7653cat >>confdefs.h <<_ACEOF
7654#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7655_ACEOF
7656;;
7657esac
7658rm -rf conftest*
7659
7660# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7661# in glibc 2.1.3, but that breaks too many other things.
7662# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7663if test $ac_cv_sys_largefile_source != unknown; then
7664
7665$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
7666
7667fi
7668
7669# Check whether --enable-largefile was given.
7670if test "${enable_largefile+set}" = set; then :
7671  enableval=$enable_largefile;
7672fi
7673
7674if test "$enable_largefile" != no; then
7675
7676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7677$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7678if ${ac_cv_sys_largefile_CC+:} false; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  ac_cv_sys_largefile_CC=no
7682     if test "$GCC" != yes; then
7683       ac_save_CC=$CC
7684       while :; do
7685	 # IRIX 6.2 and later do not support large files by default,
7686	 # so use the C compiler's -n32 option if that helps.
7687	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689#include <sys/types.h>
7690 /* Check that off_t can represent 2**63 - 1 correctly.
7691    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7692    since some C++ compilers masquerading as C compilers
7693    incorrectly reject 9223372036854775807.  */
7694#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7695  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7696		       && LARGE_OFF_T % 2147483647 == 1)
7697		      ? 1 : -1];
7698int
7699main ()
7700{
7701
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706	 if ac_fn_c_try_compile "$LINENO"; then :
7707  break
7708fi
7709rm -f core conftest.err conftest.$ac_objext
7710	 CC="$CC -n32"
7711	 if ac_fn_c_try_compile "$LINENO"; then :
7712  ac_cv_sys_largefile_CC=' -n32'; break
7713fi
7714rm -f core conftest.err conftest.$ac_objext
7715	 break
7716       done
7717       CC=$ac_save_CC
7718       rm -f conftest.$ac_ext
7719    fi
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7722$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7723  if test "$ac_cv_sys_largefile_CC" != no; then
7724    CC=$CC$ac_cv_sys_largefile_CC
7725  fi
7726
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7728$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7729if ${ac_cv_sys_file_offset_bits+:} false; then :
7730  $as_echo_n "(cached) " >&6
7731else
7732  while :; do
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735#include <sys/types.h>
7736 /* Check that off_t can represent 2**63 - 1 correctly.
7737    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7738    since some C++ compilers masquerading as C compilers
7739    incorrectly reject 9223372036854775807.  */
7740#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7741  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7742		       && LARGE_OFF_T % 2147483647 == 1)
7743		      ? 1 : -1];
7744int
7745main ()
7746{
7747
7748  ;
7749  return 0;
7750}
7751_ACEOF
7752if ac_fn_c_try_compile "$LINENO"; then :
7753  ac_cv_sys_file_offset_bits=no; break
7754fi
7755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h.  */
7758#define _FILE_OFFSET_BITS 64
7759#include <sys/types.h>
7760 /* Check that off_t can represent 2**63 - 1 correctly.
7761    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7762    since some C++ compilers masquerading as C compilers
7763    incorrectly reject 9223372036854775807.  */
7764#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7765  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7766		       && LARGE_OFF_T % 2147483647 == 1)
7767		      ? 1 : -1];
7768int
7769main ()
7770{
7771
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"; then :
7777  ac_cv_sys_file_offset_bits=64; break
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780  ac_cv_sys_file_offset_bits=unknown
7781  break
7782done
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7785$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7786case $ac_cv_sys_file_offset_bits in #(
7787  no | unknown) ;;
7788  *)
7789cat >>confdefs.h <<_ACEOF
7790#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7791_ACEOF
7792;;
7793esac
7794rm -rf conftest*
7795  if test $ac_cv_sys_file_offset_bits = unknown; then
7796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7797$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7798if ${ac_cv_sys_large_files+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  while :; do
7802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h.  */
7804#include <sys/types.h>
7805 /* Check that off_t can represent 2**63 - 1 correctly.
7806    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7807    since some C++ compilers masquerading as C compilers
7808    incorrectly reject 9223372036854775807.  */
7809#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7810  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7811		       && LARGE_OFF_T % 2147483647 == 1)
7812		      ? 1 : -1];
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_compile "$LINENO"; then :
7822  ac_cv_sys_large_files=no; break
7823fi
7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h.  */
7827#define _LARGE_FILES 1
7828#include <sys/types.h>
7829 /* Check that off_t can represent 2**63 - 1 correctly.
7830    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7831    since some C++ compilers masquerading as C compilers
7832    incorrectly reject 9223372036854775807.  */
7833#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7834  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7835		       && LARGE_OFF_T % 2147483647 == 1)
7836		      ? 1 : -1];
7837int
7838main ()
7839{
7840
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"; then :
7846  ac_cv_sys_large_files=1; break
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849  ac_cv_sys_large_files=unknown
7850  break
7851done
7852fi
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7854$as_echo "$ac_cv_sys_large_files" >&6; }
7855case $ac_cv_sys_large_files in #(
7856  no | unknown) ;;
7857  *)
7858cat >>confdefs.h <<_ACEOF
7859#define _LARGE_FILES $ac_cv_sys_large_files
7860_ACEOF
7861;;
7862esac
7863rm -rf conftest*
7864  fi
7865
7866
7867fi
7868
7869# The cast to long int works around a bug in the HP C Compiler
7870# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7871# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7872# This bug is HP SR number 8606223364.
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
7874$as_echo_n "checking size of void*... " >&6; }
7875if ${ac_cv_sizeof_voidp+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
7879
7880else
7881  if test "$ac_cv_type_voidp" = yes; then
7882     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884as_fn_error 77 "cannot compute sizeof (void*)
7885See \`config.log' for more details" "$LINENO" 5; }
7886   else
7887     ac_cv_sizeof_voidp=0
7888   fi
7889fi
7890
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
7893$as_echo "$ac_cv_sizeof_voidp" >&6; }
7894
7895
7896
7897cat >>confdefs.h <<_ACEOF
7898#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7899_ACEOF
7900
7901
7902# The cast to long int works around a bug in the HP C Compiler
7903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7905# This bug is HP SR number 8606223364.
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7907$as_echo_n "checking size of off_t... " >&6; }
7908if ${ac_cv_sizeof_off_t+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
7912
7913else
7914  if test "$ac_cv_type_off_t" = yes; then
7915     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7917as_fn_error 77 "cannot compute sizeof (off_t)
7918See \`config.log' for more details" "$LINENO" 5; }
7919   else
7920     ac_cv_sizeof_off_t=0
7921   fi
7922fi
7923
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7926$as_echo "$ac_cv_sizeof_off_t" >&6; }
7927
7928
7929
7930cat >>confdefs.h <<_ACEOF
7931#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7932_ACEOF
7933
7934
7935for ac_func in arc4random arc4random_uniform
7936do :
7937  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7940  cat >>confdefs.h <<_ACEOF
7941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7942_ACEOF
7943
7944fi
7945done
7946
7947for ac_func in tzset alarm chroot dup2 endpwent gethostname memset memcpy pwrite socket strcasecmp strchr strdup strerror strncasecmp strtol writev getaddrinfo getnameinfo freeaddrinfo gai_strerror sigaction sigprocmask strptime strftime localtime_r setusercontext glob initgroups setresuid setreuid setresgid setregid getpwnam mmap ppoll clock_gettime
7948do :
7949  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7950ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7951if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7952  cat >>confdefs.h <<_ACEOF
7953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7954_ACEOF
7955
7956fi
7957done
7958
7959
7960# Check whether --enable-recvmmsg was given.
7961if test "${enable_recvmmsg+set}" = set; then :
7962  enableval=$enable_recvmmsg;
7963fi
7964
7965case "$enable_recvmmsg" in
7966        yes)
7967		ac_fn_c_check_func "$LINENO" "recvmmsg" "ac_cv_func_recvmmsg"
7968if test "x$ac_cv_func_recvmmsg" = xyes; then :
7969
7970if test "$cross_compiling" = yes; then :
7971
7972
7973$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h
7974
7975
7976else
7977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979
7980#include <sys/socket.h>
7981#include <errno.h>
7982int main(void)
7983{
7984	int s = socket(AF_INET, SOCK_DGRAM, 0);
7985	int r = recvmmsg(s, 0, 0, 0, 0) == -1 && errno == ENOSYS;
7986	close(s);
7987	return r;
7988}
7989
7990_ACEOF
7991if ac_fn_c_try_run "$LINENO"; then :
7992
7993
7994$as_echo "#define HAVE_RECVMMSG 1" >>confdefs.h
7995
7996fi
7997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7998  conftest.$ac_objext conftest.beam conftest.$ac_ext
7999fi
8000
8001fi
8002
8003		ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg"
8004if test "x$ac_cv_func_sendmmsg" = xyes; then :
8005
8006if test "$cross_compiling" = yes; then :
8007
8008
8009$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h
8010
8011
8012else
8013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015
8016#include <sys/socket.h>
8017#include <errno.h>
8018int main(void)
8019{
8020	int s = socket(AF_INET, SOCK_DGRAM, 0);
8021	int r = sendmmsg(s, 0, 0, 0) == -1 && errno == ENOSYS;
8022	close(s);
8023	return r;
8024}
8025
8026_ACEOF
8027if ac_fn_c_try_run "$LINENO"; then :
8028
8029
8030$as_echo "#define HAVE_SENDMMSG 1" >>confdefs.h
8031
8032fi
8033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8034  conftest.$ac_objext conftest.beam conftest.$ac_ext
8035fi
8036
8037fi
8038
8039
8040		;;
8041        no|*)
8042                ;;
8043esac
8044
8045# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
8046if echo $build_os | grep darwin8 > /dev/null; then
8047
8048$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
8049
8050fi
8051
8052#
8053# Checking for missing functions we can replace
8054#
8055ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
8056if test "x$ac_cv_func_basename" = xyes; then :
8057  $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8058
8059else
8060  case " $LIBOBJS " in
8061  *" basename.$ac_objext "* ) ;;
8062  *) LIBOBJS="$LIBOBJS basename.$ac_objext"
8063 ;;
8064esac
8065
8066fi
8067
8068
8069ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
8070if test "x$ac_cv_func_inet_aton" = xyes; then :
8071  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
8072
8073else
8074  case " $LIBOBJS " in
8075  *" inet_aton.$ac_objext "* ) ;;
8076  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8077 ;;
8078esac
8079
8080fi
8081
8082
8083ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
8084if test "x$ac_cv_func_inet_pton" = xyes; then :
8085  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
8086
8087else
8088  case " $LIBOBJS " in
8089  *" inet_pton.$ac_objext "* ) ;;
8090  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8091 ;;
8092esac
8093
8094fi
8095
8096
8097ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8098if test "x$ac_cv_func_inet_ntop" = xyes; then :
8099  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
8100
8101else
8102  case " $LIBOBJS " in
8103  *" inet_ntop.$ac_objext "* ) ;;
8104  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8105 ;;
8106esac
8107
8108fi
8109
8110
8111ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8112if test "x$ac_cv_func_snprintf" = xyes; then :
8113  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
8114
8115else
8116  case " $LIBOBJS " in
8117  *" snprintf.$ac_objext "* ) ;;
8118  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8119 ;;
8120esac
8121
8122fi
8123
8124
8125ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
8126if test "x$ac_cv_func_strlcat" = xyes; then :
8127  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
8128
8129else
8130  case " $LIBOBJS " in
8131  *" strlcat.$ac_objext "* ) ;;
8132  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
8133 ;;
8134esac
8135
8136fi
8137
8138
8139ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8140if test "x$ac_cv_func_strlcpy" = xyes; then :
8141  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
8142
8143else
8144  case " $LIBOBJS " in
8145  *" strlcpy.$ac_objext "* ) ;;
8146  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
8147 ;;
8148esac
8149
8150fi
8151
8152
8153ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
8154if test "x$ac_cv_func_strptime" = xyes; then :
8155  $as_echo "#define HAVE_STRPTIME 1" >>confdefs.h
8156
8157else
8158  case " $LIBOBJS " in
8159  *" strptime.$ac_objext "* ) ;;
8160  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
8161 ;;
8162esac
8163
8164fi
8165
8166
8167ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
8168if test "x$ac_cv_func_b64_pton" = xyes; then :
8169  $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
8170
8171else
8172  case " $LIBOBJS " in
8173  *" b64_pton.$ac_objext "* ) ;;
8174  *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
8175 ;;
8176esac
8177
8178fi
8179
8180
8181ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
8182if test "x$ac_cv_func_b64_ntop" = xyes; then :
8183  $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
8184
8185else
8186  case " $LIBOBJS " in
8187  *" b64_ntop.$ac_objext "* ) ;;
8188  *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
8189 ;;
8190esac
8191
8192fi
8193
8194
8195ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
8196if test "x$ac_cv_func_pselect" = xyes; then :
8197  $as_echo "#define HAVE_PSELECT 1" >>confdefs.h
8198
8199else
8200  case " $LIBOBJS " in
8201  *" pselect.$ac_objext "* ) ;;
8202  *) LIBOBJS="$LIBOBJS pselect.$ac_objext"
8203 ;;
8204esac
8205
8206fi
8207
8208
8209ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
8210if test "x$ac_cv_func_memmove" = xyes; then :
8211  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
8212
8213else
8214  case " $LIBOBJS " in
8215  *" memmove.$ac_objext "* ) ;;
8216  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
8217 ;;
8218esac
8219
8220fi
8221
8222
8223ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
8224if test "x$ac_cv_func_reallocarray" = xyes; then :
8225  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
8226
8227else
8228  case " $LIBOBJS " in
8229  *" reallocarray.$ac_objext "* ) ;;
8230  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
8231 ;;
8232esac
8233
8234fi
8235
8236
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect prototype in sys/select.h" >&5
8239$as_echo_n "checking for pselect prototype in sys/select.h... " >&6; }
8240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242#include <sys/select.h>
8243
8244_ACEOF
8245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8246  $EGREP "[^a-zA-Z_]*pselect[^a-zA-Z_]" >/dev/null 2>&1; then :
8247
8248$as_echo "#define HAVE_PSELECT_PROTO 1" >>confdefs.h
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250$as_echo "yes" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255rm -f conftest*
8256
8257
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime_r prototype in time.h" >&5
8259$as_echo_n "checking for ctime_r prototype in time.h... " >&6; }
8260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261/* end confdefs.h.  */
8262#include <time.h>
8263
8264_ACEOF
8265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8266  $EGREP "[^a-zA-Z_]*ctime_r[^a-zA-Z_]" >/dev/null 2>&1; then :
8267
8268$as_echo "#define HAVE_CTIME_R_PROTO 1" >>confdefs.h
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8270$as_echo "yes" >&6; }
8271else
8272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273$as_echo "no" >&6; }
8274fi
8275rm -f conftest*
8276
8277
8278ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "
8279$ac_includes_default
8280#ifdef HAVE_SIGNAL_H
8281#include <signal.h>
8282#endif
8283#ifdef HAVE_TIME_H
8284#include <time.h>
8285#endif
8286
8287"
8288if test "x$ac_cv_type_struct_timespec" = xyes; then :
8289
8290$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
8291
8292fi
8293
8294
8295
8296cat >>confdefs.h <<_ACEOF
8297#define IDENTITY "unidentified server"
8298_ACEOF
8299
8300
8301cat >>confdefs.h <<_ACEOF
8302#define VERSION PACKAGE_STRING
8303_ACEOF
8304
8305
8306cat >>confdefs.h <<_ACEOF
8307#define TCP_BACKLOG 256
8308_ACEOF
8309
8310
8311cat >>confdefs.h <<_ACEOF
8312#define TCP_PORT "53"
8313_ACEOF
8314
8315
8316cat >>confdefs.h <<_ACEOF
8317#define TCP_MAX_MESSAGE_LEN 65535
8318_ACEOF
8319
8320
8321cat >>confdefs.h <<_ACEOF
8322#define UDP_PORT "53"
8323_ACEOF
8324
8325
8326cat >>confdefs.h <<_ACEOF
8327#define UDP_MAX_MESSAGE_LEN 512
8328_ACEOF
8329
8330
8331cat >>confdefs.h <<_ACEOF
8332#define EDNS_MAX_MESSAGE_LEN 4096
8333_ACEOF
8334
8335
8336cat >>confdefs.h <<_ACEOF
8337#define MAXSYSLOGMSGLEN 512
8338_ACEOF
8339
8340
8341cat >>confdefs.h <<_ACEOF
8342#define NSD_CONTROL_PORT 8952
8343_ACEOF
8344
8345
8346cat >>confdefs.h <<_ACEOF
8347#define NSD_CONTROL_VERSION 1
8348_ACEOF
8349
8350
8351facility=LOG_DAEMON
8352
8353# Check whether --with-facility was given.
8354if test "${with_facility+set}" = set; then :
8355  withval=$with_facility; facility=$withval
8356fi
8357
8358
8359cat >>confdefs.h <<_ACEOF
8360#define FACILITY $facility
8361_ACEOF
8362
8363
8364tcp_timeout=120
8365
8366# Check whether --with-tcp_timeout was given.
8367if test "${with_tcp_timeout+set}" = set; then :
8368  withval=$with_tcp_timeout; tcp_timeout=$withval
8369fi
8370
8371
8372cat >>confdefs.h <<_ACEOF
8373#define TCP_TIMEOUT $tcp_timeout
8374_ACEOF
8375
8376
8377# Check whether --enable-root-server was given.
8378if test "${enable_root_server+set}" = set; then :
8379  enableval=$enable_root_server;
8380fi
8381
8382case "$enable_root_server" in
8383        yes)
8384
8385cat >>confdefs.h <<_ACEOF
8386#define ROOT_SERVER /**/
8387_ACEOF
8388
8389		;;
8390        no|*)
8391                ;;
8392esac
8393
8394# Check whether --enable-ipv6 was given.
8395if test "${enable_ipv6+set}" = set; then :
8396  enableval=$enable_ipv6;
8397fi
8398
8399case "$enable_ipv6" in
8400        no)
8401                ;;
8402        yes|*)
8403
8404cat >>confdefs.h <<_ACEOF
8405#define INET6 /**/
8406_ACEOF
8407
8408		;;
8409esac
8410
8411# Check whether --enable-bind8-stats was given.
8412if test "${enable_bind8_stats+set}" = set; then :
8413  enableval=$enable_bind8_stats;
8414fi
8415
8416
8417case "$enable_bind8_stats" in
8418	yes|'')
8419
8420cat >>confdefs.h <<_ACEOF
8421#define BIND8_STATS /**/
8422_ACEOF
8423
8424		;;
8425	no|*)
8426		;;
8427esac
8428
8429# Check whether --enable-zone-stats was given.
8430if test "${enable_zone_stats+set}" = set; then :
8431  enableval=$enable_zone_stats;
8432fi
8433
8434case "$enable_zone_stats" in
8435	yes)
8436
8437cat >>confdefs.h <<_ACEOF
8438#define USE_ZONE_STATS /**/
8439_ACEOF
8440
8441
8442cat >>confdefs.h <<_ACEOF
8443#define BIND8_STATS /**/
8444_ACEOF
8445
8446		;;
8447	no|''|*)
8448		;;
8449esac
8450
8451# Check whether --enable-checking was given.
8452if test "${enable_checking+set}" = set; then :
8453  enableval=$enable_checking;
8454fi
8455
8456case "$enable_checking" in
8457        yes)
8458
8459
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
8461$as_echo_n "checking whether $CC supports -W... " >&6; }
8462cache=`echo W | sed 'y%.=/+-%___p_%'`
8463if eval \${cv_prog_cc_flag_$cache+:} false; then :
8464  $as_echo_n "(cached) " >&6
8465else
8466
8467echo 'void f(){}' >conftest.c
8468if test -z "`$CC -W -c conftest.c 2>&1`"; then
8469eval "cv_prog_cc_flag_$cache=yes"
8470else
8471eval "cv_prog_cc_flag_$cache=no"
8472fi
8473rm -f conftest*
8474
8475fi
8476
8477if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8479$as_echo "yes" >&6; }
8480:
8481 CFLAGS="$CFLAGS -W"
8482else
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485:
8486
8487fi
8488
8489
8490
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
8492$as_echo_n "checking whether $CC supports -Wall... " >&6; }
8493cache=`echo Wall | sed 'y%.=/+-%___p_%'`
8494if eval \${cv_prog_cc_flag_$cache+:} false; then :
8495  $as_echo_n "(cached) " >&6
8496else
8497
8498echo 'void f(){}' >conftest.c
8499if test -z "`$CC -Wall -c conftest.c 2>&1`"; then
8500eval "cv_prog_cc_flag_$cache=yes"
8501else
8502eval "cv_prog_cc_flag_$cache=no"
8503fi
8504rm -f conftest*
8505
8506fi
8507
8508if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8510$as_echo "yes" >&6; }
8511:
8512 CFLAGS="$CFLAGS -Wall"
8513else
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
8516:
8517
8518fi
8519
8520
8521
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
8523$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
8524cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
8525if eval \${cv_prog_cc_flag_$cache+:} false; then :
8526  $as_echo_n "(cached) " >&6
8527else
8528
8529echo 'void f(){}' >conftest.c
8530if test -z "`$CC -Wextra -c conftest.c 2>&1`"; then
8531eval "cv_prog_cc_flag_$cache=yes"
8532else
8533eval "cv_prog_cc_flag_$cache=no"
8534fi
8535rm -f conftest*
8536
8537fi
8538
8539if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541$as_echo "yes" >&6; }
8542:
8543 CFLAGS="$CFLAGS -Wextra"
8544else
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546$as_echo "no" >&6; }
8547:
8548
8549fi
8550
8551
8552
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
8554$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
8555cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
8556if eval \${cv_prog_cc_flag_$cache+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559
8560echo 'void f(){}' >conftest.c
8561if test -z "`$CC -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
8562eval "cv_prog_cc_flag_$cache=yes"
8563else
8564eval "cv_prog_cc_flag_$cache=no"
8565fi
8566rm -f conftest*
8567
8568fi
8569
8570if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572$as_echo "yes" >&6; }
8573:
8574 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
8575else
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
8578:
8579
8580fi
8581
8582		;;
8583        no|*)
8584
8585$as_echo "#define NDEBUG /**/" >>confdefs.h
8586
8587                ;;
8588esac
8589
8590# Check whether --enable-ratelimit was given.
8591if test "${enable_ratelimit+set}" = set; then :
8592  enableval=$enable_ratelimit;
8593fi
8594
8595case "$enable_ratelimit" in
8596	yes)
8597
8598cat >>confdefs.h <<_ACEOF
8599#define RATELIMIT /**/
8600_ACEOF
8601
8602				ratelimit="xx"
8603		;;
8604	no|*)
8605		ratelimit=""
8606		;;
8607esac
8608
8609
8610# Check whether --enable-ratelimit-default-is-off was given.
8611if test "${enable_ratelimit_default_is_off+set}" = set; then :
8612  enableval=$enable_ratelimit_default_is_off;
8613fi
8614
8615case "$enable_ratelimit_default_is_off" in
8616	yes)
8617
8618cat >>confdefs.h <<_ACEOF
8619#define RATELIMIT_DEFAULT_OFF /**/
8620_ACEOF
8621
8622		ratelimit_default="off"
8623		;;
8624	no|*)
8625		ratelimit_default="on"
8626		;;
8627esac
8628
8629
8630# we need SSL for TSIG (and maybe also for NSEC3).
8631
8632
8633# Check whether --with-ssl was given.
8634if test "${with_ssl+set}" = set; then :
8635  withval=$with_ssl;
8636
8637else
8638
8639            withval="yes"
8640
8641fi
8642
8643    if test x_$withval != x_no; then
8644        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
8645$as_echo_n "checking for SSL... " >&6; }
8646        if test x_$withval = x_ -o x_$withval = x_yes; then
8647            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/sfw /usr/local /usr"
8648        fi
8649        for dir in $withval; do
8650            ssldir="$dir"
8651            if test -f "$dir/include/openssl/ssl.h"; then
8652                found_ssl="yes";
8653
8654cat >>confdefs.h <<_ACEOF
8655#define HAVE_SSL /**/
8656_ACEOF
8657
8658                if test x_$ssldir != x_/usr; then
8659                    CPPFLAGS="$CPPFLAGS -I$ssldir/include";
8660                fi
8661                break;
8662            fi
8663        done
8664        if test x_$found_ssl != x_yes; then
8665            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
8666        else
8667            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
8668$as_echo "found in $ssldir" >&6; }
8669            HAVE_SSL=yes
8670            if test x_$ssldir != x_/usr; then
8671                LDFLAGS="$LDFLAGS -L$ssldir/lib";
8672            fi
8673	    if test x_$ssldir = x_/usr/sfw; then
8674		LDFLAGS="$LDFLAGS -R$ssldir/lib";
8675	    fi
8676        fi
8677
8678    fi
8679
8680if test x$HAVE_SSL = x"yes"; then
8681
8682# check if libssl needs libdl
8683BAKLIBS="$LIBS"
8684LIBS="-lssl $LIBS"
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
8686$as_echo_n "checking if libssl needs libdl... " >&6; }
8687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689
8690/* Override any GCC internal prototype to avoid an error.
8691   Use char because int might match the return type of a GCC
8692   builtin and then its argument prototype would still apply.  */
8693#ifdef __cplusplus
8694extern "C"
8695#endif
8696char SSL_CTX_new ();
8697int
8698main ()
8699{
8700return SSL_CTX_new ();
8701  ;
8702  return 0;
8703}
8704_ACEOF
8705if ac_fn_c_try_link "$LINENO"; then :
8706
8707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708$as_echo "no" >&6; }
8709	LIBS="$BAKLIBS"
8710
8711else
8712
8713	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8714$as_echo "yes" >&6; }
8715	LIBS="$BAKLIBS"
8716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8717$as_echo_n "checking for library containing dlopen... " >&6; }
8718if ${ac_cv_search_dlopen+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  ac_func_search_save_LIBS=$LIBS
8722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h.  */
8724
8725/* Override any GCC internal prototype to avoid an error.
8726   Use char because int might match the return type of a GCC
8727   builtin and then its argument prototype would still apply.  */
8728#ifdef __cplusplus
8729extern "C"
8730#endif
8731char dlopen ();
8732int
8733main ()
8734{
8735return dlopen ();
8736  ;
8737  return 0;
8738}
8739_ACEOF
8740for ac_lib in '' dl; do
8741  if test -z "$ac_lib"; then
8742    ac_res="none required"
8743  else
8744    ac_res=-l$ac_lib
8745    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8746  fi
8747  if ac_fn_c_try_link "$LINENO"; then :
8748  ac_cv_search_dlopen=$ac_res
8749fi
8750rm -f core conftest.err conftest.$ac_objext \
8751    conftest$ac_exeext
8752  if ${ac_cv_search_dlopen+:} false; then :
8753  break
8754fi
8755done
8756if ${ac_cv_search_dlopen+:} false; then :
8757
8758else
8759  ac_cv_search_dlopen=no
8760fi
8761rm conftest.$ac_ext
8762LIBS=$ac_func_search_save_LIBS
8763fi
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8765$as_echo "$ac_cv_search_dlopen" >&6; }
8766ac_res=$ac_cv_search_dlopen
8767if test "$ac_res" != no; then :
8768  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8769
8770fi
8771
8772
8773fi
8774rm -f core conftest.err conftest.$ac_objext \
8775    conftest$ac_exeext conftest.$ac_ext
8776
8777	# Check for -pthread
8778	BAKLIBS="$LIBS"
8779	LIBS="-lcrypto $LIBS"
8780	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h.  */
8782
8783int
8784main ()
8785{
8786
8787		int HMAC_Update(void);
8788		(void)HMAC_Update();
8789
8790  ;
8791  return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_link "$LINENO"; then :
8795
8796else
8797
8798				BAKCFLAGS="$CFLAGS"
8799		CFLAGS="$CFLAGS -pthread"
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcrypto needs -pthread" >&5
8801$as_echo_n "checking if libcrypto needs -pthread... " >&6; }
8802		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803/* end confdefs.h.  */
8804
8805/* Override any GCC internal prototype to avoid an error.
8806   Use char because int might match the return type of a GCC
8807   builtin and then its argument prototype would still apply.  */
8808#ifdef __cplusplus
8809extern "C"
8810#endif
8811char HMAC_Update ();
8812int
8813main ()
8814{
8815return HMAC_Update ();
8816  ;
8817  return 0;
8818}
8819_ACEOF
8820if ac_fn_c_try_link "$LINENO"; then :
8821
8822			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8823$as_echo "yes" >&6; }
8824
8825else
8826
8827			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828$as_echo "no" >&6; }
8829						CFLAGS="$BAKCFLAGS"
8830
8831fi
8832rm -f core conftest.err conftest.$ac_objext \
8833    conftest$ac_exeext conftest.$ac_ext
8834
8835fi
8836rm -f core conftest.err conftest.$ac_objext \
8837    conftest$ac_exeext conftest.$ac_ext
8838	LIBS="$BAKLIBS"
8839
8840	if test -n "$ssldir"; then
8841            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
8842$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
8843if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  ac_check_lib_save_LIBS=$LIBS
8847LIBS="-lcrypto  $LIBS"
8848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850
8851/* Override any GCC internal prototype to avoid an error.
8852   Use char because int might match the return type of a GCC
8853   builtin and then its argument prototype would still apply.  */
8854#ifdef __cplusplus
8855extern "C"
8856#endif
8857char HMAC_Update ();
8858int
8859main ()
8860{
8861return HMAC_Update ();
8862  ;
8863  return 0;
8864}
8865_ACEOF
8866if ac_fn_c_try_link "$LINENO"; then :
8867  ac_cv_lib_crypto_HMAC_Update=yes
8868else
8869  ac_cv_lib_crypto_HMAC_Update=no
8870fi
8871rm -f core conftest.err conftest.$ac_objext \
8872    conftest$ac_exeext conftest.$ac_ext
8873LIBS=$ac_check_lib_save_LIBS
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
8876$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
8877if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
8878  cat >>confdefs.h <<_ACEOF
8879#define HAVE_LIBCRYPTO 1
8880_ACEOF
8881
8882  LIBS="-lcrypto $LIBS"
8883
8884else
8885
8886                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
8887
8888fi
8889
8890	fi
8891	SSL_LIBS="-lssl"
8892
8893	for ac_header in openssl/ssl.h
8894do :
8895  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
8896"
8897if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
8898  cat >>confdefs.h <<_ACEOF
8899#define HAVE_OPENSSL_SSL_H 1
8900_ACEOF
8901
8902fi
8903
8904done
8905
8906	for ac_header in openssl/err.h
8907do :
8908  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
8909"
8910if test "x$ac_cv_header_openssl_err_h" = xyes; then :
8911  cat >>confdefs.h <<_ACEOF
8912#define HAVE_OPENSSL_ERR_H 1
8913_ACEOF
8914
8915fi
8916
8917done
8918
8919	for ac_header in openssl/rand.h
8920do :
8921  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
8922"
8923if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
8924  cat >>confdefs.h <<_ACEOF
8925#define HAVE_OPENSSL_RAND_H 1
8926_ACEOF
8927
8928fi
8929
8930done
8931
8932	for ac_func in HMAC_CTX_reset HMAC_CTX_new EVP_cleanup ERR_load_crypto_strings OPENSSL_init_crypto
8933do :
8934  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8936if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8937  cat >>confdefs.h <<_ACEOF
8938#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8939_ACEOF
8940
8941fi
8942done
8943
8944
8945	BAKLIBS="$LIBS"
8946	LIBS="-lssl $LIBS"
8947	for ac_func in OPENSSL_init_ssl
8948do :
8949  ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
8950if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes; then :
8951  cat >>confdefs.h <<_ACEOF
8952#define HAVE_OPENSSL_INIT_SSL 1
8953_ACEOF
8954
8955fi
8956done
8957
8958	LIBS="$BAKLIBS"
8959
8960else
8961	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore remote-control is disabled" >&5
8962$as_echo "$as_me: WARNING: No SSL, therefore remote-control is disabled" >&2;}
8963fi
8964
8965# Check whether --enable-nsec3 was given.
8966if test "${enable_nsec3+set}" = set; then :
8967  enableval=$enable_nsec3;
8968fi
8969
8970case "$enable_nsec3" in
8971        no)
8972		;;
8973        yes)
8974
8975cat >>confdefs.h <<_ACEOF
8976#define NSEC3 /**/
8977_ACEOF
8978
8979		;;
8980		*)
8981		if test x$HAVE_SSL = x"yes"; then
8982
8983cat >>confdefs.h <<_ACEOF
8984#define NSEC3 /**/
8985_ACEOF
8986
8987		else
8988			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No SSL, therefore NSEC3 is disabled" >&5
8989$as_echo "$as_me: WARNING: No SSL, therefore NSEC3 is disabled" >&2;}
8990		fi
8991                ;;
8992esac
8993
8994# Check whether --enable-minimal-responses was given.
8995if test "${enable_minimal_responses+set}" = set; then :
8996  enableval=$enable_minimal_responses;
8997fi
8998
8999case "$enable_minimal_responses" in
9000        no)
9001		;;
9002        yes|*)
9003
9004cat >>confdefs.h <<_ACEOF
9005#define MINIMAL_RESPONSES /**/
9006_ACEOF
9007
9008                ;;
9009esac
9010
9011# Check whether --enable-mmap was given.
9012if test "${enable_mmap+set}" = set; then :
9013  enableval=$enable_mmap;
9014fi
9015
9016case "$enable_mmap" in
9017        yes)
9018		for ac_header in sys/mman.h
9019do :
9020  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
9021if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9022  cat >>confdefs.h <<_ACEOF
9023#define HAVE_SYS_MMAN_H 1
9024_ACEOF
9025
9026fi
9027
9028done
9029
9030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5
9031$as_echo_n "checking for uintptr_t... " >&6; }
9032if ${ac_cv_type_uintptr_t+:} false; then :
9033  $as_echo_n "(cached) " >&6
9034else
9035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036/* end confdefs.h.  */
9037
9038#include <sys/types.h>
9039#if STDC_HEADERS
9040#include <stdlib.h>
9041#include <stddef.h>
9042#endif
9043
9044#ifdef HAVE_STDINT_H
9045#include <stdint.h>
9046#endif
9047
9048#ifdef HAVE_SYS_SOCKET_H
9049#include <sys/socket.h>
9050#endif
9051
9052#ifdef HAVE_ARPA_INET_H
9053#include <arpa/inet.h>
9054#endif
9055
9056#ifdef HAVE_SIGNAL_H
9057#include <signal.h>
9058#endif
9059
9060/* For Tru64 */
9061#ifdef HAVE_SYS_BITYPES_H
9062#include <sys/bitypes.h>
9063#endif
9064
9065_ACEOF
9066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9067  $EGREP "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
9068  ac_cv_type_uintptr_t=yes
9069else
9070  ac_cv_type_uintptr_t=no
9071fi
9072rm -f conftest*
9073
9074fi
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uintptr_t" >&5
9076$as_echo "$ac_cv_type_uintptr_t" >&6; }
9077if test $ac_cv_type_uintptr_t = no; then
9078
9079$as_echo "#define uintptr_t void*" >>confdefs.h
9080
9081fi
9082
9083		for ac_func in mmap munmap
9084do :
9085  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9088  cat >>confdefs.h <<_ACEOF
9089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9090_ACEOF
9091
9092fi
9093done
9094
9095
9096cat >>confdefs.h <<_ACEOF
9097#define USE_MMAP_ALLOC /**/
9098_ACEOF
9099
9100		;;
9101        no|*)
9102                ;;
9103esac
9104
9105# Check whether --enable-radix-tree was given.
9106if test "${enable_radix_tree+set}" = set; then :
9107  enableval=$enable_radix_tree;
9108fi
9109
9110case "$enable_radix_tree" in
9111        no)
9112	;;
9113	yes|*)
9114
9115cat >>confdefs.h <<_ACEOF
9116#define USE_RADIX_TREE /**/
9117_ACEOF
9118
9119	;;
9120esac
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132if test $ac_cv_func_getaddrinfo = no; then
9133case " $LIBOBJS " in
9134  *" fake-rfc2553.$ac_objext "* ) ;;
9135  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
9136 ;;
9137esac
9138
9139fi
9140
9141
9142
9143
9144
9145
9146
9147# big fat warning
9148if test "$enable_checking" = "yes"; then
9149        echo "************************************************"
9150        echo "* You have activated \"--enable-checking\"       *"
9151        echo "*                                              *"
9152        echo "* This will instruct NSD to be stricter        *"
9153        echo "* when validating its input. This could lead   *"
9154        echo "* to a reduced service level.                  *"
9155        echo "*                                              *"
9156        echo "************************************************"
9157fi
9158
9159ac_config_files="$ac_config_files Makefile"
9160
9161cat >confcache <<\_ACEOF
9162# This file is a shell script that caches the results of configure
9163# tests run on this system so they can be shared between configure
9164# scripts and configure runs, see configure's option --config-cache.
9165# It is not useful on other systems.  If it contains results you don't
9166# want to keep, you may remove or edit it.
9167#
9168# config.status only pays attention to the cache file if you give it
9169# the --recheck option to rerun configure.
9170#
9171# `ac_cv_env_foo' variables (set or unset) will be overridden when
9172# loading this file, other *unset* `ac_cv_foo' will be assigned the
9173# following values.
9174
9175_ACEOF
9176
9177# The following way of writing the cache mishandles newlines in values,
9178# but we know of no workaround that is simple, portable, and efficient.
9179# So, we kill variables containing newlines.
9180# Ultrix sh set writes to stderr and can't be redirected directly,
9181# and sets the high bit in the cache file unless we assign to the vars.
9182(
9183  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9184    eval ac_val=\$$ac_var
9185    case $ac_val in #(
9186    *${as_nl}*)
9187      case $ac_var in #(
9188      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9189$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9190      esac
9191      case $ac_var in #(
9192      _ | IFS | as_nl) ;; #(
9193      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9194      *) { eval $ac_var=; unset $ac_var;} ;;
9195      esac ;;
9196    esac
9197  done
9198
9199  (set) 2>&1 |
9200    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9201    *${as_nl}ac_space=\ *)
9202      # `set' does not quote correctly, so add quotes: double-quote
9203      # substitution turns \\\\ into \\, and sed turns \\ into \.
9204      sed -n \
9205	"s/'/'\\\\''/g;
9206	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9207      ;; #(
9208    *)
9209      # `set' quotes correctly as required by POSIX, so do not add quotes.
9210      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9211      ;;
9212    esac |
9213    sort
9214) |
9215  sed '
9216     /^ac_cv_env_/b end
9217     t clear
9218     :clear
9219     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9220     t end
9221     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9222     :end' >>confcache
9223if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9224  if test -w "$cache_file"; then
9225    if test "x$cache_file" != "x/dev/null"; then
9226      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9227$as_echo "$as_me: updating cache $cache_file" >&6;}
9228      if test ! -f "$cache_file" || test -h "$cache_file"; then
9229	cat confcache >"$cache_file"
9230      else
9231        case $cache_file in #(
9232        */* | ?:*)
9233	  mv -f confcache "$cache_file"$$ &&
9234	  mv -f "$cache_file"$$ "$cache_file" ;; #(
9235        *)
9236	  mv -f confcache "$cache_file" ;;
9237	esac
9238      fi
9239    fi
9240  else
9241    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9242$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9243  fi
9244fi
9245rm -f confcache
9246
9247test "x$prefix" = xNONE && prefix=$ac_default_prefix
9248# Let make expand exec_prefix.
9249test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9250
9251DEFS=-DHAVE_CONFIG_H
9252
9253ac_libobjs=
9254ac_ltlibobjs=
9255U=
9256for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9257  # 1. Remove the extension, and $U if already installed.
9258  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9259  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9260  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9261  #    will be set to the directory where LIBOBJS objects are built.
9262  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9263  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9264done
9265LIBOBJS=$ac_libobjs
9266
9267LTLIBOBJS=$ac_ltlibobjs
9268
9269
9270
9271: "${CONFIG_STATUS=./config.status}"
9272ac_write_fail=0
9273ac_clean_files_save=$ac_clean_files
9274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9276$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9277as_write_fail=0
9278cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9279#! $SHELL
9280# Generated by $as_me.
9281# Run this file to recreate the current configuration.
9282# Compiler output produced by configure, useful for debugging
9283# configure, is in config.log if it exists.
9284
9285debug=false
9286ac_cs_recheck=false
9287ac_cs_silent=false
9288
9289SHELL=\${CONFIG_SHELL-$SHELL}
9290export SHELL
9291_ASEOF
9292cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9293## -------------------- ##
9294## M4sh Initialization. ##
9295## -------------------- ##
9296
9297# Be more Bourne compatible
9298DUALCASE=1; export DUALCASE # for MKS sh
9299if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9300  emulate sh
9301  NULLCMD=:
9302  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9303  # is contrary to our usage.  Disable this feature.
9304  alias -g '${1+"$@"}'='"$@"'
9305  setopt NO_GLOB_SUBST
9306else
9307  case `(set -o) 2>/dev/null` in #(
9308  *posix*) :
9309    set -o posix ;; #(
9310  *) :
9311     ;;
9312esac
9313fi
9314
9315
9316as_nl='
9317'
9318export as_nl
9319# Printing a long string crashes Solaris 7 /usr/bin/printf.
9320as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9321as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9322as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9323# Prefer a ksh shell builtin over an external printf program on Solaris,
9324# but without wasting forks for bash or zsh.
9325if test -z "$BASH_VERSION$ZSH_VERSION" \
9326    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9327  as_echo='print -r --'
9328  as_echo_n='print -rn --'
9329elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9330  as_echo='printf %s\n'
9331  as_echo_n='printf %s'
9332else
9333  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9334    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9335    as_echo_n='/usr/ucb/echo -n'
9336  else
9337    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9338    as_echo_n_body='eval
9339      arg=$1;
9340      case $arg in #(
9341      *"$as_nl"*)
9342	expr "X$arg" : "X\\(.*\\)$as_nl";
9343	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9344      esac;
9345      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9346    '
9347    export as_echo_n_body
9348    as_echo_n='sh -c $as_echo_n_body as_echo'
9349  fi
9350  export as_echo_body
9351  as_echo='sh -c $as_echo_body as_echo'
9352fi
9353
9354# The user is always right.
9355if test "${PATH_SEPARATOR+set}" != set; then
9356  PATH_SEPARATOR=:
9357  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9358    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9359      PATH_SEPARATOR=';'
9360  }
9361fi
9362
9363
9364# IFS
9365# We need space, tab and new line, in precisely that order.  Quoting is
9366# there to prevent editors from complaining about space-tab.
9367# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9368# splitting by setting IFS to empty value.)
9369IFS=" ""	$as_nl"
9370
9371# Find who we are.  Look in the path if we contain no directory separator.
9372as_myself=
9373case $0 in #((
9374  *[\\/]* ) as_myself=$0 ;;
9375  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376for as_dir in $PATH
9377do
9378  IFS=$as_save_IFS
9379  test -z "$as_dir" && as_dir=.
9380    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9381  done
9382IFS=$as_save_IFS
9383
9384     ;;
9385esac
9386# We did not find ourselves, most probably we were run as `sh COMMAND'
9387# in which case we are not to be found in the path.
9388if test "x$as_myself" = x; then
9389  as_myself=$0
9390fi
9391if test ! -f "$as_myself"; then
9392  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9393  exit 1
9394fi
9395
9396# Unset variables that we do not need and which cause bugs (e.g. in
9397# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9398# suppresses any "Segmentation fault" message there.  '((' could
9399# trigger a bug in pdksh 5.2.14.
9400for as_var in BASH_ENV ENV MAIL MAILPATH
9401do eval test x\${$as_var+set} = xset \
9402  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9403done
9404PS1='$ '
9405PS2='> '
9406PS4='+ '
9407
9408# NLS nuisances.
9409LC_ALL=C
9410export LC_ALL
9411LANGUAGE=C
9412export LANGUAGE
9413
9414# CDPATH.
9415(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9416
9417
9418# as_fn_error STATUS ERROR [LINENO LOG_FD]
9419# ----------------------------------------
9420# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9421# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9422# script with STATUS, using 1 if that was 0.
9423as_fn_error ()
9424{
9425  as_status=$1; test $as_status -eq 0 && as_status=1
9426  if test "$4"; then
9427    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9428    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9429  fi
9430  $as_echo "$as_me: error: $2" >&2
9431  as_fn_exit $as_status
9432} # as_fn_error
9433
9434
9435# as_fn_set_status STATUS
9436# -----------------------
9437# Set $? to STATUS, without forking.
9438as_fn_set_status ()
9439{
9440  return $1
9441} # as_fn_set_status
9442
9443# as_fn_exit STATUS
9444# -----------------
9445# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9446as_fn_exit ()
9447{
9448  set +e
9449  as_fn_set_status $1
9450  exit $1
9451} # as_fn_exit
9452
9453# as_fn_unset VAR
9454# ---------------
9455# Portably unset VAR.
9456as_fn_unset ()
9457{
9458  { eval $1=; unset $1;}
9459}
9460as_unset=as_fn_unset
9461# as_fn_append VAR VALUE
9462# ----------------------
9463# Append the text in VALUE to the end of the definition contained in VAR. Take
9464# advantage of any shell optimizations that allow amortized linear growth over
9465# repeated appends, instead of the typical quadratic growth present in naive
9466# implementations.
9467if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9468  eval 'as_fn_append ()
9469  {
9470    eval $1+=\$2
9471  }'
9472else
9473  as_fn_append ()
9474  {
9475    eval $1=\$$1\$2
9476  }
9477fi # as_fn_append
9478
9479# as_fn_arith ARG...
9480# ------------------
9481# Perform arithmetic evaluation on the ARGs, and store the result in the
9482# global $as_val. Take advantage of shells that can avoid forks. The arguments
9483# must be portable across $(()) and expr.
9484if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9485  eval 'as_fn_arith ()
9486  {
9487    as_val=$(( $* ))
9488  }'
9489else
9490  as_fn_arith ()
9491  {
9492    as_val=`expr "$@" || test $? -eq 1`
9493  }
9494fi # as_fn_arith
9495
9496
9497if expr a : '\(a\)' >/dev/null 2>&1 &&
9498   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9499  as_expr=expr
9500else
9501  as_expr=false
9502fi
9503
9504if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9505  as_basename=basename
9506else
9507  as_basename=false
9508fi
9509
9510if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9511  as_dirname=dirname
9512else
9513  as_dirname=false
9514fi
9515
9516as_me=`$as_basename -- "$0" ||
9517$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9518	 X"$0" : 'X\(//\)$' \| \
9519	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9520$as_echo X/"$0" |
9521    sed '/^.*\/\([^/][^/]*\)\/*$/{
9522	    s//\1/
9523	    q
9524	  }
9525	  /^X\/\(\/\/\)$/{
9526	    s//\1/
9527	    q
9528	  }
9529	  /^X\/\(\/\).*/{
9530	    s//\1/
9531	    q
9532	  }
9533	  s/.*/./; q'`
9534
9535# Avoid depending upon Character Ranges.
9536as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9537as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9538as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9539as_cr_digits='0123456789'
9540as_cr_alnum=$as_cr_Letters$as_cr_digits
9541
9542ECHO_C= ECHO_N= ECHO_T=
9543case `echo -n x` in #(((((
9544-n*)
9545  case `echo 'xy\c'` in
9546  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
9547  xy)  ECHO_C='\c';;
9548  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9549       ECHO_T='	';;
9550  esac;;
9551*)
9552  ECHO_N='-n';;
9553esac
9554
9555rm -f conf$$ conf$$.exe conf$$.file
9556if test -d conf$$.dir; then
9557  rm -f conf$$.dir/conf$$.file
9558else
9559  rm -f conf$$.dir
9560  mkdir conf$$.dir 2>/dev/null
9561fi
9562if (echo >conf$$.file) 2>/dev/null; then
9563  if ln -s conf$$.file conf$$ 2>/dev/null; then
9564    as_ln_s='ln -s'
9565    # ... but there are two gotchas:
9566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9568    # In both cases, we have to default to `cp -pR'.
9569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9570      as_ln_s='cp -pR'
9571  elif ln conf$$.file conf$$ 2>/dev/null; then
9572    as_ln_s=ln
9573  else
9574    as_ln_s='cp -pR'
9575  fi
9576else
9577  as_ln_s='cp -pR'
9578fi
9579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9580rmdir conf$$.dir 2>/dev/null
9581
9582
9583# as_fn_mkdir_p
9584# -------------
9585# Create "$as_dir" as a directory, including parents if necessary.
9586as_fn_mkdir_p ()
9587{
9588
9589  case $as_dir in #(
9590  -*) as_dir=./$as_dir;;
9591  esac
9592  test -d "$as_dir" || eval $as_mkdir_p || {
9593    as_dirs=
9594    while :; do
9595      case $as_dir in #(
9596      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9597      *) as_qdir=$as_dir;;
9598      esac
9599      as_dirs="'$as_qdir' $as_dirs"
9600      as_dir=`$as_dirname -- "$as_dir" ||
9601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9602	 X"$as_dir" : 'X\(//\)[^/]' \| \
9603	 X"$as_dir" : 'X\(//\)$' \| \
9604	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9605$as_echo X"$as_dir" |
9606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9607	    s//\1/
9608	    q
9609	  }
9610	  /^X\(\/\/\)[^/].*/{
9611	    s//\1/
9612	    q
9613	  }
9614	  /^X\(\/\/\)$/{
9615	    s//\1/
9616	    q
9617	  }
9618	  /^X\(\/\).*/{
9619	    s//\1/
9620	    q
9621	  }
9622	  s/.*/./; q'`
9623      test -d "$as_dir" && break
9624    done
9625    test -z "$as_dirs" || eval "mkdir $as_dirs"
9626  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9627
9628
9629} # as_fn_mkdir_p
9630if mkdir -p . 2>/dev/null; then
9631  as_mkdir_p='mkdir -p "$as_dir"'
9632else
9633  test -d ./-p && rmdir ./-p
9634  as_mkdir_p=false
9635fi
9636
9637
9638# as_fn_executable_p FILE
9639# -----------------------
9640# Test if FILE is an executable regular file.
9641as_fn_executable_p ()
9642{
9643  test -f "$1" && test -x "$1"
9644} # as_fn_executable_p
9645as_test_x='test -x'
9646as_executable_p=as_fn_executable_p
9647
9648# Sed expression to map a string onto a valid CPP name.
9649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9650
9651# Sed expression to map a string onto a valid variable name.
9652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9653
9654
9655exec 6>&1
9656## ----------------------------------- ##
9657## Main body of $CONFIG_STATUS script. ##
9658## ----------------------------------- ##
9659_ASEOF
9660test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9661
9662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9663# Save the log message, to keep $0 and so on meaningful, and to
9664# report actual input values of CONFIG_FILES etc. instead of their
9665# values after options handling.
9666ac_log="
9667This file was extended by NSD $as_me 4.1.14, which was
9668generated by GNU Autoconf 2.69.  Invocation command line was
9669
9670  CONFIG_FILES    = $CONFIG_FILES
9671  CONFIG_HEADERS  = $CONFIG_HEADERS
9672  CONFIG_LINKS    = $CONFIG_LINKS
9673  CONFIG_COMMANDS = $CONFIG_COMMANDS
9674  $ $0 $@
9675
9676on `(hostname || uname -n) 2>/dev/null | sed 1q`
9677"
9678
9679_ACEOF
9680
9681case $ac_config_files in *"
9682"*) set x $ac_config_files; shift; ac_config_files=$*;;
9683esac
9684
9685case $ac_config_headers in *"
9686"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9687esac
9688
9689
9690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9691# Files that config.status was made for.
9692config_files="$ac_config_files"
9693config_headers="$ac_config_headers"
9694
9695_ACEOF
9696
9697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9698ac_cs_usage="\
9699\`$as_me' instantiates files and other configuration actions
9700from templates according to the current configuration.  Unless the files
9701and actions are specified as TAGs, all are instantiated by default.
9702
9703Usage: $0 [OPTION]... [TAG]...
9704
9705  -h, --help       print this help, then exit
9706  -V, --version    print version number and configuration settings, then exit
9707      --config     print configuration, then exit
9708  -q, --quiet, --silent
9709                   do not print progress messages
9710  -d, --debug      don't remove temporary files
9711      --recheck    update $as_me by reconfiguring in the same conditions
9712      --file=FILE[:TEMPLATE]
9713                   instantiate the configuration file FILE
9714      --header=FILE[:TEMPLATE]
9715                   instantiate the configuration header FILE
9716
9717Configuration files:
9718$config_files
9719
9720Configuration headers:
9721$config_headers
9722
9723Report bugs to <nsd-bugs@nlnetlabs.nl>."
9724
9725_ACEOF
9726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9727ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9728ac_cs_version="\\
9729NSD config.status 4.1.14
9730configured by $0, generated by GNU Autoconf 2.69,
9731  with options \\"\$ac_cs_config\\"
9732
9733Copyright (C) 2012 Free Software Foundation, Inc.
9734This config.status script is free software; the Free Software Foundation
9735gives unlimited permission to copy, distribute and modify it."
9736
9737ac_pwd='$ac_pwd'
9738srcdir='$srcdir'
9739INSTALL='$INSTALL'
9740AWK='$AWK'
9741test -n "\$AWK" || AWK=awk
9742_ACEOF
9743
9744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9745# The default lists apply if the user does not specify any file.
9746ac_need_defaults=:
9747while test $# != 0
9748do
9749  case $1 in
9750  --*=?*)
9751    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9752    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9753    ac_shift=:
9754    ;;
9755  --*=)
9756    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9757    ac_optarg=
9758    ac_shift=:
9759    ;;
9760  *)
9761    ac_option=$1
9762    ac_optarg=$2
9763    ac_shift=shift
9764    ;;
9765  esac
9766
9767  case $ac_option in
9768  # Handling of the options.
9769  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9770    ac_cs_recheck=: ;;
9771  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9772    $as_echo "$ac_cs_version"; exit ;;
9773  --config | --confi | --conf | --con | --co | --c )
9774    $as_echo "$ac_cs_config"; exit ;;
9775  --debug | --debu | --deb | --de | --d | -d )
9776    debug=: ;;
9777  --file | --fil | --fi | --f )
9778    $ac_shift
9779    case $ac_optarg in
9780    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9781    '') as_fn_error $? "missing file argument" ;;
9782    esac
9783    as_fn_append CONFIG_FILES " '$ac_optarg'"
9784    ac_need_defaults=false;;
9785  --header | --heade | --head | --hea )
9786    $ac_shift
9787    case $ac_optarg in
9788    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9789    esac
9790    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9791    ac_need_defaults=false;;
9792  --he | --h)
9793    # Conflict between --help and --header
9794    as_fn_error $? "ambiguous option: \`$1'
9795Try \`$0 --help' for more information.";;
9796  --help | --hel | -h )
9797    $as_echo "$ac_cs_usage"; exit ;;
9798  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9799  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9800    ac_cs_silent=: ;;
9801
9802  # This is an error.
9803  -*) as_fn_error $? "unrecognized option: \`$1'
9804Try \`$0 --help' for more information." ;;
9805
9806  *) as_fn_append ac_config_targets " $1"
9807     ac_need_defaults=false ;;
9808
9809  esac
9810  shift
9811done
9812
9813ac_configure_extra_args=
9814
9815if $ac_cs_silent; then
9816  exec 6>/dev/null
9817  ac_configure_extra_args="$ac_configure_extra_args --silent"
9818fi
9819
9820_ACEOF
9821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9822if \$ac_cs_recheck; then
9823  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9824  shift
9825  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9826  CONFIG_SHELL='$SHELL'
9827  export CONFIG_SHELL
9828  exec "\$@"
9829fi
9830
9831_ACEOF
9832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9833exec 5>>config.log
9834{
9835  echo
9836  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9837## Running $as_me. ##
9838_ASBOX
9839  $as_echo "$ac_log"
9840} >&5
9841
9842_ACEOF
9843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9844_ACEOF
9845
9846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9847
9848# Handling of arguments.
9849for ac_config_target in $ac_config_targets
9850do
9851  case $ac_config_target in
9852    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9853    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9854
9855  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9856  esac
9857done
9858
9859
9860# If the user did not use the arguments to specify the items to instantiate,
9861# then the envvar interface is used.  Set only those that are not.
9862# We use the long form for the default assignment because of an extremely
9863# bizarre bug on SunOS 4.1.3.
9864if $ac_need_defaults; then
9865  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9866  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9867fi
9868
9869# Have a temporary directory for convenience.  Make it in the build tree
9870# simply because there is no reason against having it here, and in addition,
9871# creating and moving files from /tmp can sometimes cause problems.
9872# Hook for its removal unless debugging.
9873# Note that there is a small window in which the directory will not be cleaned:
9874# after its creation but before its name has been assigned to `$tmp'.
9875$debug ||
9876{
9877  tmp= ac_tmp=
9878  trap 'exit_status=$?
9879  : "${ac_tmp:=$tmp}"
9880  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9881' 0
9882  trap 'as_fn_exit 1' 1 2 13 15
9883}
9884# Create a (secure) tmp directory for tmp files.
9885
9886{
9887  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9888  test -d "$tmp"
9889}  ||
9890{
9891  tmp=./conf$$-$RANDOM
9892  (umask 077 && mkdir "$tmp")
9893} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9894ac_tmp=$tmp
9895
9896# Set up the scripts for CONFIG_FILES section.
9897# No need to generate them if there are no CONFIG_FILES.
9898# This happens for instance with `./config.status config.h'.
9899if test -n "$CONFIG_FILES"; then
9900
9901
9902ac_cr=`echo X | tr X '\015'`
9903# On cygwin, bash can eat \r inside `` if the user requested igncr.
9904# But we know of no other shell where ac_cr would be empty at this
9905# point, so we can use a bashism as a fallback.
9906if test "x$ac_cr" = x; then
9907  eval ac_cr=\$\'\\r\'
9908fi
9909ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9910if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9911  ac_cs_awk_cr='\\r'
9912else
9913  ac_cs_awk_cr=$ac_cr
9914fi
9915
9916echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9917_ACEOF
9918
9919
9920{
9921  echo "cat >conf$$subs.awk <<_ACEOF" &&
9922  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9923  echo "_ACEOF"
9924} >conf$$subs.sh ||
9925  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9926ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9927ac_delim='%!_!# '
9928for ac_last_try in false false false false false :; do
9929  . ./conf$$subs.sh ||
9930    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9931
9932  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9933  if test $ac_delim_n = $ac_delim_num; then
9934    break
9935  elif $ac_last_try; then
9936    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9937  else
9938    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9939  fi
9940done
9941rm -f conf$$subs.sh
9942
9943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9944cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9945_ACEOF
9946sed -n '
9947h
9948s/^/S["/; s/!.*/"]=/
9949p
9950g
9951s/^[^!]*!//
9952:repl
9953t repl
9954s/'"$ac_delim"'$//
9955t delim
9956:nl
9957h
9958s/\(.\{148\}\)..*/\1/
9959t more1
9960s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9961p
9962n
9963b repl
9964:more1
9965s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9966p
9967g
9968s/.\{148\}//
9969t nl
9970:delim
9971h
9972s/\(.\{148\}\)..*/\1/
9973t more2
9974s/["\\]/\\&/g; s/^/"/; s/$/"/
9975p
9976b
9977:more2
9978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9979p
9980g
9981s/.\{148\}//
9982t delim
9983' <conf$$subs.awk | sed '
9984/^[^""]/{
9985  N
9986  s/\n//
9987}
9988' >>$CONFIG_STATUS || ac_write_fail=1
9989rm -f conf$$subs.awk
9990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9991_ACAWK
9992cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9993  for (key in S) S_is_set[key] = 1
9994  FS = ""
9995
9996}
9997{
9998  line = $ 0
9999  nfields = split(line, field, "@")
10000  substed = 0
10001  len = length(field[1])
10002  for (i = 2; i < nfields; i++) {
10003    key = field[i]
10004    keylen = length(key)
10005    if (S_is_set[key]) {
10006      value = S[key]
10007      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10008      len += length(value) + length(field[++i])
10009      substed = 1
10010    } else
10011      len += 1 + keylen
10012  }
10013
10014  print line
10015}
10016
10017_ACAWK
10018_ACEOF
10019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10020if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10021  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10022else
10023  cat
10024fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10025  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10026_ACEOF
10027
10028# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10029# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10030# trailing colons and then remove the whole line if VPATH becomes empty
10031# (actually we leave an empty line to preserve line numbers).
10032if test "x$srcdir" = x.; then
10033  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
10034h
10035s///
10036s/^/:/
10037s/[	 ]*$/:/
10038s/:\$(srcdir):/:/g
10039s/:\${srcdir}:/:/g
10040s/:@srcdir@:/:/g
10041s/^:*//
10042s/:*$//
10043x
10044s/\(=[	 ]*\).*/\1/
10045G
10046s/\n//
10047s/^[^=]*=[	 ]*$//
10048}'
10049fi
10050
10051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10052fi # test -n "$CONFIG_FILES"
10053
10054# Set up the scripts for CONFIG_HEADERS section.
10055# No need to generate them if there are no CONFIG_HEADERS.
10056# This happens for instance with `./config.status Makefile'.
10057if test -n "$CONFIG_HEADERS"; then
10058cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10059BEGIN {
10060_ACEOF
10061
10062# Transform confdefs.h into an awk script `defines.awk', embedded as
10063# here-document in config.status, that substitutes the proper values into
10064# config.h.in to produce config.h.
10065
10066# Create a delimiter string that does not exist in confdefs.h, to ease
10067# handling of long lines.
10068ac_delim='%!_!# '
10069for ac_last_try in false false :; do
10070  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10071  if test -z "$ac_tt"; then
10072    break
10073  elif $ac_last_try; then
10074    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10075  else
10076    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10077  fi
10078done
10079
10080# For the awk script, D is an array of macro values keyed by name,
10081# likewise P contains macro parameters if any.  Preserve backslash
10082# newline sequences.
10083
10084ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10085sed -n '
10086s/.\{148\}/&'"$ac_delim"'/g
10087t rset
10088:rset
10089s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
10090t def
10091d
10092:def
10093s/\\$//
10094t bsnl
10095s/["\\]/\\&/g
10096s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10097D["\1"]=" \3"/p
10098s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
10099d
10100:bsnl
10101s/["\\]/\\&/g
10102s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
10103D["\1"]=" \3\\\\\\n"\\/p
10104t cont
10105s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10106t cont
10107d
10108:cont
10109n
10110s/.\{148\}/&'"$ac_delim"'/g
10111t clear
10112:clear
10113s/\\$//
10114t bsnlc
10115s/["\\]/\\&/g; s/^/"/; s/$/"/p
10116d
10117:bsnlc
10118s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10119b cont
10120' <confdefs.h | sed '
10121s/'"$ac_delim"'/"\\\
10122"/g' >>$CONFIG_STATUS || ac_write_fail=1
10123
10124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10125  for (key in D) D_is_set[key] = 1
10126  FS = ""
10127}
10128/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10129  line = \$ 0
10130  split(line, arg, " ")
10131  if (arg[1] == "#") {
10132    defundef = arg[2]
10133    mac1 = arg[3]
10134  } else {
10135    defundef = substr(arg[1], 2)
10136    mac1 = arg[2]
10137  }
10138  split(mac1, mac2, "(") #)
10139  macro = mac2[1]
10140  prefix = substr(line, 1, index(line, defundef) - 1)
10141  if (D_is_set[macro]) {
10142    # Preserve the white space surrounding the "#".
10143    print prefix "define", macro P[macro] D[macro]
10144    next
10145  } else {
10146    # Replace #undef with comments.  This is necessary, for example,
10147    # in the case of _POSIX_SOURCE, which is predefined and required
10148    # on some systems where configure will not decide to define it.
10149    if (defundef == "undef") {
10150      print "/*", prefix defundef, macro, "*/"
10151      next
10152    }
10153  }
10154}
10155{ print }
10156_ACAWK
10157_ACEOF
10158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10159  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10160fi # test -n "$CONFIG_HEADERS"
10161
10162
10163eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
10164shift
10165for ac_tag
10166do
10167  case $ac_tag in
10168  :[FHLC]) ac_mode=$ac_tag; continue;;
10169  esac
10170  case $ac_mode$ac_tag in
10171  :[FHL]*:*);;
10172  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10173  :[FH]-) ac_tag=-:-;;
10174  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10175  esac
10176  ac_save_IFS=$IFS
10177  IFS=:
10178  set x $ac_tag
10179  IFS=$ac_save_IFS
10180  shift
10181  ac_file=$1
10182  shift
10183
10184  case $ac_mode in
10185  :L) ac_source=$1;;
10186  :[FH])
10187    ac_file_inputs=
10188    for ac_f
10189    do
10190      case $ac_f in
10191      -) ac_f="$ac_tmp/stdin";;
10192      *) # Look for the file first in the build tree, then in the source tree
10193	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
10194	 # because $ac_f cannot contain `:'.
10195	 test -f "$ac_f" ||
10196	   case $ac_f in
10197	   [\\/$]*) false;;
10198	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10199	   esac ||
10200	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10201      esac
10202      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10203      as_fn_append ac_file_inputs " '$ac_f'"
10204    done
10205
10206    # Let's still pretend it is `configure' which instantiates (i.e., don't
10207    # use $as_me), people would be surprised to read:
10208    #    /* config.h.  Generated by config.status.  */
10209    configure_input='Generated from '`
10210	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10211	`' by configure.'
10212    if test x"$ac_file" != x-; then
10213      configure_input="$ac_file.  $configure_input"
10214      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10215$as_echo "$as_me: creating $ac_file" >&6;}
10216    fi
10217    # Neutralize special characters interpreted by sed in replacement strings.
10218    case $configure_input in #(
10219    *\&* | *\|* | *\\* )
10220       ac_sed_conf_input=`$as_echo "$configure_input" |
10221       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10222    *) ac_sed_conf_input=$configure_input;;
10223    esac
10224
10225    case $ac_tag in
10226    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10227      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10228    esac
10229    ;;
10230  esac
10231
10232  ac_dir=`$as_dirname -- "$ac_file" ||
10233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10234	 X"$ac_file" : 'X\(//\)[^/]' \| \
10235	 X"$ac_file" : 'X\(//\)$' \| \
10236	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10237$as_echo X"$ac_file" |
10238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10239	    s//\1/
10240	    q
10241	  }
10242	  /^X\(\/\/\)[^/].*/{
10243	    s//\1/
10244	    q
10245	  }
10246	  /^X\(\/\/\)$/{
10247	    s//\1/
10248	    q
10249	  }
10250	  /^X\(\/\).*/{
10251	    s//\1/
10252	    q
10253	  }
10254	  s/.*/./; q'`
10255  as_dir="$ac_dir"; as_fn_mkdir_p
10256  ac_builddir=.
10257
10258case "$ac_dir" in
10259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10260*)
10261  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10262  # A ".." for each directory in $ac_dir_suffix.
10263  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10264  case $ac_top_builddir_sub in
10265  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10266  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10267  esac ;;
10268esac
10269ac_abs_top_builddir=$ac_pwd
10270ac_abs_builddir=$ac_pwd$ac_dir_suffix
10271# for backward compatibility:
10272ac_top_builddir=$ac_top_build_prefix
10273
10274case $srcdir in
10275  .)  # We are building in place.
10276    ac_srcdir=.
10277    ac_top_srcdir=$ac_top_builddir_sub
10278    ac_abs_top_srcdir=$ac_pwd ;;
10279  [\\/]* | ?:[\\/]* )  # Absolute name.
10280    ac_srcdir=$srcdir$ac_dir_suffix;
10281    ac_top_srcdir=$srcdir
10282    ac_abs_top_srcdir=$srcdir ;;
10283  *) # Relative name.
10284    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10285    ac_top_srcdir=$ac_top_build_prefix$srcdir
10286    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10287esac
10288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10289
10290
10291  case $ac_mode in
10292  :F)
10293  #
10294  # CONFIG_FILE
10295  #
10296
10297  case $INSTALL in
10298  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10299  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10300  esac
10301_ACEOF
10302
10303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10304# If the template does not know about datarootdir, expand it.
10305# FIXME: This hack should be removed a few years after 2.60.
10306ac_datarootdir_hack=; ac_datarootdir_seen=
10307ac_sed_dataroot='
10308/datarootdir/ {
10309  p
10310  q
10311}
10312/@datadir@/p
10313/@docdir@/p
10314/@infodir@/p
10315/@localedir@/p
10316/@mandir@/p'
10317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10318*datarootdir*) ac_datarootdir_seen=yes;;
10319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10320  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10322_ACEOF
10323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10324  ac_datarootdir_hack='
10325  s&@datadir@&$datadir&g
10326  s&@docdir@&$docdir&g
10327  s&@infodir@&$infodir&g
10328  s&@localedir@&$localedir&g
10329  s&@mandir@&$mandir&g
10330  s&\\\${datarootdir}&$datarootdir&g' ;;
10331esac
10332_ACEOF
10333
10334# Neutralize VPATH when `$srcdir' = `.'.
10335# Shell code in configure.ac might set extrasub.
10336# FIXME: do we really want to maintain this feature?
10337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10338ac_sed_extra="$ac_vpsub
10339$extrasub
10340_ACEOF
10341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10342:t
10343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10344s|@configure_input@|$ac_sed_conf_input|;t t
10345s&@top_builddir@&$ac_top_builddir_sub&;t t
10346s&@top_build_prefix@&$ac_top_build_prefix&;t t
10347s&@srcdir@&$ac_srcdir&;t t
10348s&@abs_srcdir@&$ac_abs_srcdir&;t t
10349s&@top_srcdir@&$ac_top_srcdir&;t t
10350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10351s&@builddir@&$ac_builddir&;t t
10352s&@abs_builddir@&$ac_abs_builddir&;t t
10353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10354s&@INSTALL@&$ac_INSTALL&;t t
10355$ac_datarootdir_hack
10356"
10357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10358  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10359
10360test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10361  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10362  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
10363      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10364  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10365which seems to be undefined.  Please make sure it is defined" >&5
10366$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10367which seems to be undefined.  Please make sure it is defined" >&2;}
10368
10369  rm -f "$ac_tmp/stdin"
10370  case $ac_file in
10371  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10372  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10373  esac \
10374  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10375 ;;
10376  :H)
10377  #
10378  # CONFIG_HEADER
10379  #
10380  if test x"$ac_file" != x-; then
10381    {
10382      $as_echo "/* $configure_input  */" \
10383      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10384    } >"$ac_tmp/config.h" \
10385      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10386    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10387      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10388$as_echo "$as_me: $ac_file is unchanged" >&6;}
10389    else
10390      rm -f "$ac_file"
10391      mv "$ac_tmp/config.h" "$ac_file" \
10392	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
10393    fi
10394  else
10395    $as_echo "/* $configure_input  */" \
10396      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10397      || as_fn_error $? "could not create -" "$LINENO" 5
10398  fi
10399 ;;
10400
10401
10402  esac
10403
10404done # for ac_tag
10405
10406
10407as_fn_exit 0
10408_ACEOF
10409ac_clean_files=$ac_clean_files_save
10410
10411test $ac_write_fail = 0 ||
10412  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10413
10414
10415# configure is writing to config.log, and then calls config.status.
10416# config.status does its own redirection, appending to config.log.
10417# Unfortunately, on DOS this fails, as config.log is still kept open
10418# by configure, so config.status won't be able to write to it; its
10419# output is simply discarded.  So we exec the FD to /dev/null,
10420# effectively closing config.log, so it can be properly (re)opened and
10421# appended to by config.status.  When coming back to configure, we
10422# need to make the FD available again.
10423if test "$no_create" != yes; then
10424  ac_cs_success=:
10425  ac_config_status_args=
10426  test "$silent" = yes &&
10427    ac_config_status_args="$ac_config_status_args --quiet"
10428  exec 5>/dev/null
10429  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10430  exec 5>>config.log
10431  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10432  # would make configure fail if this is the last instruction.
10433  $ac_cs_success || as_fn_exit 1
10434fi
10435if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10437$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10438fi
10439
10440