configure revision 269257
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for ldns 1.6.17.
4#
5# Report bugs to <libdns@nlnetlabs.nl>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: libdns@nlnetlabs.nl about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='ldns'
562PACKAGE_TARNAME='libdns'
563PACKAGE_VERSION='1.6.17'
564PACKAGE_STRING='ldns 1.6.17'
565PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
566PACKAGE_URL=''
567
568ac_unique_file="drill.c"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607LDNS_TRUST_ANCHOR_FILE
608LDNSDIR
609LIBS_STC
610RUNTIME_PATH
611HAVE_SSL
612libtool
613SET_MAKE
614EGREP
615GREP
616CPP
617OBJEXT
618EXEEXT
619ac_ct_CC
620CPPFLAGS
621LDFLAGS
622CFLAGS
623CC
624target_alias
625host_alias
626build_alias
627LIBS
628ECHO_T
629ECHO_N
630ECHO_C
631DEFS
632mandir
633localedir
634libdir
635psdir
636pdfdir
637dvidir
638htmldir
639infodir
640docdir
641oldincludedir
642includedir
643localstatedir
644sharedstatedir
645sysconfdir
646datadir
647datarootdir
648libexecdir
649sbindir
650bindir
651program_transform_name
652prefix
653exec_prefix
654PACKAGE_URL
655PACKAGE_BUGREPORT
656PACKAGE_STRING
657PACKAGE_VERSION
658PACKAGE_TARNAME
659PACKAGE_NAME
660PATH_SEPARATOR
661SHELL'
662ac_subst_files=''
663ac_user_opts='
664enable_option_checking
665enable_rpath
666with_ssl
667with_ldns
668with_trust_anchor
669'
670      ac_precious_vars='build_alias
671host_alias
672target_alias
673CC
674CFLAGS
675LDFLAGS
676LIBS
677CPPFLAGS
678CPP'
679
680
681# Initialize some variables set by options.
682ac_init_help=
683ac_init_version=false
684ac_unrecognized_opts=
685ac_unrecognized_sep=
686# The variables have the same names as the options, with
687# dashes changed to underlines.
688cache_file=/dev/null
689exec_prefix=NONE
690no_create=
691no_recursion=
692prefix=NONE
693program_prefix=NONE
694program_suffix=NONE
695program_transform_name=s,x,x,
696silent=
697site=
698srcdir=
699verbose=
700x_includes=NONE
701x_libraries=NONE
702
703# Installation directory options.
704# These are left unexpanded so users can "make install exec_prefix=/foo"
705# and all the variables that are supposed to be based on exec_prefix
706# by default will actually change.
707# Use braces instead of parens because sh, perl, etc. also accept them.
708# (The list follows the same order as the GNU Coding Standards.)
709bindir='${exec_prefix}/bin'
710sbindir='${exec_prefix}/sbin'
711libexecdir='${exec_prefix}/libexec'
712datarootdir='${prefix}/share'
713datadir='${datarootdir}'
714sysconfdir='${prefix}/etc'
715sharedstatedir='${prefix}/com'
716localstatedir='${prefix}/var'
717includedir='${prefix}/include'
718oldincludedir='/usr/include'
719docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
720infodir='${datarootdir}/info'
721htmldir='${docdir}'
722dvidir='${docdir}'
723pdfdir='${docdir}'
724psdir='${docdir}'
725libdir='${exec_prefix}/lib'
726localedir='${datarootdir}/locale'
727mandir='${datarootdir}/man'
728
729ac_prev=
730ac_dashdash=
731for ac_option
732do
733  # If the previous option needs an argument, assign it.
734  if test -n "$ac_prev"; then
735    eval $ac_prev=\$ac_option
736    ac_prev=
737    continue
738  fi
739
740  case $ac_option in
741  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
742  *=)   ac_optarg= ;;
743  *)    ac_optarg=yes ;;
744  esac
745
746  # Accept the important Cygnus configure options, so we can diagnose typos.
747
748  case $ac_dashdash$ac_option in
749  --)
750    ac_dashdash=yes ;;
751
752  -bindir | --bindir | --bindi | --bind | --bin | --bi)
753    ac_prev=bindir ;;
754  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
755    bindir=$ac_optarg ;;
756
757  -build | --build | --buil | --bui | --bu)
758    ac_prev=build_alias ;;
759  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
760    build_alias=$ac_optarg ;;
761
762  -cache-file | --cache-file | --cache-fil | --cache-fi \
763  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
764    ac_prev=cache_file ;;
765  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
766  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
767    cache_file=$ac_optarg ;;
768
769  --config-cache | -C)
770    cache_file=config.cache ;;
771
772  -datadir | --datadir | --datadi | --datad)
773    ac_prev=datadir ;;
774  -datadir=* | --datadir=* | --datadi=* | --datad=*)
775    datadir=$ac_optarg ;;
776
777  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
778  | --dataroo | --dataro | --datar)
779    ac_prev=datarootdir ;;
780  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
781  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
782    datarootdir=$ac_optarg ;;
783
784  -disable-* | --disable-*)
785    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
786    # Reject names that are not valid shell variable names.
787    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
788      as_fn_error $? "invalid feature name: $ac_useropt"
789    ac_useropt_orig=$ac_useropt
790    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
791    case $ac_user_opts in
792      *"
793"enable_$ac_useropt"
794"*) ;;
795      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
796	 ac_unrecognized_sep=', ';;
797    esac
798    eval enable_$ac_useropt=no ;;
799
800  -docdir | --docdir | --docdi | --doc | --do)
801    ac_prev=docdir ;;
802  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
803    docdir=$ac_optarg ;;
804
805  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
806    ac_prev=dvidir ;;
807  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
808    dvidir=$ac_optarg ;;
809
810  -enable-* | --enable-*)
811    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812    # Reject names that are not valid shell variable names.
813    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814      as_fn_error $? "invalid feature name: $ac_useropt"
815    ac_useropt_orig=$ac_useropt
816    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817    case $ac_user_opts in
818      *"
819"enable_$ac_useropt"
820"*) ;;
821      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
822	 ac_unrecognized_sep=', ';;
823    esac
824    eval enable_$ac_useropt=\$ac_optarg ;;
825
826  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
827  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
828  | --exec | --exe | --ex)
829    ac_prev=exec_prefix ;;
830  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
831  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
832  | --exec=* | --exe=* | --ex=*)
833    exec_prefix=$ac_optarg ;;
834
835  -gas | --gas | --ga | --g)
836    # Obsolete; use --with-gas.
837    with_gas=yes ;;
838
839  -help | --help | --hel | --he | -h)
840    ac_init_help=long ;;
841  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
842    ac_init_help=recursive ;;
843  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
844    ac_init_help=short ;;
845
846  -host | --host | --hos | --ho)
847    ac_prev=host_alias ;;
848  -host=* | --host=* | --hos=* | --ho=*)
849    host_alias=$ac_optarg ;;
850
851  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
852    ac_prev=htmldir ;;
853  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
854  | --ht=*)
855    htmldir=$ac_optarg ;;
856
857  -includedir | --includedir | --includedi | --included | --include \
858  | --includ | --inclu | --incl | --inc)
859    ac_prev=includedir ;;
860  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
861  | --includ=* | --inclu=* | --incl=* | --inc=*)
862    includedir=$ac_optarg ;;
863
864  -infodir | --infodir | --infodi | --infod | --info | --inf)
865    ac_prev=infodir ;;
866  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
867    infodir=$ac_optarg ;;
868
869  -libdir | --libdir | --libdi | --libd)
870    ac_prev=libdir ;;
871  -libdir=* | --libdir=* | --libdi=* | --libd=*)
872    libdir=$ac_optarg ;;
873
874  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
875  | --libexe | --libex | --libe)
876    ac_prev=libexecdir ;;
877  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
878  | --libexe=* | --libex=* | --libe=*)
879    libexecdir=$ac_optarg ;;
880
881  -localedir | --localedir | --localedi | --localed | --locale)
882    ac_prev=localedir ;;
883  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
884    localedir=$ac_optarg ;;
885
886  -localstatedir | --localstatedir | --localstatedi | --localstated \
887  | --localstate | --localstat | --localsta | --localst | --locals)
888    ac_prev=localstatedir ;;
889  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
890  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
891    localstatedir=$ac_optarg ;;
892
893  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
894    ac_prev=mandir ;;
895  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
896    mandir=$ac_optarg ;;
897
898  -nfp | --nfp | --nf)
899    # Obsolete; use --without-fp.
900    with_fp=no ;;
901
902  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
903  | --no-cr | --no-c | -n)
904    no_create=yes ;;
905
906  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
907  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908    no_recursion=yes ;;
909
910  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
911  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
912  | --oldin | --oldi | --old | --ol | --o)
913    ac_prev=oldincludedir ;;
914  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
915  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
916  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
917    oldincludedir=$ac_optarg ;;
918
919  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
920    ac_prev=prefix ;;
921  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922    prefix=$ac_optarg ;;
923
924  -program-prefix | --program-prefix | --program-prefi | --program-pref \
925  | --program-pre | --program-pr | --program-p)
926    ac_prev=program_prefix ;;
927  -program-prefix=* | --program-prefix=* | --program-prefi=* \
928  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
929    program_prefix=$ac_optarg ;;
930
931  -program-suffix | --program-suffix | --program-suffi | --program-suff \
932  | --program-suf | --program-su | --program-s)
933    ac_prev=program_suffix ;;
934  -program-suffix=* | --program-suffix=* | --program-suffi=* \
935  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
936    program_suffix=$ac_optarg ;;
937
938  -program-transform-name | --program-transform-name \
939  | --program-transform-nam | --program-transform-na \
940  | --program-transform-n | --program-transform- \
941  | --program-transform | --program-transfor \
942  | --program-transfo | --program-transf \
943  | --program-trans | --program-tran \
944  | --progr-tra | --program-tr | --program-t)
945    ac_prev=program_transform_name ;;
946  -program-transform-name=* | --program-transform-name=* \
947  | --program-transform-nam=* | --program-transform-na=* \
948  | --program-transform-n=* | --program-transform-=* \
949  | --program-transform=* | --program-transfor=* \
950  | --program-transfo=* | --program-transf=* \
951  | --program-trans=* | --program-tran=* \
952  | --progr-tra=* | --program-tr=* | --program-t=*)
953    program_transform_name=$ac_optarg ;;
954
955  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
956    ac_prev=pdfdir ;;
957  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958    pdfdir=$ac_optarg ;;
959
960  -psdir | --psdir | --psdi | --psd | --ps)
961    ac_prev=psdir ;;
962  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963    psdir=$ac_optarg ;;
964
965  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966  | -silent | --silent | --silen | --sile | --sil)
967    silent=yes ;;
968
969  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
970    ac_prev=sbindir ;;
971  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
972  | --sbi=* | --sb=*)
973    sbindir=$ac_optarg ;;
974
975  -sharedstatedir | --sharedstatedir | --sharedstatedi \
976  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
977  | --sharedst | --shareds | --shared | --share | --shar \
978  | --sha | --sh)
979    ac_prev=sharedstatedir ;;
980  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
981  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
982  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
983  | --sha=* | --sh=*)
984    sharedstatedir=$ac_optarg ;;
985
986  -site | --site | --sit)
987    ac_prev=site ;;
988  -site=* | --site=* | --sit=*)
989    site=$ac_optarg ;;
990
991  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
992    ac_prev=srcdir ;;
993  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994    srcdir=$ac_optarg ;;
995
996  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
997  | --syscon | --sysco | --sysc | --sys | --sy)
998    ac_prev=sysconfdir ;;
999  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1000  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1001    sysconfdir=$ac_optarg ;;
1002
1003  -target | --target | --targe | --targ | --tar | --ta | --t)
1004    ac_prev=target_alias ;;
1005  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1006    target_alias=$ac_optarg ;;
1007
1008  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009    verbose=yes ;;
1010
1011  -version | --version | --versio | --versi | --vers | -V)
1012    ac_init_version=: ;;
1013
1014  -with-* | --with-*)
1015    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018      as_fn_error $? "invalid package name: $ac_useropt"
1019    ac_useropt_orig=$ac_useropt
1020    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021    case $ac_user_opts in
1022      *"
1023"with_$ac_useropt"
1024"*) ;;
1025      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1026	 ac_unrecognized_sep=', ';;
1027    esac
1028    eval with_$ac_useropt=\$ac_optarg ;;
1029
1030  -without-* | --without-*)
1031    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034      as_fn_error $? "invalid package name: $ac_useropt"
1035    ac_useropt_orig=$ac_useropt
1036    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037    case $ac_user_opts in
1038      *"
1039"with_$ac_useropt"
1040"*) ;;
1041      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1042	 ac_unrecognized_sep=', ';;
1043    esac
1044    eval with_$ac_useropt=no ;;
1045
1046  --x)
1047    # Obsolete; use --with-x.
1048    with_x=yes ;;
1049
1050  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051  | --x-incl | --x-inc | --x-in | --x-i)
1052    ac_prev=x_includes ;;
1053  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055    x_includes=$ac_optarg ;;
1056
1057  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059    ac_prev=x_libraries ;;
1060  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062    x_libraries=$ac_optarg ;;
1063
1064  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1065Try \`$0 --help' for more information"
1066    ;;
1067
1068  *=*)
1069    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070    # Reject names that are not valid shell variable names.
1071    case $ac_envvar in #(
1072      '' | [0-9]* | *[!_$as_cr_alnum]* )
1073      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1074    esac
1075    eval $ac_envvar=\$ac_optarg
1076    export $ac_envvar ;;
1077
1078  *)
1079    # FIXME: should be removed in autoconf 3.0.
1080    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1084    ;;
1085
1086  esac
1087done
1088
1089if test -n "$ac_prev"; then
1090  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091  as_fn_error $? "missing argument to $ac_option"
1092fi
1093
1094if test -n "$ac_unrecognized_opts"; then
1095  case $enable_option_checking in
1096    no) ;;
1097    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1098    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1099  esac
1100fi
1101
1102# Check all directory arguments for consistency.
1103for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104		datadir sysconfdir sharedstatedir localstatedir includedir \
1105		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106		libdir localedir mandir
1107do
1108  eval ac_val=\$$ac_var
1109  # Remove trailing slashes.
1110  case $ac_val in
1111    */ )
1112      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1113      eval $ac_var=\$ac_val;;
1114  esac
1115  # Be sure to have absolute directory names.
1116  case $ac_val in
1117    [\\/$]* | ?:[\\/]* )  continue;;
1118    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119  esac
1120  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1121done
1122
1123# There might be people who depend on the old broken behavior: `$host'
1124# used to hold the argument of --host etc.
1125# FIXME: To remove some day.
1126build=$build_alias
1127host=$host_alias
1128target=$target_alias
1129
1130# FIXME: To remove some day.
1131if test "x$host_alias" != x; then
1132  if test "x$build_alias" = x; then
1133    cross_compiling=maybe
1134    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1135    If a cross compiler is detected then cross compile mode will be used" >&2
1136  elif test "x$build_alias" != "x$host_alias"; then
1137    cross_compiling=yes
1138  fi
1139fi
1140
1141ac_tool_prefix=
1142test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144test "$silent" = yes && exec 6>/dev/null
1145
1146
1147ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148ac_ls_di=`ls -di .` &&
1149ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150  as_fn_error $? "working directory cannot be determined"
1151test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152  as_fn_error $? "pwd does not report name of working directory"
1153
1154
1155# Find the source files, if location was not specified.
1156if test -z "$srcdir"; then
1157  ac_srcdir_defaulted=yes
1158  # Try the directory containing this script, then the parent directory.
1159  ac_confdir=`$as_dirname -- "$as_myself" ||
1160$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1161	 X"$as_myself" : 'X\(//\)[^/]' \| \
1162	 X"$as_myself" : 'X\(//\)$' \| \
1163	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1164$as_echo X"$as_myself" |
1165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1166	    s//\1/
1167	    q
1168	  }
1169	  /^X\(\/\/\)[^/].*/{
1170	    s//\1/
1171	    q
1172	  }
1173	  /^X\(\/\/\)$/{
1174	    s//\1/
1175	    q
1176	  }
1177	  /^X\(\/\).*/{
1178	    s//\1/
1179	    q
1180	  }
1181	  s/.*/./; q'`
1182  srcdir=$ac_confdir
1183  if test ! -r "$srcdir/$ac_unique_file"; then
1184    srcdir=..
1185  fi
1186else
1187  ac_srcdir_defaulted=no
1188fi
1189if test ! -r "$srcdir/$ac_unique_file"; then
1190  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1191  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1192fi
1193ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194ac_abs_confdir=`(
1195	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1196	pwd)`
1197# When building in place, set srcdir=.
1198if test "$ac_abs_confdir" = "$ac_pwd"; then
1199  srcdir=.
1200fi
1201# Remove unnecessary trailing slashes from srcdir.
1202# Double slashes in file names in object file debugging info
1203# mess up M-x gdb in Emacs.
1204case $srcdir in
1205*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206esac
1207for ac_var in $ac_precious_vars; do
1208  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209  eval ac_env_${ac_var}_value=\$${ac_var}
1210  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1212done
1213
1214#
1215# Report the --help message.
1216#
1217if test "$ac_init_help" = "long"; then
1218  # Omit some internal or obsolete options to make the list less imposing.
1219  # This message is too long to be a string in the A/UX 3.1 sh.
1220  cat <<_ACEOF
1221\`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1222
1223Usage: $0 [OPTION]... [VAR=VALUE]...
1224
1225To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226VAR=VALUE.  See below for descriptions of some of the useful variables.
1227
1228Defaults for the options are specified in brackets.
1229
1230Configuration:
1231  -h, --help              display this help and exit
1232      --help=short        display options specific to this package
1233      --help=recursive    display the short help of all the included packages
1234  -V, --version           display version information and exit
1235  -q, --quiet, --silent   do not print \`checking ...' messages
1236      --cache-file=FILE   cache test results in FILE [disabled]
1237  -C, --config-cache      alias for \`--cache-file=config.cache'
1238  -n, --no-create         do not create output files
1239      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1240
1241Installation directories:
1242  --prefix=PREFIX         install architecture-independent files in PREFIX
1243                          [$ac_default_prefix]
1244  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1245                          [PREFIX]
1246
1247By default, \`make install' will install all the files in
1248\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1249an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250for instance \`--prefix=\$HOME'.
1251
1252For better control, use the options below.
1253
1254Fine tuning of the installation directories:
1255  --bindir=DIR            user executables [EPREFIX/bin]
1256  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1257  --libexecdir=DIR        program executables [EPREFIX/libexec]
1258  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1259  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1260  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1261  --libdir=DIR            object code libraries [EPREFIX/lib]
1262  --includedir=DIR        C header files [PREFIX/include]
1263  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1264  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1265  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1266  --infodir=DIR           info documentation [DATAROOTDIR/info]
1267  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1268  --mandir=DIR            man documentation [DATAROOTDIR/man]
1269  --docdir=DIR            documentation root [DATAROOTDIR/doc/libdns]
1270  --htmldir=DIR           html documentation [DOCDIR]
1271  --dvidir=DIR            dvi documentation [DOCDIR]
1272  --pdfdir=DIR            pdf documentation [DOCDIR]
1273  --psdir=DIR             ps documentation [DOCDIR]
1274_ACEOF
1275
1276  cat <<\_ACEOF
1277_ACEOF
1278fi
1279
1280if test -n "$ac_init_help"; then
1281  case $ac_init_help in
1282     short | recursive ) echo "Configuration of ldns 1.6.17:";;
1283   esac
1284  cat <<\_ACEOF
1285
1286Optional Features:
1287  --disable-option-checking  ignore unrecognized --enable/--with options
1288  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1289  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1290  --disable-rpath                disable hardcoded rpath (default=enabled)
1291
1292Optional Packages:
1293  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1294  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1295  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1296                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1297                          /usr)
1298  --with-ldns=PATH        specify prefix of path of ldns library to use
1299
1300
1301  --with-trust-anchor=KEYFILE
1302                          Default location of the trust anchor file.
1303                          [default=SYSCONFDIR/unbound/root.key]
1304
1305Some influential environment variables:
1306  CC          C compiler command
1307  CFLAGS      C compiler flags
1308  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1309              nonstandard directory <lib dir>
1310  LIBS        libraries to pass to the linker, e.g. -l<library>
1311  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1312              you have headers in a nonstandard directory <include dir>
1313  CPP         C preprocessor
1314
1315Use these variables to override the choices made by `configure' or to help
1316it to find libraries and programs with nonstandard names/locations.
1317
1318Report bugs to <libdns@nlnetlabs.nl>.
1319_ACEOF
1320ac_status=$?
1321fi
1322
1323if test "$ac_init_help" = "recursive"; then
1324  # If there are subdirs, report their specific --help.
1325  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326    test -d "$ac_dir" ||
1327      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1328      continue
1329    ac_builddir=.
1330
1331case "$ac_dir" in
1332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333*)
1334  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335  # A ".." for each directory in $ac_dir_suffix.
1336  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337  case $ac_top_builddir_sub in
1338  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1340  esac ;;
1341esac
1342ac_abs_top_builddir=$ac_pwd
1343ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344# for backward compatibility:
1345ac_top_builddir=$ac_top_build_prefix
1346
1347case $srcdir in
1348  .)  # We are building in place.
1349    ac_srcdir=.
1350    ac_top_srcdir=$ac_top_builddir_sub
1351    ac_abs_top_srcdir=$ac_pwd ;;
1352  [\\/]* | ?:[\\/]* )  # Absolute name.
1353    ac_srcdir=$srcdir$ac_dir_suffix;
1354    ac_top_srcdir=$srcdir
1355    ac_abs_top_srcdir=$srcdir ;;
1356  *) # Relative name.
1357    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358    ac_top_srcdir=$ac_top_build_prefix$srcdir
1359    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1360esac
1361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1362
1363    cd "$ac_dir" || { ac_status=$?; continue; }
1364    # Check for guested configure.
1365    if test -f "$ac_srcdir/configure.gnu"; then
1366      echo &&
1367      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368    elif test -f "$ac_srcdir/configure"; then
1369      echo &&
1370      $SHELL "$ac_srcdir/configure" --help=recursive
1371    else
1372      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373    fi || ac_status=$?
1374    cd "$ac_pwd" || { ac_status=$?; break; }
1375  done
1376fi
1377
1378test -n "$ac_init_help" && exit $ac_status
1379if $ac_init_version; then
1380  cat <<\_ACEOF
1381ldns configure 1.6.17
1382generated by GNU Autoconf 2.68
1383
1384Copyright (C) 2010 Free Software Foundation, Inc.
1385This configure script is free software; the Free Software Foundation
1386gives unlimited permission to copy, distribute and modify it.
1387_ACEOF
1388  exit
1389fi
1390
1391## ------------------------ ##
1392## Autoconf initialization. ##
1393## ------------------------ ##
1394
1395# ac_fn_c_try_compile LINENO
1396# --------------------------
1397# Try to compile conftest.$ac_ext, and return whether this succeeded.
1398ac_fn_c_try_compile ()
1399{
1400  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401  rm -f conftest.$ac_objext
1402  if { { ac_try="$ac_compile"
1403case "(($ac_try" in
1404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405  *) ac_try_echo=$ac_try;;
1406esac
1407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408$as_echo "$ac_try_echo"; } >&5
1409  (eval "$ac_compile") 2>conftest.err
1410  ac_status=$?
1411  if test -s conftest.err; then
1412    grep -v '^ *+' conftest.err >conftest.er1
1413    cat conftest.er1 >&5
1414    mv -f conftest.er1 conftest.err
1415  fi
1416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417  test $ac_status = 0; } && {
1418	 test -z "$ac_c_werror_flag" ||
1419	 test ! -s conftest.err
1420       } && test -s conftest.$ac_objext; then :
1421  ac_retval=0
1422else
1423  $as_echo "$as_me: failed program was:" >&5
1424sed 's/^/| /' conftest.$ac_ext >&5
1425
1426	ac_retval=1
1427fi
1428  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1429  as_fn_set_status $ac_retval
1430
1431} # ac_fn_c_try_compile
1432
1433# ac_fn_c_try_cpp LINENO
1434# ----------------------
1435# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1436ac_fn_c_try_cpp ()
1437{
1438  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439  if { { ac_try="$ac_cpp conftest.$ac_ext"
1440case "(($ac_try" in
1441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442  *) ac_try_echo=$ac_try;;
1443esac
1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445$as_echo "$ac_try_echo"; } >&5
1446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1447  ac_status=$?
1448  if test -s conftest.err; then
1449    grep -v '^ *+' conftest.err >conftest.er1
1450    cat conftest.er1 >&5
1451    mv -f conftest.er1 conftest.err
1452  fi
1453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454  test $ac_status = 0; } > conftest.i && {
1455	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456	 test ! -s conftest.err
1457       }; then :
1458  ac_retval=0
1459else
1460  $as_echo "$as_me: failed program was:" >&5
1461sed 's/^/| /' conftest.$ac_ext >&5
1462
1463    ac_retval=1
1464fi
1465  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466  as_fn_set_status $ac_retval
1467
1468} # ac_fn_c_try_cpp
1469
1470# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1471# -------------------------------------------------------
1472# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1473# the include files in INCLUDES and setting the cache variable VAR
1474# accordingly.
1475ac_fn_c_check_header_mongrel ()
1476{
1477  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478  if eval \${$3+:} false; then :
1479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1480$as_echo_n "checking for $2... " >&6; }
1481if eval \${$3+:} false; then :
1482  $as_echo_n "(cached) " >&6
1483fi
1484eval ac_res=\$$3
1485	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486$as_echo "$ac_res" >&6; }
1487else
1488  # Is the header compilable?
1489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1490$as_echo_n "checking $2 usability... " >&6; }
1491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492/* end confdefs.h.  */
1493$4
1494#include <$2>
1495_ACEOF
1496if ac_fn_c_try_compile "$LINENO"; then :
1497  ac_header_compiler=yes
1498else
1499  ac_header_compiler=no
1500fi
1501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1503$as_echo "$ac_header_compiler" >&6; }
1504
1505# Is the header present?
1506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1507$as_echo_n "checking $2 presence... " >&6; }
1508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509/* end confdefs.h.  */
1510#include <$2>
1511_ACEOF
1512if ac_fn_c_try_cpp "$LINENO"; then :
1513  ac_header_preproc=yes
1514else
1515  ac_header_preproc=no
1516fi
1517rm -f conftest.err conftest.i conftest.$ac_ext
1518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1519$as_echo "$ac_header_preproc" >&6; }
1520
1521# So?  What about this header?
1522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1523  yes:no: )
1524    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1525$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1526    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1528    ;;
1529  no:yes:* )
1530    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1531$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1532    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1533$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1535$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1537$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1539$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1540( $as_echo "## ---------------------------------- ##
1541## Report this to libdns@nlnetlabs.nl ##
1542## ---------------------------------- ##"
1543     ) | sed "s/^/$as_me: WARNING:     /" >&2
1544    ;;
1545esac
1546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if eval \${$3+:} false; then :
1549  $as_echo_n "(cached) " >&6
1550else
1551  eval "$3=\$ac_header_compiler"
1552fi
1553eval ac_res=\$$3
1554	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1555$as_echo "$ac_res" >&6; }
1556fi
1557  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558
1559} # ac_fn_c_check_header_mongrel
1560
1561# ac_fn_c_try_run LINENO
1562# ----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564# that executables *can* be run.
1565ac_fn_c_try_run ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571  *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575  (eval "$ac_link") 2>&5
1576  ac_status=$?
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579  { { case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_try") 2>&5
1586  ac_status=$?
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; }; }; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: program exited with status $ac_status" >&5
1592       $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595       ac_retval=$ac_status
1596fi
1597  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_run
1602
1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604# -------------------------------------------------------
1605# Tests whether HEADER exists and can be compiled using the include files in
1606# INCLUDES, setting the cache variable VAR accordingly.
1607ac_fn_c_check_header_compile ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611$as_echo_n "checking for $2... " >&6; }
1612if eval \${$3+:} false; then :
1613  $as_echo_n "(cached) " >&6
1614else
1615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"; then :
1621  eval "$3=yes"
1622else
1623  eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629$as_echo "$ac_res" >&6; }
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632} # ac_fn_c_check_header_compile
1633
1634# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1635# -------------------------------------------
1636# Tests whether TYPE exists after having included INCLUDES, setting cache
1637# variable VAR accordingly.
1638ac_fn_c_check_type ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  eval "$3=no"
1647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648/* end confdefs.h.  */
1649$4
1650int
1651main ()
1652{
1653if (sizeof ($2))
1654	 return 0;
1655  ;
1656  return 0;
1657}
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662$4
1663int
1664main ()
1665{
1666if (sizeof (($2)))
1667	    return 0;
1668  ;
1669  return 0;
1670}
1671_ACEOF
1672if ac_fn_c_try_compile "$LINENO"; then :
1673
1674else
1675  eval "$3=yes"
1676fi
1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680fi
1681eval ac_res=\$$3
1682	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683$as_echo "$ac_res" >&6; }
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686} # ac_fn_c_check_type
1687
1688# ac_fn_c_try_link LINENO
1689# -----------------------
1690# Try to link conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_link ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  rm -f conftest.$ac_objext conftest$ac_exeext
1695  if { { ac_try="$ac_link"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_link") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && {
1711	 test -z "$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       } && test -s conftest$ac_exeext && {
1714	 test "$cross_compiling" = yes ||
1715	 $as_test_x conftest$ac_exeext
1716       }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722	ac_retval=1
1723fi
1724  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726  # interfere with the next link command; also delete a directory that is
1727  # left behind by Apple's compiler.  We do this before executing the actions.
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_link
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752    which can conflict with char $2 (); below.
1753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754    <limits.h> exists even on freestanding compilers.  */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765   Use char because int might match the return type of a GCC
1766   builtin and then its argument prototype would still apply.  */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772    to always fail with ENOSYS.  Some functions are actually named
1773    something starting with __ and the normal name is an alias.  */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792    conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_func
1800cat >config.log <<_ACEOF
1801This file contains any messages produced by compilers while
1802running configure, to aid debugging if configure makes a mistake.
1803
1804It was created by ldns $as_me 1.6.17, which was
1805generated by GNU Autoconf 2.68.  Invocation command line was
1806
1807  $ $0 $@
1808
1809_ACEOF
1810exec 5>>config.log
1811{
1812cat <<_ASUNAME
1813## --------- ##
1814## Platform. ##
1815## --------- ##
1816
1817hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821uname -v = `(uname -v) 2>/dev/null || echo unknown`
1822
1823/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1825
1826/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1827/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1828/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1830/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1831/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1832/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1833
1834_ASUNAME
1835
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841    $as_echo "PATH: $as_dir"
1842  done
1843IFS=$as_save_IFS
1844
1845} >&5
1846
1847cat >&5 <<_ACEOF
1848
1849
1850## ----------- ##
1851## Core tests. ##
1852## ----------- ##
1853
1854_ACEOF
1855
1856
1857# Keep a trace of the command line.
1858# Strip out --no-create and --no-recursion so they do not pile up.
1859# Strip out --silent because we don't want to record it for future runs.
1860# Also quote any args containing shell meta-characters.
1861# Make two passes to allow for proper duplicate-argument suppression.
1862ac_configure_args=
1863ac_configure_args0=
1864ac_configure_args1=
1865ac_must_keep_next=false
1866for ac_pass in 1 2
1867do
1868  for ac_arg
1869  do
1870    case $ac_arg in
1871    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1872    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1873    | -silent | --silent | --silen | --sile | --sil)
1874      continue ;;
1875    *\'*)
1876      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877    esac
1878    case $ac_pass in
1879    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1880    2)
1881      as_fn_append ac_configure_args1 " '$ac_arg'"
1882      if test $ac_must_keep_next = true; then
1883	ac_must_keep_next=false # Got value, back to normal.
1884      else
1885	case $ac_arg in
1886	  *=* | --config-cache | -C | -disable-* | --disable-* \
1887	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1888	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1889	  | -with-* | --with-* | -without-* | --without-* | --x)
1890	    case "$ac_configure_args0 " in
1891	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1892	    esac
1893	    ;;
1894	  -* ) ac_must_keep_next=true ;;
1895	esac
1896      fi
1897      as_fn_append ac_configure_args " '$ac_arg'"
1898      ;;
1899    esac
1900  done
1901done
1902{ ac_configure_args0=; unset ac_configure_args0;}
1903{ ac_configure_args1=; unset ac_configure_args1;}
1904
1905# When interrupted or exit'd, cleanup temporary files, and complete
1906# config.log.  We remove comments because anyway the quotes in there
1907# would cause problems or look ugly.
1908# WARNING: Use '\'' to represent an apostrophe within the trap.
1909# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1910trap 'exit_status=$?
1911  # Save into config.log some information that might help in debugging.
1912  {
1913    echo
1914
1915    $as_echo "## ---------------- ##
1916## Cache variables. ##
1917## ---------------- ##"
1918    echo
1919    # The following way of writing the cache mishandles newlines in values,
1920(
1921  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922    eval ac_val=\$$ac_var
1923    case $ac_val in #(
1924    *${as_nl}*)
1925      case $ac_var in #(
1926      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1928      esac
1929      case $ac_var in #(
1930      _ | IFS | as_nl) ;; #(
1931      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932      *) { eval $ac_var=; unset $ac_var;} ;;
1933      esac ;;
1934    esac
1935  done
1936  (set) 2>&1 |
1937    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938    *${as_nl}ac_space=\ *)
1939      sed -n \
1940	"s/'\''/'\''\\\\'\'''\''/g;
1941	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942      ;; #(
1943    *)
1944      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1945      ;;
1946    esac |
1947    sort
1948)
1949    echo
1950
1951    $as_echo "## ----------------- ##
1952## Output variables. ##
1953## ----------------- ##"
1954    echo
1955    for ac_var in $ac_subst_vars
1956    do
1957      eval ac_val=\$$ac_var
1958      case $ac_val in
1959      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960      esac
1961      $as_echo "$ac_var='\''$ac_val'\''"
1962    done | sort
1963    echo
1964
1965    if test -n "$ac_subst_files"; then
1966      $as_echo "## ------------------- ##
1967## File substitutions. ##
1968## ------------------- ##"
1969      echo
1970      for ac_var in $ac_subst_files
1971      do
1972	eval ac_val=\$$ac_var
1973	case $ac_val in
1974	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975	esac
1976	$as_echo "$ac_var='\''$ac_val'\''"
1977      done | sort
1978      echo
1979    fi
1980
1981    if test -s confdefs.h; then
1982      $as_echo "## ----------- ##
1983## confdefs.h. ##
1984## ----------- ##"
1985      echo
1986      cat confdefs.h
1987      echo
1988    fi
1989    test "$ac_signal" != 0 &&
1990      $as_echo "$as_me: caught signal $ac_signal"
1991    $as_echo "$as_me: exit $exit_status"
1992  } >&5
1993  rm -f core *.core core.conftest.* &&
1994    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1995    exit $exit_status
1996' 0
1997for ac_signal in 1 2 13 15; do
1998  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1999done
2000ac_signal=0
2001
2002# confdefs.h avoids OS command line length limits that DEFS can exceed.
2003rm -f -r conftest* confdefs.h
2004
2005$as_echo "/* confdefs.h */" > confdefs.h
2006
2007# Predefined preprocessor variables.
2008
2009cat >>confdefs.h <<_ACEOF
2010#define PACKAGE_NAME "$PACKAGE_NAME"
2011_ACEOF
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2015_ACEOF
2016
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_VERSION "$PACKAGE_VERSION"
2019_ACEOF
2020
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_STRING "$PACKAGE_STRING"
2023_ACEOF
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2027_ACEOF
2028
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_URL "$PACKAGE_URL"
2031_ACEOF
2032
2033
2034# Let the site file select an alternate cache file if it wants to.
2035# Prefer an explicitly selected file to automatically selected ones.
2036ac_site_file1=NONE
2037ac_site_file2=NONE
2038if test -n "$CONFIG_SITE"; then
2039  # We do not want a PATH search for config.site.
2040  case $CONFIG_SITE in #((
2041    -*)  ac_site_file1=./$CONFIG_SITE;;
2042    */*) ac_site_file1=$CONFIG_SITE;;
2043    *)   ac_site_file1=./$CONFIG_SITE;;
2044  esac
2045elif test "x$prefix" != xNONE; then
2046  ac_site_file1=$prefix/share/config.site
2047  ac_site_file2=$prefix/etc/config.site
2048else
2049  ac_site_file1=$ac_default_prefix/share/config.site
2050  ac_site_file2=$ac_default_prefix/etc/config.site
2051fi
2052for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2053do
2054  test "x$ac_site_file" = xNONE && continue
2055  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2056    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2058    sed 's/^/| /' "$ac_site_file" >&5
2059    . "$ac_site_file" \
2060      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062as_fn_error $? "failed to load site script $ac_site_file
2063See \`config.log' for more details" "$LINENO" 5; }
2064  fi
2065done
2066
2067if test -r "$cache_file"; then
2068  # Some versions of bash will fail to source /dev/null (special files
2069  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2070  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072$as_echo "$as_me: loading cache $cache_file" >&6;}
2073    case $cache_file in
2074      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075      *)                      . "./$cache_file";;
2076    esac
2077  fi
2078else
2079  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080$as_echo "$as_me: creating cache $cache_file" >&6;}
2081  >$cache_file
2082fi
2083
2084# Check that the precious variables saved in the cache have kept the same
2085# value.
2086ac_cache_corrupted=false
2087for ac_var in $ac_precious_vars; do
2088  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089  eval ac_new_set=\$ac_env_${ac_var}_set
2090  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091  eval ac_new_val=\$ac_env_${ac_var}_value
2092  case $ac_old_set,$ac_new_set in
2093    set,)
2094      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096      ac_cache_corrupted=: ;;
2097    ,set)
2098      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100      ac_cache_corrupted=: ;;
2101    ,);;
2102    *)
2103      if test "x$ac_old_val" != "x$ac_new_val"; then
2104	# differences in whitespace do not lead to failure.
2105	ac_old_val_w=`echo x $ac_old_val`
2106	ac_new_val_w=`echo x $ac_new_val`
2107	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110	  ac_cache_corrupted=:
2111	else
2112	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114	  eval $ac_var=\$ac_old_val
2115	fi
2116	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2117$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2118	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2119$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2120      fi;;
2121  esac
2122  # Pass precious variables to config.status.
2123  if test "$ac_new_set" = set; then
2124    case $ac_new_val in
2125    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126    *) ac_arg=$ac_var=$ac_new_val ;;
2127    esac
2128    case " $ac_configure_args " in
2129      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2130      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2131    esac
2132  fi
2133done
2134if $ac_cache_corrupted; then
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2140fi
2141## -------------------- ##
2142## Main body of script. ##
2143## -------------------- ##
2144
2145ac_ext=c
2146ac_cpp='$CPP $CPPFLAGS'
2147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150
2151
2152
2153# acx_nlnetlabs.m4 - common macros for configure checks
2154# Copyright 2009, Wouter Wijngaards, NLnet Labs.
2155# BSD licensed.
2156#
2157# Version 26
2158# 2013-09-19 FLTO help text improved.
2159# 2013-07-18 Enable ACX_CHECK_COMPILER_FLAG to test for -Wstrict-prototypes
2160# 2013-06-25 FLTO has --disable-flto option.
2161# 2013-05-03 Update W32_SLEEP for newer mingw that links but not defines it.
2162# 2013-03-22 Fix ACX_RSRC_VERSION for long version numbers.
2163# 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2164# 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2165# 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2166# 	     Fix ACX_MALLOC for redefined malloc error.
2167# 	     Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2168# 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2169# 2011-11-01 Fix FLTO test for llvm on Lion.
2170# 2011-08-01 Fix nonblock test (broken at v13).
2171# 2011-08-01 Fix autoconf 2.68 warnings
2172# 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2173# 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2174# 2010-07-02 Add check for ss_family (for minix).
2175# 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2176# 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2177# 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS separate, -ldl
2178# 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2179# 2010-01-20 added AHX_COONFIG_STRLCAT
2180# 2009-07-14 U_CHAR detection improved for windows crosscompile.
2181#            added ACX_FUNC_MALLOC
2182#            fixup some #if to #ifdef
2183#            NONBLOCKING test for mingw crosscompile.
2184# 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2185# 2009-07-03 fixup LDFLAGS for empty ssl dir.
2186#
2187# Automates some of the checking constructs.  Aims at portability for POSIX.
2188# Documentation for functions is below.
2189#
2190# the following macro's are provided in this file:
2191# (see below for details on each macro).
2192#
2193# ACX_ESCAPE_BACKSLASH		- escape backslashes in var for C-preproc.
2194# ACX_RSRC_VERSION		- create windows resource version number.
2195# ACX_CHECK_COMPILER_FLAG	- see if cc supports a flag.
2196# ACX_CHECK_ERROR_FLAGS		- see which flag is -werror (used below).
2197# ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2198# ACX_DEPFLAG			- find cc dependency flags.
2199# ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2200# ACX_CHECK_FORMAT_ATTRIBUTE	- find cc printf format syntax.
2201# ACX_CHECK_UNUSED_ATTRIBUTE	- find cc variable unused syntax.
2202# ACX_CHECK_FLTO		- see if cc supports -flto and use it if so.
2203# ACX_LIBTOOL_C_ONLY		- create libtool for C only, improved.
2204# ACX_TYPE_U_CHAR		- u_char type.
2205# ACX_TYPE_RLIM_T		- rlim_t type.
2206# ACX_TYPE_SOCKLEN_T		- socklen_t type.
2207# ACX_TYPE_IN_ADDR_T		- in_addr_t type.
2208# ACX_TYPE_IN_PORT_T		- in_port_t type.
2209# ACX_ARG_RPATH			- add --disable-rpath option.
2210# ACX_WITH_SSL			- add --with-ssl option, link -lcrypto.
2211# ACX_WITH_SSL_OPTIONAL		- add --with-ssl option, link -lcrypto,
2212#				  where --without-ssl is also accepted
2213# ACX_LIB_SSL			- setup to link -lssl.
2214# ACX_SYS_LARGEFILE		- improved sys_largefile, fseeko, >2G files.
2215# ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2216# ACX_FUNC_DEPRECATED		- see if func is deprecated.
2217# ACX_CHECK_NONBLOCKING_BROKEN	- see if nonblocking sockets really work.
2218# ACX_MKDIR_ONE_ARG		- determine mkdir(2) number of arguments.
2219# ACX_FUNC_IOCTLSOCKET		- find ioctlsocket, portably.
2220# ACX_FUNC_MALLOC		- check malloc, define replacement .
2221# AHX_CONFIG_FORMAT_ATTRIBUTE	- config.h text for format.
2222# AHX_CONFIG_UNUSED_ATTRIBUTE	- config.h text for unused.
2223# AHX_CONFIG_FSEEKO		- define fseeko, ftello fallback.
2224# AHX_CONFIG_RAND_MAX		- define RAND_MAX if needed.
2225# AHX_CONFIG_MAXHOSTNAMELEN	- define MAXHOSTNAMELEN if needed.
2226# AHX_CONFIG_IPV6_MIN_MTU	- define IPV6_MIN_MTU if needed.
2227# AHX_CONFIG_SNPRINTF		- snprintf compat prototype
2228# AHX_CONFIG_INET_PTON		- inet_pton compat prototype
2229# AHX_CONFIG_INET_NTOP		- inet_ntop compat prototype
2230# AHX_CONFIG_INET_ATON		- inet_aton compat prototype
2231# AHX_CONFIG_MEMMOVE		- memmove compat prototype
2232# AHX_CONFIG_STRLCAT		- strlcat compat prototype
2233# AHX_CONFIG_STRLCPY		- strlcpy compat prototype
2234# AHX_CONFIG_GMTIME_R		- gmtime_r compat prototype
2235# AHX_CONFIG_W32_SLEEP		- w32 compat for sleep
2236# AHX_CONFIG_W32_USLEEP		- w32 compat for usleep
2237# AHX_CONFIG_W32_RANDOM		- w32 compat for random
2238# AHX_CONFIG_W32_SRANDOM	- w32 compat for srandom
2239# AHX_CONFIG_W32_FD_SET_T	- w32 detection of FD_SET_T.
2240# ACX_CFLAGS_STRIP		- strip one flag from CFLAGS
2241# ACX_STRIP_EXT_FLAGS		- strip extension flags from CFLAGS
2242# AHX_CONFIG_FLAG_OMITTED	- define omitted flag
2243# AHX_CONFIG_FLAG_EXT		- define omitted extension flag
2244# AHX_CONFIG_EXT_FLAGS		- define the stripped extension flags
2245# ACX_CHECK_MEMCMP_SIGNED	- check if memcmp uses signed characters.
2246# AHX_MEMCMP_BROKEN		- replace memcmp func for CHECK_MEMCMP_SIGNED.
2247# ACX_CHECK_SS_FAMILY           - check for sockaddr_storage.ss_family
2248#
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351OURCPPFLAGS=''
2352CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2353OURCFLAGS='-g'
2354CFLAGS=${CFLAGS:-${OURCFLAGS}}
2355
2356$as_echo "#define WINVER 0x0502" >>confdefs.h
2357
2358
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364if test -n "$ac_tool_prefix"; then
2365  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368$as_echo_n "checking for $ac_word... " >&6; }
2369if ${ac_cv_prog_CC+:} false; then :
2370  $as_echo_n "(cached) " >&6
2371else
2372  if test -n "$CC"; then
2373  ac_cv_prog_CC="$CC" # Let the user override the test.
2374else
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378  IFS=$as_save_IFS
2379  test -z "$as_dir" && as_dir=.
2380    for ac_exec_ext in '' $ac_executable_extensions; do
2381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2384    break 2
2385  fi
2386done
2387  done
2388IFS=$as_save_IFS
2389
2390fi
2391fi
2392CC=$ac_cv_prog_CC
2393if test -n "$CC"; then
2394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2395$as_echo "$CC" >&6; }
2396else
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398$as_echo "no" >&6; }
2399fi
2400
2401
2402fi
2403if test -z "$ac_cv_prog_CC"; then
2404  ac_ct_CC=$CC
2405  # Extract the first word of "gcc", so it can be a program name with args.
2406set dummy gcc; ac_word=$2
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408$as_echo_n "checking for $ac_word... " >&6; }
2409if ${ac_cv_prog_ac_ct_CC+:} false; then :
2410  $as_echo_n "(cached) " >&6
2411else
2412  if test -n "$ac_ct_CC"; then
2413  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420    for ac_exec_ext in '' $ac_executable_extensions; do
2421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422    ac_cv_prog_ac_ct_CC="gcc"
2423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424    break 2
2425  fi
2426done
2427  done
2428IFS=$as_save_IFS
2429
2430fi
2431fi
2432ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433if test -n "$ac_ct_CC"; then
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2435$as_echo "$ac_ct_CC" >&6; }
2436else
2437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438$as_echo "no" >&6; }
2439fi
2440
2441  if test "x$ac_ct_CC" = x; then
2442    CC=""
2443  else
2444    case $cross_compiling:$ac_tool_warned in
2445yes:)
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448ac_tool_warned=yes ;;
2449esac
2450    CC=$ac_ct_CC
2451  fi
2452else
2453  CC="$ac_cv_prog_CC"
2454fi
2455
2456if test -z "$CC"; then
2457          if test -n "$ac_tool_prefix"; then
2458    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459set dummy ${ac_tool_prefix}cc; ac_word=$2
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if ${ac_cv_prog_CC+:} false; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  if test -n "$CC"; then
2466  ac_cv_prog_CC="$CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473    for ac_exec_ext in '' $ac_executable_extensions; do
2474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475    ac_cv_prog_CC="${ac_tool_prefix}cc"
2476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480  done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485CC=$ac_cv_prog_CC
2486if test -n "$CC"; then
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488$as_echo "$CC" >&6; }
2489else
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495  fi
2496fi
2497if test -z "$CC"; then
2498  # Extract the first word of "cc", so it can be a program name with args.
2499set dummy cc; ac_word=$2
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if ${ac_cv_prog_CC+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  if test -n "$CC"; then
2506  ac_cv_prog_CC="$CC" # Let the user override the test.
2507else
2508  ac_prog_rejected=no
2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512  IFS=$as_save_IFS
2513  test -z "$as_dir" && as_dir=.
2514    for ac_exec_ext in '' $ac_executable_extensions; do
2515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517       ac_prog_rejected=yes
2518       continue
2519     fi
2520    ac_cv_prog_CC="cc"
2521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522    break 2
2523  fi
2524done
2525  done
2526IFS=$as_save_IFS
2527
2528if test $ac_prog_rejected = yes; then
2529  # We found a bogon in the path, so make sure we never use it.
2530  set dummy $ac_cv_prog_CC
2531  shift
2532  if test $# != 0; then
2533    # We chose a different compiler from the bogus one.
2534    # However, it has the same basename, so the bogon will be chosen
2535    # first if we set CC to just the basename; use the full file name.
2536    shift
2537    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538  fi
2539fi
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
2546else
2547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552fi
2553if test -z "$CC"; then
2554  if test -n "$ac_tool_prefix"; then
2555  for ac_prog in cl.exe
2556  do
2557    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if ${ac_cv_prog_CC+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$CC"; then
2565  ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572    for ac_exec_ext in '' $ac_executable_extensions; do
2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587$as_echo "$CC" >&6; }
2588else
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593
2594    test -n "$CC" && break
2595  done
2596fi
2597if test -z "$CC"; then
2598  ac_ct_CC=$CC
2599  for ac_prog in cl.exe
2600do
2601  # Extract the first word of "$ac_prog", so it can be a program name with args.
2602set dummy $ac_prog; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618    ac_cv_prog_ac_ct_CC="$ac_prog"
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
2638  test -n "$ac_ct_CC" && break
2639done
2640
2641  if test "x$ac_ct_CC" = x; then
2642    CC=""
2643  else
2644    case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650    CC=$ac_ct_CC
2651  fi
2652fi
2653
2654fi
2655
2656
2657test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659as_fn_error $? "no acceptable C compiler found in \$PATH
2660See \`config.log' for more details" "$LINENO" 5; }
2661
2662# Provide some information about the compiler.
2663$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2664set X $ac_compile
2665ac_compiler=$2
2666for ac_option in --version -v -V -qversion; do
2667  { { ac_try="$ac_compiler $ac_option >&5"
2668case "(($ac_try" in
2669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670  *) ac_try_echo=$ac_try;;
2671esac
2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673$as_echo "$ac_try_echo"; } >&5
2674  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2675  ac_status=$?
2676  if test -s conftest.err; then
2677    sed '10a\
2678... rest of stderr output deleted ...
2679         10q' conftest.err >conftest.er1
2680    cat conftest.er1 >&5
2681  fi
2682  rm -f conftest.er1 conftest.err
2683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684  test $ac_status = 0; }
2685done
2686
2687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688/* end confdefs.h.  */
2689
2690int
2691main ()
2692{
2693
2694  ;
2695  return 0;
2696}
2697_ACEOF
2698ac_clean_files_save=$ac_clean_files
2699ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2700# Try to create an executable without -o first, disregard a.out.
2701# It will help us diagnose broken compilers, and finding out an intuition
2702# of exeext.
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2704$as_echo_n "checking whether the C compiler works... " >&6; }
2705ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2706
2707# The possible output files:
2708ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2709
2710ac_rmfiles=
2711for ac_file in $ac_files
2712do
2713  case $ac_file in
2714    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2715    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2716  esac
2717done
2718rm -f $ac_rmfiles
2719
2720if { { ac_try="$ac_link_default"
2721case "(($ac_try" in
2722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723  *) ac_try_echo=$ac_try;;
2724esac
2725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726$as_echo "$ac_try_echo"; } >&5
2727  (eval "$ac_link_default") 2>&5
2728  ac_status=$?
2729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730  test $ac_status = 0; }; then :
2731  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2734# so that the user can short-circuit this test for compilers unknown to
2735# Autoconf.
2736for ac_file in $ac_files ''
2737do
2738  test -f "$ac_file" || continue
2739  case $ac_file in
2740    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2741	;;
2742    [ab].out )
2743	# We found the default executable, but exeext='' is most
2744	# certainly right.
2745	break;;
2746    *.* )
2747	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2748	then :; else
2749	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750	fi
2751	# We set ac_cv_exeext here because the later test for it is not
2752	# safe: cross compilers may not add the suffix if given an `-o'
2753	# argument, so we may need to know it at that point already.
2754	# Even if this section looks crufty: it has the advantage of
2755	# actually working.
2756	break;;
2757    * )
2758	break;;
2759  esac
2760done
2761test "$ac_cv_exeext" = no && ac_cv_exeext=
2762
2763else
2764  ac_file=''
2765fi
2766if test -z "$ac_file"; then :
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769$as_echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774as_fn_error 77 "C compiler cannot create executables
2775See \`config.log' for more details" "$LINENO" 5; }
2776else
2777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778$as_echo "yes" >&6; }
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2781$as_echo_n "checking for C compiler default output file name... " >&6; }
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2783$as_echo "$ac_file" >&6; }
2784ac_exeext=$ac_cv_exeext
2785
2786rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2787ac_clean_files=$ac_clean_files_save
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2789$as_echo_n "checking for suffix of executables... " >&6; }
2790if { { ac_try="$ac_link"
2791case "(($ac_try" in
2792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793  *) ac_try_echo=$ac_try;;
2794esac
2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796$as_echo "$ac_try_echo"; } >&5
2797  (eval "$ac_link") 2>&5
2798  ac_status=$?
2799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800  test $ac_status = 0; }; then :
2801  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2802# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2803# work properly (i.e., refer to `conftest.exe'), while it won't with
2804# `rm'.
2805for ac_file in conftest.exe conftest conftest.*; do
2806  test -f "$ac_file" || continue
2807  case $ac_file in
2808    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810	  break;;
2811    * ) break;;
2812  esac
2813done
2814else
2815  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2818See \`config.log' for more details" "$LINENO" 5; }
2819fi
2820rm -f conftest conftest$ac_cv_exeext
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2822$as_echo "$ac_cv_exeext" >&6; }
2823
2824rm -f conftest.$ac_ext
2825EXEEXT=$ac_cv_exeext
2826ac_exeext=$EXEEXT
2827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h.  */
2829#include <stdio.h>
2830int
2831main ()
2832{
2833FILE *f = fopen ("conftest.out", "w");
2834 return ferror (f) || fclose (f) != 0;
2835
2836  ;
2837  return 0;
2838}
2839_ACEOF
2840ac_clean_files="$ac_clean_files conftest.out"
2841# Check that the compiler produces executables we can run.  If not, either
2842# the compiler is broken, or we cross compile.
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2844$as_echo_n "checking whether we are cross compiling... " >&6; }
2845if test "$cross_compiling" != yes; then
2846  { { ac_try="$ac_link"
2847case "(($ac_try" in
2848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849  *) ac_try_echo=$ac_try;;
2850esac
2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852$as_echo "$ac_try_echo"; } >&5
2853  (eval "$ac_link") 2>&5
2854  ac_status=$?
2855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856  test $ac_status = 0; }
2857  if { ac_try='./conftest$ac_cv_exeext'
2858  { { case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863$as_echo "$ac_try_echo"; } >&5
2864  (eval "$ac_try") 2>&5
2865  ac_status=$?
2866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867  test $ac_status = 0; }; }; then
2868    cross_compiling=no
2869  else
2870    if test "$cross_compiling" = maybe; then
2871	cross_compiling=yes
2872    else
2873	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875as_fn_error $? "cannot run C compiled programs.
2876If you meant to cross compile, use \`--host'.
2877See \`config.log' for more details" "$LINENO" 5; }
2878    fi
2879  fi
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2882$as_echo "$cross_compiling" >&6; }
2883
2884rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2885ac_clean_files=$ac_clean_files_save
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2887$as_echo_n "checking for suffix of object files... " >&6; }
2888if ${ac_cv_objext+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h.  */
2893
2894int
2895main ()
2896{
2897
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902rm -f conftest.o conftest.obj
2903if { { ac_try="$ac_compile"
2904case "(($ac_try" in
2905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906  *) ac_try_echo=$ac_try;;
2907esac
2908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909$as_echo "$ac_try_echo"; } >&5
2910  (eval "$ac_compile") 2>&5
2911  ac_status=$?
2912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913  test $ac_status = 0; }; then :
2914  for ac_file in conftest.o conftest.obj conftest.*; do
2915  test -f "$ac_file" || continue;
2916  case $ac_file in
2917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2918    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919       break;;
2920  esac
2921done
2922else
2923  $as_echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928as_fn_error $? "cannot compute suffix of object files: cannot compile
2929See \`config.log' for more details" "$LINENO" 5; }
2930fi
2931rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932fi
2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2934$as_echo "$ac_cv_objext" >&6; }
2935OBJEXT=$ac_cv_objext
2936ac_objext=$OBJEXT
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2938$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2939if ${ac_cv_c_compiler_gnu+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948#ifndef __GNUC__
2949       choke me
2950#endif
2951
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956if ac_fn_c_try_compile "$LINENO"; then :
2957  ac_compiler_gnu=yes
2958else
2959  ac_compiler_gnu=no
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962ac_cv_c_compiler_gnu=$ac_compiler_gnu
2963
2964fi
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2966$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2967if test $ac_compiler_gnu = yes; then
2968  GCC=yes
2969else
2970  GCC=
2971fi
2972ac_test_CFLAGS=${CFLAGS+set}
2973ac_save_CFLAGS=$CFLAGS
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2975$as_echo_n "checking whether $CC accepts -g... " >&6; }
2976if ${ac_cv_prog_cc_g+:} false; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  ac_save_c_werror_flag=$ac_c_werror_flag
2980   ac_c_werror_flag=yes
2981   ac_cv_prog_cc_g=no
2982   CFLAGS="-g"
2983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984/* end confdefs.h.  */
2985
2986int
2987main ()
2988{
2989
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994if ac_fn_c_try_compile "$LINENO"; then :
2995  ac_cv_prog_cc_g=yes
2996else
2997  CFLAGS=""
2998      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999/* end confdefs.h.  */
3000
3001int
3002main ()
3003{
3004
3005  ;
3006  return 0;
3007}
3008_ACEOF
3009if ac_fn_c_try_compile "$LINENO"; then :
3010
3011else
3012  ac_c_werror_flag=$ac_save_c_werror_flag
3013	 CFLAGS="-g"
3014	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017int
3018main ()
3019{
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026  ac_cv_prog_cc_g=yes
3027fi
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029fi
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031fi
3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033   ac_c_werror_flag=$ac_save_c_werror_flag
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3036$as_echo "$ac_cv_prog_cc_g" >&6; }
3037if test "$ac_test_CFLAGS" = set; then
3038  CFLAGS=$ac_save_CFLAGS
3039elif test $ac_cv_prog_cc_g = yes; then
3040  if test "$GCC" = yes; then
3041    CFLAGS="-g -O2"
3042  else
3043    CFLAGS="-g"
3044  fi
3045else
3046  if test "$GCC" = yes; then
3047    CFLAGS="-O2"
3048  else
3049    CFLAGS=
3050  fi
3051fi
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3053$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3054if ${ac_cv_prog_cc_c89+:} false; then :
3055  $as_echo_n "(cached) " >&6
3056else
3057  ac_cv_prog_cc_c89=no
3058ac_save_CC=$CC
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h.  */
3061#include <stdarg.h>
3062#include <stdio.h>
3063#include <sys/types.h>
3064#include <sys/stat.h>
3065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3066struct buf { int x; };
3067FILE * (*rcsopen) (struct buf *, struct stat *, int);
3068static char *e (p, i)
3069     char **p;
3070     int i;
3071{
3072  return p[i];
3073}
3074static char *f (char * (*g) (char **, int), char **p, ...)
3075{
3076  char *s;
3077  va_list v;
3078  va_start (v,p);
3079  s = g (p, va_arg (v,int));
3080  va_end (v);
3081  return s;
3082}
3083
3084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3085   function prototypes and stuff, but not '\xHH' hex character constants.
3086   These don't provoke an error unfortunately, instead are silently treated
3087   as 'x'.  The following induces an error, until -std is added to get
3088   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3089   array size at least.  It's necessary to write '\x00'==0 to get something
3090   that's true only with -std.  */
3091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3092
3093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3094   inside strings and character constants.  */
3095#define FOO(x) 'x'
3096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3097
3098int test (int i, double x);
3099struct s1 {int (*f) (int a);};
3100struct s2 {int (*f) (double a);};
3101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3102int argc;
3103char **argv;
3104int
3105main ()
3106{
3107return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3113	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3114do
3115  CC="$ac_save_CC $ac_arg"
3116  if ac_fn_c_try_compile "$LINENO"; then :
3117  ac_cv_prog_cc_c89=$ac_arg
3118fi
3119rm -f core conftest.err conftest.$ac_objext
3120  test "x$ac_cv_prog_cc_c89" != "xno" && break
3121done
3122rm -f conftest.$ac_ext
3123CC=$ac_save_CC
3124
3125fi
3126# AC_CACHE_VAL
3127case "x$ac_cv_prog_cc_c89" in
3128  x)
3129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3130$as_echo "none needed" >&6; } ;;
3131  xno)
3132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3133$as_echo "unsupported" >&6; } ;;
3134  *)
3135    CC="$CC $ac_cv_prog_cc_c89"
3136    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3138esac
3139if test "x$ac_cv_prog_cc_c89" != xno; then :
3140
3141fi
3142
3143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3156$as_echo_n "checking how to run the C preprocessor... " >&6; }
3157# On Suns, sometimes $CPP names a directory.
3158if test -n "$CPP" && test -d "$CPP"; then
3159  CPP=
3160fi
3161if test -z "$CPP"; then
3162  if ${ac_cv_prog_CPP+:} false; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165      # Double quotes because CPP needs to be expanded
3166    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3167    do
3168      ac_preproc_ok=false
3169for ac_c_preproc_warn_flag in '' yes
3170do
3171  # Use a header file that comes with gcc, so configuring glibc
3172  # with a fresh cross-compiler works.
3173  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174  # <limits.h> exists even on freestanding compilers.
3175  # On the NeXT, cc -E runs the code through the compiler's parser,
3176  # not just through cpp. "Syntax error" is here to catch this case.
3177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h.  */
3179#ifdef __STDC__
3180# include <limits.h>
3181#else
3182# include <assert.h>
3183#endif
3184		     Syntax error
3185_ACEOF
3186if ac_fn_c_try_cpp "$LINENO"; then :
3187
3188else
3189  # Broken: fails on valid input.
3190continue
3191fi
3192rm -f conftest.err conftest.i conftest.$ac_ext
3193
3194  # OK, works on sane cases.  Now check whether nonexistent headers
3195  # can be detected and how.
3196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198#include <ac_nonexistent.h>
3199_ACEOF
3200if ac_fn_c_try_cpp "$LINENO"; then :
3201  # Broken: success on invalid input.
3202continue
3203else
3204  # Passes both tests.
3205ac_preproc_ok=:
3206break
3207fi
3208rm -f conftest.err conftest.i conftest.$ac_ext
3209
3210done
3211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212rm -f conftest.i conftest.err conftest.$ac_ext
3213if $ac_preproc_ok; then :
3214  break
3215fi
3216
3217    done
3218    ac_cv_prog_CPP=$CPP
3219
3220fi
3221  CPP=$ac_cv_prog_CPP
3222else
3223  ac_cv_prog_CPP=$CPP
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3226$as_echo "$CPP" >&6; }
3227ac_preproc_ok=false
3228for ac_c_preproc_warn_flag in '' yes
3229do
3230  # Use a header file that comes with gcc, so configuring glibc
3231  # with a fresh cross-compiler works.
3232  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233  # <limits.h> exists even on freestanding compilers.
3234  # On the NeXT, cc -E runs the code through the compiler's parser,
3235  # not just through cpp. "Syntax error" is here to catch this case.
3236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238#ifdef __STDC__
3239# include <limits.h>
3240#else
3241# include <assert.h>
3242#endif
3243		     Syntax error
3244_ACEOF
3245if ac_fn_c_try_cpp "$LINENO"; then :
3246
3247else
3248  # Broken: fails on valid input.
3249continue
3250fi
3251rm -f conftest.err conftest.i conftest.$ac_ext
3252
3253  # OK, works on sane cases.  Now check whether nonexistent headers
3254  # can be detected and how.
3255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h.  */
3257#include <ac_nonexistent.h>
3258_ACEOF
3259if ac_fn_c_try_cpp "$LINENO"; then :
3260  # Broken: success on invalid input.
3261continue
3262else
3263  # Passes both tests.
3264ac_preproc_ok=:
3265break
3266fi
3267rm -f conftest.err conftest.i conftest.$ac_ext
3268
3269done
3270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3271rm -f conftest.i conftest.err conftest.$ac_ext
3272if $ac_preproc_ok; then :
3273
3274else
3275  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3278See \`config.log' for more details" "$LINENO" 5; }
3279fi
3280
3281ac_ext=c
3282ac_cpp='$CPP $CPPFLAGS'
3283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286
3287
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3289$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3290if ${ac_cv_path_GREP+:} false; then :
3291  $as_echo_n "(cached) " >&6
3292else
3293  if test -z "$GREP"; then
3294  ac_path_GREP_found=false
3295  # Loop through the user's path and test for each of PROGNAME-LIST
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_prog in grep ggrep; do
3302    for ac_exec_ext in '' $ac_executable_extensions; do
3303      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3304      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3305# Check for GNU ac_path_GREP and select it if it is found.
3306  # Check for GNU $ac_path_GREP
3307case `"$ac_path_GREP" --version 2>&1` in
3308*GNU*)
3309  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3310*)
3311  ac_count=0
3312  $as_echo_n 0123456789 >"conftest.in"
3313  while :
3314  do
3315    cat "conftest.in" "conftest.in" >"conftest.tmp"
3316    mv "conftest.tmp" "conftest.in"
3317    cp "conftest.in" "conftest.nl"
3318    $as_echo 'GREP' >> "conftest.nl"
3319    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3320    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3321    as_fn_arith $ac_count + 1 && ac_count=$as_val
3322    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3323      # Best one so far, save it but keep looking for a better one
3324      ac_cv_path_GREP="$ac_path_GREP"
3325      ac_path_GREP_max=$ac_count
3326    fi
3327    # 10*(2^10) chars as input seems more than enough
3328    test $ac_count -gt 10 && break
3329  done
3330  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331esac
3332
3333      $ac_path_GREP_found && break 3
3334    done
3335  done
3336  done
3337IFS=$as_save_IFS
3338  if test -z "$ac_cv_path_GREP"; then
3339    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3340  fi
3341else
3342  ac_cv_path_GREP=$GREP
3343fi
3344
3345fi
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3347$as_echo "$ac_cv_path_GREP" >&6; }
3348 GREP="$ac_cv_path_GREP"
3349
3350
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3352$as_echo_n "checking for egrep... " >&6; }
3353if ${ac_cv_path_EGREP+:} false; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357   then ac_cv_path_EGREP="$GREP -E"
3358   else
3359     if test -z "$EGREP"; then
3360  ac_path_EGREP_found=false
3361  # Loop through the user's path and test for each of PROGNAME-LIST
3362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_prog in egrep; do
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3370      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3371# Check for GNU ac_path_EGREP and select it if it is found.
3372  # Check for GNU $ac_path_EGREP
3373case `"$ac_path_EGREP" --version 2>&1` in
3374*GNU*)
3375  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3376*)
3377  ac_count=0
3378  $as_echo_n 0123456789 >"conftest.in"
3379  while :
3380  do
3381    cat "conftest.in" "conftest.in" >"conftest.tmp"
3382    mv "conftest.tmp" "conftest.in"
3383    cp "conftest.in" "conftest.nl"
3384    $as_echo 'EGREP' >> "conftest.nl"
3385    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3387    as_fn_arith $ac_count + 1 && ac_count=$as_val
3388    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3389      # Best one so far, save it but keep looking for a better one
3390      ac_cv_path_EGREP="$ac_path_EGREP"
3391      ac_path_EGREP_max=$ac_count
3392    fi
3393    # 10*(2^10) chars as input seems more than enough
3394    test $ac_count -gt 10 && break
3395  done
3396  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3397esac
3398
3399      $ac_path_EGREP_found && break 3
3400    done
3401  done
3402  done
3403IFS=$as_save_IFS
3404  if test -z "$ac_cv_path_EGREP"; then
3405    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3406  fi
3407else
3408  ac_cv_path_EGREP=$EGREP
3409fi
3410
3411   fi
3412fi
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3414$as_echo "$ac_cv_path_EGREP" >&6; }
3415 EGREP="$ac_cv_path_EGREP"
3416
3417
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3419$as_echo_n "checking for ANSI C header files... " >&6; }
3420if ${ac_cv_header_stdc+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425#include <stdlib.h>
3426#include <stdarg.h>
3427#include <string.h>
3428#include <float.h>
3429
3430int
3431main ()
3432{
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"; then :
3439  ac_cv_header_stdc=yes
3440else
3441  ac_cv_header_stdc=no
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444
3445if test $ac_cv_header_stdc = yes; then
3446  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h.  */
3449#include <string.h>
3450
3451_ACEOF
3452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453  $EGREP "memchr" >/dev/null 2>&1; then :
3454
3455else
3456  ac_cv_header_stdc=no
3457fi
3458rm -f conftest*
3459
3460fi
3461
3462if test $ac_cv_header_stdc = yes; then
3463  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465/* end confdefs.h.  */
3466#include <stdlib.h>
3467
3468_ACEOF
3469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470  $EGREP "free" >/dev/null 2>&1; then :
3471
3472else
3473  ac_cv_header_stdc=no
3474fi
3475rm -f conftest*
3476
3477fi
3478
3479if test $ac_cv_header_stdc = yes; then
3480  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3481  if test "$cross_compiling" = yes; then :
3482  :
3483else
3484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486#include <ctype.h>
3487#include <stdlib.h>
3488#if ((' ' & 0x0FF) == 0x020)
3489# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3490# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3491#else
3492# define ISLOWER(c) \
3493		   (('a' <= (c) && (c) <= 'i') \
3494		     || ('j' <= (c) && (c) <= 'r') \
3495		     || ('s' <= (c) && (c) <= 'z'))
3496# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3497#endif
3498
3499#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3500int
3501main ()
3502{
3503  int i;
3504  for (i = 0; i < 256; i++)
3505    if (XOR (islower (i), ISLOWER (i))
3506	|| toupper (i) != TOUPPER (i))
3507      return 2;
3508  return 0;
3509}
3510_ACEOF
3511if ac_fn_c_try_run "$LINENO"; then :
3512
3513else
3514  ac_cv_header_stdc=no
3515fi
3516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3517  conftest.$ac_objext conftest.beam conftest.$ac_ext
3518fi
3519
3520fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3523$as_echo "$ac_cv_header_stdc" >&6; }
3524if test $ac_cv_header_stdc = yes; then
3525
3526$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3527
3528fi
3529
3530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3532		  inttypes.h stdint.h unistd.h
3533do :
3534  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3536"
3537if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3538  cat >>confdefs.h <<_ACEOF
3539#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3540_ACEOF
3541
3542fi
3543
3544done
3545
3546
3547
3548  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3549if test "x$ac_cv_header_minix_config_h" = xyes; then :
3550  MINIX=yes
3551else
3552  MINIX=
3553fi
3554
3555
3556  if test "$MINIX" = yes; then
3557
3558$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3559
3560
3561$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3562
3563
3564$as_echo "#define _MINIX 1" >>confdefs.h
3565
3566  fi
3567
3568
3569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3570$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3571if ${ac_cv_safe_to_define___extensions__+:} false; then :
3572  $as_echo_n "(cached) " >&6
3573else
3574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577#	  define __EXTENSIONS__ 1
3578	  $ac_includes_default
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_safe_to_define___extensions__=yes
3589else
3590  ac_cv_safe_to_define___extensions__=no
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3595$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3596  test $ac_cv_safe_to_define___extensions__ = yes &&
3597    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3598
3599  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3600
3601  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3602
3603  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3604
3605  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3606
3607
3608
3609# Checks for programs.
3610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615if test -n "$ac_tool_prefix"; then
3616  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617set dummy ${ac_tool_prefix}gcc; ac_word=$2
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if ${ac_cv_prog_CC+:} false; then :
3621  $as_echo_n "(cached) " >&6
3622else
3623  if test -n "$CC"; then
3624  ac_cv_prog_CC="$CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635    break 2
3636  fi
3637done
3638  done
3639IFS=$as_save_IFS
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646$as_echo "$CC" >&6; }
3647else
3648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
3650fi
3651
3652
3653fi
3654if test -z "$ac_cv_prog_CC"; then
3655  ac_ct_CC=$CC
3656  # Extract the first word of "gcc", so it can be a program name with args.
3657set dummy gcc; ac_word=$2
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if ${ac_cv_prog_ac_ct_CC+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  if test -n "$ac_ct_CC"; then
3664  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669  IFS=$as_save_IFS
3670  test -z "$as_dir" && as_dir=.
3671    for ac_exec_ext in '' $ac_executable_extensions; do
3672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673    ac_cv_prog_ac_ct_CC="gcc"
3674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675    break 2
3676  fi
3677done
3678  done
3679IFS=$as_save_IFS
3680
3681fi
3682fi
3683ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684if test -n "$ac_ct_CC"; then
3685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686$as_echo "$ac_ct_CC" >&6; }
3687else
3688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
3690fi
3691
3692  if test "x$ac_ct_CC" = x; then
3693    CC=""
3694  else
3695    case $cross_compiling:$ac_tool_warned in
3696yes:)
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701    CC=$ac_ct_CC
3702  fi
3703else
3704  CC="$ac_cv_prog_CC"
3705fi
3706
3707if test -z "$CC"; then
3708          if test -n "$ac_tool_prefix"; then
3709    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3710set dummy ${ac_tool_prefix}cc; ac_word=$2
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712$as_echo_n "checking for $ac_word... " >&6; }
3713if ${ac_cv_prog_CC+:} false; then :
3714  $as_echo_n "(cached) " >&6
3715else
3716  if test -n "$CC"; then
3717  ac_cv_prog_CC="$CC" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722  IFS=$as_save_IFS
3723  test -z "$as_dir" && as_dir=.
3724    for ac_exec_ext in '' $ac_executable_extensions; do
3725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726    ac_cv_prog_CC="${ac_tool_prefix}cc"
3727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728    break 2
3729  fi
3730done
3731  done
3732IFS=$as_save_IFS
3733
3734fi
3735fi
3736CC=$ac_cv_prog_CC
3737if test -n "$CC"; then
3738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739$as_echo "$CC" >&6; }
3740else
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742$as_echo "no" >&6; }
3743fi
3744
3745
3746  fi
3747fi
3748if test -z "$CC"; then
3749  # Extract the first word of "cc", so it can be a program name with args.
3750set dummy cc; ac_word=$2
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if ${ac_cv_prog_CC+:} false; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  if test -n "$CC"; then
3757  ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
3759  ac_prog_rejected=no
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763  IFS=$as_save_IFS
3764  test -z "$as_dir" && as_dir=.
3765    for ac_exec_ext in '' $ac_executable_extensions; do
3766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768       ac_prog_rejected=yes
3769       continue
3770     fi
3771    ac_cv_prog_CC="cc"
3772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773    break 2
3774  fi
3775done
3776  done
3777IFS=$as_save_IFS
3778
3779if test $ac_prog_rejected = yes; then
3780  # We found a bogon in the path, so make sure we never use it.
3781  set dummy $ac_cv_prog_CC
3782  shift
3783  if test $# != 0; then
3784    # We chose a different compiler from the bogus one.
3785    # However, it has the same basename, so the bogon will be chosen
3786    # first if we set CC to just the basename; use the full file name.
3787    shift
3788    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3789  fi
3790fi
3791fi
3792fi
3793CC=$ac_cv_prog_CC
3794if test -n "$CC"; then
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796$as_echo "$CC" >&6; }
3797else
3798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
3800fi
3801
3802
3803fi
3804if test -z "$CC"; then
3805  if test -n "$ac_tool_prefix"; then
3806  for ac_prog in cl.exe
3807  do
3808    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_CC+:} false; then :
3813  $as_echo_n "(cached) " >&6
3814else
3815  if test -n "$CC"; then
3816  ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  test -z "$as_dir" && as_dir=.
3823    for ac_exec_ext in '' $ac_executable_extensions; do
3824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827    break 2
3828  fi
3829done
3830  done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
3837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838$as_echo "$CC" >&6; }
3839else
3840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842fi
3843
3844
3845    test -n "$CC" && break
3846  done
3847fi
3848if test -z "$CC"; then
3849  ac_ct_CC=$CC
3850  for ac_prog in cl.exe
3851do
3852  # Extract the first word of "$ac_prog", so it can be a program name with args.
3853set dummy $ac_prog; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  if test -n "$ac_ct_CC"; then
3860  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867    for ac_exec_ext in '' $ac_executable_extensions; do
3868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869    ac_cv_prog_ac_ct_CC="$ac_prog"
3870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871    break 2
3872  fi
3873done
3874  done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880if test -n "$ac_ct_CC"; then
3881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882$as_echo "$ac_ct_CC" >&6; }
3883else
3884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888
3889  test -n "$ac_ct_CC" && break
3890done
3891
3892  if test "x$ac_ct_CC" = x; then
3893    CC=""
3894  else
3895    case $cross_compiling:$ac_tool_warned in
3896yes:)
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899ac_tool_warned=yes ;;
3900esac
3901    CC=$ac_ct_CC
3902  fi
3903fi
3904
3905fi
3906
3907
3908test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error $? "no acceptable C compiler found in \$PATH
3911See \`config.log' for more details" "$LINENO" 5; }
3912
3913# Provide some information about the compiler.
3914$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915set X $ac_compile
3916ac_compiler=$2
3917for ac_option in --version -v -V -qversion; do
3918  { { ac_try="$ac_compiler $ac_option >&5"
3919case "(($ac_try" in
3920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921  *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924$as_echo "$ac_try_echo"; } >&5
3925  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926  ac_status=$?
3927  if test -s conftest.err; then
3928    sed '10a\
3929... rest of stderr output deleted ...
3930         10q' conftest.err >conftest.er1
3931    cat conftest.er1 >&5
3932  fi
3933  rm -f conftest.er1 conftest.err
3934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935  test $ac_status = 0; }
3936done
3937
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3939$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3940if ${ac_cv_c_compiler_gnu+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h.  */
3945
3946int
3947main ()
3948{
3949#ifndef __GNUC__
3950       choke me
3951#endif
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957if ac_fn_c_try_compile "$LINENO"; then :
3958  ac_compiler_gnu=yes
3959else
3960  ac_compiler_gnu=no
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963ac_cv_c_compiler_gnu=$ac_compiler_gnu
3964
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3967$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3968if test $ac_compiler_gnu = yes; then
3969  GCC=yes
3970else
3971  GCC=
3972fi
3973ac_test_CFLAGS=${CFLAGS+set}
3974ac_save_CFLAGS=$CFLAGS
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976$as_echo_n "checking whether $CC accepts -g... " >&6; }
3977if ${ac_cv_prog_cc_g+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  ac_save_c_werror_flag=$ac_c_werror_flag
3981   ac_c_werror_flag=yes
3982   ac_cv_prog_cc_g=no
3983   CFLAGS="-g"
3984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h.  */
3986
3987int
3988main ()
3989{
3990
3991  ;
3992  return 0;
3993}
3994_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then :
3996  ac_cv_prog_cc_g=yes
3997else
3998  CFLAGS=""
3999      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011
4012else
4013  ac_c_werror_flag=$ac_save_c_werror_flag
4014	 CFLAGS="-g"
4015	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016/* end confdefs.h.  */
4017
4018int
4019main ()
4020{
4021
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026if ac_fn_c_try_compile "$LINENO"; then :
4027  ac_cv_prog_cc_g=yes
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030fi
4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032fi
4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034   ac_c_werror_flag=$ac_save_c_werror_flag
4035fi
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037$as_echo "$ac_cv_prog_cc_g" >&6; }
4038if test "$ac_test_CFLAGS" = set; then
4039  CFLAGS=$ac_save_CFLAGS
4040elif test $ac_cv_prog_cc_g = yes; then
4041  if test "$GCC" = yes; then
4042    CFLAGS="-g -O2"
4043  else
4044    CFLAGS="-g"
4045  fi
4046else
4047  if test "$GCC" = yes; then
4048    CFLAGS="-O2"
4049  else
4050    CFLAGS=
4051  fi
4052fi
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055if ${ac_cv_prog_cc_c89+:} false; then :
4056  $as_echo_n "(cached) " >&6
4057else
4058  ac_cv_prog_cc_c89=no
4059ac_save_CC=$CC
4060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h.  */
4062#include <stdarg.h>
4063#include <stdio.h>
4064#include <sys/types.h>
4065#include <sys/stat.h>
4066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4067struct buf { int x; };
4068FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069static char *e (p, i)
4070     char **p;
4071     int i;
4072{
4073  return p[i];
4074}
4075static char *f (char * (*g) (char **, int), char **p, ...)
4076{
4077  char *s;
4078  va_list v;
4079  va_start (v,p);
4080  s = g (p, va_arg (v,int));
4081  va_end (v);
4082  return s;
4083}
4084
4085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4086   function prototypes and stuff, but not '\xHH' hex character constants.
4087   These don't provoke an error unfortunately, instead are silently treated
4088   as 'x'.  The following induces an error, until -std is added to get
4089   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4090   array size at least.  It's necessary to write '\x00'==0 to get something
4091   that's true only with -std.  */
4092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093
4094/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095   inside strings and character constants.  */
4096#define FOO(x) 'x'
4097int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098
4099int test (int i, double x);
4100struct s1 {int (*f) (int a);};
4101struct s2 {int (*f) (double a);};
4102int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103int argc;
4104char **argv;
4105int
4106main ()
4107{
4108return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4109  ;
4110  return 0;
4111}
4112_ACEOF
4113for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115do
4116  CC="$ac_save_CC $ac_arg"
4117  if ac_fn_c_try_compile "$LINENO"; then :
4118  ac_cv_prog_cc_c89=$ac_arg
4119fi
4120rm -f core conftest.err conftest.$ac_objext
4121  test "x$ac_cv_prog_cc_c89" != "xno" && break
4122done
4123rm -f conftest.$ac_ext
4124CC=$ac_save_CC
4125
4126fi
4127# AC_CACHE_VAL
4128case "x$ac_cv_prog_cc_c89" in
4129  x)
4130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131$as_echo "none needed" >&6; } ;;
4132  xno)
4133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134$as_echo "unsupported" >&6; } ;;
4135  *)
4136    CC="$CC $ac_cv_prog_cc_c89"
4137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139esac
4140if test "x$ac_cv_prog_cc_c89" != xno; then :
4141
4142fi
4143
4144ac_ext=c
4145ac_cpp='$CPP $CPPFLAGS'
4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4151$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4152set x ${MAKE-make}
4153ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4154if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157  cat >conftest.make <<\_ACEOF
4158SHELL = /bin/sh
4159all:
4160	@echo '@@@%%%=$(MAKE)=@@@%%%'
4161_ACEOF
4162# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4163case `${MAKE-make} -f conftest.make 2>/dev/null` in
4164  *@@@%%%=?*=@@@%%%*)
4165    eval ac_cv_prog_make_${ac_make}_set=yes;;
4166  *)
4167    eval ac_cv_prog_make_${ac_make}_set=no;;
4168esac
4169rm -f conftest.make
4170fi
4171if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173$as_echo "yes" >&6; }
4174  SET_MAKE=
4175else
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177$as_echo "no" >&6; }
4178  SET_MAKE="MAKE=${MAKE-make}"
4179fi
4180
4181for ac_prog in glibtool libtool15 libtool
4182do
4183  # Extract the first word of "$ac_prog", so it can be a program name with args.
4184set dummy $ac_prog; ac_word=$2
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186$as_echo_n "checking for $ac_word... " >&6; }
4187if ${ac_cv_prog_libtool+:} false; then :
4188  $as_echo_n "(cached) " >&6
4189else
4190  if test -n "$libtool"; then
4191  ac_cv_prog_libtool="$libtool" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198    for ac_exec_ext in '' $ac_executable_extensions; do
4199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200    ac_cv_prog_libtool="$ac_prog"
4201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205  done
4206IFS=$as_save_IFS
4207
4208fi
4209fi
4210libtool=$ac_cv_prog_libtool
4211if test -n "$libtool"; then
4212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool" >&5
4213$as_echo "$libtool" >&6; }
4214else
4215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216$as_echo "no" >&6; }
4217fi
4218
4219
4220  test -n "$libtool" && break
4221done
4222test -n "$libtool" || libtool="../libtool"
4223
4224
4225# add option to disable the evil rpath
4226# Check whether --enable-rpath was given.
4227if test "${enable_rpath+set}" = set; then :
4228  enableval=$enable_rpath; enable_rpath=$enableval
4229else
4230  enable_rpath=yes
4231fi
4232
4233
4234if test "x$enable_rpath" = xyes; then
4235    RPATH_VAL="-Wl,-rpath=\${libdir}"
4236fi
4237
4238
4239
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4242$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4243cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4244if eval \${cv_prog_cc_flag_$cache+:} false; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247
4248echo 'void f(void){}' >conftest.c
4249if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4250eval "cv_prog_cc_flag_$cache=yes"
4251else
4252eval "cv_prog_cc_flag_$cache=no"
4253fi
4254rm -f conftest conftest.o conftest.c
4255
4256fi
4257
4258if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4260$as_echo "yes" >&6; }
4261:
4262C99FLAG="-std=c99"
4263else
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
4266:
4267
4268fi
4269
4270
4271
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4273$as_echo_n "checking whether $CC supports -xc99... " >&6; }
4274cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4275if eval \${cv_prog_cc_flag_$cache+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278
4279echo 'void f(void){}' >conftest.c
4280if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4281eval "cv_prog_cc_flag_$cache=yes"
4282else
4283eval "cv_prog_cc_flag_$cache=no"
4284fi
4285rm -f conftest conftest.o conftest.c
4286
4287fi
4288
4289if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291$as_echo "yes" >&6; }
4292:
4293C99FLAG="-xc99"
4294else
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296$as_echo "no" >&6; }
4297:
4298
4299fi
4300
4301
4302ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4303if test "x$ac_cv_type_size_t" = xyes; then :
4304
4305else
4306
4307cat >>confdefs.h <<_ACEOF
4308#define size_t unsigned int
4309_ACEOF
4310
4311fi
4312
4313
4314
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4316$as_echo_n "checking whether $CC supports -O2... " >&6; }
4317cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4318if eval \${cv_prog_cc_flag_$cache+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321
4322echo 'void f(void){}' >conftest.c
4323if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4324eval "cv_prog_cc_flag_$cache=yes"
4325else
4326eval "cv_prog_cc_flag_$cache=no"
4327fi
4328rm -f conftest conftest.o conftest.c
4329
4330fi
4331
4332if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334$as_echo "yes" >&6; }
4335:
4336CFLAGS="$CFLAGS -O2"
4337else
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4340:
4341
4342fi
4343
4344
4345
4346
4347
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4349$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4350cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4351if eval \${cv_prog_cc_flag_$cache+:} false; then :
4352  $as_echo_n "(cached) " >&6
4353else
4354
4355echo 'void f(void){}' >conftest.c
4356if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4357eval "cv_prog_cc_flag_$cache=yes"
4358else
4359eval "cv_prog_cc_flag_$cache=no"
4360fi
4361rm -f conftest conftest.o conftest.c
4362
4363fi
4364
4365if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367$as_echo "yes" >&6; }
4368:
4369ERRFLAG="-Werror"
4370else
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
4373:
4374ERRFLAG="-errwarn"
4375fi
4376
4377
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4380$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4381cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4382if eval \${cv_prog_cc_flag_$cache+:} false; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385
4386echo 'void f(void){}' >conftest.c
4387if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4388eval "cv_prog_cc_flag_$cache=yes"
4389else
4390eval "cv_prog_cc_flag_$cache=no"
4391fi
4392rm -f conftest conftest.o conftest.c
4393
4394fi
4395
4396if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398$as_echo "yes" >&6; }
4399:
4400ERRFLAG="$ERRFLAG -Wall"
4401else
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
4404:
4405ERRFLAG="$ERRFLAG -errfmt"
4406fi
4407
4408
4409
4410
4411
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC" >&5
4413$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC... " >&6; }
4414cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" | $as_tr_sh`
4415if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418
4419echo '
4420#include "confdefs.h"
4421#include <stdlib.h>
4422#include <ctype.h>
4423#include <sys/time.h>
4424#ifdef HAVE_TIME_H
4425#include <time.h>
4426#endif
4427#include <unistd.h>
4428#ifdef HAVE_GETOPT_H
4429#include <getopt.h>
4430#endif
4431
4432int test() {
4433	int a;
4434	char **opts = NULL;
4435	struct timeval tv;
4436	char *t;
4437	time_t time = 0;
4438	char *buf = NULL;
4439	t = ctime_r(&time, buf);
4440	tv.tv_usec = 10;
4441	srandom(32);
4442	a = getopt(2, opts, "a");
4443	a = isascii(32);
4444	return a;
4445}
4446' > conftest.c
4447echo 'void f(){}' >>conftest.c
4448if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4449eval "cv_prog_cc_flag_needed_$cache=no"
4450else
4451
4452if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`"; then
4453eval "cv_prog_cc_flag_needed_$cache=yes"
4454else
4455eval "cv_prog_cc_flag_needed_$cache=fail"
4456#echo 'Test with flag fails too!'
4457#cat conftest.c
4458#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4459#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4460#exit 1
4461fi
4462
4463fi
4464rm -f conftest conftest.c conftest.o
4465
4466fi
4467
4468if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470$as_echo "yes" >&6; }
4471:
4472CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4473else
4474if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476$as_echo "no" >&6; }
4477#echo 'Test with flag is no!'
4478#cat conftest.c
4479#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4480#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4481#exit 1
4482:
4483
4484else
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4486$as_echo "failed" >&6; }
4487:
4488
4489fi
4490fi
4491
4492
4493
4494
4495
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
4498$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
4499cache=`$as_echo "$C99FLAG" | $as_tr_sh`
4500if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4501  $as_echo_n "(cached) " >&6
4502else
4503
4504echo '#include <stdbool.h>' > conftest.c
4505echo 'void f(){}' >>conftest.c
4506if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4507eval "cv_prog_cc_flag_needed_$cache=no"
4508else
4509
4510if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
4511eval "cv_prog_cc_flag_needed_$cache=yes"
4512else
4513eval "cv_prog_cc_flag_needed_$cache=fail"
4514#echo 'Test with flag fails too!'
4515#cat conftest.c
4516#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4517#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4518#exit 1
4519fi
4520
4521fi
4522rm -f conftest conftest.c conftest.o
4523
4524fi
4525
4526if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4528$as_echo "yes" >&6; }
4529:
4530CFLAGS="$CFLAGS $C99FLAG"
4531else
4532if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534$as_echo "no" >&6; }
4535#echo 'Test with flag is no!'
4536#cat conftest.c
4537#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4538#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4539#exit 1
4540:
4541
4542else
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4544$as_echo "failed" >&6; }
4545:
4546
4547fi
4548fi
4549
4550
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4552$as_echo_n "checking for inline... " >&6; }
4553if ${ac_cv_c_inline+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  ac_cv_c_inline=no
4557for ac_kw in inline __inline__ __inline; do
4558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h.  */
4560#ifndef __cplusplus
4561typedef int foo_t;
4562static $ac_kw foo_t static_foo () {return 0; }
4563$ac_kw foo_t foo () {return 0; }
4564#endif
4565
4566_ACEOF
4567if ac_fn_c_try_compile "$LINENO"; then :
4568  ac_cv_c_inline=$ac_kw
4569fi
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571  test "$ac_cv_c_inline" != no && break
4572done
4573
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4576$as_echo "$ac_cv_c_inline" >&6; }
4577
4578case $ac_cv_c_inline in
4579  inline | yes) ;;
4580  *)
4581    case $ac_cv_c_inline in
4582      no) ac_val=;;
4583      *) ac_val=$ac_cv_c_inline;;
4584    esac
4585    cat >>confdefs.h <<_ACEOF
4586#ifndef __cplusplus
4587#define inline $ac_val
4588#endif
4589_ACEOF
4590    ;;
4591esac
4592
4593ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4594if test "x$ac_cv_type_int8_t" = xyes; then :
4595
4596else
4597
4598cat >>confdefs.h <<_ACEOF
4599#define int8_t char
4600_ACEOF
4601
4602fi
4603
4604ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4605if test "x$ac_cv_type_int16_t" = xyes; then :
4606
4607else
4608
4609cat >>confdefs.h <<_ACEOF
4610#define int16_t short
4611_ACEOF
4612
4613fi
4614
4615ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4616if test "x$ac_cv_type_int32_t" = xyes; then :
4617
4618else
4619
4620cat >>confdefs.h <<_ACEOF
4621#define int32_t int
4622_ACEOF
4623
4624fi
4625
4626ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
4627if test "x$ac_cv_type_int64_t" = xyes; then :
4628
4629else
4630
4631cat >>confdefs.h <<_ACEOF
4632#define int64_t long long
4633_ACEOF
4634
4635fi
4636
4637ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4638if test "x$ac_cv_type_uint8_t" = xyes; then :
4639
4640else
4641
4642cat >>confdefs.h <<_ACEOF
4643#define uint8_t unsigned char
4644_ACEOF
4645
4646fi
4647
4648ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4649if test "x$ac_cv_type_uint16_t" = xyes; then :
4650
4651else
4652
4653cat >>confdefs.h <<_ACEOF
4654#define uint16_t unsigned short
4655_ACEOF
4656
4657fi
4658
4659ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4660if test "x$ac_cv_type_uint32_t" = xyes; then :
4661
4662else
4663
4664cat >>confdefs.h <<_ACEOF
4665#define uint32_t unsigned int
4666_ACEOF
4667
4668fi
4669
4670ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4671if test "x$ac_cv_type_uint64_t" = xyes; then :
4672
4673else
4674
4675cat >>confdefs.h <<_ACEOF
4676#define uint64_t unsigned long long
4677_ACEOF
4678
4679fi
4680
4681ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4682if test "x$ac_cv_type_ssize_t" = xyes; then :
4683
4684else
4685
4686cat >>confdefs.h <<_ACEOF
4687#define ssize_t int
4688_ACEOF
4689
4690fi
4691
4692
4693for ac_header in sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h arpa/inet.h sys/time.h sys/socket.h sys/select.h
4694do :
4695  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697"
4698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699  cat >>confdefs.h <<_ACEOF
4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701_ACEOF
4702
4703fi
4704
4705done
4706
4707for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h
4708do :
4709  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4711$ac_includes_default
4712#ifdef HAVE_NETINET_IN_SYSTM_H
4713#include <netinet/in_systm.h>
4714#endif
4715#ifdef HAVE_NETINET_IN_H
4716#include <netinet/in.h>
4717#endif
4718#ifdef HAVE_SYS_SOCKET_H
4719#include <sys/socket.h>
4720#endif
4721#ifdef HAVE_NET_IF_H
4722#include <net/if.h>
4723#endif
4724"
4725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4726  cat >>confdefs.h <<_ACEOF
4727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4728_ACEOF
4729
4730fi
4731
4732done
4733
4734# MinGW32 tests
4735for ac_header in winsock2.h ws2tcpip.h
4736do :
4737  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4738ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4739"
4740if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4741  cat >>confdefs.h <<_ACEOF
4742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743_ACEOF
4744
4745fi
4746
4747done
4748
4749
4750
4751ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4752$ac_includes_default
4753#ifdef HAVE_SYS_SOCKET_H
4754#  include <sys/socket.h>
4755#endif
4756#ifdef HAVE_WS2TCPIP_H
4757#  include <ws2tcpip.h>
4758#endif
4759
4760"
4761if test "x$ac_cv_type_socklen_t" = xyes; then :
4762
4763else
4764
4765$as_echo "#define socklen_t int" >>confdefs.h
4766
4767fi
4768
4769for ac_header in sys/param.h sys/mount.h
4770do :
4771  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4772ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4773
4774
4775   #if HAVE_SYS_PARAM_H
4776   # include <sys/param.h>
4777   #endif
4778
4779
4780"
4781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4782  cat >>confdefs.h <<_ACEOF
4783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4784_ACEOF
4785
4786fi
4787
4788done
4789
4790ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
4791#if HAVE_SYS_TYPES_H
4792# include <sys/types.h>
4793#endif
4794#if HAVE_NETINET_IN_H
4795# include <netinet/in.h>
4796#endif
4797"
4798if test "x$ac_cv_type_in_addr_t" = xyes; then :
4799
4800else
4801
4802$as_echo "#define in_addr_t uint32_t" >>confdefs.h
4803
4804fi
4805
4806ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
4807#if HAVE_SYS_TYPES_H
4808# include <sys/types.h>
4809#endif
4810#if HAVE_NETINET_IN_H
4811# include <netinet/in.h>
4812#endif
4813"
4814if test "x$ac_cv_type_in_port_t" = xyes; then :
4815
4816else
4817
4818$as_echo "#define in_port_t uint16_t" >>confdefs.h
4819
4820fi
4821
4822
4823# check to see if libraries are needed for these functions.
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4825$as_echo_n "checking for library containing socket... " >&6; }
4826if ${ac_cv_search_socket+:} false; then :
4827  $as_echo_n "(cached) " >&6
4828else
4829  ac_func_search_save_LIBS=$LIBS
4830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h.  */
4832
4833/* Override any GCC internal prototype to avoid an error.
4834   Use char because int might match the return type of a GCC
4835   builtin and then its argument prototype would still apply.  */
4836#ifdef __cplusplus
4837extern "C"
4838#endif
4839char socket ();
4840int
4841main ()
4842{
4843return socket ();
4844  ;
4845  return 0;
4846}
4847_ACEOF
4848for ac_lib in '' socket; do
4849  if test -z "$ac_lib"; then
4850    ac_res="none required"
4851  else
4852    ac_res=-l$ac_lib
4853    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4854  fi
4855  if ac_fn_c_try_link "$LINENO"; then :
4856  ac_cv_search_socket=$ac_res
4857fi
4858rm -f core conftest.err conftest.$ac_objext \
4859    conftest$ac_exeext
4860  if ${ac_cv_search_socket+:} false; then :
4861  break
4862fi
4863done
4864if ${ac_cv_search_socket+:} false; then :
4865
4866else
4867  ac_cv_search_socket=no
4868fi
4869rm conftest.$ac_ext
4870LIBS=$ac_func_search_save_LIBS
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4873$as_echo "$ac_cv_search_socket" >&6; }
4874ac_res=$ac_cv_search_socket
4875if test "$ac_res" != no; then :
4876  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4877
4878fi
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4881$as_echo_n "checking for library containing inet_pton... " >&6; }
4882if ${ac_cv_search_inet_pton+:} false; then :
4883  $as_echo_n "(cached) " >&6
4884else
4885  ac_func_search_save_LIBS=$LIBS
4886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888
4889/* Override any GCC internal prototype to avoid an error.
4890   Use char because int might match the return type of a GCC
4891   builtin and then its argument prototype would still apply.  */
4892#ifdef __cplusplus
4893extern "C"
4894#endif
4895char inet_pton ();
4896int
4897main ()
4898{
4899return inet_pton ();
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904for ac_lib in '' nsl; do
4905  if test -z "$ac_lib"; then
4906    ac_res="none required"
4907  else
4908    ac_res=-l$ac_lib
4909    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4910  fi
4911  if ac_fn_c_try_link "$LINENO"; then :
4912  ac_cv_search_inet_pton=$ac_res
4913fi
4914rm -f core conftest.err conftest.$ac_objext \
4915    conftest$ac_exeext
4916  if ${ac_cv_search_inet_pton+:} false; then :
4917  break
4918fi
4919done
4920if ${ac_cv_search_inet_pton+:} false; then :
4921
4922else
4923  ac_cv_search_inet_pton=no
4924fi
4925rm conftest.$ac_ext
4926LIBS=$ac_func_search_save_LIBS
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
4929$as_echo "$ac_cv_search_inet_pton" >&6; }
4930ac_res=$ac_cv_search_inet_pton
4931if test "$ac_res" != no; then :
4932  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4933
4934fi
4935
4936
4937
4938
4939# Check whether --with-ssl was given.
4940if test "${with_ssl+set}" = set; then :
4941  withval=$with_ssl;
4942
4943else
4944
4945            withval="yes"
4946
4947fi
4948
4949
4950    withval=$withval
4951    if test x_$withval != x_no; then
4952        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4953$as_echo_n "checking for SSL... " >&6; }
4954        if test x_$withval = x_ -o x_$withval = x_yes; then
4955            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
4956        fi
4957        for dir in $withval; do
4958            ssldir="$dir"
4959            if test -f "$dir/include/openssl/ssl.h"; then
4960                found_ssl="yes"
4961
4962cat >>confdefs.h <<_ACEOF
4963#define HAVE_SSL /**/
4964_ACEOF
4965
4966                                if test "$ssldir" != "/usr"; then
4967                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
4968                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
4969                fi
4970                break;
4971            fi
4972        done
4973        if test x_$found_ssl != x_yes; then
4974            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
4975        else
4976            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
4977$as_echo "found in $ssldir" >&6; }
4978            HAVE_SSL=yes
4979                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
4980                LDFLAGS="$LDFLAGS -L$ssldir/lib"
4981                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
4982
4983	if test "x$enable_rpath" = xyes; then
4984		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
4985			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
4986		fi
4987	fi
4988
4989            fi
4990
4991            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
4992$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
4993            LIBS="$LIBS -lcrypto"
4994            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
4995            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997
4998int
4999main ()
5000{
5001
5002                int HMAC_CTX_init(void);
5003                (void)HMAC_CTX_init();
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009if ac_fn_c_try_link "$LINENO"; then :
5010
5011                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012$as_echo "yes" >&6; }
5013
5014$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5015
5016
5017else
5018
5019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
5021                # check if -lwsock32 or -lgdi32 are needed.
5022                BAKLIBS="$LIBS"
5023                BAKSSLLIBS="$LIBSSL_LIBS"
5024                LIBS="$LIBS -lgdi32"
5025                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
5026                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
5027$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
5028                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030
5031int
5032main ()
5033{
5034
5035                    int HMAC_CTX_init(void);
5036                    (void)HMAC_CTX_init();
5037
5038  ;
5039  return 0;
5040}
5041_ACEOF
5042if ac_fn_c_try_link "$LINENO"; then :
5043
5044
5045$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5046
5047                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5048$as_echo "yes" >&6; }
5049
5050else
5051
5052                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054                    LIBS="$BAKLIBS"
5055                    LIBSSL_LIBS="$BAKSSLLIBS"
5056                    LIBS="$LIBS -ldl"
5057                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5058                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
5059$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
5060                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067                        int HMAC_CTX_init(void);
5068                        (void)HMAC_CTX_init();
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075
5076
5077$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5078
5079                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5080$as_echo "yes" >&6; }
5081
5082else
5083
5084                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085$as_echo "no" >&6; }
5086                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
5087
5088fi
5089rm -f core conftest.err conftest.$ac_objext \
5090    conftest$ac_exeext conftest.$ac_ext
5091
5092fi
5093rm -f core conftest.err conftest.$ac_objext \
5094    conftest$ac_exeext conftest.$ac_ext
5095
5096fi
5097rm -f core conftest.err conftest.$ac_objext \
5098    conftest$ac_exeext conftest.$ac_ext
5099        fi
5100
5101
5102	# openssl engine functionality needs dlopen().
5103	BAKLIBS="$LIBS"
5104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5105$as_echo_n "checking for library containing dlopen... " >&6; }
5106if ${ac_cv_search_dlopen+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  ac_func_search_save_LIBS=$LIBS
5110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112
5113/* Override any GCC internal prototype to avoid an error.
5114   Use char because int might match the return type of a GCC
5115   builtin and then its argument prototype would still apply.  */
5116#ifdef __cplusplus
5117extern "C"
5118#endif
5119char dlopen ();
5120int
5121main ()
5122{
5123return dlopen ();
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128for ac_lib in '' dl; do
5129  if test -z "$ac_lib"; then
5130    ac_res="none required"
5131  else
5132    ac_res=-l$ac_lib
5133    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5134  fi
5135  if ac_fn_c_try_link "$LINENO"; then :
5136  ac_cv_search_dlopen=$ac_res
5137fi
5138rm -f core conftest.err conftest.$ac_objext \
5139    conftest$ac_exeext
5140  if ${ac_cv_search_dlopen+:} false; then :
5141  break
5142fi
5143done
5144if ${ac_cv_search_dlopen+:} false; then :
5145
5146else
5147  ac_cv_search_dlopen=no
5148fi
5149rm conftest.$ac_ext
5150LIBS=$ac_func_search_save_LIBS
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5153$as_echo "$ac_cv_search_dlopen" >&6; }
5154ac_res=$ac_cv_search_dlopen
5155if test "$ac_res" != no; then :
5156  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5157
5158fi
5159
5160	if test "$LIBS" != "$BAKLIBS"; then
5161		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5162	fi
5163    fi
5164for ac_header in openssl/ssl.h
5165do :
5166  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
5167"
5168if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5169  cat >>confdefs.h <<_ACEOF
5170#define HAVE_OPENSSL_SSL_H 1
5171_ACEOF
5172
5173fi
5174
5175done
5176
5177for ac_header in openssl/err.h
5178do :
5179  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
5180"
5181if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5182  cat >>confdefs.h <<_ACEOF
5183#define HAVE_OPENSSL_ERR_H 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190for ac_header in openssl/rand.h
5191do :
5192  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
5193"
5194if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
5195  cat >>confdefs.h <<_ACEOF
5196#define HAVE_OPENSSL_RAND_H 1
5197_ACEOF
5198
5199fi
5200
5201done
5202
5203
5204
5205
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5208$as_echo_n "checking for getaddrinfo... " >&6; }
5209ac_cv_func_getaddrinfo=no
5210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212
5213#ifdef __cplusplus
5214extern "C"
5215{
5216#endif
5217char* getaddrinfo();
5218char* (*f) () = getaddrinfo;
5219#ifdef __cplusplus
5220}
5221#endif
5222int main() {
5223        ;
5224        return 0;
5225}
5226
5227_ACEOF
5228if ac_fn_c_try_link "$LINENO"; then :
5229  ac_cv_func_getaddrinfo="yes"
5230if test "$ac_cv_header_windows_h" = "yes"; then
5231
5232$as_echo "#define USE_WINSOCK 1" >>confdefs.h
5233
5234	USE_WINSOCK="1"
5235	LIBS="$LIBS -lws2_32"
5236fi
5237
5238else
5239  ORIGLIBS="$LIBS"
5240LIBS="$LIBS -lws2_32"
5241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243
5244#ifdef HAVE_WS2TCPIP_H
5245#include <ws2tcpip.h>
5246#endif
5247
5248int
5249main ()
5250{
5251
5252        (void)getaddrinfo(NULL, NULL, NULL, NULL);
5253
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_link "$LINENO"; then :
5260
5261ac_cv_func_getaddrinfo="yes"
5262
5263$as_echo "#define USE_WINSOCK 1" >>confdefs.h
5264
5265USE_WINSOCK="1"
5266
5267else
5268
5269ac_cv_func_getaddrinfo="no"
5270LIBS="$ORIGLIBS"
5271
5272fi
5273rm -f core conftest.err conftest.$ac_objext \
5274    conftest$ac_exeext conftest.$ac_ext
5275
5276fi
5277rm -f core conftest.err conftest.$ac_objext \
5278    conftest$ac_exeext conftest.$ac_ext
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5281$as_echo "$ac_cv_func_getaddrinfo" >&6; }
5282if test $ac_cv_func_getaddrinfo = yes; then
5283
5284$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5285
5286fi
5287
5288
5289LIBS_STC="$LIBS"
5290
5291
5292# check for ldns
5293
5294# Check whether --with-ldns was given.
5295if test "${with_ldns+set}" = set; then :
5296  withval=$with_ldns;
5297		specialldnsdir="$withval"
5298		CPPFLAGS="$CPPFLAGS -I$withval/include"
5299		LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
5300		LDNSDIR="$withval"
5301		LIBS="-lldns $LIBS"
5302		LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
5303
5304
5305fi
5306
5307
5308#AC_CHECK_HEADER(ldns/ldns.h,,  [
5309#	AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
5310#	], [AC_INCLUDES_DEFAULT]
5311#)
5312
5313for ac_func in isblank
5314do :
5315  ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
5316if test "x$ac_cv_func_isblank" = xyes; then :
5317  cat >>confdefs.h <<_ACEOF
5318#define HAVE_ISBLANK 1
5319_ACEOF
5320
5321fi
5322done
5323
5324
5325# check for ldns development source tree
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns devel source" >&5
5327$as_echo_n "checking for ldns devel source... " >&6; }
5328ldns_dev_dir=..
5329if test -f $ldns_dev_dir/ldns/util.h && \
5330	grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
5331	ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
5332	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ldns_dev_dir with $ldns_version" >&5
5333$as_echo "using $ldns_dev_dir with $ldns_version" >&6; }
5334	CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
5335	LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
5336	LIBS="-lldns $LIBS"
5337
5338$as_echo "#define HAVE_LIBLDNS 1" >>confdefs.h
5339
5340	LDNSDIR="$ldns_dev_dir"
5341	LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
5342else
5343	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
5346$as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
5347if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  ac_check_lib_save_LIBS=$LIBS
5351LIBS="-lldns  $LIBS"
5352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h.  */
5354
5355/* Override any GCC internal prototype to avoid an error.
5356   Use char because int might match the return type of a GCC
5357   builtin and then its argument prototype would still apply.  */
5358#ifdef __cplusplus
5359extern "C"
5360#endif
5361char ldns_rr_new ();
5362int
5363main ()
5364{
5365return ldns_rr_new ();
5366  ;
5367  return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_link "$LINENO"; then :
5371  ac_cv_lib_ldns_ldns_rr_new=yes
5372else
5373  ac_cv_lib_ldns_ldns_rr_new=no
5374fi
5375rm -f core conftest.err conftest.$ac_objext \
5376    conftest$ac_exeext conftest.$ac_ext
5377LIBS=$ac_check_lib_save_LIBS
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
5380$as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
5381if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
5382  cat >>confdefs.h <<_ACEOF
5383#define HAVE_LIBLDNS 1
5384_ACEOF
5385
5386  LIBS="-lldns $LIBS"
5387
5388else
5389
5390			as_fn_error $? "Can't find ldns library" "$LINENO" 5
5391
5392fi
5393
5394fi
5395
5396
5397
5398
5399# Check whether --with-trust-anchor was given.
5400if test "${with_trust_anchor+set}" = set; then :
5401  withval=$with_trust_anchor;
5402 LDNS_TRUST_ANCHOR_FILE="$withval"
5403
5404else
5405
5406 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
5407  if test "x$sysconfdir" = 'x${prefix}/etc' ; then
5408   if test "x$prefix" = 'xNONE' ; then
5409    LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
5410   else
5411    LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
5412   fi
5413  else
5414    LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
5415  fi
5416 fi
5417
5418fi
5419
5420
5421cat >>confdefs.h <<_ACEOF
5422#define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
5423_ACEOF
5424
5425
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
5427$as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
5428
5429
5430
5431ac_config_files="$ac_config_files Makefile drill.1"
5432
5433ac_config_headers="$ac_config_headers config.h"
5434
5435cat >confcache <<\_ACEOF
5436# This file is a shell script that caches the results of configure
5437# tests run on this system so they can be shared between configure
5438# scripts and configure runs, see configure's option --config-cache.
5439# It is not useful on other systems.  If it contains results you don't
5440# want to keep, you may remove or edit it.
5441#
5442# config.status only pays attention to the cache file if you give it
5443# the --recheck option to rerun configure.
5444#
5445# `ac_cv_env_foo' variables (set or unset) will be overridden when
5446# loading this file, other *unset* `ac_cv_foo' will be assigned the
5447# following values.
5448
5449_ACEOF
5450
5451# The following way of writing the cache mishandles newlines in values,
5452# but we know of no workaround that is simple, portable, and efficient.
5453# So, we kill variables containing newlines.
5454# Ultrix sh set writes to stderr and can't be redirected directly,
5455# and sets the high bit in the cache file unless we assign to the vars.
5456(
5457  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5458    eval ac_val=\$$ac_var
5459    case $ac_val in #(
5460    *${as_nl}*)
5461      case $ac_var in #(
5462      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5463$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5464      esac
5465      case $ac_var in #(
5466      _ | IFS | as_nl) ;; #(
5467      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5468      *) { eval $ac_var=; unset $ac_var;} ;;
5469      esac ;;
5470    esac
5471  done
5472
5473  (set) 2>&1 |
5474    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5475    *${as_nl}ac_space=\ *)
5476      # `set' does not quote correctly, so add quotes: double-quote
5477      # substitution turns \\\\ into \\, and sed turns \\ into \.
5478      sed -n \
5479	"s/'/'\\\\''/g;
5480	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5481      ;; #(
5482    *)
5483      # `set' quotes correctly as required by POSIX, so do not add quotes.
5484      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5485      ;;
5486    esac |
5487    sort
5488) |
5489  sed '
5490     /^ac_cv_env_/b end
5491     t clear
5492     :clear
5493     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5494     t end
5495     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5496     :end' >>confcache
5497if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5498  if test -w "$cache_file"; then
5499    if test "x$cache_file" != "x/dev/null"; then
5500      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5501$as_echo "$as_me: updating cache $cache_file" >&6;}
5502      if test ! -f "$cache_file" || test -h "$cache_file"; then
5503	cat confcache >"$cache_file"
5504      else
5505        case $cache_file in #(
5506        */* | ?:*)
5507	  mv -f confcache "$cache_file"$$ &&
5508	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5509        *)
5510	  mv -f confcache "$cache_file" ;;
5511	esac
5512      fi
5513    fi
5514  else
5515    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5516$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5517  fi
5518fi
5519rm -f confcache
5520
5521test "x$prefix" = xNONE && prefix=$ac_default_prefix
5522# Let make expand exec_prefix.
5523test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5524
5525DEFS=-DHAVE_CONFIG_H
5526
5527ac_libobjs=
5528ac_ltlibobjs=
5529U=
5530for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5531  # 1. Remove the extension, and $U if already installed.
5532  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5533  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5534  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5535  #    will be set to the directory where LIBOBJS objects are built.
5536  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5537  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5538done
5539LIBOBJS=$ac_libobjs
5540
5541LTLIBOBJS=$ac_ltlibobjs
5542
5543
5544
5545: "${CONFIG_STATUS=./config.status}"
5546ac_write_fail=0
5547ac_clean_files_save=$ac_clean_files
5548ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5550$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5551as_write_fail=0
5552cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5553#! $SHELL
5554# Generated by $as_me.
5555# Run this file to recreate the current configuration.
5556# Compiler output produced by configure, useful for debugging
5557# configure, is in config.log if it exists.
5558
5559debug=false
5560ac_cs_recheck=false
5561ac_cs_silent=false
5562
5563SHELL=\${CONFIG_SHELL-$SHELL}
5564export SHELL
5565_ASEOF
5566cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5567## -------------------- ##
5568## M4sh Initialization. ##
5569## -------------------- ##
5570
5571# Be more Bourne compatible
5572DUALCASE=1; export DUALCASE # for MKS sh
5573if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5574  emulate sh
5575  NULLCMD=:
5576  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5577  # is contrary to our usage.  Disable this feature.
5578  alias -g '${1+"$@"}'='"$@"'
5579  setopt NO_GLOB_SUBST
5580else
5581  case `(set -o) 2>/dev/null` in #(
5582  *posix*) :
5583    set -o posix ;; #(
5584  *) :
5585     ;;
5586esac
5587fi
5588
5589
5590as_nl='
5591'
5592export as_nl
5593# Printing a long string crashes Solaris 7 /usr/bin/printf.
5594as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5595as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5596as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5597# Prefer a ksh shell builtin over an external printf program on Solaris,
5598# but without wasting forks for bash or zsh.
5599if test -z "$BASH_VERSION$ZSH_VERSION" \
5600    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5601  as_echo='print -r --'
5602  as_echo_n='print -rn --'
5603elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5604  as_echo='printf %s\n'
5605  as_echo_n='printf %s'
5606else
5607  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5608    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5609    as_echo_n='/usr/ucb/echo -n'
5610  else
5611    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5612    as_echo_n_body='eval
5613      arg=$1;
5614      case $arg in #(
5615      *"$as_nl"*)
5616	expr "X$arg" : "X\\(.*\\)$as_nl";
5617	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5618      esac;
5619      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5620    '
5621    export as_echo_n_body
5622    as_echo_n='sh -c $as_echo_n_body as_echo'
5623  fi
5624  export as_echo_body
5625  as_echo='sh -c $as_echo_body as_echo'
5626fi
5627
5628# The user is always right.
5629if test "${PATH_SEPARATOR+set}" != set; then
5630  PATH_SEPARATOR=:
5631  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5632    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5633      PATH_SEPARATOR=';'
5634  }
5635fi
5636
5637
5638# IFS
5639# We need space, tab and new line, in precisely that order.  Quoting is
5640# there to prevent editors from complaining about space-tab.
5641# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5642# splitting by setting IFS to empty value.)
5643IFS=" ""	$as_nl"
5644
5645# Find who we are.  Look in the path if we contain no directory separator.
5646as_myself=
5647case $0 in #((
5648  *[\\/]* ) as_myself=$0 ;;
5649  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652  IFS=$as_save_IFS
5653  test -z "$as_dir" && as_dir=.
5654    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5655  done
5656IFS=$as_save_IFS
5657
5658     ;;
5659esac
5660# We did not find ourselves, most probably we were run as `sh COMMAND'
5661# in which case we are not to be found in the path.
5662if test "x$as_myself" = x; then
5663  as_myself=$0
5664fi
5665if test ! -f "$as_myself"; then
5666  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5667  exit 1
5668fi
5669
5670# Unset variables that we do not need and which cause bugs (e.g. in
5671# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5672# suppresses any "Segmentation fault" message there.  '((' could
5673# trigger a bug in pdksh 5.2.14.
5674for as_var in BASH_ENV ENV MAIL MAILPATH
5675do eval test x\${$as_var+set} = xset \
5676  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5677done
5678PS1='$ '
5679PS2='> '
5680PS4='+ '
5681
5682# NLS nuisances.
5683LC_ALL=C
5684export LC_ALL
5685LANGUAGE=C
5686export LANGUAGE
5687
5688# CDPATH.
5689(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5690
5691
5692# as_fn_error STATUS ERROR [LINENO LOG_FD]
5693# ----------------------------------------
5694# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5695# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5696# script with STATUS, using 1 if that was 0.
5697as_fn_error ()
5698{
5699  as_status=$1; test $as_status -eq 0 && as_status=1
5700  if test "$4"; then
5701    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5702    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5703  fi
5704  $as_echo "$as_me: error: $2" >&2
5705  as_fn_exit $as_status
5706} # as_fn_error
5707
5708
5709# as_fn_set_status STATUS
5710# -----------------------
5711# Set $? to STATUS, without forking.
5712as_fn_set_status ()
5713{
5714  return $1
5715} # as_fn_set_status
5716
5717# as_fn_exit STATUS
5718# -----------------
5719# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5720as_fn_exit ()
5721{
5722  set +e
5723  as_fn_set_status $1
5724  exit $1
5725} # as_fn_exit
5726
5727# as_fn_unset VAR
5728# ---------------
5729# Portably unset VAR.
5730as_fn_unset ()
5731{
5732  { eval $1=; unset $1;}
5733}
5734as_unset=as_fn_unset
5735# as_fn_append VAR VALUE
5736# ----------------------
5737# Append the text in VALUE to the end of the definition contained in VAR. Take
5738# advantage of any shell optimizations that allow amortized linear growth over
5739# repeated appends, instead of the typical quadratic growth present in naive
5740# implementations.
5741if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5742  eval 'as_fn_append ()
5743  {
5744    eval $1+=\$2
5745  }'
5746else
5747  as_fn_append ()
5748  {
5749    eval $1=\$$1\$2
5750  }
5751fi # as_fn_append
5752
5753# as_fn_arith ARG...
5754# ------------------
5755# Perform arithmetic evaluation on the ARGs, and store the result in the
5756# global $as_val. Take advantage of shells that can avoid forks. The arguments
5757# must be portable across $(()) and expr.
5758if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5759  eval 'as_fn_arith ()
5760  {
5761    as_val=$(( $* ))
5762  }'
5763else
5764  as_fn_arith ()
5765  {
5766    as_val=`expr "$@" || test $? -eq 1`
5767  }
5768fi # as_fn_arith
5769
5770
5771if expr a : '\(a\)' >/dev/null 2>&1 &&
5772   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5773  as_expr=expr
5774else
5775  as_expr=false
5776fi
5777
5778if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5779  as_basename=basename
5780else
5781  as_basename=false
5782fi
5783
5784if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5785  as_dirname=dirname
5786else
5787  as_dirname=false
5788fi
5789
5790as_me=`$as_basename -- "$0" ||
5791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5792	 X"$0" : 'X\(//\)$' \| \
5793	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5794$as_echo X/"$0" |
5795    sed '/^.*\/\([^/][^/]*\)\/*$/{
5796	    s//\1/
5797	    q
5798	  }
5799	  /^X\/\(\/\/\)$/{
5800	    s//\1/
5801	    q
5802	  }
5803	  /^X\/\(\/\).*/{
5804	    s//\1/
5805	    q
5806	  }
5807	  s/.*/./; q'`
5808
5809# Avoid depending upon Character Ranges.
5810as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5811as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5812as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5813as_cr_digits='0123456789'
5814as_cr_alnum=$as_cr_Letters$as_cr_digits
5815
5816ECHO_C= ECHO_N= ECHO_T=
5817case `echo -n x` in #(((((
5818-n*)
5819  case `echo 'xy\c'` in
5820  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5821  xy)  ECHO_C='\c';;
5822  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5823       ECHO_T='	';;
5824  esac;;
5825*)
5826  ECHO_N='-n';;
5827esac
5828
5829rm -f conf$$ conf$$.exe conf$$.file
5830if test -d conf$$.dir; then
5831  rm -f conf$$.dir/conf$$.file
5832else
5833  rm -f conf$$.dir
5834  mkdir conf$$.dir 2>/dev/null
5835fi
5836if (echo >conf$$.file) 2>/dev/null; then
5837  if ln -s conf$$.file conf$$ 2>/dev/null; then
5838    as_ln_s='ln -s'
5839    # ... but there are two gotchas:
5840    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5841    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5842    # In both cases, we have to default to `cp -p'.
5843    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5844      as_ln_s='cp -p'
5845  elif ln conf$$.file conf$$ 2>/dev/null; then
5846    as_ln_s=ln
5847  else
5848    as_ln_s='cp -p'
5849  fi
5850else
5851  as_ln_s='cp -p'
5852fi
5853rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5854rmdir conf$$.dir 2>/dev/null
5855
5856
5857# as_fn_mkdir_p
5858# -------------
5859# Create "$as_dir" as a directory, including parents if necessary.
5860as_fn_mkdir_p ()
5861{
5862
5863  case $as_dir in #(
5864  -*) as_dir=./$as_dir;;
5865  esac
5866  test -d "$as_dir" || eval $as_mkdir_p || {
5867    as_dirs=
5868    while :; do
5869      case $as_dir in #(
5870      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5871      *) as_qdir=$as_dir;;
5872      esac
5873      as_dirs="'$as_qdir' $as_dirs"
5874      as_dir=`$as_dirname -- "$as_dir" ||
5875$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5876	 X"$as_dir" : 'X\(//\)[^/]' \| \
5877	 X"$as_dir" : 'X\(//\)$' \| \
5878	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5879$as_echo X"$as_dir" |
5880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5881	    s//\1/
5882	    q
5883	  }
5884	  /^X\(\/\/\)[^/].*/{
5885	    s//\1/
5886	    q
5887	  }
5888	  /^X\(\/\/\)$/{
5889	    s//\1/
5890	    q
5891	  }
5892	  /^X\(\/\).*/{
5893	    s//\1/
5894	    q
5895	  }
5896	  s/.*/./; q'`
5897      test -d "$as_dir" && break
5898    done
5899    test -z "$as_dirs" || eval "mkdir $as_dirs"
5900  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5901
5902
5903} # as_fn_mkdir_p
5904if mkdir -p . 2>/dev/null; then
5905  as_mkdir_p='mkdir -p "$as_dir"'
5906else
5907  test -d ./-p && rmdir ./-p
5908  as_mkdir_p=false
5909fi
5910
5911if test -x / >/dev/null 2>&1; then
5912  as_test_x='test -x'
5913else
5914  if ls -dL / >/dev/null 2>&1; then
5915    as_ls_L_option=L
5916  else
5917    as_ls_L_option=
5918  fi
5919  as_test_x='
5920    eval sh -c '\''
5921      if test -d "$1"; then
5922	test -d "$1/.";
5923      else
5924	case $1 in #(
5925	-*)set "./$1";;
5926	esac;
5927	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5928	???[sx]*):;;*)false;;esac;fi
5929    '\'' sh
5930  '
5931fi
5932as_executable_p=$as_test_x
5933
5934# Sed expression to map a string onto a valid CPP name.
5935as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5936
5937# Sed expression to map a string onto a valid variable name.
5938as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5939
5940
5941exec 6>&1
5942## ----------------------------------- ##
5943## Main body of $CONFIG_STATUS script. ##
5944## ----------------------------------- ##
5945_ASEOF
5946test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5947
5948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5949# Save the log message, to keep $0 and so on meaningful, and to
5950# report actual input values of CONFIG_FILES etc. instead of their
5951# values after options handling.
5952ac_log="
5953This file was extended by ldns $as_me 1.6.17, which was
5954generated by GNU Autoconf 2.68.  Invocation command line was
5955
5956  CONFIG_FILES    = $CONFIG_FILES
5957  CONFIG_HEADERS  = $CONFIG_HEADERS
5958  CONFIG_LINKS    = $CONFIG_LINKS
5959  CONFIG_COMMANDS = $CONFIG_COMMANDS
5960  $ $0 $@
5961
5962on `(hostname || uname -n) 2>/dev/null | sed 1q`
5963"
5964
5965_ACEOF
5966
5967case $ac_config_files in *"
5968"*) set x $ac_config_files; shift; ac_config_files=$*;;
5969esac
5970
5971case $ac_config_headers in *"
5972"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5973esac
5974
5975
5976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5977# Files that config.status was made for.
5978config_files="$ac_config_files"
5979config_headers="$ac_config_headers"
5980
5981_ACEOF
5982
5983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5984ac_cs_usage="\
5985\`$as_me' instantiates files and other configuration actions
5986from templates according to the current configuration.  Unless the files
5987and actions are specified as TAGs, all are instantiated by default.
5988
5989Usage: $0 [OPTION]... [TAG]...
5990
5991  -h, --help       print this help, then exit
5992  -V, --version    print version number and configuration settings, then exit
5993      --config     print configuration, then exit
5994  -q, --quiet, --silent
5995                   do not print progress messages
5996  -d, --debug      don't remove temporary files
5997      --recheck    update $as_me by reconfiguring in the same conditions
5998      --file=FILE[:TEMPLATE]
5999                   instantiate the configuration file FILE
6000      --header=FILE[:TEMPLATE]
6001                   instantiate the configuration header FILE
6002
6003Configuration files:
6004$config_files
6005
6006Configuration headers:
6007$config_headers
6008
6009Report bugs to <libdns@nlnetlabs.nl>."
6010
6011_ACEOF
6012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6013ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6014ac_cs_version="\\
6015ldns config.status 1.6.17
6016configured by $0, generated by GNU Autoconf 2.68,
6017  with options \\"\$ac_cs_config\\"
6018
6019Copyright (C) 2010 Free Software Foundation, Inc.
6020This config.status script is free software; the Free Software Foundation
6021gives unlimited permission to copy, distribute and modify it."
6022
6023ac_pwd='$ac_pwd'
6024srcdir='$srcdir'
6025test -n "\$AWK" || AWK=awk
6026_ACEOF
6027
6028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6029# The default lists apply if the user does not specify any file.
6030ac_need_defaults=:
6031while test $# != 0
6032do
6033  case $1 in
6034  --*=?*)
6035    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6036    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6037    ac_shift=:
6038    ;;
6039  --*=)
6040    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6041    ac_optarg=
6042    ac_shift=:
6043    ;;
6044  *)
6045    ac_option=$1
6046    ac_optarg=$2
6047    ac_shift=shift
6048    ;;
6049  esac
6050
6051  case $ac_option in
6052  # Handling of the options.
6053  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6054    ac_cs_recheck=: ;;
6055  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6056    $as_echo "$ac_cs_version"; exit ;;
6057  --config | --confi | --conf | --con | --co | --c )
6058    $as_echo "$ac_cs_config"; exit ;;
6059  --debug | --debu | --deb | --de | --d | -d )
6060    debug=: ;;
6061  --file | --fil | --fi | --f )
6062    $ac_shift
6063    case $ac_optarg in
6064    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6065    '') as_fn_error $? "missing file argument" ;;
6066    esac
6067    as_fn_append CONFIG_FILES " '$ac_optarg'"
6068    ac_need_defaults=false;;
6069  --header | --heade | --head | --hea )
6070    $ac_shift
6071    case $ac_optarg in
6072    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6073    esac
6074    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6075    ac_need_defaults=false;;
6076  --he | --h)
6077    # Conflict between --help and --header
6078    as_fn_error $? "ambiguous option: \`$1'
6079Try \`$0 --help' for more information.";;
6080  --help | --hel | -h )
6081    $as_echo "$ac_cs_usage"; exit ;;
6082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6083  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6084    ac_cs_silent=: ;;
6085
6086  # This is an error.
6087  -*) as_fn_error $? "unrecognized option: \`$1'
6088Try \`$0 --help' for more information." ;;
6089
6090  *) as_fn_append ac_config_targets " $1"
6091     ac_need_defaults=false ;;
6092
6093  esac
6094  shift
6095done
6096
6097ac_configure_extra_args=
6098
6099if $ac_cs_silent; then
6100  exec 6>/dev/null
6101  ac_configure_extra_args="$ac_configure_extra_args --silent"
6102fi
6103
6104_ACEOF
6105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6106if \$ac_cs_recheck; then
6107  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6108  shift
6109  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6110  CONFIG_SHELL='$SHELL'
6111  export CONFIG_SHELL
6112  exec "\$@"
6113fi
6114
6115_ACEOF
6116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6117exec 5>>config.log
6118{
6119  echo
6120  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6121## Running $as_me. ##
6122_ASBOX
6123  $as_echo "$ac_log"
6124} >&5
6125
6126_ACEOF
6127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6128_ACEOF
6129
6130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6131
6132# Handling of arguments.
6133for ac_config_target in $ac_config_targets
6134do
6135  case $ac_config_target in
6136    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6137    "drill.1") CONFIG_FILES="$CONFIG_FILES drill.1" ;;
6138    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6139
6140  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6141  esac
6142done
6143
6144
6145# If the user did not use the arguments to specify the items to instantiate,
6146# then the envvar interface is used.  Set only those that are not.
6147# We use the long form for the default assignment because of an extremely
6148# bizarre bug on SunOS 4.1.3.
6149if $ac_need_defaults; then
6150  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6151  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6152fi
6153
6154# Have a temporary directory for convenience.  Make it in the build tree
6155# simply because there is no reason against having it here, and in addition,
6156# creating and moving files from /tmp can sometimes cause problems.
6157# Hook for its removal unless debugging.
6158# Note that there is a small window in which the directory will not be cleaned:
6159# after its creation but before its name has been assigned to `$tmp'.
6160$debug ||
6161{
6162  tmp= ac_tmp=
6163  trap 'exit_status=$?
6164  : "${ac_tmp:=$tmp}"
6165  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6166' 0
6167  trap 'as_fn_exit 1' 1 2 13 15
6168}
6169# Create a (secure) tmp directory for tmp files.
6170
6171{
6172  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6173  test -d "$tmp"
6174}  ||
6175{
6176  tmp=./conf$$-$RANDOM
6177  (umask 077 && mkdir "$tmp")
6178} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6179ac_tmp=$tmp
6180
6181# Set up the scripts for CONFIG_FILES section.
6182# No need to generate them if there are no CONFIG_FILES.
6183# This happens for instance with `./config.status config.h'.
6184if test -n "$CONFIG_FILES"; then
6185
6186
6187ac_cr=`echo X | tr X '\015'`
6188# On cygwin, bash can eat \r inside `` if the user requested igncr.
6189# But we know of no other shell where ac_cr would be empty at this
6190# point, so we can use a bashism as a fallback.
6191if test "x$ac_cr" = x; then
6192  eval ac_cr=\$\'\\r\'
6193fi
6194ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6195if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6196  ac_cs_awk_cr='\\r'
6197else
6198  ac_cs_awk_cr=$ac_cr
6199fi
6200
6201echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6202_ACEOF
6203
6204
6205{
6206  echo "cat >conf$$subs.awk <<_ACEOF" &&
6207  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6208  echo "_ACEOF"
6209} >conf$$subs.sh ||
6210  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6211ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6212ac_delim='%!_!# '
6213for ac_last_try in false false false false false :; do
6214  . ./conf$$subs.sh ||
6215    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6216
6217  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6218  if test $ac_delim_n = $ac_delim_num; then
6219    break
6220  elif $ac_last_try; then
6221    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6222  else
6223    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6224  fi
6225done
6226rm -f conf$$subs.sh
6227
6228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6229cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6230_ACEOF
6231sed -n '
6232h
6233s/^/S["/; s/!.*/"]=/
6234p
6235g
6236s/^[^!]*!//
6237:repl
6238t repl
6239s/'"$ac_delim"'$//
6240t delim
6241:nl
6242h
6243s/\(.\{148\}\)..*/\1/
6244t more1
6245s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6246p
6247n
6248b repl
6249:more1
6250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6251p
6252g
6253s/.\{148\}//
6254t nl
6255:delim
6256h
6257s/\(.\{148\}\)..*/\1/
6258t more2
6259s/["\\]/\\&/g; s/^/"/; s/$/"/
6260p
6261b
6262:more2
6263s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6264p
6265g
6266s/.\{148\}//
6267t delim
6268' <conf$$subs.awk | sed '
6269/^[^""]/{
6270  N
6271  s/\n//
6272}
6273' >>$CONFIG_STATUS || ac_write_fail=1
6274rm -f conf$$subs.awk
6275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6276_ACAWK
6277cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6278  for (key in S) S_is_set[key] = 1
6279  FS = ""
6280
6281}
6282{
6283  line = $ 0
6284  nfields = split(line, field, "@")
6285  substed = 0
6286  len = length(field[1])
6287  for (i = 2; i < nfields; i++) {
6288    key = field[i]
6289    keylen = length(key)
6290    if (S_is_set[key]) {
6291      value = S[key]
6292      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6293      len += length(value) + length(field[++i])
6294      substed = 1
6295    } else
6296      len += 1 + keylen
6297  }
6298
6299  print line
6300}
6301
6302_ACAWK
6303_ACEOF
6304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6305if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6306  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6307else
6308  cat
6309fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6310  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6311_ACEOF
6312
6313# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6314# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6315# trailing colons and then remove the whole line if VPATH becomes empty
6316# (actually we leave an empty line to preserve line numbers).
6317if test "x$srcdir" = x.; then
6318  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6319h
6320s///
6321s/^/:/
6322s/[	 ]*$/:/
6323s/:\$(srcdir):/:/g
6324s/:\${srcdir}:/:/g
6325s/:@srcdir@:/:/g
6326s/^:*//
6327s/:*$//
6328x
6329s/\(=[	 ]*\).*/\1/
6330G
6331s/\n//
6332s/^[^=]*=[	 ]*$//
6333}'
6334fi
6335
6336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6337fi # test -n "$CONFIG_FILES"
6338
6339# Set up the scripts for CONFIG_HEADERS section.
6340# No need to generate them if there are no CONFIG_HEADERS.
6341# This happens for instance with `./config.status Makefile'.
6342if test -n "$CONFIG_HEADERS"; then
6343cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6344BEGIN {
6345_ACEOF
6346
6347# Transform confdefs.h into an awk script `defines.awk', embedded as
6348# here-document in config.status, that substitutes the proper values into
6349# config.h.in to produce config.h.
6350
6351# Create a delimiter string that does not exist in confdefs.h, to ease
6352# handling of long lines.
6353ac_delim='%!_!# '
6354for ac_last_try in false false :; do
6355  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6356  if test -z "$ac_tt"; then
6357    break
6358  elif $ac_last_try; then
6359    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6360  else
6361    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6362  fi
6363done
6364
6365# For the awk script, D is an array of macro values keyed by name,
6366# likewise P contains macro parameters if any.  Preserve backslash
6367# newline sequences.
6368
6369ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6370sed -n '
6371s/.\{148\}/&'"$ac_delim"'/g
6372t rset
6373:rset
6374s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6375t def
6376d
6377:def
6378s/\\$//
6379t bsnl
6380s/["\\]/\\&/g
6381s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6382D["\1"]=" \3"/p
6383s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6384d
6385:bsnl
6386s/["\\]/\\&/g
6387s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6388D["\1"]=" \3\\\\\\n"\\/p
6389t cont
6390s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6391t cont
6392d
6393:cont
6394n
6395s/.\{148\}/&'"$ac_delim"'/g
6396t clear
6397:clear
6398s/\\$//
6399t bsnlc
6400s/["\\]/\\&/g; s/^/"/; s/$/"/p
6401d
6402:bsnlc
6403s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6404b cont
6405' <confdefs.h | sed '
6406s/'"$ac_delim"'/"\\\
6407"/g' >>$CONFIG_STATUS || ac_write_fail=1
6408
6409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6410  for (key in D) D_is_set[key] = 1
6411  FS = ""
6412}
6413/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6414  line = \$ 0
6415  split(line, arg, " ")
6416  if (arg[1] == "#") {
6417    defundef = arg[2]
6418    mac1 = arg[3]
6419  } else {
6420    defundef = substr(arg[1], 2)
6421    mac1 = arg[2]
6422  }
6423  split(mac1, mac2, "(") #)
6424  macro = mac2[1]
6425  prefix = substr(line, 1, index(line, defundef) - 1)
6426  if (D_is_set[macro]) {
6427    # Preserve the white space surrounding the "#".
6428    print prefix "define", macro P[macro] D[macro]
6429    next
6430  } else {
6431    # Replace #undef with comments.  This is necessary, for example,
6432    # in the case of _POSIX_SOURCE, which is predefined and required
6433    # on some systems where configure will not decide to define it.
6434    if (defundef == "undef") {
6435      print "/*", prefix defundef, macro, "*/"
6436      next
6437    }
6438  }
6439}
6440{ print }
6441_ACAWK
6442_ACEOF
6443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6444  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6445fi # test -n "$CONFIG_HEADERS"
6446
6447
6448eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6449shift
6450for ac_tag
6451do
6452  case $ac_tag in
6453  :[FHLC]) ac_mode=$ac_tag; continue;;
6454  esac
6455  case $ac_mode$ac_tag in
6456  :[FHL]*:*);;
6457  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6458  :[FH]-) ac_tag=-:-;;
6459  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6460  esac
6461  ac_save_IFS=$IFS
6462  IFS=:
6463  set x $ac_tag
6464  IFS=$ac_save_IFS
6465  shift
6466  ac_file=$1
6467  shift
6468
6469  case $ac_mode in
6470  :L) ac_source=$1;;
6471  :[FH])
6472    ac_file_inputs=
6473    for ac_f
6474    do
6475      case $ac_f in
6476      -) ac_f="$ac_tmp/stdin";;
6477      *) # Look for the file first in the build tree, then in the source tree
6478	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6479	 # because $ac_f cannot contain `:'.
6480	 test -f "$ac_f" ||
6481	   case $ac_f in
6482	   [\\/$]*) false;;
6483	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6484	   esac ||
6485	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6486      esac
6487      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6488      as_fn_append ac_file_inputs " '$ac_f'"
6489    done
6490
6491    # Let's still pretend it is `configure' which instantiates (i.e., don't
6492    # use $as_me), people would be surprised to read:
6493    #    /* config.h.  Generated by config.status.  */
6494    configure_input='Generated from '`
6495	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6496	`' by configure.'
6497    if test x"$ac_file" != x-; then
6498      configure_input="$ac_file.  $configure_input"
6499      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6500$as_echo "$as_me: creating $ac_file" >&6;}
6501    fi
6502    # Neutralize special characters interpreted by sed in replacement strings.
6503    case $configure_input in #(
6504    *\&* | *\|* | *\\* )
6505       ac_sed_conf_input=`$as_echo "$configure_input" |
6506       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6507    *) ac_sed_conf_input=$configure_input;;
6508    esac
6509
6510    case $ac_tag in
6511    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6512      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6513    esac
6514    ;;
6515  esac
6516
6517  ac_dir=`$as_dirname -- "$ac_file" ||
6518$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6519	 X"$ac_file" : 'X\(//\)[^/]' \| \
6520	 X"$ac_file" : 'X\(//\)$' \| \
6521	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6522$as_echo X"$ac_file" |
6523    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6524	    s//\1/
6525	    q
6526	  }
6527	  /^X\(\/\/\)[^/].*/{
6528	    s//\1/
6529	    q
6530	  }
6531	  /^X\(\/\/\)$/{
6532	    s//\1/
6533	    q
6534	  }
6535	  /^X\(\/\).*/{
6536	    s//\1/
6537	    q
6538	  }
6539	  s/.*/./; q'`
6540  as_dir="$ac_dir"; as_fn_mkdir_p
6541  ac_builddir=.
6542
6543case "$ac_dir" in
6544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6545*)
6546  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6547  # A ".." for each directory in $ac_dir_suffix.
6548  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6549  case $ac_top_builddir_sub in
6550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6552  esac ;;
6553esac
6554ac_abs_top_builddir=$ac_pwd
6555ac_abs_builddir=$ac_pwd$ac_dir_suffix
6556# for backward compatibility:
6557ac_top_builddir=$ac_top_build_prefix
6558
6559case $srcdir in
6560  .)  # We are building in place.
6561    ac_srcdir=.
6562    ac_top_srcdir=$ac_top_builddir_sub
6563    ac_abs_top_srcdir=$ac_pwd ;;
6564  [\\/]* | ?:[\\/]* )  # Absolute name.
6565    ac_srcdir=$srcdir$ac_dir_suffix;
6566    ac_top_srcdir=$srcdir
6567    ac_abs_top_srcdir=$srcdir ;;
6568  *) # Relative name.
6569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6570    ac_top_srcdir=$ac_top_build_prefix$srcdir
6571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6572esac
6573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6574
6575
6576  case $ac_mode in
6577  :F)
6578  #
6579  # CONFIG_FILE
6580  #
6581
6582_ACEOF
6583
6584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6585# If the template does not know about datarootdir, expand it.
6586# FIXME: This hack should be removed a few years after 2.60.
6587ac_datarootdir_hack=; ac_datarootdir_seen=
6588ac_sed_dataroot='
6589/datarootdir/ {
6590  p
6591  q
6592}
6593/@datadir@/p
6594/@docdir@/p
6595/@infodir@/p
6596/@localedir@/p
6597/@mandir@/p'
6598case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6599*datarootdir*) ac_datarootdir_seen=yes;;
6600*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6602$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6603_ACEOF
6604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6605  ac_datarootdir_hack='
6606  s&@datadir@&$datadir&g
6607  s&@docdir@&$docdir&g
6608  s&@infodir@&$infodir&g
6609  s&@localedir@&$localedir&g
6610  s&@mandir@&$mandir&g
6611  s&\\\${datarootdir}&$datarootdir&g' ;;
6612esac
6613_ACEOF
6614
6615# Neutralize VPATH when `$srcdir' = `.'.
6616# Shell code in configure.ac might set extrasub.
6617# FIXME: do we really want to maintain this feature?
6618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6619ac_sed_extra="$ac_vpsub
6620$extrasub
6621_ACEOF
6622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6623:t
6624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6625s|@configure_input@|$ac_sed_conf_input|;t t
6626s&@top_builddir@&$ac_top_builddir_sub&;t t
6627s&@top_build_prefix@&$ac_top_build_prefix&;t t
6628s&@srcdir@&$ac_srcdir&;t t
6629s&@abs_srcdir@&$ac_abs_srcdir&;t t
6630s&@top_srcdir@&$ac_top_srcdir&;t t
6631s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6632s&@builddir@&$ac_builddir&;t t
6633s&@abs_builddir@&$ac_abs_builddir&;t t
6634s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6635$ac_datarootdir_hack
6636"
6637eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6638  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6639
6640test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6641  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6642  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6643      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6645which seems to be undefined.  Please make sure it is defined" >&5
6646$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6647which seems to be undefined.  Please make sure it is defined" >&2;}
6648
6649  rm -f "$ac_tmp/stdin"
6650  case $ac_file in
6651  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6652  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6653  esac \
6654  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6655 ;;
6656  :H)
6657  #
6658  # CONFIG_HEADER
6659  #
6660  if test x"$ac_file" != x-; then
6661    {
6662      $as_echo "/* $configure_input  */" \
6663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6664    } >"$ac_tmp/config.h" \
6665      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6666    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6667      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6668$as_echo "$as_me: $ac_file is unchanged" >&6;}
6669    else
6670      rm -f "$ac_file"
6671      mv "$ac_tmp/config.h" "$ac_file" \
6672	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6673    fi
6674  else
6675    $as_echo "/* $configure_input  */" \
6676      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6677      || as_fn_error $? "could not create -" "$LINENO" 5
6678  fi
6679 ;;
6680
6681
6682  esac
6683
6684done # for ac_tag
6685
6686
6687as_fn_exit 0
6688_ACEOF
6689ac_clean_files=$ac_clean_files_save
6690
6691test $ac_write_fail = 0 ||
6692  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6693
6694
6695# configure is writing to config.log, and then calls config.status.
6696# config.status does its own redirection, appending to config.log.
6697# Unfortunately, on DOS this fails, as config.log is still kept open
6698# by configure, so config.status won't be able to write to it; its
6699# output is simply discarded.  So we exec the FD to /dev/null,
6700# effectively closing config.log, so it can be properly (re)opened and
6701# appended to by config.status.  When coming back to configure, we
6702# need to make the FD available again.
6703if test "$no_create" != yes; then
6704  ac_cs_success=:
6705  ac_config_status_args=
6706  test "$silent" = yes &&
6707    ac_config_status_args="$ac_config_status_args --quiet"
6708  exec 5>/dev/null
6709  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6710  exec 5>>config.log
6711  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6712  # would make configure fail if this is the last instruction.
6713  $ac_cs_success || as_fn_exit 1
6714fi
6715if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6717$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6718fi
6719
6720