xref: /openbsd/usr.sbin/unbound/configure (revision 73471bf0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for unbound 1.13.2.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: unbound-bugs@nlnetlabs.nl or
280$0: https://github.com/NLnetLabs/unbound/issues about your
281$0: system, including any error possibly output before this
282$0: message. Then install a modern shell, or manually run
283$0: the script under such a shell if you do have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='unbound'
624PACKAGE_TARNAME='unbound'
625PACKAGE_VERSION='1.13.2'
626PACKAGE_STRING='unbound 1.13.2'
627PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
628PACKAGE_URL=''
629
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_func_c_list=
663ac_subst_vars='LTLIBOBJS
664date
665version
666INSTALLTARGET
667ALLTARGET
668SOURCEFILE
669SOURCEDETERMINE
670IPSET_OBJ
671IPSET_SRC
672IPSECMOD_HEADER
673IPSECMOD_OBJ
674CACHEDB_OBJ
675CACHEDB_SRC
676DNSCRYPT_OBJ
677DNSCRYPT_SRC
678ENABLE_DNSCRYPT
679ENABLE_DNSCRYPT_XCHACHA20
680DNSTAP_OBJ
681DNSTAP_SRC
682DNSTAP_SOCKET_TESTBIN
683DNSTAP_SOCKET_PATH
684opt_dnstap_socket_path
685ENABLE_DNSTAP
686PROTOC_C
687UBSYMS
688EXTRALINK
689COMMON_OBJ_ALL_SYMBOLS
690LIBOBJ_WITHOUT_CTIME
691LIBOBJ_WITHOUT_CTIMEARC4
692WIN_CHECKCONF_OBJ_LINK
693WIN_CONTROL_OBJ_LINK
694WIN_UBANCHOR_OBJ_LINK
695WIN_HOST_OBJ_LINK
696WIN_DAEMON_OBJ_LINK
697WIN_DAEMON_OBJ
698WIN_DAEMON_SRC
699WINAPPS
700WINDRES
701CHECKLOCK_OBJ
702staticexe
703PC_LIBEVENT_DEPENDENCY
704UNBOUND_EVENT_UNINSTALL
705UNBOUND_EVENT_INSTALL
706SUBNET_HEADER
707SUBNET_OBJ
708PC_LIBBSD_DEPENDENCY
709SSLLIB
710HAVE_SSL
711PC_CRYPTO_DEPENDENCY
712CONFIG_DATE
713NETBSD_LINTFLAGS
714PYUNBOUND_UNINSTALL
715PYUNBOUND_INSTALL
716PYUNBOUND_TARGET
717PYUNBOUND_OBJ
718WITH_PYUNBOUND
719PYTHONMOD_UNINSTALL
720PYTHONMOD_INSTALL
721PYTHONMOD_HEADER
722PYTHONMOD_OBJ
723WITH_PYTHONMODULE
724swig
725SWIG_LIB
726SWIG
727PC_PY_DEPENDENCY
728PY_MAJOR_VERSION
729PYTHON_SITE_PKG
730PYTHON_LDFLAGS
731PYTHON_CPPFLAGS
732PYTHON
733PYTHON_VERSION
734DYNLIBMOD_EXTRALIBS
735DYNLIBMOD_HEADER
736DYNLIBMOD_OBJ
737WITH_DYNLIBMODULE
738PTHREAD_CFLAGS_ONLY
739PTHREAD_CFLAGS
740PTHREAD_LIBS
741PTHREAD_CC
742ax_pthread_config
743ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
744SLDNS_ALLOCCHECK_EXTRA_OBJ
745USE_SYSTEMD_FALSE
746USE_SYSTEMD_TRUE
747SYSTEMD_DAEMON_LIBS
748SYSTEMD_DAEMON_CFLAGS
749SYSTEMD_LIBS
750SYSTEMD_CFLAGS
751RUNTIME_PATH
752LIBOBJS
753CPP
754PKG_CONFIG_LIBDIR
755PKG_CONFIG_PATH
756PKG_CONFIG
757LT_SYS_LIBRARY_PATH
758OTOOL64
759OTOOL
760LIPO
761NMEDIT
762DSYMUTIL
763MANIFEST_TOOL
764AWK
765RANLIB
766ac_ct_AR
767DLLTOOL
768OBJDUMP
769LN_S
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775EGREP
776GREP
777SED
778LIBTOOL
779AR
780host_os
781host_vendor
782host_cpu
783host
784build_os
785build_vendor
786build_cpu
787build
788libtool
789STRIP
790doxygen
791YFLAGS
792YACC
793LEXLIB
794LEX_OUTPUT_ROOT
795LEX
796debug_enabled
797DEPFLAG
798UNBOUND_USERNAME
799UNBOUND_ROOTCERT_FILE
800UNBOUND_ROOTKEY_FILE
801UNBOUND_PIDFILE
802UNBOUND_SHARE_DIR
803UNBOUND_CHROOT_DIR
804UNBOUND_RUN_DIR
805ub_conf_dir
806ub_conf_file
807UNBOUND_LOCALSTATE_DIR
808UNBOUND_SYSCONF_DIR
809UNBOUND_SBIN_DIR
810OBJEXT
811EXEEXT
812ac_ct_CC
813CPPFLAGS
814LDFLAGS
815CFLAGS
816CC
817LIBUNBOUND_AGE
818LIBUNBOUND_REVISION
819LIBUNBOUND_CURRENT
820UNBOUND_VERSION_MICRO
821UNBOUND_VERSION_MINOR
822UNBOUND_VERSION_MAJOR
823target_alias
824host_alias
825build_alias
826LIBS
827ECHO_T
828ECHO_N
829ECHO_C
830DEFS
831mandir
832localedir
833libdir
834psdir
835pdfdir
836dvidir
837htmldir
838infodir
839docdir
840oldincludedir
841includedir
842runstatedir
843localstatedir
844sharedstatedir
845sysconfdir
846datadir
847datarootdir
848libexecdir
849sbindir
850bindir
851program_transform_name
852prefix
853exec_prefix
854PACKAGE_URL
855PACKAGE_BUGREPORT
856PACKAGE_STRING
857PACKAGE_VERSION
858PACKAGE_TARNAME
859PACKAGE_NAME
860PATH_SEPARATOR
861SHELL'
862ac_subst_files=''
863ac_user_opts='
864enable_option_checking
865with_conf_file
866with_run_dir
867with_chroot_dir
868with_share_dir
869with_pidfile
870with_rootkey_file
871with_rootcert_file
872with_username
873enable_checking
874enable_debug
875enable_flto
876enable_pie
877enable_relro_now
878enable_shared
879enable_static
880with_pic
881enable_fast_install
882with_aix_soname
883with_gnu_ld
884with_sysroot
885enable_libtool_lock
886enable_rpath
887enable_largefile
888enable_systemd
889enable_alloc_checks
890enable_alloc_lite
891enable_alloc_nonregional
892with_pthreads
893with_solaris_threads
894with_syslog_facility
895with_dynlibmodule
896with_pyunbound
897with_pythonmodule
898enable_swig_version_check
899with_nss
900with_nettle
901with_ssl
902with_libbsd
903enable_sha1
904enable_sha2
905enable_subnet
906enable_gost
907enable_ecdsa
908enable_dsa
909with_deprecate_rsa_1024
910enable_ed25519
911enable_ed448
912enable_event_api
913enable_tfo_client
914enable_tfo_server
915with_libevent
916with_libexpat
917with_libhiredis
918with_libnghttp2
919enable_static_exe
920enable_fully_static
921enable_lock_checks
922enable_allsymbols
923enable_dnstap
924with_dnstap_socket_path
925with_protobuf_c
926enable_dnscrypt
927with_libsodium
928enable_cachedb
929enable_ipsecmod
930enable_ipset
931with_libmnl
932enable_explicit_port_randomisation
933enable_linux_ip_local_port_range
934with_libunbound_only
935'
936      ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942LIBS
943CPPFLAGS
944YACC
945YFLAGS
946LT_SYS_LIBRARY_PATH
947PKG_CONFIG
948PKG_CONFIG_PATH
949PKG_CONFIG_LIBDIR
950CPP
951SYSTEMD_CFLAGS
952SYSTEMD_LIBS
953SYSTEMD_DAEMON_CFLAGS
954SYSTEMD_DAEMON_LIBS
955PYTHON_VERSION'
956
957
958# Initialize some variables set by options.
959ac_init_help=
960ac_init_version=false
961ac_unrecognized_opts=
962ac_unrecognized_sep=
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994runstatedir='${localstatedir}/run'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011  # If the previous option needs an argument, assign it.
1012  if test -n "$ac_prev"; then
1013    eval $ac_prev=\$ac_option
1014    ac_prev=
1015    continue
1016  fi
1017
1018  case $ac_option in
1019  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020  *=)   ac_optarg= ;;
1021  *)    ac_optarg=yes ;;
1022  esac
1023
1024  case $ac_dashdash$ac_option in
1025  --)
1026    ac_dashdash=yes ;;
1027
1028  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029    ac_prev=bindir ;;
1030  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031    bindir=$ac_optarg ;;
1032
1033  -build | --build | --buil | --bui | --bu)
1034    ac_prev=build_alias ;;
1035  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036    build_alias=$ac_optarg ;;
1037
1038  -cache-file | --cache-file | --cache-fil | --cache-fi \
1039  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040    ac_prev=cache_file ;;
1041  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043    cache_file=$ac_optarg ;;
1044
1045  --config-cache | -C)
1046    cache_file=config.cache ;;
1047
1048  -datadir | --datadir | --datadi | --datad)
1049    ac_prev=datadir ;;
1050  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051    datadir=$ac_optarg ;;
1052
1053  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054  | --dataroo | --dataro | --datar)
1055    ac_prev=datarootdir ;;
1056  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058    datarootdir=$ac_optarg ;;
1059
1060  -disable-* | --disable-*)
1061    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1065    ac_useropt_orig=$ac_useropt
1066    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1067    case $ac_user_opts in
1068      *"
1069"enable_$ac_useropt"
1070"*) ;;
1071      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072	 ac_unrecognized_sep=', ';;
1073    esac
1074    eval enable_$ac_useropt=no ;;
1075
1076  -docdir | --docdir | --docdi | --doc | --do)
1077    ac_prev=docdir ;;
1078  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079    docdir=$ac_optarg ;;
1080
1081  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082    ac_prev=dvidir ;;
1083  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084    dvidir=$ac_optarg ;;
1085
1086  -enable-* | --enable-*)
1087    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088    # Reject names that are not valid shell variable names.
1089    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1091    ac_useropt_orig=$ac_useropt
1092    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1093    case $ac_user_opts in
1094      *"
1095"enable_$ac_useropt"
1096"*) ;;
1097      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098	 ac_unrecognized_sep=', ';;
1099    esac
1100    eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104  | --exec | --exe | --ex)
1105    ac_prev=exec_prefix ;;
1106  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108  | --exec=* | --exe=* | --ex=*)
1109    exec_prefix=$ac_optarg ;;
1110
1111  -gas | --gas | --ga | --g)
1112    # Obsolete; use --with-gas.
1113    with_gas=yes ;;
1114
1115  -help | --help | --hel | --he | -h)
1116    ac_init_help=long ;;
1117  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118    ac_init_help=recursive ;;
1119  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120    ac_init_help=short ;;
1121
1122  -host | --host | --hos | --ho)
1123    ac_prev=host_alias ;;
1124  -host=* | --host=* | --hos=* | --ho=*)
1125    host_alias=$ac_optarg ;;
1126
1127  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128    ac_prev=htmldir ;;
1129  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130  | --ht=*)
1131    htmldir=$ac_optarg ;;
1132
1133  -includedir | --includedir | --includedi | --included | --include \
1134  | --includ | --inclu | --incl | --inc)
1135    ac_prev=includedir ;;
1136  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137  | --includ=* | --inclu=* | --incl=* | --inc=*)
1138    includedir=$ac_optarg ;;
1139
1140  -infodir | --infodir | --infodi | --infod | --info | --inf)
1141    ac_prev=infodir ;;
1142  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143    infodir=$ac_optarg ;;
1144
1145  -libdir | --libdir | --libdi | --libd)
1146    ac_prev=libdir ;;
1147  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148    libdir=$ac_optarg ;;
1149
1150  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151  | --libexe | --libex | --libe)
1152    ac_prev=libexecdir ;;
1153  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154  | --libexe=* | --libex=* | --libe=*)
1155    libexecdir=$ac_optarg ;;
1156
1157  -localedir | --localedir | --localedi | --localed | --locale)
1158    ac_prev=localedir ;;
1159  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160    localedir=$ac_optarg ;;
1161
1162  -localstatedir | --localstatedir | --localstatedi | --localstated \
1163  | --localstate | --localstat | --localsta | --localst | --locals)
1164    ac_prev=localstatedir ;;
1165  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167    localstatedir=$ac_optarg ;;
1168
1169  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170    ac_prev=mandir ;;
1171  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172    mandir=$ac_optarg ;;
1173
1174  -nfp | --nfp | --nf)
1175    # Obsolete; use --without-fp.
1176    with_fp=no ;;
1177
1178  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179  | --no-cr | --no-c | -n)
1180    no_create=yes ;;
1181
1182  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184    no_recursion=yes ;;
1185
1186  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188  | --oldin | --oldi | --old | --ol | --o)
1189    ac_prev=oldincludedir ;;
1190  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193    oldincludedir=$ac_optarg ;;
1194
1195  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196    ac_prev=prefix ;;
1197  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198    prefix=$ac_optarg ;;
1199
1200  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201  | --program-pre | --program-pr | --program-p)
1202    ac_prev=program_prefix ;;
1203  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205    program_prefix=$ac_optarg ;;
1206
1207  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208  | --program-suf | --program-su | --program-s)
1209    ac_prev=program_suffix ;;
1210  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212    program_suffix=$ac_optarg ;;
1213
1214  -program-transform-name | --program-transform-name \
1215  | --program-transform-nam | --program-transform-na \
1216  | --program-transform-n | --program-transform- \
1217  | --program-transform | --program-transfor \
1218  | --program-transfo | --program-transf \
1219  | --program-trans | --program-tran \
1220  | --progr-tra | --program-tr | --program-t)
1221    ac_prev=program_transform_name ;;
1222  -program-transform-name=* | --program-transform-name=* \
1223  | --program-transform-nam=* | --program-transform-na=* \
1224  | --program-transform-n=* | --program-transform-=* \
1225  | --program-transform=* | --program-transfor=* \
1226  | --program-transfo=* | --program-transf=* \
1227  | --program-trans=* | --program-tran=* \
1228  | --progr-tra=* | --program-tr=* | --program-t=*)
1229    program_transform_name=$ac_optarg ;;
1230
1231  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232    ac_prev=pdfdir ;;
1233  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234    pdfdir=$ac_optarg ;;
1235
1236  -psdir | --psdir | --psdi | --psd | --ps)
1237    ac_prev=psdir ;;
1238  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239    psdir=$ac_optarg ;;
1240
1241  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242  | -silent | --silent | --silen | --sile | --sil)
1243    silent=yes ;;
1244
1245  -runstatedir | --runstatedir | --runstatedi | --runstated \
1246  | --runstate | --runstat | --runsta | --runst | --runs \
1247  | --run | --ru | --r)
1248    ac_prev=runstatedir ;;
1249  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1250  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1251  | --run=* | --ru=* | --r=*)
1252    runstatedir=$ac_optarg ;;
1253
1254  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255    ac_prev=sbindir ;;
1256  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257  | --sbi=* | --sb=*)
1258    sbindir=$ac_optarg ;;
1259
1260  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262  | --sharedst | --shareds | --shared | --share | --shar \
1263  | --sha | --sh)
1264    ac_prev=sharedstatedir ;;
1265  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268  | --sha=* | --sh=*)
1269    sharedstatedir=$ac_optarg ;;
1270
1271  -site | --site | --sit)
1272    ac_prev=site ;;
1273  -site=* | --site=* | --sit=*)
1274    site=$ac_optarg ;;
1275
1276  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277    ac_prev=srcdir ;;
1278  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279    srcdir=$ac_optarg ;;
1280
1281  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282  | --syscon | --sysco | --sysc | --sys | --sy)
1283    ac_prev=sysconfdir ;;
1284  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286    sysconfdir=$ac_optarg ;;
1287
1288  -target | --target | --targe | --targ | --tar | --ta | --t)
1289    ac_prev=target_alias ;;
1290  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291    target_alias=$ac_optarg ;;
1292
1293  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294    verbose=yes ;;
1295
1296  -version | --version | --versio | --versi | --vers | -V)
1297    ac_init_version=: ;;
1298
1299  -with-* | --with-*)
1300    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301    # Reject names that are not valid shell variable names.
1302    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303      as_fn_error $? "invalid package name: \`$ac_useropt'"
1304    ac_useropt_orig=$ac_useropt
1305    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1306    case $ac_user_opts in
1307      *"
1308"with_$ac_useropt"
1309"*) ;;
1310      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311	 ac_unrecognized_sep=', ';;
1312    esac
1313    eval with_$ac_useropt=\$ac_optarg ;;
1314
1315  -without-* | --without-*)
1316    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319      as_fn_error $? "invalid package name: \`$ac_useropt'"
1320    ac_useropt_orig=$ac_useropt
1321    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1322    case $ac_user_opts in
1323      *"
1324"with_$ac_useropt"
1325"*) ;;
1326      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327	 ac_unrecognized_sep=', ';;
1328    esac
1329    eval with_$ac_useropt=no ;;
1330
1331  --x)
1332    # Obsolete; use --with-x.
1333    with_x=yes ;;
1334
1335  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336  | --x-incl | --x-inc | --x-in | --x-i)
1337    ac_prev=x_includes ;;
1338  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340    x_includes=$ac_optarg ;;
1341
1342  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344    ac_prev=x_libraries ;;
1345  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347    x_libraries=$ac_optarg ;;
1348
1349  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1350Try \`$0 --help' for more information"
1351    ;;
1352
1353  *=*)
1354    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355    # Reject names that are not valid shell variable names.
1356    case $ac_envvar in #(
1357      '' | [0-9]* | *[!_$as_cr_alnum]* )
1358      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1359    esac
1360    eval $ac_envvar=\$ac_optarg
1361    export $ac_envvar ;;
1362
1363  *)
1364    # FIXME: should be removed in autoconf 3.0.
1365    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1366    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1368    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369    ;;
1370
1371  esac
1372done
1373
1374if test -n "$ac_prev"; then
1375  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376  as_fn_error $? "missing argument to $ac_option"
1377fi
1378
1379if test -n "$ac_unrecognized_opts"; then
1380  case $enable_option_checking in
1381    no) ;;
1382    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1383    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384  esac
1385fi
1386
1387# Check all directory arguments for consistency.
1388for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389		datadir sysconfdir sharedstatedir localstatedir includedir \
1390		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391		libdir localedir mandir runstatedir
1392do
1393  eval ac_val=\$$ac_var
1394  # Remove trailing slashes.
1395  case $ac_val in
1396    */ )
1397      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398      eval $ac_var=\$ac_val;;
1399  esac
1400  # Be sure to have absolute directory names.
1401  case $ac_val in
1402    [\\/$]* | ?:[\\/]* )  continue;;
1403    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404  esac
1405  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1406done
1407
1408# There might be people who depend on the old broken behavior: `$host'
1409# used to hold the argument of --host etc.
1410# FIXME: To remove some day.
1411build=$build_alias
1412host=$host_alias
1413target=$target_alias
1414
1415# FIXME: To remove some day.
1416if test "x$host_alias" != x; then
1417  if test "x$build_alias" = x; then
1418    cross_compiling=maybe
1419  elif test "x$build_alias" != "x$host_alias"; then
1420    cross_compiling=yes
1421  fi
1422fi
1423
1424ac_tool_prefix=
1425test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427test "$silent" = yes && exec 6>/dev/null
1428
1429
1430ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431ac_ls_di=`ls -di .` &&
1432ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433  as_fn_error $? "working directory cannot be determined"
1434test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435  as_fn_error $? "pwd does not report name of working directory"
1436
1437
1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440  ac_srcdir_defaulted=yes
1441  # Try the directory containing this script, then the parent directory.
1442  ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444	 X"$as_myself" : 'X\(//\)[^/]' \| \
1445	 X"$as_myself" : 'X\(//\)$' \| \
1446	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447printf "%s\n" X"$as_myself" |
1448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449	    s//\1/
1450	    q
1451	  }
1452	  /^X\(\/\/\)[^/].*/{
1453	    s//\1/
1454	    q
1455	  }
1456	  /^X\(\/\/\)$/{
1457	    s//\1/
1458	    q
1459	  }
1460	  /^X\(\/\).*/{
1461	    s//\1/
1462	    q
1463	  }
1464	  s/.*/./; q'`
1465  srcdir=$ac_confdir
1466  if test ! -r "$srcdir/$ac_unique_file"; then
1467    srcdir=..
1468  fi
1469else
1470  ac_srcdir_defaulted=no
1471fi
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1475fi
1476ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477ac_abs_confdir=`(
1478	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479	pwd)`
1480# When building in place, set srcdir=.
1481if test "$ac_abs_confdir" = "$ac_pwd"; then
1482  srcdir=.
1483fi
1484# Remove unnecessary trailing slashes from srcdir.
1485# Double slashes in file names in object file debugging info
1486# mess up M-x gdb in Emacs.
1487case $srcdir in
1488*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489esac
1490for ac_var in $ac_precious_vars; do
1491  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492  eval ac_env_${ac_var}_value=\$${ac_var}
1493  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495done
1496
1497#
1498# Report the --help message.
1499#
1500if test "$ac_init_help" = "long"; then
1501  # Omit some internal or obsolete options to make the list less imposing.
1502  # This message is too long to be a string in the A/UX 3.1 sh.
1503  cat <<_ACEOF
1504\`configure' configures unbound 1.13.2 to adapt to many kinds of systems.
1505
1506Usage: $0 [OPTION]... [VAR=VALUE]...
1507
1508To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509VAR=VALUE.  See below for descriptions of some of the useful variables.
1510
1511Defaults for the options are specified in brackets.
1512
1513Configuration:
1514  -h, --help              display this help and exit
1515      --help=short        display options specific to this package
1516      --help=recursive    display the short help of all the included packages
1517  -V, --version           display version information and exit
1518  -q, --quiet, --silent   do not print \`checking ...' messages
1519      --cache-file=FILE   cache test results in FILE [disabled]
1520  -C, --config-cache      alias for \`--cache-file=config.cache'
1521  -n, --no-create         do not create output files
1522      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1523
1524Installation directories:
1525  --prefix=PREFIX         install architecture-independent files in PREFIX
1526                          [$ac_default_prefix]
1527  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1528                          [PREFIX]
1529
1530By default, \`make install' will install all the files in
1531\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1532an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533for instance \`--prefix=\$HOME'.
1534
1535For better control, use the options below.
1536
1537Fine tuning of the installation directories:
1538  --bindir=DIR            user executables [EPREFIX/bin]
1539  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1540  --libexecdir=DIR        program executables [EPREFIX/libexec]
1541  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1542  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1543  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1544  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1545  --libdir=DIR            object code libraries [EPREFIX/lib]
1546  --includedir=DIR        C header files [PREFIX/include]
1547  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1548  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1549  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1550  --infodir=DIR           info documentation [DATAROOTDIR/info]
1551  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1552  --mandir=DIR            man documentation [DATAROOTDIR/man]
1553  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1554  --htmldir=DIR           html documentation [DOCDIR]
1555  --dvidir=DIR            dvi documentation [DOCDIR]
1556  --pdfdir=DIR            pdf documentation [DOCDIR]
1557  --psdir=DIR             ps documentation [DOCDIR]
1558_ACEOF
1559
1560  cat <<\_ACEOF
1561
1562System types:
1563  --build=BUILD     configure for building on BUILD [guessed]
1564  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1565_ACEOF
1566fi
1567
1568if test -n "$ac_init_help"; then
1569  case $ac_init_help in
1570     short | recursive ) echo "Configuration of unbound 1.13.2:";;
1571   esac
1572  cat <<\_ACEOF
1573
1574Optional Features:
1575  --disable-option-checking  ignore unrecognized --enable/--with options
1576  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1577  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1578  --enable-checking       Enable warnings, asserts, makefile-dependencies
1579  --enable-debug          same as enable-checking
1580  --disable-flto          Disable link-time optimization (gcc specific option)
1581  --enable-pie            Enable Position-Independent Executable (eg. to fully
1582                          benefit from ASLR, small performance penalty)
1583  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1584                          NOW, to protect GOT and .dtor areas)
1585  --enable-shared[=PKGS]  build shared libraries [default=yes]
1586  --enable-static[=PKGS]  build static libraries [default=yes]
1587  --enable-fast-install[=PKGS]
1588                          optimize for fast installation [default=yes]
1589  --disable-libtool-lock  avoid locking (might break parallel builds)
1590  --disable-rpath         disable hardcoded rpath (default=enabled)
1591  --disable-largefile     omit support for large files
1592  --enable-systemd        compile with systemd support
1593  --enable-alloc-checks   enable to memory allocation statistics, for debug
1594                          purposes
1595  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1596                          purposes
1597  --enable-alloc-nonregional
1598                          enable nonregional allocs, slow but exposes regional
1599                          allocations to other memory purifiers, for debug
1600                          purposes
1601  --disable-swig-version-check
1602                          Disable swig version check to build python modules
1603                          with older swig even though that is unreliable
1604  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1605                          support
1606  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1607  --enable-subnet         Enable client subnet
1608  --disable-gost          Disable GOST support
1609  --disable-ecdsa         Disable ECDSA support
1610  --disable-dsa           Disable DSA support
1611  --disable-ed25519       Disable ED25519 support
1612  --disable-ed448         Disable ED448 support
1613  --enable-event-api      Enable (experimental) pluggable event base
1614                          libunbound API installed to unbound-event.h
1615  --enable-tfo-client     Enable TCP Fast Open for client mode
1616  --enable-tfo-server     Enable TCP Fast Open for server mode
1617  --enable-static-exe     enable to compile executables statically against
1618                          (event) uninstalled libs, for debug purposes
1619  --enable-fully-static   enable to compile fully static
1620  --enable-lock-checks    enable to check lock and unlock calls, for debug
1621                          purposes
1622  --enable-allsymbols     export all symbols from libunbound and link binaries
1623                          to it, smaller install size but libunbound export
1624                          table is polluted by internal symbols
1625  --enable-dnstap         Enable dnstap support (requires protobuf-c)
1626  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1627  --enable-cachedb        enable cachedb module that can use external cache
1628                          storage
1629  --enable-ipsecmod       Enable ipsecmod module that facilitates
1630                          opportunistic IPsec
1631  --enable-ipset          enable ipset module
1632  --disable-explicit-port-randomisation
1633                          disable explicit source port randomisation and rely
1634                          on the kernel to provide random source ports
1635  --enable-linux-ip-local-port-range
1636                          Define this to enable use of
1637                          /proc/sys/net/ipv4/ip_local_port_range as a default
1638                          outgoing port range. This is only for the libunbound
1639                          on Linux and does not affect unbound resolving
1640                          daemon itself. This may severely limit the number of
1641                          available outgoing ports and thus decrease
1642                          randomness. Define this only when the target system
1643                          restricts (e.g. some of SELinux enabled
1644                          distributions) the use of non-ephemeral ports.
1645
1646Optional Packages:
1647  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1648  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1649  --with-conf-file=path   Pathname to the Unbound configuration file
1650  --with-run-dir=path     set default directory to chdir to (by default dir
1651                          part of cfg file)
1652  --with-chroot-dir=path  set default directory to chroot to (by default same
1653                          as run-dir)
1654  --with-share-dir=path   set default directory with shared data (by default
1655                          same as share/unbound)
1656  --with-pidfile=filename set default pathname to unbound pidfile (default
1657                          run-dir/unbound.pid)
1658  --with-rootkey-file=filename
1659                          set default pathname to root key file (default
1660                          run-dir/root.key). This file is read and written.
1661  --with-rootcert-file=filename
1662                          set default pathname to root update certificate file
1663                          (default run-dir/icannbundle.pem). This file need
1664                          not exist if you are content with the builtin.
1665  --with-username=user    set default user that unbound changes to (default
1666                          user is unbound)
1667  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1668                          both]
1669  --with-aix-soname=aix|svr4|both
1670                          shared library versioning (aka "SONAME") variant to
1671                          provide on AIX, [default=aix].
1672  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1673  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1674                          compiler's sysroot if not specified).
1675  --with-pthreads         use pthreads library, or --without-pthreads to
1676                          disable threading support.
1677  --with-solaris-threads  use solaris native thread library.
1678  --with-syslog-facility=LOCAL0 - LOCAL7
1679                          set SYSLOG_FACILITY, default DAEMON
1680  --with-dynlibmodule     build dynamic library module, or
1681                          --without-dynlibmodule to disable it. (default=no)
1682  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1683                          (default=no)
1684  --with-pythonmodule     build Python module, or --without-pythonmodule to
1685                          disable script engine. (default=no)
1686  --with-nss=path         use libnss instead of openssl, installed at path.
1687  --with-nettle=path      use libnettle as crypto library, installed at path.
1688  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1689                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1690                          /usr)
1691  --with-libbsd           Use portable libbsd functions
1692  --with-deprecate-rsa-1024
1693                          Deprecate RSA 1024 bit length, makes that an
1694                          unsupported key, for use when OpenSSL FIPS refuses
1695                          1024 bit verification
1696  --with-libevent=pathname
1697                          use libevent (will check /usr/local /opt/local
1698                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1699                          an explicit path). Slower, but allows use of large
1700                          outgoing port ranges.
1701  --with-libexpat=path    specify explicit path for libexpat.
1702  --with-libhiredis=path  specify explicit path for libhiredis.
1703  --with-libnghttp2=path  specify explicit path for libnghttp2.
1704  --with-dnstap-socket-path=pathname
1705                          set default dnstap socket path
1706  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1707  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1708  --with-libmnl=path      specify explicit path for libmnl.
1709  --with-libunbound-only  do not build daemon and tool programs
1710
1711Some influential environment variables:
1712  CC          C compiler command
1713  CFLAGS      C compiler flags
1714  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1715              nonstandard directory <lib dir>
1716  LIBS        libraries to pass to the linker, e.g. -l<library>
1717  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1718              you have headers in a nonstandard directory <include dir>
1719  YACC        The `Yet Another Compiler Compiler' implementation to use.
1720              Defaults to the first program found out of: `bison -y', `byacc',
1721              `yacc'.
1722  YFLAGS      The list of arguments that will be passed by default to $YACC.
1723              This script will default YFLAGS to the empty string to avoid a
1724              default value of `-d' given by some make applications.
1725  LT_SYS_LIBRARY_PATH
1726              User-defined run-time library search path.
1727  PKG_CONFIG  path to pkg-config utility
1728  PKG_CONFIG_PATH
1729              directories to add to pkg-config's search path
1730  PKG_CONFIG_LIBDIR
1731              path overriding pkg-config's built-in search path
1732  CPP         C preprocessor
1733  SYSTEMD_CFLAGS
1734              C compiler flags for SYSTEMD, overriding pkg-config
1735  SYSTEMD_LIBS
1736              linker flags for SYSTEMD, overriding pkg-config
1737  SYSTEMD_DAEMON_CFLAGS
1738              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1739  SYSTEMD_DAEMON_LIBS
1740              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1741  PYTHON_VERSION
1742              The installed Python version to use, for example '2.3'. This
1743              string will be appended to the Python interpreter canonical
1744              name.
1745
1746Use these variables to override the choices made by `configure' or to help
1747it to find libraries and programs with nonstandard names/locations.
1748
1749Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1750_ACEOF
1751ac_status=$?
1752fi
1753
1754if test "$ac_init_help" = "recursive"; then
1755  # If there are subdirs, report their specific --help.
1756  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1757    test -d "$ac_dir" ||
1758      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759      continue
1760    ac_builddir=.
1761
1762case "$ac_dir" in
1763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764*)
1765  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1766  # A ".." for each directory in $ac_dir_suffix.
1767  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1768  case $ac_top_builddir_sub in
1769  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1771  esac ;;
1772esac
1773ac_abs_top_builddir=$ac_pwd
1774ac_abs_builddir=$ac_pwd$ac_dir_suffix
1775# for backward compatibility:
1776ac_top_builddir=$ac_top_build_prefix
1777
1778case $srcdir in
1779  .)  # We are building in place.
1780    ac_srcdir=.
1781    ac_top_srcdir=$ac_top_builddir_sub
1782    ac_abs_top_srcdir=$ac_pwd ;;
1783  [\\/]* | ?:[\\/]* )  # Absolute name.
1784    ac_srcdir=$srcdir$ac_dir_suffix;
1785    ac_top_srcdir=$srcdir
1786    ac_abs_top_srcdir=$srcdir ;;
1787  *) # Relative name.
1788    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1789    ac_top_srcdir=$ac_top_build_prefix$srcdir
1790    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1791esac
1792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1793
1794    cd "$ac_dir" || { ac_status=$?; continue; }
1795    # Check for configure.gnu first; this name is used for a wrapper for
1796    # Metaconfig's "Configure" on case-insensitive file systems.
1797    if test -f "$ac_srcdir/configure.gnu"; then
1798      echo &&
1799      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1800    elif test -f "$ac_srcdir/configure"; then
1801      echo &&
1802      $SHELL "$ac_srcdir/configure" --help=recursive
1803    else
1804      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1805    fi || ac_status=$?
1806    cd "$ac_pwd" || { ac_status=$?; break; }
1807  done
1808fi
1809
1810test -n "$ac_init_help" && exit $ac_status
1811if $ac_init_version; then
1812  cat <<\_ACEOF
1813unbound configure 1.13.2
1814generated by GNU Autoconf 2.71
1815
1816Copyright (C) 2021 Free Software Foundation, Inc.
1817This configure script is free software; the Free Software Foundation
1818gives unlimited permission to copy, distribute and modify it.
1819_ACEOF
1820  exit
1821fi
1822
1823## ------------------------ ##
1824## Autoconf initialization. ##
1825## ------------------------ ##
1826
1827# ac_fn_c_try_compile LINENO
1828# --------------------------
1829# Try to compile conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_compile ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext conftest.beam
1834  if { { ac_try="$ac_compile"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840printf "%s\n" "$ac_try_echo"; } >&5
1841  (eval "$ac_compile") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest.$ac_objext
1853then :
1854  ac_retval=0
1855else $as_nop
1856  printf "%s\n" "$as_me: failed program was:" >&5
1857sed 's/^/| /' conftest.$ac_ext >&5
1858
1859	ac_retval=1
1860fi
1861  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862  as_fn_set_status $ac_retval
1863
1864} # ac_fn_c_try_compile
1865
1866# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1867# -------------------------------------------------------
1868# Tests whether HEADER exists and can be compiled using the include files in
1869# INCLUDES, setting the cache variable VAR accordingly.
1870ac_fn_c_check_header_compile ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874printf %s "checking for $2... " >&6; }
1875if eval test \${$3+y}
1876then :
1877  printf %s "(cached) " >&6
1878else $as_nop
1879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$4
1882#include <$2>
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"
1885then :
1886  eval "$3=yes"
1887else $as_nop
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894printf "%s\n" "$ac_res" >&6; }
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_compile
1898
1899# ac_fn_c_try_link LINENO
1900# -----------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_c_try_link ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1906  if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909  *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912printf "%s\n" "$ac_try_echo"; } >&5
1913  (eval "$ac_link") 2>conftest.err
1914  ac_status=$?
1915  if test -s conftest.err; then
1916    grep -v '^ *+' conftest.err >conftest.er1
1917    cat conftest.er1 >&5
1918    mv -f conftest.er1 conftest.err
1919  fi
1920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && {
1922	 test -z "$ac_c_werror_flag" ||
1923	 test ! -s conftest.err
1924       } && test -s conftest$ac_exeext && {
1925	 test "$cross_compiling" = yes ||
1926	 test -x conftest$ac_exeext
1927       }
1928then :
1929  ac_retval=0
1930else $as_nop
1931  printf "%s\n" "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934	ac_retval=1
1935fi
1936  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938  # interfere with the next link command; also delete a directory that is
1939  # left behind by Apple's compiler.  We do this before executing the actions.
1940  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942  as_fn_set_status $ac_retval
1943
1944} # ac_fn_c_try_link
1945
1946# ac_fn_c_check_func LINENO FUNC VAR
1947# ----------------------------------
1948# Tests whether FUNC exists, setting the cache variable VAR accordingly
1949ac_fn_c_check_func ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953printf %s "checking for $2... " >&6; }
1954if eval test \${$3+y}
1955then :
1956  printf %s "(cached) " >&6
1957else $as_nop
1958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1961   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1962#define $2 innocuous_$2
1963
1964/* System header to define __stub macros and hopefully few prototypes,
1965   which can conflict with char $2 (); below.  */
1966
1967#include <limits.h>
1968#undef $2
1969
1970/* Override any GCC internal prototype to avoid an error.
1971   Use char because int might match the return type of a GCC
1972   builtin and then its argument prototype would still apply.  */
1973#ifdef __cplusplus
1974extern "C"
1975#endif
1976char $2 ();
1977/* The GNU C library defines this for functions which it implements
1978    to always fail with ENOSYS.  Some functions are actually named
1979    something starting with __ and the normal name is an alias.  */
1980#if defined __stub_$2 || defined __stub___$2
1981choke me
1982#endif
1983
1984int
1985main (void)
1986{
1987return $2 ();
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_link "$LINENO"
1993then :
1994  eval "$3=yes"
1995else $as_nop
1996  eval "$3=no"
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.beam \
1999    conftest$ac_exeext conftest.$ac_ext
2000fi
2001eval ac_res=\$$3
2002	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003printf "%s\n" "$ac_res" >&6; }
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_func
2007
2008# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009# -------------------------------------------
2010# Tests whether TYPE exists after having included INCLUDES, setting cache
2011# variable VAR accordingly.
2012ac_fn_c_check_type ()
2013{
2014  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016printf %s "checking for $2... " >&6; }
2017if eval test \${$3+y}
2018then :
2019  printf %s "(cached) " >&6
2020else $as_nop
2021  eval "$3=no"
2022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025int
2026main (void)
2027{
2028if (sizeof ($2))
2029	 return 0;
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"
2035then :
2036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h.  */
2038$4
2039int
2040main (void)
2041{
2042if (sizeof (($2)))
2043	    return 0;
2044  ;
2045  return 0;
2046}
2047_ACEOF
2048if ac_fn_c_try_compile "$LINENO"
2049then :
2050
2051else $as_nop
2052  eval "$3=yes"
2053fi
2054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2057fi
2058eval ac_res=\$$3
2059	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060printf "%s\n" "$ac_res" >&6; }
2061  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063} # ac_fn_c_check_type
2064
2065# ac_fn_c_try_cpp LINENO
2066# ----------------------
2067# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2068ac_fn_c_try_cpp ()
2069{
2070  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071  if { { ac_try="$ac_cpp conftest.$ac_ext"
2072case "(($ac_try" in
2073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074  *) ac_try_echo=$ac_try;;
2075esac
2076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077printf "%s\n" "$ac_try_echo"; } >&5
2078  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079  ac_status=$?
2080  if test -s conftest.err; then
2081    grep -v '^ *+' conftest.err >conftest.er1
2082    cat conftest.er1 >&5
2083    mv -f conftest.er1 conftest.err
2084  fi
2085  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086  test $ac_status = 0; } > conftest.i && {
2087	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2088	 test ! -s conftest.err
2089       }
2090then :
2091  ac_retval=0
2092else $as_nop
2093  printf "%s\n" "$as_me: failed program was:" >&5
2094sed 's/^/| /' conftest.$ac_ext >&5
2095
2096    ac_retval=1
2097fi
2098  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099  as_fn_set_status $ac_retval
2100
2101} # ac_fn_c_try_cpp
2102
2103# ac_fn_c_try_run LINENO
2104# ----------------------
2105# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2106# executables *can* be run.
2107ac_fn_c_try_run ()
2108{
2109  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110  if { { ac_try="$ac_link"
2111case "(($ac_try" in
2112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113  *) ac_try_echo=$ac_try;;
2114esac
2115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116printf "%s\n" "$ac_try_echo"; } >&5
2117  (eval "$ac_link") 2>&5
2118  ac_status=$?
2119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2121  { { case "(($ac_try" in
2122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123  *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126printf "%s\n" "$ac_try_echo"; } >&5
2127  (eval "$ac_try") 2>&5
2128  ac_status=$?
2129  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130  test $ac_status = 0; }; }
2131then :
2132  ac_retval=0
2133else $as_nop
2134  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2135       printf "%s\n" "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138       ac_retval=$ac_status
2139fi
2140  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2141  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142  as_fn_set_status $ac_retval
2143
2144} # ac_fn_c_try_run
2145
2146# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2147# --------------------------------------------
2148# Tries to find the compile-time value of EXPR in a program that includes
2149# INCLUDES, setting VAR accordingly. Returns whether the value could be
2150# computed
2151ac_fn_c_compute_int ()
2152{
2153  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154  if test "$cross_compiling" = yes; then
2155    # Depending upon the size, compute the lo and hi bounds.
2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$4
2159int
2160main (void)
2161{
2162static int test_array [1 - 2 * !(($2) >= 0)];
2163test_array [0] = 0;
2164return test_array [0];
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"
2171then :
2172  ac_lo=0 ac_mid=0
2173  while :; do
2174    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h.  */
2176$4
2177int
2178main (void)
2179{
2180static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181test_array [0] = 0;
2182return test_array [0];
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"
2189then :
2190  ac_hi=$ac_mid; break
2191else $as_nop
2192  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193			if test $ac_lo -le $ac_mid; then
2194			  ac_lo= ac_hi=
2195			  break
2196			fi
2197			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2200  done
2201else $as_nop
2202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203/* end confdefs.h.  */
2204$4
2205int
2206main (void)
2207{
2208static int test_array [1 - 2 * !(($2) < 0)];
2209test_array [0] = 0;
2210return test_array [0];
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"
2217then :
2218  ac_hi=-1 ac_mid=-1
2219  while :; do
2220    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h.  */
2222$4
2223int
2224main (void)
2225{
2226static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2227test_array [0] = 0;
2228return test_array [0];
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234if ac_fn_c_try_compile "$LINENO"
2235then :
2236  ac_lo=$ac_mid; break
2237else $as_nop
2238  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2239			if test $ac_mid -le $ac_hi; then
2240			  ac_lo= ac_hi=
2241			  break
2242			fi
2243			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2246  done
2247else $as_nop
2248  ac_lo= ac_hi=
2249fi
2250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2253# Binary search between lo and hi bounds.
2254while test "x$ac_lo" != "x$ac_hi"; do
2255  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257/* end confdefs.h.  */
2258$4
2259int
2260main (void)
2261{
2262static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263test_array [0] = 0;
2264return test_array [0];
2265
2266  ;
2267  return 0;
2268}
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"
2271then :
2272  ac_hi=$ac_mid
2273else $as_nop
2274  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2275fi
2276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2277done
2278case $ac_lo in #((
2279?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2280'') ac_retval=1 ;;
2281esac
2282  else
2283    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h.  */
2285$4
2286static long int longval (void) { return $2; }
2287static unsigned long int ulongval (void) { return $2; }
2288#include <stdio.h>
2289#include <stdlib.h>
2290int
2291main (void)
2292{
2293
2294  FILE *f = fopen ("conftest.val", "w");
2295  if (! f)
2296    return 1;
2297  if (($2) < 0)
2298    {
2299      long int i = longval ();
2300      if (i != ($2))
2301	return 1;
2302      fprintf (f, "%ld", i);
2303    }
2304  else
2305    {
2306      unsigned long int i = ulongval ();
2307      if (i != ($2))
2308	return 1;
2309      fprintf (f, "%lu", i);
2310    }
2311  /* Do not output a trailing newline, as this causes \r\n confusion
2312     on some platforms.  */
2313  return ferror (f) || fclose (f) != 0;
2314
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319if ac_fn_c_try_run "$LINENO"
2320then :
2321  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2322else $as_nop
2323  ac_retval=1
2324fi
2325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2326  conftest.$ac_objext conftest.beam conftest.$ac_ext
2327rm -f conftest.val
2328
2329  fi
2330  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331  as_fn_set_status $ac_retval
2332
2333} # ac_fn_c_compute_int
2334
2335# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2336# ------------------------------------------------------------------
2337# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2338# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2339ac_fn_check_decl ()
2340{
2341  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342  as_decl_name=`echo $2|sed 's/ *(.*//'`
2343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2344printf %s "checking whether $as_decl_name is declared... " >&6; }
2345if eval test \${$3+y}
2346then :
2347  printf %s "(cached) " >&6
2348else $as_nop
2349  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2350  eval ac_save_FLAGS=\$$6
2351  as_fn_append $6 " $5"
2352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h.  */
2354$4
2355int
2356main (void)
2357{
2358#ifndef $as_decl_name
2359#ifdef __cplusplus
2360  (void) $as_decl_use;
2361#else
2362  (void) $as_decl_name;
2363#endif
2364#endif
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"
2371then :
2372  eval "$3=yes"
2373else $as_nop
2374  eval "$3=no"
2375fi
2376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2377  eval $6=\$ac_save_FLAGS
2378
2379fi
2380eval ac_res=\$$3
2381	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382printf "%s\n" "$ac_res" >&6; }
2383  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384
2385} # ac_fn_check_decl
2386
2387# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2388# ----------------------------------------------------
2389# Tries to find if the field MEMBER exists in type AGGR, after including
2390# INCLUDES, setting cache variable VAR accordingly.
2391ac_fn_c_check_member ()
2392{
2393  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2395printf %s "checking for $2.$3... " >&6; }
2396if eval test \${$4+y}
2397then :
2398  printf %s "(cached) " >&6
2399else $as_nop
2400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401/* end confdefs.h.  */
2402$5
2403int
2404main (void)
2405{
2406static $2 ac_aggr;
2407if (ac_aggr.$3)
2408return 0;
2409  ;
2410  return 0;
2411}
2412_ACEOF
2413if ac_fn_c_try_compile "$LINENO"
2414then :
2415  eval "$4=yes"
2416else $as_nop
2417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418/* end confdefs.h.  */
2419$5
2420int
2421main (void)
2422{
2423static $2 ac_aggr;
2424if (sizeof ac_aggr.$3)
2425return 0;
2426  ;
2427  return 0;
2428}
2429_ACEOF
2430if ac_fn_c_try_compile "$LINENO"
2431then :
2432  eval "$4=yes"
2433else $as_nop
2434  eval "$4=no"
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2437fi
2438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2439fi
2440eval ac_res=\$$4
2441	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442printf "%s\n" "$ac_res" >&6; }
2443  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444
2445} # ac_fn_c_check_member
2446ac_configure_args_raw=
2447for ac_arg
2448do
2449  case $ac_arg in
2450  *\'*)
2451    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452  esac
2453  as_fn_append ac_configure_args_raw " '$ac_arg'"
2454done
2455
2456case $ac_configure_args_raw in
2457  *$as_nl*)
2458    ac_safe_unquote= ;;
2459  *)
2460    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2461    ac_unsafe_a="$ac_unsafe_z#~"
2462    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2463    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2464esac
2465
2466cat >config.log <<_ACEOF
2467This file contains any messages produced by compilers while
2468running configure, to aid debugging if configure makes a mistake.
2469
2470It was created by unbound $as_me 1.13.2, which was
2471generated by GNU Autoconf 2.71.  Invocation command line was
2472
2473  $ $0$ac_configure_args_raw
2474
2475_ACEOF
2476exec 5>>config.log
2477{
2478cat <<_ASUNAME
2479## --------- ##
2480## Platform. ##
2481## --------- ##
2482
2483hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2484uname -m = `(uname -m) 2>/dev/null || echo unknown`
2485uname -r = `(uname -r) 2>/dev/null || echo unknown`
2486uname -s = `(uname -s) 2>/dev/null || echo unknown`
2487uname -v = `(uname -v) 2>/dev/null || echo unknown`
2488
2489/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2490/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2491
2492/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2493/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2494/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2495/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2496/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2497/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2498/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2499
2500_ASUNAME
2501
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505  IFS=$as_save_IFS
2506  case $as_dir in #(((
2507    '') as_dir=./ ;;
2508    */) ;;
2509    *) as_dir=$as_dir/ ;;
2510  esac
2511    printf "%s\n" "PATH: $as_dir"
2512  done
2513IFS=$as_save_IFS
2514
2515} >&5
2516
2517cat >&5 <<_ACEOF
2518
2519
2520## ----------- ##
2521## Core tests. ##
2522## ----------- ##
2523
2524_ACEOF
2525
2526
2527# Keep a trace of the command line.
2528# Strip out --no-create and --no-recursion so they do not pile up.
2529# Strip out --silent because we don't want to record it for future runs.
2530# Also quote any args containing shell meta-characters.
2531# Make two passes to allow for proper duplicate-argument suppression.
2532ac_configure_args=
2533ac_configure_args0=
2534ac_configure_args1=
2535ac_must_keep_next=false
2536for ac_pass in 1 2
2537do
2538  for ac_arg
2539  do
2540    case $ac_arg in
2541    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2542    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2543    | -silent | --silent | --silen | --sile | --sil)
2544      continue ;;
2545    *\'*)
2546      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2547    esac
2548    case $ac_pass in
2549    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2550    2)
2551      as_fn_append ac_configure_args1 " '$ac_arg'"
2552      if test $ac_must_keep_next = true; then
2553	ac_must_keep_next=false # Got value, back to normal.
2554      else
2555	case $ac_arg in
2556	  *=* | --config-cache | -C | -disable-* | --disable-* \
2557	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2558	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2559	  | -with-* | --with-* | -without-* | --without-* | --x)
2560	    case "$ac_configure_args0 " in
2561	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2562	    esac
2563	    ;;
2564	  -* ) ac_must_keep_next=true ;;
2565	esac
2566      fi
2567      as_fn_append ac_configure_args " '$ac_arg'"
2568      ;;
2569    esac
2570  done
2571done
2572{ ac_configure_args0=; unset ac_configure_args0;}
2573{ ac_configure_args1=; unset ac_configure_args1;}
2574
2575# When interrupted or exit'd, cleanup temporary files, and complete
2576# config.log.  We remove comments because anyway the quotes in there
2577# would cause problems or look ugly.
2578# WARNING: Use '\'' to represent an apostrophe within the trap.
2579# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2580trap 'exit_status=$?
2581  # Sanitize IFS.
2582  IFS=" ""	$as_nl"
2583  # Save into config.log some information that might help in debugging.
2584  {
2585    echo
2586
2587    printf "%s\n" "## ---------------- ##
2588## Cache variables. ##
2589## ---------------- ##"
2590    echo
2591    # The following way of writing the cache mishandles newlines in values,
2592(
2593  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2594    eval ac_val=\$$ac_var
2595    case $ac_val in #(
2596    *${as_nl}*)
2597      case $ac_var in #(
2598      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2599printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2600      esac
2601      case $ac_var in #(
2602      _ | IFS | as_nl) ;; #(
2603      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2604      *) { eval $ac_var=; unset $ac_var;} ;;
2605      esac ;;
2606    esac
2607  done
2608  (set) 2>&1 |
2609    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2610    *${as_nl}ac_space=\ *)
2611      sed -n \
2612	"s/'\''/'\''\\\\'\'''\''/g;
2613	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2614      ;; #(
2615    *)
2616      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2617      ;;
2618    esac |
2619    sort
2620)
2621    echo
2622
2623    printf "%s\n" "## ----------------- ##
2624## Output variables. ##
2625## ----------------- ##"
2626    echo
2627    for ac_var in $ac_subst_vars
2628    do
2629      eval ac_val=\$$ac_var
2630      case $ac_val in
2631      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632      esac
2633      printf "%s\n" "$ac_var='\''$ac_val'\''"
2634    done | sort
2635    echo
2636
2637    if test -n "$ac_subst_files"; then
2638      printf "%s\n" "## ------------------- ##
2639## File substitutions. ##
2640## ------------------- ##"
2641      echo
2642      for ac_var in $ac_subst_files
2643      do
2644	eval ac_val=\$$ac_var
2645	case $ac_val in
2646	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2647	esac
2648	printf "%s\n" "$ac_var='\''$ac_val'\''"
2649      done | sort
2650      echo
2651    fi
2652
2653    if test -s confdefs.h; then
2654      printf "%s\n" "## ----------- ##
2655## confdefs.h. ##
2656## ----------- ##"
2657      echo
2658      cat confdefs.h
2659      echo
2660    fi
2661    test "$ac_signal" != 0 &&
2662      printf "%s\n" "$as_me: caught signal $ac_signal"
2663    printf "%s\n" "$as_me: exit $exit_status"
2664  } >&5
2665  rm -f core *.core core.conftest.* &&
2666    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2667    exit $exit_status
2668' 0
2669for ac_signal in 1 2 13 15; do
2670  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2671done
2672ac_signal=0
2673
2674# confdefs.h avoids OS command line length limits that DEFS can exceed.
2675rm -f -r conftest* confdefs.h
2676
2677printf "%s\n" "/* confdefs.h */" > confdefs.h
2678
2679# Predefined preprocessor variables.
2680
2681printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2682
2683printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2684
2685printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2686
2687printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2688
2689printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2690
2691printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2692
2693
2694# Let the site file select an alternate cache file if it wants to.
2695# Prefer an explicitly selected file to automatically selected ones.
2696if test -n "$CONFIG_SITE"; then
2697  ac_site_files="$CONFIG_SITE"
2698elif test "x$prefix" != xNONE; then
2699  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2700else
2701  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2702fi
2703
2704for ac_site_file in $ac_site_files
2705do
2706  case $ac_site_file in #(
2707  */*) :
2708     ;; #(
2709  *) :
2710    ac_site_file=./$ac_site_file ;;
2711esac
2712  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2713    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2714printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2715    sed 's/^/| /' "$ac_site_file" >&5
2716    . "$ac_site_file" \
2717      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2719as_fn_error $? "failed to load site script $ac_site_file
2720See \`config.log' for more details" "$LINENO" 5; }
2721  fi
2722done
2723
2724if test -r "$cache_file"; then
2725  # Some versions of bash will fail to source /dev/null (special files
2726  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2727  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2728    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2729printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2730    case $cache_file in
2731      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2732      *)                      . "./$cache_file";;
2733    esac
2734  fi
2735else
2736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2737printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2738  >$cache_file
2739fi
2740
2741as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2742# Test code for whether the C compiler supports C89 (global declarations)
2743ac_c_conftest_c89_globals='
2744/* Does the compiler advertise C89 conformance?
2745   Do not test the value of __STDC__, because some compilers set it to 0
2746   while being otherwise adequately conformant. */
2747#if !defined __STDC__
2748# error "Compiler does not advertise C89 conformance"
2749#endif
2750
2751#include <stddef.h>
2752#include <stdarg.h>
2753struct stat;
2754/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2755struct buf { int x; };
2756struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2757static char *e (p, i)
2758     char **p;
2759     int i;
2760{
2761  return p[i];
2762}
2763static char *f (char * (*g) (char **, int), char **p, ...)
2764{
2765  char *s;
2766  va_list v;
2767  va_start (v,p);
2768  s = g (p, va_arg (v,int));
2769  va_end (v);
2770  return s;
2771}
2772
2773/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2774   function prototypes and stuff, but not \xHH hex character constants.
2775   These do not provoke an error unfortunately, instead are silently treated
2776   as an "x".  The following induces an error, until -std is added to get
2777   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2778   array size at least.  It is necessary to write \x00 == 0 to get something
2779   that is true only with -std.  */
2780int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2781
2782/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2783   inside strings and character constants.  */
2784#define FOO(x) '\''x'\''
2785int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2786
2787int test (int i, double x);
2788struct s1 {int (*f) (int a);};
2789struct s2 {int (*f) (double a);};
2790int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2791               int, int);'
2792
2793# Test code for whether the C compiler supports C89 (body of main).
2794ac_c_conftest_c89_main='
2795ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2796'
2797
2798# Test code for whether the C compiler supports C99 (global declarations)
2799ac_c_conftest_c99_globals='
2800// Does the compiler advertise C99 conformance?
2801#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2802# error "Compiler does not advertise C99 conformance"
2803#endif
2804
2805#include <stdbool.h>
2806extern int puts (const char *);
2807extern int printf (const char *, ...);
2808extern int dprintf (int, const char *, ...);
2809extern void *malloc (size_t);
2810
2811// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2812// dprintf is used instead of fprintf to avoid needing to declare
2813// FILE and stderr.
2814#define debug(...) dprintf (2, __VA_ARGS__)
2815#define showlist(...) puts (#__VA_ARGS__)
2816#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2817static void
2818test_varargs_macros (void)
2819{
2820  int x = 1234;
2821  int y = 5678;
2822  debug ("Flag");
2823  debug ("X = %d\n", x);
2824  showlist (The first, second, and third items.);
2825  report (x>y, "x is %d but y is %d", x, y);
2826}
2827
2828// Check long long types.
2829#define BIG64 18446744073709551615ull
2830#define BIG32 4294967295ul
2831#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2832#if !BIG_OK
2833  #error "your preprocessor is broken"
2834#endif
2835#if BIG_OK
2836#else
2837  #error "your preprocessor is broken"
2838#endif
2839static long long int bignum = -9223372036854775807LL;
2840static unsigned long long int ubignum = BIG64;
2841
2842struct incomplete_array
2843{
2844  int datasize;
2845  double data[];
2846};
2847
2848struct named_init {
2849  int number;
2850  const wchar_t *name;
2851  double average;
2852};
2853
2854typedef const char *ccp;
2855
2856static inline int
2857test_restrict (ccp restrict text)
2858{
2859  // See if C++-style comments work.
2860  // Iterate through items via the restricted pointer.
2861  // Also check for declarations in for loops.
2862  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2863    continue;
2864  return 0;
2865}
2866
2867// Check varargs and va_copy.
2868static bool
2869test_varargs (const char *format, ...)
2870{
2871  va_list args;
2872  va_start (args, format);
2873  va_list args_copy;
2874  va_copy (args_copy, args);
2875
2876  const char *str = "";
2877  int number = 0;
2878  float fnumber = 0;
2879
2880  while (*format)
2881    {
2882      switch (*format++)
2883	{
2884	case '\''s'\'': // string
2885	  str = va_arg (args_copy, const char *);
2886	  break;
2887	case '\''d'\'': // int
2888	  number = va_arg (args_copy, int);
2889	  break;
2890	case '\''f'\'': // float
2891	  fnumber = va_arg (args_copy, double);
2892	  break;
2893	default:
2894	  break;
2895	}
2896    }
2897  va_end (args_copy);
2898  va_end (args);
2899
2900  return *str && number && fnumber;
2901}
2902'
2903
2904# Test code for whether the C compiler supports C99 (body of main).
2905ac_c_conftest_c99_main='
2906  // Check bool.
2907  _Bool success = false;
2908  success |= (argc != 0);
2909
2910  // Check restrict.
2911  if (test_restrict ("String literal") == 0)
2912    success = true;
2913  char *restrict newvar = "Another string";
2914
2915  // Check varargs.
2916  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2917  test_varargs_macros ();
2918
2919  // Check flexible array members.
2920  struct incomplete_array *ia =
2921    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2922  ia->datasize = 10;
2923  for (int i = 0; i < ia->datasize; ++i)
2924    ia->data[i] = i * 1.234;
2925
2926  // Check named initializers.
2927  struct named_init ni = {
2928    .number = 34,
2929    .name = L"Test wide string",
2930    .average = 543.34343,
2931  };
2932
2933  ni.number = 58;
2934
2935  int dynamic_array[ni.number];
2936  dynamic_array[0] = argv[0][0];
2937  dynamic_array[ni.number - 1] = 543;
2938
2939  // work around unused variable warnings
2940  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2941	 || dynamic_array[ni.number - 1] != 543);
2942'
2943
2944# Test code for whether the C compiler supports C11 (global declarations)
2945ac_c_conftest_c11_globals='
2946// Does the compiler advertise C11 conformance?
2947#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2948# error "Compiler does not advertise C11 conformance"
2949#endif
2950
2951// Check _Alignas.
2952char _Alignas (double) aligned_as_double;
2953char _Alignas (0) no_special_alignment;
2954extern char aligned_as_int;
2955char _Alignas (0) _Alignas (int) aligned_as_int;
2956
2957// Check _Alignof.
2958enum
2959{
2960  int_alignment = _Alignof (int),
2961  int_array_alignment = _Alignof (int[100]),
2962  char_alignment = _Alignof (char)
2963};
2964_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2965
2966// Check _Noreturn.
2967int _Noreturn does_not_return (void) { for (;;) continue; }
2968
2969// Check _Static_assert.
2970struct test_static_assert
2971{
2972  int x;
2973  _Static_assert (sizeof (int) <= sizeof (long int),
2974                  "_Static_assert does not work in struct");
2975  long int y;
2976};
2977
2978// Check UTF-8 literals.
2979#define u8 syntax error!
2980char const utf8_literal[] = u8"happens to be ASCII" "another string";
2981
2982// Check duplicate typedefs.
2983typedef long *long_ptr;
2984typedef long int *long_ptr;
2985typedef long_ptr long_ptr;
2986
2987// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2988struct anonymous
2989{
2990  union {
2991    struct { int i; int j; };
2992    struct { int k; long int l; } w;
2993  };
2994  int m;
2995} v1;
2996'
2997
2998# Test code for whether the C compiler supports C11 (body of main).
2999ac_c_conftest_c11_main='
3000  _Static_assert ((offsetof (struct anonymous, i)
3001		   == offsetof (struct anonymous, w.k)),
3002		  "Anonymous union alignment botch");
3003  v1.i = 2;
3004  v1.w.k = 5;
3005  ok |= v1.i != 5;
3006'
3007
3008# Test code for whether the C compiler supports C11 (complete).
3009ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3010${ac_c_conftest_c99_globals}
3011${ac_c_conftest_c11_globals}
3012
3013int
3014main (int argc, char **argv)
3015{
3016  int ok = 0;
3017  ${ac_c_conftest_c89_main}
3018  ${ac_c_conftest_c99_main}
3019  ${ac_c_conftest_c11_main}
3020  return ok;
3021}
3022"
3023
3024# Test code for whether the C compiler supports C99 (complete).
3025ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3026${ac_c_conftest_c99_globals}
3027
3028int
3029main (int argc, char **argv)
3030{
3031  int ok = 0;
3032  ${ac_c_conftest_c89_main}
3033  ${ac_c_conftest_c99_main}
3034  return ok;
3035}
3036"
3037
3038# Test code for whether the C compiler supports C89 (complete).
3039ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3040
3041int
3042main (int argc, char **argv)
3043{
3044  int ok = 0;
3045  ${ac_c_conftest_c89_main}
3046  return ok;
3047}
3048"
3049
3050as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3051as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3052as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3053as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3054as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3055as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3056as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3057as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3058as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3059as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3060as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3061as_fn_append ac_func_c_list " fork HAVE_FORK"
3062as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3063
3064# Auxiliary files required by this configure script.
3065ac_aux_files="ltmain.sh config.guess config.sub"
3066
3067# Locations in which to look for auxiliary files.
3068ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3069
3070# Search for a directory containing all of the required auxiliary files,
3071# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3072# If we don't find one directory that contains all the files we need,
3073# we report the set of missing files from the *first* directory in
3074# $ac_aux_dir_candidates and give up.
3075ac_missing_aux_files=""
3076ac_first_candidate=:
3077printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079as_found=false
3080for as_dir in $ac_aux_dir_candidates
3081do
3082  IFS=$as_save_IFS
3083  case $as_dir in #(((
3084    '') as_dir=./ ;;
3085    */) ;;
3086    *) as_dir=$as_dir/ ;;
3087  esac
3088  as_found=:
3089
3090  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3091  ac_aux_dir_found=yes
3092  ac_install_sh=
3093  for ac_aux in $ac_aux_files
3094  do
3095    # As a special case, if "install-sh" is required, that requirement
3096    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3097    # and $ac_install_sh is set appropriately for whichever one is found.
3098    if test x"$ac_aux" = x"install-sh"
3099    then
3100      if test -f "${as_dir}install-sh"; then
3101        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3102        ac_install_sh="${as_dir}install-sh -c"
3103      elif test -f "${as_dir}install.sh"; then
3104        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3105        ac_install_sh="${as_dir}install.sh -c"
3106      elif test -f "${as_dir}shtool"; then
3107        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3108        ac_install_sh="${as_dir}shtool install -c"
3109      else
3110        ac_aux_dir_found=no
3111        if $ac_first_candidate; then
3112          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3113        else
3114          break
3115        fi
3116      fi
3117    else
3118      if test -f "${as_dir}${ac_aux}"; then
3119        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3120      else
3121        ac_aux_dir_found=no
3122        if $ac_first_candidate; then
3123          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3124        else
3125          break
3126        fi
3127      fi
3128    fi
3129  done
3130  if test "$ac_aux_dir_found" = yes; then
3131    ac_aux_dir="$as_dir"
3132    break
3133  fi
3134  ac_first_candidate=false
3135
3136  as_found=false
3137done
3138IFS=$as_save_IFS
3139if $as_found
3140then :
3141
3142else $as_nop
3143  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3144fi
3145
3146
3147# These three variables are undocumented and unsupported,
3148# and are intended to be withdrawn in a future Autoconf release.
3149# They can cause serious problems if a builder's source tree is in a directory
3150# whose full name contains unusual characters.
3151if test -f "${ac_aux_dir}config.guess"; then
3152  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3153fi
3154if test -f "${ac_aux_dir}config.sub"; then
3155  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3156fi
3157if test -f "$ac_aux_dir/configure"; then
3158  ac_configure="$SHELL ${ac_aux_dir}configure"
3159fi
3160
3161# Check that the precious variables saved in the cache have kept the same
3162# value.
3163ac_cache_corrupted=false
3164for ac_var in $ac_precious_vars; do
3165  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3166  eval ac_new_set=\$ac_env_${ac_var}_set
3167  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3168  eval ac_new_val=\$ac_env_${ac_var}_value
3169  case $ac_old_set,$ac_new_set in
3170    set,)
3171      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3172printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3173      ac_cache_corrupted=: ;;
3174    ,set)
3175      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3176printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3177      ac_cache_corrupted=: ;;
3178    ,);;
3179    *)
3180      if test "x$ac_old_val" != "x$ac_new_val"; then
3181	# differences in whitespace do not lead to failure.
3182	ac_old_val_w=`echo x $ac_old_val`
3183	ac_new_val_w=`echo x $ac_new_val`
3184	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3185	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3186printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3187	  ac_cache_corrupted=:
3188	else
3189	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3190printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3191	  eval $ac_var=\$ac_old_val
3192	fi
3193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3194printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3196printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3197      fi;;
3198  esac
3199  # Pass precious variables to config.status.
3200  if test "$ac_new_set" = set; then
3201    case $ac_new_val in
3202    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3203    *) ac_arg=$ac_var=$ac_new_val ;;
3204    esac
3205    case " $ac_configure_args " in
3206      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3207      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3208    esac
3209  fi
3210done
3211if $ac_cache_corrupted; then
3212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3215printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3216  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3217	    and start over" "$LINENO" 5
3218fi
3219## -------------------- ##
3220## Main body of script. ##
3221## -------------------- ##
3222
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228
3229
3230UNBOUND_VERSION_MAJOR=1
3231
3232UNBOUND_VERSION_MINOR=13
3233
3234UNBOUND_VERSION_MICRO=2
3235
3236
3237LIBUNBOUND_CURRENT=9
3238LIBUNBOUND_REVISION=13
3239LIBUNBOUND_AGE=1
3240# 1.0.0 had 0:12:0
3241# 1.0.1 had 0:13:0
3242# 1.0.2 had 0:14:0
3243# 1.1.0 had 0:15:0
3244# 1.1.1 had 0:16:0
3245# 1.2.0 had 0:17:0
3246# 1.2.1 had 0:18:0
3247# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
3248# 1.3.1 had 1:1:0
3249# 1.3.2 had 1:2:0
3250# 1.3.3 had 1:3:0
3251# 1.3.4 had 1:4:0
3252# 1.4.0-snapshots had 1:5:0
3253# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
3254# 1.4.1 had 2:1:0
3255# 1.4.2 had 2:2:0
3256# 1.4.3 had 2:3:0
3257# 1.4.4 had 2:4:0
3258# 1.4.5 had 2:5:0
3259# 1.4.6 had 2:6:0
3260# 1.4.7 had 2:7:0
3261# 1.4.8 had 2:8:0
3262# 1.4.9 had 2:9:0
3263# 1.4.10 had 2:10:0
3264# 1.4.11 had 2:11:0
3265# 1.4.12 had 2:12:0
3266# 1.4.13 had 2:13:0
3267# and 1.4.13p1 and 1.4.13.p2
3268# 1.4.14 had 2:14:0
3269# 1.4.15 had 3:0:1 # adds ub_version()
3270# 1.4.16 had 3:1:1
3271# 1.4.17 had 3:2:1
3272# 1.4.18 had 3:3:1
3273# 1.4.19 had 3:4:1
3274# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
3275# 1.4.21 had 4:1:2
3276# 1.4.22 had 4:1:2
3277# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
3278# 1.5.1 had 5:3:3
3279# 1.5.2 had 5:5:3
3280# 1.5.3 had 5:6:3
3281# 1.5.4 had 5:7:3
3282# 1.5.5 had 5:8:3
3283# 1.5.6 had 5:9:3
3284# 1.5.7 had 5:10:3
3285# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
3286# 1.5.9 had 6:1:4
3287# 1.5.10 had 6:2:4
3288# 1.6.0 had 6:3:4
3289# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
3290# 1.6.2 had 7:1:5
3291# 1.6.3 had 7:2:5
3292# 1.6.4 had 7:3:5
3293# 1.6.5 had 7:4:5
3294# 1.6.6 had 7:5:5
3295# 1.6.7 had 7:6:5
3296# 1.6.8 had 7:7:5
3297# 1.7.0 had 7:8:5
3298# 1.7.1 had 7:9:5
3299# 1.7.2 had 7:10:5
3300# 1.7.3 had 7:11:5
3301# 1.8.0 had 8:0:0 # changes the event callback function signature
3302# 1.8.1 had 8:1:0
3303# 1.8.2 had 8:2:0
3304# 1.8.3 had 8:3:0
3305# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
3306# 1.9.1 had 9:1:1
3307# 1.9.2 had 9:2:1
3308# 1.9.3 had 9:3:1
3309# 1.9.4 had 9:4:1
3310# 1.9.5 had 9:5:1
3311# 1.9.6 had 9:6:1
3312# 1.10.0 had 9:7:1
3313# 1.10.1 had 9:8:1
3314# 1.11.0 had 9:9:1
3315# 1.12.0 had 9:10:1
3316# 1.13.0 had 9:11:1
3317# 1.13.1 had 9:12:1
3318# 1.13.2 had 9:13:1
3319
3320#   Current  -- the number of the binary API that we're implementing
3321#   Revision -- which iteration of the implementation of the binary
3322#               API are we supplying?
3323#   Age      -- How many previous binary API versions do we also
3324#               support?
3325#
3326# If we release a new version that does not change the binary API,
3327# increment Revision.
3328#
3329# If we release a new version that changes the binary API, but does
3330# not break programs compiled against the old binary API, increment
3331# Current and Age.  Set Revision to 0, since this is the first
3332# implementation of the new API.
3333#
3334# Otherwise, we're changing the binary API and breaking backward
3335# compatibility with old binaries.  Increment Current.  Set Age to 0,
3336# since we're backward compatible with no previous APIs.  Set Revision
3337# to 0 too.
3338
3339
3340
3341
3342
3343cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
3344
3345printf "%s\n" "#define CONFCMDLINE \"$cmdln\"" >>confdefs.h
3346
3347
3348CFLAGS="$CFLAGS"
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358ac_ext=c
3359ac_cpp='$CPP $CPPFLAGS'
3360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363if test -n "$ac_tool_prefix"; then
3364  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}gcc; ac_word=$2
3366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367printf %s "checking for $ac_word... " >&6; }
3368if test ${ac_cv_prog_CC+y}
3369then :
3370  printf %s "(cached) " >&6
3371else $as_nop
3372  if test -n "$CC"; then
3373  ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378  IFS=$as_save_IFS
3379  case $as_dir in #(((
3380    '') as_dir=./ ;;
3381    */) ;;
3382    *) as_dir=$as_dir/ ;;
3383  esac
3384    for ac_exec_ext in '' $ac_executable_extensions; do
3385  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3386    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3387    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3388    break 2
3389  fi
3390done
3391  done
3392IFS=$as_save_IFS
3393
3394fi
3395fi
3396CC=$ac_cv_prog_CC
3397if test -n "$CC"; then
3398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399printf "%s\n" "$CC" >&6; }
3400else
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402printf "%s\n" "no" >&6; }
3403fi
3404
3405
3406fi
3407if test -z "$ac_cv_prog_CC"; then
3408  ac_ct_CC=$CC
3409  # Extract the first word of "gcc", so it can be a program name with args.
3410set dummy gcc; ac_word=$2
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412printf %s "checking for $ac_word... " >&6; }
3413if test ${ac_cv_prog_ac_ct_CC+y}
3414then :
3415  printf %s "(cached) " >&6
3416else $as_nop
3417  if test -n "$ac_ct_CC"; then
3418  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  case $as_dir in #(((
3425    '') as_dir=./ ;;
3426    */) ;;
3427    *) as_dir=$as_dir/ ;;
3428  esac
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431    ac_cv_prog_ac_ct_CC="gcc"
3432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442if test -n "$ac_ct_CC"; then
3443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444printf "%s\n" "$ac_ct_CC" >&6; }
3445else
3446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447printf "%s\n" "no" >&6; }
3448fi
3449
3450  if test "x$ac_ct_CC" = x; then
3451    CC=""
3452  else
3453    case $cross_compiling:$ac_tool_warned in
3454yes:)
3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457ac_tool_warned=yes ;;
3458esac
3459    CC=$ac_ct_CC
3460  fi
3461else
3462  CC="$ac_cv_prog_CC"
3463fi
3464
3465if test -z "$CC"; then
3466          if test -n "$ac_tool_prefix"; then
3467    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3468set dummy ${ac_tool_prefix}cc; ac_word=$2
3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470printf %s "checking for $ac_word... " >&6; }
3471if test ${ac_cv_prog_CC+y}
3472then :
3473  printf %s "(cached) " >&6
3474else $as_nop
3475  if test -n "$CC"; then
3476  ac_cv_prog_CC="$CC" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481  IFS=$as_save_IFS
3482  case $as_dir in #(((
3483    '') as_dir=./ ;;
3484    */) ;;
3485    *) as_dir=$as_dir/ ;;
3486  esac
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3489    ac_cv_prog_CC="${ac_tool_prefix}cc"
3490    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3491    break 2
3492  fi
3493done
3494  done
3495IFS=$as_save_IFS
3496
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502printf "%s\n" "$CC" >&6; }
3503else
3504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505printf "%s\n" "no" >&6; }
3506fi
3507
3508
3509  fi
3510fi
3511if test -z "$CC"; then
3512  # Extract the first word of "cc", so it can be a program name with args.
3513set dummy cc; ac_word=$2
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515printf %s "checking for $ac_word... " >&6; }
3516if test ${ac_cv_prog_CC+y}
3517then :
3518  printf %s "(cached) " >&6
3519else $as_nop
3520  if test -n "$CC"; then
3521  ac_cv_prog_CC="$CC" # Let the user override the test.
3522else
3523  ac_prog_rejected=no
3524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525for as_dir in $PATH
3526do
3527  IFS=$as_save_IFS
3528  case $as_dir in #(((
3529    '') as_dir=./ ;;
3530    */) ;;
3531    *) as_dir=$as_dir/ ;;
3532  esac
3533    for ac_exec_ext in '' $ac_executable_extensions; do
3534  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3535    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3536       ac_prog_rejected=yes
3537       continue
3538     fi
3539    ac_cv_prog_CC="cc"
3540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547if test $ac_prog_rejected = yes; then
3548  # We found a bogon in the path, so make sure we never use it.
3549  set dummy $ac_cv_prog_CC
3550  shift
3551  if test $# != 0; then
3552    # We chose a different compiler from the bogus one.
3553    # However, it has the same basename, so the bogon will be chosen
3554    # first if we set CC to just the basename; use the full file name.
3555    shift
3556    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3557  fi
3558fi
3559fi
3560fi
3561CC=$ac_cv_prog_CC
3562if test -n "$CC"; then
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564printf "%s\n" "$CC" >&6; }
3565else
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567printf "%s\n" "no" >&6; }
3568fi
3569
3570
3571fi
3572if test -z "$CC"; then
3573  if test -n "$ac_tool_prefix"; then
3574  for ac_prog in cl.exe
3575  do
3576    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579printf %s "checking for $ac_word... " >&6; }
3580if test ${ac_cv_prog_CC+y}
3581then :
3582  printf %s "(cached) " >&6
3583else $as_nop
3584  if test -n "$CC"; then
3585  ac_cv_prog_CC="$CC" # Let the user override the test.
3586else
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590  IFS=$as_save_IFS
3591  case $as_dir in #(((
3592    '') as_dir=./ ;;
3593    */) ;;
3594    *) as_dir=$as_dir/ ;;
3595  esac
3596    for ac_exec_ext in '' $ac_executable_extensions; do
3597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3598    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3600    break 2
3601  fi
3602done
3603  done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608CC=$ac_cv_prog_CC
3609if test -n "$CC"; then
3610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611printf "%s\n" "$CC" >&6; }
3612else
3613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614printf "%s\n" "no" >&6; }
3615fi
3616
3617
3618    test -n "$CC" && break
3619  done
3620fi
3621if test -z "$CC"; then
3622  ac_ct_CC=$CC
3623  for ac_prog in cl.exe
3624do
3625  # Extract the first word of "$ac_prog", so it can be a program name with args.
3626set dummy $ac_prog; ac_word=$2
3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628printf %s "checking for $ac_word... " >&6; }
3629if test ${ac_cv_prog_ac_ct_CC+y}
3630then :
3631  printf %s "(cached) " >&6
3632else $as_nop
3633  if test -n "$ac_ct_CC"; then
3634  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639  IFS=$as_save_IFS
3640  case $as_dir in #(((
3641    '') as_dir=./ ;;
3642    */) ;;
3643    *) as_dir=$as_dir/ ;;
3644  esac
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_ac_ct_CC="$ac_prog"
3648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658if test -n "$ac_ct_CC"; then
3659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660printf "%s\n" "$ac_ct_CC" >&6; }
3661else
3662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663printf "%s\n" "no" >&6; }
3664fi
3665
3666
3667  test -n "$ac_ct_CC" && break
3668done
3669
3670  if test "x$ac_ct_CC" = x; then
3671    CC=""
3672  else
3673    case $cross_compiling:$ac_tool_warned in
3674yes:)
3675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3677ac_tool_warned=yes ;;
3678esac
3679    CC=$ac_ct_CC
3680  fi
3681fi
3682
3683fi
3684if test -z "$CC"; then
3685  if test -n "$ac_tool_prefix"; then
3686  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3687set dummy ${ac_tool_prefix}clang; ac_word=$2
3688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689printf %s "checking for $ac_word... " >&6; }
3690if test ${ac_cv_prog_CC+y}
3691then :
3692  printf %s "(cached) " >&6
3693else $as_nop
3694  if test -n "$CC"; then
3695  ac_cv_prog_CC="$CC" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700  IFS=$as_save_IFS
3701  case $as_dir in #(((
3702    '') as_dir=./ ;;
3703    */) ;;
3704    *) as_dir=$as_dir/ ;;
3705  esac
3706    for ac_exec_ext in '' $ac_executable_extensions; do
3707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3708    ac_cv_prog_CC="${ac_tool_prefix}clang"
3709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3710    break 2
3711  fi
3712done
3713  done
3714IFS=$as_save_IFS
3715
3716fi
3717fi
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
3720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721printf "%s\n" "$CC" >&6; }
3722else
3723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724printf "%s\n" "no" >&6; }
3725fi
3726
3727
3728fi
3729if test -z "$ac_cv_prog_CC"; then
3730  ac_ct_CC=$CC
3731  # Extract the first word of "clang", so it can be a program name with args.
3732set dummy clang; ac_word=$2
3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734printf %s "checking for $ac_word... " >&6; }
3735if test ${ac_cv_prog_ac_ct_CC+y}
3736then :
3737  printf %s "(cached) " >&6
3738else $as_nop
3739  if test -n "$ac_ct_CC"; then
3740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  case $as_dir in #(((
3747    '') as_dir=./ ;;
3748    */) ;;
3749    *) as_dir=$as_dir/ ;;
3750  esac
3751    for ac_exec_ext in '' $ac_executable_extensions; do
3752  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3753    ac_cv_prog_ac_ct_CC="clang"
3754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3755    break 2
3756  fi
3757done
3758  done
3759IFS=$as_save_IFS
3760
3761fi
3762fi
3763ac_ct_CC=$ac_cv_prog_ac_ct_CC
3764if test -n "$ac_ct_CC"; then
3765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3766printf "%s\n" "$ac_ct_CC" >&6; }
3767else
3768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769printf "%s\n" "no" >&6; }
3770fi
3771
3772  if test "x$ac_ct_CC" = x; then
3773    CC=""
3774  else
3775    case $cross_compiling:$ac_tool_warned in
3776yes:)
3777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779ac_tool_warned=yes ;;
3780esac
3781    CC=$ac_ct_CC
3782  fi
3783else
3784  CC="$ac_cv_prog_CC"
3785fi
3786
3787fi
3788
3789
3790test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3792as_fn_error $? "no acceptable C compiler found in \$PATH
3793See \`config.log' for more details" "$LINENO" 5; }
3794
3795# Provide some information about the compiler.
3796printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797set X $ac_compile
3798ac_compiler=$2
3799for ac_option in --version -v -V -qversion -version; do
3800  { { ac_try="$ac_compiler $ac_option >&5"
3801case "(($ac_try" in
3802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803  *) ac_try_echo=$ac_try;;
3804esac
3805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806printf "%s\n" "$ac_try_echo"; } >&5
3807  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808  ac_status=$?
3809  if test -s conftest.err; then
3810    sed '10a\
3811... rest of stderr output deleted ...
3812         10q' conftest.err >conftest.er1
3813    cat conftest.er1 >&5
3814  fi
3815  rm -f conftest.er1 conftest.err
3816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817  test $ac_status = 0; }
3818done
3819
3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h.  */
3822
3823int
3824main (void)
3825{
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831ac_clean_files_save=$ac_clean_files
3832ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3833# Try to create an executable without -o first, disregard a.out.
3834# It will help us diagnose broken compilers, and finding out an intuition
3835# of exeext.
3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3837printf %s "checking whether the C compiler works... " >&6; }
3838ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3839
3840# The possible output files:
3841ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3842
3843ac_rmfiles=
3844for ac_file in $ac_files
3845do
3846  case $ac_file in
3847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849  esac
3850done
3851rm -f $ac_rmfiles
3852
3853if { { ac_try="$ac_link_default"
3854case "(($ac_try" in
3855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856  *) ac_try_echo=$ac_try;;
3857esac
3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859printf "%s\n" "$ac_try_echo"; } >&5
3860  (eval "$ac_link_default") 2>&5
3861  ac_status=$?
3862  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863  test $ac_status = 0; }
3864then :
3865  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3868# so that the user can short-circuit this test for compilers unknown to
3869# Autoconf.
3870for ac_file in $ac_files ''
3871do
3872  test -f "$ac_file" || continue
3873  case $ac_file in
3874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875	;;
3876    [ab].out )
3877	# We found the default executable, but exeext='' is most
3878	# certainly right.
3879	break;;
3880    *.* )
3881	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3882	then :; else
3883	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884	fi
3885	# We set ac_cv_exeext here because the later test for it is not
3886	# safe: cross compilers may not add the suffix if given an `-o'
3887	# argument, so we may need to know it at that point already.
3888	# Even if this section looks crufty: it has the advantage of
3889	# actually working.
3890	break;;
3891    * )
3892	break;;
3893  esac
3894done
3895test "$ac_cv_exeext" = no && ac_cv_exeext=
3896
3897else $as_nop
3898  ac_file=''
3899fi
3900if test -z "$ac_file"
3901then :
3902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903printf "%s\n" "no" >&6; }
3904printf "%s\n" "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3909as_fn_error 77 "C compiler cannot create executables
3910See \`config.log' for more details" "$LINENO" 5; }
3911else $as_nop
3912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3913printf "%s\n" "yes" >&6; }
3914fi
3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3916printf %s "checking for C compiler default output file name... " >&6; }
3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3918printf "%s\n" "$ac_file" >&6; }
3919ac_exeext=$ac_cv_exeext
3920
3921rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3922ac_clean_files=$ac_clean_files_save
3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3924printf %s "checking for suffix of executables... " >&6; }
3925if { { ac_try="$ac_link"
3926case "(($ac_try" in
3927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928  *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931printf "%s\n" "$ac_try_echo"; } >&5
3932  (eval "$ac_link") 2>&5
3933  ac_status=$?
3934  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935  test $ac_status = 0; }
3936then :
3937  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3938# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3939# work properly (i.e., refer to `conftest.exe'), while it won't with
3940# `rm'.
3941for ac_file in conftest.exe conftest conftest.*; do
3942  test -f "$ac_file" || continue
3943  case $ac_file in
3944    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3945    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3946	  break;;
3947    * ) break;;
3948  esac
3949done
3950else $as_nop
3951  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3953as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3954See \`config.log' for more details" "$LINENO" 5; }
3955fi
3956rm -f conftest conftest$ac_cv_exeext
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3958printf "%s\n" "$ac_cv_exeext" >&6; }
3959
3960rm -f conftest.$ac_ext
3961EXEEXT=$ac_cv_exeext
3962ac_exeext=$EXEEXT
3963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965#include <stdio.h>
3966int
3967main (void)
3968{
3969FILE *f = fopen ("conftest.out", "w");
3970 return ferror (f) || fclose (f) != 0;
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976ac_clean_files="$ac_clean_files conftest.out"
3977# Check that the compiler produces executables we can run.  If not, either
3978# the compiler is broken, or we cross compile.
3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3980printf %s "checking whether we are cross compiling... " >&6; }
3981if test "$cross_compiling" != yes; then
3982  { { ac_try="$ac_link"
3983case "(($ac_try" in
3984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985  *) ac_try_echo=$ac_try;;
3986esac
3987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988printf "%s\n" "$ac_try_echo"; } >&5
3989  (eval "$ac_link") 2>&5
3990  ac_status=$?
3991  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992  test $ac_status = 0; }
3993  if { ac_try='./conftest$ac_cv_exeext'
3994  { { case "(($ac_try" in
3995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996  *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999printf "%s\n" "$ac_try_echo"; } >&5
4000  (eval "$ac_try") 2>&5
4001  ac_status=$?
4002  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003  test $ac_status = 0; }; }; then
4004    cross_compiling=no
4005  else
4006    if test "$cross_compiling" = maybe; then
4007	cross_compiling=yes
4008    else
4009	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4011as_fn_error 77 "cannot run C compiled programs.
4012If you meant to cross compile, use \`--host'.
4013See \`config.log' for more details" "$LINENO" 5; }
4014    fi
4015  fi
4016fi
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4018printf "%s\n" "$cross_compiling" >&6; }
4019
4020rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4021ac_clean_files=$ac_clean_files_save
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4023printf %s "checking for suffix of object files... " >&6; }
4024if test ${ac_cv_objext+y}
4025then :
4026  printf %s "(cached) " >&6
4027else $as_nop
4028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030
4031int
4032main (void)
4033{
4034
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest.o conftest.obj
4040if { { ac_try="$ac_compile"
4041case "(($ac_try" in
4042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043  *) ac_try_echo=$ac_try;;
4044esac
4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046printf "%s\n" "$ac_try_echo"; } >&5
4047  (eval "$ac_compile") 2>&5
4048  ac_status=$?
4049  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050  test $ac_status = 0; }
4051then :
4052  for ac_file in conftest.o conftest.obj conftest.*; do
4053  test -f "$ac_file" || continue;
4054  case $ac_file in
4055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4056    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4057       break;;
4058  esac
4059done
4060else $as_nop
4061  printf "%s\n" "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
4063
4064{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4066as_fn_error $? "cannot compute suffix of object files: cannot compile
4067See \`config.log' for more details" "$LINENO" 5; }
4068fi
4069rm -f conftest.$ac_cv_objext conftest.$ac_ext
4070fi
4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4072printf "%s\n" "$ac_cv_objext" >&6; }
4073OBJEXT=$ac_cv_objext
4074ac_objext=$OBJEXT
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4076printf %s "checking whether the compiler supports GNU C... " >&6; }
4077if test ${ac_cv_c_compiler_gnu+y}
4078then :
4079  printf %s "(cached) " >&6
4080else $as_nop
4081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h.  */
4083
4084int
4085main (void)
4086{
4087#ifndef __GNUC__
4088       choke me
4089#endif
4090
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"
4096then :
4097  ac_compiler_gnu=yes
4098else $as_nop
4099  ac_compiler_gnu=no
4100fi
4101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4102ac_cv_c_compiler_gnu=$ac_compiler_gnu
4103
4104fi
4105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4106printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109if test $ac_compiler_gnu = yes; then
4110  GCC=yes
4111else
4112  GCC=
4113fi
4114ac_test_CFLAGS=${CFLAGS+y}
4115ac_save_CFLAGS=$CFLAGS
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117printf %s "checking whether $CC accepts -g... " >&6; }
4118if test ${ac_cv_prog_cc_g+y}
4119then :
4120  printf %s "(cached) " >&6
4121else $as_nop
4122  ac_save_c_werror_flag=$ac_c_werror_flag
4123   ac_c_werror_flag=yes
4124   ac_cv_prog_cc_g=no
4125   CFLAGS="-g"
4126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h.  */
4128
4129int
4130main (void)
4131{
4132
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"
4138then :
4139  ac_cv_prog_cc_g=yes
4140else $as_nop
4141  CFLAGS=""
4142      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h.  */
4144
4145int
4146main (void)
4147{
4148
4149  ;
4150  return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"
4154then :
4155
4156else $as_nop
4157  ac_c_werror_flag=$ac_save_c_werror_flag
4158	 CFLAGS="-g"
4159	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main (void)
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"
4171then :
4172  ac_cv_prog_cc_g=yes
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175fi
4176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4177fi
4178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4179   ac_c_werror_flag=$ac_save_c_werror_flag
4180fi
4181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4183if test $ac_test_CFLAGS; then
4184  CFLAGS=$ac_save_CFLAGS
4185elif test $ac_cv_prog_cc_g = yes; then
4186  if test "$GCC" = yes; then
4187    CFLAGS="-g -O2"
4188  else
4189    CFLAGS="-g"
4190  fi
4191else
4192  if test "$GCC" = yes; then
4193    CFLAGS="-O2"
4194  else
4195    CFLAGS=
4196  fi
4197fi
4198ac_prog_cc_stdc=no
4199if test x$ac_prog_cc_stdc = xno
4200then :
4201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4202printf %s "checking for $CC option to enable C11 features... " >&6; }
4203if test ${ac_cv_prog_cc_c11+y}
4204then :
4205  printf %s "(cached) " >&6
4206else $as_nop
4207  ac_cv_prog_cc_c11=no
4208ac_save_CC=$CC
4209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211$ac_c_conftest_c11_program
4212_ACEOF
4213for ac_arg in '' -std=gnu11
4214do
4215  CC="$ac_save_CC $ac_arg"
4216  if ac_fn_c_try_compile "$LINENO"
4217then :
4218  ac_cv_prog_cc_c11=$ac_arg
4219fi
4220rm -f core conftest.err conftest.$ac_objext conftest.beam
4221  test "x$ac_cv_prog_cc_c11" != "xno" && break
4222done
4223rm -f conftest.$ac_ext
4224CC=$ac_save_CC
4225fi
4226
4227if test "x$ac_cv_prog_cc_c11" = xno
4228then :
4229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230printf "%s\n" "unsupported" >&6; }
4231else $as_nop
4232  if test "x$ac_cv_prog_cc_c11" = x
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235printf "%s\n" "none needed" >&6; }
4236else $as_nop
4237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4238printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4239     CC="$CC $ac_cv_prog_cc_c11"
4240fi
4241  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4242  ac_prog_cc_stdc=c11
4243fi
4244fi
4245if test x$ac_prog_cc_stdc = xno
4246then :
4247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4248printf %s "checking for $CC option to enable C99 features... " >&6; }
4249if test ${ac_cv_prog_cc_c99+y}
4250then :
4251  printf %s "(cached) " >&6
4252else $as_nop
4253  ac_cv_prog_cc_c99=no
4254ac_save_CC=$CC
4255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257$ac_c_conftest_c99_program
4258_ACEOF
4259for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4260do
4261  CC="$ac_save_CC $ac_arg"
4262  if ac_fn_c_try_compile "$LINENO"
4263then :
4264  ac_cv_prog_cc_c99=$ac_arg
4265fi
4266rm -f core conftest.err conftest.$ac_objext conftest.beam
4267  test "x$ac_cv_prog_cc_c99" != "xno" && break
4268done
4269rm -f conftest.$ac_ext
4270CC=$ac_save_CC
4271fi
4272
4273if test "x$ac_cv_prog_cc_c99" = xno
4274then :
4275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276printf "%s\n" "unsupported" >&6; }
4277else $as_nop
4278  if test "x$ac_cv_prog_cc_c99" = x
4279then :
4280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4281printf "%s\n" "none needed" >&6; }
4282else $as_nop
4283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4284printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4285     CC="$CC $ac_cv_prog_cc_c99"
4286fi
4287  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4288  ac_prog_cc_stdc=c99
4289fi
4290fi
4291if test x$ac_prog_cc_stdc = xno
4292then :
4293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4294printf %s "checking for $CC option to enable C89 features... " >&6; }
4295if test ${ac_cv_prog_cc_c89+y}
4296then :
4297  printf %s "(cached) " >&6
4298else $as_nop
4299  ac_cv_prog_cc_c89=no
4300ac_save_CC=$CC
4301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h.  */
4303$ac_c_conftest_c89_program
4304_ACEOF
4305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4306do
4307  CC="$ac_save_CC $ac_arg"
4308  if ac_fn_c_try_compile "$LINENO"
4309then :
4310  ac_cv_prog_cc_c89=$ac_arg
4311fi
4312rm -f core conftest.err conftest.$ac_objext conftest.beam
4313  test "x$ac_cv_prog_cc_c89" != "xno" && break
4314done
4315rm -f conftest.$ac_ext
4316CC=$ac_save_CC
4317fi
4318
4319if test "x$ac_cv_prog_cc_c89" = xno
4320then :
4321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4322printf "%s\n" "unsupported" >&6; }
4323else $as_nop
4324  if test "x$ac_cv_prog_cc_c89" = x
4325then :
4326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4327printf "%s\n" "none needed" >&6; }
4328else $as_nop
4329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4330printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4331     CC="$CC $ac_cv_prog_cc_c89"
4332fi
4333  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4334  ac_prog_cc_stdc=c89
4335fi
4336fi
4337
4338ac_ext=c
4339ac_cpp='$CPP $CPPFLAGS'
4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345ac_header= ac_cache=
4346for ac_item in $ac_header_c_list
4347do
4348  if test $ac_cache; then
4349    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4350    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4351      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4352    fi
4353    ac_header= ac_cache=
4354  elif test $ac_header; then
4355    ac_cache=$ac_item
4356  else
4357    ac_header=$ac_item
4358  fi
4359done
4360
4361
4362
4363
4364
4365
4366
4367
4368if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4369then :
4370
4371printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4372
4373fi
4374
4375
4376
4377
4378
4379
4380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4381printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4382if test ${ac_cv_safe_to_define___extensions__+y}
4383then :
4384  printf %s "(cached) " >&6
4385else $as_nop
4386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h.  */
4388
4389#         define __EXTENSIONS__ 1
4390          $ac_includes_default
4391int
4392main (void)
4393{
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399if ac_fn_c_try_compile "$LINENO"
4400then :
4401  ac_cv_safe_to_define___extensions__=yes
4402else $as_nop
4403  ac_cv_safe_to_define___extensions__=no
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406fi
4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4408printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4409
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4411printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4412if test ${ac_cv_should_define__xopen_source+y}
4413then :
4414  printf %s "(cached) " >&6
4415else $as_nop
4416  ac_cv_should_define__xopen_source=no
4417    if test $ac_cv_header_wchar_h = yes
4418then :
4419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421
4422          #include <wchar.h>
4423          mbstate_t x;
4424int
4425main (void)
4426{
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_compile "$LINENO"
4433then :
4434
4435else $as_nop
4436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h.  */
4438
4439            #define _XOPEN_SOURCE 500
4440            #include <wchar.h>
4441            mbstate_t x;
4442int
4443main (void)
4444{
4445
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450if ac_fn_c_try_compile "$LINENO"
4451then :
4452  ac_cv_should_define__xopen_source=yes
4453fi
4454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4455fi
4456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4457fi
4458fi
4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4460printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4461
4462  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4463
4464  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4465
4466  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4467
4468  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4469
4470  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4471
4472  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4473
4474  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4475
4476  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4477
4478  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4479
4480  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4481
4482  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4483
4484  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4485
4486  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4487
4488  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4489
4490  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4491
4492  if test $ac_cv_header_minix_config_h = yes
4493then :
4494  MINIX=yes
4495    printf "%s\n" "#define _MINIX 1" >>confdefs.h
4496
4497    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4498
4499    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4500
4501else $as_nop
4502  MINIX=
4503fi
4504  if test $ac_cv_safe_to_define___extensions__ = yes
4505then :
4506  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4507
4508fi
4509  if test $ac_cv_should_define__xopen_source = yes
4510then :
4511  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4512
4513fi
4514
4515if test "$ac_cv_header_minix_config_h" = "yes"; then
4516
4517printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4518
4519fi
4520
4521case "$prefix" in
4522        NONE)
4523		prefix="/usr/local"
4524        ;;
4525esac
4526case "$exec_prefix" in
4527        NONE)
4528		exec_prefix="$prefix"
4529        ;;
4530esac
4531
4532# are we on MinGW?
4533if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4534else
4535	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4536	else on_mingw="no"; fi
4537fi
4538
4539#
4540# Determine configuration file
4541# the eval is to evaluate shell expansion twice
4542UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4543
4544UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4545
4546UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4547
4548if test $on_mingw = "no"; then
4549  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4550else
4551  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4552fi
4553
4554# Check whether --with-conf_file was given.
4555if test ${with_conf_file+y}
4556then :
4557  withval=$with_conf_file; ub_conf_file="$withval"
4558fi
4559
4560
4561hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4562
4563
4564printf "%s\n" "#define CONFIGFILE \"$hdr_config\"" >>confdefs.h
4565
4566ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4567$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4568	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4569	 X"$ub_conf_file" : 'X\(//\)$' \| \
4570	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4571printf "%s\n" X"$ub_conf_file" |
4572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4573	    s//\1/
4574	    q
4575	  }
4576	  /^X\(\/\/\)[^/].*/{
4577	    s//\1/
4578	    q
4579	  }
4580	  /^X\(\/\/\)$/{
4581	    s//\1/
4582	    q
4583	  }
4584	  /^X\(\/\).*/{
4585	    s//\1/
4586	    q
4587	  }
4588	  s/.*/./; q'`
4589
4590
4591# Determine run, chroot directory and pidfile locations
4592
4593# Check whether --with-run-dir was given.
4594if test ${with_run_dir+y}
4595then :
4596  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4597else $as_nop
4598  if test $on_mingw = no; then
4599    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4600else
4601    UNBOUND_RUN_DIR=""
4602fi
4603
4604fi
4605
4606
4607hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4608
4609
4610printf "%s\n" "#define RUN_DIR \"$hdr_run\"" >>confdefs.h
4611
4612
4613
4614# Check whether --with-chroot-dir was given.
4615if test ${with_chroot_dir+y}
4616then :
4617  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4618else $as_nop
4619  if test $on_mingw = no; then
4620    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4621else
4622    UNBOUND_CHROOT_DIR=""
4623fi
4624
4625fi
4626
4627
4628hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4629
4630
4631printf "%s\n" "#define CHROOT_DIR \"$hdr_chroot\"" >>confdefs.h
4632
4633
4634
4635# Check whether --with-share-dir was given.
4636if test ${with_share_dir+y}
4637then :
4638  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4639else $as_nop
4640  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4641fi
4642
4643
4644
4645printf "%s\n" "#define SHARE_DIR \"$UNBOUND_SHARE_DIR\"" >>confdefs.h
4646
4647
4648
4649# Check whether --with-pidfile was given.
4650if test ${with_pidfile+y}
4651then :
4652  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4653else $as_nop
4654  if test $on_mingw = no; then
4655    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4656else
4657    UNBOUND_PIDFILE=""
4658fi
4659
4660fi
4661
4662
4663hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4664
4665
4666printf "%s\n" "#define PIDFILE \"$hdr_pid\"" >>confdefs.h
4667
4668
4669
4670# Check whether --with-rootkey-file was given.
4671if test ${with_rootkey_file+y}
4672then :
4673  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4674else $as_nop
4675  if test $on_mingw = no; then
4676    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4677else
4678    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4679fi
4680
4681fi
4682
4683
4684hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4685
4686
4687printf "%s\n" "#define ROOT_ANCHOR_FILE \"$hdr_rkey\"" >>confdefs.h
4688
4689
4690
4691# Check whether --with-rootcert-file was given.
4692if test ${with_rootcert_file+y}
4693then :
4694  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4695else $as_nop
4696  if test $on_mingw = no; then
4697    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4698else
4699    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4700fi
4701
4702fi
4703
4704
4705hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4706
4707
4708printf "%s\n" "#define ROOT_CERT_FILE \"$hdr_rpem\"" >>confdefs.h
4709
4710
4711
4712# Check whether --with-username was given.
4713if test ${with_username+y}
4714then :
4715  withval=$with_username; UNBOUND_USERNAME="$withval"
4716else $as_nop
4717  UNBOUND_USERNAME="unbound"
4718fi
4719
4720
4721
4722printf "%s\n" "#define UB_USERNAME \"$UNBOUND_USERNAME\"" >>confdefs.h
4723
4724
4725
4726printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
4727
4728wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4729
4730
4731printf "%s\n" "#define RSRC_PACKAGE_VERSION $wnvs" >>confdefs.h
4732
4733
4734# Checks for typedefs, structures, and compiler characteristics.
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4736printf %s "checking for an ANSI C-conforming const... " >&6; }
4737if test ${ac_cv_c_const+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742/* end confdefs.h.  */
4743
4744int
4745main (void)
4746{
4747
4748#ifndef __cplusplus
4749  /* Ultrix mips cc rejects this sort of thing.  */
4750  typedef int charset[2];
4751  const charset cs = { 0, 0 };
4752  /* SunOS 4.1.1 cc rejects this.  */
4753  char const *const *pcpcc;
4754  char **ppc;
4755  /* NEC SVR4.0.2 mips cc rejects this.  */
4756  struct point {int x, y;};
4757  static struct point const zero = {0,0};
4758  /* IBM XL C 1.02.0.0 rejects this.
4759     It does not let you subtract one const X* pointer from another in
4760     an arm of an if-expression whose if-part is not a constant
4761     expression */
4762  const char *g = "string";
4763  pcpcc = &g + (g ? g-g : 0);
4764  /* HPUX 7.0 cc rejects these. */
4765  ++pcpcc;
4766  ppc = (char**) pcpcc;
4767  pcpcc = (char const *const *) ppc;
4768  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4769    char tx;
4770    char *t = &tx;
4771    char const *s = 0 ? (char *) 0 : (char const *) 0;
4772
4773    *t++ = 0;
4774    if (s) return 0;
4775  }
4776  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4777    int x[] = {25, 17};
4778    const int *foo = &x[0];
4779    ++foo;
4780  }
4781  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4782    typedef const int *iptr;
4783    iptr p = 0;
4784    ++p;
4785  }
4786  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4787       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4788    struct s { int j; const int *ap[3]; } bx;
4789    struct s *b = &bx; b->j = 5;
4790  }
4791  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4792    const int foo = 10;
4793    if (!foo) return 0;
4794  }
4795  return !cs[0] && !zero.x;
4796#endif
4797
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"
4803then :
4804  ac_cv_c_const=yes
4805else $as_nop
4806  ac_cv_c_const=no
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4809fi
4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4811printf "%s\n" "$ac_cv_c_const" >&6; }
4812if test $ac_cv_c_const = no; then
4813
4814printf "%s\n" "#define const /**/" >>confdefs.h
4815
4816fi
4817
4818ac_ext=c
4819ac_cpp='$CPP $CPPFLAGS'
4820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824# allow user to override the -g -O2 flags.
4825default_cflags=no
4826if test "x$CFLAGS" = "x" ; then
4827
4828
4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4830printf %s "checking whether $CC supports -g... " >&6; }
4831cache=`echo g | sed 'y%.=/+-%___p_%'`
4832if eval test \${cv_prog_cc_flag_$cache+y}
4833then :
4834  printf %s "(cached) " >&6
4835else $as_nop
4836
4837echo 'void f(void){}' >conftest.c
4838if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4839eval "cv_prog_cc_flag_$cache=yes"
4840else
4841eval "cv_prog_cc_flag_$cache=no"
4842fi
4843rm -f conftest conftest.o conftest.c
4844
4845fi
4846
4847if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849printf "%s\n" "yes" >&6; }
4850:
4851CFLAGS="$CFLAGS -g"
4852else
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854printf "%s\n" "no" >&6; }
4855:
4856
4857fi
4858
4859
4860
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4862printf %s "checking whether $CC supports -O2... " >&6; }
4863cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4864if eval test \${cv_prog_cc_flag_$cache+y}
4865then :
4866  printf %s "(cached) " >&6
4867else $as_nop
4868
4869echo 'void f(void){}' >conftest.c
4870if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4871eval "cv_prog_cc_flag_$cache=yes"
4872else
4873eval "cv_prog_cc_flag_$cache=no"
4874fi
4875rm -f conftest conftest.o conftest.c
4876
4877fi
4878
4879if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881printf "%s\n" "yes" >&6; }
4882:
4883CFLAGS="$CFLAGS -O2"
4884else
4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886printf "%s\n" "no" >&6; }
4887:
4888
4889fi
4890
4891default_cflags=yes
4892fi
4893ac_ext=c
4894ac_cpp='$CPP $CPPFLAGS'
4895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898if test -n "$ac_tool_prefix"; then
4899  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4900set dummy ${ac_tool_prefix}gcc; ac_word=$2
4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902printf %s "checking for $ac_word... " >&6; }
4903if test ${ac_cv_prog_CC+y}
4904then :
4905  printf %s "(cached) " >&6
4906else $as_nop
4907  if test -n "$CC"; then
4908  ac_cv_prog_CC="$CC" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  case $as_dir in #(((
4915    '') as_dir=./ ;;
4916    */) ;;
4917    *) as_dir=$as_dir/ ;;
4918  esac
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4921    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926  done
4927IFS=$as_save_IFS
4928
4929fi
4930fi
4931CC=$ac_cv_prog_CC
4932if test -n "$CC"; then
4933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4934printf "%s\n" "$CC" >&6; }
4935else
4936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937printf "%s\n" "no" >&6; }
4938fi
4939
4940
4941fi
4942if test -z "$ac_cv_prog_CC"; then
4943  ac_ct_CC=$CC
4944  # Extract the first word of "gcc", so it can be a program name with args.
4945set dummy gcc; ac_word=$2
4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947printf %s "checking for $ac_word... " >&6; }
4948if test ${ac_cv_prog_ac_ct_CC+y}
4949then :
4950  printf %s "(cached) " >&6
4951else $as_nop
4952  if test -n "$ac_ct_CC"; then
4953  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958  IFS=$as_save_IFS
4959  case $as_dir in #(((
4960    '') as_dir=./ ;;
4961    */) ;;
4962    *) as_dir=$as_dir/ ;;
4963  esac
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_ac_ct_CC="gcc"
4967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976ac_ct_CC=$ac_cv_prog_ac_ct_CC
4977if test -n "$ac_ct_CC"; then
4978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4979printf "%s\n" "$ac_ct_CC" >&6; }
4980else
4981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982printf "%s\n" "no" >&6; }
4983fi
4984
4985  if test "x$ac_ct_CC" = x; then
4986    CC=""
4987  else
4988    case $cross_compiling:$ac_tool_warned in
4989yes:)
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992ac_tool_warned=yes ;;
4993esac
4994    CC=$ac_ct_CC
4995  fi
4996else
4997  CC="$ac_cv_prog_CC"
4998fi
4999
5000if test -z "$CC"; then
5001          if test -n "$ac_tool_prefix"; then
5002    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5003set dummy ${ac_tool_prefix}cc; ac_word=$2
5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005printf %s "checking for $ac_word... " >&6; }
5006if test ${ac_cv_prog_CC+y}
5007then :
5008  printf %s "(cached) " >&6
5009else $as_nop
5010  if test -n "$CC"; then
5011  ac_cv_prog_CC="$CC" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  case $as_dir in #(((
5018    '') as_dir=./ ;;
5019    */) ;;
5020    *) as_dir=$as_dir/ ;;
5021  esac
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5024    ac_cv_prog_CC="${ac_tool_prefix}cc"
5025    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029  done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034CC=$ac_cv_prog_CC
5035if test -n "$CC"; then
5036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5037printf "%s\n" "$CC" >&6; }
5038else
5039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040printf "%s\n" "no" >&6; }
5041fi
5042
5043
5044  fi
5045fi
5046if test -z "$CC"; then
5047  # Extract the first word of "cc", so it can be a program name with args.
5048set dummy cc; ac_word=$2
5049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050printf %s "checking for $ac_word... " >&6; }
5051if test ${ac_cv_prog_CC+y}
5052then :
5053  printf %s "(cached) " >&6
5054else $as_nop
5055  if test -n "$CC"; then
5056  ac_cv_prog_CC="$CC" # Let the user override the test.
5057else
5058  ac_prog_rejected=no
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062  IFS=$as_save_IFS
5063  case $as_dir in #(((
5064    '') as_dir=./ ;;
5065    */) ;;
5066    *) as_dir=$as_dir/ ;;
5067  esac
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5070    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5071       ac_prog_rejected=yes
5072       continue
5073     fi
5074    ac_cv_prog_CC="cc"
5075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5076    break 2
5077  fi
5078done
5079  done
5080IFS=$as_save_IFS
5081
5082if test $ac_prog_rejected = yes; then
5083  # We found a bogon in the path, so make sure we never use it.
5084  set dummy $ac_cv_prog_CC
5085  shift
5086  if test $# != 0; then
5087    # We chose a different compiler from the bogus one.
5088    # However, it has the same basename, so the bogon will be chosen
5089    # first if we set CC to just the basename; use the full file name.
5090    shift
5091    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5092  fi
5093fi
5094fi
5095fi
5096CC=$ac_cv_prog_CC
5097if test -n "$CC"; then
5098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5099printf "%s\n" "$CC" >&6; }
5100else
5101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102printf "%s\n" "no" >&6; }
5103fi
5104
5105
5106fi
5107if test -z "$CC"; then
5108  if test -n "$ac_tool_prefix"; then
5109  for ac_prog in cl.exe
5110  do
5111    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114printf %s "checking for $ac_word... " >&6; }
5115if test ${ac_cv_prog_CC+y}
5116then :
5117  printf %s "(cached) " >&6
5118else $as_nop
5119  if test -n "$CC"; then
5120  ac_cv_prog_CC="$CC" # Let the user override the test.
5121else
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125  IFS=$as_save_IFS
5126  case $as_dir in #(((
5127    '') as_dir=./ ;;
5128    */) ;;
5129    *) as_dir=$as_dir/ ;;
5130  esac
5131    for ac_exec_ext in '' $ac_executable_extensions; do
5132  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5133    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5135    break 2
5136  fi
5137done
5138  done
5139IFS=$as_save_IFS
5140
5141fi
5142fi
5143CC=$ac_cv_prog_CC
5144if test -n "$CC"; then
5145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5146printf "%s\n" "$CC" >&6; }
5147else
5148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149printf "%s\n" "no" >&6; }
5150fi
5151
5152
5153    test -n "$CC" && break
5154  done
5155fi
5156if test -z "$CC"; then
5157  ac_ct_CC=$CC
5158  for ac_prog in cl.exe
5159do
5160  # Extract the first word of "$ac_prog", so it can be a program name with args.
5161set dummy $ac_prog; ac_word=$2
5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163printf %s "checking for $ac_word... " >&6; }
5164if test ${ac_cv_prog_ac_ct_CC+y}
5165then :
5166  printf %s "(cached) " >&6
5167else $as_nop
5168  if test -n "$ac_ct_CC"; then
5169  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5170else
5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH
5173do
5174  IFS=$as_save_IFS
5175  case $as_dir in #(((
5176    '') as_dir=./ ;;
5177    */) ;;
5178    *) as_dir=$as_dir/ ;;
5179  esac
5180    for ac_exec_ext in '' $ac_executable_extensions; do
5181  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5182    ac_cv_prog_ac_ct_CC="$ac_prog"
5183    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187  done
5188IFS=$as_save_IFS
5189
5190fi
5191fi
5192ac_ct_CC=$ac_cv_prog_ac_ct_CC
5193if test -n "$ac_ct_CC"; then
5194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5195printf "%s\n" "$ac_ct_CC" >&6; }
5196else
5197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198printf "%s\n" "no" >&6; }
5199fi
5200
5201
5202  test -n "$ac_ct_CC" && break
5203done
5204
5205  if test "x$ac_ct_CC" = x; then
5206    CC=""
5207  else
5208    case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214    CC=$ac_ct_CC
5215  fi
5216fi
5217
5218fi
5219if test -z "$CC"; then
5220  if test -n "$ac_tool_prefix"; then
5221  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}clang; ac_word=$2
5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224printf %s "checking for $ac_word... " >&6; }
5225if test ${ac_cv_prog_CC+y}
5226then :
5227  printf %s "(cached) " >&6
5228else $as_nop
5229  if test -n "$CC"; then
5230  ac_cv_prog_CC="$CC" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  case $as_dir in #(((
5237    '') as_dir=./ ;;
5238    */) ;;
5239    *) as_dir=$as_dir/ ;;
5240  esac
5241    for ac_exec_ext in '' $ac_executable_extensions; do
5242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5243    ac_cv_prog_CC="${ac_tool_prefix}clang"
5244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248  done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253CC=$ac_cv_prog_CC
5254if test -n "$CC"; then
5255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5256printf "%s\n" "$CC" >&6; }
5257else
5258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259printf "%s\n" "no" >&6; }
5260fi
5261
5262
5263fi
5264if test -z "$ac_cv_prog_CC"; then
5265  ac_ct_CC=$CC
5266  # Extract the first word of "clang", so it can be a program name with args.
5267set dummy clang; ac_word=$2
5268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269printf %s "checking for $ac_word... " >&6; }
5270if test ${ac_cv_prog_ac_ct_CC+y}
5271then :
5272  printf %s "(cached) " >&6
5273else $as_nop
5274  if test -n "$ac_ct_CC"; then
5275  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5276else
5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  case $as_dir in #(((
5282    '') as_dir=./ ;;
5283    */) ;;
5284    *) as_dir=$as_dir/ ;;
5285  esac
5286    for ac_exec_ext in '' $ac_executable_extensions; do
5287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5288    ac_cv_prog_ac_ct_CC="clang"
5289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296fi
5297fi
5298ac_ct_CC=$ac_cv_prog_ac_ct_CC
5299if test -n "$ac_ct_CC"; then
5300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5301printf "%s\n" "$ac_ct_CC" >&6; }
5302else
5303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304printf "%s\n" "no" >&6; }
5305fi
5306
5307  if test "x$ac_ct_CC" = x; then
5308    CC=""
5309  else
5310    case $cross_compiling:$ac_tool_warned in
5311yes:)
5312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314ac_tool_warned=yes ;;
5315esac
5316    CC=$ac_ct_CC
5317  fi
5318else
5319  CC="$ac_cv_prog_CC"
5320fi
5321
5322fi
5323
5324
5325test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5326printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5327as_fn_error $? "no acceptable C compiler found in \$PATH
5328See \`config.log' for more details" "$LINENO" 5; }
5329
5330# Provide some information about the compiler.
5331printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5332set X $ac_compile
5333ac_compiler=$2
5334for ac_option in --version -v -V -qversion -version; do
5335  { { ac_try="$ac_compiler $ac_option >&5"
5336case "(($ac_try" in
5337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338  *) ac_try_echo=$ac_try;;
5339esac
5340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341printf "%s\n" "$ac_try_echo"; } >&5
5342  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5343  ac_status=$?
5344  if test -s conftest.err; then
5345    sed '10a\
5346... rest of stderr output deleted ...
5347         10q' conftest.err >conftest.er1
5348    cat conftest.er1 >&5
5349  fi
5350  rm -f conftest.er1 conftest.err
5351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352  test $ac_status = 0; }
5353done
5354
5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5356printf %s "checking whether the compiler supports GNU C... " >&6; }
5357if test ${ac_cv_c_compiler_gnu+y}
5358then :
5359  printf %s "(cached) " >&6
5360else $as_nop
5361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h.  */
5363
5364int
5365main (void)
5366{
5367#ifndef __GNUC__
5368       choke me
5369#endif
5370
5371  ;
5372  return 0;
5373}
5374_ACEOF
5375if ac_fn_c_try_compile "$LINENO"
5376then :
5377  ac_compiler_gnu=yes
5378else $as_nop
5379  ac_compiler_gnu=no
5380fi
5381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5382ac_cv_c_compiler_gnu=$ac_compiler_gnu
5383
5384fi
5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5386printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389if test $ac_compiler_gnu = yes; then
5390  GCC=yes
5391else
5392  GCC=
5393fi
5394ac_test_CFLAGS=${CFLAGS+y}
5395ac_save_CFLAGS=$CFLAGS
5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5397printf %s "checking whether $CC accepts -g... " >&6; }
5398if test ${ac_cv_prog_cc_g+y}
5399then :
5400  printf %s "(cached) " >&6
5401else $as_nop
5402  ac_save_c_werror_flag=$ac_c_werror_flag
5403   ac_c_werror_flag=yes
5404   ac_cv_prog_cc_g=no
5405   CFLAGS="-g"
5406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408
5409int
5410main (void)
5411{
5412
5413  ;
5414  return 0;
5415}
5416_ACEOF
5417if ac_fn_c_try_compile "$LINENO"
5418then :
5419  ac_cv_prog_cc_g=yes
5420else $as_nop
5421  CFLAGS=""
5422      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424
5425int
5426main (void)
5427{
5428
5429  ;
5430  return 0;
5431}
5432_ACEOF
5433if ac_fn_c_try_compile "$LINENO"
5434then :
5435
5436else $as_nop
5437  ac_c_werror_flag=$ac_save_c_werror_flag
5438	 CFLAGS="-g"
5439	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441
5442int
5443main (void)
5444{
5445
5446  ;
5447  return 0;
5448}
5449_ACEOF
5450if ac_fn_c_try_compile "$LINENO"
5451then :
5452  ac_cv_prog_cc_g=yes
5453fi
5454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5455fi
5456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5457fi
5458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5459   ac_c_werror_flag=$ac_save_c_werror_flag
5460fi
5461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5462printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5463if test $ac_test_CFLAGS; then
5464  CFLAGS=$ac_save_CFLAGS
5465elif test $ac_cv_prog_cc_g = yes; then
5466  if test "$GCC" = yes; then
5467    CFLAGS="-g -O2"
5468  else
5469    CFLAGS="-g"
5470  fi
5471else
5472  if test "$GCC" = yes; then
5473    CFLAGS="-O2"
5474  else
5475    CFLAGS=
5476  fi
5477fi
5478ac_prog_cc_stdc=no
5479if test x$ac_prog_cc_stdc = xno
5480then :
5481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5482printf %s "checking for $CC option to enable C11 features... " >&6; }
5483if test ${ac_cv_prog_cc_c11+y}
5484then :
5485  printf %s "(cached) " >&6
5486else $as_nop
5487  ac_cv_prog_cc_c11=no
5488ac_save_CC=$CC
5489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491$ac_c_conftest_c11_program
5492_ACEOF
5493for ac_arg in '' -std=gnu11
5494do
5495  CC="$ac_save_CC $ac_arg"
5496  if ac_fn_c_try_compile "$LINENO"
5497then :
5498  ac_cv_prog_cc_c11=$ac_arg
5499fi
5500rm -f core conftest.err conftest.$ac_objext conftest.beam
5501  test "x$ac_cv_prog_cc_c11" != "xno" && break
5502done
5503rm -f conftest.$ac_ext
5504CC=$ac_save_CC
5505fi
5506
5507if test "x$ac_cv_prog_cc_c11" = xno
5508then :
5509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5510printf "%s\n" "unsupported" >&6; }
5511else $as_nop
5512  if test "x$ac_cv_prog_cc_c11" = x
5513then :
5514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5515printf "%s\n" "none needed" >&6; }
5516else $as_nop
5517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5518printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5519     CC="$CC $ac_cv_prog_cc_c11"
5520fi
5521  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5522  ac_prog_cc_stdc=c11
5523fi
5524fi
5525if test x$ac_prog_cc_stdc = xno
5526then :
5527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5528printf %s "checking for $CC option to enable C99 features... " >&6; }
5529if test ${ac_cv_prog_cc_c99+y}
5530then :
5531  printf %s "(cached) " >&6
5532else $as_nop
5533  ac_cv_prog_cc_c99=no
5534ac_save_CC=$CC
5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537$ac_c_conftest_c99_program
5538_ACEOF
5539for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5540do
5541  CC="$ac_save_CC $ac_arg"
5542  if ac_fn_c_try_compile "$LINENO"
5543then :
5544  ac_cv_prog_cc_c99=$ac_arg
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.beam
5547  test "x$ac_cv_prog_cc_c99" != "xno" && break
5548done
5549rm -f conftest.$ac_ext
5550CC=$ac_save_CC
5551fi
5552
5553if test "x$ac_cv_prog_cc_c99" = xno
5554then :
5555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5556printf "%s\n" "unsupported" >&6; }
5557else $as_nop
5558  if test "x$ac_cv_prog_cc_c99" = x
5559then :
5560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5561printf "%s\n" "none needed" >&6; }
5562else $as_nop
5563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5564printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5565     CC="$CC $ac_cv_prog_cc_c99"
5566fi
5567  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5568  ac_prog_cc_stdc=c99
5569fi
5570fi
5571if test x$ac_prog_cc_stdc = xno
5572then :
5573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5574printf %s "checking for $CC option to enable C89 features... " >&6; }
5575if test ${ac_cv_prog_cc_c89+y}
5576then :
5577  printf %s "(cached) " >&6
5578else $as_nop
5579  ac_cv_prog_cc_c89=no
5580ac_save_CC=$CC
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h.  */
5583$ac_c_conftest_c89_program
5584_ACEOF
5585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5586do
5587  CC="$ac_save_CC $ac_arg"
5588  if ac_fn_c_try_compile "$LINENO"
5589then :
5590  ac_cv_prog_cc_c89=$ac_arg
5591fi
5592rm -f core conftest.err conftest.$ac_objext conftest.beam
5593  test "x$ac_cv_prog_cc_c89" != "xno" && break
5594done
5595rm -f conftest.$ac_ext
5596CC=$ac_save_CC
5597fi
5598
5599if test "x$ac_cv_prog_cc_c89" = xno
5600then :
5601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5602printf "%s\n" "unsupported" >&6; }
5603else $as_nop
5604  if test "x$ac_cv_prog_cc_c89" = x
5605then :
5606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5607printf "%s\n" "none needed" >&6; }
5608else $as_nop
5609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5610printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5611     CC="$CC $ac_cv_prog_cc_c89"
5612fi
5613  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5614  ac_prog_cc_stdc=c89
5615fi
5616fi
5617
5618ac_ext=c
5619ac_cpp='$CPP $CPPFLAGS'
5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623
5624
5625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5626printf %s "checking $CC dependency flag... " >&6; }
5627echo 'void f(){}' >conftest.c
5628if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5629	DEPFLAG="-MM"
5630else
5631  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5632	DEPFLAG="-xM1"
5633  else
5634	DEPFLAG="-MM"  # dunno do something
5635  fi
5636fi
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5638printf "%s\n" "$DEPFLAG" >&6; }
5639rm -f conftest.c
5640
5641
5642
5643
5644
5645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5646printf %s "checking whether $CC supports -Werror... " >&6; }
5647cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5648if eval test \${cv_prog_cc_flag_$cache+y}
5649then :
5650  printf %s "(cached) " >&6
5651else $as_nop
5652
5653echo 'void f(void){}' >conftest.c
5654if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5655eval "cv_prog_cc_flag_$cache=yes"
5656else
5657eval "cv_prog_cc_flag_$cache=no"
5658fi
5659rm -f conftest conftest.o conftest.c
5660
5661fi
5662
5663if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665printf "%s\n" "yes" >&6; }
5666:
5667ERRFLAG="-Werror"
5668else
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670printf "%s\n" "no" >&6; }
5671:
5672ERRFLAG="-errwarn"
5673fi
5674
5675
5676
5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5678printf %s "checking whether $CC supports -Wall... " >&6; }
5679cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5680if eval test \${cv_prog_cc_flag_$cache+y}
5681then :
5682  printf %s "(cached) " >&6
5683else $as_nop
5684
5685echo 'void f(void){}' >conftest.c
5686if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5687eval "cv_prog_cc_flag_$cache=yes"
5688else
5689eval "cv_prog_cc_flag_$cache=no"
5690fi
5691rm -f conftest conftest.o conftest.c
5692
5693fi
5694
5695if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697printf "%s\n" "yes" >&6; }
5698:
5699ERRFLAG="$ERRFLAG -Wall"
5700else
5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702printf "%s\n" "no" >&6; }
5703:
5704ERRFLAG="$ERRFLAG -errfmt"
5705fi
5706
5707
5708
5709
5710
5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5712printf %s "checking whether $CC supports -std=c99... " >&6; }
5713cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5714if eval test \${cv_prog_cc_flag_$cache+y}
5715then :
5716  printf %s "(cached) " >&6
5717else $as_nop
5718
5719echo 'void f(void){}' >conftest.c
5720if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5721eval "cv_prog_cc_flag_$cache=yes"
5722else
5723eval "cv_prog_cc_flag_$cache=no"
5724fi
5725rm -f conftest conftest.o conftest.c
5726
5727fi
5728
5729if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5731printf "%s\n" "yes" >&6; }
5732:
5733C99FLAG="-std=c99"
5734else
5735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736printf "%s\n" "no" >&6; }
5737:
5738
5739fi
5740
5741
5742
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5744printf %s "checking whether $CC supports -xc99... " >&6; }
5745cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5746if eval test \${cv_prog_cc_flag_$cache+y}
5747then :
5748  printf %s "(cached) " >&6
5749else $as_nop
5750
5751echo 'void f(void){}' >conftest.c
5752if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5753eval "cv_prog_cc_flag_$cache=yes"
5754else
5755eval "cv_prog_cc_flag_$cache=no"
5756fi
5757rm -f conftest conftest.o conftest.c
5758
5759fi
5760
5761if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763printf "%s\n" "yes" >&6; }
5764:
5765C99FLAG="-xc99"
5766else
5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768printf "%s\n" "no" >&6; }
5769:
5770
5771fi
5772
5773
5774ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default
5775"
5776if test "x$ac_cv_header_getopt_h" = xyes
5777then :
5778  printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
5779
5780fi
5781ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default
5782"
5783if test "x$ac_cv_header_time_h" = xyes
5784then :
5785  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
5786
5787fi
5788
5789
5790
5791
5792
5793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5794printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5795cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5796if eval test \${cv_prog_cc_flag_needed_$cache+y}
5797then :
5798  printf %s "(cached) " >&6
5799else $as_nop
5800
5801echo '
5802#include "confdefs.h"
5803#include <stdlib.h>
5804#include <ctype.h>
5805#include <sys/time.h>
5806#ifdef HAVE_TIME_H
5807#include <time.h>
5808#endif
5809#include <unistd.h>
5810#include <netdb.h>
5811#ifdef HAVE_GETOPT_H
5812#include <getopt.h>
5813#endif
5814
5815int test() {
5816	int a;
5817	char **opts = NULL;
5818	struct timeval tv;
5819	char *t;
5820	time_t time = 0;
5821	char *buf = NULL;
5822	const char* str = NULL;
5823	struct msghdr msg;
5824	msg.msg_control = 0;
5825	t = ctime_r(&time, buf);
5826	tv.tv_usec = 10;
5827	srandom(32);
5828	a = getopt(2, opts, "a");
5829	a = isascii(32);
5830	str = gai_strerror(0);
5831	if(str && t && tv.tv_usec && msg.msg_control)
5832		a = 0;
5833	return a;
5834}
5835' > conftest.c
5836echo 'void f(){}' >>conftest.c
5837if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5838eval "cv_prog_cc_flag_needed_$cache=no"
5839else
5840
5841if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5842eval "cv_prog_cc_flag_needed_$cache=yes"
5843else
5844eval "cv_prog_cc_flag_needed_$cache=fail"
5845#echo 'Test with flag fails too!'
5846#cat conftest.c
5847#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5848#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5849#exit 1
5850fi
5851
5852fi
5853rm -f conftest conftest.c conftest.o
5854
5855fi
5856
5857if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859printf "%s\n" "yes" >&6; }
5860:
5861CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5862else
5863if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865printf "%s\n" "no" >&6; }
5866#echo 'Test with flag is no!'
5867#cat conftest.c
5868#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5869#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5870#exit 1
5871:
5872
5873else
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5875printf "%s\n" "failed" >&6; }
5876:
5877
5878fi
5879fi
5880
5881
5882
5883
5884
5885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5886printf %s "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5887cache=`printf "%s\n" "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5888if eval test \${cv_prog_cc_flag_needed_$cache+y}
5889then :
5890  printf %s "(cached) " >&6
5891else $as_nop
5892
5893echo '
5894#include "confdefs.h"
5895#include <stdlib.h>
5896#include <ctype.h>
5897#include <sys/time.h>
5898#ifdef HAVE_TIME_H
5899#include <time.h>
5900#endif
5901#include <unistd.h>
5902#include <netdb.h>
5903#ifdef HAVE_GETOPT_H
5904#include <getopt.h>
5905#endif
5906
5907int test() {
5908	int a;
5909	char **opts = NULL;
5910	struct timeval tv;
5911	char *t;
5912	time_t time = 0;
5913	char *buf = NULL;
5914	const char* str = NULL;
5915	struct msghdr msg;
5916	msg.msg_control = 0;
5917	t = ctime_r(&time, buf);
5918	tv.tv_usec = 10;
5919	srandom(32);
5920	a = getopt(2, opts, "a");
5921	a = isascii(32);
5922	str = gai_strerror(0);
5923	if(str && t && tv.tv_usec && msg.msg_control)
5924		a = 0;
5925	return a;
5926}
5927' > conftest.c
5928echo 'void f(){}' >>conftest.c
5929if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5930eval "cv_prog_cc_flag_needed_$cache=no"
5931else
5932
5933if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5934eval "cv_prog_cc_flag_needed_$cache=yes"
5935else
5936eval "cv_prog_cc_flag_needed_$cache=fail"
5937#echo 'Test with flag fails too!'
5938#cat conftest.c
5939#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5940#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5941#exit 1
5942fi
5943
5944fi
5945rm -f conftest conftest.c conftest.o
5946
5947fi
5948
5949if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5951printf "%s\n" "yes" >&6; }
5952:
5953CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5954else
5955if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957printf "%s\n" "no" >&6; }
5958#echo 'Test with flag is no!'
5959#cat conftest.c
5960#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5961#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5962#exit 1
5963:
5964
5965else
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5967printf "%s\n" "failed" >&6; }
5968:
5969
5970fi
5971fi
5972
5973
5974
5975
5976
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5978printf %s "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5979cache=`printf "%s\n" "$C99FLAG" | $as_tr_sh`
5980if eval test \${cv_prog_cc_flag_needed_$cache+y}
5981then :
5982  printf %s "(cached) " >&6
5983else $as_nop
5984
5985echo '
5986#include <stdbool.h>
5987#include <ctype.h>
5988int test() {
5989        int a = 0;
5990        return a;
5991}
5992' > conftest.c
5993echo 'void f(){}' >>conftest.c
5994if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5995eval "cv_prog_cc_flag_needed_$cache=no"
5996else
5997
5998if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5999eval "cv_prog_cc_flag_needed_$cache=yes"
6000else
6001eval "cv_prog_cc_flag_needed_$cache=fail"
6002#echo 'Test with flag fails too!'
6003#cat conftest.c
6004#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
6005#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
6006#exit 1
6007fi
6008
6009fi
6010rm -f conftest conftest.c conftest.o
6011
6012fi
6013
6014if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6016printf "%s\n" "yes" >&6; }
6017:
6018CFLAGS="$CFLAGS $C99FLAG"
6019else
6020if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022printf "%s\n" "no" >&6; }
6023#echo 'Test with flag is no!'
6024#cat conftest.c
6025#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
6026#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
6027#exit 1
6028:
6029
6030else
6031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6032printf "%s\n" "failed" >&6; }
6033:
6034
6035fi
6036fi
6037
6038
6039
6040
6041
6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
6043printf %s "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
6044cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
6045if eval test \${cv_prog_cc_flag_needed_$cache+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049
6050echo '
6051#include <ctype.h>
6052
6053int test() {
6054        int a;
6055        a = isascii(32);
6056        return a;
6057}
6058' > conftest.c
6059echo 'void f(){}' >>conftest.c
6060if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6061eval "cv_prog_cc_flag_needed_$cache=no"
6062else
6063
6064if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
6065eval "cv_prog_cc_flag_needed_$cache=yes"
6066else
6067eval "cv_prog_cc_flag_needed_$cache=fail"
6068#echo 'Test with flag fails too!'
6069#cat conftest.c
6070#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
6071#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
6072#exit 1
6073fi
6074
6075fi
6076rm -f conftest conftest.c conftest.o
6077
6078fi
6079
6080if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6082printf "%s\n" "yes" >&6; }
6083:
6084CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
6085else
6086if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088printf "%s\n" "no" >&6; }
6089#echo 'Test with flag is no!'
6090#cat conftest.c
6091#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
6092#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
6093#exit 1
6094:
6095
6096else
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6098printf "%s\n" "failed" >&6; }
6099:
6100
6101fi
6102fi
6103
6104
6105
6106
6107
6108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
6109printf %s "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
6110cache=_D_GNU_SOURCE
6111if eval test \${cv_prog_cc_flag_needed_$cache+y}
6112then :
6113  printf %s "(cached) " >&6
6114else $as_nop
6115
6116echo '
6117#include <netinet/in.h>
6118
6119int test() {
6120        struct in6_pktinfo inf;
6121	int a = (int)sizeof(inf);
6122        return a;
6123}
6124' > conftest.c
6125echo 'void f(){}' >>conftest.c
6126if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6127eval "cv_prog_cc_flag_needed_$cache=no"
6128else
6129
6130if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
6131eval "cv_prog_cc_flag_needed_$cache=yes"
6132else
6133eval "cv_prog_cc_flag_needed_$cache=fail"
6134#echo 'Test with flag fails too!'
6135#cat conftest.c
6136#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
6137#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
6138#exit 1
6139fi
6140
6141fi
6142rm -f conftest conftest.c conftest.o
6143
6144fi
6145
6146if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6148printf "%s\n" "yes" >&6; }
6149:
6150CFLAGS="$CFLAGS -D_GNU_SOURCE"
6151else
6152if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154printf "%s\n" "no" >&6; }
6155#echo 'Test with flag is no!'
6156#cat conftest.c
6157#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
6158#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
6159#exit 1
6160:
6161
6162else
6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6164printf "%s\n" "failed" >&6; }
6165:
6166
6167fi
6168fi
6169
6170
6171# check again for GNU_SOURCE for setresgid. May fail if setresgid
6172# is not available at all. -D_FRSRESGID is to make this check unique.
6173# otherwise we would get the previous cached result.
6174
6175
6176
6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
6178printf %s "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
6179cache=_D_GNU_SOURCE__D_FRSRESGID
6180if eval test \${cv_prog_cc_flag_needed_$cache+y}
6181then :
6182  printf %s "(cached) " >&6
6183else $as_nop
6184
6185echo '
6186#include <unistd.h>
6187
6188int test() {
6189	int a = setresgid(0,0,0);
6190	a = setresuid(0,0,0);
6191        return a;
6192}
6193' > conftest.c
6194echo 'void f(){}' >>conftest.c
6195if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6196eval "cv_prog_cc_flag_needed_$cache=no"
6197else
6198
6199if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
6200eval "cv_prog_cc_flag_needed_$cache=yes"
6201else
6202eval "cv_prog_cc_flag_needed_$cache=fail"
6203#echo 'Test with flag fails too!'
6204#cat conftest.c
6205#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
6206#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
6207#exit 1
6208fi
6209
6210fi
6211rm -f conftest conftest.c conftest.o
6212
6213fi
6214
6215if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6217printf "%s\n" "yes" >&6; }
6218:
6219CFLAGS="$CFLAGS -D_GNU_SOURCE"
6220else
6221if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223printf "%s\n" "no" >&6; }
6224#echo 'Test with flag is no!'
6225#cat conftest.c
6226#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
6227#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
6228#exit 1
6229:
6230
6231else
6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6233printf "%s\n" "failed" >&6; }
6234:
6235
6236fi
6237fi
6238
6239
6240
6241
6242
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
6244printf %s "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
6245cache=_D_POSIX_C_SOURCE_200112
6246if eval test \${cv_prog_cc_flag_needed_$cache+y}
6247then :
6248  printf %s "(cached) " >&6
6249else $as_nop
6250
6251echo '
6252#include "confdefs.h"
6253#ifdef HAVE_TIME_H
6254#include <time.h>
6255#endif
6256#include <netdb.h>
6257
6258int test() {
6259        int a = 0;
6260        char *t;
6261        time_t time = 0;
6262        char *buf = NULL;
6263	const char* str = NULL;
6264        t = ctime_r(&time, buf);
6265	str = gai_strerror(0);
6266	if(t && str)
6267		a = 0;
6268        return a;
6269}
6270' > conftest.c
6271echo 'void f(){}' >>conftest.c
6272if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6273eval "cv_prog_cc_flag_needed_$cache=no"
6274else
6275
6276if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
6277eval "cv_prog_cc_flag_needed_$cache=yes"
6278else
6279eval "cv_prog_cc_flag_needed_$cache=fail"
6280#echo 'Test with flag fails too!'
6281#cat conftest.c
6282#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
6283#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
6284#exit 1
6285fi
6286
6287fi
6288rm -f conftest conftest.c conftest.o
6289
6290fi
6291
6292if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294printf "%s\n" "yes" >&6; }
6295:
6296CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
6297else
6298if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300printf "%s\n" "no" >&6; }
6301#echo 'Test with flag is no!'
6302#cat conftest.c
6303#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
6304#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
6305#exit 1
6306:
6307
6308else
6309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6310printf "%s\n" "failed" >&6; }
6311:
6312
6313fi
6314fi
6315
6316
6317
6318
6319
6320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
6321printf %s "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
6322cache=_D__EXTENSIONS__
6323if eval test \${cv_prog_cc_flag_needed_$cache+y}
6324then :
6325  printf %s "(cached) " >&6
6326else $as_nop
6327
6328echo '
6329#include "confdefs.h"
6330#include <stdlib.h>
6331#include <ctype.h>
6332#include <sys/time.h>
6333#ifdef HAVE_TIME_H
6334#include <time.h>
6335#endif
6336#include <unistd.h>
6337#ifdef HAVE_GETOPT_H
6338#include <getopt.h>
6339#endif
6340
6341int test() {
6342        int a;
6343        char **opts = NULL;
6344        struct timeval tv;
6345        tv.tv_usec = 10;
6346        srandom(32);
6347        a = getopt(2, opts, "a");
6348        a = isascii(32);
6349	if(tv.tv_usec)
6350		a = 0;
6351        return a;
6352}
6353' > conftest.c
6354echo 'void f(){}' >>conftest.c
6355if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
6356eval "cv_prog_cc_flag_needed_$cache=no"
6357else
6358
6359if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
6360eval "cv_prog_cc_flag_needed_$cache=yes"
6361else
6362eval "cv_prog_cc_flag_needed_$cache=fail"
6363#echo 'Test with flag fails too!'
6364#cat conftest.c
6365#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
6366#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
6367#exit 1
6368fi
6369
6370fi
6371rm -f conftest conftest.c conftest.o
6372
6373fi
6374
6375if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
6376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6377printf "%s\n" "yes" >&6; }
6378:
6379CFLAGS="$CFLAGS -D__EXTENSIONS__"
6380else
6381if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383printf "%s\n" "no" >&6; }
6384#echo 'Test with flag is no!'
6385#cat conftest.c
6386#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
6387#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
6388#exit 1
6389:
6390
6391else
6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6393printf "%s\n" "failed" >&6; }
6394:
6395
6396fi
6397fi
6398
6399
6400
6401
6402# debug mode flags warnings
6403# Check whether --enable-checking was given.
6404if test ${enable_checking+y}
6405then :
6406  enableval=$enable_checking;
6407fi
6408
6409# Check whether --enable-debug was given.
6410if test ${enable_debug+y}
6411then :
6412  enableval=$enable_debug;
6413fi
6414
6415if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
6416else debug_enabled="$enable_checking"; fi
6417
6418case "$debug_enabled" in
6419        yes)
6420
6421
6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
6423printf %s "checking whether $CC supports -W... " >&6; }
6424cache=`echo W | sed 'y%.=/+-%___p_%'`
6425if eval test \${cv_prog_cc_flag_$cache+y}
6426then :
6427  printf %s "(cached) " >&6
6428else $as_nop
6429
6430echo 'void f(void){}' >conftest.c
6431if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
6432eval "cv_prog_cc_flag_$cache=yes"
6433else
6434eval "cv_prog_cc_flag_$cache=no"
6435fi
6436rm -f conftest conftest.o conftest.c
6437
6438fi
6439
6440if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6442printf "%s\n" "yes" >&6; }
6443:
6444CFLAGS="$CFLAGS -W"
6445else
6446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447printf "%s\n" "no" >&6; }
6448:
6449
6450fi
6451
6452
6453
6454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
6455printf %s "checking whether $CC supports -Wall... " >&6; }
6456cache=`echo Wall | sed 'y%.=/+-%___p_%'`
6457if eval test \${cv_prog_cc_flag_$cache+y}
6458then :
6459  printf %s "(cached) " >&6
6460else $as_nop
6461
6462echo 'void f(void){}' >conftest.c
6463if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
6464eval "cv_prog_cc_flag_$cache=yes"
6465else
6466eval "cv_prog_cc_flag_$cache=no"
6467fi
6468rm -f conftest conftest.o conftest.c
6469
6470fi
6471
6472if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6474printf "%s\n" "yes" >&6; }
6475:
6476CFLAGS="$CFLAGS -Wall"
6477else
6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479printf "%s\n" "no" >&6; }
6480:
6481
6482fi
6483
6484
6485
6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
6487printf %s "checking whether $CC supports -Wextra... " >&6; }
6488cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
6489if eval test \${cv_prog_cc_flag_$cache+y}
6490then :
6491  printf %s "(cached) " >&6
6492else $as_nop
6493
6494echo 'void f(void){}' >conftest.c
6495if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
6496eval "cv_prog_cc_flag_$cache=yes"
6497else
6498eval "cv_prog_cc_flag_$cache=no"
6499fi
6500rm -f conftest conftest.o conftest.c
6501
6502fi
6503
6504if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6506printf "%s\n" "yes" >&6; }
6507:
6508CFLAGS="$CFLAGS -Wextra"
6509else
6510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511printf "%s\n" "no" >&6; }
6512:
6513
6514fi
6515
6516
6517
6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6519printf %s "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6520cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6521if eval test \${cv_prog_cc_flag_$cache+y}
6522then :
6523  printf %s "(cached) " >&6
6524else $as_nop
6525
6526echo 'void f(void){}' >conftest.c
6527if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6528eval "cv_prog_cc_flag_$cache=yes"
6529else
6530eval "cv_prog_cc_flag_$cache=no"
6531fi
6532rm -f conftest conftest.o conftest.c
6533
6534fi
6535
6536if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6538printf "%s\n" "yes" >&6; }
6539:
6540CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6541else
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543printf "%s\n" "no" >&6; }
6544:
6545
6546fi
6547
6548
6549printf "%s\n" "#define UNBOUND_DEBUG /**/" >>confdefs.h
6550
6551		;;
6552	no|*)
6553		# nothing to do.
6554		;;
6555esac
6556if test "$default_cflags" = "yes"; then
6557	# only when CFLAGS was "" at the start, if the users wants to
6558	# override we shouldn't add default cflags, because they wouldn't
6559	# be able to turn off these options and set the CFLAGS wanted.
6560
6561    # Check whether --enable-flto was given.
6562if test ${enable_flto+y}
6563then :
6564  enableval=$enable_flto;
6565fi
6566
6567    if test "x$enable_flto" != "xno"
6568then :
6569
6570        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6571printf %s "checking if $CC supports -flto... " >&6; }
6572        BAKCFLAGS="$CFLAGS"
6573        CFLAGS="$CFLAGS -flto"
6574        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576
6577int
6578main (void)
6579{
6580
6581  ;
6582  return 0;
6583}
6584_ACEOF
6585if ac_fn_c_try_link "$LINENO"
6586then :
6587
6588            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6589                CFLAGS="$BAKCFLAGS"
6590                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591printf "%s\n" "no" >&6; }
6592            else
6593                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6594printf "%s\n" "yes" >&6; }
6595            fi
6596            rm -f conftest conftest.c conftest.o
6597
6598else $as_nop
6599  CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600printf "%s\n" "no" >&6; }
6601fi
6602rm -f core conftest.err conftest.$ac_objext conftest.beam \
6603    conftest$ac_exeext conftest.$ac_ext
6604
6605fi
6606
6607
6608    # Check whether --enable-pie was given.
6609if test ${enable_pie+y}
6610then :
6611  enableval=$enable_pie;
6612fi
6613
6614    if test "x$enable_pie" = "xyes"
6615then :
6616
6617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6618printf %s "checking if $CC supports PIE... " >&6; }
6619	BAKLDFLAGS="$LDFLAGS"
6620	BAKCFLAGS="$CFLAGS"
6621	LDFLAGS="$LDFLAGS -pie"
6622	CFLAGS="$CFLAGS -fPIE"
6623	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625
6626int
6627main (void)
6628{
6629
6630  ;
6631  return 0;
6632}
6633_ACEOF
6634if ac_fn_c_try_link "$LINENO"
6635then :
6636
6637	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6638		LDFLAGS="$BAKLDFLAGS"
6639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640printf "%s\n" "no" >&6; }
6641	    else
6642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6643printf "%s\n" "yes" >&6; }
6644	    fi
6645	    rm -f conftest conftest.c conftest.o
6646
6647else $as_nop
6648  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649printf "%s\n" "no" >&6; }
6650fi
6651rm -f core conftest.err conftest.$ac_objext conftest.beam \
6652    conftest$ac_exeext conftest.$ac_ext
6653
6654fi
6655
6656
6657    # Check whether --enable-relro_now was given.
6658if test ${enable_relro_now+y}
6659then :
6660  enableval=$enable_relro_now;
6661fi
6662
6663    if test "x$enable_relro_now" = "xyes"
6664then :
6665
6666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6667printf %s "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6668	BAKLDFLAGS="$LDFLAGS"
6669	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6670	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672
6673int
6674main (void)
6675{
6676
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_link "$LINENO"
6682then :
6683
6684	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6685		LDFLAGS="$BAKLDFLAGS"
6686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687printf "%s\n" "no" >&6; }
6688	    else
6689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6690printf "%s\n" "yes" >&6; }
6691	    fi
6692	    rm -f conftest conftest.c conftest.o
6693
6694else $as_nop
6695  LDFLAGS="$BAKLDFLAGS" ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696printf "%s\n" "no" >&6; }
6697fi
6698rm -f core conftest.err conftest.$ac_objext conftest.beam \
6699    conftest$ac_exeext conftest.$ac_ext
6700
6701fi
6702
6703fi
6704
6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6706printf %s "checking for inline... " >&6; }
6707if test ${ac_cv_c_inline+y}
6708then :
6709  printf %s "(cached) " >&6
6710else $as_nop
6711  ac_cv_c_inline=no
6712for ac_kw in inline __inline__ __inline; do
6713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714/* end confdefs.h.  */
6715#ifndef __cplusplus
6716typedef int foo_t;
6717static $ac_kw foo_t static_foo (void) {return 0; }
6718$ac_kw foo_t foo (void) {return 0; }
6719#endif
6720
6721_ACEOF
6722if ac_fn_c_try_compile "$LINENO"
6723then :
6724  ac_cv_c_inline=$ac_kw
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6727  test "$ac_cv_c_inline" != no && break
6728done
6729
6730fi
6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6732printf "%s\n" "$ac_cv_c_inline" >&6; }
6733
6734case $ac_cv_c_inline in
6735  inline | yes) ;;
6736  *)
6737    case $ac_cv_c_inline in
6738      no) ac_val=;;
6739      *) ac_val=$ac_cv_c_inline;;
6740    esac
6741    cat >>confdefs.h <<_ACEOF
6742#ifndef __cplusplus
6743#define inline $ac_val
6744#endif
6745_ACEOF
6746    ;;
6747esac
6748
6749
6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6751printf %s "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6752if test ${ac_cv_c_format_attribute+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  ac_cv_c_format_attribute=no
6757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759#include <stdio.h>
6760void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6761void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6762
6763int
6764main (void)
6765{
6766
6767   f ("%s", "str");
6768
6769  ;
6770  return 0;
6771}
6772_ACEOF
6773if ac_fn_c_try_compile "$LINENO"
6774then :
6775  ac_cv_c_format_attribute="yes"
6776else $as_nop
6777  ac_cv_c_format_attribute="no"
6778fi
6779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6780
6781fi
6782
6783
6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6785printf "%s\n" "$ac_cv_c_format_attribute" >&6; }
6786if test $ac_cv_c_format_attribute = yes; then
6787
6788printf "%s\n" "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6789
6790fi
6791
6792
6793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6794printf %s "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6795if test ${ac_cv_c_unused_attribute+y}
6796then :
6797  printf %s "(cached) " >&6
6798else $as_nop
6799  ac_cv_c_unused_attribute=no
6800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802#include <stdio.h>
6803void f (char *u __attribute__((unused)));
6804
6805int
6806main (void)
6807{
6808
6809   f ("x");
6810
6811  ;
6812  return 0;
6813}
6814_ACEOF
6815if ac_fn_c_try_compile "$LINENO"
6816then :
6817  ac_cv_c_unused_attribute="yes"
6818else $as_nop
6819  ac_cv_c_unused_attribute="no"
6820fi
6821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6822
6823fi
6824
6825
6826
6827
6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6829printf "%s\n" "$ac_cv_c_unused_attribute" >&6; }
6830if test $ac_cv_c_unused_attribute = yes; then
6831
6832printf "%s\n" "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6833
6834fi
6835
6836
6837
6838
6839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6840printf %s "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6841if test ${ac_cv_c_weak_attribute+y}
6842then :
6843  printf %s "(cached) " >&6
6844else $as_nop
6845  ac_cv_c_weak_attribute=no
6846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h.  */
6848 #include <stdio.h>
6849__attribute__((weak)) void f(int x) { printf("%d", x); }
6850
6851int
6852main (void)
6853{
6854
6855   f(1);
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"
6862then :
6863  ac_cv_c_weak_attribute="yes"
6864else $as_nop
6865  ac_cv_c_weak_attribute="no"
6866fi
6867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6868
6869fi
6870
6871
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6873printf "%s\n" "$ac_cv_c_weak_attribute" >&6; }
6874if test $ac_cv_c_weak_attribute = yes; then
6875
6876printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6877
6878
6879printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6880
6881fi
6882
6883
6884
6885
6886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6887printf %s "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6888if test ${ac_cv_c_noreturn_attribute+y}
6889then :
6890  printf %s "(cached) " >&6
6891else $as_nop
6892  ac_cv_c_noreturn_attribute=no
6893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895 #include <stdio.h>
6896__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6897
6898int
6899main (void)
6900{
6901
6902   f(1);
6903
6904  ;
6905  return 0;
6906}
6907_ACEOF
6908if ac_fn_c_try_compile "$LINENO"
6909then :
6910  ac_cv_c_noreturn_attribute="yes"
6911else $as_nop
6912  ac_cv_c_noreturn_attribute="no"
6913fi
6914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6915
6916fi
6917
6918
6919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6920printf "%s\n" "$ac_cv_c_noreturn_attribute" >&6; }
6921if test $ac_cv_c_noreturn_attribute = yes; then
6922
6923printf "%s\n" "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6924
6925
6926printf "%s\n" "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6927
6928fi
6929
6930
6931if test "$srcdir" != "."; then
6932	CPPFLAGS="$CPPFLAGS -I$srcdir"
6933fi
6934
6935
6936
6937
6938
6939for ac_prog in flex lex
6940do
6941  # Extract the first word of "$ac_prog", so it can be a program name with args.
6942set dummy $ac_prog; ac_word=$2
6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944printf %s "checking for $ac_word... " >&6; }
6945if test ${ac_cv_prog_LEX+y}
6946then :
6947  printf %s "(cached) " >&6
6948else $as_nop
6949  if test -n "$LEX"; then
6950  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955  IFS=$as_save_IFS
6956  case $as_dir in #(((
6957    '') as_dir=./ ;;
6958    */) ;;
6959    *) as_dir=$as_dir/ ;;
6960  esac
6961    for ac_exec_ext in '' $ac_executable_extensions; do
6962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6963    ac_cv_prog_LEX="$ac_prog"
6964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6965    break 2
6966  fi
6967done
6968  done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973LEX=$ac_cv_prog_LEX
6974if test -n "$LEX"; then
6975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6976printf "%s\n" "$LEX" >&6; }
6977else
6978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979printf "%s\n" "no" >&6; }
6980fi
6981
6982
6983  test -n "$LEX" && break
6984done
6985test -n "$LEX" || LEX=":"
6986
6987  if test "x$LEX" != "x:"; then
6988    cat >conftest.l <<_ACEOF
6989%{
6990#ifdef __cplusplus
6991extern "C"
6992#endif
6993int yywrap(void);
6994%}
6995%%
6996a { ECHO; }
6997b { REJECT; }
6998c { yymore (); }
6999d { yyless (1); }
7000e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
7001#ifdef __cplusplus
7002    yyless ((yyinput () != 0));
7003#else
7004    yyless ((input () != 0));
7005#endif
7006  }
7007f { unput (yytext[0]); }
7008. { BEGIN INITIAL; }
7009%%
7010#ifdef YYTEXT_POINTER
7011extern char *yytext;
7012#endif
7013int
7014yywrap (void)
7015{
7016  return 1;
7017}
7018int
7019main (void)
7020{
7021  return ! yylex ();
7022}
7023_ACEOF
7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
7025printf %s "checking for lex output file root... " >&6; }
7026if test ${ac_cv_prog_lex_root+y}
7027then :
7028  printf %s "(cached) " >&6
7029else $as_nop
7030
7031ac_cv_prog_lex_root=unknown
7032{ { ac_try="$LEX conftest.l"
7033case "(($ac_try" in
7034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035  *) ac_try_echo=$ac_try;;
7036esac
7037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7038printf "%s\n" "$ac_try_echo"; } >&5
7039  (eval "$LEX conftest.l") 2>&5
7040  ac_status=$?
7041  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042  test $ac_status = 0; } &&
7043if test -f lex.yy.c; then
7044  ac_cv_prog_lex_root=lex.yy
7045elif test -f lexyy.c; then
7046  ac_cv_prog_lex_root=lexyy
7047fi
7048fi
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7050printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
7051if test "$ac_cv_prog_lex_root" = unknown
7052then :
7053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
7054printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
7055   LEX=: LEXLIB=
7056fi
7057LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7058
7059if test ${LEXLIB+y}
7060then :
7061
7062else $as_nop
7063
7064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
7065printf %s "checking for lex library... " >&6; }
7066if test ${ac_cv_lib_lex+y}
7067then :
7068  printf %s "(cached) " >&6
7069else $as_nop
7070
7071    ac_save_LIBS="$LIBS"
7072    ac_found=false
7073    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
7074      case $ac_cv_lib_lex in #(
7075  'none needed') :
7076     ;; #(
7077  'not found') :
7078    break ;; #(
7079  *) :
7080    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
7081  *) :
7082     ;;
7083esac
7084
7085      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087`cat $LEX_OUTPUT_ROOT.c`
7088_ACEOF
7089if ac_fn_c_try_link "$LINENO"
7090then :
7091  ac_found=:
7092fi
7093rm -f core conftest.err conftest.$ac_objext conftest.beam \
7094    conftest$ac_exeext conftest.$ac_ext
7095      if $ac_found; then
7096        break
7097      fi
7098    done
7099    LIBS="$ac_save_LIBS"
7100
7101fi
7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7103printf "%s\n" "$ac_cv_lib_lex" >&6; }
7104  if test "$ac_cv_lib_lex" = 'not found'
7105then :
7106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
7107printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
7108	 LEX=: LEXLIB=
7109elif test "$ac_cv_lib_lex" = 'none needed'
7110then :
7111  LEXLIB=''
7112else $as_nop
7113  LEXLIB=$ac_cv_lib_lex
7114fi
7115
7116fi
7117
7118
7119if test "$LEX" != :
7120then :
7121
7122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7123printf %s "checking whether yytext is a pointer... " >&6; }
7124if test ${ac_cv_prog_lex_yytext_pointer+y}
7125then :
7126  printf %s "(cached) " >&6
7127else $as_nop
7128  # POSIX says lex can declare yytext either as a pointer or an array; the
7129# default is implementation-dependent.  Figure out which it is, since
7130# not all implementations provide the %pointer and %array declarations.
7131ac_cv_prog_lex_yytext_pointer=no
7132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134
7135  #define YYTEXT_POINTER 1
7136`cat $LEX_OUTPUT_ROOT.c`
7137_ACEOF
7138if ac_fn_c_try_compile "$LINENO"
7139then :
7140  ac_cv_prog_lex_yytext_pointer=yes
7141fi
7142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7143
7144fi
7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7146printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
7147if test $ac_cv_prog_lex_yytext_pointer = yes; then
7148
7149printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
7150
7151fi
7152
7153fi
7154rm -f conftest.l $LEX_OUTPUT_ROOT.c
7155
7156fi
7157if test "$LEX" != "" -a "$LEX" != ":"; then
7158
7159	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
7160printf %s "checking for yylex_destroy... " >&6; }
7161	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
7162
7163printf "%s\n" "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
7164
7165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7166printf "%s\n" "yes" >&6; }
7167	else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168printf "%s\n" "no" >&6; };
7169		LEX=":"
7170	fi
7171
7172fi
7173if test "$LEX" != "" -a "$LEX" != ":"; then
7174
7175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
7176printf %s "checking for lex %option... " >&6; }
7177	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
7178%option nounput
7179%%
7180EOF
7181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7182printf "%s\n" "yes" >&6; }
7183	else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184printf "%s\n" "no" >&6; };
7185		LEX=":"
7186	fi
7187
7188fi
7189for ac_prog in 'bison -y' byacc
7190do
7191  # Extract the first word of "$ac_prog", so it can be a program name with args.
7192set dummy $ac_prog; ac_word=$2
7193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194printf %s "checking for $ac_word... " >&6; }
7195if test ${ac_cv_prog_YACC+y}
7196then :
7197  printf %s "(cached) " >&6
7198else $as_nop
7199  if test -n "$YACC"; then
7200  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  case $as_dir in #(((
7207    '') as_dir=./ ;;
7208    */) ;;
7209    *) as_dir=$as_dir/ ;;
7210  esac
7211    for ac_exec_ext in '' $ac_executable_extensions; do
7212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7213    ac_cv_prog_YACC="$ac_prog"
7214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7215    break 2
7216  fi
7217done
7218  done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223YACC=$ac_cv_prog_YACC
7224if test -n "$YACC"; then
7225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7226printf "%s\n" "$YACC" >&6; }
7227else
7228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229printf "%s\n" "no" >&6; }
7230fi
7231
7232
7233  test -n "$YACC" && break
7234done
7235test -n "$YACC" || YACC="yacc"
7236
7237# Extract the first word of "doxygen", so it can be a program name with args.
7238set dummy doxygen; ac_word=$2
7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240printf %s "checking for $ac_word... " >&6; }
7241if test ${ac_cv_prog_doxygen+y}
7242then :
7243  printf %s "(cached) " >&6
7244else $as_nop
7245  if test -n "$doxygen"; then
7246  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  case $as_dir in #(((
7253    '') as_dir=./ ;;
7254    */) ;;
7255    *) as_dir=$as_dir/ ;;
7256  esac
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7259    ac_cv_prog_doxygen="doxygen"
7260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269doxygen=$ac_cv_prog_doxygen
7270if test -n "$doxygen"; then
7271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
7272printf "%s\n" "$doxygen" >&6; }
7273else
7274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275printf "%s\n" "no" >&6; }
7276fi
7277
7278
7279if test -n "$ac_tool_prefix"; then
7280  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7281set dummy ${ac_tool_prefix}strip; ac_word=$2
7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283printf %s "checking for $ac_word... " >&6; }
7284if test ${ac_cv_prog_STRIP+y}
7285then :
7286  printf %s "(cached) " >&6
7287else $as_nop
7288  if test -n "$STRIP"; then
7289  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  case $as_dir in #(((
7296    '') as_dir=./ ;;
7297    */) ;;
7298    *) as_dir=$as_dir/ ;;
7299  esac
7300    for ac_exec_ext in '' $ac_executable_extensions; do
7301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7302    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7304    break 2
7305  fi
7306done
7307  done
7308IFS=$as_save_IFS
7309
7310fi
7311fi
7312STRIP=$ac_cv_prog_STRIP
7313if test -n "$STRIP"; then
7314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7315printf "%s\n" "$STRIP" >&6; }
7316else
7317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318printf "%s\n" "no" >&6; }
7319fi
7320
7321
7322fi
7323if test -z "$ac_cv_prog_STRIP"; then
7324  ac_ct_STRIP=$STRIP
7325  # Extract the first word of "strip", so it can be a program name with args.
7326set dummy strip; ac_word=$2
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328printf %s "checking for $ac_word... " >&6; }
7329if test ${ac_cv_prog_ac_ct_STRIP+y}
7330then :
7331  printf %s "(cached) " >&6
7332else $as_nop
7333  if test -n "$ac_ct_STRIP"; then
7334  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  case $as_dir in #(((
7341    '') as_dir=./ ;;
7342    */) ;;
7343    *) as_dir=$as_dir/ ;;
7344  esac
7345    for ac_exec_ext in '' $ac_executable_extensions; do
7346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7347    ac_cv_prog_ac_ct_STRIP="strip"
7348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7349    break 2
7350  fi
7351done
7352  done
7353IFS=$as_save_IFS
7354
7355fi
7356fi
7357ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358if test -n "$ac_ct_STRIP"; then
7359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7360printf "%s\n" "$ac_ct_STRIP" >&6; }
7361else
7362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363printf "%s\n" "no" >&6; }
7364fi
7365
7366  if test "x$ac_ct_STRIP" = x; then
7367    STRIP=""
7368  else
7369    case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375    STRIP=$ac_ct_STRIP
7376  fi
7377else
7378  STRIP="$ac_cv_prog_STRIP"
7379fi
7380
7381
7382
7383
7384  # Make sure we can run config.sub.
7385$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7386  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7387
7388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7389printf %s "checking build system type... " >&6; }
7390if test ${ac_cv_build+y}
7391then :
7392  printf %s "(cached) " >&6
7393else $as_nop
7394  ac_build_alias=$build_alias
7395test "x$ac_build_alias" = x &&
7396  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7397test "x$ac_build_alias" = x &&
7398  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7399ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7400  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7401
7402fi
7403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7404printf "%s\n" "$ac_cv_build" >&6; }
7405case $ac_cv_build in
7406*-*-*) ;;
7407*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7408esac
7409build=$ac_cv_build
7410ac_save_IFS=$IFS; IFS='-'
7411set x $ac_cv_build
7412shift
7413build_cpu=$1
7414build_vendor=$2
7415shift; shift
7416# Remember, the first character of IFS is used to create $*,
7417# except with old shells:
7418build_os=$*
7419IFS=$ac_save_IFS
7420case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7421
7422
7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7424printf %s "checking host system type... " >&6; }
7425if test ${ac_cv_host+y}
7426then :
7427  printf %s "(cached) " >&6
7428else $as_nop
7429  if test "x$host_alias" = x; then
7430  ac_cv_host=$ac_cv_build
7431else
7432  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7433    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7434fi
7435
7436fi
7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7438printf "%s\n" "$ac_cv_host" >&6; }
7439case $ac_cv_host in
7440*-*-*) ;;
7441*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7442esac
7443host=$ac_cv_host
7444ac_save_IFS=$IFS; IFS='-'
7445set x $ac_cv_host
7446shift
7447host_cpu=$1
7448host_vendor=$2
7449shift; shift
7450# Remember, the first character of IFS is used to create $*,
7451# except with old shells:
7452host_os=$*
7453IFS=$ac_save_IFS
7454case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7455
7456
7457
7458# skip these tests, we do not need them.
7459
7460
7461
7462
7463
7464
7465
7466
7467# always use ./libtool unless override from commandline (libtool=mylibtool)
7468if test -z "$libtool"; then
7469	libtool="./libtool"
7470fi
7471
7472# avoid libtool max commandline length test on systems that fork slowly.
7473
7474if echo "$host_os" | grep "sunos4" >/dev/null; then
7475	lt_cv_sys_max_cmd_len=32750;
7476fi
7477if test -n "$ac_tool_prefix"; then
7478  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7479set dummy ${ac_tool_prefix}ar; ac_word=$2
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481printf %s "checking for $ac_word... " >&6; }
7482if test ${ac_cv_path_AR+y}
7483then :
7484  printf %s "(cached) " >&6
7485else $as_nop
7486  case $AR in
7487  [\\/]* | ?:[\\/]*)
7488  ac_cv_path_AR="$AR" # Let the user override the test with a path.
7489  ;;
7490  *)
7491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  case $as_dir in #(((
7496    '') as_dir=./ ;;
7497    */) ;;
7498    *) as_dir=$as_dir/ ;;
7499  esac
7500    for ac_exec_ext in '' $ac_executable_extensions; do
7501  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7502    ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
7503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7504    break 2
7505  fi
7506done
7507  done
7508IFS=$as_save_IFS
7509
7510  ;;
7511esac
7512fi
7513AR=$ac_cv_path_AR
7514if test -n "$AR"; then
7515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7516printf "%s\n" "$AR" >&6; }
7517else
7518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519printf "%s\n" "no" >&6; }
7520fi
7521
7522
7523fi
7524if test -z "$ac_cv_path_AR"; then
7525  ac_pt_AR=$AR
7526  # Extract the first word of "ar", so it can be a program name with args.
7527set dummy ar; ac_word=$2
7528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529printf %s "checking for $ac_word... " >&6; }
7530if test ${ac_cv_path_ac_pt_AR+y}
7531then :
7532  printf %s "(cached) " >&6
7533else $as_nop
7534  case $ac_pt_AR in
7535  [\\/]* | ?:[\\/]*)
7536  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
7537  ;;
7538  *)
7539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542  IFS=$as_save_IFS
7543  case $as_dir in #(((
7544    '') as_dir=./ ;;
7545    */) ;;
7546    *) as_dir=$as_dir/ ;;
7547  esac
7548    for ac_exec_ext in '' $ac_executable_extensions; do
7549  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7550    ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
7551    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7552    break 2
7553  fi
7554done
7555  done
7556IFS=$as_save_IFS
7557
7558  ;;
7559esac
7560fi
7561ac_pt_AR=$ac_cv_path_ac_pt_AR
7562if test -n "$ac_pt_AR"; then
7563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
7564printf "%s\n" "$ac_pt_AR" >&6; }
7565else
7566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567printf "%s\n" "no" >&6; }
7568fi
7569
7570  if test "x$ac_pt_AR" = x; then
7571    AR="false"
7572  else
7573    case $cross_compiling:$ac_tool_warned in
7574yes:)
7575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577ac_tool_warned=yes ;;
7578esac
7579    AR=$ac_pt_AR
7580  fi
7581else
7582  AR="$ac_cv_path_AR"
7583fi
7584
7585if test $AR = false; then
7586	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7587fi
7588
7589
7590case `pwd` in
7591  *\ * | *\	*)
7592    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7593printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7594esac
7595
7596
7597
7598macro_version='2.4.6'
7599macro_revision='2.4.6'
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614ltmain=$ac_aux_dir/ltmain.sh
7615
7616# Backslashify metacharacters that are still active within
7617# double-quoted strings.
7618sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7619
7620# Same as above, but do not quote variable references.
7621double_quote_subst='s/\(["`\\]\)/\\\1/g'
7622
7623# Sed substitution to delay expansion of an escaped shell variable in a
7624# double_quote_subst'ed string.
7625delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7626
7627# Sed substitution to delay expansion of an escaped single quote.
7628delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7629
7630# Sed substitution to avoid accidental globbing in evaled expressions
7631no_glob_subst='s/\*/\\\*/g'
7632
7633ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7634ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7635ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7636
7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7638printf %s "checking how to print strings... " >&6; }
7639# Test print first, because it will be a builtin if present.
7640if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7641   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7642  ECHO='print -r --'
7643elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7644  ECHO='printf %s\n'
7645else
7646  # Use this function as a fallback that always works.
7647  func_fallback_echo ()
7648  {
7649    eval 'cat <<_LTECHO_EOF
7650$1
7651_LTECHO_EOF'
7652  }
7653  ECHO='func_fallback_echo'
7654fi
7655
7656# func_echo_all arg...
7657# Invoke $ECHO with all args, space-separated.
7658func_echo_all ()
7659{
7660    $ECHO ""
7661}
7662
7663case $ECHO in
7664  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7665printf "%s\n" "printf" >&6; } ;;
7666  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7667printf "%s\n" "print -r" >&6; } ;;
7668  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7669printf "%s\n" "cat" >&6; } ;;
7670esac
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7686printf %s "checking for a sed that does not truncate output... " >&6; }
7687if test ${ac_cv_path_SED+y}
7688then :
7689  printf %s "(cached) " >&6
7690else $as_nop
7691            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7692     for ac_i in 1 2 3 4 5 6 7; do
7693       ac_script="$ac_script$as_nl$ac_script"
7694     done
7695     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7696     { ac_script=; unset ac_script;}
7697     if test -z "$SED"; then
7698  ac_path_SED_found=false
7699  # Loop through the user's path and test for each of PROGNAME-LIST
7700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703  IFS=$as_save_IFS
7704  case $as_dir in #(((
7705    '') as_dir=./ ;;
7706    */) ;;
7707    *) as_dir=$as_dir/ ;;
7708  esac
7709    for ac_prog in sed gsed
7710   do
7711    for ac_exec_ext in '' $ac_executable_extensions; do
7712      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7713      as_fn_executable_p "$ac_path_SED" || continue
7714# Check for GNU ac_path_SED and select it if it is found.
7715  # Check for GNU $ac_path_SED
7716case `"$ac_path_SED" --version 2>&1` in
7717*GNU*)
7718  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7719*)
7720  ac_count=0
7721  printf %s 0123456789 >"conftest.in"
7722  while :
7723  do
7724    cat "conftest.in" "conftest.in" >"conftest.tmp"
7725    mv "conftest.tmp" "conftest.in"
7726    cp "conftest.in" "conftest.nl"
7727    printf "%s\n" '' >> "conftest.nl"
7728    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7730    as_fn_arith $ac_count + 1 && ac_count=$as_val
7731    if test $ac_count -gt ${ac_path_SED_max-0}; then
7732      # Best one so far, save it but keep looking for a better one
7733      ac_cv_path_SED="$ac_path_SED"
7734      ac_path_SED_max=$ac_count
7735    fi
7736    # 10*(2^10) chars as input seems more than enough
7737    test $ac_count -gt 10 && break
7738  done
7739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7740esac
7741
7742      $ac_path_SED_found && break 3
7743    done
7744  done
7745  done
7746IFS=$as_save_IFS
7747  if test -z "$ac_cv_path_SED"; then
7748    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7749  fi
7750else
7751  ac_cv_path_SED=$SED
7752fi
7753
7754fi
7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7756printf "%s\n" "$ac_cv_path_SED" >&6; }
7757 SED="$ac_cv_path_SED"
7758  rm -f conftest.sed
7759
7760test -z "$SED" && SED=sed
7761Xsed="$SED -e 1s/^X//"
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7774printf %s "checking for grep that handles long lines and -e... " >&6; }
7775if test ${ac_cv_path_GREP+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  if test -z "$GREP"; then
7780  ac_path_GREP_found=false
7781  # Loop through the user's path and test for each of PROGNAME-LIST
7782  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7784do
7785  IFS=$as_save_IFS
7786  case $as_dir in #(((
7787    '') as_dir=./ ;;
7788    */) ;;
7789    *) as_dir=$as_dir/ ;;
7790  esac
7791    for ac_prog in grep ggrep
7792   do
7793    for ac_exec_ext in '' $ac_executable_extensions; do
7794      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7795      as_fn_executable_p "$ac_path_GREP" || continue
7796# Check for GNU ac_path_GREP and select it if it is found.
7797  # Check for GNU $ac_path_GREP
7798case `"$ac_path_GREP" --version 2>&1` in
7799*GNU*)
7800  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7801*)
7802  ac_count=0
7803  printf %s 0123456789 >"conftest.in"
7804  while :
7805  do
7806    cat "conftest.in" "conftest.in" >"conftest.tmp"
7807    mv "conftest.tmp" "conftest.in"
7808    cp "conftest.in" "conftest.nl"
7809    printf "%s\n" 'GREP' >> "conftest.nl"
7810    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7811    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7812    as_fn_arith $ac_count + 1 && ac_count=$as_val
7813    if test $ac_count -gt ${ac_path_GREP_max-0}; then
7814      # Best one so far, save it but keep looking for a better one
7815      ac_cv_path_GREP="$ac_path_GREP"
7816      ac_path_GREP_max=$ac_count
7817    fi
7818    # 10*(2^10) chars as input seems more than enough
7819    test $ac_count -gt 10 && break
7820  done
7821  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7822esac
7823
7824      $ac_path_GREP_found && break 3
7825    done
7826  done
7827  done
7828IFS=$as_save_IFS
7829  if test -z "$ac_cv_path_GREP"; then
7830    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7831  fi
7832else
7833  ac_cv_path_GREP=$GREP
7834fi
7835
7836fi
7837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7838printf "%s\n" "$ac_cv_path_GREP" >&6; }
7839 GREP="$ac_cv_path_GREP"
7840
7841
7842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7843printf %s "checking for egrep... " >&6; }
7844if test ${ac_cv_path_EGREP+y}
7845then :
7846  printf %s "(cached) " >&6
7847else $as_nop
7848  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7849   then ac_cv_path_EGREP="$GREP -E"
7850   else
7851     if test -z "$EGREP"; then
7852  ac_path_EGREP_found=false
7853  # Loop through the user's path and test for each of PROGNAME-LIST
7854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7856do
7857  IFS=$as_save_IFS
7858  case $as_dir in #(((
7859    '') as_dir=./ ;;
7860    */) ;;
7861    *) as_dir=$as_dir/ ;;
7862  esac
7863    for ac_prog in egrep
7864   do
7865    for ac_exec_ext in '' $ac_executable_extensions; do
7866      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7867      as_fn_executable_p "$ac_path_EGREP" || continue
7868# Check for GNU ac_path_EGREP and select it if it is found.
7869  # Check for GNU $ac_path_EGREP
7870case `"$ac_path_EGREP" --version 2>&1` in
7871*GNU*)
7872  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7873*)
7874  ac_count=0
7875  printf %s 0123456789 >"conftest.in"
7876  while :
7877  do
7878    cat "conftest.in" "conftest.in" >"conftest.tmp"
7879    mv "conftest.tmp" "conftest.in"
7880    cp "conftest.in" "conftest.nl"
7881    printf "%s\n" 'EGREP' >> "conftest.nl"
7882    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7884    as_fn_arith $ac_count + 1 && ac_count=$as_val
7885    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7886      # Best one so far, save it but keep looking for a better one
7887      ac_cv_path_EGREP="$ac_path_EGREP"
7888      ac_path_EGREP_max=$ac_count
7889    fi
7890    # 10*(2^10) chars as input seems more than enough
7891    test $ac_count -gt 10 && break
7892  done
7893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7894esac
7895
7896      $ac_path_EGREP_found && break 3
7897    done
7898  done
7899  done
7900IFS=$as_save_IFS
7901  if test -z "$ac_cv_path_EGREP"; then
7902    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7903  fi
7904else
7905  ac_cv_path_EGREP=$EGREP
7906fi
7907
7908   fi
7909fi
7910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7911printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7912 EGREP="$ac_cv_path_EGREP"
7913
7914
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7916printf %s "checking for fgrep... " >&6; }
7917if test ${ac_cv_path_FGREP+y}
7918then :
7919  printf %s "(cached) " >&6
7920else $as_nop
7921  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7922   then ac_cv_path_FGREP="$GREP -F"
7923   else
7924     if test -z "$FGREP"; then
7925  ac_path_FGREP_found=false
7926  # Loop through the user's path and test for each of PROGNAME-LIST
7927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7929do
7930  IFS=$as_save_IFS
7931  case $as_dir in #(((
7932    '') as_dir=./ ;;
7933    */) ;;
7934    *) as_dir=$as_dir/ ;;
7935  esac
7936    for ac_prog in fgrep
7937   do
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7940      as_fn_executable_p "$ac_path_FGREP" || continue
7941# Check for GNU ac_path_FGREP and select it if it is found.
7942  # Check for GNU $ac_path_FGREP
7943case `"$ac_path_FGREP" --version 2>&1` in
7944*GNU*)
7945  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7946*)
7947  ac_count=0
7948  printf %s 0123456789 >"conftest.in"
7949  while :
7950  do
7951    cat "conftest.in" "conftest.in" >"conftest.tmp"
7952    mv "conftest.tmp" "conftest.in"
7953    cp "conftest.in" "conftest.nl"
7954    printf "%s\n" 'FGREP' >> "conftest.nl"
7955    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7956    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7957    as_fn_arith $ac_count + 1 && ac_count=$as_val
7958    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7959      # Best one so far, save it but keep looking for a better one
7960      ac_cv_path_FGREP="$ac_path_FGREP"
7961      ac_path_FGREP_max=$ac_count
7962    fi
7963    # 10*(2^10) chars as input seems more than enough
7964    test $ac_count -gt 10 && break
7965  done
7966  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7967esac
7968
7969      $ac_path_FGREP_found && break 3
7970    done
7971  done
7972  done
7973IFS=$as_save_IFS
7974  if test -z "$ac_cv_path_FGREP"; then
7975    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7976  fi
7977else
7978  ac_cv_path_FGREP=$FGREP
7979fi
7980
7981   fi
7982fi
7983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7984printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7985 FGREP="$ac_cv_path_FGREP"
7986
7987
7988test -z "$GREP" && GREP=grep
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008# Check whether --with-gnu-ld was given.
8009if test ${with_gnu_ld+y}
8010then :
8011  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8012else $as_nop
8013  with_gnu_ld=no
8014fi
8015
8016ac_prog=ld
8017if test yes = "$GCC"; then
8018  # Check if gcc -print-prog-name=ld gives a path.
8019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8020printf %s "checking for ld used by $CC... " >&6; }
8021  case $host in
8022  *-*-mingw*)
8023    # gcc leaves a trailing carriage return, which upsets mingw
8024    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8025  *)
8026    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8027  esac
8028  case $ac_prog in
8029    # Accept absolute paths.
8030    [\\/]* | ?:[\\/]*)
8031      re_direlt='/[^/][^/]*/\.\./'
8032      # Canonicalize the pathname of ld
8033      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8034      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8035	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8036      done
8037      test -z "$LD" && LD=$ac_prog
8038      ;;
8039  "")
8040    # If it fails, then pretend we aren't using GCC.
8041    ac_prog=ld
8042    ;;
8043  *)
8044    # If it is relative, then search for the first ld in PATH.
8045    with_gnu_ld=unknown
8046    ;;
8047  esac
8048elif test yes = "$with_gnu_ld"; then
8049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8050printf %s "checking for GNU ld... " >&6; }
8051else
8052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8053printf %s "checking for non-GNU ld... " >&6; }
8054fi
8055if test ${lt_cv_path_LD+y}
8056then :
8057  printf %s "(cached) " >&6
8058else $as_nop
8059  if test -z "$LD"; then
8060  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8061  for ac_dir in $PATH; do
8062    IFS=$lt_save_ifs
8063    test -z "$ac_dir" && ac_dir=.
8064    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8065      lt_cv_path_LD=$ac_dir/$ac_prog
8066      # Check to see if the program is GNU ld.  I'd rather use --version,
8067      # but apparently some variants of GNU ld only accept -v.
8068      # Break only if it was the GNU/non-GNU ld that we prefer.
8069      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8070      *GNU* | *'with BFD'*)
8071	test no != "$with_gnu_ld" && break
8072	;;
8073      *)
8074	test yes != "$with_gnu_ld" && break
8075	;;
8076      esac
8077    fi
8078  done
8079  IFS=$lt_save_ifs
8080else
8081  lt_cv_path_LD=$LD # Let the user override the test with a path.
8082fi
8083fi
8084
8085LD=$lt_cv_path_LD
8086if test -n "$LD"; then
8087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8088printf "%s\n" "$LD" >&6; }
8089else
8090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091printf "%s\n" "no" >&6; }
8092fi
8093test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8095printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8096if test ${lt_cv_prog_gnu_ld+y}
8097then :
8098  printf %s "(cached) " >&6
8099else $as_nop
8100  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8101case `$LD -v 2>&1 </dev/null` in
8102*GNU* | *'with BFD'*)
8103  lt_cv_prog_gnu_ld=yes
8104  ;;
8105*)
8106  lt_cv_prog_gnu_ld=no
8107  ;;
8108esac
8109fi
8110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8111printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8112with_gnu_ld=$lt_cv_prog_gnu_ld
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8123printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8124if test ${lt_cv_path_NM+y}
8125then :
8126  printf %s "(cached) " >&6
8127else $as_nop
8128  if test -n "$NM"; then
8129  # Let the user override the test.
8130  lt_cv_path_NM=$NM
8131else
8132  lt_nm_to_check=${ac_tool_prefix}nm
8133  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8134    lt_nm_to_check="$lt_nm_to_check nm"
8135  fi
8136  for lt_tmp_nm in $lt_nm_to_check; do
8137    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8138    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8139      IFS=$lt_save_ifs
8140      test -z "$ac_dir" && ac_dir=.
8141      tmp_nm=$ac_dir/$lt_tmp_nm
8142      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8143	# Check to see if the nm accepts a BSD-compat flag.
8144	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8145	#   nm: unknown option "B" ignored
8146	# Tru64's nm complains that /dev/null is an invalid object file
8147	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8148	case $build_os in
8149	mingw*) lt_bad_file=conftest.nm/nofile ;;
8150	*) lt_bad_file=/dev/null ;;
8151	esac
8152	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8153	*$lt_bad_file* | *'Invalid file or object type'*)
8154	  lt_cv_path_NM="$tmp_nm -B"
8155	  break 2
8156	  ;;
8157	*)
8158	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8159	  */dev/null*)
8160	    lt_cv_path_NM="$tmp_nm -p"
8161	    break 2
8162	    ;;
8163	  *)
8164	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8165	    continue # so that we can try to find one that supports BSD flags
8166	    ;;
8167	  esac
8168	  ;;
8169	esac
8170      fi
8171    done
8172    IFS=$lt_save_ifs
8173  done
8174  : ${lt_cv_path_NM=no}
8175fi
8176fi
8177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8178printf "%s\n" "$lt_cv_path_NM" >&6; }
8179if test no != "$lt_cv_path_NM"; then
8180  NM=$lt_cv_path_NM
8181else
8182  # Didn't find any BSD compatible name lister, look for dumpbin.
8183  if test -n "$DUMPBIN"; then :
8184    # Let the user override the test.
8185  else
8186    if test -n "$ac_tool_prefix"; then
8187  for ac_prog in dumpbin "link -dump"
8188  do
8189    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192printf %s "checking for $ac_word... " >&6; }
8193if test ${ac_cv_prog_DUMPBIN+y}
8194then :
8195  printf %s "(cached) " >&6
8196else $as_nop
8197  if test -n "$DUMPBIN"; then
8198  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203  IFS=$as_save_IFS
8204  case $as_dir in #(((
8205    '') as_dir=./ ;;
8206    */) ;;
8207    *) as_dir=$as_dir/ ;;
8208  esac
8209    for ac_exec_ext in '' $ac_executable_extensions; do
8210  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8211    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8212    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8213    break 2
8214  fi
8215done
8216  done
8217IFS=$as_save_IFS
8218
8219fi
8220fi
8221DUMPBIN=$ac_cv_prog_DUMPBIN
8222if test -n "$DUMPBIN"; then
8223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8224printf "%s\n" "$DUMPBIN" >&6; }
8225else
8226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227printf "%s\n" "no" >&6; }
8228fi
8229
8230
8231    test -n "$DUMPBIN" && break
8232  done
8233fi
8234if test -z "$DUMPBIN"; then
8235  ac_ct_DUMPBIN=$DUMPBIN
8236  for ac_prog in dumpbin "link -dump"
8237do
8238  # Extract the first word of "$ac_prog", so it can be a program name with args.
8239set dummy $ac_prog; ac_word=$2
8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241printf %s "checking for $ac_word... " >&6; }
8242if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8243then :
8244  printf %s "(cached) " >&6
8245else $as_nop
8246  if test -n "$ac_ct_DUMPBIN"; then
8247  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8248else
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252  IFS=$as_save_IFS
8253  case $as_dir in #(((
8254    '') as_dir=./ ;;
8255    */) ;;
8256    *) as_dir=$as_dir/ ;;
8257  esac
8258    for ac_exec_ext in '' $ac_executable_extensions; do
8259  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8260    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8261    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8262    break 2
8263  fi
8264done
8265  done
8266IFS=$as_save_IFS
8267
8268fi
8269fi
8270ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8271if test -n "$ac_ct_DUMPBIN"; then
8272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8273printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8274else
8275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276printf "%s\n" "no" >&6; }
8277fi
8278
8279
8280  test -n "$ac_ct_DUMPBIN" && break
8281done
8282
8283  if test "x$ac_ct_DUMPBIN" = x; then
8284    DUMPBIN=":"
8285  else
8286    case $cross_compiling:$ac_tool_warned in
8287yes:)
8288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290ac_tool_warned=yes ;;
8291esac
8292    DUMPBIN=$ac_ct_DUMPBIN
8293  fi
8294fi
8295
8296    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8297    *COFF*)
8298      DUMPBIN="$DUMPBIN -symbols -headers"
8299      ;;
8300    *)
8301      DUMPBIN=:
8302      ;;
8303    esac
8304  fi
8305
8306  if test : != "$DUMPBIN"; then
8307    NM=$DUMPBIN
8308  fi
8309fi
8310test -z "$NM" && NM=nm
8311
8312
8313
8314
8315
8316
8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8318printf %s "checking the name lister ($NM) interface... " >&6; }
8319if test ${lt_cv_nm_interface+y}
8320then :
8321  printf %s "(cached) " >&6
8322else $as_nop
8323  lt_cv_nm_interface="BSD nm"
8324  echo "int some_variable = 0;" > conftest.$ac_ext
8325  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8326  (eval "$ac_compile" 2>conftest.err)
8327  cat conftest.err >&5
8328  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8329  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8330  cat conftest.err >&5
8331  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8332  cat conftest.out >&5
8333  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8334    lt_cv_nm_interface="MS dumpbin"
8335  fi
8336  rm -f conftest*
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8339printf "%s\n" "$lt_cv_nm_interface" >&6; }
8340
8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8342printf %s "checking whether ln -s works... " >&6; }
8343LN_S=$as_ln_s
8344if test "$LN_S" = "ln -s"; then
8345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8346printf "%s\n" "yes" >&6; }
8347else
8348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8349printf "%s\n" "no, using $LN_S" >&6; }
8350fi
8351
8352# find the maximum length of command line arguments
8353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8354printf %s "checking the maximum length of command line arguments... " >&6; }
8355if test ${lt_cv_sys_max_cmd_len+y}
8356then :
8357  printf %s "(cached) " >&6
8358else $as_nop
8359    i=0
8360  teststring=ABCD
8361
8362  case $build_os in
8363  msdosdjgpp*)
8364    # On DJGPP, this test can blow up pretty badly due to problems in libc
8365    # (any single argument exceeding 2000 bytes causes a buffer overrun
8366    # during glob expansion).  Even if it were fixed, the result of this
8367    # check would be larger than it should be.
8368    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8369    ;;
8370
8371  gnu*)
8372    # Under GNU Hurd, this test is not required because there is
8373    # no limit to the length of command line arguments.
8374    # Libtool will interpret -1 as no limit whatsoever
8375    lt_cv_sys_max_cmd_len=-1;
8376    ;;
8377
8378  cygwin* | mingw* | cegcc*)
8379    # On Win9x/ME, this test blows up -- it succeeds, but takes
8380    # about 5 minutes as the teststring grows exponentially.
8381    # Worse, since 9x/ME are not pre-emptively multitasking,
8382    # you end up with a "frozen" computer, even though with patience
8383    # the test eventually succeeds (with a max line length of 256k).
8384    # Instead, let's just punt: use the minimum linelength reported by
8385    # all of the supported platforms: 8192 (on NT/2K/XP).
8386    lt_cv_sys_max_cmd_len=8192;
8387    ;;
8388
8389  mint*)
8390    # On MiNT this can take a long time and run out of memory.
8391    lt_cv_sys_max_cmd_len=8192;
8392    ;;
8393
8394  amigaos*)
8395    # On AmigaOS with pdksh, this test takes hours, literally.
8396    # So we just punt and use a minimum line length of 8192.
8397    lt_cv_sys_max_cmd_len=8192;
8398    ;;
8399
8400  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8401    # This has been around since 386BSD, at least.  Likely further.
8402    if test -x /sbin/sysctl; then
8403      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8404    elif test -x /usr/sbin/sysctl; then
8405      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8406    else
8407      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8408    fi
8409    # And add a safety zone
8410    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8411    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8412    ;;
8413
8414  interix*)
8415    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8416    lt_cv_sys_max_cmd_len=196608
8417    ;;
8418
8419  os2*)
8420    # The test takes a long time on OS/2.
8421    lt_cv_sys_max_cmd_len=8192
8422    ;;
8423
8424  osf*)
8425    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8426    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8427    # nice to cause kernel panics so lets avoid the loop below.
8428    # First set a reasonable default.
8429    lt_cv_sys_max_cmd_len=16384
8430    #
8431    if test -x /sbin/sysconfig; then
8432      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8433        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8434      esac
8435    fi
8436    ;;
8437  sco3.2v5*)
8438    lt_cv_sys_max_cmd_len=102400
8439    ;;
8440  sysv5* | sco5v6* | sysv4.2uw2*)
8441    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8442    if test -n "$kargmax"; then
8443      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8444    else
8445      lt_cv_sys_max_cmd_len=32768
8446    fi
8447    ;;
8448  *)
8449    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8450    if test -n "$lt_cv_sys_max_cmd_len" && \
8451       test undefined != "$lt_cv_sys_max_cmd_len"; then
8452      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8453      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8454    else
8455      # Make teststring a little bigger before we do anything with it.
8456      # a 1K string should be a reasonable start.
8457      for i in 1 2 3 4 5 6 7 8; do
8458        teststring=$teststring$teststring
8459      done
8460      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8461      # If test is not a shell built-in, we'll probably end up computing a
8462      # maximum length that is only half of the actual maximum length, but
8463      # we can't tell.
8464      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8465	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8466	      test 17 != "$i" # 1/2 MB should be enough
8467      do
8468        i=`expr $i + 1`
8469        teststring=$teststring$teststring
8470      done
8471      # Only check the string length outside the loop.
8472      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8473      teststring=
8474      # Add a significant safety factor because C++ compilers can tack on
8475      # massive amounts of additional arguments before passing them to the
8476      # linker.  It appears as though 1/2 is a usable value.
8477      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8478    fi
8479    ;;
8480  esac
8481
8482fi
8483
8484if test -n "$lt_cv_sys_max_cmd_len"; then
8485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8486printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8487else
8488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8489printf "%s\n" "none" >&6; }
8490fi
8491max_cmd_len=$lt_cv_sys_max_cmd_len
8492
8493
8494
8495
8496
8497
8498: ${CP="cp -f"}
8499: ${MV="mv -f"}
8500: ${RM="rm -f"}
8501
8502if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8503  lt_unset=unset
8504else
8505  lt_unset=false
8506fi
8507
8508
8509
8510
8511
8512# test EBCDIC or ASCII
8513case `echo X|tr X '\101'` in
8514 A) # ASCII based system
8515    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8516  lt_SP2NL='tr \040 \012'
8517  lt_NL2SP='tr \015\012 \040\040'
8518  ;;
8519 *) # EBCDIC based system
8520  lt_SP2NL='tr \100 \n'
8521  lt_NL2SP='tr \r\n \100\100'
8522  ;;
8523esac
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8534printf %s "checking how to convert $build file names to $host format... " >&6; }
8535if test ${lt_cv_to_host_file_cmd+y}
8536then :
8537  printf %s "(cached) " >&6
8538else $as_nop
8539  case $host in
8540  *-*-mingw* )
8541    case $build in
8542      *-*-mingw* ) # actually msys
8543        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8544        ;;
8545      *-*-cygwin* )
8546        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8547        ;;
8548      * ) # otherwise, assume *nix
8549        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8550        ;;
8551    esac
8552    ;;
8553  *-*-cygwin* )
8554    case $build in
8555      *-*-mingw* ) # actually msys
8556        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8557        ;;
8558      *-*-cygwin* )
8559        lt_cv_to_host_file_cmd=func_convert_file_noop
8560        ;;
8561      * ) # otherwise, assume *nix
8562        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8563        ;;
8564    esac
8565    ;;
8566  * ) # unhandled hosts (and "normal" native builds)
8567    lt_cv_to_host_file_cmd=func_convert_file_noop
8568    ;;
8569esac
8570
8571fi
8572
8573to_host_file_cmd=$lt_cv_to_host_file_cmd
8574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8575printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8576
8577
8578
8579
8580
8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8582printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8583if test ${lt_cv_to_tool_file_cmd+y}
8584then :
8585  printf %s "(cached) " >&6
8586else $as_nop
8587  #assume ordinary cross tools, or native build.
8588lt_cv_to_tool_file_cmd=func_convert_file_noop
8589case $host in
8590  *-*-mingw* )
8591    case $build in
8592      *-*-mingw* ) # actually msys
8593        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8594        ;;
8595    esac
8596    ;;
8597esac
8598
8599fi
8600
8601to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8603printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8604
8605
8606
8607
8608
8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8610printf %s "checking for $LD option to reload object files... " >&6; }
8611if test ${lt_cv_ld_reload_flag+y}
8612then :
8613  printf %s "(cached) " >&6
8614else $as_nop
8615  lt_cv_ld_reload_flag='-r'
8616fi
8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8618printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8619reload_flag=$lt_cv_ld_reload_flag
8620case $reload_flag in
8621"" | " "*) ;;
8622*) reload_flag=" $reload_flag" ;;
8623esac
8624reload_cmds='$LD$reload_flag -o $output$reload_objs'
8625case $host_os in
8626  cygwin* | mingw* | pw32* | cegcc*)
8627    if test yes != "$GCC"; then
8628      reload_cmds=false
8629    fi
8630    ;;
8631  darwin*)
8632    if test yes = "$GCC"; then
8633      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8634    else
8635      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8636    fi
8637    ;;
8638esac
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648if test -n "$ac_tool_prefix"; then
8649  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8650set dummy ${ac_tool_prefix}objdump; ac_word=$2
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652printf %s "checking for $ac_word... " >&6; }
8653if test ${ac_cv_prog_OBJDUMP+y}
8654then :
8655  printf %s "(cached) " >&6
8656else $as_nop
8657  if test -n "$OBJDUMP"; then
8658  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663  IFS=$as_save_IFS
8664  case $as_dir in #(((
8665    '') as_dir=./ ;;
8666    */) ;;
8667    *) as_dir=$as_dir/ ;;
8668  esac
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676  done
8677IFS=$as_save_IFS
8678
8679fi
8680fi
8681OBJDUMP=$ac_cv_prog_OBJDUMP
8682if test -n "$OBJDUMP"; then
8683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8684printf "%s\n" "$OBJDUMP" >&6; }
8685else
8686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687printf "%s\n" "no" >&6; }
8688fi
8689
8690
8691fi
8692if test -z "$ac_cv_prog_OBJDUMP"; then
8693  ac_ct_OBJDUMP=$OBJDUMP
8694  # Extract the first word of "objdump", so it can be a program name with args.
8695set dummy objdump; ac_word=$2
8696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697printf %s "checking for $ac_word... " >&6; }
8698if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8699then :
8700  printf %s "(cached) " >&6
8701else $as_nop
8702  if test -n "$ac_ct_OBJDUMP"; then
8703  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708  IFS=$as_save_IFS
8709  case $as_dir in #(((
8710    '') as_dir=./ ;;
8711    */) ;;
8712    *) as_dir=$as_dir/ ;;
8713  esac
8714    for ac_exec_ext in '' $ac_executable_extensions; do
8715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8716    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8718    break 2
8719  fi
8720done
8721  done
8722IFS=$as_save_IFS
8723
8724fi
8725fi
8726ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8727if test -n "$ac_ct_OBJDUMP"; then
8728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8729printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8730else
8731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732printf "%s\n" "no" >&6; }
8733fi
8734
8735  if test "x$ac_ct_OBJDUMP" = x; then
8736    OBJDUMP="false"
8737  else
8738    case $cross_compiling:$ac_tool_warned in
8739yes:)
8740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8742ac_tool_warned=yes ;;
8743esac
8744    OBJDUMP=$ac_ct_OBJDUMP
8745  fi
8746else
8747  OBJDUMP="$ac_cv_prog_OBJDUMP"
8748fi
8749
8750test -z "$OBJDUMP" && OBJDUMP=objdump
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8761printf %s "checking how to recognize dependent libraries... " >&6; }
8762if test ${lt_cv_deplibs_check_method+y}
8763then :
8764  printf %s "(cached) " >&6
8765else $as_nop
8766  lt_cv_file_magic_cmd='$MAGIC_CMD'
8767lt_cv_file_magic_test_file=
8768lt_cv_deplibs_check_method='unknown'
8769# Need to set the preceding variable on all platforms that support
8770# interlibrary dependencies.
8771# 'none' -- dependencies not supported.
8772# 'unknown' -- same as none, but documents that we really don't know.
8773# 'pass_all' -- all dependencies passed with no checks.
8774# 'test_compile' -- check by making test program.
8775# 'file_magic [[regex]]' -- check by looking for files in library path
8776# that responds to the $file_magic_cmd with a given extended regex.
8777# If you have 'file' or equivalent on your system and you're not sure
8778# whether 'pass_all' will *always* work, you probably want this one.
8779
8780case $host_os in
8781aix[4-9]*)
8782  lt_cv_deplibs_check_method=pass_all
8783  ;;
8784
8785beos*)
8786  lt_cv_deplibs_check_method=pass_all
8787  ;;
8788
8789bsdi[45]*)
8790  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8791  lt_cv_file_magic_cmd='/usr/bin/file -L'
8792  lt_cv_file_magic_test_file=/shlib/libc.so
8793  ;;
8794
8795cygwin*)
8796  # func_win32_libid is a shell function defined in ltmain.sh
8797  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8798  lt_cv_file_magic_cmd='func_win32_libid'
8799  ;;
8800
8801mingw* | pw32*)
8802  # Base MSYS/MinGW do not provide the 'file' command needed by
8803  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8804  # unless we find 'file', for example because we are cross-compiling.
8805  if ( file / ) >/dev/null 2>&1; then
8806    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8807    lt_cv_file_magic_cmd='func_win32_libid'
8808  else
8809    # Keep this pattern in sync with the one in func_win32_libid.
8810    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8811    lt_cv_file_magic_cmd='$OBJDUMP -f'
8812  fi
8813  ;;
8814
8815cegcc*)
8816  # use the weaker test based on 'objdump'. See mingw*.
8817  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8818  lt_cv_file_magic_cmd='$OBJDUMP -f'
8819  ;;
8820
8821darwin* | rhapsody*)
8822  lt_cv_deplibs_check_method=pass_all
8823  ;;
8824
8825freebsd* | dragonfly*)
8826  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8827    case $host_cpu in
8828    i*86 )
8829      # Not sure whether the presence of OpenBSD here was a mistake.
8830      # Let's accept both of them until this is cleared up.
8831      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8832      lt_cv_file_magic_cmd=/usr/bin/file
8833      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8834      ;;
8835    esac
8836  else
8837    lt_cv_deplibs_check_method=pass_all
8838  fi
8839  ;;
8840
8841haiku*)
8842  lt_cv_deplibs_check_method=pass_all
8843  ;;
8844
8845hpux10.20* | hpux11*)
8846  lt_cv_file_magic_cmd=/usr/bin/file
8847  case $host_cpu in
8848  ia64*)
8849    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8850    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8851    ;;
8852  hppa*64*)
8853    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8854    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8855    ;;
8856  *)
8857    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8858    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8859    ;;
8860  esac
8861  ;;
8862
8863interix[3-9]*)
8864  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8865  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8866  ;;
8867
8868irix5* | irix6* | nonstopux*)
8869  case $LD in
8870  *-32|*"-32 ") libmagic=32-bit;;
8871  *-n32|*"-n32 ") libmagic=N32;;
8872  *-64|*"-64 ") libmagic=64-bit;;
8873  *) libmagic=never-match;;
8874  esac
8875  lt_cv_deplibs_check_method=pass_all
8876  ;;
8877
8878# This must be glibc/ELF.
8879linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8880  lt_cv_deplibs_check_method=pass_all
8881  ;;
8882
8883netbsd*)
8884  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8885    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8886  else
8887    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8888  fi
8889  ;;
8890
8891newos6*)
8892  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8893  lt_cv_file_magic_cmd=/usr/bin/file
8894  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8895  ;;
8896
8897*nto* | *qnx*)
8898  lt_cv_deplibs_check_method=pass_all
8899  ;;
8900
8901openbsd* | bitrig*)
8902  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8903    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8904  else
8905    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8906  fi
8907  ;;
8908
8909osf3* | osf4* | osf5*)
8910  lt_cv_deplibs_check_method=pass_all
8911  ;;
8912
8913rdos*)
8914  lt_cv_deplibs_check_method=pass_all
8915  ;;
8916
8917solaris*)
8918  lt_cv_deplibs_check_method=pass_all
8919  ;;
8920
8921sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8922  lt_cv_deplibs_check_method=pass_all
8923  ;;
8924
8925sysv4 | sysv4.3*)
8926  case $host_vendor in
8927  motorola)
8928    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8929    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8930    ;;
8931  ncr)
8932    lt_cv_deplibs_check_method=pass_all
8933    ;;
8934  sequent)
8935    lt_cv_file_magic_cmd='/bin/file'
8936    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8937    ;;
8938  sni)
8939    lt_cv_file_magic_cmd='/bin/file'
8940    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8941    lt_cv_file_magic_test_file=/lib/libc.so
8942    ;;
8943  siemens)
8944    lt_cv_deplibs_check_method=pass_all
8945    ;;
8946  pc)
8947    lt_cv_deplibs_check_method=pass_all
8948    ;;
8949  esac
8950  ;;
8951
8952tpf*)
8953  lt_cv_deplibs_check_method=pass_all
8954  ;;
8955os2*)
8956  lt_cv_deplibs_check_method=pass_all
8957  ;;
8958esac
8959
8960fi
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8962printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8963
8964file_magic_glob=
8965want_nocaseglob=no
8966if test "$build" = "$host"; then
8967  case $host_os in
8968  mingw* | pw32*)
8969    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8970      want_nocaseglob=yes
8971    else
8972      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8973    fi
8974    ;;
8975  esac
8976fi
8977
8978file_magic_cmd=$lt_cv_file_magic_cmd
8979deplibs_check_method=$lt_cv_deplibs_check_method
8980test -z "$deplibs_check_method" && deplibs_check_method=unknown
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003if test -n "$ac_tool_prefix"; then
9004  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9005set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007printf %s "checking for $ac_word... " >&6; }
9008if test ${ac_cv_prog_DLLTOOL+y}
9009then :
9010  printf %s "(cached) " >&6
9011else $as_nop
9012  if test -n "$DLLTOOL"; then
9013  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018  IFS=$as_save_IFS
9019  case $as_dir in #(((
9020    '') as_dir=./ ;;
9021    */) ;;
9022    *) as_dir=$as_dir/ ;;
9023  esac
9024    for ac_exec_ext in '' $ac_executable_extensions; do
9025  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9026    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9027    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9028    break 2
9029  fi
9030done
9031  done
9032IFS=$as_save_IFS
9033
9034fi
9035fi
9036DLLTOOL=$ac_cv_prog_DLLTOOL
9037if test -n "$DLLTOOL"; then
9038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9039printf "%s\n" "$DLLTOOL" >&6; }
9040else
9041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042printf "%s\n" "no" >&6; }
9043fi
9044
9045
9046fi
9047if test -z "$ac_cv_prog_DLLTOOL"; then
9048  ac_ct_DLLTOOL=$DLLTOOL
9049  # Extract the first word of "dlltool", so it can be a program name with args.
9050set dummy dlltool; ac_word=$2
9051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052printf %s "checking for $ac_word... " >&6; }
9053if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9054then :
9055  printf %s "(cached) " >&6
9056else $as_nop
9057  if test -n "$ac_ct_DLLTOOL"; then
9058  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9059else
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
9062do
9063  IFS=$as_save_IFS
9064  case $as_dir in #(((
9065    '') as_dir=./ ;;
9066    */) ;;
9067    *) as_dir=$as_dir/ ;;
9068  esac
9069    for ac_exec_ext in '' $ac_executable_extensions; do
9070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9071    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9073    break 2
9074  fi
9075done
9076  done
9077IFS=$as_save_IFS
9078
9079fi
9080fi
9081ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9082if test -n "$ac_ct_DLLTOOL"; then
9083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9084printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9085else
9086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087printf "%s\n" "no" >&6; }
9088fi
9089
9090  if test "x$ac_ct_DLLTOOL" = x; then
9091    DLLTOOL="false"
9092  else
9093    case $cross_compiling:$ac_tool_warned in
9094yes:)
9095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9096printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9097ac_tool_warned=yes ;;
9098esac
9099    DLLTOOL=$ac_ct_DLLTOOL
9100  fi
9101else
9102  DLLTOOL="$ac_cv_prog_DLLTOOL"
9103fi
9104
9105test -z "$DLLTOOL" && DLLTOOL=dlltool
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9117printf %s "checking how to associate runtime and link libraries... " >&6; }
9118if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9119then :
9120  printf %s "(cached) " >&6
9121else $as_nop
9122  lt_cv_sharedlib_from_linklib_cmd='unknown'
9123
9124case $host_os in
9125cygwin* | mingw* | pw32* | cegcc*)
9126  # two different shell functions defined in ltmain.sh;
9127  # decide which one to use based on capabilities of $DLLTOOL
9128  case `$DLLTOOL --help 2>&1` in
9129  *--identify-strict*)
9130    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9131    ;;
9132  *)
9133    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9134    ;;
9135  esac
9136  ;;
9137*)
9138  # fallback: assume linklib IS sharedlib
9139  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9140  ;;
9141esac
9142
9143fi
9144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9145printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9146sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9147test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9148
9149
9150
9151
9152
9153
9154
9155if test -n "$ac_tool_prefix"; then
9156  for ac_prog in ar
9157  do
9158    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161printf %s "checking for $ac_word... " >&6; }
9162if test ${ac_cv_prog_AR+y}
9163then :
9164  printf %s "(cached) " >&6
9165else $as_nop
9166  if test -n "$AR"; then
9167  ac_cv_prog_AR="$AR" # Let the user override the test.
9168else
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172  IFS=$as_save_IFS
9173  case $as_dir in #(((
9174    '') as_dir=./ ;;
9175    */) ;;
9176    *) as_dir=$as_dir/ ;;
9177  esac
9178    for ac_exec_ext in '' $ac_executable_extensions; do
9179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9180    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9182    break 2
9183  fi
9184done
9185  done
9186IFS=$as_save_IFS
9187
9188fi
9189fi
9190AR=$ac_cv_prog_AR
9191if test -n "$AR"; then
9192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9193printf "%s\n" "$AR" >&6; }
9194else
9195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196printf "%s\n" "no" >&6; }
9197fi
9198
9199
9200    test -n "$AR" && break
9201  done
9202fi
9203if test -z "$AR"; then
9204  ac_ct_AR=$AR
9205  for ac_prog in ar
9206do
9207  # Extract the first word of "$ac_prog", so it can be a program name with args.
9208set dummy $ac_prog; ac_word=$2
9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210printf %s "checking for $ac_word... " >&6; }
9211if test ${ac_cv_prog_ac_ct_AR+y}
9212then :
9213  printf %s "(cached) " >&6
9214else $as_nop
9215  if test -n "$ac_ct_AR"; then
9216  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9217else
9218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219for as_dir in $PATH
9220do
9221  IFS=$as_save_IFS
9222  case $as_dir in #(((
9223    '') as_dir=./ ;;
9224    */) ;;
9225    *) as_dir=$as_dir/ ;;
9226  esac
9227    for ac_exec_ext in '' $ac_executable_extensions; do
9228  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9229    ac_cv_prog_ac_ct_AR="$ac_prog"
9230    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9231    break 2
9232  fi
9233done
9234  done
9235IFS=$as_save_IFS
9236
9237fi
9238fi
9239ac_ct_AR=$ac_cv_prog_ac_ct_AR
9240if test -n "$ac_ct_AR"; then
9241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9242printf "%s\n" "$ac_ct_AR" >&6; }
9243else
9244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245printf "%s\n" "no" >&6; }
9246fi
9247
9248
9249  test -n "$ac_ct_AR" && break
9250done
9251
9252  if test "x$ac_ct_AR" = x; then
9253    AR="false"
9254  else
9255    case $cross_compiling:$ac_tool_warned in
9256yes:)
9257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9258printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9259ac_tool_warned=yes ;;
9260esac
9261    AR=$ac_ct_AR
9262  fi
9263fi
9264
9265: ${AR=ar}
9266: ${AR_FLAGS=cru}
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9279printf %s "checking for archiver @FILE support... " >&6; }
9280if test ${lt_cv_ar_at_file+y}
9281then :
9282  printf %s "(cached) " >&6
9283else $as_nop
9284  lt_cv_ar_at_file=no
9285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287
9288int
9289main (void)
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_compile "$LINENO"
9297then :
9298  echo conftest.$ac_objext > conftest.lst
9299      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9300      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9301  (eval $lt_ar_try) 2>&5
9302  ac_status=$?
9303  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304  test $ac_status = 0; }
9305      if test 0 -eq "$ac_status"; then
9306	# Ensure the archiver fails upon bogus file names.
9307	rm -f conftest.$ac_objext libconftest.a
9308	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9309  (eval $lt_ar_try) 2>&5
9310  ac_status=$?
9311  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312  test $ac_status = 0; }
9313	if test 0 -ne "$ac_status"; then
9314          lt_cv_ar_at_file=@
9315        fi
9316      fi
9317      rm -f conftest.* libconftest.a
9318
9319fi
9320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9321
9322fi
9323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9324printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9325
9326if test no = "$lt_cv_ar_at_file"; then
9327  archiver_list_spec=
9328else
9329  archiver_list_spec=$lt_cv_ar_at_file
9330fi
9331
9332
9333
9334
9335
9336
9337
9338if test -n "$ac_tool_prefix"; then
9339  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9340set dummy ${ac_tool_prefix}strip; ac_word=$2
9341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342printf %s "checking for $ac_word... " >&6; }
9343if test ${ac_cv_prog_STRIP+y}
9344then :
9345  printf %s "(cached) " >&6
9346else $as_nop
9347  if test -n "$STRIP"; then
9348  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9349else
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353  IFS=$as_save_IFS
9354  case $as_dir in #(((
9355    '') as_dir=./ ;;
9356    */) ;;
9357    *) as_dir=$as_dir/ ;;
9358  esac
9359    for ac_exec_ext in '' $ac_executable_extensions; do
9360  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9361    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9362    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9363    break 2
9364  fi
9365done
9366  done
9367IFS=$as_save_IFS
9368
9369fi
9370fi
9371STRIP=$ac_cv_prog_STRIP
9372if test -n "$STRIP"; then
9373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9374printf "%s\n" "$STRIP" >&6; }
9375else
9376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377printf "%s\n" "no" >&6; }
9378fi
9379
9380
9381fi
9382if test -z "$ac_cv_prog_STRIP"; then
9383  ac_ct_STRIP=$STRIP
9384  # Extract the first word of "strip", so it can be a program name with args.
9385set dummy strip; ac_word=$2
9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387printf %s "checking for $ac_word... " >&6; }
9388if test ${ac_cv_prog_ac_ct_STRIP+y}
9389then :
9390  printf %s "(cached) " >&6
9391else $as_nop
9392  if test -n "$ac_ct_STRIP"; then
9393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398  IFS=$as_save_IFS
9399  case $as_dir in #(((
9400    '') as_dir=./ ;;
9401    */) ;;
9402    *) as_dir=$as_dir/ ;;
9403  esac
9404    for ac_exec_ext in '' $ac_executable_extensions; do
9405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9406    ac_cv_prog_ac_ct_STRIP="strip"
9407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9408    break 2
9409  fi
9410done
9411  done
9412IFS=$as_save_IFS
9413
9414fi
9415fi
9416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9417if test -n "$ac_ct_STRIP"; then
9418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9419printf "%s\n" "$ac_ct_STRIP" >&6; }
9420else
9421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422printf "%s\n" "no" >&6; }
9423fi
9424
9425  if test "x$ac_ct_STRIP" = x; then
9426    STRIP=":"
9427  else
9428    case $cross_compiling:$ac_tool_warned in
9429yes:)
9430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9432ac_tool_warned=yes ;;
9433esac
9434    STRIP=$ac_ct_STRIP
9435  fi
9436else
9437  STRIP="$ac_cv_prog_STRIP"
9438fi
9439
9440test -z "$STRIP" && STRIP=:
9441
9442
9443
9444
9445
9446
9447if test -n "$ac_tool_prefix"; then
9448  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451printf %s "checking for $ac_word... " >&6; }
9452if test ${ac_cv_prog_RANLIB+y}
9453then :
9454  printf %s "(cached) " >&6
9455else $as_nop
9456  if test -n "$RANLIB"; then
9457  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9458else
9459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460for as_dir in $PATH
9461do
9462  IFS=$as_save_IFS
9463  case $as_dir in #(((
9464    '') as_dir=./ ;;
9465    */) ;;
9466    *) as_dir=$as_dir/ ;;
9467  esac
9468    for ac_exec_ext in '' $ac_executable_extensions; do
9469  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9470    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9471    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9472    break 2
9473  fi
9474done
9475  done
9476IFS=$as_save_IFS
9477
9478fi
9479fi
9480RANLIB=$ac_cv_prog_RANLIB
9481if test -n "$RANLIB"; then
9482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9483printf "%s\n" "$RANLIB" >&6; }
9484else
9485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486printf "%s\n" "no" >&6; }
9487fi
9488
9489
9490fi
9491if test -z "$ac_cv_prog_RANLIB"; then
9492  ac_ct_RANLIB=$RANLIB
9493  # Extract the first word of "ranlib", so it can be a program name with args.
9494set dummy ranlib; ac_word=$2
9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496printf %s "checking for $ac_word... " >&6; }
9497if test ${ac_cv_prog_ac_ct_RANLIB+y}
9498then :
9499  printf %s "(cached) " >&6
9500else $as_nop
9501  if test -n "$ac_ct_RANLIB"; then
9502  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9503else
9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507  IFS=$as_save_IFS
9508  case $as_dir in #(((
9509    '') as_dir=./ ;;
9510    */) ;;
9511    *) as_dir=$as_dir/ ;;
9512  esac
9513    for ac_exec_ext in '' $ac_executable_extensions; do
9514  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9515    ac_cv_prog_ac_ct_RANLIB="ranlib"
9516    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9517    break 2
9518  fi
9519done
9520  done
9521IFS=$as_save_IFS
9522
9523fi
9524fi
9525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9526if test -n "$ac_ct_RANLIB"; then
9527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9528printf "%s\n" "$ac_ct_RANLIB" >&6; }
9529else
9530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531printf "%s\n" "no" >&6; }
9532fi
9533
9534  if test "x$ac_ct_RANLIB" = x; then
9535    RANLIB=":"
9536  else
9537    case $cross_compiling:$ac_tool_warned in
9538yes:)
9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9540printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541ac_tool_warned=yes ;;
9542esac
9543    RANLIB=$ac_ct_RANLIB
9544  fi
9545else
9546  RANLIB="$ac_cv_prog_RANLIB"
9547fi
9548
9549test -z "$RANLIB" && RANLIB=:
9550
9551
9552
9553
9554
9555
9556# Determine commands to create old-style static archives.
9557old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9558old_postinstall_cmds='chmod 644 $oldlib'
9559old_postuninstall_cmds=
9560
9561if test -n "$RANLIB"; then
9562  case $host_os in
9563  bitrig* | openbsd*)
9564    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9565    ;;
9566  *)
9567    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9568    ;;
9569  esac
9570  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9571fi
9572
9573case $host_os in
9574  darwin*)
9575    lock_old_archive_extraction=yes ;;
9576  *)
9577    lock_old_archive_extraction=no ;;
9578esac
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600for ac_prog in gawk mawk nawk awk
9601do
9602  # Extract the first word of "$ac_prog", so it can be a program name with args.
9603set dummy $ac_prog; ac_word=$2
9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605printf %s "checking for $ac_word... " >&6; }
9606if test ${ac_cv_prog_AWK+y}
9607then :
9608  printf %s "(cached) " >&6
9609else $as_nop
9610  if test -n "$AWK"; then
9611  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9612else
9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616  IFS=$as_save_IFS
9617  case $as_dir in #(((
9618    '') as_dir=./ ;;
9619    */) ;;
9620    *) as_dir=$as_dir/ ;;
9621  esac
9622    for ac_exec_ext in '' $ac_executable_extensions; do
9623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9624    ac_cv_prog_AWK="$ac_prog"
9625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9626    break 2
9627  fi
9628done
9629  done
9630IFS=$as_save_IFS
9631
9632fi
9633fi
9634AWK=$ac_cv_prog_AWK
9635if test -n "$AWK"; then
9636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9637printf "%s\n" "$AWK" >&6; }
9638else
9639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640printf "%s\n" "no" >&6; }
9641fi
9642
9643
9644  test -n "$AWK" && break
9645done
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665# If no C compiler was specified, use CC.
9666LTCC=${LTCC-"$CC"}
9667
9668# If no C compiler flags were specified, use CFLAGS.
9669LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9670
9671# Allow CC to be a program name with arguments.
9672compiler=$CC
9673
9674
9675# Check for command to grab the raw symbol name followed by C symbol from nm.
9676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9677printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9678if test ${lt_cv_sys_global_symbol_pipe+y}
9679then :
9680  printf %s "(cached) " >&6
9681else $as_nop
9682
9683# These are sane defaults that work on at least a few old systems.
9684# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9685
9686# Character class describing NM global symbol codes.
9687symcode='[BCDEGRST]'
9688
9689# Regexp to match symbols that can be accessed directly from C.
9690sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9691
9692# Define system-specific variables.
9693case $host_os in
9694aix*)
9695  symcode='[BCDT]'
9696  ;;
9697cygwin* | mingw* | pw32* | cegcc*)
9698  symcode='[ABCDGISTW]'
9699  ;;
9700hpux*)
9701  if test ia64 = "$host_cpu"; then
9702    symcode='[ABCDEGRST]'
9703  fi
9704  ;;
9705irix* | nonstopux*)
9706  symcode='[BCDEGRST]'
9707  ;;
9708osf*)
9709  symcode='[BCDEGQRST]'
9710  ;;
9711solaris*)
9712  symcode='[BDRT]'
9713  ;;
9714sco3.2v5*)
9715  symcode='[DT]'
9716  ;;
9717sysv4.2uw2*)
9718  symcode='[DT]'
9719  ;;
9720sysv5* | sco5v6* | unixware* | OpenUNIX*)
9721  symcode='[ABDT]'
9722  ;;
9723sysv4)
9724  symcode='[DFNSTU]'
9725  ;;
9726esac
9727
9728# If we're using GNU nm, then use its standard symbol codes.
9729case `$NM -V 2>&1` in
9730*GNU* | *'with BFD'*)
9731  symcode='[ABCDGIRSTW]' ;;
9732esac
9733
9734if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9735  # Gets list of data symbols to import.
9736  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9737  # Adjust the below global symbol transforms to fixup imported variables.
9738  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9739  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9740  lt_c_name_lib_hook="\
9741  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9742  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9743else
9744  # Disable hooks by default.
9745  lt_cv_sys_global_symbol_to_import=
9746  lt_cdecl_hook=
9747  lt_c_name_hook=
9748  lt_c_name_lib_hook=
9749fi
9750
9751# Transform an extracted symbol line into a proper C declaration.
9752# Some systems (esp. on ia64) link data and code symbols differently,
9753# so use this general approach.
9754lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9755$lt_cdecl_hook\
9756" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9757" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9758
9759# Transform an extracted symbol line into symbol name and symbol address
9760lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9761$lt_c_name_hook\
9762" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9763" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9764
9765# Transform an extracted symbol line into symbol name with lib prefix and
9766# symbol address.
9767lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9768$lt_c_name_lib_hook\
9769" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9770" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9771" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9772
9773# Handle CRLF in mingw tool chain
9774opt_cr=
9775case $build_os in
9776mingw*)
9777  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9778  ;;
9779esac
9780
9781# Try without a prefix underscore, then with it.
9782for ac_symprfx in "" "_"; do
9783
9784  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9785  symxfrm="\\1 $ac_symprfx\\2 \\2"
9786
9787  # Write the raw and C identifiers.
9788  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9789    # Fake it for dumpbin and say T for any non-static function,
9790    # D for any global variable and I for any imported variable.
9791    # Also find C++ and __fastcall symbols from MSVC++,
9792    # which start with @ or ?.
9793    lt_cv_sys_global_symbol_pipe="$AWK '"\
9794"     {last_section=section; section=\$ 3};"\
9795"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9796"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9797"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9798"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9799"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9800"     \$ 0!~/External *\|/{next};"\
9801"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9802"     {if(hide[section]) next};"\
9803"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9804"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9805"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9806"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9807"     ' prfx=^$ac_symprfx"
9808  else
9809    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9810  fi
9811  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9812
9813  # Check to see that the pipe works correctly.
9814  pipe_works=no
9815
9816  rm -f conftest*
9817  cat > conftest.$ac_ext <<_LT_EOF
9818#ifdef __cplusplus
9819extern "C" {
9820#endif
9821char nm_test_var;
9822void nm_test_func(void);
9823void nm_test_func(void){}
9824#ifdef __cplusplus
9825}
9826#endif
9827int main(){nm_test_var='a';nm_test_func();return(0);}
9828_LT_EOF
9829
9830  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9831  (eval $ac_compile) 2>&5
9832  ac_status=$?
9833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9834  test $ac_status = 0; }; then
9835    # Now try to grab the symbols.
9836    nlist=conftest.nm
9837    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9838  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9839  ac_status=$?
9840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841  test $ac_status = 0; } && test -s "$nlist"; then
9842      # Try sorting and uniquifying the output.
9843      if sort "$nlist" | uniq > "$nlist"T; then
9844	mv -f "$nlist"T "$nlist"
9845      else
9846	rm -f "$nlist"T
9847      fi
9848
9849      # Make sure that we snagged all the symbols we need.
9850      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9851	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9852	  cat <<_LT_EOF > conftest.$ac_ext
9853/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9854#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9855/* DATA imports from DLLs on WIN32 can't be const, because runtime
9856   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9857# define LT_DLSYM_CONST
9858#elif defined __osf__
9859/* This system does not cope well with relocations in const data.  */
9860# define LT_DLSYM_CONST
9861#else
9862# define LT_DLSYM_CONST const
9863#endif
9864
9865#ifdef __cplusplus
9866extern "C" {
9867#endif
9868
9869_LT_EOF
9870	  # Now generate the symbol file.
9871	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9872
9873	  cat <<_LT_EOF >> conftest.$ac_ext
9874
9875/* The mapping between symbol names and symbols.  */
9876LT_DLSYM_CONST struct {
9877  const char *name;
9878  void       *address;
9879}
9880lt__PROGRAM__LTX_preloaded_symbols[] =
9881{
9882  { "@PROGRAM@", (void *) 0 },
9883_LT_EOF
9884	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9885	  cat <<\_LT_EOF >> conftest.$ac_ext
9886  {0, (void *) 0}
9887};
9888
9889/* This works around a problem in FreeBSD linker */
9890#ifdef FREEBSD_WORKAROUND
9891static const void *lt_preloaded_setup() {
9892  return lt__PROGRAM__LTX_preloaded_symbols;
9893}
9894#endif
9895
9896#ifdef __cplusplus
9897}
9898#endif
9899_LT_EOF
9900	  # Now try linking the two files.
9901	  mv conftest.$ac_objext conftstm.$ac_objext
9902	  lt_globsym_save_LIBS=$LIBS
9903	  lt_globsym_save_CFLAGS=$CFLAGS
9904	  LIBS=conftstm.$ac_objext
9905	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9906	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9907  (eval $ac_link) 2>&5
9908  ac_status=$?
9909  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9911	    pipe_works=yes
9912	  fi
9913	  LIBS=$lt_globsym_save_LIBS
9914	  CFLAGS=$lt_globsym_save_CFLAGS
9915	else
9916	  echo "cannot find nm_test_func in $nlist" >&5
9917	fi
9918      else
9919	echo "cannot find nm_test_var in $nlist" >&5
9920      fi
9921    else
9922      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9923    fi
9924  else
9925    echo "$progname: failed program was:" >&5
9926    cat conftest.$ac_ext >&5
9927  fi
9928  rm -rf conftest* conftst*
9929
9930  # Do not use the global_symbol_pipe unless it works.
9931  if test yes = "$pipe_works"; then
9932    break
9933  else
9934    lt_cv_sys_global_symbol_pipe=
9935  fi
9936done
9937
9938fi
9939
9940if test -z "$lt_cv_sys_global_symbol_pipe"; then
9941  lt_cv_sys_global_symbol_to_cdecl=
9942fi
9943if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9945printf "%s\n" "failed" >&6; }
9946else
9947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9948printf "%s\n" "ok" >&6; }
9949fi
9950
9951# Response file support.
9952if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9953  nm_file_list_spec='@'
9954elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9955  nm_file_list_spec='@'
9956fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9995printf %s "checking for sysroot... " >&6; }
9996
9997# Check whether --with-sysroot was given.
9998if test ${with_sysroot+y}
9999then :
10000  withval=$with_sysroot;
10001else $as_nop
10002  with_sysroot=no
10003fi
10004
10005
10006lt_sysroot=
10007case $with_sysroot in #(
10008 yes)
10009   if test yes = "$GCC"; then
10010     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10011   fi
10012   ;; #(
10013 /*)
10014   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10015   ;; #(
10016 no|'')
10017   ;; #(
10018 *)
10019   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10020printf "%s\n" "$with_sysroot" >&6; }
10021   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10022   ;;
10023esac
10024
10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10026printf "%s\n" "${lt_sysroot:-no}" >&6; }
10027
10028
10029
10030
10031
10032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10033printf %s "checking for a working dd... " >&6; }
10034if test ${ac_cv_path_lt_DD+y}
10035then :
10036  printf %s "(cached) " >&6
10037else $as_nop
10038  printf 0123456789abcdef0123456789abcdef >conftest.i
10039cat conftest.i conftest.i >conftest2.i
10040: ${lt_DD:=$DD}
10041if test -z "$lt_DD"; then
10042  ac_path_lt_DD_found=false
10043  # Loop through the user's path and test for each of PROGNAME-LIST
10044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047  IFS=$as_save_IFS
10048  case $as_dir in #(((
10049    '') as_dir=./ ;;
10050    */) ;;
10051    *) as_dir=$as_dir/ ;;
10052  esac
10053    for ac_prog in dd
10054   do
10055    for ac_exec_ext in '' $ac_executable_extensions; do
10056      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10057      as_fn_executable_p "$ac_path_lt_DD" || continue
10058if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10059  cmp -s conftest.i conftest.out \
10060  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10061fi
10062      $ac_path_lt_DD_found && break 3
10063    done
10064  done
10065  done
10066IFS=$as_save_IFS
10067  if test -z "$ac_cv_path_lt_DD"; then
10068    :
10069  fi
10070else
10071  ac_cv_path_lt_DD=$lt_DD
10072fi
10073
10074rm -f conftest.i conftest2.i conftest.out
10075fi
10076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10077printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10078
10079
10080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10081printf %s "checking how to truncate binary pipes... " >&6; }
10082if test ${lt_cv_truncate_bin+y}
10083then :
10084  printf %s "(cached) " >&6
10085else $as_nop
10086  printf 0123456789abcdef0123456789abcdef >conftest.i
10087cat conftest.i conftest.i >conftest2.i
10088lt_cv_truncate_bin=
10089if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10090  cmp -s conftest.i conftest.out \
10091  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10092fi
10093rm -f conftest.i conftest2.i conftest.out
10094test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10095fi
10096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10097printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10098
10099
10100
10101
10102
10103
10104
10105# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10106func_cc_basename ()
10107{
10108    for cc_temp in $*""; do
10109      case $cc_temp in
10110        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10111        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10112        \-*) ;;
10113        *) break;;
10114      esac
10115    done
10116    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10117}
10118
10119# Check whether --enable-libtool-lock was given.
10120if test ${enable_libtool_lock+y}
10121then :
10122  enableval=$enable_libtool_lock;
10123fi
10124
10125test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10126
10127# Some flags need to be propagated to the compiler or linker for good
10128# libtool support.
10129case $host in
10130ia64-*-hpux*)
10131  # Find out what ABI is being produced by ac_compile, and set mode
10132  # options accordingly.
10133  echo 'int i;' > conftest.$ac_ext
10134  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10135  (eval $ac_compile) 2>&5
10136  ac_status=$?
10137  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138  test $ac_status = 0; }; then
10139    case `/usr/bin/file conftest.$ac_objext` in
10140      *ELF-32*)
10141	HPUX_IA64_MODE=32
10142	;;
10143      *ELF-64*)
10144	HPUX_IA64_MODE=64
10145	;;
10146    esac
10147  fi
10148  rm -rf conftest*
10149  ;;
10150*-*-irix6*)
10151  # Find out what ABI is being produced by ac_compile, and set linker
10152  # options accordingly.
10153  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10154  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155  (eval $ac_compile) 2>&5
10156  ac_status=$?
10157  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158  test $ac_status = 0; }; then
10159    if test yes = "$lt_cv_prog_gnu_ld"; then
10160      case `/usr/bin/file conftest.$ac_objext` in
10161	*32-bit*)
10162	  LD="${LD-ld} -melf32bsmip"
10163	  ;;
10164	*N32*)
10165	  LD="${LD-ld} -melf32bmipn32"
10166	  ;;
10167	*64-bit*)
10168	  LD="${LD-ld} -melf64bmip"
10169	;;
10170      esac
10171    else
10172      case `/usr/bin/file conftest.$ac_objext` in
10173	*32-bit*)
10174	  LD="${LD-ld} -32"
10175	  ;;
10176	*N32*)
10177	  LD="${LD-ld} -n32"
10178	  ;;
10179	*64-bit*)
10180	  LD="${LD-ld} -64"
10181	  ;;
10182      esac
10183    fi
10184  fi
10185  rm -rf conftest*
10186  ;;
10187
10188mips64*-*linux*)
10189  # Find out what ABI is being produced by ac_compile, and set linker
10190  # options accordingly.
10191  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10193  (eval $ac_compile) 2>&5
10194  ac_status=$?
10195  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10196  test $ac_status = 0; }; then
10197    emul=elf
10198    case `/usr/bin/file conftest.$ac_objext` in
10199      *32-bit*)
10200	emul="${emul}32"
10201	;;
10202      *64-bit*)
10203	emul="${emul}64"
10204	;;
10205    esac
10206    case `/usr/bin/file conftest.$ac_objext` in
10207      *MSB*)
10208	emul="${emul}btsmip"
10209	;;
10210      *LSB*)
10211	emul="${emul}ltsmip"
10212	;;
10213    esac
10214    case `/usr/bin/file conftest.$ac_objext` in
10215      *N32*)
10216	emul="${emul}n32"
10217	;;
10218    esac
10219    LD="${LD-ld} -m $emul"
10220  fi
10221  rm -rf conftest*
10222  ;;
10223
10224x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10225s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10226  # Find out what ABI is being produced by ac_compile, and set linker
10227  # options accordingly.  Note that the listed cases only cover the
10228  # situations where additional linker options are needed (such as when
10229  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10230  # vice versa); the common cases where no linker options are needed do
10231  # not appear in the list.
10232  echo 'int i;' > conftest.$ac_ext
10233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234  (eval $ac_compile) 2>&5
10235  ac_status=$?
10236  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237  test $ac_status = 0; }; then
10238    case `/usr/bin/file conftest.o` in
10239      *32-bit*)
10240	case $host in
10241	  x86_64-*kfreebsd*-gnu)
10242	    LD="${LD-ld} -m elf_i386_fbsd"
10243	    ;;
10244	  x86_64-*linux*)
10245	    case `/usr/bin/file conftest.o` in
10246	      *x86-64*)
10247		LD="${LD-ld} -m elf32_x86_64"
10248		;;
10249	      *)
10250		LD="${LD-ld} -m elf_i386"
10251		;;
10252	    esac
10253	    ;;
10254	  powerpc64le-*linux*)
10255	    LD="${LD-ld} -m elf32lppclinux"
10256	    ;;
10257	  powerpc64-*linux*)
10258	    LD="${LD-ld} -m elf32ppclinux"
10259	    ;;
10260	  s390x-*linux*)
10261	    LD="${LD-ld} -m elf_s390"
10262	    ;;
10263	  sparc64-*linux*)
10264	    LD="${LD-ld} -m elf32_sparc"
10265	    ;;
10266	esac
10267	;;
10268      *64-bit*)
10269	case $host in
10270	  x86_64-*kfreebsd*-gnu)
10271	    LD="${LD-ld} -m elf_x86_64_fbsd"
10272	    ;;
10273	  x86_64-*linux*)
10274	    LD="${LD-ld} -m elf_x86_64"
10275	    ;;
10276	  powerpcle-*linux*)
10277	    LD="${LD-ld} -m elf64lppc"
10278	    ;;
10279	  powerpc-*linux*)
10280	    LD="${LD-ld} -m elf64ppc"
10281	    ;;
10282	  s390*-*linux*|s390*-*tpf*)
10283	    LD="${LD-ld} -m elf64_s390"
10284	    ;;
10285	  sparc*-*linux*)
10286	    LD="${LD-ld} -m elf64_sparc"
10287	    ;;
10288	esac
10289	;;
10290    esac
10291  fi
10292  rm -rf conftest*
10293  ;;
10294
10295*-*-sco3.2v5*)
10296  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10297  SAVE_CFLAGS=$CFLAGS
10298  CFLAGS="$CFLAGS -belf"
10299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10300printf %s "checking whether the C compiler needs -belf... " >&6; }
10301if test ${lt_cv_cc_needs_belf+y}
10302then :
10303  printf %s "(cached) " >&6
10304else $as_nop
10305  ac_ext=c
10306ac_cpp='$CPP $CPPFLAGS'
10307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310
10311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313
10314int
10315main (void)
10316{
10317
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"
10323then :
10324  lt_cv_cc_needs_belf=yes
10325else $as_nop
10326  lt_cv_cc_needs_belf=no
10327fi
10328rm -f core conftest.err conftest.$ac_objext conftest.beam \
10329    conftest$ac_exeext conftest.$ac_ext
10330     ac_ext=c
10331ac_cpp='$CPP $CPPFLAGS'
10332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334ac_compiler_gnu=$ac_cv_c_compiler_gnu
10335
10336fi
10337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10338printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10339  if test yes != "$lt_cv_cc_needs_belf"; then
10340    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10341    CFLAGS=$SAVE_CFLAGS
10342  fi
10343  ;;
10344*-*solaris*)
10345  # Find out what ABI is being produced by ac_compile, and set linker
10346  # options accordingly.
10347  echo 'int i;' > conftest.$ac_ext
10348  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10349  (eval $ac_compile) 2>&5
10350  ac_status=$?
10351  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352  test $ac_status = 0; }; then
10353    case `/usr/bin/file conftest.o` in
10354    *64-bit*)
10355      case $lt_cv_prog_gnu_ld in
10356      yes*)
10357        case $host in
10358        i?86-*-solaris*|x86_64-*-solaris*)
10359          LD="${LD-ld} -m elf_x86_64"
10360          ;;
10361        sparc*-*-solaris*)
10362          LD="${LD-ld} -m elf64_sparc"
10363          ;;
10364        esac
10365        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10366        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10367          LD=${LD-ld}_sol2
10368        fi
10369        ;;
10370      *)
10371	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10372	  LD="${LD-ld} -64"
10373	fi
10374	;;
10375      esac
10376      ;;
10377    esac
10378  fi
10379  rm -rf conftest*
10380  ;;
10381esac
10382
10383need_locks=$enable_libtool_lock
10384
10385if test -n "$ac_tool_prefix"; then
10386  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10387set dummy ${ac_tool_prefix}mt; ac_word=$2
10388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389printf %s "checking for $ac_word... " >&6; }
10390if test ${ac_cv_prog_MANIFEST_TOOL+y}
10391then :
10392  printf %s "(cached) " >&6
10393else $as_nop
10394  if test -n "$MANIFEST_TOOL"; then
10395  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10396else
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400  IFS=$as_save_IFS
10401  case $as_dir in #(((
10402    '') as_dir=./ ;;
10403    */) ;;
10404    *) as_dir=$as_dir/ ;;
10405  esac
10406    for ac_exec_ext in '' $ac_executable_extensions; do
10407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10408    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10410    break 2
10411  fi
10412done
10413  done
10414IFS=$as_save_IFS
10415
10416fi
10417fi
10418MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10419if test -n "$MANIFEST_TOOL"; then
10420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10421printf "%s\n" "$MANIFEST_TOOL" >&6; }
10422else
10423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424printf "%s\n" "no" >&6; }
10425fi
10426
10427
10428fi
10429if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10430  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10431  # Extract the first word of "mt", so it can be a program name with args.
10432set dummy mt; ac_word=$2
10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434printf %s "checking for $ac_word... " >&6; }
10435if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10436then :
10437  printf %s "(cached) " >&6
10438else $as_nop
10439  if test -n "$ac_ct_MANIFEST_TOOL"; then
10440  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10441else
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445  IFS=$as_save_IFS
10446  case $as_dir in #(((
10447    '') as_dir=./ ;;
10448    */) ;;
10449    *) as_dir=$as_dir/ ;;
10450  esac
10451    for ac_exec_ext in '' $ac_executable_extensions; do
10452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10453    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10455    break 2
10456  fi
10457done
10458  done
10459IFS=$as_save_IFS
10460
10461fi
10462fi
10463ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10464if test -n "$ac_ct_MANIFEST_TOOL"; then
10465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10466printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10467else
10468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469printf "%s\n" "no" >&6; }
10470fi
10471
10472  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10473    MANIFEST_TOOL=":"
10474  else
10475    case $cross_compiling:$ac_tool_warned in
10476yes:)
10477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10478printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10479ac_tool_warned=yes ;;
10480esac
10481    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10482  fi
10483else
10484  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10485fi
10486
10487test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10489printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10490if test ${lt_cv_path_mainfest_tool+y}
10491then :
10492  printf %s "(cached) " >&6
10493else $as_nop
10494  lt_cv_path_mainfest_tool=no
10495  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10496  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10497  cat conftest.err >&5
10498  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10499    lt_cv_path_mainfest_tool=yes
10500  fi
10501  rm -f conftest*
10502fi
10503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10504printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10505if test yes != "$lt_cv_path_mainfest_tool"; then
10506  MANIFEST_TOOL=:
10507fi
10508
10509
10510
10511
10512
10513
10514  case $host_os in
10515    rhapsody* | darwin*)
10516    if test -n "$ac_tool_prefix"; then
10517  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10518set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520printf %s "checking for $ac_word... " >&6; }
10521if test ${ac_cv_prog_DSYMUTIL+y}
10522then :
10523  printf %s "(cached) " >&6
10524else $as_nop
10525  if test -n "$DSYMUTIL"; then
10526  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10527else
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
10530do
10531  IFS=$as_save_IFS
10532  case $as_dir in #(((
10533    '') as_dir=./ ;;
10534    */) ;;
10535    *) as_dir=$as_dir/ ;;
10536  esac
10537    for ac_exec_ext in '' $ac_executable_extensions; do
10538  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10539    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10541    break 2
10542  fi
10543done
10544  done
10545IFS=$as_save_IFS
10546
10547fi
10548fi
10549DSYMUTIL=$ac_cv_prog_DSYMUTIL
10550if test -n "$DSYMUTIL"; then
10551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10552printf "%s\n" "$DSYMUTIL" >&6; }
10553else
10554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555printf "%s\n" "no" >&6; }
10556fi
10557
10558
10559fi
10560if test -z "$ac_cv_prog_DSYMUTIL"; then
10561  ac_ct_DSYMUTIL=$DSYMUTIL
10562  # Extract the first word of "dsymutil", so it can be a program name with args.
10563set dummy dsymutil; ac_word=$2
10564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565printf %s "checking for $ac_word... " >&6; }
10566if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10567then :
10568  printf %s "(cached) " >&6
10569else $as_nop
10570  if test -n "$ac_ct_DSYMUTIL"; then
10571  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10572else
10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $PATH
10575do
10576  IFS=$as_save_IFS
10577  case $as_dir in #(((
10578    '') as_dir=./ ;;
10579    */) ;;
10580    *) as_dir=$as_dir/ ;;
10581  esac
10582    for ac_exec_ext in '' $ac_executable_extensions; do
10583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10584    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10586    break 2
10587  fi
10588done
10589  done
10590IFS=$as_save_IFS
10591
10592fi
10593fi
10594ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10595if test -n "$ac_ct_DSYMUTIL"; then
10596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10597printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10598else
10599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600printf "%s\n" "no" >&6; }
10601fi
10602
10603  if test "x$ac_ct_DSYMUTIL" = x; then
10604    DSYMUTIL=":"
10605  else
10606    case $cross_compiling:$ac_tool_warned in
10607yes:)
10608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10609printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10610ac_tool_warned=yes ;;
10611esac
10612    DSYMUTIL=$ac_ct_DSYMUTIL
10613  fi
10614else
10615  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10616fi
10617
10618    if test -n "$ac_tool_prefix"; then
10619  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10620set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622printf %s "checking for $ac_word... " >&6; }
10623if test ${ac_cv_prog_NMEDIT+y}
10624then :
10625  printf %s "(cached) " >&6
10626else $as_nop
10627  if test -n "$NMEDIT"; then
10628  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10629else
10630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631for as_dir in $PATH
10632do
10633  IFS=$as_save_IFS
10634  case $as_dir in #(((
10635    '') as_dir=./ ;;
10636    */) ;;
10637    *) as_dir=$as_dir/ ;;
10638  esac
10639    for ac_exec_ext in '' $ac_executable_extensions; do
10640  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10641    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10643    break 2
10644  fi
10645done
10646  done
10647IFS=$as_save_IFS
10648
10649fi
10650fi
10651NMEDIT=$ac_cv_prog_NMEDIT
10652if test -n "$NMEDIT"; then
10653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10654printf "%s\n" "$NMEDIT" >&6; }
10655else
10656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657printf "%s\n" "no" >&6; }
10658fi
10659
10660
10661fi
10662if test -z "$ac_cv_prog_NMEDIT"; then
10663  ac_ct_NMEDIT=$NMEDIT
10664  # Extract the first word of "nmedit", so it can be a program name with args.
10665set dummy nmedit; ac_word=$2
10666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667printf %s "checking for $ac_word... " >&6; }
10668if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10669then :
10670  printf %s "(cached) " >&6
10671else $as_nop
10672  if test -n "$ac_ct_NMEDIT"; then
10673  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10674else
10675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676for as_dir in $PATH
10677do
10678  IFS=$as_save_IFS
10679  case $as_dir in #(((
10680    '') as_dir=./ ;;
10681    */) ;;
10682    *) as_dir=$as_dir/ ;;
10683  esac
10684    for ac_exec_ext in '' $ac_executable_extensions; do
10685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10686    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10688    break 2
10689  fi
10690done
10691  done
10692IFS=$as_save_IFS
10693
10694fi
10695fi
10696ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10697if test -n "$ac_ct_NMEDIT"; then
10698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10699printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10700else
10701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702printf "%s\n" "no" >&6; }
10703fi
10704
10705  if test "x$ac_ct_NMEDIT" = x; then
10706    NMEDIT=":"
10707  else
10708    case $cross_compiling:$ac_tool_warned in
10709yes:)
10710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10711printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10712ac_tool_warned=yes ;;
10713esac
10714    NMEDIT=$ac_ct_NMEDIT
10715  fi
10716else
10717  NMEDIT="$ac_cv_prog_NMEDIT"
10718fi
10719
10720    if test -n "$ac_tool_prefix"; then
10721  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10722set dummy ${ac_tool_prefix}lipo; ac_word=$2
10723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724printf %s "checking for $ac_word... " >&6; }
10725if test ${ac_cv_prog_LIPO+y}
10726then :
10727  printf %s "(cached) " >&6
10728else $as_nop
10729  if test -n "$LIPO"; then
10730  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10731else
10732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733for as_dir in $PATH
10734do
10735  IFS=$as_save_IFS
10736  case $as_dir in #(((
10737    '') as_dir=./ ;;
10738    */) ;;
10739    *) as_dir=$as_dir/ ;;
10740  esac
10741    for ac_exec_ext in '' $ac_executable_extensions; do
10742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10743    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10745    break 2
10746  fi
10747done
10748  done
10749IFS=$as_save_IFS
10750
10751fi
10752fi
10753LIPO=$ac_cv_prog_LIPO
10754if test -n "$LIPO"; then
10755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10756printf "%s\n" "$LIPO" >&6; }
10757else
10758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759printf "%s\n" "no" >&6; }
10760fi
10761
10762
10763fi
10764if test -z "$ac_cv_prog_LIPO"; then
10765  ac_ct_LIPO=$LIPO
10766  # Extract the first word of "lipo", so it can be a program name with args.
10767set dummy lipo; ac_word=$2
10768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769printf %s "checking for $ac_word... " >&6; }
10770if test ${ac_cv_prog_ac_ct_LIPO+y}
10771then :
10772  printf %s "(cached) " >&6
10773else $as_nop
10774  if test -n "$ac_ct_LIPO"; then
10775  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780  IFS=$as_save_IFS
10781  case $as_dir in #(((
10782    '') as_dir=./ ;;
10783    */) ;;
10784    *) as_dir=$as_dir/ ;;
10785  esac
10786    for ac_exec_ext in '' $ac_executable_extensions; do
10787  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10788    ac_cv_prog_ac_ct_LIPO="lipo"
10789    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10790    break 2
10791  fi
10792done
10793  done
10794IFS=$as_save_IFS
10795
10796fi
10797fi
10798ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10799if test -n "$ac_ct_LIPO"; then
10800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10801printf "%s\n" "$ac_ct_LIPO" >&6; }
10802else
10803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804printf "%s\n" "no" >&6; }
10805fi
10806
10807  if test "x$ac_ct_LIPO" = x; then
10808    LIPO=":"
10809  else
10810    case $cross_compiling:$ac_tool_warned in
10811yes:)
10812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10813printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10814ac_tool_warned=yes ;;
10815esac
10816    LIPO=$ac_ct_LIPO
10817  fi
10818else
10819  LIPO="$ac_cv_prog_LIPO"
10820fi
10821
10822    if test -n "$ac_tool_prefix"; then
10823  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10824set dummy ${ac_tool_prefix}otool; ac_word=$2
10825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826printf %s "checking for $ac_word... " >&6; }
10827if test ${ac_cv_prog_OTOOL+y}
10828then :
10829  printf %s "(cached) " >&6
10830else $as_nop
10831  if test -n "$OTOOL"; then
10832  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10833else
10834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $PATH
10836do
10837  IFS=$as_save_IFS
10838  case $as_dir in #(((
10839    '') as_dir=./ ;;
10840    */) ;;
10841    *) as_dir=$as_dir/ ;;
10842  esac
10843    for ac_exec_ext in '' $ac_executable_extensions; do
10844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10845    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10847    break 2
10848  fi
10849done
10850  done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855OTOOL=$ac_cv_prog_OTOOL
10856if test -n "$OTOOL"; then
10857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10858printf "%s\n" "$OTOOL" >&6; }
10859else
10860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861printf "%s\n" "no" >&6; }
10862fi
10863
10864
10865fi
10866if test -z "$ac_cv_prog_OTOOL"; then
10867  ac_ct_OTOOL=$OTOOL
10868  # Extract the first word of "otool", so it can be a program name with args.
10869set dummy otool; ac_word=$2
10870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871printf %s "checking for $ac_word... " >&6; }
10872if test ${ac_cv_prog_ac_ct_OTOOL+y}
10873then :
10874  printf %s "(cached) " >&6
10875else $as_nop
10876  if test -n "$ac_ct_OTOOL"; then
10877  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10878else
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882  IFS=$as_save_IFS
10883  case $as_dir in #(((
10884    '') as_dir=./ ;;
10885    */) ;;
10886    *) as_dir=$as_dir/ ;;
10887  esac
10888    for ac_exec_ext in '' $ac_executable_extensions; do
10889  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10890    ac_cv_prog_ac_ct_OTOOL="otool"
10891    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10892    break 2
10893  fi
10894done
10895  done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10901if test -n "$ac_ct_OTOOL"; then
10902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10903printf "%s\n" "$ac_ct_OTOOL" >&6; }
10904else
10905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906printf "%s\n" "no" >&6; }
10907fi
10908
10909  if test "x$ac_ct_OTOOL" = x; then
10910    OTOOL=":"
10911  else
10912    case $cross_compiling:$ac_tool_warned in
10913yes:)
10914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10916ac_tool_warned=yes ;;
10917esac
10918    OTOOL=$ac_ct_OTOOL
10919  fi
10920else
10921  OTOOL="$ac_cv_prog_OTOOL"
10922fi
10923
10924    if test -n "$ac_tool_prefix"; then
10925  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10926set dummy ${ac_tool_prefix}otool64; ac_word=$2
10927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928printf %s "checking for $ac_word... " >&6; }
10929if test ${ac_cv_prog_OTOOL64+y}
10930then :
10931  printf %s "(cached) " >&6
10932else $as_nop
10933  if test -n "$OTOOL64"; then
10934  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939  IFS=$as_save_IFS
10940  case $as_dir in #(((
10941    '') as_dir=./ ;;
10942    */) ;;
10943    *) as_dir=$as_dir/ ;;
10944  esac
10945    for ac_exec_ext in '' $ac_executable_extensions; do
10946  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10947    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10948    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10949    break 2
10950  fi
10951done
10952  done
10953IFS=$as_save_IFS
10954
10955fi
10956fi
10957OTOOL64=$ac_cv_prog_OTOOL64
10958if test -n "$OTOOL64"; then
10959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10960printf "%s\n" "$OTOOL64" >&6; }
10961else
10962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963printf "%s\n" "no" >&6; }
10964fi
10965
10966
10967fi
10968if test -z "$ac_cv_prog_OTOOL64"; then
10969  ac_ct_OTOOL64=$OTOOL64
10970  # Extract the first word of "otool64", so it can be a program name with args.
10971set dummy otool64; ac_word=$2
10972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973printf %s "checking for $ac_word... " >&6; }
10974if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10975then :
10976  printf %s "(cached) " >&6
10977else $as_nop
10978  if test -n "$ac_ct_OTOOL64"; then
10979  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984  IFS=$as_save_IFS
10985  case $as_dir in #(((
10986    '') as_dir=./ ;;
10987    */) ;;
10988    *) as_dir=$as_dir/ ;;
10989  esac
10990    for ac_exec_ext in '' $ac_executable_extensions; do
10991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10992    ac_cv_prog_ac_ct_OTOOL64="otool64"
10993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10994    break 2
10995  fi
10996done
10997  done
10998IFS=$as_save_IFS
10999
11000fi
11001fi
11002ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11003if test -n "$ac_ct_OTOOL64"; then
11004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11005printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11006else
11007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008printf "%s\n" "no" >&6; }
11009fi
11010
11011  if test "x$ac_ct_OTOOL64" = x; then
11012    OTOOL64=":"
11013  else
11014    case $cross_compiling:$ac_tool_warned in
11015yes:)
11016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11017printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11018ac_tool_warned=yes ;;
11019esac
11020    OTOOL64=$ac_ct_OTOOL64
11021  fi
11022else
11023  OTOOL64="$ac_cv_prog_OTOOL64"
11024fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11053printf %s "checking for -single_module linker flag... " >&6; }
11054if test ${lt_cv_apple_cc_single_mod+y}
11055then :
11056  printf %s "(cached) " >&6
11057else $as_nop
11058  lt_cv_apple_cc_single_mod=no
11059      if test -z "$LT_MULTI_MODULE"; then
11060	# By default we will add the -single_module flag. You can override
11061	# by either setting the environment variable LT_MULTI_MODULE
11062	# non-empty at configure time, or by adding -multi_module to the
11063	# link flags.
11064	rm -rf libconftest.dylib*
11065	echo "int foo(void){return 1;}" > conftest.c
11066	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11067-dynamiclib -Wl,-single_module conftest.c" >&5
11068	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11069	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11070        _lt_result=$?
11071	# If there is a non-empty error log, and "single_module"
11072	# appears in it, assume the flag caused a linker warning
11073        if test -s conftest.err && $GREP single_module conftest.err; then
11074	  cat conftest.err >&5
11075	# Otherwise, if the output was created with a 0 exit code from
11076	# the compiler, it worked.
11077	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11078	  lt_cv_apple_cc_single_mod=yes
11079	else
11080	  cat conftest.err >&5
11081	fi
11082	rm -rf libconftest.dylib*
11083	rm -f conftest.*
11084      fi
11085fi
11086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11087printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11088
11089    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11090printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11091if test ${lt_cv_ld_exported_symbols_list+y}
11092then :
11093  printf %s "(cached) " >&6
11094else $as_nop
11095  lt_cv_ld_exported_symbols_list=no
11096      save_LDFLAGS=$LDFLAGS
11097      echo "_main" > conftest.sym
11098      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100/* end confdefs.h.  */
11101
11102int
11103main (void)
11104{
11105
11106  ;
11107  return 0;
11108}
11109_ACEOF
11110if ac_fn_c_try_link "$LINENO"
11111then :
11112  lt_cv_ld_exported_symbols_list=yes
11113else $as_nop
11114  lt_cv_ld_exported_symbols_list=no
11115fi
11116rm -f core conftest.err conftest.$ac_objext conftest.beam \
11117    conftest$ac_exeext conftest.$ac_ext
11118	LDFLAGS=$save_LDFLAGS
11119
11120fi
11121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11122printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11123
11124    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11125printf %s "checking for -force_load linker flag... " >&6; }
11126if test ${lt_cv_ld_force_load+y}
11127then :
11128  printf %s "(cached) " >&6
11129else $as_nop
11130  lt_cv_ld_force_load=no
11131      cat > conftest.c << _LT_EOF
11132int forced_loaded() { return 2;}
11133_LT_EOF
11134      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11135      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11136      echo "$AR cru libconftest.a conftest.o" >&5
11137      $AR cru libconftest.a conftest.o 2>&5
11138      echo "$RANLIB libconftest.a" >&5
11139      $RANLIB libconftest.a 2>&5
11140      cat > conftest.c << _LT_EOF
11141int main() { return 0;}
11142_LT_EOF
11143      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11144      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11145      _lt_result=$?
11146      if test -s conftest.err && $GREP force_load conftest.err; then
11147	cat conftest.err >&5
11148      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11149	lt_cv_ld_force_load=yes
11150      else
11151	cat conftest.err >&5
11152      fi
11153        rm -f conftest.err libconftest.a conftest conftest.c
11154        rm -rf conftest.dSYM
11155
11156fi
11157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11158printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11159    case $host_os in
11160    rhapsody* | darwin1.[012])
11161      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11162    darwin1.*)
11163      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11164    darwin*) # darwin 5.x on
11165      # if running on 10.5 or later, the deployment target defaults
11166      # to the OS version, if on x86, and 10.4, the deployment
11167      # target defaults to 10.4. Don't you love it?
11168      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11169	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11170	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11171	10.[012][,.]*)
11172	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11173	10.*)
11174	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11175      esac
11176    ;;
11177  esac
11178    if test yes = "$lt_cv_apple_cc_single_mod"; then
11179      _lt_dar_single_mod='$single_module'
11180    fi
11181    if test yes = "$lt_cv_ld_exported_symbols_list"; then
11182      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11183    else
11184      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11185    fi
11186    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11187      _lt_dsymutil='~$DSYMUTIL $lib || :'
11188    else
11189      _lt_dsymutil=
11190    fi
11191    ;;
11192  esac
11193
11194# func_munge_path_list VARIABLE PATH
11195# -----------------------------------
11196# VARIABLE is name of variable containing _space_ separated list of
11197# directories to be munged by the contents of PATH, which is string
11198# having a format:
11199# "DIR[:DIR]:"
11200#       string "DIR[ DIR]" will be prepended to VARIABLE
11201# ":DIR[:DIR]"
11202#       string "DIR[ DIR]" will be appended to VARIABLE
11203# "DIRP[:DIRP]::[DIRA:]DIRA"
11204#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11205#       "DIRA[ DIRA]" will be appended to VARIABLE
11206# "DIR[:DIR]"
11207#       VARIABLE will be replaced by "DIR[ DIR]"
11208func_munge_path_list ()
11209{
11210    case x$2 in
11211    x)
11212        ;;
11213    *:)
11214        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11215        ;;
11216    x:*)
11217        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11218        ;;
11219    *::*)
11220        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11221        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11222        ;;
11223    *)
11224        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11225        ;;
11226    esac
11227}
11228
11229ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11230"
11231if test "x$ac_cv_header_dlfcn_h" = xyes
11232then :
11233  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11234
11235fi
11236
11237
11238
11239
11240
11241
11242
11243# Set options
11244
11245
11246
11247        enable_dlopen=no
11248
11249
11250  enable_win32_dll=no
11251
11252
11253            # Check whether --enable-shared was given.
11254if test ${enable_shared+y}
11255then :
11256  enableval=$enable_shared; p=${PACKAGE-default}
11257    case $enableval in
11258    yes) enable_shared=yes ;;
11259    no) enable_shared=no ;;
11260    *)
11261      enable_shared=no
11262      # Look at the argument we got.  We use all the common list separators.
11263      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11264      for pkg in $enableval; do
11265	IFS=$lt_save_ifs
11266	if test "X$pkg" = "X$p"; then
11267	  enable_shared=yes
11268	fi
11269      done
11270      IFS=$lt_save_ifs
11271      ;;
11272    esac
11273else $as_nop
11274  enable_shared=yes
11275fi
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285  # Check whether --enable-static was given.
11286if test ${enable_static+y}
11287then :
11288  enableval=$enable_static; p=${PACKAGE-default}
11289    case $enableval in
11290    yes) enable_static=yes ;;
11291    no) enable_static=no ;;
11292    *)
11293     enable_static=no
11294      # Look at the argument we got.  We use all the common list separators.
11295      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11296      for pkg in $enableval; do
11297	IFS=$lt_save_ifs
11298	if test "X$pkg" = "X$p"; then
11299	  enable_static=yes
11300	fi
11301      done
11302      IFS=$lt_save_ifs
11303      ;;
11304    esac
11305else $as_nop
11306  enable_static=yes
11307fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318# Check whether --with-pic was given.
11319if test ${with_pic+y}
11320then :
11321  withval=$with_pic; lt_p=${PACKAGE-default}
11322    case $withval in
11323    yes|no) pic_mode=$withval ;;
11324    *)
11325      pic_mode=default
11326      # Look at the argument we got.  We use all the common list separators.
11327      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11328      for lt_pkg in $withval; do
11329	IFS=$lt_save_ifs
11330	if test "X$lt_pkg" = "X$lt_p"; then
11331	  pic_mode=yes
11332	fi
11333      done
11334      IFS=$lt_save_ifs
11335      ;;
11336    esac
11337else $as_nop
11338  pic_mode=default
11339fi
11340
11341
11342
11343
11344
11345
11346
11347
11348  # Check whether --enable-fast-install was given.
11349if test ${enable_fast_install+y}
11350then :
11351  enableval=$enable_fast_install; p=${PACKAGE-default}
11352    case $enableval in
11353    yes) enable_fast_install=yes ;;
11354    no) enable_fast_install=no ;;
11355    *)
11356      enable_fast_install=no
11357      # Look at the argument we got.  We use all the common list separators.
11358      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11359      for pkg in $enableval; do
11360	IFS=$lt_save_ifs
11361	if test "X$pkg" = "X$p"; then
11362	  enable_fast_install=yes
11363	fi
11364      done
11365      IFS=$lt_save_ifs
11366      ;;
11367    esac
11368else $as_nop
11369  enable_fast_install=yes
11370fi
11371
11372
11373
11374
11375
11376
11377
11378
11379  shared_archive_member_spec=
11380case $host,$enable_shared in
11381power*-*-aix[5-9]*,yes)
11382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11383printf %s "checking which variant of shared library versioning to provide... " >&6; }
11384
11385# Check whether --with-aix-soname was given.
11386if test ${with_aix_soname+y}
11387then :
11388  withval=$with_aix_soname; case $withval in
11389    aix|svr4|both)
11390      ;;
11391    *)
11392      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11393      ;;
11394    esac
11395    lt_cv_with_aix_soname=$with_aix_soname
11396else $as_nop
11397  if test ${lt_cv_with_aix_soname+y}
11398then :
11399  printf %s "(cached) " >&6
11400else $as_nop
11401  lt_cv_with_aix_soname=aix
11402fi
11403
11404    with_aix_soname=$lt_cv_with_aix_soname
11405fi
11406
11407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11408printf "%s\n" "$with_aix_soname" >&6; }
11409  if test aix != "$with_aix_soname"; then
11410    # For the AIX way of multilib, we name the shared archive member
11411    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11412    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11413    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11414    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11415    if test 64 = "${OBJECT_MODE-32}"; then
11416      shared_archive_member_spec=shr_64
11417    else
11418      shared_archive_member_spec=shr
11419    fi
11420  fi
11421  ;;
11422*)
11423  with_aix_soname=aix
11424  ;;
11425esac
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436# This can be used to rebuild libtool when needed
11437LIBTOOL_DEPS=$ltmain
11438
11439# Always use our own libtool.
11440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471test -z "$LN_S" && LN_S="ln -s"
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486if test -n "${ZSH_VERSION+set}"; then
11487   setopt NO_GLOB_SUBST
11488fi
11489
11490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11491printf %s "checking for objdir... " >&6; }
11492if test ${lt_cv_objdir+y}
11493then :
11494  printf %s "(cached) " >&6
11495else $as_nop
11496  rm -f .libs 2>/dev/null
11497mkdir .libs 2>/dev/null
11498if test -d .libs; then
11499  lt_cv_objdir=.libs
11500else
11501  # MS-DOS does not allow filenames that begin with a dot.
11502  lt_cv_objdir=_libs
11503fi
11504rmdir .libs 2>/dev/null
11505fi
11506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11507printf "%s\n" "$lt_cv_objdir" >&6; }
11508objdir=$lt_cv_objdir
11509
11510
11511
11512
11513
11514printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11515
11516
11517
11518
11519case $host_os in
11520aix3*)
11521  # AIX sometimes has problems with the GCC collect2 program.  For some
11522  # reason, if we set the COLLECT_NAMES environment variable, the problems
11523  # vanish in a puff of smoke.
11524  if test set != "${COLLECT_NAMES+set}"; then
11525    COLLECT_NAMES=
11526    export COLLECT_NAMES
11527  fi
11528  ;;
11529esac
11530
11531# Global variables:
11532ofile=libtool
11533can_build_shared=yes
11534
11535# All known linkers require a '.a' archive for static linking (except MSVC,
11536# which needs '.lib').
11537libext=a
11538
11539with_gnu_ld=$lt_cv_prog_gnu_ld
11540
11541old_CC=$CC
11542old_CFLAGS=$CFLAGS
11543
11544# Set sane defaults for various variables
11545test -z "$CC" && CC=cc
11546test -z "$LTCC" && LTCC=$CC
11547test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11548test -z "$LD" && LD=ld
11549test -z "$ac_objext" && ac_objext=o
11550
11551func_cc_basename $compiler
11552cc_basename=$func_cc_basename_result
11553
11554
11555# Only perform the check for file, if the check method requires it
11556test -z "$MAGIC_CMD" && MAGIC_CMD=file
11557case $deplibs_check_method in
11558file_magic*)
11559  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11561printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11562if test ${lt_cv_path_MAGIC_CMD+y}
11563then :
11564  printf %s "(cached) " >&6
11565else $as_nop
11566  case $MAGIC_CMD in
11567[\\/*] |  ?:[\\/]*)
11568  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11569  ;;
11570*)
11571  lt_save_MAGIC_CMD=$MAGIC_CMD
11572  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11573  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11574  for ac_dir in $ac_dummy; do
11575    IFS=$lt_save_ifs
11576    test -z "$ac_dir" && ac_dir=.
11577    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11578      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11579      if test -n "$file_magic_test_file"; then
11580	case $deplibs_check_method in
11581	"file_magic "*)
11582	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11583	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11584	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11585	    $EGREP "$file_magic_regex" > /dev/null; then
11586	    :
11587	  else
11588	    cat <<_LT_EOF 1>&2
11589
11590*** Warning: the command libtool uses to detect shared libraries,
11591*** $file_magic_cmd, produces output that libtool cannot recognize.
11592*** The result is that libtool may fail to recognize shared libraries
11593*** as such.  This will affect the creation of libtool libraries that
11594*** depend on shared libraries, but programs linked with such libtool
11595*** libraries will work regardless of this problem.  Nevertheless, you
11596*** may want to report the problem to your system manager and/or to
11597*** bug-libtool@gnu.org
11598
11599_LT_EOF
11600	  fi ;;
11601	esac
11602      fi
11603      break
11604    fi
11605  done
11606  IFS=$lt_save_ifs
11607  MAGIC_CMD=$lt_save_MAGIC_CMD
11608  ;;
11609esac
11610fi
11611
11612MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11613if test -n "$MAGIC_CMD"; then
11614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11615printf "%s\n" "$MAGIC_CMD" >&6; }
11616else
11617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618printf "%s\n" "no" >&6; }
11619fi
11620
11621
11622
11623
11624
11625if test -z "$lt_cv_path_MAGIC_CMD"; then
11626  if test -n "$ac_tool_prefix"; then
11627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11628printf %s "checking for file... " >&6; }
11629if test ${lt_cv_path_MAGIC_CMD+y}
11630then :
11631  printf %s "(cached) " >&6
11632else $as_nop
11633  case $MAGIC_CMD in
11634[\\/*] |  ?:[\\/]*)
11635  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11636  ;;
11637*)
11638  lt_save_MAGIC_CMD=$MAGIC_CMD
11639  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11640  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11641  for ac_dir in $ac_dummy; do
11642    IFS=$lt_save_ifs
11643    test -z "$ac_dir" && ac_dir=.
11644    if test -f "$ac_dir/file"; then
11645      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11646      if test -n "$file_magic_test_file"; then
11647	case $deplibs_check_method in
11648	"file_magic "*)
11649	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11650	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11651	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11652	    $EGREP "$file_magic_regex" > /dev/null; then
11653	    :
11654	  else
11655	    cat <<_LT_EOF 1>&2
11656
11657*** Warning: the command libtool uses to detect shared libraries,
11658*** $file_magic_cmd, produces output that libtool cannot recognize.
11659*** The result is that libtool may fail to recognize shared libraries
11660*** as such.  This will affect the creation of libtool libraries that
11661*** depend on shared libraries, but programs linked with such libtool
11662*** libraries will work regardless of this problem.  Nevertheless, you
11663*** may want to report the problem to your system manager and/or to
11664*** bug-libtool@gnu.org
11665
11666_LT_EOF
11667	  fi ;;
11668	esac
11669      fi
11670      break
11671    fi
11672  done
11673  IFS=$lt_save_ifs
11674  MAGIC_CMD=$lt_save_MAGIC_CMD
11675  ;;
11676esac
11677fi
11678
11679MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11680if test -n "$MAGIC_CMD"; then
11681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11682printf "%s\n" "$MAGIC_CMD" >&6; }
11683else
11684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685printf "%s\n" "no" >&6; }
11686fi
11687
11688
11689  else
11690    MAGIC_CMD=:
11691  fi
11692fi
11693
11694  fi
11695  ;;
11696esac
11697
11698# Use C for the default configuration in the libtool script
11699
11700lt_save_CC=$CC
11701ac_ext=c
11702ac_cpp='$CPP $CPPFLAGS'
11703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11705ac_compiler_gnu=$ac_cv_c_compiler_gnu
11706
11707
11708# Source file extension for C test sources.
11709ac_ext=c
11710
11711# Object file extension for compiled C test sources.
11712objext=o
11713objext=$objext
11714
11715# Code to be used in simple compile tests
11716lt_simple_compile_test_code="int some_variable = 0;"
11717
11718# Code to be used in simple link tests
11719lt_simple_link_test_code='int main(){return(0);}'
11720
11721
11722
11723
11724
11725
11726
11727# If no C compiler was specified, use CC.
11728LTCC=${LTCC-"$CC"}
11729
11730# If no C compiler flags were specified, use CFLAGS.
11731LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11732
11733# Allow CC to be a program name with arguments.
11734compiler=$CC
11735
11736# Save the default compiler, since it gets overwritten when the other
11737# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11738compiler_DEFAULT=$CC
11739
11740# save warnings/boilerplate of simple test code
11741ac_outfile=conftest.$ac_objext
11742echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11744_lt_compiler_boilerplate=`cat conftest.err`
11745$RM conftest*
11746
11747ac_outfile=conftest.$ac_objext
11748echo "$lt_simple_link_test_code" >conftest.$ac_ext
11749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11750_lt_linker_boilerplate=`cat conftest.err`
11751$RM -r conftest*
11752
11753
11754if test -n "$compiler"; then
11755
11756lt_prog_compiler_no_builtin_flag=
11757
11758if test yes = "$GCC"; then
11759  case $cc_basename in
11760  nvcc*)
11761    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11762  *)
11763    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11764  esac
11765
11766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11767printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11768if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11769then :
11770  printf %s "(cached) " >&6
11771else $as_nop
11772  lt_cv_prog_compiler_rtti_exceptions=no
11773   ac_outfile=conftest.$ac_objext
11774   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11775   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11776   # Insert the option either (1) after the last *FLAGS variable, or
11777   # (2) before a word containing "conftest.", or (3) at the end.
11778   # Note that $ac_compile itself does not contain backslashes and begins
11779   # with a dollar sign (not a hyphen), so the echo should work correctly.
11780   # The option is referenced via a variable to avoid confusing sed.
11781   lt_compile=`echo "$ac_compile" | $SED \
11782   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11783   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11784   -e 's:$: $lt_compiler_flag:'`
11785   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11786   (eval "$lt_compile" 2>conftest.err)
11787   ac_status=$?
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   if (exit $ac_status) && test -s "$ac_outfile"; then
11791     # The compiler can only warn and ignore the option if not recognized
11792     # So say no if there are warnings other than the usual output.
11793     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11794     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11795     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11796       lt_cv_prog_compiler_rtti_exceptions=yes
11797     fi
11798   fi
11799   $RM conftest*
11800
11801fi
11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11803printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11804
11805if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11806    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11807else
11808    :
11809fi
11810
11811fi
11812
11813
11814
11815
11816
11817
11818  lt_prog_compiler_wl=
11819lt_prog_compiler_pic=
11820lt_prog_compiler_static=
11821
11822
11823  if test yes = "$GCC"; then
11824    lt_prog_compiler_wl='-Wl,'
11825    lt_prog_compiler_static='-static'
11826
11827    case $host_os in
11828      aix*)
11829      # All AIX code is PIC.
11830      if test ia64 = "$host_cpu"; then
11831	# AIX 5 now supports IA64 processor
11832	lt_prog_compiler_static='-Bstatic'
11833      fi
11834      lt_prog_compiler_pic='-fPIC'
11835      ;;
11836
11837    amigaos*)
11838      case $host_cpu in
11839      powerpc)
11840            # see comment about AmigaOS4 .so support
11841            lt_prog_compiler_pic='-fPIC'
11842        ;;
11843      m68k)
11844            # FIXME: we need at least 68020 code to build shared libraries, but
11845            # adding the '-m68020' flag to GCC prevents building anything better,
11846            # like '-m68040'.
11847            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11848        ;;
11849      esac
11850      ;;
11851
11852    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11853      # PIC is the default for these OSes.
11854      ;;
11855
11856    mingw* | cygwin* | pw32* | os2* | cegcc*)
11857      # This hack is so that the source file can tell whether it is being
11858      # built for inclusion in a dll (and should export symbols for example).
11859      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11860      # (--disable-auto-import) libraries
11861      lt_prog_compiler_pic='-DDLL_EXPORT'
11862      case $host_os in
11863      os2*)
11864	lt_prog_compiler_static='$wl-static'
11865	;;
11866      esac
11867      ;;
11868
11869    darwin* | rhapsody*)
11870      # PIC is the default on this platform
11871      # Common symbols not allowed in MH_DYLIB files
11872      lt_prog_compiler_pic='-fno-common'
11873      ;;
11874
11875    haiku*)
11876      # PIC is the default for Haiku.
11877      # The "-static" flag exists, but is broken.
11878      lt_prog_compiler_static=
11879      ;;
11880
11881    hpux*)
11882      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11883      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11884      # sets the default TLS model and affects inlining.
11885      case $host_cpu in
11886      hppa*64*)
11887	# +Z the default
11888	;;
11889      *)
11890	lt_prog_compiler_pic='-fPIC'
11891	;;
11892      esac
11893      ;;
11894
11895    interix[3-9]*)
11896      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11897      # Instead, we relocate shared libraries at runtime.
11898      ;;
11899
11900    msdosdjgpp*)
11901      # Just because we use GCC doesn't mean we suddenly get shared libraries
11902      # on systems that don't support them.
11903      lt_prog_compiler_can_build_shared=no
11904      enable_shared=no
11905      ;;
11906
11907    *nto* | *qnx*)
11908      # QNX uses GNU C++, but need to define -shared option too, otherwise
11909      # it will coredump.
11910      lt_prog_compiler_pic='-fPIC -shared'
11911      ;;
11912
11913    sysv4*MP*)
11914      if test -d /usr/nec; then
11915	lt_prog_compiler_pic=-Kconform_pic
11916      fi
11917      ;;
11918
11919    *)
11920      lt_prog_compiler_pic='-fPIC'
11921      ;;
11922    esac
11923
11924    case $cc_basename in
11925    nvcc*) # Cuda Compiler Driver 2.2
11926      lt_prog_compiler_wl='-Xlinker '
11927      if test -n "$lt_prog_compiler_pic"; then
11928        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11929      fi
11930      ;;
11931    esac
11932  else
11933    # PORTME Check for flag to pass linker flags through the system compiler.
11934    case $host_os in
11935    aix*)
11936      lt_prog_compiler_wl='-Wl,'
11937      if test ia64 = "$host_cpu"; then
11938	# AIX 5 now supports IA64 processor
11939	lt_prog_compiler_static='-Bstatic'
11940      else
11941	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11942      fi
11943      ;;
11944
11945    darwin* | rhapsody*)
11946      # PIC is the default on this platform
11947      # Common symbols not allowed in MH_DYLIB files
11948      lt_prog_compiler_pic='-fno-common'
11949      case $cc_basename in
11950      nagfor*)
11951        # NAG Fortran compiler
11952        lt_prog_compiler_wl='-Wl,-Wl,,'
11953        lt_prog_compiler_pic='-PIC'
11954        lt_prog_compiler_static='-Bstatic'
11955        ;;
11956      esac
11957      ;;
11958
11959    mingw* | cygwin* | pw32* | os2* | cegcc*)
11960      # This hack is so that the source file can tell whether it is being
11961      # built for inclusion in a dll (and should export symbols for example).
11962      lt_prog_compiler_pic='-DDLL_EXPORT'
11963      case $host_os in
11964      os2*)
11965	lt_prog_compiler_static='$wl-static'
11966	;;
11967      esac
11968      ;;
11969
11970    hpux9* | hpux10* | hpux11*)
11971      lt_prog_compiler_wl='-Wl,'
11972      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11973      # not for PA HP-UX.
11974      case $host_cpu in
11975      hppa*64*|ia64*)
11976	# +Z the default
11977	;;
11978      *)
11979	lt_prog_compiler_pic='+Z'
11980	;;
11981      esac
11982      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11983      lt_prog_compiler_static='$wl-a ${wl}archive'
11984      ;;
11985
11986    irix5* | irix6* | nonstopux*)
11987      lt_prog_compiler_wl='-Wl,'
11988      # PIC (with -KPIC) is the default.
11989      lt_prog_compiler_static='-non_shared'
11990      ;;
11991
11992    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11993      case $cc_basename in
11994      # old Intel for x86_64, which still supported -KPIC.
11995      ecc*)
11996	lt_prog_compiler_wl='-Wl,'
11997	lt_prog_compiler_pic='-KPIC'
11998	lt_prog_compiler_static='-static'
11999        ;;
12000      # icc used to be incompatible with GCC.
12001      # ICC 10 doesn't accept -KPIC any more.
12002      icc* | ifort*)
12003	lt_prog_compiler_wl='-Wl,'
12004	lt_prog_compiler_pic='-fPIC'
12005	lt_prog_compiler_static='-static'
12006        ;;
12007      # Lahey Fortran 8.1.
12008      lf95*)
12009	lt_prog_compiler_wl='-Wl,'
12010	lt_prog_compiler_pic='--shared'
12011	lt_prog_compiler_static='--static'
12012	;;
12013      nagfor*)
12014	# NAG Fortran compiler
12015	lt_prog_compiler_wl='-Wl,-Wl,,'
12016	lt_prog_compiler_pic='-PIC'
12017	lt_prog_compiler_static='-Bstatic'
12018	;;
12019      tcc*)
12020	# Fabrice Bellard et al's Tiny C Compiler
12021	lt_prog_compiler_wl='-Wl,'
12022	lt_prog_compiler_pic='-fPIC'
12023	lt_prog_compiler_static='-static'
12024	;;
12025      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12026        # Portland Group compilers (*not* the Pentium gcc compiler,
12027	# which looks to be a dead project)
12028	lt_prog_compiler_wl='-Wl,'
12029	lt_prog_compiler_pic='-fpic'
12030	lt_prog_compiler_static='-Bstatic'
12031        ;;
12032      ccc*)
12033        lt_prog_compiler_wl='-Wl,'
12034        # All Alpha code is PIC.
12035        lt_prog_compiler_static='-non_shared'
12036        ;;
12037      xl* | bgxl* | bgf* | mpixl*)
12038	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12039	lt_prog_compiler_wl='-Wl,'
12040	lt_prog_compiler_pic='-qpic'
12041	lt_prog_compiler_static='-qstaticlink'
12042	;;
12043      *)
12044	case `$CC -V 2>&1 | sed 5q` in
12045	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12046	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12047	  lt_prog_compiler_pic='-KPIC'
12048	  lt_prog_compiler_static='-Bstatic'
12049	  lt_prog_compiler_wl=''
12050	  ;;
12051	*Sun\ F* | *Sun*Fortran*)
12052	  lt_prog_compiler_pic='-KPIC'
12053	  lt_prog_compiler_static='-Bstatic'
12054	  lt_prog_compiler_wl='-Qoption ld '
12055	  ;;
12056	*Sun\ C*)
12057	  # Sun C 5.9
12058	  lt_prog_compiler_pic='-KPIC'
12059	  lt_prog_compiler_static='-Bstatic'
12060	  lt_prog_compiler_wl='-Wl,'
12061	  ;;
12062        *Intel*\ [CF]*Compiler*)
12063	  lt_prog_compiler_wl='-Wl,'
12064	  lt_prog_compiler_pic='-fPIC'
12065	  lt_prog_compiler_static='-static'
12066	  ;;
12067	*Portland\ Group*)
12068	  lt_prog_compiler_wl='-Wl,'
12069	  lt_prog_compiler_pic='-fpic'
12070	  lt_prog_compiler_static='-Bstatic'
12071	  ;;
12072	esac
12073	;;
12074      esac
12075      ;;
12076
12077    newsos6)
12078      lt_prog_compiler_pic='-KPIC'
12079      lt_prog_compiler_static='-Bstatic'
12080      ;;
12081
12082    *nto* | *qnx*)
12083      # QNX uses GNU C++, but need to define -shared option too, otherwise
12084      # it will coredump.
12085      lt_prog_compiler_pic='-fPIC -shared'
12086      ;;
12087
12088    osf3* | osf4* | osf5*)
12089      lt_prog_compiler_wl='-Wl,'
12090      # All OSF/1 code is PIC.
12091      lt_prog_compiler_static='-non_shared'
12092      ;;
12093
12094    rdos*)
12095      lt_prog_compiler_static='-non_shared'
12096      ;;
12097
12098    solaris*)
12099      lt_prog_compiler_pic='-KPIC'
12100      lt_prog_compiler_static='-Bstatic'
12101      case $cc_basename in
12102      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12103	lt_prog_compiler_wl='-Qoption ld ';;
12104      *)
12105	lt_prog_compiler_wl='-Wl,';;
12106      esac
12107      ;;
12108
12109    sunos4*)
12110      lt_prog_compiler_wl='-Qoption ld '
12111      lt_prog_compiler_pic='-PIC'
12112      lt_prog_compiler_static='-Bstatic'
12113      ;;
12114
12115    sysv4 | sysv4.2uw2* | sysv4.3*)
12116      lt_prog_compiler_wl='-Wl,'
12117      lt_prog_compiler_pic='-KPIC'
12118      lt_prog_compiler_static='-Bstatic'
12119      ;;
12120
12121    sysv4*MP*)
12122      if test -d /usr/nec; then
12123	lt_prog_compiler_pic='-Kconform_pic'
12124	lt_prog_compiler_static='-Bstatic'
12125      fi
12126      ;;
12127
12128    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12129      lt_prog_compiler_wl='-Wl,'
12130      lt_prog_compiler_pic='-KPIC'
12131      lt_prog_compiler_static='-Bstatic'
12132      ;;
12133
12134    unicos*)
12135      lt_prog_compiler_wl='-Wl,'
12136      lt_prog_compiler_can_build_shared=no
12137      ;;
12138
12139    uts4*)
12140      lt_prog_compiler_pic='-pic'
12141      lt_prog_compiler_static='-Bstatic'
12142      ;;
12143
12144    *)
12145      lt_prog_compiler_can_build_shared=no
12146      ;;
12147    esac
12148  fi
12149
12150case $host_os in
12151  # For platforms that do not support PIC, -DPIC is meaningless:
12152  *djgpp*)
12153    lt_prog_compiler_pic=
12154    ;;
12155  *)
12156    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12157    ;;
12158esac
12159
12160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12161printf %s "checking for $compiler option to produce PIC... " >&6; }
12162if test ${lt_cv_prog_compiler_pic+y}
12163then :
12164  printf %s "(cached) " >&6
12165else $as_nop
12166  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12167fi
12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12169printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12170lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12171
12172#
12173# Check to make sure the PIC flag actually works.
12174#
12175if test -n "$lt_prog_compiler_pic"; then
12176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12177printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12178if test ${lt_cv_prog_compiler_pic_works+y}
12179then :
12180  printf %s "(cached) " >&6
12181else $as_nop
12182  lt_cv_prog_compiler_pic_works=no
12183   ac_outfile=conftest.$ac_objext
12184   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12185   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12186   # Insert the option either (1) after the last *FLAGS variable, or
12187   # (2) before a word containing "conftest.", or (3) at the end.
12188   # Note that $ac_compile itself does not contain backslashes and begins
12189   # with a dollar sign (not a hyphen), so the echo should work correctly.
12190   # The option is referenced via a variable to avoid confusing sed.
12191   lt_compile=`echo "$ac_compile" | $SED \
12192   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194   -e 's:$: $lt_compiler_flag:'`
12195   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12196   (eval "$lt_compile" 2>conftest.err)
12197   ac_status=$?
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   if (exit $ac_status) && test -s "$ac_outfile"; then
12201     # The compiler can only warn and ignore the option if not recognized
12202     # So say no if there are warnings other than the usual output.
12203     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12204     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12205     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12206       lt_cv_prog_compiler_pic_works=yes
12207     fi
12208   fi
12209   $RM conftest*
12210
12211fi
12212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12213printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12214
12215if test yes = "$lt_cv_prog_compiler_pic_works"; then
12216    case $lt_prog_compiler_pic in
12217     "" | " "*) ;;
12218     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12219     esac
12220else
12221    lt_prog_compiler_pic=
12222     lt_prog_compiler_can_build_shared=no
12223fi
12224
12225fi
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237#
12238# Check to make sure the static flag actually works.
12239#
12240wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12242printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12243if test ${lt_cv_prog_compiler_static_works+y}
12244then :
12245  printf %s "(cached) " >&6
12246else $as_nop
12247  lt_cv_prog_compiler_static_works=no
12248   save_LDFLAGS=$LDFLAGS
12249   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12250   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12251   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12252     # The linker can only warn and ignore the option if not recognized
12253     # So say no if there are warnings
12254     if test -s conftest.err; then
12255       # Append any errors to the config.log.
12256       cat conftest.err 1>&5
12257       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12258       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12259       if diff conftest.exp conftest.er2 >/dev/null; then
12260         lt_cv_prog_compiler_static_works=yes
12261       fi
12262     else
12263       lt_cv_prog_compiler_static_works=yes
12264     fi
12265   fi
12266   $RM -r conftest*
12267   LDFLAGS=$save_LDFLAGS
12268
12269fi
12270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12271printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12272
12273if test yes = "$lt_cv_prog_compiler_static_works"; then
12274    :
12275else
12276    lt_prog_compiler_static=
12277fi
12278
12279
12280
12281
12282
12283
12284
12285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12286printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12287if test ${lt_cv_prog_compiler_c_o+y}
12288then :
12289  printf %s "(cached) " >&6
12290else $as_nop
12291  lt_cv_prog_compiler_c_o=no
12292   $RM -r conftest 2>/dev/null
12293   mkdir conftest
12294   cd conftest
12295   mkdir out
12296   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12297
12298   lt_compiler_flag="-o out/conftest2.$ac_objext"
12299   # Insert the option either (1) after the last *FLAGS variable, or
12300   # (2) before a word containing "conftest.", or (3) at the end.
12301   # Note that $ac_compile itself does not contain backslashes and begins
12302   # with a dollar sign (not a hyphen), so the echo should work correctly.
12303   lt_compile=`echo "$ac_compile" | $SED \
12304   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12305   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12306   -e 's:$: $lt_compiler_flag:'`
12307   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12308   (eval "$lt_compile" 2>out/conftest.err)
12309   ac_status=$?
12310   cat out/conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12313   then
12314     # The compiler can only warn and ignore the option if not recognized
12315     # So say no if there are warnings
12316     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12317     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12318     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12319       lt_cv_prog_compiler_c_o=yes
12320     fi
12321   fi
12322   chmod u+w . 2>&5
12323   $RM conftest*
12324   # SGI C++ compiler will create directory out/ii_files/ for
12325   # template instantiation
12326   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12327   $RM out/* && rmdir out
12328   cd ..
12329   $RM -r conftest
12330   $RM conftest*
12331
12332fi
12333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12334printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12335
12336
12337
12338
12339
12340
12341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12342printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12343if test ${lt_cv_prog_compiler_c_o+y}
12344then :
12345  printf %s "(cached) " >&6
12346else $as_nop
12347  lt_cv_prog_compiler_c_o=no
12348   $RM -r conftest 2>/dev/null
12349   mkdir conftest
12350   cd conftest
12351   mkdir out
12352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12353
12354   lt_compiler_flag="-o out/conftest2.$ac_objext"
12355   # Insert the option either (1) after the last *FLAGS variable, or
12356   # (2) before a word containing "conftest.", or (3) at the end.
12357   # Note that $ac_compile itself does not contain backslashes and begins
12358   # with a dollar sign (not a hyphen), so the echo should work correctly.
12359   lt_compile=`echo "$ac_compile" | $SED \
12360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12362   -e 's:$: $lt_compiler_flag:'`
12363   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12364   (eval "$lt_compile" 2>out/conftest.err)
12365   ac_status=$?
12366   cat out/conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12369   then
12370     # The compiler can only warn and ignore the option if not recognized
12371     # So say no if there are warnings
12372     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12373     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12374     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12375       lt_cv_prog_compiler_c_o=yes
12376     fi
12377   fi
12378   chmod u+w . 2>&5
12379   $RM conftest*
12380   # SGI C++ compiler will create directory out/ii_files/ for
12381   # template instantiation
12382   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12383   $RM out/* && rmdir out
12384   cd ..
12385   $RM -r conftest
12386   $RM conftest*
12387
12388fi
12389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12390printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12391
12392
12393
12394
12395hard_links=nottested
12396if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12397  # do not overwrite the value of need_locks provided by the user
12398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12399printf %s "checking if we can lock with hard links... " >&6; }
12400  hard_links=yes
12401  $RM conftest*
12402  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12403  touch conftest.a
12404  ln conftest.a conftest.b 2>&5 || hard_links=no
12405  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12407printf "%s\n" "$hard_links" >&6; }
12408  if test no = "$hard_links"; then
12409    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12410printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12411    need_locks=warn
12412  fi
12413else
12414  need_locks=no
12415fi
12416
12417
12418
12419
12420
12421
12422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12423printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12424
12425  runpath_var=
12426  allow_undefined_flag=
12427  always_export_symbols=no
12428  archive_cmds=
12429  archive_expsym_cmds=
12430  compiler_needs_object=no
12431  enable_shared_with_static_runtimes=no
12432  export_dynamic_flag_spec=
12433  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12434  hardcode_automatic=no
12435  hardcode_direct=no
12436  hardcode_direct_absolute=no
12437  hardcode_libdir_flag_spec=
12438  hardcode_libdir_separator=
12439  hardcode_minus_L=no
12440  hardcode_shlibpath_var=unsupported
12441  inherit_rpath=no
12442  link_all_deplibs=unknown
12443  module_cmds=
12444  module_expsym_cmds=
12445  old_archive_from_new_cmds=
12446  old_archive_from_expsyms_cmds=
12447  thread_safe_flag_spec=
12448  whole_archive_flag_spec=
12449  # include_expsyms should be a list of space-separated symbols to be *always*
12450  # included in the symbol list
12451  include_expsyms=
12452  # exclude_expsyms can be an extended regexp of symbols to exclude
12453  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12454  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12455  # as well as any symbol that contains 'd'.
12456  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12457  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12458  # platforms (ab)use it in PIC code, but their linkers get confused if
12459  # the symbol is explicitly referenced.  Since portable code cannot
12460  # rely on this symbol name, it's probably fine to never include it in
12461  # preloaded symbol tables.
12462  # Exclude shared library initialization/finalization symbols.
12463  extract_expsyms_cmds=
12464
12465  case $host_os in
12466  cygwin* | mingw* | pw32* | cegcc*)
12467    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12468    # When not using gcc, we currently assume that we are using
12469    # Microsoft Visual C++.
12470    if test yes != "$GCC"; then
12471      with_gnu_ld=no
12472    fi
12473    ;;
12474  interix*)
12475    # we just hope/assume this is gcc and not c89 (= MSVC++)
12476    with_gnu_ld=yes
12477    ;;
12478  openbsd* | bitrig*)
12479    with_gnu_ld=no
12480    ;;
12481  esac
12482
12483  ld_shlibs=yes
12484
12485  # On some targets, GNU ld is compatible enough with the native linker
12486  # that we're better off using the native interface for both.
12487  lt_use_gnu_ld_interface=no
12488  if test yes = "$with_gnu_ld"; then
12489    case $host_os in
12490      aix*)
12491	# The AIX port of GNU ld has always aspired to compatibility
12492	# with the native linker.  However, as the warning in the GNU ld
12493	# block says, versions before 2.19.5* couldn't really create working
12494	# shared libraries, regardless of the interface used.
12495	case `$LD -v 2>&1` in
12496	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12497	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12498	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12499	  *)
12500	    lt_use_gnu_ld_interface=yes
12501	    ;;
12502	esac
12503	;;
12504      *)
12505	lt_use_gnu_ld_interface=yes
12506	;;
12507    esac
12508  fi
12509
12510  if test yes = "$lt_use_gnu_ld_interface"; then
12511    # If archive_cmds runs LD, not CC, wlarc should be empty
12512    wlarc='$wl'
12513
12514    # Set some defaults for GNU ld with shared library support. These
12515    # are reset later if shared libraries are not supported. Putting them
12516    # here allows them to be overridden if necessary.
12517    runpath_var=LD_RUN_PATH
12518    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12519    export_dynamic_flag_spec='$wl--export-dynamic'
12520    # ancient GNU ld didn't support --whole-archive et. al.
12521    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12522      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12523    else
12524      whole_archive_flag_spec=
12525    fi
12526    supports_anon_versioning=no
12527    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12528      *GNU\ gold*) supports_anon_versioning=yes ;;
12529      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12530      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12531      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12532      *\ 2.11.*) ;; # other 2.11 versions
12533      *) supports_anon_versioning=yes ;;
12534    esac
12535
12536    # See if GNU ld supports shared libraries.
12537    case $host_os in
12538    aix[3-9]*)
12539      # On AIX/PPC, the GNU linker is very broken
12540      if test ia64 != "$host_cpu"; then
12541	ld_shlibs=no
12542	cat <<_LT_EOF 1>&2
12543
12544*** Warning: the GNU linker, at least up to release 2.19, is reported
12545*** to be unable to reliably create shared libraries on AIX.
12546*** Therefore, libtool is disabling shared libraries support.  If you
12547*** really care for shared libraries, you may want to install binutils
12548*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12549*** You will then need to restart the configuration process.
12550
12551_LT_EOF
12552      fi
12553      ;;
12554
12555    amigaos*)
12556      case $host_cpu in
12557      powerpc)
12558            # see comment about AmigaOS4 .so support
12559            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12560            archive_expsym_cmds=''
12561        ;;
12562      m68k)
12563            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12564            hardcode_libdir_flag_spec='-L$libdir'
12565            hardcode_minus_L=yes
12566        ;;
12567      esac
12568      ;;
12569
12570    beos*)
12571      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12572	allow_undefined_flag=unsupported
12573	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12574	# support --undefined.  This deserves some investigation.  FIXME
12575	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12576      else
12577	ld_shlibs=no
12578      fi
12579      ;;
12580
12581    cygwin* | mingw* | pw32* | cegcc*)
12582      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12583      # as there is no search path for DLLs.
12584      hardcode_libdir_flag_spec='-L$libdir'
12585      export_dynamic_flag_spec='$wl--export-all-symbols'
12586      allow_undefined_flag=unsupported
12587      always_export_symbols=no
12588      enable_shared_with_static_runtimes=yes
12589      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12590      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12591
12592      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12593        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12594	# If the export-symbols file already is a .def file, use it as
12595	# is; otherwise, prepend EXPORTS...
12596	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12597          cp $export_symbols $output_objdir/$soname.def;
12598        else
12599          echo EXPORTS > $output_objdir/$soname.def;
12600          cat $export_symbols >> $output_objdir/$soname.def;
12601        fi~
12602        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12603      else
12604	ld_shlibs=no
12605      fi
12606      ;;
12607
12608    haiku*)
12609      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12610      link_all_deplibs=yes
12611      ;;
12612
12613    os2*)
12614      hardcode_libdir_flag_spec='-L$libdir'
12615      hardcode_minus_L=yes
12616      allow_undefined_flag=unsupported
12617      shrext_cmds=.dll
12618      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12619	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12620	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12621	$ECHO EXPORTS >> $output_objdir/$libname.def~
12622	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12623	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12624	emximp -o $lib $output_objdir/$libname.def'
12625      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12626	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12627	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12628	$ECHO EXPORTS >> $output_objdir/$libname.def~
12629	prefix_cmds="$SED"~
12630	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12631	  prefix_cmds="$prefix_cmds -e 1d";
12632	fi~
12633	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12634	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12635	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12636	emximp -o $lib $output_objdir/$libname.def'
12637      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12638      enable_shared_with_static_runtimes=yes
12639      ;;
12640
12641    interix[3-9]*)
12642      hardcode_direct=no
12643      hardcode_shlibpath_var=no
12644      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12645      export_dynamic_flag_spec='$wl-E'
12646      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12647      # Instead, shared libraries are loaded at an image base (0x10000000 by
12648      # default) and relocated if they conflict, which is a slow very memory
12649      # consuming and fragmenting process.  To avoid this, we pick a random,
12650      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12651      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12652      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12653      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12654      ;;
12655
12656    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12657      tmp_diet=no
12658      if test linux-dietlibc = "$host_os"; then
12659	case $cc_basename in
12660	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12661	esac
12662      fi
12663      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12664	 && test no = "$tmp_diet"
12665      then
12666	tmp_addflag=' $pic_flag'
12667	tmp_sharedflag='-shared'
12668	case $cc_basename,$host_cpu in
12669        pgcc*)				# Portland Group C compiler
12670	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12671	  tmp_addflag=' $pic_flag'
12672	  ;;
12673	pgf77* | pgf90* | pgf95* | pgfortran*)
12674					# Portland Group f77 and f90 compilers
12675	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12676	  tmp_addflag=' $pic_flag -Mnomain' ;;
12677	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12678	  tmp_addflag=' -i_dynamic' ;;
12679	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12680	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12681	ifc* | ifort*)			# Intel Fortran compiler
12682	  tmp_addflag=' -nofor_main' ;;
12683	lf95*)				# Lahey Fortran 8.1
12684	  whole_archive_flag_spec=
12685	  tmp_sharedflag='--shared' ;;
12686        nagfor*)                        # NAGFOR 5.3
12687          tmp_sharedflag='-Wl,-shared' ;;
12688	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12689	  tmp_sharedflag='-qmkshrobj'
12690	  tmp_addflag= ;;
12691	nvcc*)	# Cuda Compiler Driver 2.2
12692	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12693	  compiler_needs_object=yes
12694	  ;;
12695	esac
12696	case `$CC -V 2>&1 | sed 5q` in
12697	*Sun\ C*)			# Sun C 5.9
12698	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12699	  compiler_needs_object=yes
12700	  tmp_sharedflag='-G' ;;
12701	*Sun\ F*)			# Sun Fortran 8.3
12702	  tmp_sharedflag='-G' ;;
12703	esac
12704	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12705
12706        if test yes = "$supports_anon_versioning"; then
12707          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12708            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12709            echo "local: *; };" >> $output_objdir/$libname.ver~
12710            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12711        fi
12712
12713	case $cc_basename in
12714	tcc*)
12715	  export_dynamic_flag_spec='-rdynamic'
12716	  ;;
12717	xlf* | bgf* | bgxlf* | mpixlf*)
12718	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12719	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12720	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12721	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12722	  if test yes = "$supports_anon_versioning"; then
12723	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12724              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12725              echo "local: *; };" >> $output_objdir/$libname.ver~
12726              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12727	  fi
12728	  ;;
12729	esac
12730      else
12731        ld_shlibs=no
12732      fi
12733      ;;
12734
12735    netbsd*)
12736      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12737	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12738	wlarc=
12739      else
12740	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12741	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12742      fi
12743      ;;
12744
12745    solaris*)
12746      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12747	ld_shlibs=no
12748	cat <<_LT_EOF 1>&2
12749
12750*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12751*** create shared libraries on Solaris systems.  Therefore, libtool
12752*** is disabling shared libraries support.  We urge you to upgrade GNU
12753*** binutils to release 2.9.1 or newer.  Another option is to modify
12754*** your PATH or compiler configuration so that the native linker is
12755*** used, and then restart.
12756
12757_LT_EOF
12758      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12759	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12760	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12761      else
12762	ld_shlibs=no
12763      fi
12764      ;;
12765
12766    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12767      case `$LD -v 2>&1` in
12768        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12769	ld_shlibs=no
12770	cat <<_LT_EOF 1>&2
12771
12772*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12773*** reliably create shared libraries on SCO systems.  Therefore, libtool
12774*** is disabling shared libraries support.  We urge you to upgrade GNU
12775*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12776*** your PATH or compiler configuration so that the native linker is
12777*** used, and then restart.
12778
12779_LT_EOF
12780	;;
12781	*)
12782	  # For security reasons, it is highly recommended that you always
12783	  # use absolute paths for naming shared libraries, and exclude the
12784	  # DT_RUNPATH tag from executables and libraries.  But doing so
12785	  # requires that you compile everything twice, which is a pain.
12786	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12787	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12788	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12789	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12790	  else
12791	    ld_shlibs=no
12792	  fi
12793	;;
12794      esac
12795      ;;
12796
12797    sunos4*)
12798      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12799      wlarc=
12800      hardcode_direct=yes
12801      hardcode_shlibpath_var=no
12802      ;;
12803
12804    *)
12805      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12806	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12807	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12808      else
12809	ld_shlibs=no
12810      fi
12811      ;;
12812    esac
12813
12814    if test no = "$ld_shlibs"; then
12815      runpath_var=
12816      hardcode_libdir_flag_spec=
12817      export_dynamic_flag_spec=
12818      whole_archive_flag_spec=
12819    fi
12820  else
12821    # PORTME fill in a description of your system's linker (not GNU ld)
12822    case $host_os in
12823    aix3*)
12824      allow_undefined_flag=unsupported
12825      always_export_symbols=yes
12826      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12827      # Note: this linker hardcodes the directories in LIBPATH if there
12828      # are no directories specified by -L.
12829      hardcode_minus_L=yes
12830      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12831	# Neither direct hardcoding nor static linking is supported with a
12832	# broken collect2.
12833	hardcode_direct=unsupported
12834      fi
12835      ;;
12836
12837    aix[4-9]*)
12838      if test ia64 = "$host_cpu"; then
12839	# On IA64, the linker does run time linking by default, so we don't
12840	# have to do anything special.
12841	aix_use_runtimelinking=no
12842	exp_sym_flag='-Bexport'
12843	no_entry_flag=
12844      else
12845	# If we're using GNU nm, then we don't want the "-C" option.
12846	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12847	# Without the "-l" option, or with the "-B" option, AIX nm treats
12848	# weak defined symbols like other global defined symbols, whereas
12849	# GNU nm marks them as "W".
12850	# While the 'weak' keyword is ignored in the Export File, we need
12851	# it in the Import File for the 'aix-soname' feature, so we have
12852	# to replace the "-B" option with "-P" for AIX nm.
12853	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12854	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12855	else
12856	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12857	fi
12858	aix_use_runtimelinking=no
12859
12860	# Test if we are trying to use run time linking or normal
12861	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12862	# have runtime linking enabled, and use it for executables.
12863	# For shared libraries, we enable/disable runtime linking
12864	# depending on the kind of the shared library created -
12865	# when "with_aix_soname,aix_use_runtimelinking" is:
12866	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12867	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12868	#            lib.a           static archive
12869	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12870	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12871	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12872	#            lib.a(lib.so.V) shared, rtl:no
12873	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12874	#            lib.a           static archive
12875	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12876	  for ld_flag in $LDFLAGS; do
12877	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12878	    aix_use_runtimelinking=yes
12879	    break
12880	  fi
12881	  done
12882	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12883	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12884	    # so we don't have lib.a shared libs to link our executables.
12885	    # We have to force runtime linking in this case.
12886	    aix_use_runtimelinking=yes
12887	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12888	  fi
12889	  ;;
12890	esac
12891
12892	exp_sym_flag='-bexport'
12893	no_entry_flag='-bnoentry'
12894      fi
12895
12896      # When large executables or shared objects are built, AIX ld can
12897      # have problems creating the table of contents.  If linking a library
12898      # or program results in "error TOC overflow" add -mminimal-toc to
12899      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12900      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12901
12902      archive_cmds=''
12903      hardcode_direct=yes
12904      hardcode_direct_absolute=yes
12905      hardcode_libdir_separator=':'
12906      link_all_deplibs=yes
12907      file_list_spec='$wl-f,'
12908      case $with_aix_soname,$aix_use_runtimelinking in
12909      aix,*) ;; # traditional, no import file
12910      svr4,* | *,yes) # use import file
12911	# The Import File defines what to hardcode.
12912	hardcode_direct=no
12913	hardcode_direct_absolute=no
12914	;;
12915      esac
12916
12917      if test yes = "$GCC"; then
12918	case $host_os in aix4.[012]|aix4.[012].*)
12919	# We only want to do this on AIX 4.2 and lower, the check
12920	# below for broken collect2 doesn't work under 4.3+
12921	  collect2name=`$CC -print-prog-name=collect2`
12922	  if test -f "$collect2name" &&
12923	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12924	  then
12925	  # We have reworked collect2
12926	  :
12927	  else
12928	  # We have old collect2
12929	  hardcode_direct=unsupported
12930	  # It fails to find uninstalled libraries when the uninstalled
12931	  # path is not listed in the libpath.  Setting hardcode_minus_L
12932	  # to unsupported forces relinking
12933	  hardcode_minus_L=yes
12934	  hardcode_libdir_flag_spec='-L$libdir'
12935	  hardcode_libdir_separator=
12936	  fi
12937	  ;;
12938	esac
12939	shared_flag='-shared'
12940	if test yes = "$aix_use_runtimelinking"; then
12941	  shared_flag="$shared_flag "'$wl-G'
12942	fi
12943	# Need to ensure runtime linking is disabled for the traditional
12944	# shared library, or the linker may eventually find shared libraries
12945	# /with/ Import File - we do not want to mix them.
12946	shared_flag_aix='-shared'
12947	shared_flag_svr4='-shared $wl-G'
12948      else
12949	# not using gcc
12950	if test ia64 = "$host_cpu"; then
12951	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12952	# chokes on -Wl,-G. The following line is correct:
12953	  shared_flag='-G'
12954	else
12955	  if test yes = "$aix_use_runtimelinking"; then
12956	    shared_flag='$wl-G'
12957	  else
12958	    shared_flag='$wl-bM:SRE'
12959	  fi
12960	  shared_flag_aix='$wl-bM:SRE'
12961	  shared_flag_svr4='$wl-G'
12962	fi
12963      fi
12964
12965      export_dynamic_flag_spec='$wl-bexpall'
12966      # It seems that -bexpall does not export symbols beginning with
12967      # underscore (_), so it is better to generate a list of symbols to export.
12968      always_export_symbols=yes
12969      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12970	# Warning - without using the other runtime loading flags (-brtl),
12971	# -berok will link without error, but may produce a broken library.
12972	allow_undefined_flag='-berok'
12973        # Determine the default libpath from the value encoded in an
12974        # empty executable.
12975        if test set = "${lt_cv_aix_libpath+set}"; then
12976  aix_libpath=$lt_cv_aix_libpath
12977else
12978  if test ${lt_cv_aix_libpath_+y}
12979then :
12980  printf %s "(cached) " >&6
12981else $as_nop
12982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h.  */
12984
12985int
12986main (void)
12987{
12988
12989  ;
12990  return 0;
12991}
12992_ACEOF
12993if ac_fn_c_try_link "$LINENO"
12994then :
12995
12996  lt_aix_libpath_sed='
12997      /Import File Strings/,/^$/ {
12998	  /^0/ {
12999	      s/^0  *\([^ ]*\) *$/\1/
13000	      p
13001	  }
13002      }'
13003  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004  # Check for a 64-bit object if we didn't find anything.
13005  if test -z "$lt_cv_aix_libpath_"; then
13006    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13007  fi
13008fi
13009rm -f core conftest.err conftest.$ac_objext conftest.beam \
13010    conftest$ac_exeext conftest.$ac_ext
13011  if test -z "$lt_cv_aix_libpath_"; then
13012    lt_cv_aix_libpath_=/usr/lib:/lib
13013  fi
13014
13015fi
13016
13017  aix_libpath=$lt_cv_aix_libpath_
13018fi
13019
13020        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13021        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13022      else
13023	if test ia64 = "$host_cpu"; then
13024	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13025	  allow_undefined_flag="-z nodefs"
13026	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13027	else
13028	 # Determine the default libpath from the value encoded in an
13029	 # empty executable.
13030	 if test set = "${lt_cv_aix_libpath+set}"; then
13031  aix_libpath=$lt_cv_aix_libpath
13032else
13033  if test ${lt_cv_aix_libpath_+y}
13034then :
13035  printf %s "(cached) " >&6
13036else $as_nop
13037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h.  */
13039
13040int
13041main (void)
13042{
13043
13044  ;
13045  return 0;
13046}
13047_ACEOF
13048if ac_fn_c_try_link "$LINENO"
13049then :
13050
13051  lt_aix_libpath_sed='
13052      /Import File Strings/,/^$/ {
13053	  /^0/ {
13054	      s/^0  *\([^ ]*\) *$/\1/
13055	      p
13056	  }
13057      }'
13058  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13059  # Check for a 64-bit object if we didn't find anything.
13060  if test -z "$lt_cv_aix_libpath_"; then
13061    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13062  fi
13063fi
13064rm -f core conftest.err conftest.$ac_objext conftest.beam \
13065    conftest$ac_exeext conftest.$ac_ext
13066  if test -z "$lt_cv_aix_libpath_"; then
13067    lt_cv_aix_libpath_=/usr/lib:/lib
13068  fi
13069
13070fi
13071
13072  aix_libpath=$lt_cv_aix_libpath_
13073fi
13074
13075	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13076	  # Warning - without using the other run time loading flags,
13077	  # -berok will link without error, but may produce a broken library.
13078	  no_undefined_flag=' $wl-bernotok'
13079	  allow_undefined_flag=' $wl-berok'
13080	  if test yes = "$with_gnu_ld"; then
13081	    # We only use this code for GNU lds that support --whole-archive.
13082	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13083	  else
13084	    # Exported symbols can be pulled into shared objects from archives
13085	    whole_archive_flag_spec='$convenience'
13086	  fi
13087	  archive_cmds_need_lc=yes
13088	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13089	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13090	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13091	  if test svr4 != "$with_aix_soname"; then
13092	    # This is similar to how AIX traditionally builds its shared libraries.
13093	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13094	  fi
13095	  if test aix != "$with_aix_soname"; then
13096	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13097	  else
13098	    # used by -dlpreopen to get the symbols
13099	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13100	  fi
13101	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13102	fi
13103      fi
13104      ;;
13105
13106    amigaos*)
13107      case $host_cpu in
13108      powerpc)
13109            # see comment about AmigaOS4 .so support
13110            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13111            archive_expsym_cmds=''
13112        ;;
13113      m68k)
13114            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13115            hardcode_libdir_flag_spec='-L$libdir'
13116            hardcode_minus_L=yes
13117        ;;
13118      esac
13119      ;;
13120
13121    bsdi[45]*)
13122      export_dynamic_flag_spec=-rdynamic
13123      ;;
13124
13125    cygwin* | mingw* | pw32* | cegcc*)
13126      # When not using gcc, we currently assume that we are using
13127      # Microsoft Visual C++.
13128      # hardcode_libdir_flag_spec is actually meaningless, as there is
13129      # no search path for DLLs.
13130      case $cc_basename in
13131      cl*)
13132	# Native MSVC
13133	hardcode_libdir_flag_spec=' '
13134	allow_undefined_flag=unsupported
13135	always_export_symbols=yes
13136	file_list_spec='@'
13137	# Tell ltmain to make .lib files, not .a files.
13138	libext=lib
13139	# Tell ltmain to make .dll files, not .so files.
13140	shrext_cmds=.dll
13141	# FIXME: Setting linknames here is a bad hack.
13142	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13143	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13144            cp "$export_symbols" "$output_objdir/$soname.def";
13145            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13146          else
13147            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13148          fi~
13149          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13150          linknames='
13151	# The linker will not automatically build a static lib if we build a DLL.
13152	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13153	enable_shared_with_static_runtimes=yes
13154	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13155	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13156	# Don't use ranlib
13157	old_postinstall_cmds='chmod 644 $oldlib'
13158	postlink_cmds='lt_outputfile="@OUTPUT@"~
13159          lt_tool_outputfile="@TOOL_OUTPUT@"~
13160          case $lt_outputfile in
13161            *.exe|*.EXE) ;;
13162            *)
13163              lt_outputfile=$lt_outputfile.exe
13164              lt_tool_outputfile=$lt_tool_outputfile.exe
13165              ;;
13166          esac~
13167          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13168            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13169            $RM "$lt_outputfile.manifest";
13170          fi'
13171	;;
13172      *)
13173	# Assume MSVC wrapper
13174	hardcode_libdir_flag_spec=' '
13175	allow_undefined_flag=unsupported
13176	# Tell ltmain to make .lib files, not .a files.
13177	libext=lib
13178	# Tell ltmain to make .dll files, not .so files.
13179	shrext_cmds=.dll
13180	# FIXME: Setting linknames here is a bad hack.
13181	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13182	# The linker will automatically build a .lib file if we build a DLL.
13183	old_archive_from_new_cmds='true'
13184	# FIXME: Should let the user specify the lib program.
13185	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13186	enable_shared_with_static_runtimes=yes
13187	;;
13188      esac
13189      ;;
13190
13191    darwin* | rhapsody*)
13192
13193
13194  archive_cmds_need_lc=no
13195  hardcode_direct=no
13196  hardcode_automatic=yes
13197  hardcode_shlibpath_var=unsupported
13198  if test yes = "$lt_cv_ld_force_load"; then
13199    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13200
13201  else
13202    whole_archive_flag_spec=''
13203  fi
13204  link_all_deplibs=yes
13205  allow_undefined_flag=$_lt_dar_allow_undefined
13206  case $cc_basename in
13207     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13208     *) _lt_dar_can_shared=$GCC ;;
13209  esac
13210  if test yes = "$_lt_dar_can_shared"; then
13211    output_verbose_link_cmd=func_echo_all
13212    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13213    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13214    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13215    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13216
13217  else
13218  ld_shlibs=no
13219  fi
13220
13221      ;;
13222
13223    dgux*)
13224      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13225      hardcode_libdir_flag_spec='-L$libdir'
13226      hardcode_shlibpath_var=no
13227      ;;
13228
13229    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13230    # support.  Future versions do this automatically, but an explicit c++rt0.o
13231    # does not break anything, and helps significantly (at the cost of a little
13232    # extra space).
13233    freebsd2.2*)
13234      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13235      hardcode_libdir_flag_spec='-R$libdir'
13236      hardcode_direct=yes
13237      hardcode_shlibpath_var=no
13238      ;;
13239
13240    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13241    freebsd2.*)
13242      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13243      hardcode_direct=yes
13244      hardcode_minus_L=yes
13245      hardcode_shlibpath_var=no
13246      ;;
13247
13248    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13249    freebsd* | dragonfly*)
13250      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13251      hardcode_libdir_flag_spec='-R$libdir'
13252      hardcode_direct=yes
13253      hardcode_shlibpath_var=no
13254      ;;
13255
13256    hpux9*)
13257      if test yes = "$GCC"; then
13258	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13259      else
13260	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13261      fi
13262      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13263      hardcode_libdir_separator=:
13264      hardcode_direct=yes
13265
13266      # hardcode_minus_L: Not really in the search PATH,
13267      # but as the default location of the library.
13268      hardcode_minus_L=yes
13269      export_dynamic_flag_spec='$wl-E'
13270      ;;
13271
13272    hpux10*)
13273      if test yes,no = "$GCC,$with_gnu_ld"; then
13274	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13275      else
13276	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13277      fi
13278      if test no = "$with_gnu_ld"; then
13279	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13280	hardcode_libdir_separator=:
13281	hardcode_direct=yes
13282	hardcode_direct_absolute=yes
13283	export_dynamic_flag_spec='$wl-E'
13284	# hardcode_minus_L: Not really in the search PATH,
13285	# but as the default location of the library.
13286	hardcode_minus_L=yes
13287      fi
13288      ;;
13289
13290    hpux11*)
13291      if test yes,no = "$GCC,$with_gnu_ld"; then
13292	case $host_cpu in
13293	hppa*64*)
13294	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13295	  ;;
13296	ia64*)
13297	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13298	  ;;
13299	*)
13300	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13301	  ;;
13302	esac
13303      else
13304	case $host_cpu in
13305	hppa*64*)
13306	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13307	  ;;
13308	ia64*)
13309	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13310	  ;;
13311	*)
13312
13313	  # Older versions of the 11.00 compiler do not understand -b yet
13314	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13315	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13316printf %s "checking if $CC understands -b... " >&6; }
13317if test ${lt_cv_prog_compiler__b+y}
13318then :
13319  printf %s "(cached) " >&6
13320else $as_nop
13321  lt_cv_prog_compiler__b=no
13322   save_LDFLAGS=$LDFLAGS
13323   LDFLAGS="$LDFLAGS -b"
13324   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13325   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13326     # The linker can only warn and ignore the option if not recognized
13327     # So say no if there are warnings
13328     if test -s conftest.err; then
13329       # Append any errors to the config.log.
13330       cat conftest.err 1>&5
13331       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13332       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13333       if diff conftest.exp conftest.er2 >/dev/null; then
13334         lt_cv_prog_compiler__b=yes
13335       fi
13336     else
13337       lt_cv_prog_compiler__b=yes
13338     fi
13339   fi
13340   $RM -r conftest*
13341   LDFLAGS=$save_LDFLAGS
13342
13343fi
13344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13345printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13346
13347if test yes = "$lt_cv_prog_compiler__b"; then
13348    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13349else
13350    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13351fi
13352
13353	  ;;
13354	esac
13355      fi
13356      if test no = "$with_gnu_ld"; then
13357	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13358	hardcode_libdir_separator=:
13359
13360	case $host_cpu in
13361	hppa*64*|ia64*)
13362	  hardcode_direct=no
13363	  hardcode_shlibpath_var=no
13364	  ;;
13365	*)
13366	  hardcode_direct=yes
13367	  hardcode_direct_absolute=yes
13368	  export_dynamic_flag_spec='$wl-E'
13369
13370	  # hardcode_minus_L: Not really in the search PATH,
13371	  # but as the default location of the library.
13372	  hardcode_minus_L=yes
13373	  ;;
13374	esac
13375      fi
13376      ;;
13377
13378    irix5* | irix6* | nonstopux*)
13379      if test yes = "$GCC"; then
13380	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13381	# Try to use the -exported_symbol ld option, if it does not
13382	# work, assume that -exports_file does not work either and
13383	# implicitly export all symbols.
13384	# This should be the same for all languages, so no per-tag cache variable.
13385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13386printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13387if test ${lt_cv_irix_exported_symbol+y}
13388then :
13389  printf %s "(cached) " >&6
13390else $as_nop
13391  save_LDFLAGS=$LDFLAGS
13392	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13393	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h.  */
13395int foo (void) { return 0; }
13396_ACEOF
13397if ac_fn_c_try_link "$LINENO"
13398then :
13399  lt_cv_irix_exported_symbol=yes
13400else $as_nop
13401  lt_cv_irix_exported_symbol=no
13402fi
13403rm -f core conftest.err conftest.$ac_objext conftest.beam \
13404    conftest$ac_exeext conftest.$ac_ext
13405           LDFLAGS=$save_LDFLAGS
13406fi
13407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13408printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13409	if test yes = "$lt_cv_irix_exported_symbol"; then
13410          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13411	fi
13412      else
13413	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13414	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13415      fi
13416      archive_cmds_need_lc='no'
13417      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13418      hardcode_libdir_separator=:
13419      inherit_rpath=yes
13420      link_all_deplibs=yes
13421      ;;
13422
13423    linux*)
13424      case $cc_basename in
13425      tcc*)
13426	# Fabrice Bellard et al's Tiny C Compiler
13427	ld_shlibs=yes
13428	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13429	;;
13430      esac
13431      ;;
13432
13433    netbsd*)
13434      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13435	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13436      else
13437	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13438      fi
13439      hardcode_libdir_flag_spec='-R$libdir'
13440      hardcode_direct=yes
13441      hardcode_shlibpath_var=no
13442      ;;
13443
13444    newsos6)
13445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13446      hardcode_direct=yes
13447      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448      hardcode_libdir_separator=:
13449      hardcode_shlibpath_var=no
13450      ;;
13451
13452    *nto* | *qnx*)
13453      ;;
13454
13455    openbsd* | bitrig*)
13456      if test -f /usr/libexec/ld.so; then
13457	hardcode_direct=yes
13458	hardcode_shlibpath_var=no
13459	hardcode_direct_absolute=yes
13460	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13461	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13462	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13463	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13464	  export_dynamic_flag_spec='$wl-E'
13465	else
13466	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13467	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13468	fi
13469      else
13470	ld_shlibs=no
13471      fi
13472      ;;
13473
13474    os2*)
13475      hardcode_libdir_flag_spec='-L$libdir'
13476      hardcode_minus_L=yes
13477      allow_undefined_flag=unsupported
13478      shrext_cmds=.dll
13479      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13480	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13481	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13482	$ECHO EXPORTS >> $output_objdir/$libname.def~
13483	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13484	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13485	emximp -o $lib $output_objdir/$libname.def'
13486      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13487	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13488	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13489	$ECHO EXPORTS >> $output_objdir/$libname.def~
13490	prefix_cmds="$SED"~
13491	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13492	  prefix_cmds="$prefix_cmds -e 1d";
13493	fi~
13494	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13495	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13496	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13497	emximp -o $lib $output_objdir/$libname.def'
13498      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13499      enable_shared_with_static_runtimes=yes
13500      ;;
13501
13502    osf3*)
13503      if test yes = "$GCC"; then
13504	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13505	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13506      else
13507	allow_undefined_flag=' -expect_unresolved \*'
13508	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13509      fi
13510      archive_cmds_need_lc='no'
13511      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13512      hardcode_libdir_separator=:
13513      ;;
13514
13515    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13516      if test yes = "$GCC"; then
13517	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13518	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13519	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13520      else
13521	allow_undefined_flag=' -expect_unresolved \*'
13522	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13523	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13524          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13525
13526	# Both c and cxx compiler support -rpath directly
13527	hardcode_libdir_flag_spec='-rpath $libdir'
13528      fi
13529      archive_cmds_need_lc='no'
13530      hardcode_libdir_separator=:
13531      ;;
13532
13533    solaris*)
13534      no_undefined_flag=' -z defs'
13535      if test yes = "$GCC"; then
13536	wlarc='$wl'
13537	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13538	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13539          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13540      else
13541	case `$CC -V 2>&1` in
13542	*"Compilers 5.0"*)
13543	  wlarc=''
13544	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13546            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13547	  ;;
13548	*)
13549	  wlarc='$wl'
13550	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13551	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13552            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13553	  ;;
13554	esac
13555      fi
13556      hardcode_libdir_flag_spec='-R$libdir'
13557      hardcode_shlibpath_var=no
13558      case $host_os in
13559      solaris2.[0-5] | solaris2.[0-5].*) ;;
13560      *)
13561	# The compiler driver will combine and reorder linker options,
13562	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13563	# but is careful enough not to reorder.
13564	# Supported since Solaris 2.6 (maybe 2.5.1?)
13565	if test yes = "$GCC"; then
13566	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13567	else
13568	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13569	fi
13570	;;
13571      esac
13572      link_all_deplibs=yes
13573      ;;
13574
13575    sunos4*)
13576      if test sequent = "$host_vendor"; then
13577	# Use $CC to link under sequent, because it throws in some extra .o
13578	# files that make .init and .fini sections work.
13579	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13580      else
13581	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13582      fi
13583      hardcode_libdir_flag_spec='-L$libdir'
13584      hardcode_direct=yes
13585      hardcode_minus_L=yes
13586      hardcode_shlibpath_var=no
13587      ;;
13588
13589    sysv4)
13590      case $host_vendor in
13591	sni)
13592	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13593	  hardcode_direct=yes # is this really true???
13594	;;
13595	siemens)
13596	  ## LD is ld it makes a PLAMLIB
13597	  ## CC just makes a GrossModule.
13598	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13599	  reload_cmds='$CC -r -o $output$reload_objs'
13600	  hardcode_direct=no
13601        ;;
13602	motorola)
13603	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13604	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13605	;;
13606      esac
13607      runpath_var='LD_RUN_PATH'
13608      hardcode_shlibpath_var=no
13609      ;;
13610
13611    sysv4.3*)
13612      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13613      hardcode_shlibpath_var=no
13614      export_dynamic_flag_spec='-Bexport'
13615      ;;
13616
13617    sysv4*MP*)
13618      if test -d /usr/nec; then
13619	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620	hardcode_shlibpath_var=no
13621	runpath_var=LD_RUN_PATH
13622	hardcode_runpath_var=yes
13623	ld_shlibs=yes
13624      fi
13625      ;;
13626
13627    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13628      no_undefined_flag='$wl-z,text'
13629      archive_cmds_need_lc=no
13630      hardcode_shlibpath_var=no
13631      runpath_var='LD_RUN_PATH'
13632
13633      if test yes = "$GCC"; then
13634	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636      else
13637	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13638	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639      fi
13640      ;;
13641
13642    sysv5* | sco3.2v5* | sco5v6*)
13643      # Note: We CANNOT use -z defs as we might desire, because we do not
13644      # link with -lc, and that would cause any symbols used from libc to
13645      # always be unresolved, which means just about no library would
13646      # ever link correctly.  If we're not using GNU ld we use -z text
13647      # though, which does catch some bad symbols but isn't as heavy-handed
13648      # as -z defs.
13649      no_undefined_flag='$wl-z,text'
13650      allow_undefined_flag='$wl-z,nodefs'
13651      archive_cmds_need_lc=no
13652      hardcode_shlibpath_var=no
13653      hardcode_libdir_flag_spec='$wl-R,$libdir'
13654      hardcode_libdir_separator=':'
13655      link_all_deplibs=yes
13656      export_dynamic_flag_spec='$wl-Bexport'
13657      runpath_var='LD_RUN_PATH'
13658
13659      if test yes = "$GCC"; then
13660	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662      else
13663	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13664	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13665      fi
13666      ;;
13667
13668    uts4*)
13669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13670      hardcode_libdir_flag_spec='-L$libdir'
13671      hardcode_shlibpath_var=no
13672      ;;
13673
13674    *)
13675      ld_shlibs=no
13676      ;;
13677    esac
13678
13679    if test sni = "$host_vendor"; then
13680      case $host in
13681      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13682	export_dynamic_flag_spec='$wl-Blargedynsym'
13683	;;
13684      esac
13685    fi
13686  fi
13687
13688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13689printf "%s\n" "$ld_shlibs" >&6; }
13690test no = "$ld_shlibs" && can_build_shared=no
13691
13692with_gnu_ld=$with_gnu_ld
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708#
13709# Do we need to explicitly link libc?
13710#
13711case "x$archive_cmds_need_lc" in
13712x|xyes)
13713  # Assume -lc should be added
13714  archive_cmds_need_lc=yes
13715
13716  if test yes,yes = "$GCC,$enable_shared"; then
13717    case $archive_cmds in
13718    *'~'*)
13719      # FIXME: we may have to deal with multi-command sequences.
13720      ;;
13721    '$CC '*)
13722      # Test whether the compiler implicitly links with -lc since on some
13723      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13724      # to ld, don't add -lc before -lgcc.
13725      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13726printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13727if test ${lt_cv_archive_cmds_need_lc+y}
13728then :
13729  printf %s "(cached) " >&6
13730else $as_nop
13731  $RM conftest*
13732	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13733
13734	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735  (eval $ac_compile) 2>&5
13736  ac_status=$?
13737  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738  test $ac_status = 0; } 2>conftest.err; then
13739	  soname=conftest
13740	  lib=conftest
13741	  libobjs=conftest.$ac_objext
13742	  deplibs=
13743	  wl=$lt_prog_compiler_wl
13744	  pic_flag=$lt_prog_compiler_pic
13745	  compiler_flags=-v
13746	  linker_flags=-v
13747	  verstring=
13748	  output_objdir=.
13749	  libname=conftest
13750	  lt_save_allow_undefined_flag=$allow_undefined_flag
13751	  allow_undefined_flag=
13752	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13753  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13754  ac_status=$?
13755  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756  test $ac_status = 0; }
13757	  then
13758	    lt_cv_archive_cmds_need_lc=no
13759	  else
13760	    lt_cv_archive_cmds_need_lc=yes
13761	  fi
13762	  allow_undefined_flag=$lt_save_allow_undefined_flag
13763	else
13764	  cat conftest.err 1>&5
13765	fi
13766	$RM conftest*
13767
13768fi
13769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13770printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13771      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13772      ;;
13773    esac
13774  fi
13775  ;;
13776esac
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13930printf %s "checking dynamic linker characteristics... " >&6; }
13931
13932if test yes = "$GCC"; then
13933  case $host_os in
13934    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13935    *) lt_awk_arg='/^libraries:/' ;;
13936  esac
13937  case $host_os in
13938    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13939    *) lt_sed_strip_eq='s|=/|/|g' ;;
13940  esac
13941  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13942  case $lt_search_path_spec in
13943  *\;*)
13944    # if the path contains ";" then we assume it to be the separator
13945    # otherwise default to the standard path separator (i.e. ":") - it is
13946    # assumed that no part of a normal pathname contains ";" but that should
13947    # okay in the real world where ";" in dirpaths is itself problematic.
13948    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13949    ;;
13950  *)
13951    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13952    ;;
13953  esac
13954  # Ok, now we have the path, separated by spaces, we can step through it
13955  # and add multilib dir if necessary...
13956  lt_tmp_lt_search_path_spec=
13957  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13958  # ...but if some path component already ends with the multilib dir we assume
13959  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13960  case "$lt_multi_os_dir; $lt_search_path_spec " in
13961  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13962    lt_multi_os_dir=
13963    ;;
13964  esac
13965  for lt_sys_path in $lt_search_path_spec; do
13966    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13967      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13968    elif test -n "$lt_multi_os_dir"; then
13969      test -d "$lt_sys_path" && \
13970	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13971    fi
13972  done
13973  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13974BEGIN {RS = " "; FS = "/|\n";} {
13975  lt_foo = "";
13976  lt_count = 0;
13977  for (lt_i = NF; lt_i > 0; lt_i--) {
13978    if ($lt_i != "" && $lt_i != ".") {
13979      if ($lt_i == "..") {
13980        lt_count++;
13981      } else {
13982        if (lt_count == 0) {
13983          lt_foo = "/" $lt_i lt_foo;
13984        } else {
13985          lt_count--;
13986        }
13987      }
13988    }
13989  }
13990  if (lt_foo != "") { lt_freq[lt_foo]++; }
13991  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13992}'`
13993  # AWK program above erroneously prepends '/' to C:/dos/paths
13994  # for these hosts.
13995  case $host_os in
13996    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13997      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13998  esac
13999  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14000else
14001  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14002fi
14003library_names_spec=
14004libname_spec='lib$name'
14005soname_spec=
14006shrext_cmds=.so
14007postinstall_cmds=
14008postuninstall_cmds=
14009finish_cmds=
14010finish_eval=
14011shlibpath_var=
14012shlibpath_overrides_runpath=unknown
14013version_type=none
14014dynamic_linker="$host_os ld.so"
14015sys_lib_dlsearch_path_spec="/lib /usr/lib"
14016need_lib_prefix=unknown
14017hardcode_into_libs=no
14018
14019# when you set need_version to no, make sure it does not cause -set_version
14020# flags to be left without arguments
14021need_version=unknown
14022
14023
14024
14025case $host_os in
14026aix3*)
14027  version_type=linux # correct to gnu/linux during the next big refactor
14028  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14029  shlibpath_var=LIBPATH
14030
14031  # AIX 3 has no versioning support, so we append a major version to the name.
14032  soname_spec='$libname$release$shared_ext$major'
14033  ;;
14034
14035aix[4-9]*)
14036  version_type=linux # correct to gnu/linux during the next big refactor
14037  need_lib_prefix=no
14038  need_version=no
14039  hardcode_into_libs=yes
14040  if test ia64 = "$host_cpu"; then
14041    # AIX 5 supports IA64
14042    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14043    shlibpath_var=LD_LIBRARY_PATH
14044  else
14045    # With GCC up to 2.95.x, collect2 would create an import file
14046    # for dependence libraries.  The import file would start with
14047    # the line '#! .'.  This would cause the generated library to
14048    # depend on '.', always an invalid library.  This was fixed in
14049    # development snapshots of GCC prior to 3.0.
14050    case $host_os in
14051      aix4 | aix4.[01] | aix4.[01].*)
14052      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14053	   echo ' yes '
14054	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14055	:
14056      else
14057	can_build_shared=no
14058      fi
14059      ;;
14060    esac
14061    # Using Import Files as archive members, it is possible to support
14062    # filename-based versioning of shared library archives on AIX. While
14063    # this would work for both with and without runtime linking, it will
14064    # prevent static linking of such archives. So we do filename-based
14065    # shared library versioning with .so extension only, which is used
14066    # when both runtime linking and shared linking is enabled.
14067    # Unfortunately, runtime linking may impact performance, so we do
14068    # not want this to be the default eventually. Also, we use the
14069    # versioned .so libs for executables only if there is the -brtl
14070    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14071    # To allow for filename-based versioning support, we need to create
14072    # libNAME.so.V as an archive file, containing:
14073    # *) an Import File, referring to the versioned filename of the
14074    #    archive as well as the shared archive member, telling the
14075    #    bitwidth (32 or 64) of that shared object, and providing the
14076    #    list of exported symbols of that shared object, eventually
14077    #    decorated with the 'weak' keyword
14078    # *) the shared object with the F_LOADONLY flag set, to really avoid
14079    #    it being seen by the linker.
14080    # At run time we better use the real file rather than another symlink,
14081    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14082
14083    case $with_aix_soname,$aix_use_runtimelinking in
14084    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14085    # soname into executable. Probably we can add versioning support to
14086    # collect2, so additional links can be useful in future.
14087    aix,yes) # traditional libtool
14088      dynamic_linker='AIX unversionable lib.so'
14089      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14090      # instead of lib<name>.a to let people know that these are not
14091      # typical AIX shared libraries.
14092      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14093      ;;
14094    aix,no) # traditional AIX only
14095      dynamic_linker='AIX lib.a(lib.so.V)'
14096      # We preserve .a as extension for shared libraries through AIX4.2
14097      # and later when we are not doing run time linking.
14098      library_names_spec='$libname$release.a $libname.a'
14099      soname_spec='$libname$release$shared_ext$major'
14100      ;;
14101    svr4,*) # full svr4 only
14102      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14103      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14104      # We do not specify a path in Import Files, so LIBPATH fires.
14105      shlibpath_overrides_runpath=yes
14106      ;;
14107    *,yes) # both, prefer svr4
14108      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14109      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14110      # unpreferred sharedlib libNAME.a needs extra handling
14111      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14112      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14113      # We do not specify a path in Import Files, so LIBPATH fires.
14114      shlibpath_overrides_runpath=yes
14115      ;;
14116    *,no) # both, prefer aix
14117      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14118      library_names_spec='$libname$release.a $libname.a'
14119      soname_spec='$libname$release$shared_ext$major'
14120      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14121      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14122      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14123      ;;
14124    esac
14125    shlibpath_var=LIBPATH
14126  fi
14127  ;;
14128
14129amigaos*)
14130  case $host_cpu in
14131  powerpc)
14132    # Since July 2007 AmigaOS4 officially supports .so libraries.
14133    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14134    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14135    ;;
14136  m68k)
14137    library_names_spec='$libname.ixlibrary $libname.a'
14138    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14139    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14140    ;;
14141  esac
14142  ;;
14143
14144beos*)
14145  library_names_spec='$libname$shared_ext'
14146  dynamic_linker="$host_os ld.so"
14147  shlibpath_var=LIBRARY_PATH
14148  ;;
14149
14150bsdi[45]*)
14151  version_type=linux # correct to gnu/linux during the next big refactor
14152  need_version=no
14153  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14154  soname_spec='$libname$release$shared_ext$major'
14155  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14156  shlibpath_var=LD_LIBRARY_PATH
14157  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14158  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14159  # the default ld.so.conf also contains /usr/contrib/lib and
14160  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14161  # libtool to hard-code these into programs
14162  ;;
14163
14164cygwin* | mingw* | pw32* | cegcc*)
14165  version_type=windows
14166  shrext_cmds=.dll
14167  need_version=no
14168  need_lib_prefix=no
14169
14170  case $GCC,$cc_basename in
14171  yes,*)
14172    # gcc
14173    library_names_spec='$libname.dll.a'
14174    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14175    postinstall_cmds='base_file=`basename \$file`~
14176      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14177      dldir=$destdir/`dirname \$dlpath`~
14178      test -d \$dldir || mkdir -p \$dldir~
14179      $install_prog $dir/$dlname \$dldir/$dlname~
14180      chmod a+x \$dldir/$dlname~
14181      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14182        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14183      fi'
14184    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14185      dlpath=$dir/\$dldll~
14186       $RM \$dlpath'
14187    shlibpath_overrides_runpath=yes
14188
14189    case $host_os in
14190    cygwin*)
14191      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14192      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14193
14194      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14195      ;;
14196    mingw* | cegcc*)
14197      # MinGW DLLs use traditional 'lib' prefix
14198      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14199      ;;
14200    pw32*)
14201      # pw32 DLLs use 'pw' prefix rather than 'lib'
14202      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14203      ;;
14204    esac
14205    dynamic_linker='Win32 ld.exe'
14206    ;;
14207
14208  *,cl*)
14209    # Native MSVC
14210    libname_spec='$name'
14211    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14212    library_names_spec='$libname.dll.lib'
14213
14214    case $build_os in
14215    mingw*)
14216      sys_lib_search_path_spec=
14217      lt_save_ifs=$IFS
14218      IFS=';'
14219      for lt_path in $LIB
14220      do
14221        IFS=$lt_save_ifs
14222        # Let DOS variable expansion print the short 8.3 style file name.
14223        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14224        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14225      done
14226      IFS=$lt_save_ifs
14227      # Convert to MSYS style.
14228      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14229      ;;
14230    cygwin*)
14231      # Convert to unix form, then to dos form, then back to unix form
14232      # but this time dos style (no spaces!) so that the unix form looks
14233      # like /cygdrive/c/PROGRA~1:/cygdr...
14234      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14235      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14236      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14237      ;;
14238    *)
14239      sys_lib_search_path_spec=$LIB
14240      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14241        # It is most probably a Windows format PATH.
14242        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14243      else
14244        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14245      fi
14246      # FIXME: find the short name or the path components, as spaces are
14247      # common. (e.g. "Program Files" -> "PROGRA~1")
14248      ;;
14249    esac
14250
14251    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14252    postinstall_cmds='base_file=`basename \$file`~
14253      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14254      dldir=$destdir/`dirname \$dlpath`~
14255      test -d \$dldir || mkdir -p \$dldir~
14256      $install_prog $dir/$dlname \$dldir/$dlname'
14257    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14258      dlpath=$dir/\$dldll~
14259       $RM \$dlpath'
14260    shlibpath_overrides_runpath=yes
14261    dynamic_linker='Win32 link.exe'
14262    ;;
14263
14264  *)
14265    # Assume MSVC wrapper
14266    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14267    dynamic_linker='Win32 ld.exe'
14268    ;;
14269  esac
14270  # FIXME: first we should search . and the directory the executable is in
14271  shlibpath_var=PATH
14272  ;;
14273
14274darwin* | rhapsody*)
14275  dynamic_linker="$host_os dyld"
14276  version_type=darwin
14277  need_lib_prefix=no
14278  need_version=no
14279  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14280  soname_spec='$libname$release$major$shared_ext'
14281  shlibpath_overrides_runpath=yes
14282  shlibpath_var=DYLD_LIBRARY_PATH
14283  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14284
14285  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14286  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14287  ;;
14288
14289dgux*)
14290  version_type=linux # correct to gnu/linux during the next big refactor
14291  need_lib_prefix=no
14292  need_version=no
14293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14294  soname_spec='$libname$release$shared_ext$major'
14295  shlibpath_var=LD_LIBRARY_PATH
14296  ;;
14297
14298freebsd* | dragonfly*)
14299  # DragonFly does not have aout.  When/if they implement a new
14300  # versioning mechanism, adjust this.
14301  if test -x /usr/bin/objformat; then
14302    objformat=`/usr/bin/objformat`
14303  else
14304    case $host_os in
14305    freebsd[23].*) objformat=aout ;;
14306    *) objformat=elf ;;
14307    esac
14308  fi
14309  version_type=freebsd-$objformat
14310  case $version_type in
14311    freebsd-elf*)
14312      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14313      soname_spec='$libname$release$shared_ext$major'
14314      need_version=no
14315      need_lib_prefix=no
14316      ;;
14317    freebsd-*)
14318      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14319      need_version=yes
14320      ;;
14321  esac
14322  shlibpath_var=LD_LIBRARY_PATH
14323  case $host_os in
14324  freebsd2.*)
14325    shlibpath_overrides_runpath=yes
14326    ;;
14327  freebsd3.[01]* | freebsdelf3.[01]*)
14328    shlibpath_overrides_runpath=yes
14329    hardcode_into_libs=yes
14330    ;;
14331  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14332  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14333    shlibpath_overrides_runpath=no
14334    hardcode_into_libs=yes
14335    ;;
14336  *) # from 4.6 on, and DragonFly
14337    shlibpath_overrides_runpath=yes
14338    hardcode_into_libs=yes
14339    ;;
14340  esac
14341  ;;
14342
14343haiku*)
14344  version_type=linux # correct to gnu/linux during the next big refactor
14345  need_lib_prefix=no
14346  need_version=no
14347  dynamic_linker="$host_os runtime_loader"
14348  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14349  soname_spec='$libname$release$shared_ext$major'
14350  shlibpath_var=LIBRARY_PATH
14351  shlibpath_overrides_runpath=no
14352  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14353  hardcode_into_libs=yes
14354  ;;
14355
14356hpux9* | hpux10* | hpux11*)
14357  # Give a soname corresponding to the major version so that dld.sl refuses to
14358  # link against other versions.
14359  version_type=sunos
14360  need_lib_prefix=no
14361  need_version=no
14362  case $host_cpu in
14363  ia64*)
14364    shrext_cmds='.so'
14365    hardcode_into_libs=yes
14366    dynamic_linker="$host_os dld.so"
14367    shlibpath_var=LD_LIBRARY_PATH
14368    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14369    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14370    soname_spec='$libname$release$shared_ext$major'
14371    if test 32 = "$HPUX_IA64_MODE"; then
14372      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14373      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14374    else
14375      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14376      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14377    fi
14378    ;;
14379  hppa*64*)
14380    shrext_cmds='.sl'
14381    hardcode_into_libs=yes
14382    dynamic_linker="$host_os dld.sl"
14383    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14384    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14385    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14386    soname_spec='$libname$release$shared_ext$major'
14387    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14388    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14389    ;;
14390  *)
14391    shrext_cmds='.sl'
14392    dynamic_linker="$host_os dld.sl"
14393    shlibpath_var=SHLIB_PATH
14394    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14395    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396    soname_spec='$libname$release$shared_ext$major'
14397    ;;
14398  esac
14399  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14400  postinstall_cmds='chmod 555 $lib'
14401  # or fails outright, so override atomically:
14402  install_override_mode=555
14403  ;;
14404
14405interix[3-9]*)
14406  version_type=linux # correct to gnu/linux during the next big refactor
14407  need_lib_prefix=no
14408  need_version=no
14409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14410  soname_spec='$libname$release$shared_ext$major'
14411  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14412  shlibpath_var=LD_LIBRARY_PATH
14413  shlibpath_overrides_runpath=no
14414  hardcode_into_libs=yes
14415  ;;
14416
14417irix5* | irix6* | nonstopux*)
14418  case $host_os in
14419    nonstopux*) version_type=nonstopux ;;
14420    *)
14421	if test yes = "$lt_cv_prog_gnu_ld"; then
14422		version_type=linux # correct to gnu/linux during the next big refactor
14423	else
14424		version_type=irix
14425	fi ;;
14426  esac
14427  need_lib_prefix=no
14428  need_version=no
14429  soname_spec='$libname$release$shared_ext$major'
14430  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14431  case $host_os in
14432  irix5* | nonstopux*)
14433    libsuff= shlibsuff=
14434    ;;
14435  *)
14436    case $LD in # libtool.m4 will add one of these switches to LD
14437    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14438      libsuff= shlibsuff= libmagic=32-bit;;
14439    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14440      libsuff=32 shlibsuff=N32 libmagic=N32;;
14441    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14442      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14443    *) libsuff= shlibsuff= libmagic=never-match;;
14444    esac
14445    ;;
14446  esac
14447  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14448  shlibpath_overrides_runpath=no
14449  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14450  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14451  hardcode_into_libs=yes
14452  ;;
14453
14454# No shared lib support for Linux oldld, aout, or coff.
14455linux*oldld* | linux*aout* | linux*coff*)
14456  dynamic_linker=no
14457  ;;
14458
14459linux*android*)
14460  version_type=none # Android doesn't support versioned libraries.
14461  need_lib_prefix=no
14462  need_version=no
14463  library_names_spec='$libname$release$shared_ext'
14464  soname_spec='$libname$release$shared_ext'
14465  finish_cmds=
14466  shlibpath_var=LD_LIBRARY_PATH
14467  shlibpath_overrides_runpath=yes
14468
14469  # This implies no fast_install, which is unacceptable.
14470  # Some rework will be needed to allow for fast_install
14471  # before this can be enabled.
14472  hardcode_into_libs=yes
14473
14474  dynamic_linker='Android linker'
14475  # Don't embed -rpath directories since the linker doesn't support them.
14476  hardcode_libdir_flag_spec='-L$libdir'
14477  ;;
14478
14479# This must be glibc/ELF.
14480linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14481  version_type=linux # correct to gnu/linux during the next big refactor
14482  need_lib_prefix=no
14483  need_version=no
14484  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14485  soname_spec='$libname$release$shared_ext$major'
14486  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14487  shlibpath_var=LD_LIBRARY_PATH
14488  shlibpath_overrides_runpath=no
14489
14490  # Some binutils ld are patched to set DT_RUNPATH
14491  if test ${lt_cv_shlibpath_overrides_runpath+y}
14492then :
14493  printf %s "(cached) " >&6
14494else $as_nop
14495  lt_cv_shlibpath_overrides_runpath=no
14496    save_LDFLAGS=$LDFLAGS
14497    save_libdir=$libdir
14498    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14499	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14500    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501/* end confdefs.h.  */
14502
14503int
14504main (void)
14505{
14506
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511if ac_fn_c_try_link "$LINENO"
14512then :
14513  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14514then :
14515  lt_cv_shlibpath_overrides_runpath=yes
14516fi
14517fi
14518rm -f core conftest.err conftest.$ac_objext conftest.beam \
14519    conftest$ac_exeext conftest.$ac_ext
14520    LDFLAGS=$save_LDFLAGS
14521    libdir=$save_libdir
14522
14523fi
14524
14525  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14526
14527  # This implies no fast_install, which is unacceptable.
14528  # Some rework will be needed to allow for fast_install
14529  # before this can be enabled.
14530  hardcode_into_libs=yes
14531
14532  # Add ABI-specific directories to the system library path.
14533  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14534
14535  # Ideally, we could use ldconfig to report *all* directores which are
14536  # searched for libraries, however this is still not possible.  Aside from not
14537  # being certain /sbin/ldconfig is available, command
14538  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14539  # even though it is searched at run-time.  Try to do the best guess by
14540  # appending ld.so.conf contents (and includes) to the search path.
14541  if test -f /etc/ld.so.conf; then
14542    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14543    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14544  fi
14545
14546  # We used to test for /lib/ld.so.1 and disable shared libraries on
14547  # powerpc, because MkLinux only supported shared libraries with the
14548  # GNU dynamic linker.  Since this was broken with cross compilers,
14549  # most powerpc-linux boxes support dynamic linking these days and
14550  # people can always --disable-shared, the test was removed, and we
14551  # assume the GNU/Linux dynamic linker is in use.
14552  dynamic_linker='GNU/Linux ld.so'
14553  ;;
14554
14555netbsd*)
14556  version_type=sunos
14557  need_lib_prefix=no
14558  need_version=no
14559  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14560    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14561    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562    dynamic_linker='NetBSD (a.out) ld.so'
14563  else
14564    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14565    soname_spec='$libname$release$shared_ext$major'
14566    dynamic_linker='NetBSD ld.elf_so'
14567  fi
14568  shlibpath_var=LD_LIBRARY_PATH
14569  shlibpath_overrides_runpath=yes
14570  hardcode_into_libs=yes
14571  ;;
14572
14573newsos6)
14574  version_type=linux # correct to gnu/linux during the next big refactor
14575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14576  shlibpath_var=LD_LIBRARY_PATH
14577  shlibpath_overrides_runpath=yes
14578  ;;
14579
14580*nto* | *qnx*)
14581  version_type=qnx
14582  need_lib_prefix=no
14583  need_version=no
14584  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14585  soname_spec='$libname$release$shared_ext$major'
14586  shlibpath_var=LD_LIBRARY_PATH
14587  shlibpath_overrides_runpath=no
14588  hardcode_into_libs=yes
14589  dynamic_linker='ldqnx.so'
14590  ;;
14591
14592openbsd* | bitrig*)
14593  version_type=sunos
14594  sys_lib_dlsearch_path_spec=/usr/lib
14595  need_lib_prefix=no
14596  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14597    need_version=no
14598  else
14599    need_version=yes
14600  fi
14601  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14603  shlibpath_var=LD_LIBRARY_PATH
14604  shlibpath_overrides_runpath=yes
14605  ;;
14606
14607os2*)
14608  libname_spec='$name'
14609  version_type=windows
14610  shrext_cmds=.dll
14611  need_version=no
14612  need_lib_prefix=no
14613  # OS/2 can only load a DLL with a base name of 8 characters or less.
14614  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14615    v=$($ECHO $release$versuffix | tr -d .-);
14616    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14617    $ECHO $n$v`$shared_ext'
14618  library_names_spec='${libname}_dll.$libext'
14619  dynamic_linker='OS/2 ld.exe'
14620  shlibpath_var=BEGINLIBPATH
14621  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14622  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14623  postinstall_cmds='base_file=`basename \$file`~
14624    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14625    dldir=$destdir/`dirname \$dlpath`~
14626    test -d \$dldir || mkdir -p \$dldir~
14627    $install_prog $dir/$dlname \$dldir/$dlname~
14628    chmod a+x \$dldir/$dlname~
14629    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14630      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14631    fi'
14632  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14633    dlpath=$dir/\$dldll~
14634    $RM \$dlpath'
14635  ;;
14636
14637osf3* | osf4* | osf5*)
14638  version_type=osf
14639  need_lib_prefix=no
14640  need_version=no
14641  soname_spec='$libname$release$shared_ext$major'
14642  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14643  shlibpath_var=LD_LIBRARY_PATH
14644  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14645  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14646  ;;
14647
14648rdos*)
14649  dynamic_linker=no
14650  ;;
14651
14652solaris*)
14653  version_type=linux # correct to gnu/linux during the next big refactor
14654  need_lib_prefix=no
14655  need_version=no
14656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14657  soname_spec='$libname$release$shared_ext$major'
14658  shlibpath_var=LD_LIBRARY_PATH
14659  shlibpath_overrides_runpath=yes
14660  hardcode_into_libs=yes
14661  # ldd complains unless libraries are executable
14662  postinstall_cmds='chmod +x $lib'
14663  ;;
14664
14665sunos4*)
14666  version_type=sunos
14667  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14668  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14669  shlibpath_var=LD_LIBRARY_PATH
14670  shlibpath_overrides_runpath=yes
14671  if test yes = "$with_gnu_ld"; then
14672    need_lib_prefix=no
14673  fi
14674  need_version=yes
14675  ;;
14676
14677sysv4 | sysv4.3*)
14678  version_type=linux # correct to gnu/linux during the next big refactor
14679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14680  soname_spec='$libname$release$shared_ext$major'
14681  shlibpath_var=LD_LIBRARY_PATH
14682  case $host_vendor in
14683    sni)
14684      shlibpath_overrides_runpath=no
14685      need_lib_prefix=no
14686      runpath_var=LD_RUN_PATH
14687      ;;
14688    siemens)
14689      need_lib_prefix=no
14690      ;;
14691    motorola)
14692      need_lib_prefix=no
14693      need_version=no
14694      shlibpath_overrides_runpath=no
14695      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14696      ;;
14697  esac
14698  ;;
14699
14700sysv4*MP*)
14701  if test -d /usr/nec; then
14702    version_type=linux # correct to gnu/linux during the next big refactor
14703    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14704    soname_spec='$libname$shared_ext.$major'
14705    shlibpath_var=LD_LIBRARY_PATH
14706  fi
14707  ;;
14708
14709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14710  version_type=sco
14711  need_lib_prefix=no
14712  need_version=no
14713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14714  soname_spec='$libname$release$shared_ext$major'
14715  shlibpath_var=LD_LIBRARY_PATH
14716  shlibpath_overrides_runpath=yes
14717  hardcode_into_libs=yes
14718  if test yes = "$with_gnu_ld"; then
14719    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14720  else
14721    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14722    case $host_os in
14723      sco3.2v5*)
14724        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14725	;;
14726    esac
14727  fi
14728  sys_lib_dlsearch_path_spec='/usr/lib'
14729  ;;
14730
14731tpf*)
14732  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14733  version_type=linux # correct to gnu/linux during the next big refactor
14734  need_lib_prefix=no
14735  need_version=no
14736  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14737  shlibpath_var=LD_LIBRARY_PATH
14738  shlibpath_overrides_runpath=no
14739  hardcode_into_libs=yes
14740  ;;
14741
14742uts4*)
14743  version_type=linux # correct to gnu/linux during the next big refactor
14744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14745  soname_spec='$libname$release$shared_ext$major'
14746  shlibpath_var=LD_LIBRARY_PATH
14747  ;;
14748
14749*)
14750  dynamic_linker=no
14751  ;;
14752esac
14753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14754printf "%s\n" "$dynamic_linker" >&6; }
14755test no = "$dynamic_linker" && can_build_shared=no
14756
14757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14758if test yes = "$GCC"; then
14759  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14760fi
14761
14762if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14763  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14764fi
14765
14766if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14767  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14768fi
14769
14770# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14771configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14772
14773# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14774func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14775
14776# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14777configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14876printf %s "checking how to hardcode library paths into programs... " >&6; }
14877hardcode_action=
14878if test -n "$hardcode_libdir_flag_spec" ||
14879   test -n "$runpath_var" ||
14880   test yes = "$hardcode_automatic"; then
14881
14882  # We can hardcode non-existent directories.
14883  if test no != "$hardcode_direct" &&
14884     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14885     # have to relink, otherwise we might link with an installed library
14886     # when we should be linking with a yet-to-be-installed one
14887     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14888     test no != "$hardcode_minus_L"; then
14889    # Linking always hardcodes the temporary library directory.
14890    hardcode_action=relink
14891  else
14892    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14893    hardcode_action=immediate
14894  fi
14895else
14896  # We cannot hardcode anything, or else we can only hardcode existing
14897  # directories.
14898  hardcode_action=unsupported
14899fi
14900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14901printf "%s\n" "$hardcode_action" >&6; }
14902
14903if test relink = "$hardcode_action" ||
14904   test yes = "$inherit_rpath"; then
14905  # Fast installation is not supported
14906  enable_fast_install=no
14907elif test yes = "$shlibpath_overrides_runpath" ||
14908     test no = "$enable_shared"; then
14909  # Fast installation is not necessary
14910  enable_fast_install=needless
14911fi
14912
14913
14914
14915
14916
14917
14918  if test yes != "$enable_dlopen"; then
14919  enable_dlopen=unknown
14920  enable_dlopen_self=unknown
14921  enable_dlopen_self_static=unknown
14922else
14923  lt_cv_dlopen=no
14924  lt_cv_dlopen_libs=
14925
14926  case $host_os in
14927  beos*)
14928    lt_cv_dlopen=load_add_on
14929    lt_cv_dlopen_libs=
14930    lt_cv_dlopen_self=yes
14931    ;;
14932
14933  mingw* | pw32* | cegcc*)
14934    lt_cv_dlopen=LoadLibrary
14935    lt_cv_dlopen_libs=
14936    ;;
14937
14938  cygwin*)
14939    lt_cv_dlopen=dlopen
14940    lt_cv_dlopen_libs=
14941    ;;
14942
14943  darwin*)
14944    # if libdl is installed we need to link against it
14945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14946printf %s "checking for dlopen in -ldl... " >&6; }
14947if test ${ac_cv_lib_dl_dlopen+y}
14948then :
14949  printf %s "(cached) " >&6
14950else $as_nop
14951  ac_check_lib_save_LIBS=$LIBS
14952LIBS="-ldl  $LIBS"
14953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954/* end confdefs.h.  */
14955
14956/* Override any GCC internal prototype to avoid an error.
14957   Use char because int might match the return type of a GCC
14958   builtin and then its argument prototype would still apply.  */
14959char dlopen ();
14960int
14961main (void)
14962{
14963return dlopen ();
14964  ;
14965  return 0;
14966}
14967_ACEOF
14968if ac_fn_c_try_link "$LINENO"
14969then :
14970  ac_cv_lib_dl_dlopen=yes
14971else $as_nop
14972  ac_cv_lib_dl_dlopen=no
14973fi
14974rm -f core conftest.err conftest.$ac_objext conftest.beam \
14975    conftest$ac_exeext conftest.$ac_ext
14976LIBS=$ac_check_lib_save_LIBS
14977fi
14978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14979printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14980if test "x$ac_cv_lib_dl_dlopen" = xyes
14981then :
14982  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14983else $as_nop
14984
14985    lt_cv_dlopen=dyld
14986    lt_cv_dlopen_libs=
14987    lt_cv_dlopen_self=yes
14988
14989fi
14990
14991    ;;
14992
14993  tpf*)
14994    # Don't try to run any link tests for TPF.  We know it's impossible
14995    # because TPF is a cross-compiler, and we know how we open DSOs.
14996    lt_cv_dlopen=dlopen
14997    lt_cv_dlopen_libs=
14998    lt_cv_dlopen_self=no
14999    ;;
15000
15001  *)
15002    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15003if test "x$ac_cv_func_shl_load" = xyes
15004then :
15005  lt_cv_dlopen=shl_load
15006else $as_nop
15007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15008printf %s "checking for shl_load in -ldld... " >&6; }
15009if test ${ac_cv_lib_dld_shl_load+y}
15010then :
15011  printf %s "(cached) " >&6
15012else $as_nop
15013  ac_check_lib_save_LIBS=$LIBS
15014LIBS="-ldld  $LIBS"
15015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017
15018/* Override any GCC internal prototype to avoid an error.
15019   Use char because int might match the return type of a GCC
15020   builtin and then its argument prototype would still apply.  */
15021char shl_load ();
15022int
15023main (void)
15024{
15025return shl_load ();
15026  ;
15027  return 0;
15028}
15029_ACEOF
15030if ac_fn_c_try_link "$LINENO"
15031then :
15032  ac_cv_lib_dld_shl_load=yes
15033else $as_nop
15034  ac_cv_lib_dld_shl_load=no
15035fi
15036rm -f core conftest.err conftest.$ac_objext conftest.beam \
15037    conftest$ac_exeext conftest.$ac_ext
15038LIBS=$ac_check_lib_save_LIBS
15039fi
15040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15041printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15042if test "x$ac_cv_lib_dld_shl_load" = xyes
15043then :
15044  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15045else $as_nop
15046  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15047if test "x$ac_cv_func_dlopen" = xyes
15048then :
15049  lt_cv_dlopen=dlopen
15050else $as_nop
15051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15052printf %s "checking for dlopen in -ldl... " >&6; }
15053if test ${ac_cv_lib_dl_dlopen+y}
15054then :
15055  printf %s "(cached) " >&6
15056else $as_nop
15057  ac_check_lib_save_LIBS=$LIBS
15058LIBS="-ldl  $LIBS"
15059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061
15062/* Override any GCC internal prototype to avoid an error.
15063   Use char because int might match the return type of a GCC
15064   builtin and then its argument prototype would still apply.  */
15065char dlopen ();
15066int
15067main (void)
15068{
15069return dlopen ();
15070  ;
15071  return 0;
15072}
15073_ACEOF
15074if ac_fn_c_try_link "$LINENO"
15075then :
15076  ac_cv_lib_dl_dlopen=yes
15077else $as_nop
15078  ac_cv_lib_dl_dlopen=no
15079fi
15080rm -f core conftest.err conftest.$ac_objext conftest.beam \
15081    conftest$ac_exeext conftest.$ac_ext
15082LIBS=$ac_check_lib_save_LIBS
15083fi
15084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15085printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15086if test "x$ac_cv_lib_dl_dlopen" = xyes
15087then :
15088  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15089else $as_nop
15090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15091printf %s "checking for dlopen in -lsvld... " >&6; }
15092if test ${ac_cv_lib_svld_dlopen+y}
15093then :
15094  printf %s "(cached) " >&6
15095else $as_nop
15096  ac_check_lib_save_LIBS=$LIBS
15097LIBS="-lsvld  $LIBS"
15098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099/* end confdefs.h.  */
15100
15101/* Override any GCC internal prototype to avoid an error.
15102   Use char because int might match the return type of a GCC
15103   builtin and then its argument prototype would still apply.  */
15104char dlopen ();
15105int
15106main (void)
15107{
15108return dlopen ();
15109  ;
15110  return 0;
15111}
15112_ACEOF
15113if ac_fn_c_try_link "$LINENO"
15114then :
15115  ac_cv_lib_svld_dlopen=yes
15116else $as_nop
15117  ac_cv_lib_svld_dlopen=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.beam \
15120    conftest$ac_exeext conftest.$ac_ext
15121LIBS=$ac_check_lib_save_LIBS
15122fi
15123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15124printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15125if test "x$ac_cv_lib_svld_dlopen" = xyes
15126then :
15127  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15128else $as_nop
15129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15130printf %s "checking for dld_link in -ldld... " >&6; }
15131if test ${ac_cv_lib_dld_dld_link+y}
15132then :
15133  printf %s "(cached) " >&6
15134else $as_nop
15135  ac_check_lib_save_LIBS=$LIBS
15136LIBS="-ldld  $LIBS"
15137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h.  */
15139
15140/* Override any GCC internal prototype to avoid an error.
15141   Use char because int might match the return type of a GCC
15142   builtin and then its argument prototype would still apply.  */
15143char dld_link ();
15144int
15145main (void)
15146{
15147return dld_link ();
15148  ;
15149  return 0;
15150}
15151_ACEOF
15152if ac_fn_c_try_link "$LINENO"
15153then :
15154  ac_cv_lib_dld_dld_link=yes
15155else $as_nop
15156  ac_cv_lib_dld_dld_link=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.beam \
15159    conftest$ac_exeext conftest.$ac_ext
15160LIBS=$ac_check_lib_save_LIBS
15161fi
15162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15163printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15164if test "x$ac_cv_lib_dld_dld_link" = xyes
15165then :
15166  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15167fi
15168
15169
15170fi
15171
15172
15173fi
15174
15175
15176fi
15177
15178
15179fi
15180
15181
15182fi
15183
15184    ;;
15185  esac
15186
15187  if test no = "$lt_cv_dlopen"; then
15188    enable_dlopen=no
15189  else
15190    enable_dlopen=yes
15191  fi
15192
15193  case $lt_cv_dlopen in
15194  dlopen)
15195    save_CPPFLAGS=$CPPFLAGS
15196    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15197
15198    save_LDFLAGS=$LDFLAGS
15199    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15200
15201    save_LIBS=$LIBS
15202    LIBS="$lt_cv_dlopen_libs $LIBS"
15203
15204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15205printf %s "checking whether a program can dlopen itself... " >&6; }
15206if test ${lt_cv_dlopen_self+y}
15207then :
15208  printf %s "(cached) " >&6
15209else $as_nop
15210  	  if test yes = "$cross_compiling"; then :
15211  lt_cv_dlopen_self=cross
15212else
15213  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15214  lt_status=$lt_dlunknown
15215  cat > conftest.$ac_ext <<_LT_EOF
15216#line $LINENO "configure"
15217#include "confdefs.h"
15218
15219#if HAVE_DLFCN_H
15220#include <dlfcn.h>
15221#endif
15222
15223#include <stdio.h>
15224
15225#ifdef RTLD_GLOBAL
15226#  define LT_DLGLOBAL		RTLD_GLOBAL
15227#else
15228#  ifdef DL_GLOBAL
15229#    define LT_DLGLOBAL		DL_GLOBAL
15230#  else
15231#    define LT_DLGLOBAL		0
15232#  endif
15233#endif
15234
15235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15236   find out it does not work in some platform. */
15237#ifndef LT_DLLAZY_OR_NOW
15238#  ifdef RTLD_LAZY
15239#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15240#  else
15241#    ifdef DL_LAZY
15242#      define LT_DLLAZY_OR_NOW		DL_LAZY
15243#    else
15244#      ifdef RTLD_NOW
15245#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15246#      else
15247#        ifdef DL_NOW
15248#          define LT_DLLAZY_OR_NOW	DL_NOW
15249#        else
15250#          define LT_DLLAZY_OR_NOW	0
15251#        endif
15252#      endif
15253#    endif
15254#  endif
15255#endif
15256
15257/* When -fvisibility=hidden is used, assume the code has been annotated
15258   correspondingly for the symbols needed.  */
15259#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15260int fnord () __attribute__((visibility("default")));
15261#endif
15262
15263int fnord () { return 42; }
15264int main ()
15265{
15266  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15267  int status = $lt_dlunknown;
15268
15269  if (self)
15270    {
15271      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15272      else
15273        {
15274	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15275          else puts (dlerror ());
15276	}
15277      /* dlclose (self); */
15278    }
15279  else
15280    puts (dlerror ());
15281
15282  return status;
15283}
15284_LT_EOF
15285  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15286  (eval $ac_link) 2>&5
15287  ac_status=$?
15288  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15289  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15290    (./conftest; exit; ) >&5 2>/dev/null
15291    lt_status=$?
15292    case x$lt_status in
15293      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15294      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15295      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15296    esac
15297  else :
15298    # compilation failed
15299    lt_cv_dlopen_self=no
15300  fi
15301fi
15302rm -fr conftest*
15303
15304
15305fi
15306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15307printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15308
15309    if test yes = "$lt_cv_dlopen_self"; then
15310      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15311      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15312printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15313if test ${lt_cv_dlopen_self_static+y}
15314then :
15315  printf %s "(cached) " >&6
15316else $as_nop
15317  	  if test yes = "$cross_compiling"; then :
15318  lt_cv_dlopen_self_static=cross
15319else
15320  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15321  lt_status=$lt_dlunknown
15322  cat > conftest.$ac_ext <<_LT_EOF
15323#line $LINENO "configure"
15324#include "confdefs.h"
15325
15326#if HAVE_DLFCN_H
15327#include <dlfcn.h>
15328#endif
15329
15330#include <stdio.h>
15331
15332#ifdef RTLD_GLOBAL
15333#  define LT_DLGLOBAL		RTLD_GLOBAL
15334#else
15335#  ifdef DL_GLOBAL
15336#    define LT_DLGLOBAL		DL_GLOBAL
15337#  else
15338#    define LT_DLGLOBAL		0
15339#  endif
15340#endif
15341
15342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15343   find out it does not work in some platform. */
15344#ifndef LT_DLLAZY_OR_NOW
15345#  ifdef RTLD_LAZY
15346#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15347#  else
15348#    ifdef DL_LAZY
15349#      define LT_DLLAZY_OR_NOW		DL_LAZY
15350#    else
15351#      ifdef RTLD_NOW
15352#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15353#      else
15354#        ifdef DL_NOW
15355#          define LT_DLLAZY_OR_NOW	DL_NOW
15356#        else
15357#          define LT_DLLAZY_OR_NOW	0
15358#        endif
15359#      endif
15360#    endif
15361#  endif
15362#endif
15363
15364/* When -fvisibility=hidden is used, assume the code has been annotated
15365   correspondingly for the symbols needed.  */
15366#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15367int fnord () __attribute__((visibility("default")));
15368#endif
15369
15370int fnord () { return 42; }
15371int main ()
15372{
15373  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15374  int status = $lt_dlunknown;
15375
15376  if (self)
15377    {
15378      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15379      else
15380        {
15381	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15382          else puts (dlerror ());
15383	}
15384      /* dlclose (self); */
15385    }
15386  else
15387    puts (dlerror ());
15388
15389  return status;
15390}
15391_LT_EOF
15392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15393  (eval $ac_link) 2>&5
15394  ac_status=$?
15395  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15397    (./conftest; exit; ) >&5 2>/dev/null
15398    lt_status=$?
15399    case x$lt_status in
15400      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15401      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15402      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15403    esac
15404  else :
15405    # compilation failed
15406    lt_cv_dlopen_self_static=no
15407  fi
15408fi
15409rm -fr conftest*
15410
15411
15412fi
15413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15414printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15415    fi
15416
15417    CPPFLAGS=$save_CPPFLAGS
15418    LDFLAGS=$save_LDFLAGS
15419    LIBS=$save_LIBS
15420    ;;
15421  esac
15422
15423  case $lt_cv_dlopen_self in
15424  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15425  *) enable_dlopen_self=unknown ;;
15426  esac
15427
15428  case $lt_cv_dlopen_self_static in
15429  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15430  *) enable_dlopen_self_static=unknown ;;
15431  esac
15432fi
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450striplib=
15451old_striplib=
15452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15453printf %s "checking whether stripping libraries is possible... " >&6; }
15454if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15455  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15456  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15458printf "%s\n" "yes" >&6; }
15459else
15460# FIXME - insert some real tests, host_os isn't really good enough
15461  case $host_os in
15462  darwin*)
15463    if test -n "$STRIP"; then
15464      striplib="$STRIP -x"
15465      old_striplib="$STRIP -S"
15466      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15467printf "%s\n" "yes" >&6; }
15468    else
15469      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470printf "%s\n" "no" >&6; }
15471    fi
15472    ;;
15473  *)
15474    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475printf "%s\n" "no" >&6; }
15476    ;;
15477  esac
15478fi
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491  # Report what library types will actually be built
15492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15493printf %s "checking if libtool supports shared libraries... " >&6; }
15494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15495printf "%s\n" "$can_build_shared" >&6; }
15496
15497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15498printf %s "checking whether to build shared libraries... " >&6; }
15499  test no = "$can_build_shared" && enable_shared=no
15500
15501  # On AIX, shared libraries and static libraries use the same namespace, and
15502  # are all built from PIC.
15503  case $host_os in
15504  aix3*)
15505    test yes = "$enable_shared" && enable_static=no
15506    if test -n "$RANLIB"; then
15507      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15508      postinstall_cmds='$RANLIB $lib'
15509    fi
15510    ;;
15511
15512  aix[4-9]*)
15513    if test ia64 != "$host_cpu"; then
15514      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15515      yes,aix,yes) ;;			# shared object as lib.so file only
15516      yes,svr4,*) ;;			# shared object as lib.so archive member only
15517      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15518      esac
15519    fi
15520    ;;
15521  esac
15522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15523printf "%s\n" "$enable_shared" >&6; }
15524
15525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15526printf %s "checking whether to build static libraries... " >&6; }
15527  # Make sure either enable_shared or enable_static is yes.
15528  test yes = "$enable_shared" || enable_static=yes
15529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15530printf "%s\n" "$enable_static" >&6; }
15531
15532
15533
15534
15535fi
15536ac_ext=c
15537ac_cpp='$CPP $CPPFLAGS'
15538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15540ac_compiler_gnu=$ac_cv_c_compiler_gnu
15541
15542CC=$lt_save_CC
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558        ac_config_commands="$ac_config_commands libtool"
15559
15560
15561
15562
15563# Only expand once:
15564
15565
15566
15567
15568# pkg-config is only needed for these options, do not require it otherwise
15569if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
15570
15571
15572
15573
15574
15575
15576
15577if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15578	if test -n "$ac_tool_prefix"; then
15579  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15580set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15582printf %s "checking for $ac_word... " >&6; }
15583if test ${ac_cv_path_PKG_CONFIG+y}
15584then :
15585  printf %s "(cached) " >&6
15586else $as_nop
15587  case $PKG_CONFIG in
15588  [\\/]* | ?:[\\/]*)
15589  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15590  ;;
15591  *)
15592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593for as_dir in $PATH
15594do
15595  IFS=$as_save_IFS
15596  case $as_dir in #(((
15597    '') as_dir=./ ;;
15598    */) ;;
15599    *) as_dir=$as_dir/ ;;
15600  esac
15601    for ac_exec_ext in '' $ac_executable_extensions; do
15602  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15603    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15604    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15605    break 2
15606  fi
15607done
15608  done
15609IFS=$as_save_IFS
15610
15611  ;;
15612esac
15613fi
15614PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15615if test -n "$PKG_CONFIG"; then
15616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15617printf "%s\n" "$PKG_CONFIG" >&6; }
15618else
15619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15620printf "%s\n" "no" >&6; }
15621fi
15622
15623
15624fi
15625if test -z "$ac_cv_path_PKG_CONFIG"; then
15626  ac_pt_PKG_CONFIG=$PKG_CONFIG
15627  # Extract the first word of "pkg-config", so it can be a program name with args.
15628set dummy pkg-config; ac_word=$2
15629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15630printf %s "checking for $ac_word... " >&6; }
15631if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15632then :
15633  printf %s "(cached) " >&6
15634else $as_nop
15635  case $ac_pt_PKG_CONFIG in
15636  [\\/]* | ?:[\\/]*)
15637  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15638  ;;
15639  *)
15640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641for as_dir in $PATH
15642do
15643  IFS=$as_save_IFS
15644  case $as_dir in #(((
15645    '') as_dir=./ ;;
15646    */) ;;
15647    *) as_dir=$as_dir/ ;;
15648  esac
15649    for ac_exec_ext in '' $ac_executable_extensions; do
15650  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15651    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15652    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15653    break 2
15654  fi
15655done
15656  done
15657IFS=$as_save_IFS
15658
15659  ;;
15660esac
15661fi
15662ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15663if test -n "$ac_pt_PKG_CONFIG"; then
15664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15665printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15666else
15667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668printf "%s\n" "no" >&6; }
15669fi
15670
15671  if test "x$ac_pt_PKG_CONFIG" = x; then
15672    PKG_CONFIG=""
15673  else
15674    case $cross_compiling:$ac_tool_warned in
15675yes:)
15676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15678ac_tool_warned=yes ;;
15679esac
15680    PKG_CONFIG=$ac_pt_PKG_CONFIG
15681  fi
15682else
15683  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15684fi
15685
15686fi
15687if test -n "$PKG_CONFIG"; then
15688	_pkg_min_version=0.9.0
15689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15690printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15691	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15693printf "%s\n" "yes" >&6; }
15694	else
15695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15696printf "%s\n" "no" >&6; }
15697		PKG_CONFIG=""
15698	fi
15699fi
15700fi
15701
15702# Checks for header files.
15703ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default
15704"
15705if test "x$ac_cv_header_stdarg_h" = xyes
15706then :
15707  printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
15708
15709fi
15710ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default
15711"
15712if test "x$ac_cv_header_stdbool_h" = xyes
15713then :
15714  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
15715
15716fi
15717ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default
15718"
15719if test "x$ac_cv_header_netinet_in_h" = xyes
15720then :
15721  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
15722
15723fi
15724ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
15725"
15726if test "x$ac_cv_header_netinet_tcp_h" = xyes
15727then :
15728  printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
15729
15730fi
15731ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default
15732"
15733if test "x$ac_cv_header_sys_param_h" = xyes
15734then :
15735  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15736
15737fi
15738ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
15739"
15740if test "x$ac_cv_header_sys_select_h" = xyes
15741then :
15742  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
15743
15744fi
15745ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15746"
15747if test "x$ac_cv_header_sys_socket_h" = xyes
15748then :
15749  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15750
15751fi
15752ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default
15753"
15754if test "x$ac_cv_header_sys_un_h" = xyes
15755then :
15756  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
15757
15758fi
15759ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default
15760"
15761if test "x$ac_cv_header_sys_uio_h" = xyes
15762then :
15763  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
15764
15765fi
15766ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default
15767"
15768if test "x$ac_cv_header_sys_resource_h" = xyes
15769then :
15770  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
15771
15772fi
15773ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default
15774"
15775if test "x$ac_cv_header_arpa_inet_h" = xyes
15776then :
15777  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
15778
15779fi
15780ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default
15781"
15782if test "x$ac_cv_header_syslog_h" = xyes
15783then :
15784  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
15785
15786fi
15787ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default
15788"
15789if test "x$ac_cv_header_netdb_h" = xyes
15790then :
15791  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
15792
15793fi
15794ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default
15795"
15796if test "x$ac_cv_header_sys_wait_h" = xyes
15797then :
15798  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15799
15800fi
15801ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default
15802"
15803if test "x$ac_cv_header_pwd_h" = xyes
15804then :
15805  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15806
15807fi
15808ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default
15809"
15810if test "x$ac_cv_header_glob_h" = xyes
15811then :
15812  printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
15813
15814fi
15815ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default
15816"
15817if test "x$ac_cv_header_grp_h" = xyes
15818then :
15819  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
15820
15821fi
15822ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default
15823"
15824if test "x$ac_cv_header_login_cap_h" = xyes
15825then :
15826  printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h
15827
15828fi
15829ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
15830"
15831if test "x$ac_cv_header_winsock2_h" = xyes
15832then :
15833  printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
15834
15835fi
15836ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default
15837"
15838if test "x$ac_cv_header_ws2tcpip_h" = xyes
15839then :
15840  printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
15841
15842fi
15843ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default
15844"
15845if test "x$ac_cv_header_endian_h" = xyes
15846then :
15847  printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
15848
15849fi
15850ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default
15851"
15852if test "x$ac_cv_header_sys_endian_h" = xyes
15853then :
15854  printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
15855
15856fi
15857ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default
15858"
15859if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
15860then :
15861  printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
15862
15863fi
15864ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default
15865"
15866if test "x$ac_cv_header_sys_ipc_h" = xyes
15867then :
15868  printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
15869
15870fi
15871ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default
15872"
15873if test "x$ac_cv_header_sys_shm_h" = xyes
15874then :
15875  printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h
15876
15877fi
15878ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
15879"
15880if test "x$ac_cv_header_ifaddrs_h" = xyes
15881then :
15882  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
15883
15884fi
15885
15886# net/if.h portability for Darwin see:
15887# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
15888ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
15889#include <stdio.h>
15890#ifdef STDC_HEADERS
15891# include <stdlib.h>
15892# include <stddef.h>
15893#else
15894# ifdef HAVE_STDLIB_H
15895#  include <stdlib.h>
15896# endif
15897#endif
15898#ifdef HAVE_SYS_SOCKET_H
15899# include <sys/socket.h>
15900#endif
15901
15902"
15903if test "x$ac_cv_header_net_if_h" = xyes
15904then :
15905  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
15906
15907fi
15908
15909
15910# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
15911ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
15912"
15913if test "x$ac_cv_header_TargetConditionals_h" = xyes
15914then :
15915  printf "%s\n" "#define HAVE_TARGETCONDITIONALS_H 1" >>confdefs.h
15916
15917fi
15918
15919
15920# check for types.
15921# Using own tests for int64* because autoconf builtin only give 32bit.
15922ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15923if test "x$ac_cv_type_int8_t" = xyes
15924then :
15925
15926else $as_nop
15927
15928printf "%s\n" "#define int8_t signed char" >>confdefs.h
15929
15930fi
15931
15932ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15933if test "x$ac_cv_type_int16_t" = xyes
15934then :
15935
15936else $as_nop
15937
15938printf "%s\n" "#define int16_t short" >>confdefs.h
15939
15940fi
15941
15942ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15943if test "x$ac_cv_type_int32_t" = xyes
15944then :
15945
15946else $as_nop
15947
15948printf "%s\n" "#define int32_t int" >>confdefs.h
15949
15950fi
15951
15952ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
15953if test "x$ac_cv_type_int64_t" = xyes
15954then :
15955
15956else $as_nop
15957
15958printf "%s\n" "#define int64_t long long" >>confdefs.h
15959
15960fi
15961
15962ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15963if test "x$ac_cv_type_uint8_t" = xyes
15964then :
15965
15966else $as_nop
15967
15968printf "%s\n" "#define uint8_t unsigned char" >>confdefs.h
15969
15970fi
15971
15972ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15973if test "x$ac_cv_type_uint16_t" = xyes
15974then :
15975
15976else $as_nop
15977
15978printf "%s\n" "#define uint16_t unsigned short" >>confdefs.h
15979
15980fi
15981
15982ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15983if test "x$ac_cv_type_uint32_t" = xyes
15984then :
15985
15986else $as_nop
15987
15988printf "%s\n" "#define uint32_t unsigned int" >>confdefs.h
15989
15990fi
15991
15992ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
15993if test "x$ac_cv_type_uint64_t" = xyes
15994then :
15995
15996else $as_nop
15997
15998printf "%s\n" "#define uint64_t unsigned long long" >>confdefs.h
15999
16000fi
16001
16002ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16003if test "x$ac_cv_type_size_t" = xyes
16004then :
16005
16006else $as_nop
16007
16008printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16009
16010fi
16011
16012ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16013if test "x$ac_cv_type_ssize_t" = xyes
16014then :
16015
16016else $as_nop
16017
16018printf "%s\n" "#define ssize_t int" >>confdefs.h
16019
16020fi
16021
16022ac_ext=c
16023ac_cpp='$CPP $CPPFLAGS'
16024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16026ac_compiler_gnu=$ac_cv_c_compiler_gnu
16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16028printf %s "checking how to run the C preprocessor... " >&6; }
16029# On Suns, sometimes $CPP names a directory.
16030if test -n "$CPP" && test -d "$CPP"; then
16031  CPP=
16032fi
16033if test -z "$CPP"; then
16034  if test ${ac_cv_prog_CPP+y}
16035then :
16036  printf %s "(cached) " >&6
16037else $as_nop
16038      # Double quotes because $CC needs to be expanded
16039    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16040    do
16041      ac_preproc_ok=false
16042for ac_c_preproc_warn_flag in '' yes
16043do
16044  # Use a header file that comes with gcc, so configuring glibc
16045  # with a fresh cross-compiler works.
16046  # On the NeXT, cc -E runs the code through the compiler's parser,
16047  # not just through cpp. "Syntax error" is here to catch this case.
16048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049/* end confdefs.h.  */
16050#include <limits.h>
16051		     Syntax error
16052_ACEOF
16053if ac_fn_c_try_cpp "$LINENO"
16054then :
16055
16056else $as_nop
16057  # Broken: fails on valid input.
16058continue
16059fi
16060rm -f conftest.err conftest.i conftest.$ac_ext
16061
16062  # OK, works on sane cases.  Now check whether nonexistent headers
16063  # can be detected and how.
16064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065/* end confdefs.h.  */
16066#include <ac_nonexistent.h>
16067_ACEOF
16068if ac_fn_c_try_cpp "$LINENO"
16069then :
16070  # Broken: success on invalid input.
16071continue
16072else $as_nop
16073  # Passes both tests.
16074ac_preproc_ok=:
16075break
16076fi
16077rm -f conftest.err conftest.i conftest.$ac_ext
16078
16079done
16080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16081rm -f conftest.i conftest.err conftest.$ac_ext
16082if $ac_preproc_ok
16083then :
16084  break
16085fi
16086
16087    done
16088    ac_cv_prog_CPP=$CPP
16089
16090fi
16091  CPP=$ac_cv_prog_CPP
16092else
16093  ac_cv_prog_CPP=$CPP
16094fi
16095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16096printf "%s\n" "$CPP" >&6; }
16097ac_preproc_ok=false
16098for ac_c_preproc_warn_flag in '' yes
16099do
16100  # Use a header file that comes with gcc, so configuring glibc
16101  # with a fresh cross-compiler works.
16102  # On the NeXT, cc -E runs the code through the compiler's parser,
16103  # not just through cpp. "Syntax error" is here to catch this case.
16104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105/* end confdefs.h.  */
16106#include <limits.h>
16107		     Syntax error
16108_ACEOF
16109if ac_fn_c_try_cpp "$LINENO"
16110then :
16111
16112else $as_nop
16113  # Broken: fails on valid input.
16114continue
16115fi
16116rm -f conftest.err conftest.i conftest.$ac_ext
16117
16118  # OK, works on sane cases.  Now check whether nonexistent headers
16119  # can be detected and how.
16120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h.  */
16122#include <ac_nonexistent.h>
16123_ACEOF
16124if ac_fn_c_try_cpp "$LINENO"
16125then :
16126  # Broken: success on invalid input.
16127continue
16128else $as_nop
16129  # Passes both tests.
16130ac_preproc_ok=:
16131break
16132fi
16133rm -f conftest.err conftest.i conftest.$ac_ext
16134
16135done
16136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16137rm -f conftest.i conftest.err conftest.$ac_ext
16138if $ac_preproc_ok
16139then :
16140
16141else $as_nop
16142  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16143printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16144as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16145See \`config.log' for more details" "$LINENO" 5; }
16146fi
16147
16148ac_ext=c
16149ac_cpp='$CPP $CPPFLAGS'
16150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16152ac_compiler_gnu=$ac_cv_c_compiler_gnu
16153
16154
16155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16156printf %s "checking for uid_t in sys/types.h... " >&6; }
16157if test ${ac_cv_type_uid_t+y}
16158then :
16159  printf %s "(cached) " >&6
16160else $as_nop
16161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162/* end confdefs.h.  */
16163#include <sys/types.h>
16164
16165_ACEOF
16166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16167  $EGREP "uid_t" >/dev/null 2>&1
16168then :
16169  ac_cv_type_uid_t=yes
16170else $as_nop
16171  ac_cv_type_uid_t=no
16172fi
16173rm -rf conftest*
16174
16175fi
16176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16177printf "%s\n" "$ac_cv_type_uid_t" >&6; }
16178if test $ac_cv_type_uid_t = no; then
16179
16180printf "%s\n" "#define uid_t int" >>confdefs.h
16181
16182
16183printf "%s\n" "#define gid_t int" >>confdefs.h
16184
16185fi
16186
16187
16188  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
16189"
16190if test "x$ac_cv_type_pid_t" = xyes
16191then :
16192
16193else $as_nop
16194                                          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196
16197          #if defined _WIN64 && !defined __CYGWIN__
16198          LLP64
16199          #endif
16200
16201int
16202main (void)
16203{
16204
16205  ;
16206  return 0;
16207}
16208
16209_ACEOF
16210if ac_fn_c_try_compile "$LINENO"
16211then :
16212  ac_pid_type='int'
16213else $as_nop
16214  ac_pid_type='__int64'
16215fi
16216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16217
16218printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
16219
16220
16221fi
16222
16223
16224ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16225if test "x$ac_cv_type_off_t" = xyes
16226then :
16227
16228else $as_nop
16229
16230printf "%s\n" "#define off_t long int" >>confdefs.h
16231
16232fi
16233
16234ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
16235$ac_includes_default
16236#ifdef HAVE_WINSOCK2_H
16237#  include <winsock2.h>
16238#endif
16239
16240"
16241if test "x$ac_cv_type_u_char" = xyes
16242then :
16243
16244else $as_nop
16245
16246printf "%s\n" "#define u_char unsigned char" >>confdefs.h
16247
16248fi
16249
16250ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
16251$ac_includes_default
16252#ifdef HAVE_SYS_RESOURCE_H
16253#  include <sys/resource.h>
16254#endif
16255
16256"
16257if test "x$ac_cv_type_rlim_t" = xyes
16258then :
16259
16260else $as_nop
16261
16262printf "%s\n" "#define rlim_t unsigned long" >>confdefs.h
16263
16264fi
16265
16266
16267ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16268$ac_includes_default
16269#ifdef HAVE_SYS_SOCKET_H
16270#  include <sys/socket.h>
16271#endif
16272#ifdef HAVE_WS2TCPIP_H
16273#  include <ws2tcpip.h>
16274#endif
16275
16276"
16277if test "x$ac_cv_type_socklen_t" = xyes
16278then :
16279
16280else $as_nop
16281
16282printf "%s\n" "#define socklen_t int" >>confdefs.h
16283
16284fi
16285
16286 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
16287$ac_includes_default
16288#ifdef HAVE_SYS_TYPES_H
16289# include <sys/types.h>
16290#endif
16291#ifdef HAVE_NETINET_IN_H
16292# include <netinet/in.h>
16293#endif
16294
16295"
16296if test "x$ac_cv_type_in_addr_t" = xyes
16297then :
16298
16299else $as_nop
16300
16301printf "%s\n" "#define in_addr_t uint32_t" >>confdefs.h
16302
16303fi
16304
16305 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
16306$ac_includes_default
16307#ifdef HAVE_SYS_TYPES_H
16308# include <sys/types.h>
16309#endif
16310#ifdef HAVE_NETINET_IN_H
16311# include <netinet/in.h>
16312#endif
16313
16314"
16315if test "x$ac_cv_type_in_port_t" = xyes
16316then :
16317
16318else $as_nop
16319
16320printf "%s\n" "#define in_port_t uint16_t" >>confdefs.h
16321
16322fi
16323
16324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
16325printf %s "checking if memcmp compares unsigned... " >&6; }
16326if test "$cross_compiling" = yes
16327then :
16328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
16329printf "%s\n" "cross-compile no" >&6; }
16330
16331printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
16332
16333  case " $LIBOBJS " in
16334  *" memcmp.$ac_objext "* ) ;;
16335  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16336 ;;
16337esac
16338
16339
16340else $as_nop
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343
16344#include <stdio.h>
16345#include <stdlib.h>
16346#include <string.h>
16347int main(void)
16348{
16349	char a = 255, b = 0;
16350	if(memcmp(&a, &b, 1) < 0)
16351		return 1;
16352	return 0;
16353}
16354
16355_ACEOF
16356if ac_fn_c_try_run "$LINENO"
16357then :
16358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16359printf "%s\n" "yes" >&6; }
16360else $as_nop
16361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362printf "%s\n" "no" >&6; }
16363
16364printf "%s\n" "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
16365
16366  case " $LIBOBJS " in
16367  *" memcmp.$ac_objext "* ) ;;
16368  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16369 ;;
16370esac
16371
16372
16373fi
16374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16375  conftest.$ac_objext conftest.beam conftest.$ac_ext
16376fi
16377
16378
16379# The cast to long int works around a bug in the HP C Compiler
16380# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16381# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16382# This bug is HP SR number 8606223364.
16383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
16384printf %s "checking size of time_t... " >&6; }
16385if test ${ac_cv_sizeof_time_t+y}
16386then :
16387  printf %s "(cached) " >&6
16388else $as_nop
16389  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
16390$ac_includes_default
16391#ifdef TIME_WITH_SYS_TIME
16392# include <sys/time.h>
16393# include <time.h>
16394#else
16395# ifdef HAVE_SYS_TIME_H
16396#  include <sys/time.h>
16397# else
16398#  include <time.h>
16399# endif
16400#endif
16401
16402"
16403then :
16404
16405else $as_nop
16406  if test "$ac_cv_type_time_t" = yes; then
16407     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16408printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16409as_fn_error 77 "cannot compute sizeof (time_t)
16410See \`config.log' for more details" "$LINENO" 5; }
16411   else
16412     ac_cv_sizeof_time_t=0
16413   fi
16414fi
16415
16416fi
16417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
16418printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
16419
16420
16421
16422printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
16423
16424
16425# The cast to long int works around a bug in the HP C Compiler
16426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16428# This bug is HP SR number 8606223364.
16429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16430printf %s "checking size of size_t... " >&6; }
16431if test ${ac_cv_sizeof_size_t+y}
16432then :
16433  printf %s "(cached) " >&6
16434else $as_nop
16435  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
16436then :
16437
16438else $as_nop
16439  if test "$ac_cv_type_size_t" = yes; then
16440     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16441printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16442as_fn_error 77 "cannot compute sizeof (size_t)
16443See \`config.log' for more details" "$LINENO" 5; }
16444   else
16445     ac_cv_sizeof_size_t=0
16446   fi
16447fi
16448
16449fi
16450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16451printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
16452
16453
16454
16455printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
16456
16457
16458
16459# add option to disable the evil rpath
16460
16461# Check whether --enable-rpath was given.
16462if test ${enable_rpath+y}
16463then :
16464  enableval=$enable_rpath; enable_rpath=$enableval
16465else $as_nop
16466  enable_rpath=yes
16467fi
16468
16469if test "x$enable_rpath" = xno; then
16470		ac_config_commands="$ac_config_commands disable-rpath"
16471
16472fi
16473
16474
16475
16476# check to see if libraries are needed for these functions.
16477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
16478printf %s "checking for library containing inet_pton... " >&6; }
16479if test ${ac_cv_search_inet_pton+y}
16480then :
16481  printf %s "(cached) " >&6
16482else $as_nop
16483  ac_func_search_save_LIBS=$LIBS
16484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485/* end confdefs.h.  */
16486
16487/* Override any GCC internal prototype to avoid an error.
16488   Use char because int might match the return type of a GCC
16489   builtin and then its argument prototype would still apply.  */
16490char inet_pton ();
16491int
16492main (void)
16493{
16494return inet_pton ();
16495  ;
16496  return 0;
16497}
16498_ACEOF
16499for ac_lib in '' nsl
16500do
16501  if test -z "$ac_lib"; then
16502    ac_res="none required"
16503  else
16504    ac_res=-l$ac_lib
16505    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16506  fi
16507  if ac_fn_c_try_link "$LINENO"
16508then :
16509  ac_cv_search_inet_pton=$ac_res
16510fi
16511rm -f core conftest.err conftest.$ac_objext conftest.beam \
16512    conftest$ac_exeext
16513  if test ${ac_cv_search_inet_pton+y}
16514then :
16515  break
16516fi
16517done
16518if test ${ac_cv_search_inet_pton+y}
16519then :
16520
16521else $as_nop
16522  ac_cv_search_inet_pton=no
16523fi
16524rm conftest.$ac_ext
16525LIBS=$ac_func_search_save_LIBS
16526fi
16527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
16528printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
16529ac_res=$ac_cv_search_inet_pton
16530if test "$ac_res" != no
16531then :
16532  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16533
16534fi
16535
16536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16537printf %s "checking for library containing socket... " >&6; }
16538if test ${ac_cv_search_socket+y}
16539then :
16540  printf %s "(cached) " >&6
16541else $as_nop
16542  ac_func_search_save_LIBS=$LIBS
16543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h.  */
16545
16546/* Override any GCC internal prototype to avoid an error.
16547   Use char because int might match the return type of a GCC
16548   builtin and then its argument prototype would still apply.  */
16549char socket ();
16550int
16551main (void)
16552{
16553return socket ();
16554  ;
16555  return 0;
16556}
16557_ACEOF
16558for ac_lib in '' socket
16559do
16560  if test -z "$ac_lib"; then
16561    ac_res="none required"
16562  else
16563    ac_res=-l$ac_lib
16564    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16565  fi
16566  if ac_fn_c_try_link "$LINENO"
16567then :
16568  ac_cv_search_socket=$ac_res
16569fi
16570rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571    conftest$ac_exeext
16572  if test ${ac_cv_search_socket+y}
16573then :
16574  break
16575fi
16576done
16577if test ${ac_cv_search_socket+y}
16578then :
16579
16580else $as_nop
16581  ac_cv_search_socket=no
16582fi
16583rm conftest.$ac_ext
16584LIBS=$ac_func_search_save_LIBS
16585fi
16586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16587printf "%s\n" "$ac_cv_search_socket" >&6; }
16588ac_res=$ac_cv_search_socket
16589if test "$ac_res" != no
16590then :
16591  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16592
16593fi
16594
16595
16596# check wether strptime also works
16597
16598# check some functions of the OS before linking libs (while still runnable).
16599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
16600printf %s "checking for working chown... " >&6; }
16601if test ${ac_cv_func_chown_works+y}
16602then :
16603  printf %s "(cached) " >&6
16604else $as_nop
16605  if test "$cross_compiling" = yes
16606then :
16607  case "$host_os" in # ((
16608			  # Guess yes on glibc systems.
16609		  *-gnu*) ac_cv_func_chown_works=yes ;;
16610			  # If we don't know, assume the worst.
16611		  *)      ac_cv_func_chown_works=no ;;
16612		esac
16613else $as_nop
16614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615/* end confdefs.h.  */
16616$ac_includes_default
16617#include <fcntl.h>
16618
16619int
16620main (void)
16621{
16622  char *f = "conftest.chown";
16623  struct stat before, after;
16624
16625  if (creat (f, 0600) < 0)
16626    return 1;
16627  if (stat (f, &before) < 0)
16628    return 1;
16629  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
16630    return 1;
16631  if (stat (f, &after) < 0)
16632    return 1;
16633  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
16634
16635  ;
16636  return 0;
16637}
16638_ACEOF
16639if ac_fn_c_try_run "$LINENO"
16640then :
16641  ac_cv_func_chown_works=yes
16642else $as_nop
16643  ac_cv_func_chown_works=no
16644fi
16645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16646  conftest.$ac_objext conftest.beam conftest.$ac_ext
16647fi
16648
16649rm -f conftest.chown
16650
16651fi
16652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
16653printf "%s\n" "$ac_cv_func_chown_works" >&6; }
16654if test $ac_cv_func_chown_works = yes; then
16655
16656printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
16657
16658fi
16659
16660
16661ac_func=
16662for ac_item in $ac_func_c_list
16663do
16664  if test $ac_func; then
16665    ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
16666    if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
16667      echo "#define $ac_item 1" >> confdefs.h
16668    fi
16669    ac_func=
16670  else
16671    ac_func=$ac_item
16672  fi
16673done
16674
16675
16676
16677if test "x$ac_cv_func_fork" = xyes; then
16678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16679printf %s "checking for working fork... " >&6; }
16680if test ${ac_cv_func_fork_works+y}
16681then :
16682  printf %s "(cached) " >&6
16683else $as_nop
16684  if test "$cross_compiling" = yes
16685then :
16686  ac_cv_func_fork_works=cross
16687else $as_nop
16688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689/* end confdefs.h.  */
16690$ac_includes_default
16691int
16692main (void)
16693{
16694
16695	  /* By Ruediger Kuhlmann. */
16696	  return fork () < 0;
16697
16698  ;
16699  return 0;
16700}
16701_ACEOF
16702if ac_fn_c_try_run "$LINENO"
16703then :
16704  ac_cv_func_fork_works=yes
16705else $as_nop
16706  ac_cv_func_fork_works=no
16707fi
16708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16709  conftest.$ac_objext conftest.beam conftest.$ac_ext
16710fi
16711
16712fi
16713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16714printf "%s\n" "$ac_cv_func_fork_works" >&6; }
16715
16716else
16717  ac_cv_func_fork_works=$ac_cv_func_fork
16718fi
16719if test "x$ac_cv_func_fork_works" = xcross; then
16720  case $host in
16721    *-*-amigaos* | *-*-msdosdjgpp*)
16722      # Override, as these systems have only a dummy fork() stub
16723      ac_cv_func_fork_works=no
16724      ;;
16725    *)
16726      ac_cv_func_fork_works=yes
16727      ;;
16728  esac
16729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16730printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16731fi
16732ac_cv_func_vfork_works=$ac_cv_func_vfork
16733if test "x$ac_cv_func_vfork" = xyes; then
16734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16735printf %s "checking for working vfork... " >&6; }
16736if test ${ac_cv_func_vfork_works+y}
16737then :
16738  printf %s "(cached) " >&6
16739else $as_nop
16740  if test "$cross_compiling" = yes
16741then :
16742  ac_cv_func_vfork_works=cross
16743else $as_nop
16744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745/* end confdefs.h.  */
16746/* Thanks to Paul Eggert for this test.  */
16747$ac_includes_default
16748#include <signal.h>
16749#include <sys/wait.h>
16750#ifdef HAVE_VFORK_H
16751# include <vfork.h>
16752#endif
16753
16754static void
16755do_nothing (int sig)
16756{
16757  (void) sig;
16758}
16759
16760/* On some sparc systems, changes by the child to local and incoming
16761   argument registers are propagated back to the parent.  The compiler
16762   is told about this with #include <vfork.h>, but some compilers
16763   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16764   static variable whose address is put into a register that is
16765   clobbered by the vfork.  */
16766static void
16767sparc_address_test (int arg)
16768{
16769  static pid_t child;
16770  if (!child) {
16771    child = vfork ();
16772    if (child < 0) {
16773      perror ("vfork");
16774      _exit(2);
16775    }
16776    if (!child) {
16777      arg = getpid();
16778      write(-1, "", 0);
16779      _exit (arg);
16780    }
16781  }
16782}
16783
16784int
16785main (void)
16786{
16787  pid_t parent = getpid ();
16788  pid_t child;
16789
16790  sparc_address_test (0);
16791
16792  /* On Solaris 2.4, changes by the child to the signal handler
16793     also munge signal handlers in the parent.  To detect this,
16794     start by putting the parent's handler in a known state.  */
16795  signal (SIGTERM, SIG_DFL);
16796
16797  child = vfork ();
16798
16799  if (child == 0) {
16800    /* Here is another test for sparc vfork register problems.  This
16801       test uses lots of local variables, at least as many local
16802       variables as main has allocated so far including compiler
16803       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16804       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16805       reuse the register of parent for one of the local variables,
16806       since it will think that parent can't possibly be used any more
16807       in this routine.  Assigning to the local variable will thus
16808       munge parent in the parent process.  */
16809    pid_t
16810      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16811      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16812    /* Convince the compiler that p..p7 are live; otherwise, it might
16813       use the same hardware register for all 8 local variables.  */
16814    if (p != p1 || p != p2 || p != p3 || p != p4
16815	|| p != p5 || p != p6 || p != p7)
16816      _exit(1);
16817
16818    /* Alter the child's signal handler.  */
16819    if (signal (SIGTERM, do_nothing) != SIG_DFL)
16820      _exit(1);
16821
16822    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16823       from child file descriptors.  If the child closes a descriptor
16824       before it execs or exits, this munges the parent's descriptor
16825       as well.  Test for this by closing stdout in the child.  */
16826    _exit(close(fileno(stdout)) != 0);
16827  } else {
16828    int status;
16829    struct stat st;
16830
16831    while (wait(&status) != child)
16832      ;
16833    return (
16834	 /* Was there some problem with vforking?  */
16835	 child < 0
16836
16837	 /* Did the child munge the parent's signal handler?  */
16838	 || signal (SIGTERM, SIG_DFL) != SIG_DFL
16839
16840	 /* Did the child fail?  (This shouldn't happen.)  */
16841	 || status
16842
16843	 /* Did the vfork/compiler bug occur?  */
16844	 || parent != getpid()
16845
16846	 /* Did the file descriptor bug occur?  */
16847	 || fstat(fileno(stdout), &st) != 0
16848	 );
16849  }
16850}
16851_ACEOF
16852if ac_fn_c_try_run "$LINENO"
16853then :
16854  ac_cv_func_vfork_works=yes
16855else $as_nop
16856  ac_cv_func_vfork_works=no
16857fi
16858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16859  conftest.$ac_objext conftest.beam conftest.$ac_ext
16860fi
16861
16862fi
16863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16864printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
16865
16866fi;
16867if test "x$ac_cv_func_fork_works" = xcross; then
16868  ac_cv_func_vfork_works=$ac_cv_func_vfork
16869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16870printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16871fi
16872
16873if test "x$ac_cv_func_vfork_works" = xyes; then
16874
16875printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16876
16877else
16878
16879printf "%s\n" "#define vfork fork" >>confdefs.h
16880
16881fi
16882if test "x$ac_cv_func_fork_works" = xyes; then
16883
16884printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
16885
16886fi
16887
16888
16889printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
16890
16891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16892printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16893if test ${ac_cv_sys_largefile_source+y}
16894then :
16895  printf %s "(cached) " >&6
16896else $as_nop
16897  while :; do
16898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899/* end confdefs.h.  */
16900#include <sys/types.h> /* for off_t */
16901     #include <stdio.h>
16902int
16903main (void)
16904{
16905int (*fp) (FILE *, off_t, int) = fseeko;
16906     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_link "$LINENO"
16912then :
16913  ac_cv_sys_largefile_source=no; break
16914fi
16915rm -f core conftest.err conftest.$ac_objext conftest.beam \
16916    conftest$ac_exeext conftest.$ac_ext
16917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918/* end confdefs.h.  */
16919#define _LARGEFILE_SOURCE 1
16920#include <sys/types.h> /* for off_t */
16921     #include <stdio.h>
16922int
16923main (void)
16924{
16925int (*fp) (FILE *, off_t, int) = fseeko;
16926     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"
16932then :
16933  ac_cv_sys_largefile_source=1; break
16934fi
16935rm -f core conftest.err conftest.$ac_objext conftest.beam \
16936    conftest$ac_exeext conftest.$ac_ext
16937  ac_cv_sys_largefile_source=unknown
16938  break
16939done
16940fi
16941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16942printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
16943case $ac_cv_sys_largefile_source in #(
16944  no | unknown) ;;
16945  *)
16946printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
16947;;
16948esac
16949rm -rf conftest*
16950
16951# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16952# in glibc 2.1.3, but that breaks too many other things.
16953# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16954if test $ac_cv_sys_largefile_source != unknown; then
16955
16956printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
16957
16958fi
16959
16960
16961# Check whether --enable-largefile was given.
16962if test ${enable_largefile+y}
16963then :
16964  enableval=$enable_largefile;
16965fi
16966
16967if test "$enable_largefile" != no; then
16968
16969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16970printf %s "checking for special C compiler options needed for large files... " >&6; }
16971if test ${ac_cv_sys_largefile_CC+y}
16972then :
16973  printf %s "(cached) " >&6
16974else $as_nop
16975  ac_cv_sys_largefile_CC=no
16976     if test "$GCC" != yes; then
16977       ac_save_CC=$CC
16978       while :; do
16979	 # IRIX 6.2 and later do not support large files by default,
16980	 # so use the C compiler's -n32 option if that helps.
16981	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982/* end confdefs.h.  */
16983#include <sys/types.h>
16984 /* Check that off_t can represent 2**63 - 1 correctly.
16985    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16986    since some C++ compilers masquerading as C compilers
16987    incorrectly reject 9223372036854775807.  */
16988#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16989  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16990		       && LARGE_OFF_T % 2147483647 == 1)
16991		      ? 1 : -1];
16992int
16993main (void)
16994{
16995
16996  ;
16997  return 0;
16998}
16999_ACEOF
17000	 if ac_fn_c_try_compile "$LINENO"
17001then :
17002  break
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.beam
17005	 CC="$CC -n32"
17006	 if ac_fn_c_try_compile "$LINENO"
17007then :
17008  ac_cv_sys_largefile_CC=' -n32'; break
17009fi
17010rm -f core conftest.err conftest.$ac_objext conftest.beam
17011	 break
17012       done
17013       CC=$ac_save_CC
17014       rm -f conftest.$ac_ext
17015    fi
17016fi
17017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17018printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
17019  if test "$ac_cv_sys_largefile_CC" != no; then
17020    CC=$CC$ac_cv_sys_largefile_CC
17021  fi
17022
17023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17024printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17025if test ${ac_cv_sys_file_offset_bits+y}
17026then :
17027  printf %s "(cached) " >&6
17028else $as_nop
17029  while :; do
17030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031/* end confdefs.h.  */
17032#include <sys/types.h>
17033 /* Check that off_t can represent 2**63 - 1 correctly.
17034    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17035    since some C++ compilers masquerading as C compilers
17036    incorrectly reject 9223372036854775807.  */
17037#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17038  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17039		       && LARGE_OFF_T % 2147483647 == 1)
17040		      ? 1 : -1];
17041int
17042main (void)
17043{
17044
17045  ;
17046  return 0;
17047}
17048_ACEOF
17049if ac_fn_c_try_compile "$LINENO"
17050then :
17051  ac_cv_sys_file_offset_bits=no; break
17052fi
17053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055/* end confdefs.h.  */
17056#define _FILE_OFFSET_BITS 64
17057#include <sys/types.h>
17058 /* Check that off_t can represent 2**63 - 1 correctly.
17059    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17060    since some C++ compilers masquerading as C compilers
17061    incorrectly reject 9223372036854775807.  */
17062#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17063  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17064		       && LARGE_OFF_T % 2147483647 == 1)
17065		      ? 1 : -1];
17066int
17067main (void)
17068{
17069
17070  ;
17071  return 0;
17072}
17073_ACEOF
17074if ac_fn_c_try_compile "$LINENO"
17075then :
17076  ac_cv_sys_file_offset_bits=64; break
17077fi
17078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17079  ac_cv_sys_file_offset_bits=unknown
17080  break
17081done
17082fi
17083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17084printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
17085case $ac_cv_sys_file_offset_bits in #(
17086  no | unknown) ;;
17087  *)
17088printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
17089;;
17090esac
17091rm -rf conftest*
17092  if test $ac_cv_sys_file_offset_bits = unknown; then
17093    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17094printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
17095if test ${ac_cv_sys_large_files+y}
17096then :
17097  printf %s "(cached) " >&6
17098else $as_nop
17099  while :; do
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102#include <sys/types.h>
17103 /* Check that off_t can represent 2**63 - 1 correctly.
17104    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17105    since some C++ compilers masquerading as C compilers
17106    incorrectly reject 9223372036854775807.  */
17107#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17108  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17109		       && LARGE_OFF_T % 2147483647 == 1)
17110		      ? 1 : -1];
17111int
17112main (void)
17113{
17114
17115  ;
17116  return 0;
17117}
17118_ACEOF
17119if ac_fn_c_try_compile "$LINENO"
17120then :
17121  ac_cv_sys_large_files=no; break
17122fi
17123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125/* end confdefs.h.  */
17126#define _LARGE_FILES 1
17127#include <sys/types.h>
17128 /* Check that off_t can represent 2**63 - 1 correctly.
17129    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17130    since some C++ compilers masquerading as C compilers
17131    incorrectly reject 9223372036854775807.  */
17132#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
17133  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17134		       && LARGE_OFF_T % 2147483647 == 1)
17135		      ? 1 : -1];
17136int
17137main (void)
17138{
17139
17140  ;
17141  return 0;
17142}
17143_ACEOF
17144if ac_fn_c_try_compile "$LINENO"
17145then :
17146  ac_cv_sys_large_files=1; break
17147fi
17148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17149  ac_cv_sys_large_files=unknown
17150  break
17151done
17152fi
17153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17154printf "%s\n" "$ac_cv_sys_large_files" >&6; }
17155case $ac_cv_sys_large_files in #(
17156  no | unknown) ;;
17157  *)
17158printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
17159;;
17160esac
17161rm -rf conftest*
17162  fi
17163fi
17164
17165
17166
17167
17168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
17169printf %s "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
17170cache=_D_LARGEFILE_SOURCE_1
17171if eval test \${cv_prog_cc_flag_needed_$cache+y}
17172then :
17173  printf %s "(cached) " >&6
17174else $as_nop
17175
17176echo '
17177#include <stdio.h>
17178int test() {
17179        int a = fseeko(stdin, 0, 0);
17180        return a;
17181}
17182' > conftest.c
17183echo 'void f(){}' >>conftest.c
17184if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
17185eval "cv_prog_cc_flag_needed_$cache=no"
17186else
17187
17188if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
17189eval "cv_prog_cc_flag_needed_$cache=yes"
17190else
17191eval "cv_prog_cc_flag_needed_$cache=fail"
17192#echo 'Test with flag fails too!'
17193#cat conftest.c
17194#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
17195#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
17196#exit 1
17197fi
17198
17199fi
17200rm -f conftest conftest.c conftest.o
17201
17202fi
17203
17204if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
17205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17206printf "%s\n" "yes" >&6; }
17207:
17208CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
17209else
17210if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
17211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17212printf "%s\n" "no" >&6; }
17213#echo 'Test with flag is no!'
17214#cat conftest.c
17215#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
17216#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
17217#exit 1
17218:
17219
17220else
17221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17222printf "%s\n" "failed" >&6; }
17223:
17224
17225fi
17226fi
17227
17228
17229
17230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
17231printf %s "checking if nonblocking sockets work... " >&6; }
17232if echo $host | grep mingw >/dev/null; then
17233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
17234printf "%s\n" "no (windows)" >&6; }
17235
17236printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
17237
17238else
17239if test "$cross_compiling" = yes
17240then :
17241
17242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
17243printf "%s\n" "crosscompile(yes)" >&6; }
17244
17245else $as_nop
17246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247/* end confdefs.h.  */
17248
17249
17250#include <stdio.h>
17251#include <string.h>
17252#include <stdlib.h>
17253#include <fcntl.h>
17254#include <errno.h>
17255#ifdef HAVE_SYS_TYPES_H
17256#include <sys/types.h>
17257#endif
17258#ifdef HAVE_SYS_SOCKET_H
17259#include <sys/socket.h>
17260#endif
17261#ifdef HAVE_NETINET_IN_H
17262#include <netinet/in.h>
17263#endif
17264#ifdef HAVE_ARPA_INET_H
17265#include <arpa/inet.h>
17266#endif
17267#ifdef HAVE_UNISTD_H
17268#include <unistd.h>
17269#endif
17270#ifdef HAVE_TIME_H
17271#include <time.h>
17272#endif
17273
17274int main(void)
17275{
17276	int port;
17277	int sfd, cfd;
17278	int num = 10;
17279	int i, p;
17280	struct sockaddr_in a;
17281	/* test if select and nonblocking reads work well together */
17282	/* open port.
17283	   fork child to send 10 messages.
17284	   select to read.
17285	   then try to nonblocking read the 10 messages
17286	   then, nonblocking read must give EAGAIN
17287	*/
17288
17289	port = 12345 + (time(0)%32);
17290	sfd = socket(PF_INET, SOCK_DGRAM, 0);
17291	if(sfd == -1) {
17292		perror("socket");
17293		return 1;
17294	}
17295	memset(&a, 0, sizeof(a));
17296	a.sin_family = AF_INET;
17297	a.sin_port = htons(port);
17298	a.sin_addr.s_addr = inet_addr("127.0.0.1");
17299	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
17300		perror("bind");
17301		return 1;
17302	}
17303	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
17304		perror("fcntl");
17305		return 1;
17306	}
17307
17308	cfd = socket(PF_INET, SOCK_DGRAM, 0);
17309	if(cfd == -1) {
17310		perror("client socket");
17311		return 1;
17312	}
17313	a.sin_port = 0;
17314	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
17315		perror("client bind");
17316		return 1;
17317	}
17318	a.sin_port = htons(port);
17319
17320	/* no handler, causes exit in 10 seconds */
17321	alarm(10);
17322
17323	/* send and receive on the socket */
17324	if((p=fork()) == 0) {
17325		for(i=0; i<num; i++) {
17326			if(sendto(cfd, &i, sizeof(i), 0,
17327				(struct sockaddr*)&a, sizeof(a)) < 0) {
17328				perror("sendto");
17329				return 1;
17330			}
17331		}
17332	} else {
17333		/* parent */
17334		fd_set rset;
17335		int x;
17336		if(p == -1) {
17337			perror("fork");
17338			return 1;
17339		}
17340		FD_ZERO(&rset);
17341		FD_SET(sfd, &rset);
17342		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
17343			perror("select");
17344			return 1;
17345		}
17346		i = 0;
17347		while(i < num) {
17348			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
17349				if(errno == EAGAIN)
17350					continue;
17351				perror("recv");
17352				return 1;
17353			}
17354			i++;
17355		}
17356		/* now we want to get EAGAIN: nonblocking goodness */
17357		errno = 0;
17358		recv(sfd, &x, sizeof(x), 0);
17359		if(errno != EAGAIN) {
17360			perror("trying to recv again");
17361			return 1;
17362		}
17363		/* EAGAIN encountered */
17364	}
17365
17366	close(sfd);
17367	close(cfd);
17368	return 0;
17369}
17370
17371_ACEOF
17372if ac_fn_c_try_run "$LINENO"
17373then :
17374
17375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17376printf "%s\n" "yes" >&6; }
17377
17378else $as_nop
17379
17380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381printf "%s\n" "no" >&6; }
17382
17383printf "%s\n" "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
17384
17385
17386fi
17387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17388  conftest.$ac_objext conftest.beam conftest.$ac_ext
17389fi
17390
17391fi
17392
17393
17394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
17395printf %s "checking whether mkdir has one arg... " >&6; }
17396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398
17399#include <stdio.h>
17400#include <unistd.h>
17401#ifdef HAVE_WINSOCK2_H
17402#include <winsock2.h>
17403#endif
17404#ifdef HAVE_SYS_STAT_H
17405#include <sys/stat.h>
17406#endif
17407
17408int
17409main (void)
17410{
17411
17412	(void)mkdir("directory");
17413
17414  ;
17415  return 0;
17416}
17417_ACEOF
17418if ac_fn_c_try_compile "$LINENO"
17419then :
17420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17421printf "%s\n" "yes" >&6; }
17422
17423printf "%s\n" "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
17424
17425
17426else $as_nop
17427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428printf "%s\n" "no" >&6; }
17429
17430fi
17431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17432
17433
17434  for ac_func in strptime
17435do :
17436  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
17437if test "x$ac_cv_func_strptime" = xyes
17438then :
17439  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
17440
17441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
17442printf %s "checking whether strptime works... " >&6; }
17443if test c${cross_compiling} = cno; then
17444if test "$cross_compiling" = yes
17445then :
17446  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17447printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17448as_fn_error $? "cannot run test program while cross compiling
17449See \`config.log' for more details" "$LINENO" 5; }
17450else $as_nop
17451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452/* end confdefs.h.  */
17453
17454#define _XOPEN_SOURCE 600
17455#include <time.h>
17456int main(void) { struct tm tm; char *res;
17457res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
17458if (!res) return 2;
17459res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
17460if (!res) return 1; return 0; }
17461
17462_ACEOF
17463if ac_fn_c_try_run "$LINENO"
17464then :
17465  eval "ac_cv_c_strptime_works=yes"
17466else $as_nop
17467  eval "ac_cv_c_strptime_works=no"
17468fi
17469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17470  conftest.$ac_objext conftest.beam conftest.$ac_ext
17471fi
17472
17473else
17474eval "ac_cv_c_strptime_works=maybe"
17475fi
17476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
17477printf "%s\n" "$ac_cv_c_strptime_works" >&6; }
17478if test $ac_cv_c_strptime_works = no; then
17479case " $LIBOBJS " in
17480  *" strptime.$ac_objext "* ) ;;
17481  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
17482 ;;
17483esac
17484
17485else
17486
17487printf "%s\n" "#define STRPTIME_WORKS 1" >>confdefs.h
17488
17489fi
17490
17491else $as_nop
17492  case " $LIBOBJS " in
17493  *" strptime.$ac_objext "* ) ;;
17494  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
17495 ;;
17496esac
17497
17498fi
17499
17500done
17501
17502# check if we can use SO_REUSEPORT
17503reuseport_default=0
17504if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
17505if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
17506if test "$reuseport_default" = 1; then
17507
17508printf "%s\n" "#define REUSEPORT_DEFAULT 1" >>confdefs.h
17509
17510else
17511
17512printf "%s\n" "#define REUSEPORT_DEFAULT 0" >>confdefs.h
17513
17514fi
17515
17516# Include systemd.m4 - begin
17517#   macros for configuring systemd
17518#   Copyright 2015, Sami Kerola, CloudFlare.
17519#   BSD licensed.
17520# Check whether --enable-systemd was given.
17521if test ${enable_systemd+y}
17522then :
17523  enableval=$enable_systemd;
17524else $as_nop
17525  enable_systemd=no
17526fi
17527
17528have_systemd=no
17529if test "x$enable_systemd" != xno
17530then :
17531
17532
17533
17534pkg_failed=no
17535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
17536printf %s "checking for SYSTEMD... " >&6; }
17537
17538if test -n "$SYSTEMD_CFLAGS"; then
17539    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
17540 elif test -n "$PKG_CONFIG"; then
17541    if test -n "$PKG_CONFIG" && \
17542    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
17543  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
17544  ac_status=$?
17545  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17546  test $ac_status = 0; }; then
17547  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
17548		      test "x$?" != "x0" && pkg_failed=yes
17549else
17550  pkg_failed=yes
17551fi
17552 else
17553    pkg_failed=untried
17554fi
17555if test -n "$SYSTEMD_LIBS"; then
17556    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
17557 elif test -n "$PKG_CONFIG"; then
17558    if test -n "$PKG_CONFIG" && \
17559    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
17560  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
17561  ac_status=$?
17562  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17563  test $ac_status = 0; }; then
17564  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
17565		      test "x$?" != "x0" && pkg_failed=yes
17566else
17567  pkg_failed=yes
17568fi
17569 else
17570    pkg_failed=untried
17571fi
17572
17573
17574
17575if test $pkg_failed = yes; then
17576   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577printf "%s\n" "no" >&6; }
17578
17579if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17580        _pkg_short_errors_supported=yes
17581else
17582        _pkg_short_errors_supported=no
17583fi
17584        if test $_pkg_short_errors_supported = yes; then
17585	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
17586        else
17587	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
17588        fi
17589	# Put the nasty error message in config.log where it belongs
17590	echo "$SYSTEMD_PKG_ERRORS" >&5
17591
17592	have_systemd=no
17593elif test $pkg_failed = untried; then
17594     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595printf "%s\n" "no" >&6; }
17596	have_systemd=no
17597else
17598	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
17599	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
17600        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17601printf "%s\n" "yes" >&6; }
17602	have_systemd=yes
17603fi
17604		if test "x$have_systemd" != "xyes"
17605then :
17606
17607
17608pkg_failed=no
17609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
17610printf %s "checking for SYSTEMD_DAEMON... " >&6; }
17611
17612if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
17613    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
17614 elif test -n "$PKG_CONFIG"; then
17615    if test -n "$PKG_CONFIG" && \
17616    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17617  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17618  ac_status=$?
17619  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17620  test $ac_status = 0; }; then
17621  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
17622		      test "x$?" != "x0" && pkg_failed=yes
17623else
17624  pkg_failed=yes
17625fi
17626 else
17627    pkg_failed=untried
17628fi
17629if test -n "$SYSTEMD_DAEMON_LIBS"; then
17630    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
17631 elif test -n "$PKG_CONFIG"; then
17632    if test -n "$PKG_CONFIG" && \
17633    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
17634  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
17635  ac_status=$?
17636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17637  test $ac_status = 0; }; then
17638  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
17639		      test "x$?" != "x0" && pkg_failed=yes
17640else
17641  pkg_failed=yes
17642fi
17643 else
17644    pkg_failed=untried
17645fi
17646
17647
17648
17649if test $pkg_failed = yes; then
17650   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651printf "%s\n" "no" >&6; }
17652
17653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17654        _pkg_short_errors_supported=yes
17655else
17656        _pkg_short_errors_supported=no
17657fi
17658        if test $_pkg_short_errors_supported = yes; then
17659	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17660        else
17661	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
17662        fi
17663	# Put the nasty error message in config.log where it belongs
17664	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
17665
17666	have_systemd_daemon=no
17667elif test $pkg_failed = untried; then
17668     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669printf "%s\n" "no" >&6; }
17670	have_systemd_daemon=no
17671else
17672	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
17673	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
17674        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17675printf "%s\n" "yes" >&6; }
17676	have_systemd_daemon=yes
17677fi
17678		if test "x$have_systemd_daemon" = "xyes"
17679then :
17680  have_systemd=yes
17681fi
17682
17683fi
17684	case $enable_systemd:$have_systemd in #(
17685  yes:no) :
17686    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
17687  *:yes) :
17688
17689printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
17690
17691		LIBS="$LIBS $SYSTEMD_LIBS"
17692
17693	 ;; #(
17694  *) :
17695     ;;
17696esac
17697
17698
17699fi
17700 if test "x$have_systemd" = xyes; then
17701  USE_SYSTEMD_TRUE=
17702  USE_SYSTEMD_FALSE='#'
17703else
17704  USE_SYSTEMD_TRUE='#'
17705  USE_SYSTEMD_FALSE=
17706fi
17707
17708
17709# Include systemd.m4 - end
17710
17711# set memory allocation checking if requested
17712# Check whether --enable-alloc-checks was given.
17713if test ${enable_alloc_checks+y}
17714then :
17715  enableval=$enable_alloc_checks;
17716fi
17717
17718# Check whether --enable-alloc-lite was given.
17719if test ${enable_alloc_lite+y}
17720then :
17721  enableval=$enable_alloc_lite;
17722fi
17723
17724# Check whether --enable-alloc-nonregional was given.
17725if test ${enable_alloc_nonregional+y}
17726then :
17727  enableval=$enable_alloc_nonregional;
17728fi
17729
17730if test x_$enable_alloc_nonregional = x_yes; then
17731
17732printf "%s\n" "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
17733
17734fi
17735if test x_$enable_alloc_checks = x_yes; then
17736
17737printf "%s\n" "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
17738
17739	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
17740
17741	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
17742
17743else
17744	if test x_$enable_alloc_lite = x_yes; then
17745
17746printf "%s\n" "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
17747
17748	else
17749
17750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17751printf %s "checking for GNU libc compatible malloc... " >&6; }
17752	if test "$cross_compiling" = yes
17753then :
17754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
17755printf "%s\n" "no (crosscompile)" >&6; }
17756	case " $LIBOBJS " in
17757  *" malloc.$ac_objext "* ) ;;
17758  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17759 ;;
17760esac
17761
17762
17763printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h
17764
17765else $as_nop
17766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767/* end confdefs.h.  */
17768#if defined STDC_HEADERS || defined HAVE_STDLIB_H
17769#include <stdlib.h>
17770#else
17771char *malloc ();
17772#endif
17773
17774int
17775main (void)
17776{
17777 if(malloc(0) != 0) return 1;
17778  ;
17779  return 0;
17780}
17781
17782_ACEOF
17783if ac_fn_c_try_run "$LINENO"
17784then :
17785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786printf "%s\n" "no" >&6; }
17787	case " $LIBOBJS " in
17788  *" malloc.$ac_objext "* ) ;;
17789  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
17790 ;;
17791esac
17792
17793
17794printf "%s\n" "#define malloc rpl_malloc_unbound" >>confdefs.h
17795
17796else $as_nop
17797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798printf "%s\n" "yes" >&6; }
17799
17800printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
17801
17802fi
17803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17804  conftest.$ac_objext conftest.beam conftest.$ac_ext
17805fi
17806
17807
17808	fi
17809fi
17810
17811# check windows threads (we use them, not pthreads, on windows).
17812if test "$on_mingw" = "yes"; then
17813# check windows threads
17814	ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
17815"
17816if test "x$ac_cv_header_windows_h" = xyes
17817then :
17818  printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
17819
17820fi
17821
17822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
17823printf %s "checking for CreateThread... " >&6; }
17824	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h.  */
17826
17827#ifdef HAVE_WINDOWS_H
17828#include <windows.h>
17829#endif
17830
17831int
17832main (void)
17833{
17834
17835	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
17836
17837  ;
17838  return 0;
17839}
17840_ACEOF
17841if ac_fn_c_try_compile "$LINENO"
17842then :
17843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17844printf "%s\n" "yes" >&6; }
17845
17846printf "%s\n" "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
17847
17848
17849else $as_nop
17850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17851printf "%s\n" "no" >&6; }
17852
17853fi
17854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17855
17856else
17857# not on mingw, check thread libraries.
17858
17859# check for thread library.
17860# check this first, so that the pthread lib does not get linked in via
17861# libssl or libpython, and thus distorts the tests, and we end up using
17862# the non-threadsafe C libraries.
17863
17864# Check whether --with-pthreads was given.
17865if test ${with_pthreads+y}
17866then :
17867  withval=$with_pthreads;
17868else $as_nop
17869   withval="yes"
17870fi
17871
17872ub_have_pthreads=no
17873if test x_$withval != x_no; then
17874
17875
17876ac_ext=c
17877ac_cpp='$CPP $CPPFLAGS'
17878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880ac_compiler_gnu=$ac_cv_c_compiler_gnu
17881
17882ax_pthread_ok=no
17883
17884# We used to check for pthread.h first, but this fails if pthread.h
17885# requires special compiler flags (e.g. on True64 or Sequent).
17886# It gets checked for in the link test anyway.
17887
17888# First of all, check if the user has set any of the PTHREAD_LIBS,
17889# etcetera environment variables, and if threads linking works using
17890# them:
17891if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17892        save_CFLAGS="$CFLAGS"
17893        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17894        save_LIBS="$LIBS"
17895        LIBS="$PTHREAD_LIBS $LIBS"
17896        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17897printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17898        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899/* end confdefs.h.  */
17900
17901/* Override any GCC internal prototype to avoid an error.
17902   Use char because int might match the return type of a GCC
17903   builtin and then its argument prototype would still apply.  */
17904char pthread_join ();
17905int
17906main (void)
17907{
17908return pthread_join ();
17909  ;
17910  return 0;
17911}
17912_ACEOF
17913if ac_fn_c_try_link "$LINENO"
17914then :
17915  ax_pthread_ok=yes
17916fi
17917rm -f core conftest.err conftest.$ac_objext conftest.beam \
17918    conftest$ac_exeext conftest.$ac_ext
17919        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
17920printf "%s\n" "$ax_pthread_ok" >&6; }
17921        if test x"$ax_pthread_ok" = xno; then
17922                PTHREAD_LIBS=""
17923                PTHREAD_CFLAGS=""
17924        fi
17925        LIBS="$save_LIBS"
17926        CFLAGS="$save_CFLAGS"
17927fi
17928
17929# We must check for the threads library under a number of different
17930# names; the ordering is very important because some systems
17931# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17932# libraries is broken (non-POSIX).
17933
17934# Create a list of thread flags to try.  Items starting with a "-" are
17935# C compiler flags, and other items are library names, except for "none"
17936# which indicates that we try without any flags at all, and "pthread-config"
17937# which is a program returning the flags for the Pth emulation library.
17938
17939ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17940
17941# The ordering *is* (sometimes) important.  Some notes on the
17942# individual items follow:
17943
17944# pthreads: AIX (must check this before -lpthread)
17945# none: in case threads are in libc; should be tried before -Kthread and
17946#       other compiler flags to prevent continual compiler warnings
17947# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17948# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17949# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17950# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17951# -pthreads: Solaris/gcc
17952# -mthreads: Mingw32/gcc, Lynx/gcc
17953# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17954#      doesn't hurt to check since this sometimes defines pthreads too;
17955#      also defines -D_REENTRANT)
17956#      ... -mt is also the pthreads flag for HP/aCC
17957# pthread: Linux, etcetera
17958# --thread-safe: KAI C++
17959# pthread-config: use pthread-config program (for GNU Pth library)
17960
17961case ${host_os} in
17962        solaris*)
17963
17964        # On Solaris (at least, for some versions), libc contains stubbed
17965        # (non-functional) versions of the pthreads routines, so link-based
17966        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
17967        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17968        # a function called by this macro, so we could check for that, but
17969        # who knows whether they'll stub that too in a future libc.)  So,
17970        # we'll just look for -pthreads and -lpthread first:
17971
17972        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
17973        ;;
17974
17975        darwin*)
17976        ax_pthread_flags="-pthread $ax_pthread_flags"
17977        ;;
17978esac
17979
17980# Clang doesn't consider unrecognized options an error unless we specify
17981# -Werror. We throw in some extra Clang-specific options to ensure that
17982# this doesn't happen for GCC, which also accepts -Werror.
17983
17984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
17985printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
17986save_CFLAGS="$CFLAGS"
17987ax_pthread_extra_flags="-Werror"
17988CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
17989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990/* end confdefs.h.  */
17991int foo(void);
17992int
17993main (void)
17994{
17995foo()
17996  ;
17997  return 0;
17998}
17999_ACEOF
18000if ac_fn_c_try_compile "$LINENO"
18001then :
18002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18003printf "%s\n" "yes" >&6; }
18004else $as_nop
18005  ax_pthread_extra_flags=
18006                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007printf "%s\n" "no" >&6; }
18008fi
18009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18010CFLAGS="$save_CFLAGS"
18011
18012if test x"$ax_pthread_ok" = xno; then
18013for flag in $ax_pthread_flags; do
18014
18015        case $flag in
18016                none)
18017                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18018printf %s "checking whether pthreads work without any flags... " >&6; }
18019                ;;
18020
18021                -*)
18022                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18023printf %s "checking whether pthreads work with $flag... " >&6; }
18024                PTHREAD_CFLAGS="$flag"
18025                ;;
18026
18027                pthread-config)
18028                # Extract the first word of "pthread-config", so it can be a program name with args.
18029set dummy pthread-config; ac_word=$2
18030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18031printf %s "checking for $ac_word... " >&6; }
18032if test ${ac_cv_prog_ax_pthread_config+y}
18033then :
18034  printf %s "(cached) " >&6
18035else $as_nop
18036  if test -n "$ax_pthread_config"; then
18037  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18038else
18039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18040for as_dir in $PATH
18041do
18042  IFS=$as_save_IFS
18043  case $as_dir in #(((
18044    '') as_dir=./ ;;
18045    */) ;;
18046    *) as_dir=$as_dir/ ;;
18047  esac
18048    for ac_exec_ext in '' $ac_executable_extensions; do
18049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18050    ac_cv_prog_ax_pthread_config="yes"
18051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18052    break 2
18053  fi
18054done
18055  done
18056IFS=$as_save_IFS
18057
18058  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18059fi
18060fi
18061ax_pthread_config=$ac_cv_prog_ax_pthread_config
18062if test -n "$ax_pthread_config"; then
18063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18064printf "%s\n" "$ax_pthread_config" >&6; }
18065else
18066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18067printf "%s\n" "no" >&6; }
18068fi
18069
18070
18071                if test x"$ax_pthread_config" = xno; then continue; fi
18072                PTHREAD_CFLAGS="`pthread-config --cflags`"
18073                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18074                ;;
18075
18076                *)
18077                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18078printf %s "checking for the pthreads library -l$flag... " >&6; }
18079                PTHREAD_LIBS="-l$flag"
18080                ;;
18081        esac
18082
18083        save_LIBS="$LIBS"
18084        save_CFLAGS="$CFLAGS"
18085        LIBS="$PTHREAD_LIBS $LIBS"
18086        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
18087
18088        # Check for various functions.  We must include pthread.h,
18089        # since some functions may be macros.  (On the Sequent, we
18090        # need a special flag -Kthread to make this header compile.)
18091        # We check for pthread_join because it is in -lpthread on IRIX
18092        # while pthread_create is in libc.  We check for pthread_attr_init
18093        # due to DEC craziness with -lpthreads.  We check for
18094        # pthread_cleanup_push because it is one of the few pthread
18095        # functions on Solaris that doesn't have a non-functional libc stub.
18096        # We try pthread_create on general principles.
18097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098/* end confdefs.h.  */
18099#include <pthread.h>
18100                        static void routine(void *a) { *((int*)a) = 0; }
18101                        static void *start_routine(void *a) { return a; }
18102int
18103main (void)
18104{
18105pthread_t th; pthread_attr_t attr;
18106                        pthread_create(&th, 0, start_routine, 0);
18107                        pthread_join(th, 0);
18108                        pthread_attr_init(&attr);
18109                        pthread_cleanup_push(routine, 0);
18110                        pthread_cleanup_pop(0) /* ; */
18111  ;
18112  return 0;
18113}
18114_ACEOF
18115if ac_fn_c_try_link "$LINENO"
18116then :
18117  ax_pthread_ok=yes
18118fi
18119rm -f core conftest.err conftest.$ac_objext conftest.beam \
18120    conftest$ac_exeext conftest.$ac_ext
18121
18122        LIBS="$save_LIBS"
18123        CFLAGS="$save_CFLAGS"
18124
18125        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18126printf "%s\n" "$ax_pthread_ok" >&6; }
18127        if test "x$ax_pthread_ok" = xyes; then
18128                break;
18129        fi
18130
18131        PTHREAD_LIBS=""
18132        PTHREAD_CFLAGS=""
18133done
18134fi
18135
18136# Various other checks:
18137if test "x$ax_pthread_ok" = xyes; then
18138        save_LIBS="$LIBS"
18139        LIBS="$PTHREAD_LIBS $LIBS"
18140        save_CFLAGS="$CFLAGS"
18141        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18142
18143        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18144        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18145printf %s "checking for joinable pthread attribute... " >&6; }
18146        attr_name=unknown
18147        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18148            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149/* end confdefs.h.  */
18150#include <pthread.h>
18151int
18152main (void)
18153{
18154int attr = $attr; return attr /* ; */
18155  ;
18156  return 0;
18157}
18158_ACEOF
18159if ac_fn_c_try_link "$LINENO"
18160then :
18161  attr_name=$attr; break
18162fi
18163rm -f core conftest.err conftest.$ac_objext conftest.beam \
18164    conftest$ac_exeext conftest.$ac_ext
18165        done
18166        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18167printf "%s\n" "$attr_name" >&6; }
18168        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18169
18170printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
18171
18172        fi
18173
18174        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18175printf %s "checking if more special flags are required for pthreads... " >&6; }
18176        flag=no
18177        case ${host_os} in
18178            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
18179            osf* | hpux*) flag="-D_REENTRANT";;
18180            solaris*)
18181            if test "$GCC" = "yes"; then
18182                flag="-D_REENTRANT"
18183            else
18184                # TODO: What about Clang on Solaris?
18185                flag="-mt -D_REENTRANT"
18186            fi
18187            ;;
18188        esac
18189        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
18190printf "%s\n" "$flag" >&6; }
18191        if test "x$flag" != xno; then
18192            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18193        fi
18194
18195        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18196printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18197if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
18198then :
18199  printf %s "(cached) " >&6
18200else $as_nop
18201
18202                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203/* end confdefs.h.  */
18204#include <pthread.h>
18205int
18206main (void)
18207{
18208int i = PTHREAD_PRIO_INHERIT;
18209  ;
18210  return 0;
18211}
18212_ACEOF
18213if ac_fn_c_try_link "$LINENO"
18214then :
18215  ax_cv_PTHREAD_PRIO_INHERIT=yes
18216else $as_nop
18217  ax_cv_PTHREAD_PRIO_INHERIT=no
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.beam \
18220    conftest$ac_exeext conftest.$ac_ext
18221
18222fi
18223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18224printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18225        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
18226then :
18227
18228printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18229
18230fi
18231
18232        LIBS="$save_LIBS"
18233        CFLAGS="$save_CFLAGS"
18234
18235        # More AIX lossage: compile with *_r variant
18236        if test "x$GCC" != xyes; then
18237            case $host_os in
18238                aix*)
18239                case "x/$CC" in #(
18240  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18241    #handle absolute path differently from PATH based program lookup
18242                   case "x$CC" in #(
18243  x/*) :
18244    if as_fn_executable_p ${CC}_r
18245then :
18246  PTHREAD_CC="${CC}_r"
18247fi ;; #(
18248  *) :
18249    for ac_prog in ${CC}_r
18250do
18251  # Extract the first word of "$ac_prog", so it can be a program name with args.
18252set dummy $ac_prog; ac_word=$2
18253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18254printf %s "checking for $ac_word... " >&6; }
18255if test ${ac_cv_prog_PTHREAD_CC+y}
18256then :
18257  printf %s "(cached) " >&6
18258else $as_nop
18259  if test -n "$PTHREAD_CC"; then
18260  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18261else
18262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263for as_dir in $PATH
18264do
18265  IFS=$as_save_IFS
18266  case $as_dir in #(((
18267    '') as_dir=./ ;;
18268    */) ;;
18269    *) as_dir=$as_dir/ ;;
18270  esac
18271    for ac_exec_ext in '' $ac_executable_extensions; do
18272  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18273    ac_cv_prog_PTHREAD_CC="$ac_prog"
18274    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18275    break 2
18276  fi
18277done
18278  done
18279IFS=$as_save_IFS
18280
18281fi
18282fi
18283PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18284if test -n "$PTHREAD_CC"; then
18285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18286printf "%s\n" "$PTHREAD_CC" >&6; }
18287else
18288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289printf "%s\n" "no" >&6; }
18290fi
18291
18292
18293  test -n "$PTHREAD_CC" && break
18294done
18295test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18296 ;;
18297esac ;; #(
18298  *) :
18299     ;;
18300esac
18301                ;;
18302            esac
18303        fi
18304fi
18305
18306test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18307
18308
18309
18310
18311
18312# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18313if test x"$ax_pthread_ok" = xyes; then
18314
18315
18316printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
18317
18318		if test -n "$PTHREAD_LIBS"; then
18319		  LIBS="$PTHREAD_LIBS $LIBS"
18320		fi
18321		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18322		CC="$PTHREAD_CC"
18323		ub_have_pthreads=yes
18324		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
18325"
18326if test "x$ac_cv_type_pthread_spinlock_t" = xyes
18327then :
18328
18329printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h
18330
18331
18332fi
18333ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
18334"
18335if test "x$ac_cv_type_pthread_rwlock_t" = xyes
18336then :
18337
18338printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h
18339
18340
18341fi
18342
18343
18344		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
18345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
18346printf %s "checking if -pthread unused during linking... " >&6; }
18347		# catch clang warning 'argument unused during compilation'
18348		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349/* end confdefs.h.  */
18350$ac_includes_default
18351
18352int main(void) {return 0;}
18353
18354_ACEOF
18355		pthread_unused="yes"
18356		# first compile
18357		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
18358		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
18359		if test $? = 0; then
18360			# then link
18361			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
18362			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
18363			if test $? -ne 0; then
18364				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18365printf "%s\n" "yes" >&6; }
18366				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
18367				PTHREAD_CFLAGS_ONLY="-pthread"
18368
18369			else
18370				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371printf "%s\n" "no" >&6; }
18372			fi
18373		else
18374			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375printf "%s\n" "no" >&6; }
18376		fi # endif cc successful
18377		rm -f conftest conftest.c conftest.o
18378		fi # endif -pthread in CFLAGS
18379
18380
18381        :
18382else
18383        ax_pthread_ok=no
18384
18385fi
18386ac_ext=c
18387ac_cpp='$CPP $CPPFLAGS'
18388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18390ac_compiler_gnu=$ac_cv_c_compiler_gnu
18391
18392
18393fi
18394
18395# check solaris thread library
18396
18397# Check whether --with-solaris-threads was given.
18398if test ${with_solaris_threads+y}
18399then :
18400  withval=$with_solaris_threads;
18401else $as_nop
18402   withval="no"
18403fi
18404
18405ub_have_sol_threads=no
18406if test x_$withval != x_no; then
18407	if test x_$ub_have_pthreads != x_no; then
18408	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
18409printf "%s\n" "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
18410	else
18411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
18412printf %s "checking for library containing thr_create... " >&6; }
18413if test ${ac_cv_search_thr_create+y}
18414then :
18415  printf %s "(cached) " >&6
18416else $as_nop
18417  ac_func_search_save_LIBS=$LIBS
18418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419/* end confdefs.h.  */
18420
18421/* Override any GCC internal prototype to avoid an error.
18422   Use char because int might match the return type of a GCC
18423   builtin and then its argument prototype would still apply.  */
18424char thr_create ();
18425int
18426main (void)
18427{
18428return thr_create ();
18429  ;
18430  return 0;
18431}
18432_ACEOF
18433for ac_lib in '' thread
18434do
18435  if test -z "$ac_lib"; then
18436    ac_res="none required"
18437  else
18438    ac_res=-l$ac_lib
18439    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18440  fi
18441  if ac_fn_c_try_link "$LINENO"
18442then :
18443  ac_cv_search_thr_create=$ac_res
18444fi
18445rm -f core conftest.err conftest.$ac_objext conftest.beam \
18446    conftest$ac_exeext
18447  if test ${ac_cv_search_thr_create+y}
18448then :
18449  break
18450fi
18451done
18452if test ${ac_cv_search_thr_create+y}
18453then :
18454
18455else $as_nop
18456  ac_cv_search_thr_create=no
18457fi
18458rm conftest.$ac_ext
18459LIBS=$ac_func_search_save_LIBS
18460fi
18461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
18462printf "%s\n" "$ac_cv_search_thr_create" >&6; }
18463ac_res=$ac_cv_search_thr_create
18464if test "$ac_res" != no
18465then :
18466  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18467
18468
18469printf "%s\n" "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
18470
18471
18472
18473
18474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
18475printf %s "checking whether $CC supports -mt... " >&6; }
18476cache=`echo mt | sed 'y%.=/+-%___p_%'`
18477if eval test \${cv_prog_cc_flag_$cache+y}
18478then :
18479  printf %s "(cached) " >&6
18480else $as_nop
18481
18482echo 'void f(void){}' >conftest.c
18483if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
18484eval "cv_prog_cc_flag_$cache=yes"
18485else
18486eval "cv_prog_cc_flag_$cache=no"
18487fi
18488rm -f conftest conftest.o conftest.c
18489
18490fi
18491
18492if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
18493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18494printf "%s\n" "yes" >&6; }
18495:
18496CFLAGS="$CFLAGS -mt"
18497else
18498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499printf "%s\n" "no" >&6; }
18500:
18501CFLAGS="$CFLAGS -D_REENTRANT"
18502fi
18503
18504		ub_have_sol_threads=yes
18505
18506else $as_nop
18507
18508		as_fn_error $? "no solaris threads found." "$LINENO" 5
18509
18510fi
18511
18512	fi
18513fi
18514
18515fi # end of non-mingw check of thread libraries
18516
18517# Check for SYSLOG_FACILITY
18518
18519# Check whether --with-syslog-facility was given.
18520if test ${with_syslog_facility+y}
18521then :
18522  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
18523fi
18524
18525case "${UNBOUND_SYSLOG_FACILITY}" in
18526
18527  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
18528
18529           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
18530
18531esac
18532
18533printf "%s\n" "#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}" >>confdefs.h
18534
18535
18536# Check for dynamic library module
18537
18538# Check whether --with-dynlibmodule was given.
18539if test ${with_dynlibmodule+y}
18540then :
18541  withval=$with_dynlibmodule;
18542else $as_nop
18543   withval="no"
18544fi
18545
18546
18547if test x_$withval != x_no; then
18548
18549printf "%s\n" "#define WITH_DYNLIBMODULE 1" >>confdefs.h
18550
18551  WITH_DYNLIBMODULE=yes
18552
18553  DYNLIBMOD_OBJ="dynlibmod.lo"
18554
18555  DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
18556
18557  if test $on_mingw = "no"; then
18558    # link with -ldl if not already there, for all executables because
18559    # dlopen call is in the dynlib module.  For unbound executable, also
18560    # export symbols.
18561    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18562printf %s "checking for library containing dlopen... " >&6; }
18563if test ${ac_cv_search_dlopen+y}
18564then :
18565  printf %s "(cached) " >&6
18566else $as_nop
18567  ac_func_search_save_LIBS=$LIBS
18568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18569/* end confdefs.h.  */
18570
18571/* Override any GCC internal prototype to avoid an error.
18572   Use char because int might match the return type of a GCC
18573   builtin and then its argument prototype would still apply.  */
18574char dlopen ();
18575int
18576main (void)
18577{
18578return dlopen ();
18579  ;
18580  return 0;
18581}
18582_ACEOF
18583for ac_lib in '' dl
18584do
18585  if test -z "$ac_lib"; then
18586    ac_res="none required"
18587  else
18588    ac_res=-l$ac_lib
18589    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18590  fi
18591  if ac_fn_c_try_link "$LINENO"
18592then :
18593  ac_cv_search_dlopen=$ac_res
18594fi
18595rm -f core conftest.err conftest.$ac_objext conftest.beam \
18596    conftest$ac_exeext
18597  if test ${ac_cv_search_dlopen+y}
18598then :
18599  break
18600fi
18601done
18602if test ${ac_cv_search_dlopen+y}
18603then :
18604
18605else $as_nop
18606  ac_cv_search_dlopen=no
18607fi
18608rm conftest.$ac_ext
18609LIBS=$ac_func_search_save_LIBS
18610fi
18611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18612printf "%s\n" "$ac_cv_search_dlopen" >&6; }
18613ac_res=$ac_cv_search_dlopen
18614if test "$ac_res" != no
18615then :
18616  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18617
18618fi
18619
18620    DYNLIBMOD_EXTRALIBS="-export-dynamic"
18621  else
18622    DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
18623  fi
18624
18625fi
18626
18627# Check for PyUnbound
18628
18629# Check whether --with-pyunbound was given.
18630if test ${with_pyunbound+y}
18631then :
18632  withval=$with_pyunbound;
18633else $as_nop
18634   withval="no"
18635fi
18636
18637
18638ub_test_python=no
18639ub_with_pyunbound=no
18640if test x_$withval != x_no; then
18641   ub_with_pyunbound=yes
18642   ub_test_python=yes
18643fi
18644
18645# Check for Python module
18646
18647# Check whether --with-pythonmodule was given.
18648if test ${with_pythonmodule+y}
18649then :
18650  withval=$with_pythonmodule;
18651else $as_nop
18652   withval="no"
18653fi
18654
18655
18656ub_with_pythonmod=no
18657if test x_$withval != x_no; then
18658   ub_with_pythonmod=yes
18659   ub_test_python=yes
18660fi
18661
18662# Check for Python & SWIG only on PyUnbound or PyModule
18663if test x_$ub_test_python != x_no; then
18664
18665   # Check for Python
18666   ub_have_python=no
18667   ac_save_LIBS="$LIBS"
18668        #
18669        # Allow the use of a (user set) custom python version
18670        #
18671
18672
18673        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
18674set dummy python$PYTHON_VERSION; ac_word=$2
18675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18676printf %s "checking for $ac_word... " >&6; }
18677if test ${ac_cv_path_PYTHON+y}
18678then :
18679  printf %s "(cached) " >&6
18680else $as_nop
18681  case $PYTHON in
18682  [\\/]* | ?:[\\/]*)
18683  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18684  ;;
18685  *)
18686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687for as_dir in $PATH
18688do
18689  IFS=$as_save_IFS
18690  case $as_dir in #(((
18691    '') as_dir=./ ;;
18692    */) ;;
18693    *) as_dir=$as_dir/ ;;
18694  esac
18695    for ac_exec_ext in '' $ac_executable_extensions; do
18696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18697    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
18698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18699    break 2
18700  fi
18701done
18702  done
18703IFS=$as_save_IFS
18704
18705  ;;
18706esac
18707fi
18708PYTHON=$ac_cv_path_PYTHON
18709if test -n "$PYTHON"; then
18710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18711printf "%s\n" "$PYTHON" >&6; }
18712else
18713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714printf "%s\n" "no" >&6; }
18715fi
18716
18717
18718        if test -z "$PYTHON"; then
18719           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
18720           PYTHON_VERSION=""
18721        fi
18722
18723        if test -z "$PYTHON_VERSION"; then
18724		PYTHON_VERSION=`$PYTHON -c "import sys; \
18725			print(sys.version.split()[0])"`
18726	fi
18727
18728        #
18729        # Check if you have distutils, else fail
18730        #
18731        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
18732printf %s "checking for the distutils Python package... " >&6; }
18733        if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
18734                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18735printf "%s\n" "yes" >&6; }
18736        else
18737                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738printf "%s\n" "no" >&6; }
18739                as_fn_error $? "cannot import Python module \"distutils\".
18740Please check your Python installation. The error was:
18741$ac_distutils_result" "$LINENO" 5
18742                PYTHON_VERSION=""
18743        fi
18744
18745        #
18746        # Check for Python include path
18747        #
18748        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
18749printf %s "checking for Python include path... " >&6; }
18750        if test -z "$PYTHON_CPPFLAGS"; then
18751                python_path=`$PYTHON -c "import distutils.sysconfig; \
18752                        print(distutils.sysconfig.get_python_inc());"`
18753                if test -n "${python_path}"; then
18754                        python_path="-I$python_path"
18755                fi
18756                PYTHON_CPPFLAGS=$python_path
18757        fi
18758        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
18759printf "%s\n" "$PYTHON_CPPFLAGS" >&6; }
18760
18761
18762        #
18763        # Check for Python library path
18764        #
18765        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
18766printf %s "checking for Python library path... " >&6; }
18767        if test -z "$PYTHON_LDFLAGS"; then
18768                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
18769                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
18770        fi
18771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
18772printf "%s\n" "$PYTHON_LDFLAGS" >&6; }
18773
18774
18775        if test -z "$PYTHON_LIBDIR"; then
18776                PYTHON_LIBDIR=`$PYTHON -c "from distutils.sysconfig import *; \
18777                        print(get_config_var('LIBDIR'));"`
18778        fi
18779
18780        #
18781        # Check for site packages
18782        #
18783        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
18784printf %s "checking for Python site-packages path... " >&6; }
18785        if test -z "$PYTHON_SITE_PKG"; then
18786                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
18787                        print(distutils.sysconfig.get_python_lib(1,0));"`
18788        fi
18789        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
18790printf "%s\n" "$PYTHON_SITE_PKG" >&6; }
18791
18792
18793        #
18794        # final check to see if everything compiles alright
18795        #
18796        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
18797printf %s "checking consistency of all components of python development environment... " >&6; }
18798        ac_ext=c
18799ac_cpp='$CPP $CPPFLAGS'
18800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803
18804        # save current global flags
18805        ac_save_LIBS="$LIBS"
18806        ac_save_CPPFLAGS="$CPPFLAGS"
18807
18808        LIBS="$LIBS $PYTHON_LDFLAGS"
18809        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
18810        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811/* end confdefs.h.  */
18812
18813                #include <Python.h>
18814
18815int
18816main (void)
18817{
18818
18819                Py_Initialize();
18820
18821  ;
18822  return 0;
18823}
18824_ACEOF
18825if ac_fn_c_try_link "$LINENO"
18826then :
18827  pythonexists=yes
18828else $as_nop
18829  pythonexists=no
18830fi
18831rm -f core conftest.err conftest.$ac_objext conftest.beam \
18832    conftest$ac_exeext conftest.$ac_ext
18833
18834        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
18835printf "%s\n" "$pythonexists" >&6; }
18836
18837        if test ! "$pythonexists" = "yes"; then
18838           as_fn_error $? "
18839  Could not link test program to Python. Maybe the main Python library has been
18840  installed in some non-standard library path. If so, pass it to configure,
18841  via the LDFLAGS environment variable.
18842  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
18843  ============================================================================
18844   ERROR!
18845   You probably have to install the development version of the Python package
18846   for your distribution.  The exact name of this package varies among them.
18847  ============================================================================
18848           " "$LINENO" 5
18849          PYTHON_VERSION=""
18850        fi
18851        ac_ext=c
18852ac_cpp='$CPP $CPPFLAGS'
18853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855ac_compiler_gnu=$ac_cv_c_compiler_gnu
18856
18857        # turn back to default flags
18858        CPPFLAGS="$ac_save_CPPFLAGS"
18859        LIBS="$ac_save_LIBS"
18860
18861        #
18862        # all done!
18863        #
18864
18865   if test ! -z "$PYTHON_VERSION"; then
18866	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
18867		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
18868	fi
18869
18870      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
18871
18872      # Have Python
18873
18874printf "%s\n" "#define HAVE_PYTHON 1" >>confdefs.h
18875
18876      if test -n "$LIBS"; then
18877        LIBS="$PYTHON_LDFLAGS $LIBS"
18878      else
18879        LIBS="$PYTHON_LDFLAGS"
18880      fi
18881      if test -n "$CPPFLAGS"; then
18882        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
18883      else
18884        CPPFLAGS="$PYTHON_CPPFLAGS"
18885      fi
18886      if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
18887
18888	if test "x$enable_rpath" = xyes; then
18889		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
18890			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
18891		fi
18892	fi
18893
18894      fi
18895      ub_have_python=yes
18896      if test -n "$PKG_CONFIG" && \
18897    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
18898  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
18899  ac_status=$?
18900  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18901  test $ac_status = 0; }; then
18902  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
18903else
18904  PC_PY_DEPENDENCY="python"
18905fi
18906
18907
18908      # Check for SWIG
18909      ub_have_swig=no
18910      # Check whether --enable-swig-version-check was given.
18911if test ${enable_swig_version_check+y}
18912then :
18913  enableval=$enable_swig_version_check;
18914fi
18915
18916      if test "$enable_swig_version_check" = "yes"; then
18917
18918        # Extract the first word of "swig", so it can be a program name with args.
18919set dummy swig; ac_word=$2
18920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18921printf %s "checking for $ac_word... " >&6; }
18922if test ${ac_cv_path_SWIG+y}
18923then :
18924  printf %s "(cached) " >&6
18925else $as_nop
18926  case $SWIG in
18927  [\\/]* | ?:[\\/]*)
18928  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
18929  ;;
18930  *)
18931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932for as_dir in $PATH
18933do
18934  IFS=$as_save_IFS
18935  case $as_dir in #(((
18936    '') as_dir=./ ;;
18937    */) ;;
18938    *) as_dir=$as_dir/ ;;
18939  esac
18940    for ac_exec_ext in '' $ac_executable_extensions; do
18941  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18942    ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
18943    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18944    break 2
18945  fi
18946done
18947  done
18948IFS=$as_save_IFS
18949
18950  ;;
18951esac
18952fi
18953SWIG=$ac_cv_path_SWIG
18954if test -n "$SWIG"; then
18955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
18956printf "%s\n" "$SWIG" >&6; }
18957else
18958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959printf "%s\n" "no" >&6; }
18960fi
18961
18962
18963        if test -z "$SWIG" ; then
18964                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
18965printf "%s\n" "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
18966                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
18967        elif test -n "2.0.1" ; then
18968                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
18969printf %s "checking for SWIG version... " >&6; }
18970                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
18971                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
18972printf "%s\n" "$swig_version" >&6; }
18973                if test -n "$swig_version" ; then
18974                        # Calculate the required version number components
18975                        required=2.0.1
18976                        required_major=`echo $required | sed 's/[^0-9].*//'`
18977                        if test -z "$required_major" ; then
18978                                required_major=0
18979                        fi
18980                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
18981                        required_minor=`echo $required | sed 's/[^0-9].*//'`
18982                        if test -z "$required_minor" ; then
18983                                required_minor=0
18984                        fi
18985                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
18986                        required_patch=`echo $required | sed 's/[^0-9].*//'`
18987                        if test -z "$required_patch" ; then
18988                                required_patch=0
18989                        fi
18990                        # Calculate the available version number components
18991                        available=$swig_version
18992                        available_major=`echo $available | sed 's/[^0-9].*//'`
18993                        if test -z "$available_major" ; then
18994                                available_major=0
18995                        fi
18996                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
18997                        available_minor=`echo $available | sed 's/[^0-9].*//'`
18998                        if test -z "$available_minor" ; then
18999                                available_minor=0
19000                        fi
19001                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19002                        available_patch=`echo $available | sed 's/[^0-9].*//'`
19003                        if test -z "$available_patch" ; then
19004                                available_patch=0
19005                        fi
19006			badversion=0
19007			if test $available_major -lt $required_major ; then
19008				badversion=1
19009			fi
19010                        if test $available_major -eq $required_major \
19011                                -a $available_minor -lt $required_minor ; then
19012				badversion=1
19013			fi
19014                        if test $available_major -eq $required_major \
19015                                -a $available_minor -eq $required_minor \
19016                                -a $available_patch -lt $required_patch ; then
19017				badversion=1
19018			fi
19019			if test $badversion -eq 1 ; then
19020                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
19021printf "%s\n" "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
19022                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
19023                        else
19024                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
19025printf "%s\n" "$as_me: SWIG executable is '$SWIG'" >&6;}
19026                                SWIG_LIB=`$SWIG -swiglib`
19027                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
19028printf "%s\n" "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
19029                        fi
19030                else
19031                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19032printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
19033                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
19034                fi
19035        fi
19036
19037
19038      else
19039
19040        # Extract the first word of "swig", so it can be a program name with args.
19041set dummy swig; ac_word=$2
19042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19043printf %s "checking for $ac_word... " >&6; }
19044if test ${ac_cv_path_SWIG+y}
19045then :
19046  printf %s "(cached) " >&6
19047else $as_nop
19048  case $SWIG in
19049  [\\/]* | ?:[\\/]*)
19050  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19051  ;;
19052  *)
19053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054for as_dir in $PATH
19055do
19056  IFS=$as_save_IFS
19057  case $as_dir in #(((
19058    '') as_dir=./ ;;
19059    */) ;;
19060    *) as_dir=$as_dir/ ;;
19061  esac
19062    for ac_exec_ext in '' $ac_executable_extensions; do
19063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19064    ac_cv_path_SWIG="$as_dir$ac_word$ac_exec_ext"
19065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19066    break 2
19067  fi
19068done
19069  done
19070IFS=$as_save_IFS
19071
19072  ;;
19073esac
19074fi
19075SWIG=$ac_cv_path_SWIG
19076if test -n "$SWIG"; then
19077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19078printf "%s\n" "$SWIG" >&6; }
19079else
19080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081printf "%s\n" "no" >&6; }
19082fi
19083
19084
19085        if test -z "$SWIG" ; then
19086                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
19087printf "%s\n" "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
19088                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
19089        elif test -n "" ; then
19090                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
19091printf %s "checking for SWIG version... " >&6; }
19092                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
19093                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19094printf "%s\n" "$swig_version" >&6; }
19095                if test -n "$swig_version" ; then
19096                        # Calculate the required version number components
19097                        required=
19098                        required_major=`echo $required | sed 's/[^0-9].*//'`
19099                        if test -z "$required_major" ; then
19100                                required_major=0
19101                        fi
19102                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19103                        required_minor=`echo $required | sed 's/[^0-9].*//'`
19104                        if test -z "$required_minor" ; then
19105                                required_minor=0
19106                        fi
19107                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19108                        required_patch=`echo $required | sed 's/[^0-9].*//'`
19109                        if test -z "$required_patch" ; then
19110                                required_patch=0
19111                        fi
19112                        # Calculate the available version number components
19113                        available=$swig_version
19114                        available_major=`echo $available | sed 's/[^0-9].*//'`
19115                        if test -z "$available_major" ; then
19116                                available_major=0
19117                        fi
19118                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19119                        available_minor=`echo $available | sed 's/[^0-9].*//'`
19120                        if test -z "$available_minor" ; then
19121                                available_minor=0
19122                        fi
19123                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19124                        available_patch=`echo $available | sed 's/[^0-9].*//'`
19125                        if test -z "$available_patch" ; then
19126                                available_patch=0
19127                        fi
19128			badversion=0
19129			if test $available_major -lt $required_major ; then
19130				badversion=1
19131			fi
19132                        if test $available_major -eq $required_major \
19133                                -a $available_minor -lt $required_minor ; then
19134				badversion=1
19135			fi
19136                        if test $available_major -eq $required_major \
19137                                -a $available_minor -eq $required_minor \
19138                                -a $available_patch -lt $required_patch ; then
19139				badversion=1
19140			fi
19141			if test $badversion -eq 1 ; then
19142                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
19143printf "%s\n" "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
19144                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
19145                        else
19146                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
19147printf "%s\n" "$as_me: SWIG executable is '$SWIG'" >&6;}
19148                                SWIG_LIB=`$SWIG -swiglib`
19149                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
19150printf "%s\n" "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
19151                        fi
19152                else
19153                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19154printf "%s\n" "$as_me: WARNING: cannot determine SWIG version" >&2;}
19155                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
19156                fi
19157        fi
19158
19159
19160      fi
19161      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
19162printf %s "checking SWIG... " >&6; }
19163      if test ! -x "$SWIG"; then
19164         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
19165      else
19166
19167printf "%s\n" "#define HAVE_SWIG 1" >>confdefs.h
19168
19169         swig="$SWIG"
19170
19171         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: present" >&5
19172printf "%s\n" "present" >&6; }
19173
19174         # If have Python & SWIG
19175         # Declare PythonMod
19176         if test x_$ub_with_pythonmod != x_no; then
19177
19178printf "%s\n" "#define WITH_PYTHONMODULE 1" >>confdefs.h
19179
19180            WITH_PYTHONMODULE=yes
19181
19182	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
19183
19184	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
19185
19186	    PYTHONMOD_INSTALL=pythonmod-install
19187
19188	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
19189
19190         fi
19191
19192         # Declare PyUnbound
19193         if test x_$ub_with_pyunbound != x_no; then
19194
19195printf "%s\n" "#define WITH_PYUNBOUND 1" >>confdefs.h
19196
19197            WITH_PYUNBOUND=yes
19198
19199	    PYUNBOUND_OBJ="libunbound_wrap.lo"
19200
19201	    PYUNBOUND_TARGET="_unbound.la"
19202
19203	    PYUNBOUND_INSTALL=pyunbound-install
19204
19205	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
19206
19207         fi
19208      fi
19209   else
19210      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
19211printf "%s\n" "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
19212      ub_with_pyunbound=no
19213      ub_with_pythonmod=no
19214   fi
19215fi
19216
19217if test "`uname`" = "NetBSD"; then
19218	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
19219
19220fi
19221CONFIG_DATE=`date +%Y%m%d`
19222
19223
19224# Checks for libraries.
19225
19226# libnss
19227USE_NSS="no"
19228
19229# Check whether --with-nss was given.
19230if test ${with_nss+y}
19231then :
19232  withval=$with_nss;
19233	USE_NSS="yes"
19234
19235printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
19236
19237	if test "$withval" != "" -a "$withval" != "yes"; then
19238		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
19239		LDFLAGS="$LDFLAGS -L$withval/lib"
19240
19241	if test "x$enable_rpath" = xyes; then
19242		if echo "$withval/lib" | grep "^/" >/dev/null; then
19243			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
19244		fi
19245	fi
19246
19247		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
19248	else
19249		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
19250		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
19251	fi
19252        LIBS="$LIBS -lnss3 -lnspr4"
19253	SSLLIB=""
19254	PC_CRYPTO_DEPENDENCY="nss nspr"
19255
19256
19257
19258fi
19259
19260
19261# libnettle
19262USE_NETTLE="no"
19263
19264# Check whether --with-nettle was given.
19265if test ${with_nettle+y}
19266then :
19267  withval=$with_nettle;
19268	USE_NETTLE="yes"
19269
19270printf "%s\n" "#define HAVE_NETTLE 1" >>confdefs.h
19271
19272	ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
19273"
19274if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes
19275then :
19276  printf "%s\n" "#define HAVE_NETTLE_DSA_COMPAT_H 1" >>confdefs.h
19277
19278fi
19279
19280	if test "$withval" != "" -a "$withval" != "yes"; then
19281		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
19282		LDFLAGS="$LDFLAGS -L$withval/lib"
19283
19284	if test "x$enable_rpath" = xyes; then
19285		if echo "$withval/lib" | grep "^/" >/dev/null; then
19286			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
19287		fi
19288	fi
19289
19290	else
19291		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
19292	fi
19293        LIBS="$LIBS -lhogweed -lnettle -lgmp"
19294	SSLLIB=""
19295	PC_CRYPTO_DEPENDENCY="hogweed nettle"
19296
19297
19298
19299fi
19300
19301
19302# openssl
19303if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19304
19305
19306# Check whether --with-ssl was given.
19307if test ${with_ssl+y}
19308then :
19309  withval=$with_ssl;
19310
19311else $as_nop
19312
19313            withval="yes"
19314
19315fi
19316
19317    if test x_$withval = x_no; then
19318	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
19319    fi
19320
19321    withval=$withval
19322    if test x_$withval != x_no; then
19323        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
19324printf %s "checking for SSL... " >&6; }
19325        if test x_$withval = x_ -o x_$withval = x_yes; then
19326            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
19327        fi
19328        for dir in $withval; do
19329            ssldir="$dir"
19330            if test -f "$dir/include/openssl/ssl.h"; then
19331                found_ssl="yes"
19332
19333printf "%s\n" "#define HAVE_SSL /**/" >>confdefs.h
19334
19335                                if test "$ssldir" != "/usr"; then
19336                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
19337                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
19338                fi
19339                break;
19340            fi
19341        done
19342        if test x_$found_ssl != x_yes; then
19343            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
19344        else
19345            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
19346printf "%s\n" "found in $ssldir" >&6; }
19347            HAVE_SSL=yes
19348                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
19349		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
19350			LDFLAGS="$LDFLAGS -L$ssldir/lib64"
19351			LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib64"
19352
19353	if test "x$enable_rpath" = xyes; then
19354		if echo "$ssldir/lib64" | grep "^/" >/dev/null; then
19355			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib64"
19356		fi
19357	fi
19358
19359		else
19360			LDFLAGS="$LDFLAGS -L$ssldir/lib"
19361			LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
19362
19363	if test "x$enable_rpath" = xyes; then
19364		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
19365			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
19366		fi
19367	fi
19368
19369		fi
19370            fi
19371
19372            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
19373printf %s "checking for EVP_sha256 in -lcrypto... " >&6; }
19374            LIBS="$LIBS -lcrypto"
19375            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
19376            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377/* end confdefs.h.  */
19378
19379int
19380main (void)
19381{
19382
19383                int EVP_sha256(void);
19384                (void)EVP_sha256();
19385
19386  ;
19387  return 0;
19388}
19389_ACEOF
19390if ac_fn_c_try_link "$LINENO"
19391then :
19392
19393                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394printf "%s\n" "yes" >&6; }
19395
19396printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
19397
19398
19399else $as_nop
19400
19401                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19402printf "%s\n" "no" >&6; }
19403                # check if -lwsock32 or -lgdi32 are needed.
19404                BAKLIBS="$LIBS"
19405                BAKSSLLIBS="$LIBSSL_LIBS"
19406		LIBS="$LIBS -lgdi32 -lws2_32"
19407		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
19408                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
19409printf %s "checking if -lcrypto needs -lgdi32... " >&6; }
19410                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411/* end confdefs.h.  */
19412
19413int
19414main (void)
19415{
19416
19417                    int EVP_sha256(void);
19418                    (void)EVP_sha256();
19419
19420  ;
19421  return 0;
19422}
19423_ACEOF
19424if ac_fn_c_try_link "$LINENO"
19425then :
19426
19427
19428printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
19429
19430                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431printf "%s\n" "yes" >&6; }
19432
19433else $as_nop
19434
19435                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436printf "%s\n" "no" >&6; }
19437                    LIBS="$BAKLIBS"
19438                    LIBSSL_LIBS="$BAKSSLLIBS"
19439                    LIBS="$LIBS -ldl"
19440                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
19441                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
19442printf %s "checking if -lcrypto needs -ldl... " >&6; }
19443                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444/* end confdefs.h.  */
19445
19446int
19447main (void)
19448{
19449
19450                        int EVP_sha256(void);
19451                        (void)EVP_sha256();
19452
19453  ;
19454  return 0;
19455}
19456_ACEOF
19457if ac_fn_c_try_link "$LINENO"
19458then :
19459
19460
19461printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
19462
19463                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464printf "%s\n" "yes" >&6; }
19465
19466else $as_nop
19467
19468                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19469printf "%s\n" "no" >&6; }
19470                        LIBS="$BAKLIBS"
19471                        LIBSSL_LIBS="$BAKSSLLIBS"
19472                        LIBS="$LIBS -ldl -pthread"
19473                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
19474                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
19475printf %s "checking if -lcrypto needs -ldl -pthread... " >&6; }
19476                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477/* end confdefs.h.  */
19478
19479int
19480main (void)
19481{
19482
19483                            int EVP_sha256(void);
19484                            (void)EVP_sha256();
19485
19486  ;
19487  return 0;
19488}
19489_ACEOF
19490if ac_fn_c_try_link "$LINENO"
19491then :
19492
19493
19494printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
19495
19496                            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19497printf "%s\n" "yes" >&6; }
19498
19499else $as_nop
19500
19501                            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502printf "%s\n" "no" >&6; }
19503                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
19504
19505fi
19506rm -f core conftest.err conftest.$ac_objext conftest.beam \
19507    conftest$ac_exeext conftest.$ac_ext
19508
19509fi
19510rm -f core conftest.err conftest.$ac_objext conftest.beam \
19511    conftest$ac_exeext conftest.$ac_ext
19512
19513fi
19514rm -f core conftest.err conftest.$ac_objext conftest.beam \
19515    conftest$ac_exeext conftest.$ac_ext
19516
19517fi
19518rm -f core conftest.err conftest.$ac_objext conftest.beam \
19519    conftest$ac_exeext conftest.$ac_ext
19520        fi
19521
19522
19523    fi
19524ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
19525"
19526if test "x$ac_cv_header_openssl_ssl_h" = xyes
19527then :
19528  printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
19529
19530fi
19531
19532ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
19533"
19534if test "x$ac_cv_header_openssl_err_h" = xyes
19535then :
19536  printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
19537
19538fi
19539
19540ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
19541"
19542if test "x$ac_cv_header_openssl_rand_h" = xyes
19543then :
19544  printf "%s\n" "#define HAVE_OPENSSL_RAND_H 1" >>confdefs.h
19545
19546fi
19547
19548
19549
19550
19551# check if libssl needs libdl
19552BAKLIBS="$LIBS"
19553LIBS="-lssl $LIBS"
19554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
19555printf %s "checking if libssl needs libdl... " >&6; }
19556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557/* end confdefs.h.  */
19558
19559/* Override any GCC internal prototype to avoid an error.
19560   Use char because int might match the return type of a GCC
19561   builtin and then its argument prototype would still apply.  */
19562char SSL_CTX_new ();
19563int
19564main (void)
19565{
19566return SSL_CTX_new ();
19567  ;
19568  return 0;
19569}
19570_ACEOF
19571if ac_fn_c_try_link "$LINENO"
19572then :
19573
19574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575printf "%s\n" "no" >&6; }
19576	LIBS="$BAKLIBS"
19577
19578else $as_nop
19579
19580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19581printf "%s\n" "yes" >&6; }
19582	LIBS="$BAKLIBS"
19583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19584printf %s "checking for library containing dlopen... " >&6; }
19585if test ${ac_cv_search_dlopen+y}
19586then :
19587  printf %s "(cached) " >&6
19588else $as_nop
19589  ac_func_search_save_LIBS=$LIBS
19590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591/* end confdefs.h.  */
19592
19593/* Override any GCC internal prototype to avoid an error.
19594   Use char because int might match the return type of a GCC
19595   builtin and then its argument prototype would still apply.  */
19596char dlopen ();
19597int
19598main (void)
19599{
19600return dlopen ();
19601  ;
19602  return 0;
19603}
19604_ACEOF
19605for ac_lib in '' dl
19606do
19607  if test -z "$ac_lib"; then
19608    ac_res="none required"
19609  else
19610    ac_res=-l$ac_lib
19611    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19612  fi
19613  if ac_fn_c_try_link "$LINENO"
19614then :
19615  ac_cv_search_dlopen=$ac_res
19616fi
19617rm -f core conftest.err conftest.$ac_objext conftest.beam \
19618    conftest$ac_exeext
19619  if test ${ac_cv_search_dlopen+y}
19620then :
19621  break
19622fi
19623done
19624if test ${ac_cv_search_dlopen+y}
19625then :
19626
19627else $as_nop
19628  ac_cv_search_dlopen=no
19629fi
19630rm conftest.$ac_ext
19631LIBS=$ac_func_search_save_LIBS
19632fi
19633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19634printf "%s\n" "$ac_cv_search_dlopen" >&6; }
19635ac_res=$ac_cv_search_dlopen
19636if test "$ac_res" != no
19637then :
19638  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19639
19640fi
19641
19642
19643fi
19644rm -f core conftest.err conftest.$ac_objext conftest.beam \
19645    conftest$ac_exeext conftest.$ac_ext
19646SSLLIB="-lssl"
19647
19648PC_CRYPTO_DEPENDENCY="libcrypto libssl"
19649
19650
19651# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
19652BAKLIBS="$LIBS"
19653LIBS="-lssl $LIBS"
19654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
19655printf %s "checking if libssl needs -lcrypt32... " >&6; }
19656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657/* end confdefs.h.  */
19658
19659int
19660main (void)
19661{
19662
19663	int EVP_sha256(void);
19664	(void)EVP_sha256();
19665
19666  ;
19667  return 0;
19668}
19669_ACEOF
19670if ac_fn_c_try_link "$LINENO"
19671then :
19672
19673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674printf "%s\n" "no" >&6; }
19675	LIBS="$BAKLIBS"
19676
19677else $as_nop
19678
19679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19680printf "%s\n" "yes" >&6; }
19681	LIBS="$BAKLIBS"
19682	LIBS="$LIBS -lcrypt32"
19683
19684fi
19685rm -f core conftest.err conftest.$ac_objext conftest.beam \
19686    conftest$ac_exeext conftest.$ac_ext
19687
19688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
19689printf %s "checking for LibreSSL... " >&6; }
19690if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
19691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19692printf "%s\n" "yes" >&6; }
19693
19694printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
19695
19696	# libressl provides these compat functions, but they may also be
19697	# declared by the OS in libc.  See if they have been declared.
19698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19699printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19700if test ${ac_cv_c_undeclared_builtin_options+y}
19701then :
19702  printf %s "(cached) " >&6
19703else $as_nop
19704  ac_save_CFLAGS=$CFLAGS
19705   ac_cv_c_undeclared_builtin_options='cannot detect'
19706   for ac_arg in '' -fno-builtin; do
19707     CFLAGS="$ac_save_CFLAGS $ac_arg"
19708     # This test program should *not* compile successfully.
19709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710/* end confdefs.h.  */
19711
19712int
19713main (void)
19714{
19715(void) strchr;
19716  ;
19717  return 0;
19718}
19719_ACEOF
19720if ac_fn_c_try_compile "$LINENO"
19721then :
19722
19723else $as_nop
19724  # This test program should compile successfully.
19725        # No library function is consistently available on
19726        # freestanding implementations, so test against a dummy
19727        # declaration.  Include always-available headers on the
19728        # off chance that they somehow elicit warnings.
19729        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730/* end confdefs.h.  */
19731#include <float.h>
19732#include <limits.h>
19733#include <stdarg.h>
19734#include <stddef.h>
19735extern void ac_decl (int, char *);
19736
19737int
19738main (void)
19739{
19740(void) ac_decl (0, (char *) 0);
19741  (void) ac_decl;
19742
19743  ;
19744  return 0;
19745}
19746_ACEOF
19747if ac_fn_c_try_compile "$LINENO"
19748then :
19749  if test x"$ac_arg" = x
19750then :
19751  ac_cv_c_undeclared_builtin_options='none needed'
19752else $as_nop
19753  ac_cv_c_undeclared_builtin_options=$ac_arg
19754fi
19755          break
19756fi
19757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19758fi
19759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19760    done
19761    CFLAGS=$ac_save_CFLAGS
19762
19763fi
19764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19765printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19766  case $ac_cv_c_undeclared_builtin_options in #(
19767  'cannot detect') :
19768    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19769printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19770as_fn_error $? "cannot make $CC report undeclared builtins
19771See \`config.log' for more details" "$LINENO" 5; } ;; #(
19772  'none needed') :
19773    ac_c_undeclared_builtin_options='' ;; #(
19774  *) :
19775    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
19776esac
19777
19778ac_fn_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19779if test "x$ac_cv_have_decl_strlcpy" = xyes
19780then :
19781  ac_have_decl=1
19782else $as_nop
19783  ac_have_decl=0
19784fi
19785printf "%s\n" "#define HAVE_DECL_STRLCPY $ac_have_decl" >>confdefs.h
19786ac_fn_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19787if test "x$ac_cv_have_decl_strlcat" = xyes
19788then :
19789  ac_have_decl=1
19790else $as_nop
19791  ac_have_decl=0
19792fi
19793printf "%s\n" "#define HAVE_DECL_STRLCAT $ac_have_decl" >>confdefs.h
19794ac_fn_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19795if test "x$ac_cv_have_decl_arc4random" = xyes
19796then :
19797  ac_have_decl=1
19798else $as_nop
19799  ac_have_decl=0
19800fi
19801printf "%s\n" "#define HAVE_DECL_ARC4RANDOM $ac_have_decl" >>confdefs.h
19802ac_fn_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
19803if test "x$ac_cv_have_decl_arc4random_uniform" = xyes
19804then :
19805  ac_have_decl=1
19806else $as_nop
19807  ac_have_decl=0
19808fi
19809printf "%s\n" "#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl" >>confdefs.h
19810
19811else
19812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19813printf "%s\n" "no" >&6; }
19814fi
19815ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
19816"
19817if test "x$ac_cv_header_openssl_conf_h" = xyes
19818then :
19819  printf "%s\n" "#define HAVE_OPENSSL_CONF_H 1" >>confdefs.h
19820
19821fi
19822ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
19823"
19824if test "x$ac_cv_header_openssl_engine_h" = xyes
19825then :
19826  printf "%s\n" "#define HAVE_OPENSSL_ENGINE_H 1" >>confdefs.h
19827
19828fi
19829ac_fn_c_check_header_compile "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default
19830"
19831if test "x$ac_cv_header_openssl_bn_h" = xyes
19832then :
19833  printf "%s\n" "#define HAVE_OPENSSL_BN_H 1" >>confdefs.h
19834
19835fi
19836ac_fn_c_check_header_compile "$LINENO" "openssl/dh.h" "ac_cv_header_openssl_dh_h" "$ac_includes_default
19837"
19838if test "x$ac_cv_header_openssl_dh_h" = xyes
19839then :
19840  printf "%s\n" "#define HAVE_OPENSSL_DH_H 1" >>confdefs.h
19841
19842fi
19843ac_fn_c_check_header_compile "$LINENO" "openssl/dsa.h" "ac_cv_header_openssl_dsa_h" "$ac_includes_default
19844"
19845if test "x$ac_cv_header_openssl_dsa_h" = xyes
19846then :
19847  printf "%s\n" "#define HAVE_OPENSSL_DSA_H 1" >>confdefs.h
19848
19849fi
19850ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default
19851"
19852if test "x$ac_cv_header_openssl_rsa_h" = xyes
19853then :
19854  printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
19855
19856fi
19857ac_fn_c_check_header_compile "$LINENO" "openssl/core_names.h" "ac_cv_header_openssl_core_names_h" "$ac_includes_default
19858"
19859if test "x$ac_cv_header_openssl_core_names_h" = xyes
19860then :
19861  printf "%s\n" "#define HAVE_OPENSSL_CORE_NAMES_H 1" >>confdefs.h
19862
19863fi
19864ac_fn_c_check_header_compile "$LINENO" "openssl/param_build.h" "ac_cv_header_openssl_param_build_h" "$ac_includes_default
19865"
19866if test "x$ac_cv_header_openssl_param_build_h" = xyes
19867then :
19868  printf "%s\n" "#define HAVE_OPENSSL_PARAM_BUILD_H 1" >>confdefs.h
19869
19870fi
19871
19872ac_fn_c_check_func "$LINENO" "OPENSSL_config" "ac_cv_func_OPENSSL_config"
19873if test "x$ac_cv_func_OPENSSL_config" = xyes
19874then :
19875  printf "%s\n" "#define HAVE_OPENSSL_CONFIG 1" >>confdefs.h
19876
19877fi
19878ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
19879if test "x$ac_cv_func_EVP_sha1" = xyes
19880then :
19881  printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h
19882
19883fi
19884ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
19885if test "x$ac_cv_func_EVP_sha256" = xyes
19886then :
19887  printf "%s\n" "#define HAVE_EVP_SHA256 1" >>confdefs.h
19888
19889fi
19890ac_fn_c_check_func "$LINENO" "EVP_sha512" "ac_cv_func_EVP_sha512"
19891if test "x$ac_cv_func_EVP_sha512" = xyes
19892then :
19893  printf "%s\n" "#define HAVE_EVP_SHA512 1" >>confdefs.h
19894
19895fi
19896ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
19897if test "x$ac_cv_func_FIPS_mode" = xyes
19898then :
19899  printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h
19900
19901fi
19902ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
19903if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
19904then :
19905  printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
19906
19907fi
19908ac_fn_c_check_func "$LINENO" "OpenSSL_add_all_digests" "ac_cv_func_OpenSSL_add_all_digests"
19909if test "x$ac_cv_func_OpenSSL_add_all_digests" = xyes
19910then :
19911  printf "%s\n" "#define HAVE_OPENSSL_ADD_ALL_DIGESTS 1" >>confdefs.h
19912
19913fi
19914ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
19915if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
19916then :
19917  printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
19918
19919fi
19920ac_fn_c_check_func "$LINENO" "EVP_cleanup" "ac_cv_func_EVP_cleanup"
19921if test "x$ac_cv_func_EVP_cleanup" = xyes
19922then :
19923  printf "%s\n" "#define HAVE_EVP_CLEANUP 1" >>confdefs.h
19924
19925fi
19926ac_fn_c_check_func "$LINENO" "ENGINE_cleanup" "ac_cv_func_ENGINE_cleanup"
19927if test "x$ac_cv_func_ENGINE_cleanup" = xyes
19928then :
19929  printf "%s\n" "#define HAVE_ENGINE_CLEANUP 1" >>confdefs.h
19930
19931fi
19932ac_fn_c_check_func "$LINENO" "ERR_load_crypto_strings" "ac_cv_func_ERR_load_crypto_strings"
19933if test "x$ac_cv_func_ERR_load_crypto_strings" = xyes
19934then :
19935  printf "%s\n" "#define HAVE_ERR_LOAD_CRYPTO_STRINGS 1" >>confdefs.h
19936
19937fi
19938ac_fn_c_check_func "$LINENO" "CRYPTO_cleanup_all_ex_data" "ac_cv_func_CRYPTO_cleanup_all_ex_data"
19939if test "x$ac_cv_func_CRYPTO_cleanup_all_ex_data" = xyes
19940then :
19941  printf "%s\n" "#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1" >>confdefs.h
19942
19943fi
19944ac_fn_c_check_func "$LINENO" "ERR_free_strings" "ac_cv_func_ERR_free_strings"
19945if test "x$ac_cv_func_ERR_free_strings" = xyes
19946then :
19947  printf "%s\n" "#define HAVE_ERR_FREE_STRINGS 1" >>confdefs.h
19948
19949fi
19950ac_fn_c_check_func "$LINENO" "RAND_cleanup" "ac_cv_func_RAND_cleanup"
19951if test "x$ac_cv_func_RAND_cleanup" = xyes
19952then :
19953  printf "%s\n" "#define HAVE_RAND_CLEANUP 1" >>confdefs.h
19954
19955fi
19956ac_fn_c_check_func "$LINENO" "DSA_SIG_set0" "ac_cv_func_DSA_SIG_set0"
19957if test "x$ac_cv_func_DSA_SIG_set0" = xyes
19958then :
19959  printf "%s\n" "#define HAVE_DSA_SIG_SET0 1" >>confdefs.h
19960
19961fi
19962ac_fn_c_check_func "$LINENO" "EVP_dss1" "ac_cv_func_EVP_dss1"
19963if test "x$ac_cv_func_EVP_dss1" = xyes
19964then :
19965  printf "%s\n" "#define HAVE_EVP_DSS1 1" >>confdefs.h
19966
19967fi
19968ac_fn_c_check_func "$LINENO" "EVP_DigestVerify" "ac_cv_func_EVP_DigestVerify"
19969if test "x$ac_cv_func_EVP_DigestVerify" = xyes
19970then :
19971  printf "%s\n" "#define HAVE_EVP_DIGESTVERIFY 1" >>confdefs.h
19972
19973fi
19974ac_fn_c_check_func "$LINENO" "EVP_aes_256_cbc" "ac_cv_func_EVP_aes_256_cbc"
19975if test "x$ac_cv_func_EVP_aes_256_cbc" = xyes
19976then :
19977  printf "%s\n" "#define HAVE_EVP_AES_256_CBC 1" >>confdefs.h
19978
19979fi
19980ac_fn_c_check_func "$LINENO" "EVP_EncryptInit_ex" "ac_cv_func_EVP_EncryptInit_ex"
19981if test "x$ac_cv_func_EVP_EncryptInit_ex" = xyes
19982then :
19983  printf "%s\n" "#define HAVE_EVP_ENCRYPTINIT_EX 1" >>confdefs.h
19984
19985fi
19986ac_fn_c_check_func "$LINENO" "HMAC_Init_ex" "ac_cv_func_HMAC_Init_ex"
19987if test "x$ac_cv_func_HMAC_Init_ex" = xyes
19988then :
19989  printf "%s\n" "#define HAVE_HMAC_INIT_EX 1" >>confdefs.h
19990
19991fi
19992ac_fn_c_check_func "$LINENO" "CRYPTO_THREADID_set_callback" "ac_cv_func_CRYPTO_THREADID_set_callback"
19993if test "x$ac_cv_func_CRYPTO_THREADID_set_callback" = xyes
19994then :
19995  printf "%s\n" "#define HAVE_CRYPTO_THREADID_SET_CALLBACK 1" >>confdefs.h
19996
19997fi
19998ac_fn_c_check_func "$LINENO" "EVP_MAC_CTX_set_params" "ac_cv_func_EVP_MAC_CTX_set_params"
19999if test "x$ac_cv_func_EVP_MAC_CTX_set_params" = xyes
20000then :
20001  printf "%s\n" "#define HAVE_EVP_MAC_CTX_SET_PARAMS 1" >>confdefs.h
20002
20003fi
20004ac_fn_c_check_func "$LINENO" "OSSL_PARAM_BLD_new" "ac_cv_func_OSSL_PARAM_BLD_new"
20005if test "x$ac_cv_func_OSSL_PARAM_BLD_new" = xyes
20006then :
20007  printf "%s\n" "#define HAVE_OSSL_PARAM_BLD_NEW 1" >>confdefs.h
20008
20009fi
20010
20011
20012# these check_funcs need -lssl
20013BAKLIBS="$LIBS"
20014LIBS="-lssl $LIBS"
20015ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
20016if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
20017then :
20018  printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
20019
20020fi
20021ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level"
20022if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes
20023then :
20024  printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h
20025
20026fi
20027ac_fn_c_check_func "$LINENO" "SSL_set1_host" "ac_cv_func_SSL_set1_host"
20028if test "x$ac_cv_func_SSL_set1_host" = xyes
20029then :
20030  printf "%s\n" "#define HAVE_SSL_SET1_HOST 1" >>confdefs.h
20031
20032fi
20033ac_fn_c_check_func "$LINENO" "SSL_get0_peername" "ac_cv_func_SSL_get0_peername"
20034if test "x$ac_cv_func_SSL_get0_peername" = xyes
20035then :
20036  printf "%s\n" "#define HAVE_SSL_GET0_PEERNAME 1" >>confdefs.h
20037
20038fi
20039ac_fn_c_check_func "$LINENO" "X509_VERIFY_PARAM_set1_host" "ac_cv_func_X509_VERIFY_PARAM_set1_host"
20040if test "x$ac_cv_func_X509_VERIFY_PARAM_set1_host" = xyes
20041then :
20042  printf "%s\n" "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h
20043
20044fi
20045ac_fn_c_check_func "$LINENO" "SSL_CTX_set_ciphersuites" "ac_cv_func_SSL_CTX_set_ciphersuites"
20046if test "x$ac_cv_func_SSL_CTX_set_ciphersuites" = xyes
20047then :
20048  printf "%s\n" "#define HAVE_SSL_CTX_SET_CIPHERSUITES 1" >>confdefs.h
20049
20050fi
20051ac_fn_c_check_func "$LINENO" "SSL_CTX_set_tlsext_ticket_key_evp_cb" "ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb"
20052if test "x$ac_cv_func_SSL_CTX_set_tlsext_ticket_key_evp_cb" = xyes
20053then :
20054  printf "%s\n" "#define HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB 1" >>confdefs.h
20055
20056fi
20057ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_select_cb" "ac_cv_func_SSL_CTX_set_alpn_select_cb"
20058if test "x$ac_cv_func_SSL_CTX_set_alpn_select_cb" = xyes
20059then :
20060  printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_SELECT_CB 1" >>confdefs.h
20061
20062fi
20063ac_fn_c_check_func "$LINENO" "SSL_get0_alpn_selected" "ac_cv_func_SSL_get0_alpn_selected"
20064if test "x$ac_cv_func_SSL_get0_alpn_selected" = xyes
20065then :
20066  printf "%s\n" "#define HAVE_SSL_GET0_ALPN_SELECTED 1" >>confdefs.h
20067
20068fi
20069ac_fn_c_check_func "$LINENO" "SSL_CTX_set_alpn_protos" "ac_cv_func_SSL_CTX_set_alpn_protos"
20070if test "x$ac_cv_func_SSL_CTX_set_alpn_protos" = xyes
20071then :
20072  printf "%s\n" "#define HAVE_SSL_CTX_SET_ALPN_PROTOS 1" >>confdefs.h
20073
20074fi
20075ac_fn_c_check_func "$LINENO" "SSL_get1_peer_certificate" "ac_cv_func_SSL_get1_peer_certificate"
20076if test "x$ac_cv_func_SSL_get1_peer_certificate" = xyes
20077then :
20078  printf "%s\n" "#define HAVE_SSL_GET1_PEER_CERTIFICATE 1" >>confdefs.h
20079
20080fi
20081
20082LIBS="$BAKLIBS"
20083
20084ac_fn_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
20085$ac_includes_default
20086#ifdef HAVE_OPENSSL_ERR_H
20087#include <openssl/err.h>
20088#endif
20089
20090#ifdef HAVE_OPENSSL_RAND_H
20091#include <openssl/rand.h>
20092#endif
20093
20094#ifdef HAVE_OPENSSL_CONF_H
20095#include <openssl/conf.h>
20096#endif
20097
20098#ifdef HAVE_OPENSSL_ENGINE_H
20099#include <openssl/engine.h>
20100#endif
20101#include <openssl/ssl.h>
20102#include <openssl/evp.h>
20103
20104" "$ac_c_undeclared_builtin_options" "CFLAGS"
20105if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes
20106then :
20107  ac_have_decl=1
20108else $as_nop
20109  ac_have_decl=0
20110fi
20111printf "%s\n" "#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl" >>confdefs.h
20112ac_fn_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
20113$ac_includes_default
20114#ifdef HAVE_OPENSSL_ERR_H
20115#include <openssl/err.h>
20116#endif
20117
20118#ifdef HAVE_OPENSSL_RAND_H
20119#include <openssl/rand.h>
20120#endif
20121
20122#ifdef HAVE_OPENSSL_CONF_H
20123#include <openssl/conf.h>
20124#endif
20125
20126#ifdef HAVE_OPENSSL_ENGINE_H
20127#include <openssl/engine.h>
20128#endif
20129#include <openssl/ssl.h>
20130#include <openssl/evp.h>
20131
20132" "$ac_c_undeclared_builtin_options" "CFLAGS"
20133if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes
20134then :
20135  ac_have_decl=1
20136else $as_nop
20137  ac_have_decl=0
20138fi
20139printf "%s\n" "#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl" >>confdefs.h
20140ac_fn_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
20141$ac_includes_default
20142#ifdef HAVE_OPENSSL_ERR_H
20143#include <openssl/err.h>
20144#endif
20145
20146#ifdef HAVE_OPENSSL_RAND_H
20147#include <openssl/rand.h>
20148#endif
20149
20150#ifdef HAVE_OPENSSL_CONF_H
20151#include <openssl/conf.h>
20152#endif
20153
20154#ifdef HAVE_OPENSSL_ENGINE_H
20155#include <openssl/engine.h>
20156#endif
20157#include <openssl/ssl.h>
20158#include <openssl/evp.h>
20159
20160" "$ac_c_undeclared_builtin_options" "CFLAGS"
20161if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes
20162then :
20163  ac_have_decl=1
20164else $as_nop
20165  ac_have_decl=0
20166fi
20167printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl" >>confdefs.h
20168
20169
20170if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
20171# check function return type.
20172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
20173printf %s "checking the return type of HMAC_Init_ex... " >&6; }
20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175/* end confdefs.h.  */
20176
20177#ifdef HAVE_OPENSSL_ERR_H
20178#include <openssl/err.h>
20179#endif
20180
20181#ifdef HAVE_OPENSSL_RAND_H
20182#include <openssl/rand.h>
20183#endif
20184
20185#ifdef HAVE_OPENSSL_CONF_H
20186#include <openssl/conf.h>
20187#endif
20188
20189#ifdef HAVE_OPENSSL_ENGINE_H
20190#include <openssl/engine.h>
20191#endif
20192#include <openssl/ssl.h>
20193#include <openssl/evp.h>
20194
20195int
20196main (void)
20197{
20198
20199	HMAC_CTX* hmac_ctx = NULL;
20200	void* hmac_key = NULL;
20201	const EVP_MD* digest = NULL;
20202	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
20203	(void)x;
20204
20205  ;
20206  return 0;
20207}
20208_ACEOF
20209if ac_fn_c_try_compile "$LINENO"
20210then :
20211
20212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
20213printf "%s\n" "int" >&6; }
20214
20215else $as_nop
20216
20217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void" >&5
20218printf "%s\n" "void" >&6; }
20219
20220printf "%s\n" "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
20221
20222
20223fi
20224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20225fi
20226
20227fi
20228
20229
20230# libbsd
20231
20232# Check whether --with-libbsd was given.
20233if test ${with_libbsd+y}
20234then :
20235  withval=$with_libbsd;
20236	ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default
20237"
20238if test "x$ac_cv_header_bsd_string_h" = xyes
20239then :
20240  printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h
20241
20242fi
20243ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default
20244"
20245if test "x$ac_cv_header_bsd_stdlib_h" = xyes
20246then :
20247  printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h
20248
20249fi
20250
20251	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
20252		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
20253			as_ac_Search=`printf "%s\n" "ac_cv_search_$func" | $as_tr_sh`
20254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
20255printf %s "checking for library containing $func... " >&6; }
20256if eval test \${$as_ac_Search+y}
20257then :
20258  printf %s "(cached) " >&6
20259else $as_nop
20260  ac_func_search_save_LIBS=$LIBS
20261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262/* end confdefs.h.  */
20263
20264/* Override any GCC internal prototype to avoid an error.
20265   Use char because int might match the return type of a GCC
20266   builtin and then its argument prototype would still apply.  */
20267char $func ();
20268int
20269main (void)
20270{
20271return $func ();
20272  ;
20273  return 0;
20274}
20275_ACEOF
20276for ac_lib in '' bsd
20277do
20278  if test -z "$ac_lib"; then
20279    ac_res="none required"
20280  else
20281    ac_res=-l$ac_lib
20282    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20283  fi
20284  if ac_fn_c_try_link "$LINENO"
20285then :
20286  eval "$as_ac_Search=\$ac_res"
20287fi
20288rm -f core conftest.err conftest.$ac_objext conftest.beam \
20289    conftest$ac_exeext
20290  if eval test \${$as_ac_Search+y}
20291then :
20292  break
20293fi
20294done
20295if eval test \${$as_ac_Search+y}
20296then :
20297
20298else $as_nop
20299  eval "$as_ac_Search=no"
20300fi
20301rm conftest.$ac_ext
20302LIBS=$ac_func_search_save_LIBS
20303fi
20304eval ac_res=\$$as_ac_Search
20305	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20306printf "%s\n" "$ac_res" >&6; }
20307eval ac_res=\$$as_ac_Search
20308if test "$ac_res" != no
20309then :
20310  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20311
20312
20313printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
20314
20315				PC_LIBBSD_DEPENDENCY=libbsd
20316
20317
20318fi
20319
20320		done
20321	fi
20322
20323fi
20324
20325
20326# Check whether --enable-sha1 was given.
20327if test ${enable_sha1+y}
20328then :
20329  enableval=$enable_sha1;
20330fi
20331
20332case "$enable_sha1" in
20333	no)
20334	;;
20335	yes|*)
20336
20337printf "%s\n" "#define USE_SHA1 1" >>confdefs.h
20338
20339	;;
20340esac
20341
20342
20343# Check whether --enable-sha2 was given.
20344if test ${enable_sha2+y}
20345then :
20346  enableval=$enable_sha2;
20347fi
20348
20349case "$enable_sha2" in
20350	no)
20351	;;
20352	yes|*)
20353
20354printf "%s\n" "#define USE_SHA2 1" >>confdefs.h
20355
20356	;;
20357esac
20358
20359# Check whether --enable-subnet was given.
20360if test ${enable_subnet+y}
20361then :
20362  enableval=$enable_subnet;
20363fi
20364
20365case "$enable_subnet" in
20366	yes)
20367
20368printf "%s\n" "#define CLIENT_SUBNET 1" >>confdefs.h
20369
20370	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
20371
20372	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
20373
20374	;;
20375	no|*)
20376	;;
20377esac
20378
20379# check wether gost also works
20380
20381# Check whether --enable-gost was given.
20382if test ${enable_gost+y}
20383then :
20384  enableval=$enable_gost;
20385fi
20386
20387use_gost="no"
20388if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
20389case "$enable_gost" in
20390	no)
20391	;;
20392	*)
20393	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
20394if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes
20395then :
20396  :
20397else $as_nop
20398  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
20399fi
20400
20401	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
20402if test "x$ac_cv_func_EC_KEY_new" = xyes
20403then :
20404
20405else $as_nop
20406  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
20407fi
20408
20409
20410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
20411printf %s "checking if GOST works... " >&6; }
20412if test c${cross_compiling} = cno; then
20413BAKCFLAGS="$CFLAGS"
20414if test -n "$ssldir"; then
20415	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
20416fi
20417if test "$cross_compiling" = yes
20418then :
20419  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20420printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20421as_fn_error $? "cannot run test program while cross compiling
20422See \`config.log' for more details" "$LINENO" 5; }
20423else $as_nop
20424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20425/* end confdefs.h.  */
20426
20427#include <string.h>
20428#include <openssl/ssl.h>
20429#include <openssl/evp.h>
20430#include <openssl/engine.h>
20431#include <openssl/conf.h>
20432/* routine to load gost (from sldns) */
20433int load_gost_id(void)
20434{
20435	static int gost_id = 0;
20436	const EVP_PKEY_ASN1_METHOD* meth;
20437	ENGINE* e;
20438
20439	if(gost_id) return gost_id;
20440
20441	/* see if configuration loaded gost implementation from other engine*/
20442	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
20443	if(meth) {
20444		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
20445		return gost_id;
20446	}
20447
20448	/* see if engine can be loaded already */
20449	e = ENGINE_by_id("gost");
20450	if(!e) {
20451		/* load it ourself, in case statically linked */
20452		ENGINE_load_builtin_engines();
20453		ENGINE_load_dynamic();
20454		e = ENGINE_by_id("gost");
20455	}
20456	if(!e) {
20457		/* no gost engine in openssl */
20458		return 0;
20459	}
20460	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
20461		ENGINE_finish(e);
20462		ENGINE_free(e);
20463		return 0;
20464	}
20465
20466	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
20467	if(!meth) {
20468		/* algo not found */
20469		ENGINE_finish(e);
20470		ENGINE_free(e);
20471		return 0;
20472	}
20473	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
20474	return gost_id;
20475}
20476int main(void) {
20477	EVP_MD_CTX* ctx;
20478	const EVP_MD* md;
20479	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
20480	const char* str = "Hello world";
20481	const unsigned char check[] = {
20482		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
20483		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
20484		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
20485		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
20486	};
20487	OPENSSL_config(NULL);
20488	(void)load_gost_id();
20489	md = EVP_get_digestbyname("md_gost94");
20490	if(!md) return 1;
20491	memset(digest, 0, sizeof(digest));
20492	ctx = EVP_MD_CTX_create();
20493	if(!ctx) return 2;
20494	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
20495	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
20496	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
20497	/* uncomment to see the hash calculated.
20498		{int i;
20499		for(i=0; i<32; i++)
20500			printf(" %2.2x", (int)digest[i]);
20501		printf("\n");}
20502	*/
20503	if(memcmp(digest, check, sizeof(check)) != 0)
20504		return 6;
20505	return 0;
20506}
20507
20508_ACEOF
20509if ac_fn_c_try_run "$LINENO"
20510then :
20511  eval "ac_cv_c_gost_works=yes"
20512else $as_nop
20513  eval "ac_cv_c_gost_works=no"
20514fi
20515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20516  conftest.$ac_objext conftest.beam conftest.$ac_ext
20517fi
20518
20519CFLAGS="$BAKCFLAGS"
20520else
20521eval "ac_cv_c_gost_works=maybe"
20522fi
20523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
20524printf "%s\n" "$ac_cv_c_gost_works" >&6; }
20525
20526	if test "$ac_cv_c_gost_works" != no; then
20527		use_gost="yes"
20528
20529printf "%s\n" "#define USE_GOST 1" >>confdefs.h
20530
20531	fi
20532	;;
20533esac
20534fi
20535# Check whether --enable-ecdsa was given.
20536if test ${enable_ecdsa+y}
20537then :
20538  enableval=$enable_ecdsa;
20539fi
20540
20541use_ecdsa="no"
20542case "$enable_ecdsa" in
20543    no)
20544      ;;
20545    *)
20546      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
20547	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
20548if test "x$ac_cv_func_ECDSA_sign" = xyes
20549then :
20550
20551else $as_nop
20552  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
20553fi
20554
20555	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
20556if test "x$ac_cv_func_SHA384_Init" = xyes
20557then :
20558
20559else $as_nop
20560  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
20561fi
20562
20563	      ac_fn_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
20564#include <openssl/evp.h>
20565
20566" "$ac_c_undeclared_builtin_options" "CFLAGS"
20567if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes
20568then :
20569  ac_have_decl=1
20570else $as_nop
20571  ac_have_decl=0
20572fi
20573printf "%s\n" "#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl" >>confdefs.h
20574if test $ac_have_decl = 1
20575then :
20576
20577else $as_nop
20578  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
20579fi
20580ac_fn_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
20581#include <openssl/evp.h>
20582
20583" "$ac_c_undeclared_builtin_options" "CFLAGS"
20584if test "x$ac_cv_have_decl_NID_secp384r1" = xyes
20585then :
20586  ac_have_decl=1
20587else $as_nop
20588  ac_have_decl=0
20589fi
20590printf "%s\n" "#define HAVE_DECL_NID_SECP384R1 $ac_have_decl" >>confdefs.h
20591if test $ac_have_decl = 1
20592then :
20593
20594else $as_nop
20595  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
20596fi
20597
20598	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
20599	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
20600printf %s "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
20601	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
20602		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
20603		  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604printf "%s\n" "no" >&6; }
20605
20606printf "%s\n" "#define USE_ECDSA_EVP_WORKAROUND 1" >>confdefs.h
20607
20608		else
20609		  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20610printf "%s\n" "yes" >&6; }
20611		fi
20612	      else
20613		# not OpenSSL, thus likely LibreSSL, which supports it
20614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615printf "%s\n" "yes" >&6; }
20616	      fi
20617      fi
20618      # we now know we have ECDSA and the required curves.
20619
20620printf "%s\n" "#define USE_ECDSA 1" >>confdefs.h
20621
20622      use_ecdsa="yes"
20623      ;;
20624esac
20625
20626# Check whether --enable-dsa was given.
20627if test ${enable_dsa+y}
20628then :
20629  enableval=$enable_dsa;
20630fi
20631
20632use_dsa="no"
20633case "$enable_dsa" in
20634    yes)
20635      # detect if DSA is supported, and turn it off if not.
20636      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
20637      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
20638if test "x$ac_cv_func_DSA_SIG_new" = xyes
20639then :
20640
20641      as_ac_Type=`printf "%s\n" "ac_cv_type_DSA_SIG*" | $as_tr_sh`
20642ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
20643$ac_includes_default
20644#ifdef HAVE_OPENSSL_ERR_H
20645#include <openssl/err.h>
20646#endif
20647
20648#ifdef HAVE_OPENSSL_RAND_H
20649#include <openssl/rand.h>
20650#endif
20651
20652#ifdef HAVE_OPENSSL_CONF_H
20653#include <openssl/conf.h>
20654#endif
20655
20656#ifdef HAVE_OPENSSL_ENGINE_H
20657#include <openssl/engine.h>
20658#endif
20659
20660"
20661if eval test \"x\$"$as_ac_Type"\" = x"yes"
20662then :
20663
20664
20665printf "%s\n" "#define USE_DSA 1" >>confdefs.h
20666
20667
20668else $as_nop
20669  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
20670               fi
20671fi
20672
20673
20674else $as_nop
20675  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
20676               fi
20677fi
20678
20679      else
20680
20681printf "%s\n" "#define USE_DSA 1" >>confdefs.h
20682
20683      fi
20684      ;;
20685    *)
20686      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
20687      # support DSA for DNSSEC Validation.
20688      ;;
20689esac
20690
20691
20692# Check whether --with-deprecate-rsa-1024 was given.
20693if test ${with_deprecate_rsa_1024+y}
20694then :
20695  withval=$with_deprecate_rsa_1024;
20696fi
20697
20698if test "$with_deprecate_rsa_1024" = "yes"; then
20699
20700printf "%s\n" "#define DEPRECATE_RSA_1024 1" >>confdefs.h
20701
20702fi
20703
20704# Check whether --enable-ed25519 was given.
20705if test ${enable_ed25519+y}
20706then :
20707  enableval=$enable_ed25519;
20708fi
20709
20710use_ed25519="no"
20711case "$enable_ed25519" in
20712    no)
20713      ;;
20714    *)
20715      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
20716	      ac_fn_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
20717#include <openssl/evp.h>
20718
20719" "$ac_c_undeclared_builtin_options" "CFLAGS"
20720if test "x$ac_cv_have_decl_NID_ED25519" = xyes
20721then :
20722  ac_have_decl=1
20723else $as_nop
20724  ac_have_decl=0
20725fi
20726printf "%s\n" "#define HAVE_DECL_NID_ED25519 $ac_have_decl" >>confdefs.h
20727if test $ac_have_decl = 1
20728then :
20729
20730      		use_ed25519="yes"
20731
20732else $as_nop
20733   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
20734	      	fi
20735fi
20736
20737      fi
20738      if test $USE_NETTLE = "yes"; then
20739		       for ac_header in nettle/eddsa.h
20740do :
20741  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
20742"
20743if test "x$ac_cv_header_nettle_eddsa_h" = xyes
20744then :
20745  printf "%s\n" "#define HAVE_NETTLE_EDDSA_H 1" >>confdefs.h
20746 use_ed25519="yes"
20747fi
20748
20749done
20750      fi
20751      if test $use_ed25519 = "yes"; then
20752
20753printf "%s\n" "#define USE_ED25519 1" >>confdefs.h
20754
20755      fi
20756      ;;
20757esac
20758
20759# Check whether --enable-ed448 was given.
20760if test ${enable_ed448+y}
20761then :
20762  enableval=$enable_ed448;
20763fi
20764
20765use_ed448="no"
20766case "$enable_ed448" in
20767    no)
20768      ;;
20769    *)
20770      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
20771	      ac_fn_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
20772#include <openssl/evp.h>
20773
20774" "$ac_c_undeclared_builtin_options" "CFLAGS"
20775if test "x$ac_cv_have_decl_NID_ED448" = xyes
20776then :
20777  ac_have_decl=1
20778else $as_nop
20779  ac_have_decl=0
20780fi
20781printf "%s\n" "#define HAVE_DECL_NID_ED448 $ac_have_decl" >>confdefs.h
20782if test $ac_have_decl = 1
20783then :
20784
20785      		use_ed448="yes"
20786
20787else $as_nop
20788   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
20789	      	fi
20790fi
20791
20792      fi
20793      if test $use_ed448 = "yes"; then
20794
20795printf "%s\n" "#define USE_ED448 1" >>confdefs.h
20796
20797      fi
20798      ;;
20799esac
20800
20801# Check whether --enable-event-api was given.
20802if test ${enable_event_api+y}
20803then :
20804  enableval=$enable_event_api;
20805fi
20806
20807case "$enable_event_api" in
20808    yes)
20809      UNBOUND_EVENT_INSTALL=unbound-event-install
20810
20811      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
20812
20813      ;;
20814    *)
20815      ;;
20816esac
20817
20818# Check whether --enable-tfo-client was given.
20819if test ${enable_tfo_client+y}
20820then :
20821  enableval=$enable_tfo_client;
20822fi
20823
20824case "$enable_tfo_client" in
20825	yes)
20826		case "$host_os" in
20827			linux*) ac_fn_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
20828#include <netinet/tcp.h>
20829
20830" "$ac_c_undeclared_builtin_options" "CFLAGS"
20831if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes
20832then :
20833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
20834printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
20835else $as_nop
20836  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
20837fi
20838
20839printf "%s\n" "#define USE_MSG_FASTOPEN 1" >>confdefs.h
20840
20841				;;
20842			darwin*) ac_fn_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
20843#include <sys/socket.h>
20844
20845" "$ac_c_undeclared_builtin_options" "CFLAGS"
20846if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes
20847then :
20848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
20849printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
20850else $as_nop
20851  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
20852fi
20853
20854printf "%s\n" "#define USE_OSX_MSG_FASTOPEN 1" >>confdefs.h
20855
20856				;;
20857		esac
20858		;;
20859	no|*)
20860		;;
20861esac
20862
20863# Check whether --enable-tfo-server was given.
20864if test ${enable_tfo_server+y}
20865then :
20866  enableval=$enable_tfo_server;
20867fi
20868
20869case "$enable_tfo_server" in
20870	yes)
20871	      ac_fn_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
20872#include <netinet/tcp.h>
20873
20874" "$ac_c_undeclared_builtin_options" "CFLAGS"
20875if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes
20876then :
20877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
20878printf "%s\n" "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
20879else $as_nop
20880  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
20881fi
20882
20883printf "%s\n" "#define USE_TCP_FASTOPEN 1" >>confdefs.h
20884
20885		;;
20886	no|*)
20887		;;
20888esac
20889
20890# check for libevent
20891
20892# Check whether --with-libevent was given.
20893if test ${with_libevent+y}
20894then :
20895  withval=$with_libevent;
20896else $as_nop
20897   with_libevent="no"
20898fi
20899
20900if test "x_$with_libevent" != x_no; then
20901
20902printf "%s\n" "#define USE_LIBEVENT 1" >>confdefs.h
20903
20904        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
20905printf %s "checking for libevent... " >&6; }
20906        if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
20907            with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
20908        fi
20909        for dir in $with_libevent; do
20910            thedir="$dir"
20911            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
20912                found_libevent="yes"
20913								if test "$thedir" != "/usr"; then
20914				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
20915				fi
20916				break;
20917		    fi
20918        done
20919        if test x_$found_libevent != x_yes; then
20920		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
20921			# libevent source directory
20922			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
20923printf "%s\n" "found in $thedir" >&6; }
20924			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
20925			BAK_LDFLAGS_SET="1"
20926			BAK_LDFLAGS="$LDFLAGS"
20927			# remove evdns from linking
20928			mkdir build >/dev/null 2>&1
20929			mkdir build/libevent >/dev/null 2>&1
20930			mkdir build/libevent/.libs >/dev/null 2>&1
20931			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
20932			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
20933			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
20934			cp $ev_files_o build/libevent
20935			cp $ev_files_lo build/libevent
20936			cp $ev_files_libso build/libevent/.libs
20937			LATE_LDFLAGS="build/libevent/*.lo -lm"
20938			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
20939		else
20940            as_fn_error $? "Cannot find the libevent library in $with_libevent
20941You can restart ./configure --with-libevent=no to use a builtin alternative.
20942Please note that this alternative is not as capable as libevent when using
20943large outgoing port ranges.  " "$LINENO" 5
20944		fi
20945        else
20946            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
20947printf "%s\n" "found in $thedir" >&6; }
20948	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
20949		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
20950
20951	if test "x$enable_rpath" = xyes; then
20952		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
20953			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
20954		fi
20955	fi
20956
20957	    else
20958		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
20959			LDFLAGS="$LDFLAGS -L$thedir/lib"
20960
20961	if test "x$enable_rpath" = xyes; then
20962		if echo "$thedir/lib" | grep "^/" >/dev/null; then
20963			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
20964		fi
20965	fi
20966
20967		    fi
20968	    fi
20969        fi
20970	# check for library used by libevent after 1.3c
20971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20972printf %s "checking for library containing clock_gettime... " >&6; }
20973if test ${ac_cv_search_clock_gettime+y}
20974then :
20975  printf %s "(cached) " >&6
20976else $as_nop
20977  ac_func_search_save_LIBS=$LIBS
20978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979/* end confdefs.h.  */
20980
20981/* Override any GCC internal prototype to avoid an error.
20982   Use char because int might match the return type of a GCC
20983   builtin and then its argument prototype would still apply.  */
20984char clock_gettime ();
20985int
20986main (void)
20987{
20988return clock_gettime ();
20989  ;
20990  return 0;
20991}
20992_ACEOF
20993for ac_lib in '' rt
20994do
20995  if test -z "$ac_lib"; then
20996    ac_res="none required"
20997  else
20998    ac_res=-l$ac_lib
20999    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21000  fi
21001  if ac_fn_c_try_link "$LINENO"
21002then :
21003  ac_cv_search_clock_gettime=$ac_res
21004fi
21005rm -f core conftest.err conftest.$ac_objext conftest.beam \
21006    conftest$ac_exeext
21007  if test ${ac_cv_search_clock_gettime+y}
21008then :
21009  break
21010fi
21011done
21012if test ${ac_cv_search_clock_gettime+y}
21013then :
21014
21015else $as_nop
21016  ac_cv_search_clock_gettime=no
21017fi
21018rm conftest.$ac_ext
21019LIBS=$ac_func_search_save_LIBS
21020fi
21021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21022printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
21023ac_res=$ac_cv_search_clock_gettime
21024if test "$ac_res" != no
21025then :
21026  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21027
21028fi
21029
21030
21031	# is the event.h header libev or libevent?
21032	ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
21033"
21034if test "x$ac_cv_header_event_h" = xyes
21035then :
21036  printf "%s\n" "#define HAVE_EVENT_H 1" >>confdefs.h
21037
21038fi
21039
21040	ac_fn_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
21041#include <event.h>
21042
21043" "$ac_c_undeclared_builtin_options" "CFLAGS"
21044if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes
21045then :
21046
21047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
21048printf %s "checking for library containing event_set... " >&6; }
21049if test ${ac_cv_search_event_set+y}
21050then :
21051  printf %s "(cached) " >&6
21052else $as_nop
21053  ac_func_search_save_LIBS=$LIBS
21054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21055/* end confdefs.h.  */
21056
21057/* Override any GCC internal prototype to avoid an error.
21058   Use char because int might match the return type of a GCC
21059   builtin and then its argument prototype would still apply.  */
21060char event_set ();
21061int
21062main (void)
21063{
21064return event_set ();
21065  ;
21066  return 0;
21067}
21068_ACEOF
21069for ac_lib in '' ev
21070do
21071  if test -z "$ac_lib"; then
21072    ac_res="none required"
21073  else
21074    ac_res=-l$ac_lib
21075    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21076  fi
21077  if ac_fn_c_try_link "$LINENO"
21078then :
21079  ac_cv_search_event_set=$ac_res
21080fi
21081rm -f core conftest.err conftest.$ac_objext conftest.beam \
21082    conftest$ac_exeext
21083  if test ${ac_cv_search_event_set+y}
21084then :
21085  break
21086fi
21087done
21088if test ${ac_cv_search_event_set+y}
21089then :
21090
21091else $as_nop
21092  ac_cv_search_event_set=no
21093fi
21094rm conftest.$ac_ext
21095LIBS=$ac_func_search_save_LIBS
21096fi
21097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
21098printf "%s\n" "$ac_cv_search_event_set" >&6; }
21099ac_res=$ac_cv_search_event_set
21100if test "$ac_res" != no
21101then :
21102  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21103
21104fi
21105
21106
21107else $as_nop
21108
21109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
21110printf %s "checking for library containing event_set... " >&6; }
21111if test ${ac_cv_search_event_set+y}
21112then :
21113  printf %s "(cached) " >&6
21114else $as_nop
21115  ac_func_search_save_LIBS=$LIBS
21116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117/* end confdefs.h.  */
21118
21119/* Override any GCC internal prototype to avoid an error.
21120   Use char because int might match the return type of a GCC
21121   builtin and then its argument prototype would still apply.  */
21122char event_set ();
21123int
21124main (void)
21125{
21126return event_set ();
21127  ;
21128  return 0;
21129}
21130_ACEOF
21131for ac_lib in '' event
21132do
21133  if test -z "$ac_lib"; then
21134    ac_res="none required"
21135  else
21136    ac_res=-l$ac_lib
21137    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21138  fi
21139  if ac_fn_c_try_link "$LINENO"
21140then :
21141  ac_cv_search_event_set=$ac_res
21142fi
21143rm -f core conftest.err conftest.$ac_objext conftest.beam \
21144    conftest$ac_exeext
21145  if test ${ac_cv_search_event_set+y}
21146then :
21147  break
21148fi
21149done
21150if test ${ac_cv_search_event_set+y}
21151then :
21152
21153else $as_nop
21154  ac_cv_search_event_set=no
21155fi
21156rm conftest.$ac_ext
21157LIBS=$ac_func_search_save_LIBS
21158fi
21159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
21160printf "%s\n" "$ac_cv_search_event_set" >&6; }
21161ac_res=$ac_cv_search_event_set
21162if test "$ac_res" != no
21163then :
21164  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21165
21166fi
21167
21168
21169fi
21170	ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
21171if test "x$ac_cv_func_event_base_free" = xyes
21172then :
21173  printf "%s\n" "#define HAVE_EVENT_BASE_FREE 1" >>confdefs.h
21174
21175fi
21176 # only in libevent 1.2 and later
21177	ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
21178if test "x$ac_cv_func_event_base_once" = xyes
21179then :
21180  printf "%s\n" "#define HAVE_EVENT_BASE_ONCE 1" >>confdefs.h
21181
21182fi
21183 # only in libevent 1.4.1 and later
21184	ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
21185if test "x$ac_cv_func_event_base_new" = xyes
21186then :
21187  printf "%s\n" "#define HAVE_EVENT_BASE_NEW 1" >>confdefs.h
21188
21189fi
21190 # only in libevent 1.4.1 and later
21191	ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
21192if test "x$ac_cv_func_event_base_get_method" = xyes
21193then :
21194  printf "%s\n" "#define HAVE_EVENT_BASE_GET_METHOD 1" >>confdefs.h
21195
21196fi
21197 # only in libevent 1.4.3 and later
21198	ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
21199if test "x$ac_cv_func_ev_loop" = xyes
21200then :
21201  printf "%s\n" "#define HAVE_EV_LOOP 1" >>confdefs.h
21202
21203fi
21204 # only in libev. (tested on 3.51)
21205	ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
21206if test "x$ac_cv_func_ev_default_loop" = xyes
21207then :
21208  printf "%s\n" "#define HAVE_EV_DEFAULT_LOOP 1" >>confdefs.h
21209
21210fi
21211 # only in libev. (tested on 4.00)
21212	ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
21213if test "x$ac_cv_func_event_assign" = xyes
21214then :
21215  printf "%s\n" "#define HAVE_EVENT_ASSIGN 1" >>confdefs.h
21216
21217fi
21218 # in libevent, for thread-safety
21219	ac_fn_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
21220#ifdef HAVE_EVENT_H
21221#  include <event.h>
21222#else
21223#  include \"event2/event.h\"
21224#endif
21225
21226" "$ac_c_undeclared_builtin_options" "CFLAGS"
21227if test "x$ac_cv_have_decl_evsignal_assign" = xyes
21228then :
21229  ac_have_decl=1
21230else $as_nop
21231  ac_have_decl=0
21232fi
21233printf "%s\n" "#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl" >>confdefs.h
21234
21235        PC_LIBEVENT_DEPENDENCY="libevent"
21236
21237	if test -n "$BAK_LDFLAGS_SET"; then
21238		LDFLAGS="$BAK_LDFLAGS"
21239	fi
21240else
21241
21242printf "%s\n" "#define USE_MINI_EVENT 1" >>confdefs.h
21243
21244fi
21245
21246# check for libexpat
21247
21248# Check whether --with-libexpat was given.
21249if test ${with_libexpat+y}
21250then :
21251  withval=$with_libexpat;
21252else $as_nop
21253   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21254fi
21255
21256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21257printf %s "checking for libexpat... " >&6; }
21258found_libexpat="no"
21259for dir in $withval ; do
21260            if test -f "$dir/include/expat.h"; then
21261		found_libexpat="yes"
21262				if test "$dir" != "/usr"; then
21263                    CPPFLAGS="$CPPFLAGS -I$dir/include"
21264		    LDFLAGS="$LDFLAGS -L$dir/lib"
21265		fi
21266            	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21267printf "%s\n" "found in $dir" >&6; }
21268                break;
21269            fi
21270done
21271if test x_$found_libexpat != x_yes; then
21272	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
21273fi
21274ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
21275"
21276if test "x$ac_cv_header_expat_h" = xyes
21277then :
21278  printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h
21279
21280fi
21281
21282ac_fn_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
21283#include <expat.h>
21284
21285" "$ac_c_undeclared_builtin_options" "CFLAGS"
21286if test "x$ac_cv_have_decl_XML_StopParser" = xyes
21287then :
21288  ac_have_decl=1
21289else $as_nop
21290  ac_have_decl=0
21291fi
21292printf "%s\n" "#define HAVE_DECL_XML_STOPPARSER $ac_have_decl" >>confdefs.h
21293
21294
21295# hiredis (redis C client for cachedb)
21296
21297# Check whether --with-libhiredis was given.
21298if test ${with_libhiredis+y}
21299then :
21300  withval=$with_libhiredis;
21301else $as_nop
21302   withval="no"
21303fi
21304
21305found_libhiredis="no"
21306if test x_$withval = x_yes -o x_$withval != x_no; then
21307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
21308printf %s "checking for libhiredis... " >&6; }
21309   if test x_$withval = x_ -o x_$withval = x_yes; then
21310            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21311   fi
21312   for dir in $withval ; do
21313            if test -f "$dir/include/hiredis/hiredis.h"; then
21314		found_libhiredis="yes"
21315				if test "$dir" != "/usr"; then
21316                    CPPFLAGS="$CPPFLAGS -I$dir/include"
21317		    LDFLAGS="$LDFLAGS -L$dir/lib"
21318		fi
21319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21320printf "%s\n" "found in $dir" >&6; }
21321
21322printf "%s\n" "#define USE_REDIS 1" >>confdefs.h
21323
21324		LIBS="$LIBS -lhiredis"
21325                break;
21326            fi
21327    done
21328    if test x_$found_libhiredis != x_yes; then
21329	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
21330    fi
21331    ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
21332"
21333if test "x$ac_cv_header_hiredis_hiredis_h" = xyes
21334then :
21335  printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h
21336
21337fi
21338
21339    ac_fn_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
21340    #include <hiredis/hiredis.h>
21341
21342" "$ac_c_undeclared_builtin_options" "CFLAGS"
21343if test "x$ac_cv_have_decl_redisConnect" = xyes
21344then :
21345  ac_have_decl=1
21346else $as_nop
21347  ac_have_decl=0
21348fi
21349printf "%s\n" "#define HAVE_DECL_REDISCONNECT $ac_have_decl" >>confdefs.h
21350
21351fi
21352
21353# nghttp2
21354
21355# Check whether --with-libnghttp2 was given.
21356if test ${with_libnghttp2+y}
21357then :
21358  withval=$with_libnghttp2;
21359else $as_nop
21360   withval="no"
21361fi
21362
21363found_libnghttp2="no"
21364if test x_$withval = x_yes -o x_$withval != x_no; then
21365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
21366printf %s "checking for libnghttp2... " >&6; }
21367   if test x_$withval = x_ -o x_$withval = x_yes; then
21368            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21369   fi
21370   for dir in $withval ; do
21371            if test -f "$dir/include/nghttp2/nghttp2.h"; then
21372		found_libnghttp2="yes"
21373				if test "$dir" != "/usr"; then
21374                    CPPFLAGS="$CPPFLAGS -I$dir/include"
21375		    LDFLAGS="$LDFLAGS -L$dir/lib"
21376		fi
21377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21378printf "%s\n" "found in $dir" >&6; }
21379
21380printf "%s\n" "#define HAVE_NGHTTP2 1" >>confdefs.h
21381
21382		LIBS="$LIBS -lnghttp2"
21383                break;
21384            fi
21385    done
21386    if test x_$found_libnghttp2 != x_yes; then
21387	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
21388    fi
21389    ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
21390"
21391if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
21392then :
21393  printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
21394
21395fi
21396
21397    ac_fn_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
21398    #include <nghttp2/nghttp2.h>
21399
21400" "$ac_c_undeclared_builtin_options" "CFLAGS"
21401if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes
21402then :
21403  ac_have_decl=1
21404else $as_nop
21405  ac_have_decl=0
21406fi
21407printf "%s\n" "#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl" >>confdefs.h
21408
21409fi
21410
21411# set static linking for uninstalled libraries if requested
21412
21413staticexe=""
21414# Check whether --enable-static-exe was given.
21415if test ${enable_static_exe+y}
21416then :
21417  enableval=$enable_static_exe;
21418fi
21419
21420if test x_$enable_static_exe = x_yes; then
21421	staticexe="-static"
21422	if test "$on_mingw" = yes; then
21423		staticexe="-all-static"
21424		# for static compile, include gdi32 and zlib here.
21425		if echo $LIBS | grep 'lgdi32' >/dev/null; then
21426			:
21427		else
21428			LIBS="$LIBS -lgdi32"
21429		fi
21430		LIBS="$LIBS -lz"
21431		LIBS="$LIBS -l:libssp.a"
21432	fi
21433fi
21434
21435# set full static linking if requested
21436# Check whether --enable-fully-static was given.
21437if test ${enable_fully_static+y}
21438then :
21439  enableval=$enable_fully_static;
21440fi
21441
21442if test x_$enable_fully_static = x_yes; then
21443	staticexe="-all-static"
21444	if test "$on_mingw" = yes; then
21445		# for static compile, include gdi32 and zlib here.
21446		if echo $LIBS | grep 'lgdi32' >/dev/null; then
21447			:
21448		else
21449			LIBS="$LIBS -lgdi32"
21450		fi
21451		LIBS="$LIBS -lz"
21452		LIBS="$LIBS -l:libssp.a"
21453	fi
21454fi
21455
21456# set lock checking if requested
21457# Check whether --enable-lock_checks was given.
21458if test ${enable_lock_checks+y}
21459then :
21460  enableval=$enable_lock_checks;
21461fi
21462
21463if test x_$enable_lock_checks = x_yes; then
21464
21465printf "%s\n" "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
21466
21467	CHECKLOCK_OBJ="checklocks.lo"
21468
21469fi
21470
21471
21472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
21473printf %s "checking for getaddrinfo... " >&6; }
21474ac_cv_func_getaddrinfo=no
21475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21476/* end confdefs.h.  */
21477
21478#ifdef __cplusplus
21479extern "C"
21480{
21481#endif
21482char* getaddrinfo();
21483char* (*f) () = getaddrinfo;
21484#ifdef __cplusplus
21485}
21486#endif
21487int main() {
21488        ;
21489        return 0;
21490}
21491
21492_ACEOF
21493if ac_fn_c_try_link "$LINENO"
21494then :
21495  ac_cv_func_getaddrinfo="yes"
21496if test "$ac_cv_header_windows_h" = "yes"; then
21497
21498printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
21499
21500	USE_WINSOCK="1"
21501	if echo $LIBS | grep 'lws2_32' >/dev/null; then
21502		:
21503	else
21504		LIBS="$LIBS -lws2_32"
21505	fi
21506fi
21507
21508else $as_nop
21509  ORIGLIBS="$LIBS"
21510LIBS="$LIBS -lws2_32"
21511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512/* end confdefs.h.  */
21513
21514#ifdef HAVE_WS2TCPIP_H
21515#include <ws2tcpip.h>
21516#endif
21517
21518int
21519main (void)
21520{
21521
21522        (void)getaddrinfo(NULL, NULL, NULL, NULL);
21523
21524
21525  ;
21526  return 0;
21527}
21528_ACEOF
21529if ac_fn_c_try_link "$LINENO"
21530then :
21531
21532ac_cv_func_getaddrinfo="yes"
21533
21534printf "%s\n" "#define USE_WINSOCK 1" >>confdefs.h
21535
21536USE_WINSOCK="1"
21537
21538else $as_nop
21539
21540ac_cv_func_getaddrinfo="no"
21541LIBS="$ORIGLIBS"
21542
21543fi
21544rm -f core conftest.err conftest.$ac_objext conftest.beam \
21545    conftest$ac_exeext conftest.$ac_ext
21546
21547fi
21548rm -f core conftest.err conftest.$ac_objext conftest.beam \
21549    conftest$ac_exeext conftest.$ac_ext
21550
21551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
21552printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
21553if test $ac_cv_func_getaddrinfo = yes; then
21554
21555printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
21556
21557fi
21558
21559if test "$USE_WINSOCK" = 1; then
21560
21561printf "%s\n" "#define UB_ON_WINDOWS 1" >>confdefs.h
21562
21563	ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
21564#include <windows.h>
21565
21566"
21567if test "x$ac_cv_header_iphlpapi_h" = xyes
21568then :
21569  printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h
21570
21571fi
21572
21573	if test -n "$ac_tool_prefix"; then
21574  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
21575set dummy ${ac_tool_prefix}windres; ac_word=$2
21576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21577printf %s "checking for $ac_word... " >&6; }
21578if test ${ac_cv_prog_WINDRES+y}
21579then :
21580  printf %s "(cached) " >&6
21581else $as_nop
21582  if test -n "$WINDRES"; then
21583  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
21584else
21585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21586for as_dir in $PATH
21587do
21588  IFS=$as_save_IFS
21589  case $as_dir in #(((
21590    '') as_dir=./ ;;
21591    */) ;;
21592    *) as_dir=$as_dir/ ;;
21593  esac
21594    for ac_exec_ext in '' $ac_executable_extensions; do
21595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21596    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
21597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21598    break 2
21599  fi
21600done
21601  done
21602IFS=$as_save_IFS
21603
21604fi
21605fi
21606WINDRES=$ac_cv_prog_WINDRES
21607if test -n "$WINDRES"; then
21608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
21609printf "%s\n" "$WINDRES" >&6; }
21610else
21611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21612printf "%s\n" "no" >&6; }
21613fi
21614
21615
21616fi
21617if test -z "$ac_cv_prog_WINDRES"; then
21618  ac_ct_WINDRES=$WINDRES
21619  # Extract the first word of "windres", so it can be a program name with args.
21620set dummy windres; ac_word=$2
21621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622printf %s "checking for $ac_word... " >&6; }
21623if test ${ac_cv_prog_ac_ct_WINDRES+y}
21624then :
21625  printf %s "(cached) " >&6
21626else $as_nop
21627  if test -n "$ac_ct_WINDRES"; then
21628  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
21629else
21630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21631for as_dir in $PATH
21632do
21633  IFS=$as_save_IFS
21634  case $as_dir in #(((
21635    '') as_dir=./ ;;
21636    */) ;;
21637    *) as_dir=$as_dir/ ;;
21638  esac
21639    for ac_exec_ext in '' $ac_executable_extensions; do
21640  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21641    ac_cv_prog_ac_ct_WINDRES="windres"
21642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21643    break 2
21644  fi
21645done
21646  done
21647IFS=$as_save_IFS
21648
21649fi
21650fi
21651ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
21652if test -n "$ac_ct_WINDRES"; then
21653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
21654printf "%s\n" "$ac_ct_WINDRES" >&6; }
21655else
21656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657printf "%s\n" "no" >&6; }
21658fi
21659
21660  if test "x$ac_ct_WINDRES" = x; then
21661    WINDRES=""
21662  else
21663    case $cross_compiling:$ac_tool_warned in
21664yes:)
21665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21666printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21667ac_tool_warned=yes ;;
21668esac
21669    WINDRES=$ac_ct_WINDRES
21670  fi
21671else
21672  WINDRES="$ac_cv_prog_WINDRES"
21673fi
21674
21675	LIBS="$LIBS -liphlpapi -lcrypt32"
21676	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
21677
21678	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
21679
21680	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
21681
21682	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
21683
21684	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
21685
21686	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
21687
21688	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
21689
21690	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
21691
21692fi
21693if test $ac_cv_func_getaddrinfo = no; then
21694	case " $LIBOBJS " in
21695  *" fake-rfc2553.$ac_objext "* ) ;;
21696  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
21697 ;;
21698esac
21699
21700fi
21701# check after getaddrinfo for its libraries
21702
21703# check ioctlsocket
21704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
21705printf %s "checking for ioctlsocket... " >&6; }
21706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707/* end confdefs.h.  */
21708
21709#ifdef HAVE_WINSOCK2_H
21710#include <winsock2.h>
21711#endif
21712
21713int
21714main (void)
21715{
21716
21717	(void)ioctlsocket(0, 0, NULL);
21718
21719  ;
21720  return 0;
21721}
21722_ACEOF
21723if ac_fn_c_try_link "$LINENO"
21724then :
21725
21726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21727printf "%s\n" "yes" >&6; }
21728
21729printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
21730
21731
21732else $as_nop
21733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734printf "%s\n" "no" >&6; }
21735fi
21736rm -f core conftest.err conftest.$ac_objext conftest.beam \
21737    conftest$ac_exeext conftest.$ac_ext
21738
21739
21740# see if daemon(3) exists, and if it is deprecated.
21741ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
21742if test "x$ac_cv_func_daemon" = xyes
21743then :
21744  printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
21745
21746fi
21747
21748if test $ac_cv_func_daemon = yes; then
21749
21750
21751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
21752printf %s "checking if daemon is deprecated... " >&6; }
21753cache=`echo daemon | sed 'y%.=/+-%___p_%'`
21754if eval test \${cv_cc_deprecated_$cache+y}
21755then :
21756  printf %s "(cached) " >&6
21757else $as_nop
21758
21759echo '
21760#include <stdlib.h>
21761#include <unistd.h>
21762' >conftest.c
21763echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
21764if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
21765eval "cv_cc_deprecated_$cache=no"
21766else
21767eval "cv_cc_deprecated_$cache=yes"
21768fi
21769rm -f conftest conftest.o conftest.c
21770
21771fi
21772
21773if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
21774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21775printf "%s\n" "yes" >&6; }
21776
21777printf "%s\n" "#define DEPRECATED_DAEMON 1" >>confdefs.h
21778
21779:
21780
21781else
21782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21783printf "%s\n" "no" >&6; }
21784:
21785
21786fi
21787
21788fi
21789
21790ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
21791$ac_includes_default
21792#ifdef HAVE_SYS_UN_H
21793#include <sys/un.h>
21794#endif
21795
21796"
21797if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
21798then :
21799
21800printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
21801
21802
21803fi
21804
21805ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
21806$ac_includes_default
21807#if HAVE_SYS_PARAM_H
21808#include <sys/param.h>
21809#endif
21810
21811#ifdef HAVE_SYS_SOCKET_H
21812#include <sys/socket.h>
21813#endif
21814
21815#ifdef HAVE_SYS_UIO_H
21816#include <sys/uio.h>
21817#endif
21818
21819#ifdef HAVE_NETINET_IN_H
21820#include <netinet/in.h>
21821#endif
21822
21823#ifdef HAVE_NETINET_TCP_H
21824#include <netinet/tcp.h>
21825#endif
21826
21827#ifdef HAVE_ARPA_INET_H
21828#include <arpa/inet.h>
21829#endif
21830
21831#ifdef HAVE_WINSOCK2_H
21832#include <winsock2.h>
21833#endif
21834
21835#ifdef HAVE_WS2TCPIP_H
21836#include <ws2tcpip.h>
21837#endif
21838
21839"
21840if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes
21841then :
21842
21843printf "%s\n" "#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1" >>confdefs.h
21844
21845
21846fi
21847
21848
21849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
21850printf %s "checking for htobe64... " >&6; }
21851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21852/* end confdefs.h.  */
21853
21854#include <stdio.h>
21855#ifdef HAVE_ENDIAN_H
21856#  include <endian.h>
21857#endif
21858#ifdef HAVE_SYS_ENDIAN_H
21859#  include <sys/endian.h>
21860#endif
21861
21862int
21863main (void)
21864{
21865unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
21866  ;
21867  return 0;
21868}
21869_ACEOF
21870if ac_fn_c_try_link "$LINENO"
21871then :
21872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21873printf "%s\n" "yes" >&6; }
21874
21875printf "%s\n" "#define HAVE_HTOBE64 1" >>confdefs.h
21876
21877else $as_nop
21878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879printf "%s\n" "no" >&6; }
21880fi
21881rm -f core conftest.err conftest.$ac_objext conftest.beam \
21882    conftest$ac_exeext conftest.$ac_ext
21883
21884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
21885printf %s "checking for be64toh... " >&6; }
21886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21887/* end confdefs.h.  */
21888
21889#include <stdio.h>
21890#ifdef HAVE_ENDIAN_H
21891#  include <endian.h>
21892#endif
21893#ifdef HAVE_SYS_ENDIAN_H
21894#  include <sys/endian.h>
21895#endif
21896
21897int
21898main (void)
21899{
21900unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
21901  ;
21902  return 0;
21903}
21904_ACEOF
21905if ac_fn_c_try_link "$LINENO"
21906then :
21907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21908printf "%s\n" "yes" >&6; }
21909
21910printf "%s\n" "#define HAVE_BE64TOH 1" >>confdefs.h
21911
21912else $as_nop
21913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21914printf "%s\n" "no" >&6; }
21915fi
21916rm -f core conftest.err conftest.$ac_objext conftest.beam \
21917    conftest$ac_exeext conftest.$ac_ext
21918
21919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
21920printf %s "checking for library containing setusercontext... " >&6; }
21921if test ${ac_cv_search_setusercontext+y}
21922then :
21923  printf %s "(cached) " >&6
21924else $as_nop
21925  ac_func_search_save_LIBS=$LIBS
21926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927/* end confdefs.h.  */
21928
21929/* Override any GCC internal prototype to avoid an error.
21930   Use char because int might match the return type of a GCC
21931   builtin and then its argument prototype would still apply.  */
21932char setusercontext ();
21933int
21934main (void)
21935{
21936return setusercontext ();
21937  ;
21938  return 0;
21939}
21940_ACEOF
21941for ac_lib in '' util
21942do
21943  if test -z "$ac_lib"; then
21944    ac_res="none required"
21945  else
21946    ac_res=-l$ac_lib
21947    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21948  fi
21949  if ac_fn_c_try_link "$LINENO"
21950then :
21951  ac_cv_search_setusercontext=$ac_res
21952fi
21953rm -f core conftest.err conftest.$ac_objext conftest.beam \
21954    conftest$ac_exeext
21955  if test ${ac_cv_search_setusercontext+y}
21956then :
21957  break
21958fi
21959done
21960if test ${ac_cv_search_setusercontext+y}
21961then :
21962
21963else $as_nop
21964  ac_cv_search_setusercontext=no
21965fi
21966rm conftest.$ac_ext
21967LIBS=$ac_func_search_save_LIBS
21968fi
21969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
21970printf "%s\n" "$ac_cv_search_setusercontext" >&6; }
21971ac_res=$ac_cv_search_setusercontext
21972if test "$ac_res" != no
21973then :
21974  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21975
21976fi
21977
21978ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
21979if test "x$ac_cv_func_tzset" = xyes
21980then :
21981  printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
21982
21983fi
21984ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21985if test "x$ac_cv_func_sigprocmask" = xyes
21986then :
21987  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
21988
21989fi
21990ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
21991if test "x$ac_cv_func_fcntl" = xyes
21992then :
21993  printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
21994
21995fi
21996ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
21997if test "x$ac_cv_func_getpwnam" = xyes
21998then :
21999  printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
22000
22001fi
22002ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
22003if test "x$ac_cv_func_endpwent" = xyes
22004then :
22005  printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
22006
22007fi
22008ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
22009if test "x$ac_cv_func_getrlimit" = xyes
22010then :
22011  printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
22012
22013fi
22014ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
22015if test "x$ac_cv_func_setrlimit" = xyes
22016then :
22017  printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
22018
22019fi
22020ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
22021if test "x$ac_cv_func_setsid" = xyes
22022then :
22023  printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
22024
22025fi
22026ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
22027if test "x$ac_cv_func_chroot" = xyes
22028then :
22029  printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
22030
22031fi
22032ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill"
22033if test "x$ac_cv_func_kill" = xyes
22034then :
22035  printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
22036
22037fi
22038ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
22039if test "x$ac_cv_func_chown" = xyes
22040then :
22041  printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
22042
22043fi
22044ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
22045if test "x$ac_cv_func_sleep" = xyes
22046then :
22047  printf "%s\n" "#define HAVE_SLEEP 1" >>confdefs.h
22048
22049fi
22050ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22051if test "x$ac_cv_func_usleep" = xyes
22052then :
22053  printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
22054
22055fi
22056ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
22057if test "x$ac_cv_func_random" = xyes
22058then :
22059  printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
22060
22061fi
22062ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
22063if test "x$ac_cv_func_srandom" = xyes
22064then :
22065  printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
22066
22067fi
22068ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
22069if test "x$ac_cv_func_recvmsg" = xyes
22070then :
22071  printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
22072
22073fi
22074ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg"
22075if test "x$ac_cv_func_sendmsg" = xyes
22076then :
22077  printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
22078
22079fi
22080ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
22081if test "x$ac_cv_func_writev" = xyes
22082then :
22083  printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
22084
22085fi
22086ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
22087if test "x$ac_cv_func_socketpair" = xyes
22088then :
22089  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
22090
22091fi
22092ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
22093if test "x$ac_cv_func_glob" = xyes
22094then :
22095  printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
22096
22097fi
22098ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
22099if test "x$ac_cv_func_initgroups" = xyes
22100then :
22101  printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
22102
22103fi
22104ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
22105if test "x$ac_cv_func_strftime" = xyes
22106then :
22107  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
22108
22109fi
22110ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
22111if test "x$ac_cv_func_localtime_r" = xyes
22112then :
22113  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
22114
22115fi
22116ac_fn_c_check_func "$LINENO" "setusercontext" "ac_cv_func_setusercontext"
22117if test "x$ac_cv_func_setusercontext" = xyes
22118then :
22119  printf "%s\n" "#define HAVE_SETUSERCONTEXT 1" >>confdefs.h
22120
22121fi
22122ac_fn_c_check_func "$LINENO" "_beginthreadex" "ac_cv_func__beginthreadex"
22123if test "x$ac_cv_func__beginthreadex" = xyes
22124then :
22125  printf "%s\n" "#define HAVE__BEGINTHREADEX 1" >>confdefs.h
22126
22127fi
22128ac_fn_c_check_func "$LINENO" "endservent" "ac_cv_func_endservent"
22129if test "x$ac_cv_func_endservent" = xyes
22130then :
22131  printf "%s\n" "#define HAVE_ENDSERVENT 1" >>confdefs.h
22132
22133fi
22134ac_fn_c_check_func "$LINENO" "endprotoent" "ac_cv_func_endprotoent"
22135if test "x$ac_cv_func_endprotoent" = xyes
22136then :
22137  printf "%s\n" "#define HAVE_ENDPROTOENT 1" >>confdefs.h
22138
22139fi
22140ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
22141if test "x$ac_cv_func_fsync" = xyes
22142then :
22143  printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
22144
22145fi
22146ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget"
22147if test "x$ac_cv_func_shmget" = xyes
22148then :
22149  printf "%s\n" "#define HAVE_SHMGET 1" >>confdefs.h
22150
22151fi
22152ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
22153if test "x$ac_cv_func_accept4" = xyes
22154then :
22155  printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
22156
22157fi
22158ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
22159if test "x$ac_cv_func_getifaddrs" = xyes
22160then :
22161  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
22162
22163fi
22164
22165
22166  for ac_func in setresuid
22167do :
22168  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
22169if test "x$ac_cv_func_setresuid" = xyes
22170then :
22171  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
22172
22173else $as_nop
22174  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
22175if test "x$ac_cv_func_setreuid" = xyes
22176then :
22177  printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
22178
22179fi
22180
22181fi
22182
22183done
22184
22185  for ac_func in setresgid
22186do :
22187  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
22188if test "x$ac_cv_func_setresgid" = xyes
22189then :
22190  printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
22191
22192else $as_nop
22193  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
22194if test "x$ac_cv_func_setregid" = xyes
22195then :
22196  printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
22197
22198fi
22199
22200fi
22201
22202done
22203
22204# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
22205if echo $host_os | grep darwin8 > /dev/null; then
22206
22207printf "%s\n" "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
22208
22209fi
22210ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
22211$ac_includes_default
22212#ifdef HAVE_NETINET_IN_H
22213#include <netinet/in.h>
22214#endif
22215
22216#ifdef HAVE_NETINET_TCP_H
22217#include <netinet/tcp.h>
22218#endif
22219
22220#ifdef HAVE_ARPA_INET_H
22221#include <arpa/inet.h>
22222#endif
22223
22224#ifdef HAVE_WINSOCK2_H
22225#include <winsock2.h>
22226#endif
22227
22228#ifdef HAVE_WS2TCPIP_H
22229#include <ws2tcpip.h>
22230#endif
22231
22232" "$ac_c_undeclared_builtin_options" "CFLAGS"
22233if test "x$ac_cv_have_decl_inet_pton" = xyes
22234then :
22235  ac_have_decl=1
22236else $as_nop
22237  ac_have_decl=0
22238fi
22239printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h
22240ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
22241$ac_includes_default
22242#ifdef HAVE_NETINET_IN_H
22243#include <netinet/in.h>
22244#endif
22245
22246#ifdef HAVE_NETINET_TCP_H
22247#include <netinet/tcp.h>
22248#endif
22249
22250#ifdef HAVE_ARPA_INET_H
22251#include <arpa/inet.h>
22252#endif
22253
22254#ifdef HAVE_WINSOCK2_H
22255#include <winsock2.h>
22256#endif
22257
22258#ifdef HAVE_WS2TCPIP_H
22259#include <ws2tcpip.h>
22260#endif
22261
22262" "$ac_c_undeclared_builtin_options" "CFLAGS"
22263if test "x$ac_cv_have_decl_inet_ntop" = xyes
22264then :
22265  ac_have_decl=1
22266else $as_nop
22267  ac_have_decl=0
22268fi
22269printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h
22270
22271ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
22272if test "x$ac_cv_func_inet_aton" = xyes
22273then :
22274  printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
22275
22276else $as_nop
22277  case " $LIBOBJS " in
22278  *" inet_aton.$ac_objext "* ) ;;
22279  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
22280 ;;
22281esac
22282
22283fi
22284
22285ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
22286if test "x$ac_cv_func_inet_pton" = xyes
22287then :
22288  printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
22289
22290else $as_nop
22291  case " $LIBOBJS " in
22292  *" inet_pton.$ac_objext "* ) ;;
22293  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
22294 ;;
22295esac
22296
22297fi
22298
22299ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
22300if test "x$ac_cv_func_inet_ntop" = xyes
22301then :
22302  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
22303
22304else $as_nop
22305  case " $LIBOBJS " in
22306  *" inet_ntop.$ac_objext "* ) ;;
22307  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
22308 ;;
22309esac
22310
22311fi
22312
22313ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22314if test "x$ac_cv_func_snprintf" = xyes
22315then :
22316  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
22317
22318else $as_nop
22319  case " $LIBOBJS " in
22320  *" snprintf.$ac_objext "* ) ;;
22321  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22322 ;;
22323esac
22324
22325fi
22326
22327# test if snprintf return the proper length
22328if test "x$ac_cv_func_snprintf" = xyes; then
22329    if test c${cross_compiling} = cno; then
22330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
22331printf %s "checking for correct snprintf return value... " >&6; }
22332	if test "$cross_compiling" = yes
22333then :
22334  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22335printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22336as_fn_error $? "cannot run test program while cross compiling
22337See \`config.log' for more details" "$LINENO" 5; }
22338else $as_nop
22339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340/* end confdefs.h.  */
22341$ac_includes_default
22342
22343int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
22344
22345_ACEOF
22346if ac_fn_c_try_run "$LINENO"
22347then :
22348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22349printf "%s\n" "yes" >&6; }
22350else $as_nop
22351
22352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353printf "%s\n" "no" >&6; }
22354
22355printf "%s\n" "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
22356
22357		case " $LIBOBJS " in
22358  *" snprintf.$ac_objext "* ) ;;
22359  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22360 ;;
22361esac
22362
22363
22364fi
22365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22366  conftest.$ac_objext conftest.beam conftest.$ac_ext
22367fi
22368
22369    fi
22370fi
22371ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
22372if test "x$ac_cv_func_strlcat" = xyes
22373then :
22374  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
22375
22376else $as_nop
22377  case " $LIBOBJS " in
22378  *" strlcat.$ac_objext "* ) ;;
22379  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22380 ;;
22381esac
22382
22383fi
22384
22385ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22386if test "x$ac_cv_func_strlcpy" = xyes
22387then :
22388  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
22389
22390else $as_nop
22391  case " $LIBOBJS " in
22392  *" strlcpy.$ac_objext "* ) ;;
22393  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22394 ;;
22395esac
22396
22397fi
22398
22399ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22400if test "x$ac_cv_func_memmove" = xyes
22401then :
22402  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
22403
22404else $as_nop
22405  case " $LIBOBJS " in
22406  *" memmove.$ac_objext "* ) ;;
22407  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
22408 ;;
22409esac
22410
22411fi
22412
22413ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
22414if test "x$ac_cv_func_gmtime_r" = xyes
22415then :
22416  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
22417
22418else $as_nop
22419  case " $LIBOBJS " in
22420  *" gmtime_r.$ac_objext "* ) ;;
22421  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
22422 ;;
22423esac
22424
22425fi
22426
22427ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
22428if test "x$ac_cv_func_isblank" = xyes
22429then :
22430  printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
22431
22432else $as_nop
22433  case " $LIBOBJS " in
22434  *" isblank.$ac_objext "* ) ;;
22435  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
22436 ;;
22437esac
22438
22439fi
22440
22441ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
22442if test "x$ac_cv_func_explicit_bzero" = xyes
22443then :
22444  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
22445
22446else $as_nop
22447  case " $LIBOBJS " in
22448  *" explicit_bzero.$ac_objext "* ) ;;
22449  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
22450 ;;
22451esac
22452
22453fi
22454
22455LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
22456
22457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
22458printf %s "checking for reallocarray... " >&6; }
22459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460/* end confdefs.h.  */
22461$ac_includes_default
22462
22463#ifndef _OPENBSD_SOURCE
22464#define _OPENBSD_SOURCE 1
22465#endif
22466#include <stdlib.h>
22467int main(void) {
22468	void* p = reallocarray(NULL, 10, 100);
22469	free(p);
22470	return 0;
22471}
22472
22473_ACEOF
22474if ac_fn_c_try_link "$LINENO"
22475then :
22476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22477printf "%s\n" "yes" >&6; }
22478
22479printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22480
22481
22482else $as_nop
22483
22484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22485printf "%s\n" "no" >&6; }
22486	case " $LIBOBJS " in
22487  *" reallocarray.$ac_objext "* ) ;;
22488  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22489 ;;
22490esac
22491
22492
22493fi
22494rm -f core conftest.err conftest.$ac_objext conftest.beam \
22495    conftest$ac_exeext conftest.$ac_ext
22496ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22497if test "x$ac_cv_have_decl_reallocarray" = xyes
22498then :
22499  ac_have_decl=1
22500else $as_nop
22501  ac_have_decl=0
22502fi
22503printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
22504
22505if test "$USE_NSS" = "no"; then
22506	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
22507if test "x$ac_cv_func_arc4random" = xyes
22508then :
22509  printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
22510
22511else $as_nop
22512  case " $LIBOBJS " in
22513  *" arc4random.$ac_objext "* ) ;;
22514  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
22515 ;;
22516esac
22517
22518fi
22519
22520	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
22521if test "x$ac_cv_func_arc4random_uniform" = xyes
22522then :
22523  printf "%s\n" "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
22524
22525else $as_nop
22526  case " $LIBOBJS " in
22527  *" arc4random_uniform.$ac_objext "* ) ;;
22528  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
22529 ;;
22530esac
22531
22532fi
22533
22534	if test "$ac_cv_func_arc4random" = "no"; then
22535		case " $LIBOBJS " in
22536  *" arc4_lock.$ac_objext "* ) ;;
22537  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
22538 ;;
22539esac
22540
22541
22542  for ac_func in getentropy
22543do :
22544  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
22545if test "x$ac_cv_func_getentropy" = xyes
22546then :
22547  printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
22548
22549else $as_nop
22550
22551		    if test "$USE_WINSOCK" = 1; then
22552			case " $LIBOBJS " in
22553  *" getentropy_win.$ac_objext "* ) ;;
22554  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
22555 ;;
22556esac
22557
22558		    else
22559			case "$host" in
22560			Darwin|*darwin*)
22561				case " $LIBOBJS " in
22562  *" getentropy_osx.$ac_objext "* ) ;;
22563  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
22564 ;;
22565esac
22566
22567			;;
22568			*solaris*|*sunos*|SunOS)
22569				case " $LIBOBJS " in
22570  *" getentropy_solaris.$ac_objext "* ) ;;
22571  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
22572 ;;
22573esac
22574
22575				       for ac_header in sys/sha2.h
22576do :
22577  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
22578"
22579if test "x$ac_cv_header_sys_sha2_h" = xyes
22580then :
22581  printf "%s\n" "#define HAVE_SYS_SHA2_H 1" >>confdefs.h
22582
22583else $as_nop
22584
22585
22586  for ac_func in SHA512_Update
22587do :
22588  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
22589if test "x$ac_cv_func_SHA512_Update" = xyes
22590then :
22591  printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h
22592
22593else $as_nop
22594
22595						case " $LIBOBJS " in
22596  *" sha512.$ac_objext "* ) ;;
22597  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
22598 ;;
22599esac
22600
22601
22602fi
22603
22604done
22605
22606fi
22607
22608done
22609				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
22610					# this lib needed for sha2 on solaris
22611					LIBS="$LIBS -lmd"
22612				fi
22613				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22614printf %s "checking for library containing clock_gettime... " >&6; }
22615if test ${ac_cv_search_clock_gettime+y}
22616then :
22617  printf %s "(cached) " >&6
22618else $as_nop
22619  ac_func_search_save_LIBS=$LIBS
22620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621/* end confdefs.h.  */
22622
22623/* Override any GCC internal prototype to avoid an error.
22624   Use char because int might match the return type of a GCC
22625   builtin and then its argument prototype would still apply.  */
22626char clock_gettime ();
22627int
22628main (void)
22629{
22630return clock_gettime ();
22631  ;
22632  return 0;
22633}
22634_ACEOF
22635for ac_lib in '' rt
22636do
22637  if test -z "$ac_lib"; then
22638    ac_res="none required"
22639  else
22640    ac_res=-l$ac_lib
22641    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22642  fi
22643  if ac_fn_c_try_link "$LINENO"
22644then :
22645  ac_cv_search_clock_gettime=$ac_res
22646fi
22647rm -f core conftest.err conftest.$ac_objext conftest.beam \
22648    conftest$ac_exeext
22649  if test ${ac_cv_search_clock_gettime+y}
22650then :
22651  break
22652fi
22653done
22654if test ${ac_cv_search_clock_gettime+y}
22655then :
22656
22657else $as_nop
22658  ac_cv_search_clock_gettime=no
22659fi
22660rm conftest.$ac_ext
22661LIBS=$ac_func_search_save_LIBS
22662fi
22663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22664printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
22665ac_res=$ac_cv_search_clock_gettime
22666if test "$ac_res" != no
22667then :
22668  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22669
22670fi
22671
22672			;;
22673			*freebsd*|*FreeBSD)
22674				case " $LIBOBJS " in
22675  *" getentropy_freebsd.$ac_objext "* ) ;;
22676  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
22677 ;;
22678esac
22679
22680			;;
22681			*linux*|Linux|*)
22682				case " $LIBOBJS " in
22683  *" getentropy_linux.$ac_objext "* ) ;;
22684  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
22685 ;;
22686esac
22687
22688
22689  for ac_func in SHA512_Update
22690do :
22691  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
22692if test "x$ac_cv_func_SHA512_Update" = xyes
22693then :
22694  printf "%s\n" "#define HAVE_SHA512_UPDATE 1" >>confdefs.h
22695
22696else $as_nop
22697
22698
22699printf "%s\n" "#define COMPAT_SHA512 1" >>confdefs.h
22700
22701					case " $LIBOBJS " in
22702  *" sha512.$ac_objext "* ) ;;
22703  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
22704 ;;
22705esac
22706
22707
22708fi
22709
22710done
22711				ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
22712"
22713if test "x$ac_cv_header_sys_sysctl_h" = xyes
22714then :
22715  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
22716
22717fi
22718
22719				ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
22720if test "x$ac_cv_func_getauxval" = xyes
22721then :
22722  printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
22723
22724fi
22725
22726				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22727printf %s "checking for library containing clock_gettime... " >&6; }
22728if test ${ac_cv_search_clock_gettime+y}
22729then :
22730  printf %s "(cached) " >&6
22731else $as_nop
22732  ac_func_search_save_LIBS=$LIBS
22733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734/* end confdefs.h.  */
22735
22736/* Override any GCC internal prototype to avoid an error.
22737   Use char because int might match the return type of a GCC
22738   builtin and then its argument prototype would still apply.  */
22739char clock_gettime ();
22740int
22741main (void)
22742{
22743return clock_gettime ();
22744  ;
22745  return 0;
22746}
22747_ACEOF
22748for ac_lib in '' rt
22749do
22750  if test -z "$ac_lib"; then
22751    ac_res="none required"
22752  else
22753    ac_res=-l$ac_lib
22754    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22755  fi
22756  if ac_fn_c_try_link "$LINENO"
22757then :
22758  ac_cv_search_clock_gettime=$ac_res
22759fi
22760rm -f core conftest.err conftest.$ac_objext conftest.beam \
22761    conftest$ac_exeext
22762  if test ${ac_cv_search_clock_gettime+y}
22763then :
22764  break
22765fi
22766done
22767if test ${ac_cv_search_clock_gettime+y}
22768then :
22769
22770else $as_nop
22771  ac_cv_search_clock_gettime=no
22772fi
22773rm conftest.$ac_ext
22774LIBS=$ac_func_search_save_LIBS
22775fi
22776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22777printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
22778ac_res=$ac_cv_search_clock_gettime
22779if test "$ac_res" != no
22780then :
22781  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22782
22783fi
22784
22785			;;
22786			esac
22787		    fi
22788
22789fi
22790
22791done
22792	fi
22793fi
22794LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
22795
22796ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
22797if test "x$ac_cv_func_ctime_r" = xyes
22798then :
22799  printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
22800
22801else $as_nop
22802  case " $LIBOBJS " in
22803  *" ctime_r.$ac_objext "* ) ;;
22804  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
22805 ;;
22806esac
22807
22808fi
22809
22810ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
22811if test "x$ac_cv_func_strsep" = xyes
22812then :
22813  printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
22814
22815else $as_nop
22816  case " $LIBOBJS " in
22817  *" strsep.$ac_objext "* ) ;;
22818  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
22819 ;;
22820esac
22821
22822fi
22823
22824
22825# Check whether --enable-allsymbols was given.
22826if test ${enable_allsymbols+y}
22827then :
22828  enableval=$enable_allsymbols;
22829fi
22830
22831case "$enable_allsymbols" in
22832	yes)
22833	COMMON_OBJ_ALL_SYMBOLS=""
22834	UBSYMS=""
22835	EXTRALINK="libunbound.la"
22836
22837printf "%s\n" "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
22838
22839	;;
22840	no|*)
22841	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
22842	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
22843	EXTRALINK=""
22844	;;
22845esac
22846
22847
22848
22849if test x_$enable_lock_checks = x_yes; then
22850	UBSYMS="-export-symbols clubsyms.def"
22851	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
22852	echo lock_protect >> clubsyms.def
22853	echo lock_unprotect >> clubsyms.def
22854	echo lock_get_mem >> clubsyms.def
22855	echo checklock_start >> clubsyms.def
22856	echo checklock_stop >> clubsyms.def
22857	echo checklock_lock >> clubsyms.def
22858	echo checklock_unlock >> clubsyms.def
22859	echo checklock_init >> clubsyms.def
22860	echo checklock_thrcreate >> clubsyms.def
22861	echo checklock_thrjoin >> clubsyms.def
22862fi
22863
22864# check for dnstap if requested
22865
22866  # Check whether --enable-dnstap was given.
22867if test ${enable_dnstap+y}
22868then :
22869  enableval=$enable_dnstap; opt_dnstap=$enableval
22870else $as_nop
22871  opt_dnstap=no
22872fi
22873
22874
22875
22876# Check whether --with-dnstap-socket-path was given.
22877if test ${with_dnstap_socket_path+y}
22878then :
22879  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
22880else $as_nop
22881  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
22882fi
22883
22884
22885  if test "x$opt_dnstap" != "xno"; then
22886    # Extract the first word of "protoc-c", so it can be a program name with args.
22887set dummy protoc-c; ac_word=$2
22888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22889printf %s "checking for $ac_word... " >&6; }
22890if test ${ac_cv_path_PROTOC_C+y}
22891then :
22892  printf %s "(cached) " >&6
22893else $as_nop
22894  case $PROTOC_C in
22895  [\\/]* | ?:[\\/]*)
22896  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
22897  ;;
22898  *)
22899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22900for as_dir in $PATH
22901do
22902  IFS=$as_save_IFS
22903  case $as_dir in #(((
22904    '') as_dir=./ ;;
22905    */) ;;
22906    *) as_dir=$as_dir/ ;;
22907  esac
22908    for ac_exec_ext in '' $ac_executable_extensions; do
22909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22910    ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext"
22911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22912    break 2
22913  fi
22914done
22915  done
22916IFS=$as_save_IFS
22917
22918  ;;
22919esac
22920fi
22921PROTOC_C=$ac_cv_path_PROTOC_C
22922if test -n "$PROTOC_C"; then
22923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
22924printf "%s\n" "$PROTOC_C" >&6; }
22925else
22926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22927printf "%s\n" "no" >&6; }
22928fi
22929
22930
22931    if test -z "$PROTOC_C"; then
22932      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
22933    fi
22934
22935# Check whether --with-protobuf-c was given.
22936if test ${with_protobuf_c+y}
22937then :
22938  withval=$with_protobuf_c;
22939	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
22940	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
22941	    CFLAGS="$CFLAGS -I$withval/include/google"
22942	  else
22943	    CFLAGS="$CFLAGS -I$withval/include"
22944	  fi
22945	  LDFLAGS="$LDFLAGS -L$withval/lib"
22946
22947else $as_nop
22948
22949	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
22950	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
22951	    CFLAGS="$CFLAGS -I/usr/include/google"
22952	  else
22953	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
22954	      CFLAGS="$CFLAGS -I/usr/local/include/google"
22955	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
22956	    fi
22957	  fi
22958
22959fi
22960
22961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
22962printf %s "checking for library containing protobuf_c_message_pack... " >&6; }
22963if test ${ac_cv_search_protobuf_c_message_pack+y}
22964then :
22965  printf %s "(cached) " >&6
22966else $as_nop
22967  ac_func_search_save_LIBS=$LIBS
22968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969/* end confdefs.h.  */
22970
22971/* Override any GCC internal prototype to avoid an error.
22972   Use char because int might match the return type of a GCC
22973   builtin and then its argument prototype would still apply.  */
22974char protobuf_c_message_pack ();
22975int
22976main (void)
22977{
22978return protobuf_c_message_pack ();
22979  ;
22980  return 0;
22981}
22982_ACEOF
22983for ac_lib in '' protobuf-c
22984do
22985  if test -z "$ac_lib"; then
22986    ac_res="none required"
22987  else
22988    ac_res=-l$ac_lib
22989    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22990  fi
22991  if ac_fn_c_try_link "$LINENO"
22992then :
22993  ac_cv_search_protobuf_c_message_pack=$ac_res
22994fi
22995rm -f core conftest.err conftest.$ac_objext conftest.beam \
22996    conftest$ac_exeext
22997  if test ${ac_cv_search_protobuf_c_message_pack+y}
22998then :
22999  break
23000fi
23001done
23002if test ${ac_cv_search_protobuf_c_message_pack+y}
23003then :
23004
23005else $as_nop
23006  ac_cv_search_protobuf_c_message_pack=no
23007fi
23008rm conftest.$ac_ext
23009LIBS=$ac_func_search_save_LIBS
23010fi
23011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
23012printf "%s\n" "$ac_cv_search_protobuf_c_message_pack" >&6; }
23013ac_res=$ac_cv_search_protobuf_c_message_pack
23014if test "$ac_res" != no
23015then :
23016  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23017
23018else $as_nop
23019  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
23020fi
23021
23022
23023
23024printf "%s\n" "#define USE_DNSTAP 1" >>confdefs.h
23025
23026        ENABLE_DNSTAP=1
23027
23028
23029
23030        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
23031
23032
23033printf "%s\n" "#define DNSTAP_SOCKET_PATH \"$hdr_dnstap_socket_path\"" >>confdefs.h
23034
23035	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
23036
23037	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
23038
23039        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
23040
23041        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
23042
23043
23044  else
23045
23046        ENABLE_DNSTAP=0
23047
23048
23049
23050  fi
23051
23052
23053# check for dnscrypt if requested
23054
23055  # Check whether --enable-dnscrypt was given.
23056if test ${enable_dnscrypt+y}
23057then :
23058  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
23059else $as_nop
23060  opt_dnscrypt=no
23061fi
23062
23063
23064  if test "x$opt_dnscrypt" != "xno"; then
23065
23066# Check whether --with-libsodium was given.
23067if test ${with_libsodium+y}
23068then :
23069  withval=$with_libsodium;
23070	CFLAGS="$CFLAGS -I$withval/include"
23071	LDFLAGS="$LDFLAGS -L$withval/lib"
23072
23073fi
23074
23075    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
23076printf %s "checking for library containing sodium_init... " >&6; }
23077if test ${ac_cv_search_sodium_init+y}
23078then :
23079  printf %s "(cached) " >&6
23080else $as_nop
23081  ac_func_search_save_LIBS=$LIBS
23082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083/* end confdefs.h.  */
23084
23085/* Override any GCC internal prototype to avoid an error.
23086   Use char because int might match the return type of a GCC
23087   builtin and then its argument prototype would still apply.  */
23088char sodium_init ();
23089int
23090main (void)
23091{
23092return sodium_init ();
23093  ;
23094  return 0;
23095}
23096_ACEOF
23097for ac_lib in '' sodium
23098do
23099  if test -z "$ac_lib"; then
23100    ac_res="none required"
23101  else
23102    ac_res=-l$ac_lib
23103    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23104  fi
23105  if ac_fn_c_try_link "$LINENO"
23106then :
23107  ac_cv_search_sodium_init=$ac_res
23108fi
23109rm -f core conftest.err conftest.$ac_objext conftest.beam \
23110    conftest$ac_exeext
23111  if test ${ac_cv_search_sodium_init+y}
23112then :
23113  break
23114fi
23115done
23116if test ${ac_cv_search_sodium_init+y}
23117then :
23118
23119else $as_nop
23120  ac_cv_search_sodium_init=no
23121fi
23122rm conftest.$ac_ext
23123LIBS=$ac_func_search_save_LIBS
23124fi
23125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
23126printf "%s\n" "$ac_cv_search_sodium_init" >&6; }
23127ac_res=$ac_cv_search_sodium_init
23128if test "$ac_res" != no
23129then :
23130  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23131
23132else $as_nop
23133  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
23134fi
23135
23136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
23137printf %s "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
23138if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
23139then :
23140  printf %s "(cached) " >&6
23141else $as_nop
23142  ac_func_search_save_LIBS=$LIBS
23143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144/* end confdefs.h.  */
23145
23146/* Override any GCC internal prototype to avoid an error.
23147   Use char because int might match the return type of a GCC
23148   builtin and then its argument prototype would still apply.  */
23149char crypto_box_curve25519xchacha20poly1305_beforenm ();
23150int
23151main (void)
23152{
23153return crypto_box_curve25519xchacha20poly1305_beforenm ();
23154  ;
23155  return 0;
23156}
23157_ACEOF
23158for ac_lib in '' sodium
23159do
23160  if test -z "$ac_lib"; then
23161    ac_res="none required"
23162  else
23163    ac_res=-l$ac_lib
23164    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23165  fi
23166  if ac_fn_c_try_link "$LINENO"
23167then :
23168  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
23169fi
23170rm -f core conftest.err conftest.$ac_objext conftest.beam \
23171    conftest$ac_exeext
23172  if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
23173then :
23174  break
23175fi
23176done
23177if test ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+y}
23178then :
23179
23180else $as_nop
23181  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
23182fi
23183rm conftest.$ac_ext
23184LIBS=$ac_func_search_save_LIBS
23185fi
23186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
23187printf "%s\n" "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
23188ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
23189if test "$ac_res" != no
23190then :
23191  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23192
23193            ENABLE_DNSCRYPT_XCHACHA20=1
23194
23195
23196printf "%s\n" "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
23197
23198
23199else $as_nop
23200
23201            ENABLE_DNSCRYPT_XCHACHA20=0
23202
23203
23204fi
23205
23206    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
23207printf %s "checking for library containing sodium_set_misuse_handler... " >&6; }
23208if test ${ac_cv_search_sodium_set_misuse_handler+y}
23209then :
23210  printf %s "(cached) " >&6
23211else $as_nop
23212  ac_func_search_save_LIBS=$LIBS
23213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214/* end confdefs.h.  */
23215
23216/* Override any GCC internal prototype to avoid an error.
23217   Use char because int might match the return type of a GCC
23218   builtin and then its argument prototype would still apply.  */
23219char sodium_set_misuse_handler ();
23220int
23221main (void)
23222{
23223return sodium_set_misuse_handler ();
23224  ;
23225  return 0;
23226}
23227_ACEOF
23228for ac_lib in '' sodium
23229do
23230  if test -z "$ac_lib"; then
23231    ac_res="none required"
23232  else
23233    ac_res=-l$ac_lib
23234    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23235  fi
23236  if ac_fn_c_try_link "$LINENO"
23237then :
23238  ac_cv_search_sodium_set_misuse_handler=$ac_res
23239fi
23240rm -f core conftest.err conftest.$ac_objext conftest.beam \
23241    conftest$ac_exeext
23242  if test ${ac_cv_search_sodium_set_misuse_handler+y}
23243then :
23244  break
23245fi
23246done
23247if test ${ac_cv_search_sodium_set_misuse_handler+y}
23248then :
23249
23250else $as_nop
23251  ac_cv_search_sodium_set_misuse_handler=no
23252fi
23253rm conftest.$ac_ext
23254LIBS=$ac_func_search_save_LIBS
23255fi
23256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
23257printf "%s\n" "$ac_cv_search_sodium_set_misuse_handler" >&6; }
23258ac_res=$ac_cv_search_sodium_set_misuse_handler
23259if test "$ac_res" != no
23260then :
23261  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23262
23263
23264printf "%s\n" "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
23265
23266
23267fi
23268
23269
23270
23271printf "%s\n" "#define USE_DNSCRYPT 1" >>confdefs.h
23272
23273        ENABLE_DNSCRYPT=1
23274
23275
23276        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
23277
23278        DNSCRYPT_OBJ="dnscrypt.lo"
23279
23280
23281  else
23282    ENABLE_DNSCRYPT_XCHACHA20=0
23283
23284
23285        ENABLE_DNSCRYPT=0
23286
23287
23288
23289  fi
23290
23291
23292# check for cachedb if requested
23293# Check whether --enable-cachedb was given.
23294if test ${enable_cachedb+y}
23295then :
23296  enableval=$enable_cachedb;
23297fi
23298
23299# turn on cachedb when hiredis support is enabled.
23300if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
23301case "$enable_cachedb" in
23302    yes)
23303
23304printf "%s\n" "#define USE_CACHEDB 1" >>confdefs.h
23305
23306	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
23307
23308	CACHEDB_OBJ="cachedb.lo redis.lo"
23309
23310    	;;
23311    no|*)
23312    	# nothing
23313    	;;
23314esac
23315
23316# check for ipsecmod if requested
23317# Check whether --enable-ipsecmod was given.
23318if test ${enable_ipsecmod+y}
23319then :
23320  enableval=$enable_ipsecmod;
23321fi
23322
23323case "$enable_ipsecmod" in
23324	yes)
23325
23326printf "%s\n" "#define USE_IPSECMOD 1" >>confdefs.h
23327
23328		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
23329
23330		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
23331
23332		;;
23333	no|*)
23334		# nothing
23335		;;
23336esac
23337
23338# check for ipset if requested
23339# Check whether --enable-ipset was given.
23340if test ${enable_ipset+y}
23341then :
23342  enableval=$enable_ipset;
23343fi
23344
23345case "$enable_ipset" in
23346    yes)
23347
23348printf "%s\n" "#define USE_IPSET 1" >>confdefs.h
23349
23350		IPSET_SRC="ipset/ipset.c"
23351
23352		IPSET_OBJ="ipset.lo"
23353
23354
23355		# mnl
23356
23357# Check whether --with-libmnl was given.
23358if test ${with_libmnl+y}
23359then :
23360  withval=$with_libmnl;
23361else $as_nop
23362   withval="yes"
23363fi
23364
23365		found_libmnl="no"
23366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
23367printf %s "checking for libmnl... " >&6; }
23368		if test x_$withval = x_ -o x_$withval = x_yes; then
23369			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
23370		fi
23371		for dir in $withval ; do
23372			if test -f "$dir/include/libmnl/libmnl.h"; then
23373				found_libmnl="yes"
23374								if test "$dir" != "/usr"; then
23375					CPPFLAGS="$CPPFLAGS -I$dir/include"
23376					LDFLAGS="$LDFLAGS -L$dir/lib"
23377				fi
23378				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
23379printf "%s\n" "found in $dir" >&6; }
23380				LIBS="$LIBS -lmnl"
23381				break;
23382			fi
23383		done
23384		if test x_$found_libmnl != x_yes; then
23385			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
23386		fi
23387		;;
23388    no|*)
23389    	# nothing
23390		;;
23391esac
23392# Check whether --enable-explicit-port-randomisation was given.
23393if test ${enable_explicit_port_randomisation+y}
23394then :
23395  enableval=$enable_explicit_port_randomisation;
23396fi
23397
23398case "$enable_explicit_port_randomisation" in
23399	no)
23400
23401printf "%s\n" "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
23402
23403		;;
23404	yes|*)
23405		;;
23406esac
23407
23408if echo "$host" | $GREP -i -e linux >/dev/null; then
23409	# Check whether --enable-linux-ip-local-port-range was given.
23410if test ${enable_linux_ip_local_port_range+y}
23411then :
23412  enableval=$enable_linux_ip_local_port_range;
23413fi
23414
23415	case "$enable_linux_ip_local_port_range" in
23416		yes)
23417
23418printf "%s\n" "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
23419
23420			;;
23421		no|*)
23422			;;
23423	esac
23424fi
23425
23426
23427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
23428printf %s "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
23429# on openBSD, the implicit rule make $< work.
23430# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
23431# gmake works.
23432cat >conftest.make <<EOF
23433all:	conftest.lo
23434
23435conftest.lo foo.lo bla.lo:
23436	if test -f "\$<"; then touch \$@; fi
23437
23438.SUFFIXES: .lo
23439.c.lo:
23440	if test -f "\$<"; then touch \$@; fi
23441
23442conftest.lo:        conftest.dir/conftest.c
23443EOF
23444mkdir conftest.dir
23445touch conftest.dir/conftest.c
23446rm -f conftest.lo conftest.c
23447${MAKE:-make} -f conftest.make >/dev/null
23448rm -f conftest.make conftest.c conftest.dir/conftest.c
23449rm -rf conftest.dir
23450if test ! -f conftest.lo; then
23451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23452printf "%s\n" "no" >&6; }
23453	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
23454	SOURCEFILE='`cat .source`'
23455else
23456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23457printf "%s\n" "yes" >&6; }
23458	SOURCEDETERMINE=':'
23459	SOURCEFILE='$<'
23460fi
23461rm -f conftest.lo
23462
23463
23464
23465# see if we want to build the library or everything
23466ALLTARGET="alltargets"
23467INSTALLTARGET="install-all"
23468
23469# Check whether --with-libunbound-only was given.
23470if test ${with_libunbound_only+y}
23471then :
23472  withval=$with_libunbound_only;
23473	if test "$withval" = "yes"; then
23474		ALLTARGET="lib"
23475		INSTALLTARGET="install-lib"
23476	fi
23477
23478fi
23479ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
23480if test "x$ac_cv_func_if_nametoindex" = xyes
23481then :
23482  printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
23483
23484fi
23485
23486if test $ALLTARGET = "alltargets"; then
23487	if test $USE_NSS = "yes"; then
23488		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
23489	fi
23490	if test $USE_NETTLE = "yes"; then
23491		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
23492	fi
23493fi
23494
23495
23496
23497
23498
23499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
23500printf "%s\n" "$as_me: Stripping extension flags..." >&6;}
23501
23502  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
23503    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
23504
23505printf "%s\n" "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
23506
23507  fi
23508
23509
23510  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
23511    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
23512
23513printf "%s\n" "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
23514
23515  fi
23516
23517
23518  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
23519    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
23520
23521printf "%s\n" "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
23522
23523  fi
23524
23525
23526  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
23527    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
23528
23529printf "%s\n" "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
23530
23531  fi
23532
23533
23534  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
23535    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
23536
23537printf "%s\n" "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
23538
23539  fi
23540
23541
23542  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
23543    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
23544
23545printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
23546
23547  fi
23548
23549
23550  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
23551    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
23552
23553printf "%s\n" "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
23554
23555  fi
23556
23557
23558  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
23559    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
23560
23561printf "%s\n" "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
23562
23563  fi
23564
23565
23566  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
23567    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
23568
23569printf "%s\n" "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
23570
23571  fi
23572
23573
23574if test -n "$LATE_LDFLAGS"; then
23575  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
23576fi
23577# remove start spaces
23578LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
23579LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
23580
23581
23582printf "%s\n" "#define MAXSYSLOGMSGLEN 10240" >>confdefs.h
23583
23584
23585
23586
23587version=1.13.2
23588
23589date=`date +'%b %e, %Y'`
23590
23591
23592ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h"
23593
23594ac_config_headers="$ac_config_headers config.h"
23595
23596cat >confcache <<\_ACEOF
23597# This file is a shell script that caches the results of configure
23598# tests run on this system so they can be shared between configure
23599# scripts and configure runs, see configure's option --config-cache.
23600# It is not useful on other systems.  If it contains results you don't
23601# want to keep, you may remove or edit it.
23602#
23603# config.status only pays attention to the cache file if you give it
23604# the --recheck option to rerun configure.
23605#
23606# `ac_cv_env_foo' variables (set or unset) will be overridden when
23607# loading this file, other *unset* `ac_cv_foo' will be assigned the
23608# following values.
23609
23610_ACEOF
23611
23612# The following way of writing the cache mishandles newlines in values,
23613# but we know of no workaround that is simple, portable, and efficient.
23614# So, we kill variables containing newlines.
23615# Ultrix sh set writes to stderr and can't be redirected directly,
23616# and sets the high bit in the cache file unless we assign to the vars.
23617(
23618  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23619    eval ac_val=\$$ac_var
23620    case $ac_val in #(
23621    *${as_nl}*)
23622      case $ac_var in #(
23623      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23624printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23625      esac
23626      case $ac_var in #(
23627      _ | IFS | as_nl) ;; #(
23628      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23629      *) { eval $ac_var=; unset $ac_var;} ;;
23630      esac ;;
23631    esac
23632  done
23633
23634  (set) 2>&1 |
23635    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23636    *${as_nl}ac_space=\ *)
23637      # `set' does not quote correctly, so add quotes: double-quote
23638      # substitution turns \\\\ into \\, and sed turns \\ into \.
23639      sed -n \
23640	"s/'/'\\\\''/g;
23641	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23642      ;; #(
23643    *)
23644      # `set' quotes correctly as required by POSIX, so do not add quotes.
23645      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23646      ;;
23647    esac |
23648    sort
23649) |
23650  sed '
23651     /^ac_cv_env_/b end
23652     t clear
23653     :clear
23654     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23655     t end
23656     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23657     :end' >>confcache
23658if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23659  if test -w "$cache_file"; then
23660    if test "x$cache_file" != "x/dev/null"; then
23661      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23662printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23663      if test ! -f "$cache_file" || test -h "$cache_file"; then
23664	cat confcache >"$cache_file"
23665      else
23666        case $cache_file in #(
23667        */* | ?:*)
23668	  mv -f confcache "$cache_file"$$ &&
23669	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23670        *)
23671	  mv -f confcache "$cache_file" ;;
23672	esac
23673      fi
23674    fi
23675  else
23676    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23677printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23678  fi
23679fi
23680rm -f confcache
23681
23682test "x$prefix" = xNONE && prefix=$ac_default_prefix
23683# Let make expand exec_prefix.
23684test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23685
23686DEFS=-DHAVE_CONFIG_H
23687
23688ac_libobjs=
23689ac_ltlibobjs=
23690U=
23691for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23692  # 1. Remove the extension, and $U if already installed.
23693  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23694  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23695  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23696  #    will be set to the directory where LIBOBJS objects are built.
23697  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23698  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23699done
23700LIBOBJS=$ac_libobjs
23701
23702LTLIBOBJS=$ac_ltlibobjs
23703
23704
23705if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
23706  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
23707Usually this means the macro was only invoked conditionally." "$LINENO" 5
23708fi
23709
23710: "${CONFIG_STATUS=./config.status}"
23711ac_write_fail=0
23712ac_clean_files_save=$ac_clean_files
23713ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23715printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23716as_write_fail=0
23717cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23718#! $SHELL
23719# Generated by $as_me.
23720# Run this file to recreate the current configuration.
23721# Compiler output produced by configure, useful for debugging
23722# configure, is in config.log if it exists.
23723
23724debug=false
23725ac_cs_recheck=false
23726ac_cs_silent=false
23727
23728SHELL=\${CONFIG_SHELL-$SHELL}
23729export SHELL
23730_ASEOF
23731cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23732## -------------------- ##
23733## M4sh Initialization. ##
23734## -------------------- ##
23735
23736# Be more Bourne compatible
23737DUALCASE=1; export DUALCASE # for MKS sh
23738as_nop=:
23739if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23740then :
23741  emulate sh
23742  NULLCMD=:
23743  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23744  # is contrary to our usage.  Disable this feature.
23745  alias -g '${1+"$@"}'='"$@"'
23746  setopt NO_GLOB_SUBST
23747else $as_nop
23748  case `(set -o) 2>/dev/null` in #(
23749  *posix*) :
23750    set -o posix ;; #(
23751  *) :
23752     ;;
23753esac
23754fi
23755
23756
23757
23758# Reset variables that may have inherited troublesome values from
23759# the environment.
23760
23761# IFS needs to be set, to space, tab, and newline, in precisely that order.
23762# (If _AS_PATH_WALK were called with IFS unset, it would have the
23763# side effect of setting IFS to empty, thus disabling word splitting.)
23764# Quoting is to prevent editors from complaining about space-tab.
23765as_nl='
23766'
23767export as_nl
23768IFS=" ""	$as_nl"
23769
23770PS1='$ '
23771PS2='> '
23772PS4='+ '
23773
23774# Ensure predictable behavior from utilities with locale-dependent output.
23775LC_ALL=C
23776export LC_ALL
23777LANGUAGE=C
23778export LANGUAGE
23779
23780# We cannot yet rely on "unset" to work, but we need these variables
23781# to be unset--not just set to an empty or harmless value--now, to
23782# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23783# also avoids known problems related to "unset" and subshell syntax
23784# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23785for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23786do eval test \${$as_var+y} \
23787  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23788done
23789
23790# Ensure that fds 0, 1, and 2 are open.
23791if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23792if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23793if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23794
23795# The user is always right.
23796if ${PATH_SEPARATOR+false} :; then
23797  PATH_SEPARATOR=:
23798  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23799    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23800      PATH_SEPARATOR=';'
23801  }
23802fi
23803
23804
23805# Find who we are.  Look in the path if we contain no directory separator.
23806as_myself=
23807case $0 in #((
23808  *[\\/]* ) as_myself=$0 ;;
23809  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23810for as_dir in $PATH
23811do
23812  IFS=$as_save_IFS
23813  case $as_dir in #(((
23814    '') as_dir=./ ;;
23815    */) ;;
23816    *) as_dir=$as_dir/ ;;
23817  esac
23818    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23819  done
23820IFS=$as_save_IFS
23821
23822     ;;
23823esac
23824# We did not find ourselves, most probably we were run as `sh COMMAND'
23825# in which case we are not to be found in the path.
23826if test "x$as_myself" = x; then
23827  as_myself=$0
23828fi
23829if test ! -f "$as_myself"; then
23830  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23831  exit 1
23832fi
23833
23834
23835
23836# as_fn_error STATUS ERROR [LINENO LOG_FD]
23837# ----------------------------------------
23838# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23839# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23840# script with STATUS, using 1 if that was 0.
23841as_fn_error ()
23842{
23843  as_status=$1; test $as_status -eq 0 && as_status=1
23844  if test "$4"; then
23845    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23847  fi
23848  printf "%s\n" "$as_me: error: $2" >&2
23849  as_fn_exit $as_status
23850} # as_fn_error
23851
23852
23853
23854# as_fn_set_status STATUS
23855# -----------------------
23856# Set $? to STATUS, without forking.
23857as_fn_set_status ()
23858{
23859  return $1
23860} # as_fn_set_status
23861
23862# as_fn_exit STATUS
23863# -----------------
23864# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23865as_fn_exit ()
23866{
23867  set +e
23868  as_fn_set_status $1
23869  exit $1
23870} # as_fn_exit
23871
23872# as_fn_unset VAR
23873# ---------------
23874# Portably unset VAR.
23875as_fn_unset ()
23876{
23877  { eval $1=; unset $1;}
23878}
23879as_unset=as_fn_unset
23880
23881# as_fn_append VAR VALUE
23882# ----------------------
23883# Append the text in VALUE to the end of the definition contained in VAR. Take
23884# advantage of any shell optimizations that allow amortized linear growth over
23885# repeated appends, instead of the typical quadratic growth present in naive
23886# implementations.
23887if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23888then :
23889  eval 'as_fn_append ()
23890  {
23891    eval $1+=\$2
23892  }'
23893else $as_nop
23894  as_fn_append ()
23895  {
23896    eval $1=\$$1\$2
23897  }
23898fi # as_fn_append
23899
23900# as_fn_arith ARG...
23901# ------------------
23902# Perform arithmetic evaluation on the ARGs, and store the result in the
23903# global $as_val. Take advantage of shells that can avoid forks. The arguments
23904# must be portable across $(()) and expr.
23905if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23906then :
23907  eval 'as_fn_arith ()
23908  {
23909    as_val=$(( $* ))
23910  }'
23911else $as_nop
23912  as_fn_arith ()
23913  {
23914    as_val=`expr "$@" || test $? -eq 1`
23915  }
23916fi # as_fn_arith
23917
23918
23919if expr a : '\(a\)' >/dev/null 2>&1 &&
23920   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23921  as_expr=expr
23922else
23923  as_expr=false
23924fi
23925
23926if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23927  as_basename=basename
23928else
23929  as_basename=false
23930fi
23931
23932if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23933  as_dirname=dirname
23934else
23935  as_dirname=false
23936fi
23937
23938as_me=`$as_basename -- "$0" ||
23939$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23940	 X"$0" : 'X\(//\)$' \| \
23941	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23942printf "%s\n" X/"$0" |
23943    sed '/^.*\/\([^/][^/]*\)\/*$/{
23944	    s//\1/
23945	    q
23946	  }
23947	  /^X\/\(\/\/\)$/{
23948	    s//\1/
23949	    q
23950	  }
23951	  /^X\/\(\/\).*/{
23952	    s//\1/
23953	    q
23954	  }
23955	  s/.*/./; q'`
23956
23957# Avoid depending upon Character Ranges.
23958as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23959as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23960as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23961as_cr_digits='0123456789'
23962as_cr_alnum=$as_cr_Letters$as_cr_digits
23963
23964
23965# Determine whether it's possible to make 'echo' print without a newline.
23966# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23967# for compatibility with existing Makefiles.
23968ECHO_C= ECHO_N= ECHO_T=
23969case `echo -n x` in #(((((
23970-n*)
23971  case `echo 'xy\c'` in
23972  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23973  xy)  ECHO_C='\c';;
23974  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23975       ECHO_T='	';;
23976  esac;;
23977*)
23978  ECHO_N='-n';;
23979esac
23980
23981# For backward compatibility with old third-party macros, we provide
23982# the shell variables $as_echo and $as_echo_n.  New code should use
23983# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23984as_echo='printf %s\n'
23985as_echo_n='printf %s'
23986
23987rm -f conf$$ conf$$.exe conf$$.file
23988if test -d conf$$.dir; then
23989  rm -f conf$$.dir/conf$$.file
23990else
23991  rm -f conf$$.dir
23992  mkdir conf$$.dir 2>/dev/null
23993fi
23994if (echo >conf$$.file) 2>/dev/null; then
23995  if ln -s conf$$.file conf$$ 2>/dev/null; then
23996    as_ln_s='ln -s'
23997    # ... but there are two gotchas:
23998    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23999    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24000    # In both cases, we have to default to `cp -pR'.
24001    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24002      as_ln_s='cp -pR'
24003  elif ln conf$$.file conf$$ 2>/dev/null; then
24004    as_ln_s=ln
24005  else
24006    as_ln_s='cp -pR'
24007  fi
24008else
24009  as_ln_s='cp -pR'
24010fi
24011rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24012rmdir conf$$.dir 2>/dev/null
24013
24014
24015# as_fn_mkdir_p
24016# -------------
24017# Create "$as_dir" as a directory, including parents if necessary.
24018as_fn_mkdir_p ()
24019{
24020
24021  case $as_dir in #(
24022  -*) as_dir=./$as_dir;;
24023  esac
24024  test -d "$as_dir" || eval $as_mkdir_p || {
24025    as_dirs=
24026    while :; do
24027      case $as_dir in #(
24028      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24029      *) as_qdir=$as_dir;;
24030      esac
24031      as_dirs="'$as_qdir' $as_dirs"
24032      as_dir=`$as_dirname -- "$as_dir" ||
24033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24034	 X"$as_dir" : 'X\(//\)[^/]' \| \
24035	 X"$as_dir" : 'X\(//\)$' \| \
24036	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24037printf "%s\n" X"$as_dir" |
24038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24039	    s//\1/
24040	    q
24041	  }
24042	  /^X\(\/\/\)[^/].*/{
24043	    s//\1/
24044	    q
24045	  }
24046	  /^X\(\/\/\)$/{
24047	    s//\1/
24048	    q
24049	  }
24050	  /^X\(\/\).*/{
24051	    s//\1/
24052	    q
24053	  }
24054	  s/.*/./; q'`
24055      test -d "$as_dir" && break
24056    done
24057    test -z "$as_dirs" || eval "mkdir $as_dirs"
24058  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24059
24060
24061} # as_fn_mkdir_p
24062if mkdir -p . 2>/dev/null; then
24063  as_mkdir_p='mkdir -p "$as_dir"'
24064else
24065  test -d ./-p && rmdir ./-p
24066  as_mkdir_p=false
24067fi
24068
24069
24070# as_fn_executable_p FILE
24071# -----------------------
24072# Test if FILE is an executable regular file.
24073as_fn_executable_p ()
24074{
24075  test -f "$1" && test -x "$1"
24076} # as_fn_executable_p
24077as_test_x='test -x'
24078as_executable_p=as_fn_executable_p
24079
24080# Sed expression to map a string onto a valid CPP name.
24081as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24082
24083# Sed expression to map a string onto a valid variable name.
24084as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24085
24086
24087exec 6>&1
24088## ----------------------------------- ##
24089## Main body of $CONFIG_STATUS script. ##
24090## ----------------------------------- ##
24091_ASEOF
24092test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24093
24094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24095# Save the log message, to keep $0 and so on meaningful, and to
24096# report actual input values of CONFIG_FILES etc. instead of their
24097# values after options handling.
24098ac_log="
24099This file was extended by unbound $as_me 1.13.2, which was
24100generated by GNU Autoconf 2.71.  Invocation command line was
24101
24102  CONFIG_FILES    = $CONFIG_FILES
24103  CONFIG_HEADERS  = $CONFIG_HEADERS
24104  CONFIG_LINKS    = $CONFIG_LINKS
24105  CONFIG_COMMANDS = $CONFIG_COMMANDS
24106  $ $0 $@
24107
24108on `(hostname || uname -n) 2>/dev/null | sed 1q`
24109"
24110
24111_ACEOF
24112
24113case $ac_config_files in *"
24114"*) set x $ac_config_files; shift; ac_config_files=$*;;
24115esac
24116
24117case $ac_config_headers in *"
24118"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24119esac
24120
24121
24122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24123# Files that config.status was made for.
24124config_files="$ac_config_files"
24125config_headers="$ac_config_headers"
24126config_commands="$ac_config_commands"
24127
24128_ACEOF
24129
24130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24131ac_cs_usage="\
24132\`$as_me' instantiates files and other configuration actions
24133from templates according to the current configuration.  Unless the files
24134and actions are specified as TAGs, all are instantiated by default.
24135
24136Usage: $0 [OPTION]... [TAG]...
24137
24138  -h, --help       print this help, then exit
24139  -V, --version    print version number and configuration settings, then exit
24140      --config     print configuration, then exit
24141  -q, --quiet, --silent
24142                   do not print progress messages
24143  -d, --debug      don't remove temporary files
24144      --recheck    update $as_me by reconfiguring in the same conditions
24145      --file=FILE[:TEMPLATE]
24146                   instantiate the configuration file FILE
24147      --header=FILE[:TEMPLATE]
24148                   instantiate the configuration header FILE
24149
24150Configuration files:
24151$config_files
24152
24153Configuration headers:
24154$config_headers
24155
24156Configuration commands:
24157$config_commands
24158
24159Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
24160
24161_ACEOF
24162ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24163ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24165ac_cs_config='$ac_cs_config_escaped'
24166ac_cs_version="\\
24167unbound config.status 1.13.2
24168configured by $0, generated by GNU Autoconf 2.71,
24169  with options \\"\$ac_cs_config\\"
24170
24171Copyright (C) 2021 Free Software Foundation, Inc.
24172This config.status script is free software; the Free Software Foundation
24173gives unlimited permission to copy, distribute and modify it."
24174
24175ac_pwd='$ac_pwd'
24176srcdir='$srcdir'
24177AWK='$AWK'
24178test -n "\$AWK" || AWK=awk
24179_ACEOF
24180
24181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24182# The default lists apply if the user does not specify any file.
24183ac_need_defaults=:
24184while test $# != 0
24185do
24186  case $1 in
24187  --*=?*)
24188    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24189    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24190    ac_shift=:
24191    ;;
24192  --*=)
24193    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24194    ac_optarg=
24195    ac_shift=:
24196    ;;
24197  *)
24198    ac_option=$1
24199    ac_optarg=$2
24200    ac_shift=shift
24201    ;;
24202  esac
24203
24204  case $ac_option in
24205  # Handling of the options.
24206  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24207    ac_cs_recheck=: ;;
24208  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24209    printf "%s\n" "$ac_cs_version"; exit ;;
24210  --config | --confi | --conf | --con | --co | --c )
24211    printf "%s\n" "$ac_cs_config"; exit ;;
24212  --debug | --debu | --deb | --de | --d | -d )
24213    debug=: ;;
24214  --file | --fil | --fi | --f )
24215    $ac_shift
24216    case $ac_optarg in
24217    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24218    '') as_fn_error $? "missing file argument" ;;
24219    esac
24220    as_fn_append CONFIG_FILES " '$ac_optarg'"
24221    ac_need_defaults=false;;
24222  --header | --heade | --head | --hea )
24223    $ac_shift
24224    case $ac_optarg in
24225    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24226    esac
24227    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24228    ac_need_defaults=false;;
24229  --he | --h)
24230    # Conflict between --help and --header
24231    as_fn_error $? "ambiguous option: \`$1'
24232Try \`$0 --help' for more information.";;
24233  --help | --hel | -h )
24234    printf "%s\n" "$ac_cs_usage"; exit ;;
24235  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24236  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24237    ac_cs_silent=: ;;
24238
24239  # This is an error.
24240  -*) as_fn_error $? "unrecognized option: \`$1'
24241Try \`$0 --help' for more information." ;;
24242
24243  *) as_fn_append ac_config_targets " $1"
24244     ac_need_defaults=false ;;
24245
24246  esac
24247  shift
24248done
24249
24250ac_configure_extra_args=
24251
24252if $ac_cs_silent; then
24253  exec 6>/dev/null
24254  ac_configure_extra_args="$ac_configure_extra_args --silent"
24255fi
24256
24257_ACEOF
24258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24259if \$ac_cs_recheck; then
24260  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24261  shift
24262  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24263  CONFIG_SHELL='$SHELL'
24264  export CONFIG_SHELL
24265  exec "\$@"
24266fi
24267
24268_ACEOF
24269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24270exec 5>>config.log
24271{
24272  echo
24273  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24274## Running $as_me. ##
24275_ASBOX
24276  printf "%s\n" "$ac_log"
24277} >&5
24278
24279_ACEOF
24280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24281#
24282# INIT-COMMANDS
24283#
24284
24285
24286# The HP-UX ksh and POSIX shell print the target directory to stdout
24287# if CDPATH is set.
24288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24289
24290sed_quote_subst='$sed_quote_subst'
24291double_quote_subst='$double_quote_subst'
24292delay_variable_subst='$delay_variable_subst'
24293macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24294macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24295enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24296enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24297pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24298enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24299shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24300SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24301ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24302PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24303host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24304host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24305host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24306build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24307build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24308build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24309SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24310Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24311GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24312EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24313FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24314LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24315NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24316LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24317max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24318ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24319exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24320lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24321lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24322lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24323lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24324lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24325reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24326reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24327OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24328deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24329file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24330file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24331want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24332DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24333sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24334AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24335AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24336archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24337STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24338RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24339old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24340old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24341old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24342lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24343CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24344CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24345compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24346GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24347lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24348lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24349lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24350lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24351lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24352lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24353nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24354lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24355lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24356objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24357MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24358lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24359lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24360lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24361lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24362lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24363need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24364MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24365DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24366NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24367LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24368OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24369OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24370libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24371shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24372extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24373archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24374enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24375export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24376whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24377compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24378old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24379old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24380archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24381archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24382module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24383module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24384with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24385allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24386no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24387hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24388hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24389hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24390hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24391hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24392hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24393hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24394inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24395link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24396always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24397export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24398exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24399include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24400prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24401postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24402file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24403variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24404need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24405need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24406version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24407runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24408shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24409shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24410libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24411library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24412soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24413install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24414postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24415postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24416finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24417finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24418hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24419sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24420configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24421configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24422hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24423enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24424enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24425enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24426old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24427striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24428
24429LTCC='$LTCC'
24430LTCFLAGS='$LTCFLAGS'
24431compiler='$compiler_DEFAULT'
24432
24433# A function that is used when there is no print builtin or printf.
24434func_fallback_echo ()
24435{
24436  eval 'cat <<_LTECHO_EOF
24437\$1
24438_LTECHO_EOF'
24439}
24440
24441# Quote evaled strings.
24442for var in SHELL \
24443ECHO \
24444PATH_SEPARATOR \
24445SED \
24446GREP \
24447EGREP \
24448FGREP \
24449LD \
24450NM \
24451LN_S \
24452lt_SP2NL \
24453lt_NL2SP \
24454reload_flag \
24455OBJDUMP \
24456deplibs_check_method \
24457file_magic_cmd \
24458file_magic_glob \
24459want_nocaseglob \
24460DLLTOOL \
24461sharedlib_from_linklib_cmd \
24462AR \
24463AR_FLAGS \
24464archiver_list_spec \
24465STRIP \
24466RANLIB \
24467CC \
24468CFLAGS \
24469compiler \
24470lt_cv_sys_global_symbol_pipe \
24471lt_cv_sys_global_symbol_to_cdecl \
24472lt_cv_sys_global_symbol_to_import \
24473lt_cv_sys_global_symbol_to_c_name_address \
24474lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24475lt_cv_nm_interface \
24476nm_file_list_spec \
24477lt_cv_truncate_bin \
24478lt_prog_compiler_no_builtin_flag \
24479lt_prog_compiler_pic \
24480lt_prog_compiler_wl \
24481lt_prog_compiler_static \
24482lt_cv_prog_compiler_c_o \
24483need_locks \
24484MANIFEST_TOOL \
24485DSYMUTIL \
24486NMEDIT \
24487LIPO \
24488OTOOL \
24489OTOOL64 \
24490shrext_cmds \
24491export_dynamic_flag_spec \
24492whole_archive_flag_spec \
24493compiler_needs_object \
24494with_gnu_ld \
24495allow_undefined_flag \
24496no_undefined_flag \
24497hardcode_libdir_flag_spec \
24498hardcode_libdir_separator \
24499exclude_expsyms \
24500include_expsyms \
24501file_list_spec \
24502variables_saved_for_relink \
24503libname_spec \
24504library_names_spec \
24505soname_spec \
24506install_override_mode \
24507finish_eval \
24508old_striplib \
24509striplib; do
24510    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24511    *[\\\\\\\`\\"\\\$]*)
24512      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24513      ;;
24514    *)
24515      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24516      ;;
24517    esac
24518done
24519
24520# Double-quote double-evaled strings.
24521for var in reload_cmds \
24522old_postinstall_cmds \
24523old_postuninstall_cmds \
24524old_archive_cmds \
24525extract_expsyms_cmds \
24526old_archive_from_new_cmds \
24527old_archive_from_expsyms_cmds \
24528archive_cmds \
24529archive_expsym_cmds \
24530module_cmds \
24531module_expsym_cmds \
24532export_symbols_cmds \
24533prelink_cmds \
24534postlink_cmds \
24535postinstall_cmds \
24536postuninstall_cmds \
24537finish_cmds \
24538sys_lib_search_path_spec \
24539configure_time_dlsearch_path \
24540configure_time_lt_sys_library_path; do
24541    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24542    *[\\\\\\\`\\"\\\$]*)
24543      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24544      ;;
24545    *)
24546      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24547      ;;
24548    esac
24549done
24550
24551ac_aux_dir='$ac_aux_dir'
24552
24553# See if we are running on zsh, and set the options that allow our
24554# commands through without removal of \ escapes INIT.
24555if test -n "\${ZSH_VERSION+set}"; then
24556   setopt NO_GLOB_SUBST
24557fi
24558
24559
24560    PACKAGE='$PACKAGE'
24561    VERSION='$VERSION'
24562    RM='$RM'
24563    ofile='$ofile'
24564
24565
24566
24567
24568_ACEOF
24569
24570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24571
24572# Handling of arguments.
24573for ac_config_target in $ac_config_targets
24574do
24575  case $ac_config_target in
24576    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24577    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
24578    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24579    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
24580    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
24581    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
24582    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
24583    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
24584    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
24585    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
24586    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
24587    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
24588    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
24589    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
24590    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24591
24592  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24593  esac
24594done
24595
24596
24597# If the user did not use the arguments to specify the items to instantiate,
24598# then the envvar interface is used.  Set only those that are not.
24599# We use the long form for the default assignment because of an extremely
24600# bizarre bug on SunOS 4.1.3.
24601if $ac_need_defaults; then
24602  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24603  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24604  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24605fi
24606
24607# Have a temporary directory for convenience.  Make it in the build tree
24608# simply because there is no reason against having it here, and in addition,
24609# creating and moving files from /tmp can sometimes cause problems.
24610# Hook for its removal unless debugging.
24611# Note that there is a small window in which the directory will not be cleaned:
24612# after its creation but before its name has been assigned to `$tmp'.
24613$debug ||
24614{
24615  tmp= ac_tmp=
24616  trap 'exit_status=$?
24617  : "${ac_tmp:=$tmp}"
24618  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24619' 0
24620  trap 'as_fn_exit 1' 1 2 13 15
24621}
24622# Create a (secure) tmp directory for tmp files.
24623
24624{
24625  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24626  test -d "$tmp"
24627}  ||
24628{
24629  tmp=./conf$$-$RANDOM
24630  (umask 077 && mkdir "$tmp")
24631} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24632ac_tmp=$tmp
24633
24634# Set up the scripts for CONFIG_FILES section.
24635# No need to generate them if there are no CONFIG_FILES.
24636# This happens for instance with `./config.status config.h'.
24637if test -n "$CONFIG_FILES"; then
24638
24639
24640ac_cr=`echo X | tr X '\015'`
24641# On cygwin, bash can eat \r inside `` if the user requested igncr.
24642# But we know of no other shell where ac_cr would be empty at this
24643# point, so we can use a bashism as a fallback.
24644if test "x$ac_cr" = x; then
24645  eval ac_cr=\$\'\\r\'
24646fi
24647ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24648if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24649  ac_cs_awk_cr='\\r'
24650else
24651  ac_cs_awk_cr=$ac_cr
24652fi
24653
24654echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24655_ACEOF
24656
24657
24658{
24659  echo "cat >conf$$subs.awk <<_ACEOF" &&
24660  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24661  echo "_ACEOF"
24662} >conf$$subs.sh ||
24663  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24664ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24665ac_delim='%!_!# '
24666for ac_last_try in false false false false false :; do
24667  . ./conf$$subs.sh ||
24668    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24669
24670  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24671  if test $ac_delim_n = $ac_delim_num; then
24672    break
24673  elif $ac_last_try; then
24674    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24675  else
24676    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24677  fi
24678done
24679rm -f conf$$subs.sh
24680
24681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24682cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24683_ACEOF
24684sed -n '
24685h
24686s/^/S["/; s/!.*/"]=/
24687p
24688g
24689s/^[^!]*!//
24690:repl
24691t repl
24692s/'"$ac_delim"'$//
24693t delim
24694:nl
24695h
24696s/\(.\{148\}\)..*/\1/
24697t more1
24698s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24699p
24700n
24701b repl
24702:more1
24703s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24704p
24705g
24706s/.\{148\}//
24707t nl
24708:delim
24709h
24710s/\(.\{148\}\)..*/\1/
24711t more2
24712s/["\\]/\\&/g; s/^/"/; s/$/"/
24713p
24714b
24715:more2
24716s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24717p
24718g
24719s/.\{148\}//
24720t delim
24721' <conf$$subs.awk | sed '
24722/^[^""]/{
24723  N
24724  s/\n//
24725}
24726' >>$CONFIG_STATUS || ac_write_fail=1
24727rm -f conf$$subs.awk
24728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24729_ACAWK
24730cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24731  for (key in S) S_is_set[key] = 1
24732  FS = ""
24733
24734}
24735{
24736  line = $ 0
24737  nfields = split(line, field, "@")
24738  substed = 0
24739  len = length(field[1])
24740  for (i = 2; i < nfields; i++) {
24741    key = field[i]
24742    keylen = length(key)
24743    if (S_is_set[key]) {
24744      value = S[key]
24745      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24746      len += length(value) + length(field[++i])
24747      substed = 1
24748    } else
24749      len += 1 + keylen
24750  }
24751
24752  print line
24753}
24754
24755_ACAWK
24756_ACEOF
24757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24758if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24759  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24760else
24761  cat
24762fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24763  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24764_ACEOF
24765
24766# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24767# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24768# trailing colons and then remove the whole line if VPATH becomes empty
24769# (actually we leave an empty line to preserve line numbers).
24770if test "x$srcdir" = x.; then
24771  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24772h
24773s///
24774s/^/:/
24775s/[	 ]*$/:/
24776s/:\$(srcdir):/:/g
24777s/:\${srcdir}:/:/g
24778s/:@srcdir@:/:/g
24779s/^:*//
24780s/:*$//
24781x
24782s/\(=[	 ]*\).*/\1/
24783G
24784s/\n//
24785s/^[^=]*=[	 ]*$//
24786}'
24787fi
24788
24789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24790fi # test -n "$CONFIG_FILES"
24791
24792# Set up the scripts for CONFIG_HEADERS section.
24793# No need to generate them if there are no CONFIG_HEADERS.
24794# This happens for instance with `./config.status Makefile'.
24795if test -n "$CONFIG_HEADERS"; then
24796cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24797BEGIN {
24798_ACEOF
24799
24800# Transform confdefs.h into an awk script `defines.awk', embedded as
24801# here-document in config.status, that substitutes the proper values into
24802# config.h.in to produce config.h.
24803
24804# Create a delimiter string that does not exist in confdefs.h, to ease
24805# handling of long lines.
24806ac_delim='%!_!# '
24807for ac_last_try in false false :; do
24808  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24809  if test -z "$ac_tt"; then
24810    break
24811  elif $ac_last_try; then
24812    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24813  else
24814    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24815  fi
24816done
24817
24818# For the awk script, D is an array of macro values keyed by name,
24819# likewise P contains macro parameters if any.  Preserve backslash
24820# newline sequences.
24821
24822ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24823sed -n '
24824s/.\{148\}/&'"$ac_delim"'/g
24825t rset
24826:rset
24827s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24828t def
24829d
24830:def
24831s/\\$//
24832t bsnl
24833s/["\\]/\\&/g
24834s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24835D["\1"]=" \3"/p
24836s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24837d
24838:bsnl
24839s/["\\]/\\&/g
24840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24841D["\1"]=" \3\\\\\\n"\\/p
24842t cont
24843s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24844t cont
24845d
24846:cont
24847n
24848s/.\{148\}/&'"$ac_delim"'/g
24849t clear
24850:clear
24851s/\\$//
24852t bsnlc
24853s/["\\]/\\&/g; s/^/"/; s/$/"/p
24854d
24855:bsnlc
24856s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24857b cont
24858' <confdefs.h | sed '
24859s/'"$ac_delim"'/"\\\
24860"/g' >>$CONFIG_STATUS || ac_write_fail=1
24861
24862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24863  for (key in D) D_is_set[key] = 1
24864  FS = ""
24865}
24866/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24867  line = \$ 0
24868  split(line, arg, " ")
24869  if (arg[1] == "#") {
24870    defundef = arg[2]
24871    mac1 = arg[3]
24872  } else {
24873    defundef = substr(arg[1], 2)
24874    mac1 = arg[2]
24875  }
24876  split(mac1, mac2, "(") #)
24877  macro = mac2[1]
24878  prefix = substr(line, 1, index(line, defundef) - 1)
24879  if (D_is_set[macro]) {
24880    # Preserve the white space surrounding the "#".
24881    print prefix "define", macro P[macro] D[macro]
24882    next
24883  } else {
24884    # Replace #undef with comments.  This is necessary, for example,
24885    # in the case of _POSIX_SOURCE, which is predefined and required
24886    # on some systems where configure will not decide to define it.
24887    if (defundef == "undef") {
24888      print "/*", prefix defundef, macro, "*/"
24889      next
24890    }
24891  }
24892}
24893{ print }
24894_ACAWK
24895_ACEOF
24896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24897  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24898fi # test -n "$CONFIG_HEADERS"
24899
24900
24901eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24902shift
24903for ac_tag
24904do
24905  case $ac_tag in
24906  :[FHLC]) ac_mode=$ac_tag; continue;;
24907  esac
24908  case $ac_mode$ac_tag in
24909  :[FHL]*:*);;
24910  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24911  :[FH]-) ac_tag=-:-;;
24912  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24913  esac
24914  ac_save_IFS=$IFS
24915  IFS=:
24916  set x $ac_tag
24917  IFS=$ac_save_IFS
24918  shift
24919  ac_file=$1
24920  shift
24921
24922  case $ac_mode in
24923  :L) ac_source=$1;;
24924  :[FH])
24925    ac_file_inputs=
24926    for ac_f
24927    do
24928      case $ac_f in
24929      -) ac_f="$ac_tmp/stdin";;
24930      *) # Look for the file first in the build tree, then in the source tree
24931	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24932	 # because $ac_f cannot contain `:'.
24933	 test -f "$ac_f" ||
24934	   case $ac_f in
24935	   [\\/$]*) false;;
24936	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24937	   esac ||
24938	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24939      esac
24940      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24941      as_fn_append ac_file_inputs " '$ac_f'"
24942    done
24943
24944    # Let's still pretend it is `configure' which instantiates (i.e., don't
24945    # use $as_me), people would be surprised to read:
24946    #    /* config.h.  Generated by config.status.  */
24947    configure_input='Generated from '`
24948	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24949	`' by configure.'
24950    if test x"$ac_file" != x-; then
24951      configure_input="$ac_file.  $configure_input"
24952      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24953printf "%s\n" "$as_me: creating $ac_file" >&6;}
24954    fi
24955    # Neutralize special characters interpreted by sed in replacement strings.
24956    case $configure_input in #(
24957    *\&* | *\|* | *\\* )
24958       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24959       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24960    *) ac_sed_conf_input=$configure_input;;
24961    esac
24962
24963    case $ac_tag in
24964    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24965      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24966    esac
24967    ;;
24968  esac
24969
24970  ac_dir=`$as_dirname -- "$ac_file" ||
24971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24972	 X"$ac_file" : 'X\(//\)[^/]' \| \
24973	 X"$ac_file" : 'X\(//\)$' \| \
24974	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24975printf "%s\n" X"$ac_file" |
24976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24977	    s//\1/
24978	    q
24979	  }
24980	  /^X\(\/\/\)[^/].*/{
24981	    s//\1/
24982	    q
24983	  }
24984	  /^X\(\/\/\)$/{
24985	    s//\1/
24986	    q
24987	  }
24988	  /^X\(\/\).*/{
24989	    s//\1/
24990	    q
24991	  }
24992	  s/.*/./; q'`
24993  as_dir="$ac_dir"; as_fn_mkdir_p
24994  ac_builddir=.
24995
24996case "$ac_dir" in
24997.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24998*)
24999  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25000  # A ".." for each directory in $ac_dir_suffix.
25001  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25002  case $ac_top_builddir_sub in
25003  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25004  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25005  esac ;;
25006esac
25007ac_abs_top_builddir=$ac_pwd
25008ac_abs_builddir=$ac_pwd$ac_dir_suffix
25009# for backward compatibility:
25010ac_top_builddir=$ac_top_build_prefix
25011
25012case $srcdir in
25013  .)  # We are building in place.
25014    ac_srcdir=.
25015    ac_top_srcdir=$ac_top_builddir_sub
25016    ac_abs_top_srcdir=$ac_pwd ;;
25017  [\\/]* | ?:[\\/]* )  # Absolute name.
25018    ac_srcdir=$srcdir$ac_dir_suffix;
25019    ac_top_srcdir=$srcdir
25020    ac_abs_top_srcdir=$srcdir ;;
25021  *) # Relative name.
25022    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25023    ac_top_srcdir=$ac_top_build_prefix$srcdir
25024    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25025esac
25026ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25027
25028
25029  case $ac_mode in
25030  :F)
25031  #
25032  # CONFIG_FILE
25033  #
25034
25035_ACEOF
25036
25037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25038# If the template does not know about datarootdir, expand it.
25039# FIXME: This hack should be removed a few years after 2.60.
25040ac_datarootdir_hack=; ac_datarootdir_seen=
25041ac_sed_dataroot='
25042/datarootdir/ {
25043  p
25044  q
25045}
25046/@datadir@/p
25047/@docdir@/p
25048/@infodir@/p
25049/@localedir@/p
25050/@mandir@/p'
25051case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25052*datarootdir*) ac_datarootdir_seen=yes;;
25053*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25055printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25056_ACEOF
25057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25058  ac_datarootdir_hack='
25059  s&@datadir@&$datadir&g
25060  s&@docdir@&$docdir&g
25061  s&@infodir@&$infodir&g
25062  s&@localedir@&$localedir&g
25063  s&@mandir@&$mandir&g
25064  s&\\\${datarootdir}&$datarootdir&g' ;;
25065esac
25066_ACEOF
25067
25068# Neutralize VPATH when `$srcdir' = `.'.
25069# Shell code in configure.ac might set extrasub.
25070# FIXME: do we really want to maintain this feature?
25071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25072ac_sed_extra="$ac_vpsub
25073$extrasub
25074_ACEOF
25075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25076:t
25077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25078s|@configure_input@|$ac_sed_conf_input|;t t
25079s&@top_builddir@&$ac_top_builddir_sub&;t t
25080s&@top_build_prefix@&$ac_top_build_prefix&;t t
25081s&@srcdir@&$ac_srcdir&;t t
25082s&@abs_srcdir@&$ac_abs_srcdir&;t t
25083s&@top_srcdir@&$ac_top_srcdir&;t t
25084s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25085s&@builddir@&$ac_builddir&;t t
25086s&@abs_builddir@&$ac_abs_builddir&;t t
25087s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25088$ac_datarootdir_hack
25089"
25090eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25091  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25092
25093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25094  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25095  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25096      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25098which seems to be undefined.  Please make sure it is defined" >&5
25099printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25100which seems to be undefined.  Please make sure it is defined" >&2;}
25101
25102  rm -f "$ac_tmp/stdin"
25103  case $ac_file in
25104  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25105  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25106  esac \
25107  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25108 ;;
25109  :H)
25110  #
25111  # CONFIG_HEADER
25112  #
25113  if test x"$ac_file" != x-; then
25114    {
25115      printf "%s\n" "/* $configure_input  */" >&1 \
25116      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25117    } >"$ac_tmp/config.h" \
25118      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25119    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25120      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25121printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25122    else
25123      rm -f "$ac_file"
25124      mv "$ac_tmp/config.h" "$ac_file" \
25125	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25126    fi
25127  else
25128    printf "%s\n" "/* $configure_input  */" >&1 \
25129      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25130      || as_fn_error $? "could not create -" "$LINENO" 5
25131  fi
25132 ;;
25133
25134  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25135printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25136 ;;
25137  esac
25138
25139
25140  case $ac_file$ac_mode in
25141    "libtool":C)
25142
25143    # See if we are running on zsh, and set the options that allow our
25144    # commands through without removal of \ escapes.
25145    if test -n "${ZSH_VERSION+set}"; then
25146      setopt NO_GLOB_SUBST
25147    fi
25148
25149    cfgfile=${ofile}T
25150    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25151    $RM "$cfgfile"
25152
25153    cat <<_LT_EOF >> "$cfgfile"
25154#! $SHELL
25155# Generated automatically by $as_me ($PACKAGE) $VERSION
25156# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25157# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25158
25159# Provide generalized library-building support services.
25160# Written by Gordon Matzigkeit, 1996
25161
25162# Copyright (C) 2014 Free Software Foundation, Inc.
25163# This is free software; see the source for copying conditions.  There is NO
25164# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25165
25166# GNU Libtool is free software; you can redistribute it and/or modify
25167# it under the terms of the GNU General Public License as published by
25168# the Free Software Foundation; either version 2 of of the License, or
25169# (at your option) any later version.
25170#
25171# As a special exception to the GNU General Public License, if you
25172# distribute this file as part of a program or library that is built
25173# using GNU Libtool, you may include this file under the  same
25174# distribution terms that you use for the rest of that program.
25175#
25176# GNU Libtool is distributed in the hope that it will be useful, but
25177# WITHOUT ANY WARRANTY; without even the implied warranty of
25178# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25179# GNU General Public License for more details.
25180#
25181# You should have received a copy of the GNU General Public License
25182# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25183
25184
25185# The names of the tagged configurations supported by this script.
25186available_tags=''
25187
25188# Configured defaults for sys_lib_dlsearch_path munging.
25189: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25190
25191# ### BEGIN LIBTOOL CONFIG
25192
25193# Which release of libtool.m4 was used?
25194macro_version=$macro_version
25195macro_revision=$macro_revision
25196
25197# Whether or not to build shared libraries.
25198build_libtool_libs=$enable_shared
25199
25200# Whether or not to build static libraries.
25201build_old_libs=$enable_static
25202
25203# What type of objects to build.
25204pic_mode=$pic_mode
25205
25206# Whether or not to optimize for fast installation.
25207fast_install=$enable_fast_install
25208
25209# Shared archive member basename,for filename based shared library versioning on AIX.
25210shared_archive_member_spec=$shared_archive_member_spec
25211
25212# Shell to use when invoking shell scripts.
25213SHELL=$lt_SHELL
25214
25215# An echo program that protects backslashes.
25216ECHO=$lt_ECHO
25217
25218# The PATH separator for the build system.
25219PATH_SEPARATOR=$lt_PATH_SEPARATOR
25220
25221# The host system.
25222host_alias=$host_alias
25223host=$host
25224host_os=$host_os
25225
25226# The build system.
25227build_alias=$build_alias
25228build=$build
25229build_os=$build_os
25230
25231# A sed program that does not truncate output.
25232SED=$lt_SED
25233
25234# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25235Xsed="\$SED -e 1s/^X//"
25236
25237# A grep program that handles long lines.
25238GREP=$lt_GREP
25239
25240# An ERE matcher.
25241EGREP=$lt_EGREP
25242
25243# A literal string matcher.
25244FGREP=$lt_FGREP
25245
25246# A BSD- or MS-compatible name lister.
25247NM=$lt_NM
25248
25249# Whether we need soft or hard links.
25250LN_S=$lt_LN_S
25251
25252# What is the maximum length of a command?
25253max_cmd_len=$max_cmd_len
25254
25255# Object file suffix (normally "o").
25256objext=$ac_objext
25257
25258# Executable file suffix (normally "").
25259exeext=$exeext
25260
25261# whether the shell understands "unset".
25262lt_unset=$lt_unset
25263
25264# turn spaces into newlines.
25265SP2NL=$lt_lt_SP2NL
25266
25267# turn newlines into spaces.
25268NL2SP=$lt_lt_NL2SP
25269
25270# convert \$build file names to \$host format.
25271to_host_file_cmd=$lt_cv_to_host_file_cmd
25272
25273# convert \$build files to toolchain format.
25274to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25275
25276# An object symbol dumper.
25277OBJDUMP=$lt_OBJDUMP
25278
25279# Method to check whether dependent libraries are shared objects.
25280deplibs_check_method=$lt_deplibs_check_method
25281
25282# Command to use when deplibs_check_method = "file_magic".
25283file_magic_cmd=$lt_file_magic_cmd
25284
25285# How to find potential files when deplibs_check_method = "file_magic".
25286file_magic_glob=$lt_file_magic_glob
25287
25288# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25289want_nocaseglob=$lt_want_nocaseglob
25290
25291# DLL creation program.
25292DLLTOOL=$lt_DLLTOOL
25293
25294# Command to associate shared and link libraries.
25295sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25296
25297# The archiver.
25298AR=$lt_AR
25299
25300# Flags to create an archive.
25301AR_FLAGS=$lt_AR_FLAGS
25302
25303# How to feed a file listing to the archiver.
25304archiver_list_spec=$lt_archiver_list_spec
25305
25306# A symbol stripping program.
25307STRIP=$lt_STRIP
25308
25309# Commands used to install an old-style archive.
25310RANLIB=$lt_RANLIB
25311old_postinstall_cmds=$lt_old_postinstall_cmds
25312old_postuninstall_cmds=$lt_old_postuninstall_cmds
25313
25314# Whether to use a lock for old archive extraction.
25315lock_old_archive_extraction=$lock_old_archive_extraction
25316
25317# A C compiler.
25318LTCC=$lt_CC
25319
25320# LTCC compiler flags.
25321LTCFLAGS=$lt_CFLAGS
25322
25323# Take the output of nm and produce a listing of raw symbols and C names.
25324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25325
25326# Transform the output of nm in a proper C declaration.
25327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25328
25329# Transform the output of nm into a list of symbols to manually relocate.
25330global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25331
25332# Transform the output of nm in a C name address pair.
25333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25334
25335# Transform the output of nm in a C name address pair when lib prefix is needed.
25336global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25337
25338# The name lister interface.
25339nm_interface=$lt_lt_cv_nm_interface
25340
25341# Specify filename containing input files for \$NM.
25342nm_file_list_spec=$lt_nm_file_list_spec
25343
25344# The root where to search for dependent libraries,and where our libraries should be installed.
25345lt_sysroot=$lt_sysroot
25346
25347# Command to truncate a binary pipe.
25348lt_truncate_bin=$lt_lt_cv_truncate_bin
25349
25350# The name of the directory that contains temporary libtool files.
25351objdir=$objdir
25352
25353# Used to examine libraries when file_magic_cmd begins with "file".
25354MAGIC_CMD=$MAGIC_CMD
25355
25356# Must we lock files when doing compilation?
25357need_locks=$lt_need_locks
25358
25359# Manifest tool.
25360MANIFEST_TOOL=$lt_MANIFEST_TOOL
25361
25362# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25363DSYMUTIL=$lt_DSYMUTIL
25364
25365# Tool to change global to local symbols on Mac OS X.
25366NMEDIT=$lt_NMEDIT
25367
25368# Tool to manipulate fat objects and archives on Mac OS X.
25369LIPO=$lt_LIPO
25370
25371# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25372OTOOL=$lt_OTOOL
25373
25374# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25375OTOOL64=$lt_OTOOL64
25376
25377# Old archive suffix (normally "a").
25378libext=$libext
25379
25380# Shared library suffix (normally ".so").
25381shrext_cmds=$lt_shrext_cmds
25382
25383# The commands to extract the exported symbol list from a shared archive.
25384extract_expsyms_cmds=$lt_extract_expsyms_cmds
25385
25386# Variables whose values should be saved in libtool wrapper scripts and
25387# restored at link time.
25388variables_saved_for_relink=$lt_variables_saved_for_relink
25389
25390# Do we need the "lib" prefix for modules?
25391need_lib_prefix=$need_lib_prefix
25392
25393# Do we need a version for libraries?
25394need_version=$need_version
25395
25396# Library versioning type.
25397version_type=$version_type
25398
25399# Shared library runtime path variable.
25400runpath_var=$runpath_var
25401
25402# Shared library path variable.
25403shlibpath_var=$shlibpath_var
25404
25405# Is shlibpath searched before the hard-coded library search path?
25406shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25407
25408# Format of library name prefix.
25409libname_spec=$lt_libname_spec
25410
25411# List of archive names.  First name is the real one, the rest are links.
25412# The last name is the one that the linker finds with -lNAME
25413library_names_spec=$lt_library_names_spec
25414
25415# The coded name of the library, if different from the real name.
25416soname_spec=$lt_soname_spec
25417
25418# Permission mode override for installation of shared libraries.
25419install_override_mode=$lt_install_override_mode
25420
25421# Command to use after installation of a shared archive.
25422postinstall_cmds=$lt_postinstall_cmds
25423
25424# Command to use after uninstallation of a shared archive.
25425postuninstall_cmds=$lt_postuninstall_cmds
25426
25427# Commands used to finish a libtool library installation in a directory.
25428finish_cmds=$lt_finish_cmds
25429
25430# As "finish_cmds", except a single script fragment to be evaled but
25431# not shown.
25432finish_eval=$lt_finish_eval
25433
25434# Whether we should hardcode library paths into libraries.
25435hardcode_into_libs=$hardcode_into_libs
25436
25437# Compile-time system search path for libraries.
25438sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25439
25440# Detected run-time system search path for libraries.
25441sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25442
25443# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25444configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25445
25446# Whether dlopen is supported.
25447dlopen_support=$enable_dlopen
25448
25449# Whether dlopen of programs is supported.
25450dlopen_self=$enable_dlopen_self
25451
25452# Whether dlopen of statically linked programs is supported.
25453dlopen_self_static=$enable_dlopen_self_static
25454
25455# Commands to strip libraries.
25456old_striplib=$lt_old_striplib
25457striplib=$lt_striplib
25458
25459
25460# The linker used to build libraries.
25461LD=$lt_LD
25462
25463# How to create reloadable object files.
25464reload_flag=$lt_reload_flag
25465reload_cmds=$lt_reload_cmds
25466
25467# Commands used to build an old-style archive.
25468old_archive_cmds=$lt_old_archive_cmds
25469
25470# A language specific compiler.
25471CC=$lt_compiler
25472
25473# Is the compiler the GNU compiler?
25474with_gcc=$GCC
25475
25476# Compiler flag to turn off builtin functions.
25477no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25478
25479# Additional compiler flags for building library objects.
25480pic_flag=$lt_lt_prog_compiler_pic
25481
25482# How to pass a linker flag through the compiler.
25483wl=$lt_lt_prog_compiler_wl
25484
25485# Compiler flag to prevent dynamic linking.
25486link_static_flag=$lt_lt_prog_compiler_static
25487
25488# Does compiler simultaneously support -c and -o options?
25489compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25490
25491# Whether or not to add -lc for building shared libraries.
25492build_libtool_need_lc=$archive_cmds_need_lc
25493
25494# Whether or not to disallow shared libs when runtime libs are static.
25495allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25496
25497# Compiler flag to allow reflexive dlopens.
25498export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25499
25500# Compiler flag to generate shared objects directly from archives.
25501whole_archive_flag_spec=$lt_whole_archive_flag_spec
25502
25503# Whether the compiler copes with passing no objects directly.
25504compiler_needs_object=$lt_compiler_needs_object
25505
25506# Create an old-style archive from a shared archive.
25507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25508
25509# Create a temporary old-style archive to link instead of a shared archive.
25510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25511
25512# Commands used to build a shared archive.
25513archive_cmds=$lt_archive_cmds
25514archive_expsym_cmds=$lt_archive_expsym_cmds
25515
25516# Commands used to build a loadable module if different from building
25517# a shared archive.
25518module_cmds=$lt_module_cmds
25519module_expsym_cmds=$lt_module_expsym_cmds
25520
25521# Whether we are building with GNU ld or not.
25522with_gnu_ld=$lt_with_gnu_ld
25523
25524# Flag that allows shared libraries with undefined symbols to be built.
25525allow_undefined_flag=$lt_allow_undefined_flag
25526
25527# Flag that enforces no undefined symbols.
25528no_undefined_flag=$lt_no_undefined_flag
25529
25530# Flag to hardcode \$libdir into a binary during linking.
25531# This must work even if \$libdir does not exist
25532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25533
25534# Whether we need a single "-rpath" flag with a separated argument.
25535hardcode_libdir_separator=$lt_hardcode_libdir_separator
25536
25537# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25538# DIR into the resulting binary.
25539hardcode_direct=$hardcode_direct
25540
25541# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25542# DIR into the resulting binary and the resulting library dependency is
25543# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25544# library is relocated.
25545hardcode_direct_absolute=$hardcode_direct_absolute
25546
25547# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25548# into the resulting binary.
25549hardcode_minus_L=$hardcode_minus_L
25550
25551# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25552# into the resulting binary.
25553hardcode_shlibpath_var=$hardcode_shlibpath_var
25554
25555# Set to "yes" if building a shared library automatically hardcodes DIR
25556# into the library and all subsequent libraries and executables linked
25557# against it.
25558hardcode_automatic=$hardcode_automatic
25559
25560# Set to yes if linker adds runtime paths of dependent libraries
25561# to runtime path list.
25562inherit_rpath=$inherit_rpath
25563
25564# Whether libtool must link a program against all its dependency libraries.
25565link_all_deplibs=$link_all_deplibs
25566
25567# Set to "yes" if exported symbols are required.
25568always_export_symbols=$always_export_symbols
25569
25570# The commands to list exported symbols.
25571export_symbols_cmds=$lt_export_symbols_cmds
25572
25573# Symbols that should not be listed in the preloaded symbols.
25574exclude_expsyms=$lt_exclude_expsyms
25575
25576# Symbols that must always be exported.
25577include_expsyms=$lt_include_expsyms
25578
25579# Commands necessary for linking programs (against libraries) with templates.
25580prelink_cmds=$lt_prelink_cmds
25581
25582# Commands necessary for finishing linking programs.
25583postlink_cmds=$lt_postlink_cmds
25584
25585# Specify filename containing input files.
25586file_list_spec=$lt_file_list_spec
25587
25588# How to hardcode a shared library path into an executable.
25589hardcode_action=$hardcode_action
25590
25591# ### END LIBTOOL CONFIG
25592
25593_LT_EOF
25594
25595    cat <<'_LT_EOF' >> "$cfgfile"
25596
25597# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25598
25599# func_munge_path_list VARIABLE PATH
25600# -----------------------------------
25601# VARIABLE is name of variable containing _space_ separated list of
25602# directories to be munged by the contents of PATH, which is string
25603# having a format:
25604# "DIR[:DIR]:"
25605#       string "DIR[ DIR]" will be prepended to VARIABLE
25606# ":DIR[:DIR]"
25607#       string "DIR[ DIR]" will be appended to VARIABLE
25608# "DIRP[:DIRP]::[DIRA:]DIRA"
25609#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25610#       "DIRA[ DIRA]" will be appended to VARIABLE
25611# "DIR[:DIR]"
25612#       VARIABLE will be replaced by "DIR[ DIR]"
25613func_munge_path_list ()
25614{
25615    case x$2 in
25616    x)
25617        ;;
25618    *:)
25619        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25620        ;;
25621    x:*)
25622        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25623        ;;
25624    *::*)
25625        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25626        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25627        ;;
25628    *)
25629        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25630        ;;
25631    esac
25632}
25633
25634
25635# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25636func_cc_basename ()
25637{
25638    for cc_temp in $*""; do
25639      case $cc_temp in
25640        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25641        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25642        \-*) ;;
25643        *) break;;
25644      esac
25645    done
25646    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25647}
25648
25649
25650# ### END FUNCTIONS SHARED WITH CONFIGURE
25651
25652_LT_EOF
25653
25654  case $host_os in
25655  aix3*)
25656    cat <<\_LT_EOF >> "$cfgfile"
25657# AIX sometimes has problems with the GCC collect2 program.  For some
25658# reason, if we set the COLLECT_NAMES environment variable, the problems
25659# vanish in a puff of smoke.
25660if test set != "${COLLECT_NAMES+set}"; then
25661  COLLECT_NAMES=
25662  export COLLECT_NAMES
25663fi
25664_LT_EOF
25665    ;;
25666  esac
25667
25668
25669
25670ltmain=$ac_aux_dir/ltmain.sh
25671
25672
25673  # We use sed instead of cat because bash on DJGPP gets confused if
25674  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25675  # text mode, it properly converts lines to CR/LF.  This bash problem
25676  # is reportedly fixed, but why not run on old versions too?
25677  sed '$q' "$ltmain" >> "$cfgfile" \
25678     || (rm -f "$cfgfile"; exit 1)
25679
25680   mv -f "$cfgfile" "$ofile" ||
25681    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25682  chmod +x "$ofile"
25683
25684 ;;
25685    "disable-rpath":C)
25686	sed < libtool > libtool-2 \
25687	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
25688	mv libtool-2 libtool
25689	chmod 755 libtool
25690	libtool="./libtool"
25691	 ;;
25692
25693  esac
25694done # for ac_tag
25695
25696
25697as_fn_exit 0
25698_ACEOF
25699ac_clean_files=$ac_clean_files_save
25700
25701test $ac_write_fail = 0 ||
25702  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25703
25704
25705# configure is writing to config.log, and then calls config.status.
25706# config.status does its own redirection, appending to config.log.
25707# Unfortunately, on DOS this fails, as config.log is still kept open
25708# by configure, so config.status won't be able to write to it; its
25709# output is simply discarded.  So we exec the FD to /dev/null,
25710# effectively closing config.log, so it can be properly (re)opened and
25711# appended to by config.status.  When coming back to configure, we
25712# need to make the FD available again.
25713if test "$no_create" != yes; then
25714  ac_cs_success=:
25715  ac_config_status_args=
25716  test "$silent" = yes &&
25717    ac_config_status_args="$ac_config_status_args --quiet"
25718  exec 5>/dev/null
25719  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25720  exec 5>>config.log
25721  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25722  # would make configure fail if this is the last instruction.
25723  $ac_cs_success || as_fn_exit 1
25724fi
25725if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25727printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25728fi
25729
25730