]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ldns/drill/configure
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ldns / drill / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ldns 1.6.16.
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
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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   }
83 fi
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.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
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
104 IFS=$as_save_IFS
105
106      ;;
107 esac
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.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
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.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if 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
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test 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
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
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
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
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
212 fi; }
213 IFS=$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+"$@"}
232 fi
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
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_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.
280 as_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.
290 as_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.
340 if (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   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # 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.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # 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.
375 as_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
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_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.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_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
463 ECHO_C= ECHO_N= ECHO_T=
464 case `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';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (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
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
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   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_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.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 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.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='ldns'
562 PACKAGE_TARNAME='libdns'
563 PACKAGE_VERSION='1.6.16'
564 PACKAGE_STRING='ldns 1.6.16'
565 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
566 PACKAGE_URL=''
567
568 ac_unique_file="drill.c"
569 # Factoring default headers for most tests.
570 ac_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
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 LDNS_TRUST_ANCHOR_FILE
608 LDNSDIR
609 LIBS_STC
610 RUNTIME_PATH
611 HAVE_SSL
612 libtool
613 SET_MAKE
614 EGREP
615 GREP
616 CPP
617 OBJEXT
618 EXEEXT
619 ac_ct_CC
620 CPPFLAGS
621 LDFLAGS
622 CFLAGS
623 CC
624 target_alias
625 host_alias
626 build_alias
627 LIBS
628 ECHO_T
629 ECHO_N
630 ECHO_C
631 DEFS
632 mandir
633 localedir
634 libdir
635 psdir
636 pdfdir
637 dvidir
638 htmldir
639 infodir
640 docdir
641 oldincludedir
642 includedir
643 localstatedir
644 sharedstatedir
645 sysconfdir
646 datadir
647 datarootdir
648 libexecdir
649 sbindir
650 bindir
651 program_transform_name
652 prefix
653 exec_prefix
654 PACKAGE_URL
655 PACKAGE_BUGREPORT
656 PACKAGE_STRING
657 PACKAGE_VERSION
658 PACKAGE_TARNAME
659 PACKAGE_NAME
660 PATH_SEPARATOR
661 SHELL'
662 ac_subst_files=''
663 ac_user_opts='
664 enable_option_checking
665 enable_rpath
666 with_ssl
667 with_ldns
668 with_trust_anchor
669 '
670       ac_precious_vars='build_alias
671 host_alias
672 target_alias
673 CC
674 CFLAGS
675 LDFLAGS
676 LIBS
677 CPPFLAGS
678 CPP'
679
680
681 # Initialize some variables set by options.
682 ac_init_help=
683 ac_init_version=false
684 ac_unrecognized_opts=
685 ac_unrecognized_sep=
686 # The variables have the same names as the options, with
687 # dashes changed to underlines.
688 cache_file=/dev/null
689 exec_prefix=NONE
690 no_create=
691 no_recursion=
692 prefix=NONE
693 program_prefix=NONE
694 program_suffix=NONE
695 program_transform_name=s,x,x,
696 silent=
697 site=
698 srcdir=
699 verbose=
700 x_includes=NONE
701 x_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.)
709 bindir='${exec_prefix}/bin'
710 sbindir='${exec_prefix}/sbin'
711 libexecdir='${exec_prefix}/libexec'
712 datarootdir='${prefix}/share'
713 datadir='${datarootdir}'
714 sysconfdir='${prefix}/etc'
715 sharedstatedir='${prefix}/com'
716 localstatedir='${prefix}/var'
717 includedir='${prefix}/include'
718 oldincludedir='/usr/include'
719 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
720 infodir='${datarootdir}/info'
721 htmldir='${docdir}'
722 dvidir='${docdir}'
723 pdfdir='${docdir}'
724 psdir='${docdir}'
725 libdir='${exec_prefix}/lib'
726 localedir='${datarootdir}/locale'
727 mandir='${datarootdir}/man'
728
729 ac_prev=
730 ac_dashdash=
731 for ac_option
732 do
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'
1065 Try \`$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
1087 done
1088
1089 if test -n "$ac_prev"; then
1090   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091   as_fn_error $? "missing argument to $ac_option"
1092 fi
1093
1094 if 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
1100 fi
1101
1102 # Check all directory arguments for consistency.
1103 for 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
1107 do
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"
1121 done
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.
1126 build=$build_alias
1127 host=$host_alias
1128 target=$target_alias
1129
1130 # FIXME: To remove some day.
1131 if 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
1139 fi
1140
1141 ac_tool_prefix=
1142 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144 test "$silent" = yes && exec 6>/dev/null
1145
1146
1147 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di=`ls -di .` &&
1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150   as_fn_error $? "working directory cannot be determined"
1151 test "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.
1156 if 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
1186 else
1187   ac_srcdir_defaulted=no
1188 fi
1189 if 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"
1192 fi
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194 ac_abs_confdir=`(
1195         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1196         pwd)`
1197 # When building in place, set srcdir=.
1198 if test "$ac_abs_confdir" = "$ac_pwd"; then
1199   srcdir=.
1200 fi
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.
1204 case $srcdir in
1205 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 esac
1207 for 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}
1212 done
1213
1214 #
1215 # Report the --help message.
1216 #
1217 if 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.16 to adapt to many kinds of systems.
1222
1223 Usage: $0 [OPTION]... [VAR=VALUE]...
1224
1225 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226 VAR=VALUE.  See below for descriptions of some of the useful variables.
1227
1228 Defaults for the options are specified in brackets.
1229
1230 Configuration:
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
1241 Installation 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
1247 By default, \`make install' will install all the files in
1248 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1249 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250 for instance \`--prefix=\$HOME'.
1251
1252 For better control, use the options below.
1253
1254 Fine 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
1278 fi
1279
1280 if test -n "$ac_init_help"; then
1281   case $ac_init_help in
1282      short | recursive ) echo "Configuration of ldns 1.6.16:";;
1283    esac
1284   cat <<\_ACEOF
1285
1286 Optional 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
1292 Optional 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
1305 Some 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
1315 Use these variables to override the choices made by `configure' or to help
1316 it to find libraries and programs with nonstandard names/locations.
1317
1318 Report bugs to <libdns@nlnetlabs.nl>.
1319 _ACEOF
1320 ac_status=$?
1321 fi
1322
1323 if 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
1331 case "$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 ;;
1341 esac
1342 ac_abs_top_builddir=$ac_pwd
1343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344 # for backward compatibility:
1345 ac_top_builddir=$ac_top_build_prefix
1346
1347 case $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 ;;
1360 esac
1361 ac_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
1376 fi
1377
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1380   cat <<\_ACEOF
1381 ldns configure 1.6.16
1382 generated by GNU Autoconf 2.68
1383
1384 Copyright (C) 2010 Free Software Foundation, Inc.
1385 This configure script is free software; the Free Software Foundation
1386 gives unlimited permission to copy, distribute and modify it.
1387 _ACEOF
1388   exit
1389 fi
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.
1398 ac_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"
1403 case "(($ac_try" in
1404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405   *) ac_try_echo=$ac_try;;
1406 esac
1407 eval 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
1422 else
1423   $as_echo "$as_me: failed program was:" >&5
1424 sed 's/^/| /' conftest.$ac_ext >&5
1425
1426         ac_retval=1
1427 fi
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.
1436 ac_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"
1440 case "(($ac_try" in
1441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442   *) ac_try_echo=$ac_try;;
1443 esac
1444 eval 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
1459 else
1460   $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1462
1463     ac_retval=1
1464 fi
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.
1475 ac_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; }
1481 if eval \${$3+:} false; then :
1482   $as_echo_n "(cached) " >&6
1483 fi
1484 eval ac_res=\$$3
1485                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1487 else
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; }
1491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492 /* end confdefs.h.  */
1493 $4
1494 #include <$2>
1495 _ACEOF
1496 if ac_fn_c_try_compile "$LINENO"; then :
1497   ac_header_compiler=yes
1498 else
1499   ac_header_compiler=no
1500 fi
1501 rm -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; }
1508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509 /* end confdefs.h.  */
1510 #include <$2>
1511 _ACEOF
1512 if ac_fn_c_try_cpp "$LINENO"; then :
1513   ac_header_preproc=yes
1514 else
1515   ac_header_preproc=no
1516 fi
1517 rm -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?
1522 case $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     ;;
1545 esac
1546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 $as_echo_n "checking for $2... " >&6; }
1548 if eval \${$3+:} false; then :
1549   $as_echo_n "(cached) " >&6
1550 else
1551   eval "$3=\$ac_header_compiler"
1552 fi
1553 eval ac_res=\$$3
1554                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1555 $as_echo "$ac_res" >&6; }
1556 fi
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.
1565 ac_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"
1569 case "(($ac_try" in
1570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571   *) ac_try_echo=$ac_try;;
1572 esac
1573 eval 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;;
1582 esac
1583 eval 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
1590 else
1591   $as_echo "$as_me: program exited with status $ac_status" >&5
1592        $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595        ac_retval=$ac_status
1596 fi
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.
1607 ac_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; }
1612 if eval \${$3+:} false; then :
1613   $as_echo_n "(cached) " >&6
1614 else
1615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h.  */
1617 $4
1618 #include <$2>
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621   eval "$3=yes"
1622 else
1623   eval "$3=no"
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626 fi
1627 eval 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.
1638 ac_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; }
1643 if eval \${$3+:} false; then :
1644   $as_echo_n "(cached) " >&6
1645 else
1646   eval "$3=no"
1647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h.  */
1649 $4
1650 int
1651 main ()
1652 {
1653 if (sizeof ($2))
1654          return 0;
1655   ;
1656   return 0;
1657 }
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 int
1664 main ()
1665 {
1666 if (sizeof (($2)))
1667             return 0;
1668   ;
1669   return 0;
1670 }
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673
1674 else
1675   eval "$3=yes"
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 fi
1681 eval 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.
1691 ac_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"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval 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
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
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
1737 ac_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; }
1742 if eval \${$3+:} false; then :
1743   $as_echo_n "(cached) " >&6
1744 else
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
1768 extern "C"
1769 #endif
1770 char $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
1775 choke me
1776 #endif
1777
1778 int
1779 main ()
1780 {
1781 return $2 ();
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_link "$LINENO"; then :
1787   eval "$3=yes"
1788 else
1789   eval "$3=no"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext \
1792     conftest$ac_exeext conftest.$ac_ext
1793 fi
1794 eval 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
1800 cat >config.log <<_ACEOF
1801 This file contains any messages produced by compilers while
1802 running configure, to aid debugging if configure makes a mistake.
1803
1804 It was created by ldns $as_me 1.6.16, which was
1805 generated by GNU Autoconf 2.68.  Invocation command line was
1806
1807   $ $0 $@
1808
1809 _ACEOF
1810 exec 5>>config.log
1811 {
1812 cat <<_ASUNAME
1813 ## --------- ##
1814 ## Platform. ##
1815 ## --------- ##
1816
1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821 uname -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
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841     $as_echo "PATH: $as_dir"
1842   done
1843 IFS=$as_save_IFS
1844
1845 } >&5
1846
1847 cat >&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.
1862 ac_configure_args=
1863 ac_configure_args0=
1864 ac_configure_args1=
1865 ac_must_keep_next=false
1866 for ac_pass in 1 2
1867 do
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
1901 done
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.
1910 trap '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
1997 for ac_signal in 1 2 13 15; do
1998   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1999 done
2000 ac_signal=0
2001
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2004
2005 $as_echo "/* confdefs.h */" > confdefs.h
2006
2007 # Predefined preprocessor variables.
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_NAME "$PACKAGE_NAME"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2027 _ACEOF
2028
2029 cat >>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.
2036 ac_site_file1=NONE
2037 ac_site_file2=NONE
2038 if 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
2045 elif test "x$prefix" != xNONE; then
2046   ac_site_file1=$prefix/share/config.site
2047   ac_site_file2=$prefix/etc/config.site
2048 else
2049   ac_site_file1=$ac_default_prefix/share/config.site
2050   ac_site_file2=$ac_default_prefix/etc/config.site
2051 fi
2052 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2053 do
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;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See \`config.log' for more details" "$LINENO" 5; }
2064   fi
2065 done
2066
2067 if 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
2078 else
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
2082 fi
2083
2084 # Check that the precious variables saved in the cache have kept the same
2085 # value.
2086 ac_cache_corrupted=false
2087 for 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
2133 done
2134 if $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
2140 fi
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2144
2145 ac_ext=c
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_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 21
2158 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2159 # 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2160 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2161 #            Fix ACX_MALLOC for redefined malloc error.
2162 #            Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2163 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2164 # 2011-11-01 Fix FLTO test for llvm on Lion.
2165 # 2011-08-01 Fix nonblock test (broken at v13).
2166 # 2011-08-01 Fix autoconf 2.68 warnings
2167 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2168 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2169 # 2010-07-02 Add check for ss_family (for minix).
2170 # 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2171 # 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2172 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS seperate, -ldl
2173 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2174 # 2010-01-20 added AHX_COONFIG_STRLCAT
2175 # 2009-07-14 U_CHAR detection improved for windows crosscompile.
2176 #            added ACX_FUNC_MALLOC
2177 #            fixup some #if to #ifdef
2178 #            NONBLOCKING test for mingw crosscompile.
2179 # 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2180 # 2009-07-03 fixup LDFLAGS for empty ssl dir.
2181 #
2182 # Automates some of the checking constructs.  Aims at portability for POSIX.
2183 # Documentation for functions is below.
2184 #
2185 # the following macro's are provided in this file:
2186 # (see below for details on each macro).
2187 #
2188 # ACX_ESCAPE_BACKSLASH          - escape backslashes in var for C-preproc.
2189 # ACX_RSRC_VERSION              - create windows resource version number.
2190 # ACX_CHECK_COMPILER_FLAG       - see if cc supports a flag.
2191 # ACX_CHECK_ERROR_FLAGS         - see which flag is -werror (used below).
2192 # ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2193 # ACX_DEPFLAG                   - find cc dependency flags.
2194 # ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2195 # ACX_CHECK_FORMAT_ATTRIBUTE    - find cc printf format syntax.
2196 # ACX_CHECK_UNUSED_ATTRIBUTE    - find cc variable unused syntax.
2197 # ACX_CHECK_FLTO                - see if cc supports -flto and use it if so.
2198 # ACX_LIBTOOL_C_ONLY            - create libtool for C only, improved.
2199 # ACX_TYPE_U_CHAR               - u_char type.
2200 # ACX_TYPE_RLIM_T               - rlim_t type.
2201 # ACX_TYPE_SOCKLEN_T            - socklen_t type.
2202 # ACX_TYPE_IN_ADDR_T            - in_addr_t type.
2203 # ACX_TYPE_IN_PORT_T            - in_port_t type.
2204 # ACX_ARG_RPATH                 - add --disable-rpath option.
2205 # ACX_WITH_SSL                  - add --with-ssl option, link -lcrypto.
2206 # ACX_WITH_SSL_OPTIONAL         - add --with-ssl option, link -lcrypto,
2207 #                                 where --without-ssl is also accepted
2208 # ACX_LIB_SSL                   - setup to link -lssl.
2209 # ACX_SYS_LARGEFILE             - improved sys_largefile, fseeko, >2G files.
2210 # ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2211 # ACX_FUNC_DEPRECATED           - see if func is deprecated.
2212 # ACX_CHECK_NONBLOCKING_BROKEN  - see if nonblocking sockets really work.
2213 # ACX_MKDIR_ONE_ARG             - determine mkdir(2) number of arguments.
2214 # ACX_FUNC_IOCTLSOCKET          - find ioctlsocket, portably.
2215 # ACX_FUNC_MALLOC               - check malloc, define replacement .
2216 # AHX_CONFIG_FORMAT_ATTRIBUTE   - config.h text for format.
2217 # AHX_CONFIG_UNUSED_ATTRIBUTE   - config.h text for unused.
2218 # AHX_CONFIG_FSEEKO             - define fseeko, ftello fallback.
2219 # AHX_CONFIG_RAND_MAX           - define RAND_MAX if needed.
2220 # AHX_CONFIG_MAXHOSTNAMELEN     - define MAXHOSTNAMELEN if needed.
2221 # AHX_CONFIG_IPV6_MIN_MTU       - define IPV6_MIN_MTU if needed.
2222 # AHX_CONFIG_SNPRINTF           - snprintf compat prototype
2223 # AHX_CONFIG_INET_PTON          - inet_pton compat prototype
2224 # AHX_CONFIG_INET_NTOP          - inet_ntop compat prototype
2225 # AHX_CONFIG_INET_ATON          - inet_aton compat prototype
2226 # AHX_CONFIG_MEMMOVE            - memmove compat prototype
2227 # AHX_CONFIG_STRLCAT            - strlcat compat prototype
2228 # AHX_CONFIG_STRLCPY            - strlcpy compat prototype
2229 # AHX_CONFIG_GMTIME_R           - gmtime_r compat prototype
2230 # AHX_CONFIG_W32_SLEEP          - w32 compat for sleep
2231 # AHX_CONFIG_W32_USLEEP         - w32 compat for usleep
2232 # AHX_CONFIG_W32_RANDOM         - w32 compat for random
2233 # AHX_CONFIG_W32_SRANDOM        - w32 compat for srandom
2234 # AHX_CONFIG_W32_FD_SET_T       - w32 detection of FD_SET_T.
2235 # ACX_CFLAGS_STRIP              - strip one flag from CFLAGS
2236 # ACX_STRIP_EXT_FLAGS           - strip extension flags from CFLAGS
2237 # AHX_CONFIG_FLAG_OMITTED       - define omitted flag
2238 # AHX_CONFIG_FLAG_EXT           - define omitted extension flag
2239 # AHX_CONFIG_EXT_FLAGS          - define the stripped extension flags
2240 # ACX_CHECK_MEMCMP_SIGNED       - check if memcmp uses signed characters.
2241 # AHX_MEMCMP_BROKEN             - replace memcmp func for CHECK_MEMCMP_SIGNED.
2242 # ACX_CHECK_SS_FAMILY           - check for sockaddr_storage.ss_family
2243 #
2244
2245
2246
2247
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 OURCPPFLAGS=''
2347 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2348 OURCFLAGS='-g'
2349 CFLAGS=${CFLAGS:-${OURCFLAGS}}
2350
2351 $as_echo "#define WINVER 0x0502" >>confdefs.h
2352
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375     for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382   done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2391 else
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415     for ac_exec_ext in '' $ac_executable_extensions; do
2416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422   done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2430 $as_echo "$ac_ct_CC" >&6; }
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_CC" = x; then
2437     CC=""
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445     CC=$ac_ct_CC
2446   fi
2447 else
2448   CC="$ac_cv_prog_CC"
2449 fi
2450
2451 if test -z "$CC"; then
2452           if test -n "$ac_tool_prefix"; then
2453     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_CC+:} false; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   if test -n "$CC"; then
2461   ac_cv_prog_CC="$CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466   IFS=$as_save_IFS
2467   test -z "$as_dir" && as_dir=.
2468     for ac_exec_ext in '' $ac_executable_extensions; do
2469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470     ac_cv_prog_CC="${ac_tool_prefix}cc"
2471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472     break 2
2473   fi
2474 done
2475   done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 CC=$ac_cv_prog_CC
2481 if test -n "$CC"; then
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2483 $as_echo "$CC" >&6; }
2484 else
2485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489
2490   fi
2491 fi
2492 if test -z "$CC"; then
2493   # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_CC+:} false; then :
2498   $as_echo_n "(cached) " >&6
2499 else
2500   if test -n "$CC"; then
2501   ac_cv_prog_CC="$CC" # Let the user override the test.
2502 else
2503   ac_prog_rejected=no
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509     for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512        ac_prog_rejected=yes
2513        continue
2514      fi
2515     ac_cv_prog_CC="cc"
2516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520   done
2521 IFS=$as_save_IFS
2522
2523 if test $ac_prog_rejected = yes; then
2524   # We found a bogon in the path, so make sure we never use it.
2525   set dummy $ac_cv_prog_CC
2526   shift
2527   if test $# != 0; then
2528     # We chose a different compiler from the bogus one.
2529     # However, it has the same basename, so the bogon will be chosen
2530     # first if we set CC to just the basename; use the full file name.
2531     shift
2532     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2533   fi
2534 fi
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2541 else
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546
2547 fi
2548 if test -z "$CC"; then
2549   if test -n "$ac_tool_prefix"; then
2550   for ac_prog in cl.exe
2551   do
2552     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   if test -n "$CC"; then
2560   ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574   done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589     test -n "$CC" && break
2590   done
2591 fi
2592 if test -z "$CC"; then
2593   ac_ct_CC=$CC
2594   for ac_prog in cl.exe
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2601   $as_echo_n "(cached) " >&6
2602 else
2603   if test -n "$ac_ct_CC"; then
2604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611     for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_ac_ct_CC="$ac_prog"
2614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618   done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2626 $as_echo "$ac_ct_CC" >&6; }
2627 else
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633   test -n "$ac_ct_CC" && break
2634 done
2635
2636   if test "x$ac_ct_CC" = x; then
2637     CC=""
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     CC=$ac_ct_CC
2646   fi
2647 fi
2648
2649 fi
2650
2651
2652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $? "no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details" "$LINENO" 5; }
2656
2657 # Provide some information about the compiler.
2658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2659 set X $ac_compile
2660 ac_compiler=$2
2661 for ac_option in --version -v -V -qversion; do
2662   { { ac_try="$ac_compiler $ac_option >&5"
2663 case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2670   ac_status=$?
2671   if test -s conftest.err; then
2672     sed '10a\
2673 ... rest of stderr output deleted ...
2674          10q' conftest.err >conftest.er1
2675     cat conftest.er1 >&5
2676   fi
2677   rm -f conftest.er1 conftest.err
2678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679   test $ac_status = 0; }
2680 done
2681
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2697 # of exeext.
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2699 $as_echo_n "checking whether the C compiler works... " >&6; }
2700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701
2702 # The possible output files:
2703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2704
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2707 do
2708   case $ac_file in
2709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2710     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711   esac
2712 done
2713 rm -f $ac_rmfiles
2714
2715 if { { ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722   (eval "$ac_link_default") 2>&5
2723   ac_status=$?
2724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725   test $ac_status = 0; }; then :
2726   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2728 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2729 # so that the user can short-circuit this test for compilers unknown to
2730 # Autoconf.
2731 for ac_file in $ac_files ''
2732 do
2733   test -f "$ac_file" || continue
2734   case $ac_file in
2735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2736         ;;
2737     [ab].out )
2738         # We found the default executable, but exeext='' is most
2739         # certainly right.
2740         break;;
2741     *.* )
2742         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2743         then :; else
2744            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745         fi
2746         # We set ac_cv_exeext here because the later test for it is not
2747         # safe: cross compilers may not add the suffix if given an `-o'
2748         # argument, so we may need to know it at that point already.
2749         # Even if this section looks crufty: it has the advantage of
2750         # actually working.
2751         break;;
2752     * )
2753         break;;
2754   esac
2755 done
2756 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757
2758 else
2759   ac_file=''
2760 fi
2761 if test -z "$ac_file"; then :
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 $as_echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 as_fn_error 77 "C compiler cannot create executables
2770 See \`config.log' for more details" "$LINENO" 5; }
2771 else
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2776 $as_echo_n "checking for C compiler default output file name... " >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2778 $as_echo "$ac_file" >&6; }
2779 ac_exeext=$ac_cv_exeext
2780
2781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2782 ac_clean_files=$ac_clean_files_save
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2784 $as_echo_n "checking for suffix of executables... " >&6; }
2785 if { { ac_try="$ac_link"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792   (eval "$ac_link") 2>&5
2793   ac_status=$?
2794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795   test $ac_status = 0; }; then :
2796   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2797 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2798 # work properly (i.e., refer to `conftest.exe'), while it won't with
2799 # `rm'.
2800 for ac_file in conftest.exe conftest conftest.*; do
2801   test -f "$ac_file" || continue
2802   case $ac_file in
2803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805           break;;
2806     * ) break;;
2807   esac
2808 done
2809 else
2810   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2813 See \`config.log' for more details" "$LINENO" 5; }
2814 fi
2815 rm -f conftest conftest$ac_cv_exeext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2817 $as_echo "$ac_cv_exeext" >&6; }
2818
2819 rm -f conftest.$ac_ext
2820 EXEEXT=$ac_cv_exeext
2821 ac_exeext=$EXEEXT
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h.  */
2824 #include <stdio.h>
2825 int
2826 main ()
2827 {
2828 FILE *f = fopen ("conftest.out", "w");
2829  return ferror (f) || fclose (f) != 0;
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 ac_clean_files="$ac_clean_files conftest.out"
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2839 $as_echo_n "checking whether we are cross compiling... " >&6; }
2840 if test "$cross_compiling" != yes; then
2841   { { ac_try="$ac_link"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848   (eval "$ac_link") 2>&5
2849   ac_status=$?
2850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851   test $ac_status = 0; }
2852   if { ac_try='./conftest$ac_cv_exeext'
2853   { { case "(($ac_try" in
2854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855   *) ac_try_echo=$ac_try;;
2856 esac
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859   (eval "$ac_try") 2>&5
2860   ac_status=$?
2861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862   test $ac_status = 0; }; }; then
2863     cross_compiling=no
2864   else
2865     if test "$cross_compiling" = maybe; then
2866         cross_compiling=yes
2867     else
2868         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 as_fn_error $? "cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details" "$LINENO" 5; }
2873     fi
2874   fi
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2877 $as_echo "$cross_compiling" >&6; }
2878
2879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2880 ac_clean_files=$ac_clean_files_save
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2882 $as_echo_n "checking for suffix of object files... " >&6; }
2883 if ${ac_cv_objext+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h.  */
2888
2889 int
2890 main ()
2891 {
2892
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.o conftest.obj
2898 if { { ac_try="$ac_compile"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905   (eval "$ac_compile") 2>&5
2906   ac_status=$?
2907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908   test $ac_status = 0; }; then :
2909   for ac_file in conftest.o conftest.obj conftest.*; do
2910   test -f "$ac_file" || continue;
2911   case $ac_file in
2912     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2913     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2914        break;;
2915   esac
2916 done
2917 else
2918   $as_echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details" "$LINENO" 5; }
2925 fi
2926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2929 $as_echo "$ac_cv_objext" >&6; }
2930 OBJEXT=$ac_cv_objext
2931 ac_objext=$OBJEXT
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2934 if ${ac_cv_c_compiler_gnu+:} false; then :
2935   $as_echo_n "(cached) " >&6
2936 else
2937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h.  */
2939
2940 int
2941 main ()
2942 {
2943 #ifndef __GNUC__
2944        choke me
2945 #endif
2946
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952   ac_compiler_gnu=yes
2953 else
2954   ac_compiler_gnu=no
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2962 if test $ac_compiler_gnu = yes; then
2963   GCC=yes
2964 else
2965   GCC=
2966 fi
2967 ac_test_CFLAGS=${CFLAGS+set}
2968 ac_save_CFLAGS=$CFLAGS
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2971 if ${ac_cv_prog_cc_g+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   ac_save_c_werror_flag=$ac_c_werror_flag
2975    ac_c_werror_flag=yes
2976    ac_cv_prog_cc_g=no
2977    CFLAGS="-g"
2978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h.  */
2980
2981 int
2982 main ()
2983 {
2984
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 if ac_fn_c_try_compile "$LINENO"; then :
2990   ac_cv_prog_cc_g=yes
2991 else
2992   CFLAGS=""
2993       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h.  */
2995
2996 int
2997 main ()
2998 {
2999
3000   ;
3001   return 0;
3002 }
3003 _ACEOF
3004 if ac_fn_c_try_compile "$LINENO"; then :
3005
3006 else
3007   ac_c_werror_flag=$ac_save_c_werror_flag
3008          CFLAGS="-g"
3009          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 if ac_fn_c_try_compile "$LINENO"; then :
3021   ac_cv_prog_cc_g=yes
3022 fi
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 fi
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 fi
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028    ac_c_werror_flag=$ac_save_c_werror_flag
3029 fi
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3031 $as_echo "$ac_cv_prog_cc_g" >&6; }
3032 if test "$ac_test_CFLAGS" = set; then
3033   CFLAGS=$ac_save_CFLAGS
3034 elif test $ac_cv_prog_cc_g = yes; then
3035   if test "$GCC" = yes; then
3036     CFLAGS="-g -O2"
3037   else
3038     CFLAGS="-g"
3039   fi
3040 else
3041   if test "$GCC" = yes; then
3042     CFLAGS="-O2"
3043   else
3044     CFLAGS=
3045   fi
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3049 if ${ac_cv_prog_cc_c89+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   ac_cv_prog_cc_c89=no
3053 ac_save_CC=$CC
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h.  */
3056 #include <stdarg.h>
3057 #include <stdio.h>
3058 #include <sys/types.h>
3059 #include <sys/stat.h>
3060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3061 struct buf { int x; };
3062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3063 static char *e (p, i)
3064      char **p;
3065      int i;
3066 {
3067   return p[i];
3068 }
3069 static char *f (char * (*g) (char **, int), char **p, ...)
3070 {
3071   char *s;
3072   va_list v;
3073   va_start (v,p);
3074   s = g (p, va_arg (v,int));
3075   va_end (v);
3076   return s;
3077 }
3078
3079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3080    function prototypes and stuff, but not '\xHH' hex character constants.
3081    These don't provoke an error unfortunately, instead are silently treated
3082    as 'x'.  The following induces an error, until -std is added to get
3083    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3084    array size at least.  It's necessary to write '\x00'==0 to get something
3085    that's true only with -std.  */
3086 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3087
3088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3089    inside strings and character constants.  */
3090 #define FOO(x) 'x'
3091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3092
3093 int test (int i, double x);
3094 struct s1 {int (*f) (int a);};
3095 struct s2 {int (*f) (double a);};
3096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3097 int argc;
3098 char **argv;
3099 int
3100 main ()
3101 {
3102 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3108         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3109 do
3110   CC="$ac_save_CC $ac_arg"
3111   if ac_fn_c_try_compile "$LINENO"; then :
3112   ac_cv_prog_cc_c89=$ac_arg
3113 fi
3114 rm -f core conftest.err conftest.$ac_objext
3115   test "x$ac_cv_prog_cc_c89" != "xno" && break
3116 done
3117 rm -f conftest.$ac_ext
3118 CC=$ac_save_CC
3119
3120 fi
3121 # AC_CACHE_VAL
3122 case "x$ac_cv_prog_cc_c89" in
3123   x)
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3125 $as_echo "none needed" >&6; } ;;
3126   xno)
3127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3128 $as_echo "unsupported" >&6; } ;;
3129   *)
3130     CC="$CC $ac_cv_prog_cc_c89"
3131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3133 esac
3134 if test "x$ac_cv_prog_cc_c89" != xno; then :
3135
3136 fi
3137
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3151 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3152 # On Suns, sometimes $CPP names a directory.
3153 if test -n "$CPP" && test -d "$CPP"; then
3154   CPP=
3155 fi
3156 if test -z "$CPP"; then
3157   if ${ac_cv_prog_CPP+:} false; then :
3158   $as_echo_n "(cached) " >&6
3159 else
3160       # Double quotes because CPP needs to be expanded
3161     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162     do
3163       ac_preproc_ok=false
3164 for ac_c_preproc_warn_flag in '' yes
3165 do
3166   # Use a header file that comes with gcc, so configuring glibc
3167   # with a fresh cross-compiler works.
3168   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169   # <limits.h> exists even on freestanding compilers.
3170   # On the NeXT, cc -E runs the code through the compiler's parser,
3171   # not just through cpp. "Syntax error" is here to catch this case.
3172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h.  */
3174 #ifdef __STDC__
3175 # include <limits.h>
3176 #else
3177 # include <assert.h>
3178 #endif
3179                      Syntax error
3180 _ACEOF
3181 if ac_fn_c_try_cpp "$LINENO"; then :
3182
3183 else
3184   # Broken: fails on valid input.
3185 continue
3186 fi
3187 rm -f conftest.err conftest.i conftest.$ac_ext
3188
3189   # OK, works on sane cases.  Now check whether nonexistent headers
3190   # can be detected and how.
3191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h.  */
3193 #include <ac_nonexistent.h>
3194 _ACEOF
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3196   # Broken: success on invalid input.
3197 continue
3198 else
3199   # Passes both tests.
3200 ac_preproc_ok=:
3201 break
3202 fi
3203 rm -f conftest.err conftest.i conftest.$ac_ext
3204
3205 done
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.i conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then :
3209   break
3210 fi
3211
3212     done
3213     ac_cv_prog_CPP=$CPP
3214
3215 fi
3216   CPP=$ac_cv_prog_CPP
3217 else
3218   ac_cv_prog_CPP=$CPP
3219 fi
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3221 $as_echo "$CPP" >&6; }
3222 ac_preproc_ok=false
3223 for ac_c_preproc_warn_flag in '' yes
3224 do
3225   # Use a header file that comes with gcc, so configuring glibc
3226   # with a fresh cross-compiler works.
3227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228   # <limits.h> exists even on freestanding compilers.
3229   # On the NeXT, cc -E runs the code through the compiler's parser,
3230   # not just through cpp. "Syntax error" is here to catch this case.
3231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h.  */
3233 #ifdef __STDC__
3234 # include <limits.h>
3235 #else
3236 # include <assert.h>
3237 #endif
3238                      Syntax error
3239 _ACEOF
3240 if ac_fn_c_try_cpp "$LINENO"; then :
3241
3242 else
3243   # Broken: fails on valid input.
3244 continue
3245 fi
3246 rm -f conftest.err conftest.i conftest.$ac_ext
3247
3248   # OK, works on sane cases.  Now check whether nonexistent headers
3249   # can be detected and how.
3250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h.  */
3252 #include <ac_nonexistent.h>
3253 _ACEOF
3254 if ac_fn_c_try_cpp "$LINENO"; then :
3255   # Broken: success on invalid input.
3256 continue
3257 else
3258   # Passes both tests.
3259 ac_preproc_ok=:
3260 break
3261 fi
3262 rm -f conftest.err conftest.i conftest.$ac_ext
3263
3264 done
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.i conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then :
3268
3269 else
3270   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 fi
3275
3276 ac_ext=c
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281
3282
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3284 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3285 if ${ac_cv_path_GREP+:} false; then :
3286   $as_echo_n "(cached) " >&6
3287 else
3288   if test -z "$GREP"; then
3289   ac_path_GREP_found=false
3290   # Loop through the user's path and test for each of PROGNAME-LIST
3291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296     for ac_prog in grep ggrep; do
3297     for ac_exec_ext in '' $ac_executable_extensions; do
3298       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3299       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3300 # Check for GNU ac_path_GREP and select it if it is found.
3301   # Check for GNU $ac_path_GREP
3302 case `"$ac_path_GREP" --version 2>&1` in
3303 *GNU*)
3304   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3305 *)
3306   ac_count=0
3307   $as_echo_n 0123456789 >"conftest.in"
3308   while :
3309   do
3310     cat "conftest.in" "conftest.in" >"conftest.tmp"
3311     mv "conftest.tmp" "conftest.in"
3312     cp "conftest.in" "conftest.nl"
3313     $as_echo 'GREP' >> "conftest.nl"
3314     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3316     as_fn_arith $ac_count + 1 && ac_count=$as_val
3317     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3318       # Best one so far, save it but keep looking for a better one
3319       ac_cv_path_GREP="$ac_path_GREP"
3320       ac_path_GREP_max=$ac_count
3321     fi
3322     # 10*(2^10) chars as input seems more than enough
3323     test $ac_count -gt 10 && break
3324   done
3325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3326 esac
3327
3328       $ac_path_GREP_found && break 3
3329     done
3330   done
3331   done
3332 IFS=$as_save_IFS
3333   if test -z "$ac_cv_path_GREP"; then
3334     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3335   fi
3336 else
3337   ac_cv_path_GREP=$GREP
3338 fi
3339
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3342 $as_echo "$ac_cv_path_GREP" >&6; }
3343  GREP="$ac_cv_path_GREP"
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3347 $as_echo_n "checking for egrep... " >&6; }
3348 if ${ac_cv_path_EGREP+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3352    then ac_cv_path_EGREP="$GREP -E"
3353    else
3354      if test -z "$EGREP"; then
3355   ac_path_EGREP_found=false
3356   # Loop through the user's path and test for each of PROGNAME-LIST
3357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_prog in egrep; do
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3365       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3366 # Check for GNU ac_path_EGREP and select it if it is found.
3367   # Check for GNU $ac_path_EGREP
3368 case `"$ac_path_EGREP" --version 2>&1` in
3369 *GNU*)
3370   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3371 *)
3372   ac_count=0
3373   $as_echo_n 0123456789 >"conftest.in"
3374   while :
3375   do
3376     cat "conftest.in" "conftest.in" >"conftest.tmp"
3377     mv "conftest.tmp" "conftest.in"
3378     cp "conftest.in" "conftest.nl"
3379     $as_echo 'EGREP' >> "conftest.nl"
3380     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382     as_fn_arith $ac_count + 1 && ac_count=$as_val
3383     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3384       # Best one so far, save it but keep looking for a better one
3385       ac_cv_path_EGREP="$ac_path_EGREP"
3386       ac_path_EGREP_max=$ac_count
3387     fi
3388     # 10*(2^10) chars as input seems more than enough
3389     test $ac_count -gt 10 && break
3390   done
3391   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3392 esac
3393
3394       $ac_path_EGREP_found && break 3
3395     done
3396   done
3397   done
3398 IFS=$as_save_IFS
3399   if test -z "$ac_cv_path_EGREP"; then
3400     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3401   fi
3402 else
3403   ac_cv_path_EGREP=$EGREP
3404 fi
3405
3406    fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3409 $as_echo "$ac_cv_path_EGREP" >&6; }
3410  EGREP="$ac_cv_path_EGREP"
3411
3412
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3414 $as_echo_n "checking for ANSI C header files... " >&6; }
3415 if ${ac_cv_header_stdc+:} false; then :
3416   $as_echo_n "(cached) " >&6
3417 else
3418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h.  */
3420 #include <stdlib.h>
3421 #include <stdarg.h>
3422 #include <string.h>
3423 #include <float.h>
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434   ac_cv_header_stdc=yes
3435 else
3436   ac_cv_header_stdc=no
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439
3440 if test $ac_cv_header_stdc = yes; then
3441   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h.  */
3444 #include <string.h>
3445
3446 _ACEOF
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448   $EGREP "memchr" >/dev/null 2>&1; then :
3449
3450 else
3451   ac_cv_header_stdc=no
3452 fi
3453 rm -f conftest*
3454
3455 fi
3456
3457 if test $ac_cv_header_stdc = yes; then
3458   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461 #include <stdlib.h>
3462
3463 _ACEOF
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465   $EGREP "free" >/dev/null 2>&1; then :
3466
3467 else
3468   ac_cv_header_stdc=no
3469 fi
3470 rm -f conftest*
3471
3472 fi
3473
3474 if test $ac_cv_header_stdc = yes; then
3475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3476   if test "$cross_compiling" = yes; then :
3477   :
3478 else
3479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481 #include <ctype.h>
3482 #include <stdlib.h>
3483 #if ((' ' & 0x0FF) == 0x020)
3484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3486 #else
3487 # define ISLOWER(c) \
3488                    (('a' <= (c) && (c) <= 'i') \
3489                      || ('j' <= (c) && (c) <= 'r') \
3490                      || ('s' <= (c) && (c) <= 'z'))
3491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3492 #endif
3493
3494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3495 int
3496 main ()
3497 {
3498   int i;
3499   for (i = 0; i < 256; i++)
3500     if (XOR (islower (i), ISLOWER (i))
3501         || toupper (i) != TOUPPER (i))
3502       return 2;
3503   return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_c_try_run "$LINENO"; then :
3507
3508 else
3509   ac_cv_header_stdc=no
3510 fi
3511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3512   conftest.$ac_objext conftest.beam conftest.$ac_ext
3513 fi
3514
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3518 $as_echo "$ac_cv_header_stdc" >&6; }
3519 if test $ac_cv_header_stdc = yes; then
3520
3521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3522
3523 fi
3524
3525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3527                   inttypes.h stdint.h unistd.h
3528 do :
3529   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3531 "
3532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3533   cat >>confdefs.h <<_ACEOF
3534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3535 _ACEOF
3536
3537 fi
3538
3539 done
3540
3541
3542
3543   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3544 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3545   MINIX=yes
3546 else
3547   MINIX=
3548 fi
3549
3550
3551   if test "$MINIX" = yes; then
3552
3553 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3554
3555
3556 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3557
3558
3559 $as_echo "#define _MINIX 1" >>confdefs.h
3560
3561   fi
3562
3563
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3565 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3566 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571
3572 #         define __EXTENSIONS__ 1
3573           $ac_includes_default
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583   ac_cv_safe_to_define___extensions__=yes
3584 else
3585   ac_cv_safe_to_define___extensions__=no
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3590 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3591   test $ac_cv_safe_to_define___extensions__ = yes &&
3592     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3593
3594   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3595
3596   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3597
3598   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3599
3600   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3601
3602
3603
3604 # Checks for programs.
3605 ac_ext=c
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616   $as_echo_n "(cached) " >&6
3617 else
3618   if test -n "$CC"; then
3619   ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624   IFS=$as_save_IFS
3625   test -z "$as_dir" && as_dir=.
3626     for ac_exec_ext in '' $ac_executable_extensions; do
3627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630     break 2
3631   fi
3632 done
3633   done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648 fi
3649 if test -z "$ac_cv_prog_CC"; then
3650   ac_ct_CC=$CC
3651   # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$ac_ct_CC"; then
3659   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668     ac_cv_prog_ac_ct_CC="gcc"
3669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673   done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687   if test "x$ac_ct_CC" = x; then
3688     CC=""
3689   else
3690     case $cross_compiling:$ac_tool_warned in
3691 yes:)
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3695 esac
3696     CC=$ac_ct_CC
3697   fi
3698 else
3699   CC="$ac_cv_prog_CC"
3700 fi
3701
3702 if test -z "$CC"; then
3703           if test -n "$ac_tool_prefix"; then
3704     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}cc; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_CC+:} false; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test -n "$CC"; then
3712   ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721     ac_cv_prog_CC="${ac_tool_prefix}cc"
3722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726   done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741   fi
3742 fi
3743 if test -z "$CC"; then
3744   # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_CC+:} false; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -n "$CC"; then
3752   ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754   ac_prog_rejected=no
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760     for ac_exec_ext in '' $ac_executable_extensions; do
3761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763        ac_prog_rejected=yes
3764        continue
3765      fi
3766     ac_cv_prog_CC="cc"
3767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768     break 2
3769   fi
3770 done
3771   done
3772 IFS=$as_save_IFS
3773
3774 if test $ac_prog_rejected = yes; then
3775   # We found a bogon in the path, so make sure we never use it.
3776   set dummy $ac_cv_prog_CC
3777   shift
3778   if test $# != 0; then
3779     # We chose a different compiler from the bogus one.
3780     # However, it has the same basename, so the bogon will be chosen
3781     # first if we set CC to just the basename; use the full file name.
3782     shift
3783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3784   fi
3785 fi
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 if test -z "$CC"; then
3800   if test -n "$ac_tool_prefix"; then
3801   for ac_prog in cl.exe
3802   do
3803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_CC+:} false; then :
3808   $as_echo_n "(cached) " >&6
3809 else
3810   if test -n "$CC"; then
3811   ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818     for ac_exec_ext in '' $ac_executable_extensions; do
3819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825   done
3826 IFS=$as_save_IFS
3827
3828 fi
3829 fi
3830 CC=$ac_cv_prog_CC
3831 if test -n "$CC"; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3834 else
3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 fi
3838
3839
3840     test -n "$CC" && break
3841   done
3842 fi
3843 if test -z "$CC"; then
3844   ac_ct_CC=$CC
3845   for ac_prog in cl.exe
3846 do
3847   # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3852   $as_echo_n "(cached) " >&6
3853 else
3854   if test -n "$ac_ct_CC"; then
3855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862     for ac_exec_ext in '' $ac_executable_extensions; do
3863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864     ac_cv_prog_ac_ct_CC="$ac_prog"
3865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869   done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3878 else
3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884   test -n "$ac_ct_CC" && break
3885 done
3886
3887   if test "x$ac_ct_CC" = x; then
3888     CC=""
3889   else
3890     case $cross_compiling:$ac_tool_warned in
3891 yes:)
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3895 esac
3896     CC=$ac_ct_CC
3897   fi
3898 fi
3899
3900 fi
3901
3902
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error $? "no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details" "$LINENO" 5; }
3907
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3910 set X $ac_compile
3911 ac_compiler=$2
3912 for ac_option in --version -v -V -qversion; do
3913   { { ac_try="$ac_compiler $ac_option >&5"
3914 case "(($ac_try" in
3915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916   *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3921   ac_status=$?
3922   if test -s conftest.err; then
3923     sed '10a\
3924 ... rest of stderr output deleted ...
3925          10q' conftest.err >conftest.er1
3926     cat conftest.er1 >&5
3927   fi
3928   rm -f conftest.er1 conftest.err
3929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930   test $ac_status = 0; }
3931 done
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3935 if ${ac_cv_c_compiler_gnu+:} false; then :
3936   $as_echo_n "(cached) " >&6
3937 else
3938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944 #ifndef __GNUC__
3945        choke me
3946 #endif
3947
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953   ac_compiler_gnu=yes
3954 else
3955   ac_compiler_gnu=no
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3959
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3962 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3963 if test $ac_compiler_gnu = yes; then
3964   GCC=yes
3965 else
3966   GCC=
3967 fi
3968 ac_test_CFLAGS=${CFLAGS+set}
3969 ac_save_CFLAGS=$CFLAGS
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3971 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3972 if ${ac_cv_prog_cc_g+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   ac_save_c_werror_flag=$ac_c_werror_flag
3976    ac_c_werror_flag=yes
3977    ac_cv_prog_cc_g=no
3978    CFLAGS="-g"
3979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991   ac_cv_prog_cc_g=yes
3992 else
3993   CFLAGS=""
3994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h.  */
3996
3997 int
3998 main ()
3999 {
4000
4001   ;
4002   return 0;
4003 }
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006
4007 else
4008   ac_c_werror_flag=$ac_save_c_werror_flag
4009          CFLAGS="-g"
4010          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022   ac_cv_prog_cc_g=yes
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029    ac_c_werror_flag=$ac_save_c_werror_flag
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4032 $as_echo "$ac_cv_prog_cc_g" >&6; }
4033 if test "$ac_test_CFLAGS" = set; then
4034   CFLAGS=$ac_save_CFLAGS
4035 elif test $ac_cv_prog_cc_g = yes; then
4036   if test "$GCC" = yes; then
4037     CFLAGS="-g -O2"
4038   else
4039     CFLAGS="-g"
4040   fi
4041 else
4042   if test "$GCC" = yes; then
4043     CFLAGS="-O2"
4044   else
4045     CFLAGS=
4046   fi
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4050 if ${ac_cv_prog_cc_c89+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   ac_cv_prog_cc_c89=no
4054 ac_save_CC=$CC
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h.  */
4057 #include <stdarg.h>
4058 #include <stdio.h>
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4065      char **p;
4066      int i;
4067 {
4068   return p[i];
4069 }
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4071 {
4072   char *s;
4073   va_list v;
4074   va_start (v,p);
4075   s = g (p, va_arg (v,int));
4076   va_end (v);
4077   return s;
4078 }
4079
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4081    function prototypes and stuff, but not '\xHH' hex character constants.
4082    These don't provoke an error unfortunately, instead are silently treated
4083    as 'x'.  The following induces an error, until -std is added to get
4084    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4085    array size at least.  It's necessary to write '\x00'==0 to get something
4086    that's true only with -std.  */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090    inside strings and character constants.  */
4091 #define FOO(x) 'x'
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 int argc;
4099 char **argv;
4100 int
4101 main ()
4102 {
4103 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 do
4111   CC="$ac_save_CC $ac_arg"
4112   if ac_fn_c_try_compile "$LINENO"; then :
4113   ac_cv_prog_cc_c89=$ac_arg
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext
4116   test "x$ac_cv_prog_cc_c89" != "xno" && break
4117 done
4118 rm -f conftest.$ac_ext
4119 CC=$ac_save_CC
4120
4121 fi
4122 # AC_CACHE_VAL
4123 case "x$ac_cv_prog_cc_c89" in
4124   x)
4125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126 $as_echo "none needed" >&6; } ;;
4127   xno)
4128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129 $as_echo "unsupported" >&6; } ;;
4130   *)
4131     CC="$CC $ac_cv_prog_cc_c89"
4132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4134 esac
4135 if test "x$ac_cv_prog_cc_c89" != xno; then :
4136
4137 fi
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4146 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4147 set x ${MAKE-make}
4148 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4149 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   cat >conftest.make <<\_ACEOF
4153 SHELL = /bin/sh
4154 all:
4155         @echo '@@@%%%=$(MAKE)=@@@%%%'
4156 _ACEOF
4157 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4159   *@@@%%%=?*=@@@%%%*)
4160     eval ac_cv_prog_make_${ac_make}_set=yes;;
4161   *)
4162     eval ac_cv_prog_make_${ac_make}_set=no;;
4163 esac
4164 rm -f conftest.make
4165 fi
4166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168 $as_echo "yes" >&6; }
4169   SET_MAKE=
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173   SET_MAKE="MAKE=${MAKE-make}"
4174 fi
4175
4176 for ac_prog in glibtool libtool15 libtool
4177 do
4178   # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_libtool+:} false; then :
4183   $as_echo_n "(cached) " >&6
4184 else
4185   if test -n "$libtool"; then
4186   ac_cv_prog_libtool="$libtool" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193     for ac_exec_ext in '' $ac_executable_extensions; do
4194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195     ac_cv_prog_libtool="$ac_prog"
4196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200   done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 libtool=$ac_cv_prog_libtool
4206 if test -n "$libtool"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool" >&5
4208 $as_echo "$libtool" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215   test -n "$libtool" && break
4216 done
4217 test -n "$libtool" || libtool="../libtool"
4218
4219
4220 # add option to disable the evil rpath
4221 # Check whether --enable-rpath was given.
4222 if test "${enable_rpath+set}" = set; then :
4223   enableval=$enable_rpath; enable_rpath=$enableval
4224 else
4225   enable_rpath=yes
4226 fi
4227
4228
4229 if test "x$enable_rpath" = xyes; then
4230     RPATH_VAL="-Wl,-rpath=\${libdir}"
4231 fi
4232
4233
4234
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4237 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4238 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4239 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242
4243 echo 'void f(){}' >conftest.c
4244 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4245 eval "cv_prog_cc_flag_$cache=yes"
4246 else
4247 eval "cv_prog_cc_flag_$cache=no"
4248 fi
4249 rm -f conftest conftest.o conftest.c
4250
4251 fi
4252
4253 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4256 :
4257 C99FLAG="-std=c99"
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 :
4262
4263 fi
4264
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4268 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4269 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4270 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4271   $as_echo_n "(cached) " >&6
4272 else
4273
4274 echo 'void f(){}' >conftest.c
4275 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4276 eval "cv_prog_cc_flag_$cache=yes"
4277 else
4278 eval "cv_prog_cc_flag_$cache=no"
4279 fi
4280 rm -f conftest conftest.o conftest.c
4281
4282 fi
4283
4284 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4287 :
4288 C99FLAG="-xc99"
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 :
4293
4294 fi
4295
4296
4297 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4298 if test "x$ac_cv_type_size_t" = xyes; then :
4299
4300 else
4301
4302 cat >>confdefs.h <<_ACEOF
4303 #define size_t unsigned int
4304 _ACEOF
4305
4306 fi
4307
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4311 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4312 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4313 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316
4317 echo 'void f(){}' >conftest.c
4318 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4319 eval "cv_prog_cc_flag_$cache=yes"
4320 else
4321 eval "cv_prog_cc_flag_$cache=no"
4322 fi
4323 rm -f conftest conftest.o conftest.c
4324
4325 fi
4326
4327 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4329 $as_echo "yes" >&6; }
4330 :
4331 CFLAGS="$CFLAGS -O2"
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 :
4336
4337 fi
4338
4339
4340
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4344 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4345 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4346 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349
4350 echo 'void f(){}' >conftest.c
4351 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4352 eval "cv_prog_cc_flag_$cache=yes"
4353 else
4354 eval "cv_prog_cc_flag_$cache=no"
4355 fi
4356 rm -f conftest conftest.o conftest.c
4357
4358 fi
4359
4360 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4363 :
4364 ERRFLAG="-Werror"
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4368 :
4369 ERRFLAG="-errwarn"
4370 fi
4371
4372
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4375 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4376 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4377 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380
4381 echo 'void f(){}' >conftest.c
4382 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4383 eval "cv_prog_cc_flag_$cache=yes"
4384 else
4385 eval "cv_prog_cc_flag_$cache=no"
4386 fi
4387 rm -f conftest conftest.o conftest.c
4388
4389 fi
4390
4391 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4393 $as_echo "yes" >&6; }
4394 :
4395 ERRFLAG="$ERRFLAG -Wall"
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 :
4400 ERRFLAG="$ERRFLAG -errfmt"
4401 fi
4402
4403
4404
4405
4406
4407 { $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
4408 $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; }
4409 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" | $as_tr_sh`
4410 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413
4414 echo '
4415 #include "confdefs.h"
4416 #include <stdlib.h>
4417 #include <ctype.h>
4418 #include <sys/time.h>
4419 #ifdef HAVE_TIME_H
4420 #include <time.h>
4421 #endif
4422 #include <unistd.h>
4423 #ifdef HAVE_GETOPT_H
4424 #include <getopt.h>
4425 #endif
4426
4427 int test() {
4428         int a;
4429         char **opts = NULL;
4430         struct timeval tv;
4431         char *t;
4432         time_t time = 0;
4433         char *buf = NULL;
4434         t = ctime_r(&time, buf);
4435         tv.tv_usec = 10;
4436         srandom(32);
4437         a = getopt(2, opts, "a");
4438         a = isascii(32);
4439         return a;
4440 }
4441 ' > conftest.c
4442 echo 'void f(){}' >>conftest.c
4443 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4444 eval "cv_prog_cc_flag_needed_$cache=no"
4445 else
4446
4447 if 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
4448 eval "cv_prog_cc_flag_needed_$cache=yes"
4449 else
4450 eval "cv_prog_cc_flag_needed_$cache=fail"
4451 #echo 'Test with flag fails too!'
4452 #cat conftest.c
4453 #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"
4454 #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`
4455 #exit 1
4456 fi
4457
4458 fi
4459 rm -f conftest conftest.c conftest.o
4460
4461 fi
4462
4463 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4465 $as_echo "yes" >&6; }
4466 :
4467 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4468 else
4469 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 #echo 'Test with flag is no!'
4473 #cat conftest.c
4474 #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"
4475 #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`
4476 #exit 1
4477 :
4478
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4481 $as_echo "failed" >&6; }
4482 :
4483
4484 fi
4485 fi
4486
4487
4488
4489
4490
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
4493 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
4494 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
4495 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498
4499 echo '#include <stdbool.h>' > conftest.c
4500 echo 'void f(){}' >>conftest.c
4501 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4502 eval "cv_prog_cc_flag_needed_$cache=no"
4503 else
4504
4505 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
4506 eval "cv_prog_cc_flag_needed_$cache=yes"
4507 else
4508 eval "cv_prog_cc_flag_needed_$cache=fail"
4509 #echo 'Test with flag fails too!'
4510 #cat conftest.c
4511 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4512 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4513 #exit 1
4514 fi
4515
4516 fi
4517 rm -f conftest conftest.c conftest.o
4518
4519 fi
4520
4521 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4524 :
4525 CFLAGS="$CFLAGS $C99FLAG"
4526 else
4527 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 #echo 'Test with flag is no!'
4531 #cat conftest.c
4532 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4533 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4534 #exit 1
4535 :
4536
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4539 $as_echo "failed" >&6; }
4540 :
4541
4542 fi
4543 fi
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4547 $as_echo_n "checking for inline... " >&6; }
4548 if ${ac_cv_c_inline+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   ac_cv_c_inline=no
4552 for ac_kw in inline __inline__ __inline; do
4553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555 #ifndef __cplusplus
4556 typedef int foo_t;
4557 static $ac_kw foo_t static_foo () {return 0; }
4558 $ac_kw foo_t foo () {return 0; }
4559 #endif
4560
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563   ac_cv_c_inline=$ac_kw
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566   test "$ac_cv_c_inline" != no && break
4567 done
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4571 $as_echo "$ac_cv_c_inline" >&6; }
4572
4573 case $ac_cv_c_inline in
4574   inline | yes) ;;
4575   *)
4576     case $ac_cv_c_inline in
4577       no) ac_val=;;
4578       *) ac_val=$ac_cv_c_inline;;
4579     esac
4580     cat >>confdefs.h <<_ACEOF
4581 #ifndef __cplusplus
4582 #define inline $ac_val
4583 #endif
4584 _ACEOF
4585     ;;
4586 esac
4587
4588 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4589 if test "x$ac_cv_type_int8_t" = xyes; then :
4590
4591 else
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define int8_t char
4595 _ACEOF
4596
4597 fi
4598
4599 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4600 if test "x$ac_cv_type_int16_t" = xyes; then :
4601
4602 else
4603
4604 cat >>confdefs.h <<_ACEOF
4605 #define int16_t short
4606 _ACEOF
4607
4608 fi
4609
4610 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4611 if test "x$ac_cv_type_int32_t" = xyes; then :
4612
4613 else
4614
4615 cat >>confdefs.h <<_ACEOF
4616 #define int32_t int
4617 _ACEOF
4618
4619 fi
4620
4621 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
4622 if test "x$ac_cv_type_int64_t" = xyes; then :
4623
4624 else
4625
4626 cat >>confdefs.h <<_ACEOF
4627 #define int64_t long long
4628 _ACEOF
4629
4630 fi
4631
4632 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4633 if test "x$ac_cv_type_uint8_t" = xyes; then :
4634
4635 else
4636
4637 cat >>confdefs.h <<_ACEOF
4638 #define uint8_t unsigned char
4639 _ACEOF
4640
4641 fi
4642
4643 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4644 if test "x$ac_cv_type_uint16_t" = xyes; then :
4645
4646 else
4647
4648 cat >>confdefs.h <<_ACEOF
4649 #define uint16_t unsigned short
4650 _ACEOF
4651
4652 fi
4653
4654 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4655 if test "x$ac_cv_type_uint32_t" = xyes; then :
4656
4657 else
4658
4659 cat >>confdefs.h <<_ACEOF
4660 #define uint32_t unsigned int
4661 _ACEOF
4662
4663 fi
4664
4665 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4666 if test "x$ac_cv_type_uint64_t" = xyes; then :
4667
4668 else
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define uint64_t unsigned long long
4672 _ACEOF
4673
4674 fi
4675
4676 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4677 if test "x$ac_cv_type_ssize_t" = xyes; then :
4678
4679 else
4680
4681 cat >>confdefs.h <<_ACEOF
4682 #define ssize_t int
4683 _ACEOF
4684
4685 fi
4686
4687
4688 for 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
4689 do :
4690   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4692 "
4693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4694   cat >>confdefs.h <<_ACEOF
4695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 _ACEOF
4697
4698 fi
4699
4700 done
4701
4702 for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h
4703 do :
4704   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4705 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4706 $ac_includes_default
4707 #ifdef HAVE_NETINET_IN_SYSTM_H
4708 #include <netinet/in_systm.h>
4709 #endif
4710 #ifdef HAVE_NETINET_IN_H
4711 #include <netinet/in.h>
4712 #endif
4713 #ifdef HAVE_SYS_SOCKET_H
4714 #include <sys/socket.h>
4715 #endif
4716 #ifdef HAVE_NET_IF_H
4717 #include <net/if.h>
4718 #endif
4719 "
4720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4721   cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 _ACEOF
4724
4725 fi
4726
4727 done
4728
4729 # MinGW32 tests
4730 for ac_header in winsock2.h ws2tcpip.h
4731 do :
4732   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4734 "
4735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4736   cat >>confdefs.h <<_ACEOF
4737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738 _ACEOF
4739
4740 fi
4741
4742 done
4743
4744
4745
4746 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4747 $ac_includes_default
4748 #ifdef HAVE_SYS_SOCKET_H
4749 #  include <sys/socket.h>
4750 #endif
4751 #ifdef HAVE_WS2TCPIP_H
4752 #  include <ws2tcpip.h>
4753 #endif
4754
4755 "
4756 if test "x$ac_cv_type_socklen_t" = xyes; then :
4757
4758 else
4759
4760 $as_echo "#define socklen_t int" >>confdefs.h
4761
4762 fi
4763
4764 for ac_header in sys/param.h sys/mount.h
4765 do :
4766   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4768
4769
4770    #if HAVE_SYS_PARAM_H
4771    # include <sys/param.h>
4772    #endif
4773
4774
4775 "
4776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4777   cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4779 _ACEOF
4780
4781 fi
4782
4783 done
4784
4785 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
4786 #if HAVE_SYS_TYPES_H
4787 # include <sys/types.h>
4788 #endif
4789 #if HAVE_NETINET_IN_H
4790 # include <netinet/in.h>
4791 #endif
4792 "
4793 if test "x$ac_cv_type_in_addr_t" = xyes; then :
4794
4795 else
4796
4797 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
4798
4799 fi
4800
4801 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
4802 #if HAVE_SYS_TYPES_H
4803 # include <sys/types.h>
4804 #endif
4805 #if HAVE_NETINET_IN_H
4806 # include <netinet/in.h>
4807 #endif
4808 "
4809 if test "x$ac_cv_type_in_port_t" = xyes; then :
4810
4811 else
4812
4813 $as_echo "#define in_port_t uint16_t" >>confdefs.h
4814
4815 fi
4816
4817
4818 # check to see if libraries are needed for these functions.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4820 $as_echo_n "checking for library containing socket... " >&6; }
4821 if ${ac_cv_search_socket+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   ac_func_search_save_LIBS=$LIBS
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h.  */
4827
4828 /* Override any GCC internal prototype to avoid an error.
4829    Use char because int might match the return type of a GCC
4830    builtin and then its argument prototype would still apply.  */
4831 #ifdef __cplusplus
4832 extern "C"
4833 #endif
4834 char socket ();
4835 int
4836 main ()
4837 {
4838 return socket ();
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 for ac_lib in '' socket; do
4844   if test -z "$ac_lib"; then
4845     ac_res="none required"
4846   else
4847     ac_res=-l$ac_lib
4848     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4849   fi
4850   if ac_fn_c_try_link "$LINENO"; then :
4851   ac_cv_search_socket=$ac_res
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext \
4854     conftest$ac_exeext
4855   if ${ac_cv_search_socket+:} false; then :
4856   break
4857 fi
4858 done
4859 if ${ac_cv_search_socket+:} false; then :
4860
4861 else
4862   ac_cv_search_socket=no
4863 fi
4864 rm conftest.$ac_ext
4865 LIBS=$ac_func_search_save_LIBS
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4868 $as_echo "$ac_cv_search_socket" >&6; }
4869 ac_res=$ac_cv_search_socket
4870 if test "$ac_res" != no; then :
4871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4872
4873 fi
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4876 $as_echo_n "checking for library containing inet_pton... " >&6; }
4877 if ${ac_cv_search_inet_pton+:} false; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   ac_func_search_save_LIBS=$LIBS
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h.  */
4883
4884 /* Override any GCC internal prototype to avoid an error.
4885    Use char because int might match the return type of a GCC
4886    builtin and then its argument prototype would still apply.  */
4887 #ifdef __cplusplus
4888 extern "C"
4889 #endif
4890 char inet_pton ();
4891 int
4892 main ()
4893 {
4894 return inet_pton ();
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 for ac_lib in '' nsl; do
4900   if test -z "$ac_lib"; then
4901     ac_res="none required"
4902   else
4903     ac_res=-l$ac_lib
4904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4905   fi
4906   if ac_fn_c_try_link "$LINENO"; then :
4907   ac_cv_search_inet_pton=$ac_res
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext \
4910     conftest$ac_exeext
4911   if ${ac_cv_search_inet_pton+:} false; then :
4912   break
4913 fi
4914 done
4915 if ${ac_cv_search_inet_pton+:} false; then :
4916
4917 else
4918   ac_cv_search_inet_pton=no
4919 fi
4920 rm conftest.$ac_ext
4921 LIBS=$ac_func_search_save_LIBS
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
4924 $as_echo "$ac_cv_search_inet_pton" >&6; }
4925 ac_res=$ac_cv_search_inet_pton
4926 if test "$ac_res" != no; then :
4927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4928
4929 fi
4930
4931
4932
4933
4934 # Check whether --with-ssl was given.
4935 if test "${with_ssl+set}" = set; then :
4936   withval=$with_ssl;
4937
4938 else
4939
4940             withval="yes"
4941
4942 fi
4943
4944
4945     withval=$withval
4946     if test x_$withval != x_no; then
4947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4948 $as_echo_n "checking for SSL... " >&6; }
4949         if test x_$withval = x_ -o x_$withval = x_yes; then
4950             withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
4951         fi
4952         for dir in $withval; do
4953             ssldir="$dir"
4954             if test -f "$dir/include/openssl/ssl.h"; then
4955                 found_ssl="yes"
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define HAVE_SSL /**/
4959 _ACEOF
4960
4961                                 if test "$ssldir" != "/usr"; then
4962                         CPPFLAGS="$CPPFLAGS -I$ssldir/include"
4963                         LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
4964                 fi
4965                 break;
4966             fi
4967         done
4968         if test x_$found_ssl != x_yes; then
4969             as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
4970         else
4971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
4972 $as_echo "found in $ssldir" >&6; }
4973             HAVE_SSL=yes
4974                         if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
4975                 LDFLAGS="$LDFLAGS -L$ssldir/lib"
4976                 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
4977
4978         if test "x$enable_rpath" = xyes; then
4979                 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
4980                         RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
4981                 fi
4982         fi
4983
4984             fi
4985
4986             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
4987 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
4988             LIBS="$LIBS -lcrypto"
4989             LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
4990             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992
4993 int
4994 main ()
4995 {
4996
4997                 int HMAC_CTX_init(void);
4998                 (void)HMAC_CTX_init();
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_link "$LINENO"; then :
5005
5006                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5008
5009 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5010
5011
5012 else
5013
5014                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016                 # check if -lwsock32 or -lgdi32 are needed.
5017                 BAKLIBS="$LIBS"
5018                 BAKSSLLIBS="$LIBSSL_LIBS"
5019                 LIBS="$LIBS -lgdi32"
5020                 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
5021                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
5022 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
5023                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h.  */
5025
5026 int
5027 main ()
5028 {
5029
5030                     int HMAC_CTX_init(void);
5031                     (void)HMAC_CTX_init();
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 if ac_fn_c_try_link "$LINENO"; then :
5038
5039
5040 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5041
5042                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5043 $as_echo "yes" >&6; }
5044
5045 else
5046
5047                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5049                     LIBS="$BAKLIBS"
5050                     LIBSSL_LIBS="$BAKSSLLIBS"
5051                     LIBS="$LIBS -ldl"
5052                     LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5053                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
5054 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
5055                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057
5058 int
5059 main ()
5060 {
5061
5062                         int HMAC_CTX_init(void);
5063                         (void)HMAC_CTX_init();
5064
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_link "$LINENO"; then :
5070
5071
5072 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5073
5074                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075 $as_echo "yes" >&6; }
5076
5077 else
5078
5079                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081                     as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
5082
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext \
5085     conftest$ac_exeext conftest.$ac_ext
5086
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext \
5089     conftest$ac_exeext conftest.$ac_ext
5090
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext \
5093     conftest$ac_exeext conftest.$ac_ext
5094         fi
5095
5096
5097         # openssl engine functionality needs dlopen().
5098         BAKLIBS="$LIBS"
5099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5100 $as_echo_n "checking for library containing dlopen... " >&6; }
5101 if ${ac_cv_search_dlopen+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   ac_func_search_save_LIBS=$LIBS
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107
5108 /* Override any GCC internal prototype to avoid an error.
5109    Use char because int might match the return type of a GCC
5110    builtin and then its argument prototype would still apply.  */
5111 #ifdef __cplusplus
5112 extern "C"
5113 #endif
5114 char dlopen ();
5115 int
5116 main ()
5117 {
5118 return dlopen ();
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 for ac_lib in '' dl; do
5124   if test -z "$ac_lib"; then
5125     ac_res="none required"
5126   else
5127     ac_res=-l$ac_lib
5128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5129   fi
5130   if ac_fn_c_try_link "$LINENO"; then :
5131   ac_cv_search_dlopen=$ac_res
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext \
5134     conftest$ac_exeext
5135   if ${ac_cv_search_dlopen+:} false; then :
5136   break
5137 fi
5138 done
5139 if ${ac_cv_search_dlopen+:} false; then :
5140
5141 else
5142   ac_cv_search_dlopen=no
5143 fi
5144 rm conftest.$ac_ext
5145 LIBS=$ac_func_search_save_LIBS
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5148 $as_echo "$ac_cv_search_dlopen" >&6; }
5149 ac_res=$ac_cv_search_dlopen
5150 if test "$ac_res" != no; then :
5151   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5152
5153 fi
5154
5155         if test "$LIBS" != "$BAKLIBS"; then
5156                 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5157         fi
5158     fi
5159 for ac_header in openssl/ssl.h
5160 do :
5161   ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
5162 "
5163 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5164   cat >>confdefs.h <<_ACEOF
5165 #define HAVE_OPENSSL_SSL_H 1
5166 _ACEOF
5167
5168 fi
5169
5170 done
5171
5172 for ac_header in openssl/err.h
5173 do :
5174   ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
5175 "
5176 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5177   cat >>confdefs.h <<_ACEOF
5178 #define HAVE_OPENSSL_ERR_H 1
5179 _ACEOF
5180
5181 fi
5182
5183 done
5184
5185 for ac_header in openssl/rand.h
5186 do :
5187   ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
5188 "
5189 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
5190   cat >>confdefs.h <<_ACEOF
5191 #define HAVE_OPENSSL_RAND_H 1
5192 _ACEOF
5193
5194 fi
5195
5196 done
5197
5198
5199
5200
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5203 $as_echo_n "checking for getaddrinfo... " >&6; }
5204 ac_cv_func_getaddrinfo=no
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h.  */
5207
5208 #ifdef __cplusplus
5209 extern "C"
5210 {
5211 #endif
5212 char* getaddrinfo();
5213 char* (*f) () = getaddrinfo;
5214 #ifdef __cplusplus
5215 }
5216 #endif
5217 int main() {
5218         ;
5219         return 0;
5220 }
5221
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"; then :
5224   ac_cv_func_getaddrinfo="yes"
5225 if test "$ac_cv_header_windows_h" = "yes"; then
5226
5227 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5228
5229         USE_WINSOCK="1"
5230         LIBS="$LIBS -lws2_32"
5231 fi
5232
5233 else
5234   ORIGLIBS="$LIBS"
5235 LIBS="$LIBS -lws2_32"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h.  */
5238
5239 #ifdef HAVE_WS2TCPIP_H
5240 #include <ws2tcpip.h>
5241 #endif
5242
5243 int
5244 main ()
5245 {
5246
5247         (void)getaddrinfo(NULL, NULL, NULL, NULL);
5248
5249
5250   ;
5251   return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_c_try_link "$LINENO"; then :
5255
5256 ac_cv_func_getaddrinfo="yes"
5257
5258 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5259
5260 USE_WINSOCK="1"
5261
5262 else
5263
5264 ac_cv_func_getaddrinfo="no"
5265 LIBS="$ORIGLIBS"
5266
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext \
5269     conftest$ac_exeext conftest.$ac_ext
5270
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext \
5273     conftest$ac_exeext conftest.$ac_ext
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5276 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
5277 if test $ac_cv_func_getaddrinfo = yes; then
5278
5279 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5280
5281 fi
5282
5283
5284 LIBS_STC="$LIBS"
5285
5286
5287 # check for ldns
5288
5289 # Check whether --with-ldns was given.
5290 if test "${with_ldns+set}" = set; then :
5291   withval=$with_ldns;
5292                 specialldnsdir="$withval"
5293                 CPPFLAGS="$CPPFLAGS -I$withval/include"
5294                 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
5295                 LDNSDIR="$withval"
5296                 LIBS="-lldns $LIBS"
5297                 LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
5298
5299
5300 fi
5301
5302
5303 #AC_CHECK_HEADER(ldns/ldns.h,,  [
5304 #       AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
5305 #       ], [AC_INCLUDES_DEFAULT]
5306 #)
5307
5308 for ac_func in isblank
5309 do :
5310   ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
5311 if test "x$ac_cv_func_isblank" = xyes; then :
5312   cat >>confdefs.h <<_ACEOF
5313 #define HAVE_ISBLANK 1
5314 _ACEOF
5315
5316 fi
5317 done
5318
5319
5320 # check for ldns development source tree
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns devel source" >&5
5322 $as_echo_n "checking for ldns devel source... " >&6; }
5323 ldns_dev_dir=..
5324 if test -f $ldns_dev_dir/ldns/util.h && \
5325         grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
5326         ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
5327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ldns_dev_dir with $ldns_version" >&5
5328 $as_echo "using $ldns_dev_dir with $ldns_version" >&6; }
5329         CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
5330         LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
5331         LIBS="-lldns $LIBS"
5332
5333 $as_echo "#define HAVE_LIBLDNS 1" >>confdefs.h
5334
5335         LDNSDIR="$ldns_dev_dir"
5336         LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
5337 else
5338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
5341 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
5342 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lldns  $LIBS"
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h.  */
5349
5350 /* Override any GCC internal prototype to avoid an error.
5351    Use char because int might match the return type of a GCC
5352    builtin and then its argument prototype would still apply.  */
5353 #ifdef __cplusplus
5354 extern "C"
5355 #endif
5356 char ldns_rr_new ();
5357 int
5358 main ()
5359 {
5360 return ldns_rr_new ();
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_link "$LINENO"; then :
5366   ac_cv_lib_ldns_ldns_rr_new=yes
5367 else
5368   ac_cv_lib_ldns_ldns_rr_new=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext \
5371     conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_check_lib_save_LIBS
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
5375 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
5376 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
5377   cat >>confdefs.h <<_ACEOF
5378 #define HAVE_LIBLDNS 1
5379 _ACEOF
5380
5381   LIBS="-lldns $LIBS"
5382
5383 else
5384
5385                         as_fn_error $? "Can't find ldns library" "$LINENO" 5
5386
5387 fi
5388
5389 fi
5390
5391
5392
5393
5394 # Check whether --with-trust-anchor was given.
5395 if test "${with_trust_anchor+set}" = set; then :
5396   withval=$with_trust_anchor;
5397  LDNS_TRUST_ANCHOR_FILE="$withval"
5398
5399 else
5400
5401  if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
5402   if test "x$sysconfdir" = 'x${prefix}/etc' ; then
5403    if test "x$prefix" = 'xNONE' ; then
5404     LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
5405    else
5406     LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
5407    fi
5408   else
5409     LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
5410   fi
5411  fi
5412
5413 fi
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
5418 _ACEOF
5419
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
5422 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
5423
5424
5425
5426 ac_config_files="$ac_config_files Makefile drill.1"
5427
5428 ac_config_headers="$ac_config_headers config.h"
5429
5430 cat >confcache <<\_ACEOF
5431 # This file is a shell script that caches the results of configure
5432 # tests run on this system so they can be shared between configure
5433 # scripts and configure runs, see configure's option --config-cache.
5434 # It is not useful on other systems.  If it contains results you don't
5435 # want to keep, you may remove or edit it.
5436 #
5437 # config.status only pays attention to the cache file if you give it
5438 # the --recheck option to rerun configure.
5439 #
5440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5442 # following values.
5443
5444 _ACEOF
5445
5446 # The following way of writing the cache mishandles newlines in values,
5447 # but we know of no workaround that is simple, portable, and efficient.
5448 # So, we kill variables containing newlines.
5449 # Ultrix sh set writes to stderr and can't be redirected directly,
5450 # and sets the high bit in the cache file unless we assign to the vars.
5451 (
5452   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5453     eval ac_val=\$$ac_var
5454     case $ac_val in #(
5455     *${as_nl}*)
5456       case $ac_var in #(
5457       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5459       esac
5460       case $ac_var in #(
5461       _ | IFS | as_nl) ;; #(
5462       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5463       *) { eval $ac_var=; unset $ac_var;} ;;
5464       esac ;;
5465     esac
5466   done
5467
5468   (set) 2>&1 |
5469     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5470     *${as_nl}ac_space=\ *)
5471       # `set' does not quote correctly, so add quotes: double-quote
5472       # substitution turns \\\\ into \\, and sed turns \\ into \.
5473       sed -n \
5474         "s/'/'\\\\''/g;
5475           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5476       ;; #(
5477     *)
5478       # `set' quotes correctly as required by POSIX, so do not add quotes.
5479       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5480       ;;
5481     esac |
5482     sort
5483 ) |
5484   sed '
5485      /^ac_cv_env_/b end
5486      t clear
5487      :clear
5488      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5489      t end
5490      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5491      :end' >>confcache
5492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5493   if test -w "$cache_file"; then
5494     if test "x$cache_file" != "x/dev/null"; then
5495       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5496 $as_echo "$as_me: updating cache $cache_file" >&6;}
5497       if test ! -f "$cache_file" || test -h "$cache_file"; then
5498         cat confcache >"$cache_file"
5499       else
5500         case $cache_file in #(
5501         */* | ?:*)
5502           mv -f confcache "$cache_file"$$ &&
5503           mv -f "$cache_file"$$ "$cache_file" ;; #(
5504         *)
5505           mv -f confcache "$cache_file" ;;
5506         esac
5507       fi
5508     fi
5509   else
5510     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5512   fi
5513 fi
5514 rm -f confcache
5515
5516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5517 # Let make expand exec_prefix.
5518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5519
5520 DEFS=-DHAVE_CONFIG_H
5521
5522 ac_libobjs=
5523 ac_ltlibobjs=
5524 U=
5525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5526   # 1. Remove the extension, and $U if already installed.
5527   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5528   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5529   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5530   #    will be set to the directory where LIBOBJS objects are built.
5531   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5532   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5533 done
5534 LIBOBJS=$ac_libobjs
5535
5536 LTLIBOBJS=$ac_ltlibobjs
5537
5538
5539
5540 : "${CONFIG_STATUS=./config.status}"
5541 ac_write_fail=0
5542 ac_clean_files_save=$ac_clean_files
5543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5545 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5546 as_write_fail=0
5547 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5548 #! $SHELL
5549 # Generated by $as_me.
5550 # Run this file to recreate the current configuration.
5551 # Compiler output produced by configure, useful for debugging
5552 # configure, is in config.log if it exists.
5553
5554 debug=false
5555 ac_cs_recheck=false
5556 ac_cs_silent=false
5557
5558 SHELL=\${CONFIG_SHELL-$SHELL}
5559 export SHELL
5560 _ASEOF
5561 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5562 ## -------------------- ##
5563 ## M4sh Initialization. ##
5564 ## -------------------- ##
5565
5566 # Be more Bourne compatible
5567 DUALCASE=1; export DUALCASE # for MKS sh
5568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5569   emulate sh
5570   NULLCMD=:
5571   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5572   # is contrary to our usage.  Disable this feature.
5573   alias -g '${1+"$@"}'='"$@"'
5574   setopt NO_GLOB_SUBST
5575 else
5576   case `(set -o) 2>/dev/null` in #(
5577   *posix*) :
5578     set -o posix ;; #(
5579   *) :
5580      ;;
5581 esac
5582 fi
5583
5584
5585 as_nl='
5586 '
5587 export as_nl
5588 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5589 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5592 # Prefer a ksh shell builtin over an external printf program on Solaris,
5593 # but without wasting forks for bash or zsh.
5594 if test -z "$BASH_VERSION$ZSH_VERSION" \
5595     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5596   as_echo='print -r --'
5597   as_echo_n='print -rn --'
5598 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5599   as_echo='printf %s\n'
5600   as_echo_n='printf %s'
5601 else
5602   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5603     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5604     as_echo_n='/usr/ucb/echo -n'
5605   else
5606     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5607     as_echo_n_body='eval
5608       arg=$1;
5609       case $arg in #(
5610       *"$as_nl"*)
5611         expr "X$arg" : "X\\(.*\\)$as_nl";
5612         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5613       esac;
5614       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5615     '
5616     export as_echo_n_body
5617     as_echo_n='sh -c $as_echo_n_body as_echo'
5618   fi
5619   export as_echo_body
5620   as_echo='sh -c $as_echo_body as_echo'
5621 fi
5622
5623 # The user is always right.
5624 if test "${PATH_SEPARATOR+set}" != set; then
5625   PATH_SEPARATOR=:
5626   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5627     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5628       PATH_SEPARATOR=';'
5629   }
5630 fi
5631
5632
5633 # IFS
5634 # We need space, tab and new line, in precisely that order.  Quoting is
5635 # there to prevent editors from complaining about space-tab.
5636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5637 # splitting by setting IFS to empty value.)
5638 IFS=" ""        $as_nl"
5639
5640 # Find who we are.  Look in the path if we contain no directory separator.
5641 as_myself=
5642 case $0 in #((
5643   *[\\/]* ) as_myself=$0 ;;
5644   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5650   done
5651 IFS=$as_save_IFS
5652
5653      ;;
5654 esac
5655 # We did not find ourselves, most probably we were run as `sh COMMAND'
5656 # in which case we are not to be found in the path.
5657 if test "x$as_myself" = x; then
5658   as_myself=$0
5659 fi
5660 if test ! -f "$as_myself"; then
5661   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5662   exit 1
5663 fi
5664
5665 # Unset variables that we do not need and which cause bugs (e.g. in
5666 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5667 # suppresses any "Segmentation fault" message there.  '((' could
5668 # trigger a bug in pdksh 5.2.14.
5669 for as_var in BASH_ENV ENV MAIL MAILPATH
5670 do eval test x\${$as_var+set} = xset \
5671   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5672 done
5673 PS1='$ '
5674 PS2='> '
5675 PS4='+ '
5676
5677 # NLS nuisances.
5678 LC_ALL=C
5679 export LC_ALL
5680 LANGUAGE=C
5681 export LANGUAGE
5682
5683 # CDPATH.
5684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5685
5686
5687 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5688 # ----------------------------------------
5689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5691 # script with STATUS, using 1 if that was 0.
5692 as_fn_error ()
5693 {
5694   as_status=$1; test $as_status -eq 0 && as_status=1
5695   if test "$4"; then
5696     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5697     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5698   fi
5699   $as_echo "$as_me: error: $2" >&2
5700   as_fn_exit $as_status
5701 } # as_fn_error
5702
5703
5704 # as_fn_set_status STATUS
5705 # -----------------------
5706 # Set $? to STATUS, without forking.
5707 as_fn_set_status ()
5708 {
5709   return $1
5710 } # as_fn_set_status
5711
5712 # as_fn_exit STATUS
5713 # -----------------
5714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5715 as_fn_exit ()
5716 {
5717   set +e
5718   as_fn_set_status $1
5719   exit $1
5720 } # as_fn_exit
5721
5722 # as_fn_unset VAR
5723 # ---------------
5724 # Portably unset VAR.
5725 as_fn_unset ()
5726 {
5727   { eval $1=; unset $1;}
5728 }
5729 as_unset=as_fn_unset
5730 # as_fn_append VAR VALUE
5731 # ----------------------
5732 # Append the text in VALUE to the end of the definition contained in VAR. Take
5733 # advantage of any shell optimizations that allow amortized linear growth over
5734 # repeated appends, instead of the typical quadratic growth present in naive
5735 # implementations.
5736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5737   eval 'as_fn_append ()
5738   {
5739     eval $1+=\$2
5740   }'
5741 else
5742   as_fn_append ()
5743   {
5744     eval $1=\$$1\$2
5745   }
5746 fi # as_fn_append
5747
5748 # as_fn_arith ARG...
5749 # ------------------
5750 # Perform arithmetic evaluation on the ARGs, and store the result in the
5751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5752 # must be portable across $(()) and expr.
5753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5754   eval 'as_fn_arith ()
5755   {
5756     as_val=$(( $* ))
5757   }'
5758 else
5759   as_fn_arith ()
5760   {
5761     as_val=`expr "$@" || test $? -eq 1`
5762   }
5763 fi # as_fn_arith
5764
5765
5766 if expr a : '\(a\)' >/dev/null 2>&1 &&
5767    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5768   as_expr=expr
5769 else
5770   as_expr=false
5771 fi
5772
5773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5774   as_basename=basename
5775 else
5776   as_basename=false
5777 fi
5778
5779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5780   as_dirname=dirname
5781 else
5782   as_dirname=false
5783 fi
5784
5785 as_me=`$as_basename -- "$0" ||
5786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5787          X"$0" : 'X\(//\)$' \| \
5788          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5789 $as_echo X/"$0" |
5790     sed '/^.*\/\([^/][^/]*\)\/*$/{
5791             s//\1/
5792             q
5793           }
5794           /^X\/\(\/\/\)$/{
5795             s//\1/
5796             q
5797           }
5798           /^X\/\(\/\).*/{
5799             s//\1/
5800             q
5801           }
5802           s/.*/./; q'`
5803
5804 # Avoid depending upon Character Ranges.
5805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5808 as_cr_digits='0123456789'
5809 as_cr_alnum=$as_cr_Letters$as_cr_digits
5810
5811 ECHO_C= ECHO_N= ECHO_T=
5812 case `echo -n x` in #(((((
5813 -n*)
5814   case `echo 'xy\c'` in
5815   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5816   xy)  ECHO_C='\c';;
5817   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5818        ECHO_T=' ';;
5819   esac;;
5820 *)
5821   ECHO_N='-n';;
5822 esac
5823
5824 rm -f conf$$ conf$$.exe conf$$.file
5825 if test -d conf$$.dir; then
5826   rm -f conf$$.dir/conf$$.file
5827 else
5828   rm -f conf$$.dir
5829   mkdir conf$$.dir 2>/dev/null
5830 fi
5831 if (echo >conf$$.file) 2>/dev/null; then
5832   if ln -s conf$$.file conf$$ 2>/dev/null; then
5833     as_ln_s='ln -s'
5834     # ... but there are two gotchas:
5835     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5836     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5837     # In both cases, we have to default to `cp -p'.
5838     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5839       as_ln_s='cp -p'
5840   elif ln conf$$.file conf$$ 2>/dev/null; then
5841     as_ln_s=ln
5842   else
5843     as_ln_s='cp -p'
5844   fi
5845 else
5846   as_ln_s='cp -p'
5847 fi
5848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5849 rmdir conf$$.dir 2>/dev/null
5850
5851
5852 # as_fn_mkdir_p
5853 # -------------
5854 # Create "$as_dir" as a directory, including parents if necessary.
5855 as_fn_mkdir_p ()
5856 {
5857
5858   case $as_dir in #(
5859   -*) as_dir=./$as_dir;;
5860   esac
5861   test -d "$as_dir" || eval $as_mkdir_p || {
5862     as_dirs=
5863     while :; do
5864       case $as_dir in #(
5865       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5866       *) as_qdir=$as_dir;;
5867       esac
5868       as_dirs="'$as_qdir' $as_dirs"
5869       as_dir=`$as_dirname -- "$as_dir" ||
5870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5871          X"$as_dir" : 'X\(//\)[^/]' \| \
5872          X"$as_dir" : 'X\(//\)$' \| \
5873          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5874 $as_echo X"$as_dir" |
5875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5876             s//\1/
5877             q
5878           }
5879           /^X\(\/\/\)[^/].*/{
5880             s//\1/
5881             q
5882           }
5883           /^X\(\/\/\)$/{
5884             s//\1/
5885             q
5886           }
5887           /^X\(\/\).*/{
5888             s//\1/
5889             q
5890           }
5891           s/.*/./; q'`
5892       test -d "$as_dir" && break
5893     done
5894     test -z "$as_dirs" || eval "mkdir $as_dirs"
5895   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5896
5897
5898 } # as_fn_mkdir_p
5899 if mkdir -p . 2>/dev/null; then
5900   as_mkdir_p='mkdir -p "$as_dir"'
5901 else
5902   test -d ./-p && rmdir ./-p
5903   as_mkdir_p=false
5904 fi
5905
5906 if test -x / >/dev/null 2>&1; then
5907   as_test_x='test -x'
5908 else
5909   if ls -dL / >/dev/null 2>&1; then
5910     as_ls_L_option=L
5911   else
5912     as_ls_L_option=
5913   fi
5914   as_test_x='
5915     eval sh -c '\''
5916       if test -d "$1"; then
5917         test -d "$1/.";
5918       else
5919         case $1 in #(
5920         -*)set "./$1";;
5921         esac;
5922         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5923         ???[sx]*):;;*)false;;esac;fi
5924     '\'' sh
5925   '
5926 fi
5927 as_executable_p=$as_test_x
5928
5929 # Sed expression to map a string onto a valid CPP name.
5930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5931
5932 # Sed expression to map a string onto a valid variable name.
5933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5934
5935
5936 exec 6>&1
5937 ## ----------------------------------- ##
5938 ## Main body of $CONFIG_STATUS script. ##
5939 ## ----------------------------------- ##
5940 _ASEOF
5941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5942
5943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5944 # Save the log message, to keep $0 and so on meaningful, and to
5945 # report actual input values of CONFIG_FILES etc. instead of their
5946 # values after options handling.
5947 ac_log="
5948 This file was extended by ldns $as_me 1.6.16, which was
5949 generated by GNU Autoconf 2.68.  Invocation command line was
5950
5951   CONFIG_FILES    = $CONFIG_FILES
5952   CONFIG_HEADERS  = $CONFIG_HEADERS
5953   CONFIG_LINKS    = $CONFIG_LINKS
5954   CONFIG_COMMANDS = $CONFIG_COMMANDS
5955   $ $0 $@
5956
5957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5958 "
5959
5960 _ACEOF
5961
5962 case $ac_config_files in *"
5963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5964 esac
5965
5966 case $ac_config_headers in *"
5967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5968 esac
5969
5970
5971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972 # Files that config.status was made for.
5973 config_files="$ac_config_files"
5974 config_headers="$ac_config_headers"
5975
5976 _ACEOF
5977
5978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979 ac_cs_usage="\
5980 \`$as_me' instantiates files and other configuration actions
5981 from templates according to the current configuration.  Unless the files
5982 and actions are specified as TAGs, all are instantiated by default.
5983
5984 Usage: $0 [OPTION]... [TAG]...
5985
5986   -h, --help       print this help, then exit
5987   -V, --version    print version number and configuration settings, then exit
5988       --config     print configuration, then exit
5989   -q, --quiet, --silent
5990                    do not print progress messages
5991   -d, --debug      don't remove temporary files
5992       --recheck    update $as_me by reconfiguring in the same conditions
5993       --file=FILE[:TEMPLATE]
5994                    instantiate the configuration file FILE
5995       --header=FILE[:TEMPLATE]
5996                    instantiate the configuration header FILE
5997
5998 Configuration files:
5999 $config_files
6000
6001 Configuration headers:
6002 $config_headers
6003
6004 Report bugs to <libdns@nlnetlabs.nl>."
6005
6006 _ACEOF
6007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6009 ac_cs_version="\\
6010 ldns config.status 1.6.16
6011 configured by $0, generated by GNU Autoconf 2.68,
6012   with options \\"\$ac_cs_config\\"
6013
6014 Copyright (C) 2010 Free Software Foundation, Inc.
6015 This config.status script is free software; the Free Software Foundation
6016 gives unlimited permission to copy, distribute and modify it."
6017
6018 ac_pwd='$ac_pwd'
6019 srcdir='$srcdir'
6020 test -n "\$AWK" || AWK=awk
6021 _ACEOF
6022
6023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6024 # The default lists apply if the user does not specify any file.
6025 ac_need_defaults=:
6026 while test $# != 0
6027 do
6028   case $1 in
6029   --*=?*)
6030     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6031     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6032     ac_shift=:
6033     ;;
6034   --*=)
6035     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6036     ac_optarg=
6037     ac_shift=:
6038     ;;
6039   *)
6040     ac_option=$1
6041     ac_optarg=$2
6042     ac_shift=shift
6043     ;;
6044   esac
6045
6046   case $ac_option in
6047   # Handling of the options.
6048   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6049     ac_cs_recheck=: ;;
6050   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6051     $as_echo "$ac_cs_version"; exit ;;
6052   --config | --confi | --conf | --con | --co | --c )
6053     $as_echo "$ac_cs_config"; exit ;;
6054   --debug | --debu | --deb | --de | --d | -d )
6055     debug=: ;;
6056   --file | --fil | --fi | --f )
6057     $ac_shift
6058     case $ac_optarg in
6059     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6060     '') as_fn_error $? "missing file argument" ;;
6061     esac
6062     as_fn_append CONFIG_FILES " '$ac_optarg'"
6063     ac_need_defaults=false;;
6064   --header | --heade | --head | --hea )
6065     $ac_shift
6066     case $ac_optarg in
6067     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6068     esac
6069     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6070     ac_need_defaults=false;;
6071   --he | --h)
6072     # Conflict between --help and --header
6073     as_fn_error $? "ambiguous option: \`$1'
6074 Try \`$0 --help' for more information.";;
6075   --help | --hel | -h )
6076     $as_echo "$ac_cs_usage"; exit ;;
6077   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6078   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6079     ac_cs_silent=: ;;
6080
6081   # This is an error.
6082   -*) as_fn_error $? "unrecognized option: \`$1'
6083 Try \`$0 --help' for more information." ;;
6084
6085   *) as_fn_append ac_config_targets " $1"
6086      ac_need_defaults=false ;;
6087
6088   esac
6089   shift
6090 done
6091
6092 ac_configure_extra_args=
6093
6094 if $ac_cs_silent; then
6095   exec 6>/dev/null
6096   ac_configure_extra_args="$ac_configure_extra_args --silent"
6097 fi
6098
6099 _ACEOF
6100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6101 if \$ac_cs_recheck; then
6102   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6103   shift
6104   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6105   CONFIG_SHELL='$SHELL'
6106   export CONFIG_SHELL
6107   exec "\$@"
6108 fi
6109
6110 _ACEOF
6111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6112 exec 5>>config.log
6113 {
6114   echo
6115   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6116 ## Running $as_me. ##
6117 _ASBOX
6118   $as_echo "$ac_log"
6119 } >&5
6120
6121 _ACEOF
6122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6123 _ACEOF
6124
6125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6126
6127 # Handling of arguments.
6128 for ac_config_target in $ac_config_targets
6129 do
6130   case $ac_config_target in
6131     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6132     "drill.1") CONFIG_FILES="$CONFIG_FILES drill.1" ;;
6133     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6134
6135   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6136   esac
6137 done
6138
6139
6140 # If the user did not use the arguments to specify the items to instantiate,
6141 # then the envvar interface is used.  Set only those that are not.
6142 # We use the long form for the default assignment because of an extremely
6143 # bizarre bug on SunOS 4.1.3.
6144 if $ac_need_defaults; then
6145   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6146   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6147 fi
6148
6149 # Have a temporary directory for convenience.  Make it in the build tree
6150 # simply because there is no reason against having it here, and in addition,
6151 # creating and moving files from /tmp can sometimes cause problems.
6152 # Hook for its removal unless debugging.
6153 # Note that there is a small window in which the directory will not be cleaned:
6154 # after its creation but before its name has been assigned to `$tmp'.
6155 $debug ||
6156 {
6157   tmp= ac_tmp=
6158   trap 'exit_status=$?
6159   : "${ac_tmp:=$tmp}"
6160   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6161 ' 0
6162   trap 'as_fn_exit 1' 1 2 13 15
6163 }
6164 # Create a (secure) tmp directory for tmp files.
6165
6166 {
6167   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6168   test -d "$tmp"
6169 }  ||
6170 {
6171   tmp=./conf$$-$RANDOM
6172   (umask 077 && mkdir "$tmp")
6173 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6174 ac_tmp=$tmp
6175
6176 # Set up the scripts for CONFIG_FILES section.
6177 # No need to generate them if there are no CONFIG_FILES.
6178 # This happens for instance with `./config.status config.h'.
6179 if test -n "$CONFIG_FILES"; then
6180
6181
6182 ac_cr=`echo X | tr X '\015'`
6183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6184 # But we know of no other shell where ac_cr would be empty at this
6185 # point, so we can use a bashism as a fallback.
6186 if test "x$ac_cr" = x; then
6187   eval ac_cr=\$\'\\r\'
6188 fi
6189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6191   ac_cs_awk_cr='\\r'
6192 else
6193   ac_cs_awk_cr=$ac_cr
6194 fi
6195
6196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6197 _ACEOF
6198
6199
6200 {
6201   echo "cat >conf$$subs.awk <<_ACEOF" &&
6202   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6203   echo "_ACEOF"
6204 } >conf$$subs.sh ||
6205   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6207 ac_delim='%!_!# '
6208 for ac_last_try in false false false false false :; do
6209   . ./conf$$subs.sh ||
6210     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6211
6212   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6213   if test $ac_delim_n = $ac_delim_num; then
6214     break
6215   elif $ac_last_try; then
6216     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6217   else
6218     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6219   fi
6220 done
6221 rm -f conf$$subs.sh
6222
6223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6224 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6225 _ACEOF
6226 sed -n '
6227 h
6228 s/^/S["/; s/!.*/"]=/
6229 p
6230 g
6231 s/^[^!]*!//
6232 :repl
6233 t repl
6234 s/'"$ac_delim"'$//
6235 t delim
6236 :nl
6237 h
6238 s/\(.\{148\}\)..*/\1/
6239 t more1
6240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6241 p
6242 n
6243 b repl
6244 :more1
6245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6246 p
6247 g
6248 s/.\{148\}//
6249 t nl
6250 :delim
6251 h
6252 s/\(.\{148\}\)..*/\1/
6253 t more2
6254 s/["\\]/\\&/g; s/^/"/; s/$/"/
6255 p
6256 b
6257 :more2
6258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6259 p
6260 g
6261 s/.\{148\}//
6262 t delim
6263 ' <conf$$subs.awk | sed '
6264 /^[^""]/{
6265   N
6266   s/\n//
6267 }
6268 ' >>$CONFIG_STATUS || ac_write_fail=1
6269 rm -f conf$$subs.awk
6270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6271 _ACAWK
6272 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6273   for (key in S) S_is_set[key] = 1
6274   FS = "\a"
6275
6276 }
6277 {
6278   line = $ 0
6279   nfields = split(line, field, "@")
6280   substed = 0
6281   len = length(field[1])
6282   for (i = 2; i < nfields; i++) {
6283     key = field[i]
6284     keylen = length(key)
6285     if (S_is_set[key]) {
6286       value = S[key]
6287       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6288       len += length(value) + length(field[++i])
6289       substed = 1
6290     } else
6291       len += 1 + keylen
6292   }
6293
6294   print line
6295 }
6296
6297 _ACAWK
6298 _ACEOF
6299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6301   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6302 else
6303   cat
6304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6305   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6306 _ACEOF
6307
6308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6310 # trailing colons and then remove the whole line if VPATH becomes empty
6311 # (actually we leave an empty line to preserve line numbers).
6312 if test "x$srcdir" = x.; then
6313   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6314 h
6315 s///
6316 s/^/:/
6317 s/[      ]*$/:/
6318 s/:\$(srcdir):/:/g
6319 s/:\${srcdir}:/:/g
6320 s/:@srcdir@:/:/g
6321 s/^:*//
6322 s/:*$//
6323 x
6324 s/\(=[   ]*\).*/\1/
6325 G
6326 s/\n//
6327 s/^[^=]*=[       ]*$//
6328 }'
6329 fi
6330
6331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332 fi # test -n "$CONFIG_FILES"
6333
6334 # Set up the scripts for CONFIG_HEADERS section.
6335 # No need to generate them if there are no CONFIG_HEADERS.
6336 # This happens for instance with `./config.status Makefile'.
6337 if test -n "$CONFIG_HEADERS"; then
6338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6339 BEGIN {
6340 _ACEOF
6341
6342 # Transform confdefs.h into an awk script `defines.awk', embedded as
6343 # here-document in config.status, that substitutes the proper values into
6344 # config.h.in to produce config.h.
6345
6346 # Create a delimiter string that does not exist in confdefs.h, to ease
6347 # handling of long lines.
6348 ac_delim='%!_!# '
6349 for ac_last_try in false false :; do
6350   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6351   if test -z "$ac_tt"; then
6352     break
6353   elif $ac_last_try; then
6354     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6355   else
6356     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6357   fi
6358 done
6359
6360 # For the awk script, D is an array of macro values keyed by name,
6361 # likewise P contains macro parameters if any.  Preserve backslash
6362 # newline sequences.
6363
6364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6365 sed -n '
6366 s/.\{148\}/&'"$ac_delim"'/g
6367 t rset
6368 :rset
6369 s/^[     ]*#[    ]*define[       ][      ]*/ /
6370 t def
6371 d
6372 :def
6373 s/\\$//
6374 t bsnl
6375 s/["\\]/\\&/g
6376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6377 D["\1"]=" \3"/p
6378 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6379 d
6380 :bsnl
6381 s/["\\]/\\&/g
6382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6383 D["\1"]=" \3\\\\\\n"\\/p
6384 t cont
6385 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6386 t cont
6387 d
6388 :cont
6389 n
6390 s/.\{148\}/&'"$ac_delim"'/g
6391 t clear
6392 :clear
6393 s/\\$//
6394 t bsnlc
6395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6396 d
6397 :bsnlc
6398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6399 b cont
6400 ' <confdefs.h | sed '
6401 s/'"$ac_delim"'/"\\\
6402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6403
6404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6405   for (key in D) D_is_set[key] = 1
6406   FS = "\a"
6407 }
6408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6409   line = \$ 0
6410   split(line, arg, " ")
6411   if (arg[1] == "#") {
6412     defundef = arg[2]
6413     mac1 = arg[3]
6414   } else {
6415     defundef = substr(arg[1], 2)
6416     mac1 = arg[2]
6417   }
6418   split(mac1, mac2, "(") #)
6419   macro = mac2[1]
6420   prefix = substr(line, 1, index(line, defundef) - 1)
6421   if (D_is_set[macro]) {
6422     # Preserve the white space surrounding the "#".
6423     print prefix "define", macro P[macro] D[macro]
6424     next
6425   } else {
6426     # Replace #undef with comments.  This is necessary, for example,
6427     # in the case of _POSIX_SOURCE, which is predefined and required
6428     # on some systems where configure will not decide to define it.
6429     if (defundef == "undef") {
6430       print "/*", prefix defundef, macro, "*/"
6431       next
6432     }
6433   }
6434 }
6435 { print }
6436 _ACAWK
6437 _ACEOF
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6440 fi # test -n "$CONFIG_HEADERS"
6441
6442
6443 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
6444 shift
6445 for ac_tag
6446 do
6447   case $ac_tag in
6448   :[FHLC]) ac_mode=$ac_tag; continue;;
6449   esac
6450   case $ac_mode$ac_tag in
6451   :[FHL]*:*);;
6452   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6453   :[FH]-) ac_tag=-:-;;
6454   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6455   esac
6456   ac_save_IFS=$IFS
6457   IFS=:
6458   set x $ac_tag
6459   IFS=$ac_save_IFS
6460   shift
6461   ac_file=$1
6462   shift
6463
6464   case $ac_mode in
6465   :L) ac_source=$1;;
6466   :[FH])
6467     ac_file_inputs=
6468     for ac_f
6469     do
6470       case $ac_f in
6471       -) ac_f="$ac_tmp/stdin";;
6472       *) # Look for the file first in the build tree, then in the source tree
6473          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6474          # because $ac_f cannot contain `:'.
6475          test -f "$ac_f" ||
6476            case $ac_f in
6477            [\\/$]*) false;;
6478            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6479            esac ||
6480            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6481       esac
6482       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6483       as_fn_append ac_file_inputs " '$ac_f'"
6484     done
6485
6486     # Let's still pretend it is `configure' which instantiates (i.e., don't
6487     # use $as_me), people would be surprised to read:
6488     #    /* config.h.  Generated by config.status.  */
6489     configure_input='Generated from '`
6490           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6491         `' by configure.'
6492     if test x"$ac_file" != x-; then
6493       configure_input="$ac_file.  $configure_input"
6494       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6495 $as_echo "$as_me: creating $ac_file" >&6;}
6496     fi
6497     # Neutralize special characters interpreted by sed in replacement strings.
6498     case $configure_input in #(
6499     *\&* | *\|* | *\\* )
6500        ac_sed_conf_input=`$as_echo "$configure_input" |
6501        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6502     *) ac_sed_conf_input=$configure_input;;
6503     esac
6504
6505     case $ac_tag in
6506     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6507       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6508     esac
6509     ;;
6510   esac
6511
6512   ac_dir=`$as_dirname -- "$ac_file" ||
6513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6514          X"$ac_file" : 'X\(//\)[^/]' \| \
6515          X"$ac_file" : 'X\(//\)$' \| \
6516          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6517 $as_echo X"$ac_file" |
6518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6519             s//\1/
6520             q
6521           }
6522           /^X\(\/\/\)[^/].*/{
6523             s//\1/
6524             q
6525           }
6526           /^X\(\/\/\)$/{
6527             s//\1/
6528             q
6529           }
6530           /^X\(\/\).*/{
6531             s//\1/
6532             q
6533           }
6534           s/.*/./; q'`
6535   as_dir="$ac_dir"; as_fn_mkdir_p
6536   ac_builddir=.
6537
6538 case "$ac_dir" in
6539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6540 *)
6541   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6542   # A ".." for each directory in $ac_dir_suffix.
6543   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6544   case $ac_top_builddir_sub in
6545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6547   esac ;;
6548 esac
6549 ac_abs_top_builddir=$ac_pwd
6550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6551 # for backward compatibility:
6552 ac_top_builddir=$ac_top_build_prefix
6553
6554 case $srcdir in
6555   .)  # We are building in place.
6556     ac_srcdir=.
6557     ac_top_srcdir=$ac_top_builddir_sub
6558     ac_abs_top_srcdir=$ac_pwd ;;
6559   [\\/]* | ?:[\\/]* )  # Absolute name.
6560     ac_srcdir=$srcdir$ac_dir_suffix;
6561     ac_top_srcdir=$srcdir
6562     ac_abs_top_srcdir=$srcdir ;;
6563   *) # Relative name.
6564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6565     ac_top_srcdir=$ac_top_build_prefix$srcdir
6566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6567 esac
6568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6569
6570
6571   case $ac_mode in
6572   :F)
6573   #
6574   # CONFIG_FILE
6575   #
6576
6577 _ACEOF
6578
6579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6580 # If the template does not know about datarootdir, expand it.
6581 # FIXME: This hack should be removed a few years after 2.60.
6582 ac_datarootdir_hack=; ac_datarootdir_seen=
6583 ac_sed_dataroot='
6584 /datarootdir/ {
6585   p
6586   q
6587 }
6588 /@datadir@/p
6589 /@docdir@/p
6590 /@infodir@/p
6591 /@localedir@/p
6592 /@mandir@/p'
6593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6594 *datarootdir*) ac_datarootdir_seen=yes;;
6595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6598 _ACEOF
6599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6600   ac_datarootdir_hack='
6601   s&@datadir@&$datadir&g
6602   s&@docdir@&$docdir&g
6603   s&@infodir@&$infodir&g
6604   s&@localedir@&$localedir&g
6605   s&@mandir@&$mandir&g
6606   s&\\\${datarootdir}&$datarootdir&g' ;;
6607 esac
6608 _ACEOF
6609
6610 # Neutralize VPATH when `$srcdir' = `.'.
6611 # Shell code in configure.ac might set extrasub.
6612 # FIXME: do we really want to maintain this feature?
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 ac_sed_extra="$ac_vpsub
6615 $extrasub
6616 _ACEOF
6617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6618 :t
6619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6620 s|@configure_input@|$ac_sed_conf_input|;t t
6621 s&@top_builddir@&$ac_top_builddir_sub&;t t
6622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6623 s&@srcdir@&$ac_srcdir&;t t
6624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6625 s&@top_srcdir@&$ac_top_srcdir&;t t
6626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6627 s&@builddir@&$ac_builddir&;t t
6628 s&@abs_builddir@&$ac_abs_builddir&;t t
6629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6630 $ac_datarootdir_hack
6631 "
6632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6633   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6634
6635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6636   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6637   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
6638       "$ac_tmp/out"`; test -z "$ac_out"; } &&
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6640 which seems to be undefined.  Please make sure it is defined" >&5
6641 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6642 which seems to be undefined.  Please make sure it is defined" >&2;}
6643
6644   rm -f "$ac_tmp/stdin"
6645   case $ac_file in
6646   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6647   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6648   esac \
6649   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6650  ;;
6651   :H)
6652   #
6653   # CONFIG_HEADER
6654   #
6655   if test x"$ac_file" != x-; then
6656     {
6657       $as_echo "/* $configure_input  */" \
6658       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6659     } >"$ac_tmp/config.h" \
6660       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6661     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6662       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6663 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6664     else
6665       rm -f "$ac_file"
6666       mv "$ac_tmp/config.h" "$ac_file" \
6667         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6668     fi
6669   else
6670     $as_echo "/* $configure_input  */" \
6671       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6672       || as_fn_error $? "could not create -" "$LINENO" 5
6673   fi
6674  ;;
6675
6676
6677   esac
6678
6679 done # for ac_tag
6680
6681
6682 as_fn_exit 0
6683 _ACEOF
6684 ac_clean_files=$ac_clean_files_save
6685
6686 test $ac_write_fail = 0 ||
6687   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6688
6689
6690 # configure is writing to config.log, and then calls config.status.
6691 # config.status does its own redirection, appending to config.log.
6692 # Unfortunately, on DOS this fails, as config.log is still kept open
6693 # by configure, so config.status won't be able to write to it; its
6694 # output is simply discarded.  So we exec the FD to /dev/null,
6695 # effectively closing config.log, so it can be properly (re)opened and
6696 # appended to by config.status.  When coming back to configure, we
6697 # need to make the FD available again.
6698 if test "$no_create" != yes; then
6699   ac_cs_success=:
6700   ac_config_status_args=
6701   test "$silent" = yes &&
6702     ac_config_status_args="$ac_config_status_args --quiet"
6703   exec 5>/dev/null
6704   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6705   exec 5>>config.log
6706   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6707   # would make configure fail if this is the last instruction.
6708   $ac_cs_success || as_fn_exit 1
6709 fi
6710 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6712 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6713 fi
6714