xref: /freebsd/contrib/unbound/configure (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.19.3.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
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'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: unbound-bugs@nlnetlabs.nl or
279$0: https://github.com/NLnetLabs/unbound/issues about your
280$0: system, including any error possibly output before this
281$0: message. Then install a modern shell, or manually run
282$0: the script under such a shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='unbound'
593PACKAGE_TARNAME='unbound'
594PACKAGE_VERSION='1.19.3'
595PACKAGE_STRING='unbound 1.19.3'
596PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
597PACKAGE_URL=''
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='LTLIBOBJS
636date
637version
638INSTALLTARGET
639ALLTARGET
640SOURCEFILE
641SOURCEDETERMINE
642IPSET_OBJ
643IPSET_SRC
644IPSECMOD_HEADER
645IPSECMOD_OBJ
646CACHEDB_OBJ
647CACHEDB_SRC
648DNSCRYPT_OBJ
649DNSCRYPT_SRC
650ENABLE_DNSCRYPT
651ENABLE_DNSCRYPT_XCHACHA20
652DNSTAP_OBJ
653DNSTAP_SRC
654DNSTAP_SOCKET_TESTBIN
655DNSTAP_SOCKET_PATH
656opt_dnstap_socket_path
657ENABLE_DNSTAP
658PROTOBUFC_LIBS
659PROTOBUFC_CFLAGS
660PROTOC_C
661UBSYMS
662EXTRALINK
663COMMON_OBJ_ALL_SYMBOLS
664LIBOBJ_WITHOUT_CTIME
665LIBOBJ_WITHOUT_CTIMEARC4
666WIN_CHECKCONF_OBJ_LINK
667WIN_CONTROL_OBJ_LINK
668WIN_UBANCHOR_OBJ_LINK
669WIN_HOST_OBJ_LINK
670WIN_DAEMON_OBJ_LINK
671WIN_DAEMON_OBJ
672WIN_DAEMON_SRC
673WINAPPS
674WINDRES
675CHECKLOCK_OBJ
676staticexe
677PC_LIBEVENT_DEPENDENCY
678UNBOUND_EVENT_UNINSTALL
679UNBOUND_EVENT_INSTALL
680SUBNET_HEADER
681SUBNET_OBJ
682PC_LIBBSD_DEPENDENCY
683SSLLIB
684HAVE_SSL
685PC_CRYPTO_DEPENDENCY
686CONFIG_DATE
687GCC_DOCKER_LINTFLAGS
688NETBSD_LINTFLAGS
689PYUNBOUND_UNINSTALL
690PYUNBOUND_INSTALL
691PYUNBOUND_TARGET
692PYUNBOUND_OBJ
693WITH_PYUNBOUND
694PYTHONMOD_UNINSTALL
695PYTHONMOD_INSTALL
696PYTHONMOD_HEADER
697PYTHONMOD_OBJ
698WITH_PYTHONMODULE
699swig
700SWIG_LIB
701SWIG
702PC_PY_DEPENDENCY
703PYTHON_LIBS
704PY_MAJOR_VERSION
705PYTHON_SITE_PKG
706PYTHON_LDFLAGS
707PYTHON_CPPFLAGS
708PYTHON
709PYTHON_VERSION
710DYNLIBMOD_EXTRALIBS
711DYNLIBMOD_HEADER
712DYNLIBMOD_OBJ
713WITH_DYNLIBMODULE
714PTHREAD_CFLAGS_ONLY
715PTHREAD_CFLAGS
716PTHREAD_LIBS
717PTHREAD_CC
718ax_pthread_config
719ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
720SLDNS_ALLOCCHECK_EXTRA_OBJ
721USE_SYSTEMD_FALSE
722USE_SYSTEMD_TRUE
723SYSTEMD_DAEMON_LIBS
724SYSTEMD_DAEMON_CFLAGS
725SYSTEMD_LIBS
726SYSTEMD_CFLAGS
727RUNTIME_PATH
728LIBOBJS
729PKG_CONFIG_LIBDIR
730PKG_CONFIG_PATH
731PKG_CONFIG
732LT_SYS_LIBRARY_PATH
733OTOOL64
734OTOOL
735LIPO
736NMEDIT
737DSYMUTIL
738MANIFEST_TOOL
739AWK
740RANLIB
741ac_ct_AR
742DLLTOOL
743OBJDUMP
744LN_S
745NM
746ac_ct_DUMPBIN
747DUMPBIN
748LD
749FGREP
750SED
751LIBTOOL
752AR
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
761libtool
762STRIP
763doxygen
764YFLAGS
765YACC
766LEXLIB
767LEX_OUTPUT_ROOT
768LEX
769debug_enabled
770DEPFLAG
771UNBOUND_USERNAME
772UNBOUND_ROOTCERT_FILE
773UNBOUND_ROOTKEY_FILE
774UNBOUND_PIDFILE
775UNBOUND_SHARE_DIR
776UNBOUND_CHROOT_DIR
777UNBOUND_RUN_DIR
778ub_conf_dir
779ub_conf_file
780UNBOUND_LOCALSTATE_DIR
781UNBOUND_SYSCONF_DIR
782UNBOUND_SBIN_DIR
783EGREP
784GREP
785CPP
786OBJEXT
787EXEEXT
788ac_ct_CC
789CPPFLAGS
790LDFLAGS
791CFLAGS
792CC
793LIBUNBOUND_AGE
794LIBUNBOUND_REVISION
795LIBUNBOUND_CURRENT
796UNBOUND_VERSION_MICRO
797UNBOUND_VERSION_MINOR
798UNBOUND_VERSION_MAJOR
799target_alias
800host_alias
801build_alias
802LIBS
803ECHO_T
804ECHO_N
805ECHO_C
806DEFS
807mandir
808localedir
809libdir
810psdir
811pdfdir
812dvidir
813htmldir
814infodir
815docdir
816oldincludedir
817includedir
818runstatedir
819localstatedir
820sharedstatedir
821sysconfdir
822datadir
823datarootdir
824libexecdir
825sbindir
826bindir
827program_transform_name
828prefix
829exec_prefix
830PACKAGE_URL
831PACKAGE_BUGREPORT
832PACKAGE_STRING
833PACKAGE_VERSION
834PACKAGE_TARNAME
835PACKAGE_NAME
836PATH_SEPARATOR
837SHELL'
838ac_subst_files=''
839ac_user_opts='
840enable_option_checking
841with_conf_file
842with_run_dir
843with_chroot_dir
844with_share_dir
845with_pidfile
846with_rootkey_file
847with_rootcert_file
848with_username
849enable_checking
850enable_debug
851enable_flto
852enable_pie
853enable_relro_now
854enable_shared
855enable_static
856with_pic
857enable_fast_install
858with_aix_soname
859with_gnu_ld
860with_sysroot
861enable_libtool_lock
862enable_rpath
863enable_largefile
864enable_systemd
865enable_alloc_checks
866enable_alloc_lite
867enable_alloc_nonregional
868with_pthreads
869with_solaris_threads
870with_syslog_facility
871with_dynlibmodule
872with_pyunbound
873with_pythonmodule
874enable_swig_version_check
875with_nss
876with_nettle
877with_ssl
878with_libbsd
879enable_sha1
880enable_sha2
881enable_subnet
882enable_gost
883enable_ecdsa
884enable_dsa
885with_deprecate_rsa_1024
886enable_ed25519
887enable_ed448
888enable_event_api
889enable_tfo_client
890enable_tfo_server
891with_libevent
892with_libexpat
893with_libhiredis
894with_libnghttp2
895enable_static_exe
896enable_fully_static
897enable_lock_checks
898enable_allsymbols
899enable_dnstap
900with_dnstap_socket_path
901with_protobuf_c
902enable_dnscrypt
903with_libsodium
904enable_cachedb
905enable_ipsecmod
906enable_ipset
907with_libmnl
908enable_explicit_port_randomisation
909enable_linux_ip_local_port_range
910with_libunbound_only
911'
912      ac_precious_vars='build_alias
913host_alias
914target_alias
915CC
916CFLAGS
917LDFLAGS
918LIBS
919CPPFLAGS
920CPP
921YACC
922YFLAGS
923LT_SYS_LIBRARY_PATH
924PKG_CONFIG
925PKG_CONFIG_PATH
926PKG_CONFIG_LIBDIR
927SYSTEMD_CFLAGS
928SYSTEMD_LIBS
929SYSTEMD_DAEMON_CFLAGS
930SYSTEMD_DAEMON_LIBS
931PYTHON_VERSION
932PROTOBUFC_CFLAGS
933PROTOBUFC_LIBS'
934
935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
939ac_unrecognized_opts=
940ac_unrecognized_sep=
941# The variables have the same names as the options, with
942# dashes changed to underlines.
943cache_file=/dev/null
944exec_prefix=NONE
945no_create=
946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
954verbose=
955x_includes=NONE
956x_libraries=NONE
957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
963# (The list follows the same order as the GNU Coding Standards.)
964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
972runstatedir='${localstatedir}/run'
973includedir='${prefix}/include'
974oldincludedir='/usr/include'
975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
984
985ac_prev=
986ac_dashdash=
987for ac_option
988do
989  # If the previous option needs an argument, assign it.
990  if test -n "$ac_prev"; then
991    eval $ac_prev=\$ac_option
992    ac_prev=
993    continue
994  fi
995
996  case $ac_option in
997  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998  *=)   ac_optarg= ;;
999  *)    ac_optarg=yes ;;
1000  esac
1001
1002  # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004  case $ac_dashdash$ac_option in
1005  --)
1006    ac_dashdash=yes ;;
1007
1008  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009    ac_prev=bindir ;;
1010  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011    bindir=$ac_optarg ;;
1012
1013  -build | --build | --buil | --bui | --bu)
1014    ac_prev=build_alias ;;
1015  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016    build_alias=$ac_optarg ;;
1017
1018  -cache-file | --cache-file | --cache-fil | --cache-fi \
1019  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020    ac_prev=cache_file ;;
1021  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023    cache_file=$ac_optarg ;;
1024
1025  --config-cache | -C)
1026    cache_file=config.cache ;;
1027
1028  -datadir | --datadir | --datadi | --datad)
1029    ac_prev=datadir ;;
1030  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031    datadir=$ac_optarg ;;
1032
1033  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034  | --dataroo | --dataro | --datar)
1035    ac_prev=datarootdir ;;
1036  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038    datarootdir=$ac_optarg ;;
1039
1040  -disable-* | --disable-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      as_fn_error $? "invalid feature name: $ac_useropt"
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"enable_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval enable_$ac_useropt=no ;;
1055
1056  -docdir | --docdir | --docdi | --doc | --do)
1057    ac_prev=docdir ;;
1058  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059    docdir=$ac_optarg ;;
1060
1061  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062    ac_prev=dvidir ;;
1063  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064    dvidir=$ac_optarg ;;
1065
1066  -enable-* | --enable-*)
1067    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068    # Reject names that are not valid shell variable names.
1069    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070      as_fn_error $? "invalid feature name: $ac_useropt"
1071    ac_useropt_orig=$ac_useropt
1072    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073    case $ac_user_opts in
1074      *"
1075"enable_$ac_useropt"
1076"*) ;;
1077      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078	 ac_unrecognized_sep=', ';;
1079    esac
1080    eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084  | --exec | --exe | --ex)
1085    ac_prev=exec_prefix ;;
1086  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088  | --exec=* | --exe=* | --ex=*)
1089    exec_prefix=$ac_optarg ;;
1090
1091  -gas | --gas | --ga | --g)
1092    # Obsolete; use --with-gas.
1093    with_gas=yes ;;
1094
1095  -help | --help | --hel | --he | -h)
1096    ac_init_help=long ;;
1097  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098    ac_init_help=recursive ;;
1099  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100    ac_init_help=short ;;
1101
1102  -host | --host | --hos | --ho)
1103    ac_prev=host_alias ;;
1104  -host=* | --host=* | --hos=* | --ho=*)
1105    host_alias=$ac_optarg ;;
1106
1107  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108    ac_prev=htmldir ;;
1109  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110  | --ht=*)
1111    htmldir=$ac_optarg ;;
1112
1113  -includedir | --includedir | --includedi | --included | --include \
1114  | --includ | --inclu | --incl | --inc)
1115    ac_prev=includedir ;;
1116  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117  | --includ=* | --inclu=* | --incl=* | --inc=*)
1118    includedir=$ac_optarg ;;
1119
1120  -infodir | --infodir | --infodi | --infod | --info | --inf)
1121    ac_prev=infodir ;;
1122  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123    infodir=$ac_optarg ;;
1124
1125  -libdir | --libdir | --libdi | --libd)
1126    ac_prev=libdir ;;
1127  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128    libdir=$ac_optarg ;;
1129
1130  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131  | --libexe | --libex | --libe)
1132    ac_prev=libexecdir ;;
1133  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134  | --libexe=* | --libex=* | --libe=*)
1135    libexecdir=$ac_optarg ;;
1136
1137  -localedir | --localedir | --localedi | --localed | --locale)
1138    ac_prev=localedir ;;
1139  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140    localedir=$ac_optarg ;;
1141
1142  -localstatedir | --localstatedir | --localstatedi | --localstated \
1143  | --localstate | --localstat | --localsta | --localst | --locals)
1144    ac_prev=localstatedir ;;
1145  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147    localstatedir=$ac_optarg ;;
1148
1149  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150    ac_prev=mandir ;;
1151  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152    mandir=$ac_optarg ;;
1153
1154  -nfp | --nfp | --nf)
1155    # Obsolete; use --without-fp.
1156    with_fp=no ;;
1157
1158  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159  | --no-cr | --no-c | -n)
1160    no_create=yes ;;
1161
1162  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164    no_recursion=yes ;;
1165
1166  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168  | --oldin | --oldi | --old | --ol | --o)
1169    ac_prev=oldincludedir ;;
1170  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173    oldincludedir=$ac_optarg ;;
1174
1175  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176    ac_prev=prefix ;;
1177  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178    prefix=$ac_optarg ;;
1179
1180  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181  | --program-pre | --program-pr | --program-p)
1182    ac_prev=program_prefix ;;
1183  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185    program_prefix=$ac_optarg ;;
1186
1187  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188  | --program-suf | --program-su | --program-s)
1189    ac_prev=program_suffix ;;
1190  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192    program_suffix=$ac_optarg ;;
1193
1194  -program-transform-name | --program-transform-name \
1195  | --program-transform-nam | --program-transform-na \
1196  | --program-transform-n | --program-transform- \
1197  | --program-transform | --program-transfor \
1198  | --program-transfo | --program-transf \
1199  | --program-trans | --program-tran \
1200  | --progr-tra | --program-tr | --program-t)
1201    ac_prev=program_transform_name ;;
1202  -program-transform-name=* | --program-transform-name=* \
1203  | --program-transform-nam=* | --program-transform-na=* \
1204  | --program-transform-n=* | --program-transform-=* \
1205  | --program-transform=* | --program-transfor=* \
1206  | --program-transfo=* | --program-transf=* \
1207  | --program-trans=* | --program-tran=* \
1208  | --progr-tra=* | --program-tr=* | --program-t=*)
1209    program_transform_name=$ac_optarg ;;
1210
1211  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212    ac_prev=pdfdir ;;
1213  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214    pdfdir=$ac_optarg ;;
1215
1216  -psdir | --psdir | --psdi | --psd | --ps)
1217    ac_prev=psdir ;;
1218  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219    psdir=$ac_optarg ;;
1220
1221  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222  | -silent | --silent | --silen | --sile | --sil)
1223    silent=yes ;;
1224
1225  -runstatedir | --runstatedir | --runstatedi | --runstated \
1226  | --runstate | --runstat | --runsta | --runst | --runs \
1227  | --run | --ru | --r)
1228    ac_prev=runstatedir ;;
1229  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1230  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1231  | --run=* | --ru=* | --r=*)
1232    runstatedir=$ac_optarg ;;
1233
1234  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235    ac_prev=sbindir ;;
1236  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237  | --sbi=* | --sb=*)
1238    sbindir=$ac_optarg ;;
1239
1240  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242  | --sharedst | --shareds | --shared | --share | --shar \
1243  | --sha | --sh)
1244    ac_prev=sharedstatedir ;;
1245  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248  | --sha=* | --sh=*)
1249    sharedstatedir=$ac_optarg ;;
1250
1251  -site | --site | --sit)
1252    ac_prev=site ;;
1253  -site=* | --site=* | --sit=*)
1254    site=$ac_optarg ;;
1255
1256  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257    ac_prev=srcdir ;;
1258  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259    srcdir=$ac_optarg ;;
1260
1261  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262  | --syscon | --sysco | --sysc | --sys | --sy)
1263    ac_prev=sysconfdir ;;
1264  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266    sysconfdir=$ac_optarg ;;
1267
1268  -target | --target | --targe | --targ | --tar | --ta | --t)
1269    ac_prev=target_alias ;;
1270  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271    target_alias=$ac_optarg ;;
1272
1273  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274    verbose=yes ;;
1275
1276  -version | --version | --versio | --versi | --vers | -V)
1277    ac_init_version=: ;;
1278
1279  -with-* | --with-*)
1280    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283      as_fn_error $? "invalid package name: $ac_useropt"
1284    ac_useropt_orig=$ac_useropt
1285    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286    case $ac_user_opts in
1287      *"
1288"with_$ac_useropt"
1289"*) ;;
1290      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291	 ac_unrecognized_sep=', ';;
1292    esac
1293    eval with_$ac_useropt=\$ac_optarg ;;
1294
1295  -without-* | --without-*)
1296    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297    # Reject names that are not valid shell variable names.
1298    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299      as_fn_error $? "invalid package name: $ac_useropt"
1300    ac_useropt_orig=$ac_useropt
1301    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302    case $ac_user_opts in
1303      *"
1304"with_$ac_useropt"
1305"*) ;;
1306      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307	 ac_unrecognized_sep=', ';;
1308    esac
1309    eval with_$ac_useropt=no ;;
1310
1311  --x)
1312    # Obsolete; use --with-x.
1313    with_x=yes ;;
1314
1315  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316  | --x-incl | --x-inc | --x-in | --x-i)
1317    ac_prev=x_includes ;;
1318  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320    x_includes=$ac_optarg ;;
1321
1322  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324    ac_prev=x_libraries ;;
1325  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327    x_libraries=$ac_optarg ;;
1328
1329  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1330Try \`$0 --help' for more information"
1331    ;;
1332
1333  *=*)
1334    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335    # Reject names that are not valid shell variable names.
1336    case $ac_envvar in #(
1337      '' | [0-9]* | *[!_$as_cr_alnum]* )
1338      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339    esac
1340    eval $ac_envvar=\$ac_optarg
1341    export $ac_envvar ;;
1342
1343  *)
1344    # FIXME: should be removed in autoconf 3.0.
1345    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1349    ;;
1350
1351  esac
1352done
1353
1354if test -n "$ac_prev"; then
1355  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356  as_fn_error $? "missing argument to $ac_option"
1357fi
1358
1359if test -n "$ac_unrecognized_opts"; then
1360  case $enable_option_checking in
1361    no) ;;
1362    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1363    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364  esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369		datadir sysconfdir sharedstatedir localstatedir includedir \
1370		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371		libdir localedir mandir runstatedir
1372do
1373  eval ac_val=\$$ac_var
1374  # Remove trailing slashes.
1375  case $ac_val in
1376    */ )
1377      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378      eval $ac_var=\$ac_val;;
1379  esac
1380  # Be sure to have absolute directory names.
1381  case $ac_val in
1382    [\\/$]* | ?:[\\/]* )  continue;;
1383    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384  esac
1385  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1386done
1387
1388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
1390# FIXME: To remove some day.
1391build=$build_alias
1392host=$host_alias
1393target=$target_alias
1394
1395# FIXME: To remove some day.
1396if test "x$host_alias" != x; then
1397  if test "x$build_alias" = x; then
1398    cross_compiling=maybe
1399  elif test "x$build_alias" != "x$host_alias"; then
1400    cross_compiling=yes
1401  fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
1408
1409
1410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413  as_fn_error $? "working directory cannot be determined"
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415  as_fn_error $? "pwd does not report name of working directory"
1416
1417
1418# Find the source files, if location was not specified.
1419if test -z "$srcdir"; then
1420  ac_srcdir_defaulted=yes
1421  # Try the directory containing this script, then the parent directory.
1422  ac_confdir=`$as_dirname -- "$as_myself" ||
1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424	 X"$as_myself" : 'X\(//\)[^/]' \| \
1425	 X"$as_myself" : 'X\(//\)$' \| \
1426	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427$as_echo X"$as_myself" |
1428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)[^/].*/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\/\)$/{
1437	    s//\1/
1438	    q
1439	  }
1440	  /^X\(\/\).*/{
1441	    s//\1/
1442	    q
1443	  }
1444	  s/.*/./; q'`
1445  srcdir=$ac_confdir
1446  if test ! -r "$srcdir/$ac_unique_file"; then
1447    srcdir=..
1448  fi
1449else
1450  ac_srcdir_defaulted=no
1451fi
1452if test ! -r "$srcdir/$ac_unique_file"; then
1453  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455fi
1456ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457ac_abs_confdir=`(
1458	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459	pwd)`
1460# When building in place, set srcdir=.
1461if test "$ac_abs_confdir" = "$ac_pwd"; then
1462  srcdir=.
1463fi
1464# Remove unnecessary trailing slashes from srcdir.
1465# Double slashes in file names in object file debugging info
1466# mess up M-x gdb in Emacs.
1467case $srcdir in
1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469esac
1470for ac_var in $ac_precious_vars; do
1471  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472  eval ac_env_${ac_var}_value=\$${ac_var}
1473  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475done
1476
1477#
1478# Report the --help message.
1479#
1480if test "$ac_init_help" = "long"; then
1481  # Omit some internal or obsolete options to make the list less imposing.
1482  # This message is too long to be a string in the A/UX 3.1 sh.
1483  cat <<_ACEOF
1484\`configure' configures unbound 1.19.3 to adapt to many kinds of systems.
1485
1486Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489VAR=VALUE.  See below for descriptions of some of the useful variables.
1490
1491Defaults for the options are specified in brackets.
1492
1493Configuration:
1494  -h, --help              display this help and exit
1495      --help=short        display options specific to this package
1496      --help=recursive    display the short help of all the included packages
1497  -V, --version           display version information and exit
1498  -q, --quiet, --silent   do not print \`checking ...' messages
1499      --cache-file=FILE   cache test results in FILE [disabled]
1500  -C, --config-cache      alias for \`--cache-file=config.cache'
1501  -n, --no-create         do not create output files
1502      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1503
1504Installation directories:
1505  --prefix=PREFIX         install architecture-independent files in PREFIX
1506                          [$ac_default_prefix]
1507  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1508                          [PREFIX]
1509
1510By default, \`make install' will install all the files in
1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1512an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513for instance \`--prefix=\$HOME'.
1514
1515For better control, use the options below.
1516
1517Fine tuning of the installation directories:
1518  --bindir=DIR            user executables [EPREFIX/bin]
1519  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1520  --libexecdir=DIR        program executables [EPREFIX/libexec]
1521  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1522  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1523  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1524  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542System types:
1543  --build=BUILD     configure for building on BUILD [guessed]
1544  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545_ACEOF
1546fi
1547
1548if test -n "$ac_init_help"; then
1549  case $ac_init_help in
1550     short | recursive ) echo "Configuration of unbound 1.19.3:";;
1551   esac
1552  cat <<\_ACEOF
1553
1554Optional Features:
1555  --disable-option-checking  ignore unrecognized --enable/--with options
1556  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558  --enable-checking       Enable warnings, asserts, makefile-dependencies
1559  --enable-debug          same as enable-checking
1560  --disable-flto          Disable link-time optimization (gcc specific option)
1561  --enable-pie            Enable Position-Independent Executable (eg. to fully
1562                          benefit from ASLR, small performance penalty)
1563  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1564                          NOW, to protect GOT and .dtor areas)
1565  --enable-shared[=PKGS]  build shared libraries [default=yes]
1566  --enable-static[=PKGS]  build static libraries [default=yes]
1567  --enable-fast-install[=PKGS]
1568                          optimize for fast installation [default=yes]
1569  --disable-libtool-lock  avoid locking (might break parallel builds)
1570  --disable-rpath         disable hardcoded rpath (default=enabled)
1571  --disable-largefile     omit support for large files
1572  --enable-systemd        compile with systemd support
1573  --enable-alloc-checks   enable to memory allocation statistics, for debug
1574                          purposes
1575  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1576                          purposes
1577  --enable-alloc-nonregional
1578                          enable nonregional allocs, slow but exposes regional
1579                          allocations to other memory purifiers, for debug
1580                          purposes
1581  --disable-swig-version-check
1582                          Disable swig version check to build python modules
1583                          with older swig even though that is unreliable
1584  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1585                          support
1586  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1587  --enable-subnet         Enable client subnet
1588  --disable-gost          Disable GOST support
1589  --disable-ecdsa         Disable ECDSA support
1590  --disable-dsa           Disable DSA support
1591  --disable-ed25519       Disable ED25519 support
1592  --disable-ed448         Disable ED448 support
1593  --enable-event-api      Enable (experimental) pluggable event base
1594                          libunbound API installed to unbound-event.h
1595  --enable-tfo-client     Enable TCP Fast Open for client mode
1596  --enable-tfo-server     Enable TCP Fast Open for server mode
1597  --enable-static-exe     enable to compile executables statically against
1598                          (event) uninstalled libs, for debug purposes
1599  --enable-fully-static   enable to compile fully static
1600  --enable-lock-checks    enable to check lock and unlock calls, for debug
1601                          purposes
1602  --enable-allsymbols     export all symbols from libunbound and link binaries
1603                          to it, smaller install size but libunbound export
1604                          table is polluted by internal symbols
1605  --enable-dnstap         Enable dnstap support (requires protobuf-c)
1606  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1607  --enable-cachedb        enable cachedb module that can use external cache
1608                          storage
1609  --enable-ipsecmod       Enable ipsecmod module that facilitates
1610                          opportunistic IPsec
1611  --enable-ipset          enable ipset module
1612  --disable-explicit-port-randomisation
1613                          disable explicit source port randomisation and rely
1614                          on the kernel to provide random source ports
1615  --enable-linux-ip-local-port-range
1616                          Define this to enable use of
1617                          /proc/sys/net/ipv4/ip_local_port_range as a default
1618                          outgoing port range. This is only for the libunbound
1619                          on Linux and does not affect unbound resolving
1620                          daemon itself. This may severely limit the number of
1621                          available outgoing ports and thus decrease
1622                          randomness. Define this only when the target system
1623                          restricts (e.g. some of SELinux enabled
1624                          distributions) the use of non-ephemeral ports.
1625
1626Optional Packages:
1627  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1628  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1629  --with-conf-file=path   Pathname to the Unbound configuration file
1630  --with-run-dir=path     set default directory to chdir to (by default dir
1631                          part of cfg file)
1632  --with-chroot-dir=path  set default directory to chroot to (by default same
1633                          as run-dir)
1634  --with-share-dir=path   set default directory with shared data (by default
1635                          same as share/unbound)
1636  --with-pidfile=filename set default pathname to unbound pidfile (default
1637                          run-dir/unbound.pid)
1638  --with-rootkey-file=filename
1639                          set default pathname to root key file (default
1640                          run-dir/root.key). This file is read and written.
1641  --with-rootcert-file=filename
1642                          set default pathname to root update certificate file
1643                          (default run-dir/icannbundle.pem). This file need
1644                          not exist if you are content with the builtin.
1645  --with-username=user    set default user that unbound changes to (default
1646                          user is unbound)
1647  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1648                          both]
1649  --with-aix-soname=aix|svr4|both
1650                          shared library versioning (aka "SONAME") variant to
1651                          provide on AIX, [default=aix].
1652  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1653  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1654                          compiler's sysroot if not specified).
1655  --with-pthreads         use pthreads library, or --without-pthreads to
1656                          disable threading support.
1657  --with-solaris-threads  use solaris native thread library.
1658  --with-syslog-facility=LOCAL0 - LOCAL7
1659                          set SYSLOG_FACILITY, default DAEMON
1660  --with-dynlibmodule     build dynamic library module, or
1661                          --without-dynlibmodule to disable it. (default=no)
1662  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1663                          (default=no)
1664  --with-pythonmodule     build Python module, or --without-pythonmodule to
1665                          disable script engine. (default=no)
1666  --with-nss=path         use libnss instead of openssl, installed at path.
1667  --with-nettle=path      use libnettle as crypto library, installed at path.
1668  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1669                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1670                          /usr or specify like /usr/include/openssl11)
1671  --with-libbsd           Use portable libbsd functions
1672  --with-deprecate-rsa-1024
1673                          Deprecate RSA 1024 bit length, makes that an
1674                          unsupported key, for use when OpenSSL FIPS refuses
1675                          1024 bit verification
1676  --with-libevent=pathname
1677                          use libevent (will check /usr/local /opt/local
1678                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1679                          an explicit path). Slower, but allows use of large
1680                          outgoing port ranges.
1681  --with-libexpat=path    specify explicit path for libexpat.
1682  --with-libhiredis=path  specify explicit path for libhiredis.
1683  --with-libnghttp2=path  specify explicit path for libnghttp2.
1684  --with-dnstap-socket-path=pathname
1685                          set default dnstap socket path
1686  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1687  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1688  --with-libmnl=path      specify explicit path for libmnl.
1689  --with-libunbound-only  do not build daemon and tool programs
1690
1691Some influential environment variables:
1692  CC          C compiler command
1693  CFLAGS      C compiler flags
1694  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1695              nonstandard directory <lib dir>
1696  LIBS        libraries to pass to the linker, e.g. -l<library>
1697  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1698              you have headers in a nonstandard directory <include dir>
1699  CPP         C preprocessor
1700  YACC        The `Yet Another Compiler Compiler' implementation to use.
1701              Defaults to the first program found out of: `bison -y', `byacc',
1702              `yacc'.
1703  YFLAGS      The list of arguments that will be passed by default to $YACC.
1704              This script will default YFLAGS to the empty string to avoid a
1705              default value of `-d' given by some make applications.
1706  LT_SYS_LIBRARY_PATH
1707              User-defined run-time library search path.
1708  PKG_CONFIG  path to pkg-config utility
1709  PKG_CONFIG_PATH
1710              directories to add to pkg-config's search path
1711  PKG_CONFIG_LIBDIR
1712              path overriding pkg-config's built-in search path
1713  SYSTEMD_CFLAGS
1714              C compiler flags for SYSTEMD, overriding pkg-config
1715  SYSTEMD_LIBS
1716              linker flags for SYSTEMD, overriding pkg-config
1717  SYSTEMD_DAEMON_CFLAGS
1718              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1719  SYSTEMD_DAEMON_LIBS
1720              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1721  PYTHON_VERSION
1722              The installed Python version to use, for example '2.3'. This
1723              string will be appended to the Python interpreter canonical
1724              name.
1725  PROTOBUFC_CFLAGS
1726              C compiler flags for PROTOBUFC, overriding pkg-config
1727  PROTOBUFC_LIBS
1728              linker flags for PROTOBUFC, overriding pkg-config
1729
1730Use these variables to override the choices made by `configure' or to help
1731it to find libraries and programs with nonstandard names/locations.
1732
1733Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1734_ACEOF
1735ac_status=$?
1736fi
1737
1738if test "$ac_init_help" = "recursive"; then
1739  # If there are subdirs, report their specific --help.
1740  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1741    test -d "$ac_dir" ||
1742      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743      continue
1744    ac_builddir=.
1745
1746case "$ac_dir" in
1747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748*)
1749  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1750  # A ".." for each directory in $ac_dir_suffix.
1751  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1752  case $ac_top_builddir_sub in
1753  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755  esac ;;
1756esac
1757ac_abs_top_builddir=$ac_pwd
1758ac_abs_builddir=$ac_pwd$ac_dir_suffix
1759# for backward compatibility:
1760ac_top_builddir=$ac_top_build_prefix
1761
1762case $srcdir in
1763  .)  # We are building in place.
1764    ac_srcdir=.
1765    ac_top_srcdir=$ac_top_builddir_sub
1766    ac_abs_top_srcdir=$ac_pwd ;;
1767  [\\/]* | ?:[\\/]* )  # Absolute name.
1768    ac_srcdir=$srcdir$ac_dir_suffix;
1769    ac_top_srcdir=$srcdir
1770    ac_abs_top_srcdir=$srcdir ;;
1771  *) # Relative name.
1772    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1773    ac_top_srcdir=$ac_top_build_prefix$srcdir
1774    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1775esac
1776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1777
1778    cd "$ac_dir" || { ac_status=$?; continue; }
1779    # Check for guested configure.
1780    if test -f "$ac_srcdir/configure.gnu"; then
1781      echo &&
1782      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1783    elif test -f "$ac_srcdir/configure"; then
1784      echo &&
1785      $SHELL "$ac_srcdir/configure" --help=recursive
1786    else
1787      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1788    fi || ac_status=$?
1789    cd "$ac_pwd" || { ac_status=$?; break; }
1790  done
1791fi
1792
1793test -n "$ac_init_help" && exit $ac_status
1794if $ac_init_version; then
1795  cat <<\_ACEOF
1796unbound configure 1.19.3
1797generated by GNU Autoconf 2.69
1798
1799Copyright (C) 2012 Free Software Foundation, Inc.
1800This configure script is free software; the Free Software Foundation
1801gives unlimited permission to copy, distribute and modify it.
1802_ACEOF
1803  exit
1804fi
1805
1806## ------------------------ ##
1807## Autoconf initialization. ##
1808## ------------------------ ##
1809
1810# ac_fn_c_try_compile LINENO
1811# --------------------------
1812# Try to compile conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_compile ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  rm -f conftest.$ac_objext
1817  if { { ac_try="$ac_compile"
1818case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824  (eval "$ac_compile") 2>conftest.err
1825  ac_status=$?
1826  if test -s conftest.err; then
1827    grep -v '^ *+' conftest.err >conftest.er1
1828    cat conftest.er1 >&5
1829    mv -f conftest.er1 conftest.err
1830  fi
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } && {
1833	 test -z "$ac_c_werror_flag" ||
1834	 test ! -s conftest.err
1835       } && test -s conftest.$ac_objext; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841	ac_retval=1
1842fi
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_c_try_compile
1847
1848# ac_fn_c_try_cpp LINENO
1849# ----------------------
1850# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_c_try_cpp ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  if { { ac_try="$ac_cpp conftest.$ac_ext"
1855case "(($ac_try" in
1856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857  *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1862  ac_status=$?
1863  if test -s conftest.err; then
1864    grep -v '^ *+' conftest.err >conftest.er1
1865    cat conftest.er1 >&5
1866    mv -f conftest.er1 conftest.err
1867  fi
1868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869  test $ac_status = 0; } > conftest.i && {
1870	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871	 test ! -s conftest.err
1872       }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878    ac_retval=1
1879fi
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881  as_fn_set_status $ac_retval
1882
1883} # ac_fn_c_try_cpp
1884
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if eval \${$3+:} false; then :
1894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval \${$3+:} false; then :
1897  $as_echo_n "(cached) " >&6
1898fi
1899eval ac_res=\$$3
1900	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901$as_echo "$ac_res" >&6; }
1902else
1903  # Is the header compilable?
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907/* end confdefs.h.  */
1908$4
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912  ac_header_compiler=yes
1913else
1914  ac_header_compiler=no
1915fi
1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h.  */
1925#include <$2>
1926_ACEOF
1927if ac_fn_c_try_cpp "$LINENO"; then :
1928  ac_header_preproc=yes
1929else
1930  ac_header_preproc=no
1931fi
1932rm -f conftest.err conftest.i conftest.$ac_ext
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So?  What about this header?
1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1938  yes:no: )
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943    ;;
1944  no:yes:* )
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955( $as_echo "## --------------------------------------------------------------------------------------- ##
1956## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1957## --------------------------------------------------------------------------------------- ##"
1958     ) | sed "s/^/$as_me: WARNING:     /" >&2
1959    ;;
1960esac
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if eval \${$3+:} false; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  eval "$3=\$ac_header_compiler"
1967fi
1968eval ac_res=\$$3
1969	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971fi
1972  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974} # ac_fn_c_check_header_mongrel
1975
1976# ac_fn_c_try_run LINENO
1977# ----------------------
1978# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979# that executables *can* be run.
1980ac_fn_c_try_run ()
1981{
1982  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983  if { { ac_try="$ac_link"
1984case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_link") 2>&5
1991  ac_status=$?
1992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994  { { case "(($ac_try" in
1995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996  *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000  (eval "$ac_try") 2>&5
2001  ac_status=$?
2002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003  test $ac_status = 0; }; }; then :
2004  ac_retval=0
2005else
2006  $as_echo "$as_me: program exited with status $ac_status" >&5
2007       $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010       ac_retval=$ac_status
2011fi
2012  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014  as_fn_set_status $ac_retval
2015
2016} # ac_fn_c_try_run
2017
2018# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019# -------------------------------------------------------
2020# Tests whether HEADER exists and can be compiled using the include files in
2021# INCLUDES, setting the cache variable VAR accordingly.
2022ac_fn_c_check_header_compile ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if eval \${$3+:} false; then :
2028  $as_echo_n "(cached) " >&6
2029else
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033#include <$2>
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036  eval "$3=yes"
2037else
2038  eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_header_compile
2048
2049# ac_fn_c_try_link LINENO
2050# -----------------------
2051# Try to link conftest.$ac_ext, and return whether this succeeded.
2052ac_fn_c_try_link ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  rm -f conftest.$ac_objext conftest$ac_exeext
2056  if { { ac_try="$ac_link"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063  (eval "$ac_link") 2>conftest.err
2064  ac_status=$?
2065  if test -s conftest.err; then
2066    grep -v '^ *+' conftest.err >conftest.er1
2067    cat conftest.er1 >&5
2068    mv -f conftest.er1 conftest.err
2069  fi
2070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071  test $ac_status = 0; } && {
2072	 test -z "$ac_c_werror_flag" ||
2073	 test ! -s conftest.err
2074       } && test -s conftest$ac_exeext && {
2075	 test "$cross_compiling" = yes ||
2076	 test -x conftest$ac_exeext
2077       }; then :
2078  ac_retval=0
2079else
2080  $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083	ac_retval=1
2084fi
2085  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087  # interfere with the next link command; also delete a directory that is
2088  # left behind by Apple's compiler.  We do this before executing the actions.
2089  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091  as_fn_set_status $ac_retval
2092
2093} # ac_fn_c_try_link
2094
2095# ac_fn_c_check_func LINENO FUNC VAR
2096# ----------------------------------
2097# Tests whether FUNC exists, setting the cache variable VAR accordingly
2098ac_fn_c_check_func ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if eval \${$3+:} false; then :
2104  $as_echo_n "(cached) " >&6
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2110#define $2 innocuous_$2
2111
2112/* System header to define __stub macros and hopefully few prototypes,
2113    which can conflict with char $2 (); below.
2114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115    <limits.h> exists even on freestanding compilers.  */
2116
2117#ifdef __STDC__
2118# include <limits.h>
2119#else
2120# include <assert.h>
2121#endif
2122
2123#undef $2
2124
2125/* Override any GCC internal prototype to avoid an error.
2126   Use char because int might match the return type of a GCC
2127   builtin and then its argument prototype would still apply.  */
2128#ifdef __cplusplus
2129extern "C"
2130#endif
2131char $2 ();
2132/* The GNU C library defines this for functions which it implements
2133    to always fail with ENOSYS.  Some functions are actually named
2134    something starting with __ and the normal name is an alias.  */
2135#if defined __stub_$2 || defined __stub___$2
2136choke me
2137#endif
2138
2139int
2140main ()
2141{
2142return $2 ();
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_link "$LINENO"; then :
2148  eval "$3=yes"
2149else
2150  eval "$3=no"
2151fi
2152rm -f core conftest.err conftest.$ac_objext \
2153    conftest$ac_exeext conftest.$ac_ext
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159
2160} # ac_fn_c_check_func
2161
2162# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2163# -------------------------------------------
2164# Tests whether TYPE exists after having included INCLUDES, setting cache
2165# variable VAR accordingly.
2166ac_fn_c_check_type ()
2167{
2168  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
2171if eval \${$3+:} false; then :
2172  $as_echo_n "(cached) " >&6
2173else
2174  eval "$3=no"
2175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h.  */
2177$4
2178int
2179main ()
2180{
2181if (sizeof ($2))
2182	 return 0;
2183  ;
2184  return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h.  */
2190$4
2191int
2192main ()
2193{
2194if (sizeof (($2)))
2195	    return 0;
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
2201
2202else
2203  eval "$3=yes"
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209eval ac_res=\$$3
2210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214} # ac_fn_c_check_type
2215
2216# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2217# --------------------------------------------
2218# Tries to find the compile-time value of EXPR in a program that includes
2219# INCLUDES, setting VAR accordingly. Returns whether the value could be
2220# computed
2221ac_fn_c_compute_int ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  if test "$cross_compiling" = yes; then
2225    # Depending upon the size, compute the lo and hi bounds.
2226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(($2) >= 0)];
2233test_array [0] = 0;
2234return test_array [0];
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  ac_lo=0 ac_mid=0
2242  while :; do
2243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h.  */
2245$4
2246int
2247main ()
2248{
2249static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2250test_array [0] = 0;
2251return test_array [0];
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258  ac_hi=$ac_mid; break
2259else
2260  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2261			if test $ac_lo -le $ac_mid; then
2262			  ac_lo= ac_hi=
2263			  break
2264			fi
2265			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268  done
2269else
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272$4
2273int
2274main ()
2275{
2276static int test_array [1 - 2 * !(($2) < 0)];
2277test_array [0] = 0;
2278return test_array [0];
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  ac_hi=-1 ac_mid=-1
2286  while :; do
2287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288/* end confdefs.h.  */
2289$4
2290int
2291main ()
2292{
2293static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2294test_array [0] = 0;
2295return test_array [0];
2296
2297  ;
2298  return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302  ac_lo=$ac_mid; break
2303else
2304  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2305			if test $ac_mid -le $ac_hi; then
2306			  ac_lo= ac_hi=
2307			  break
2308			fi
2309			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312  done
2313else
2314  ac_lo= ac_hi=
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317fi
2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319# Binary search between lo and hi bounds.
2320while test "x$ac_lo" != "x$ac_hi"; do
2321  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324$4
2325int
2326main ()
2327{
2328static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2329test_array [0] = 0;
2330return test_array [0];
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337  ac_hi=$ac_mid
2338else
2339  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2340fi
2341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342done
2343case $ac_lo in #((
2344?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2345'') ac_retval=1 ;;
2346esac
2347  else
2348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349/* end confdefs.h.  */
2350$4
2351static long int longval () { return $2; }
2352static unsigned long int ulongval () { return $2; }
2353#include <stdio.h>
2354#include <stdlib.h>
2355int
2356main ()
2357{
2358
2359  FILE *f = fopen ("conftest.val", "w");
2360  if (! f)
2361    return 1;
2362  if (($2) < 0)
2363    {
2364      long int i = longval ();
2365      if (i != ($2))
2366	return 1;
2367      fprintf (f, "%ld", i);
2368    }
2369  else
2370    {
2371      unsigned long int i = ulongval ();
2372      if (i != ($2))
2373	return 1;
2374      fprintf (f, "%lu", i);
2375    }
2376  /* Do not output a trailing newline, as this causes \r\n confusion
2377     on some platforms.  */
2378  return ferror (f) || fclose (f) != 0;
2379
2380  ;
2381  return 0;
2382}
2383_ACEOF
2384if ac_fn_c_try_run "$LINENO"; then :
2385  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2386else
2387  ac_retval=1
2388fi
2389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2390  conftest.$ac_objext conftest.beam conftest.$ac_ext
2391rm -f conftest.val
2392
2393  fi
2394  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395  as_fn_set_status $ac_retval
2396
2397} # ac_fn_c_compute_int
2398
2399# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2400# ---------------------------------------------
2401# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2402# accordingly.
2403ac_fn_c_check_decl ()
2404{
2405  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406  as_decl_name=`echo $2|sed 's/ *(.*//'`
2407  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2409$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2410if eval \${$3+:} false; then :
2411  $as_echo_n "(cached) " >&6
2412else
2413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h.  */
2415$4
2416int
2417main ()
2418{
2419#ifndef $as_decl_name
2420#ifdef __cplusplus
2421  (void) $as_decl_use;
2422#else
2423  (void) $as_decl_name;
2424#endif
2425#endif
2426
2427  ;
2428  return 0;
2429}
2430_ACEOF
2431if ac_fn_c_try_compile "$LINENO"; then :
2432  eval "$3=yes"
2433else
2434  eval "$3=no"
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437fi
2438eval ac_res=\$$3
2439	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440$as_echo "$ac_res" >&6; }
2441  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442
2443} # ac_fn_c_check_decl
2444
2445# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2446# ----------------------------------------------------
2447# Tries to find if the field MEMBER exists in type AGGR, after including
2448# INCLUDES, setting cache variable VAR accordingly.
2449ac_fn_c_check_member ()
2450{
2451  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2453$as_echo_n "checking for $2.$3... " >&6; }
2454if eval \${$4+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458/* end confdefs.h.  */
2459$5
2460int
2461main ()
2462{
2463static $2 ac_aggr;
2464if (ac_aggr.$3)
2465return 0;
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471  eval "$4=yes"
2472else
2473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h.  */
2475$5
2476int
2477main ()
2478{
2479static $2 ac_aggr;
2480if (sizeof ac_aggr.$3)
2481return 0;
2482  ;
2483  return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487  eval "$4=yes"
2488else
2489  eval "$4=no"
2490fi
2491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492fi
2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495eval ac_res=\$$4
2496	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497$as_echo "$ac_res" >&6; }
2498  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499
2500} # ac_fn_c_check_member
2501cat >config.log <<_ACEOF
2502This file contains any messages produced by compilers while
2503running configure, to aid debugging if configure makes a mistake.
2504
2505It was created by unbound $as_me 1.19.3, which was
2506generated by GNU Autoconf 2.69.  Invocation command line was
2507
2508  $ $0 $@
2509
2510_ACEOF
2511exec 5>>config.log
2512{
2513cat <<_ASUNAME
2514## --------- ##
2515## Platform. ##
2516## --------- ##
2517
2518hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2519uname -m = `(uname -m) 2>/dev/null || echo unknown`
2520uname -r = `(uname -r) 2>/dev/null || echo unknown`
2521uname -s = `(uname -s) 2>/dev/null || echo unknown`
2522uname -v = `(uname -v) 2>/dev/null || echo unknown`
2523
2524/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2525/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2526
2527/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2528/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2529/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2530/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2531/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2532/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2533/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2534
2535_ASUNAME
2536
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    $as_echo "PATH: $as_dir"
2543  done
2544IFS=$as_save_IFS
2545
2546} >&5
2547
2548cat >&5 <<_ACEOF
2549
2550
2551## ----------- ##
2552## Core tests. ##
2553## ----------- ##
2554
2555_ACEOF
2556
2557
2558# Keep a trace of the command line.
2559# Strip out --no-create and --no-recursion so they do not pile up.
2560# Strip out --silent because we don't want to record it for future runs.
2561# Also quote any args containing shell meta-characters.
2562# Make two passes to allow for proper duplicate-argument suppression.
2563ac_configure_args=
2564ac_configure_args0=
2565ac_configure_args1=
2566ac_must_keep_next=false
2567for ac_pass in 1 2
2568do
2569  for ac_arg
2570  do
2571    case $ac_arg in
2572    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2573    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2574    | -silent | --silent | --silen | --sile | --sil)
2575      continue ;;
2576    *\'*)
2577      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2578    esac
2579    case $ac_pass in
2580    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2581    2)
2582      as_fn_append ac_configure_args1 " '$ac_arg'"
2583      if test $ac_must_keep_next = true; then
2584	ac_must_keep_next=false # Got value, back to normal.
2585      else
2586	case $ac_arg in
2587	  *=* | --config-cache | -C | -disable-* | --disable-* \
2588	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2589	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2590	  | -with-* | --with-* | -without-* | --without-* | --x)
2591	    case "$ac_configure_args0 " in
2592	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2593	    esac
2594	    ;;
2595	  -* ) ac_must_keep_next=true ;;
2596	esac
2597      fi
2598      as_fn_append ac_configure_args " '$ac_arg'"
2599      ;;
2600    esac
2601  done
2602done
2603{ ac_configure_args0=; unset ac_configure_args0;}
2604{ ac_configure_args1=; unset ac_configure_args1;}
2605
2606# When interrupted or exit'd, cleanup temporary files, and complete
2607# config.log.  We remove comments because anyway the quotes in there
2608# would cause problems or look ugly.
2609# WARNING: Use '\'' to represent an apostrophe within the trap.
2610# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2611trap 'exit_status=$?
2612  # Save into config.log some information that might help in debugging.
2613  {
2614    echo
2615
2616    $as_echo "## ---------------- ##
2617## Cache variables. ##
2618## ---------------- ##"
2619    echo
2620    # The following way of writing the cache mishandles newlines in values,
2621(
2622  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2623    eval ac_val=\$$ac_var
2624    case $ac_val in #(
2625    *${as_nl}*)
2626      case $ac_var in #(
2627      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2628$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2629      esac
2630      case $ac_var in #(
2631      _ | IFS | as_nl) ;; #(
2632      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2633      *) { eval $ac_var=; unset $ac_var;} ;;
2634      esac ;;
2635    esac
2636  done
2637  (set) 2>&1 |
2638    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2639    *${as_nl}ac_space=\ *)
2640      sed -n \
2641	"s/'\''/'\''\\\\'\'''\''/g;
2642	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2643      ;; #(
2644    *)
2645      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2646      ;;
2647    esac |
2648    sort
2649)
2650    echo
2651
2652    $as_echo "## ----------------- ##
2653## Output variables. ##
2654## ----------------- ##"
2655    echo
2656    for ac_var in $ac_subst_vars
2657    do
2658      eval ac_val=\$$ac_var
2659      case $ac_val in
2660      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2661      esac
2662      $as_echo "$ac_var='\''$ac_val'\''"
2663    done | sort
2664    echo
2665
2666    if test -n "$ac_subst_files"; then
2667      $as_echo "## ------------------- ##
2668## File substitutions. ##
2669## ------------------- ##"
2670      echo
2671      for ac_var in $ac_subst_files
2672      do
2673	eval ac_val=\$$ac_var
2674	case $ac_val in
2675	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2676	esac
2677	$as_echo "$ac_var='\''$ac_val'\''"
2678      done | sort
2679      echo
2680    fi
2681
2682    if test -s confdefs.h; then
2683      $as_echo "## ----------- ##
2684## confdefs.h. ##
2685## ----------- ##"
2686      echo
2687      cat confdefs.h
2688      echo
2689    fi
2690    test "$ac_signal" != 0 &&
2691      $as_echo "$as_me: caught signal $ac_signal"
2692    $as_echo "$as_me: exit $exit_status"
2693  } >&5
2694  rm -f core *.core core.conftest.* &&
2695    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2696    exit $exit_status
2697' 0
2698for ac_signal in 1 2 13 15; do
2699  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2700done
2701ac_signal=0
2702
2703# confdefs.h avoids OS command line length limits that DEFS can exceed.
2704rm -f -r conftest* confdefs.h
2705
2706$as_echo "/* confdefs.h */" > confdefs.h
2707
2708# Predefined preprocessor variables.
2709
2710cat >>confdefs.h <<_ACEOF
2711#define PACKAGE_NAME "$PACKAGE_NAME"
2712_ACEOF
2713
2714cat >>confdefs.h <<_ACEOF
2715#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2716_ACEOF
2717
2718cat >>confdefs.h <<_ACEOF
2719#define PACKAGE_VERSION "$PACKAGE_VERSION"
2720_ACEOF
2721
2722cat >>confdefs.h <<_ACEOF
2723#define PACKAGE_STRING "$PACKAGE_STRING"
2724_ACEOF
2725
2726cat >>confdefs.h <<_ACEOF
2727#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2728_ACEOF
2729
2730cat >>confdefs.h <<_ACEOF
2731#define PACKAGE_URL "$PACKAGE_URL"
2732_ACEOF
2733
2734
2735# Let the site file select an alternate cache file if it wants to.
2736# Prefer an explicitly selected file to automatically selected ones.
2737ac_site_file1=NONE
2738ac_site_file2=NONE
2739if test -n "$CONFIG_SITE"; then
2740  # We do not want a PATH search for config.site.
2741  case $CONFIG_SITE in #((
2742    -*)  ac_site_file1=./$CONFIG_SITE;;
2743    */*) ac_site_file1=$CONFIG_SITE;;
2744    *)   ac_site_file1=./$CONFIG_SITE;;
2745  esac
2746elif test "x$prefix" != xNONE; then
2747  ac_site_file1=$prefix/share/config.site
2748  ac_site_file2=$prefix/etc/config.site
2749else
2750  ac_site_file1=$ac_default_prefix/share/config.site
2751  ac_site_file2=$ac_default_prefix/etc/config.site
2752fi
2753for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2754do
2755  test "x$ac_site_file" = xNONE && continue
2756  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2757    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2758$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2759    sed 's/^/| /' "$ac_site_file" >&5
2760    . "$ac_site_file" \
2761      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763as_fn_error $? "failed to load site script $ac_site_file
2764See \`config.log' for more details" "$LINENO" 5; }
2765  fi
2766done
2767
2768if test -r "$cache_file"; then
2769  # Some versions of bash will fail to source /dev/null (special files
2770  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2771  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2772    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2773$as_echo "$as_me: loading cache $cache_file" >&6;}
2774    case $cache_file in
2775      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2776      *)                      . "./$cache_file";;
2777    esac
2778  fi
2779else
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2781$as_echo "$as_me: creating cache $cache_file" >&6;}
2782  >$cache_file
2783fi
2784
2785# Check that the precious variables saved in the cache have kept the same
2786# value.
2787ac_cache_corrupted=false
2788for ac_var in $ac_precious_vars; do
2789  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2790  eval ac_new_set=\$ac_env_${ac_var}_set
2791  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2792  eval ac_new_val=\$ac_env_${ac_var}_value
2793  case $ac_old_set,$ac_new_set in
2794    set,)
2795      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2796$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2797      ac_cache_corrupted=: ;;
2798    ,set)
2799      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2800$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2801      ac_cache_corrupted=: ;;
2802    ,);;
2803    *)
2804      if test "x$ac_old_val" != "x$ac_new_val"; then
2805	# differences in whitespace do not lead to failure.
2806	ac_old_val_w=`echo x $ac_old_val`
2807	ac_new_val_w=`echo x $ac_new_val`
2808	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2809	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2810$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2811	  ac_cache_corrupted=:
2812	else
2813	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2814$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2815	  eval $ac_var=\$ac_old_val
2816	fi
2817	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2818$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2819	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2820$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2821      fi;;
2822  esac
2823  # Pass precious variables to config.status.
2824  if test "$ac_new_set" = set; then
2825    case $ac_new_val in
2826    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2827    *) ac_arg=$ac_var=$ac_new_val ;;
2828    esac
2829    case " $ac_configure_args " in
2830      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2831      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2832    esac
2833  fi
2834done
2835if $ac_cache_corrupted; then
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2839$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2840  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2841fi
2842## -------------------- ##
2843## Main body of script. ##
2844## -------------------- ##
2845
2846ac_ext=c
2847ac_cpp='$CPP $CPPFLAGS'
2848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851
2852
2853UNBOUND_VERSION_MAJOR=1
2854
2855UNBOUND_VERSION_MINOR=19
2856
2857UNBOUND_VERSION_MICRO=3
2858
2859
2860LIBUNBOUND_CURRENT=9
2861LIBUNBOUND_REVISION=26
2862LIBUNBOUND_AGE=1
2863# 1.0.0 had 0:12:0
2864# 1.0.1 had 0:13:0
2865# 1.0.2 had 0:14:0
2866# 1.1.0 had 0:15:0
2867# 1.1.1 had 0:16:0
2868# 1.2.0 had 0:17:0
2869# 1.2.1 had 0:18:0
2870# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2871# 1.3.1 had 1:1:0
2872# 1.3.2 had 1:2:0
2873# 1.3.3 had 1:3:0
2874# 1.3.4 had 1:4:0
2875# 1.4.0-snapshots had 1:5:0
2876# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2877# 1.4.1 had 2:1:0
2878# 1.4.2 had 2:2:0
2879# 1.4.3 had 2:3:0
2880# 1.4.4 had 2:4:0
2881# 1.4.5 had 2:5:0
2882# 1.4.6 had 2:6:0
2883# 1.4.7 had 2:7:0
2884# 1.4.8 had 2:8:0
2885# 1.4.9 had 2:9:0
2886# 1.4.10 had 2:10:0
2887# 1.4.11 had 2:11:0
2888# 1.4.12 had 2:12:0
2889# 1.4.13 had 2:13:0
2890# and 1.4.13p1 and 1.4.13.p2
2891# 1.4.14 had 2:14:0
2892# 1.4.15 had 3:0:1 # adds ub_version()
2893# 1.4.16 had 3:1:1
2894# 1.4.17 had 3:2:1
2895# 1.4.18 had 3:3:1
2896# 1.4.19 had 3:4:1
2897# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2898# 1.4.21 had 4:1:2
2899# 1.4.22 had 4:1:2
2900# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2901# 1.5.1 had 5:3:3
2902# 1.5.2 had 5:5:3
2903# 1.5.3 had 5:6:3
2904# 1.5.4 had 5:7:3
2905# 1.5.5 had 5:8:3
2906# 1.5.6 had 5:9:3
2907# 1.5.7 had 5:10:3
2908# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2909# 1.5.9 had 6:1:4
2910# 1.5.10 had 6:2:4
2911# 1.6.0 had 6:3:4
2912# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2913# 1.6.2 had 7:1:5
2914# 1.6.3 had 7:2:5
2915# 1.6.4 had 7:3:5
2916# 1.6.5 had 7:4:5
2917# 1.6.6 had 7:5:5
2918# 1.6.7 had 7:6:5
2919# 1.6.8 had 7:7:5
2920# 1.7.0 had 7:8:5
2921# 1.7.1 had 7:9:5
2922# 1.7.2 had 7:10:5
2923# 1.7.3 had 7:11:5
2924# 1.8.0 had 8:0:0 # changes the event callback function signature
2925# 1.8.1 had 8:1:0
2926# 1.8.2 had 8:2:0
2927# 1.8.3 had 8:3:0
2928# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2929# 1.9.1 had 9:1:1
2930# 1.9.2 had 9:2:1
2931# 1.9.3 had 9:3:1
2932# 1.9.4 had 9:4:1
2933# 1.9.5 had 9:5:1
2934# 1.9.6 had 9:6:1
2935# 1.10.0 had 9:7:1
2936# 1.10.1 had 9:8:1
2937# 1.11.0 had 9:9:1
2938# 1.12.0 had 9:10:1
2939# 1.13.0 had 9:11:1
2940# 1.13.1 had 9:12:1
2941# 1.13.2 had 9:13:1
2942# 1.14.0 had 9:14:1
2943# 1.15.0 had 9:15:1
2944# 1.16.0 had 9:16:1
2945# 1.16.1 had 9:17:1
2946# 1.16.2 had 9:18:1
2947# 1.16.3 had 9:19:1
2948# 1.17.0 had 9:20:1
2949# 1.17.1 had 9:21:1
2950# 1.18.0 had 9:22:1
2951# 1.19.0 had 9:23:1
2952# 1.19.1 had 9:24:1
2953# 1.19.2 had 9:25:1
2954# 1.19.3 had 9:26:1
2955
2956#   Current  -- the number of the binary API that we're implementing
2957#   Revision -- which iteration of the implementation of the binary
2958#               API are we supplying?
2959#   Age      -- How many previous binary API versions do we also
2960#               support?
2961#
2962# If we release a new version that does not change the binary API,
2963# increment Revision.
2964#
2965# If we release a new version that changes the binary API, but does
2966# not break programs compiled against the old binary API, increment
2967# Current and Age.  Set Revision to 0, since this is the first
2968# implementation of the new API.
2969#
2970# Otherwise, we're changing the binary API and breaking backward
2971# compatibility with old binaries.  Increment Current.  Set Age to 0,
2972# since we're backward compatible with no previous APIs.  Set Revision
2973# to 0 too.
2974
2975
2976
2977
2978
2979cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2980
2981cat >>confdefs.h <<_ACEOF
2982#define CONFCMDLINE "$cmdln"
2983_ACEOF
2984
2985
2986CFLAGS="$CFLAGS"
2987ac_ext=c
2988ac_cpp='$CPP $CPPFLAGS'
2989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992if test -n "$ac_tool_prefix"; then
2993  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2994set dummy ${ac_tool_prefix}gcc; ac_word=$2
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if ${ac_cv_prog_CC+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$CC"; then
3001  ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006  IFS=$as_save_IFS
3007  test -z "$as_dir" && as_dir=.
3008    for ac_exec_ext in '' $ac_executable_extensions; do
3009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018fi
3019fi
3020CC=$ac_cv_prog_CC
3021if test -n "$CC"; then
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023$as_echo "$CC" >&6; }
3024else
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027fi
3028
3029
3030fi
3031if test -z "$ac_cv_prog_CC"; then
3032  ac_ct_CC=$CC
3033  # Extract the first word of "gcc", so it can be a program name with args.
3034set dummy gcc; ac_word=$2
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
3037if ${ac_cv_prog_ac_ct_CC+:} false; then :
3038  $as_echo_n "(cached) " >&6
3039else
3040  if test -n "$ac_ct_CC"; then
3041  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050    ac_cv_prog_ac_ct_CC="gcc"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055  done
3056IFS=$as_save_IFS
3057
3058fi
3059fi
3060ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061if test -n "$ac_ct_CC"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063$as_echo "$ac_ct_CC" >&6; }
3064else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
3067fi
3068
3069  if test "x$ac_ct_CC" = x; then
3070    CC=""
3071  else
3072    case $cross_compiling:$ac_tool_warned in
3073yes:)
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076ac_tool_warned=yes ;;
3077esac
3078    CC=$ac_ct_CC
3079  fi
3080else
3081  CC="$ac_cv_prog_CC"
3082fi
3083
3084if test -z "$CC"; then
3085          if test -n "$ac_tool_prefix"; then
3086    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3087set dummy ${ac_tool_prefix}cc; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if ${ac_cv_prog_CC+:} false; then :
3091  $as_echo_n "(cached) " >&6
3092else
3093  if test -n "$CC"; then
3094  ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103    ac_cv_prog_CC="${ac_tool_prefix}cc"
3104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123  fi
3124fi
3125if test -z "$CC"; then
3126  # Extract the first word of "cc", so it can be a program name with args.
3127set dummy cc; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
3130if ${ac_cv_prog_CC+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  if test -n "$CC"; then
3134  ac_cv_prog_CC="$CC" # Let the user override the test.
3135else
3136  ac_prog_rejected=no
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3145       ac_prog_rejected=yes
3146       continue
3147     fi
3148    ac_cv_prog_CC="cc"
3149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156if test $ac_prog_rejected = yes; then
3157  # We found a bogon in the path, so make sure we never use it.
3158  set dummy $ac_cv_prog_CC
3159  shift
3160  if test $# != 0; then
3161    # We chose a different compiler from the bogus one.
3162    # However, it has the same basename, so the bogon will be chosen
3163    # first if we set CC to just the basename; use the full file name.
3164    shift
3165    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166  fi
3167fi
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173$as_echo "$CC" >&6; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180fi
3181if test -z "$CC"; then
3182  if test -n "$ac_tool_prefix"; then
3183  for ac_prog in cl.exe
3184  do
3185    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188$as_echo_n "checking for $ac_word... " >&6; }
3189if ${ac_cv_prog_CC+:} false; then :
3190  $as_echo_n "(cached) " >&6
3191else
3192  if test -n "$CC"; then
3193  ac_cv_prog_CC="$CC" # Let the user override the test.
3194else
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206done
3207  done
3208IFS=$as_save_IFS
3209
3210fi
3211fi
3212CC=$ac_cv_prog_CC
3213if test -n "$CC"; then
3214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215$as_echo "$CC" >&6; }
3216else
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218$as_echo "no" >&6; }
3219fi
3220
3221
3222    test -n "$CC" && break
3223  done
3224fi
3225if test -z "$CC"; then
3226  ac_ct_CC=$CC
3227  for ac_prog in cl.exe
3228do
3229  # Extract the first word of "$ac_prog", so it can be a program name with args.
3230set dummy $ac_prog; ac_word=$2
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232$as_echo_n "checking for $ac_word... " >&6; }
3233if ${ac_cv_prog_ac_ct_CC+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  if test -n "$ac_ct_CC"; then
3237  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_ac_ct_CC="$ac_prog"
3247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251  done
3252IFS=$as_save_IFS
3253
3254fi
3255fi
3256ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257if test -n "$ac_ct_CC"; then
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259$as_echo "$ac_ct_CC" >&6; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263fi
3264
3265
3266  test -n "$ac_ct_CC" && break
3267done
3268
3269  if test "x$ac_ct_CC" = x; then
3270    CC=""
3271  else
3272    case $cross_compiling:$ac_tool_warned in
3273yes:)
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276ac_tool_warned=yes ;;
3277esac
3278    CC=$ac_ct_CC
3279  fi
3280fi
3281
3282fi
3283
3284
3285test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error $? "no acceptable C compiler found in \$PATH
3288See \`config.log' for more details" "$LINENO" 5; }
3289
3290# Provide some information about the compiler.
3291$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3292set X $ac_compile
3293ac_compiler=$2
3294for ac_option in --version -v -V -qversion; do
3295  { { ac_try="$ac_compiler $ac_option >&5"
3296case "(($ac_try" in
3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298  *) ac_try_echo=$ac_try;;
3299esac
3300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301$as_echo "$ac_try_echo"; } >&5
3302  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3303  ac_status=$?
3304  if test -s conftest.err; then
3305    sed '10a\
3306... rest of stderr output deleted ...
3307         10q' conftest.err >conftest.er1
3308    cat conftest.er1 >&5
3309  fi
3310  rm -f conftest.er1 conftest.err
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }
3313done
3314
3315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326ac_clean_files_save=$ac_clean_files
3327ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3328# Try to create an executable without -o first, disregard a.out.
3329# It will help us diagnose broken compilers, and finding out an intuition
3330# of exeext.
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3332$as_echo_n "checking whether the C compiler works... " >&6; }
3333ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334
3335# The possible output files:
3336ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337
3338ac_rmfiles=
3339for ac_file in $ac_files
3340do
3341  case $ac_file in
3342    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3344  esac
3345done
3346rm -f $ac_rmfiles
3347
3348if { { ac_try="$ac_link_default"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354$as_echo "$ac_try_echo"; } >&5
3355  (eval "$ac_link_default") 2>&5
3356  ac_status=$?
3357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358  test $ac_status = 0; }; then :
3359  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3360# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3361# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3362# so that the user can short-circuit this test for compilers unknown to
3363# Autoconf.
3364for ac_file in $ac_files ''
3365do
3366  test -f "$ac_file" || continue
3367  case $ac_file in
3368    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369	;;
3370    [ab].out )
3371	# We found the default executable, but exeext='' is most
3372	# certainly right.
3373	break;;
3374    *.* )
3375	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3376	then :; else
3377	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378	fi
3379	# We set ac_cv_exeext here because the later test for it is not
3380	# safe: cross compilers may not add the suffix if given an `-o'
3381	# argument, so we may need to know it at that point already.
3382	# Even if this section looks crufty: it has the advantage of
3383	# actually working.
3384	break;;
3385    * )
3386	break;;
3387  esac
3388done
3389test "$ac_cv_exeext" = no && ac_cv_exeext=
3390
3391else
3392  ac_file=''
3393fi
3394if test -z "$ac_file"; then :
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397$as_echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error 77 "C compiler cannot create executables
3403See \`config.log' for more details" "$LINENO" 5; }
3404else
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3406$as_echo "yes" >&6; }
3407fi
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3409$as_echo_n "checking for C compiler default output file name... " >&6; }
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3411$as_echo "$ac_file" >&6; }
3412ac_exeext=$ac_cv_exeext
3413
3414rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3415ac_clean_files=$ac_clean_files_save
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3417$as_echo_n "checking for suffix of executables... " >&6; }
3418if { { ac_try="$ac_link"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_link") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }; then :
3429  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3430# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3431# work properly (i.e., refer to `conftest.exe'), while it won't with
3432# `rm'.
3433for ac_file in conftest.exe conftest conftest.*; do
3434  test -f "$ac_file" || continue
3435  case $ac_file in
3436    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438	  break;;
3439    * ) break;;
3440  esac
3441done
3442else
3443  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3446See \`config.log' for more details" "$LINENO" 5; }
3447fi
3448rm -f conftest conftest$ac_cv_exeext
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3450$as_echo "$ac_cv_exeext" >&6; }
3451
3452rm -f conftest.$ac_ext
3453EXEEXT=$ac_cv_exeext
3454ac_exeext=$EXEEXT
3455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457#include <stdio.h>
3458int
3459main ()
3460{
3461FILE *f = fopen ("conftest.out", "w");
3462 return ferror (f) || fclose (f) != 0;
3463
3464  ;
3465  return 0;
3466}
3467_ACEOF
3468ac_clean_files="$ac_clean_files conftest.out"
3469# Check that the compiler produces executables we can run.  If not, either
3470# the compiler is broken, or we cross compile.
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3472$as_echo_n "checking whether we are cross compiling... " >&6; }
3473if test "$cross_compiling" != yes; then
3474  { { ac_try="$ac_link"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_link") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }
3485  if { ac_try='./conftest$ac_cv_exeext'
3486  { { case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492  (eval "$ac_try") 2>&5
3493  ac_status=$?
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }; }; then
3496    cross_compiling=no
3497  else
3498    if test "$cross_compiling" = maybe; then
3499	cross_compiling=yes
3500    else
3501	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503as_fn_error $? "cannot run C compiled programs.
3504If you meant to cross compile, use \`--host'.
3505See \`config.log' for more details" "$LINENO" 5; }
3506    fi
3507  fi
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510$as_echo "$cross_compiling" >&6; }
3511
3512rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3513ac_clean_files=$ac_clean_files_save
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515$as_echo_n "checking for suffix of object files... " >&6; }
3516if ${ac_cv_objext+:} false; then :
3517  $as_echo_n "(cached) " >&6
3518else
3519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h.  */
3521
3522int
3523main ()
3524{
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.o conftest.obj
3531if { { ac_try="$ac_compile"
3532case "(($ac_try" in
3533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534  *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538  (eval "$ac_compile") 2>&5
3539  ac_status=$?
3540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541  test $ac_status = 0; }; then :
3542  for ac_file in conftest.o conftest.obj conftest.*; do
3543  test -f "$ac_file" || continue;
3544  case $ac_file in
3545    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547       break;;
3548  esac
3549done
3550else
3551  $as_echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error $? "cannot compute suffix of object files: cannot compile
3557See \`config.log' for more details" "$LINENO" 5; }
3558fi
3559rm -f conftest.$ac_cv_objext conftest.$ac_ext
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562$as_echo "$ac_cv_objext" >&6; }
3563OBJEXT=$ac_cv_objext
3564ac_objext=$OBJEXT
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567if ${ac_cv_c_compiler_gnu+:} false; then :
3568  $as_echo_n "(cached) " >&6
3569else
3570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576#ifndef __GNUC__
3577       choke me
3578#endif
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585  ac_compiler_gnu=yes
3586else
3587  ac_compiler_gnu=no
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595if test $ac_compiler_gnu = yes; then
3596  GCC=yes
3597else
3598  GCC=
3599fi
3600ac_test_CFLAGS=${CFLAGS+set}
3601ac_save_CFLAGS=$CFLAGS
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603$as_echo_n "checking whether $CC accepts -g... " >&6; }
3604if ${ac_cv_prog_cc_g+:} false; then :
3605  $as_echo_n "(cached) " >&6
3606else
3607  ac_save_c_werror_flag=$ac_c_werror_flag
3608   ac_c_werror_flag=yes
3609   ac_cv_prog_cc_g=no
3610   CFLAGS="-g"
3611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h.  */
3613
3614int
3615main ()
3616{
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622if ac_fn_c_try_compile "$LINENO"; then :
3623  ac_cv_prog_cc_g=yes
3624else
3625  CFLAGS=""
3626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h.  */
3628
3629int
3630main ()
3631{
3632
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637if ac_fn_c_try_compile "$LINENO"; then :
3638
3639else
3640  ac_c_werror_flag=$ac_save_c_werror_flag
3641	 CFLAGS="-g"
3642	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644
3645int
3646main ()
3647{
3648
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653if ac_fn_c_try_compile "$LINENO"; then :
3654  ac_cv_prog_cc_g=yes
3655fi
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661   ac_c_werror_flag=$ac_save_c_werror_flag
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664$as_echo "$ac_cv_prog_cc_g" >&6; }
3665if test "$ac_test_CFLAGS" = set; then
3666  CFLAGS=$ac_save_CFLAGS
3667elif test $ac_cv_prog_cc_g = yes; then
3668  if test "$GCC" = yes; then
3669    CFLAGS="-g -O2"
3670  else
3671    CFLAGS="-g"
3672  fi
3673else
3674  if test "$GCC" = yes; then
3675    CFLAGS="-O2"
3676  else
3677    CFLAGS=
3678  fi
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682if ${ac_cv_prog_cc_c89+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  ac_cv_prog_cc_c89=no
3686ac_save_CC=$CC
3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689#include <stdarg.h>
3690#include <stdio.h>
3691struct stat;
3692/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3693struct buf { int x; };
3694FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695static char *e (p, i)
3696     char **p;
3697     int i;
3698{
3699  return p[i];
3700}
3701static char *f (char * (*g) (char **, int), char **p, ...)
3702{
3703  char *s;
3704  va_list v;
3705  va_start (v,p);
3706  s = g (p, va_arg (v,int));
3707  va_end (v);
3708  return s;
3709}
3710
3711/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3712   function prototypes and stuff, but not '\xHH' hex character constants.
3713   These don't provoke an error unfortunately, instead are silently treated
3714   as 'x'.  The following induces an error, until -std is added to get
3715   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3716   array size at least.  It's necessary to write '\x00'==0 to get something
3717   that's true only with -std.  */
3718int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719
3720/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721   inside strings and character constants.  */
3722#define FOO(x) 'x'
3723int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724
3725int test (int i, double x);
3726struct s1 {int (*f) (int a);};
3727struct s2 {int (*f) (double a);};
3728int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729int argc;
3730char **argv;
3731int
3732main ()
3733{
3734return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741do
3742  CC="$ac_save_CC $ac_arg"
3743  if ac_fn_c_try_compile "$LINENO"; then :
3744  ac_cv_prog_cc_c89=$ac_arg
3745fi
3746rm -f core conftest.err conftest.$ac_objext
3747  test "x$ac_cv_prog_cc_c89" != "xno" && break
3748done
3749rm -f conftest.$ac_ext
3750CC=$ac_save_CC
3751
3752fi
3753# AC_CACHE_VAL
3754case "x$ac_cv_prog_cc_c89" in
3755  x)
3756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757$as_echo "none needed" >&6; } ;;
3758  xno)
3759    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760$as_echo "unsupported" >&6; } ;;
3761  *)
3762    CC="$CC $ac_cv_prog_cc_c89"
3763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3764$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765esac
3766if test "x$ac_cv_prog_cc_c89" != xno; then :
3767
3768fi
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3783$as_echo_n "checking how to run the C preprocessor... " >&6; }
3784# On Suns, sometimes $CPP names a directory.
3785if test -n "$CPP" && test -d "$CPP"; then
3786  CPP=
3787fi
3788if test -z "$CPP"; then
3789  if ${ac_cv_prog_CPP+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792      # Double quotes because CPP needs to be expanded
3793    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3794    do
3795      ac_preproc_ok=false
3796for ac_c_preproc_warn_flag in '' yes
3797do
3798  # Use a header file that comes with gcc, so configuring glibc
3799  # with a fresh cross-compiler works.
3800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801  # <limits.h> exists even on freestanding compilers.
3802  # On the NeXT, cc -E runs the code through the compiler's parser,
3803  # not just through cpp. "Syntax error" is here to catch this case.
3804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806#ifdef __STDC__
3807# include <limits.h>
3808#else
3809# include <assert.h>
3810#endif
3811		     Syntax error
3812_ACEOF
3813if ac_fn_c_try_cpp "$LINENO"; then :
3814
3815else
3816  # Broken: fails on valid input.
3817continue
3818fi
3819rm -f conftest.err conftest.i conftest.$ac_ext
3820
3821  # OK, works on sane cases.  Now check whether nonexistent headers
3822  # can be detected and how.
3823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825#include <ac_nonexistent.h>
3826_ACEOF
3827if ac_fn_c_try_cpp "$LINENO"; then :
3828  # Broken: success on invalid input.
3829continue
3830else
3831  # Passes both tests.
3832ac_preproc_ok=:
3833break
3834fi
3835rm -f conftest.err conftest.i conftest.$ac_ext
3836
3837done
3838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839rm -f conftest.i conftest.err conftest.$ac_ext
3840if $ac_preproc_ok; then :
3841  break
3842fi
3843
3844    done
3845    ac_cv_prog_CPP=$CPP
3846
3847fi
3848  CPP=$ac_cv_prog_CPP
3849else
3850  ac_cv_prog_CPP=$CPP
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3853$as_echo "$CPP" >&6; }
3854ac_preproc_ok=false
3855for ac_c_preproc_warn_flag in '' yes
3856do
3857  # Use a header file that comes with gcc, so configuring glibc
3858  # with a fresh cross-compiler works.
3859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860  # <limits.h> exists even on freestanding compilers.
3861  # On the NeXT, cc -E runs the code through the compiler's parser,
3862  # not just through cpp. "Syntax error" is here to catch this case.
3863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#ifdef __STDC__
3866# include <limits.h>
3867#else
3868# include <assert.h>
3869#endif
3870		     Syntax error
3871_ACEOF
3872if ac_fn_c_try_cpp "$LINENO"; then :
3873
3874else
3875  # Broken: fails on valid input.
3876continue
3877fi
3878rm -f conftest.err conftest.i conftest.$ac_ext
3879
3880  # OK, works on sane cases.  Now check whether nonexistent headers
3881  # can be detected and how.
3882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h.  */
3884#include <ac_nonexistent.h>
3885_ACEOF
3886if ac_fn_c_try_cpp "$LINENO"; then :
3887  # Broken: success on invalid input.
3888continue
3889else
3890  # Passes both tests.
3891ac_preproc_ok=:
3892break
3893fi
3894rm -f conftest.err conftest.i conftest.$ac_ext
3895
3896done
3897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3898rm -f conftest.i conftest.err conftest.$ac_ext
3899if $ac_preproc_ok; then :
3900
3901else
3902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3905See \`config.log' for more details" "$LINENO" 5; }
3906fi
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3917if ${ac_cv_path_GREP+:} false; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  if test -z "$GREP"; then
3921  ac_path_GREP_found=false
3922  # Loop through the user's path and test for each of PROGNAME-LIST
3923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928    for ac_prog in grep ggrep; do
3929    for ac_exec_ext in '' $ac_executable_extensions; do
3930      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931      as_fn_executable_p "$ac_path_GREP" || continue
3932# Check for GNU ac_path_GREP and select it if it is found.
3933  # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938  ac_count=0
3939  $as_echo_n 0123456789 >"conftest.in"
3940  while :
3941  do
3942    cat "conftest.in" "conftest.in" >"conftest.tmp"
3943    mv "conftest.tmp" "conftest.in"
3944    cp "conftest.in" "conftest.nl"
3945    $as_echo 'GREP' >> "conftest.nl"
3946    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948    as_fn_arith $ac_count + 1 && ac_count=$as_val
3949    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950      # Best one so far, save it but keep looking for a better one
3951      ac_cv_path_GREP="$ac_path_GREP"
3952      ac_path_GREP_max=$ac_count
3953    fi
3954    # 10*(2^10) chars as input seems more than enough
3955    test $ac_count -gt 10 && break
3956  done
3957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
3960      $ac_path_GREP_found && break 3
3961    done
3962  done
3963  done
3964IFS=$as_save_IFS
3965  if test -z "$ac_cv_path_GREP"; then
3966    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3967  fi
3968else
3969  ac_cv_path_GREP=$GREP
3970fi
3971
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3974$as_echo "$ac_cv_path_GREP" >&6; }
3975 GREP="$ac_cv_path_GREP"
3976
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979$as_echo_n "checking for egrep... " >&6; }
3980if ${ac_cv_path_EGREP+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3984   then ac_cv_path_EGREP="$GREP -E"
3985   else
3986     if test -z "$EGREP"; then
3987  ac_path_EGREP_found=false
3988  # Loop through the user's path and test for each of PROGNAME-LIST
3989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994    for ac_prog in egrep; do
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3997      as_fn_executable_p "$ac_path_EGREP" || continue
3998# Check for GNU ac_path_EGREP and select it if it is found.
3999  # Check for GNU $ac_path_EGREP
4000case `"$ac_path_EGREP" --version 2>&1` in
4001*GNU*)
4002  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4003*)
4004  ac_count=0
4005  $as_echo_n 0123456789 >"conftest.in"
4006  while :
4007  do
4008    cat "conftest.in" "conftest.in" >"conftest.tmp"
4009    mv "conftest.tmp" "conftest.in"
4010    cp "conftest.in" "conftest.nl"
4011    $as_echo 'EGREP' >> "conftest.nl"
4012    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014    as_fn_arith $ac_count + 1 && ac_count=$as_val
4015    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4016      # Best one so far, save it but keep looking for a better one
4017      ac_cv_path_EGREP="$ac_path_EGREP"
4018      ac_path_EGREP_max=$ac_count
4019    fi
4020    # 10*(2^10) chars as input seems more than enough
4021    test $ac_count -gt 10 && break
4022  done
4023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024esac
4025
4026      $ac_path_EGREP_found && break 3
4027    done
4028  done
4029  done
4030IFS=$as_save_IFS
4031  if test -z "$ac_cv_path_EGREP"; then
4032    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033  fi
4034else
4035  ac_cv_path_EGREP=$EGREP
4036fi
4037
4038   fi
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4041$as_echo "$ac_cv_path_EGREP" >&6; }
4042 EGREP="$ac_cv_path_EGREP"
4043
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4046$as_echo_n "checking for ANSI C header files... " >&6; }
4047if ${ac_cv_header_stdc+:} false; then :
4048  $as_echo_n "(cached) " >&6
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#include <stdlib.h>
4053#include <stdarg.h>
4054#include <string.h>
4055#include <float.h>
4056
4057int
4058main ()
4059{
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065if ac_fn_c_try_compile "$LINENO"; then :
4066  ac_cv_header_stdc=yes
4067else
4068  ac_cv_header_stdc=no
4069fi
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071
4072if test $ac_cv_header_stdc = yes; then
4073  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <string.h>
4077
4078_ACEOF
4079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080  $EGREP "memchr" >/dev/null 2>&1; then :
4081
4082else
4083  ac_cv_header_stdc=no
4084fi
4085rm -f conftest*
4086
4087fi
4088
4089if test $ac_cv_header_stdc = yes; then
4090  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093#include <stdlib.h>
4094
4095_ACEOF
4096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097  $EGREP "free" >/dev/null 2>&1; then :
4098
4099else
4100  ac_cv_header_stdc=no
4101fi
4102rm -f conftest*
4103
4104fi
4105
4106if test $ac_cv_header_stdc = yes; then
4107  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4108  if test "$cross_compiling" = yes; then :
4109  :
4110else
4111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h.  */
4113#include <ctype.h>
4114#include <stdlib.h>
4115#if ((' ' & 0x0FF) == 0x020)
4116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4118#else
4119# define ISLOWER(c) \
4120		   (('a' <= (c) && (c) <= 'i') \
4121		     || ('j' <= (c) && (c) <= 'r') \
4122		     || ('s' <= (c) && (c) <= 'z'))
4123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4124#endif
4125
4126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127int
4128main ()
4129{
4130  int i;
4131  for (i = 0; i < 256; i++)
4132    if (XOR (islower (i), ISLOWER (i))
4133	|| toupper (i) != TOUPPER (i))
4134      return 2;
4135  return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_run "$LINENO"; then :
4139
4140else
4141  ac_cv_header_stdc=no
4142fi
4143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4144  conftest.$ac_objext conftest.beam conftest.$ac_ext
4145fi
4146
4147fi
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4150$as_echo "$ac_cv_header_stdc" >&6; }
4151if test $ac_cv_header_stdc = yes; then
4152
4153$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4154
4155fi
4156
4157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4159		  inttypes.h stdint.h unistd.h
4160do :
4161  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4163"
4164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4165  cat >>confdefs.h <<_ACEOF
4166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4167_ACEOF
4168
4169fi
4170
4171done
4172
4173
4174
4175  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4176if test "x$ac_cv_header_minix_config_h" = xyes; then :
4177  MINIX=yes
4178else
4179  MINIX=
4180fi
4181
4182
4183  if test "$MINIX" = yes; then
4184
4185$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4186
4187
4188$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4189
4190
4191$as_echo "#define _MINIX 1" >>confdefs.h
4192
4193  fi
4194
4195
4196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4197$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4198if ${ac_cv_safe_to_define___extensions__+:} false; then :
4199  $as_echo_n "(cached) " >&6
4200else
4201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h.  */
4203
4204#         define __EXTENSIONS__ 1
4205          $ac_includes_default
4206int
4207main ()
4208{
4209
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then :
4215  ac_cv_safe_to_define___extensions__=yes
4216else
4217  ac_cv_safe_to_define___extensions__=no
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4222$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4223  test $ac_cv_safe_to_define___extensions__ = yes &&
4224    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4225
4226  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4227
4228  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4229
4230  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4231
4232  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4233
4234
4235if test "$ac_cv_header_minix_config_h" = "yes"; then
4236
4237$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4238
4239fi
4240
4241case "$prefix" in
4242        NONE)
4243		prefix="/usr/local"
4244        ;;
4245esac
4246case "$exec_prefix" in
4247        NONE)
4248		exec_prefix="$prefix"
4249        ;;
4250esac
4251
4252# are we on MinGW?
4253if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4254else
4255	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4256	else on_mingw="no"; fi
4257fi
4258
4259#
4260# Determine configuration file
4261# the eval is to evaluate shell expansion twice
4262UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4263
4264UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4265
4266UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4267
4268if test $on_mingw = "no"; then
4269  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4270else
4271  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4272fi
4273
4274# Check whether --with-conf_file was given.
4275if test "${with_conf_file+set}" = set; then :
4276  withval=$with_conf_file; ub_conf_file="$withval"
4277fi
4278
4279
4280hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4281
4282
4283cat >>confdefs.h <<_ACEOF
4284#define CONFIGFILE "$hdr_config"
4285_ACEOF
4286
4287ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4288$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4289	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4290	 X"$ub_conf_file" : 'X\(//\)$' \| \
4291	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4292$as_echo X"$ub_conf_file" |
4293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4294	    s//\1/
4295	    q
4296	  }
4297	  /^X\(\/\/\)[^/].*/{
4298	    s//\1/
4299	    q
4300	  }
4301	  /^X\(\/\/\)$/{
4302	    s//\1/
4303	    q
4304	  }
4305	  /^X\(\/\).*/{
4306	    s//\1/
4307	    q
4308	  }
4309	  s/.*/./; q'`
4310
4311
4312# Determine run, chroot directory and pidfile locations
4313
4314# Check whether --with-run-dir was given.
4315if test "${with_run_dir+set}" = set; then :
4316  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4317else
4318  if test $on_mingw = no; then
4319    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4320else
4321    UNBOUND_RUN_DIR=""
4322fi
4323
4324fi
4325
4326
4327hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4328
4329
4330cat >>confdefs.h <<_ACEOF
4331#define RUN_DIR "$hdr_run"
4332_ACEOF
4333
4334
4335
4336# Check whether --with-chroot-dir was given.
4337if test "${with_chroot_dir+set}" = set; then :
4338  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4339else
4340  if test $on_mingw = no; then
4341    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4342else
4343    UNBOUND_CHROOT_DIR=""
4344fi
4345
4346fi
4347
4348
4349hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4350
4351
4352cat >>confdefs.h <<_ACEOF
4353#define CHROOT_DIR "$hdr_chroot"
4354_ACEOF
4355
4356
4357
4358# Check whether --with-share-dir was given.
4359if test "${with_share_dir+set}" = set; then :
4360  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4361else
4362  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4363fi
4364
4365
4366
4367cat >>confdefs.h <<_ACEOF
4368#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4369_ACEOF
4370
4371
4372
4373# Check whether --with-pidfile was given.
4374if test "${with_pidfile+set}" = set; then :
4375  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4376else
4377  if test $on_mingw = no; then
4378    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4379else
4380    UNBOUND_PIDFILE=""
4381fi
4382
4383fi
4384
4385
4386hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4387
4388
4389cat >>confdefs.h <<_ACEOF
4390#define PIDFILE "$hdr_pid"
4391_ACEOF
4392
4393
4394
4395# Check whether --with-rootkey-file was given.
4396if test "${with_rootkey_file+set}" = set; then :
4397  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4398else
4399  if test $on_mingw = no; then
4400    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4401else
4402    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4403fi
4404
4405fi
4406
4407
4408hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4409
4410
4411cat >>confdefs.h <<_ACEOF
4412#define ROOT_ANCHOR_FILE "$hdr_rkey"
4413_ACEOF
4414
4415
4416
4417# Check whether --with-rootcert-file was given.
4418if test "${with_rootcert_file+set}" = set; then :
4419  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4420else
4421  if test $on_mingw = no; then
4422    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4423else
4424    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4425fi
4426
4427fi
4428
4429
4430hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4431
4432
4433cat >>confdefs.h <<_ACEOF
4434#define ROOT_CERT_FILE "$hdr_rpem"
4435_ACEOF
4436
4437
4438
4439# Check whether --with-username was given.
4440if test "${with_username+set}" = set; then :
4441  withval=$with_username; UNBOUND_USERNAME="$withval"
4442else
4443  UNBOUND_USERNAME="unbound"
4444fi
4445
4446
4447
4448cat >>confdefs.h <<_ACEOF
4449#define UB_USERNAME "$UNBOUND_USERNAME"
4450_ACEOF
4451
4452
4453
4454$as_echo "#define WINVER 0x0502" >>confdefs.h
4455
4456wnvs=`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/' `
4457
4458
4459cat >>confdefs.h <<_ACEOF
4460#define RSRC_PACKAGE_VERSION $wnvs
4461_ACEOF
4462
4463
4464# Checks for typedefs, structures, and compiler characteristics.
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4466$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4467if ${ac_cv_c_const+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472
4473int
4474main ()
4475{
4476
4477#ifndef __cplusplus
4478  /* Ultrix mips cc rejects this sort of thing.  */
4479  typedef int charset[2];
4480  const charset cs = { 0, 0 };
4481  /* SunOS 4.1.1 cc rejects this.  */
4482  char const *const *pcpcc;
4483  char **ppc;
4484  /* NEC SVR4.0.2 mips cc rejects this.  */
4485  struct point {int x, y;};
4486  static struct point const zero = {0,0};
4487  /* AIX XL C 1.02.0.0 rejects this.
4488     It does not let you subtract one const X* pointer from another in
4489     an arm of an if-expression whose if-part is not a constant
4490     expression */
4491  const char *g = "string";
4492  pcpcc = &g + (g ? g-g : 0);
4493  /* HPUX 7.0 cc rejects these. */
4494  ++pcpcc;
4495  ppc = (char**) pcpcc;
4496  pcpcc = (char const *const *) ppc;
4497  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4498    char tx;
4499    char *t = &tx;
4500    char const *s = 0 ? (char *) 0 : (char const *) 0;
4501
4502    *t++ = 0;
4503    if (s) return 0;
4504  }
4505  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4506    int x[] = {25, 17};
4507    const int *foo = &x[0];
4508    ++foo;
4509  }
4510  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4511    typedef const int *iptr;
4512    iptr p = 0;
4513    ++p;
4514  }
4515  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4516       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4517    struct s { int j; const int *ap[3]; } bx;
4518    struct s *b = &bx; b->j = 5;
4519  }
4520  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4521    const int foo = 10;
4522    if (!foo) return 0;
4523  }
4524  return !cs[0] && !zero.x;
4525#endif
4526
4527  ;
4528  return 0;
4529}
4530_ACEOF
4531if ac_fn_c_try_compile "$LINENO"; then :
4532  ac_cv_c_const=yes
4533else
4534  ac_cv_c_const=no
4535fi
4536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4539$as_echo "$ac_cv_c_const" >&6; }
4540if test $ac_cv_c_const = no; then
4541
4542$as_echo "#define const /**/" >>confdefs.h
4543
4544fi
4545
4546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552# allow user to override the -g -O2 flags.
4553default_cflags=no
4554if test "x$CFLAGS" = "x" ; then
4555
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4558$as_echo_n "checking whether $CC supports -g... " >&6; }
4559cache=`echo g | sed 'y%.=/+-%___p_%'`
4560if eval \${cv_prog_cc_flag_$cache+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563
4564echo 'void f(void){}' >conftest.c
4565if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4566eval "cv_prog_cc_flag_$cache=yes"
4567else
4568eval "cv_prog_cc_flag_$cache=no"
4569fi
4570rm -f conftest conftest.o conftest.c
4571
4572fi
4573
4574if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576$as_echo "yes" >&6; }
4577:
4578CFLAGS="$CFLAGS -g"
4579else
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581$as_echo "no" >&6; }
4582:
4583
4584fi
4585
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4589$as_echo_n "checking whether $CC supports -O2... " >&6; }
4590cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4591if eval \${cv_prog_cc_flag_$cache+:} false; then :
4592  $as_echo_n "(cached) " >&6
4593else
4594
4595echo 'void f(void){}' >conftest.c
4596if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4597eval "cv_prog_cc_flag_$cache=yes"
4598else
4599eval "cv_prog_cc_flag_$cache=no"
4600fi
4601rm -f conftest conftest.o conftest.c
4602
4603fi
4604
4605if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607$as_echo "yes" >&6; }
4608:
4609CFLAGS="$CFLAGS -O2"
4610else
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613:
4614
4615fi
4616
4617default_cflags=yes
4618fi
4619   case $ac_cv_prog_cc_stdc in #(
4620  no) :
4621    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4622  *) :
4623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4624$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4625if ${ac_cv_prog_cc_c99+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  ac_cv_prog_cc_c99=no
4629ac_save_CC=$CC
4630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632#include <stdarg.h>
4633#include <stdbool.h>
4634#include <stdlib.h>
4635#include <wchar.h>
4636#include <stdio.h>
4637
4638// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4639#define debug(...) fprintf (stderr, __VA_ARGS__)
4640#define showlist(...) puts (#__VA_ARGS__)
4641#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4642static void
4643test_varargs_macros (void)
4644{
4645  int x = 1234;
4646  int y = 5678;
4647  debug ("Flag");
4648  debug ("X = %d\n", x);
4649  showlist (The first, second, and third items.);
4650  report (x>y, "x is %d but y is %d", x, y);
4651}
4652
4653// Check long long types.
4654#define BIG64 18446744073709551615ull
4655#define BIG32 4294967295ul
4656#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4657#if !BIG_OK
4658  your preprocessor is broken;
4659#endif
4660#if BIG_OK
4661#else
4662  your preprocessor is broken;
4663#endif
4664static long long int bignum = -9223372036854775807LL;
4665static unsigned long long int ubignum = BIG64;
4666
4667struct incomplete_array
4668{
4669  int datasize;
4670  double data[];
4671};
4672
4673struct named_init {
4674  int number;
4675  const wchar_t *name;
4676  double average;
4677};
4678
4679typedef const char *ccp;
4680
4681static inline int
4682test_restrict (ccp restrict text)
4683{
4684  // See if C++-style comments work.
4685  // Iterate through items via the restricted pointer.
4686  // Also check for declarations in for loops.
4687  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4688    continue;
4689  return 0;
4690}
4691
4692// Check varargs and va_copy.
4693static void
4694test_varargs (const char *format, ...)
4695{
4696  va_list args;
4697  va_start (args, format);
4698  va_list args_copy;
4699  va_copy (args_copy, args);
4700
4701  const char *str;
4702  int number;
4703  float fnumber;
4704
4705  while (*format)
4706    {
4707      switch (*format++)
4708	{
4709	case 's': // string
4710	  str = va_arg (args_copy, const char *);
4711	  break;
4712	case 'd': // int
4713	  number = va_arg (args_copy, int);
4714	  break;
4715	case 'f': // float
4716	  fnumber = va_arg (args_copy, double);
4717	  break;
4718	default:
4719	  break;
4720	}
4721    }
4722  va_end (args_copy);
4723  va_end (args);
4724}
4725
4726int
4727main ()
4728{
4729
4730  // Check bool.
4731  _Bool success = false;
4732
4733  // Check restrict.
4734  if (test_restrict ("String literal") == 0)
4735    success = true;
4736  char *restrict newvar = "Another string";
4737
4738  // Check varargs.
4739  test_varargs ("s, d' f .", "string", 65, 34.234);
4740  test_varargs_macros ();
4741
4742  // Check flexible array members.
4743  struct incomplete_array *ia =
4744    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4745  ia->datasize = 10;
4746  for (int i = 0; i < ia->datasize; ++i)
4747    ia->data[i] = i * 1.234;
4748
4749  // Check named initializers.
4750  struct named_init ni = {
4751    .number = 34,
4752    .name = L"Test wide string",
4753    .average = 543.34343,
4754  };
4755
4756  ni.number = 58;
4757
4758  int dynamic_array[ni.number];
4759  dynamic_array[ni.number - 1] = 543;
4760
4761  // work around unused variable warnings
4762  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4763	  || dynamic_array[ni.number - 1] != 543);
4764
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4770do
4771  CC="$ac_save_CC $ac_arg"
4772  if ac_fn_c_try_compile "$LINENO"; then :
4773  ac_cv_prog_cc_c99=$ac_arg
4774fi
4775rm -f core conftest.err conftest.$ac_objext
4776  test "x$ac_cv_prog_cc_c99" != "xno" && break
4777done
4778rm -f conftest.$ac_ext
4779CC=$ac_save_CC
4780
4781fi
4782# AC_CACHE_VAL
4783case "x$ac_cv_prog_cc_c99" in
4784  x)
4785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4786$as_echo "none needed" >&6; } ;;
4787  xno)
4788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4789$as_echo "unsupported" >&6; } ;;
4790  *)
4791    CC="$CC $ac_cv_prog_cc_c99"
4792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4793$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4794esac
4795if test "x$ac_cv_prog_cc_c99" != xno; then :
4796  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4797else
4798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4799$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4800if ${ac_cv_prog_cc_c89+:} false; then :
4801  $as_echo_n "(cached) " >&6
4802else
4803  ac_cv_prog_cc_c89=no
4804ac_save_CC=$CC
4805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807#include <stdarg.h>
4808#include <stdio.h>
4809struct stat;
4810/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4811struct buf { int x; };
4812FILE * (*rcsopen) (struct buf *, struct stat *, int);
4813static char *e (p, i)
4814     char **p;
4815     int i;
4816{
4817  return p[i];
4818}
4819static char *f (char * (*g) (char **, int), char **p, ...)
4820{
4821  char *s;
4822  va_list v;
4823  va_start (v,p);
4824  s = g (p, va_arg (v,int));
4825  va_end (v);
4826  return s;
4827}
4828
4829/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4830   function prototypes and stuff, but not '\xHH' hex character constants.
4831   These don't provoke an error unfortunately, instead are silently treated
4832   as 'x'.  The following induces an error, until -std is added to get
4833   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4834   array size at least.  It's necessary to write '\x00'==0 to get something
4835   that's true only with -std.  */
4836int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4837
4838/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4839   inside strings and character constants.  */
4840#define FOO(x) 'x'
4841int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4842
4843int test (int i, double x);
4844struct s1 {int (*f) (int a);};
4845struct s2 {int (*f) (double a);};
4846int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4847int argc;
4848char **argv;
4849int
4850main ()
4851{
4852return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4858	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4859do
4860  CC="$ac_save_CC $ac_arg"
4861  if ac_fn_c_try_compile "$LINENO"; then :
4862  ac_cv_prog_cc_c89=$ac_arg
4863fi
4864rm -f core conftest.err conftest.$ac_objext
4865  test "x$ac_cv_prog_cc_c89" != "xno" && break
4866done
4867rm -f conftest.$ac_ext
4868CC=$ac_save_CC
4869
4870fi
4871# AC_CACHE_VAL
4872case "x$ac_cv_prog_cc_c89" in
4873  x)
4874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4875$as_echo "none needed" >&6; } ;;
4876  xno)
4877    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4878$as_echo "unsupported" >&6; } ;;
4879  *)
4880    CC="$CC $ac_cv_prog_cc_c89"
4881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4882$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4883esac
4884if test "x$ac_cv_prog_cc_c89" != xno; then :
4885  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4886else
4887  ac_cv_prog_cc_stdc=no
4888fi
4889
4890fi
4891 ;;
4892esac
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4894$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4895  if ${ac_cv_prog_cc_stdc+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897fi
4898
4899  case $ac_cv_prog_cc_stdc in #(
4900  no) :
4901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4902$as_echo "unsupported" >&6; } ;; #(
4903  '') :
4904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905$as_echo "none needed" >&6; } ;; #(
4906  *) :
4907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4908$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4909esac
4910
4911
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4913$as_echo_n "checking $CC dependency flag... " >&6; }
4914echo 'void f(void){}' >conftest.c
4915if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4916	DEPFLAG="-MM"
4917else
4918  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4919	DEPFLAG="-xM1"
4920  else
4921	DEPFLAG="-MM"  # dunno do something
4922  fi
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4925$as_echo "$DEPFLAG" >&6; }
4926rm -f conftest.c
4927
4928
4929
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4933$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4934cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4935if eval \${cv_prog_cc_flag_$cache+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938
4939echo 'void f(void){}' >conftest.c
4940if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4941eval "cv_prog_cc_flag_$cache=yes"
4942else
4943eval "cv_prog_cc_flag_$cache=no"
4944fi
4945rm -f conftest conftest.o conftest.c
4946
4947fi
4948
4949if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951$as_echo "yes" >&6; }
4952:
4953ERRFLAG="-Werror"
4954else
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957:
4958ERRFLAG="-errwarn"
4959fi
4960
4961
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4964$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4965cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4966if eval \${cv_prog_cc_flag_$cache+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969
4970echo 'void f(void){}' >conftest.c
4971if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4972eval "cv_prog_cc_flag_$cache=yes"
4973else
4974eval "cv_prog_cc_flag_$cache=no"
4975fi
4976rm -f conftest conftest.o conftest.c
4977
4978fi
4979
4980if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4982$as_echo "yes" >&6; }
4983:
4984ERRFLAG="$ERRFLAG -Wall"
4985else
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988:
4989ERRFLAG="$ERRFLAG -errfmt"
4990fi
4991
4992
4993
4994
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4997$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4998cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4999if eval \${cv_prog_cc_flag_$cache+:} false; then :
5000  $as_echo_n "(cached) " >&6
5001else
5002
5003echo 'void f(void){}' >conftest.c
5004if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5005eval "cv_prog_cc_flag_$cache=yes"
5006else
5007eval "cv_prog_cc_flag_$cache=no"
5008fi
5009rm -f conftest conftest.o conftest.c
5010
5011fi
5012
5013if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5015$as_echo "yes" >&6; }
5016:
5017C99FLAG="-std=c99"
5018else
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020$as_echo "no" >&6; }
5021:
5022
5023fi
5024
5025
5026
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5028$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5029cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5030if eval \${cv_prog_cc_flag_$cache+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033
5034echo 'void f(void){}' >conftest.c
5035if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5036eval "cv_prog_cc_flag_$cache=yes"
5037else
5038eval "cv_prog_cc_flag_$cache=no"
5039fi
5040rm -f conftest conftest.o conftest.c
5041
5042fi
5043
5044if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046$as_echo "yes" >&6; }
5047:
5048C99FLAG="-xc99"
5049else
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051$as_echo "no" >&6; }
5052:
5053
5054fi
5055
5056
5057for ac_header in getopt.h time.h
5058do :
5059  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5061"
5062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5063  cat >>confdefs.h <<_ACEOF
5064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5065_ACEOF
5066
5067fi
5068
5069done
5070
5071
5072
5073
5074
5075{ $as_echo "$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
5076$as_echo_n "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; }
5077cache=`$as_echo "$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`
5078if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081
5082echo '
5083#include "confdefs.h"
5084#include <stdlib.h>
5085#include <ctype.h>
5086#include <sys/time.h>
5087#ifdef HAVE_TIME_H
5088#include <time.h>
5089#endif
5090#include <unistd.h>
5091#include <netdb.h>
5092#ifdef HAVE_GETOPT_H
5093#include <getopt.h>
5094#endif
5095
5096int test(void) {
5097	int a;
5098	char **opts = NULL;
5099	struct timeval tv;
5100	char *t;
5101	time_t time = 0;
5102	char *buf = NULL;
5103	const char* str = NULL;
5104	struct msghdr msg;
5105	msg.msg_control = 0;
5106	t = ctime_r(&time, buf);
5107	tv.tv_usec = 10;
5108	srandom(32);
5109	a = getopt(2, opts, "a");
5110	a = isascii(32);
5111	str = gai_strerror(0);
5112	if(str && t && tv.tv_usec && msg.msg_control)
5113		a = 0;
5114	return a;
5115}
5116' > conftest.c
5117echo 'void f(void){}' >>conftest.c
5118if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5119eval "cv_prog_cc_flag_needed_$cache=no"
5120else
5121
5122if 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
5123eval "cv_prog_cc_flag_needed_$cache=yes"
5124else
5125eval "cv_prog_cc_flag_needed_$cache=fail"
5126#echo 'Test with flag fails too!'
5127#cat conftest.c
5128#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"
5129#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`
5130#exit 1
5131fi
5132
5133fi
5134rm -f conftest conftest.c conftest.o
5135
5136fi
5137
5138if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5140$as_echo "yes" >&6; }
5141:
5142CFLAGS="$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"
5143else
5144if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
5147#echo 'Test with flag is no!'
5148#cat conftest.c
5149#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"
5150#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`
5151#exit 1
5152:
5153
5154else
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5156$as_echo "failed" >&6; }
5157:
5158
5159fi
5160fi
5161
5162
5163
5164
5165
5166{ $as_echo "$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
5167$as_echo_n "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; }
5168cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5169if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172
5173echo '
5174#include "confdefs.h"
5175#include <stdlib.h>
5176#include <ctype.h>
5177#include <sys/time.h>
5178#ifdef HAVE_TIME_H
5179#include <time.h>
5180#endif
5181#include <unistd.h>
5182#include <netdb.h>
5183#ifdef HAVE_GETOPT_H
5184#include <getopt.h>
5185#endif
5186
5187int test(void) {
5188	int a;
5189	char **opts = NULL;
5190	struct timeval tv;
5191	char *t;
5192	time_t time = 0;
5193	char *buf = NULL;
5194	const char* str = NULL;
5195	struct msghdr msg;
5196	msg.msg_control = 0;
5197	t = ctime_r(&time, buf);
5198	tv.tv_usec = 10;
5199	srandom(32);
5200	a = getopt(2, opts, "a");
5201	a = isascii(32);
5202	str = gai_strerror(0);
5203	if(str && t && tv.tv_usec && msg.msg_control)
5204		a = 0;
5205	return a;
5206}
5207' > conftest.c
5208echo 'void f(void){}' >>conftest.c
5209if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5210eval "cv_prog_cc_flag_needed_$cache=no"
5211else
5212
5213if 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
5214eval "cv_prog_cc_flag_needed_$cache=yes"
5215else
5216eval "cv_prog_cc_flag_needed_$cache=fail"
5217#echo 'Test with flag fails too!'
5218#cat conftest.c
5219#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"
5220#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`
5221#exit 1
5222fi
5223
5224fi
5225rm -f conftest conftest.c conftest.o
5226
5227fi
5228
5229if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231$as_echo "yes" >&6; }
5232:
5233CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5234else
5235if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
5238#echo 'Test with flag is no!'
5239#cat conftest.c
5240#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"
5241#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`
5242#exit 1
5243:
5244
5245else
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5247$as_echo "failed" >&6; }
5248:
5249
5250fi
5251fi
5252
5253
5254
5255
5256
5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5258$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5259cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5260if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263
5264echo '
5265#include <stdbool.h>
5266#include <ctype.h>
5267int test(void) {
5268        int a = 0;
5269        return a;
5270}
5271' > conftest.c
5272echo 'void f(void){}' >>conftest.c
5273if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5274eval "cv_prog_cc_flag_needed_$cache=no"
5275else
5276
5277if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5278eval "cv_prog_cc_flag_needed_$cache=yes"
5279else
5280eval "cv_prog_cc_flag_needed_$cache=fail"
5281#echo 'Test with flag fails too!'
5282#cat conftest.c
5283#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5284#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5285#exit 1
5286fi
5287
5288fi
5289rm -f conftest conftest.c conftest.o
5290
5291fi
5292
5293if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295$as_echo "yes" >&6; }
5296:
5297CFLAGS="$CFLAGS $C99FLAG"
5298else
5299if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }
5302#echo 'Test with flag is no!'
5303#cat conftest.c
5304#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5305#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5306#exit 1
5307:
5308
5309else
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5311$as_echo "failed" >&6; }
5312:
5313
5314fi
5315fi
5316
5317
5318
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5322$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5323cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5324if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327
5328echo '
5329#include <ctype.h>
5330
5331int test(void) {
5332        int a;
5333        a = isascii(32);
5334        return a;
5335}
5336' > conftest.c
5337echo 'void f(void){}' >>conftest.c
5338if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5339eval "cv_prog_cc_flag_needed_$cache=no"
5340else
5341
5342if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5343eval "cv_prog_cc_flag_needed_$cache=yes"
5344else
5345eval "cv_prog_cc_flag_needed_$cache=fail"
5346#echo 'Test with flag fails too!'
5347#cat conftest.c
5348#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5349#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5350#exit 1
5351fi
5352
5353fi
5354rm -f conftest conftest.c conftest.o
5355
5356fi
5357
5358if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360$as_echo "yes" >&6; }
5361:
5362CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5363else
5364if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367#echo 'Test with flag is no!'
5368#cat conftest.c
5369#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5370#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5371#exit 1
5372:
5373
5374else
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5376$as_echo "failed" >&6; }
5377:
5378
5379fi
5380fi
5381
5382
5383
5384
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5387$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5388cache=_D_GNU_SOURCE
5389if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392
5393echo '
5394#include <netinet/in.h>
5395
5396int test(void) {
5397        struct in6_pktinfo inf;
5398	int a = (int)sizeof(inf);
5399        return a;
5400}
5401' > conftest.c
5402echo 'void f(void){}' >>conftest.c
5403if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5404eval "cv_prog_cc_flag_needed_$cache=no"
5405else
5406
5407if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5408eval "cv_prog_cc_flag_needed_$cache=yes"
5409else
5410eval "cv_prog_cc_flag_needed_$cache=fail"
5411#echo 'Test with flag fails too!'
5412#cat conftest.c
5413#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5414#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5415#exit 1
5416fi
5417
5418fi
5419rm -f conftest conftest.c conftest.o
5420
5421fi
5422
5423if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425$as_echo "yes" >&6; }
5426:
5427CFLAGS="$CFLAGS -D_GNU_SOURCE"
5428else
5429if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431$as_echo "no" >&6; }
5432#echo 'Test with flag is no!'
5433#cat conftest.c
5434#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5435#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5436#exit 1
5437:
5438
5439else
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5441$as_echo "failed" >&6; }
5442:
5443
5444fi
5445fi
5446
5447
5448# check again for GNU_SOURCE for setresgid. May fail if setresgid
5449# is not available at all. -D_FRSRESGID is to make this check unique.
5450# otherwise we would get the previous cached result.
5451
5452
5453
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5455$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5456cache=_D_GNU_SOURCE__D_FRSRESGID
5457if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5458  $as_echo_n "(cached) " >&6
5459else
5460
5461echo '
5462#include <unistd.h>
5463
5464int test(void) {
5465	int a = setresgid(0,0,0);
5466	a = setresuid(0,0,0);
5467        return a;
5468}
5469' > conftest.c
5470echo 'void f(void){}' >>conftest.c
5471if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5472eval "cv_prog_cc_flag_needed_$cache=no"
5473else
5474
5475if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5476eval "cv_prog_cc_flag_needed_$cache=yes"
5477else
5478eval "cv_prog_cc_flag_needed_$cache=fail"
5479#echo 'Test with flag fails too!'
5480#cat conftest.c
5481#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5482#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5483#exit 1
5484fi
5485
5486fi
5487rm -f conftest conftest.c conftest.o
5488
5489fi
5490
5491if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493$as_echo "yes" >&6; }
5494:
5495CFLAGS="$CFLAGS -D_GNU_SOURCE"
5496else
5497if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499$as_echo "no" >&6; }
5500#echo 'Test with flag is no!'
5501#cat conftest.c
5502#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5503#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5504#exit 1
5505:
5506
5507else
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5509$as_echo "failed" >&6; }
5510:
5511
5512fi
5513fi
5514
5515
5516
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5520$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5521cache=_D_POSIX_C_SOURCE_200112
5522if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525
5526echo '
5527#include "confdefs.h"
5528#ifdef HAVE_TIME_H
5529#include <time.h>
5530#endif
5531#include <netdb.h>
5532
5533int test(void) {
5534        int a = 0;
5535        char *t;
5536        time_t time = 0;
5537        char *buf = NULL;
5538	const char* str = NULL;
5539        t = ctime_r(&time, buf);
5540	str = gai_strerror(0);
5541	if(t && str)
5542		a = 0;
5543        return a;
5544}
5545' > conftest.c
5546echo 'void f(void){}' >>conftest.c
5547if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5548eval "cv_prog_cc_flag_needed_$cache=no"
5549else
5550
5551if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5552eval "cv_prog_cc_flag_needed_$cache=yes"
5553else
5554eval "cv_prog_cc_flag_needed_$cache=fail"
5555#echo 'Test with flag fails too!'
5556#cat conftest.c
5557#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5558#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5559#exit 1
5560fi
5561
5562fi
5563rm -f conftest conftest.c conftest.o
5564
5565fi
5566
5567if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569$as_echo "yes" >&6; }
5570:
5571CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5572else
5573if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576#echo 'Test with flag is no!'
5577#cat conftest.c
5578#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5579#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5580#exit 1
5581:
5582
5583else
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5585$as_echo "failed" >&6; }
5586:
5587
5588fi
5589fi
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5596$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5597cache=_D__EXTENSIONS__
5598if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601
5602echo '
5603#include "confdefs.h"
5604#include <stdlib.h>
5605#include <ctype.h>
5606#include <sys/time.h>
5607#ifdef HAVE_TIME_H
5608#include <time.h>
5609#endif
5610#include <unistd.h>
5611#ifdef HAVE_GETOPT_H
5612#include <getopt.h>
5613#endif
5614
5615int test(void) {
5616        int a;
5617        char **opts = NULL;
5618        struct timeval tv;
5619        tv.tv_usec = 10;
5620        srandom(32);
5621        a = getopt(2, opts, "a");
5622        a = isascii(32);
5623	if(tv.tv_usec)
5624		a = 0;
5625        return a;
5626}
5627' > conftest.c
5628echo 'void f(void){}' >>conftest.c
5629if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5630eval "cv_prog_cc_flag_needed_$cache=no"
5631else
5632
5633if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5634eval "cv_prog_cc_flag_needed_$cache=yes"
5635else
5636eval "cv_prog_cc_flag_needed_$cache=fail"
5637#echo 'Test with flag fails too!'
5638#cat conftest.c
5639#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5640#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5641#exit 1
5642fi
5643
5644fi
5645rm -f conftest conftest.c conftest.o
5646
5647fi
5648
5649if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651$as_echo "yes" >&6; }
5652:
5653CFLAGS="$CFLAGS -D__EXTENSIONS__"
5654else
5655if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657$as_echo "no" >&6; }
5658#echo 'Test with flag is no!'
5659#cat conftest.c
5660#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5661#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5662#exit 1
5663:
5664
5665else
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5667$as_echo "failed" >&6; }
5668:
5669
5670fi
5671fi
5672
5673
5674
5675
5676# debug mode flags warnings
5677# Check whether --enable-checking was given.
5678if test "${enable_checking+set}" = set; then :
5679  enableval=$enable_checking;
5680fi
5681
5682# Check whether --enable-debug was given.
5683if test "${enable_debug+set}" = set; then :
5684  enableval=$enable_debug;
5685fi
5686
5687if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5688else debug_enabled="$enable_checking"; fi
5689
5690case "$debug_enabled" in
5691        yes)
5692
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5695$as_echo_n "checking whether $CC supports -W... " >&6; }
5696cache=`echo W | sed 'y%.=/+-%___p_%'`
5697if eval \${cv_prog_cc_flag_$cache+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700
5701echo 'void f(void){}' >conftest.c
5702if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5703eval "cv_prog_cc_flag_$cache=yes"
5704else
5705eval "cv_prog_cc_flag_$cache=no"
5706fi
5707rm -f conftest conftest.o conftest.c
5708
5709fi
5710
5711if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713$as_echo "yes" >&6; }
5714:
5715CFLAGS="$CFLAGS -W"
5716else
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719:
5720
5721fi
5722
5723
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5726$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5727cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5728if eval \${cv_prog_cc_flag_$cache+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731
5732echo 'void f(void){}' >conftest.c
5733if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5734eval "cv_prog_cc_flag_$cache=yes"
5735else
5736eval "cv_prog_cc_flag_$cache=no"
5737fi
5738rm -f conftest conftest.o conftest.c
5739
5740fi
5741
5742if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744$as_echo "yes" >&6; }
5745:
5746CFLAGS="$CFLAGS -Wall"
5747else
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750:
5751
5752fi
5753
5754
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5757$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5758cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5759if eval \${cv_prog_cc_flag_$cache+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762
5763echo 'void f(void){}' >conftest.c
5764if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5765eval "cv_prog_cc_flag_$cache=yes"
5766else
5767eval "cv_prog_cc_flag_$cache=no"
5768fi
5769rm -f conftest conftest.o conftest.c
5770
5771fi
5772
5773if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5775$as_echo "yes" >&6; }
5776:
5777CFLAGS="$CFLAGS -Wextra"
5778else
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780$as_echo "no" >&6; }
5781:
5782
5783fi
5784
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5788$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5789cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5790if eval \${cv_prog_cc_flag_$cache+:} false; then :
5791  $as_echo_n "(cached) " >&6
5792else
5793
5794echo 'void f(void){}' >conftest.c
5795if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5796eval "cv_prog_cc_flag_$cache=yes"
5797else
5798eval "cv_prog_cc_flag_$cache=no"
5799fi
5800rm -f conftest conftest.o conftest.c
5801
5802fi
5803
5804if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5806$as_echo "yes" >&6; }
5807:
5808CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5809else
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
5812:
5813
5814fi
5815
5816
5817$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5818
5819		;;
5820	no|*)
5821		# nothing to do.
5822		;;
5823esac
5824if test "$default_cflags" = "yes"; then
5825	# only when CFLAGS was "" at the start, if the users wants to
5826	# override we shouldn't add default cflags, because they wouldn't
5827	# be able to turn off these options and set the CFLAGS wanted.
5828
5829    # Check whether --enable-flto was given.
5830if test "${enable_flto+set}" = set; then :
5831  enableval=$enable_flto;
5832fi
5833
5834    if test "x$enable_flto" != "xno"; then :
5835
5836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5837$as_echo_n "checking if $CC supports -flto... " >&6; }
5838        BAKCFLAGS="$CFLAGS"
5839        CFLAGS="$CFLAGS -flto"
5840        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842
5843int
5844main ()
5845{
5846
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_link "$LINENO"; then :
5852
5853            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5854                CFLAGS="$BAKCFLAGS"
5855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857            else
5858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859$as_echo "yes" >&6; }
5860            fi
5861            rm -f conftest conftest.c conftest.o
5862
5863else
5864  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867rm -f core conftest.err conftest.$ac_objext \
5868    conftest$ac_exeext conftest.$ac_ext
5869
5870fi
5871
5872
5873    # Check whether --enable-pie was given.
5874if test "${enable_pie+set}" = set; then :
5875  enableval=$enable_pie;
5876fi
5877
5878    if test "x$enable_pie" = "xyes"; then :
5879
5880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5881$as_echo_n "checking if $CC supports PIE... " >&6; }
5882	BAKLDFLAGS="$LDFLAGS"
5883	BAKCFLAGS="$CFLAGS"
5884	LDFLAGS="$LDFLAGS -pie"
5885	CFLAGS="$CFLAGS -fPIE"
5886	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888
5889int
5890main ()
5891{
5892
5893  ;
5894  return 0;
5895}
5896_ACEOF
5897if ac_fn_c_try_link "$LINENO"; then :
5898
5899	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5900		LDFLAGS="$BAKLDFLAGS"
5901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902$as_echo "no" >&6; }
5903	    else
5904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905$as_echo "yes" >&6; }
5906	    fi
5907	    rm -f conftest conftest.c conftest.o
5908
5909else
5910  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911$as_echo "no" >&6; }
5912fi
5913rm -f core conftest.err conftest.$ac_objext \
5914    conftest$ac_exeext conftest.$ac_ext
5915
5916fi
5917
5918
5919    # Check whether --enable-relro_now was given.
5920if test "${enable_relro_now+set}" = set; then :
5921  enableval=$enable_relro_now;
5922fi
5923
5924    if test "x$enable_relro_now" = "xyes"; then :
5925
5926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5927$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5928	BAKLDFLAGS="$LDFLAGS"
5929	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5930	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932
5933int
5934main ()
5935{
5936
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_link "$LINENO"; then :
5942
5943	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5944		LDFLAGS="$BAKLDFLAGS"
5945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947	    else
5948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5949$as_echo "yes" >&6; }
5950	    fi
5951	    rm -f conftest conftest.c conftest.o
5952
5953else
5954  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957rm -f core conftest.err conftest.$ac_objext \
5958    conftest$ac_exeext conftest.$ac_ext
5959
5960fi
5961
5962fi
5963
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5965$as_echo_n "checking for inline... " >&6; }
5966if ${ac_cv_c_inline+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969  ac_cv_c_inline=no
5970for ac_kw in inline __inline__ __inline; do
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973#ifndef __cplusplus
5974typedef int foo_t;
5975static $ac_kw foo_t static_foo () {return 0; }
5976$ac_kw foo_t foo () {return 0; }
5977#endif
5978
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981  ac_cv_c_inline=$ac_kw
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984  test "$ac_cv_c_inline" != no && break
5985done
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5989$as_echo "$ac_cv_c_inline" >&6; }
5990
5991case $ac_cv_c_inline in
5992  inline | yes) ;;
5993  *)
5994    case $ac_cv_c_inline in
5995      no) ac_val=;;
5996      *) ac_val=$ac_cv_c_inline;;
5997    esac
5998    cat >>confdefs.h <<_ACEOF
5999#ifndef __cplusplus
6000#define inline $ac_val
6001#endif
6002_ACEOF
6003    ;;
6004esac
6005
6006
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6008$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6009if ${ac_cv_c_format_attribute+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  ac_cv_c_format_attribute=no
6013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015#include <stdio.h>
6016void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6017void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6018
6019int
6020main ()
6021{
6022
6023   f ("%s", "str");
6024
6025  ;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_compile "$LINENO"; then :
6030  ac_cv_c_format_attribute="yes"
6031else
6032  ac_cv_c_format_attribute="no"
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035
6036fi
6037
6038
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6040$as_echo "$ac_cv_c_format_attribute" >&6; }
6041if test $ac_cv_c_format_attribute = yes; then
6042
6043$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6044
6045fi
6046
6047
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6049$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6050if ${ac_cv_c_unused_attribute+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  ac_cv_c_unused_attribute=no
6054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h.  */
6056#include <stdio.h>
6057void f (char *u __attribute__((unused)));
6058
6059int
6060main ()
6061{
6062
6063   f ("x");
6064
6065  ;
6066  return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"; then :
6070  ac_cv_c_unused_attribute="yes"
6071else
6072  ac_cv_c_unused_attribute="no"
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075
6076fi
6077
6078
6079
6080
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6082$as_echo "$ac_cv_c_unused_attribute" >&6; }
6083if test $ac_cv_c_unused_attribute = yes; then
6084
6085$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6086
6087fi
6088
6089
6090
6091
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6093$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6094if ${ac_cv_c_weak_attribute+:} false; then :
6095  $as_echo_n "(cached) " >&6
6096else
6097  ac_cv_c_weak_attribute=no
6098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100 #include <stdio.h>
6101__attribute__((weak)) void f(int x) { printf("%d", x); }
6102
6103int
6104main ()
6105{
6106
6107   f(1);
6108
6109  ;
6110  return 0;
6111}
6112_ACEOF
6113if ac_fn_c_try_compile "$LINENO"; then :
6114  ac_cv_c_weak_attribute="yes"
6115else
6116  ac_cv_c_weak_attribute="no"
6117fi
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119
6120fi
6121
6122
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6124$as_echo "$ac_cv_c_weak_attribute" >&6; }
6125if test $ac_cv_c_weak_attribute = yes; then
6126
6127$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6128
6129
6130$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6131
6132fi
6133
6134
6135
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6138$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6139if ${ac_cv_c_noreturn_attribute+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  ac_cv_c_noreturn_attribute=no
6143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h.  */
6145 #include <stdio.h>
6146__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6147
6148int
6149main ()
6150{
6151
6152   f(1);
6153
6154  ;
6155  return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159  ac_cv_c_noreturn_attribute="yes"
6160else
6161  ac_cv_c_noreturn_attribute="no"
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164
6165fi
6166
6167
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6169$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6170if test $ac_cv_c_noreturn_attribute = yes; then
6171
6172$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6173
6174
6175$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6176
6177fi
6178
6179
6180if test "$srcdir" != "."; then
6181	CPPFLAGS="$CPPFLAGS -I$srcdir"
6182fi
6183
6184
6185
6186
6187
6188for ac_prog in flex lex
6189do
6190  # Extract the first word of "$ac_prog", so it can be a program name with args.
6191set dummy $ac_prog; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if ${ac_cv_prog_LEX+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  if test -n "$LEX"; then
6198  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203  IFS=$as_save_IFS
6204  test -z "$as_dir" && as_dir=.
6205    for ac_exec_ext in '' $ac_executable_extensions; do
6206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207    ac_cv_prog_LEX="$ac_prog"
6208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209    break 2
6210  fi
6211done
6212  done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217LEX=$ac_cv_prog_LEX
6218if test -n "$LEX"; then
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6220$as_echo "$LEX" >&6; }
6221else
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227  test -n "$LEX" && break
6228done
6229test -n "$LEX" || LEX=":"
6230
6231if test "x$LEX" != "x:"; then
6232  cat >conftest.l <<_ACEOF
6233%%
6234a { ECHO; }
6235b { REJECT; }
6236c { yymore (); }
6237d { yyless (1); }
6238e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6239    yyless ((input () != 0)); }
6240f { unput (yytext[0]); }
6241. { BEGIN INITIAL; }
6242%%
6243#ifdef YYTEXT_POINTER
6244extern char *yytext;
6245#endif
6246int
6247main (void)
6248{
6249  return ! yylex () + ! yywrap ();
6250}
6251_ACEOF
6252{ { ac_try="$LEX conftest.l"
6253case "(($ac_try" in
6254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255  *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259  (eval "$LEX conftest.l") 2>&5
6260  ac_status=$?
6261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262  test $ac_status = 0; }
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6264$as_echo_n "checking lex output file root... " >&6; }
6265if ${ac_cv_prog_lex_root+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268
6269if test -f lex.yy.c; then
6270  ac_cv_prog_lex_root=lex.yy
6271elif test -f lexyy.c; then
6272  ac_cv_prog_lex_root=lexyy
6273else
6274  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6275fi
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6278$as_echo "$ac_cv_prog_lex_root" >&6; }
6279LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6280
6281if test -z "${LEXLIB+set}"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6283$as_echo_n "checking lex library... " >&6; }
6284if ${ac_cv_lib_lex+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287
6288    ac_save_LIBS=$LIBS
6289    ac_cv_lib_lex='none needed'
6290    for ac_lib in '' -lfl -ll; do
6291      LIBS="$ac_lib $ac_save_LIBS"
6292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294`cat $LEX_OUTPUT_ROOT.c`
6295_ACEOF
6296if ac_fn_c_try_link "$LINENO"; then :
6297  ac_cv_lib_lex=$ac_lib
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301      test "$ac_cv_lib_lex" != 'none needed' && break
6302    done
6303    LIBS=$ac_save_LIBS
6304
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6307$as_echo "$ac_cv_lib_lex" >&6; }
6308  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6309fi
6310
6311
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6313$as_echo_n "checking whether yytext is a pointer... " >&6; }
6314if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6315  $as_echo_n "(cached) " >&6
6316else
6317  # POSIX says lex can declare yytext either as a pointer or an array; the
6318# default is implementation-dependent.  Figure out which it is, since
6319# not all implementations provide the %pointer and %array declarations.
6320ac_cv_prog_lex_yytext_pointer=no
6321ac_save_LIBS=$LIBS
6322LIBS="$LEXLIB $ac_save_LIBS"
6323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h.  */
6325
6326  #define YYTEXT_POINTER 1
6327`cat $LEX_OUTPUT_ROOT.c`
6328_ACEOF
6329if ac_fn_c_try_link "$LINENO"; then :
6330  ac_cv_prog_lex_yytext_pointer=yes
6331fi
6332rm -f core conftest.err conftest.$ac_objext \
6333    conftest$ac_exeext conftest.$ac_ext
6334LIBS=$ac_save_LIBS
6335
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6338$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6339if test $ac_cv_prog_lex_yytext_pointer = yes; then
6340
6341$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6342
6343fi
6344rm -f conftest.l $LEX_OUTPUT_ROOT.c
6345
6346fi
6347if test "$LEX" != "" -a "$LEX" != ":"; then
6348
6349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6350$as_echo_n "checking for yylex_destroy... " >&6; }
6351	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6352
6353$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6354
6355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6356$as_echo "yes" >&6; }
6357	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; };
6359		LEX=":"
6360	fi
6361
6362fi
6363if test "$LEX" != "" -a "$LEX" != ":"; then
6364
6365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6366$as_echo_n "checking for lex %option... " >&6; }
6367	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6368%option nounput
6369%%
6370EOF
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372$as_echo "yes" >&6; }
6373	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; };
6375		LEX=":"
6376	fi
6377
6378fi
6379if test "$LEX" = "" -o "$LEX" = ":"; then
6380	if test ! -f util/configlexer.c; then
6381		as_fn_error $? "no lex and no util/configlexer.c: need flex and bison to compile from source repository." "$LINENO" 5
6382	fi
6383fi
6384for ac_prog in 'bison -y' byacc
6385do
6386  # Extract the first word of "$ac_prog", so it can be a program name with args.
6387set dummy $ac_prog; ac_word=$2
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if ${ac_cv_prog_YACC+:} false; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  if test -n "$YACC"; then
6394  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401    for ac_exec_ext in '' $ac_executable_extensions; do
6402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403    ac_cv_prog_YACC="$ac_prog"
6404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408  done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413YACC=$ac_cv_prog_YACC
6414if test -n "$YACC"; then
6415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6416$as_echo "$YACC" >&6; }
6417else
6418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
6420fi
6421
6422
6423  test -n "$YACC" && break
6424done
6425test -n "$YACC" || YACC="yacc"
6426
6427if test "$YACC" = "" -o "$YACC" = ":"; then
6428	if test ! -f util/configparser.c; then
6429		as_fn_error $? "no yacc and no util/configparser.c: need flex and bison to compile from source repository." "$LINENO" 5
6430	fi
6431fi
6432# Extract the first word of "doxygen", so it can be a program name with args.
6433set dummy doxygen; ac_word=$2
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435$as_echo_n "checking for $ac_word... " >&6; }
6436if ${ac_cv_prog_doxygen+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  if test -n "$doxygen"; then
6440  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6441else
6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445  IFS=$as_save_IFS
6446  test -z "$as_dir" && as_dir=.
6447    for ac_exec_ext in '' $ac_executable_extensions; do
6448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449    ac_cv_prog_doxygen="doxygen"
6450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451    break 2
6452  fi
6453done
6454  done
6455IFS=$as_save_IFS
6456
6457fi
6458fi
6459doxygen=$ac_cv_prog_doxygen
6460if test -n "$doxygen"; then
6461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6462$as_echo "$doxygen" >&6; }
6463else
6464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468
6469if test -n "$ac_tool_prefix"; then
6470  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}strip; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_STRIP+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$STRIP"; then
6478  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497STRIP=$ac_cv_prog_STRIP
6498if test -n "$STRIP"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6500$as_echo "$STRIP" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506
6507fi
6508if test -z "$ac_cv_prog_STRIP"; then
6509  ac_ct_STRIP=$STRIP
6510  # Extract the first word of "strip", so it can be a program name with args.
6511set dummy strip; ac_word=$2
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  if test -n "$ac_ct_STRIP"; then
6518  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523  IFS=$as_save_IFS
6524  test -z "$as_dir" && as_dir=.
6525    for ac_exec_ext in '' $ac_executable_extensions; do
6526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527    ac_cv_prog_ac_ct_STRIP="strip"
6528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529    break 2
6530  fi
6531done
6532  done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6538if test -n "$ac_ct_STRIP"; then
6539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6540$as_echo "$ac_ct_STRIP" >&6; }
6541else
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
6544fi
6545
6546  if test "x$ac_ct_STRIP" = x; then
6547    STRIP=""
6548  else
6549    case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    STRIP=$ac_ct_STRIP
6556  fi
6557else
6558  STRIP="$ac_cv_prog_STRIP"
6559fi
6560
6561ac_aux_dir=
6562for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6563  if test -f "$ac_dir/install-sh"; then
6564    ac_aux_dir=$ac_dir
6565    ac_install_sh="$ac_aux_dir/install-sh -c"
6566    break
6567  elif test -f "$ac_dir/install.sh"; then
6568    ac_aux_dir=$ac_dir
6569    ac_install_sh="$ac_aux_dir/install.sh -c"
6570    break
6571  elif test -f "$ac_dir/shtool"; then
6572    ac_aux_dir=$ac_dir
6573    ac_install_sh="$ac_aux_dir/shtool install -c"
6574    break
6575  fi
6576done
6577if test -z "$ac_aux_dir"; then
6578  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6579fi
6580
6581# These three variables are undocumented and unsupported,
6582# and are intended to be withdrawn in a future Autoconf release.
6583# They can cause serious problems if a builder's source tree is in a directory
6584# whose full name contains unusual characters.
6585ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6586ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6587ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6588
6589
6590# Make sure we can run config.sub.
6591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6592  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6593
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6595$as_echo_n "checking build system type... " >&6; }
6596if ${ac_cv_build+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  ac_build_alias=$build_alias
6600test "x$ac_build_alias" = x &&
6601  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6602test "x$ac_build_alias" = x &&
6603  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6605  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6606
6607fi
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6609$as_echo "$ac_cv_build" >&6; }
6610case $ac_cv_build in
6611*-*-*) ;;
6612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6613esac
6614build=$ac_cv_build
6615ac_save_IFS=$IFS; IFS='-'
6616set x $ac_cv_build
6617shift
6618build_cpu=$1
6619build_vendor=$2
6620shift; shift
6621# Remember, the first character of IFS is used to create $*,
6622# except with old shells:
6623build_os=$*
6624IFS=$ac_save_IFS
6625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6626
6627
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6629$as_echo_n "checking host system type... " >&6; }
6630if ${ac_cv_host+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  if test "x$host_alias" = x; then
6634  ac_cv_host=$ac_cv_build
6635else
6636  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6637    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6638fi
6639
6640fi
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6642$as_echo "$ac_cv_host" >&6; }
6643case $ac_cv_host in
6644*-*-*) ;;
6645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6646esac
6647host=$ac_cv_host
6648ac_save_IFS=$IFS; IFS='-'
6649set x $ac_cv_host
6650shift
6651host_cpu=$1
6652host_vendor=$2
6653shift; shift
6654# Remember, the first character of IFS is used to create $*,
6655# except with old shells:
6656host_os=$*
6657IFS=$ac_save_IFS
6658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6659
6660
6661
6662# skip these tests, we do not need them.
6663
6664
6665
6666
6667
6668
6669
6670
6671# always use ./libtool unless override from commandline (libtool=mylibtool)
6672if test -z "$libtool"; then
6673	libtool="./libtool"
6674fi
6675
6676# avoid libtool max commandline length test on systems that fork slowly.
6677
6678if echo "$host_os" | grep "sunos4" >/dev/null; then
6679	lt_cv_sys_max_cmd_len=32750;
6680fi
6681if test -n "$ac_tool_prefix"; then
6682  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}ar; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if ${ac_cv_path_AR+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  case $AR in
6690  [\\/]* | ?:[\\/]*)
6691  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6692  ;;
6693  *)
6694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  test -z "$as_dir" && as_dir=.
6699    for ac_exec_ext in '' $ac_executable_extensions; do
6700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703    break 2
6704  fi
6705done
6706  done
6707IFS=$as_save_IFS
6708
6709  ;;
6710esac
6711fi
6712AR=$ac_cv_path_AR
6713if test -n "$AR"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6715$as_echo "$AR" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721
6722fi
6723if test -z "$ac_cv_path_AR"; then
6724  ac_pt_AR=$AR
6725  # Extract the first word of "ar", so it can be a program name with args.
6726set dummy ar; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if ${ac_cv_path_ac_pt_AR+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  case $ac_pt_AR in
6733  [\\/]* | ?:[\\/]*)
6734  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6735  ;;
6736  *)
6737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752  ;;
6753esac
6754fi
6755ac_pt_AR=$ac_cv_path_ac_pt_AR
6756if test -n "$ac_pt_AR"; then
6757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6758$as_echo "$ac_pt_AR" >&6; }
6759else
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764  if test "x$ac_pt_AR" = x; then
6765    AR="false"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    AR=$ac_pt_AR
6774  fi
6775else
6776  AR="$ac_cv_path_AR"
6777fi
6778
6779if test $AR = false; then
6780	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6781fi
6782
6783case `pwd` in
6784  *\ * | *\	*)
6785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6786$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6787esac
6788
6789
6790
6791macro_version='2.4.6'
6792macro_revision='2.4.6'
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806ltmain=$ac_aux_dir/ltmain.sh
6807
6808# Backslashify metacharacters that are still active within
6809# double-quoted strings.
6810sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6811
6812# Same as above, but do not quote variable references.
6813double_quote_subst='s/\(["`\\]\)/\\\1/g'
6814
6815# Sed substitution to delay expansion of an escaped shell variable in a
6816# double_quote_subst'ed string.
6817delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6818
6819# Sed substitution to delay expansion of an escaped single quote.
6820delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6821
6822# Sed substitution to avoid accidental globbing in evaled expressions
6823no_glob_subst='s/\*/\\\*/g'
6824
6825ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6826ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6827ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6830$as_echo_n "checking how to print strings... " >&6; }
6831# Test print first, because it will be a builtin if present.
6832if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6833   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6834  ECHO='print -r --'
6835elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6836  ECHO='printf %s\n'
6837else
6838  # Use this function as a fallback that always works.
6839  func_fallback_echo ()
6840  {
6841    eval 'cat <<_LTECHO_EOF
6842$1
6843_LTECHO_EOF'
6844  }
6845  ECHO='func_fallback_echo'
6846fi
6847
6848# func_echo_all arg...
6849# Invoke $ECHO with all args, space-separated.
6850func_echo_all ()
6851{
6852    $ECHO ""
6853}
6854
6855case $ECHO in
6856  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6857$as_echo "printf" >&6; } ;;
6858  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6859$as_echo "print -r" >&6; } ;;
6860  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6861$as_echo "cat" >&6; } ;;
6862esac
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6878$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6879if ${ac_cv_path_SED+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6883     for ac_i in 1 2 3 4 5 6 7; do
6884       ac_script="$ac_script$as_nl$ac_script"
6885     done
6886     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6887     { ac_script=; unset ac_script;}
6888     if test -z "$SED"; then
6889  ac_path_SED_found=false
6890  # Loop through the user's path and test for each of PROGNAME-LIST
6891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_prog in sed gsed; do
6897    for ac_exec_ext in '' $ac_executable_extensions; do
6898      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6899      as_fn_executable_p "$ac_path_SED" || continue
6900# Check for GNU ac_path_SED and select it if it is found.
6901  # Check for GNU $ac_path_SED
6902case `"$ac_path_SED" --version 2>&1` in
6903*GNU*)
6904  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6905*)
6906  ac_count=0
6907  $as_echo_n 0123456789 >"conftest.in"
6908  while :
6909  do
6910    cat "conftest.in" "conftest.in" >"conftest.tmp"
6911    mv "conftest.tmp" "conftest.in"
6912    cp "conftest.in" "conftest.nl"
6913    $as_echo '' >> "conftest.nl"
6914    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6915    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6916    as_fn_arith $ac_count + 1 && ac_count=$as_val
6917    if test $ac_count -gt ${ac_path_SED_max-0}; then
6918      # Best one so far, save it but keep looking for a better one
6919      ac_cv_path_SED="$ac_path_SED"
6920      ac_path_SED_max=$ac_count
6921    fi
6922    # 10*(2^10) chars as input seems more than enough
6923    test $ac_count -gt 10 && break
6924  done
6925  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6926esac
6927
6928      $ac_path_SED_found && break 3
6929    done
6930  done
6931  done
6932IFS=$as_save_IFS
6933  if test -z "$ac_cv_path_SED"; then
6934    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6935  fi
6936else
6937  ac_cv_path_SED=$SED
6938fi
6939
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6942$as_echo "$ac_cv_path_SED" >&6; }
6943 SED="$ac_cv_path_SED"
6944  rm -f conftest.sed
6945
6946test -z "$SED" && SED=sed
6947Xsed="$SED -e 1s/^X//"
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6960$as_echo_n "checking for fgrep... " >&6; }
6961if ${ac_cv_path_FGREP+:} false; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6965   then ac_cv_path_FGREP="$GREP -F"
6966   else
6967     if test -z "$FGREP"; then
6968  ac_path_FGREP_found=false
6969  # Loop through the user's path and test for each of PROGNAME-LIST
6970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6972do
6973  IFS=$as_save_IFS
6974  test -z "$as_dir" && as_dir=.
6975    for ac_prog in fgrep; do
6976    for ac_exec_ext in '' $ac_executable_extensions; do
6977      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6978      as_fn_executable_p "$ac_path_FGREP" || continue
6979# Check for GNU ac_path_FGREP and select it if it is found.
6980  # Check for GNU $ac_path_FGREP
6981case `"$ac_path_FGREP" --version 2>&1` in
6982*GNU*)
6983  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6984*)
6985  ac_count=0
6986  $as_echo_n 0123456789 >"conftest.in"
6987  while :
6988  do
6989    cat "conftest.in" "conftest.in" >"conftest.tmp"
6990    mv "conftest.tmp" "conftest.in"
6991    cp "conftest.in" "conftest.nl"
6992    $as_echo 'FGREP' >> "conftest.nl"
6993    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6994    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6995    as_fn_arith $ac_count + 1 && ac_count=$as_val
6996    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6997      # Best one so far, save it but keep looking for a better one
6998      ac_cv_path_FGREP="$ac_path_FGREP"
6999      ac_path_FGREP_max=$ac_count
7000    fi
7001    # 10*(2^10) chars as input seems more than enough
7002    test $ac_count -gt 10 && break
7003  done
7004  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7005esac
7006
7007      $ac_path_FGREP_found && break 3
7008    done
7009  done
7010  done
7011IFS=$as_save_IFS
7012  if test -z "$ac_cv_path_FGREP"; then
7013    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7014  fi
7015else
7016  ac_cv_path_FGREP=$FGREP
7017fi
7018
7019   fi
7020fi
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7022$as_echo "$ac_cv_path_FGREP" >&6; }
7023 FGREP="$ac_cv_path_FGREP"
7024
7025
7026test -z "$GREP" && GREP=grep
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046# Check whether --with-gnu-ld was given.
7047if test "${with_gnu_ld+set}" = set; then :
7048  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7049else
7050  with_gnu_ld=no
7051fi
7052
7053ac_prog=ld
7054if test yes = "$GCC"; then
7055  # Check if gcc -print-prog-name=ld gives a path.
7056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7057$as_echo_n "checking for ld used by $CC... " >&6; }
7058  case $host in
7059  *-*-mingw*)
7060    # gcc leaves a trailing carriage return, which upsets mingw
7061    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7062  *)
7063    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7064  esac
7065  case $ac_prog in
7066    # Accept absolute paths.
7067    [\\/]* | ?:[\\/]*)
7068      re_direlt='/[^/][^/]*/\.\./'
7069      # Canonicalize the pathname of ld
7070      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7071      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7072	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7073      done
7074      test -z "$LD" && LD=$ac_prog
7075      ;;
7076  "")
7077    # If it fails, then pretend we aren't using GCC.
7078    ac_prog=ld
7079    ;;
7080  *)
7081    # If it is relative, then search for the first ld in PATH.
7082    with_gnu_ld=unknown
7083    ;;
7084  esac
7085elif test yes = "$with_gnu_ld"; then
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7087$as_echo_n "checking for GNU ld... " >&6; }
7088else
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7090$as_echo_n "checking for non-GNU ld... " >&6; }
7091fi
7092if ${lt_cv_path_LD+:} false; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  if test -z "$LD"; then
7096  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7097  for ac_dir in $PATH; do
7098    IFS=$lt_save_ifs
7099    test -z "$ac_dir" && ac_dir=.
7100    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7101      lt_cv_path_LD=$ac_dir/$ac_prog
7102      # Check to see if the program is GNU ld.  I'd rather use --version,
7103      # but apparently some variants of GNU ld only accept -v.
7104      # Break only if it was the GNU/non-GNU ld that we prefer.
7105      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7106      *GNU* | *'with BFD'*)
7107	test no != "$with_gnu_ld" && break
7108	;;
7109      *)
7110	test yes != "$with_gnu_ld" && break
7111	;;
7112      esac
7113    fi
7114  done
7115  IFS=$lt_save_ifs
7116else
7117  lt_cv_path_LD=$LD # Let the user override the test with a path.
7118fi
7119fi
7120
7121LD=$lt_cv_path_LD
7122if test -n "$LD"; then
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7124$as_echo "$LD" >&6; }
7125else
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7132if ${lt_cv_prog_gnu_ld+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7136case `$LD -v 2>&1 </dev/null` in
7137*GNU* | *'with BFD'*)
7138  lt_cv_prog_gnu_ld=yes
7139  ;;
7140*)
7141  lt_cv_prog_gnu_ld=no
7142  ;;
7143esac
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7147with_gnu_ld=$lt_cv_prog_gnu_ld
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7158$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7159if ${lt_cv_path_NM+:} false; then :
7160  $as_echo_n "(cached) " >&6
7161else
7162  if test -n "$NM"; then
7163  # Let the user override the test.
7164  lt_cv_path_NM=$NM
7165else
7166  lt_nm_to_check=${ac_tool_prefix}nm
7167  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7168    lt_nm_to_check="$lt_nm_to_check nm"
7169  fi
7170  for lt_tmp_nm in $lt_nm_to_check; do
7171    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7172    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7173      IFS=$lt_save_ifs
7174      test -z "$ac_dir" && ac_dir=.
7175      tmp_nm=$ac_dir/$lt_tmp_nm
7176      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7177	# Check to see if the nm accepts a BSD-compat flag.
7178	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7179	#   nm: unknown option "B" ignored
7180	# Tru64's nm complains that /dev/null is an invalid object file
7181	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7182	case $build_os in
7183	mingw*) lt_bad_file=conftest.nm/nofile ;;
7184	*) lt_bad_file=/dev/null ;;
7185	esac
7186	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7187	*$lt_bad_file* | *'Invalid file or object type'*)
7188	  lt_cv_path_NM="$tmp_nm -B"
7189	  break 2
7190	  ;;
7191	*)
7192	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7193	  */dev/null*)
7194	    lt_cv_path_NM="$tmp_nm -p"
7195	    break 2
7196	    ;;
7197	  *)
7198	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7199	    continue # so that we can try to find one that supports BSD flags
7200	    ;;
7201	  esac
7202	  ;;
7203	esac
7204      fi
7205    done
7206    IFS=$lt_save_ifs
7207  done
7208  : ${lt_cv_path_NM=no}
7209fi
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7212$as_echo "$lt_cv_path_NM" >&6; }
7213if test no != "$lt_cv_path_NM"; then
7214  NM=$lt_cv_path_NM
7215else
7216  # Didn't find any BSD compatible name lister, look for dumpbin.
7217  if test -n "$DUMPBIN"; then :
7218    # Let the user override the test.
7219  else
7220    if test -n "$ac_tool_prefix"; then
7221  for ac_prog in dumpbin "link -dump"
7222  do
7223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if ${ac_cv_prog_DUMPBIN+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -n "$DUMPBIN"; then
7231  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238    for ac_exec_ext in '' $ac_executable_extensions; do
7239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245  done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250DUMPBIN=$ac_cv_prog_DUMPBIN
7251if test -n "$DUMPBIN"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7253$as_echo "$DUMPBIN" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259
7260    test -n "$DUMPBIN" && break
7261  done
7262fi
7263if test -z "$DUMPBIN"; then
7264  ac_ct_DUMPBIN=$DUMPBIN
7265  for ac_prog in dumpbin "link -dump"
7266do
7267  # Extract the first word of "$ac_prog", so it can be a program name with args.
7268set dummy $ac_prog; ac_word=$2
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270$as_echo_n "checking for $ac_word... " >&6; }
7271if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7272  $as_echo_n "(cached) " >&6
7273else
7274  if test -n "$ac_ct_DUMPBIN"; then
7275  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7276else
7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280  IFS=$as_save_IFS
7281  test -z "$as_dir" && as_dir=.
7282    for ac_exec_ext in '' $ac_executable_extensions; do
7283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286    break 2
7287  fi
7288done
7289  done
7290IFS=$as_save_IFS
7291
7292fi
7293fi
7294ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7295if test -n "$ac_ct_DUMPBIN"; then
7296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7297$as_echo "$ac_ct_DUMPBIN" >&6; }
7298else
7299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300$as_echo "no" >&6; }
7301fi
7302
7303
7304  test -n "$ac_ct_DUMPBIN" && break
7305done
7306
7307  if test "x$ac_ct_DUMPBIN" = x; then
7308    DUMPBIN=":"
7309  else
7310    case $cross_compiling:$ac_tool_warned in
7311yes:)
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314ac_tool_warned=yes ;;
7315esac
7316    DUMPBIN=$ac_ct_DUMPBIN
7317  fi
7318fi
7319
7320    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7321    *COFF*)
7322      DUMPBIN="$DUMPBIN -symbols -headers"
7323      ;;
7324    *)
7325      DUMPBIN=:
7326      ;;
7327    esac
7328  fi
7329
7330  if test : != "$DUMPBIN"; then
7331    NM=$DUMPBIN
7332  fi
7333fi
7334test -z "$NM" && NM=nm
7335
7336
7337
7338
7339
7340
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7342$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7343if ${lt_cv_nm_interface+:} false; then :
7344  $as_echo_n "(cached) " >&6
7345else
7346  lt_cv_nm_interface="BSD nm"
7347  echo "int some_variable = 0;" > conftest.$ac_ext
7348  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7349  (eval "$ac_compile" 2>conftest.err)
7350  cat conftest.err >&5
7351  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7352  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7353  cat conftest.err >&5
7354  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7355  cat conftest.out >&5
7356  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7357    lt_cv_nm_interface="MS dumpbin"
7358  fi
7359  rm -f conftest*
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7362$as_echo "$lt_cv_nm_interface" >&6; }
7363
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7365$as_echo_n "checking whether ln -s works... " >&6; }
7366LN_S=$as_ln_s
7367if test "$LN_S" = "ln -s"; then
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7369$as_echo "yes" >&6; }
7370else
7371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7372$as_echo "no, using $LN_S" >&6; }
7373fi
7374
7375# find the maximum length of command line arguments
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7377$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7378if ${lt_cv_sys_max_cmd_len+:} false; then :
7379  $as_echo_n "(cached) " >&6
7380else
7381    i=0
7382  teststring=ABCD
7383
7384  case $build_os in
7385  msdosdjgpp*)
7386    # On DJGPP, this test can blow up pretty badly due to problems in libc
7387    # (any single argument exceeding 2000 bytes causes a buffer overrun
7388    # during glob expansion).  Even if it were fixed, the result of this
7389    # check would be larger than it should be.
7390    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7391    ;;
7392
7393  gnu*)
7394    # Under GNU Hurd, this test is not required because there is
7395    # no limit to the length of command line arguments.
7396    # Libtool will interpret -1 as no limit whatsoever
7397    lt_cv_sys_max_cmd_len=-1;
7398    ;;
7399
7400  cygwin* | mingw* | cegcc*)
7401    # On Win9x/ME, this test blows up -- it succeeds, but takes
7402    # about 5 minutes as the teststring grows exponentially.
7403    # Worse, since 9x/ME are not pre-emptively multitasking,
7404    # you end up with a "frozen" computer, even though with patience
7405    # the test eventually succeeds (with a max line length of 256k).
7406    # Instead, let's just punt: use the minimum linelength reported by
7407    # all of the supported platforms: 8192 (on NT/2K/XP).
7408    lt_cv_sys_max_cmd_len=8192;
7409    ;;
7410
7411  mint*)
7412    # On MiNT this can take a long time and run out of memory.
7413    lt_cv_sys_max_cmd_len=8192;
7414    ;;
7415
7416  amigaos*)
7417    # On AmigaOS with pdksh, this test takes hours, literally.
7418    # So we just punt and use a minimum line length of 8192.
7419    lt_cv_sys_max_cmd_len=8192;
7420    ;;
7421
7422  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7423    # This has been around since 386BSD, at least.  Likely further.
7424    if test -x /sbin/sysctl; then
7425      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7426    elif test -x /usr/sbin/sysctl; then
7427      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7428    else
7429      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7430    fi
7431    # And add a safety zone
7432    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7433    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7434    ;;
7435
7436  interix*)
7437    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7438    lt_cv_sys_max_cmd_len=196608
7439    ;;
7440
7441  os2*)
7442    # The test takes a long time on OS/2.
7443    lt_cv_sys_max_cmd_len=8192
7444    ;;
7445
7446  osf*)
7447    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7448    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7449    # nice to cause kernel panics so lets avoid the loop below.
7450    # First set a reasonable default.
7451    lt_cv_sys_max_cmd_len=16384
7452    #
7453    if test -x /sbin/sysconfig; then
7454      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7455        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7456      esac
7457    fi
7458    ;;
7459  sco3.2v5*)
7460    lt_cv_sys_max_cmd_len=102400
7461    ;;
7462  sysv5* | sco5v6* | sysv4.2uw2*)
7463    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7464    if test -n "$kargmax"; then
7465      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7466    else
7467      lt_cv_sys_max_cmd_len=32768
7468    fi
7469    ;;
7470  *)
7471    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7472    if test -n "$lt_cv_sys_max_cmd_len" && \
7473       test undefined != "$lt_cv_sys_max_cmd_len"; then
7474      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7475      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7476    else
7477      # Make teststring a little bigger before we do anything with it.
7478      # a 1K string should be a reasonable start.
7479      for i in 1 2 3 4 5 6 7 8; do
7480        teststring=$teststring$teststring
7481      done
7482      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7483      # If test is not a shell built-in, we'll probably end up computing a
7484      # maximum length that is only half of the actual maximum length, but
7485      # we can't tell.
7486      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7487	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7488	      test 17 != "$i" # 1/2 MB should be enough
7489      do
7490        i=`expr $i + 1`
7491        teststring=$teststring$teststring
7492      done
7493      # Only check the string length outside the loop.
7494      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7495      teststring=
7496      # Add a significant safety factor because C++ compilers can tack on
7497      # massive amounts of additional arguments before passing them to the
7498      # linker.  It appears as though 1/2 is a usable value.
7499      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7500    fi
7501    ;;
7502  esac
7503
7504fi
7505
7506if test -n "$lt_cv_sys_max_cmd_len"; then
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7508$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7509else
7510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7511$as_echo "none" >&6; }
7512fi
7513max_cmd_len=$lt_cv_sys_max_cmd_len
7514
7515
7516
7517
7518
7519
7520: ${CP="cp -f"}
7521: ${MV="mv -f"}
7522: ${RM="rm -f"}
7523
7524if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7525  lt_unset=unset
7526else
7527  lt_unset=false
7528fi
7529
7530
7531
7532
7533
7534# test EBCDIC or ASCII
7535case `echo X|tr X '\101'` in
7536 A) # ASCII based system
7537    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7538  lt_SP2NL='tr \040 \012'
7539  lt_NL2SP='tr \015\012 \040\040'
7540  ;;
7541 *) # EBCDIC based system
7542  lt_SP2NL='tr \100 \n'
7543  lt_NL2SP='tr \r\n \100\100'
7544  ;;
7545esac
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7556$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7557if ${lt_cv_to_host_file_cmd+:} false; then :
7558  $as_echo_n "(cached) " >&6
7559else
7560  case $host in
7561  *-*-mingw* )
7562    case $build in
7563      *-*-mingw* ) # actually msys
7564        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7565        ;;
7566      *-*-cygwin* )
7567        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7568        ;;
7569      * ) # otherwise, assume *nix
7570        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7571        ;;
7572    esac
7573    ;;
7574  *-*-cygwin* )
7575    case $build in
7576      *-*-mingw* ) # actually msys
7577        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7578        ;;
7579      *-*-cygwin* )
7580        lt_cv_to_host_file_cmd=func_convert_file_noop
7581        ;;
7582      * ) # otherwise, assume *nix
7583        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7584        ;;
7585    esac
7586    ;;
7587  * ) # unhandled hosts (and "normal" native builds)
7588    lt_cv_to_host_file_cmd=func_convert_file_noop
7589    ;;
7590esac
7591
7592fi
7593
7594to_host_file_cmd=$lt_cv_to_host_file_cmd
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7596$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7597
7598
7599
7600
7601
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7603$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7604if ${lt_cv_to_tool_file_cmd+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  #assume ordinary cross tools, or native build.
7608lt_cv_to_tool_file_cmd=func_convert_file_noop
7609case $host in
7610  *-*-mingw* )
7611    case $build in
7612      *-*-mingw* ) # actually msys
7613        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7614        ;;
7615    esac
7616    ;;
7617esac
7618
7619fi
7620
7621to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7623$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7624
7625
7626
7627
7628
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7630$as_echo_n "checking for $LD option to reload object files... " >&6; }
7631if ${lt_cv_ld_reload_flag+:} false; then :
7632  $as_echo_n "(cached) " >&6
7633else
7634  lt_cv_ld_reload_flag='-r'
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7637$as_echo "$lt_cv_ld_reload_flag" >&6; }
7638reload_flag=$lt_cv_ld_reload_flag
7639case $reload_flag in
7640"" | " "*) ;;
7641*) reload_flag=" $reload_flag" ;;
7642esac
7643reload_cmds='$LD$reload_flag -o $output$reload_objs'
7644case $host_os in
7645  cygwin* | mingw* | pw32* | cegcc*)
7646    if test yes != "$GCC"; then
7647      reload_cmds=false
7648    fi
7649    ;;
7650  darwin*)
7651    if test yes = "$GCC"; then
7652      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7653    else
7654      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7655    fi
7656    ;;
7657esac
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667if test -n "$ac_tool_prefix"; then
7668  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7669set dummy ${ac_tool_prefix}objdump; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if ${ac_cv_prog_OBJDUMP+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  if test -n "$OBJDUMP"; then
7676  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681  IFS=$as_save_IFS
7682  test -z "$as_dir" && as_dir=.
7683    for ac_exec_ext in '' $ac_executable_extensions; do
7684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687    break 2
7688  fi
7689done
7690  done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695OBJDUMP=$ac_cv_prog_OBJDUMP
7696if test -n "$OBJDUMP"; then
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7698$as_echo "$OBJDUMP" >&6; }
7699else
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704
7705fi
7706if test -z "$ac_cv_prog_OBJDUMP"; then
7707  ac_ct_OBJDUMP=$OBJDUMP
7708  # Extract the first word of "objdump", so it can be a program name with args.
7709set dummy objdump; ac_word=$2
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711$as_echo_n "checking for $ac_word... " >&6; }
7712if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7713  $as_echo_n "(cached) " >&6
7714else
7715  if test -n "$ac_ct_OBJDUMP"; then
7716  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721  IFS=$as_save_IFS
7722  test -z "$as_dir" && as_dir=.
7723    for ac_exec_ext in '' $ac_executable_extensions; do
7724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727    break 2
7728  fi
7729done
7730  done
7731IFS=$as_save_IFS
7732
7733fi
7734fi
7735ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7736if test -n "$ac_ct_OBJDUMP"; then
7737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7738$as_echo "$ac_ct_OBJDUMP" >&6; }
7739else
7740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742fi
7743
7744  if test "x$ac_ct_OBJDUMP" = x; then
7745    OBJDUMP="false"
7746  else
7747    case $cross_compiling:$ac_tool_warned in
7748yes:)
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751ac_tool_warned=yes ;;
7752esac
7753    OBJDUMP=$ac_ct_OBJDUMP
7754  fi
7755else
7756  OBJDUMP="$ac_cv_prog_OBJDUMP"
7757fi
7758
7759test -z "$OBJDUMP" && OBJDUMP=objdump
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7770$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7771if ${lt_cv_deplibs_check_method+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  lt_cv_file_magic_cmd='$MAGIC_CMD'
7775lt_cv_file_magic_test_file=
7776lt_cv_deplibs_check_method='unknown'
7777# Need to set the preceding variable on all platforms that support
7778# interlibrary dependencies.
7779# 'none' -- dependencies not supported.
7780# 'unknown' -- same as none, but documents that we really don't know.
7781# 'pass_all' -- all dependencies passed with no checks.
7782# 'test_compile' -- check by making test program.
7783# 'file_magic [[regex]]' -- check by looking for files in library path
7784# that responds to the $file_magic_cmd with a given extended regex.
7785# If you have 'file' or equivalent on your system and you're not sure
7786# whether 'pass_all' will *always* work, you probably want this one.
7787
7788case $host_os in
7789aix[4-9]*)
7790  lt_cv_deplibs_check_method=pass_all
7791  ;;
7792
7793beos*)
7794  lt_cv_deplibs_check_method=pass_all
7795  ;;
7796
7797bsdi[45]*)
7798  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7799  lt_cv_file_magic_cmd='/usr/bin/file -L'
7800  lt_cv_file_magic_test_file=/shlib/libc.so
7801  ;;
7802
7803cygwin*)
7804  # func_win32_libid is a shell function defined in ltmain.sh
7805  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7806  lt_cv_file_magic_cmd='func_win32_libid'
7807  ;;
7808
7809mingw* | pw32*)
7810  # Base MSYS/MinGW do not provide the 'file' command needed by
7811  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7812  # unless we find 'file', for example because we are cross-compiling.
7813  if ( file / ) >/dev/null 2>&1; then
7814    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7815    lt_cv_file_magic_cmd='func_win32_libid'
7816  else
7817    # Keep this pattern in sync with the one in func_win32_libid.
7818    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7819    lt_cv_file_magic_cmd='$OBJDUMP -f'
7820  fi
7821  ;;
7822
7823cegcc*)
7824  # use the weaker test based on 'objdump'. See mingw*.
7825  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7826  lt_cv_file_magic_cmd='$OBJDUMP -f'
7827  ;;
7828
7829darwin* | rhapsody*)
7830  lt_cv_deplibs_check_method=pass_all
7831  ;;
7832
7833freebsd* | dragonfly*)
7834  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7835    case $host_cpu in
7836    i*86 )
7837      # Not sure whether the presence of OpenBSD here was a mistake.
7838      # Let's accept both of them until this is cleared up.
7839      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7840      lt_cv_file_magic_cmd=/usr/bin/file
7841      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7842      ;;
7843    esac
7844  else
7845    lt_cv_deplibs_check_method=pass_all
7846  fi
7847  ;;
7848
7849haiku*)
7850  lt_cv_deplibs_check_method=pass_all
7851  ;;
7852
7853hpux10.20* | hpux11*)
7854  lt_cv_file_magic_cmd=/usr/bin/file
7855  case $host_cpu in
7856  ia64*)
7857    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7858    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7859    ;;
7860  hppa*64*)
7861    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]'
7862    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7863    ;;
7864  *)
7865    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7866    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7867    ;;
7868  esac
7869  ;;
7870
7871interix[3-9]*)
7872  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7873  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7874  ;;
7875
7876irix5* | irix6* | nonstopux*)
7877  case $LD in
7878  *-32|*"-32 ") libmagic=32-bit;;
7879  *-n32|*"-n32 ") libmagic=N32;;
7880  *-64|*"-64 ") libmagic=64-bit;;
7881  *) libmagic=never-match;;
7882  esac
7883  lt_cv_deplibs_check_method=pass_all
7884  ;;
7885
7886# This must be glibc/ELF.
7887linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7888  lt_cv_deplibs_check_method=pass_all
7889  ;;
7890
7891netbsd*)
7892  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7894  else
7895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7896  fi
7897  ;;
7898
7899newos6*)
7900  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7901  lt_cv_file_magic_cmd=/usr/bin/file
7902  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7903  ;;
7904
7905*nto* | *qnx*)
7906  lt_cv_deplibs_check_method=pass_all
7907  ;;
7908
7909openbsd* | bitrig*)
7910  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7912  else
7913    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7914  fi
7915  ;;
7916
7917osf3* | osf4* | osf5*)
7918  lt_cv_deplibs_check_method=pass_all
7919  ;;
7920
7921rdos*)
7922  lt_cv_deplibs_check_method=pass_all
7923  ;;
7924
7925solaris*)
7926  lt_cv_deplibs_check_method=pass_all
7927  ;;
7928
7929sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7930  lt_cv_deplibs_check_method=pass_all
7931  ;;
7932
7933sysv4 | sysv4.3*)
7934  case $host_vendor in
7935  motorola)
7936    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]'
7937    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7938    ;;
7939  ncr)
7940    lt_cv_deplibs_check_method=pass_all
7941    ;;
7942  sequent)
7943    lt_cv_file_magic_cmd='/bin/file'
7944    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7945    ;;
7946  sni)
7947    lt_cv_file_magic_cmd='/bin/file'
7948    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7949    lt_cv_file_magic_test_file=/lib/libc.so
7950    ;;
7951  siemens)
7952    lt_cv_deplibs_check_method=pass_all
7953    ;;
7954  pc)
7955    lt_cv_deplibs_check_method=pass_all
7956    ;;
7957  esac
7958  ;;
7959
7960tpf*)
7961  lt_cv_deplibs_check_method=pass_all
7962  ;;
7963os2*)
7964  lt_cv_deplibs_check_method=pass_all
7965  ;;
7966esac
7967
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7970$as_echo "$lt_cv_deplibs_check_method" >&6; }
7971
7972file_magic_glob=
7973want_nocaseglob=no
7974if test "$build" = "$host"; then
7975  case $host_os in
7976  mingw* | pw32*)
7977    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7978      want_nocaseglob=yes
7979    else
7980      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7981    fi
7982    ;;
7983  esac
7984fi
7985
7986file_magic_cmd=$lt_cv_file_magic_cmd
7987deplibs_check_method=$lt_cv_deplibs_check_method
7988test -z "$deplibs_check_method" && deplibs_check_method=unknown
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011if test -n "$ac_tool_prefix"; then
8012  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8013set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if ${ac_cv_prog_DLLTOOL+:} false; then :
8017  $as_echo_n "(cached) " >&6
8018else
8019  if test -n "$DLLTOOL"; then
8020  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025  IFS=$as_save_IFS
8026  test -z "$as_dir" && as_dir=.
8027    for ac_exec_ext in '' $ac_executable_extensions; do
8028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031    break 2
8032  fi
8033done
8034  done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039DLLTOOL=$ac_cv_prog_DLLTOOL
8040if test -n "$DLLTOOL"; then
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8042$as_echo "$DLLTOOL" >&6; }
8043else
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048
8049fi
8050if test -z "$ac_cv_prog_DLLTOOL"; then
8051  ac_ct_DLLTOOL=$DLLTOOL
8052  # Extract the first word of "dlltool", so it can be a program name with args.
8053set dummy dlltool; ac_word=$2
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
8056if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  if test -n "$ac_ct_DLLTOOL"; then
8060  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065  IFS=$as_save_IFS
8066  test -z "$as_dir" && as_dir=.
8067    for ac_exec_ext in '' $ac_executable_extensions; do
8068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071    break 2
8072  fi
8073done
8074  done
8075IFS=$as_save_IFS
8076
8077fi
8078fi
8079ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8080if test -n "$ac_ct_DLLTOOL"; then
8081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8082$as_echo "$ac_ct_DLLTOOL" >&6; }
8083else
8084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085$as_echo "no" >&6; }
8086fi
8087
8088  if test "x$ac_ct_DLLTOOL" = x; then
8089    DLLTOOL="false"
8090  else
8091    case $cross_compiling:$ac_tool_warned in
8092yes:)
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8095ac_tool_warned=yes ;;
8096esac
8097    DLLTOOL=$ac_ct_DLLTOOL
8098  fi
8099else
8100  DLLTOOL="$ac_cv_prog_DLLTOOL"
8101fi
8102
8103test -z "$DLLTOOL" && DLLTOOL=dlltool
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8115$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8116if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  lt_cv_sharedlib_from_linklib_cmd='unknown'
8120
8121case $host_os in
8122cygwin* | mingw* | pw32* | cegcc*)
8123  # two different shell functions defined in ltmain.sh;
8124  # decide which one to use based on capabilities of $DLLTOOL
8125  case `$DLLTOOL --help 2>&1` in
8126  *--identify-strict*)
8127    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8128    ;;
8129  *)
8130    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8131    ;;
8132  esac
8133  ;;
8134*)
8135  # fallback: assume linklib IS sharedlib
8136  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8137  ;;
8138esac
8139
8140fi
8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8142$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8143sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8144test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8145
8146
8147
8148
8149
8150
8151
8152if test -n "$ac_tool_prefix"; then
8153  for ac_prog in ar
8154  do
8155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158$as_echo_n "checking for $ac_word... " >&6; }
8159if ${ac_cv_prog_AR+:} false; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  if test -n "$AR"; then
8163  ac_cv_prog_AR="$AR" # Let the user override the test.
8164else
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168  IFS=$as_save_IFS
8169  test -z "$as_dir" && as_dir=.
8170    for ac_exec_ext in '' $ac_executable_extensions; do
8171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174    break 2
8175  fi
8176done
8177  done
8178IFS=$as_save_IFS
8179
8180fi
8181fi
8182AR=$ac_cv_prog_AR
8183if test -n "$AR"; then
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185$as_echo "$AR" >&6; }
8186else
8187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188$as_echo "no" >&6; }
8189fi
8190
8191
8192    test -n "$AR" && break
8193  done
8194fi
8195if test -z "$AR"; then
8196  ac_ct_AR=$AR
8197  for ac_prog in ar
8198do
8199  # Extract the first word of "$ac_prog", so it can be a program name with args.
8200set dummy $ac_prog; ac_word=$2
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if ${ac_cv_prog_ac_ct_AR+:} false; then :
8204  $as_echo_n "(cached) " >&6
8205else
8206  if test -n "$ac_ct_AR"; then
8207  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212  IFS=$as_save_IFS
8213  test -z "$as_dir" && as_dir=.
8214    for ac_exec_ext in '' $ac_executable_extensions; do
8215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216    ac_cv_prog_ac_ct_AR="$ac_prog"
8217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218    break 2
8219  fi
8220done
8221  done
8222IFS=$as_save_IFS
8223
8224fi
8225fi
8226ac_ct_AR=$ac_cv_prog_ac_ct_AR
8227if test -n "$ac_ct_AR"; then
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8229$as_echo "$ac_ct_AR" >&6; }
8230else
8231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235
8236  test -n "$ac_ct_AR" && break
8237done
8238
8239  if test "x$ac_ct_AR" = x; then
8240    AR="false"
8241  else
8242    case $cross_compiling:$ac_tool_warned in
8243yes:)
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246ac_tool_warned=yes ;;
8247esac
8248    AR=$ac_ct_AR
8249  fi
8250fi
8251
8252: ${AR=ar}
8253: ${AR_FLAGS=cru}
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8266$as_echo_n "checking for archiver @FILE support... " >&6; }
8267if ${lt_cv_ar_at_file+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270  lt_cv_ar_at_file=no
8271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_compile "$LINENO"; then :
8283  echo conftest.$ac_objext > conftest.lst
8284      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8285      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8286  (eval $lt_ar_try) 2>&5
8287  ac_status=$?
8288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8289  test $ac_status = 0; }
8290      if test 0 -eq "$ac_status"; then
8291	# Ensure the archiver fails upon bogus file names.
8292	rm -f conftest.$ac_objext libconftest.a
8293	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8294  (eval $lt_ar_try) 2>&5
8295  ac_status=$?
8296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297  test $ac_status = 0; }
8298	if test 0 -ne "$ac_status"; then
8299          lt_cv_ar_at_file=@
8300        fi
8301      fi
8302      rm -f conftest.* libconftest.a
8303
8304fi
8305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8309$as_echo "$lt_cv_ar_at_file" >&6; }
8310
8311if test no = "$lt_cv_ar_at_file"; then
8312  archiver_list_spec=
8313else
8314  archiver_list_spec=$lt_cv_ar_at_file
8315fi
8316
8317
8318
8319
8320
8321
8322
8323if test -n "$ac_tool_prefix"; then
8324  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8325set dummy ${ac_tool_prefix}strip; ac_word=$2
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if ${ac_cv_prog_STRIP+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  if test -n "$STRIP"; then
8332  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337  IFS=$as_save_IFS
8338  test -z "$as_dir" && as_dir=.
8339    for ac_exec_ext in '' $ac_executable_extensions; do
8340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343    break 2
8344  fi
8345done
8346  done
8347IFS=$as_save_IFS
8348
8349fi
8350fi
8351STRIP=$ac_cv_prog_STRIP
8352if test -n "$STRIP"; then
8353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8354$as_echo "$STRIP" >&6; }
8355else
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
8358fi
8359
8360
8361fi
8362if test -z "$ac_cv_prog_STRIP"; then
8363  ac_ct_STRIP=$STRIP
8364  # Extract the first word of "strip", so it can be a program name with args.
8365set dummy strip; ac_word=$2
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367$as_echo_n "checking for $ac_word... " >&6; }
8368if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  if test -n "$ac_ct_STRIP"; then
8372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8373else
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377  IFS=$as_save_IFS
8378  test -z "$as_dir" && as_dir=.
8379    for ac_exec_ext in '' $ac_executable_extensions; do
8380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381    ac_cv_prog_ac_ct_STRIP="strip"
8382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383    break 2
8384  fi
8385done
8386  done
8387IFS=$as_save_IFS
8388
8389fi
8390fi
8391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8392if test -n "$ac_ct_STRIP"; then
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8394$as_echo "$ac_ct_STRIP" >&6; }
8395else
8396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
8398fi
8399
8400  if test "x$ac_ct_STRIP" = x; then
8401    STRIP=":"
8402  else
8403    case $cross_compiling:$ac_tool_warned in
8404yes:)
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8407ac_tool_warned=yes ;;
8408esac
8409    STRIP=$ac_ct_STRIP
8410  fi
8411else
8412  STRIP="$ac_cv_prog_STRIP"
8413fi
8414
8415test -z "$STRIP" && STRIP=:
8416
8417
8418
8419
8420
8421
8422if test -n "$ac_tool_prefix"; then
8423  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8424set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426$as_echo_n "checking for $ac_word... " >&6; }
8427if ${ac_cv_prog_RANLIB+:} false; then :
8428  $as_echo_n "(cached) " >&6
8429else
8430  if test -n "$RANLIB"; then
8431  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8432else
8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436  IFS=$as_save_IFS
8437  test -z "$as_dir" && as_dir=.
8438    for ac_exec_ext in '' $ac_executable_extensions; do
8439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442    break 2
8443  fi
8444done
8445  done
8446IFS=$as_save_IFS
8447
8448fi
8449fi
8450RANLIB=$ac_cv_prog_RANLIB
8451if test -n "$RANLIB"; then
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8453$as_echo "$RANLIB" >&6; }
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456$as_echo "no" >&6; }
8457fi
8458
8459
8460fi
8461if test -z "$ac_cv_prog_RANLIB"; then
8462  ac_ct_RANLIB=$RANLIB
8463  # Extract the first word of "ranlib", so it can be a program name with args.
8464set dummy ranlib; ac_word=$2
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466$as_echo_n "checking for $ac_word... " >&6; }
8467if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  if test -n "$ac_ct_RANLIB"; then
8471  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8472else
8473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476  IFS=$as_save_IFS
8477  test -z "$as_dir" && as_dir=.
8478    for ac_exec_ext in '' $ac_executable_extensions; do
8479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480    ac_cv_prog_ac_ct_RANLIB="ranlib"
8481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482    break 2
8483  fi
8484done
8485  done
8486IFS=$as_save_IFS
8487
8488fi
8489fi
8490ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8491if test -n "$ac_ct_RANLIB"; then
8492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8493$as_echo "$ac_ct_RANLIB" >&6; }
8494else
8495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496$as_echo "no" >&6; }
8497fi
8498
8499  if test "x$ac_ct_RANLIB" = x; then
8500    RANLIB=":"
8501  else
8502    case $cross_compiling:$ac_tool_warned in
8503yes:)
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8506ac_tool_warned=yes ;;
8507esac
8508    RANLIB=$ac_ct_RANLIB
8509  fi
8510else
8511  RANLIB="$ac_cv_prog_RANLIB"
8512fi
8513
8514test -z "$RANLIB" && RANLIB=:
8515
8516
8517
8518
8519
8520
8521# Determine commands to create old-style static archives.
8522old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8523old_postinstall_cmds='chmod 644 $oldlib'
8524old_postuninstall_cmds=
8525
8526if test -n "$RANLIB"; then
8527  case $host_os in
8528  bitrig* | openbsd*)
8529    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8530    ;;
8531  *)
8532    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8533    ;;
8534  esac
8535  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8536fi
8537
8538case $host_os in
8539  darwin*)
8540    lock_old_archive_extraction=yes ;;
8541  *)
8542    lock_old_archive_extraction=no ;;
8543esac
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565for ac_prog in gawk mawk nawk awk
8566do
8567  # Extract the first word of "$ac_prog", so it can be a program name with args.
8568set dummy $ac_prog; ac_word=$2
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570$as_echo_n "checking for $ac_word... " >&6; }
8571if ${ac_cv_prog_AWK+:} false; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574  if test -n "$AWK"; then
8575  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8576else
8577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578for as_dir in $PATH
8579do
8580  IFS=$as_save_IFS
8581  test -z "$as_dir" && as_dir=.
8582    for ac_exec_ext in '' $ac_executable_extensions; do
8583  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584    ac_cv_prog_AWK="$ac_prog"
8585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586    break 2
8587  fi
8588done
8589  done
8590IFS=$as_save_IFS
8591
8592fi
8593fi
8594AWK=$ac_cv_prog_AWK
8595if test -n "$AWK"; then
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8597$as_echo "$AWK" >&6; }
8598else
8599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
8601fi
8602
8603
8604  test -n "$AWK" && break
8605done
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625# If no C compiler was specified, use CC.
8626LTCC=${LTCC-"$CC"}
8627
8628# If no C compiler flags were specified, use CFLAGS.
8629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8630
8631# Allow CC to be a program name with arguments.
8632compiler=$CC
8633
8634
8635# Check for command to grab the raw symbol name followed by C symbol from nm.
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8637$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8638if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8639  $as_echo_n "(cached) " >&6
8640else
8641
8642# These are sane defaults that work on at least a few old systems.
8643# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8644
8645# Character class describing NM global symbol codes.
8646symcode='[BCDEGRST]'
8647
8648# Regexp to match symbols that can be accessed directly from C.
8649sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8650
8651# Define system-specific variables.
8652case $host_os in
8653aix*)
8654  symcode='[BCDT]'
8655  ;;
8656cygwin* | mingw* | pw32* | cegcc*)
8657  symcode='[ABCDGISTW]'
8658  ;;
8659hpux*)
8660  if test ia64 = "$host_cpu"; then
8661    symcode='[ABCDEGRST]'
8662  fi
8663  ;;
8664irix* | nonstopux*)
8665  symcode='[BCDEGRST]'
8666  ;;
8667osf*)
8668  symcode='[BCDEGQRST]'
8669  ;;
8670solaris*)
8671  symcode='[BDRT]'
8672  ;;
8673sco3.2v5*)
8674  symcode='[DT]'
8675  ;;
8676sysv4.2uw2*)
8677  symcode='[DT]'
8678  ;;
8679sysv5* | sco5v6* | unixware* | OpenUNIX*)
8680  symcode='[ABDT]'
8681  ;;
8682sysv4)
8683  symcode='[DFNSTU]'
8684  ;;
8685esac
8686
8687# If we're using GNU nm, then use its standard symbol codes.
8688case `$NM -V 2>&1` in
8689*GNU* | *'with BFD'*)
8690  symcode='[ABCDGIRSTW]' ;;
8691esac
8692
8693if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8694  # Gets list of data symbols to import.
8695  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8696  # Adjust the below global symbol transforms to fixup imported variables.
8697  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8698  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8699  lt_c_name_lib_hook="\
8700  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8701  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8702else
8703  # Disable hooks by default.
8704  lt_cv_sys_global_symbol_to_import=
8705  lt_cdecl_hook=
8706  lt_c_name_hook=
8707  lt_c_name_lib_hook=
8708fi
8709
8710# Transform an extracted symbol line into a proper C declaration.
8711# Some systems (esp. on ia64) link data and code symbols differently,
8712# so use this general approach.
8713lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8714$lt_cdecl_hook\
8715" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8716" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8717
8718# Transform an extracted symbol line into symbol name and symbol address
8719lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8720$lt_c_name_hook\
8721" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8722" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8723
8724# Transform an extracted symbol line into symbol name with lib prefix and
8725# symbol address.
8726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8727$lt_c_name_lib_hook\
8728" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8729" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8730" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8731
8732# Handle CRLF in mingw tool chain
8733opt_cr=
8734case $build_os in
8735mingw*)
8736  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8737  ;;
8738esac
8739
8740# Try without a prefix underscore, then with it.
8741for ac_symprfx in "" "_"; do
8742
8743  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8744  symxfrm="\\1 $ac_symprfx\\2 \\2"
8745
8746  # Write the raw and C identifiers.
8747  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8748    # Fake it for dumpbin and say T for any non-static function,
8749    # D for any global variable and I for any imported variable.
8750    # Also find C++ and __fastcall symbols from MSVC++,
8751    # which start with @ or ?.
8752    lt_cv_sys_global_symbol_pipe="$AWK '"\
8753"     {last_section=section; section=\$ 3};"\
8754"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8755"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8756"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8757"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8758"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8759"     \$ 0!~/External *\|/{next};"\
8760"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8761"     {if(hide[section]) next};"\
8762"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8763"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8764"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8765"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8766"     ' prfx=^$ac_symprfx"
8767  else
8768    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8769  fi
8770  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8771
8772  # Check to see that the pipe works correctly.
8773  pipe_works=no
8774
8775  rm -f conftest*
8776  cat > conftest.$ac_ext <<_LT_EOF
8777#ifdef __cplusplus
8778extern "C" {
8779#endif
8780char nm_test_var;
8781void nm_test_func(void);
8782void nm_test_func(void){}
8783#ifdef __cplusplus
8784}
8785#endif
8786int main(){nm_test_var='a';nm_test_func();return(0);}
8787_LT_EOF
8788
8789  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8790  (eval $ac_compile) 2>&5
8791  ac_status=$?
8792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8793  test $ac_status = 0; }; then
8794    # Now try to grab the symbols.
8795    nlist=conftest.nm
8796    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8797  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8798  ac_status=$?
8799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8800  test $ac_status = 0; } && test -s "$nlist"; then
8801      # Try sorting and uniquifying the output.
8802      if sort "$nlist" | uniq > "$nlist"T; then
8803	mv -f "$nlist"T "$nlist"
8804      else
8805	rm -f "$nlist"T
8806      fi
8807
8808      # Make sure that we snagged all the symbols we need.
8809      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8810	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8811	  cat <<_LT_EOF > conftest.$ac_ext
8812/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8813#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8814/* DATA imports from DLLs on WIN32 can't be const, because runtime
8815   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8816# define LT_DLSYM_CONST
8817#elif defined __osf__
8818/* This system does not cope well with relocations in const data.  */
8819# define LT_DLSYM_CONST
8820#else
8821# define LT_DLSYM_CONST const
8822#endif
8823
8824#ifdef __cplusplus
8825extern "C" {
8826#endif
8827
8828_LT_EOF
8829	  # Now generate the symbol file.
8830	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8831
8832	  cat <<_LT_EOF >> conftest.$ac_ext
8833
8834/* The mapping between symbol names and symbols.  */
8835LT_DLSYM_CONST struct {
8836  const char *name;
8837  void       *address;
8838}
8839lt__PROGRAM__LTX_preloaded_symbols[] =
8840{
8841  { "@PROGRAM@", (void *) 0 },
8842_LT_EOF
8843	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8844	  cat <<\_LT_EOF >> conftest.$ac_ext
8845  {0, (void *) 0}
8846};
8847
8848/* This works around a problem in FreeBSD linker */
8849#ifdef FREEBSD_WORKAROUND
8850static const void *lt_preloaded_setup() {
8851  return lt__PROGRAM__LTX_preloaded_symbols;
8852}
8853#endif
8854
8855#ifdef __cplusplus
8856}
8857#endif
8858_LT_EOF
8859	  # Now try linking the two files.
8860	  mv conftest.$ac_objext conftstm.$ac_objext
8861	  lt_globsym_save_LIBS=$LIBS
8862	  lt_globsym_save_CFLAGS=$CFLAGS
8863	  LIBS=conftstm.$ac_objext
8864	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8865	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8866  (eval $ac_link) 2>&5
8867  ac_status=$?
8868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8869  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8870	    pipe_works=yes
8871	  fi
8872	  LIBS=$lt_globsym_save_LIBS
8873	  CFLAGS=$lt_globsym_save_CFLAGS
8874	else
8875	  echo "cannot find nm_test_func in $nlist" >&5
8876	fi
8877      else
8878	echo "cannot find nm_test_var in $nlist" >&5
8879      fi
8880    else
8881      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8882    fi
8883  else
8884    echo "$progname: failed program was:" >&5
8885    cat conftest.$ac_ext >&5
8886  fi
8887  rm -rf conftest* conftst*
8888
8889  # Do not use the global_symbol_pipe unless it works.
8890  if test yes = "$pipe_works"; then
8891    break
8892  else
8893    lt_cv_sys_global_symbol_pipe=
8894  fi
8895done
8896
8897fi
8898
8899if test -z "$lt_cv_sys_global_symbol_pipe"; then
8900  lt_cv_sys_global_symbol_to_cdecl=
8901fi
8902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8904$as_echo "failed" >&6; }
8905else
8906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8907$as_echo "ok" >&6; }
8908fi
8909
8910# Response file support.
8911if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8912  nm_file_list_spec='@'
8913elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8914  nm_file_list_spec='@'
8915fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8954$as_echo_n "checking for sysroot... " >&6; }
8955
8956# Check whether --with-sysroot was given.
8957if test "${with_sysroot+set}" = set; then :
8958  withval=$with_sysroot;
8959else
8960  with_sysroot=no
8961fi
8962
8963
8964lt_sysroot=
8965case $with_sysroot in #(
8966 yes)
8967   if test yes = "$GCC"; then
8968     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8969   fi
8970   ;; #(
8971 /*)
8972   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8973   ;; #(
8974 no|'')
8975   ;; #(
8976 *)
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8978$as_echo "$with_sysroot" >&6; }
8979   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8980   ;;
8981esac
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8984$as_echo "${lt_sysroot:-no}" >&6; }
8985
8986
8987
8988
8989
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8991$as_echo_n "checking for a working dd... " >&6; }
8992if ${ac_cv_path_lt_DD+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  printf 0123456789abcdef0123456789abcdef >conftest.i
8996cat conftest.i conftest.i >conftest2.i
8997: ${lt_DD:=$DD}
8998if test -z "$lt_DD"; then
8999  ac_path_lt_DD_found=false
9000  # Loop through the user's path and test for each of PROGNAME-LIST
9001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002for as_dir in $PATH
9003do
9004  IFS=$as_save_IFS
9005  test -z "$as_dir" && as_dir=.
9006    for ac_prog in dd; do
9007    for ac_exec_ext in '' $ac_executable_extensions; do
9008      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9009      as_fn_executable_p "$ac_path_lt_DD" || continue
9010if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9011  cmp -s conftest.i conftest.out \
9012  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9013fi
9014      $ac_path_lt_DD_found && break 3
9015    done
9016  done
9017  done
9018IFS=$as_save_IFS
9019  if test -z "$ac_cv_path_lt_DD"; then
9020    :
9021  fi
9022else
9023  ac_cv_path_lt_DD=$lt_DD
9024fi
9025
9026rm -f conftest.i conftest2.i conftest.out
9027fi
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9029$as_echo "$ac_cv_path_lt_DD" >&6; }
9030
9031
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9033$as_echo_n "checking how to truncate binary pipes... " >&6; }
9034if ${lt_cv_truncate_bin+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  printf 0123456789abcdef0123456789abcdef >conftest.i
9038cat conftest.i conftest.i >conftest2.i
9039lt_cv_truncate_bin=
9040if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9041  cmp -s conftest.i conftest.out \
9042  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9043fi
9044rm -f conftest.i conftest2.i conftest.out
9045test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9046fi
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9048$as_echo "$lt_cv_truncate_bin" >&6; }
9049
9050
9051
9052
9053
9054
9055
9056# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9057func_cc_basename ()
9058{
9059    for cc_temp in $*""; do
9060      case $cc_temp in
9061        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9062        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9063        \-*) ;;
9064        *) break;;
9065      esac
9066    done
9067    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9068}
9069
9070# Check whether --enable-libtool-lock was given.
9071if test "${enable_libtool_lock+set}" = set; then :
9072  enableval=$enable_libtool_lock;
9073fi
9074
9075test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9076
9077# Some flags need to be propagated to the compiler or linker for good
9078# libtool support.
9079case $host in
9080ia64-*-hpux*)
9081  # Find out what ABI is being produced by ac_compile, and set mode
9082  # options accordingly.
9083  echo 'int i;' > conftest.$ac_ext
9084  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9085  (eval $ac_compile) 2>&5
9086  ac_status=$?
9087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9088  test $ac_status = 0; }; then
9089    case `/usr/bin/file conftest.$ac_objext` in
9090      *ELF-32*)
9091	HPUX_IA64_MODE=32
9092	;;
9093      *ELF-64*)
9094	HPUX_IA64_MODE=64
9095	;;
9096    esac
9097  fi
9098  rm -rf conftest*
9099  ;;
9100*-*-irix6*)
9101  # Find out what ABI is being produced by ac_compile, and set linker
9102  # options accordingly.
9103  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9105  (eval $ac_compile) 2>&5
9106  ac_status=$?
9107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9108  test $ac_status = 0; }; then
9109    if test yes = "$lt_cv_prog_gnu_ld"; then
9110      case `/usr/bin/file conftest.$ac_objext` in
9111	*32-bit*)
9112	  LD="${LD-ld} -melf32bsmip"
9113	  ;;
9114	*N32*)
9115	  LD="${LD-ld} -melf32bmipn32"
9116	  ;;
9117	*64-bit*)
9118	  LD="${LD-ld} -melf64bmip"
9119	;;
9120      esac
9121    else
9122      case `/usr/bin/file conftest.$ac_objext` in
9123	*32-bit*)
9124	  LD="${LD-ld} -32"
9125	  ;;
9126	*N32*)
9127	  LD="${LD-ld} -n32"
9128	  ;;
9129	*64-bit*)
9130	  LD="${LD-ld} -64"
9131	  ;;
9132      esac
9133    fi
9134  fi
9135  rm -rf conftest*
9136  ;;
9137
9138mips64*-*linux*)
9139  # Find out what ABI is being produced by ac_compile, and set linker
9140  # options accordingly.
9141  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9142  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9143  (eval $ac_compile) 2>&5
9144  ac_status=$?
9145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9146  test $ac_status = 0; }; then
9147    emul=elf
9148    case `/usr/bin/file conftest.$ac_objext` in
9149      *32-bit*)
9150	emul="${emul}32"
9151	;;
9152      *64-bit*)
9153	emul="${emul}64"
9154	;;
9155    esac
9156    case `/usr/bin/file conftest.$ac_objext` in
9157      *MSB*)
9158	emul="${emul}btsmip"
9159	;;
9160      *LSB*)
9161	emul="${emul}ltsmip"
9162	;;
9163    esac
9164    case `/usr/bin/file conftest.$ac_objext` in
9165      *N32*)
9166	emul="${emul}n32"
9167	;;
9168    esac
9169    LD="${LD-ld} -m $emul"
9170  fi
9171  rm -rf conftest*
9172  ;;
9173
9174x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9175s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9176  # Find out what ABI is being produced by ac_compile, and set linker
9177  # options accordingly.  Note that the listed cases only cover the
9178  # situations where additional linker options are needed (such as when
9179  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9180  # vice versa); the common cases where no linker options are needed do
9181  # not appear in the list.
9182  echo 'int i;' > conftest.$ac_ext
9183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9184  (eval $ac_compile) 2>&5
9185  ac_status=$?
9186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9187  test $ac_status = 0; }; then
9188    case `/usr/bin/file conftest.o` in
9189      *32-bit*)
9190	case $host in
9191	  x86_64-*kfreebsd*-gnu)
9192	    LD="${LD-ld} -m elf_i386_fbsd"
9193	    ;;
9194	  x86_64-*linux*)
9195	    case `/usr/bin/file conftest.o` in
9196	      *x86-64*)
9197		LD="${LD-ld} -m elf32_x86_64"
9198		;;
9199	      *)
9200		LD="${LD-ld} -m elf_i386"
9201		;;
9202	    esac
9203	    ;;
9204	  powerpc64le-*linux*)
9205	    LD="${LD-ld} -m elf32lppclinux"
9206	    ;;
9207	  powerpc64-*linux*)
9208	    LD="${LD-ld} -m elf32ppclinux"
9209	    ;;
9210	  s390x-*linux*)
9211	    LD="${LD-ld} -m elf_s390"
9212	    ;;
9213	  sparc64-*linux*)
9214	    LD="${LD-ld} -m elf32_sparc"
9215	    ;;
9216	esac
9217	;;
9218      *64-bit*)
9219	case $host in
9220	  x86_64-*kfreebsd*-gnu)
9221	    LD="${LD-ld} -m elf_x86_64_fbsd"
9222	    ;;
9223	  x86_64-*linux*)
9224	    LD="${LD-ld} -m elf_x86_64"
9225	    ;;
9226	  powerpcle-*linux*)
9227	    LD="${LD-ld} -m elf64lppc"
9228	    ;;
9229	  powerpc-*linux*)
9230	    LD="${LD-ld} -m elf64ppc"
9231	    ;;
9232	  s390*-*linux*|s390*-*tpf*)
9233	    LD="${LD-ld} -m elf64_s390"
9234	    ;;
9235	  sparc*-*linux*)
9236	    LD="${LD-ld} -m elf64_sparc"
9237	    ;;
9238	esac
9239	;;
9240    esac
9241  fi
9242  rm -rf conftest*
9243  ;;
9244
9245*-*-sco3.2v5*)
9246  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9247  SAVE_CFLAGS=$CFLAGS
9248  CFLAGS="$CFLAGS -belf"
9249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9250$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9251if ${lt_cv_cc_needs_belf+:} false; then :
9252  $as_echo_n "(cached) " >&6
9253else
9254  ac_ext=c
9255ac_cpp='$CPP $CPPFLAGS'
9256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9258ac_compiler_gnu=$ac_cv_c_compiler_gnu
9259
9260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h.  */
9262
9263int
9264main ()
9265{
9266
9267  ;
9268  return 0;
9269}
9270_ACEOF
9271if ac_fn_c_try_link "$LINENO"; then :
9272  lt_cv_cc_needs_belf=yes
9273else
9274  lt_cv_cc_needs_belf=no
9275fi
9276rm -f core conftest.err conftest.$ac_objext \
9277    conftest$ac_exeext conftest.$ac_ext
9278     ac_ext=c
9279ac_cpp='$CPP $CPPFLAGS'
9280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9282ac_compiler_gnu=$ac_cv_c_compiler_gnu
9283
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9286$as_echo "$lt_cv_cc_needs_belf" >&6; }
9287  if test yes != "$lt_cv_cc_needs_belf"; then
9288    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9289    CFLAGS=$SAVE_CFLAGS
9290  fi
9291  ;;
9292*-*solaris*)
9293  # Find out what ABI is being produced by ac_compile, and set linker
9294  # options accordingly.
9295  echo 'int i;' > conftest.$ac_ext
9296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9297  (eval $ac_compile) 2>&5
9298  ac_status=$?
9299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9300  test $ac_status = 0; }; then
9301    case `/usr/bin/file conftest.o` in
9302    *64-bit*)
9303      case $lt_cv_prog_gnu_ld in
9304      yes*)
9305        case $host in
9306        i?86-*-solaris*|x86_64-*-solaris*)
9307          LD="${LD-ld} -m elf_x86_64"
9308          ;;
9309        sparc*-*-solaris*)
9310          LD="${LD-ld} -m elf64_sparc"
9311          ;;
9312        esac
9313        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9314        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9315          LD=${LD-ld}_sol2
9316        fi
9317        ;;
9318      *)
9319	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9320	  LD="${LD-ld} -64"
9321	fi
9322	;;
9323      esac
9324      ;;
9325    esac
9326  fi
9327  rm -rf conftest*
9328  ;;
9329esac
9330
9331need_locks=$enable_libtool_lock
9332
9333if test -n "$ac_tool_prefix"; then
9334  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9335set dummy ${ac_tool_prefix}mt; ac_word=$2
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9337$as_echo_n "checking for $ac_word... " >&6; }
9338if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  if test -n "$MANIFEST_TOOL"; then
9342  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9343else
9344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345for as_dir in $PATH
9346do
9347  IFS=$as_save_IFS
9348  test -z "$as_dir" && as_dir=.
9349    for ac_exec_ext in '' $ac_executable_extensions; do
9350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353    break 2
9354  fi
9355done
9356  done
9357IFS=$as_save_IFS
9358
9359fi
9360fi
9361MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9362if test -n "$MANIFEST_TOOL"; then
9363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9364$as_echo "$MANIFEST_TOOL" >&6; }
9365else
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367$as_echo "no" >&6; }
9368fi
9369
9370
9371fi
9372if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9373  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9374  # Extract the first word of "mt", so it can be a program name with args.
9375set dummy mt; ac_word=$2
9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377$as_echo_n "checking for $ac_word... " >&6; }
9378if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9379  $as_echo_n "(cached) " >&6
9380else
9381  if test -n "$ac_ct_MANIFEST_TOOL"; then
9382  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9383else
9384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385for as_dir in $PATH
9386do
9387  IFS=$as_save_IFS
9388  test -z "$as_dir" && as_dir=.
9389    for ac_exec_ext in '' $ac_executable_extensions; do
9390  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9391    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9392    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393    break 2
9394  fi
9395done
9396  done
9397IFS=$as_save_IFS
9398
9399fi
9400fi
9401ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9402if test -n "$ac_ct_MANIFEST_TOOL"; then
9403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9404$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9405else
9406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407$as_echo "no" >&6; }
9408fi
9409
9410  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9411    MANIFEST_TOOL=":"
9412  else
9413    case $cross_compiling:$ac_tool_warned in
9414yes:)
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9417ac_tool_warned=yes ;;
9418esac
9419    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9420  fi
9421else
9422  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9423fi
9424
9425test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9427$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9428if ${lt_cv_path_mainfest_tool+:} false; then :
9429  $as_echo_n "(cached) " >&6
9430else
9431  lt_cv_path_mainfest_tool=no
9432  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9433  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9434  cat conftest.err >&5
9435  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9436    lt_cv_path_mainfest_tool=yes
9437  fi
9438  rm -f conftest*
9439fi
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9441$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9442if test yes != "$lt_cv_path_mainfest_tool"; then
9443  MANIFEST_TOOL=:
9444fi
9445
9446
9447
9448
9449
9450
9451  case $host_os in
9452    rhapsody* | darwin*)
9453    if test -n "$ac_tool_prefix"; then
9454  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9455set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if ${ac_cv_prog_DSYMUTIL+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  if test -n "$DSYMUTIL"; then
9462  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9463else
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467  IFS=$as_save_IFS
9468  test -z "$as_dir" && as_dir=.
9469    for ac_exec_ext in '' $ac_executable_extensions; do
9470  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473    break 2
9474  fi
9475done
9476  done
9477IFS=$as_save_IFS
9478
9479fi
9480fi
9481DSYMUTIL=$ac_cv_prog_DSYMUTIL
9482if test -n "$DSYMUTIL"; then
9483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9484$as_echo "$DSYMUTIL" >&6; }
9485else
9486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
9488fi
9489
9490
9491fi
9492if test -z "$ac_cv_prog_DSYMUTIL"; then
9493  ac_ct_DSYMUTIL=$DSYMUTIL
9494  # Extract the first word of "dsymutil", so it can be a program name with args.
9495set dummy dsymutil; ac_word=$2
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497$as_echo_n "checking for $ac_word... " >&6; }
9498if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9499  $as_echo_n "(cached) " >&6
9500else
9501  if test -n "$ac_ct_DSYMUTIL"; then
9502  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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  test -z "$as_dir" && as_dir=.
9509    for ac_exec_ext in '' $ac_executable_extensions; do
9510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513    break 2
9514  fi
9515done
9516  done
9517IFS=$as_save_IFS
9518
9519fi
9520fi
9521ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9522if test -n "$ac_ct_DSYMUTIL"; then
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9524$as_echo "$ac_ct_DSYMUTIL" >&6; }
9525else
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527$as_echo "no" >&6; }
9528fi
9529
9530  if test "x$ac_ct_DSYMUTIL" = x; then
9531    DSYMUTIL=":"
9532  else
9533    case $cross_compiling:$ac_tool_warned in
9534yes:)
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9537ac_tool_warned=yes ;;
9538esac
9539    DSYMUTIL=$ac_ct_DSYMUTIL
9540  fi
9541else
9542  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9543fi
9544
9545    if test -n "$ac_tool_prefix"; then
9546  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9547set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549$as_echo_n "checking for $ac_word... " >&6; }
9550if ${ac_cv_prog_NMEDIT+:} false; then :
9551  $as_echo_n "(cached) " >&6
9552else
9553  if test -n "$NMEDIT"; then
9554  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9555else
9556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559  IFS=$as_save_IFS
9560  test -z "$as_dir" && as_dir=.
9561    for ac_exec_ext in '' $ac_executable_extensions; do
9562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9565    break 2
9566  fi
9567done
9568  done
9569IFS=$as_save_IFS
9570
9571fi
9572fi
9573NMEDIT=$ac_cv_prog_NMEDIT
9574if test -n "$NMEDIT"; then
9575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9576$as_echo "$NMEDIT" >&6; }
9577else
9578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579$as_echo "no" >&6; }
9580fi
9581
9582
9583fi
9584if test -z "$ac_cv_prog_NMEDIT"; then
9585  ac_ct_NMEDIT=$NMEDIT
9586  # Extract the first word of "nmedit", so it can be a program name with args.
9587set dummy nmedit; ac_word=$2
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  if test -n "$ac_ct_NMEDIT"; then
9594  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599  IFS=$as_save_IFS
9600  test -z "$as_dir" && as_dir=.
9601    for ac_exec_ext in '' $ac_executable_extensions; do
9602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9603    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605    break 2
9606  fi
9607done
9608  done
9609IFS=$as_save_IFS
9610
9611fi
9612fi
9613ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9614if test -n "$ac_ct_NMEDIT"; then
9615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9616$as_echo "$ac_ct_NMEDIT" >&6; }
9617else
9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621
9622  if test "x$ac_ct_NMEDIT" = x; then
9623    NMEDIT=":"
9624  else
9625    case $cross_compiling:$ac_tool_warned in
9626yes:)
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9629ac_tool_warned=yes ;;
9630esac
9631    NMEDIT=$ac_ct_NMEDIT
9632  fi
9633else
9634  NMEDIT="$ac_cv_prog_NMEDIT"
9635fi
9636
9637    if test -n "$ac_tool_prefix"; then
9638  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9639set dummy ${ac_tool_prefix}lipo; ac_word=$2
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641$as_echo_n "checking for $ac_word... " >&6; }
9642if ${ac_cv_prog_LIPO+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  if test -n "$LIPO"; then
9646  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9647else
9648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649for as_dir in $PATH
9650do
9651  IFS=$as_save_IFS
9652  test -z "$as_dir" && as_dir=.
9653    for ac_exec_ext in '' $ac_executable_extensions; do
9654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657    break 2
9658  fi
9659done
9660  done
9661IFS=$as_save_IFS
9662
9663fi
9664fi
9665LIPO=$ac_cv_prog_LIPO
9666if test -n "$LIPO"; then
9667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9668$as_echo "$LIPO" >&6; }
9669else
9670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
9672fi
9673
9674
9675fi
9676if test -z "$ac_cv_prog_LIPO"; then
9677  ac_ct_LIPO=$LIPO
9678  # Extract the first word of "lipo", so it can be a program name with args.
9679set dummy lipo; ac_word=$2
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681$as_echo_n "checking for $ac_word... " >&6; }
9682if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  if test -n "$ac_ct_LIPO"; then
9686  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9687else
9688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689for as_dir in $PATH
9690do
9691  IFS=$as_save_IFS
9692  test -z "$as_dir" && as_dir=.
9693    for ac_exec_ext in '' $ac_executable_extensions; do
9694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695    ac_cv_prog_ac_ct_LIPO="lipo"
9696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697    break 2
9698  fi
9699done
9700  done
9701IFS=$as_save_IFS
9702
9703fi
9704fi
9705ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9706if test -n "$ac_ct_LIPO"; then
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9708$as_echo "$ac_ct_LIPO" >&6; }
9709else
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711$as_echo "no" >&6; }
9712fi
9713
9714  if test "x$ac_ct_LIPO" = x; then
9715    LIPO=":"
9716  else
9717    case $cross_compiling:$ac_tool_warned in
9718yes:)
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9721ac_tool_warned=yes ;;
9722esac
9723    LIPO=$ac_ct_LIPO
9724  fi
9725else
9726  LIPO="$ac_cv_prog_LIPO"
9727fi
9728
9729    if test -n "$ac_tool_prefix"; then
9730  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9731set dummy ${ac_tool_prefix}otool; ac_word=$2
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733$as_echo_n "checking for $ac_word... " >&6; }
9734if ${ac_cv_prog_OTOOL+:} false; then :
9735  $as_echo_n "(cached) " >&6
9736else
9737  if test -n "$OTOOL"; then
9738  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9739else
9740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741for as_dir in $PATH
9742do
9743  IFS=$as_save_IFS
9744  test -z "$as_dir" && as_dir=.
9745    for ac_exec_ext in '' $ac_executable_extensions; do
9746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749    break 2
9750  fi
9751done
9752  done
9753IFS=$as_save_IFS
9754
9755fi
9756fi
9757OTOOL=$ac_cv_prog_OTOOL
9758if test -n "$OTOOL"; then
9759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9760$as_echo "$OTOOL" >&6; }
9761else
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763$as_echo "no" >&6; }
9764fi
9765
9766
9767fi
9768if test -z "$ac_cv_prog_OTOOL"; then
9769  ac_ct_OTOOL=$OTOOL
9770  # Extract the first word of "otool", so it can be a program name with args.
9771set dummy otool; ac_word=$2
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773$as_echo_n "checking for $ac_word... " >&6; }
9774if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  if test -n "$ac_ct_OTOOL"; then
9778  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9779else
9780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781for as_dir in $PATH
9782do
9783  IFS=$as_save_IFS
9784  test -z "$as_dir" && as_dir=.
9785    for ac_exec_ext in '' $ac_executable_extensions; do
9786  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787    ac_cv_prog_ac_ct_OTOOL="otool"
9788    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789    break 2
9790  fi
9791done
9792  done
9793IFS=$as_save_IFS
9794
9795fi
9796fi
9797ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9798if test -n "$ac_ct_OTOOL"; then
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9800$as_echo "$ac_ct_OTOOL" >&6; }
9801else
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
9804fi
9805
9806  if test "x$ac_ct_OTOOL" = x; then
9807    OTOOL=":"
9808  else
9809    case $cross_compiling:$ac_tool_warned in
9810yes:)
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9813ac_tool_warned=yes ;;
9814esac
9815    OTOOL=$ac_ct_OTOOL
9816  fi
9817else
9818  OTOOL="$ac_cv_prog_OTOOL"
9819fi
9820
9821    if test -n "$ac_tool_prefix"; then
9822  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9823set dummy ${ac_tool_prefix}otool64; ac_word=$2
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
9826if ${ac_cv_prog_OTOOL64+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  if test -n "$OTOOL64"; then
9830  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835  IFS=$as_save_IFS
9836  test -z "$as_dir" && as_dir=.
9837    for ac_exec_ext in '' $ac_executable_extensions; do
9838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9839    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841    break 2
9842  fi
9843done
9844  done
9845IFS=$as_save_IFS
9846
9847fi
9848fi
9849OTOOL64=$ac_cv_prog_OTOOL64
9850if test -n "$OTOOL64"; then
9851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9852$as_echo "$OTOOL64" >&6; }
9853else
9854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855$as_echo "no" >&6; }
9856fi
9857
9858
9859fi
9860if test -z "$ac_cv_prog_OTOOL64"; then
9861  ac_ct_OTOOL64=$OTOOL64
9862  # Extract the first word of "otool64", so it can be a program name with args.
9863set dummy otool64; ac_word=$2
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865$as_echo_n "checking for $ac_word... " >&6; }
9866if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  if test -n "$ac_ct_OTOOL64"; then
9870  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875  IFS=$as_save_IFS
9876  test -z "$as_dir" && as_dir=.
9877    for ac_exec_ext in '' $ac_executable_extensions; do
9878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879    ac_cv_prog_ac_ct_OTOOL64="otool64"
9880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881    break 2
9882  fi
9883done
9884  done
9885IFS=$as_save_IFS
9886
9887fi
9888fi
9889ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9890if test -n "$ac_ct_OTOOL64"; then
9891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9892$as_echo "$ac_ct_OTOOL64" >&6; }
9893else
9894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896fi
9897
9898  if test "x$ac_ct_OTOOL64" = x; then
9899    OTOOL64=":"
9900  else
9901    case $cross_compiling:$ac_tool_warned in
9902yes:)
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9905ac_tool_warned=yes ;;
9906esac
9907    OTOOL64=$ac_ct_OTOOL64
9908  fi
9909else
9910  OTOOL64="$ac_cv_prog_OTOOL64"
9911fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9940$as_echo_n "checking for -single_module linker flag... " >&6; }
9941if ${lt_cv_apple_cc_single_mod+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  lt_cv_apple_cc_single_mod=no
9945      if test -z "$LT_MULTI_MODULE"; then
9946	# By default we will add the -single_module flag. You can override
9947	# by either setting the environment variable LT_MULTI_MODULE
9948	# non-empty at configure time, or by adding -multi_module to the
9949	# link flags.
9950	rm -rf libconftest.dylib*
9951	echo "int foo(void){return 1;}" > conftest.c
9952	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9953-dynamiclib -Wl,-single_module conftest.c" >&5
9954	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9955	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9956        _lt_result=$?
9957	# If there is a non-empty error log, and "single_module"
9958	# appears in it, assume the flag caused a linker warning
9959        if test -s conftest.err && $GREP single_module conftest.err; then
9960	  cat conftest.err >&5
9961	# Otherwise, if the output was created with a 0 exit code from
9962	# the compiler, it worked.
9963	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9964	  lt_cv_apple_cc_single_mod=yes
9965	else
9966	  cat conftest.err >&5
9967	fi
9968	rm -rf libconftest.dylib*
9969	rm -f conftest.*
9970      fi
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9973$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9974
9975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9976$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9977if ${lt_cv_ld_exported_symbols_list+:} false; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  lt_cv_ld_exported_symbols_list=no
9981      save_LDFLAGS=$LDFLAGS
9982      echo "_main" > conftest.sym
9983      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9984      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986
9987int
9988main ()
9989{
9990
9991  ;
9992  return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_link "$LINENO"; then :
9996  lt_cv_ld_exported_symbols_list=yes
9997else
9998  lt_cv_ld_exported_symbols_list=no
9999fi
10000rm -f core conftest.err conftest.$ac_objext \
10001    conftest$ac_exeext conftest.$ac_ext
10002	LDFLAGS=$save_LDFLAGS
10003
10004fi
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10006$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10007
10008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10009$as_echo_n "checking for -force_load linker flag... " >&6; }
10010if ${lt_cv_ld_force_load+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  lt_cv_ld_force_load=no
10014      cat > conftest.c << _LT_EOF
10015int forced_loaded() { return 2;}
10016_LT_EOF
10017      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10018      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10019      echo "$AR cru libconftest.a conftest.o" >&5
10020      $AR cru libconftest.a conftest.o 2>&5
10021      echo "$RANLIB libconftest.a" >&5
10022      $RANLIB libconftest.a 2>&5
10023      cat > conftest.c << _LT_EOF
10024int main() { return 0;}
10025_LT_EOF
10026      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10027      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10028      _lt_result=$?
10029      if test -s conftest.err && $GREP force_load conftest.err; then
10030	cat conftest.err >&5
10031      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10032	lt_cv_ld_force_load=yes
10033      else
10034	cat conftest.err >&5
10035      fi
10036        rm -f conftest.err libconftest.a conftest conftest.c
10037        rm -rf conftest.dSYM
10038
10039fi
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10041$as_echo "$lt_cv_ld_force_load" >&6; }
10042    case $host_os in
10043    rhapsody* | darwin1.[012])
10044      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10045    darwin1.*)
10046      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10047    darwin*) # darwin 5.x on
10048      # if running on 10.5 or later, the deployment target defaults
10049      # to the OS version, if on x86, and 10.4, the deployment
10050      # target defaults to 10.4. Don't you love it?
10051      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10052	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10053	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10054	10.[012][,.]*)
10055	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10056	10.*)
10057	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10058      esac
10059    ;;
10060  esac
10061    if test yes = "$lt_cv_apple_cc_single_mod"; then
10062      _lt_dar_single_mod='$single_module'
10063    fi
10064    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10065      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10066    else
10067      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10068    fi
10069    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10070      _lt_dsymutil='~$DSYMUTIL $lib || :'
10071    else
10072      _lt_dsymutil=
10073    fi
10074    ;;
10075  esac
10076
10077# func_munge_path_list VARIABLE PATH
10078# -----------------------------------
10079# VARIABLE is name of variable containing _space_ separated list of
10080# directories to be munged by the contents of PATH, which is string
10081# having a format:
10082# "DIR[:DIR]:"
10083#       string "DIR[ DIR]" will be prepended to VARIABLE
10084# ":DIR[:DIR]"
10085#       string "DIR[ DIR]" will be appended to VARIABLE
10086# "DIRP[:DIRP]::[DIRA:]DIRA"
10087#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10088#       "DIRA[ DIRA]" will be appended to VARIABLE
10089# "DIR[:DIR]"
10090#       VARIABLE will be replaced by "DIR[ DIR]"
10091func_munge_path_list ()
10092{
10093    case x$2 in
10094    x)
10095        ;;
10096    *:)
10097        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10098        ;;
10099    x:*)
10100        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10101        ;;
10102    *::*)
10103        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10104        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10105        ;;
10106    *)
10107        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10108        ;;
10109    esac
10110}
10111
10112for ac_header in dlfcn.h
10113do :
10114  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10115"
10116if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10117  cat >>confdefs.h <<_ACEOF
10118#define HAVE_DLFCN_H 1
10119_ACEOF
10120
10121fi
10122
10123done
10124
10125
10126
10127
10128
10129
10130
10131# Set options
10132
10133
10134
10135        enable_dlopen=no
10136
10137
10138  enable_win32_dll=no
10139
10140
10141            # Check whether --enable-shared was given.
10142if test "${enable_shared+set}" = set; then :
10143  enableval=$enable_shared; p=${PACKAGE-default}
10144    case $enableval in
10145    yes) enable_shared=yes ;;
10146    no) enable_shared=no ;;
10147    *)
10148      enable_shared=no
10149      # Look at the argument we got.  We use all the common list separators.
10150      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10151      for pkg in $enableval; do
10152	IFS=$lt_save_ifs
10153	if test "X$pkg" = "X$p"; then
10154	  enable_shared=yes
10155	fi
10156      done
10157      IFS=$lt_save_ifs
10158      ;;
10159    esac
10160else
10161  enable_shared=yes
10162fi
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172  # Check whether --enable-static was given.
10173if test "${enable_static+set}" = set; then :
10174  enableval=$enable_static; p=${PACKAGE-default}
10175    case $enableval in
10176    yes) enable_static=yes ;;
10177    no) enable_static=no ;;
10178    *)
10179     enable_static=no
10180      # Look at the argument we got.  We use all the common list separators.
10181      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10182      for pkg in $enableval; do
10183	IFS=$lt_save_ifs
10184	if test "X$pkg" = "X$p"; then
10185	  enable_static=yes
10186	fi
10187      done
10188      IFS=$lt_save_ifs
10189      ;;
10190    esac
10191else
10192  enable_static=yes
10193fi
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204# Check whether --with-pic was given.
10205if test "${with_pic+set}" = set; then :
10206  withval=$with_pic; lt_p=${PACKAGE-default}
10207    case $withval in
10208    yes|no) pic_mode=$withval ;;
10209    *)
10210      pic_mode=default
10211      # Look at the argument we got.  We use all the common list separators.
10212      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10213      for lt_pkg in $withval; do
10214	IFS=$lt_save_ifs
10215	if test "X$lt_pkg" = "X$lt_p"; then
10216	  pic_mode=yes
10217	fi
10218      done
10219      IFS=$lt_save_ifs
10220      ;;
10221    esac
10222else
10223  pic_mode=default
10224fi
10225
10226
10227
10228
10229
10230
10231
10232
10233  # Check whether --enable-fast-install was given.
10234if test "${enable_fast_install+set}" = set; then :
10235  enableval=$enable_fast_install; p=${PACKAGE-default}
10236    case $enableval in
10237    yes) enable_fast_install=yes ;;
10238    no) enable_fast_install=no ;;
10239    *)
10240      enable_fast_install=no
10241      # Look at the argument we got.  We use all the common list separators.
10242      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10243      for pkg in $enableval; do
10244	IFS=$lt_save_ifs
10245	if test "X$pkg" = "X$p"; then
10246	  enable_fast_install=yes
10247	fi
10248      done
10249      IFS=$lt_save_ifs
10250      ;;
10251    esac
10252else
10253  enable_fast_install=yes
10254fi
10255
10256
10257
10258
10259
10260
10261
10262
10263  shared_archive_member_spec=
10264case $host,$enable_shared in
10265power*-*-aix[5-9]*,yes)
10266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10267$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10268
10269# Check whether --with-aix-soname was given.
10270if test "${with_aix_soname+set}" = set; then :
10271  withval=$with_aix_soname; case $withval in
10272    aix|svr4|both)
10273      ;;
10274    *)
10275      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10276      ;;
10277    esac
10278    lt_cv_with_aix_soname=$with_aix_soname
10279else
10280  if ${lt_cv_with_aix_soname+:} false; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  lt_cv_with_aix_soname=aix
10284fi
10285
10286    with_aix_soname=$lt_cv_with_aix_soname
10287fi
10288
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10290$as_echo "$with_aix_soname" >&6; }
10291  if test aix != "$with_aix_soname"; then
10292    # For the AIX way of multilib, we name the shared archive member
10293    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10294    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10295    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10296    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10297    if test 64 = "${OBJECT_MODE-32}"; then
10298      shared_archive_member_spec=shr_64
10299    else
10300      shared_archive_member_spec=shr
10301    fi
10302  fi
10303  ;;
10304*)
10305  with_aix_soname=aix
10306  ;;
10307esac
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318# This can be used to rebuild libtool when needed
10319LIBTOOL_DEPS=$ltmain
10320
10321# Always use our own libtool.
10322LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353test -z "$LN_S" && LN_S="ln -s"
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368if test -n "${ZSH_VERSION+set}"; then
10369   setopt NO_GLOB_SUBST
10370fi
10371
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10373$as_echo_n "checking for objdir... " >&6; }
10374if ${lt_cv_objdir+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  rm -f .libs 2>/dev/null
10378mkdir .libs 2>/dev/null
10379if test -d .libs; then
10380  lt_cv_objdir=.libs
10381else
10382  # MS-DOS does not allow filenames that begin with a dot.
10383  lt_cv_objdir=_libs
10384fi
10385rmdir .libs 2>/dev/null
10386fi
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10388$as_echo "$lt_cv_objdir" >&6; }
10389objdir=$lt_cv_objdir
10390
10391
10392
10393
10394
10395cat >>confdefs.h <<_ACEOF
10396#define LT_OBJDIR "$lt_cv_objdir/"
10397_ACEOF
10398
10399
10400
10401
10402case $host_os in
10403aix3*)
10404  # AIX sometimes has problems with the GCC collect2 program.  For some
10405  # reason, if we set the COLLECT_NAMES environment variable, the problems
10406  # vanish in a puff of smoke.
10407  if test set != "${COLLECT_NAMES+set}"; then
10408    COLLECT_NAMES=
10409    export COLLECT_NAMES
10410  fi
10411  ;;
10412esac
10413
10414# Global variables:
10415ofile=libtool
10416can_build_shared=yes
10417
10418# All known linkers require a '.a' archive for static linking (except MSVC,
10419# which needs '.lib').
10420libext=a
10421
10422with_gnu_ld=$lt_cv_prog_gnu_ld
10423
10424old_CC=$CC
10425old_CFLAGS=$CFLAGS
10426
10427# Set sane defaults for various variables
10428test -z "$CC" && CC=cc
10429test -z "$LTCC" && LTCC=$CC
10430test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10431test -z "$LD" && LD=ld
10432test -z "$ac_objext" && ac_objext=o
10433
10434func_cc_basename $compiler
10435cc_basename=$func_cc_basename_result
10436
10437
10438# Only perform the check for file, if the check method requires it
10439test -z "$MAGIC_CMD" && MAGIC_CMD=file
10440case $deplibs_check_method in
10441file_magic*)
10442  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10444$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10445if ${lt_cv_path_MAGIC_CMD+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  case $MAGIC_CMD in
10449[\\/*] |  ?:[\\/]*)
10450  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10451  ;;
10452*)
10453  lt_save_MAGIC_CMD=$MAGIC_CMD
10454  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10455  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10456  for ac_dir in $ac_dummy; do
10457    IFS=$lt_save_ifs
10458    test -z "$ac_dir" && ac_dir=.
10459    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10460      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10461      if test -n "$file_magic_test_file"; then
10462	case $deplibs_check_method in
10463	"file_magic "*)
10464	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10465	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10466	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10467	    $EGREP "$file_magic_regex" > /dev/null; then
10468	    :
10469	  else
10470	    cat <<_LT_EOF 1>&2
10471
10472*** Warning: the command libtool uses to detect shared libraries,
10473*** $file_magic_cmd, produces output that libtool cannot recognize.
10474*** The result is that libtool may fail to recognize shared libraries
10475*** as such.  This will affect the creation of libtool libraries that
10476*** depend on shared libraries, but programs linked with such libtool
10477*** libraries will work regardless of this problem.  Nevertheless, you
10478*** may want to report the problem to your system manager and/or to
10479*** bug-libtool@gnu.org
10480
10481_LT_EOF
10482	  fi ;;
10483	esac
10484      fi
10485      break
10486    fi
10487  done
10488  IFS=$lt_save_ifs
10489  MAGIC_CMD=$lt_save_MAGIC_CMD
10490  ;;
10491esac
10492fi
10493
10494MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10495if test -n "$MAGIC_CMD"; then
10496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10497$as_echo "$MAGIC_CMD" >&6; }
10498else
10499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500$as_echo "no" >&6; }
10501fi
10502
10503
10504
10505
10506
10507if test -z "$lt_cv_path_MAGIC_CMD"; then
10508  if test -n "$ac_tool_prefix"; then
10509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10510$as_echo_n "checking for file... " >&6; }
10511if ${lt_cv_path_MAGIC_CMD+:} false; then :
10512  $as_echo_n "(cached) " >&6
10513else
10514  case $MAGIC_CMD in
10515[\\/*] |  ?:[\\/]*)
10516  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10517  ;;
10518*)
10519  lt_save_MAGIC_CMD=$MAGIC_CMD
10520  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10522  for ac_dir in $ac_dummy; do
10523    IFS=$lt_save_ifs
10524    test -z "$ac_dir" && ac_dir=.
10525    if test -f "$ac_dir/file"; then
10526      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10527      if test -n "$file_magic_test_file"; then
10528	case $deplibs_check_method in
10529	"file_magic "*)
10530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10531	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10533	    $EGREP "$file_magic_regex" > /dev/null; then
10534	    :
10535	  else
10536	    cat <<_LT_EOF 1>&2
10537
10538*** Warning: the command libtool uses to detect shared libraries,
10539*** $file_magic_cmd, produces output that libtool cannot recognize.
10540*** The result is that libtool may fail to recognize shared libraries
10541*** as such.  This will affect the creation of libtool libraries that
10542*** depend on shared libraries, but programs linked with such libtool
10543*** libraries will work regardless of this problem.  Nevertheless, you
10544*** may want to report the problem to your system manager and/or to
10545*** bug-libtool@gnu.org
10546
10547_LT_EOF
10548	  fi ;;
10549	esac
10550      fi
10551      break
10552    fi
10553  done
10554  IFS=$lt_save_ifs
10555  MAGIC_CMD=$lt_save_MAGIC_CMD
10556  ;;
10557esac
10558fi
10559
10560MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10561if test -n "$MAGIC_CMD"; then
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10563$as_echo "$MAGIC_CMD" >&6; }
10564else
10565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
10567fi
10568
10569
10570  else
10571    MAGIC_CMD=:
10572  fi
10573fi
10574
10575  fi
10576  ;;
10577esac
10578
10579# Use C for the default configuration in the libtool script
10580
10581lt_save_CC=$CC
10582ac_ext=c
10583ac_cpp='$CPP $CPPFLAGS'
10584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10586ac_compiler_gnu=$ac_cv_c_compiler_gnu
10587
10588
10589# Source file extension for C test sources.
10590ac_ext=c
10591
10592# Object file extension for compiled C test sources.
10593objext=o
10594objext=$objext
10595
10596# Code to be used in simple compile tests
10597lt_simple_compile_test_code="int some_variable = 0;"
10598
10599# Code to be used in simple link tests
10600lt_simple_link_test_code='int main(){return(0);}'
10601
10602
10603
10604
10605
10606
10607
10608# If no C compiler was specified, use CC.
10609LTCC=${LTCC-"$CC"}
10610
10611# If no C compiler flags were specified, use CFLAGS.
10612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10613
10614# Allow CC to be a program name with arguments.
10615compiler=$CC
10616
10617# Save the default compiler, since it gets overwritten when the other
10618# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10619compiler_DEFAULT=$CC
10620
10621# save warnings/boilerplate of simple test code
10622ac_outfile=conftest.$ac_objext
10623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10625_lt_compiler_boilerplate=`cat conftest.err`
10626$RM conftest*
10627
10628ac_outfile=conftest.$ac_objext
10629echo "$lt_simple_link_test_code" >conftest.$ac_ext
10630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10631_lt_linker_boilerplate=`cat conftest.err`
10632$RM -r conftest*
10633
10634
10635if test -n "$compiler"; then
10636
10637lt_prog_compiler_no_builtin_flag=
10638
10639if test yes = "$GCC"; then
10640  case $cc_basename in
10641  nvcc*)
10642    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10643  *)
10644    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10645  esac
10646
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10648$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10649if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10650  $as_echo_n "(cached) " >&6
10651else
10652  lt_cv_prog_compiler_rtti_exceptions=no
10653   ac_outfile=conftest.$ac_objext
10654   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10655   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10656   # Insert the option either (1) after the last *FLAGS variable, or
10657   # (2) before a word containing "conftest.", or (3) at the end.
10658   # Note that $ac_compile itself does not contain backslashes and begins
10659   # with a dollar sign (not a hyphen), so the echo should work correctly.
10660   # The option is referenced via a variable to avoid confusing sed.
10661   lt_compile=`echo "$ac_compile" | $SED \
10662   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10663   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10664   -e 's:$: $lt_compiler_flag:'`
10665   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10666   (eval "$lt_compile" 2>conftest.err)
10667   ac_status=$?
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   if (exit $ac_status) && test -s "$ac_outfile"; then
10671     # The compiler can only warn and ignore the option if not recognized
10672     # So say no if there are warnings other than the usual output.
10673     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10674     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10675     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10676       lt_cv_prog_compiler_rtti_exceptions=yes
10677     fi
10678   fi
10679   $RM conftest*
10680
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10683$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10684
10685if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10686    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10687else
10688    :
10689fi
10690
10691fi
10692
10693
10694
10695
10696
10697
10698  lt_prog_compiler_wl=
10699lt_prog_compiler_pic=
10700lt_prog_compiler_static=
10701
10702
10703  if test yes = "$GCC"; then
10704    lt_prog_compiler_wl='-Wl,'
10705    lt_prog_compiler_static='-static'
10706
10707    case $host_os in
10708      aix*)
10709      # All AIX code is PIC.
10710      if test ia64 = "$host_cpu"; then
10711	# AIX 5 now supports IA64 processor
10712	lt_prog_compiler_static='-Bstatic'
10713      fi
10714      lt_prog_compiler_pic='-fPIC'
10715      ;;
10716
10717    amigaos*)
10718      case $host_cpu in
10719      powerpc)
10720            # see comment about AmigaOS4 .so support
10721            lt_prog_compiler_pic='-fPIC'
10722        ;;
10723      m68k)
10724            # FIXME: we need at least 68020 code to build shared libraries, but
10725            # adding the '-m68020' flag to GCC prevents building anything better,
10726            # like '-m68040'.
10727            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10728        ;;
10729      esac
10730      ;;
10731
10732    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10733      # PIC is the default for these OSes.
10734      ;;
10735
10736    mingw* | cygwin* | pw32* | os2* | cegcc*)
10737      # This hack is so that the source file can tell whether it is being
10738      # built for inclusion in a dll (and should export symbols for example).
10739      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10740      # (--disable-auto-import) libraries
10741      lt_prog_compiler_pic='-DDLL_EXPORT'
10742      case $host_os in
10743      os2*)
10744	lt_prog_compiler_static='$wl-static'
10745	;;
10746      esac
10747      ;;
10748
10749    darwin* | rhapsody*)
10750      # PIC is the default on this platform
10751      # Common symbols not allowed in MH_DYLIB files
10752      lt_prog_compiler_pic='-fno-common'
10753      ;;
10754
10755    haiku*)
10756      # PIC is the default for Haiku.
10757      # The "-static" flag exists, but is broken.
10758      lt_prog_compiler_static=
10759      ;;
10760
10761    hpux*)
10762      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10763      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10764      # sets the default TLS model and affects inlining.
10765      case $host_cpu in
10766      hppa*64*)
10767	# +Z the default
10768	;;
10769      *)
10770	lt_prog_compiler_pic='-fPIC'
10771	;;
10772      esac
10773      ;;
10774
10775    interix[3-9]*)
10776      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10777      # Instead, we relocate shared libraries at runtime.
10778      ;;
10779
10780    msdosdjgpp*)
10781      # Just because we use GCC doesn't mean we suddenly get shared libraries
10782      # on systems that don't support them.
10783      lt_prog_compiler_can_build_shared=no
10784      enable_shared=no
10785      ;;
10786
10787    *nto* | *qnx*)
10788      # QNX uses GNU C++, but need to define -shared option too, otherwise
10789      # it will coredump.
10790      lt_prog_compiler_pic='-fPIC -shared'
10791      ;;
10792
10793    sysv4*MP*)
10794      if test -d /usr/nec; then
10795	lt_prog_compiler_pic=-Kconform_pic
10796      fi
10797      ;;
10798
10799    *)
10800      lt_prog_compiler_pic='-fPIC'
10801      ;;
10802    esac
10803
10804    case $cc_basename in
10805    nvcc*) # Cuda Compiler Driver 2.2
10806      lt_prog_compiler_wl='-Xlinker '
10807      if test -n "$lt_prog_compiler_pic"; then
10808        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10809      fi
10810      ;;
10811    esac
10812  else
10813    # PORTME Check for flag to pass linker flags through the system compiler.
10814    case $host_os in
10815    aix*)
10816      lt_prog_compiler_wl='-Wl,'
10817      if test ia64 = "$host_cpu"; then
10818	# AIX 5 now supports IA64 processor
10819	lt_prog_compiler_static='-Bstatic'
10820      else
10821	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10822      fi
10823      ;;
10824
10825    darwin* | rhapsody*)
10826      # PIC is the default on this platform
10827      # Common symbols not allowed in MH_DYLIB files
10828      lt_prog_compiler_pic='-fno-common'
10829      case $cc_basename in
10830      nagfor*)
10831        # NAG Fortran compiler
10832        lt_prog_compiler_wl='-Wl,-Wl,,'
10833        lt_prog_compiler_pic='-PIC'
10834        lt_prog_compiler_static='-Bstatic'
10835        ;;
10836      esac
10837      ;;
10838
10839    mingw* | cygwin* | pw32* | os2* | cegcc*)
10840      # This hack is so that the source file can tell whether it is being
10841      # built for inclusion in a dll (and should export symbols for example).
10842      lt_prog_compiler_pic='-DDLL_EXPORT'
10843      case $host_os in
10844      os2*)
10845	lt_prog_compiler_static='$wl-static'
10846	;;
10847      esac
10848      ;;
10849
10850    hpux9* | hpux10* | hpux11*)
10851      lt_prog_compiler_wl='-Wl,'
10852      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10853      # not for PA HP-UX.
10854      case $host_cpu in
10855      hppa*64*|ia64*)
10856	# +Z the default
10857	;;
10858      *)
10859	lt_prog_compiler_pic='+Z'
10860	;;
10861      esac
10862      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10863      lt_prog_compiler_static='$wl-a ${wl}archive'
10864      ;;
10865
10866    irix5* | irix6* | nonstopux*)
10867      lt_prog_compiler_wl='-Wl,'
10868      # PIC (with -KPIC) is the default.
10869      lt_prog_compiler_static='-non_shared'
10870      ;;
10871
10872    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10873      case $cc_basename in
10874      # old Intel for x86_64, which still supported -KPIC.
10875      ecc*)
10876	lt_prog_compiler_wl='-Wl,'
10877	lt_prog_compiler_pic='-KPIC'
10878	lt_prog_compiler_static='-static'
10879        ;;
10880      # icc used to be incompatible with GCC.
10881      # ICC 10 doesn't accept -KPIC any more.
10882      icc* | ifort*)
10883	lt_prog_compiler_wl='-Wl,'
10884	lt_prog_compiler_pic='-fPIC'
10885	lt_prog_compiler_static='-static'
10886        ;;
10887      # Lahey Fortran 8.1.
10888      lf95*)
10889	lt_prog_compiler_wl='-Wl,'
10890	lt_prog_compiler_pic='--shared'
10891	lt_prog_compiler_static='--static'
10892	;;
10893      nagfor*)
10894	# NAG Fortran compiler
10895	lt_prog_compiler_wl='-Wl,-Wl,,'
10896	lt_prog_compiler_pic='-PIC'
10897	lt_prog_compiler_static='-Bstatic'
10898	;;
10899      tcc*)
10900	# Fabrice Bellard et al's Tiny C Compiler
10901	lt_prog_compiler_wl='-Wl,'
10902	lt_prog_compiler_pic='-fPIC'
10903	lt_prog_compiler_static='-static'
10904	;;
10905      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10906        # Portland Group compilers (*not* the Pentium gcc compiler,
10907	# which looks to be a dead project)
10908	lt_prog_compiler_wl='-Wl,'
10909	lt_prog_compiler_pic='-fpic'
10910	lt_prog_compiler_static='-Bstatic'
10911        ;;
10912      ccc*)
10913        lt_prog_compiler_wl='-Wl,'
10914        # All Alpha code is PIC.
10915        lt_prog_compiler_static='-non_shared'
10916        ;;
10917      xl* | bgxl* | bgf* | mpixl*)
10918	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10919	lt_prog_compiler_wl='-Wl,'
10920	lt_prog_compiler_pic='-qpic'
10921	lt_prog_compiler_static='-qstaticlink'
10922	;;
10923      *)
10924	case `$CC -V 2>&1 | sed 5q` in
10925	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10926	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10927	  lt_prog_compiler_pic='-KPIC'
10928	  lt_prog_compiler_static='-Bstatic'
10929	  lt_prog_compiler_wl=''
10930	  ;;
10931	*Sun\ F* | *Sun*Fortran*)
10932	  lt_prog_compiler_pic='-KPIC'
10933	  lt_prog_compiler_static='-Bstatic'
10934	  lt_prog_compiler_wl='-Qoption ld '
10935	  ;;
10936	*Sun\ C*)
10937	  # Sun C 5.9
10938	  lt_prog_compiler_pic='-KPIC'
10939	  lt_prog_compiler_static='-Bstatic'
10940	  lt_prog_compiler_wl='-Wl,'
10941	  ;;
10942        *Intel*\ [CF]*Compiler*)
10943	  lt_prog_compiler_wl='-Wl,'
10944	  lt_prog_compiler_pic='-fPIC'
10945	  lt_prog_compiler_static='-static'
10946	  ;;
10947	*Portland\ Group*)
10948	  lt_prog_compiler_wl='-Wl,'
10949	  lt_prog_compiler_pic='-fpic'
10950	  lt_prog_compiler_static='-Bstatic'
10951	  ;;
10952	esac
10953	;;
10954      esac
10955      ;;
10956
10957    newsos6)
10958      lt_prog_compiler_pic='-KPIC'
10959      lt_prog_compiler_static='-Bstatic'
10960      ;;
10961
10962    *nto* | *qnx*)
10963      # QNX uses GNU C++, but need to define -shared option too, otherwise
10964      # it will coredump.
10965      lt_prog_compiler_pic='-fPIC -shared'
10966      ;;
10967
10968    osf3* | osf4* | osf5*)
10969      lt_prog_compiler_wl='-Wl,'
10970      # All OSF/1 code is PIC.
10971      lt_prog_compiler_static='-non_shared'
10972      ;;
10973
10974    rdos*)
10975      lt_prog_compiler_static='-non_shared'
10976      ;;
10977
10978    solaris*)
10979      lt_prog_compiler_pic='-KPIC'
10980      lt_prog_compiler_static='-Bstatic'
10981      case $cc_basename in
10982      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10983	lt_prog_compiler_wl='-Qoption ld ';;
10984      *)
10985	lt_prog_compiler_wl='-Wl,';;
10986      esac
10987      ;;
10988
10989    sunos4*)
10990      lt_prog_compiler_wl='-Qoption ld '
10991      lt_prog_compiler_pic='-PIC'
10992      lt_prog_compiler_static='-Bstatic'
10993      ;;
10994
10995    sysv4 | sysv4.2uw2* | sysv4.3*)
10996      lt_prog_compiler_wl='-Wl,'
10997      lt_prog_compiler_pic='-KPIC'
10998      lt_prog_compiler_static='-Bstatic'
10999      ;;
11000
11001    sysv4*MP*)
11002      if test -d /usr/nec; then
11003	lt_prog_compiler_pic='-Kconform_pic'
11004	lt_prog_compiler_static='-Bstatic'
11005      fi
11006      ;;
11007
11008    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11009      lt_prog_compiler_wl='-Wl,'
11010      lt_prog_compiler_pic='-KPIC'
11011      lt_prog_compiler_static='-Bstatic'
11012      ;;
11013
11014    unicos*)
11015      lt_prog_compiler_wl='-Wl,'
11016      lt_prog_compiler_can_build_shared=no
11017      ;;
11018
11019    uts4*)
11020      lt_prog_compiler_pic='-pic'
11021      lt_prog_compiler_static='-Bstatic'
11022      ;;
11023
11024    *)
11025      lt_prog_compiler_can_build_shared=no
11026      ;;
11027    esac
11028  fi
11029
11030case $host_os in
11031  # For platforms that do not support PIC, -DPIC is meaningless:
11032  *djgpp*)
11033    lt_prog_compiler_pic=
11034    ;;
11035  *)
11036    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11037    ;;
11038esac
11039
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11041$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11042if ${lt_cv_prog_compiler_pic+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11046fi
11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11048$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11049lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11050
11051#
11052# Check to make sure the PIC flag actually works.
11053#
11054if test -n "$lt_prog_compiler_pic"; then
11055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11056$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11057if ${lt_cv_prog_compiler_pic_works+:} false; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  lt_cv_prog_compiler_pic_works=no
11061   ac_outfile=conftest.$ac_objext
11062   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11063   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11064   # Insert the option either (1) after the last *FLAGS variable, or
11065   # (2) before a word containing "conftest.", or (3) at the end.
11066   # Note that $ac_compile itself does not contain backslashes and begins
11067   # with a dollar sign (not a hyphen), so the echo should work correctly.
11068   # The option is referenced via a variable to avoid confusing sed.
11069   lt_compile=`echo "$ac_compile" | $SED \
11070   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11072   -e 's:$: $lt_compiler_flag:'`
11073   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11074   (eval "$lt_compile" 2>conftest.err)
11075   ac_status=$?
11076   cat conftest.err >&5
11077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   if (exit $ac_status) && test -s "$ac_outfile"; then
11079     # The compiler can only warn and ignore the option if not recognized
11080     # So say no if there are warnings other than the usual output.
11081     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11082     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11083     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11084       lt_cv_prog_compiler_pic_works=yes
11085     fi
11086   fi
11087   $RM conftest*
11088
11089fi
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11091$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11092
11093if test yes = "$lt_cv_prog_compiler_pic_works"; then
11094    case $lt_prog_compiler_pic in
11095     "" | " "*) ;;
11096     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11097     esac
11098else
11099    lt_prog_compiler_pic=
11100     lt_prog_compiler_can_build_shared=no
11101fi
11102
11103fi
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115#
11116# Check to make sure the static flag actually works.
11117#
11118wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11120$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11121if ${lt_cv_prog_compiler_static_works+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  lt_cv_prog_compiler_static_works=no
11125   save_LDFLAGS=$LDFLAGS
11126   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11127   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11128   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11129     # The linker can only warn and ignore the option if not recognized
11130     # So say no if there are warnings
11131     if test -s conftest.err; then
11132       # Append any errors to the config.log.
11133       cat conftest.err 1>&5
11134       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11135       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11136       if diff conftest.exp conftest.er2 >/dev/null; then
11137         lt_cv_prog_compiler_static_works=yes
11138       fi
11139     else
11140       lt_cv_prog_compiler_static_works=yes
11141     fi
11142   fi
11143   $RM -r conftest*
11144   LDFLAGS=$save_LDFLAGS
11145
11146fi
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11148$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11149
11150if test yes = "$lt_cv_prog_compiler_static_works"; then
11151    :
11152else
11153    lt_prog_compiler_static=
11154fi
11155
11156
11157
11158
11159
11160
11161
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11163$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11164if ${lt_cv_prog_compiler_c_o+:} false; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  lt_cv_prog_compiler_c_o=no
11168   $RM -r conftest 2>/dev/null
11169   mkdir conftest
11170   cd conftest
11171   mkdir out
11172   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11173
11174   lt_compiler_flag="-o out/conftest2.$ac_objext"
11175   # Insert the option either (1) after the last *FLAGS variable, or
11176   # (2) before a word containing "conftest.", or (3) at the end.
11177   # Note that $ac_compile itself does not contain backslashes and begins
11178   # with a dollar sign (not a hyphen), so the echo should work correctly.
11179   lt_compile=`echo "$ac_compile" | $SED \
11180   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11181   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11182   -e 's:$: $lt_compiler_flag:'`
11183   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11184   (eval "$lt_compile" 2>out/conftest.err)
11185   ac_status=$?
11186   cat out/conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11189   then
11190     # The compiler can only warn and ignore the option if not recognized
11191     # So say no if there are warnings
11192     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11193     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11194     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11195       lt_cv_prog_compiler_c_o=yes
11196     fi
11197   fi
11198   chmod u+w . 2>&5
11199   $RM conftest*
11200   # SGI C++ compiler will create directory out/ii_files/ for
11201   # template instantiation
11202   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11203   $RM out/* && rmdir out
11204   cd ..
11205   $RM -r conftest
11206   $RM conftest*
11207
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11210$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11211
11212
11213
11214
11215
11216
11217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11218$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11219if ${lt_cv_prog_compiler_c_o+:} false; then :
11220  $as_echo_n "(cached) " >&6
11221else
11222  lt_cv_prog_compiler_c_o=no
11223   $RM -r conftest 2>/dev/null
11224   mkdir conftest
11225   cd conftest
11226   mkdir out
11227   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11228
11229   lt_compiler_flag="-o out/conftest2.$ac_objext"
11230   # Insert the option either (1) after the last *FLAGS variable, or
11231   # (2) before a word containing "conftest.", or (3) at the end.
11232   # Note that $ac_compile itself does not contain backslashes and begins
11233   # with a dollar sign (not a hyphen), so the echo should work correctly.
11234   lt_compile=`echo "$ac_compile" | $SED \
11235   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11237   -e 's:$: $lt_compiler_flag:'`
11238   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11239   (eval "$lt_compile" 2>out/conftest.err)
11240   ac_status=$?
11241   cat out/conftest.err >&5
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11244   then
11245     # The compiler can only warn and ignore the option if not recognized
11246     # So say no if there are warnings
11247     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11248     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11249     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11250       lt_cv_prog_compiler_c_o=yes
11251     fi
11252   fi
11253   chmod u+w . 2>&5
11254   $RM conftest*
11255   # SGI C++ compiler will create directory out/ii_files/ for
11256   # template instantiation
11257   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11258   $RM out/* && rmdir out
11259   cd ..
11260   $RM -r conftest
11261   $RM conftest*
11262
11263fi
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11265$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11266
11267
11268
11269
11270hard_links=nottested
11271if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11272  # do not overwrite the value of need_locks provided by the user
11273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11274$as_echo_n "checking if we can lock with hard links... " >&6; }
11275  hard_links=yes
11276  $RM conftest*
11277  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11278  touch conftest.a
11279  ln conftest.a conftest.b 2>&5 || hard_links=no
11280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11282$as_echo "$hard_links" >&6; }
11283  if test no = "$hard_links"; then
11284    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11285$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11286    need_locks=warn
11287  fi
11288else
11289  need_locks=no
11290fi
11291
11292
11293
11294
11295
11296
11297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11298$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11299
11300  runpath_var=
11301  allow_undefined_flag=
11302  always_export_symbols=no
11303  archive_cmds=
11304  archive_expsym_cmds=
11305  compiler_needs_object=no
11306  enable_shared_with_static_runtimes=no
11307  export_dynamic_flag_spec=
11308  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11309  hardcode_automatic=no
11310  hardcode_direct=no
11311  hardcode_direct_absolute=no
11312  hardcode_libdir_flag_spec=
11313  hardcode_libdir_separator=
11314  hardcode_minus_L=no
11315  hardcode_shlibpath_var=unsupported
11316  inherit_rpath=no
11317  link_all_deplibs=unknown
11318  module_cmds=
11319  module_expsym_cmds=
11320  old_archive_from_new_cmds=
11321  old_archive_from_expsyms_cmds=
11322  thread_safe_flag_spec=
11323  whole_archive_flag_spec=
11324  # include_expsyms should be a list of space-separated symbols to be *always*
11325  # included in the symbol list
11326  include_expsyms=
11327  # exclude_expsyms can be an extended regexp of symbols to exclude
11328  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11329  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11330  # as well as any symbol that contains 'd'.
11331  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11332  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11333  # platforms (ab)use it in PIC code, but their linkers get confused if
11334  # the symbol is explicitly referenced.  Since portable code cannot
11335  # rely on this symbol name, it's probably fine to never include it in
11336  # preloaded symbol tables.
11337  # Exclude shared library initialization/finalization symbols.
11338  extract_expsyms_cmds=
11339
11340  case $host_os in
11341  cygwin* | mingw* | pw32* | cegcc*)
11342    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11343    # When not using gcc, we currently assume that we are using
11344    # Microsoft Visual C++.
11345    if test yes != "$GCC"; then
11346      with_gnu_ld=no
11347    fi
11348    ;;
11349  interix*)
11350    # we just hope/assume this is gcc and not c89 (= MSVC++)
11351    with_gnu_ld=yes
11352    ;;
11353  openbsd* | bitrig*)
11354    with_gnu_ld=no
11355    ;;
11356  esac
11357
11358  ld_shlibs=yes
11359
11360  # On some targets, GNU ld is compatible enough with the native linker
11361  # that we're better off using the native interface for both.
11362  lt_use_gnu_ld_interface=no
11363  if test yes = "$with_gnu_ld"; then
11364    case $host_os in
11365      aix*)
11366	# The AIX port of GNU ld has always aspired to compatibility
11367	# with the native linker.  However, as the warning in the GNU ld
11368	# block says, versions before 2.19.5* couldn't really create working
11369	# shared libraries, regardless of the interface used.
11370	case `$LD -v 2>&1` in
11371	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11372	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11373	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11374	  *)
11375	    lt_use_gnu_ld_interface=yes
11376	    ;;
11377	esac
11378	;;
11379      *)
11380	lt_use_gnu_ld_interface=yes
11381	;;
11382    esac
11383  fi
11384
11385  if test yes = "$lt_use_gnu_ld_interface"; then
11386    # If archive_cmds runs LD, not CC, wlarc should be empty
11387    wlarc='$wl'
11388
11389    # Set some defaults for GNU ld with shared library support. These
11390    # are reset later if shared libraries are not supported. Putting them
11391    # here allows them to be overridden if necessary.
11392    runpath_var=LD_RUN_PATH
11393    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11394    export_dynamic_flag_spec='$wl--export-dynamic'
11395    # ancient GNU ld didn't support --whole-archive et. al.
11396    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11397      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11398    else
11399      whole_archive_flag_spec=
11400    fi
11401    supports_anon_versioning=no
11402    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11403      *GNU\ gold*) supports_anon_versioning=yes ;;
11404      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11405      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11406      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11407      *\ 2.11.*) ;; # other 2.11 versions
11408      *) supports_anon_versioning=yes ;;
11409    esac
11410
11411    # See if GNU ld supports shared libraries.
11412    case $host_os in
11413    aix[3-9]*)
11414      # On AIX/PPC, the GNU linker is very broken
11415      if test ia64 != "$host_cpu"; then
11416	ld_shlibs=no
11417	cat <<_LT_EOF 1>&2
11418
11419*** Warning: the GNU linker, at least up to release 2.19, is reported
11420*** to be unable to reliably create shared libraries on AIX.
11421*** Therefore, libtool is disabling shared libraries support.  If you
11422*** really care for shared libraries, you may want to install binutils
11423*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11424*** You will then need to restart the configuration process.
11425
11426_LT_EOF
11427      fi
11428      ;;
11429
11430    amigaos*)
11431      case $host_cpu in
11432      powerpc)
11433            # see comment about AmigaOS4 .so support
11434            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11435            archive_expsym_cmds=''
11436        ;;
11437      m68k)
11438            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)'
11439            hardcode_libdir_flag_spec='-L$libdir'
11440            hardcode_minus_L=yes
11441        ;;
11442      esac
11443      ;;
11444
11445    beos*)
11446      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11447	allow_undefined_flag=unsupported
11448	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11449	# support --undefined.  This deserves some investigation.  FIXME
11450	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11451      else
11452	ld_shlibs=no
11453      fi
11454      ;;
11455
11456    cygwin* | mingw* | pw32* | cegcc*)
11457      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11458      # as there is no search path for DLLs.
11459      hardcode_libdir_flag_spec='-L$libdir'
11460      export_dynamic_flag_spec='$wl--export-all-symbols'
11461      allow_undefined_flag=unsupported
11462      always_export_symbols=no
11463      enable_shared_with_static_runtimes=yes
11464      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'
11465      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11466
11467      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11468        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11469	# If the export-symbols file already is a .def file, use it as
11470	# is; otherwise, prepend EXPORTS...
11471	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11472          cp $export_symbols $output_objdir/$soname.def;
11473        else
11474          echo EXPORTS > $output_objdir/$soname.def;
11475          cat $export_symbols >> $output_objdir/$soname.def;
11476        fi~
11477        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11478      else
11479	ld_shlibs=no
11480      fi
11481      ;;
11482
11483    haiku*)
11484      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11485      link_all_deplibs=yes
11486      ;;
11487
11488    os2*)
11489      hardcode_libdir_flag_spec='-L$libdir'
11490      hardcode_minus_L=yes
11491      allow_undefined_flag=unsupported
11492      shrext_cmds=.dll
11493      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11494	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11495	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11496	$ECHO EXPORTS >> $output_objdir/$libname.def~
11497	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11498	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11499	emximp -o $lib $output_objdir/$libname.def'
11500      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11501	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11502	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11503	$ECHO EXPORTS >> $output_objdir/$libname.def~
11504	prefix_cmds="$SED"~
11505	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11506	  prefix_cmds="$prefix_cmds -e 1d";
11507	fi~
11508	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11509	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11510	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11511	emximp -o $lib $output_objdir/$libname.def'
11512      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11513      enable_shared_with_static_runtimes=yes
11514      ;;
11515
11516    interix[3-9]*)
11517      hardcode_direct=no
11518      hardcode_shlibpath_var=no
11519      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11520      export_dynamic_flag_spec='$wl-E'
11521      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11522      # Instead, shared libraries are loaded at an image base (0x10000000 by
11523      # default) and relocated if they conflict, which is a slow very memory
11524      # consuming and fragmenting process.  To avoid this, we pick a random,
11525      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11526      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11527      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11528      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'
11529      ;;
11530
11531    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11532      tmp_diet=no
11533      if test linux-dietlibc = "$host_os"; then
11534	case $cc_basename in
11535	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11536	esac
11537      fi
11538      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11539	 && test no = "$tmp_diet"
11540      then
11541	tmp_addflag=' $pic_flag'
11542	tmp_sharedflag='-shared'
11543	case $cc_basename,$host_cpu in
11544        pgcc*)				# Portland Group C compiler
11545	  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'
11546	  tmp_addflag=' $pic_flag'
11547	  ;;
11548	pgf77* | pgf90* | pgf95* | pgfortran*)
11549					# Portland Group f77 and f90 compilers
11550	  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'
11551	  tmp_addflag=' $pic_flag -Mnomain' ;;
11552	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11553	  tmp_addflag=' -i_dynamic' ;;
11554	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11555	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11556	ifc* | ifort*)			# Intel Fortran compiler
11557	  tmp_addflag=' -nofor_main' ;;
11558	lf95*)				# Lahey Fortran 8.1
11559	  whole_archive_flag_spec=
11560	  tmp_sharedflag='--shared' ;;
11561        nagfor*)                        # NAGFOR 5.3
11562          tmp_sharedflag='-Wl,-shared' ;;
11563	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11564	  tmp_sharedflag='-qmkshrobj'
11565	  tmp_addflag= ;;
11566	nvcc*)	# Cuda Compiler Driver 2.2
11567	  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'
11568	  compiler_needs_object=yes
11569	  ;;
11570	esac
11571	case `$CC -V 2>&1 | sed 5q` in
11572	*Sun\ C*)			# Sun C 5.9
11573	  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'
11574	  compiler_needs_object=yes
11575	  tmp_sharedflag='-G' ;;
11576	*Sun\ F*)			# Sun Fortran 8.3
11577	  tmp_sharedflag='-G' ;;
11578	esac
11579	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11580
11581        if test yes = "$supports_anon_versioning"; then
11582          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11583            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11584            echo "local: *; };" >> $output_objdir/$libname.ver~
11585            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11586        fi
11587
11588	case $cc_basename in
11589	tcc*)
11590	  export_dynamic_flag_spec='-rdynamic'
11591	  ;;
11592	xlf* | bgf* | bgxlf* | mpixlf*)
11593	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11594	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11595	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11596	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11597	  if test yes = "$supports_anon_versioning"; then
11598	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11599              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11600              echo "local: *; };" >> $output_objdir/$libname.ver~
11601              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11602	  fi
11603	  ;;
11604	esac
11605      else
11606        ld_shlibs=no
11607      fi
11608      ;;
11609
11610    netbsd*)
11611      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11612	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11613	wlarc=
11614      else
11615	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11616	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11617      fi
11618      ;;
11619
11620    solaris*)
11621      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11622	ld_shlibs=no
11623	cat <<_LT_EOF 1>&2
11624
11625*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11626*** create shared libraries on Solaris systems.  Therefore, libtool
11627*** is disabling shared libraries support.  We urge you to upgrade GNU
11628*** binutils to release 2.9.1 or newer.  Another option is to modify
11629*** your PATH or compiler configuration so that the native linker is
11630*** used, and then restart.
11631
11632_LT_EOF
11633      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11634	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11635	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11636      else
11637	ld_shlibs=no
11638      fi
11639      ;;
11640
11641    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11642      case `$LD -v 2>&1` in
11643        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11644	ld_shlibs=no
11645	cat <<_LT_EOF 1>&2
11646
11647*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11648*** reliably create shared libraries on SCO systems.  Therefore, libtool
11649*** is disabling shared libraries support.  We urge you to upgrade GNU
11650*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11651*** your PATH or compiler configuration so that the native linker is
11652*** used, and then restart.
11653
11654_LT_EOF
11655	;;
11656	*)
11657	  # For security reasons, it is highly recommended that you always
11658	  # use absolute paths for naming shared libraries, and exclude the
11659	  # DT_RUNPATH tag from executables and libraries.  But doing so
11660	  # requires that you compile everything twice, which is a pain.
11661	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11662	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11663	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11664	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11665	  else
11666	    ld_shlibs=no
11667	  fi
11668	;;
11669      esac
11670      ;;
11671
11672    sunos4*)
11673      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11674      wlarc=
11675      hardcode_direct=yes
11676      hardcode_shlibpath_var=no
11677      ;;
11678
11679    *)
11680      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11681	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11682	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11683      else
11684	ld_shlibs=no
11685      fi
11686      ;;
11687    esac
11688
11689    if test no = "$ld_shlibs"; then
11690      runpath_var=
11691      hardcode_libdir_flag_spec=
11692      export_dynamic_flag_spec=
11693      whole_archive_flag_spec=
11694    fi
11695  else
11696    # PORTME fill in a description of your system's linker (not GNU ld)
11697    case $host_os in
11698    aix3*)
11699      allow_undefined_flag=unsupported
11700      always_export_symbols=yes
11701      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'
11702      # Note: this linker hardcodes the directories in LIBPATH if there
11703      # are no directories specified by -L.
11704      hardcode_minus_L=yes
11705      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11706	# Neither direct hardcoding nor static linking is supported with a
11707	# broken collect2.
11708	hardcode_direct=unsupported
11709      fi
11710      ;;
11711
11712    aix[4-9]*)
11713      if test ia64 = "$host_cpu"; then
11714	# On IA64, the linker does run time linking by default, so we don't
11715	# have to do anything special.
11716	aix_use_runtimelinking=no
11717	exp_sym_flag='-Bexport'
11718	no_entry_flag=
11719      else
11720	# If we're using GNU nm, then we don't want the "-C" option.
11721	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11722	# Without the "-l" option, or with the "-B" option, AIX nm treats
11723	# weak defined symbols like other global defined symbols, whereas
11724	# GNU nm marks them as "W".
11725	# While the 'weak' keyword is ignored in the Export File, we need
11726	# it in the Import File for the 'aix-soname' feature, so we have
11727	# to replace the "-B" option with "-P" for AIX nm.
11728	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11729	  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'
11730	else
11731	  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'
11732	fi
11733	aix_use_runtimelinking=no
11734
11735	# Test if we are trying to use run time linking or normal
11736	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11737	# have runtime linking enabled, and use it for executables.
11738	# For shared libraries, we enable/disable runtime linking
11739	# depending on the kind of the shared library created -
11740	# when "with_aix_soname,aix_use_runtimelinking" is:
11741	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11742	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11743	#            lib.a           static archive
11744	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11745	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11746	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11747	#            lib.a(lib.so.V) shared, rtl:no
11748	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11749	#            lib.a           static archive
11750	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11751	  for ld_flag in $LDFLAGS; do
11752	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11753	    aix_use_runtimelinking=yes
11754	    break
11755	  fi
11756	  done
11757	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11758	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11759	    # so we don't have lib.a shared libs to link our executables.
11760	    # We have to force runtime linking in this case.
11761	    aix_use_runtimelinking=yes
11762	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11763	  fi
11764	  ;;
11765	esac
11766
11767	exp_sym_flag='-bexport'
11768	no_entry_flag='-bnoentry'
11769      fi
11770
11771      # When large executables or shared objects are built, AIX ld can
11772      # have problems creating the table of contents.  If linking a library
11773      # or program results in "error TOC overflow" add -mminimal-toc to
11774      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11775      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11776
11777      archive_cmds=''
11778      hardcode_direct=yes
11779      hardcode_direct_absolute=yes
11780      hardcode_libdir_separator=':'
11781      link_all_deplibs=yes
11782      file_list_spec='$wl-f,'
11783      case $with_aix_soname,$aix_use_runtimelinking in
11784      aix,*) ;; # traditional, no import file
11785      svr4,* | *,yes) # use import file
11786	# The Import File defines what to hardcode.
11787	hardcode_direct=no
11788	hardcode_direct_absolute=no
11789	;;
11790      esac
11791
11792      if test yes = "$GCC"; then
11793	case $host_os in aix4.[012]|aix4.[012].*)
11794	# We only want to do this on AIX 4.2 and lower, the check
11795	# below for broken collect2 doesn't work under 4.3+
11796	  collect2name=`$CC -print-prog-name=collect2`
11797	  if test -f "$collect2name" &&
11798	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11799	  then
11800	  # We have reworked collect2
11801	  :
11802	  else
11803	  # We have old collect2
11804	  hardcode_direct=unsupported
11805	  # It fails to find uninstalled libraries when the uninstalled
11806	  # path is not listed in the libpath.  Setting hardcode_minus_L
11807	  # to unsupported forces relinking
11808	  hardcode_minus_L=yes
11809	  hardcode_libdir_flag_spec='-L$libdir'
11810	  hardcode_libdir_separator=
11811	  fi
11812	  ;;
11813	esac
11814	shared_flag='-shared'
11815	if test yes = "$aix_use_runtimelinking"; then
11816	  shared_flag="$shared_flag "'$wl-G'
11817	fi
11818	# Need to ensure runtime linking is disabled for the traditional
11819	# shared library, or the linker may eventually find shared libraries
11820	# /with/ Import File - we do not want to mix them.
11821	shared_flag_aix='-shared'
11822	shared_flag_svr4='-shared $wl-G'
11823      else
11824	# not using gcc
11825	if test ia64 = "$host_cpu"; then
11826	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11827	# chokes on -Wl,-G. The following line is correct:
11828	  shared_flag='-G'
11829	else
11830	  if test yes = "$aix_use_runtimelinking"; then
11831	    shared_flag='$wl-G'
11832	  else
11833	    shared_flag='$wl-bM:SRE'
11834	  fi
11835	  shared_flag_aix='$wl-bM:SRE'
11836	  shared_flag_svr4='$wl-G'
11837	fi
11838      fi
11839
11840      export_dynamic_flag_spec='$wl-bexpall'
11841      # It seems that -bexpall does not export symbols beginning with
11842      # underscore (_), so it is better to generate a list of symbols to export.
11843      always_export_symbols=yes
11844      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11845	# Warning - without using the other runtime loading flags (-brtl),
11846	# -berok will link without error, but may produce a broken library.
11847	allow_undefined_flag='-berok'
11848        # Determine the default libpath from the value encoded in an
11849        # empty executable.
11850        if test set = "${lt_cv_aix_libpath+set}"; then
11851  aix_libpath=$lt_cv_aix_libpath
11852else
11853  if ${lt_cv_aix_libpath_+:} false; then :
11854  $as_echo_n "(cached) " >&6
11855else
11856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h.  */
11858
11859int
11860main ()
11861{
11862
11863  ;
11864  return 0;
11865}
11866_ACEOF
11867if ac_fn_c_try_link "$LINENO"; then :
11868
11869  lt_aix_libpath_sed='
11870      /Import File Strings/,/^$/ {
11871	  /^0/ {
11872	      s/^0  *\([^ ]*\) *$/\1/
11873	      p
11874	  }
11875      }'
11876  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877  # Check for a 64-bit object if we didn't find anything.
11878  if test -z "$lt_cv_aix_libpath_"; then
11879    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880  fi
11881fi
11882rm -f core conftest.err conftest.$ac_objext \
11883    conftest$ac_exeext conftest.$ac_ext
11884  if test -z "$lt_cv_aix_libpath_"; then
11885    lt_cv_aix_libpath_=/usr/lib:/lib
11886  fi
11887
11888fi
11889
11890  aix_libpath=$lt_cv_aix_libpath_
11891fi
11892
11893        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11894        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
11895      else
11896	if test ia64 = "$host_cpu"; then
11897	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11898	  allow_undefined_flag="-z nodefs"
11899	  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"
11900	else
11901	 # Determine the default libpath from the value encoded in an
11902	 # empty executable.
11903	 if test set = "${lt_cv_aix_libpath+set}"; then
11904  aix_libpath=$lt_cv_aix_libpath
11905else
11906  if ${lt_cv_aix_libpath_+:} false; then :
11907  $as_echo_n "(cached) " >&6
11908else
11909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h.  */
11911
11912int
11913main ()
11914{
11915
11916  ;
11917  return 0;
11918}
11919_ACEOF
11920if ac_fn_c_try_link "$LINENO"; then :
11921
11922  lt_aix_libpath_sed='
11923      /Import File Strings/,/^$/ {
11924	  /^0/ {
11925	      s/^0  *\([^ ]*\) *$/\1/
11926	      p
11927	  }
11928      }'
11929  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11930  # Check for a 64-bit object if we didn't find anything.
11931  if test -z "$lt_cv_aix_libpath_"; then
11932    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11933  fi
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936    conftest$ac_exeext conftest.$ac_ext
11937  if test -z "$lt_cv_aix_libpath_"; then
11938    lt_cv_aix_libpath_=/usr/lib:/lib
11939  fi
11940
11941fi
11942
11943  aix_libpath=$lt_cv_aix_libpath_
11944fi
11945
11946	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11947	  # Warning - without using the other run time loading flags,
11948	  # -berok will link without error, but may produce a broken library.
11949	  no_undefined_flag=' $wl-bernotok'
11950	  allow_undefined_flag=' $wl-berok'
11951	  if test yes = "$with_gnu_ld"; then
11952	    # We only use this code for GNU lds that support --whole-archive.
11953	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11954	  else
11955	    # Exported symbols can be pulled into shared objects from archives
11956	    whole_archive_flag_spec='$convenience'
11957	  fi
11958	  archive_cmds_need_lc=yes
11959	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11960	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11961	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11962	  if test svr4 != "$with_aix_soname"; then
11963	    # This is similar to how AIX traditionally builds its shared libraries.
11964	    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'
11965	  fi
11966	  if test aix != "$with_aix_soname"; then
11967	    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'
11968	  else
11969	    # used by -dlpreopen to get the symbols
11970	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11971	  fi
11972	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11973	fi
11974      fi
11975      ;;
11976
11977    amigaos*)
11978      case $host_cpu in
11979      powerpc)
11980            # see comment about AmigaOS4 .so support
11981            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11982            archive_expsym_cmds=''
11983        ;;
11984      m68k)
11985            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)'
11986            hardcode_libdir_flag_spec='-L$libdir'
11987            hardcode_minus_L=yes
11988        ;;
11989      esac
11990      ;;
11991
11992    bsdi[45]*)
11993      export_dynamic_flag_spec=-rdynamic
11994      ;;
11995
11996    cygwin* | mingw* | pw32* | cegcc*)
11997      # When not using gcc, we currently assume that we are using
11998      # Microsoft Visual C++.
11999      # hardcode_libdir_flag_spec is actually meaningless, as there is
12000      # no search path for DLLs.
12001      case $cc_basename in
12002      cl*)
12003	# Native MSVC
12004	hardcode_libdir_flag_spec=' '
12005	allow_undefined_flag=unsupported
12006	always_export_symbols=yes
12007	file_list_spec='@'
12008	# Tell ltmain to make .lib files, not .a files.
12009	libext=lib
12010	# Tell ltmain to make .dll files, not .so files.
12011	shrext_cmds=.dll
12012	# FIXME: Setting linknames here is a bad hack.
12013	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12014	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12015            cp "$export_symbols" "$output_objdir/$soname.def";
12016            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12017          else
12018            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12019          fi~
12020          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12021          linknames='
12022	# The linker will not automatically build a static lib if we build a DLL.
12023	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12024	enable_shared_with_static_runtimes=yes
12025	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12026	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12027	# Don't use ranlib
12028	old_postinstall_cmds='chmod 644 $oldlib'
12029	postlink_cmds='lt_outputfile="@OUTPUT@"~
12030          lt_tool_outputfile="@TOOL_OUTPUT@"~
12031          case $lt_outputfile in
12032            *.exe|*.EXE) ;;
12033            *)
12034              lt_outputfile=$lt_outputfile.exe
12035              lt_tool_outputfile=$lt_tool_outputfile.exe
12036              ;;
12037          esac~
12038          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12039            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12040            $RM "$lt_outputfile.manifest";
12041          fi'
12042	;;
12043      *)
12044	# Assume MSVC wrapper
12045	hardcode_libdir_flag_spec=' '
12046	allow_undefined_flag=unsupported
12047	# Tell ltmain to make .lib files, not .a files.
12048	libext=lib
12049	# Tell ltmain to make .dll files, not .so files.
12050	shrext_cmds=.dll
12051	# FIXME: Setting linknames here is a bad hack.
12052	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12053	# The linker will automatically build a .lib file if we build a DLL.
12054	old_archive_from_new_cmds='true'
12055	# FIXME: Should let the user specify the lib program.
12056	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12057	enable_shared_with_static_runtimes=yes
12058	;;
12059      esac
12060      ;;
12061
12062    darwin* | rhapsody*)
12063
12064
12065  archive_cmds_need_lc=no
12066  hardcode_direct=no
12067  hardcode_automatic=yes
12068  hardcode_shlibpath_var=unsupported
12069  if test yes = "$lt_cv_ld_force_load"; then
12070    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\"`'
12071
12072  else
12073    whole_archive_flag_spec=''
12074  fi
12075  link_all_deplibs=yes
12076  allow_undefined_flag=$_lt_dar_allow_undefined
12077  case $cc_basename in
12078     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12079     *) _lt_dar_can_shared=$GCC ;;
12080  esac
12081  if test yes = "$_lt_dar_can_shared"; then
12082    output_verbose_link_cmd=func_echo_all
12083    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12084    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12085    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"
12086    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"
12087
12088  else
12089  ld_shlibs=no
12090  fi
12091
12092      ;;
12093
12094    dgux*)
12095      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12096      hardcode_libdir_flag_spec='-L$libdir'
12097      hardcode_shlibpath_var=no
12098      ;;
12099
12100    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12101    # support.  Future versions do this automatically, but an explicit c++rt0.o
12102    # does not break anything, and helps significantly (at the cost of a little
12103    # extra space).
12104    freebsd2.2*)
12105      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12106      hardcode_libdir_flag_spec='-R$libdir'
12107      hardcode_direct=yes
12108      hardcode_shlibpath_var=no
12109      ;;
12110
12111    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12112    freebsd2.*)
12113      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12114      hardcode_direct=yes
12115      hardcode_minus_L=yes
12116      hardcode_shlibpath_var=no
12117      ;;
12118
12119    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12120    freebsd* | dragonfly*)
12121      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12122      hardcode_libdir_flag_spec='-R$libdir'
12123      hardcode_direct=yes
12124      hardcode_shlibpath_var=no
12125      ;;
12126
12127    hpux9*)
12128      if test yes = "$GCC"; then
12129	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'
12130      else
12131	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'
12132      fi
12133      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12134      hardcode_libdir_separator=:
12135      hardcode_direct=yes
12136
12137      # hardcode_minus_L: Not really in the search PATH,
12138      # but as the default location of the library.
12139      hardcode_minus_L=yes
12140      export_dynamic_flag_spec='$wl-E'
12141      ;;
12142
12143    hpux10*)
12144      if test yes,no = "$GCC,$with_gnu_ld"; then
12145	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12146      else
12147	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12148      fi
12149      if test no = "$with_gnu_ld"; then
12150	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12151	hardcode_libdir_separator=:
12152	hardcode_direct=yes
12153	hardcode_direct_absolute=yes
12154	export_dynamic_flag_spec='$wl-E'
12155	# hardcode_minus_L: Not really in the search PATH,
12156	# but as the default location of the library.
12157	hardcode_minus_L=yes
12158      fi
12159      ;;
12160
12161    hpux11*)
12162      if test yes,no = "$GCC,$with_gnu_ld"; then
12163	case $host_cpu in
12164	hppa*64*)
12165	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12166	  ;;
12167	ia64*)
12168	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12169	  ;;
12170	*)
12171	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12172	  ;;
12173	esac
12174      else
12175	case $host_cpu in
12176	hppa*64*)
12177	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12178	  ;;
12179	ia64*)
12180	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12181	  ;;
12182	*)
12183
12184	  # Older versions of the 11.00 compiler do not understand -b yet
12185	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12186	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12187$as_echo_n "checking if $CC understands -b... " >&6; }
12188if ${lt_cv_prog_compiler__b+:} false; then :
12189  $as_echo_n "(cached) " >&6
12190else
12191  lt_cv_prog_compiler__b=no
12192   save_LDFLAGS=$LDFLAGS
12193   LDFLAGS="$LDFLAGS -b"
12194   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12195   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12196     # The linker can only warn and ignore the option if not recognized
12197     # So say no if there are warnings
12198     if test -s conftest.err; then
12199       # Append any errors to the config.log.
12200       cat conftest.err 1>&5
12201       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12202       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12203       if diff conftest.exp conftest.er2 >/dev/null; then
12204         lt_cv_prog_compiler__b=yes
12205       fi
12206     else
12207       lt_cv_prog_compiler__b=yes
12208     fi
12209   fi
12210   $RM -r conftest*
12211   LDFLAGS=$save_LDFLAGS
12212
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12215$as_echo "$lt_cv_prog_compiler__b" >&6; }
12216
12217if test yes = "$lt_cv_prog_compiler__b"; then
12218    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12219else
12220    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12221fi
12222
12223	  ;;
12224	esac
12225      fi
12226      if test no = "$with_gnu_ld"; then
12227	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12228	hardcode_libdir_separator=:
12229
12230	case $host_cpu in
12231	hppa*64*|ia64*)
12232	  hardcode_direct=no
12233	  hardcode_shlibpath_var=no
12234	  ;;
12235	*)
12236	  hardcode_direct=yes
12237	  hardcode_direct_absolute=yes
12238	  export_dynamic_flag_spec='$wl-E'
12239
12240	  # hardcode_minus_L: Not really in the search PATH,
12241	  # but as the default location of the library.
12242	  hardcode_minus_L=yes
12243	  ;;
12244	esac
12245      fi
12246      ;;
12247
12248    irix5* | irix6* | nonstopux*)
12249      if test yes = "$GCC"; then
12250	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'
12251	# Try to use the -exported_symbol ld option, if it does not
12252	# work, assume that -exports_file does not work either and
12253	# implicitly export all symbols.
12254	# This should be the same for all languages, so no per-tag cache variable.
12255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12256$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12257if ${lt_cv_irix_exported_symbol+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  save_LDFLAGS=$LDFLAGS
12261	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12262	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h.  */
12264int foo (void) { return 0; }
12265_ACEOF
12266if ac_fn_c_try_link "$LINENO"; then :
12267  lt_cv_irix_exported_symbol=yes
12268else
12269  lt_cv_irix_exported_symbol=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272    conftest$ac_exeext conftest.$ac_ext
12273           LDFLAGS=$save_LDFLAGS
12274fi
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12276$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12277	if test yes = "$lt_cv_irix_exported_symbol"; then
12278          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'
12279	fi
12280      else
12281	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'
12282	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'
12283      fi
12284      archive_cmds_need_lc='no'
12285      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12286      hardcode_libdir_separator=:
12287      inherit_rpath=yes
12288      link_all_deplibs=yes
12289      ;;
12290
12291    linux*)
12292      case $cc_basename in
12293      tcc*)
12294	# Fabrice Bellard et al's Tiny C Compiler
12295	ld_shlibs=yes
12296	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12297	;;
12298      esac
12299      ;;
12300
12301    netbsd*)
12302      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12303	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12304      else
12305	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12306      fi
12307      hardcode_libdir_flag_spec='-R$libdir'
12308      hardcode_direct=yes
12309      hardcode_shlibpath_var=no
12310      ;;
12311
12312    newsos6)
12313      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12314      hardcode_direct=yes
12315      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12316      hardcode_libdir_separator=:
12317      hardcode_shlibpath_var=no
12318      ;;
12319
12320    *nto* | *qnx*)
12321      ;;
12322
12323    openbsd* | bitrig*)
12324      if test -f /usr/libexec/ld.so; then
12325	hardcode_direct=yes
12326	hardcode_shlibpath_var=no
12327	hardcode_direct_absolute=yes
12328	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12329	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12330	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12331	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12332	  export_dynamic_flag_spec='$wl-E'
12333	else
12334	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12335	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12336	fi
12337      else
12338	ld_shlibs=no
12339      fi
12340      ;;
12341
12342    os2*)
12343      hardcode_libdir_flag_spec='-L$libdir'
12344      hardcode_minus_L=yes
12345      allow_undefined_flag=unsupported
12346      shrext_cmds=.dll
12347      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12348	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12349	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12350	$ECHO EXPORTS >> $output_objdir/$libname.def~
12351	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12352	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12353	emximp -o $lib $output_objdir/$libname.def'
12354      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12355	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12356	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12357	$ECHO EXPORTS >> $output_objdir/$libname.def~
12358	prefix_cmds="$SED"~
12359	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12360	  prefix_cmds="$prefix_cmds -e 1d";
12361	fi~
12362	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12363	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12364	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12365	emximp -o $lib $output_objdir/$libname.def'
12366      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12367      enable_shared_with_static_runtimes=yes
12368      ;;
12369
12370    osf3*)
12371      if test yes = "$GCC"; then
12372	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12373	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'
12374      else
12375	allow_undefined_flag=' -expect_unresolved \*'
12376	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'
12377      fi
12378      archive_cmds_need_lc='no'
12379      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12380      hardcode_libdir_separator=:
12381      ;;
12382
12383    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12384      if test yes = "$GCC"; then
12385	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12386	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'
12387	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12388      else
12389	allow_undefined_flag=' -expect_unresolved \*'
12390	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'
12391	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~
12392          $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'
12393
12394	# Both c and cxx compiler support -rpath directly
12395	hardcode_libdir_flag_spec='-rpath $libdir'
12396      fi
12397      archive_cmds_need_lc='no'
12398      hardcode_libdir_separator=:
12399      ;;
12400
12401    solaris*)
12402      no_undefined_flag=' -z defs'
12403      if test yes = "$GCC"; then
12404	wlarc='$wl'
12405	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12406	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12407          $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'
12408      else
12409	case `$CC -V 2>&1` in
12410	*"Compilers 5.0"*)
12411	  wlarc=''
12412	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12413	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12414            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12415	  ;;
12416	*)
12417	  wlarc='$wl'
12418	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12419	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12420            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12421	  ;;
12422	esac
12423      fi
12424      hardcode_libdir_flag_spec='-R$libdir'
12425      hardcode_shlibpath_var=no
12426      case $host_os in
12427      solaris2.[0-5] | solaris2.[0-5].*) ;;
12428      *)
12429	# The compiler driver will combine and reorder linker options,
12430	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12431	# but is careful enough not to reorder.
12432	# Supported since Solaris 2.6 (maybe 2.5.1?)
12433	if test yes = "$GCC"; then
12434	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12435	else
12436	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12437	fi
12438	;;
12439      esac
12440      link_all_deplibs=yes
12441      ;;
12442
12443    sunos4*)
12444      if test sequent = "$host_vendor"; then
12445	# Use $CC to link under sequent, because it throws in some extra .o
12446	# files that make .init and .fini sections work.
12447	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12448      else
12449	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12450      fi
12451      hardcode_libdir_flag_spec='-L$libdir'
12452      hardcode_direct=yes
12453      hardcode_minus_L=yes
12454      hardcode_shlibpath_var=no
12455      ;;
12456
12457    sysv4)
12458      case $host_vendor in
12459	sni)
12460	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12461	  hardcode_direct=yes # is this really true???
12462	;;
12463	siemens)
12464	  ## LD is ld it makes a PLAMLIB
12465	  ## CC just makes a GrossModule.
12466	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12467	  reload_cmds='$CC -r -o $output$reload_objs'
12468	  hardcode_direct=no
12469        ;;
12470	motorola)
12471	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12472	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12473	;;
12474      esac
12475      runpath_var='LD_RUN_PATH'
12476      hardcode_shlibpath_var=no
12477      ;;
12478
12479    sysv4.3*)
12480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12481      hardcode_shlibpath_var=no
12482      export_dynamic_flag_spec='-Bexport'
12483      ;;
12484
12485    sysv4*MP*)
12486      if test -d /usr/nec; then
12487	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12488	hardcode_shlibpath_var=no
12489	runpath_var=LD_RUN_PATH
12490	hardcode_runpath_var=yes
12491	ld_shlibs=yes
12492      fi
12493      ;;
12494
12495    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12496      no_undefined_flag='$wl-z,text'
12497      archive_cmds_need_lc=no
12498      hardcode_shlibpath_var=no
12499      runpath_var='LD_RUN_PATH'
12500
12501      if test yes = "$GCC"; then
12502	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504      else
12505	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12506	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12507      fi
12508      ;;
12509
12510    sysv5* | sco3.2v5* | sco5v6*)
12511      # Note: We CANNOT use -z defs as we might desire, because we do not
12512      # link with -lc, and that would cause any symbols used from libc to
12513      # always be unresolved, which means just about no library would
12514      # ever link correctly.  If we're not using GNU ld we use -z text
12515      # though, which does catch some bad symbols but isn't as heavy-handed
12516      # as -z defs.
12517      no_undefined_flag='$wl-z,text'
12518      allow_undefined_flag='$wl-z,nodefs'
12519      archive_cmds_need_lc=no
12520      hardcode_shlibpath_var=no
12521      hardcode_libdir_flag_spec='$wl-R,$libdir'
12522      hardcode_libdir_separator=':'
12523      link_all_deplibs=yes
12524      export_dynamic_flag_spec='$wl-Bexport'
12525      runpath_var='LD_RUN_PATH'
12526
12527      if test yes = "$GCC"; then
12528	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12529	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12530      else
12531	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12532	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12533      fi
12534      ;;
12535
12536    uts4*)
12537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12538      hardcode_libdir_flag_spec='-L$libdir'
12539      hardcode_shlibpath_var=no
12540      ;;
12541
12542    *)
12543      ld_shlibs=no
12544      ;;
12545    esac
12546
12547    if test sni = "$host_vendor"; then
12548      case $host in
12549      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12550	export_dynamic_flag_spec='$wl-Blargedynsym'
12551	;;
12552      esac
12553    fi
12554  fi
12555
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12557$as_echo "$ld_shlibs" >&6; }
12558test no = "$ld_shlibs" && can_build_shared=no
12559
12560with_gnu_ld=$with_gnu_ld
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576#
12577# Do we need to explicitly link libc?
12578#
12579case "x$archive_cmds_need_lc" in
12580x|xyes)
12581  # Assume -lc should be added
12582  archive_cmds_need_lc=yes
12583
12584  if test yes,yes = "$GCC,$enable_shared"; then
12585    case $archive_cmds in
12586    *'~'*)
12587      # FIXME: we may have to deal with multi-command sequences.
12588      ;;
12589    '$CC '*)
12590      # Test whether the compiler implicitly links with -lc since on some
12591      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12592      # to ld, don't add -lc before -lgcc.
12593      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12594$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12595if ${lt_cv_archive_cmds_need_lc+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  $RM conftest*
12599	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12600
12601	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12602  (eval $ac_compile) 2>&5
12603  ac_status=$?
12604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12605  test $ac_status = 0; } 2>conftest.err; then
12606	  soname=conftest
12607	  lib=conftest
12608	  libobjs=conftest.$ac_objext
12609	  deplibs=
12610	  wl=$lt_prog_compiler_wl
12611	  pic_flag=$lt_prog_compiler_pic
12612	  compiler_flags=-v
12613	  linker_flags=-v
12614	  verstring=
12615	  output_objdir=.
12616	  libname=conftest
12617	  lt_save_allow_undefined_flag=$allow_undefined_flag
12618	  allow_undefined_flag=
12619	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12620  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12621  ac_status=$?
12622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623  test $ac_status = 0; }
12624	  then
12625	    lt_cv_archive_cmds_need_lc=no
12626	  else
12627	    lt_cv_archive_cmds_need_lc=yes
12628	  fi
12629	  allow_undefined_flag=$lt_save_allow_undefined_flag
12630	else
12631	  cat conftest.err 1>&5
12632	fi
12633	$RM conftest*
12634
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12637$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12638      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12639      ;;
12640    esac
12641  fi
12642  ;;
12643esac
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12797$as_echo_n "checking dynamic linker characteristics... " >&6; }
12798
12799if test yes = "$GCC"; then
12800  case $host_os in
12801    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12802    *) lt_awk_arg='/^libraries:/' ;;
12803  esac
12804  case $host_os in
12805    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12806    *) lt_sed_strip_eq='s|=/|/|g' ;;
12807  esac
12808  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12809  case $lt_search_path_spec in
12810  *\;*)
12811    # if the path contains ";" then we assume it to be the separator
12812    # otherwise default to the standard path separator (i.e. ":") - it is
12813    # assumed that no part of a normal pathname contains ";" but that should
12814    # okay in the real world where ";" in dirpaths is itself problematic.
12815    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12816    ;;
12817  *)
12818    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12819    ;;
12820  esac
12821  # Ok, now we have the path, separated by spaces, we can step through it
12822  # and add multilib dir if necessary...
12823  lt_tmp_lt_search_path_spec=
12824  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12825  # ...but if some path component already ends with the multilib dir we assume
12826  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12827  case "$lt_multi_os_dir; $lt_search_path_spec " in
12828  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12829    lt_multi_os_dir=
12830    ;;
12831  esac
12832  for lt_sys_path in $lt_search_path_spec; do
12833    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12834      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12835    elif test -n "$lt_multi_os_dir"; then
12836      test -d "$lt_sys_path" && \
12837	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12838    fi
12839  done
12840  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12841BEGIN {RS = " "; FS = "/|\n";} {
12842  lt_foo = "";
12843  lt_count = 0;
12844  for (lt_i = NF; lt_i > 0; lt_i--) {
12845    if ($lt_i != "" && $lt_i != ".") {
12846      if ($lt_i == "..") {
12847        lt_count++;
12848      } else {
12849        if (lt_count == 0) {
12850          lt_foo = "/" $lt_i lt_foo;
12851        } else {
12852          lt_count--;
12853        }
12854      }
12855    }
12856  }
12857  if (lt_foo != "") { lt_freq[lt_foo]++; }
12858  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12859}'`
12860  # AWK program above erroneously prepends '/' to C:/dos/paths
12861  # for these hosts.
12862  case $host_os in
12863    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12864      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12865  esac
12866  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12867else
12868  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12869fi
12870library_names_spec=
12871libname_spec='lib$name'
12872soname_spec=
12873shrext_cmds=.so
12874postinstall_cmds=
12875postuninstall_cmds=
12876finish_cmds=
12877finish_eval=
12878shlibpath_var=
12879shlibpath_overrides_runpath=unknown
12880version_type=none
12881dynamic_linker="$host_os ld.so"
12882sys_lib_dlsearch_path_spec="/lib /usr/lib"
12883need_lib_prefix=unknown
12884hardcode_into_libs=no
12885
12886# when you set need_version to no, make sure it does not cause -set_version
12887# flags to be left without arguments
12888need_version=unknown
12889
12890
12891
12892case $host_os in
12893aix3*)
12894  version_type=linux # correct to gnu/linux during the next big refactor
12895  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12896  shlibpath_var=LIBPATH
12897
12898  # AIX 3 has no versioning support, so we append a major version to the name.
12899  soname_spec='$libname$release$shared_ext$major'
12900  ;;
12901
12902aix[4-9]*)
12903  version_type=linux # correct to gnu/linux during the next big refactor
12904  need_lib_prefix=no
12905  need_version=no
12906  hardcode_into_libs=yes
12907  if test ia64 = "$host_cpu"; then
12908    # AIX 5 supports IA64
12909    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12910    shlibpath_var=LD_LIBRARY_PATH
12911  else
12912    # With GCC up to 2.95.x, collect2 would create an import file
12913    # for dependence libraries.  The import file would start with
12914    # the line '#! .'.  This would cause the generated library to
12915    # depend on '.', always an invalid library.  This was fixed in
12916    # development snapshots of GCC prior to 3.0.
12917    case $host_os in
12918      aix4 | aix4.[01] | aix4.[01].*)
12919      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12920	   echo ' yes '
12921	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12922	:
12923      else
12924	can_build_shared=no
12925      fi
12926      ;;
12927    esac
12928    # Using Import Files as archive members, it is possible to support
12929    # filename-based versioning of shared library archives on AIX. While
12930    # this would work for both with and without runtime linking, it will
12931    # prevent static linking of such archives. So we do filename-based
12932    # shared library versioning with .so extension only, which is used
12933    # when both runtime linking and shared linking is enabled.
12934    # Unfortunately, runtime linking may impact performance, so we do
12935    # not want this to be the default eventually. Also, we use the
12936    # versioned .so libs for executables only if there is the -brtl
12937    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12938    # To allow for filename-based versioning support, we need to create
12939    # libNAME.so.V as an archive file, containing:
12940    # *) an Import File, referring to the versioned filename of the
12941    #    archive as well as the shared archive member, telling the
12942    #    bitwidth (32 or 64) of that shared object, and providing the
12943    #    list of exported symbols of that shared object, eventually
12944    #    decorated with the 'weak' keyword
12945    # *) the shared object with the F_LOADONLY flag set, to really avoid
12946    #    it being seen by the linker.
12947    # At run time we better use the real file rather than another symlink,
12948    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12949
12950    case $with_aix_soname,$aix_use_runtimelinking in
12951    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12952    # soname into executable. Probably we can add versioning support to
12953    # collect2, so additional links can be useful in future.
12954    aix,yes) # traditional libtool
12955      dynamic_linker='AIX unversionable lib.so'
12956      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12957      # instead of lib<name>.a to let people know that these are not
12958      # typical AIX shared libraries.
12959      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12960      ;;
12961    aix,no) # traditional AIX only
12962      dynamic_linker='AIX lib.a(lib.so.V)'
12963      # We preserve .a as extension for shared libraries through AIX4.2
12964      # and later when we are not doing run time linking.
12965      library_names_spec='$libname$release.a $libname.a'
12966      soname_spec='$libname$release$shared_ext$major'
12967      ;;
12968    svr4,*) # full svr4 only
12969      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12970      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12971      # We do not specify a path in Import Files, so LIBPATH fires.
12972      shlibpath_overrides_runpath=yes
12973      ;;
12974    *,yes) # both, prefer svr4
12975      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12976      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12977      # unpreferred sharedlib libNAME.a needs extra handling
12978      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"'
12979      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"'
12980      # We do not specify a path in Import Files, so LIBPATH fires.
12981      shlibpath_overrides_runpath=yes
12982      ;;
12983    *,no) # both, prefer aix
12984      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12985      library_names_spec='$libname$release.a $libname.a'
12986      soname_spec='$libname$release$shared_ext$major'
12987      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12988      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)'
12989      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"'
12990      ;;
12991    esac
12992    shlibpath_var=LIBPATH
12993  fi
12994  ;;
12995
12996amigaos*)
12997  case $host_cpu in
12998  powerpc)
12999    # Since July 2007 AmigaOS4 officially supports .so libraries.
13000    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13001    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13002    ;;
13003  m68k)
13004    library_names_spec='$libname.ixlibrary $libname.a'
13005    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13006    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'
13007    ;;
13008  esac
13009  ;;
13010
13011beos*)
13012  library_names_spec='$libname$shared_ext'
13013  dynamic_linker="$host_os ld.so"
13014  shlibpath_var=LIBRARY_PATH
13015  ;;
13016
13017bsdi[45]*)
13018  version_type=linux # correct to gnu/linux during the next big refactor
13019  need_version=no
13020  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13021  soname_spec='$libname$release$shared_ext$major'
13022  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13023  shlibpath_var=LD_LIBRARY_PATH
13024  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13025  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13026  # the default ld.so.conf also contains /usr/contrib/lib and
13027  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13028  # libtool to hard-code these into programs
13029  ;;
13030
13031cygwin* | mingw* | pw32* | cegcc*)
13032  version_type=windows
13033  shrext_cmds=.dll
13034  need_version=no
13035  need_lib_prefix=no
13036
13037  case $GCC,$cc_basename in
13038  yes,*)
13039    # gcc
13040    library_names_spec='$libname.dll.a'
13041    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13042    postinstall_cmds='base_file=`basename \$file`~
13043      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13044      dldir=$destdir/`dirname \$dlpath`~
13045      test -d \$dldir || mkdir -p \$dldir~
13046      $install_prog $dir/$dlname \$dldir/$dlname~
13047      chmod a+x \$dldir/$dlname~
13048      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13049        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13050      fi'
13051    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13052      dlpath=$dir/\$dldll~
13053       $RM \$dlpath'
13054    shlibpath_overrides_runpath=yes
13055
13056    case $host_os in
13057    cygwin*)
13058      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13059      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13060
13061      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13062      ;;
13063    mingw* | cegcc*)
13064      # MinGW DLLs use traditional 'lib' prefix
13065      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13066      ;;
13067    pw32*)
13068      # pw32 DLLs use 'pw' prefix rather than 'lib'
13069      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13070      ;;
13071    esac
13072    dynamic_linker='Win32 ld.exe'
13073    ;;
13074
13075  *,cl*)
13076    # Native MSVC
13077    libname_spec='$name'
13078    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13079    library_names_spec='$libname.dll.lib'
13080
13081    case $build_os in
13082    mingw*)
13083      sys_lib_search_path_spec=
13084      lt_save_ifs=$IFS
13085      IFS=';'
13086      for lt_path in $LIB
13087      do
13088        IFS=$lt_save_ifs
13089        # Let DOS variable expansion print the short 8.3 style file name.
13090        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13091        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13092      done
13093      IFS=$lt_save_ifs
13094      # Convert to MSYS style.
13095      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13096      ;;
13097    cygwin*)
13098      # Convert to unix form, then to dos form, then back to unix form
13099      # but this time dos style (no spaces!) so that the unix form looks
13100      # like /cygdrive/c/PROGRA~1:/cygdr...
13101      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13102      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13103      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13104      ;;
13105    *)
13106      sys_lib_search_path_spec=$LIB
13107      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13108        # It is most probably a Windows format PATH.
13109        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13110      else
13111        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13112      fi
13113      # FIXME: find the short name or the path components, as spaces are
13114      # common. (e.g. "Program Files" -> "PROGRA~1")
13115      ;;
13116    esac
13117
13118    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13119    postinstall_cmds='base_file=`basename \$file`~
13120      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13121      dldir=$destdir/`dirname \$dlpath`~
13122      test -d \$dldir || mkdir -p \$dldir~
13123      $install_prog $dir/$dlname \$dldir/$dlname'
13124    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13125      dlpath=$dir/\$dldll~
13126       $RM \$dlpath'
13127    shlibpath_overrides_runpath=yes
13128    dynamic_linker='Win32 link.exe'
13129    ;;
13130
13131  *)
13132    # Assume MSVC wrapper
13133    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13134    dynamic_linker='Win32 ld.exe'
13135    ;;
13136  esac
13137  # FIXME: first we should search . and the directory the executable is in
13138  shlibpath_var=PATH
13139  ;;
13140
13141darwin* | rhapsody*)
13142  dynamic_linker="$host_os dyld"
13143  version_type=darwin
13144  need_lib_prefix=no
13145  need_version=no
13146  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13147  soname_spec='$libname$release$major$shared_ext'
13148  shlibpath_overrides_runpath=yes
13149  shlibpath_var=DYLD_LIBRARY_PATH
13150  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13151
13152  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13153  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13154  ;;
13155
13156dgux*)
13157  version_type=linux # correct to gnu/linux during the next big refactor
13158  need_lib_prefix=no
13159  need_version=no
13160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13161  soname_spec='$libname$release$shared_ext$major'
13162  shlibpath_var=LD_LIBRARY_PATH
13163  ;;
13164
13165freebsd* | dragonfly*)
13166  # DragonFly does not have aout.  When/if they implement a new
13167  # versioning mechanism, adjust this.
13168  if test -x /usr/bin/objformat; then
13169    objformat=`/usr/bin/objformat`
13170  else
13171    case $host_os in
13172    freebsd[23].*) objformat=aout ;;
13173    *) objformat=elf ;;
13174    esac
13175  fi
13176  version_type=freebsd-$objformat
13177  case $version_type in
13178    freebsd-elf*)
13179      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13180      soname_spec='$libname$release$shared_ext$major'
13181      need_version=no
13182      need_lib_prefix=no
13183      ;;
13184    freebsd-*)
13185      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13186      need_version=yes
13187      ;;
13188  esac
13189  shlibpath_var=LD_LIBRARY_PATH
13190  case $host_os in
13191  freebsd2.*)
13192    shlibpath_overrides_runpath=yes
13193    ;;
13194  freebsd3.[01]* | freebsdelf3.[01]*)
13195    shlibpath_overrides_runpath=yes
13196    hardcode_into_libs=yes
13197    ;;
13198  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13199  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13200    shlibpath_overrides_runpath=no
13201    hardcode_into_libs=yes
13202    ;;
13203  *) # from 4.6 on, and DragonFly
13204    shlibpath_overrides_runpath=yes
13205    hardcode_into_libs=yes
13206    ;;
13207  esac
13208  ;;
13209
13210haiku*)
13211  version_type=linux # correct to gnu/linux during the next big refactor
13212  need_lib_prefix=no
13213  need_version=no
13214  dynamic_linker="$host_os runtime_loader"
13215  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13216  soname_spec='$libname$release$shared_ext$major'
13217  shlibpath_var=LIBRARY_PATH
13218  shlibpath_overrides_runpath=no
13219  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13220  hardcode_into_libs=yes
13221  ;;
13222
13223hpux9* | hpux10* | hpux11*)
13224  # Give a soname corresponding to the major version so that dld.sl refuses to
13225  # link against other versions.
13226  version_type=sunos
13227  need_lib_prefix=no
13228  need_version=no
13229  case $host_cpu in
13230  ia64*)
13231    shrext_cmds='.so'
13232    hardcode_into_libs=yes
13233    dynamic_linker="$host_os dld.so"
13234    shlibpath_var=LD_LIBRARY_PATH
13235    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13236    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13237    soname_spec='$libname$release$shared_ext$major'
13238    if test 32 = "$HPUX_IA64_MODE"; then
13239      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13240      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13241    else
13242      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13243      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13244    fi
13245    ;;
13246  hppa*64*)
13247    shrext_cmds='.sl'
13248    hardcode_into_libs=yes
13249    dynamic_linker="$host_os dld.sl"
13250    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13251    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13252    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13253    soname_spec='$libname$release$shared_ext$major'
13254    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13255    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13256    ;;
13257  *)
13258    shrext_cmds='.sl'
13259    dynamic_linker="$host_os dld.sl"
13260    shlibpath_var=SHLIB_PATH
13261    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13262    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13263    soname_spec='$libname$release$shared_ext$major'
13264    ;;
13265  esac
13266  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13267  postinstall_cmds='chmod 555 $lib'
13268  # or fails outright, so override atomically:
13269  install_override_mode=555
13270  ;;
13271
13272interix[3-9]*)
13273  version_type=linux # correct to gnu/linux during the next big refactor
13274  need_lib_prefix=no
13275  need_version=no
13276  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13277  soname_spec='$libname$release$shared_ext$major'
13278  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13279  shlibpath_var=LD_LIBRARY_PATH
13280  shlibpath_overrides_runpath=no
13281  hardcode_into_libs=yes
13282  ;;
13283
13284irix5* | irix6* | nonstopux*)
13285  case $host_os in
13286    nonstopux*) version_type=nonstopux ;;
13287    *)
13288	if test yes = "$lt_cv_prog_gnu_ld"; then
13289		version_type=linux # correct to gnu/linux during the next big refactor
13290	else
13291		version_type=irix
13292	fi ;;
13293  esac
13294  need_lib_prefix=no
13295  need_version=no
13296  soname_spec='$libname$release$shared_ext$major'
13297  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13298  case $host_os in
13299  irix5* | nonstopux*)
13300    libsuff= shlibsuff=
13301    ;;
13302  *)
13303    case $LD in # libtool.m4 will add one of these switches to LD
13304    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13305      libsuff= shlibsuff= libmagic=32-bit;;
13306    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13307      libsuff=32 shlibsuff=N32 libmagic=N32;;
13308    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13309      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13310    *) libsuff= shlibsuff= libmagic=never-match;;
13311    esac
13312    ;;
13313  esac
13314  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13315  shlibpath_overrides_runpath=no
13316  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13317  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13318  hardcode_into_libs=yes
13319  ;;
13320
13321# No shared lib support for Linux oldld, aout, or coff.
13322linux*oldld* | linux*aout* | linux*coff*)
13323  dynamic_linker=no
13324  ;;
13325
13326linux*android*)
13327  version_type=none # Android doesn't support versioned libraries.
13328  need_lib_prefix=no
13329  need_version=no
13330  library_names_spec='$libname$release$shared_ext'
13331  soname_spec='$libname$release$shared_ext'
13332  finish_cmds=
13333  shlibpath_var=LD_LIBRARY_PATH
13334  shlibpath_overrides_runpath=yes
13335
13336  # This implies no fast_install, which is unacceptable.
13337  # Some rework will be needed to allow for fast_install
13338  # before this can be enabled.
13339  hardcode_into_libs=yes
13340
13341  dynamic_linker='Android linker'
13342  # Don't embed -rpath directories since the linker doesn't support them.
13343  hardcode_libdir_flag_spec='-L$libdir'
13344  ;;
13345
13346# This must be glibc/ELF.
13347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13348  version_type=linux # correct to gnu/linux during the next big refactor
13349  need_lib_prefix=no
13350  need_version=no
13351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13352  soname_spec='$libname$release$shared_ext$major'
13353  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13354  shlibpath_var=LD_LIBRARY_PATH
13355  shlibpath_overrides_runpath=no
13356
13357  # Some binutils ld are patched to set DT_RUNPATH
13358  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  lt_cv_shlibpath_overrides_runpath=no
13362    save_LDFLAGS=$LDFLAGS
13363    save_libdir=$libdir
13364    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13365	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13366    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367/* end confdefs.h.  */
13368
13369int
13370main ()
13371{
13372
13373  ;
13374  return 0;
13375}
13376_ACEOF
13377if ac_fn_c_try_link "$LINENO"; then :
13378  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13379  lt_cv_shlibpath_overrides_runpath=yes
13380fi
13381fi
13382rm -f core conftest.err conftest.$ac_objext \
13383    conftest$ac_exeext conftest.$ac_ext
13384    LDFLAGS=$save_LDFLAGS
13385    libdir=$save_libdir
13386
13387fi
13388
13389  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13390
13391  # This implies no fast_install, which is unacceptable.
13392  # Some rework will be needed to allow for fast_install
13393  # before this can be enabled.
13394  hardcode_into_libs=yes
13395
13396  # Add ABI-specific directories to the system library path.
13397  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13398
13399  # Ideally, we could use ldconfig to report *all* directores which are
13400  # searched for libraries, however this is still not possible.  Aside from not
13401  # being certain /sbin/ldconfig is available, command
13402  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13403  # even though it is searched at run-time.  Try to do the best guess by
13404  # appending ld.so.conf contents (and includes) to the search path.
13405  if test -f /etc/ld.so.conf; then
13406    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' ' '`
13407    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13408  fi
13409
13410  # We used to test for /lib/ld.so.1 and disable shared libraries on
13411  # powerpc, because MkLinux only supported shared libraries with the
13412  # GNU dynamic linker.  Since this was broken with cross compilers,
13413  # most powerpc-linux boxes support dynamic linking these days and
13414  # people can always --disable-shared, the test was removed, and we
13415  # assume the GNU/Linux dynamic linker is in use.
13416  dynamic_linker='GNU/Linux ld.so'
13417  ;;
13418
13419netbsd*)
13420  version_type=sunos
13421  need_lib_prefix=no
13422  need_version=no
13423  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13424    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13425    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13426    dynamic_linker='NetBSD (a.out) ld.so'
13427  else
13428    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429    soname_spec='$libname$release$shared_ext$major'
13430    dynamic_linker='NetBSD ld.elf_so'
13431  fi
13432  shlibpath_var=LD_LIBRARY_PATH
13433  shlibpath_overrides_runpath=yes
13434  hardcode_into_libs=yes
13435  ;;
13436
13437newsos6)
13438  version_type=linux # correct to gnu/linux during the next big refactor
13439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  shlibpath_overrides_runpath=yes
13442  ;;
13443
13444*nto* | *qnx*)
13445  version_type=qnx
13446  need_lib_prefix=no
13447  need_version=no
13448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13449  soname_spec='$libname$release$shared_ext$major'
13450  shlibpath_var=LD_LIBRARY_PATH
13451  shlibpath_overrides_runpath=no
13452  hardcode_into_libs=yes
13453  dynamic_linker='ldqnx.so'
13454  ;;
13455
13456openbsd* | bitrig*)
13457  version_type=sunos
13458  sys_lib_dlsearch_path_spec=/usr/lib
13459  need_lib_prefix=no
13460  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13461    need_version=no
13462  else
13463    need_version=yes
13464  fi
13465  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13466  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13467  shlibpath_var=LD_LIBRARY_PATH
13468  shlibpath_overrides_runpath=yes
13469  ;;
13470
13471os2*)
13472  libname_spec='$name'
13473  version_type=windows
13474  shrext_cmds=.dll
13475  need_version=no
13476  need_lib_prefix=no
13477  # OS/2 can only load a DLL with a base name of 8 characters or less.
13478  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13479    v=$($ECHO $release$versuffix | tr -d .-);
13480    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13481    $ECHO $n$v`$shared_ext'
13482  library_names_spec='${libname}_dll.$libext'
13483  dynamic_linker='OS/2 ld.exe'
13484  shlibpath_var=BEGINLIBPATH
13485  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13486  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13487  postinstall_cmds='base_file=`basename \$file`~
13488    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13489    dldir=$destdir/`dirname \$dlpath`~
13490    test -d \$dldir || mkdir -p \$dldir~
13491    $install_prog $dir/$dlname \$dldir/$dlname~
13492    chmod a+x \$dldir/$dlname~
13493    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13494      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13495    fi'
13496  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13497    dlpath=$dir/\$dldll~
13498    $RM \$dlpath'
13499  ;;
13500
13501osf3* | osf4* | osf5*)
13502  version_type=osf
13503  need_lib_prefix=no
13504  need_version=no
13505  soname_spec='$libname$release$shared_ext$major'
13506  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13507  shlibpath_var=LD_LIBRARY_PATH
13508  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13509  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13510  ;;
13511
13512rdos*)
13513  dynamic_linker=no
13514  ;;
13515
13516solaris*)
13517  version_type=linux # correct to gnu/linux during the next big refactor
13518  need_lib_prefix=no
13519  need_version=no
13520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13521  soname_spec='$libname$release$shared_ext$major'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=yes
13524  hardcode_into_libs=yes
13525  # ldd complains unless libraries are executable
13526  postinstall_cmds='chmod +x $lib'
13527  ;;
13528
13529sunos4*)
13530  version_type=sunos
13531  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13533  shlibpath_var=LD_LIBRARY_PATH
13534  shlibpath_overrides_runpath=yes
13535  if test yes = "$with_gnu_ld"; then
13536    need_lib_prefix=no
13537  fi
13538  need_version=yes
13539  ;;
13540
13541sysv4 | sysv4.3*)
13542  version_type=linux # correct to gnu/linux during the next big refactor
13543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13544  soname_spec='$libname$release$shared_ext$major'
13545  shlibpath_var=LD_LIBRARY_PATH
13546  case $host_vendor in
13547    sni)
13548      shlibpath_overrides_runpath=no
13549      need_lib_prefix=no
13550      runpath_var=LD_RUN_PATH
13551      ;;
13552    siemens)
13553      need_lib_prefix=no
13554      ;;
13555    motorola)
13556      need_lib_prefix=no
13557      need_version=no
13558      shlibpath_overrides_runpath=no
13559      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13560      ;;
13561  esac
13562  ;;
13563
13564sysv4*MP*)
13565  if test -d /usr/nec; then
13566    version_type=linux # correct to gnu/linux during the next big refactor
13567    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13568    soname_spec='$libname$shared_ext.$major'
13569    shlibpath_var=LD_LIBRARY_PATH
13570  fi
13571  ;;
13572
13573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13574  version_type=sco
13575  need_lib_prefix=no
13576  need_version=no
13577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13578  soname_spec='$libname$release$shared_ext$major'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  shlibpath_overrides_runpath=yes
13581  hardcode_into_libs=yes
13582  if test yes = "$with_gnu_ld"; then
13583    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13584  else
13585    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13586    case $host_os in
13587      sco3.2v5*)
13588        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13589	;;
13590    esac
13591  fi
13592  sys_lib_dlsearch_path_spec='/usr/lib'
13593  ;;
13594
13595tpf*)
13596  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13597  version_type=linux # correct to gnu/linux during the next big refactor
13598  need_lib_prefix=no
13599  need_version=no
13600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13601  shlibpath_var=LD_LIBRARY_PATH
13602  shlibpath_overrides_runpath=no
13603  hardcode_into_libs=yes
13604  ;;
13605
13606uts4*)
13607  version_type=linux # correct to gnu/linux during the next big refactor
13608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13609  soname_spec='$libname$release$shared_ext$major'
13610  shlibpath_var=LD_LIBRARY_PATH
13611  ;;
13612
13613*)
13614  dynamic_linker=no
13615  ;;
13616esac
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13618$as_echo "$dynamic_linker" >&6; }
13619test no = "$dynamic_linker" && can_build_shared=no
13620
13621variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13622if test yes = "$GCC"; then
13623  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13624fi
13625
13626if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13627  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13628fi
13629
13630if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13631  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13632fi
13633
13634# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13635configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13636
13637# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13638func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13639
13640# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13641configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13740$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13741hardcode_action=
13742if test -n "$hardcode_libdir_flag_spec" ||
13743   test -n "$runpath_var" ||
13744   test yes = "$hardcode_automatic"; then
13745
13746  # We can hardcode non-existent directories.
13747  if test no != "$hardcode_direct" &&
13748     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13749     # have to relink, otherwise we might link with an installed library
13750     # when we should be linking with a yet-to-be-installed one
13751     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13752     test no != "$hardcode_minus_L"; then
13753    # Linking always hardcodes the temporary library directory.
13754    hardcode_action=relink
13755  else
13756    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13757    hardcode_action=immediate
13758  fi
13759else
13760  # We cannot hardcode anything, or else we can only hardcode existing
13761  # directories.
13762  hardcode_action=unsupported
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13765$as_echo "$hardcode_action" >&6; }
13766
13767if test relink = "$hardcode_action" ||
13768   test yes = "$inherit_rpath"; then
13769  # Fast installation is not supported
13770  enable_fast_install=no
13771elif test yes = "$shlibpath_overrides_runpath" ||
13772     test no = "$enable_shared"; then
13773  # Fast installation is not necessary
13774  enable_fast_install=needless
13775fi
13776
13777
13778
13779
13780
13781
13782  if test yes != "$enable_dlopen"; then
13783  enable_dlopen=unknown
13784  enable_dlopen_self=unknown
13785  enable_dlopen_self_static=unknown
13786else
13787  lt_cv_dlopen=no
13788  lt_cv_dlopen_libs=
13789
13790  case $host_os in
13791  beos*)
13792    lt_cv_dlopen=load_add_on
13793    lt_cv_dlopen_libs=
13794    lt_cv_dlopen_self=yes
13795    ;;
13796
13797  mingw* | pw32* | cegcc*)
13798    lt_cv_dlopen=LoadLibrary
13799    lt_cv_dlopen_libs=
13800    ;;
13801
13802  cygwin*)
13803    lt_cv_dlopen=dlopen
13804    lt_cv_dlopen_libs=
13805    ;;
13806
13807  darwin*)
13808    # if libdl is installed we need to link against it
13809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13810$as_echo_n "checking for dlopen in -ldl... " >&6; }
13811if ${ac_cv_lib_dl_dlopen+:} false; then :
13812  $as_echo_n "(cached) " >&6
13813else
13814  ac_check_lib_save_LIBS=$LIBS
13815LIBS="-ldl  $LIBS"
13816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818
13819/* Override any GCC internal prototype to avoid an error.
13820   Use char because int might match the return type of a GCC
13821   builtin and then its argument prototype would still apply.  */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char dlopen ();
13826int
13827main ()
13828{
13829return dlopen ();
13830  ;
13831  return 0;
13832}
13833_ACEOF
13834if ac_fn_c_try_link "$LINENO"; then :
13835  ac_cv_lib_dl_dlopen=yes
13836else
13837  ac_cv_lib_dl_dlopen=no
13838fi
13839rm -f core conftest.err conftest.$ac_objext \
13840    conftest$ac_exeext conftest.$ac_ext
13841LIBS=$ac_check_lib_save_LIBS
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13844$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13845if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13846  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13847else
13848
13849    lt_cv_dlopen=dyld
13850    lt_cv_dlopen_libs=
13851    lt_cv_dlopen_self=yes
13852
13853fi
13854
13855    ;;
13856
13857  tpf*)
13858    # Don't try to run any link tests for TPF.  We know it's impossible
13859    # because TPF is a cross-compiler, and we know how we open DSOs.
13860    lt_cv_dlopen=dlopen
13861    lt_cv_dlopen_libs=
13862    lt_cv_dlopen_self=no
13863    ;;
13864
13865  *)
13866    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13867if test "x$ac_cv_func_shl_load" = xyes; then :
13868  lt_cv_dlopen=shl_load
13869else
13870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13871$as_echo_n "checking for shl_load in -ldld... " >&6; }
13872if ${ac_cv_lib_dld_shl_load+:} false; then :
13873  $as_echo_n "(cached) " >&6
13874else
13875  ac_check_lib_save_LIBS=$LIBS
13876LIBS="-ldld  $LIBS"
13877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878/* end confdefs.h.  */
13879
13880/* Override any GCC internal prototype to avoid an error.
13881   Use char because int might match the return type of a GCC
13882   builtin and then its argument prototype would still apply.  */
13883#ifdef __cplusplus
13884extern "C"
13885#endif
13886char shl_load ();
13887int
13888main ()
13889{
13890return shl_load ();
13891  ;
13892  return 0;
13893}
13894_ACEOF
13895if ac_fn_c_try_link "$LINENO"; then :
13896  ac_cv_lib_dld_shl_load=yes
13897else
13898  ac_cv_lib_dld_shl_load=no
13899fi
13900rm -f core conftest.err conftest.$ac_objext \
13901    conftest$ac_exeext conftest.$ac_ext
13902LIBS=$ac_check_lib_save_LIBS
13903fi
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13905$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13906if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13907  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13908else
13909  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13910if test "x$ac_cv_func_dlopen" = xyes; then :
13911  lt_cv_dlopen=dlopen
13912else
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13914$as_echo_n "checking for dlopen in -ldl... " >&6; }
13915if ${ac_cv_lib_dl_dlopen+:} false; then :
13916  $as_echo_n "(cached) " >&6
13917else
13918  ac_check_lib_save_LIBS=$LIBS
13919LIBS="-ldl  $LIBS"
13920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922
13923/* Override any GCC internal prototype to avoid an error.
13924   Use char because int might match the return type of a GCC
13925   builtin and then its argument prototype would still apply.  */
13926#ifdef __cplusplus
13927extern "C"
13928#endif
13929char dlopen ();
13930int
13931main ()
13932{
13933return dlopen ();
13934  ;
13935  return 0;
13936}
13937_ACEOF
13938if ac_fn_c_try_link "$LINENO"; then :
13939  ac_cv_lib_dl_dlopen=yes
13940else
13941  ac_cv_lib_dl_dlopen=no
13942fi
13943rm -f core conftest.err conftest.$ac_objext \
13944    conftest$ac_exeext conftest.$ac_ext
13945LIBS=$ac_check_lib_save_LIBS
13946fi
13947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13948$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13949if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13950  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13951else
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13953$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13954if ${ac_cv_lib_svld_dlopen+:} false; then :
13955  $as_echo_n "(cached) " >&6
13956else
13957  ac_check_lib_save_LIBS=$LIBS
13958LIBS="-lsvld  $LIBS"
13959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h.  */
13961
13962/* Override any GCC internal prototype to avoid an error.
13963   Use char because int might match the return type of a GCC
13964   builtin and then its argument prototype would still apply.  */
13965#ifdef __cplusplus
13966extern "C"
13967#endif
13968char dlopen ();
13969int
13970main ()
13971{
13972return dlopen ();
13973  ;
13974  return 0;
13975}
13976_ACEOF
13977if ac_fn_c_try_link "$LINENO"; then :
13978  ac_cv_lib_svld_dlopen=yes
13979else
13980  ac_cv_lib_svld_dlopen=no
13981fi
13982rm -f core conftest.err conftest.$ac_objext \
13983    conftest$ac_exeext conftest.$ac_ext
13984LIBS=$ac_check_lib_save_LIBS
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13987$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13988if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13989  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13990else
13991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13992$as_echo_n "checking for dld_link in -ldld... " >&6; }
13993if ${ac_cv_lib_dld_dld_link+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  ac_check_lib_save_LIBS=$LIBS
13997LIBS="-ldld  $LIBS"
13998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h.  */
14000
14001/* Override any GCC internal prototype to avoid an error.
14002   Use char because int might match the return type of a GCC
14003   builtin and then its argument prototype would still apply.  */
14004#ifdef __cplusplus
14005extern "C"
14006#endif
14007char dld_link ();
14008int
14009main ()
14010{
14011return dld_link ();
14012  ;
14013  return 0;
14014}
14015_ACEOF
14016if ac_fn_c_try_link "$LINENO"; then :
14017  ac_cv_lib_dld_dld_link=yes
14018else
14019  ac_cv_lib_dld_dld_link=no
14020fi
14021rm -f core conftest.err conftest.$ac_objext \
14022    conftest$ac_exeext conftest.$ac_ext
14023LIBS=$ac_check_lib_save_LIBS
14024fi
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14026$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14027if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14028  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14029fi
14030
14031
14032fi
14033
14034
14035fi
14036
14037
14038fi
14039
14040
14041fi
14042
14043
14044fi
14045
14046    ;;
14047  esac
14048
14049  if test no = "$lt_cv_dlopen"; then
14050    enable_dlopen=no
14051  else
14052    enable_dlopen=yes
14053  fi
14054
14055  case $lt_cv_dlopen in
14056  dlopen)
14057    save_CPPFLAGS=$CPPFLAGS
14058    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14059
14060    save_LDFLAGS=$LDFLAGS
14061    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14062
14063    save_LIBS=$LIBS
14064    LIBS="$lt_cv_dlopen_libs $LIBS"
14065
14066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14067$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14068if ${lt_cv_dlopen_self+:} false; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  	  if test yes = "$cross_compiling"; then :
14072  lt_cv_dlopen_self=cross
14073else
14074  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14075  lt_status=$lt_dlunknown
14076  cat > conftest.$ac_ext <<_LT_EOF
14077#line $LINENO "configure"
14078#include "confdefs.h"
14079
14080#if HAVE_DLFCN_H
14081#include <dlfcn.h>
14082#endif
14083
14084#include <stdio.h>
14085
14086#ifdef RTLD_GLOBAL
14087#  define LT_DLGLOBAL		RTLD_GLOBAL
14088#else
14089#  ifdef DL_GLOBAL
14090#    define LT_DLGLOBAL		DL_GLOBAL
14091#  else
14092#    define LT_DLGLOBAL		0
14093#  endif
14094#endif
14095
14096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14097   find out it does not work in some platform. */
14098#ifndef LT_DLLAZY_OR_NOW
14099#  ifdef RTLD_LAZY
14100#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14101#  else
14102#    ifdef DL_LAZY
14103#      define LT_DLLAZY_OR_NOW		DL_LAZY
14104#    else
14105#      ifdef RTLD_NOW
14106#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14107#      else
14108#        ifdef DL_NOW
14109#          define LT_DLLAZY_OR_NOW	DL_NOW
14110#        else
14111#          define LT_DLLAZY_OR_NOW	0
14112#        endif
14113#      endif
14114#    endif
14115#  endif
14116#endif
14117
14118/* When -fvisibility=hidden is used, assume the code has been annotated
14119   correspondingly for the symbols needed.  */
14120#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14121int fnord () __attribute__((visibility("default")));
14122#endif
14123
14124int fnord () { return 42; }
14125int main ()
14126{
14127  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14128  int status = $lt_dlunknown;
14129
14130  if (self)
14131    {
14132      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14133      else
14134        {
14135	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14136          else puts (dlerror ());
14137	}
14138      /* dlclose (self); */
14139    }
14140  else
14141    puts (dlerror ());
14142
14143  return status;
14144}
14145_LT_EOF
14146  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14147  (eval $ac_link) 2>&5
14148  ac_status=$?
14149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14150  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14151    (./conftest; exit; ) >&5 2>/dev/null
14152    lt_status=$?
14153    case x$lt_status in
14154      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14155      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14156      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14157    esac
14158  else :
14159    # compilation failed
14160    lt_cv_dlopen_self=no
14161  fi
14162fi
14163rm -fr conftest*
14164
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14168$as_echo "$lt_cv_dlopen_self" >&6; }
14169
14170    if test yes = "$lt_cv_dlopen_self"; then
14171      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14172      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14173$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14174if ${lt_cv_dlopen_self_static+:} false; then :
14175  $as_echo_n "(cached) " >&6
14176else
14177  	  if test yes = "$cross_compiling"; then :
14178  lt_cv_dlopen_self_static=cross
14179else
14180  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14181  lt_status=$lt_dlunknown
14182  cat > conftest.$ac_ext <<_LT_EOF
14183#line $LINENO "configure"
14184#include "confdefs.h"
14185
14186#if HAVE_DLFCN_H
14187#include <dlfcn.h>
14188#endif
14189
14190#include <stdio.h>
14191
14192#ifdef RTLD_GLOBAL
14193#  define LT_DLGLOBAL		RTLD_GLOBAL
14194#else
14195#  ifdef DL_GLOBAL
14196#    define LT_DLGLOBAL		DL_GLOBAL
14197#  else
14198#    define LT_DLGLOBAL		0
14199#  endif
14200#endif
14201
14202/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14203   find out it does not work in some platform. */
14204#ifndef LT_DLLAZY_OR_NOW
14205#  ifdef RTLD_LAZY
14206#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14207#  else
14208#    ifdef DL_LAZY
14209#      define LT_DLLAZY_OR_NOW		DL_LAZY
14210#    else
14211#      ifdef RTLD_NOW
14212#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14213#      else
14214#        ifdef DL_NOW
14215#          define LT_DLLAZY_OR_NOW	DL_NOW
14216#        else
14217#          define LT_DLLAZY_OR_NOW	0
14218#        endif
14219#      endif
14220#    endif
14221#  endif
14222#endif
14223
14224/* When -fvisibility=hidden is used, assume the code has been annotated
14225   correspondingly for the symbols needed.  */
14226#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14227int fnord () __attribute__((visibility("default")));
14228#endif
14229
14230int fnord () { return 42; }
14231int main ()
14232{
14233  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14234  int status = $lt_dlunknown;
14235
14236  if (self)
14237    {
14238      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14239      else
14240        {
14241	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14242          else puts (dlerror ());
14243	}
14244      /* dlclose (self); */
14245    }
14246  else
14247    puts (dlerror ());
14248
14249  return status;
14250}
14251_LT_EOF
14252  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14253  (eval $ac_link) 2>&5
14254  ac_status=$?
14255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14257    (./conftest; exit; ) >&5 2>/dev/null
14258    lt_status=$?
14259    case x$lt_status in
14260      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14261      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14262      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14263    esac
14264  else :
14265    # compilation failed
14266    lt_cv_dlopen_self_static=no
14267  fi
14268fi
14269rm -fr conftest*
14270
14271
14272fi
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14274$as_echo "$lt_cv_dlopen_self_static" >&6; }
14275    fi
14276
14277    CPPFLAGS=$save_CPPFLAGS
14278    LDFLAGS=$save_LDFLAGS
14279    LIBS=$save_LIBS
14280    ;;
14281  esac
14282
14283  case $lt_cv_dlopen_self in
14284  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14285  *) enable_dlopen_self=unknown ;;
14286  esac
14287
14288  case $lt_cv_dlopen_self_static in
14289  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14290  *) enable_dlopen_self_static=unknown ;;
14291  esac
14292fi
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310striplib=
14311old_striplib=
14312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14313$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14314if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14315  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14316  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318$as_echo "yes" >&6; }
14319else
14320# FIXME - insert some real tests, host_os isn't really good enough
14321  case $host_os in
14322  darwin*)
14323    if test -n "$STRIP"; then
14324      striplib="$STRIP -x"
14325      old_striplib="$STRIP -S"
14326      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14327$as_echo "yes" >&6; }
14328    else
14329      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330$as_echo "no" >&6; }
14331    fi
14332    ;;
14333  *)
14334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335$as_echo "no" >&6; }
14336    ;;
14337  esac
14338fi
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351  # Report what library types will actually be built
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14353$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14355$as_echo "$can_build_shared" >&6; }
14356
14357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14358$as_echo_n "checking whether to build shared libraries... " >&6; }
14359  test no = "$can_build_shared" && enable_shared=no
14360
14361  # On AIX, shared libraries and static libraries use the same namespace, and
14362  # are all built from PIC.
14363  case $host_os in
14364  aix3*)
14365    test yes = "$enable_shared" && enable_static=no
14366    if test -n "$RANLIB"; then
14367      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14368      postinstall_cmds='$RANLIB $lib'
14369    fi
14370    ;;
14371
14372  aix[4-9]*)
14373    if test ia64 != "$host_cpu"; then
14374      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14375      yes,aix,yes) ;;			# shared object as lib.so file only
14376      yes,svr4,*) ;;			# shared object as lib.so archive member only
14377      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14378      esac
14379    fi
14380    ;;
14381  esac
14382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14383$as_echo "$enable_shared" >&6; }
14384
14385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14386$as_echo_n "checking whether to build static libraries... " >&6; }
14387  # Make sure either enable_shared or enable_static is yes.
14388  test yes = "$enable_shared" || enable_static=yes
14389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14390$as_echo "$enable_static" >&6; }
14391
14392
14393
14394
14395fi
14396ac_ext=c
14397ac_cpp='$CPP $CPPFLAGS'
14398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400ac_compiler_gnu=$ac_cv_c_compiler_gnu
14401
14402CC=$lt_save_CC
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418        ac_config_commands="$ac_config_commands libtool"
14419
14420
14421
14422
14423# Only expand once:
14424
14425
14426
14427
14428# pkg-config is only needed for these options, do not require it otherwise
14429if test "$enable_systemd" = "yes" -o "$enable_dnstap" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14430
14431
14432
14433
14434
14435
14436
14437if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14438	if test -n "$ac_tool_prefix"; then
14439  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14440set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442$as_echo_n "checking for $ac_word... " >&6; }
14443if ${ac_cv_path_PKG_CONFIG+:} false; then :
14444  $as_echo_n "(cached) " >&6
14445else
14446  case $PKG_CONFIG in
14447  [\\/]* | ?:[\\/]*)
14448  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14449  ;;
14450  *)
14451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452for as_dir in $PATH
14453do
14454  IFS=$as_save_IFS
14455  test -z "$as_dir" && as_dir=.
14456    for ac_exec_ext in '' $ac_executable_extensions; do
14457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14460    break 2
14461  fi
14462done
14463  done
14464IFS=$as_save_IFS
14465
14466  ;;
14467esac
14468fi
14469PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14470if test -n "$PKG_CONFIG"; then
14471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14472$as_echo "$PKG_CONFIG" >&6; }
14473else
14474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14475$as_echo "no" >&6; }
14476fi
14477
14478
14479fi
14480if test -z "$ac_cv_path_PKG_CONFIG"; then
14481  ac_pt_PKG_CONFIG=$PKG_CONFIG
14482  # Extract the first word of "pkg-config", so it can be a program name with args.
14483set dummy pkg-config; ac_word=$2
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14485$as_echo_n "checking for $ac_word... " >&6; }
14486if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14487  $as_echo_n "(cached) " >&6
14488else
14489  case $ac_pt_PKG_CONFIG in
14490  [\\/]* | ?:[\\/]*)
14491  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14492  ;;
14493  *)
14494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495for as_dir in $PATH
14496do
14497  IFS=$as_save_IFS
14498  test -z "$as_dir" && as_dir=.
14499    for ac_exec_ext in '' $ac_executable_extensions; do
14500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503    break 2
14504  fi
14505done
14506  done
14507IFS=$as_save_IFS
14508
14509  ;;
14510esac
14511fi
14512ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14513if test -n "$ac_pt_PKG_CONFIG"; then
14514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14515$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14516else
14517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14518$as_echo "no" >&6; }
14519fi
14520
14521  if test "x$ac_pt_PKG_CONFIG" = x; then
14522    PKG_CONFIG=""
14523  else
14524    case $cross_compiling:$ac_tool_warned in
14525yes:)
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14528ac_tool_warned=yes ;;
14529esac
14530    PKG_CONFIG=$ac_pt_PKG_CONFIG
14531  fi
14532else
14533  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14534fi
14535
14536fi
14537if test -n "$PKG_CONFIG"; then
14538	_pkg_min_version=0.9.0
14539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14540$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14541	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543$as_echo "yes" >&6; }
14544	else
14545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546$as_echo "no" >&6; }
14547		PKG_CONFIG=""
14548	fi
14549fi
14550fi
14551
14552# Checks for header files.
14553for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h poll.h
14554do :
14555  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14556ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14557"
14558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14559  cat >>confdefs.h <<_ACEOF
14560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561_ACEOF
14562
14563fi
14564
14565done
14566
14567# net/if.h portability for Darwin see:
14568# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14569for ac_header in net/if.h
14570do :
14571  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14572#include <stdio.h>
14573#ifdef STDC_HEADERS
14574# include <stdlib.h>
14575# include <stddef.h>
14576#else
14577# ifdef HAVE_STDLIB_H
14578#  include <stdlib.h>
14579# endif
14580#endif
14581#ifdef HAVE_SYS_SOCKET_H
14582# include <sys/socket.h>
14583#endif
14584
14585"
14586if test "x$ac_cv_header_net_if_h" = xyes; then :
14587  cat >>confdefs.h <<_ACEOF
14588#define HAVE_NET_IF_H 1
14589_ACEOF
14590
14591fi
14592
14593done
14594
14595
14596# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14597for ac_header in TargetConditionals.h
14598do :
14599  ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14600"
14601if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14602  cat >>confdefs.h <<_ACEOF
14603#define HAVE_TARGETCONDITIONALS_H 1
14604_ACEOF
14605
14606fi
14607
14608done
14609
14610for ac_header in netioapi.h
14611do :
14612  ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14613#if HAVE_SYS_PARAM_H
14614#include <sys/param.h>
14615#endif
14616
14617#ifdef HAVE_SYS_SOCKET_H
14618#include <sys/socket.h>
14619#endif
14620
14621#ifdef HAVE_SYS_UIO_H
14622#include <sys/uio.h>
14623#endif
14624
14625#ifdef HAVE_NETINET_IN_H
14626#include <netinet/in.h>
14627#endif
14628
14629#ifdef HAVE_NETINET_TCP_H
14630#include <netinet/tcp.h>
14631#endif
14632
14633#ifdef HAVE_ARPA_INET_H
14634#include <arpa/inet.h>
14635#endif
14636
14637#ifdef HAVE_WINSOCK2_H
14638#include <winsock2.h>
14639#endif
14640
14641#ifdef HAVE_WS2TCPIP_H
14642#include <ws2tcpip.h>
14643#endif
14644
14645"
14646if test "x$ac_cv_header_netioapi_h" = xyes; then :
14647  cat >>confdefs.h <<_ACEOF
14648#define HAVE_NETIOAPI_H 1
14649_ACEOF
14650
14651fi
14652
14653done
14654
14655
14656# Check for Linux timestamping headers
14657for ac_header in linux/net_tstamp.h
14658do :
14659  ac_fn_c_check_header_compile "$LINENO" "linux/net_tstamp.h" "ac_cv_header_linux_net_tstamp_h" "$ac_includes_default
14660"
14661if test "x$ac_cv_header_linux_net_tstamp_h" = xyes; then :
14662  cat >>confdefs.h <<_ACEOF
14663#define HAVE_LINUX_NET_TSTAMP_H 1
14664_ACEOF
14665
14666fi
14667
14668done
14669
14670
14671# check for types.
14672# Using own tests for int64* because autoconf builtin only give 32bit.
14673ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14674if test "x$ac_cv_type_int8_t" = xyes; then :
14675
14676else
14677
14678cat >>confdefs.h <<_ACEOF
14679#define int8_t signed char
14680_ACEOF
14681
14682fi
14683
14684ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14685if test "x$ac_cv_type_int16_t" = xyes; then :
14686
14687else
14688
14689cat >>confdefs.h <<_ACEOF
14690#define int16_t short
14691_ACEOF
14692
14693fi
14694
14695ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14696if test "x$ac_cv_type_int32_t" = xyes; then :
14697
14698else
14699
14700cat >>confdefs.h <<_ACEOF
14701#define int32_t int
14702_ACEOF
14703
14704fi
14705
14706ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14707if test "x$ac_cv_type_int64_t" = xyes; then :
14708
14709else
14710
14711cat >>confdefs.h <<_ACEOF
14712#define int64_t long long
14713_ACEOF
14714
14715fi
14716
14717ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14718if test "x$ac_cv_type_uint8_t" = xyes; then :
14719
14720else
14721
14722cat >>confdefs.h <<_ACEOF
14723#define uint8_t unsigned char
14724_ACEOF
14725
14726fi
14727
14728ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14729if test "x$ac_cv_type_uint16_t" = xyes; then :
14730
14731else
14732
14733cat >>confdefs.h <<_ACEOF
14734#define uint16_t unsigned short
14735_ACEOF
14736
14737fi
14738
14739ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14740if test "x$ac_cv_type_uint32_t" = xyes; then :
14741
14742else
14743
14744cat >>confdefs.h <<_ACEOF
14745#define uint32_t unsigned int
14746_ACEOF
14747
14748fi
14749
14750ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14751if test "x$ac_cv_type_uint64_t" = xyes; then :
14752
14753else
14754
14755cat >>confdefs.h <<_ACEOF
14756#define uint64_t unsigned long long
14757_ACEOF
14758
14759fi
14760
14761ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14762if test "x$ac_cv_type_size_t" = xyes; then :
14763
14764else
14765
14766cat >>confdefs.h <<_ACEOF
14767#define size_t unsigned int
14768_ACEOF
14769
14770fi
14771
14772ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14773if test "x$ac_cv_type_ssize_t" = xyes; then :
14774
14775else
14776
14777cat >>confdefs.h <<_ACEOF
14778#define ssize_t int
14779_ACEOF
14780
14781fi
14782
14783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14784$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14785if ${ac_cv_type_uid_t+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790#include <sys/types.h>
14791
14792_ACEOF
14793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14794  $EGREP "uid_t" >/dev/null 2>&1; then :
14795  ac_cv_type_uid_t=yes
14796else
14797  ac_cv_type_uid_t=no
14798fi
14799rm -f conftest*
14800
14801fi
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14803$as_echo "$ac_cv_type_uid_t" >&6; }
14804if test $ac_cv_type_uid_t = no; then
14805
14806$as_echo "#define uid_t int" >>confdefs.h
14807
14808
14809$as_echo "#define gid_t int" >>confdefs.h
14810
14811fi
14812
14813ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14814if test "x$ac_cv_type_pid_t" = xyes; then :
14815
14816else
14817
14818cat >>confdefs.h <<_ACEOF
14819#define pid_t int
14820_ACEOF
14821
14822fi
14823
14824ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14825if test "x$ac_cv_type_off_t" = xyes; then :
14826
14827else
14828
14829cat >>confdefs.h <<_ACEOF
14830#define off_t long int
14831_ACEOF
14832
14833fi
14834
14835ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14836$ac_includes_default
14837#ifdef HAVE_WINSOCK2_H
14838#  include <winsock2.h>
14839#endif
14840
14841"
14842if test "x$ac_cv_type_u_char" = xyes; then :
14843
14844else
14845
14846$as_echo "#define u_char unsigned char" >>confdefs.h
14847
14848fi
14849
14850ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14851$ac_includes_default
14852#ifdef HAVE_SYS_RESOURCE_H
14853#  include <sys/resource.h>
14854#endif
14855
14856"
14857if test "x$ac_cv_type_rlim_t" = xyes; then :
14858
14859else
14860
14861$as_echo "#define rlim_t unsigned long" >>confdefs.h
14862
14863fi
14864
14865
14866ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14867$ac_includes_default
14868#ifdef HAVE_SYS_SOCKET_H
14869#  include <sys/socket.h>
14870#endif
14871#ifdef HAVE_WS2TCPIP_H
14872#  include <ws2tcpip.h>
14873#endif
14874
14875"
14876if test "x$ac_cv_type_socklen_t" = xyes; then :
14877
14878else
14879
14880$as_echo "#define socklen_t int" >>confdefs.h
14881
14882fi
14883
14884 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14885$ac_includes_default
14886#ifdef HAVE_SYS_TYPES_H
14887# include <sys/types.h>
14888#endif
14889#ifdef HAVE_NETINET_IN_H
14890# include <netinet/in.h>
14891#endif
14892
14893"
14894if test "x$ac_cv_type_in_addr_t" = xyes; then :
14895
14896else
14897
14898$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14899
14900fi
14901
14902 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14903$ac_includes_default
14904#ifdef HAVE_SYS_TYPES_H
14905# include <sys/types.h>
14906#endif
14907#ifdef HAVE_NETINET_IN_H
14908# include <netinet/in.h>
14909#endif
14910
14911"
14912if test "x$ac_cv_type_in_port_t" = xyes; then :
14913
14914else
14915
14916$as_echo "#define in_port_t uint16_t" >>confdefs.h
14917
14918fi
14919
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14921$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14922if test "$cross_compiling" = yes; then :
14923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14924$as_echo "cross-compile no" >&6; }
14925
14926$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14927
14928  case " $LIBOBJS " in
14929  *" memcmp.$ac_objext "* ) ;;
14930  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14931 ;;
14932esac
14933
14934
14935else
14936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937/* end confdefs.h.  */
14938
14939#include <stdio.h>
14940#include <stdlib.h>
14941#include <string.h>
14942int main(void)
14943{
14944	char a = 255, b = 0;
14945	if(memcmp(&a, &b, 1) < 0)
14946		return 1;
14947	return 0;
14948}
14949
14950_ACEOF
14951if ac_fn_c_try_run "$LINENO"; then :
14952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14953$as_echo "yes" >&6; }
14954else
14955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14956$as_echo "no" >&6; }
14957
14958$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14959
14960  case " $LIBOBJS " in
14961  *" memcmp.$ac_objext "* ) ;;
14962  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14963 ;;
14964esac
14965
14966
14967fi
14968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14969  conftest.$ac_objext conftest.beam conftest.$ac_ext
14970fi
14971
14972
14973# The cast to long int works around a bug in the HP C Compiler
14974# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14975# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14976# This bug is HP SR number 8606223364.
14977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14978$as_echo_n "checking size of time_t... " >&6; }
14979if ${ac_cv_sizeof_time_t+:} false; then :
14980  $as_echo_n "(cached) " >&6
14981else
14982  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14983$ac_includes_default
14984#ifdef TIME_WITH_SYS_TIME
14985# include <sys/time.h>
14986# include <time.h>
14987#else
14988# ifdef HAVE_SYS_TIME_H
14989#  include <sys/time.h>
14990# else
14991#  include <time.h>
14992# endif
14993#endif
14994
14995"; then :
14996
14997else
14998  if test "$ac_cv_type_time_t" = yes; then
14999     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15001as_fn_error 77 "cannot compute sizeof (time_t)
15002See \`config.log' for more details" "$LINENO" 5; }
15003   else
15004     ac_cv_sizeof_time_t=0
15005   fi
15006fi
15007
15008fi
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15010$as_echo "$ac_cv_sizeof_time_t" >&6; }
15011
15012
15013
15014cat >>confdefs.h <<_ACEOF
15015#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15016_ACEOF
15017
15018
15019# The cast to long int works around a bug in the HP C Compiler
15020# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15021# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15022# This bug is HP SR number 8606223364.
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15024$as_echo_n "checking size of size_t... " >&6; }
15025if ${ac_cv_sizeof_size_t+:} false; then :
15026  $as_echo_n "(cached) " >&6
15027else
15028  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15029
15030else
15031  if test "$ac_cv_type_size_t" = yes; then
15032     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15034as_fn_error 77 "cannot compute sizeof (size_t)
15035See \`config.log' for more details" "$LINENO" 5; }
15036   else
15037     ac_cv_sizeof_size_t=0
15038   fi
15039fi
15040
15041fi
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15043$as_echo "$ac_cv_sizeof_size_t" >&6; }
15044
15045
15046
15047cat >>confdefs.h <<_ACEOF
15048#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15049_ACEOF
15050
15051
15052
15053# add option to disable the evil rpath
15054
15055# Check whether --enable-rpath was given.
15056if test "${enable_rpath+set}" = set; then :
15057  enableval=$enable_rpath; enable_rpath=$enableval
15058else
15059  enable_rpath=yes
15060fi
15061
15062if test "x$enable_rpath" = xno; then
15063		ac_config_commands="$ac_config_commands disable-rpath"
15064
15065fi
15066
15067
15068
15069# check to see if libraries are needed for these functions.
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15071$as_echo_n "checking for library containing inet_pton... " >&6; }
15072if ${ac_cv_search_inet_pton+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  ac_func_search_save_LIBS=$LIBS
15076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077/* end confdefs.h.  */
15078
15079/* Override any GCC internal prototype to avoid an error.
15080   Use char because int might match the return type of a GCC
15081   builtin and then its argument prototype would still apply.  */
15082#ifdef __cplusplus
15083extern "C"
15084#endif
15085char inet_pton ();
15086int
15087main ()
15088{
15089return inet_pton ();
15090  ;
15091  return 0;
15092}
15093_ACEOF
15094for ac_lib in '' nsl; do
15095  if test -z "$ac_lib"; then
15096    ac_res="none required"
15097  else
15098    ac_res=-l$ac_lib
15099    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15100  fi
15101  if ac_fn_c_try_link "$LINENO"; then :
15102  ac_cv_search_inet_pton=$ac_res
15103fi
15104rm -f core conftest.err conftest.$ac_objext \
15105    conftest$ac_exeext
15106  if ${ac_cv_search_inet_pton+:} false; then :
15107  break
15108fi
15109done
15110if ${ac_cv_search_inet_pton+:} false; then :
15111
15112else
15113  ac_cv_search_inet_pton=no
15114fi
15115rm conftest.$ac_ext
15116LIBS=$ac_func_search_save_LIBS
15117fi
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15119$as_echo "$ac_cv_search_inet_pton" >&6; }
15120ac_res=$ac_cv_search_inet_pton
15121if test "$ac_res" != no; then :
15122  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15123
15124fi
15125
15126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15127$as_echo_n "checking for library containing socket... " >&6; }
15128if ${ac_cv_search_socket+:} false; then :
15129  $as_echo_n "(cached) " >&6
15130else
15131  ac_func_search_save_LIBS=$LIBS
15132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h.  */
15134
15135/* Override any GCC internal prototype to avoid an error.
15136   Use char because int might match the return type of a GCC
15137   builtin and then its argument prototype would still apply.  */
15138#ifdef __cplusplus
15139extern "C"
15140#endif
15141char socket ();
15142int
15143main ()
15144{
15145return socket ();
15146  ;
15147  return 0;
15148}
15149_ACEOF
15150for ac_lib in '' socket; do
15151  if test -z "$ac_lib"; then
15152    ac_res="none required"
15153  else
15154    ac_res=-l$ac_lib
15155    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15156  fi
15157  if ac_fn_c_try_link "$LINENO"; then :
15158  ac_cv_search_socket=$ac_res
15159fi
15160rm -f core conftest.err conftest.$ac_objext \
15161    conftest$ac_exeext
15162  if ${ac_cv_search_socket+:} false; then :
15163  break
15164fi
15165done
15166if ${ac_cv_search_socket+:} false; then :
15167
15168else
15169  ac_cv_search_socket=no
15170fi
15171rm conftest.$ac_ext
15172LIBS=$ac_func_search_save_LIBS
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15175$as_echo "$ac_cv_search_socket" >&6; }
15176ac_res=$ac_cv_search_socket
15177if test "$ac_res" != no; then :
15178  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15179
15180fi
15181
15182
15183# check whether strptime also works
15184
15185# check some functions of the OS before linking libs (while still runnable).
15186for ac_header in unistd.h
15187do :
15188  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15189if test "x$ac_cv_header_unistd_h" = xyes; then :
15190  cat >>confdefs.h <<_ACEOF
15191#define HAVE_UNISTD_H 1
15192_ACEOF
15193
15194fi
15195
15196done
15197
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15199$as_echo_n "checking for working chown... " >&6; }
15200if ${ac_cv_func_chown_works+:} false; then :
15201  $as_echo_n "(cached) " >&6
15202else
15203  if test "$cross_compiling" = yes; then :
15204  ac_cv_func_chown_works=no
15205else
15206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207/* end confdefs.h.  */
15208$ac_includes_default
15209#include <fcntl.h>
15210
15211int
15212main ()
15213{
15214  char *f = "conftest.chown";
15215  struct stat before, after;
15216
15217  if (creat (f, 0600) < 0)
15218    return 1;
15219  if (stat (f, &before) < 0)
15220    return 1;
15221  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15222    return 1;
15223  if (stat (f, &after) < 0)
15224    return 1;
15225  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15226
15227  ;
15228  return 0;
15229}
15230_ACEOF
15231if ac_fn_c_try_run "$LINENO"; then :
15232  ac_cv_func_chown_works=yes
15233else
15234  ac_cv_func_chown_works=no
15235fi
15236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15237  conftest.$ac_objext conftest.beam conftest.$ac_ext
15238fi
15239
15240rm -f conftest.chown
15241
15242fi
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15244$as_echo "$ac_cv_func_chown_works" >&6; }
15245if test $ac_cv_func_chown_works = yes; then
15246
15247$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15248
15249fi
15250
15251for ac_header in vfork.h
15252do :
15253  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15254if test "x$ac_cv_header_vfork_h" = xyes; then :
15255  cat >>confdefs.h <<_ACEOF
15256#define HAVE_VFORK_H 1
15257_ACEOF
15258
15259fi
15260
15261done
15262
15263for ac_func in fork vfork
15264do :
15265  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15266ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15267if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15268  cat >>confdefs.h <<_ACEOF
15269#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15270_ACEOF
15271
15272fi
15273done
15274
15275if test "x$ac_cv_func_fork" = xyes; then
15276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15277$as_echo_n "checking for working fork... " >&6; }
15278if ${ac_cv_func_fork_works+:} false; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  if test "$cross_compiling" = yes; then :
15282  ac_cv_func_fork_works=cross
15283else
15284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285/* end confdefs.h.  */
15286$ac_includes_default
15287int
15288main ()
15289{
15290
15291	  /* By Ruediger Kuhlmann. */
15292	  return fork () < 0;
15293
15294  ;
15295  return 0;
15296}
15297_ACEOF
15298if ac_fn_c_try_run "$LINENO"; then :
15299  ac_cv_func_fork_works=yes
15300else
15301  ac_cv_func_fork_works=no
15302fi
15303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15304  conftest.$ac_objext conftest.beam conftest.$ac_ext
15305fi
15306
15307fi
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15309$as_echo "$ac_cv_func_fork_works" >&6; }
15310
15311else
15312  ac_cv_func_fork_works=$ac_cv_func_fork
15313fi
15314if test "x$ac_cv_func_fork_works" = xcross; then
15315  case $host in
15316    *-*-amigaos* | *-*-msdosdjgpp*)
15317      # Override, as these systems have only a dummy fork() stub
15318      ac_cv_func_fork_works=no
15319      ;;
15320    *)
15321      ac_cv_func_fork_works=yes
15322      ;;
15323  esac
15324  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15325$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15326fi
15327ac_cv_func_vfork_works=$ac_cv_func_vfork
15328if test "x$ac_cv_func_vfork" = xyes; then
15329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15330$as_echo_n "checking for working vfork... " >&6; }
15331if ${ac_cv_func_vfork_works+:} false; then :
15332  $as_echo_n "(cached) " >&6
15333else
15334  if test "$cross_compiling" = yes; then :
15335  ac_cv_func_vfork_works=cross
15336else
15337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h.  */
15339/* Thanks to Paul Eggert for this test.  */
15340$ac_includes_default
15341#include <sys/wait.h>
15342#ifdef HAVE_VFORK_H
15343# include <vfork.h>
15344#endif
15345/* On some sparc systems, changes by the child to local and incoming
15346   argument registers are propagated back to the parent.  The compiler
15347   is told about this with #include <vfork.h>, but some compilers
15348   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15349   static variable whose address is put into a register that is
15350   clobbered by the vfork.  */
15351static void
15352#ifdef __cplusplus
15353sparc_address_test (int arg)
15354# else
15355sparc_address_test (arg) int arg;
15356#endif
15357{
15358  static pid_t child;
15359  if (!child) {
15360    child = vfork ();
15361    if (child < 0) {
15362      perror ("vfork");
15363      _exit(2);
15364    }
15365    if (!child) {
15366      arg = getpid();
15367      write(-1, "", 0);
15368      _exit (arg);
15369    }
15370  }
15371}
15372
15373int
15374main ()
15375{
15376  pid_t parent = getpid ();
15377  pid_t child;
15378
15379  sparc_address_test (0);
15380
15381  child = vfork ();
15382
15383  if (child == 0) {
15384    /* Here is another test for sparc vfork register problems.  This
15385       test uses lots of local variables, at least as many local
15386       variables as main has allocated so far including compiler
15387       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15388       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15389       reuse the register of parent for one of the local variables,
15390       since it will think that parent can't possibly be used any more
15391       in this routine.  Assigning to the local variable will thus
15392       munge parent in the parent process.  */
15393    pid_t
15394      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15395      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15396    /* Convince the compiler that p..p7 are live; otherwise, it might
15397       use the same hardware register for all 8 local variables.  */
15398    if (p != p1 || p != p2 || p != p3 || p != p4
15399	|| p != p5 || p != p6 || p != p7)
15400      _exit(1);
15401
15402    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15403       from child file descriptors.  If the child closes a descriptor
15404       before it execs or exits, this munges the parent's descriptor
15405       as well.  Test for this by closing stdout in the child.  */
15406    _exit(close(fileno(stdout)) != 0);
15407  } else {
15408    int status;
15409    struct stat st;
15410
15411    while (wait(&status) != child)
15412      ;
15413    return (
15414	 /* Was there some problem with vforking?  */
15415	 child < 0
15416
15417	 /* Did the child fail?  (This shouldn't happen.)  */
15418	 || status
15419
15420	 /* Did the vfork/compiler bug occur?  */
15421	 || parent != getpid()
15422
15423	 /* Did the file descriptor bug occur?  */
15424	 || fstat(fileno(stdout), &st) != 0
15425	 );
15426  }
15427}
15428_ACEOF
15429if ac_fn_c_try_run "$LINENO"; then :
15430  ac_cv_func_vfork_works=yes
15431else
15432  ac_cv_func_vfork_works=no
15433fi
15434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15435  conftest.$ac_objext conftest.beam conftest.$ac_ext
15436fi
15437
15438fi
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15440$as_echo "$ac_cv_func_vfork_works" >&6; }
15441
15442fi;
15443if test "x$ac_cv_func_fork_works" = xcross; then
15444  ac_cv_func_vfork_works=$ac_cv_func_vfork
15445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15446$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15447fi
15448
15449if test "x$ac_cv_func_vfork_works" = xyes; then
15450
15451$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15452
15453else
15454
15455$as_echo "#define vfork fork" >>confdefs.h
15456
15457fi
15458if test "x$ac_cv_func_fork_works" = xyes; then
15459
15460$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15461
15462fi
15463
15464
15465$as_echo "#define RETSIGTYPE void" >>confdefs.h
15466
15467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15468$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15469if ${ac_cv_sys_largefile_source+:} false; then :
15470  $as_echo_n "(cached) " >&6
15471else
15472  while :; do
15473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474/* end confdefs.h.  */
15475#include <sys/types.h> /* for off_t */
15476     #include <stdio.h>
15477int
15478main ()
15479{
15480int (*fp) (FILE *, off_t, int) = fseeko;
15481     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15482  ;
15483  return 0;
15484}
15485_ACEOF
15486if ac_fn_c_try_link "$LINENO"; then :
15487  ac_cv_sys_largefile_source=no; break
15488fi
15489rm -f core conftest.err conftest.$ac_objext \
15490    conftest$ac_exeext conftest.$ac_ext
15491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492/* end confdefs.h.  */
15493#define _LARGEFILE_SOURCE 1
15494#include <sys/types.h> /* for off_t */
15495     #include <stdio.h>
15496int
15497main ()
15498{
15499int (*fp) (FILE *, off_t, int) = fseeko;
15500     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15501  ;
15502  return 0;
15503}
15504_ACEOF
15505if ac_fn_c_try_link "$LINENO"; then :
15506  ac_cv_sys_largefile_source=1; break
15507fi
15508rm -f core conftest.err conftest.$ac_objext \
15509    conftest$ac_exeext conftest.$ac_ext
15510  ac_cv_sys_largefile_source=unknown
15511  break
15512done
15513fi
15514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15515$as_echo "$ac_cv_sys_largefile_source" >&6; }
15516case $ac_cv_sys_largefile_source in #(
15517  no | unknown) ;;
15518  *)
15519cat >>confdefs.h <<_ACEOF
15520#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15521_ACEOF
15522;;
15523esac
15524rm -rf conftest*
15525
15526# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15527# in glibc 2.1.3, but that breaks too many other things.
15528# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15529if test $ac_cv_sys_largefile_source != unknown; then
15530
15531$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15532
15533fi
15534
15535
15536# Check whether --enable-largefile was given.
15537if test "${enable_largefile+set}" = set; then :
15538  enableval=$enable_largefile;
15539fi
15540
15541if test "$enable_largefile" != no; then
15542
15543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15544$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15545if ${ac_cv_sys_largefile_CC+:} false; then :
15546  $as_echo_n "(cached) " >&6
15547else
15548  ac_cv_sys_largefile_CC=no
15549     if test "$GCC" != yes; then
15550       ac_save_CC=$CC
15551       while :; do
15552	 # IRIX 6.2 and later do not support large files by default,
15553	 # so use the C compiler's -n32 option if that helps.
15554	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556#include <sys/types.h>
15557 /* Check that off_t can represent 2**63 - 1 correctly.
15558    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15559    since some C++ compilers masquerading as C compilers
15560    incorrectly reject 9223372036854775807.  */
15561#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15562  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15563		       && LARGE_OFF_T % 2147483647 == 1)
15564		      ? 1 : -1];
15565int
15566main ()
15567{
15568
15569  ;
15570  return 0;
15571}
15572_ACEOF
15573	 if ac_fn_c_try_compile "$LINENO"; then :
15574  break
15575fi
15576rm -f core conftest.err conftest.$ac_objext
15577	 CC="$CC -n32"
15578	 if ac_fn_c_try_compile "$LINENO"; then :
15579  ac_cv_sys_largefile_CC=' -n32'; break
15580fi
15581rm -f core conftest.err conftest.$ac_objext
15582	 break
15583       done
15584       CC=$ac_save_CC
15585       rm -f conftest.$ac_ext
15586    fi
15587fi
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15589$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15590  if test "$ac_cv_sys_largefile_CC" != no; then
15591    CC=$CC$ac_cv_sys_largefile_CC
15592  fi
15593
15594  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15595$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15596if ${ac_cv_sys_file_offset_bits+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  while :; do
15600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601/* end confdefs.h.  */
15602#include <sys/types.h>
15603 /* Check that off_t can represent 2**63 - 1 correctly.
15604    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15605    since some C++ compilers masquerading as C compilers
15606    incorrectly reject 9223372036854775807.  */
15607#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15608  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15609		       && LARGE_OFF_T % 2147483647 == 1)
15610		      ? 1 : -1];
15611int
15612main ()
15613{
15614
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620  ac_cv_sys_file_offset_bits=no; break
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h.  */
15625#define _FILE_OFFSET_BITS 64
15626#include <sys/types.h>
15627 /* Check that off_t can represent 2**63 - 1 correctly.
15628    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15629    since some C++ compilers masquerading as C compilers
15630    incorrectly reject 9223372036854775807.  */
15631#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15632  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15633		       && LARGE_OFF_T % 2147483647 == 1)
15634		      ? 1 : -1];
15635int
15636main ()
15637{
15638
15639  ;
15640  return 0;
15641}
15642_ACEOF
15643if ac_fn_c_try_compile "$LINENO"; then :
15644  ac_cv_sys_file_offset_bits=64; break
15645fi
15646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647  ac_cv_sys_file_offset_bits=unknown
15648  break
15649done
15650fi
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15652$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15653case $ac_cv_sys_file_offset_bits in #(
15654  no | unknown) ;;
15655  *)
15656cat >>confdefs.h <<_ACEOF
15657#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15658_ACEOF
15659;;
15660esac
15661rm -rf conftest*
15662  if test $ac_cv_sys_file_offset_bits = unknown; then
15663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15664$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15665if ${ac_cv_sys_large_files+:} false; then :
15666  $as_echo_n "(cached) " >&6
15667else
15668  while :; do
15669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670/* end confdefs.h.  */
15671#include <sys/types.h>
15672 /* Check that off_t can represent 2**63 - 1 correctly.
15673    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15674    since some C++ compilers masquerading as C compilers
15675    incorrectly reject 9223372036854775807.  */
15676#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15677  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15678		       && LARGE_OFF_T % 2147483647 == 1)
15679		      ? 1 : -1];
15680int
15681main ()
15682{
15683
15684  ;
15685  return 0;
15686}
15687_ACEOF
15688if ac_fn_c_try_compile "$LINENO"; then :
15689  ac_cv_sys_large_files=no; break
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693/* end confdefs.h.  */
15694#define _LARGE_FILES 1
15695#include <sys/types.h>
15696 /* Check that off_t can represent 2**63 - 1 correctly.
15697    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15698    since some C++ compilers masquerading as C compilers
15699    incorrectly reject 9223372036854775807.  */
15700#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15701  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15702		       && LARGE_OFF_T % 2147483647 == 1)
15703		      ? 1 : -1];
15704int
15705main ()
15706{
15707
15708  ;
15709  return 0;
15710}
15711_ACEOF
15712if ac_fn_c_try_compile "$LINENO"; then :
15713  ac_cv_sys_large_files=1; break
15714fi
15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15716  ac_cv_sys_large_files=unknown
15717  break
15718done
15719fi
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15721$as_echo "$ac_cv_sys_large_files" >&6; }
15722case $ac_cv_sys_large_files in #(
15723  no | unknown) ;;
15724  *)
15725cat >>confdefs.h <<_ACEOF
15726#define _LARGE_FILES $ac_cv_sys_large_files
15727_ACEOF
15728;;
15729esac
15730rm -rf conftest*
15731  fi
15732
15733
15734fi
15735
15736
15737
15738
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15740$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15741cache=_D_LARGEFILE_SOURCE_1
15742if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15743  $as_echo_n "(cached) " >&6
15744else
15745
15746echo '
15747#include <stdio.h>
15748int test(void) {
15749        int a = fseeko(stdin, 0, 0);
15750        return a;
15751}
15752' > conftest.c
15753echo 'void f(void){}' >>conftest.c
15754if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15755eval "cv_prog_cc_flag_needed_$cache=no"
15756else
15757
15758if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15759eval "cv_prog_cc_flag_needed_$cache=yes"
15760else
15761eval "cv_prog_cc_flag_needed_$cache=fail"
15762#echo 'Test with flag fails too!'
15763#cat conftest.c
15764#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15765#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15766#exit 1
15767fi
15768
15769fi
15770rm -f conftest conftest.c conftest.o
15771
15772fi
15773
15774if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776$as_echo "yes" >&6; }
15777:
15778CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15779else
15780if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15782$as_echo "no" >&6; }
15783#echo 'Test with flag is no!'
15784#cat conftest.c
15785#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15786#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15787#exit 1
15788:
15789
15790else
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15792$as_echo "failed" >&6; }
15793:
15794
15795fi
15796fi
15797
15798
15799
15800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15801$as_echo_n "checking if nonblocking sockets work... " >&6; }
15802if echo $host | grep mingw >/dev/null; then
15803	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15804$as_echo "no (windows)" >&6; }
15805
15806$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15807
15808else
15809if test "$cross_compiling" = yes; then :
15810
15811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15812$as_echo "crosscompile(yes)" >&6; }
15813
15814else
15815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816/* end confdefs.h.  */
15817
15818
15819#include <stdio.h>
15820#include <string.h>
15821#include <stdlib.h>
15822#include <fcntl.h>
15823#include <errno.h>
15824#ifdef HAVE_SYS_TYPES_H
15825#include <sys/types.h>
15826#endif
15827#ifdef HAVE_SYS_SELECT_H
15828#include <sys/select.h>
15829#endif
15830#ifdef HAVE_SYS_SOCKET_H
15831#include <sys/socket.h>
15832#endif
15833#ifdef HAVE_NETINET_IN_H
15834#include <netinet/in.h>
15835#endif
15836#ifdef HAVE_ARPA_INET_H
15837#include <arpa/inet.h>
15838#endif
15839#ifdef HAVE_UNISTD_H
15840#include <unistd.h>
15841#endif
15842#ifdef HAVE_TIME_H
15843#include <time.h>
15844#endif
15845
15846int main(void)
15847{
15848	int port;
15849	int sfd, cfd;
15850	int num = 10;
15851	int i, p;
15852	struct sockaddr_in a;
15853	/* test if select and nonblocking reads work well together */
15854	/* open port.
15855	   fork child to send 10 messages.
15856	   select to read.
15857	   then try to nonblocking read the 10 messages
15858	   then, nonblocking read must give EAGAIN
15859	*/
15860
15861	port = 12345 + (time(0)%32);
15862	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15863	if(sfd == -1) {
15864		perror("socket");
15865		return 1;
15866	}
15867	memset(&a, 0, sizeof(a));
15868	a.sin_family = AF_INET;
15869	a.sin_port = htons(port);
15870	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15871	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15872		perror("bind");
15873		return 1;
15874	}
15875	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15876		perror("fcntl");
15877		return 1;
15878	}
15879
15880	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15881	if(cfd == -1) {
15882		perror("client socket");
15883		return 1;
15884	}
15885	a.sin_port = 0;
15886	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15887		perror("client bind");
15888		return 1;
15889	}
15890	a.sin_port = htons(port);
15891
15892	/* no handler, causes exit in 10 seconds */
15893	alarm(10);
15894
15895	/* send and receive on the socket */
15896	if((p=fork()) == 0) {
15897		for(i=0; i<num; i++) {
15898			if(sendto(cfd, &i, sizeof(i), 0,
15899				(struct sockaddr*)&a, sizeof(a)) < 0) {
15900				perror("sendto");
15901				return 1;
15902			}
15903		}
15904	} else {
15905		/* parent */
15906		fd_set rset;
15907		int x;
15908		if(p == -1) {
15909			perror("fork");
15910			return 1;
15911		}
15912		FD_ZERO(&rset);
15913		FD_SET(sfd, &rset);
15914		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15915			perror("select");
15916			return 1;
15917		}
15918		i = 0;
15919		while(i < num) {
15920			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15921				if(errno == EAGAIN)
15922					continue;
15923				perror("recv");
15924				return 1;
15925			}
15926			i++;
15927		}
15928		/* now we want to get EAGAIN: nonblocking goodness */
15929		errno = 0;
15930		recv(sfd, &x, sizeof(x), 0);
15931		if(errno != EAGAIN) {
15932			perror("trying to recv again");
15933			return 1;
15934		}
15935		/* EAGAIN encountered */
15936	}
15937
15938	close(sfd);
15939	close(cfd);
15940	return 0;
15941}
15942
15943_ACEOF
15944if ac_fn_c_try_run "$LINENO"; then :
15945
15946	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15947$as_echo "yes" >&6; }
15948
15949else
15950
15951	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15952$as_echo "no" >&6; }
15953
15954$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15955
15956
15957fi
15958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15959  conftest.$ac_objext conftest.beam conftest.$ac_ext
15960fi
15961
15962fi
15963
15964
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15966$as_echo_n "checking whether mkdir has one arg... " >&6; }
15967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968/* end confdefs.h.  */
15969
15970#include <stdio.h>
15971#include <unistd.h>
15972#ifdef HAVE_WINSOCK2_H
15973#include <winsock2.h>
15974#endif
15975#ifdef HAVE_SYS_STAT_H
15976#include <sys/stat.h>
15977#endif
15978
15979int
15980main ()
15981{
15982
15983	(void)mkdir("directory");
15984
15985  ;
15986  return 0;
15987}
15988_ACEOF
15989if ac_fn_c_try_compile "$LINENO"; then :
15990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15991$as_echo "yes" >&6; }
15992
15993$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15994
15995
15996else
15997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998$as_echo "no" >&6; }
15999
16000fi
16001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002
16003for ac_func in strptime
16004do :
16005  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16006if test "x$ac_cv_func_strptime" = xyes; then :
16007  cat >>confdefs.h <<_ACEOF
16008#define HAVE_STRPTIME 1
16009_ACEOF
16010
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16012$as_echo_n "checking whether strptime works... " >&6; }
16013if test c${cross_compiling} = cno; then
16014if test "$cross_compiling" = yes; then :
16015  eval "ac_cv_c_strptime_works=maybe"
16016else
16017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018/* end confdefs.h.  */
16019
16020#define _XOPEN_SOURCE 600
16021#include <time.h>
16022int main(void) { struct tm tm; char *res;
16023res = 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);
16024if (!res) return 2;
16025res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16026if (!res) return 1; return 0; }
16027
16028_ACEOF
16029if ac_fn_c_try_run "$LINENO"; then :
16030  eval "ac_cv_c_strptime_works=yes"
16031else
16032  eval "ac_cv_c_strptime_works=no"
16033fi
16034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16035  conftest.$ac_objext conftest.beam conftest.$ac_ext
16036fi
16037
16038else
16039eval "ac_cv_c_strptime_works=maybe"
16040fi
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16042$as_echo "$ac_cv_c_strptime_works" >&6; }
16043if test $ac_cv_c_strptime_works = no; then
16044case " $LIBOBJS " in
16045  *" strptime.$ac_objext "* ) ;;
16046  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16047 ;;
16048esac
16049
16050else
16051
16052cat >>confdefs.h <<_ACEOF
16053#define STRPTIME_WORKS 1
16054_ACEOF
16055
16056fi
16057
16058else
16059  case " $LIBOBJS " in
16060  *" strptime.$ac_objext "* ) ;;
16061  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16062 ;;
16063esac
16064
16065fi
16066done
16067
16068
16069# check if we can use SO_REUSEPORT
16070reuseport_default=0
16071if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16072if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16073if test "$reuseport_default" = 1; then
16074
16075$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16076
16077else
16078
16079$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16080
16081fi
16082
16083# Include systemd.m4 - begin
16084#   macros for configuring systemd
16085#   Copyright 2015, Sami Kerola, CloudFlare.
16086#   BSD licensed.
16087# Check whether --enable-systemd was given.
16088if test "${enable_systemd+set}" = set; then :
16089  enableval=$enable_systemd;
16090else
16091  enable_systemd=no
16092fi
16093
16094have_systemd=no
16095if test "x$enable_systemd" != xno; then :
16096
16097
16098
16099pkg_failed=no
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16101$as_echo_n "checking for SYSTEMD... " >&6; }
16102
16103if test -n "$SYSTEMD_CFLAGS"; then
16104    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16105 elif test -n "$PKG_CONFIG"; then
16106    if test -n "$PKG_CONFIG" && \
16107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16108  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16109  ac_status=$?
16110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16111  test $ac_status = 0; }; then
16112  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16113		      test "x$?" != "x0" && pkg_failed=yes
16114else
16115  pkg_failed=yes
16116fi
16117 else
16118    pkg_failed=untried
16119fi
16120if test -n "$SYSTEMD_LIBS"; then
16121    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16122 elif test -n "$PKG_CONFIG"; then
16123    if test -n "$PKG_CONFIG" && \
16124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16125  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16126  ac_status=$?
16127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16128  test $ac_status = 0; }; then
16129  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16130		      test "x$?" != "x0" && pkg_failed=yes
16131else
16132  pkg_failed=yes
16133fi
16134 else
16135    pkg_failed=untried
16136fi
16137
16138
16139
16140if test $pkg_failed = yes; then
16141   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142$as_echo "no" >&6; }
16143
16144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16145        _pkg_short_errors_supported=yes
16146else
16147        _pkg_short_errors_supported=no
16148fi
16149        if test $_pkg_short_errors_supported = yes; then
16150	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16151        else
16152	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16153        fi
16154	# Put the nasty error message in config.log where it belongs
16155	echo "$SYSTEMD_PKG_ERRORS" >&5
16156
16157	have_systemd=no
16158elif test $pkg_failed = untried; then
16159     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160$as_echo "no" >&6; }
16161	have_systemd=no
16162else
16163	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16164	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16165        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16166$as_echo "yes" >&6; }
16167	have_systemd=yes
16168fi
16169		if test "x$have_systemd" != "xyes"; then :
16170
16171
16172pkg_failed=no
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16174$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16175
16176if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16177    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16178 elif test -n "$PKG_CONFIG"; then
16179    if test -n "$PKG_CONFIG" && \
16180    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16181  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16182  ac_status=$?
16183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16184  test $ac_status = 0; }; then
16185  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16186		      test "x$?" != "x0" && pkg_failed=yes
16187else
16188  pkg_failed=yes
16189fi
16190 else
16191    pkg_failed=untried
16192fi
16193if test -n "$SYSTEMD_DAEMON_LIBS"; then
16194    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16195 elif test -n "$PKG_CONFIG"; then
16196    if test -n "$PKG_CONFIG" && \
16197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16198  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16199  ac_status=$?
16200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16201  test $ac_status = 0; }; then
16202  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16203		      test "x$?" != "x0" && pkg_failed=yes
16204else
16205  pkg_failed=yes
16206fi
16207 else
16208    pkg_failed=untried
16209fi
16210
16211
16212
16213if test $pkg_failed = yes; then
16214   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215$as_echo "no" >&6; }
16216
16217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16218        _pkg_short_errors_supported=yes
16219else
16220        _pkg_short_errors_supported=no
16221fi
16222        if test $_pkg_short_errors_supported = yes; then
16223	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16224        else
16225	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16226        fi
16227	# Put the nasty error message in config.log where it belongs
16228	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16229
16230	have_systemd_daemon=no
16231elif test $pkg_failed = untried; then
16232     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16233$as_echo "no" >&6; }
16234	have_systemd_daemon=no
16235else
16236	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16237	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16238        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16239$as_echo "yes" >&6; }
16240	have_systemd_daemon=yes
16241fi
16242		if test "x$have_systemd_daemon" = "xyes"; then :
16243  have_systemd=yes
16244fi
16245
16246fi
16247	case $enable_systemd:$have_systemd in #(
16248  yes:no) :
16249    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16250  *:yes) :
16251
16252$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16253
16254		LIBS="$LIBS $SYSTEMD_LIBS"
16255
16256	 ;; #(
16257  *) :
16258     ;;
16259esac
16260
16261
16262fi
16263 if test "x$have_systemd" = xyes; then
16264  USE_SYSTEMD_TRUE=
16265  USE_SYSTEMD_FALSE='#'
16266else
16267  USE_SYSTEMD_TRUE='#'
16268  USE_SYSTEMD_FALSE=
16269fi
16270
16271
16272# Include systemd.m4 - end
16273
16274# set memory allocation checking if requested
16275# Check whether --enable-alloc-checks was given.
16276if test "${enable_alloc_checks+set}" = set; then :
16277  enableval=$enable_alloc_checks;
16278fi
16279
16280# Check whether --enable-alloc-lite was given.
16281if test "${enable_alloc_lite+set}" = set; then :
16282  enableval=$enable_alloc_lite;
16283fi
16284
16285# Check whether --enable-alloc-nonregional was given.
16286if test "${enable_alloc_nonregional+set}" = set; then :
16287  enableval=$enable_alloc_nonregional;
16288fi
16289
16290if test x_$enable_alloc_nonregional = x_yes; then
16291
16292$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16293
16294fi
16295if test x_$enable_alloc_checks = x_yes; then
16296
16297$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16298
16299	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16300
16301	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16302
16303else
16304	if test x_$enable_alloc_lite = x_yes; then
16305
16306$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16307
16308	else
16309
16310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16311$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16312	if test "$cross_compiling" = yes; then :
16313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16314$as_echo "no (crosscompile)" >&6; }
16315	case " $LIBOBJS " in
16316  *" malloc.$ac_objext "* ) ;;
16317  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16318 ;;
16319esac
16320
16321
16322cat >>confdefs.h <<_ACEOF
16323#define malloc rpl_malloc_unbound
16324_ACEOF
16325
16326else
16327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328/* end confdefs.h.  */
16329#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16330#include <stdlib.h>
16331#else
16332char *malloc ();
16333#endif
16334
16335int
16336main ()
16337{
16338 if(malloc(0) != 0) return 1;
16339  ;
16340  return 0;
16341}
16342
16343_ACEOF
16344if ac_fn_c_try_run "$LINENO"; then :
16345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346$as_echo "no" >&6; }
16347	case " $LIBOBJS " in
16348  *" malloc.$ac_objext "* ) ;;
16349  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16350 ;;
16351esac
16352
16353
16354cat >>confdefs.h <<_ACEOF
16355#define malloc rpl_malloc_unbound
16356_ACEOF
16357
16358else
16359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16360$as_echo "yes" >&6; }
16361
16362$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16363
16364fi
16365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16366  conftest.$ac_objext conftest.beam conftest.$ac_ext
16367fi
16368
16369
16370	fi
16371fi
16372
16373# check windows threads (we use them, not pthreads, on windows).
16374if test "$on_mingw" = "yes"; then
16375# check windows threads
16376	for ac_header in windows.h
16377do :
16378  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16379"
16380if test "x$ac_cv_header_windows_h" = xyes; then :
16381  cat >>confdefs.h <<_ACEOF
16382#define HAVE_WINDOWS_H 1
16383_ACEOF
16384
16385fi
16386
16387done
16388
16389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16390$as_echo_n "checking for CreateThread... " >&6; }
16391	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392/* end confdefs.h.  */
16393
16394#ifdef HAVE_WINDOWS_H
16395#include <windows.h>
16396#endif
16397
16398int
16399main ()
16400{
16401
16402	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16403
16404  ;
16405  return 0;
16406}
16407_ACEOF
16408if ac_fn_c_try_compile "$LINENO"; then :
16409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16410$as_echo "yes" >&6; }
16411
16412$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16413
16414
16415else
16416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16417$as_echo "no" >&6; }
16418
16419fi
16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421
16422else
16423# not on mingw, check thread libraries.
16424
16425# check for thread library.
16426# check this first, so that the pthread lib does not get linked in via
16427# libssl or libpython, and thus distorts the tests, and we end up using
16428# the non-threadsafe C libraries.
16429
16430# Check whether --with-pthreads was given.
16431if test "${with_pthreads+set}" = set; then :
16432  withval=$with_pthreads;
16433else
16434   withval="yes"
16435fi
16436
16437ub_have_pthreads=no
16438if test x_$withval != x_no; then
16439
16440
16441ac_ext=c
16442ac_cpp='$CPP $CPPFLAGS'
16443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16445ac_compiler_gnu=$ac_cv_c_compiler_gnu
16446
16447ax_pthread_ok=no
16448
16449# We used to check for pthread.h first, but this fails if pthread.h
16450# requires special compiler flags (e.g. on True64 or Sequent).
16451# It gets checked for in the link test anyway.
16452
16453# First of all, check if the user has set any of the PTHREAD_LIBS,
16454# etcetera environment variables, and if threads linking works using
16455# them:
16456if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16457        save_CFLAGS="$CFLAGS"
16458        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16459        save_LIBS="$LIBS"
16460        LIBS="$PTHREAD_LIBS $LIBS"
16461        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16462$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16463        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465
16466/* Override any GCC internal prototype to avoid an error.
16467   Use char because int might match the return type of a GCC
16468   builtin and then its argument prototype would still apply.  */
16469#ifdef __cplusplus
16470extern "C"
16471#endif
16472char pthread_join ();
16473int
16474main ()
16475{
16476return pthread_join ();
16477  ;
16478  return 0;
16479}
16480_ACEOF
16481if ac_fn_c_try_link "$LINENO"; then :
16482  ax_pthread_ok=yes
16483fi
16484rm -f core conftest.err conftest.$ac_objext \
16485    conftest$ac_exeext conftest.$ac_ext
16486        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16487$as_echo "$ax_pthread_ok" >&6; }
16488        if test x"$ax_pthread_ok" = xno; then
16489                PTHREAD_LIBS=""
16490                PTHREAD_CFLAGS=""
16491        fi
16492        LIBS="$save_LIBS"
16493        CFLAGS="$save_CFLAGS"
16494fi
16495
16496# We must check for the threads library under a number of different
16497# names; the ordering is very important because some systems
16498# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16499# libraries is broken (non-POSIX).
16500
16501# Create a list of thread flags to try.  Items starting with a "-" are
16502# C compiler flags, and other items are library names, except for "none"
16503# which indicates that we try without any flags at all, and "pthread-config"
16504# which is a program returning the flags for the Pth emulation library.
16505
16506ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16507
16508# The ordering *is* (sometimes) important.  Some notes on the
16509# individual items follow:
16510
16511# pthreads: AIX (must check this before -lpthread)
16512# none: in case threads are in libc; should be tried before -Kthread and
16513#       other compiler flags to prevent continual compiler warnings
16514# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16515# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16516# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16517# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16518# -pthreads: Solaris/gcc
16519# -mthreads: Mingw32/gcc, Lynx/gcc
16520# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16521#      doesn't hurt to check since this sometimes defines pthreads too;
16522#      also defines -D_REENTRANT)
16523#      ... -mt is also the pthreads flag for HP/aCC
16524# pthread: Linux, etcetera
16525# --thread-safe: KAI C++
16526# pthread-config: use pthread-config program (for GNU Pth library)
16527
16528case ${host_os} in
16529        solaris*)
16530
16531        # On Solaris (at least, for some versions), libc contains stubbed
16532        # (non-functional) versions of the pthreads routines, so link-based
16533        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16534        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16535        # a function called by this macro, so we could check for that, but
16536        # who knows whether they'll stub that too in a future libc.)  So,
16537        # we'll just look for -pthreads and -lpthread first:
16538
16539        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16540        ;;
16541
16542        darwin*)
16543        ax_pthread_flags="-pthread $ax_pthread_flags"
16544        ;;
16545esac
16546
16547# Clang doesn't consider unrecognized options an error unless we specify
16548# -Werror. We throw in some extra Clang-specific options to ensure that
16549# this doesn't happen for GCC, which also accepts -Werror.
16550
16551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16552$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16553save_CFLAGS="$CFLAGS"
16554ax_pthread_extra_flags="-Werror"
16555CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557/* end confdefs.h.  */
16558int foo(void);
16559int
16560main ()
16561{
16562foo()
16563  ;
16564  return 0;
16565}
16566_ACEOF
16567if ac_fn_c_try_compile "$LINENO"; then :
16568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569$as_echo "yes" >&6; }
16570else
16571  ax_pthread_extra_flags=
16572                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573$as_echo "no" >&6; }
16574fi
16575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16576CFLAGS="$save_CFLAGS"
16577
16578if test x"$ax_pthread_ok" = xno; then
16579for flag in $ax_pthread_flags; do
16580
16581        case $flag in
16582                none)
16583                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16584$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16585                ;;
16586
16587                -*)
16588                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16589$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16590                PTHREAD_CFLAGS="$flag"
16591                ;;
16592
16593                pthread-config)
16594                # Extract the first word of "pthread-config", so it can be a program name with args.
16595set dummy pthread-config; ac_word=$2
16596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16597$as_echo_n "checking for $ac_word... " >&6; }
16598if ${ac_cv_prog_ax_pthread_config+:} false; then :
16599  $as_echo_n "(cached) " >&6
16600else
16601  if test -n "$ax_pthread_config"; then
16602  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16603else
16604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16605for as_dir in $PATH
16606do
16607  IFS=$as_save_IFS
16608  test -z "$as_dir" && as_dir=.
16609    for ac_exec_ext in '' $ac_executable_extensions; do
16610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16611    ac_cv_prog_ax_pthread_config="yes"
16612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16613    break 2
16614  fi
16615done
16616  done
16617IFS=$as_save_IFS
16618
16619  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16620fi
16621fi
16622ax_pthread_config=$ac_cv_prog_ax_pthread_config
16623if test -n "$ax_pthread_config"; then
16624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16625$as_echo "$ax_pthread_config" >&6; }
16626else
16627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628$as_echo "no" >&6; }
16629fi
16630
16631
16632                if test x"$ax_pthread_config" = xno; then continue; fi
16633                PTHREAD_CFLAGS="`pthread-config --cflags`"
16634                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16635                ;;
16636
16637                *)
16638                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16639$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16640                PTHREAD_LIBS="-l$flag"
16641                ;;
16642        esac
16643
16644        save_LIBS="$LIBS"
16645        save_CFLAGS="$CFLAGS"
16646        LIBS="$PTHREAD_LIBS $LIBS"
16647        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16648
16649        # Check for various functions.  We must include pthread.h,
16650        # since some functions may be macros.  (On the Sequent, we
16651        # need a special flag -Kthread to make this header compile.)
16652        # We check for pthread_join because it is in -lpthread on IRIX
16653        # while pthread_create is in libc.  We check for pthread_attr_init
16654        # due to DEC craziness with -lpthreads.  We check for
16655        # pthread_cleanup_push because it is one of the few pthread
16656        # functions on Solaris that doesn't have a non-functional libc stub.
16657        # We try pthread_create on general principles.
16658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659/* end confdefs.h.  */
16660#include <pthread.h>
16661                        static void routine(void *a) { *((int*)a) = 0; }
16662                        static void *start_routine(void *a) { return a; }
16663int
16664main ()
16665{
16666pthread_t th; pthread_attr_t attr;
16667                        pthread_create(&th, 0, start_routine, 0);
16668                        pthread_join(th, 0);
16669                        pthread_attr_init(&attr);
16670                        pthread_cleanup_push(routine, 0);
16671                        pthread_cleanup_pop(0) /* ; */
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_link "$LINENO"; then :
16677  ax_pthread_ok=yes
16678fi
16679rm -f core conftest.err conftest.$ac_objext \
16680    conftest$ac_exeext conftest.$ac_ext
16681
16682        LIBS="$save_LIBS"
16683        CFLAGS="$save_CFLAGS"
16684
16685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16686$as_echo "$ax_pthread_ok" >&6; }
16687        if test "x$ax_pthread_ok" = xyes; then
16688                break;
16689        fi
16690
16691        PTHREAD_LIBS=""
16692        PTHREAD_CFLAGS=""
16693done
16694fi
16695
16696# Various other checks:
16697if test "x$ax_pthread_ok" = xyes; then
16698        save_LIBS="$LIBS"
16699        LIBS="$PTHREAD_LIBS $LIBS"
16700        save_CFLAGS="$CFLAGS"
16701        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16702
16703        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16704        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16705$as_echo_n "checking for joinable pthread attribute... " >&6; }
16706        attr_name=unknown
16707        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16708            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709/* end confdefs.h.  */
16710#include <pthread.h>
16711int
16712main ()
16713{
16714int attr = $attr; return attr /* ; */
16715  ;
16716  return 0;
16717}
16718_ACEOF
16719if ac_fn_c_try_link "$LINENO"; then :
16720  attr_name=$attr; break
16721fi
16722rm -f core conftest.err conftest.$ac_objext \
16723    conftest$ac_exeext conftest.$ac_ext
16724        done
16725        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16726$as_echo "$attr_name" >&6; }
16727        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16728
16729cat >>confdefs.h <<_ACEOF
16730#define PTHREAD_CREATE_JOINABLE $attr_name
16731_ACEOF
16732
16733        fi
16734
16735        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16736$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16737        flag=no
16738        case ${host_os} in
16739            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16740            osf* | hpux*) flag="-D_REENTRANT";;
16741            solaris*)
16742            if test "$GCC" = "yes"; then
16743                flag="-D_REENTRANT"
16744            else
16745                # TODO: What about Clang on Solaris?
16746                flag="-mt -D_REENTRANT"
16747            fi
16748            ;;
16749        esac
16750        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16751$as_echo "$flag" >&6; }
16752        if test "x$flag" != xno; then
16753            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16754        fi
16755
16756        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16757$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16758if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16759  $as_echo_n "(cached) " >&6
16760else
16761
16762                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h.  */
16764#include <pthread.h>
16765int
16766main ()
16767{
16768int i = PTHREAD_PRIO_INHERIT;
16769  ;
16770  return 0;
16771}
16772_ACEOF
16773if ac_fn_c_try_link "$LINENO"; then :
16774  ax_cv_PTHREAD_PRIO_INHERIT=yes
16775else
16776  ax_cv_PTHREAD_PRIO_INHERIT=no
16777fi
16778rm -f core conftest.err conftest.$ac_objext \
16779    conftest$ac_exeext conftest.$ac_ext
16780
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16783$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16784        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16785
16786$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16787
16788fi
16789
16790        LIBS="$save_LIBS"
16791        CFLAGS="$save_CFLAGS"
16792
16793        # More AIX lossage: compile with *_r variant
16794        if test "x$GCC" != xyes; then
16795            case $host_os in
16796                aix*)
16797                case "x/$CC" in #(
16798  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16799    #handle absolute path differently from PATH based program lookup
16800                   case "x$CC" in #(
16801  x/*) :
16802    if as_fn_executable_p ${CC}_r; then :
16803  PTHREAD_CC="${CC}_r"
16804fi ;; #(
16805  *) :
16806    for ac_prog in ${CC}_r
16807do
16808  # Extract the first word of "$ac_prog", so it can be a program name with args.
16809set dummy $ac_prog; ac_word=$2
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16811$as_echo_n "checking for $ac_word... " >&6; }
16812if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16813  $as_echo_n "(cached) " >&6
16814else
16815  if test -n "$PTHREAD_CC"; then
16816  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16817else
16818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819for as_dir in $PATH
16820do
16821  IFS=$as_save_IFS
16822  test -z "$as_dir" && as_dir=.
16823    for ac_exec_ext in '' $ac_executable_extensions; do
16824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16825    ac_cv_prog_PTHREAD_CC="$ac_prog"
16826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827    break 2
16828  fi
16829done
16830  done
16831IFS=$as_save_IFS
16832
16833fi
16834fi
16835PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16836if test -n "$PTHREAD_CC"; then
16837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16838$as_echo "$PTHREAD_CC" >&6; }
16839else
16840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841$as_echo "no" >&6; }
16842fi
16843
16844
16845  test -n "$PTHREAD_CC" && break
16846done
16847test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16848 ;;
16849esac ;; #(
16850  *) :
16851     ;;
16852esac
16853                ;;
16854            esac
16855        fi
16856fi
16857
16858test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16859
16860
16861
16862
16863
16864# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16865if test x"$ax_pthread_ok" = xyes; then
16866
16867
16868$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16869
16870		if test -n "$PTHREAD_LIBS"; then
16871		  LIBS="$PTHREAD_LIBS $LIBS"
16872		fi
16873		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16874		CC="$PTHREAD_CC"
16875		ub_have_pthreads=yes
16876		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16877"
16878if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16879
16880cat >>confdefs.h <<_ACEOF
16881#define HAVE_PTHREAD_SPINLOCK_T 1
16882_ACEOF
16883
16884
16885fi
16886ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16887"
16888if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16889
16890cat >>confdefs.h <<_ACEOF
16891#define HAVE_PTHREAD_RWLOCK_T 1
16892_ACEOF
16893
16894
16895fi
16896
16897		# The cast to long int works around a bug in the HP C Compiler
16898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16900# This bug is HP SR number 8606223364.
16901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16902$as_echo_n "checking size of unsigned long... " >&6; }
16903if ${ac_cv_sizeof_unsigned_long+:} false; then :
16904  $as_echo_n "(cached) " >&6
16905else
16906  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16907
16908else
16909  if test "$ac_cv_type_unsigned_long" = yes; then
16910     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16912as_fn_error 77 "cannot compute sizeof (unsigned long)
16913See \`config.log' for more details" "$LINENO" 5; }
16914   else
16915     ac_cv_sizeof_unsigned_long=0
16916   fi
16917fi
16918
16919fi
16920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16921$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16922
16923
16924
16925cat >>confdefs.h <<_ACEOF
16926#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16927_ACEOF
16928
16929
16930		# The cast to long int works around a bug in the HP C Compiler
16931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16933# This bug is HP SR number 8606223364.
16934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16935$as_echo_n "checking size of pthread_t... " >&6; }
16936if ${ac_cv_sizeof_pthread_t+:} false; then :
16937  $as_echo_n "(cached) " >&6
16938else
16939  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"; then :
16940
16941else
16942  if test "$ac_cv_type_pthread_t" = yes; then
16943     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16945as_fn_error 77 "cannot compute sizeof (pthread_t)
16946See \`config.log' for more details" "$LINENO" 5; }
16947   else
16948     ac_cv_sizeof_pthread_t=0
16949   fi
16950fi
16951
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16954$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16955
16956
16957
16958cat >>confdefs.h <<_ACEOF
16959#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16960_ACEOF
16961
16962
16963
16964		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16966$as_echo_n "checking if -pthread unused during linking... " >&6; }
16967		# catch clang warning 'argument unused during compilation'
16968		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969/* end confdefs.h.  */
16970$ac_includes_default
16971
16972int main(void) {return 0;}
16973
16974_ACEOF
16975		pthread_unused="yes"
16976		# first compile
16977		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16978		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16979		if test $? = 0; then
16980			# then link
16981			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16982			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16983			if test $? -ne 0; then
16984				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16985$as_echo "yes" >&6; }
16986				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16987				PTHREAD_CFLAGS_ONLY="-pthread"
16988
16989			else
16990				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991$as_echo "no" >&6; }
16992			fi
16993		else
16994			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995$as_echo "no" >&6; }
16996		fi # endif cc successful
16997		rm -f conftest conftest.c conftest.o
16998		fi # endif -pthread in CFLAGS
16999
17000
17001        :
17002else
17003        ax_pthread_ok=no
17004
17005fi
17006ac_ext=c
17007ac_cpp='$CPP $CPPFLAGS'
17008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17010ac_compiler_gnu=$ac_cv_c_compiler_gnu
17011
17012
17013fi
17014
17015# check solaris thread library
17016
17017# Check whether --with-solaris-threads was given.
17018if test "${with_solaris_threads+set}" = set; then :
17019  withval=$with_solaris_threads;
17020else
17021   withval="no"
17022fi
17023
17024ub_have_sol_threads=no
17025if test x_$withval != x_no; then
17026	if test x_$ub_have_pthreads != x_no; then
17027	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17028$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17029	else
17030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17031$as_echo_n "checking for library containing thr_create... " >&6; }
17032if ${ac_cv_search_thr_create+:} false; then :
17033  $as_echo_n "(cached) " >&6
17034else
17035  ac_func_search_save_LIBS=$LIBS
17036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038
17039/* Override any GCC internal prototype to avoid an error.
17040   Use char because int might match the return type of a GCC
17041   builtin and then its argument prototype would still apply.  */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045char thr_create ();
17046int
17047main ()
17048{
17049return thr_create ();
17050  ;
17051  return 0;
17052}
17053_ACEOF
17054for ac_lib in '' thread; do
17055  if test -z "$ac_lib"; then
17056    ac_res="none required"
17057  else
17058    ac_res=-l$ac_lib
17059    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17060  fi
17061  if ac_fn_c_try_link "$LINENO"; then :
17062  ac_cv_search_thr_create=$ac_res
17063fi
17064rm -f core conftest.err conftest.$ac_objext \
17065    conftest$ac_exeext
17066  if ${ac_cv_search_thr_create+:} false; then :
17067  break
17068fi
17069done
17070if ${ac_cv_search_thr_create+:} false; then :
17071
17072else
17073  ac_cv_search_thr_create=no
17074fi
17075rm conftest.$ac_ext
17076LIBS=$ac_func_search_save_LIBS
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17079$as_echo "$ac_cv_search_thr_create" >&6; }
17080ac_res=$ac_cv_search_thr_create
17081if test "$ac_res" != no; then :
17082  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17083
17084
17085$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17086
17087
17088
17089
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17091$as_echo_n "checking whether $CC supports -mt... " >&6; }
17092cache=`echo mt | sed 'y%.=/+-%___p_%'`
17093if eval \${cv_prog_cc_flag_$cache+:} false; then :
17094  $as_echo_n "(cached) " >&6
17095else
17096
17097echo 'void f(void){}' >conftest.c
17098if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17099eval "cv_prog_cc_flag_$cache=yes"
17100else
17101eval "cv_prog_cc_flag_$cache=no"
17102fi
17103rm -f conftest conftest.o conftest.c
17104
17105fi
17106
17107if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17109$as_echo "yes" >&6; }
17110:
17111CFLAGS="$CFLAGS -mt"
17112else
17113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17114$as_echo "no" >&6; }
17115:
17116CFLAGS="$CFLAGS -D_REENTRANT"
17117fi
17118
17119		ub_have_sol_threads=yes
17120
17121else
17122
17123		as_fn_error $? "no solaris threads found." "$LINENO" 5
17124
17125fi
17126
17127	fi
17128fi
17129
17130fi # end of non-mingw check of thread libraries
17131
17132# Check for SYSLOG_FACILITY
17133
17134# Check whether --with-syslog-facility was given.
17135if test "${with_syslog_facility+set}" = set; then :
17136  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
17137fi
17138
17139case "${UNBOUND_SYSLOG_FACILITY}" in
17140
17141  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17142
17143           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17144
17145esac
17146
17147cat >>confdefs.h <<_ACEOF
17148#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17149_ACEOF
17150
17151
17152# Check for dynamic library module
17153
17154# Check whether --with-dynlibmodule was given.
17155if test "${with_dynlibmodule+set}" = set; then :
17156  withval=$with_dynlibmodule;
17157else
17158   withval="no"
17159fi
17160
17161
17162if test x_$withval != x_no; then
17163
17164$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17165
17166  WITH_DYNLIBMODULE=yes
17167
17168  DYNLIBMOD_OBJ="dynlibmod.lo"
17169
17170  DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17171
17172  if test $on_mingw = "no"; then
17173    # link with -ldl if not already there, for all executables because
17174    # dlopen call is in the dynlib module.  For unbound executable, also
17175    # export symbols.
17176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17177$as_echo_n "checking for library containing dlopen... " >&6; }
17178if ${ac_cv_search_dlopen+:} false; then :
17179  $as_echo_n "(cached) " >&6
17180else
17181  ac_func_search_save_LIBS=$LIBS
17182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h.  */
17184
17185/* Override any GCC internal prototype to avoid an error.
17186   Use char because int might match the return type of a GCC
17187   builtin and then its argument prototype would still apply.  */
17188#ifdef __cplusplus
17189extern "C"
17190#endif
17191char dlopen ();
17192int
17193main ()
17194{
17195return dlopen ();
17196  ;
17197  return 0;
17198}
17199_ACEOF
17200for ac_lib in '' dl; do
17201  if test -z "$ac_lib"; then
17202    ac_res="none required"
17203  else
17204    ac_res=-l$ac_lib
17205    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17206  fi
17207  if ac_fn_c_try_link "$LINENO"; then :
17208  ac_cv_search_dlopen=$ac_res
17209fi
17210rm -f core conftest.err conftest.$ac_objext \
17211    conftest$ac_exeext
17212  if ${ac_cv_search_dlopen+:} false; then :
17213  break
17214fi
17215done
17216if ${ac_cv_search_dlopen+:} false; then :
17217
17218else
17219  ac_cv_search_dlopen=no
17220fi
17221rm conftest.$ac_ext
17222LIBS=$ac_func_search_save_LIBS
17223fi
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17225$as_echo "$ac_cv_search_dlopen" >&6; }
17226ac_res=$ac_cv_search_dlopen
17227if test "$ac_res" != no; then :
17228  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17229
17230fi
17231
17232    DYNLIBMOD_EXTRALIBS="-export-dynamic"
17233  else
17234    DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17235  fi
17236
17237fi
17238
17239# Check for PyUnbound
17240
17241# Check whether --with-pyunbound was given.
17242if test "${with_pyunbound+set}" = set; then :
17243  withval=$with_pyunbound;
17244else
17245   withval="no"
17246fi
17247
17248
17249ub_test_python=no
17250ub_with_pyunbound=no
17251if test x_$withval != x_no; then
17252   ub_with_pyunbound=yes
17253   ub_test_python=yes
17254fi
17255
17256# Check for Python module
17257
17258# Check whether --with-pythonmodule was given.
17259if test "${with_pythonmodule+set}" = set; then :
17260  withval=$with_pythonmodule;
17261else
17262   withval="no"
17263fi
17264
17265
17266ub_with_pythonmod=no
17267if test x_$withval != x_no; then
17268   ub_with_pythonmod=yes
17269   ub_test_python=yes
17270fi
17271
17272# Check for Python & SWIG only on PyUnbound or PyModule
17273if test x_$ub_test_python != x_no; then
17274
17275   # Check for Python
17276   ub_have_python=no
17277   ac_save_LIBS="$LIBS"
17278        #
17279        # Allow the use of a (user set) custom python version
17280        #
17281
17282
17283        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17284set dummy python$PYTHON_VERSION; ac_word=$2
17285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17286$as_echo_n "checking for $ac_word... " >&6; }
17287if ${ac_cv_path_PYTHON+:} false; then :
17288  $as_echo_n "(cached) " >&6
17289else
17290  case $PYTHON in
17291  [\\/]* | ?:[\\/]*)
17292  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17293  ;;
17294  *)
17295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296for as_dir in $PATH
17297do
17298  IFS=$as_save_IFS
17299  test -z "$as_dir" && as_dir=.
17300    for ac_exec_ext in '' $ac_executable_extensions; do
17301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17302    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304    break 2
17305  fi
17306done
17307  done
17308IFS=$as_save_IFS
17309
17310  ;;
17311esac
17312fi
17313PYTHON=$ac_cv_path_PYTHON
17314if test -n "$PYTHON"; then
17315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17316$as_echo "$PYTHON" >&6; }
17317else
17318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17319$as_echo "no" >&6; }
17320fi
17321
17322
17323        if test -z "$PYTHON"; then
17324           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17325           PYTHON_VERSION=""
17326        fi
17327
17328        if test -z "$PYTHON_VERSION"; then
17329		PYTHON_VERSION=`$PYTHON -c "import sys; \
17330			print(sys.version.split()[0])"`
17331	fi
17332	# calculate the version number components.
17333
17334	v="$PYTHON_VERSION"
17335	PYTHON_VERSION_MAJOR=`echo $v | sed 's/[^0-9].*//'`
17336	if test -z "$PYTHON_VERSION_MAJOR"; then PYTHON_VERSION_MAJOR="0"; fi
17337	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17338	PYTHON_VERSION_MINOR=`echo $v | sed 's/[^0-9].*//'`
17339	if test -z "$PYTHON_VERSION_MINOR"; then PYTHON_VERSION_MINOR="0"; fi
17340	v=`echo $v | sed -e 's/^[0-9]*$//' -e 's/[0-9]*[^0-9]//'`
17341	PYTHON_VERSION_PATCH=`echo $v | sed 's/[^0-9].*//'`
17342	if test -z "$PYTHON_VERSION_PATCH"; then PYTHON_VERSION_PATCH="0"; fi
17343
17344
17345	# For some systems, sysconfig exists, but has the wrong paths,
17346	# on Debian 10, for python 2.7 and 3.7. So, we check the version,
17347	# and for older versions try distutils.sysconfig first. For newer
17348	# versions>=3.10, where distutils.sysconfig is deprecated, use
17349	# sysconfig first and then attempt the other one.
17350	py_distutils_first="no"
17351	if test $PYTHON_VERSION_MAJOR -lt 3; then
17352		py_distutils_first="yes"
17353	fi
17354	if test $PYTHON_VERSION_MAJOR -eq 3 -a $PYTHON_VERSION_MINOR -lt 10; then
17355		py_distutils_first="yes"
17356	fi
17357
17358	# Check if you have the first module
17359	if test "$py_distutils_first" = "yes"; then m="distutils"; else m="sysconfig"; fi
17360	sysconfig_module=""
17361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m Python module" >&5
17362$as_echo_n "checking for the $m Python module... " >&6; }
17363        if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
17364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17365$as_echo "yes" >&6; }
17366		sysconfig_module="$m"
17367	else
17368                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369$as_echo "no" >&6; }
17370	fi
17371
17372	# if not found, try the other one.
17373	if test -z "$sysconfig_module"; then
17374		if test "$py_distutils_first" = "yes"; then m2="sysconfig"; else m2="distutils"; fi
17375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $m2 Python module" >&5
17376$as_echo_n "checking for the $m2 Python module... " >&6; }
17377		if ac_modulecheck_result2=`$PYTHON -c "import $m2" 2>&1`; then
17378			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17379$as_echo "yes" >&6; }
17380			sysconfig_module="$m2"
17381		else
17382			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383$as_echo "no" >&6; }
17384			as_fn_error $? "cannot import Python module \"$m\", or \"$m2\".
17385	Please check your Python installation. The errors are:
17386	$m
17387	$ac_modulecheck_result1
17388	$m2
17389	$ac_modulecheck_result2" "$LINENO" 5
17390			PYTHON_VERSION=""
17391		fi
17392	fi
17393	if test "$sysconfig_module" = "distutils"; then sysconfig_module="distutils.sysconfig"; fi
17394
17395        #
17396        # Check for Python include path
17397        #
17398        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17399$as_echo_n "checking for Python include path... " >&6; }
17400        if test -z "$PYTHON_CPPFLAGS"; then
17401		if test "$sysconfig_module" = "sysconfig"; then
17402			python_path=`$PYTHON -c 'import sysconfig; \
17403				print(sysconfig.get_path("include"));'`
17404		else
17405			python_path=`$PYTHON -c "import distutils.sysconfig; \
17406				print(distutils.sysconfig.get_python_inc());"`
17407		fi
17408                if test -n "${python_path}"; then
17409                        python_path="-I$python_path"
17410                fi
17411                PYTHON_CPPFLAGS=$python_path
17412        fi
17413        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17414$as_echo "$PYTHON_CPPFLAGS" >&6; }
17415
17416
17417        #
17418        # Check for Python library path
17419        #
17420        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17421$as_echo_n "checking for Python library path... " >&6; }
17422        if test -z "$PYTHON_LDFLAGS"; then
17423                PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17424                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17425        fi
17426        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17427$as_echo "$PYTHON_LDFLAGS" >&6; }
17428
17429
17430        if test -z "$PYTHON_LIBDIR"; then
17431                PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17432                        print(get_config_var('LIBDIR'));"`
17433        fi
17434
17435        #
17436        # Check for site packages
17437        #
17438        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17439$as_echo_n "checking for Python site-packages path... " >&6; }
17440        if test -z "$PYTHON_SITE_PKG"; then
17441		if test "$sysconfig_module" = "sysconfig"; then
17442			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17443				print(sysconfig.get_path("platlib"));'`
17444		else
17445			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17446				print(distutils.sysconfig.get_python_lib(1,0));"`
17447		fi
17448        fi
17449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17450$as_echo "$PYTHON_SITE_PKG" >&6; }
17451
17452
17453        #
17454        # final check to see if everything compiles alright
17455        #
17456        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17457$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17458        ac_ext=c
17459ac_cpp='$CPP $CPPFLAGS'
17460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17462ac_compiler_gnu=$ac_cv_c_compiler_gnu
17463
17464        # save current global flags
17465        ac_save_LIBS="$LIBS"
17466        ac_save_CPPFLAGS="$CPPFLAGS"
17467
17468        LIBS="$LIBS $PYTHON_LDFLAGS"
17469        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17470        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471/* end confdefs.h.  */
17472
17473                #include <Python.h>
17474
17475int
17476main ()
17477{
17478
17479                Py_Initialize();
17480
17481  ;
17482  return 0;
17483}
17484_ACEOF
17485if ac_fn_c_try_link "$LINENO"; then :
17486  pythonexists=yes
17487else
17488  pythonexists=no
17489fi
17490rm -f core conftest.err conftest.$ac_objext \
17491    conftest$ac_exeext conftest.$ac_ext
17492
17493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17494$as_echo "$pythonexists" >&6; }
17495
17496        if test ! "$pythonexists" = "yes"; then
17497           as_fn_error $? "
17498  Could not link test program to Python. Maybe the main Python library has been
17499  installed in some non-standard library path. If so, pass it to configure,
17500  via the LDFLAGS environment variable.
17501  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17502  ============================================================================
17503   ERROR!
17504   You probably have to install the development version of the Python package
17505   for your distribution.  The exact name of this package varies among them.
17506  ============================================================================
17507           " "$LINENO" 5
17508          PYTHON_VERSION=""
17509        fi
17510        ac_ext=c
17511ac_cpp='$CPP $CPPFLAGS'
17512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514ac_compiler_gnu=$ac_cv_c_compiler_gnu
17515
17516        # turn back to default flags
17517        CPPFLAGS="$ac_save_CPPFLAGS"
17518        LIBS="$ac_save_LIBS"
17519
17520        #
17521        # all done!
17522        #
17523
17524   if test ! -z "$PYTHON_VERSION"; then
17525	badversion="no"
17526	if test "$PYTHON_VERSION_MAJOR" -lt 2; then
17527		badversion="yes"
17528	fi
17529	if test "$PYTHON_VERSION_MAJOR" -eq 2 -a "$PYTHON_VERSION_MINOR" -lt 4; then
17530		badversion="yes"
17531	fi
17532	if test "$badversion" = "yes"; then
17533		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17534	fi
17535
17536      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17537
17538      # Have Python
17539
17540$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17541
17542      if test x_$ub_with_pythonmod != x_no; then
17543        if test -n "$LIBS"; then
17544          LIBS="$PYTHON_LDFLAGS $LIBS"
17545        else
17546          LIBS="$PYTHON_LDFLAGS"
17547        fi
17548      fi
17549      PYTHON_LIBS="$PYTHON_LDFLAGS"
17550
17551      if test -n "$CPPFLAGS"; then
17552        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17553      else
17554        CPPFLAGS="$PYTHON_CPPFLAGS"
17555      fi
17556      if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17557
17558	if test "x$enable_rpath" = xyes; then
17559		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17560			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17561		fi
17562	fi
17563
17564      fi
17565      ub_have_python=yes
17566      if test -n "$PKG_CONFIG" && \
17567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17568  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17569  ac_status=$?
17570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17571  test $ac_status = 0; }; then
17572  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17573else
17574  PC_PY_DEPENDENCY="python"
17575fi
17576
17577
17578      # Check for SWIG
17579      ub_have_swig=no
17580      # Check whether --enable-swig-version-check was given.
17581if test "${enable_swig_version_check+set}" = set; then :
17582  enableval=$enable_swig_version_check;
17583fi
17584
17585      if test "$enable_swig_version_check" = "yes"; then
17586
17587        # Extract the first word of "swig", so it can be a program name with args.
17588set dummy swig; ac_word=$2
17589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17590$as_echo_n "checking for $ac_word... " >&6; }
17591if ${ac_cv_path_SWIG+:} false; then :
17592  $as_echo_n "(cached) " >&6
17593else
17594  case $SWIG in
17595  [\\/]* | ?:[\\/]*)
17596  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17597  ;;
17598  *)
17599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17600for as_dir in $PATH
17601do
17602  IFS=$as_save_IFS
17603  test -z "$as_dir" && as_dir=.
17604    for ac_exec_ext in '' $ac_executable_extensions; do
17605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17606    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17608    break 2
17609  fi
17610done
17611  done
17612IFS=$as_save_IFS
17613
17614  ;;
17615esac
17616fi
17617SWIG=$ac_cv_path_SWIG
17618if test -n "$SWIG"; then
17619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17620$as_echo "$SWIG" >&6; }
17621else
17622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623$as_echo "no" >&6; }
17624fi
17625
17626
17627        if test -z "$SWIG" ; then
17628                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17629$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17630                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17631        elif test -n "2.0.1" ; then
17632                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17633$as_echo_n "checking for SWIG version... " >&6; }
17634                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'`
17635                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17636$as_echo "$swig_version" >&6; }
17637                if test -n "$swig_version" ; then
17638                        # Calculate the required version number components
17639                        required=2.0.1
17640                        required_major=`echo $required | sed 's/[^0-9].*//'`
17641                        if test -z "$required_major" ; then
17642                                required_major=0
17643                        fi
17644                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17645                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17646                        if test -z "$required_minor" ; then
17647                                required_minor=0
17648                        fi
17649                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17650                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17651                        if test -z "$required_patch" ; then
17652                                required_patch=0
17653                        fi
17654                        # Calculate the available version number components
17655                        available=$swig_version
17656                        available_major=`echo $available | sed 's/[^0-9].*//'`
17657                        if test -z "$available_major" ; then
17658                                available_major=0
17659                        fi
17660                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17661                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17662                        if test -z "$available_minor" ; then
17663                                available_minor=0
17664                        fi
17665                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17666                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17667                        if test -z "$available_patch" ; then
17668                                available_patch=0
17669                        fi
17670			badversion=0
17671			if test $available_major -lt $required_major ; then
17672				badversion=1
17673			fi
17674                        if test $available_major -eq $required_major \
17675                                -a $available_minor -lt $required_minor ; then
17676				badversion=1
17677			fi
17678                        if test $available_major -eq $required_major \
17679                                -a $available_minor -eq $required_minor \
17680                                -a $available_patch -lt $required_patch ; then
17681				badversion=1
17682			fi
17683			if test $badversion -eq 1 ; then
17684                                { $as_echo "$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
17685$as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17686                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17687                        else
17688                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17689$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17690                                SWIG_LIB=`$SWIG -swiglib`
17691                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17692$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17693                        fi
17694                else
17695                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17696$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17697                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17698                fi
17699        fi
17700
17701
17702      else
17703
17704        # Extract the first word of "swig", so it can be a program name with args.
17705set dummy swig; ac_word=$2
17706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17707$as_echo_n "checking for $ac_word... " >&6; }
17708if ${ac_cv_path_SWIG+:} false; then :
17709  $as_echo_n "(cached) " >&6
17710else
17711  case $SWIG in
17712  [\\/]* | ?:[\\/]*)
17713  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17714  ;;
17715  *)
17716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17717for as_dir in $PATH
17718do
17719  IFS=$as_save_IFS
17720  test -z "$as_dir" && as_dir=.
17721    for ac_exec_ext in '' $ac_executable_extensions; do
17722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17723    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17725    break 2
17726  fi
17727done
17728  done
17729IFS=$as_save_IFS
17730
17731  ;;
17732esac
17733fi
17734SWIG=$ac_cv_path_SWIG
17735if test -n "$SWIG"; then
17736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17737$as_echo "$SWIG" >&6; }
17738else
17739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17740$as_echo "no" >&6; }
17741fi
17742
17743
17744        if test -z "$SWIG" ; then
17745                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17746$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17747                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17748        elif test -n "" ; then
17749                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17750$as_echo_n "checking for SWIG version... " >&6; }
17751                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'`
17752                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17753$as_echo "$swig_version" >&6; }
17754                if test -n "$swig_version" ; then
17755                        # Calculate the required version number components
17756                        required=
17757                        required_major=`echo $required | sed 's/[^0-9].*//'`
17758                        if test -z "$required_major" ; then
17759                                required_major=0
17760                        fi
17761                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17762                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17763                        if test -z "$required_minor" ; then
17764                                required_minor=0
17765                        fi
17766                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17767                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17768                        if test -z "$required_patch" ; then
17769                                required_patch=0
17770                        fi
17771                        # Calculate the available version number components
17772                        available=$swig_version
17773                        available_major=`echo $available | sed 's/[^0-9].*//'`
17774                        if test -z "$available_major" ; then
17775                                available_major=0
17776                        fi
17777                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17778                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17779                        if test -z "$available_minor" ; then
17780                                available_minor=0
17781                        fi
17782                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17783                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17784                        if test -z "$available_patch" ; then
17785                                available_patch=0
17786                        fi
17787			badversion=0
17788			if test $available_major -lt $required_major ; then
17789				badversion=1
17790			fi
17791                        if test $available_major -eq $required_major \
17792                                -a $available_minor -lt $required_minor ; then
17793				badversion=1
17794			fi
17795                        if test $available_major -eq $required_major \
17796                                -a $available_minor -eq $required_minor \
17797                                -a $available_patch -lt $required_patch ; then
17798				badversion=1
17799			fi
17800			if test $badversion -eq 1 ; then
17801                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
17802$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17803                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17804                        else
17805                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17806$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17807                                SWIG_LIB=`$SWIG -swiglib`
17808                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17809$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17810                        fi
17811                else
17812                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17813$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17814                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17815                fi
17816        fi
17817
17818
17819      fi
17820      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17821$as_echo_n "checking SWIG... " >&6; }
17822      if test ! -x "$SWIG"; then
17823         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17824      else
17825
17826$as_echo "#define HAVE_SWIG 1" >>confdefs.h
17827
17828         swig="$SWIG"
17829
17830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17831$as_echo "present" >&6; }
17832
17833         # If have Python & SWIG
17834         # Declare PythonMod
17835         if test x_$ub_with_pythonmod != x_no; then
17836
17837$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17838
17839            WITH_PYTHONMODULE=yes
17840
17841	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17842
17843	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17844
17845	    PYTHONMOD_INSTALL=pythonmod-install
17846
17847	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
17848
17849         fi
17850
17851         # Declare PyUnbound
17852         if test x_$ub_with_pyunbound != x_no; then
17853
17854$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17855
17856            WITH_PYUNBOUND=yes
17857
17858	    PYUNBOUND_OBJ="libunbound_wrap.lo"
17859
17860	    PYUNBOUND_TARGET="_unbound.la"
17861
17862	    PYUNBOUND_INSTALL=pyunbound-install
17863
17864	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
17865
17866         fi
17867      fi
17868   else
17869      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17870$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17871      ub_with_pyunbound=no
17872      ub_with_pythonmod=no
17873   fi
17874fi
17875
17876if test "`uname`" = "NetBSD"; then
17877	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17878
17879fi
17880
17881if test "`uname`" = "Linux"; then
17882	# splint cannot parse modern c99 header files
17883	GCC_DOCKER_LINTFLAGS='-syntax'
17884
17885fi
17886CONFIG_DATE=`date +%Y%m%d`
17887
17888
17889# Checks for libraries.
17890
17891# libnss
17892USE_NSS="no"
17893
17894# Check whether --with-nss was given.
17895if test "${with_nss+set}" = set; then :
17896  withval=$with_nss;
17897	USE_NSS="yes"
17898
17899$as_echo "#define HAVE_NSS 1" >>confdefs.h
17900
17901	if test "$withval" != "" -a "$withval" != "yes"; then
17902		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17903		LDFLAGS="$LDFLAGS -L$withval/lib"
17904
17905	if test "x$enable_rpath" = xyes; then
17906		if echo "$withval/lib" | grep "^/" >/dev/null; then
17907			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17908		fi
17909	fi
17910
17911		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17912	else
17913		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17914		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17915	fi
17916        LIBS="$LIBS -lnss3 -lnspr4"
17917	SSLLIB=""
17918	PC_CRYPTO_DEPENDENCY="nss nspr"
17919
17920
17921
17922fi
17923
17924
17925# libnettle
17926USE_NETTLE="no"
17927
17928# Check whether --with-nettle was given.
17929if test "${with_nettle+set}" = set; then :
17930  withval=$with_nettle;
17931	USE_NETTLE="yes"
17932
17933$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17934
17935	for ac_header in nettle/dsa-compat.h
17936do :
17937  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17938"
17939if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17940  cat >>confdefs.h <<_ACEOF
17941#define HAVE_NETTLE_DSA_COMPAT_H 1
17942_ACEOF
17943
17944fi
17945
17946done
17947
17948	if test "$withval" != "" -a "$withval" != "yes"; then
17949		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17950		LDFLAGS="$LDFLAGS -L$withval/lib"
17951
17952	if test "x$enable_rpath" = xyes; then
17953		if echo "$withval/lib" | grep "^/" >/dev/null; then
17954			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17955		fi
17956	fi
17957
17958	else
17959		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17960	fi
17961        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17962	SSLLIB=""
17963	PC_CRYPTO_DEPENDENCY="hogweed nettle"
17964
17965
17966
17967fi
17968
17969
17970# openssl
17971if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17972
17973
17974# Check whether --with-ssl was given.
17975if test "${with_ssl+set}" = set; then :
17976  withval=$with_ssl;
17977
17978else
17979
17980            withval="yes"
17981
17982fi
17983
17984    if test x_$withval = x_no; then
17985	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17986    fi
17987
17988    withval=$withval
17989    if test x_$withval != x_no; then
17990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17991$as_echo_n "checking for SSL... " >&6; }
17992	if test -n "$withval"; then
17993										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
17994			ssldir="$withval"
17995			found_ssl="yes"
17996			withval=""
17997			ssldir_include="$ssldir"
17998						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
17999			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18000				: # found here
18001			else
18002				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
18003				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18004					: # found here
18005				else
18006					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18007				fi
18008			fi
18009		fi
18010	fi
18011        if test x_$withval = x_ -o x_$withval = x_yes; then
18012            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18013        fi
18014        for dir in $withval; do
18015            ssldir="$dir"
18016            if test -f "$dir/include/openssl/ssl.h"; then
18017                found_ssl="yes"
18018		ssldir_include="$ssldir/include"
18019		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18020			ssldir_lib="$ssldir/lib64"
18021		else
18022			ssldir_lib="$ssldir/lib"
18023		fi
18024                break;
18025            fi
18026        done
18027        if test x_$found_ssl != x_yes; then
18028            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18029        else
18030            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18031$as_echo "found in $ssldir" >&6; }
18032
18033cat >>confdefs.h <<_ACEOF
18034#define HAVE_SSL /**/
18035_ACEOF
18036
18037            HAVE_SSL=yes
18038	                if test "$ssldir" != "/usr"; then
18039		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18040		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18041		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
18042		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18043
18044	if test "x$enable_rpath" = xyes; then
18045		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18046			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18047		fi
18048	fi
18049
18050	    fi
18051
18052            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18053$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18054            LIBS="$LIBS -lcrypto"
18055            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18056            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057/* end confdefs.h.  */
18058
18059int
18060main ()
18061{
18062
18063                int EVP_sha256(void);
18064                (void)EVP_sha256();
18065
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070if ac_fn_c_try_link "$LINENO"; then :
18071
18072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18073$as_echo "yes" >&6; }
18074
18075$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18076
18077
18078else
18079
18080                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18081$as_echo "no" >&6; }
18082                # check if -lwsock32 or -lgdi32 are needed.
18083                BAKLIBS="$LIBS"
18084                BAKSSLLIBS="$LIBSSL_LIBS"
18085		LIBS="$LIBS -lgdi32 -lws2_32"
18086		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18087                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18088$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18089                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090/* end confdefs.h.  */
18091
18092int
18093main ()
18094{
18095
18096                    int EVP_sha256(void);
18097                    (void)EVP_sha256();
18098
18099  ;
18100  return 0;
18101}
18102_ACEOF
18103if ac_fn_c_try_link "$LINENO"; then :
18104
18105
18106$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18107
18108                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18109$as_echo "yes" >&6; }
18110
18111else
18112
18113                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18114$as_echo "no" >&6; }
18115                    LIBS="$BAKLIBS"
18116                    LIBSSL_LIBS="$BAKSSLLIBS"
18117
18118		    LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32"
18119		    LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32"
18120                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32" >&5
18121$as_echo_n "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32... " >&6; }
18122		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123/* end confdefs.h.  */
18124
18125int
18126main ()
18127{
18128
18129			int EVP_sha256(void);
18130			(void)EVP_sha256();
18131
18132  ;
18133  return 0;
18134}
18135_ACEOF
18136if ac_fn_c_try_link "$LINENO"; then :
18137
18138
18139$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18140
18141			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18142$as_echo "yes" >&6; }
18143
18144else
18145
18146			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147$as_echo "no" >&6; }
18148			LIBS="$BAKLIBS"
18149			LIBSSL_LIBS="$BAKSSLLIBS"
18150
18151			LIBS="$LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
18152			LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a"
18153			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a" >&5
18154$as_echo_n "checking if -lcrypto needs -lgdi32 -lws2_32 -lcrypt32 -l:libssp.a... " >&6; }
18155			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156/* end confdefs.h.  */
18157
18158int
18159main ()
18160{
18161
18162			    int EVP_sha256(void);
18163			    (void)EVP_sha256();
18164
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169if ac_fn_c_try_link "$LINENO"; then :
18170
18171
18172$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18173
18174			    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18175$as_echo "yes" >&6; }
18176
18177else
18178
18179			    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180$as_echo "no" >&6; }
18181			    LIBS="$BAKLIBS"
18182			    LIBSSL_LIBS="$BAKSSLLIBS"
18183
18184			    LIBS="$LIBS -ldl"
18185			    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18186			    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18187$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18188			    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189/* end confdefs.h.  */
18190
18191int
18192main ()
18193{
18194
18195				int EVP_sha256(void);
18196				(void)EVP_sha256();
18197
18198  ;
18199  return 0;
18200}
18201_ACEOF
18202if ac_fn_c_try_link "$LINENO"; then :
18203
18204
18205$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18206
18207				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18208$as_echo "yes" >&6; }
18209
18210else
18211
18212				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213$as_echo "no" >&6; }
18214				LIBS="$BAKLIBS"
18215				LIBSSL_LIBS="$BAKSSLLIBS"
18216				LIBS="$LIBS -ldl -pthread"
18217				LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18218				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18219$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18220				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221/* end confdefs.h.  */
18222
18223int
18224main ()
18225{
18226
18227				    int EVP_sha256(void);
18228				    (void)EVP_sha256();
18229
18230  ;
18231  return 0;
18232}
18233_ACEOF
18234if ac_fn_c_try_link "$LINENO"; then :
18235
18236
18237$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18238
18239				    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18240$as_echo "yes" >&6; }
18241
18242else
18243
18244				    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18245$as_echo "no" >&6; }
18246				    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18247
18248fi
18249rm -f core conftest.err conftest.$ac_objext \
18250    conftest$ac_exeext conftest.$ac_ext
18251
18252fi
18253rm -f core conftest.err conftest.$ac_objext \
18254    conftest$ac_exeext conftest.$ac_ext
18255
18256fi
18257rm -f core conftest.err conftest.$ac_objext \
18258    conftest$ac_exeext conftest.$ac_ext
18259
18260fi
18261rm -f core conftest.err conftest.$ac_objext \
18262    conftest$ac_exeext conftest.$ac_ext
18263
18264fi
18265rm -f core conftest.err conftest.$ac_objext \
18266    conftest$ac_exeext conftest.$ac_ext
18267
18268fi
18269rm -f core conftest.err conftest.$ac_objext \
18270    conftest$ac_exeext conftest.$ac_ext
18271        fi
18272
18273
18274    fi
18275for ac_header in openssl/ssl.h
18276do :
18277  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18278"
18279if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18280  cat >>confdefs.h <<_ACEOF
18281#define HAVE_OPENSSL_SSL_H 1
18282_ACEOF
18283
18284fi
18285
18286done
18287
18288for ac_header in openssl/err.h
18289do :
18290  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18291"
18292if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18293  cat >>confdefs.h <<_ACEOF
18294#define HAVE_OPENSSL_ERR_H 1
18295_ACEOF
18296
18297fi
18298
18299done
18300
18301for ac_header in openssl/rand.h
18302do :
18303  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18304"
18305if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18306  cat >>confdefs.h <<_ACEOF
18307#define HAVE_OPENSSL_RAND_H 1
18308_ACEOF
18309
18310fi
18311
18312done
18313
18314
18315
18316
18317# check if libssl needs libdl
18318BAKLIBS="$LIBS"
18319LIBS="-lssl $LIBS"
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18321$as_echo_n "checking if libssl needs libdl... " >&6; }
18322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323/* end confdefs.h.  */
18324
18325/* Override any GCC internal prototype to avoid an error.
18326   Use char because int might match the return type of a GCC
18327   builtin and then its argument prototype would still apply.  */
18328#ifdef __cplusplus
18329extern "C"
18330#endif
18331char SSL_CTX_new ();
18332int
18333main ()
18334{
18335return SSL_CTX_new ();
18336  ;
18337  return 0;
18338}
18339_ACEOF
18340if ac_fn_c_try_link "$LINENO"; then :
18341
18342	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343$as_echo "no" >&6; }
18344	LIBS="$BAKLIBS"
18345
18346else
18347
18348	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349$as_echo "yes" >&6; }
18350	LIBS="$BAKLIBS"
18351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18352$as_echo_n "checking for library containing dlopen... " >&6; }
18353if ${ac_cv_search_dlopen+:} false; then :
18354  $as_echo_n "(cached) " >&6
18355else
18356  ac_func_search_save_LIBS=$LIBS
18357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358/* end confdefs.h.  */
18359
18360/* Override any GCC internal prototype to avoid an error.
18361   Use char because int might match the return type of a GCC
18362   builtin and then its argument prototype would still apply.  */
18363#ifdef __cplusplus
18364extern "C"
18365#endif
18366char dlopen ();
18367int
18368main ()
18369{
18370return dlopen ();
18371  ;
18372  return 0;
18373}
18374_ACEOF
18375for ac_lib in '' dl; do
18376  if test -z "$ac_lib"; then
18377    ac_res="none required"
18378  else
18379    ac_res=-l$ac_lib
18380    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18381  fi
18382  if ac_fn_c_try_link "$LINENO"; then :
18383  ac_cv_search_dlopen=$ac_res
18384fi
18385rm -f core conftest.err conftest.$ac_objext \
18386    conftest$ac_exeext
18387  if ${ac_cv_search_dlopen+:} false; then :
18388  break
18389fi
18390done
18391if ${ac_cv_search_dlopen+:} false; then :
18392
18393else
18394  ac_cv_search_dlopen=no
18395fi
18396rm conftest.$ac_ext
18397LIBS=$ac_func_search_save_LIBS
18398fi
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18400$as_echo "$ac_cv_search_dlopen" >&6; }
18401ac_res=$ac_cv_search_dlopen
18402if test "$ac_res" != no; then :
18403  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18404
18405fi
18406
18407
18408fi
18409rm -f core conftest.err conftest.$ac_objext \
18410    conftest$ac_exeext conftest.$ac_ext
18411SSLLIB="-lssl"
18412
18413PC_CRYPTO_DEPENDENCY=""
18414
18415
18416# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18417BAKLIBS="$LIBS"
18418LIBS="-lssl $LIBS"
18419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18420$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422/* end confdefs.h.  */
18423
18424int
18425main ()
18426{
18427
18428	int EVP_sha256(void);
18429	(void)EVP_sha256();
18430
18431  ;
18432  return 0;
18433}
18434_ACEOF
18435if ac_fn_c_try_link "$LINENO"; then :
18436
18437	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18438$as_echo "no" >&6; }
18439	LIBS="$BAKLIBS"
18440
18441else
18442
18443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444$as_echo "yes" >&6; }
18445	LIBS="$BAKLIBS"
18446	LIBS="$LIBS -lcrypt32"
18447
18448fi
18449rm -f core conftest.err conftest.$ac_objext \
18450    conftest$ac_exeext conftest.$ac_ext
18451
18452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18453$as_echo_n "checking for LibreSSL... " >&6; }
18454if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18456$as_echo "yes" >&6; }
18457
18458$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18459
18460	# libressl provides these compat functions, but they may also be
18461	# declared by the OS in libc.  See if they have been declared.
18462	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18463if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18464  ac_have_decl=1
18465else
18466  ac_have_decl=0
18467fi
18468
18469cat >>confdefs.h <<_ACEOF
18470#define HAVE_DECL_STRLCPY $ac_have_decl
18471_ACEOF
18472ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18473if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18474  ac_have_decl=1
18475else
18476  ac_have_decl=0
18477fi
18478
18479cat >>confdefs.h <<_ACEOF
18480#define HAVE_DECL_STRLCAT $ac_have_decl
18481_ACEOF
18482ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18483if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18484  ac_have_decl=1
18485else
18486  ac_have_decl=0
18487fi
18488
18489cat >>confdefs.h <<_ACEOF
18490#define HAVE_DECL_ARC4RANDOM $ac_have_decl
18491_ACEOF
18492ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18493if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18494  ac_have_decl=1
18495else
18496  ac_have_decl=0
18497fi
18498
18499cat >>confdefs.h <<_ACEOF
18500#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18501_ACEOF
18502
18503else
18504	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18505$as_echo "no" >&6; }
18506fi
18507for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h
18508do :
18509  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18511"
18512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18513  cat >>confdefs.h <<_ACEOF
18514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18515_ACEOF
18516
18517fi
18518
18519done
18520
18521for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_default_properties_is_fips_enabled EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new BIO_set_callback_ex
18522do :
18523  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18524ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18525if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18526  cat >>confdefs.h <<_ACEOF
18527#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18528_ACEOF
18529
18530fi
18531done
18532
18533
18534# these check_funcs need -lssl
18535BAKLIBS="$LIBS"
18536LIBS="-lssl $LIBS"
18537for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate
18538do :
18539  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18540ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18541if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18542  cat >>confdefs.h <<_ACEOF
18543#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18544_ACEOF
18545
18546fi
18547done
18548
18549LIBS="$BAKLIBS"
18550
18551ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18552$ac_includes_default
18553#ifdef HAVE_OPENSSL_ERR_H
18554#include <openssl/err.h>
18555#endif
18556
18557#ifdef HAVE_OPENSSL_RAND_H
18558#include <openssl/rand.h>
18559#endif
18560
18561#ifdef HAVE_OPENSSL_CONF_H
18562#include <openssl/conf.h>
18563#endif
18564
18565#ifdef HAVE_OPENSSL_ENGINE_H
18566#include <openssl/engine.h>
18567#endif
18568#include <openssl/ssl.h>
18569#include <openssl/evp.h>
18570
18571"
18572if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18573  ac_have_decl=1
18574else
18575  ac_have_decl=0
18576fi
18577
18578cat >>confdefs.h <<_ACEOF
18579#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18580_ACEOF
18581ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18582$ac_includes_default
18583#ifdef HAVE_OPENSSL_ERR_H
18584#include <openssl/err.h>
18585#endif
18586
18587#ifdef HAVE_OPENSSL_RAND_H
18588#include <openssl/rand.h>
18589#endif
18590
18591#ifdef HAVE_OPENSSL_CONF_H
18592#include <openssl/conf.h>
18593#endif
18594
18595#ifdef HAVE_OPENSSL_ENGINE_H
18596#include <openssl/engine.h>
18597#endif
18598#include <openssl/ssl.h>
18599#include <openssl/evp.h>
18600
18601"
18602if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18603  ac_have_decl=1
18604else
18605  ac_have_decl=0
18606fi
18607
18608cat >>confdefs.h <<_ACEOF
18609#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18610_ACEOF
18611ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18612$ac_includes_default
18613#ifdef HAVE_OPENSSL_ERR_H
18614#include <openssl/err.h>
18615#endif
18616
18617#ifdef HAVE_OPENSSL_RAND_H
18618#include <openssl/rand.h>
18619#endif
18620
18621#ifdef HAVE_OPENSSL_CONF_H
18622#include <openssl/conf.h>
18623#endif
18624
18625#ifdef HAVE_OPENSSL_ENGINE_H
18626#include <openssl/engine.h>
18627#endif
18628#include <openssl/ssl.h>
18629#include <openssl/evp.h>
18630
18631"
18632if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18633  ac_have_decl=1
18634else
18635  ac_have_decl=0
18636fi
18637
18638cat >>confdefs.h <<_ACEOF
18639#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18640_ACEOF
18641
18642
18643if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18644# check function return type.
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18646$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648/* end confdefs.h.  */
18649
18650#ifdef HAVE_OPENSSL_ERR_H
18651#include <openssl/err.h>
18652#endif
18653
18654#ifdef HAVE_OPENSSL_RAND_H
18655#include <openssl/rand.h>
18656#endif
18657
18658#ifdef HAVE_OPENSSL_CONF_H
18659#include <openssl/conf.h>
18660#endif
18661
18662#ifdef HAVE_OPENSSL_ENGINE_H
18663#include <openssl/engine.h>
18664#endif
18665#include <openssl/ssl.h>
18666#include <openssl/evp.h>
18667
18668int
18669main ()
18670{
18671
18672	HMAC_CTX* hmac_ctx = NULL;
18673	void* hmac_key = NULL;
18674	const EVP_MD* digest = NULL;
18675	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18676	(void)x;
18677
18678  ;
18679  return 0;
18680}
18681_ACEOF
18682if ac_fn_c_try_compile "$LINENO"; then :
18683
18684	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18685$as_echo "int" >&6; }
18686
18687else
18688
18689	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18690$as_echo "void" >&6; }
18691
18692$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18693
18694
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697fi
18698
18699fi
18700
18701
18702# libbsd
18703
18704# Check whether --with-libbsd was given.
18705if test "${with_libbsd+set}" = set; then :
18706  withval=$with_libbsd;
18707	for ac_header in bsd/string.h bsd/stdlib.h
18708do :
18709  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18711"
18712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18713  cat >>confdefs.h <<_ACEOF
18714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18715_ACEOF
18716
18717fi
18718
18719done
18720
18721	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18722		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18723			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18725$as_echo_n "checking for library containing $func... " >&6; }
18726if eval \${$as_ac_Search+:} false; then :
18727  $as_echo_n "(cached) " >&6
18728else
18729  ac_func_search_save_LIBS=$LIBS
18730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731/* end confdefs.h.  */
18732
18733/* Override any GCC internal prototype to avoid an error.
18734   Use char because int might match the return type of a GCC
18735   builtin and then its argument prototype would still apply.  */
18736#ifdef __cplusplus
18737extern "C"
18738#endif
18739char $func ();
18740int
18741main ()
18742{
18743return $func ();
18744  ;
18745  return 0;
18746}
18747_ACEOF
18748for ac_lib in '' bsd; do
18749  if test -z "$ac_lib"; then
18750    ac_res="none required"
18751  else
18752    ac_res=-l$ac_lib
18753    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18754  fi
18755  if ac_fn_c_try_link "$LINENO"; then :
18756  eval "$as_ac_Search=\$ac_res"
18757fi
18758rm -f core conftest.err conftest.$ac_objext \
18759    conftest$ac_exeext
18760  if eval \${$as_ac_Search+:} false; then :
18761  break
18762fi
18763done
18764if eval \${$as_ac_Search+:} false; then :
18765
18766else
18767  eval "$as_ac_Search=no"
18768fi
18769rm conftest.$ac_ext
18770LIBS=$ac_func_search_save_LIBS
18771fi
18772eval ac_res=\$$as_ac_Search
18773	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18774$as_echo "$ac_res" >&6; }
18775eval ac_res=\$$as_ac_Search
18776if test "$ac_res" != no; then :
18777  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18778
18779
18780$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18781
18782				PC_LIBBSD_DEPENDENCY=libbsd
18783
18784
18785fi
18786
18787		done
18788	fi
18789
18790fi
18791
18792
18793# Check whether --enable-sha1 was given.
18794if test "${enable_sha1+set}" = set; then :
18795  enableval=$enable_sha1;
18796fi
18797
18798case "$enable_sha1" in
18799	no)
18800	;;
18801	yes|*)
18802
18803$as_echo "#define USE_SHA1 1" >>confdefs.h
18804
18805	;;
18806esac
18807
18808
18809# Check whether --enable-sha2 was given.
18810if test "${enable_sha2+set}" = set; then :
18811  enableval=$enable_sha2;
18812fi
18813
18814case "$enable_sha2" in
18815	no)
18816	;;
18817	yes|*)
18818
18819$as_echo "#define USE_SHA2 1" >>confdefs.h
18820
18821	;;
18822esac
18823
18824# Check whether --enable-subnet was given.
18825if test "${enable_subnet+set}" = set; then :
18826  enableval=$enable_subnet;
18827fi
18828
18829case "$enable_subnet" in
18830	yes)
18831
18832$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18833
18834	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18835
18836	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18837
18838	;;
18839	no|*)
18840	;;
18841esac
18842
18843# check whether gost also works
18844
18845# Check whether --enable-gost was given.
18846if test "${enable_gost+set}" = set; then :
18847  enableval=$enable_gost;
18848fi
18849
18850use_gost="no"
18851if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18852case "$enable_gost" in
18853	no)
18854	;;
18855	*)
18856	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18857if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18858  :
18859else
18860  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18861fi
18862
18863	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18864if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18865
18866else
18867  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18868fi
18869
18870
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18872$as_echo_n "checking if GOST works... " >&6; }
18873if test c${cross_compiling} = cno; then
18874BAKCFLAGS="$CFLAGS"
18875if test -n "$ssldir"; then
18876	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18877fi
18878if test "$cross_compiling" = yes; then :
18879  eval "ac_cv_c_gost_works=maybe"
18880else
18881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882/* end confdefs.h.  */
18883
18884#include <string.h>
18885#include <openssl/ssl.h>
18886#include <openssl/evp.h>
18887#include <openssl/engine.h>
18888#include <openssl/conf.h>
18889/* routine to load gost (from sldns) */
18890int load_gost_id(void)
18891{
18892	static int gost_id = 0;
18893	const EVP_PKEY_ASN1_METHOD* meth;
18894	ENGINE* e;
18895
18896	if(gost_id) return gost_id;
18897
18898	/* see if configuration loaded gost implementation from other engine*/
18899	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18900	if(meth) {
18901		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18902		return gost_id;
18903	}
18904
18905	/* see if engine can be loaded already */
18906	e = ENGINE_by_id("gost");
18907	if(!e) {
18908		/* load it ourself, in case statically linked */
18909		ENGINE_load_builtin_engines();
18910		ENGINE_load_dynamic();
18911		e = ENGINE_by_id("gost");
18912	}
18913	if(!e) {
18914		/* no gost engine in openssl */
18915		return 0;
18916	}
18917	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18918		ENGINE_finish(e);
18919		ENGINE_free(e);
18920		return 0;
18921	}
18922
18923	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18924	if(!meth) {
18925		/* algo not found */
18926		ENGINE_finish(e);
18927		ENGINE_free(e);
18928		return 0;
18929	}
18930	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18931	return gost_id;
18932}
18933int main(void) {
18934	EVP_MD_CTX* ctx;
18935	const EVP_MD* md;
18936	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18937	const char* str = "Hello world";
18938	const unsigned char check[] = {
18939		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18940		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18941		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18942		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18943	};
18944	OPENSSL_config(NULL);
18945	(void)load_gost_id();
18946	md = EVP_get_digestbyname("md_gost94");
18947	if(!md) return 1;
18948	memset(digest, 0, sizeof(digest));
18949	ctx = EVP_MD_CTX_create();
18950	if(!ctx) return 2;
18951	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18952	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18953	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18954	/* uncomment to see the hash calculated.
18955		{int i;
18956		for(i=0; i<32; i++)
18957			printf(" %2.2x", (int)digest[i]);
18958		printf("\n");}
18959	*/
18960	if(memcmp(digest, check, sizeof(check)) != 0)
18961		return 6;
18962	return 0;
18963}
18964
18965_ACEOF
18966if ac_fn_c_try_run "$LINENO"; then :
18967  eval "ac_cv_c_gost_works=yes"
18968else
18969  eval "ac_cv_c_gost_works=no"
18970fi
18971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18972  conftest.$ac_objext conftest.beam conftest.$ac_ext
18973fi
18974
18975CFLAGS="$BAKCFLAGS"
18976else
18977eval "ac_cv_c_gost_works=maybe"
18978fi
18979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18980$as_echo "$ac_cv_c_gost_works" >&6; }
18981
18982	if test "$ac_cv_c_gost_works" != no; then
18983		use_gost="yes"
18984
18985$as_echo "#define USE_GOST 1" >>confdefs.h
18986
18987	fi
18988	;;
18989esac
18990fi
18991# Check whether --enable-ecdsa was given.
18992if test "${enable_ecdsa+set}" = set; then :
18993  enableval=$enable_ecdsa;
18994fi
18995
18996use_ecdsa="no"
18997case "$enable_ecdsa" in
18998    no)
18999      ;;
19000    *)
19001      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19002	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
19003if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
19004
19005else
19006  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19007fi
19008
19009	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
19010if test "x$ac_cv_func_SHA384_Init" = xyes; then :
19011
19012else
19013  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19014fi
19015
19016	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
19017#include <openssl/evp.h>
19018
19019"
19020if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
19021  ac_have_decl=1
19022else
19023  ac_have_decl=0
19024fi
19025
19026cat >>confdefs.h <<_ACEOF
19027#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
19028_ACEOF
19029if test $ac_have_decl = 1; then :
19030
19031else
19032  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19033fi
19034ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
19035#include <openssl/evp.h>
19036
19037"
19038if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
19039  ac_have_decl=1
19040else
19041  ac_have_decl=0
19042fi
19043
19044cat >>confdefs.h <<_ACEOF
19045#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
19046_ACEOF
19047if test $ac_have_decl = 1; then :
19048
19049else
19050  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19051fi
19052
19053	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
19054	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
19055$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
19056	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
19057		if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
19058		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059$as_echo "no" >&6; }
19060
19061cat >>confdefs.h <<_ACEOF
19062#define USE_ECDSA_EVP_WORKAROUND 1
19063_ACEOF
19064
19065		else
19066		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19067$as_echo "yes" >&6; }
19068		fi
19069	      else
19070		# not OpenSSL, thus likely LibreSSL, which supports it
19071		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072$as_echo "yes" >&6; }
19073	      fi
19074      fi
19075      # we now know we have ECDSA and the required curves.
19076
19077cat >>confdefs.h <<_ACEOF
19078#define USE_ECDSA 1
19079_ACEOF
19080
19081      use_ecdsa="yes"
19082      ;;
19083esac
19084
19085# Check whether --enable-dsa was given.
19086if test "${enable_dsa+set}" = set; then :
19087  enableval=$enable_dsa;
19088fi
19089
19090use_dsa="no"
19091case "$enable_dsa" in
19092    yes)
19093      # detect if DSA is supported, and turn it off if not.
19094      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19095      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19096if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19097
19098      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19099ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19100$ac_includes_default
19101#ifdef HAVE_OPENSSL_ERR_H
19102#include <openssl/err.h>
19103#endif
19104
19105#ifdef HAVE_OPENSSL_RAND_H
19106#include <openssl/rand.h>
19107#endif
19108
19109#ifdef HAVE_OPENSSL_CONF_H
19110#include <openssl/conf.h>
19111#endif
19112
19113#ifdef HAVE_OPENSSL_ENGINE_H
19114#include <openssl/engine.h>
19115#endif
19116
19117"
19118if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19119
19120
19121cat >>confdefs.h <<_ACEOF
19122#define USE_DSA 1
19123_ACEOF
19124
19125
19126else
19127  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19128               fi
19129fi
19130
19131
19132else
19133  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19134               fi
19135fi
19136
19137      else
19138
19139cat >>confdefs.h <<_ACEOF
19140#define USE_DSA 1
19141_ACEOF
19142
19143      fi
19144      ;;
19145    *)
19146      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19147      # support DSA for DNSSEC Validation.
19148      ;;
19149esac
19150
19151
19152# Check whether --with-deprecate-rsa-1024 was given.
19153if test "${with_deprecate_rsa_1024+set}" = set; then :
19154  withval=$with_deprecate_rsa_1024;
19155fi
19156
19157if test "$with_deprecate_rsa_1024" = "yes"; then
19158
19159$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19160
19161fi
19162
19163# Check whether --enable-ed25519 was given.
19164if test "${enable_ed25519+set}" = set; then :
19165  enableval=$enable_ed25519;
19166fi
19167
19168use_ed25519="no"
19169case "$enable_ed25519" in
19170    no)
19171      ;;
19172    *)
19173      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19174	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19175#include <openssl/evp.h>
19176
19177"
19178if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19179  ac_have_decl=1
19180else
19181  ac_have_decl=0
19182fi
19183
19184cat >>confdefs.h <<_ACEOF
19185#define HAVE_DECL_NID_ED25519 $ac_have_decl
19186_ACEOF
19187if test $ac_have_decl = 1; then :
19188
19189      		use_ed25519="yes"
19190
19191else
19192   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19193	      	fi
19194fi
19195
19196      fi
19197      if test $USE_NETTLE = "yes"; then
19198		for ac_header in nettle/eddsa.h
19199do :
19200  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19201"
19202if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19203  cat >>confdefs.h <<_ACEOF
19204#define HAVE_NETTLE_EDDSA_H 1
19205_ACEOF
19206 use_ed25519="yes"
19207fi
19208
19209done
19210
19211      fi
19212      if test $use_ed25519 = "yes"; then
19213
19214cat >>confdefs.h <<_ACEOF
19215#define USE_ED25519 1
19216_ACEOF
19217
19218      fi
19219      ;;
19220esac
19221
19222# Check whether --enable-ed448 was given.
19223if test "${enable_ed448+set}" = set; then :
19224  enableval=$enable_ed448;
19225fi
19226
19227use_ed448="no"
19228case "$enable_ed448" in
19229    no)
19230      ;;
19231    *)
19232      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19233	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19234#include <openssl/evp.h>
19235
19236"
19237if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19238  ac_have_decl=1
19239else
19240  ac_have_decl=0
19241fi
19242
19243cat >>confdefs.h <<_ACEOF
19244#define HAVE_DECL_NID_ED448 $ac_have_decl
19245_ACEOF
19246if test $ac_have_decl = 1; then :
19247
19248      		use_ed448="yes"
19249
19250else
19251   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19252	      	fi
19253fi
19254
19255      fi
19256      if test $use_ed448 = "yes"; then
19257
19258cat >>confdefs.h <<_ACEOF
19259#define USE_ED448 1
19260_ACEOF
19261
19262      fi
19263      ;;
19264esac
19265
19266# Check whether --enable-event-api was given.
19267if test "${enable_event_api+set}" = set; then :
19268  enableval=$enable_event_api;
19269fi
19270
19271case "$enable_event_api" in
19272    yes)
19273      UNBOUND_EVENT_INSTALL=unbound-event-install
19274
19275      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19276
19277      ;;
19278    *)
19279      ;;
19280esac
19281
19282# Check whether --enable-tfo-client was given.
19283if test "${enable_tfo_client+set}" = set; then :
19284  enableval=$enable_tfo_client;
19285fi
19286
19287case "$enable_tfo_client" in
19288	yes)
19289		case "$host_os" in
19290			linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19291#include <netinet/tcp.h>
19292
19293"
19294if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19295  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19296$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19297else
19298  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19299fi
19300
19301
19302cat >>confdefs.h <<_ACEOF
19303#define USE_MSG_FASTOPEN 1
19304_ACEOF
19305
19306				;;
19307			darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19308#include <sys/socket.h>
19309
19310"
19311if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19312  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19313$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19314else
19315  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19316fi
19317
19318
19319cat >>confdefs.h <<_ACEOF
19320#define USE_OSX_MSG_FASTOPEN 1
19321_ACEOF
19322
19323				;;
19324		esac
19325		;;
19326	no|*)
19327		;;
19328esac
19329
19330# Check whether --enable-tfo-server was given.
19331if test "${enable_tfo_server+set}" = set; then :
19332  enableval=$enable_tfo_server;
19333fi
19334
19335case "$enable_tfo_server" in
19336	yes)
19337	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19338#include <netinet/tcp.h>
19339
19340"
19341if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19342  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19343$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19344else
19345  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19346fi
19347
19348
19349cat >>confdefs.h <<_ACEOF
19350#define USE_TCP_FASTOPEN 1
19351_ACEOF
19352
19353		;;
19354	no|*)
19355		;;
19356esac
19357
19358# check for libevent
19359
19360# Check whether --with-libevent was given.
19361if test "${with_libevent+set}" = set; then :
19362  withval=$with_libevent;
19363else
19364   with_libevent="no"
19365fi
19366
19367if test "x_$with_libevent" != x_no; then
19368
19369$as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19370
19371        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19372$as_echo_n "checking for libevent... " >&6; }
19373        if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19374            with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19375        fi
19376        for dir in $with_libevent; do
19377            thedir="$dir"
19378            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19379                found_libevent="yes"
19380								if test "$thedir" != "/usr"; then
19381				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
19382				fi
19383				break;
19384		    fi
19385        done
19386        if test x_$found_libevent != x_yes; then
19387		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19388			# libevent source directory
19389			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19390$as_echo "found in $thedir" >&6; }
19391			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19392			BAK_LDFLAGS_SET="1"
19393			BAK_LDFLAGS="$LDFLAGS"
19394			# remove evdns from linking
19395			mkdir build >/dev/null 2>&1
19396			mkdir build/libevent >/dev/null 2>&1
19397			mkdir build/libevent/.libs >/dev/null 2>&1
19398			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19399			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19400			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19401			cp $ev_files_o build/libevent
19402			cp $ev_files_lo build/libevent
19403			cp $ev_files_libso build/libevent/.libs
19404			LATE_LDFLAGS="build/libevent/*.lo -lm"
19405			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19406		else
19407            as_fn_error $? "Cannot find the libevent library in $with_libevent
19408You can restart ./configure --with-libevent=no to use a builtin alternative.
19409Please note that this alternative is not as capable as libevent when using
19410large outgoing port ranges.  " "$LINENO" 5
19411		fi
19412        else
19413            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19414$as_echo "found in $thedir" >&6; }
19415	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19416		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19417
19418	if test "x$enable_rpath" = xyes; then
19419		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19420			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19421		fi
19422	fi
19423
19424	    else
19425		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
19426			LDFLAGS="$LDFLAGS -L$thedir/lib"
19427
19428	if test "x$enable_rpath" = xyes; then
19429		if echo "$thedir/lib" | grep "^/" >/dev/null; then
19430			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19431		fi
19432	fi
19433
19434		    fi
19435	    fi
19436        fi
19437	# check for library used by libevent after 1.3c
19438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19439$as_echo_n "checking for library containing clock_gettime... " >&6; }
19440if ${ac_cv_search_clock_gettime+:} false; then :
19441  $as_echo_n "(cached) " >&6
19442else
19443  ac_func_search_save_LIBS=$LIBS
19444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19445/* end confdefs.h.  */
19446
19447/* Override any GCC internal prototype to avoid an error.
19448   Use char because int might match the return type of a GCC
19449   builtin and then its argument prototype would still apply.  */
19450#ifdef __cplusplus
19451extern "C"
19452#endif
19453char clock_gettime ();
19454int
19455main ()
19456{
19457return clock_gettime ();
19458  ;
19459  return 0;
19460}
19461_ACEOF
19462for ac_lib in '' rt; do
19463  if test -z "$ac_lib"; then
19464    ac_res="none required"
19465  else
19466    ac_res=-l$ac_lib
19467    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19468  fi
19469  if ac_fn_c_try_link "$LINENO"; then :
19470  ac_cv_search_clock_gettime=$ac_res
19471fi
19472rm -f core conftest.err conftest.$ac_objext \
19473    conftest$ac_exeext
19474  if ${ac_cv_search_clock_gettime+:} false; then :
19475  break
19476fi
19477done
19478if ${ac_cv_search_clock_gettime+:} false; then :
19479
19480else
19481  ac_cv_search_clock_gettime=no
19482fi
19483rm conftest.$ac_ext
19484LIBS=$ac_func_search_save_LIBS
19485fi
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19487$as_echo "$ac_cv_search_clock_gettime" >&6; }
19488ac_res=$ac_cv_search_clock_gettime
19489if test "$ac_res" != no; then :
19490  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19491
19492fi
19493
19494
19495	# is the event.h header libev or libevent?
19496	for ac_header in event.h
19497do :
19498  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19499"
19500if test "x$ac_cv_header_event_h" = xyes; then :
19501  cat >>confdefs.h <<_ACEOF
19502#define HAVE_EVENT_H 1
19503_ACEOF
19504
19505fi
19506
19507done
19508
19509	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19510#include <event.h>
19511
19512"
19513if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19514
19515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19516$as_echo_n "checking for library containing event_set... " >&6; }
19517if ${ac_cv_search_event_set+:} false; then :
19518  $as_echo_n "(cached) " >&6
19519else
19520  ac_func_search_save_LIBS=$LIBS
19521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522/* end confdefs.h.  */
19523
19524/* Override any GCC internal prototype to avoid an error.
19525   Use char because int might match the return type of a GCC
19526   builtin and then its argument prototype would still apply.  */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530char event_set ();
19531int
19532main ()
19533{
19534return event_set ();
19535  ;
19536  return 0;
19537}
19538_ACEOF
19539for ac_lib in '' ev; do
19540  if test -z "$ac_lib"; then
19541    ac_res="none required"
19542  else
19543    ac_res=-l$ac_lib
19544    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19545  fi
19546  if ac_fn_c_try_link "$LINENO"; then :
19547  ac_cv_search_event_set=$ac_res
19548fi
19549rm -f core conftest.err conftest.$ac_objext \
19550    conftest$ac_exeext
19551  if ${ac_cv_search_event_set+:} false; then :
19552  break
19553fi
19554done
19555if ${ac_cv_search_event_set+:} false; then :
19556
19557else
19558  ac_cv_search_event_set=no
19559fi
19560rm conftest.$ac_ext
19561LIBS=$ac_func_search_save_LIBS
19562fi
19563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19564$as_echo "$ac_cv_search_event_set" >&6; }
19565ac_res=$ac_cv_search_event_set
19566if test "$ac_res" != no; then :
19567  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19568
19569fi
19570
19571
19572else
19573
19574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19575$as_echo_n "checking for library containing event_set... " >&6; }
19576if ${ac_cv_search_event_set+:} false; then :
19577  $as_echo_n "(cached) " >&6
19578else
19579  ac_func_search_save_LIBS=$LIBS
19580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581/* end confdefs.h.  */
19582
19583/* Override any GCC internal prototype to avoid an error.
19584   Use char because int might match the return type of a GCC
19585   builtin and then its argument prototype would still apply.  */
19586#ifdef __cplusplus
19587extern "C"
19588#endif
19589char event_set ();
19590int
19591main ()
19592{
19593return event_set ();
19594  ;
19595  return 0;
19596}
19597_ACEOF
19598for ac_lib in '' event; do
19599  if test -z "$ac_lib"; then
19600    ac_res="none required"
19601  else
19602    ac_res=-l$ac_lib
19603    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19604  fi
19605  if ac_fn_c_try_link "$LINENO"; then :
19606  ac_cv_search_event_set=$ac_res
19607fi
19608rm -f core conftest.err conftest.$ac_objext \
19609    conftest$ac_exeext
19610  if ${ac_cv_search_event_set+:} false; then :
19611  break
19612fi
19613done
19614if ${ac_cv_search_event_set+:} false; then :
19615
19616else
19617  ac_cv_search_event_set=no
19618fi
19619rm conftest.$ac_ext
19620LIBS=$ac_func_search_save_LIBS
19621fi
19622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19623$as_echo "$ac_cv_search_event_set" >&6; }
19624ac_res=$ac_cv_search_event_set
19625if test "$ac_res" != no; then :
19626  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19627
19628fi
19629
19630
19631fi
19632
19633	for ac_func in event_base_free
19634do :
19635  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19636if test "x$ac_cv_func_event_base_free" = xyes; then :
19637  cat >>confdefs.h <<_ACEOF
19638#define HAVE_EVENT_BASE_FREE 1
19639_ACEOF
19640
19641fi
19642done
19643 # only in libevent 1.2 and later
19644	for ac_func in event_base_once
19645do :
19646  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19647if test "x$ac_cv_func_event_base_once" = xyes; then :
19648  cat >>confdefs.h <<_ACEOF
19649#define HAVE_EVENT_BASE_ONCE 1
19650_ACEOF
19651
19652fi
19653done
19654 # only in libevent 1.4.1 and later
19655	for ac_func in event_base_new
19656do :
19657  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19658if test "x$ac_cv_func_event_base_new" = xyes; then :
19659  cat >>confdefs.h <<_ACEOF
19660#define HAVE_EVENT_BASE_NEW 1
19661_ACEOF
19662
19663fi
19664done
19665 # only in libevent 1.4.1 and later
19666	for ac_func in event_base_get_method
19667do :
19668  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19669if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19670  cat >>confdefs.h <<_ACEOF
19671#define HAVE_EVENT_BASE_GET_METHOD 1
19672_ACEOF
19673
19674fi
19675done
19676 # only in libevent 1.4.3 and later
19677	for ac_func in ev_loop
19678do :
19679  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19680if test "x$ac_cv_func_ev_loop" = xyes; then :
19681  cat >>confdefs.h <<_ACEOF
19682#define HAVE_EV_LOOP 1
19683_ACEOF
19684
19685fi
19686done
19687 # only in libev. (tested on 3.51)
19688	for ac_func in ev_default_loop
19689do :
19690  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19691if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19692  cat >>confdefs.h <<_ACEOF
19693#define HAVE_EV_DEFAULT_LOOP 1
19694_ACEOF
19695
19696fi
19697done
19698 # only in libev. (tested on 4.00)
19699	for ac_func in event_assign
19700do :
19701  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19702if test "x$ac_cv_func_event_assign" = xyes; then :
19703  cat >>confdefs.h <<_ACEOF
19704#define HAVE_EVENT_ASSIGN 1
19705_ACEOF
19706
19707fi
19708done
19709 # in libevent, for thread-safety
19710	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19711#ifdef HAVE_EVENT_H
19712#  include <event.h>
19713#else
19714#  include \"event2/event.h\"
19715#endif
19716
19717"
19718if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19719  ac_have_decl=1
19720else
19721  ac_have_decl=0
19722fi
19723
19724cat >>confdefs.h <<_ACEOF
19725#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19726_ACEOF
19727
19728        PC_LIBEVENT_DEPENDENCY="libevent"
19729
19730	if test -n "$BAK_LDFLAGS_SET"; then
19731		LDFLAGS="$BAK_LDFLAGS"
19732	fi
19733else
19734
19735$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19736
19737fi
19738
19739# check for libexpat
19740
19741# Check whether --with-libexpat was given.
19742if test "${with_libexpat+set}" = set; then :
19743  withval=$with_libexpat;
19744else
19745   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19746fi
19747
19748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19749$as_echo_n "checking for libexpat... " >&6; }
19750found_libexpat="no"
19751for dir in $withval ; do
19752            if test -f "$dir/include/expat.h"; then
19753		found_libexpat="yes"
19754				if test "$dir" != "/usr"; then
19755                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19756		    LDFLAGS="$LDFLAGS -L$dir/lib"
19757		fi
19758            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19759$as_echo "found in $dir" >&6; }
19760                break;
19761            fi
19762done
19763if test x_$found_libexpat != x_yes; then
19764	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19765fi
19766for ac_header in expat.h
19767do :
19768  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19769"
19770if test "x$ac_cv_header_expat_h" = xyes; then :
19771  cat >>confdefs.h <<_ACEOF
19772#define HAVE_EXPAT_H 1
19773_ACEOF
19774
19775fi
19776
19777done
19778
19779ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19780#include <expat.h>
19781
19782"
19783if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19784  ac_have_decl=1
19785else
19786  ac_have_decl=0
19787fi
19788
19789cat >>confdefs.h <<_ACEOF
19790#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19791_ACEOF
19792
19793
19794# hiredis (redis C client for cachedb)
19795
19796# Check whether --with-libhiredis was given.
19797if test "${with_libhiredis+set}" = set; then :
19798  withval=$with_libhiredis;
19799else
19800   withval="no"
19801fi
19802
19803found_libhiredis="no"
19804if test x_$withval = x_yes -o x_$withval != x_no; then
19805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19806$as_echo_n "checking for libhiredis... " >&6; }
19807   if test x_$withval = x_ -o x_$withval = x_yes; then
19808            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19809   fi
19810   for dir in $withval ; do
19811            if test -f "$dir/include/hiredis/hiredis.h"; then
19812		found_libhiredis="yes"
19813				if test "$dir" != "/usr"; then
19814                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19815		    LDFLAGS="$LDFLAGS -L$dir/lib"
19816		fi
19817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19818$as_echo "found in $dir" >&6; }
19819
19820$as_echo "#define USE_REDIS 1" >>confdefs.h
19821
19822		LIBS="$LIBS -lhiredis"
19823                break;
19824            fi
19825    done
19826    if test x_$found_libhiredis != x_yes; then
19827	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19828    fi
19829    for ac_header in hiredis/hiredis.h
19830do :
19831  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19832"
19833if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19834  cat >>confdefs.h <<_ACEOF
19835#define HAVE_HIREDIS_HIREDIS_H 1
19836_ACEOF
19837
19838fi
19839
19840done
19841
19842    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19843    #include <hiredis/hiredis.h>
19844
19845"
19846if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19847  ac_have_decl=1
19848else
19849  ac_have_decl=0
19850fi
19851
19852cat >>confdefs.h <<_ACEOF
19853#define HAVE_DECL_REDISCONNECT $ac_have_decl
19854_ACEOF
19855
19856fi
19857
19858# nghttp2
19859
19860# Check whether --with-libnghttp2 was given.
19861if test "${with_libnghttp2+set}" = set; then :
19862  withval=$with_libnghttp2;
19863else
19864   withval="no"
19865fi
19866
19867found_libnghttp2="no"
19868if test x_$withval = x_yes -o x_$withval != x_no; then
19869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19870$as_echo_n "checking for libnghttp2... " >&6; }
19871   if test x_$withval = x_ -o x_$withval = x_yes; then
19872            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19873   fi
19874   for dir in $withval ; do
19875            if test -f "$dir/include/nghttp2/nghttp2.h"; then
19876		found_libnghttp2="yes"
19877				if test "$dir" != "/usr"; then
19878                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19879		    LDFLAGS="$LDFLAGS -L$dir/lib"
19880		fi
19881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19882$as_echo "found in $dir" >&6; }
19883
19884$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19885
19886		LIBS="$LIBS -lnghttp2"
19887                break;
19888            fi
19889    done
19890    if test x_$found_libnghttp2 != x_yes; then
19891	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19892    fi
19893    for ac_header in nghttp2/nghttp2.h
19894do :
19895  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
19896"
19897if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
19898  cat >>confdefs.h <<_ACEOF
19899#define HAVE_NGHTTP2_NGHTTP2_H 1
19900_ACEOF
19901
19902fi
19903
19904done
19905
19906    ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
19907    #include <nghttp2/nghttp2.h>
19908
19909"
19910if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
19911  ac_have_decl=1
19912else
19913  ac_have_decl=0
19914fi
19915
19916cat >>confdefs.h <<_ACEOF
19917#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
19918_ACEOF
19919
19920fi
19921
19922# set static linking for uninstalled libraries if requested
19923
19924staticexe=""
19925# Check whether --enable-static-exe was given.
19926if test "${enable_static_exe+set}" = set; then :
19927  enableval=$enable_static_exe;
19928fi
19929
19930if test x_$enable_static_exe = x_yes; then
19931	staticexe="-static"
19932	if test "$on_mingw" = yes; then
19933		staticexe="-all-static"
19934		# for static compile, include gdi32 and zlib here.
19935		if echo "$LIBS" | grep 'lgdi32' >/dev/null; then
19936			:
19937		else
19938			LIBS="$LIBS -lgdi32"
19939		fi
19940		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19941$as_echo_n "checking for compress in -lz... " >&6; }
19942if ${ac_cv_lib_z_compress+:} false; then :
19943  $as_echo_n "(cached) " >&6
19944else
19945  ac_check_lib_save_LIBS=$LIBS
19946LIBS="-lz  $LIBS"
19947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19948/* end confdefs.h.  */
19949
19950/* Override any GCC internal prototype to avoid an error.
19951   Use char because int might match the return type of a GCC
19952   builtin and then its argument prototype would still apply.  */
19953#ifdef __cplusplus
19954extern "C"
19955#endif
19956char compress ();
19957int
19958main ()
19959{
19960return compress ();
19961  ;
19962  return 0;
19963}
19964_ACEOF
19965if ac_fn_c_try_link "$LINENO"; then :
19966  ac_cv_lib_z_compress=yes
19967else
19968  ac_cv_lib_z_compress=no
19969fi
19970rm -f core conftest.err conftest.$ac_objext \
19971    conftest$ac_exeext conftest.$ac_ext
19972LIBS=$ac_check_lib_save_LIBS
19973fi
19974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19975$as_echo "$ac_cv_lib_z_compress" >&6; }
19976if test "x$ac_cv_lib_z_compress" = xyes; then :
19977   LIBS="$LIBS -lz"
19978fi
19979
19980		if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
19981			:
19982		else
19983			LIBS="$LIBS -l:libssp.a"
19984		fi
19985	fi
19986fi
19987
19988# set full static linking if requested
19989# Check whether --enable-fully-static was given.
19990if test "${enable_fully_static+set}" = set; then :
19991  enableval=$enable_fully_static;
19992fi
19993
19994if test x_$enable_fully_static = x_yes; then
19995	staticexe="-all-static"
19996	if test "$on_mingw" = yes; then
19997		# for static compile, include gdi32 and zlib here.
19998		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19999			:
20000		else
20001			LIBS="$LIBS -lgdi32"
20002		fi
20003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20004$as_echo_n "checking for compress in -lz... " >&6; }
20005if ${ac_cv_lib_z_compress+:} false; then :
20006  $as_echo_n "(cached) " >&6
20007else
20008  ac_check_lib_save_LIBS=$LIBS
20009LIBS="-lz  $LIBS"
20010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011/* end confdefs.h.  */
20012
20013/* Override any GCC internal prototype to avoid an error.
20014   Use char because int might match the return type of a GCC
20015   builtin and then its argument prototype would still apply.  */
20016#ifdef __cplusplus
20017extern "C"
20018#endif
20019char compress ();
20020int
20021main ()
20022{
20023return compress ();
20024  ;
20025  return 0;
20026}
20027_ACEOF
20028if ac_fn_c_try_link "$LINENO"; then :
20029  ac_cv_lib_z_compress=yes
20030else
20031  ac_cv_lib_z_compress=no
20032fi
20033rm -f core conftest.err conftest.$ac_objext \
20034    conftest$ac_exeext conftest.$ac_ext
20035LIBS=$ac_check_lib_save_LIBS
20036fi
20037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20038$as_echo "$ac_cv_lib_z_compress" >&6; }
20039if test "x$ac_cv_lib_z_compress" = xyes; then :
20040   LIBS="$LIBS -lz"
20041fi
20042
20043		if echo "$LIBS" | grep -e "libssp.a" -e "lssp" >/dev/null; then
20044			:
20045		else
20046			LIBS="$LIBS -l:libssp.a"
20047		fi
20048	fi
20049fi
20050
20051# set lock checking if requested
20052# Check whether --enable-lock_checks was given.
20053if test "${enable_lock_checks+set}" = set; then :
20054  enableval=$enable_lock_checks;
20055fi
20056
20057if test x_$enable_lock_checks = x_yes; then
20058
20059$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
20060
20061	CHECKLOCK_OBJ="checklocks.lo"
20062
20063fi
20064
20065
20066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
20067$as_echo_n "checking for getaddrinfo... " >&6; }
20068ac_cv_func_getaddrinfo=no
20069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070/* end confdefs.h.  */
20071
20072#ifdef __cplusplus
20073extern "C"
20074{
20075#endif
20076char* getaddrinfo();
20077char* (*f) () = getaddrinfo;
20078#ifdef __cplusplus
20079}
20080#endif
20081int main(void) {
20082        ;
20083        return 0;
20084}
20085
20086_ACEOF
20087if ac_fn_c_try_link "$LINENO"; then :
20088  ac_cv_func_getaddrinfo="yes"
20089if test "$ac_cv_header_windows_h" = "yes"; then
20090
20091$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20092
20093	USE_WINSOCK="1"
20094	if echo "$LIBS" | grep 'lws2_32' >/dev/null; then
20095		:
20096	else
20097		LIBS="$LIBS -lws2_32"
20098	fi
20099fi
20100
20101else
20102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103/* end confdefs.h.  */
20104
20105#ifdef HAVE_WS2TCPIP_H
20106#include <ws2tcpip.h>
20107#endif
20108
20109int
20110main ()
20111{
20112
20113        (void)getaddrinfo(NULL, NULL, NULL, NULL);
20114
20115
20116  ;
20117  return 0;
20118}
20119_ACEOF
20120if ac_fn_c_try_link "$LINENO"; then :
20121
20122ac_cv_func_getaddrinfo="yes"
20123
20124$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20125
20126USE_WINSOCK="1"
20127
20128else
20129  ORIGLIBS="$LIBS"
20130LIBS="$LIBS -lws2_32"
20131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132/* end confdefs.h.  */
20133
20134#ifdef HAVE_WS2TCPIP_H
20135#include <ws2tcpip.h>
20136#endif
20137
20138int
20139main ()
20140{
20141
20142        (void)getaddrinfo(NULL, NULL, NULL, NULL);
20143
20144
20145  ;
20146  return 0;
20147}
20148_ACEOF
20149if ac_fn_c_try_link "$LINENO"; then :
20150
20151ac_cv_func_getaddrinfo="yes"
20152
20153$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20154
20155USE_WINSOCK="1"
20156
20157else
20158
20159ac_cv_func_getaddrinfo="no"
20160LIBS="$ORIGLIBS"
20161
20162fi
20163rm -f core conftest.err conftest.$ac_objext \
20164    conftest$ac_exeext conftest.$ac_ext
20165
20166fi
20167rm -f core conftest.err conftest.$ac_objext \
20168    conftest$ac_exeext conftest.$ac_ext
20169
20170fi
20171rm -f core conftest.err conftest.$ac_objext \
20172    conftest$ac_exeext conftest.$ac_ext
20173
20174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20175$as_echo "$ac_cv_func_getaddrinfo" >&6; }
20176if test $ac_cv_func_getaddrinfo = yes; then
20177
20178$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20179
20180fi
20181
20182if test "$USE_WINSOCK" = 1; then
20183
20184$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20185
20186	for ac_header in iphlpapi.h
20187do :
20188  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20189#include <windows.h>
20190
20191"
20192if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20193  cat >>confdefs.h <<_ACEOF
20194#define HAVE_IPHLPAPI_H 1
20195_ACEOF
20196
20197fi
20198
20199done
20200
20201	if test -n "$ac_tool_prefix"; then
20202  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20203set dummy ${ac_tool_prefix}windres; ac_word=$2
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20205$as_echo_n "checking for $ac_word... " >&6; }
20206if ${ac_cv_prog_WINDRES+:} false; then :
20207  $as_echo_n "(cached) " >&6
20208else
20209  if test -n "$WINDRES"; then
20210  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20211else
20212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20213for as_dir in $PATH
20214do
20215  IFS=$as_save_IFS
20216  test -z "$as_dir" && as_dir=.
20217    for ac_exec_ext in '' $ac_executable_extensions; do
20218  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20219    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20221    break 2
20222  fi
20223done
20224  done
20225IFS=$as_save_IFS
20226
20227fi
20228fi
20229WINDRES=$ac_cv_prog_WINDRES
20230if test -n "$WINDRES"; then
20231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20232$as_echo "$WINDRES" >&6; }
20233else
20234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235$as_echo "no" >&6; }
20236fi
20237
20238
20239fi
20240if test -z "$ac_cv_prog_WINDRES"; then
20241  ac_ct_WINDRES=$WINDRES
20242  # Extract the first word of "windres", so it can be a program name with args.
20243set dummy windres; ac_word=$2
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20245$as_echo_n "checking for $ac_word... " >&6; }
20246if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20247  $as_echo_n "(cached) " >&6
20248else
20249  if test -n "$ac_ct_WINDRES"; then
20250  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20251else
20252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20253for as_dir in $PATH
20254do
20255  IFS=$as_save_IFS
20256  test -z "$as_dir" && as_dir=.
20257    for ac_exec_ext in '' $ac_executable_extensions; do
20258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20259    ac_cv_prog_ac_ct_WINDRES="windres"
20260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20261    break 2
20262  fi
20263done
20264  done
20265IFS=$as_save_IFS
20266
20267fi
20268fi
20269ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20270if test -n "$ac_ct_WINDRES"; then
20271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20272$as_echo "$ac_ct_WINDRES" >&6; }
20273else
20274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20275$as_echo "no" >&6; }
20276fi
20277
20278  if test "x$ac_ct_WINDRES" = x; then
20279    WINDRES=""
20280  else
20281    case $cross_compiling:$ac_tool_warned in
20282yes:)
20283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20285ac_tool_warned=yes ;;
20286esac
20287    WINDRES=$ac_ct_WINDRES
20288  fi
20289else
20290  WINDRES="$ac_cv_prog_WINDRES"
20291fi
20292
20293	if echo "$LIBS" | grep crypt32 >/dev/null; then
20294		LIBS="$LIBS -liphlpapi"
20295	else
20296		LIBS="$LIBS -liphlpapi -lcrypt32"
20297	fi
20298	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20299
20300	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20301
20302	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20303
20304	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20305
20306	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20307
20308	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20309
20310	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20311
20312	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20313
20314
20315$as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20316
20317fi
20318if test $ac_cv_func_getaddrinfo = no; then
20319	case " $LIBOBJS " in
20320  *" fake-rfc2553.$ac_objext "* ) ;;
20321  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20322 ;;
20323esac
20324
20325fi
20326# check after getaddrinfo for its libraries
20327
20328# check ioctlsocket
20329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20330$as_echo_n "checking for ioctlsocket... " >&6; }
20331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20332/* end confdefs.h.  */
20333
20334#ifdef HAVE_WINSOCK2_H
20335#include <winsock2.h>
20336#endif
20337
20338int
20339main ()
20340{
20341
20342	(void)ioctlsocket(0, 0, NULL);
20343
20344  ;
20345  return 0;
20346}
20347_ACEOF
20348if ac_fn_c_try_link "$LINENO"; then :
20349
20350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20351$as_echo "yes" >&6; }
20352
20353$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20354
20355
20356else
20357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20358$as_echo "no" >&6; }
20359fi
20360rm -f core conftest.err conftest.$ac_objext \
20361    conftest$ac_exeext conftest.$ac_ext
20362
20363
20364# see if daemon(3) exists, and if it is deprecated.
20365for ac_func in daemon
20366do :
20367  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20368if test "x$ac_cv_func_daemon" = xyes; then :
20369  cat >>confdefs.h <<_ACEOF
20370#define HAVE_DAEMON 1
20371_ACEOF
20372
20373fi
20374done
20375
20376if test $ac_cv_func_daemon = yes; then
20377
20378
20379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20380$as_echo_n "checking if daemon is deprecated... " >&6; }
20381cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20382if eval \${cv_cc_deprecated_$cache+:} false; then :
20383  $as_echo_n "(cached) " >&6
20384else
20385
20386echo '
20387#include <stdlib.h>
20388#include <unistd.h>
20389' >conftest.c
20390echo 'void f(void){ (void)daemon(0, 0); }' >>conftest.c
20391if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20392eval "cv_cc_deprecated_$cache=no"
20393else
20394eval "cv_cc_deprecated_$cache=yes"
20395fi
20396rm -f conftest conftest.o conftest.c
20397
20398fi
20399
20400if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402$as_echo "yes" >&6; }
20403
20404cat >>confdefs.h <<_ACEOF
20405#define DEPRECATED_DAEMON 1
20406_ACEOF
20407
20408:
20409
20410else
20411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20412$as_echo "no" >&6; }
20413:
20414
20415fi
20416
20417fi
20418
20419ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20420$ac_includes_default
20421#ifdef HAVE_SYS_UN_H
20422#include <sys/un.h>
20423#endif
20424
20425"
20426if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20427
20428cat >>confdefs.h <<_ACEOF
20429#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20430_ACEOF
20431
20432
20433fi
20434
20435ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20436$ac_includes_default
20437#if HAVE_SYS_PARAM_H
20438#include <sys/param.h>
20439#endif
20440
20441#ifdef HAVE_SYS_SOCKET_H
20442#include <sys/socket.h>
20443#endif
20444
20445#ifdef HAVE_SYS_UIO_H
20446#include <sys/uio.h>
20447#endif
20448
20449#ifdef HAVE_NETINET_IN_H
20450#include <netinet/in.h>
20451#endif
20452
20453#ifdef HAVE_NETINET_TCP_H
20454#include <netinet/tcp.h>
20455#endif
20456
20457#ifdef HAVE_ARPA_INET_H
20458#include <arpa/inet.h>
20459#endif
20460
20461#ifdef HAVE_WINSOCK2_H
20462#include <winsock2.h>
20463#endif
20464
20465#ifdef HAVE_WS2TCPIP_H
20466#include <ws2tcpip.h>
20467#endif
20468
20469"
20470if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20471
20472cat >>confdefs.h <<_ACEOF
20473#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20474_ACEOF
20475
20476
20477fi
20478
20479
20480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20481$as_echo_n "checking for htobe64... " >&6; }
20482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483/* end confdefs.h.  */
20484
20485#include <stdio.h>
20486#ifdef HAVE_ENDIAN_H
20487#  include <endian.h>
20488#endif
20489#ifdef HAVE_SYS_ENDIAN_H
20490#  include <sys/endian.h>
20491#endif
20492
20493int
20494main ()
20495{
20496unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20497  ;
20498  return 0;
20499}
20500_ACEOF
20501if ac_fn_c_try_link "$LINENO"; then :
20502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20503$as_echo "yes" >&6; }
20504
20505$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20506
20507else
20508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509$as_echo "no" >&6; }
20510fi
20511rm -f core conftest.err conftest.$ac_objext \
20512    conftest$ac_exeext conftest.$ac_ext
20513
20514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20515$as_echo_n "checking for be64toh... " >&6; }
20516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517/* end confdefs.h.  */
20518
20519#include <stdio.h>
20520#ifdef HAVE_ENDIAN_H
20521#  include <endian.h>
20522#endif
20523#ifdef HAVE_SYS_ENDIAN_H
20524#  include <sys/endian.h>
20525#endif
20526
20527int
20528main ()
20529{
20530unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20531  ;
20532  return 0;
20533}
20534_ACEOF
20535if ac_fn_c_try_link "$LINENO"; then :
20536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20537$as_echo "yes" >&6; }
20538
20539$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20540
20541else
20542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20543$as_echo "no" >&6; }
20544fi
20545rm -f core conftest.err conftest.$ac_objext \
20546    conftest$ac_exeext conftest.$ac_ext
20547
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20549$as_echo_n "checking for library containing setusercontext... " >&6; }
20550if ${ac_cv_search_setusercontext+:} false; then :
20551  $as_echo_n "(cached) " >&6
20552else
20553  ac_func_search_save_LIBS=$LIBS
20554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555/* end confdefs.h.  */
20556
20557/* Override any GCC internal prototype to avoid an error.
20558   Use char because int might match the return type of a GCC
20559   builtin and then its argument prototype would still apply.  */
20560#ifdef __cplusplus
20561extern "C"
20562#endif
20563char setusercontext ();
20564int
20565main ()
20566{
20567return setusercontext ();
20568  ;
20569  return 0;
20570}
20571_ACEOF
20572for ac_lib in '' util; do
20573  if test -z "$ac_lib"; then
20574    ac_res="none required"
20575  else
20576    ac_res=-l$ac_lib
20577    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20578  fi
20579  if ac_fn_c_try_link "$LINENO"; then :
20580  ac_cv_search_setusercontext=$ac_res
20581fi
20582rm -f core conftest.err conftest.$ac_objext \
20583    conftest$ac_exeext
20584  if ${ac_cv_search_setusercontext+:} false; then :
20585  break
20586fi
20587done
20588if ${ac_cv_search_setusercontext+:} false; then :
20589
20590else
20591  ac_cv_search_setusercontext=no
20592fi
20593rm conftest.$ac_ext
20594LIBS=$ac_func_search_save_LIBS
20595fi
20596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20597$as_echo "$ac_cv_search_setusercontext" >&6; }
20598ac_res=$ac_cv_search_setusercontext
20599if test "$ac_res" != no; then :
20600  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20601
20602fi
20603
20604for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs if_nametoindex poll gettid
20605do :
20606  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20609  cat >>confdefs.h <<_ACEOF
20610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20611_ACEOF
20612
20613fi
20614done
20615
20616for ac_func in setresuid
20617do :
20618  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20619if test "x$ac_cv_func_setresuid" = xyes; then :
20620  cat >>confdefs.h <<_ACEOF
20621#define HAVE_SETRESUID 1
20622_ACEOF
20623
20624else
20625  for ac_func in setreuid
20626do :
20627  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20628if test "x$ac_cv_func_setreuid" = xyes; then :
20629  cat >>confdefs.h <<_ACEOF
20630#define HAVE_SETREUID 1
20631_ACEOF
20632
20633fi
20634done
20635
20636fi
20637done
20638
20639for ac_func in setresgid
20640do :
20641  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20642if test "x$ac_cv_func_setresgid" = xyes; then :
20643  cat >>confdefs.h <<_ACEOF
20644#define HAVE_SETRESGID 1
20645_ACEOF
20646
20647else
20648  for ac_func in setregid
20649do :
20650  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20651if test "x$ac_cv_func_setregid" = xyes; then :
20652  cat >>confdefs.h <<_ACEOF
20653#define HAVE_SETREGID 1
20654_ACEOF
20655
20656fi
20657done
20658
20659fi
20660done
20661
20662
20663# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20664if echo $host_os | grep darwin8 > /dev/null; then
20665
20666$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20667
20668fi
20669ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20670$ac_includes_default
20671#ifdef HAVE_NETINET_IN_H
20672#include <netinet/in.h>
20673#endif
20674
20675#ifdef HAVE_NETINET_TCP_H
20676#include <netinet/tcp.h>
20677#endif
20678
20679#ifdef HAVE_ARPA_INET_H
20680#include <arpa/inet.h>
20681#endif
20682
20683#ifdef HAVE_WINSOCK2_H
20684#include <winsock2.h>
20685#endif
20686
20687#ifdef HAVE_WS2TCPIP_H
20688#include <ws2tcpip.h>
20689#endif
20690
20691"
20692if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20693  ac_have_decl=1
20694else
20695  ac_have_decl=0
20696fi
20697
20698cat >>confdefs.h <<_ACEOF
20699#define HAVE_DECL_INET_PTON $ac_have_decl
20700_ACEOF
20701ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20702$ac_includes_default
20703#ifdef HAVE_NETINET_IN_H
20704#include <netinet/in.h>
20705#endif
20706
20707#ifdef HAVE_NETINET_TCP_H
20708#include <netinet/tcp.h>
20709#endif
20710
20711#ifdef HAVE_ARPA_INET_H
20712#include <arpa/inet.h>
20713#endif
20714
20715#ifdef HAVE_WINSOCK2_H
20716#include <winsock2.h>
20717#endif
20718
20719#ifdef HAVE_WS2TCPIP_H
20720#include <ws2tcpip.h>
20721#endif
20722
20723"
20724if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20725  ac_have_decl=1
20726else
20727  ac_have_decl=0
20728fi
20729
20730cat >>confdefs.h <<_ACEOF
20731#define HAVE_DECL_INET_NTOP $ac_have_decl
20732_ACEOF
20733
20734ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20735if test "x$ac_cv_func_inet_aton" = xyes; then :
20736  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20737
20738else
20739  case " $LIBOBJS " in
20740  *" inet_aton.$ac_objext "* ) ;;
20741  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20742 ;;
20743esac
20744
20745fi
20746
20747
20748ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20749if test "x$ac_cv_func_inet_pton" = xyes; then :
20750  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20751
20752else
20753  case " $LIBOBJS " in
20754  *" inet_pton.$ac_objext "* ) ;;
20755  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20756 ;;
20757esac
20758
20759fi
20760
20761
20762ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20763if test "x$ac_cv_func_inet_ntop" = xyes; then :
20764  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20765
20766else
20767  case " $LIBOBJS " in
20768  *" inet_ntop.$ac_objext "* ) ;;
20769  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20770 ;;
20771esac
20772
20773fi
20774
20775
20776ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20777if test "x$ac_cv_func_snprintf" = xyes; then :
20778  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20779
20780else
20781  case " $LIBOBJS " in
20782  *" snprintf.$ac_objext "* ) ;;
20783  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20784 ;;
20785esac
20786
20787fi
20788
20789
20790# test if snprintf return the proper length
20791if test "x$ac_cv_func_snprintf" = xyes; then
20792    if test c${cross_compiling} = cno; then
20793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20794$as_echo_n "checking for correct snprintf return value... " >&6; }
20795	if test "$cross_compiling" = yes; then :
20796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
20797$as_echo "maybe" >&6; }
20798else
20799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800/* end confdefs.h.  */
20801$ac_includes_default
20802
20803int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20804
20805_ACEOF
20806if ac_fn_c_try_run "$LINENO"; then :
20807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20808$as_echo "yes" >&6; }
20809else
20810
20811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20812$as_echo "no" >&6; }
20813
20814$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20815
20816		case " $LIBOBJS " in
20817  *" snprintf.$ac_objext "* ) ;;
20818  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20819 ;;
20820esac
20821
20822
20823fi
20824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20825  conftest.$ac_objext conftest.beam conftest.$ac_ext
20826fi
20827
20828    fi
20829fi
20830ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20831if test "x$ac_cv_func_strlcat" = xyes; then :
20832  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20833
20834else
20835  case " $LIBOBJS " in
20836  *" strlcat.$ac_objext "* ) ;;
20837  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20838 ;;
20839esac
20840
20841fi
20842
20843
20844ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20845if test "x$ac_cv_func_strlcpy" = xyes; then :
20846  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20847
20848else
20849  case " $LIBOBJS " in
20850  *" strlcpy.$ac_objext "* ) ;;
20851  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20852 ;;
20853esac
20854
20855fi
20856
20857
20858ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20859if test "x$ac_cv_func_memmove" = xyes; then :
20860  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20861
20862else
20863  case " $LIBOBJS " in
20864  *" memmove.$ac_objext "* ) ;;
20865  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20866 ;;
20867esac
20868
20869fi
20870
20871
20872ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20873if test "x$ac_cv_func_gmtime_r" = xyes; then :
20874  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20875
20876else
20877  case " $LIBOBJS " in
20878  *" gmtime_r.$ac_objext "* ) ;;
20879  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20880 ;;
20881esac
20882
20883fi
20884
20885
20886ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20887if test "x$ac_cv_func_isblank" = xyes; then :
20888  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20889
20890else
20891  case " $LIBOBJS " in
20892  *" isblank.$ac_objext "* ) ;;
20893  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20894 ;;
20895esac
20896
20897fi
20898
20899
20900ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20901if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20902  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20903
20904else
20905  case " $LIBOBJS " in
20906  *" explicit_bzero.$ac_objext "* ) ;;
20907  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20908 ;;
20909esac
20910
20911fi
20912
20913
20914LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20915
20916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20917$as_echo_n "checking for reallocarray... " >&6; }
20918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919/* end confdefs.h.  */
20920$ac_includes_default
20921
20922#ifndef _OPENBSD_SOURCE
20923#define _OPENBSD_SOURCE 1
20924#endif
20925#include <stdlib.h>
20926int main(void) {
20927	void* p = reallocarray(NULL, 10, 100);
20928	free(p);
20929	return 0;
20930}
20931
20932_ACEOF
20933if ac_fn_c_try_link "$LINENO"; then :
20934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20935$as_echo "yes" >&6; }
20936
20937$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20938
20939
20940else
20941
20942	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943$as_echo "no" >&6; }
20944	case " $LIBOBJS " in
20945  *" reallocarray.$ac_objext "* ) ;;
20946  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20947 ;;
20948esac
20949
20950
20951fi
20952rm -f core conftest.err conftest.$ac_objext \
20953    conftest$ac_exeext conftest.$ac_ext
20954ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20955if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20956  ac_have_decl=1
20957else
20958  ac_have_decl=0
20959fi
20960
20961cat >>confdefs.h <<_ACEOF
20962#define HAVE_DECL_REALLOCARRAY $ac_have_decl
20963_ACEOF
20964
20965if test "$USE_NSS" = "no"; then
20966	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20967if test "x$ac_cv_func_arc4random" = xyes; then :
20968  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20969
20970else
20971  case " $LIBOBJS " in
20972  *" arc4random.$ac_objext "* ) ;;
20973  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20974 ;;
20975esac
20976
20977fi
20978
20979
20980	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20981if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20982  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20983
20984else
20985  case " $LIBOBJS " in
20986  *" arc4random_uniform.$ac_objext "* ) ;;
20987  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20988 ;;
20989esac
20990
20991fi
20992
20993
20994	if test "$ac_cv_func_arc4random" = "no"; then
20995		case " $LIBOBJS " in
20996  *" arc4_lock.$ac_objext "* ) ;;
20997  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20998 ;;
20999esac
21000
21001		for ac_func in getentropy
21002do :
21003  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21004if test "x$ac_cv_func_getentropy" = xyes; then :
21005  cat >>confdefs.h <<_ACEOF
21006#define HAVE_GETENTROPY 1
21007_ACEOF
21008
21009else
21010
21011		    if test "$USE_WINSOCK" = 1; then
21012			case " $LIBOBJS " in
21013  *" getentropy_win.$ac_objext "* ) ;;
21014  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
21015 ;;
21016esac
21017
21018		    else
21019			case "$host" in
21020			Darwin|*darwin*)
21021				case " $LIBOBJS " in
21022  *" getentropy_osx.$ac_objext "* ) ;;
21023  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
21024 ;;
21025esac
21026
21027			;;
21028			*solaris*|*sunos*|SunOS)
21029				case " $LIBOBJS " in
21030  *" getentropy_solaris.$ac_objext "* ) ;;
21031  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
21032 ;;
21033esac
21034
21035				for ac_header in sys/sha2.h
21036do :
21037  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
21038"
21039if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
21040  cat >>confdefs.h <<_ACEOF
21041#define HAVE_SYS_SHA2_H 1
21042_ACEOF
21043
21044else
21045
21046					for ac_func in SHA512_Update
21047do :
21048  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21049if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21050  cat >>confdefs.h <<_ACEOF
21051#define HAVE_SHA512_UPDATE 1
21052_ACEOF
21053
21054else
21055
21056						case " $LIBOBJS " in
21057  *" sha512.$ac_objext "* ) ;;
21058  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21059 ;;
21060esac
21061
21062
21063fi
21064done
21065
21066
21067fi
21068
21069done
21070
21071				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
21072					# this lib needed for sha2 on solaris
21073					LIBS="$LIBS -lmd"
21074				fi
21075				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21076$as_echo_n "checking for library containing clock_gettime... " >&6; }
21077if ${ac_cv_search_clock_gettime+:} false; then :
21078  $as_echo_n "(cached) " >&6
21079else
21080  ac_func_search_save_LIBS=$LIBS
21081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082/* end confdefs.h.  */
21083
21084/* Override any GCC internal prototype to avoid an error.
21085   Use char because int might match the return type of a GCC
21086   builtin and then its argument prototype would still apply.  */
21087#ifdef __cplusplus
21088extern "C"
21089#endif
21090char clock_gettime ();
21091int
21092main ()
21093{
21094return clock_gettime ();
21095  ;
21096  return 0;
21097}
21098_ACEOF
21099for ac_lib in '' rt; do
21100  if test -z "$ac_lib"; then
21101    ac_res="none required"
21102  else
21103    ac_res=-l$ac_lib
21104    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21105  fi
21106  if ac_fn_c_try_link "$LINENO"; then :
21107  ac_cv_search_clock_gettime=$ac_res
21108fi
21109rm -f core conftest.err conftest.$ac_objext \
21110    conftest$ac_exeext
21111  if ${ac_cv_search_clock_gettime+:} false; then :
21112  break
21113fi
21114done
21115if ${ac_cv_search_clock_gettime+:} false; then :
21116
21117else
21118  ac_cv_search_clock_gettime=no
21119fi
21120rm conftest.$ac_ext
21121LIBS=$ac_func_search_save_LIBS
21122fi
21123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21124$as_echo "$ac_cv_search_clock_gettime" >&6; }
21125ac_res=$ac_cv_search_clock_gettime
21126if test "$ac_res" != no; then :
21127  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21128
21129fi
21130
21131			;;
21132			*freebsd*|*FreeBSD)
21133				case " $LIBOBJS " in
21134  *" getentropy_freebsd.$ac_objext "* ) ;;
21135  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21136 ;;
21137esac
21138
21139			;;
21140			*linux*|Linux|*)
21141				case " $LIBOBJS " in
21142  *" getentropy_linux.$ac_objext "* ) ;;
21143  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21144 ;;
21145esac
21146
21147				for ac_func in SHA512_Update
21148do :
21149  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21150if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21151  cat >>confdefs.h <<_ACEOF
21152#define HAVE_SHA512_UPDATE 1
21153_ACEOF
21154
21155else
21156
21157
21158$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21159
21160					case " $LIBOBJS " in
21161  *" sha512.$ac_objext "* ) ;;
21162  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21163 ;;
21164esac
21165
21166
21167fi
21168done
21169
21170				for ac_header in sys/sysctl.h
21171do :
21172  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21173"
21174if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21175  cat >>confdefs.h <<_ACEOF
21176#define HAVE_SYS_SYSCTL_H 1
21177_ACEOF
21178
21179fi
21180
21181done
21182
21183				for ac_func in getauxval
21184do :
21185  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21186if test "x$ac_cv_func_getauxval" = xyes; then :
21187  cat >>confdefs.h <<_ACEOF
21188#define HAVE_GETAUXVAL 1
21189_ACEOF
21190
21191fi
21192done
21193
21194				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21195$as_echo_n "checking for library containing clock_gettime... " >&6; }
21196if ${ac_cv_search_clock_gettime+:} false; then :
21197  $as_echo_n "(cached) " >&6
21198else
21199  ac_func_search_save_LIBS=$LIBS
21200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201/* end confdefs.h.  */
21202
21203/* Override any GCC internal prototype to avoid an error.
21204   Use char because int might match the return type of a GCC
21205   builtin and then its argument prototype would still apply.  */
21206#ifdef __cplusplus
21207extern "C"
21208#endif
21209char clock_gettime ();
21210int
21211main ()
21212{
21213return clock_gettime ();
21214  ;
21215  return 0;
21216}
21217_ACEOF
21218for ac_lib in '' rt; do
21219  if test -z "$ac_lib"; then
21220    ac_res="none required"
21221  else
21222    ac_res=-l$ac_lib
21223    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21224  fi
21225  if ac_fn_c_try_link "$LINENO"; then :
21226  ac_cv_search_clock_gettime=$ac_res
21227fi
21228rm -f core conftest.err conftest.$ac_objext \
21229    conftest$ac_exeext
21230  if ${ac_cv_search_clock_gettime+:} false; then :
21231  break
21232fi
21233done
21234if ${ac_cv_search_clock_gettime+:} false; then :
21235
21236else
21237  ac_cv_search_clock_gettime=no
21238fi
21239rm conftest.$ac_ext
21240LIBS=$ac_func_search_save_LIBS
21241fi
21242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21243$as_echo "$ac_cv_search_clock_gettime" >&6; }
21244ac_res=$ac_cv_search_clock_gettime
21245if test "$ac_res" != no; then :
21246  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21247
21248fi
21249
21250			;;
21251			esac
21252		    fi
21253
21254fi
21255done
21256
21257	fi
21258fi
21259LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21260
21261ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21262if test "x$ac_cv_func_ctime_r" = xyes; then :
21263  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21264
21265else
21266  case " $LIBOBJS " in
21267  *" ctime_r.$ac_objext "* ) ;;
21268  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21269 ;;
21270esac
21271
21272fi
21273
21274
21275ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21276if test "x$ac_cv_func_strsep" = xyes; then :
21277  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21278
21279else
21280  case " $LIBOBJS " in
21281  *" strsep.$ac_objext "* ) ;;
21282  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21283 ;;
21284esac
21285
21286fi
21287
21288
21289
21290# Check whether --enable-allsymbols was given.
21291if test "${enable_allsymbols+set}" = set; then :
21292  enableval=$enable_allsymbols;
21293fi
21294
21295case "$enable_allsymbols" in
21296	yes)
21297	COMMON_OBJ_ALL_SYMBOLS=""
21298	UBSYMS=""
21299	EXTRALINK="libunbound.la"
21300
21301$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21302
21303	;;
21304	no|*)
21305	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21306	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21307	EXTRALINK=""
21308	;;
21309esac
21310
21311
21312
21313if test x_$enable_lock_checks = x_yes; then
21314	UBSYMS="-export-symbols clubsyms.def"
21315	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21316	echo lock_protect >> clubsyms.def
21317	echo lock_unprotect >> clubsyms.def
21318	echo lock_get_mem >> clubsyms.def
21319	echo checklock_start >> clubsyms.def
21320	echo checklock_stop >> clubsyms.def
21321	echo checklock_lock >> clubsyms.def
21322	echo checklock_unlock >> clubsyms.def
21323	echo checklock_init >> clubsyms.def
21324	echo checklock_thrcreate >> clubsyms.def
21325	echo checklock_thrjoin >> clubsyms.def
21326fi
21327
21328# check for dnstap if requested
21329
21330    # Check whether --enable-dnstap was given.
21331if test "${enable_dnstap+set}" = set; then :
21332  enableval=$enable_dnstap; opt_dnstap=$enableval
21333else
21334  opt_dnstap=no
21335fi
21336
21337
21338
21339# Check whether --with-dnstap-socket-path was given.
21340if test "${with_dnstap_socket_path+set}" = set; then :
21341  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21342else
21343  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21344fi
21345
21346
21347    if test "x$opt_dnstap" != "xno"; then
21348        # Extract the first word of "protoc-c", so it can be a program name with args.
21349set dummy protoc-c; ac_word=$2
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21351$as_echo_n "checking for $ac_word... " >&6; }
21352if ${ac_cv_path_PROTOC_C+:} false; then :
21353  $as_echo_n "(cached) " >&6
21354else
21355  case $PROTOC_C in
21356  [\\/]* | ?:[\\/]*)
21357  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21358  ;;
21359  *)
21360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21361for as_dir in $PATH
21362do
21363  IFS=$as_save_IFS
21364  test -z "$as_dir" && as_dir=.
21365    for ac_exec_ext in '' $ac_executable_extensions; do
21366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21367    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21369    break 2
21370  fi
21371done
21372  done
21373IFS=$as_save_IFS
21374
21375  ;;
21376esac
21377fi
21378PROTOC_C=$ac_cv_path_PROTOC_C
21379if test -n "$PROTOC_C"; then
21380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21381$as_echo "$PROTOC_C" >&6; }
21382else
21383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21384$as_echo "no" >&6; }
21385fi
21386
21387
21388        if test -z "$PROTOC_C"; then
21389          as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21390        fi
21391
21392# Check whether --with-protobuf-c was given.
21393if test "${with_protobuf_c+set}" = set; then :
21394  withval=$with_protobuf_c;
21395                # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21396                if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21397                    CFLAGS="$CFLAGS -I$withval/include/google"
21398                else
21399                    CFLAGS="$CFLAGS -I$withval/include"
21400                fi
21401                LDFLAGS="$LDFLAGS -L$withval/lib"
21402
21403else
21404
21405
21406
21407pkg_failed=no
21408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUFC" >&5
21409$as_echo_n "checking for PROTOBUFC... " >&6; }
21410
21411if test -n "$PROTOBUFC_CFLAGS"; then
21412    pkg_cv_PROTOBUFC_CFLAGS="$PROTOBUFC_CFLAGS"
21413 elif test -n "$PKG_CONFIG"; then
21414    if test -n "$PKG_CONFIG" && \
21415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
21416  ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
21417  ac_status=$?
21418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21419  test $ac_status = 0; }; then
21420  pkg_cv_PROTOBUFC_CFLAGS=`$PKG_CONFIG --cflags "libprotobuf-c" 2>/dev/null`
21421		      test "x$?" != "x0" && pkg_failed=yes
21422else
21423  pkg_failed=yes
21424fi
21425 else
21426    pkg_failed=untried
21427fi
21428if test -n "$PROTOBUFC_LIBS"; then
21429    pkg_cv_PROTOBUFC_LIBS="$PROTOBUFC_LIBS"
21430 elif test -n "$PKG_CONFIG"; then
21431    if test -n "$PKG_CONFIG" && \
21432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libprotobuf-c\""; } >&5
21433  ($PKG_CONFIG --exists --print-errors "libprotobuf-c") 2>&5
21434  ac_status=$?
21435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21436  test $ac_status = 0; }; then
21437  pkg_cv_PROTOBUFC_LIBS=`$PKG_CONFIG --libs "libprotobuf-c" 2>/dev/null`
21438		      test "x$?" != "x0" && pkg_failed=yes
21439else
21440  pkg_failed=yes
21441fi
21442 else
21443    pkg_failed=untried
21444fi
21445
21446
21447
21448if test $pkg_failed = yes; then
21449   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21450$as_echo "no" >&6; }
21451
21452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21453        _pkg_short_errors_supported=yes
21454else
21455        _pkg_short_errors_supported=no
21456fi
21457        if test $_pkg_short_errors_supported = yes; then
21458	        PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libprotobuf-c" 2>&1`
21459        else
21460	        PROTOBUFC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libprotobuf-c" 2>&1`
21461        fi
21462	# Put the nasty error message in config.log where it belongs
21463	echo "$PROTOBUFC_PKG_ERRORS" >&5
21464
21465
21466                                # pkg-config failed; try falling back to known values
21467                                # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21468                                if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21469                                    CFLAGS="$CFLAGS -I/usr/include/google"
21470                                else
21471                                    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21472                                        CFLAGS="$CFLAGS -I/usr/local/include/google"
21473                                        LDFLAGS="$LDFLAGS -L/usr/local/lib"
21474                                    else
21475                                        as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
21476                                    fi
21477                                fi
21478
21479
21480elif test $pkg_failed = untried; then
21481     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482$as_echo "no" >&6; }
21483
21484                                # pkg-config failed; try falling back to known values
21485                                # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21486                                if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21487                                    CFLAGS="$CFLAGS -I/usr/include/google"
21488                                else
21489                                    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21490                                        CFLAGS="$CFLAGS -I/usr/local/include/google"
21491                                        LDFLAGS="$LDFLAGS -L/usr/local/lib"
21492                                    else
21493                                        as_fn_error $? "The protobuf-c package was not found with pkg-config. Please install protobuf-c!" "$LINENO" 5
21494                                    fi
21495                                fi
21496
21497
21498else
21499	PROTOBUFC_CFLAGS=$pkg_cv_PROTOBUFC_CFLAGS
21500	PROTOBUFC_LIBS=$pkg_cv_PROTOBUFC_LIBS
21501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21502$as_echo "yes" >&6; }
21503
21504                                CFLAGS="$CFLAGS $PROTOBUFC_CFLAGS"
21505                                LIBS="$LIBS $PROTOBUFC_LIBS"
21506
21507fi
21508
21509
21510
21511fi
21512
21513        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21514$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21515if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21516  $as_echo_n "(cached) " >&6
21517else
21518  ac_func_search_save_LIBS=$LIBS
21519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520/* end confdefs.h.  */
21521
21522/* Override any GCC internal prototype to avoid an error.
21523   Use char because int might match the return type of a GCC
21524   builtin and then its argument prototype would still apply.  */
21525#ifdef __cplusplus
21526extern "C"
21527#endif
21528char protobuf_c_message_pack ();
21529int
21530main ()
21531{
21532return protobuf_c_message_pack ();
21533  ;
21534  return 0;
21535}
21536_ACEOF
21537for ac_lib in '' protobuf-c; do
21538  if test -z "$ac_lib"; then
21539    ac_res="none required"
21540  else
21541    ac_res=-l$ac_lib
21542    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21543  fi
21544  if ac_fn_c_try_link "$LINENO"; then :
21545  ac_cv_search_protobuf_c_message_pack=$ac_res
21546fi
21547rm -f core conftest.err conftest.$ac_objext \
21548    conftest$ac_exeext
21549  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21550  break
21551fi
21552done
21553if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21554
21555else
21556  ac_cv_search_protobuf_c_message_pack=no
21557fi
21558rm conftest.$ac_ext
21559LIBS=$ac_func_search_save_LIBS
21560fi
21561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21562$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21563ac_res=$ac_cv_search_protobuf_c_message_pack
21564if test "$ac_res" != no; then :
21565  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21566
21567else
21568  as_fn_error $? "The protobuf-c library was not found. Please install the development libraries for protobuf-c!" "$LINENO" 5
21569fi
21570
21571
21572
21573$as_echo "#define USE_DNSTAP 1" >>confdefs.h
21574
21575        ENABLE_DNSTAP=1
21576
21577
21578
21579        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21580
21581
21582cat >>confdefs.h <<_ACEOF
21583#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21584_ACEOF
21585
21586	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21587
21588	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21589
21590        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21591
21592        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21593
21594
21595    else
21596
21597        ENABLE_DNSTAP=0
21598
21599
21600
21601    fi
21602
21603
21604# check for dnscrypt if requested
21605
21606  # Check whether --enable-dnscrypt was given.
21607if test "${enable_dnscrypt+set}" = set; then :
21608  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21609else
21610  opt_dnscrypt=no
21611fi
21612
21613
21614  if test "x$opt_dnscrypt" != "xno"; then
21615
21616# Check whether --with-libsodium was given.
21617if test "${with_libsodium+set}" = set; then :
21618  withval=$with_libsodium;
21619	CFLAGS="$CFLAGS -I$withval/include"
21620	LDFLAGS="$LDFLAGS -L$withval/lib"
21621
21622fi
21623
21624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21625$as_echo_n "checking for library containing sodium_init... " >&6; }
21626if ${ac_cv_search_sodium_init+:} false; then :
21627  $as_echo_n "(cached) " >&6
21628else
21629  ac_func_search_save_LIBS=$LIBS
21630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631/* end confdefs.h.  */
21632
21633/* Override any GCC internal prototype to avoid an error.
21634   Use char because int might match the return type of a GCC
21635   builtin and then its argument prototype would still apply.  */
21636#ifdef __cplusplus
21637extern "C"
21638#endif
21639char sodium_init ();
21640int
21641main ()
21642{
21643return sodium_init ();
21644  ;
21645  return 0;
21646}
21647_ACEOF
21648for ac_lib in '' sodium; do
21649  if test -z "$ac_lib"; then
21650    ac_res="none required"
21651  else
21652    ac_res=-l$ac_lib
21653    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21654  fi
21655  if ac_fn_c_try_link "$LINENO"; then :
21656  ac_cv_search_sodium_init=$ac_res
21657fi
21658rm -f core conftest.err conftest.$ac_objext \
21659    conftest$ac_exeext
21660  if ${ac_cv_search_sodium_init+:} false; then :
21661  break
21662fi
21663done
21664if ${ac_cv_search_sodium_init+:} false; then :
21665
21666else
21667  ac_cv_search_sodium_init=no
21668fi
21669rm conftest.$ac_ext
21670LIBS=$ac_func_search_save_LIBS
21671fi
21672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21673$as_echo "$ac_cv_search_sodium_init" >&6; }
21674ac_res=$ac_cv_search_sodium_init
21675if test "$ac_res" != no; then :
21676  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21677
21678else
21679  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21680fi
21681
21682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21683$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21684if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21685  $as_echo_n "(cached) " >&6
21686else
21687  ac_func_search_save_LIBS=$LIBS
21688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689/* end confdefs.h.  */
21690
21691/* Override any GCC internal prototype to avoid an error.
21692   Use char because int might match the return type of a GCC
21693   builtin and then its argument prototype would still apply.  */
21694#ifdef __cplusplus
21695extern "C"
21696#endif
21697char crypto_box_curve25519xchacha20poly1305_beforenm ();
21698int
21699main ()
21700{
21701return crypto_box_curve25519xchacha20poly1305_beforenm ();
21702  ;
21703  return 0;
21704}
21705_ACEOF
21706for ac_lib in '' sodium; do
21707  if test -z "$ac_lib"; then
21708    ac_res="none required"
21709  else
21710    ac_res=-l$ac_lib
21711    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21712  fi
21713  if ac_fn_c_try_link "$LINENO"; then :
21714  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21715fi
21716rm -f core conftest.err conftest.$ac_objext \
21717    conftest$ac_exeext
21718  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21719  break
21720fi
21721done
21722if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21723
21724else
21725  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21726fi
21727rm conftest.$ac_ext
21728LIBS=$ac_func_search_save_LIBS
21729fi
21730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21731$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21732ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21733if test "$ac_res" != no; then :
21734  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21735
21736            ENABLE_DNSCRYPT_XCHACHA20=1
21737
21738
21739$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21740
21741
21742else
21743
21744            ENABLE_DNSCRYPT_XCHACHA20=0
21745
21746
21747fi
21748
21749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21750$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21751if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21752  $as_echo_n "(cached) " >&6
21753else
21754  ac_func_search_save_LIBS=$LIBS
21755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756/* end confdefs.h.  */
21757
21758/* Override any GCC internal prototype to avoid an error.
21759   Use char because int might match the return type of a GCC
21760   builtin and then its argument prototype would still apply.  */
21761#ifdef __cplusplus
21762extern "C"
21763#endif
21764char sodium_set_misuse_handler ();
21765int
21766main ()
21767{
21768return sodium_set_misuse_handler ();
21769  ;
21770  return 0;
21771}
21772_ACEOF
21773for ac_lib in '' sodium; do
21774  if test -z "$ac_lib"; then
21775    ac_res="none required"
21776  else
21777    ac_res=-l$ac_lib
21778    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21779  fi
21780  if ac_fn_c_try_link "$LINENO"; then :
21781  ac_cv_search_sodium_set_misuse_handler=$ac_res
21782fi
21783rm -f core conftest.err conftest.$ac_objext \
21784    conftest$ac_exeext
21785  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21786  break
21787fi
21788done
21789if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21790
21791else
21792  ac_cv_search_sodium_set_misuse_handler=no
21793fi
21794rm conftest.$ac_ext
21795LIBS=$ac_func_search_save_LIBS
21796fi
21797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21798$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21799ac_res=$ac_cv_search_sodium_set_misuse_handler
21800if test "$ac_res" != no; then :
21801  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21802
21803
21804$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21805
21806
21807fi
21808
21809
21810
21811$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21812
21813        ENABLE_DNSCRYPT=1
21814
21815
21816        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21817
21818        DNSCRYPT_OBJ="dnscrypt.lo"
21819
21820
21821  else
21822    ENABLE_DNSCRYPT_XCHACHA20=0
21823
21824
21825        ENABLE_DNSCRYPT=0
21826
21827
21828
21829  fi
21830
21831
21832# check for cachedb if requested
21833# Check whether --enable-cachedb was given.
21834if test "${enable_cachedb+set}" = set; then :
21835  enableval=$enable_cachedb;
21836fi
21837
21838# turn on cachedb when hiredis support is enabled.
21839if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21840case "$enable_cachedb" in
21841    yes)
21842
21843$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21844
21845	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21846
21847	CACHEDB_OBJ="cachedb.lo redis.lo"
21848
21849    	;;
21850    no|*)
21851    	# nothing
21852    	;;
21853esac
21854
21855# check for ipsecmod if requested
21856# Check whether --enable-ipsecmod was given.
21857if test "${enable_ipsecmod+set}" = set; then :
21858  enableval=$enable_ipsecmod;
21859fi
21860
21861case "$enable_ipsecmod" in
21862	yes)
21863
21864$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21865
21866		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21867
21868		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21869
21870		;;
21871	no|*)
21872		# nothing
21873		;;
21874esac
21875
21876# check for ipset if requested
21877# Check whether --enable-ipset was given.
21878if test "${enable_ipset+set}" = set; then :
21879  enableval=$enable_ipset;
21880fi
21881
21882case "$enable_ipset" in
21883    yes)
21884
21885$as_echo "#define USE_IPSET 1" >>confdefs.h
21886
21887		IPSET_SRC="ipset/ipset.c"
21888
21889		IPSET_OBJ="ipset.lo"
21890
21891
21892		# mnl
21893
21894# Check whether --with-libmnl was given.
21895if test "${with_libmnl+set}" = set; then :
21896  withval=$with_libmnl;
21897else
21898   withval="yes"
21899fi
21900
21901		found_libmnl="no"
21902		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21903$as_echo_n "checking for libmnl... " >&6; }
21904		if test x_$withval = x_ -o x_$withval = x_yes; then
21905			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21906		fi
21907		for dir in $withval ; do
21908			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21909				found_libmnl="yes"
21910								extralibmnl=""
21911				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21912					extralibmnl="/libmnl"
21913				fi
21914				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21915					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21916				fi
21917				if test "$dir" != "/usr"; then
21918					LDFLAGS="$LDFLAGS -L$dir/lib"
21919				fi
21920				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21921$as_echo "found in $dir" >&6; }
21922				LIBS="$LIBS -lmnl"
21923				break;
21924			fi
21925		done
21926		if test x_$found_libmnl != x_yes; then
21927			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21928		fi
21929		;;
21930    no|*)
21931    	# nothing
21932		;;
21933esac
21934# Check whether --enable-explicit-port-randomisation was given.
21935if test "${enable_explicit_port_randomisation+set}" = set; then :
21936  enableval=$enable_explicit_port_randomisation;
21937fi
21938
21939case "$enable_explicit_port_randomisation" in
21940	no)
21941
21942$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21943
21944		;;
21945	yes|*)
21946		;;
21947esac
21948
21949if echo "$host" | $GREP -i -e linux >/dev/null; then
21950	# Check whether --enable-linux-ip-local-port-range was given.
21951if test "${enable_linux_ip_local_port_range+set}" = set; then :
21952  enableval=$enable_linux_ip_local_port_range;
21953fi
21954
21955	case "$enable_linux_ip_local_port_range" in
21956		yes)
21957
21958$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21959
21960			;;
21961		no|*)
21962			;;
21963	esac
21964fi
21965
21966
21967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21968$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21969# on openBSD, the implicit rule make $< work.
21970# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21971# gmake works.
21972cat >conftest.make <<EOF
21973all:	conftest.lo
21974
21975conftest.lo foo.lo bla.lo:
21976	if test -f "\$<"; then touch \$@; fi
21977
21978.SUFFIXES: .lo
21979.c.lo:
21980	if test -f "\$<"; then touch \$@; fi
21981
21982conftest.lo:        conftest.dir/conftest.c
21983EOF
21984mkdir conftest.dir
21985touch conftest.dir/conftest.c
21986rm -f conftest.lo conftest.c
21987${MAKE:-make} -f conftest.make >/dev/null
21988rm -f conftest.make conftest.c conftest.dir/conftest.c
21989rm -rf conftest.dir
21990if test ! -f conftest.lo; then
21991	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21992$as_echo "no" >&6; }
21993	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21994	SOURCEFILE='`cat .source`'
21995else
21996	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21997$as_echo "yes" >&6; }
21998	SOURCEDETERMINE=':'
21999	SOURCEFILE='$<'
22000fi
22001rm -f conftest.lo
22002
22003
22004
22005# see if we want to build the library or everything
22006ALLTARGET="alltargets"
22007INSTALLTARGET="install-all"
22008
22009# Check whether --with-libunbound-only was given.
22010if test "${with_libunbound_only+set}" = set; then :
22011  withval=$with_libunbound_only;
22012	if test "$withval" = "yes"; then
22013		ALLTARGET="lib"
22014		INSTALLTARGET="install-lib"
22015	fi
22016
22017fi
22018
22019if test $ALLTARGET = "alltargets"; then
22020	if test $USE_NSS = "yes"; then
22021		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
22022	fi
22023	if test $USE_NETTLE = "yes"; then
22024		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
22025	fi
22026fi
22027
22028
22029
22030
22031
22032  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
22033$as_echo "$as_me: Stripping extension flags..." >&6;}
22034
22035  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
22036    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
22037
22038$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
22039
22040  fi
22041
22042
22043  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
22044    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
22045
22046$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
22047
22048  fi
22049
22050
22051  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
22052    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
22053
22054$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
22055
22056  fi
22057
22058
22059  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
22060    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
22061
22062$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
22063
22064  fi
22065
22066
22067  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
22068    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
22069
22070$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
22071
22072  fi
22073
22074
22075  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
22076    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
22077
22078$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
22079
22080  fi
22081
22082
22083  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
22084    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
22085
22086$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
22087
22088  fi
22089
22090
22091  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
22092    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
22093
22094$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
22095
22096  fi
22097
22098
22099  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
22100    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
22101
22102$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
22103
22104  fi
22105
22106
22107if test -n "$LATE_LDFLAGS"; then
22108  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
22109fi
22110# remove start spaces
22111LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
22112LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
22113
22114
22115cat >>confdefs.h <<_ACEOF
22116#define MAXSYSLOGMSGLEN 10240
22117_ACEOF
22118
22119
22120
22121
22122version=1.19.3
22123
22124date=`date +'%b %e, %Y'`
22125
22126
22127ac_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 contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
22128
22129ac_config_headers="$ac_config_headers config.h"
22130
22131cat >confcache <<\_ACEOF
22132# This file is a shell script that caches the results of configure
22133# tests run on this system so they can be shared between configure
22134# scripts and configure runs, see configure's option --config-cache.
22135# It is not useful on other systems.  If it contains results you don't
22136# want to keep, you may remove or edit it.
22137#
22138# config.status only pays attention to the cache file if you give it
22139# the --recheck option to rerun configure.
22140#
22141# `ac_cv_env_foo' variables (set or unset) will be overridden when
22142# loading this file, other *unset* `ac_cv_foo' will be assigned the
22143# following values.
22144
22145_ACEOF
22146
22147# The following way of writing the cache mishandles newlines in values,
22148# but we know of no workaround that is simple, portable, and efficient.
22149# So, we kill variables containing newlines.
22150# Ultrix sh set writes to stderr and can't be redirected directly,
22151# and sets the high bit in the cache file unless we assign to the vars.
22152(
22153  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22154    eval ac_val=\$$ac_var
22155    case $ac_val in #(
22156    *${as_nl}*)
22157      case $ac_var in #(
22158      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22159$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22160      esac
22161      case $ac_var in #(
22162      _ | IFS | as_nl) ;; #(
22163      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22164      *) { eval $ac_var=; unset $ac_var;} ;;
22165      esac ;;
22166    esac
22167  done
22168
22169  (set) 2>&1 |
22170    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22171    *${as_nl}ac_space=\ *)
22172      # `set' does not quote correctly, so add quotes: double-quote
22173      # substitution turns \\\\ into \\, and sed turns \\ into \.
22174      sed -n \
22175	"s/'/'\\\\''/g;
22176	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22177      ;; #(
22178    *)
22179      # `set' quotes correctly as required by POSIX, so do not add quotes.
22180      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22181      ;;
22182    esac |
22183    sort
22184) |
22185  sed '
22186     /^ac_cv_env_/b end
22187     t clear
22188     :clear
22189     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22190     t end
22191     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22192     :end' >>confcache
22193if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22194  if test -w "$cache_file"; then
22195    if test "x$cache_file" != "x/dev/null"; then
22196      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22197$as_echo "$as_me: updating cache $cache_file" >&6;}
22198      if test ! -f "$cache_file" || test -h "$cache_file"; then
22199	cat confcache >"$cache_file"
22200      else
22201        case $cache_file in #(
22202        */* | ?:*)
22203	  mv -f confcache "$cache_file"$$ &&
22204	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22205        *)
22206	  mv -f confcache "$cache_file" ;;
22207	esac
22208      fi
22209    fi
22210  else
22211    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22212$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22213  fi
22214fi
22215rm -f confcache
22216
22217test "x$prefix" = xNONE && prefix=$ac_default_prefix
22218# Let make expand exec_prefix.
22219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22220
22221DEFS=-DHAVE_CONFIG_H
22222
22223ac_libobjs=
22224ac_ltlibobjs=
22225U=
22226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22227  # 1. Remove the extension, and $U if already installed.
22228  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22229  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22230  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22231  #    will be set to the directory where LIBOBJS objects are built.
22232  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22233  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22234done
22235LIBOBJS=$ac_libobjs
22236
22237LTLIBOBJS=$ac_ltlibobjs
22238
22239
22240if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22241  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22242Usually this means the macro was only invoked conditionally." "$LINENO" 5
22243fi
22244
22245: "${CONFIG_STATUS=./config.status}"
22246ac_write_fail=0
22247ac_clean_files_save=$ac_clean_files
22248ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22249{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22250$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22251as_write_fail=0
22252cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22253#! $SHELL
22254# Generated by $as_me.
22255# Run this file to recreate the current configuration.
22256# Compiler output produced by configure, useful for debugging
22257# configure, is in config.log if it exists.
22258
22259debug=false
22260ac_cs_recheck=false
22261ac_cs_silent=false
22262
22263SHELL=\${CONFIG_SHELL-$SHELL}
22264export SHELL
22265_ASEOF
22266cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22267## -------------------- ##
22268## M4sh Initialization. ##
22269## -------------------- ##
22270
22271# Be more Bourne compatible
22272DUALCASE=1; export DUALCASE # for MKS sh
22273if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22274  emulate sh
22275  NULLCMD=:
22276  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22277  # is contrary to our usage.  Disable this feature.
22278  alias -g '${1+"$@"}'='"$@"'
22279  setopt NO_GLOB_SUBST
22280else
22281  case `(set -o) 2>/dev/null` in #(
22282  *posix*) :
22283    set -o posix ;; #(
22284  *) :
22285     ;;
22286esac
22287fi
22288
22289
22290as_nl='
22291'
22292export as_nl
22293# Printing a long string crashes Solaris 7 /usr/bin/printf.
22294as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22295as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22296as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22297# Prefer a ksh shell builtin over an external printf program on Solaris,
22298# but without wasting forks for bash or zsh.
22299if test -z "$BASH_VERSION$ZSH_VERSION" \
22300    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22301  as_echo='print -r --'
22302  as_echo_n='print -rn --'
22303elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22304  as_echo='printf %s\n'
22305  as_echo_n='printf %s'
22306else
22307  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22308    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22309    as_echo_n='/usr/ucb/echo -n'
22310  else
22311    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22312    as_echo_n_body='eval
22313      arg=$1;
22314      case $arg in #(
22315      *"$as_nl"*)
22316	expr "X$arg" : "X\\(.*\\)$as_nl";
22317	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22318      esac;
22319      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22320    '
22321    export as_echo_n_body
22322    as_echo_n='sh -c $as_echo_n_body as_echo'
22323  fi
22324  export as_echo_body
22325  as_echo='sh -c $as_echo_body as_echo'
22326fi
22327
22328# The user is always right.
22329if test "${PATH_SEPARATOR+set}" != set; then
22330  PATH_SEPARATOR=:
22331  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22332    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22333      PATH_SEPARATOR=';'
22334  }
22335fi
22336
22337
22338# IFS
22339# We need space, tab and new line, in precisely that order.  Quoting is
22340# there to prevent editors from complaining about space-tab.
22341# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22342# splitting by setting IFS to empty value.)
22343IFS=" ""	$as_nl"
22344
22345# Find who we are.  Look in the path if we contain no directory separator.
22346as_myself=
22347case $0 in #((
22348  *[\\/]* ) as_myself=$0 ;;
22349  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22350for as_dir in $PATH
22351do
22352  IFS=$as_save_IFS
22353  test -z "$as_dir" && as_dir=.
22354    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22355  done
22356IFS=$as_save_IFS
22357
22358     ;;
22359esac
22360# We did not find ourselves, most probably we were run as `sh COMMAND'
22361# in which case we are not to be found in the path.
22362if test "x$as_myself" = x; then
22363  as_myself=$0
22364fi
22365if test ! -f "$as_myself"; then
22366  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22367  exit 1
22368fi
22369
22370# Unset variables that we do not need and which cause bugs (e.g. in
22371# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22372# suppresses any "Segmentation fault" message there.  '((' could
22373# trigger a bug in pdksh 5.2.14.
22374for as_var in BASH_ENV ENV MAIL MAILPATH
22375do eval test x\${$as_var+set} = xset \
22376  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22377done
22378PS1='$ '
22379PS2='> '
22380PS4='+ '
22381
22382# NLS nuisances.
22383LC_ALL=C
22384export LC_ALL
22385LANGUAGE=C
22386export LANGUAGE
22387
22388# CDPATH.
22389(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22390
22391
22392# as_fn_error STATUS ERROR [LINENO LOG_FD]
22393# ----------------------------------------
22394# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22395# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22396# script with STATUS, using 1 if that was 0.
22397as_fn_error ()
22398{
22399  as_status=$1; test $as_status -eq 0 && as_status=1
22400  if test "$4"; then
22401    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22402    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22403  fi
22404  $as_echo "$as_me: error: $2" >&2
22405  as_fn_exit $as_status
22406} # as_fn_error
22407
22408
22409# as_fn_set_status STATUS
22410# -----------------------
22411# Set $? to STATUS, without forking.
22412as_fn_set_status ()
22413{
22414  return $1
22415} # as_fn_set_status
22416
22417# as_fn_exit STATUS
22418# -----------------
22419# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22420as_fn_exit ()
22421{
22422  set +e
22423  as_fn_set_status $1
22424  exit $1
22425} # as_fn_exit
22426
22427# as_fn_unset VAR
22428# ---------------
22429# Portably unset VAR.
22430as_fn_unset ()
22431{
22432  { eval $1=; unset $1;}
22433}
22434as_unset=as_fn_unset
22435# as_fn_append VAR VALUE
22436# ----------------------
22437# Append the text in VALUE to the end of the definition contained in VAR. Take
22438# advantage of any shell optimizations that allow amortized linear growth over
22439# repeated appends, instead of the typical quadratic growth present in naive
22440# implementations.
22441if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22442  eval 'as_fn_append ()
22443  {
22444    eval $1+=\$2
22445  }'
22446else
22447  as_fn_append ()
22448  {
22449    eval $1=\$$1\$2
22450  }
22451fi # as_fn_append
22452
22453# as_fn_arith ARG...
22454# ------------------
22455# Perform arithmetic evaluation on the ARGs, and store the result in the
22456# global $as_val. Take advantage of shells that can avoid forks. The arguments
22457# must be portable across $(()) and expr.
22458if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22459  eval 'as_fn_arith ()
22460  {
22461    as_val=$(( $* ))
22462  }'
22463else
22464  as_fn_arith ()
22465  {
22466    as_val=`expr "$@" || test $? -eq 1`
22467  }
22468fi # as_fn_arith
22469
22470
22471if expr a : '\(a\)' >/dev/null 2>&1 &&
22472   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22473  as_expr=expr
22474else
22475  as_expr=false
22476fi
22477
22478if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22479  as_basename=basename
22480else
22481  as_basename=false
22482fi
22483
22484if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22485  as_dirname=dirname
22486else
22487  as_dirname=false
22488fi
22489
22490as_me=`$as_basename -- "$0" ||
22491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22492	 X"$0" : 'X\(//\)$' \| \
22493	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22494$as_echo X/"$0" |
22495    sed '/^.*\/\([^/][^/]*\)\/*$/{
22496	    s//\1/
22497	    q
22498	  }
22499	  /^X\/\(\/\/\)$/{
22500	    s//\1/
22501	    q
22502	  }
22503	  /^X\/\(\/\).*/{
22504	    s//\1/
22505	    q
22506	  }
22507	  s/.*/./; q'`
22508
22509# Avoid depending upon Character Ranges.
22510as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22511as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22512as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22513as_cr_digits='0123456789'
22514as_cr_alnum=$as_cr_Letters$as_cr_digits
22515
22516ECHO_C= ECHO_N= ECHO_T=
22517case `echo -n x` in #(((((
22518-n*)
22519  case `echo 'xy\c'` in
22520  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22521  xy)  ECHO_C='\c';;
22522  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22523       ECHO_T='	';;
22524  esac;;
22525*)
22526  ECHO_N='-n';;
22527esac
22528
22529rm -f conf$$ conf$$.exe conf$$.file
22530if test -d conf$$.dir; then
22531  rm -f conf$$.dir/conf$$.file
22532else
22533  rm -f conf$$.dir
22534  mkdir conf$$.dir 2>/dev/null
22535fi
22536if (echo >conf$$.file) 2>/dev/null; then
22537  if ln -s conf$$.file conf$$ 2>/dev/null; then
22538    as_ln_s='ln -s'
22539    # ... but there are two gotchas:
22540    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22541    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22542    # In both cases, we have to default to `cp -pR'.
22543    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22544      as_ln_s='cp -pR'
22545  elif ln conf$$.file conf$$ 2>/dev/null; then
22546    as_ln_s=ln
22547  else
22548    as_ln_s='cp -pR'
22549  fi
22550else
22551  as_ln_s='cp -pR'
22552fi
22553rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22554rmdir conf$$.dir 2>/dev/null
22555
22556
22557# as_fn_mkdir_p
22558# -------------
22559# Create "$as_dir" as a directory, including parents if necessary.
22560as_fn_mkdir_p ()
22561{
22562
22563  case $as_dir in #(
22564  -*) as_dir=./$as_dir;;
22565  esac
22566  test -d "$as_dir" || eval $as_mkdir_p || {
22567    as_dirs=
22568    while :; do
22569      case $as_dir in #(
22570      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22571      *) as_qdir=$as_dir;;
22572      esac
22573      as_dirs="'$as_qdir' $as_dirs"
22574      as_dir=`$as_dirname -- "$as_dir" ||
22575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576	 X"$as_dir" : 'X\(//\)[^/]' \| \
22577	 X"$as_dir" : 'X\(//\)$' \| \
22578	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22579$as_echo X"$as_dir" |
22580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22581	    s//\1/
22582	    q
22583	  }
22584	  /^X\(\/\/\)[^/].*/{
22585	    s//\1/
22586	    q
22587	  }
22588	  /^X\(\/\/\)$/{
22589	    s//\1/
22590	    q
22591	  }
22592	  /^X\(\/\).*/{
22593	    s//\1/
22594	    q
22595	  }
22596	  s/.*/./; q'`
22597      test -d "$as_dir" && break
22598    done
22599    test -z "$as_dirs" || eval "mkdir $as_dirs"
22600  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22601
22602
22603} # as_fn_mkdir_p
22604if mkdir -p . 2>/dev/null; then
22605  as_mkdir_p='mkdir -p "$as_dir"'
22606else
22607  test -d ./-p && rmdir ./-p
22608  as_mkdir_p=false
22609fi
22610
22611
22612# as_fn_executable_p FILE
22613# -----------------------
22614# Test if FILE is an executable regular file.
22615as_fn_executable_p ()
22616{
22617  test -f "$1" && test -x "$1"
22618} # as_fn_executable_p
22619as_test_x='test -x'
22620as_executable_p=as_fn_executable_p
22621
22622# Sed expression to map a string onto a valid CPP name.
22623as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22624
22625# Sed expression to map a string onto a valid variable name.
22626as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22627
22628
22629exec 6>&1
22630## ----------------------------------- ##
22631## Main body of $CONFIG_STATUS script. ##
22632## ----------------------------------- ##
22633_ASEOF
22634test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22635
22636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22637# Save the log message, to keep $0 and so on meaningful, and to
22638# report actual input values of CONFIG_FILES etc. instead of their
22639# values after options handling.
22640ac_log="
22641This file was extended by unbound $as_me 1.19.3, which was
22642generated by GNU Autoconf 2.69.  Invocation command line was
22643
22644  CONFIG_FILES    = $CONFIG_FILES
22645  CONFIG_HEADERS  = $CONFIG_HEADERS
22646  CONFIG_LINKS    = $CONFIG_LINKS
22647  CONFIG_COMMANDS = $CONFIG_COMMANDS
22648  $ $0 $@
22649
22650on `(hostname || uname -n) 2>/dev/null | sed 1q`
22651"
22652
22653_ACEOF
22654
22655case $ac_config_files in *"
22656"*) set x $ac_config_files; shift; ac_config_files=$*;;
22657esac
22658
22659case $ac_config_headers in *"
22660"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22661esac
22662
22663
22664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22665# Files that config.status was made for.
22666config_files="$ac_config_files"
22667config_headers="$ac_config_headers"
22668config_commands="$ac_config_commands"
22669
22670_ACEOF
22671
22672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22673ac_cs_usage="\
22674\`$as_me' instantiates files and other configuration actions
22675from templates according to the current configuration.  Unless the files
22676and actions are specified as TAGs, all are instantiated by default.
22677
22678Usage: $0 [OPTION]... [TAG]...
22679
22680  -h, --help       print this help, then exit
22681  -V, --version    print version number and configuration settings, then exit
22682      --config     print configuration, then exit
22683  -q, --quiet, --silent
22684                   do not print progress messages
22685  -d, --debug      don't remove temporary files
22686      --recheck    update $as_me by reconfiguring in the same conditions
22687      --file=FILE[:TEMPLATE]
22688                   instantiate the configuration file FILE
22689      --header=FILE[:TEMPLATE]
22690                   instantiate the configuration header FILE
22691
22692Configuration files:
22693$config_files
22694
22695Configuration headers:
22696$config_headers
22697
22698Configuration commands:
22699$config_commands
22700
22701Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22702
22703_ACEOF
22704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22705ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22706ac_cs_version="\\
22707unbound config.status 1.19.3
22708configured by $0, generated by GNU Autoconf 2.69,
22709  with options \\"\$ac_cs_config\\"
22710
22711Copyright (C) 2012 Free Software Foundation, Inc.
22712This config.status script is free software; the Free Software Foundation
22713gives unlimited permission to copy, distribute and modify it."
22714
22715ac_pwd='$ac_pwd'
22716srcdir='$srcdir'
22717AWK='$AWK'
22718test -n "\$AWK" || AWK=awk
22719_ACEOF
22720
22721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22722# The default lists apply if the user does not specify any file.
22723ac_need_defaults=:
22724while test $# != 0
22725do
22726  case $1 in
22727  --*=?*)
22728    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22729    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22730    ac_shift=:
22731    ;;
22732  --*=)
22733    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22734    ac_optarg=
22735    ac_shift=:
22736    ;;
22737  *)
22738    ac_option=$1
22739    ac_optarg=$2
22740    ac_shift=shift
22741    ;;
22742  esac
22743
22744  case $ac_option in
22745  # Handling of the options.
22746  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22747    ac_cs_recheck=: ;;
22748  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22749    $as_echo "$ac_cs_version"; exit ;;
22750  --config | --confi | --conf | --con | --co | --c )
22751    $as_echo "$ac_cs_config"; exit ;;
22752  --debug | --debu | --deb | --de | --d | -d )
22753    debug=: ;;
22754  --file | --fil | --fi | --f )
22755    $ac_shift
22756    case $ac_optarg in
22757    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22758    '') as_fn_error $? "missing file argument" ;;
22759    esac
22760    as_fn_append CONFIG_FILES " '$ac_optarg'"
22761    ac_need_defaults=false;;
22762  --header | --heade | --head | --hea )
22763    $ac_shift
22764    case $ac_optarg in
22765    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22766    esac
22767    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22768    ac_need_defaults=false;;
22769  --he | --h)
22770    # Conflict between --help and --header
22771    as_fn_error $? "ambiguous option: \`$1'
22772Try \`$0 --help' for more information.";;
22773  --help | --hel | -h )
22774    $as_echo "$ac_cs_usage"; exit ;;
22775  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22776  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22777    ac_cs_silent=: ;;
22778
22779  # This is an error.
22780  -*) as_fn_error $? "unrecognized option: \`$1'
22781Try \`$0 --help' for more information." ;;
22782
22783  *) as_fn_append ac_config_targets " $1"
22784     ac_need_defaults=false ;;
22785
22786  esac
22787  shift
22788done
22789
22790ac_configure_extra_args=
22791
22792if $ac_cs_silent; then
22793  exec 6>/dev/null
22794  ac_configure_extra_args="$ac_configure_extra_args --silent"
22795fi
22796
22797_ACEOF
22798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22799if \$ac_cs_recheck; then
22800  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22801  shift
22802  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22803  CONFIG_SHELL='$SHELL'
22804  export CONFIG_SHELL
22805  exec "\$@"
22806fi
22807
22808_ACEOF
22809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22810exec 5>>config.log
22811{
22812  echo
22813  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22814## Running $as_me. ##
22815_ASBOX
22816  $as_echo "$ac_log"
22817} >&5
22818
22819_ACEOF
22820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22821#
22822# INIT-COMMANDS
22823#
22824
22825
22826# The HP-UX ksh and POSIX shell print the target directory to stdout
22827# if CDPATH is set.
22828(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22829
22830sed_quote_subst='$sed_quote_subst'
22831double_quote_subst='$double_quote_subst'
22832delay_variable_subst='$delay_variable_subst'
22833macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22834macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22835enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22836enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22837pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22838enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22839shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22840SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22841ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22842PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22843host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22844host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22845host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22846build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22847build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22848build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22849SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22850Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22851GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22852EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22853FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22854LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22855NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22856LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22857max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22858ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22859exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22860lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22861lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22862lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22863lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22864lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22865reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22866reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22867OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22868deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22869file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22870file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22871want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22872DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22873sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22874AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22875AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22876archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22877STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22878RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22879old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22880old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22881old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22882lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22883CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22884CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22885compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22886GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22887lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22888lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22889lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22890lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22891lt_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"`'
22892lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22893nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22894lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22895lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22896objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22897MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22898lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22899lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22900lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22901lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22902lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22903need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22904MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22905DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22906NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22907LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22908OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22909OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22910libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22911shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22912extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22913archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22914enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22915export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22916whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22917compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22918old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22919old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22920archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22921archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22922module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22923module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22924with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22925allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22926no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22927hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22928hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22929hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22930hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22931hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22932hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22933hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22934inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22935link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22936always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22937export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22938exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22939include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22940prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22941postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22942file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22943variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22944need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22945need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22946version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22947runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22948shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22949shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22950libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22951library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22952soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22953install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22954postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22955postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22956finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22957finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22958hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22959sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22960configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22961configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22962hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22963enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22964enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22965enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22966old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22967striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22968
22969LTCC='$LTCC'
22970LTCFLAGS='$LTCFLAGS'
22971compiler='$compiler_DEFAULT'
22972
22973# A function that is used when there is no print builtin or printf.
22974func_fallback_echo ()
22975{
22976  eval 'cat <<_LTECHO_EOF
22977\$1
22978_LTECHO_EOF'
22979}
22980
22981# Quote evaled strings.
22982for var in SHELL \
22983ECHO \
22984PATH_SEPARATOR \
22985SED \
22986GREP \
22987EGREP \
22988FGREP \
22989LD \
22990NM \
22991LN_S \
22992lt_SP2NL \
22993lt_NL2SP \
22994reload_flag \
22995OBJDUMP \
22996deplibs_check_method \
22997file_magic_cmd \
22998file_magic_glob \
22999want_nocaseglob \
23000DLLTOOL \
23001sharedlib_from_linklib_cmd \
23002AR \
23003AR_FLAGS \
23004archiver_list_spec \
23005STRIP \
23006RANLIB \
23007CC \
23008CFLAGS \
23009compiler \
23010lt_cv_sys_global_symbol_pipe \
23011lt_cv_sys_global_symbol_to_cdecl \
23012lt_cv_sys_global_symbol_to_import \
23013lt_cv_sys_global_symbol_to_c_name_address \
23014lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23015lt_cv_nm_interface \
23016nm_file_list_spec \
23017lt_cv_truncate_bin \
23018lt_prog_compiler_no_builtin_flag \
23019lt_prog_compiler_pic \
23020lt_prog_compiler_wl \
23021lt_prog_compiler_static \
23022lt_cv_prog_compiler_c_o \
23023need_locks \
23024MANIFEST_TOOL \
23025DSYMUTIL \
23026NMEDIT \
23027LIPO \
23028OTOOL \
23029OTOOL64 \
23030shrext_cmds \
23031export_dynamic_flag_spec \
23032whole_archive_flag_spec \
23033compiler_needs_object \
23034with_gnu_ld \
23035allow_undefined_flag \
23036no_undefined_flag \
23037hardcode_libdir_flag_spec \
23038hardcode_libdir_separator \
23039exclude_expsyms \
23040include_expsyms \
23041file_list_spec \
23042variables_saved_for_relink \
23043libname_spec \
23044library_names_spec \
23045soname_spec \
23046install_override_mode \
23047finish_eval \
23048old_striplib \
23049striplib; do
23050    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23051    *[\\\\\\\`\\"\\\$]*)
23052      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23053      ;;
23054    *)
23055      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23056      ;;
23057    esac
23058done
23059
23060# Double-quote double-evaled strings.
23061for var in reload_cmds \
23062old_postinstall_cmds \
23063old_postuninstall_cmds \
23064old_archive_cmds \
23065extract_expsyms_cmds \
23066old_archive_from_new_cmds \
23067old_archive_from_expsyms_cmds \
23068archive_cmds \
23069archive_expsym_cmds \
23070module_cmds \
23071module_expsym_cmds \
23072export_symbols_cmds \
23073prelink_cmds \
23074postlink_cmds \
23075postinstall_cmds \
23076postuninstall_cmds \
23077finish_cmds \
23078sys_lib_search_path_spec \
23079configure_time_dlsearch_path \
23080configure_time_lt_sys_library_path; do
23081    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23082    *[\\\\\\\`\\"\\\$]*)
23083      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23084      ;;
23085    *)
23086      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23087      ;;
23088    esac
23089done
23090
23091ac_aux_dir='$ac_aux_dir'
23092
23093# See if we are running on zsh, and set the options that allow our
23094# commands through without removal of \ escapes INIT.
23095if test -n "\${ZSH_VERSION+set}"; then
23096   setopt NO_GLOB_SUBST
23097fi
23098
23099
23100    PACKAGE='$PACKAGE'
23101    VERSION='$VERSION'
23102    RM='$RM'
23103    ofile='$ofile'
23104
23105
23106
23107
23108_ACEOF
23109
23110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23111
23112# Handling of arguments.
23113for ac_config_target in $ac_config_targets
23114do
23115  case $ac_config_target in
23116    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23117    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
23118    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23119    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
23120    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
23121    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
23122    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
23123    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
23124    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
23125    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
23126    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
23127    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
23128    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
23129    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
23130    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
23131    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
23132    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
23133    "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
23134    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23135
23136  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23137  esac
23138done
23139
23140
23141# If the user did not use the arguments to specify the items to instantiate,
23142# then the envvar interface is used.  Set only those that are not.
23143# We use the long form for the default assignment because of an extremely
23144# bizarre bug on SunOS 4.1.3.
23145if $ac_need_defaults; then
23146  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23147  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23148  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23149fi
23150
23151# Have a temporary directory for convenience.  Make it in the build tree
23152# simply because there is no reason against having it here, and in addition,
23153# creating and moving files from /tmp can sometimes cause problems.
23154# Hook for its removal unless debugging.
23155# Note that there is a small window in which the directory will not be cleaned:
23156# after its creation but before its name has been assigned to `$tmp'.
23157$debug ||
23158{
23159  tmp= ac_tmp=
23160  trap 'exit_status=$?
23161  : "${ac_tmp:=$tmp}"
23162  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23163' 0
23164  trap 'as_fn_exit 1' 1 2 13 15
23165}
23166# Create a (secure) tmp directory for tmp files.
23167
23168{
23169  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23170  test -d "$tmp"
23171}  ||
23172{
23173  tmp=./conf$$-$RANDOM
23174  (umask 077 && mkdir "$tmp")
23175} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23176ac_tmp=$tmp
23177
23178# Set up the scripts for CONFIG_FILES section.
23179# No need to generate them if there are no CONFIG_FILES.
23180# This happens for instance with `./config.status config.h'.
23181if test -n "$CONFIG_FILES"; then
23182
23183
23184ac_cr=`echo X | tr X '\015'`
23185# On cygwin, bash can eat \r inside `` if the user requested igncr.
23186# But we know of no other shell where ac_cr would be empty at this
23187# point, so we can use a bashism as a fallback.
23188if test "x$ac_cr" = x; then
23189  eval ac_cr=\$\'\\r\'
23190fi
23191ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23192if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23193  ac_cs_awk_cr='\\r'
23194else
23195  ac_cs_awk_cr=$ac_cr
23196fi
23197
23198echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23199_ACEOF
23200
23201
23202{
23203  echo "cat >conf$$subs.awk <<_ACEOF" &&
23204  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23205  echo "_ACEOF"
23206} >conf$$subs.sh ||
23207  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23208ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23209ac_delim='%!_!# '
23210for ac_last_try in false false false false false :; do
23211  . ./conf$$subs.sh ||
23212    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23213
23214  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23215  if test $ac_delim_n = $ac_delim_num; then
23216    break
23217  elif $ac_last_try; then
23218    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23219  else
23220    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23221  fi
23222done
23223rm -f conf$$subs.sh
23224
23225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23226cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23227_ACEOF
23228sed -n '
23229h
23230s/^/S["/; s/!.*/"]=/
23231p
23232g
23233s/^[^!]*!//
23234:repl
23235t repl
23236s/'"$ac_delim"'$//
23237t delim
23238:nl
23239h
23240s/\(.\{148\}\)..*/\1/
23241t more1
23242s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23243p
23244n
23245b repl
23246:more1
23247s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23248p
23249g
23250s/.\{148\}//
23251t nl
23252:delim
23253h
23254s/\(.\{148\}\)..*/\1/
23255t more2
23256s/["\\]/\\&/g; s/^/"/; s/$/"/
23257p
23258b
23259:more2
23260s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23261p
23262g
23263s/.\{148\}//
23264t delim
23265' <conf$$subs.awk | sed '
23266/^[^""]/{
23267  N
23268  s/\n//
23269}
23270' >>$CONFIG_STATUS || ac_write_fail=1
23271rm -f conf$$subs.awk
23272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23273_ACAWK
23274cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23275  for (key in S) S_is_set[key] = 1
23276  FS = ""
23277
23278}
23279{
23280  line = $ 0
23281  nfields = split(line, field, "@")
23282  substed = 0
23283  len = length(field[1])
23284  for (i = 2; i < nfields; i++) {
23285    key = field[i]
23286    keylen = length(key)
23287    if (S_is_set[key]) {
23288      value = S[key]
23289      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23290      len += length(value) + length(field[++i])
23291      substed = 1
23292    } else
23293      len += 1 + keylen
23294  }
23295
23296  print line
23297}
23298
23299_ACAWK
23300_ACEOF
23301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23302if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23303  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23304else
23305  cat
23306fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23307  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23308_ACEOF
23309
23310# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23311# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23312# trailing colons and then remove the whole line if VPATH becomes empty
23313# (actually we leave an empty line to preserve line numbers).
23314if test "x$srcdir" = x.; then
23315  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23316h
23317s///
23318s/^/:/
23319s/[	 ]*$/:/
23320s/:\$(srcdir):/:/g
23321s/:\${srcdir}:/:/g
23322s/:@srcdir@:/:/g
23323s/^:*//
23324s/:*$//
23325x
23326s/\(=[	 ]*\).*/\1/
23327G
23328s/\n//
23329s/^[^=]*=[	 ]*$//
23330}'
23331fi
23332
23333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23334fi # test -n "$CONFIG_FILES"
23335
23336# Set up the scripts for CONFIG_HEADERS section.
23337# No need to generate them if there are no CONFIG_HEADERS.
23338# This happens for instance with `./config.status Makefile'.
23339if test -n "$CONFIG_HEADERS"; then
23340cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23341BEGIN {
23342_ACEOF
23343
23344# Transform confdefs.h into an awk script `defines.awk', embedded as
23345# here-document in config.status, that substitutes the proper values into
23346# config.h.in to produce config.h.
23347
23348# Create a delimiter string that does not exist in confdefs.h, to ease
23349# handling of long lines.
23350ac_delim='%!_!# '
23351for ac_last_try in false false :; do
23352  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23353  if test -z "$ac_tt"; then
23354    break
23355  elif $ac_last_try; then
23356    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23357  else
23358    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23359  fi
23360done
23361
23362# For the awk script, D is an array of macro values keyed by name,
23363# likewise P contains macro parameters if any.  Preserve backslash
23364# newline sequences.
23365
23366ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23367sed -n '
23368s/.\{148\}/&'"$ac_delim"'/g
23369t rset
23370:rset
23371s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23372t def
23373d
23374:def
23375s/\\$//
23376t bsnl
23377s/["\\]/\\&/g
23378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23379D["\1"]=" \3"/p
23380s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23381d
23382:bsnl
23383s/["\\]/\\&/g
23384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23385D["\1"]=" \3\\\\\\n"\\/p
23386t cont
23387s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23388t cont
23389d
23390:cont
23391n
23392s/.\{148\}/&'"$ac_delim"'/g
23393t clear
23394:clear
23395s/\\$//
23396t bsnlc
23397s/["\\]/\\&/g; s/^/"/; s/$/"/p
23398d
23399:bsnlc
23400s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23401b cont
23402' <confdefs.h | sed '
23403s/'"$ac_delim"'/"\\\
23404"/g' >>$CONFIG_STATUS || ac_write_fail=1
23405
23406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23407  for (key in D) D_is_set[key] = 1
23408  FS = ""
23409}
23410/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23411  line = \$ 0
23412  split(line, arg, " ")
23413  if (arg[1] == "#") {
23414    defundef = arg[2]
23415    mac1 = arg[3]
23416  } else {
23417    defundef = substr(arg[1], 2)
23418    mac1 = arg[2]
23419  }
23420  split(mac1, mac2, "(") #)
23421  macro = mac2[1]
23422  prefix = substr(line, 1, index(line, defundef) - 1)
23423  if (D_is_set[macro]) {
23424    # Preserve the white space surrounding the "#".
23425    print prefix "define", macro P[macro] D[macro]
23426    next
23427  } else {
23428    # Replace #undef with comments.  This is necessary, for example,
23429    # in the case of _POSIX_SOURCE, which is predefined and required
23430    # on some systems where configure will not decide to define it.
23431    if (defundef == "undef") {
23432      print "/*", prefix defundef, macro, "*/"
23433      next
23434    }
23435  }
23436}
23437{ print }
23438_ACAWK
23439_ACEOF
23440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23441  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23442fi # test -n "$CONFIG_HEADERS"
23443
23444
23445eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23446shift
23447for ac_tag
23448do
23449  case $ac_tag in
23450  :[FHLC]) ac_mode=$ac_tag; continue;;
23451  esac
23452  case $ac_mode$ac_tag in
23453  :[FHL]*:*);;
23454  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23455  :[FH]-) ac_tag=-:-;;
23456  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23457  esac
23458  ac_save_IFS=$IFS
23459  IFS=:
23460  set x $ac_tag
23461  IFS=$ac_save_IFS
23462  shift
23463  ac_file=$1
23464  shift
23465
23466  case $ac_mode in
23467  :L) ac_source=$1;;
23468  :[FH])
23469    ac_file_inputs=
23470    for ac_f
23471    do
23472      case $ac_f in
23473      -) ac_f="$ac_tmp/stdin";;
23474      *) # Look for the file first in the build tree, then in the source tree
23475	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23476	 # because $ac_f cannot contain `:'.
23477	 test -f "$ac_f" ||
23478	   case $ac_f in
23479	   [\\/$]*) false;;
23480	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23481	   esac ||
23482	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23483      esac
23484      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23485      as_fn_append ac_file_inputs " '$ac_f'"
23486    done
23487
23488    # Let's still pretend it is `configure' which instantiates (i.e., don't
23489    # use $as_me), people would be surprised to read:
23490    #    /* config.h.  Generated by config.status.  */
23491    configure_input='Generated from '`
23492	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23493	`' by configure.'
23494    if test x"$ac_file" != x-; then
23495      configure_input="$ac_file.  $configure_input"
23496      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23497$as_echo "$as_me: creating $ac_file" >&6;}
23498    fi
23499    # Neutralize special characters interpreted by sed in replacement strings.
23500    case $configure_input in #(
23501    *\&* | *\|* | *\\* )
23502       ac_sed_conf_input=`$as_echo "$configure_input" |
23503       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23504    *) ac_sed_conf_input=$configure_input;;
23505    esac
23506
23507    case $ac_tag in
23508    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23509      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23510    esac
23511    ;;
23512  esac
23513
23514  ac_dir=`$as_dirname -- "$ac_file" ||
23515$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23516	 X"$ac_file" : 'X\(//\)[^/]' \| \
23517	 X"$ac_file" : 'X\(//\)$' \| \
23518	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23519$as_echo X"$ac_file" |
23520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23521	    s//\1/
23522	    q
23523	  }
23524	  /^X\(\/\/\)[^/].*/{
23525	    s//\1/
23526	    q
23527	  }
23528	  /^X\(\/\/\)$/{
23529	    s//\1/
23530	    q
23531	  }
23532	  /^X\(\/\).*/{
23533	    s//\1/
23534	    q
23535	  }
23536	  s/.*/./; q'`
23537  as_dir="$ac_dir"; as_fn_mkdir_p
23538  ac_builddir=.
23539
23540case "$ac_dir" in
23541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23542*)
23543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23544  # A ".." for each directory in $ac_dir_suffix.
23545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23546  case $ac_top_builddir_sub in
23547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23549  esac ;;
23550esac
23551ac_abs_top_builddir=$ac_pwd
23552ac_abs_builddir=$ac_pwd$ac_dir_suffix
23553# for backward compatibility:
23554ac_top_builddir=$ac_top_build_prefix
23555
23556case $srcdir in
23557  .)  # We are building in place.
23558    ac_srcdir=.
23559    ac_top_srcdir=$ac_top_builddir_sub
23560    ac_abs_top_srcdir=$ac_pwd ;;
23561  [\\/]* | ?:[\\/]* )  # Absolute name.
23562    ac_srcdir=$srcdir$ac_dir_suffix;
23563    ac_top_srcdir=$srcdir
23564    ac_abs_top_srcdir=$srcdir ;;
23565  *) # Relative name.
23566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23567    ac_top_srcdir=$ac_top_build_prefix$srcdir
23568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23569esac
23570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23571
23572
23573  case $ac_mode in
23574  :F)
23575  #
23576  # CONFIG_FILE
23577  #
23578
23579_ACEOF
23580
23581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23582# If the template does not know about datarootdir, expand it.
23583# FIXME: This hack should be removed a few years after 2.60.
23584ac_datarootdir_hack=; ac_datarootdir_seen=
23585ac_sed_dataroot='
23586/datarootdir/ {
23587  p
23588  q
23589}
23590/@datadir@/p
23591/@docdir@/p
23592/@infodir@/p
23593/@localedir@/p
23594/@mandir@/p'
23595case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23596*datarootdir*) ac_datarootdir_seen=yes;;
23597*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23599$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23600_ACEOF
23601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23602  ac_datarootdir_hack='
23603  s&@datadir@&$datadir&g
23604  s&@docdir@&$docdir&g
23605  s&@infodir@&$infodir&g
23606  s&@localedir@&$localedir&g
23607  s&@mandir@&$mandir&g
23608  s&\\\${datarootdir}&$datarootdir&g' ;;
23609esac
23610_ACEOF
23611
23612# Neutralize VPATH when `$srcdir' = `.'.
23613# Shell code in configure.ac might set extrasub.
23614# FIXME: do we really want to maintain this feature?
23615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23616ac_sed_extra="$ac_vpsub
23617$extrasub
23618_ACEOF
23619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23620:t
23621/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23622s|@configure_input@|$ac_sed_conf_input|;t t
23623s&@top_builddir@&$ac_top_builddir_sub&;t t
23624s&@top_build_prefix@&$ac_top_build_prefix&;t t
23625s&@srcdir@&$ac_srcdir&;t t
23626s&@abs_srcdir@&$ac_abs_srcdir&;t t
23627s&@top_srcdir@&$ac_top_srcdir&;t t
23628s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23629s&@builddir@&$ac_builddir&;t t
23630s&@abs_builddir@&$ac_abs_builddir&;t t
23631s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23632$ac_datarootdir_hack
23633"
23634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23635  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23636
23637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23638  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23639  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23640      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23642which seems to be undefined.  Please make sure it is defined" >&5
23643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23644which seems to be undefined.  Please make sure it is defined" >&2;}
23645
23646  rm -f "$ac_tmp/stdin"
23647  case $ac_file in
23648  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23649  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23650  esac \
23651  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23652 ;;
23653  :H)
23654  #
23655  # CONFIG_HEADER
23656  #
23657  if test x"$ac_file" != x-; then
23658    {
23659      $as_echo "/* $configure_input  */" \
23660      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23661    } >"$ac_tmp/config.h" \
23662      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23663    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23664      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23665$as_echo "$as_me: $ac_file is unchanged" >&6;}
23666    else
23667      rm -f "$ac_file"
23668      mv "$ac_tmp/config.h" "$ac_file" \
23669	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23670    fi
23671  else
23672    $as_echo "/* $configure_input  */" \
23673      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23674      || as_fn_error $? "could not create -" "$LINENO" 5
23675  fi
23676 ;;
23677
23678  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23679$as_echo "$as_me: executing $ac_file commands" >&6;}
23680 ;;
23681  esac
23682
23683
23684  case $ac_file$ac_mode in
23685    "libtool":C)
23686
23687    # See if we are running on zsh, and set the options that allow our
23688    # commands through without removal of \ escapes.
23689    if test -n "${ZSH_VERSION+set}"; then
23690      setopt NO_GLOB_SUBST
23691    fi
23692
23693    cfgfile=${ofile}T
23694    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23695    $RM "$cfgfile"
23696
23697    cat <<_LT_EOF >> "$cfgfile"
23698#! $SHELL
23699# Generated automatically by $as_me ($PACKAGE) $VERSION
23700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23701# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23702
23703# Provide generalized library-building support services.
23704# Written by Gordon Matzigkeit, 1996
23705
23706# Copyright (C) 2014 Free Software Foundation, Inc.
23707# This is free software; see the source for copying conditions.  There is NO
23708# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23709
23710# GNU Libtool is free software; you can redistribute it and/or modify
23711# it under the terms of the GNU General Public License as published by
23712# the Free Software Foundation; either version 2 of of the License, or
23713# (at your option) any later version.
23714#
23715# As a special exception to the GNU General Public License, if you
23716# distribute this file as part of a program or library that is built
23717# using GNU Libtool, you may include this file under the  same
23718# distribution terms that you use for the rest of that program.
23719#
23720# GNU Libtool is distributed in the hope that it will be useful, but
23721# WITHOUT ANY WARRANTY; without even the implied warranty of
23722# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23723# GNU General Public License for more details.
23724#
23725# You should have received a copy of the GNU General Public License
23726# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23727
23728
23729# The names of the tagged configurations supported by this script.
23730available_tags=''
23731
23732# Configured defaults for sys_lib_dlsearch_path munging.
23733: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23734
23735# ### BEGIN LIBTOOL CONFIG
23736
23737# Which release of libtool.m4 was used?
23738macro_version=$macro_version
23739macro_revision=$macro_revision
23740
23741# Whether or not to build shared libraries.
23742build_libtool_libs=$enable_shared
23743
23744# Whether or not to build static libraries.
23745build_old_libs=$enable_static
23746
23747# What type of objects to build.
23748pic_mode=$pic_mode
23749
23750# Whether or not to optimize for fast installation.
23751fast_install=$enable_fast_install
23752
23753# Shared archive member basename,for filename based shared library versioning on AIX.
23754shared_archive_member_spec=$shared_archive_member_spec
23755
23756# Shell to use when invoking shell scripts.
23757SHELL=$lt_SHELL
23758
23759# An echo program that protects backslashes.
23760ECHO=$lt_ECHO
23761
23762# The PATH separator for the build system.
23763PATH_SEPARATOR=$lt_PATH_SEPARATOR
23764
23765# The host system.
23766host_alias=$host_alias
23767host=$host
23768host_os=$host_os
23769
23770# The build system.
23771build_alias=$build_alias
23772build=$build
23773build_os=$build_os
23774
23775# A sed program that does not truncate output.
23776SED=$lt_SED
23777
23778# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23779Xsed="\$SED -e 1s/^X//"
23780
23781# A grep program that handles long lines.
23782GREP=$lt_GREP
23783
23784# An ERE matcher.
23785EGREP=$lt_EGREP
23786
23787# A literal string matcher.
23788FGREP=$lt_FGREP
23789
23790# A BSD- or MS-compatible name lister.
23791NM=$lt_NM
23792
23793# Whether we need soft or hard links.
23794LN_S=$lt_LN_S
23795
23796# What is the maximum length of a command?
23797max_cmd_len=$max_cmd_len
23798
23799# Object file suffix (normally "o").
23800objext=$ac_objext
23801
23802# Executable file suffix (normally "").
23803exeext=$exeext
23804
23805# whether the shell understands "unset".
23806lt_unset=$lt_unset
23807
23808# turn spaces into newlines.
23809SP2NL=$lt_lt_SP2NL
23810
23811# turn newlines into spaces.
23812NL2SP=$lt_lt_NL2SP
23813
23814# convert \$build file names to \$host format.
23815to_host_file_cmd=$lt_cv_to_host_file_cmd
23816
23817# convert \$build files to toolchain format.
23818to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23819
23820# An object symbol dumper.
23821OBJDUMP=$lt_OBJDUMP
23822
23823# Method to check whether dependent libraries are shared objects.
23824deplibs_check_method=$lt_deplibs_check_method
23825
23826# Command to use when deplibs_check_method = "file_magic".
23827file_magic_cmd=$lt_file_magic_cmd
23828
23829# How to find potential files when deplibs_check_method = "file_magic".
23830file_magic_glob=$lt_file_magic_glob
23831
23832# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23833want_nocaseglob=$lt_want_nocaseglob
23834
23835# DLL creation program.
23836DLLTOOL=$lt_DLLTOOL
23837
23838# Command to associate shared and link libraries.
23839sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23840
23841# The archiver.
23842AR=$lt_AR
23843
23844# Flags to create an archive.
23845AR_FLAGS=$lt_AR_FLAGS
23846
23847# How to feed a file listing to the archiver.
23848archiver_list_spec=$lt_archiver_list_spec
23849
23850# A symbol stripping program.
23851STRIP=$lt_STRIP
23852
23853# Commands used to install an old-style archive.
23854RANLIB=$lt_RANLIB
23855old_postinstall_cmds=$lt_old_postinstall_cmds
23856old_postuninstall_cmds=$lt_old_postuninstall_cmds
23857
23858# Whether to use a lock for old archive extraction.
23859lock_old_archive_extraction=$lock_old_archive_extraction
23860
23861# A C compiler.
23862LTCC=$lt_CC
23863
23864# LTCC compiler flags.
23865LTCFLAGS=$lt_CFLAGS
23866
23867# Take the output of nm and produce a listing of raw symbols and C names.
23868global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23869
23870# Transform the output of nm in a proper C declaration.
23871global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23872
23873# Transform the output of nm into a list of symbols to manually relocate.
23874global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23875
23876# Transform the output of nm in a C name address pair.
23877global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23878
23879# Transform the output of nm in a C name address pair when lib prefix is needed.
23880global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23881
23882# The name lister interface.
23883nm_interface=$lt_lt_cv_nm_interface
23884
23885# Specify filename containing input files for \$NM.
23886nm_file_list_spec=$lt_nm_file_list_spec
23887
23888# The root where to search for dependent libraries,and where our libraries should be installed.
23889lt_sysroot=$lt_sysroot
23890
23891# Command to truncate a binary pipe.
23892lt_truncate_bin=$lt_lt_cv_truncate_bin
23893
23894# The name of the directory that contains temporary libtool files.
23895objdir=$objdir
23896
23897# Used to examine libraries when file_magic_cmd begins with "file".
23898MAGIC_CMD=$MAGIC_CMD
23899
23900# Must we lock files when doing compilation?
23901need_locks=$lt_need_locks
23902
23903# Manifest tool.
23904MANIFEST_TOOL=$lt_MANIFEST_TOOL
23905
23906# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23907DSYMUTIL=$lt_DSYMUTIL
23908
23909# Tool to change global to local symbols on Mac OS X.
23910NMEDIT=$lt_NMEDIT
23911
23912# Tool to manipulate fat objects and archives on Mac OS X.
23913LIPO=$lt_LIPO
23914
23915# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23916OTOOL=$lt_OTOOL
23917
23918# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23919OTOOL64=$lt_OTOOL64
23920
23921# Old archive suffix (normally "a").
23922libext=$libext
23923
23924# Shared library suffix (normally ".so").
23925shrext_cmds=$lt_shrext_cmds
23926
23927# The commands to extract the exported symbol list from a shared archive.
23928extract_expsyms_cmds=$lt_extract_expsyms_cmds
23929
23930# Variables whose values should be saved in libtool wrapper scripts and
23931# restored at link time.
23932variables_saved_for_relink=$lt_variables_saved_for_relink
23933
23934# Do we need the "lib" prefix for modules?
23935need_lib_prefix=$need_lib_prefix
23936
23937# Do we need a version for libraries?
23938need_version=$need_version
23939
23940# Library versioning type.
23941version_type=$version_type
23942
23943# Shared library runtime path variable.
23944runpath_var=$runpath_var
23945
23946# Shared library path variable.
23947shlibpath_var=$shlibpath_var
23948
23949# Is shlibpath searched before the hard-coded library search path?
23950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23951
23952# Format of library name prefix.
23953libname_spec=$lt_libname_spec
23954
23955# List of archive names.  First name is the real one, the rest are links.
23956# The last name is the one that the linker finds with -lNAME
23957library_names_spec=$lt_library_names_spec
23958
23959# The coded name of the library, if different from the real name.
23960soname_spec=$lt_soname_spec
23961
23962# Permission mode override for installation of shared libraries.
23963install_override_mode=$lt_install_override_mode
23964
23965# Command to use after installation of a shared archive.
23966postinstall_cmds=$lt_postinstall_cmds
23967
23968# Command to use after uninstallation of a shared archive.
23969postuninstall_cmds=$lt_postuninstall_cmds
23970
23971# Commands used to finish a libtool library installation in a directory.
23972finish_cmds=$lt_finish_cmds
23973
23974# As "finish_cmds", except a single script fragment to be evaled but
23975# not shown.
23976finish_eval=$lt_finish_eval
23977
23978# Whether we should hardcode library paths into libraries.
23979hardcode_into_libs=$hardcode_into_libs
23980
23981# Compile-time system search path for libraries.
23982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23983
23984# Detected run-time system search path for libraries.
23985sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23986
23987# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23988configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23989
23990# Whether dlopen is supported.
23991dlopen_support=$enable_dlopen
23992
23993# Whether dlopen of programs is supported.
23994dlopen_self=$enable_dlopen_self
23995
23996# Whether dlopen of statically linked programs is supported.
23997dlopen_self_static=$enable_dlopen_self_static
23998
23999# Commands to strip libraries.
24000old_striplib=$lt_old_striplib
24001striplib=$lt_striplib
24002
24003
24004# The linker used to build libraries.
24005LD=$lt_LD
24006
24007# How to create reloadable object files.
24008reload_flag=$lt_reload_flag
24009reload_cmds=$lt_reload_cmds
24010
24011# Commands used to build an old-style archive.
24012old_archive_cmds=$lt_old_archive_cmds
24013
24014# A language specific compiler.
24015CC=$lt_compiler
24016
24017# Is the compiler the GNU compiler?
24018with_gcc=$GCC
24019
24020# Compiler flag to turn off builtin functions.
24021no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24022
24023# Additional compiler flags for building library objects.
24024pic_flag=$lt_lt_prog_compiler_pic
24025
24026# How to pass a linker flag through the compiler.
24027wl=$lt_lt_prog_compiler_wl
24028
24029# Compiler flag to prevent dynamic linking.
24030link_static_flag=$lt_lt_prog_compiler_static
24031
24032# Does compiler simultaneously support -c and -o options?
24033compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24034
24035# Whether or not to add -lc for building shared libraries.
24036build_libtool_need_lc=$archive_cmds_need_lc
24037
24038# Whether or not to disallow shared libs when runtime libs are static.
24039allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24040
24041# Compiler flag to allow reflexive dlopens.
24042export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24043
24044# Compiler flag to generate shared objects directly from archives.
24045whole_archive_flag_spec=$lt_whole_archive_flag_spec
24046
24047# Whether the compiler copes with passing no objects directly.
24048compiler_needs_object=$lt_compiler_needs_object
24049
24050# Create an old-style archive from a shared archive.
24051old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24052
24053# Create a temporary old-style archive to link instead of a shared archive.
24054old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24055
24056# Commands used to build a shared archive.
24057archive_cmds=$lt_archive_cmds
24058archive_expsym_cmds=$lt_archive_expsym_cmds
24059
24060# Commands used to build a loadable module if different from building
24061# a shared archive.
24062module_cmds=$lt_module_cmds
24063module_expsym_cmds=$lt_module_expsym_cmds
24064
24065# Whether we are building with GNU ld or not.
24066with_gnu_ld=$lt_with_gnu_ld
24067
24068# Flag that allows shared libraries with undefined symbols to be built.
24069allow_undefined_flag=$lt_allow_undefined_flag
24070
24071# Flag that enforces no undefined symbols.
24072no_undefined_flag=$lt_no_undefined_flag
24073
24074# Flag to hardcode \$libdir into a binary during linking.
24075# This must work even if \$libdir does not exist
24076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24077
24078# Whether we need a single "-rpath" flag with a separated argument.
24079hardcode_libdir_separator=$lt_hardcode_libdir_separator
24080
24081# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24082# DIR into the resulting binary.
24083hardcode_direct=$hardcode_direct
24084
24085# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24086# DIR into the resulting binary and the resulting library dependency is
24087# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24088# library is relocated.
24089hardcode_direct_absolute=$hardcode_direct_absolute
24090
24091# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24092# into the resulting binary.
24093hardcode_minus_L=$hardcode_minus_L
24094
24095# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24096# into the resulting binary.
24097hardcode_shlibpath_var=$hardcode_shlibpath_var
24098
24099# Set to "yes" if building a shared library automatically hardcodes DIR
24100# into the library and all subsequent libraries and executables linked
24101# against it.
24102hardcode_automatic=$hardcode_automatic
24103
24104# Set to yes if linker adds runtime paths of dependent libraries
24105# to runtime path list.
24106inherit_rpath=$inherit_rpath
24107
24108# Whether libtool must link a program against all its dependency libraries.
24109link_all_deplibs=$link_all_deplibs
24110
24111# Set to "yes" if exported symbols are required.
24112always_export_symbols=$always_export_symbols
24113
24114# The commands to list exported symbols.
24115export_symbols_cmds=$lt_export_symbols_cmds
24116
24117# Symbols that should not be listed in the preloaded symbols.
24118exclude_expsyms=$lt_exclude_expsyms
24119
24120# Symbols that must always be exported.
24121include_expsyms=$lt_include_expsyms
24122
24123# Commands necessary for linking programs (against libraries) with templates.
24124prelink_cmds=$lt_prelink_cmds
24125
24126# Commands necessary for finishing linking programs.
24127postlink_cmds=$lt_postlink_cmds
24128
24129# Specify filename containing input files.
24130file_list_spec=$lt_file_list_spec
24131
24132# How to hardcode a shared library path into an executable.
24133hardcode_action=$hardcode_action
24134
24135# ### END LIBTOOL CONFIG
24136
24137_LT_EOF
24138
24139    cat <<'_LT_EOF' >> "$cfgfile"
24140
24141# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24142
24143# func_munge_path_list VARIABLE PATH
24144# -----------------------------------
24145# VARIABLE is name of variable containing _space_ separated list of
24146# directories to be munged by the contents of PATH, which is string
24147# having a format:
24148# "DIR[:DIR]:"
24149#       string "DIR[ DIR]" will be prepended to VARIABLE
24150# ":DIR[:DIR]"
24151#       string "DIR[ DIR]" will be appended to VARIABLE
24152# "DIRP[:DIRP]::[DIRA:]DIRA"
24153#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24154#       "DIRA[ DIRA]" will be appended to VARIABLE
24155# "DIR[:DIR]"
24156#       VARIABLE will be replaced by "DIR[ DIR]"
24157func_munge_path_list ()
24158{
24159    case x$2 in
24160    x)
24161        ;;
24162    *:)
24163        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24164        ;;
24165    x:*)
24166        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24167        ;;
24168    *::*)
24169        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24170        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24171        ;;
24172    *)
24173        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24174        ;;
24175    esac
24176}
24177
24178
24179# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24180func_cc_basename ()
24181{
24182    for cc_temp in $*""; do
24183      case $cc_temp in
24184        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24185        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24186        \-*) ;;
24187        *) break;;
24188      esac
24189    done
24190    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24191}
24192
24193
24194# ### END FUNCTIONS SHARED WITH CONFIGURE
24195
24196_LT_EOF
24197
24198  case $host_os in
24199  aix3*)
24200    cat <<\_LT_EOF >> "$cfgfile"
24201# AIX sometimes has problems with the GCC collect2 program.  For some
24202# reason, if we set the COLLECT_NAMES environment variable, the problems
24203# vanish in a puff of smoke.
24204if test set != "${COLLECT_NAMES+set}"; then
24205  COLLECT_NAMES=
24206  export COLLECT_NAMES
24207fi
24208_LT_EOF
24209    ;;
24210  esac
24211
24212
24213ltmain=$ac_aux_dir/ltmain.sh
24214
24215
24216  # We use sed instead of cat because bash on DJGPP gets confused if
24217  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24218  # text mode, it properly converts lines to CR/LF.  This bash problem
24219  # is reportedly fixed, but why not run on old versions too?
24220  sed '$q' "$ltmain" >> "$cfgfile" \
24221     || (rm -f "$cfgfile"; exit 1)
24222
24223   mv -f "$cfgfile" "$ofile" ||
24224    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24225  chmod +x "$ofile"
24226
24227 ;;
24228    "disable-rpath":C)
24229	sed < libtool > libtool-2 \
24230	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24231	mv libtool-2 libtool
24232	chmod 755 libtool
24233	libtool="./libtool"
24234	 ;;
24235
24236  esac
24237done # for ac_tag
24238
24239
24240as_fn_exit 0
24241_ACEOF
24242ac_clean_files=$ac_clean_files_save
24243
24244test $ac_write_fail = 0 ||
24245  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24246
24247
24248# configure is writing to config.log, and then calls config.status.
24249# config.status does its own redirection, appending to config.log.
24250# Unfortunately, on DOS this fails, as config.log is still kept open
24251# by configure, so config.status won't be able to write to it; its
24252# output is simply discarded.  So we exec the FD to /dev/null,
24253# effectively closing config.log, so it can be properly (re)opened and
24254# appended to by config.status.  When coming back to configure, we
24255# need to make the FD available again.
24256if test "$no_create" != yes; then
24257  ac_cs_success=:
24258  ac_config_status_args=
24259  test "$silent" = yes &&
24260    ac_config_status_args="$ac_config_status_args --quiet"
24261  exec 5>/dev/null
24262  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24263  exec 5>>config.log
24264  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24265  # would make configure fail if this is the last instruction.
24266  $ac_cs_success || as_fn_exit 1
24267fi
24268if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24270$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24271fi
24272
24273