xref: /freebsd/contrib/unbound/configure (revision 15f0b8c3)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.17.1.
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.17.1'
595PACKAGE_STRING='unbound 1.17.1'
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
658PROTOC_C
659UBSYMS
660EXTRALINK
661COMMON_OBJ_ALL_SYMBOLS
662LIBOBJ_WITHOUT_CTIME
663LIBOBJ_WITHOUT_CTIMEARC4
664WIN_CHECKCONF_OBJ_LINK
665WIN_CONTROL_OBJ_LINK
666WIN_UBANCHOR_OBJ_LINK
667WIN_HOST_OBJ_LINK
668WIN_DAEMON_OBJ_LINK
669WIN_DAEMON_OBJ
670WIN_DAEMON_SRC
671WINAPPS
672WINDRES
673CHECKLOCK_OBJ
674staticexe
675PC_LIBEVENT_DEPENDENCY
676UNBOUND_EVENT_UNINSTALL
677UNBOUND_EVENT_INSTALL
678SUBNET_HEADER
679SUBNET_OBJ
680PC_LIBBSD_DEPENDENCY
681SSLLIB
682HAVE_SSL
683PC_CRYPTO_DEPENDENCY
684CONFIG_DATE
685GCC_DOCKER_LINTFLAGS
686NETBSD_LINTFLAGS
687PYUNBOUND_UNINSTALL
688PYUNBOUND_INSTALL
689PYUNBOUND_TARGET
690PYUNBOUND_OBJ
691WITH_PYUNBOUND
692PYTHONMOD_UNINSTALL
693PYTHONMOD_INSTALL
694PYTHONMOD_HEADER
695PYTHONMOD_OBJ
696WITH_PYTHONMODULE
697swig
698SWIG_LIB
699SWIG
700PC_PY_DEPENDENCY
701PYTHON_LIBS
702PY_MAJOR_VERSION
703PYTHON_SITE_PKG
704PYTHON_LDFLAGS
705PYTHON_CPPFLAGS
706PYTHON
707PYTHON_VERSION
708DYNLIBMOD_EXTRALIBS
709DYNLIBMOD_HEADER
710DYNLIBMOD_OBJ
711WITH_DYNLIBMODULE
712PTHREAD_CFLAGS_ONLY
713PTHREAD_CFLAGS
714PTHREAD_LIBS
715PTHREAD_CC
716ax_pthread_config
717ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
718SLDNS_ALLOCCHECK_EXTRA_OBJ
719USE_SYSTEMD_FALSE
720USE_SYSTEMD_TRUE
721SYSTEMD_DAEMON_LIBS
722SYSTEMD_DAEMON_CFLAGS
723SYSTEMD_LIBS
724SYSTEMD_CFLAGS
725RUNTIME_PATH
726LIBOBJS
727PKG_CONFIG_LIBDIR
728PKG_CONFIG_PATH
729PKG_CONFIG
730LT_SYS_LIBRARY_PATH
731OTOOL64
732OTOOL
733LIPO
734NMEDIT
735DSYMUTIL
736MANIFEST_TOOL
737AWK
738RANLIB
739ac_ct_AR
740DLLTOOL
741OBJDUMP
742LN_S
743NM
744ac_ct_DUMPBIN
745DUMPBIN
746LD
747FGREP
748SED
749LIBTOOL
750AR
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759libtool
760STRIP
761doxygen
762YFLAGS
763YACC
764LEXLIB
765LEX_OUTPUT_ROOT
766LEX
767debug_enabled
768DEPFLAG
769UNBOUND_USERNAME
770UNBOUND_ROOTCERT_FILE
771UNBOUND_ROOTKEY_FILE
772UNBOUND_PIDFILE
773UNBOUND_SHARE_DIR
774UNBOUND_CHROOT_DIR
775UNBOUND_RUN_DIR
776ub_conf_dir
777ub_conf_file
778UNBOUND_LOCALSTATE_DIR
779UNBOUND_SYSCONF_DIR
780UNBOUND_SBIN_DIR
781EGREP
782GREP
783CPP
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791LIBUNBOUND_AGE
792LIBUNBOUND_REVISION
793LIBUNBOUND_CURRENT
794UNBOUND_VERSION_MICRO
795UNBOUND_VERSION_MINOR
796UNBOUND_VERSION_MAJOR
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816runstatedir
817localstatedir
818sharedstatedir
819sysconfdir
820datadir
821datarootdir
822libexecdir
823sbindir
824bindir
825program_transform_name
826prefix
827exec_prefix
828PACKAGE_URL
829PACKAGE_BUGREPORT
830PACKAGE_STRING
831PACKAGE_VERSION
832PACKAGE_TARNAME
833PACKAGE_NAME
834PATH_SEPARATOR
835SHELL'
836ac_subst_files=''
837ac_user_opts='
838enable_option_checking
839with_conf_file
840with_run_dir
841with_chroot_dir
842with_share_dir
843with_pidfile
844with_rootkey_file
845with_rootcert_file
846with_username
847enable_checking
848enable_debug
849enable_flto
850enable_pie
851enable_relro_now
852enable_shared
853enable_static
854with_pic
855enable_fast_install
856with_aix_soname
857with_gnu_ld
858with_sysroot
859enable_libtool_lock
860enable_rpath
861enable_largefile
862enable_systemd
863enable_alloc_checks
864enable_alloc_lite
865enable_alloc_nonregional
866with_pthreads
867with_solaris_threads
868with_syslog_facility
869with_dynlibmodule
870with_pyunbound
871with_pythonmodule
872enable_swig_version_check
873with_nss
874with_nettle
875with_ssl
876with_libbsd
877enable_sha1
878enable_sha2
879enable_subnet
880enable_gost
881enable_ecdsa
882enable_dsa
883with_deprecate_rsa_1024
884enable_ed25519
885enable_ed448
886enable_event_api
887enable_tfo_client
888enable_tfo_server
889with_libevent
890with_libexpat
891with_libhiredis
892with_libnghttp2
893enable_static_exe
894enable_fully_static
895enable_lock_checks
896enable_allsymbols
897enable_dnstap
898with_dnstap_socket_path
899with_protobuf_c
900enable_dnscrypt
901with_libsodium
902enable_cachedb
903enable_ipsecmod
904enable_ipset
905with_libmnl
906enable_explicit_port_randomisation
907enable_linux_ip_local_port_range
908with_libunbound_only
909'
910      ac_precious_vars='build_alias
911host_alias
912target_alias
913CC
914CFLAGS
915LDFLAGS
916LIBS
917CPPFLAGS
918CPP
919YACC
920YFLAGS
921LT_SYS_LIBRARY_PATH
922PKG_CONFIG
923PKG_CONFIG_PATH
924PKG_CONFIG_LIBDIR
925SYSTEMD_CFLAGS
926SYSTEMD_LIBS
927SYSTEMD_DAEMON_CFLAGS
928SYSTEMD_DAEMON_LIBS
929PYTHON_VERSION'
930
931
932# Initialize some variables set by options.
933ac_init_help=
934ac_init_version=false
935ac_unrecognized_opts=
936ac_unrecognized_sep=
937# The variables have the same names as the options, with
938# dashes changed to underlines.
939cache_file=/dev/null
940exec_prefix=NONE
941no_create=
942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
950verbose=
951x_includes=NONE
952x_libraries=NONE
953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
959# (The list follows the same order as the GNU Coding Standards.)
960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
968runstatedir='${localstatedir}/run'
969includedir='${prefix}/include'
970oldincludedir='/usr/include'
971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972infodir='${datarootdir}/info'
973htmldir='${docdir}'
974dvidir='${docdir}'
975pdfdir='${docdir}'
976psdir='${docdir}'
977libdir='${exec_prefix}/lib'
978localedir='${datarootdir}/locale'
979mandir='${datarootdir}/man'
980
981ac_prev=
982ac_dashdash=
983for ac_option
984do
985  # If the previous option needs an argument, assign it.
986  if test -n "$ac_prev"; then
987    eval $ac_prev=\$ac_option
988    ac_prev=
989    continue
990  fi
991
992  case $ac_option in
993  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994  *=)   ac_optarg= ;;
995  *)    ac_optarg=yes ;;
996  esac
997
998  # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000  case $ac_dashdash$ac_option in
1001  --)
1002    ac_dashdash=yes ;;
1003
1004  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005    ac_prev=bindir ;;
1006  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007    bindir=$ac_optarg ;;
1008
1009  -build | --build | --buil | --bui | --bu)
1010    ac_prev=build_alias ;;
1011  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012    build_alias=$ac_optarg ;;
1013
1014  -cache-file | --cache-file | --cache-fil | --cache-fi \
1015  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016    ac_prev=cache_file ;;
1017  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019    cache_file=$ac_optarg ;;
1020
1021  --config-cache | -C)
1022    cache_file=config.cache ;;
1023
1024  -datadir | --datadir | --datadi | --datad)
1025    ac_prev=datadir ;;
1026  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027    datadir=$ac_optarg ;;
1028
1029  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030  | --dataroo | --dataro | --datar)
1031    ac_prev=datarootdir ;;
1032  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034    datarootdir=$ac_optarg ;;
1035
1036  -disable-* | --disable-*)
1037    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038    # Reject names that are not valid shell variable names.
1039    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040      as_fn_error $? "invalid feature name: $ac_useropt"
1041    ac_useropt_orig=$ac_useropt
1042    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043    case $ac_user_opts in
1044      *"
1045"enable_$ac_useropt"
1046"*) ;;
1047      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048	 ac_unrecognized_sep=', ';;
1049    esac
1050    eval enable_$ac_useropt=no ;;
1051
1052  -docdir | --docdir | --docdi | --doc | --do)
1053    ac_prev=docdir ;;
1054  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055    docdir=$ac_optarg ;;
1056
1057  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058    ac_prev=dvidir ;;
1059  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060    dvidir=$ac_optarg ;;
1061
1062  -enable-* | --enable-*)
1063    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064    # Reject names that are not valid shell variable names.
1065    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066      as_fn_error $? "invalid feature name: $ac_useropt"
1067    ac_useropt_orig=$ac_useropt
1068    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069    case $ac_user_opts in
1070      *"
1071"enable_$ac_useropt"
1072"*) ;;
1073      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074	 ac_unrecognized_sep=', ';;
1075    esac
1076    eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080  | --exec | --exe | --ex)
1081    ac_prev=exec_prefix ;;
1082  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084  | --exec=* | --exe=* | --ex=*)
1085    exec_prefix=$ac_optarg ;;
1086
1087  -gas | --gas | --ga | --g)
1088    # Obsolete; use --with-gas.
1089    with_gas=yes ;;
1090
1091  -help | --help | --hel | --he | -h)
1092    ac_init_help=long ;;
1093  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094    ac_init_help=recursive ;;
1095  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096    ac_init_help=short ;;
1097
1098  -host | --host | --hos | --ho)
1099    ac_prev=host_alias ;;
1100  -host=* | --host=* | --hos=* | --ho=*)
1101    host_alias=$ac_optarg ;;
1102
1103  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104    ac_prev=htmldir ;;
1105  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106  | --ht=*)
1107    htmldir=$ac_optarg ;;
1108
1109  -includedir | --includedir | --includedi | --included | --include \
1110  | --includ | --inclu | --incl | --inc)
1111    ac_prev=includedir ;;
1112  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113  | --includ=* | --inclu=* | --incl=* | --inc=*)
1114    includedir=$ac_optarg ;;
1115
1116  -infodir | --infodir | --infodi | --infod | --info | --inf)
1117    ac_prev=infodir ;;
1118  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119    infodir=$ac_optarg ;;
1120
1121  -libdir | --libdir | --libdi | --libd)
1122    ac_prev=libdir ;;
1123  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124    libdir=$ac_optarg ;;
1125
1126  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127  | --libexe | --libex | --libe)
1128    ac_prev=libexecdir ;;
1129  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130  | --libexe=* | --libex=* | --libe=*)
1131    libexecdir=$ac_optarg ;;
1132
1133  -localedir | --localedir | --localedi | --localed | --locale)
1134    ac_prev=localedir ;;
1135  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136    localedir=$ac_optarg ;;
1137
1138  -localstatedir | --localstatedir | --localstatedi | --localstated \
1139  | --localstate | --localstat | --localsta | --localst | --locals)
1140    ac_prev=localstatedir ;;
1141  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143    localstatedir=$ac_optarg ;;
1144
1145  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146    ac_prev=mandir ;;
1147  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148    mandir=$ac_optarg ;;
1149
1150  -nfp | --nfp | --nf)
1151    # Obsolete; use --without-fp.
1152    with_fp=no ;;
1153
1154  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155  | --no-cr | --no-c | -n)
1156    no_create=yes ;;
1157
1158  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160    no_recursion=yes ;;
1161
1162  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164  | --oldin | --oldi | --old | --ol | --o)
1165    ac_prev=oldincludedir ;;
1166  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169    oldincludedir=$ac_optarg ;;
1170
1171  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172    ac_prev=prefix ;;
1173  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174    prefix=$ac_optarg ;;
1175
1176  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177  | --program-pre | --program-pr | --program-p)
1178    ac_prev=program_prefix ;;
1179  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181    program_prefix=$ac_optarg ;;
1182
1183  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184  | --program-suf | --program-su | --program-s)
1185    ac_prev=program_suffix ;;
1186  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188    program_suffix=$ac_optarg ;;
1189
1190  -program-transform-name | --program-transform-name \
1191  | --program-transform-nam | --program-transform-na \
1192  | --program-transform-n | --program-transform- \
1193  | --program-transform | --program-transfor \
1194  | --program-transfo | --program-transf \
1195  | --program-trans | --program-tran \
1196  | --progr-tra | --program-tr | --program-t)
1197    ac_prev=program_transform_name ;;
1198  -program-transform-name=* | --program-transform-name=* \
1199  | --program-transform-nam=* | --program-transform-na=* \
1200  | --program-transform-n=* | --program-transform-=* \
1201  | --program-transform=* | --program-transfor=* \
1202  | --program-transfo=* | --program-transf=* \
1203  | --program-trans=* | --program-tran=* \
1204  | --progr-tra=* | --program-tr=* | --program-t=*)
1205    program_transform_name=$ac_optarg ;;
1206
1207  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208    ac_prev=pdfdir ;;
1209  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210    pdfdir=$ac_optarg ;;
1211
1212  -psdir | --psdir | --psdi | --psd | --ps)
1213    ac_prev=psdir ;;
1214  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215    psdir=$ac_optarg ;;
1216
1217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218  | -silent | --silent | --silen | --sile | --sil)
1219    silent=yes ;;
1220
1221  -runstatedir | --runstatedir | --runstatedi | --runstated \
1222  | --runstate | --runstat | --runsta | --runst | --runs \
1223  | --run | --ru | --r)
1224    ac_prev=runstatedir ;;
1225  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227  | --run=* | --ru=* | --r=*)
1228    runstatedir=$ac_optarg ;;
1229
1230  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231    ac_prev=sbindir ;;
1232  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233  | --sbi=* | --sb=*)
1234    sbindir=$ac_optarg ;;
1235
1236  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238  | --sharedst | --shareds | --shared | --share | --shar \
1239  | --sha | --sh)
1240    ac_prev=sharedstatedir ;;
1241  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244  | --sha=* | --sh=*)
1245    sharedstatedir=$ac_optarg ;;
1246
1247  -site | --site | --sit)
1248    ac_prev=site ;;
1249  -site=* | --site=* | --sit=*)
1250    site=$ac_optarg ;;
1251
1252  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253    ac_prev=srcdir ;;
1254  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255    srcdir=$ac_optarg ;;
1256
1257  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258  | --syscon | --sysco | --sysc | --sys | --sy)
1259    ac_prev=sysconfdir ;;
1260  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262    sysconfdir=$ac_optarg ;;
1263
1264  -target | --target | --targe | --targ | --tar | --ta | --t)
1265    ac_prev=target_alias ;;
1266  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267    target_alias=$ac_optarg ;;
1268
1269  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270    verbose=yes ;;
1271
1272  -version | --version | --versio | --versi | --vers | -V)
1273    ac_init_version=: ;;
1274
1275  -with-* | --with-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=\$ac_optarg ;;
1290
1291  -without-* | --without-*)
1292    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293    # Reject names that are not valid shell variable names.
1294    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295      as_fn_error $? "invalid package name: $ac_useropt"
1296    ac_useropt_orig=$ac_useropt
1297    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298    case $ac_user_opts in
1299      *"
1300"with_$ac_useropt"
1301"*) ;;
1302      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303	 ac_unrecognized_sep=', ';;
1304    esac
1305    eval with_$ac_useropt=no ;;
1306
1307  --x)
1308    # Obsolete; use --with-x.
1309    with_x=yes ;;
1310
1311  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312  | --x-incl | --x-inc | --x-in | --x-i)
1313    ac_prev=x_includes ;;
1314  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316    x_includes=$ac_optarg ;;
1317
1318  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320    ac_prev=x_libraries ;;
1321  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323    x_libraries=$ac_optarg ;;
1324
1325  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326Try \`$0 --help' for more information"
1327    ;;
1328
1329  *=*)
1330    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331    # Reject names that are not valid shell variable names.
1332    case $ac_envvar in #(
1333      '' | [0-9]* | *[!_$as_cr_alnum]* )
1334      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1335    esac
1336    eval $ac_envvar=\$ac_optarg
1337    export $ac_envvar ;;
1338
1339  *)
1340    # FIXME: should be removed in autoconf 3.0.
1341    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1345    ;;
1346
1347  esac
1348done
1349
1350if test -n "$ac_prev"; then
1351  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352  as_fn_error $? "missing argument to $ac_option"
1353fi
1354
1355if test -n "$ac_unrecognized_opts"; then
1356  case $enable_option_checking in
1357    no) ;;
1358    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360  esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365		datadir sysconfdir sharedstatedir localstatedir includedir \
1366		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367		libdir localedir mandir runstatedir
1368do
1369  eval ac_val=\$$ac_var
1370  # Remove trailing slashes.
1371  case $ac_val in
1372    */ )
1373      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374      eval $ac_var=\$ac_val;;
1375  esac
1376  # Be sure to have absolute directory names.
1377  case $ac_val in
1378    [\\/$]* | ?:[\\/]* )  continue;;
1379    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380  esac
1381  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393  if test "x$build_alias" = x; then
1394    cross_compiling=maybe
1395  elif test "x$build_alias" != "x$host_alias"; then
1396    cross_compiling=yes
1397  fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
1404
1405
1406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409  as_fn_error $? "working directory cannot be determined"
1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411  as_fn_error $? "pwd does not report name of working directory"
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416  ac_srcdir_defaulted=yes
1417  # Try the directory containing this script, then the parent directory.
1418  ac_confdir=`$as_dirname -- "$as_myself" ||
1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420	 X"$as_myself" : 'X\(//\)[^/]' \| \
1421	 X"$as_myself" : 'X\(//\)$' \| \
1422	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423$as_echo X"$as_myself" |
1424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425	    s//\1/
1426	    q
1427	  }
1428	  /^X\(\/\/\)[^/].*/{
1429	    s//\1/
1430	    q
1431	  }
1432	  /^X\(\/\/\)$/{
1433	    s//\1/
1434	    q
1435	  }
1436	  /^X\(\/\).*/{
1437	    s//\1/
1438	    q
1439	  }
1440	  s/.*/./; q'`
1441  srcdir=$ac_confdir
1442  if test ! -r "$srcdir/$ac_unique_file"; then
1443    srcdir=..
1444  fi
1445else
1446  ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451fi
1452ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453ac_abs_confdir=`(
1454	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455	pwd)`
1456# When building in place, set srcdir=.
1457if test "$ac_abs_confdir" = "$ac_pwd"; then
1458  srcdir=.
1459fi
1460# Remove unnecessary trailing slashes from srcdir.
1461# Double slashes in file names in object file debugging info
1462# mess up M-x gdb in Emacs.
1463case $srcdir in
1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465esac
1466for ac_var in $ac_precious_vars; do
1467  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468  eval ac_env_${ac_var}_value=\$${ac_var}
1469  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471done
1472
1473#
1474# Report the --help message.
1475#
1476if test "$ac_init_help" = "long"; then
1477  # Omit some internal or obsolete options to make the list less imposing.
1478  # This message is too long to be a string in the A/UX 3.1 sh.
1479  cat <<_ACEOF
1480\`configure' configures unbound 1.17.1 to adapt to many kinds of systems.
1481
1482Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487Defaults for the options are specified in brackets.
1488
1489Configuration:
1490  -h, --help              display this help and exit
1491      --help=short        display options specific to this package
1492      --help=recursive    display the short help of all the included packages
1493  -V, --version           display version information and exit
1494  -q, --quiet, --silent   do not print \`checking ...' messages
1495      --cache-file=FILE   cache test results in FILE [disabled]
1496  -C, --config-cache      alias for \`--cache-file=config.cache'
1497  -n, --no-create         do not create output files
1498      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500Installation directories:
1501  --prefix=PREFIX         install architecture-independent files in PREFIX
1502                          [$ac_default_prefix]
1503  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                          [PREFIX]
1505
1506By default, \`make install' will install all the files in
1507\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509for instance \`--prefix=\$HOME'.
1510
1511For better control, use the options below.
1512
1513Fine tuning of the installation directories:
1514  --bindir=DIR            user executables [EPREFIX/bin]
1515  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1521  --libdir=DIR            object code libraries [EPREFIX/lib]
1522  --includedir=DIR        C header files [PREFIX/include]
1523  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1524  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1525  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1526  --infodir=DIR           info documentation [DATAROOTDIR/info]
1527  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1528  --mandir=DIR            man documentation [DATAROOTDIR/man]
1529  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1530  --htmldir=DIR           html documentation [DOCDIR]
1531  --dvidir=DIR            dvi documentation [DOCDIR]
1532  --pdfdir=DIR            pdf documentation [DOCDIR]
1533  --psdir=DIR             ps documentation [DOCDIR]
1534_ACEOF
1535
1536  cat <<\_ACEOF
1537
1538System types:
1539  --build=BUILD     configure for building on BUILD [guessed]
1540  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541_ACEOF
1542fi
1543
1544if test -n "$ac_init_help"; then
1545  case $ac_init_help in
1546     short | recursive ) echo "Configuration of unbound 1.17.1:";;
1547   esac
1548  cat <<\_ACEOF
1549
1550Optional Features:
1551  --disable-option-checking  ignore unrecognized --enable/--with options
1552  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554  --enable-checking       Enable warnings, asserts, makefile-dependencies
1555  --enable-debug          same as enable-checking
1556  --disable-flto          Disable link-time optimization (gcc specific option)
1557  --enable-pie            Enable Position-Independent Executable (eg. to fully
1558                          benefit from ASLR, small performance penalty)
1559  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1560                          NOW, to protect GOT and .dtor areas)
1561  --enable-shared[=PKGS]  build shared libraries [default=yes]
1562  --enable-static[=PKGS]  build static libraries [default=yes]
1563  --enable-fast-install[=PKGS]
1564                          optimize for fast installation [default=yes]
1565  --disable-libtool-lock  avoid locking (might break parallel builds)
1566  --disable-rpath         disable hardcoded rpath (default=enabled)
1567  --disable-largefile     omit support for large files
1568  --enable-systemd        compile with systemd support
1569  --enable-alloc-checks   enable to memory allocation statistics, for debug
1570                          purposes
1571  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1572                          purposes
1573  --enable-alloc-nonregional
1574                          enable nonregional allocs, slow but exposes regional
1575                          allocations to other memory purifiers, for debug
1576                          purposes
1577  --disable-swig-version-check
1578                          Disable swig version check to build python modules
1579                          with older swig even though that is unreliable
1580  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1581                          support
1582  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1583  --enable-subnet         Enable client subnet
1584  --disable-gost          Disable GOST support
1585  --disable-ecdsa         Disable ECDSA support
1586  --disable-dsa           Disable DSA support
1587  --disable-ed25519       Disable ED25519 support
1588  --disable-ed448         Disable ED448 support
1589  --enable-event-api      Enable (experimental) pluggable event base
1590                          libunbound API installed to unbound-event.h
1591  --enable-tfo-client     Enable TCP Fast Open for client mode
1592  --enable-tfo-server     Enable TCP Fast Open for server mode
1593  --enable-static-exe     enable to compile executables statically against
1594                          (event) uninstalled libs, for debug purposes
1595  --enable-fully-static   enable to compile fully static
1596  --enable-lock-checks    enable to check lock and unlock calls, for debug
1597                          purposes
1598  --enable-allsymbols     export all symbols from libunbound and link binaries
1599                          to it, smaller install size but libunbound export
1600                          table is polluted by internal symbols
1601  --enable-dnstap         Enable dnstap support (requires protobuf-c)
1602  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1603  --enable-cachedb        enable cachedb module that can use external cache
1604                          storage
1605  --enable-ipsecmod       Enable ipsecmod module that facilitates
1606                          opportunistic IPsec
1607  --enable-ipset          enable ipset module
1608  --disable-explicit-port-randomisation
1609                          disable explicit source port randomisation and rely
1610                          on the kernel to provide random source ports
1611  --enable-linux-ip-local-port-range
1612                          Define this to enable use of
1613                          /proc/sys/net/ipv4/ip_local_port_range as a default
1614                          outgoing port range. This is only for the libunbound
1615                          on Linux and does not affect unbound resolving
1616                          daemon itself. This may severely limit the number of
1617                          available outgoing ports and thus decrease
1618                          randomness. Define this only when the target system
1619                          restricts (e.g. some of SELinux enabled
1620                          distributions) the use of non-ephemeral ports.
1621
1622Optional Packages:
1623  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1624  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1625  --with-conf-file=path   Pathname to the Unbound configuration file
1626  --with-run-dir=path     set default directory to chdir to (by default dir
1627                          part of cfg file)
1628  --with-chroot-dir=path  set default directory to chroot to (by default same
1629                          as run-dir)
1630  --with-share-dir=path   set default directory with shared data (by default
1631                          same as share/unbound)
1632  --with-pidfile=filename set default pathname to unbound pidfile (default
1633                          run-dir/unbound.pid)
1634  --with-rootkey-file=filename
1635                          set default pathname to root key file (default
1636                          run-dir/root.key). This file is read and written.
1637  --with-rootcert-file=filename
1638                          set default pathname to root update certificate file
1639                          (default run-dir/icannbundle.pem). This file need
1640                          not exist if you are content with the builtin.
1641  --with-username=user    set default user that unbound changes to (default
1642                          user is unbound)
1643  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1644                          both]
1645  --with-aix-soname=aix|svr4|both
1646                          shared library versioning (aka "SONAME") variant to
1647                          provide on AIX, [default=aix].
1648  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1649  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1650                          compiler's sysroot if not specified).
1651  --with-pthreads         use pthreads library, or --without-pthreads to
1652                          disable threading support.
1653  --with-solaris-threads  use solaris native thread library.
1654  --with-syslog-facility=LOCAL0 - LOCAL7
1655                          set SYSLOG_FACILITY, default DAEMON
1656  --with-dynlibmodule     build dynamic library module, or
1657                          --without-dynlibmodule to disable it. (default=no)
1658  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1659                          (default=no)
1660  --with-pythonmodule     build Python module, or --without-pythonmodule to
1661                          disable script engine. (default=no)
1662  --with-nss=path         use libnss instead of openssl, installed at path.
1663  --with-nettle=path      use libnettle as crypto library, installed at path.
1664  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1665                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1666                          /usr or specify like /usr/include/openssl11)
1667  --with-libbsd           Use portable libbsd functions
1668  --with-deprecate-rsa-1024
1669                          Deprecate RSA 1024 bit length, makes that an
1670                          unsupported key, for use when OpenSSL FIPS refuses
1671                          1024 bit verification
1672  --with-libevent=pathname
1673                          use libevent (will check /usr/local /opt/local
1674                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1675                          an explicit path). Slower, but allows use of large
1676                          outgoing port ranges.
1677  --with-libexpat=path    specify explicit path for libexpat.
1678  --with-libhiredis=path  specify explicit path for libhiredis.
1679  --with-libnghttp2=path  specify explicit path for libnghttp2.
1680  --with-dnstap-socket-path=pathname
1681                          set default dnstap socket path
1682  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1683  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1684  --with-libmnl=path      specify explicit path for libmnl.
1685  --with-libunbound-only  do not build daemon and tool programs
1686
1687Some influential environment variables:
1688  CC          C compiler command
1689  CFLAGS      C compiler flags
1690  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1691              nonstandard directory <lib dir>
1692  LIBS        libraries to pass to the linker, e.g. -l<library>
1693  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1694              you have headers in a nonstandard directory <include dir>
1695  CPP         C preprocessor
1696  YACC        The `Yet Another Compiler Compiler' implementation to use.
1697              Defaults to the first program found out of: `bison -y', `byacc',
1698              `yacc'.
1699  YFLAGS      The list of arguments that will be passed by default to $YACC.
1700              This script will default YFLAGS to the empty string to avoid a
1701              default value of `-d' given by some make applications.
1702  LT_SYS_LIBRARY_PATH
1703              User-defined run-time library search path.
1704  PKG_CONFIG  path to pkg-config utility
1705  PKG_CONFIG_PATH
1706              directories to add to pkg-config's search path
1707  PKG_CONFIG_LIBDIR
1708              path overriding pkg-config's built-in search path
1709  SYSTEMD_CFLAGS
1710              C compiler flags for SYSTEMD, overriding pkg-config
1711  SYSTEMD_LIBS
1712              linker flags for SYSTEMD, overriding pkg-config
1713  SYSTEMD_DAEMON_CFLAGS
1714              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1715  SYSTEMD_DAEMON_LIBS
1716              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1717  PYTHON_VERSION
1718              The installed Python version to use, for example '2.3'. This
1719              string will be appended to the Python interpreter canonical
1720              name.
1721
1722Use these variables to override the choices made by `configure' or to help
1723it to find libraries and programs with nonstandard names/locations.
1724
1725Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1726_ACEOF
1727ac_status=$?
1728fi
1729
1730if test "$ac_init_help" = "recursive"; then
1731  # If there are subdirs, report their specific --help.
1732  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733    test -d "$ac_dir" ||
1734      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735      continue
1736    ac_builddir=.
1737
1738case "$ac_dir" in
1739.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740*)
1741  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742  # A ".." for each directory in $ac_dir_suffix.
1743  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744  case $ac_top_builddir_sub in
1745  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747  esac ;;
1748esac
1749ac_abs_top_builddir=$ac_pwd
1750ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751# for backward compatibility:
1752ac_top_builddir=$ac_top_build_prefix
1753
1754case $srcdir in
1755  .)  # We are building in place.
1756    ac_srcdir=.
1757    ac_top_srcdir=$ac_top_builddir_sub
1758    ac_abs_top_srcdir=$ac_pwd ;;
1759  [\\/]* | ?:[\\/]* )  # Absolute name.
1760    ac_srcdir=$srcdir$ac_dir_suffix;
1761    ac_top_srcdir=$srcdir
1762    ac_abs_top_srcdir=$srcdir ;;
1763  *) # Relative name.
1764    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765    ac_top_srcdir=$ac_top_build_prefix$srcdir
1766    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767esac
1768ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770    cd "$ac_dir" || { ac_status=$?; continue; }
1771    # Check for guested configure.
1772    if test -f "$ac_srcdir/configure.gnu"; then
1773      echo &&
1774      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775    elif test -f "$ac_srcdir/configure"; then
1776      echo &&
1777      $SHELL "$ac_srcdir/configure" --help=recursive
1778    else
1779      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780    fi || ac_status=$?
1781    cd "$ac_pwd" || { ac_status=$?; break; }
1782  done
1783fi
1784
1785test -n "$ac_init_help" && exit $ac_status
1786if $ac_init_version; then
1787  cat <<\_ACEOF
1788unbound configure 1.17.1
1789generated by GNU Autoconf 2.69
1790
1791Copyright (C) 2012 Free Software Foundation, Inc.
1792This configure script is free software; the Free Software Foundation
1793gives unlimited permission to copy, distribute and modify it.
1794_ACEOF
1795  exit
1796fi
1797
1798## ------------------------ ##
1799## Autoconf initialization. ##
1800## ------------------------ ##
1801
1802# ac_fn_c_try_compile LINENO
1803# --------------------------
1804# Try to compile conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_compile ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  rm -f conftest.$ac_objext
1809  if { { ac_try="$ac_compile"
1810case "(($ac_try" in
1811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812  *) ac_try_echo=$ac_try;;
1813esac
1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815$as_echo "$ac_try_echo"; } >&5
1816  (eval "$ac_compile") 2>conftest.err
1817  ac_status=$?
1818  if test -s conftest.err; then
1819    grep -v '^ *+' conftest.err >conftest.er1
1820    cat conftest.er1 >&5
1821    mv -f conftest.er1 conftest.err
1822  fi
1823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824  test $ac_status = 0; } && {
1825	 test -z "$ac_c_werror_flag" ||
1826	 test ! -s conftest.err
1827       } && test -s conftest.$ac_objext; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836  as_fn_set_status $ac_retval
1837
1838} # ac_fn_c_try_compile
1839
1840# ac_fn_c_try_cpp LINENO
1841# ----------------------
1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_c_try_cpp ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  if { { ac_try="$ac_cpp conftest.$ac_ext"
1847case "(($ac_try" in
1848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849  *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854  ac_status=$?
1855  if test -s conftest.err; then
1856    grep -v '^ *+' conftest.err >conftest.er1
1857    cat conftest.er1 >&5
1858    mv -f conftest.er1 conftest.err
1859  fi
1860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861  test $ac_status = 0; } > conftest.i && {
1862	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863	 test ! -s conftest.err
1864       }; then :
1865  ac_retval=0
1866else
1867  $as_echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870    ac_retval=1
1871fi
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873  as_fn_set_status $ac_retval
1874
1875} # ac_fn_c_try_cpp
1876
1877# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878# -------------------------------------------------------
1879# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880# the include files in INCLUDES and setting the cache variable VAR
1881# accordingly.
1882ac_fn_c_check_header_mongrel ()
1883{
1884  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885  if eval \${$3+:} false; then :
1886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889  $as_echo_n "(cached) " >&6
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894else
1895  # Is the header compilable?
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897$as_echo_n "checking $2 usability... " >&6; }
1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900$4
1901#include <$2>
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904  ac_header_compiler=yes
1905else
1906  ac_header_compiler=no
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910$as_echo "$ac_header_compiler" >&6; }
1911
1912# Is the header present?
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914$as_echo_n "checking $2 presence... " >&6; }
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_cpp "$LINENO"; then :
1920  ac_header_preproc=yes
1921else
1922  ac_header_preproc=no
1923fi
1924rm -f conftest.err conftest.i conftest.$ac_ext
1925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926$as_echo "$ac_header_preproc" >&6; }
1927
1928# So?  What about this header?
1929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1930  yes:no: )
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935    ;;
1936  no:yes:* )
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1940$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1944$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1945    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947( $as_echo "## --------------------------------------------------------------------------------------- ##
1948## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1949## --------------------------------------------------------------------------------------- ##"
1950     ) | sed "s/^/$as_me: WARNING:     /" >&2
1951    ;;
1952esac
1953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954$as_echo_n "checking for $2... " >&6; }
1955if eval \${$3+:} false; then :
1956  $as_echo_n "(cached) " >&6
1957else
1958  eval "$3=\$ac_header_compiler"
1959fi
1960eval ac_res=\$$3
1961	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963fi
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_header_mongrel
1967
1968# ac_fn_c_try_run LINENO
1969# ----------------------
1970# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971# that executables *can* be run.
1972ac_fn_c_try_run ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if { { ac_try="$ac_link"
1976case "(($ac_try" in
1977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978  *) ac_try_echo=$ac_try;;
1979esac
1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981$as_echo "$ac_try_echo"; } >&5
1982  (eval "$ac_link") 2>&5
1983  ac_status=$?
1984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986  { { case "(($ac_try" in
1987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988  *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992  (eval "$ac_try") 2>&5
1993  ac_status=$?
1994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995  test $ac_status = 0; }; }; then :
1996  ac_retval=0
1997else
1998  $as_echo "$as_me: program exited with status $ac_status" >&5
1999       $as_echo "$as_me: failed program was:" >&5
2000sed 's/^/| /' conftest.$ac_ext >&5
2001
2002       ac_retval=$ac_status
2003fi
2004  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006  as_fn_set_status $ac_retval
2007
2008} # ac_fn_c_try_run
2009
2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011# -------------------------------------------------------
2012# Tests whether HEADER exists and can be compiled using the include files in
2013# INCLUDES, setting the cache variable VAR accordingly.
2014ac_fn_c_check_header_compile ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018$as_echo_n "checking for $2... " >&6; }
2019if eval \${$3+:} false; then :
2020  $as_echo_n "(cached) " >&6
2021else
2022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h.  */
2024$4
2025#include <$2>
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028  eval "$3=yes"
2029else
2030  eval "$3=no"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_c_check_header_compile
2040
2041# ac_fn_c_try_link LINENO
2042# -----------------------
2043# Try to link conftest.$ac_ext, and return whether this succeeded.
2044ac_fn_c_try_link ()
2045{
2046  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047  rm -f conftest.$ac_objext conftest$ac_exeext
2048  if { { ac_try="$ac_link"
2049case "(($ac_try" in
2050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051  *) ac_try_echo=$ac_try;;
2052esac
2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054$as_echo "$ac_try_echo"; } >&5
2055  (eval "$ac_link") 2>conftest.err
2056  ac_status=$?
2057  if test -s conftest.err; then
2058    grep -v '^ *+' conftest.err >conftest.er1
2059    cat conftest.er1 >&5
2060    mv -f conftest.er1 conftest.err
2061  fi
2062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063  test $ac_status = 0; } && {
2064	 test -z "$ac_c_werror_flag" ||
2065	 test ! -s conftest.err
2066       } && test -s conftest$ac_exeext && {
2067	 test "$cross_compiling" = yes ||
2068	 test -x conftest$ac_exeext
2069       }; then :
2070  ac_retval=0
2071else
2072  $as_echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075	ac_retval=1
2076fi
2077  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079  # interfere with the next link command; also delete a directory that is
2080  # left behind by Apple's compiler.  We do this before executing the actions.
2081  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083  as_fn_set_status $ac_retval
2084
2085} # ac_fn_c_try_link
2086
2087# ac_fn_c_check_func LINENO FUNC VAR
2088# ----------------------------------
2089# Tests whether FUNC exists, setting the cache variable VAR accordingly
2090ac_fn_c_check_func ()
2091{
2092  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if eval \${$3+:} false; then :
2096  $as_echo_n "(cached) " >&6
2097else
2098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2102#define $2 innocuous_$2
2103
2104/* System header to define __stub macros and hopefully few prototypes,
2105    which can conflict with char $2 (); below.
2106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107    <limits.h> exists even on freestanding compilers.  */
2108
2109#ifdef __STDC__
2110# include <limits.h>
2111#else
2112# include <assert.h>
2113#endif
2114
2115#undef $2
2116
2117/* Override any GCC internal prototype to avoid an error.
2118   Use char because int might match the return type of a GCC
2119   builtin and then its argument prototype would still apply.  */
2120#ifdef __cplusplus
2121extern "C"
2122#endif
2123char $2 ();
2124/* The GNU C library defines this for functions which it implements
2125    to always fail with ENOSYS.  Some functions are actually named
2126    something starting with __ and the normal name is an alias.  */
2127#if defined __stub_$2 || defined __stub___$2
2128choke me
2129#endif
2130
2131int
2132main ()
2133{
2134return $2 ();
2135  ;
2136  return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_link "$LINENO"; then :
2140  eval "$3=yes"
2141else
2142  eval "$3=no"
2143fi
2144rm -f core conftest.err conftest.$ac_objext \
2145    conftest$ac_exeext conftest.$ac_ext
2146fi
2147eval ac_res=\$$3
2148	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149$as_echo "$ac_res" >&6; }
2150  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151
2152} # ac_fn_c_check_func
2153
2154# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155# -------------------------------------------
2156# Tests whether TYPE exists after having included INCLUDES, setting cache
2157# variable VAR accordingly.
2158ac_fn_c_check_type ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162$as_echo_n "checking for $2... " >&6; }
2163if eval \${$3+:} false; then :
2164  $as_echo_n "(cached) " >&6
2165else
2166  eval "$3=no"
2167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h.  */
2169$4
2170int
2171main ()
2172{
2173if (sizeof ($2))
2174	 return 0;
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h.  */
2182$4
2183int
2184main ()
2185{
2186if (sizeof (($2)))
2187	    return 0;
2188  ;
2189  return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193
2194else
2195  eval "$3=yes"
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201eval ac_res=\$$3
2202	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203$as_echo "$ac_res" >&6; }
2204  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205
2206} # ac_fn_c_check_type
2207
2208# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209# --------------------------------------------
2210# Tries to find the compile-time value of EXPR in a program that includes
2211# INCLUDES, setting VAR accordingly. Returns whether the value could be
2212# computed
2213ac_fn_c_compute_int ()
2214{
2215  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216  if test "$cross_compiling" = yes; then
2217    # Depending upon the size, compute the lo and hi bounds.
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h.  */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) >= 0)];
2225test_array [0] = 0;
2226return test_array [0];
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233  ac_lo=0 ac_mid=0
2234  while :; do
2235    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h.  */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242test_array [0] = 0;
2243return test_array [0];
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250  ac_hi=$ac_mid; break
2251else
2252  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253			if test $ac_lo -le $ac_mid; then
2254			  ac_lo= ac_hi=
2255			  break
2256			fi
2257			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2258fi
2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260  done
2261else
2262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h.  */
2264$4
2265int
2266main ()
2267{
2268static int test_array [1 - 2 * !(($2) < 0)];
2269test_array [0] = 0;
2270return test_array [0];
2271
2272  ;
2273  return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277  ac_hi=-1 ac_mid=-1
2278  while :; do
2279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h.  */
2281$4
2282int
2283main ()
2284{
2285static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2286test_array [0] = 0;
2287return test_array [0];
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293if ac_fn_c_try_compile "$LINENO"; then :
2294  ac_lo=$ac_mid; break
2295else
2296  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2297			if test $ac_mid -le $ac_hi; then
2298			  ac_lo= ac_hi=
2299			  break
2300			fi
2301			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304  done
2305else
2306  ac_lo= ac_hi=
2307fi
2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311# Binary search between lo and hi bounds.
2312while test "x$ac_lo" != "x$ac_hi"; do
2313  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315/* end confdefs.h.  */
2316$4
2317int
2318main ()
2319{
2320static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2321test_array [0] = 0;
2322return test_array [0];
2323
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328if ac_fn_c_try_compile "$LINENO"; then :
2329  ac_hi=$ac_mid
2330else
2331  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334done
2335case $ac_lo in #((
2336?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2337'') ac_retval=1 ;;
2338esac
2339  else
2340    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h.  */
2342$4
2343static long int longval () { return $2; }
2344static unsigned long int ulongval () { return $2; }
2345#include <stdio.h>
2346#include <stdlib.h>
2347int
2348main ()
2349{
2350
2351  FILE *f = fopen ("conftest.val", "w");
2352  if (! f)
2353    return 1;
2354  if (($2) < 0)
2355    {
2356      long int i = longval ();
2357      if (i != ($2))
2358	return 1;
2359      fprintf (f, "%ld", i);
2360    }
2361  else
2362    {
2363      unsigned long int i = ulongval ();
2364      if (i != ($2))
2365	return 1;
2366      fprintf (f, "%lu", i);
2367    }
2368  /* Do not output a trailing newline, as this causes \r\n confusion
2369     on some platforms.  */
2370  return ferror (f) || fclose (f) != 0;
2371
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376if ac_fn_c_try_run "$LINENO"; then :
2377  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2378else
2379  ac_retval=1
2380fi
2381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382  conftest.$ac_objext conftest.beam conftest.$ac_ext
2383rm -f conftest.val
2384
2385  fi
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387  as_fn_set_status $ac_retval
2388
2389} # ac_fn_c_compute_int
2390
2391# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2392# ---------------------------------------------
2393# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2394# accordingly.
2395ac_fn_c_check_decl ()
2396{
2397  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398  as_decl_name=`echo $2|sed 's/ *(.*//'`
2399  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402if eval \${$3+:} false; then :
2403  $as_echo_n "(cached) " >&6
2404else
2405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406/* end confdefs.h.  */
2407$4
2408int
2409main ()
2410{
2411#ifndef $as_decl_name
2412#ifdef __cplusplus
2413  (void) $as_decl_use;
2414#else
2415  (void) $as_decl_name;
2416#endif
2417#endif
2418
2419  ;
2420  return 0;
2421}
2422_ACEOF
2423if ac_fn_c_try_compile "$LINENO"; then :
2424  eval "$3=yes"
2425else
2426  eval "$3=no"
2427fi
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429fi
2430eval ac_res=\$$3
2431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432$as_echo "$ac_res" >&6; }
2433  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434
2435} # ac_fn_c_check_decl
2436
2437# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438# ----------------------------------------------------
2439# Tries to find if the field MEMBER exists in type AGGR, after including
2440# INCLUDES, setting cache variable VAR accordingly.
2441ac_fn_c_check_member ()
2442{
2443  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445$as_echo_n "checking for $2.$3... " >&6; }
2446if eval \${$4+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h.  */
2451$5
2452int
2453main ()
2454{
2455static $2 ac_aggr;
2456if (ac_aggr.$3)
2457return 0;
2458  ;
2459  return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463  eval "$4=yes"
2464else
2465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h.  */
2467$5
2468int
2469main ()
2470{
2471static $2 ac_aggr;
2472if (sizeof ac_aggr.$3)
2473return 0;
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479  eval "$4=yes"
2480else
2481  eval "$4=no"
2482fi
2483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487eval ac_res=\$$4
2488	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489$as_echo "$ac_res" >&6; }
2490  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_c_check_member
2493cat >config.log <<_ACEOF
2494This file contains any messages produced by compilers while
2495running configure, to aid debugging if configure makes a mistake.
2496
2497It was created by unbound $as_me 1.17.1, which was
2498generated by GNU Autoconf 2.69.  Invocation command line was
2499
2500  $ $0 $@
2501
2502_ACEOF
2503exec 5>>config.log
2504{
2505cat <<_ASUNAME
2506## --------- ##
2507## Platform. ##
2508## --------- ##
2509
2510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2511uname -m = `(uname -m) 2>/dev/null || echo unknown`
2512uname -r = `(uname -r) 2>/dev/null || echo unknown`
2513uname -s = `(uname -s) 2>/dev/null || echo unknown`
2514uname -v = `(uname -v) 2>/dev/null || echo unknown`
2515
2516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2517/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2518
2519/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2520/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2522/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2523/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2524/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2525/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2526
2527_ASUNAME
2528
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    $as_echo "PATH: $as_dir"
2535  done
2536IFS=$as_save_IFS
2537
2538} >&5
2539
2540cat >&5 <<_ACEOF
2541
2542
2543## ----------- ##
2544## Core tests. ##
2545## ----------- ##
2546
2547_ACEOF
2548
2549
2550# Keep a trace of the command line.
2551# Strip out --no-create and --no-recursion so they do not pile up.
2552# Strip out --silent because we don't want to record it for future runs.
2553# Also quote any args containing shell meta-characters.
2554# Make two passes to allow for proper duplicate-argument suppression.
2555ac_configure_args=
2556ac_configure_args0=
2557ac_configure_args1=
2558ac_must_keep_next=false
2559for ac_pass in 1 2
2560do
2561  for ac_arg
2562  do
2563    case $ac_arg in
2564    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2565    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2566    | -silent | --silent | --silen | --sile | --sil)
2567      continue ;;
2568    *\'*)
2569      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2570    esac
2571    case $ac_pass in
2572    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2573    2)
2574      as_fn_append ac_configure_args1 " '$ac_arg'"
2575      if test $ac_must_keep_next = true; then
2576	ac_must_keep_next=false # Got value, back to normal.
2577      else
2578	case $ac_arg in
2579	  *=* | --config-cache | -C | -disable-* | --disable-* \
2580	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2581	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2582	  | -with-* | --with-* | -without-* | --without-* | --x)
2583	    case "$ac_configure_args0 " in
2584	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2585	    esac
2586	    ;;
2587	  -* ) ac_must_keep_next=true ;;
2588	esac
2589      fi
2590      as_fn_append ac_configure_args " '$ac_arg'"
2591      ;;
2592    esac
2593  done
2594done
2595{ ac_configure_args0=; unset ac_configure_args0;}
2596{ ac_configure_args1=; unset ac_configure_args1;}
2597
2598# When interrupted or exit'd, cleanup temporary files, and complete
2599# config.log.  We remove comments because anyway the quotes in there
2600# would cause problems or look ugly.
2601# WARNING: Use '\'' to represent an apostrophe within the trap.
2602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2603trap 'exit_status=$?
2604  # Save into config.log some information that might help in debugging.
2605  {
2606    echo
2607
2608    $as_echo "## ---------------- ##
2609## Cache variables. ##
2610## ---------------- ##"
2611    echo
2612    # The following way of writing the cache mishandles newlines in values,
2613(
2614  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2615    eval ac_val=\$$ac_var
2616    case $ac_val in #(
2617    *${as_nl}*)
2618      case $ac_var in #(
2619      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2620$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2621      esac
2622      case $ac_var in #(
2623      _ | IFS | as_nl) ;; #(
2624      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2625      *) { eval $ac_var=; unset $ac_var;} ;;
2626      esac ;;
2627    esac
2628  done
2629  (set) 2>&1 |
2630    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2631    *${as_nl}ac_space=\ *)
2632      sed -n \
2633	"s/'\''/'\''\\\\'\'''\''/g;
2634	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2635      ;; #(
2636    *)
2637      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2638      ;;
2639    esac |
2640    sort
2641)
2642    echo
2643
2644    $as_echo "## ----------------- ##
2645## Output variables. ##
2646## ----------------- ##"
2647    echo
2648    for ac_var in $ac_subst_vars
2649    do
2650      eval ac_val=\$$ac_var
2651      case $ac_val in
2652      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2653      esac
2654      $as_echo "$ac_var='\''$ac_val'\''"
2655    done | sort
2656    echo
2657
2658    if test -n "$ac_subst_files"; then
2659      $as_echo "## ------------------- ##
2660## File substitutions. ##
2661## ------------------- ##"
2662      echo
2663      for ac_var in $ac_subst_files
2664      do
2665	eval ac_val=\$$ac_var
2666	case $ac_val in
2667	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668	esac
2669	$as_echo "$ac_var='\''$ac_val'\''"
2670      done | sort
2671      echo
2672    fi
2673
2674    if test -s confdefs.h; then
2675      $as_echo "## ----------- ##
2676## confdefs.h. ##
2677## ----------- ##"
2678      echo
2679      cat confdefs.h
2680      echo
2681    fi
2682    test "$ac_signal" != 0 &&
2683      $as_echo "$as_me: caught signal $ac_signal"
2684    $as_echo "$as_me: exit $exit_status"
2685  } >&5
2686  rm -f core *.core core.conftest.* &&
2687    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2688    exit $exit_status
2689' 0
2690for ac_signal in 1 2 13 15; do
2691  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2692done
2693ac_signal=0
2694
2695# confdefs.h avoids OS command line length limits that DEFS can exceed.
2696rm -f -r conftest* confdefs.h
2697
2698$as_echo "/* confdefs.h */" > confdefs.h
2699
2700# Predefined preprocessor variables.
2701
2702cat >>confdefs.h <<_ACEOF
2703#define PACKAGE_NAME "$PACKAGE_NAME"
2704_ACEOF
2705
2706cat >>confdefs.h <<_ACEOF
2707#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2708_ACEOF
2709
2710cat >>confdefs.h <<_ACEOF
2711#define PACKAGE_VERSION "$PACKAGE_VERSION"
2712_ACEOF
2713
2714cat >>confdefs.h <<_ACEOF
2715#define PACKAGE_STRING "$PACKAGE_STRING"
2716_ACEOF
2717
2718cat >>confdefs.h <<_ACEOF
2719#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2720_ACEOF
2721
2722cat >>confdefs.h <<_ACEOF
2723#define PACKAGE_URL "$PACKAGE_URL"
2724_ACEOF
2725
2726
2727# Let the site file select an alternate cache file if it wants to.
2728# Prefer an explicitly selected file to automatically selected ones.
2729ac_site_file1=NONE
2730ac_site_file2=NONE
2731if test -n "$CONFIG_SITE"; then
2732  # We do not want a PATH search for config.site.
2733  case $CONFIG_SITE in #((
2734    -*)  ac_site_file1=./$CONFIG_SITE;;
2735    */*) ac_site_file1=$CONFIG_SITE;;
2736    *)   ac_site_file1=./$CONFIG_SITE;;
2737  esac
2738elif test "x$prefix" != xNONE; then
2739  ac_site_file1=$prefix/share/config.site
2740  ac_site_file2=$prefix/etc/config.site
2741else
2742  ac_site_file1=$ac_default_prefix/share/config.site
2743  ac_site_file2=$ac_default_prefix/etc/config.site
2744fi
2745for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2746do
2747  test "x$ac_site_file" = xNONE && continue
2748  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2749    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2750$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2751    sed 's/^/| /' "$ac_site_file" >&5
2752    . "$ac_site_file" \
2753      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755as_fn_error $? "failed to load site script $ac_site_file
2756See \`config.log' for more details" "$LINENO" 5; }
2757  fi
2758done
2759
2760if test -r "$cache_file"; then
2761  # Some versions of bash will fail to source /dev/null (special files
2762  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2763  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2764    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2765$as_echo "$as_me: loading cache $cache_file" >&6;}
2766    case $cache_file in
2767      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2768      *)                      . "./$cache_file";;
2769    esac
2770  fi
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2773$as_echo "$as_me: creating cache $cache_file" >&6;}
2774  >$cache_file
2775fi
2776
2777# Check that the precious variables saved in the cache have kept the same
2778# value.
2779ac_cache_corrupted=false
2780for ac_var in $ac_precious_vars; do
2781  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2782  eval ac_new_set=\$ac_env_${ac_var}_set
2783  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2784  eval ac_new_val=\$ac_env_${ac_var}_value
2785  case $ac_old_set,$ac_new_set in
2786    set,)
2787      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2788$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2789      ac_cache_corrupted=: ;;
2790    ,set)
2791      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2792$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2793      ac_cache_corrupted=: ;;
2794    ,);;
2795    *)
2796      if test "x$ac_old_val" != "x$ac_new_val"; then
2797	# differences in whitespace do not lead to failure.
2798	ac_old_val_w=`echo x $ac_old_val`
2799	ac_new_val_w=`echo x $ac_new_val`
2800	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2801	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2802$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2803	  ac_cache_corrupted=:
2804	else
2805	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2806$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2807	  eval $ac_var=\$ac_old_val
2808	fi
2809	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2810$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2811	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2812$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2813      fi;;
2814  esac
2815  # Pass precious variables to config.status.
2816  if test "$ac_new_set" = set; then
2817    case $ac_new_val in
2818    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2819    *) ac_arg=$ac_var=$ac_new_val ;;
2820    esac
2821    case " $ac_configure_args " in
2822      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2823      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2824    esac
2825  fi
2826done
2827if $ac_cache_corrupted; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2831$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2832  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2833fi
2834## -------------------- ##
2835## Main body of script. ##
2836## -------------------- ##
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844
2845UNBOUND_VERSION_MAJOR=1
2846
2847UNBOUND_VERSION_MINOR=17
2848
2849UNBOUND_VERSION_MICRO=1
2850
2851
2852LIBUNBOUND_CURRENT=9
2853LIBUNBOUND_REVISION=21
2854LIBUNBOUND_AGE=1
2855# 1.0.0 had 0:12:0
2856# 1.0.1 had 0:13:0
2857# 1.0.2 had 0:14:0
2858# 1.1.0 had 0:15:0
2859# 1.1.1 had 0:16:0
2860# 1.2.0 had 0:17:0
2861# 1.2.1 had 0:18:0
2862# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2863# 1.3.1 had 1:1:0
2864# 1.3.2 had 1:2:0
2865# 1.3.3 had 1:3:0
2866# 1.3.4 had 1:4:0
2867# 1.4.0-snapshots had 1:5:0
2868# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2869# 1.4.1 had 2:1:0
2870# 1.4.2 had 2:2:0
2871# 1.4.3 had 2:3:0
2872# 1.4.4 had 2:4:0
2873# 1.4.5 had 2:5:0
2874# 1.4.6 had 2:6:0
2875# 1.4.7 had 2:7:0
2876# 1.4.8 had 2:8:0
2877# 1.4.9 had 2:9:0
2878# 1.4.10 had 2:10:0
2879# 1.4.11 had 2:11:0
2880# 1.4.12 had 2:12:0
2881# 1.4.13 had 2:13:0
2882# and 1.4.13p1 and 1.4.13.p2
2883# 1.4.14 had 2:14:0
2884# 1.4.15 had 3:0:1 # adds ub_version()
2885# 1.4.16 had 3:1:1
2886# 1.4.17 had 3:2:1
2887# 1.4.18 had 3:3:1
2888# 1.4.19 had 3:4:1
2889# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2890# 1.4.21 had 4:1:2
2891# 1.4.22 had 4:1:2
2892# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2893# 1.5.1 had 5:3:3
2894# 1.5.2 had 5:5:3
2895# 1.5.3 had 5:6:3
2896# 1.5.4 had 5:7:3
2897# 1.5.5 had 5:8:3
2898# 1.5.6 had 5:9:3
2899# 1.5.7 had 5:10:3
2900# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2901# 1.5.9 had 6:1:4
2902# 1.5.10 had 6:2:4
2903# 1.6.0 had 6:3:4
2904# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2905# 1.6.2 had 7:1:5
2906# 1.6.3 had 7:2:5
2907# 1.6.4 had 7:3:5
2908# 1.6.5 had 7:4:5
2909# 1.6.6 had 7:5:5
2910# 1.6.7 had 7:6:5
2911# 1.6.8 had 7:7:5
2912# 1.7.0 had 7:8:5
2913# 1.7.1 had 7:9:5
2914# 1.7.2 had 7:10:5
2915# 1.7.3 had 7:11:5
2916# 1.8.0 had 8:0:0 # changes the event callback function signature
2917# 1.8.1 had 8:1:0
2918# 1.8.2 had 8:2:0
2919# 1.8.3 had 8:3:0
2920# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2921# 1.9.1 had 9:1:1
2922# 1.9.2 had 9:2:1
2923# 1.9.3 had 9:3:1
2924# 1.9.4 had 9:4:1
2925# 1.9.5 had 9:5:1
2926# 1.9.6 had 9:6:1
2927# 1.10.0 had 9:7:1
2928# 1.10.1 had 9:8:1
2929# 1.11.0 had 9:9:1
2930# 1.12.0 had 9:10:1
2931# 1.13.0 had 9:11:1
2932# 1.13.1 had 9:12:1
2933# 1.13.2 had 9:13:1
2934# 1.14.0 had 9:14:1
2935# 1.15.0 had 9:15:1
2936# 1.16.0 had 9:16:1
2937# 1.16.1 had 9:17:1
2938# 1.16.2 had 9:18:1
2939# 1.16.3 had 9:19:1
2940# 1.17.0 had 9:20:1
2941# 1.17.1 had 9:21:1
2942
2943#   Current  -- the number of the binary API that we're implementing
2944#   Revision -- which iteration of the implementation of the binary
2945#               API are we supplying?
2946#   Age      -- How many previous binary API versions do we also
2947#               support?
2948#
2949# If we release a new version that does not change the binary API,
2950# increment Revision.
2951#
2952# If we release a new version that changes the binary API, but does
2953# not break programs compiled against the old binary API, increment
2954# Current and Age.  Set Revision to 0, since this is the first
2955# implementation of the new API.
2956#
2957# Otherwise, we're changing the binary API and breaking backward
2958# compatibility with old binaries.  Increment Current.  Set Age to 0,
2959# since we're backward compatible with no previous APIs.  Set Revision
2960# to 0 too.
2961
2962
2963
2964
2965
2966cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2967
2968cat >>confdefs.h <<_ACEOF
2969#define CONFCMDLINE "$cmdln"
2970_ACEOF
2971
2972
2973CFLAGS="$CFLAGS"
2974ac_ext=c
2975ac_cpp='$CPP $CPPFLAGS'
2976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979if test -n "$ac_tool_prefix"; then
2980  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2981set dummy ${ac_tool_prefix}gcc; ac_word=$2
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
2984if ${ac_cv_prog_CC+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  if test -n "$CC"; then
2988  ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993  IFS=$as_save_IFS
2994  test -z "$as_dir" && as_dir=.
2995    for ac_exec_ext in '' $ac_executable_extensions; do
2996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002  done
3003IFS=$as_save_IFS
3004
3005fi
3006fi
3007CC=$ac_cv_prog_CC
3008if test -n "$CC"; then
3009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010$as_echo "$CC" >&6; }
3011else
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
3014fi
3015
3016
3017fi
3018if test -z "$ac_cv_prog_CC"; then
3019  ac_ct_CC=$CC
3020  # Extract the first word of "gcc", so it can be a program name with args.
3021set dummy gcc; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if ${ac_cv_prog_ac_ct_CC+:} false; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$ac_ct_CC"; then
3028  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037    ac_cv_prog_ac_ct_CC="gcc"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048if test -n "$ac_ct_CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050$as_echo "$ac_ct_CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056  if test "x$ac_ct_CC" = x; then
3057    CC=""
3058  else
3059    case $cross_compiling:$ac_tool_warned in
3060yes:)
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063ac_tool_warned=yes ;;
3064esac
3065    CC=$ac_ct_CC
3066  fi
3067else
3068  CC="$ac_cv_prog_CC"
3069fi
3070
3071if test -z "$CC"; then
3072          if test -n "$ac_tool_prefix"; then
3073    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3074set dummy ${ac_tool_prefix}cc; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if ${ac_cv_prog_CC+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$CC"; then
3081  ac_cv_prog_CC="$CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_CC="${ac_tool_prefix}cc"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100CC=$ac_cv_prog_CC
3101if test -n "$CC"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103$as_echo "$CC" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110  fi
3111fi
3112if test -z "$CC"; then
3113  # Extract the first word of "cc", so it can be a program name with args.
3114set dummy cc; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if ${ac_cv_prog_CC+:} false; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  if test -n "$CC"; then
3121  ac_cv_prog_CC="$CC" # Let the user override the test.
3122else
3123  ac_prog_rejected=no
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129    for ac_exec_ext in '' $ac_executable_extensions; do
3130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132       ac_prog_rejected=yes
3133       continue
3134     fi
3135    ac_cv_prog_CC="cc"
3136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137    break 2
3138  fi
3139done
3140  done
3141IFS=$as_save_IFS
3142
3143if test $ac_prog_rejected = yes; then
3144  # We found a bogon in the path, so make sure we never use it.
3145  set dummy $ac_cv_prog_CC
3146  shift
3147  if test $# != 0; then
3148    # We chose a different compiler from the bogus one.
3149    # However, it has the same basename, so the bogon will be chosen
3150    # first if we set CC to just the basename; use the full file name.
3151    shift
3152    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3153  fi
3154fi
3155fi
3156fi
3157CC=$ac_cv_prog_CC
3158if test -n "$CC"; then
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160$as_echo "$CC" >&6; }
3161else
3162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163$as_echo "no" >&6; }
3164fi
3165
3166
3167fi
3168if test -z "$CC"; then
3169  if test -n "$ac_tool_prefix"; then
3170  for ac_prog in cl.exe
3171  do
3172    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3173set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175$as_echo_n "checking for $ac_word... " >&6; }
3176if ${ac_cv_prog_CC+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  if test -n "$CC"; then
3180  ac_cv_prog_CC="$CC" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185  IFS=$as_save_IFS
3186  test -z "$as_dir" && as_dir=.
3187    for ac_exec_ext in '' $ac_executable_extensions; do
3188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191    break 2
3192  fi
3193done
3194  done
3195IFS=$as_save_IFS
3196
3197fi
3198fi
3199CC=$ac_cv_prog_CC
3200if test -n "$CC"; then
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202$as_echo "$CC" >&6; }
3203else
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208
3209    test -n "$CC" && break
3210  done
3211fi
3212if test -z "$CC"; then
3213  ac_ct_CC=$CC
3214  for ac_prog in cl.exe
3215do
3216  # Extract the first word of "$ac_prog", so it can be a program name with args.
3217set dummy $ac_prog; ac_word=$2
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
3220if ${ac_cv_prog_ac_ct_CC+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  if test -n "$ac_ct_CC"; then
3224  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231    for ac_exec_ext in '' $ac_executable_extensions; do
3232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233    ac_cv_prog_ac_ct_CC="$ac_prog"
3234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238  done
3239IFS=$as_save_IFS
3240
3241fi
3242fi
3243ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244if test -n "$ac_ct_CC"; then
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246$as_echo "$ac_ct_CC" >&6; }
3247else
3248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250fi
3251
3252
3253  test -n "$ac_ct_CC" && break
3254done
3255
3256  if test "x$ac_ct_CC" = x; then
3257    CC=""
3258  else
3259    case $cross_compiling:$ac_tool_warned in
3260yes:)
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263ac_tool_warned=yes ;;
3264esac
3265    CC=$ac_ct_CC
3266  fi
3267fi
3268
3269fi
3270
3271
3272test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274as_fn_error $? "no acceptable C compiler found in \$PATH
3275See \`config.log' for more details" "$LINENO" 5; }
3276
3277# Provide some information about the compiler.
3278$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3279set X $ac_compile
3280ac_compiler=$2
3281for ac_option in --version -v -V -qversion; do
3282  { { ac_try="$ac_compiler $ac_option >&5"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3290  ac_status=$?
3291  if test -s conftest.err; then
3292    sed '10a\
3293... rest of stderr output deleted ...
3294         10q' conftest.err >conftest.er1
3295    cat conftest.er1 >&5
3296  fi
3297  rm -f conftest.er1 conftest.err
3298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299  test $ac_status = 0; }
3300done
3301
3302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303/* end confdefs.h.  */
3304
3305int
3306main ()
3307{
3308
3309  ;
3310  return 0;
3311}
3312_ACEOF
3313ac_clean_files_save=$ac_clean_files
3314ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315# Try to create an executable without -o first, disregard a.out.
3316# It will help us diagnose broken compilers, and finding out an intuition
3317# of exeext.
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3319$as_echo_n "checking whether the C compiler works... " >&6; }
3320ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3321
3322# The possible output files:
3323ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3324
3325ac_rmfiles=
3326for ac_file in $ac_files
3327do
3328  case $ac_file in
3329    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331  esac
3332done
3333rm -f $ac_rmfiles
3334
3335if { { ac_try="$ac_link_default"
3336case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
3342  (eval "$ac_link_default") 2>&5
3343  ac_status=$?
3344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345  test $ac_status = 0; }; then :
3346  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3349# so that the user can short-circuit this test for compilers unknown to
3350# Autoconf.
3351for ac_file in $ac_files ''
3352do
3353  test -f "$ac_file" || continue
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3356	;;
3357    [ab].out )
3358	# We found the default executable, but exeext='' is most
3359	# certainly right.
3360	break;;
3361    *.* )
3362	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3363	then :; else
3364	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365	fi
3366	# We set ac_cv_exeext here because the later test for it is not
3367	# safe: cross compilers may not add the suffix if given an `-o'
3368	# argument, so we may need to know it at that point already.
3369	# Even if this section looks crufty: it has the advantage of
3370	# actually working.
3371	break;;
3372    * )
3373	break;;
3374  esac
3375done
3376test "$ac_cv_exeext" = no && ac_cv_exeext=
3377
3378else
3379  ac_file=''
3380fi
3381if test -z "$ac_file"; then :
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384$as_echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389as_fn_error 77 "C compiler cannot create executables
3390See \`config.log' for more details" "$LINENO" 5; }
3391else
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393$as_echo "yes" >&6; }
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3396$as_echo_n "checking for C compiler default output file name... " >&6; }
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3398$as_echo "$ac_file" >&6; }
3399ac_exeext=$ac_cv_exeext
3400
3401rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3402ac_clean_files=$ac_clean_files_save
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404$as_echo_n "checking for suffix of executables... " >&6; }
3405if { { ac_try="$ac_link"
3406case "(($ac_try" in
3407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408  *) ac_try_echo=$ac_try;;
3409esac
3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411$as_echo "$ac_try_echo"; } >&5
3412  (eval "$ac_link") 2>&5
3413  ac_status=$?
3414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415  test $ac_status = 0; }; then :
3416  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3417# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3418# work properly (i.e., refer to `conftest.exe'), while it won't with
3419# `rm'.
3420for ac_file in conftest.exe conftest conftest.*; do
3421  test -f "$ac_file" || continue
3422  case $ac_file in
3423    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425	  break;;
3426    * ) break;;
3427  esac
3428done
3429else
3430  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3433See \`config.log' for more details" "$LINENO" 5; }
3434fi
3435rm -f conftest conftest$ac_cv_exeext
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437$as_echo "$ac_cv_exeext" >&6; }
3438
3439rm -f conftest.$ac_ext
3440EXEEXT=$ac_cv_exeext
3441ac_exeext=$EXEEXT
3442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#include <stdio.h>
3445int
3446main ()
3447{
3448FILE *f = fopen ("conftest.out", "w");
3449 return ferror (f) || fclose (f) != 0;
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455ac_clean_files="$ac_clean_files conftest.out"
3456# Check that the compiler produces executables we can run.  If not, either
3457# the compiler is broken, or we cross compile.
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3459$as_echo_n "checking whether we are cross compiling... " >&6; }
3460if test "$cross_compiling" != yes; then
3461  { { ac_try="$ac_link"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_link") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }
3472  if { ac_try='./conftest$ac_cv_exeext'
3473  { { case "(($ac_try" in
3474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475  *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478$as_echo "$ac_try_echo"; } >&5
3479  (eval "$ac_try") 2>&5
3480  ac_status=$?
3481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482  test $ac_status = 0; }; }; then
3483    cross_compiling=no
3484  else
3485    if test "$cross_compiling" = maybe; then
3486	cross_compiling=yes
3487    else
3488	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error $? "cannot run C compiled programs.
3491If you meant to cross compile, use \`--host'.
3492See \`config.log' for more details" "$LINENO" 5; }
3493    fi
3494  fi
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3497$as_echo "$cross_compiling" >&6; }
3498
3499rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3500ac_clean_files=$ac_clean_files_save
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3502$as_echo_n "checking for suffix of object files... " >&6; }
3503if ${ac_cv_objext+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517rm -f conftest.o conftest.obj
3518if { { ac_try="$ac_compile"
3519case "(($ac_try" in
3520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521  *) ac_try_echo=$ac_try;;
3522esac
3523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524$as_echo "$ac_try_echo"; } >&5
3525  (eval "$ac_compile") 2>&5
3526  ac_status=$?
3527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528  test $ac_status = 0; }; then :
3529  for ac_file in conftest.o conftest.obj conftest.*; do
3530  test -f "$ac_file" || continue;
3531  case $ac_file in
3532    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3533    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3534       break;;
3535  esac
3536done
3537else
3538  $as_echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "cannot compute suffix of object files: cannot compile
3544See \`config.log' for more details" "$LINENO" 5; }
3545fi
3546rm -f conftest.$ac_cv_objext conftest.$ac_ext
3547fi
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3549$as_echo "$ac_cv_objext" >&6; }
3550OBJEXT=$ac_cv_objext
3551ac_objext=$OBJEXT
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3553$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554if ${ac_cv_c_compiler_gnu+:} false; then :
3555  $as_echo_n "(cached) " >&6
3556else
3557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563#ifndef __GNUC__
3564       choke me
3565#endif
3566
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572  ac_compiler_gnu=yes
3573else
3574  ac_compiler_gnu=no
3575fi
3576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3581$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582if test $ac_compiler_gnu = yes; then
3583  GCC=yes
3584else
3585  GCC=
3586fi
3587ac_test_CFLAGS=${CFLAGS+set}
3588ac_save_CFLAGS=$CFLAGS
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3590$as_echo_n "checking whether $CC accepts -g... " >&6; }
3591if ${ac_cv_prog_cc_g+:} false; then :
3592  $as_echo_n "(cached) " >&6
3593else
3594  ac_save_c_werror_flag=$ac_c_werror_flag
3595   ac_c_werror_flag=yes
3596   ac_cv_prog_cc_g=no
3597   CFLAGS="-g"
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h.  */
3600
3601int
3602main ()
3603{
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609if ac_fn_c_try_compile "$LINENO"; then :
3610  ac_cv_prog_cc_g=yes
3611else
3612  CFLAGS=""
3613      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624if ac_fn_c_try_compile "$LINENO"; then :
3625
3626else
3627  ac_c_werror_flag=$ac_save_c_werror_flag
3628	 CFLAGS="-g"
3629	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631
3632int
3633main ()
3634{
3635
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640if ac_fn_c_try_compile "$LINENO"; then :
3641  ac_cv_prog_cc_g=yes
3642fi
3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644fi
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646fi
3647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648   ac_c_werror_flag=$ac_save_c_werror_flag
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3651$as_echo "$ac_cv_prog_cc_g" >&6; }
3652if test "$ac_test_CFLAGS" = set; then
3653  CFLAGS=$ac_save_CFLAGS
3654elif test $ac_cv_prog_cc_g = yes; then
3655  if test "$GCC" = yes; then
3656    CFLAGS="-g -O2"
3657  else
3658    CFLAGS="-g"
3659  fi
3660else
3661  if test "$GCC" = yes; then
3662    CFLAGS="-O2"
3663  else
3664    CFLAGS=
3665  fi
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3668$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3669if ${ac_cv_prog_cc_c89+:} false; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  ac_cv_prog_cc_c89=no
3673ac_save_CC=$CC
3674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676#include <stdarg.h>
3677#include <stdio.h>
3678struct stat;
3679/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3680struct buf { int x; };
3681FILE * (*rcsopen) (struct buf *, struct stat *, int);
3682static char *e (p, i)
3683     char **p;
3684     int i;
3685{
3686  return p[i];
3687}
3688static char *f (char * (*g) (char **, int), char **p, ...)
3689{
3690  char *s;
3691  va_list v;
3692  va_start (v,p);
3693  s = g (p, va_arg (v,int));
3694  va_end (v);
3695  return s;
3696}
3697
3698/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3699   function prototypes and stuff, but not '\xHH' hex character constants.
3700   These don't provoke an error unfortunately, instead are silently treated
3701   as 'x'.  The following induces an error, until -std is added to get
3702   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3703   array size at least.  It's necessary to write '\x00'==0 to get something
3704   that's true only with -std.  */
3705int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706
3707/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3708   inside strings and character constants.  */
3709#define FOO(x) 'x'
3710int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711
3712int test (int i, double x);
3713struct s1 {int (*f) (int a);};
3714struct s2 {int (*f) (double a);};
3715int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3716int argc;
3717char **argv;
3718int
3719main ()
3720{
3721return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3727	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728do
3729  CC="$ac_save_CC $ac_arg"
3730  if ac_fn_c_try_compile "$LINENO"; then :
3731  ac_cv_prog_cc_c89=$ac_arg
3732fi
3733rm -f core conftest.err conftest.$ac_objext
3734  test "x$ac_cv_prog_cc_c89" != "xno" && break
3735done
3736rm -f conftest.$ac_ext
3737CC=$ac_save_CC
3738
3739fi
3740# AC_CACHE_VAL
3741case "x$ac_cv_prog_cc_c89" in
3742  x)
3743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744$as_echo "none needed" >&6; } ;;
3745  xno)
3746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3747$as_echo "unsupported" >&6; } ;;
3748  *)
3749    CC="$CC $ac_cv_prog_cc_c89"
3750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3751$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3752esac
3753if test "x$ac_cv_prog_cc_c89" != xno; then :
3754
3755fi
3756
3757ac_ext=c
3758ac_cpp='$CPP $CPPFLAGS'
3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
3763
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3770$as_echo_n "checking how to run the C preprocessor... " >&6; }
3771# On Suns, sometimes $CPP names a directory.
3772if test -n "$CPP" && test -d "$CPP"; then
3773  CPP=
3774fi
3775if test -z "$CPP"; then
3776  if ${ac_cv_prog_CPP+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779      # Double quotes because CPP needs to be expanded
3780    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781    do
3782      ac_preproc_ok=false
3783for ac_c_preproc_warn_flag in '' yes
3784do
3785  # Use a header file that comes with gcc, so configuring glibc
3786  # with a fresh cross-compiler works.
3787  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788  # <limits.h> exists even on freestanding compilers.
3789  # On the NeXT, cc -E runs the code through the compiler's parser,
3790  # not just through cpp. "Syntax error" is here to catch this case.
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793#ifdef __STDC__
3794# include <limits.h>
3795#else
3796# include <assert.h>
3797#endif
3798		     Syntax error
3799_ACEOF
3800if ac_fn_c_try_cpp "$LINENO"; then :
3801
3802else
3803  # Broken: fails on valid input.
3804continue
3805fi
3806rm -f conftest.err conftest.i conftest.$ac_ext
3807
3808  # OK, works on sane cases.  Now check whether nonexistent headers
3809  # can be detected and how.
3810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811/* end confdefs.h.  */
3812#include <ac_nonexistent.h>
3813_ACEOF
3814if ac_fn_c_try_cpp "$LINENO"; then :
3815  # Broken: success on invalid input.
3816continue
3817else
3818  # Passes both tests.
3819ac_preproc_ok=:
3820break
3821fi
3822rm -f conftest.err conftest.i conftest.$ac_ext
3823
3824done
3825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826rm -f conftest.i conftest.err conftest.$ac_ext
3827if $ac_preproc_ok; then :
3828  break
3829fi
3830
3831    done
3832    ac_cv_prog_CPP=$CPP
3833
3834fi
3835  CPP=$ac_cv_prog_CPP
3836else
3837  ac_cv_prog_CPP=$CPP
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3840$as_echo "$CPP" >&6; }
3841ac_preproc_ok=false
3842for ac_c_preproc_warn_flag in '' yes
3843do
3844  # Use a header file that comes with gcc, so configuring glibc
3845  # with a fresh cross-compiler works.
3846  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847  # <limits.h> exists even on freestanding compilers.
3848  # On the NeXT, cc -E runs the code through the compiler's parser,
3849  # not just through cpp. "Syntax error" is here to catch this case.
3850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851/* end confdefs.h.  */
3852#ifdef __STDC__
3853# include <limits.h>
3854#else
3855# include <assert.h>
3856#endif
3857		     Syntax error
3858_ACEOF
3859if ac_fn_c_try_cpp "$LINENO"; then :
3860
3861else
3862  # Broken: fails on valid input.
3863continue
3864fi
3865rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867  # OK, works on sane cases.  Now check whether nonexistent headers
3868  # can be detected and how.
3869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871#include <ac_nonexistent.h>
3872_ACEOF
3873if ac_fn_c_try_cpp "$LINENO"; then :
3874  # Broken: success on invalid input.
3875continue
3876else
3877  # Passes both tests.
3878ac_preproc_ok=:
3879break
3880fi
3881rm -f conftest.err conftest.i conftest.$ac_ext
3882
3883done
3884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885rm -f conftest.i conftest.err conftest.$ac_ext
3886if $ac_preproc_ok; then :
3887
3888else
3889  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3892See \`config.log' for more details" "$LINENO" 5; }
3893fi
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3903$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3904if ${ac_cv_path_GREP+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  if test -z "$GREP"; then
3908  ac_path_GREP_found=false
3909  # Loop through the user's path and test for each of PROGNAME-LIST
3910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915    for ac_prog in grep ggrep; do
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3918      as_fn_executable_p "$ac_path_GREP" || continue
3919# Check for GNU ac_path_GREP and select it if it is found.
3920  # Check for GNU $ac_path_GREP
3921case `"$ac_path_GREP" --version 2>&1` in
3922*GNU*)
3923  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3924*)
3925  ac_count=0
3926  $as_echo_n 0123456789 >"conftest.in"
3927  while :
3928  do
3929    cat "conftest.in" "conftest.in" >"conftest.tmp"
3930    mv "conftest.tmp" "conftest.in"
3931    cp "conftest.in" "conftest.nl"
3932    $as_echo 'GREP' >> "conftest.nl"
3933    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3934    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3935    as_fn_arith $ac_count + 1 && ac_count=$as_val
3936    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3937      # Best one so far, save it but keep looking for a better one
3938      ac_cv_path_GREP="$ac_path_GREP"
3939      ac_path_GREP_max=$ac_count
3940    fi
3941    # 10*(2^10) chars as input seems more than enough
3942    test $ac_count -gt 10 && break
3943  done
3944  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3945esac
3946
3947      $ac_path_GREP_found && break 3
3948    done
3949  done
3950  done
3951IFS=$as_save_IFS
3952  if test -z "$ac_cv_path_GREP"; then
3953    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3954  fi
3955else
3956  ac_cv_path_GREP=$GREP
3957fi
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3961$as_echo "$ac_cv_path_GREP" >&6; }
3962 GREP="$ac_cv_path_GREP"
3963
3964
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3966$as_echo_n "checking for egrep... " >&6; }
3967if ${ac_cv_path_EGREP+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3971   then ac_cv_path_EGREP="$GREP -E"
3972   else
3973     if test -z "$EGREP"; then
3974  ac_path_EGREP_found=false
3975  # Loop through the user's path and test for each of PROGNAME-LIST
3976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978do
3979  IFS=$as_save_IFS
3980  test -z "$as_dir" && as_dir=.
3981    for ac_prog in egrep; do
3982    for ac_exec_ext in '' $ac_executable_extensions; do
3983      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984      as_fn_executable_p "$ac_path_EGREP" || continue
3985# Check for GNU ac_path_EGREP and select it if it is found.
3986  # Check for GNU $ac_path_EGREP
3987case `"$ac_path_EGREP" --version 2>&1` in
3988*GNU*)
3989  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990*)
3991  ac_count=0
3992  $as_echo_n 0123456789 >"conftest.in"
3993  while :
3994  do
3995    cat "conftest.in" "conftest.in" >"conftest.tmp"
3996    mv "conftest.tmp" "conftest.in"
3997    cp "conftest.in" "conftest.nl"
3998    $as_echo 'EGREP' >> "conftest.nl"
3999    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001    as_fn_arith $ac_count + 1 && ac_count=$as_val
4002    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003      # Best one so far, save it but keep looking for a better one
4004      ac_cv_path_EGREP="$ac_path_EGREP"
4005      ac_path_EGREP_max=$ac_count
4006    fi
4007    # 10*(2^10) chars as input seems more than enough
4008    test $ac_count -gt 10 && break
4009  done
4010  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011esac
4012
4013      $ac_path_EGREP_found && break 3
4014    done
4015  done
4016  done
4017IFS=$as_save_IFS
4018  if test -z "$ac_cv_path_EGREP"; then
4019    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4020  fi
4021else
4022  ac_cv_path_EGREP=$EGREP
4023fi
4024
4025   fi
4026fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4028$as_echo "$ac_cv_path_EGREP" >&6; }
4029 EGREP="$ac_cv_path_EGREP"
4030
4031
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4033$as_echo_n "checking for ANSI C header files... " >&6; }
4034if ${ac_cv_header_stdc+:} false; then :
4035  $as_echo_n "(cached) " >&6
4036else
4037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h.  */
4039#include <stdlib.h>
4040#include <stdarg.h>
4041#include <string.h>
4042#include <float.h>
4043
4044int
4045main ()
4046{
4047
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052if ac_fn_c_try_compile "$LINENO"; then :
4053  ac_cv_header_stdc=yes
4054else
4055  ac_cv_header_stdc=no
4056fi
4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058
4059if test $ac_cv_header_stdc = yes; then
4060  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063#include <string.h>
4064
4065_ACEOF
4066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4067  $EGREP "memchr" >/dev/null 2>&1; then :
4068
4069else
4070  ac_cv_header_stdc=no
4071fi
4072rm -f conftest*
4073
4074fi
4075
4076if test $ac_cv_header_stdc = yes; then
4077  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080#include <stdlib.h>
4081
4082_ACEOF
4083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084  $EGREP "free" >/dev/null 2>&1; then :
4085
4086else
4087  ac_cv_header_stdc=no
4088fi
4089rm -f conftest*
4090
4091fi
4092
4093if test $ac_cv_header_stdc = yes; then
4094  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4095  if test "$cross_compiling" = yes; then :
4096  :
4097else
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100#include <ctype.h>
4101#include <stdlib.h>
4102#if ((' ' & 0x0FF) == 0x020)
4103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4105#else
4106# define ISLOWER(c) \
4107		   (('a' <= (c) && (c) <= 'i') \
4108		     || ('j' <= (c) && (c) <= 'r') \
4109		     || ('s' <= (c) && (c) <= 'z'))
4110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4111#endif
4112
4113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4114int
4115main ()
4116{
4117  int i;
4118  for (i = 0; i < 256; i++)
4119    if (XOR (islower (i), ISLOWER (i))
4120	|| toupper (i) != TOUPPER (i))
4121      return 2;
4122  return 0;
4123}
4124_ACEOF
4125if ac_fn_c_try_run "$LINENO"; then :
4126
4127else
4128  ac_cv_header_stdc=no
4129fi
4130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4131  conftest.$ac_objext conftest.beam conftest.$ac_ext
4132fi
4133
4134fi
4135fi
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4137$as_echo "$ac_cv_header_stdc" >&6; }
4138if test $ac_cv_header_stdc = yes; then
4139
4140$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4141
4142fi
4143
4144# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4145for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4146		  inttypes.h stdint.h unistd.h
4147do :
4148  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4150"
4151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4152  cat >>confdefs.h <<_ACEOF
4153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4154_ACEOF
4155
4156fi
4157
4158done
4159
4160
4161
4162  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4163if test "x$ac_cv_header_minix_config_h" = xyes; then :
4164  MINIX=yes
4165else
4166  MINIX=
4167fi
4168
4169
4170  if test "$MINIX" = yes; then
4171
4172$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4173
4174
4175$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4176
4177
4178$as_echo "#define _MINIX 1" >>confdefs.h
4179
4180  fi
4181
4182
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4184$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4185if ${ac_cv_safe_to_define___extensions__+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189/* end confdefs.h.  */
4190
4191#         define __EXTENSIONS__ 1
4192          $ac_includes_default
4193int
4194main ()
4195{
4196
4197  ;
4198  return 0;
4199}
4200_ACEOF
4201if ac_fn_c_try_compile "$LINENO"; then :
4202  ac_cv_safe_to_define___extensions__=yes
4203else
4204  ac_cv_safe_to_define___extensions__=no
4205fi
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4209$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4210  test $ac_cv_safe_to_define___extensions__ = yes &&
4211    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4212
4213  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4214
4215  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4216
4217  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4218
4219  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4220
4221
4222if test "$ac_cv_header_minix_config_h" = "yes"; then
4223
4224$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4225
4226fi
4227
4228case "$prefix" in
4229        NONE)
4230		prefix="/usr/local"
4231        ;;
4232esac
4233case "$exec_prefix" in
4234        NONE)
4235		exec_prefix="$prefix"
4236        ;;
4237esac
4238
4239# are we on MinGW?
4240if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4241else
4242	if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4243	else on_mingw="no"; fi
4244fi
4245
4246#
4247# Determine configuration file
4248# the eval is to evaluate shell expansion twice
4249UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4250
4251UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4252
4253UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4254
4255if test $on_mingw = "no"; then
4256  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4257else
4258  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4259fi
4260
4261# Check whether --with-conf_file was given.
4262if test "${with_conf_file+set}" = set; then :
4263  withval=$with_conf_file; ub_conf_file="$withval"
4264fi
4265
4266
4267hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4268
4269
4270cat >>confdefs.h <<_ACEOF
4271#define CONFIGFILE "$hdr_config"
4272_ACEOF
4273
4274ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4275$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4276	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4277	 X"$ub_conf_file" : 'X\(//\)$' \| \
4278	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4279$as_echo X"$ub_conf_file" |
4280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4281	    s//\1/
4282	    q
4283	  }
4284	  /^X\(\/\/\)[^/].*/{
4285	    s//\1/
4286	    q
4287	  }
4288	  /^X\(\/\/\)$/{
4289	    s//\1/
4290	    q
4291	  }
4292	  /^X\(\/\).*/{
4293	    s//\1/
4294	    q
4295	  }
4296	  s/.*/./; q'`
4297
4298
4299# Determine run, chroot directory and pidfile locations
4300
4301# Check whether --with-run-dir was given.
4302if test "${with_run_dir+set}" = set; then :
4303  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4304else
4305  if test $on_mingw = no; then
4306    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4307else
4308    UNBOUND_RUN_DIR=""
4309fi
4310
4311fi
4312
4313
4314hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4315
4316
4317cat >>confdefs.h <<_ACEOF
4318#define RUN_DIR "$hdr_run"
4319_ACEOF
4320
4321
4322
4323# Check whether --with-chroot-dir was given.
4324if test "${with_chroot_dir+set}" = set; then :
4325  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4326else
4327  if test $on_mingw = no; then
4328    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4329else
4330    UNBOUND_CHROOT_DIR=""
4331fi
4332
4333fi
4334
4335
4336hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4337
4338
4339cat >>confdefs.h <<_ACEOF
4340#define CHROOT_DIR "$hdr_chroot"
4341_ACEOF
4342
4343
4344
4345# Check whether --with-share-dir was given.
4346if test "${with_share_dir+set}" = set; then :
4347  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4348else
4349  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4350fi
4351
4352
4353
4354cat >>confdefs.h <<_ACEOF
4355#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4356_ACEOF
4357
4358
4359
4360# Check whether --with-pidfile was given.
4361if test "${with_pidfile+set}" = set; then :
4362  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4363else
4364  if test $on_mingw = no; then
4365    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4366else
4367    UNBOUND_PIDFILE=""
4368fi
4369
4370fi
4371
4372
4373hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4374
4375
4376cat >>confdefs.h <<_ACEOF
4377#define PIDFILE "$hdr_pid"
4378_ACEOF
4379
4380
4381
4382# Check whether --with-rootkey-file was given.
4383if test "${with_rootkey_file+set}" = set; then :
4384  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4385else
4386  if test $on_mingw = no; then
4387    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4388else
4389    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4390fi
4391
4392fi
4393
4394
4395hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4396
4397
4398cat >>confdefs.h <<_ACEOF
4399#define ROOT_ANCHOR_FILE "$hdr_rkey"
4400_ACEOF
4401
4402
4403
4404# Check whether --with-rootcert-file was given.
4405if test "${with_rootcert_file+set}" = set; then :
4406  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4407else
4408  if test $on_mingw = no; then
4409    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4410else
4411    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4412fi
4413
4414fi
4415
4416
4417hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4418
4419
4420cat >>confdefs.h <<_ACEOF
4421#define ROOT_CERT_FILE "$hdr_rpem"
4422_ACEOF
4423
4424
4425
4426# Check whether --with-username was given.
4427if test "${with_username+set}" = set; then :
4428  withval=$with_username; UNBOUND_USERNAME="$withval"
4429else
4430  UNBOUND_USERNAME="unbound"
4431fi
4432
4433
4434
4435cat >>confdefs.h <<_ACEOF
4436#define UB_USERNAME "$UNBOUND_USERNAME"
4437_ACEOF
4438
4439
4440
4441$as_echo "#define WINVER 0x0502" >>confdefs.h
4442
4443wnvs=`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/' `
4444
4445
4446cat >>confdefs.h <<_ACEOF
4447#define RSRC_PACKAGE_VERSION $wnvs
4448_ACEOF
4449
4450
4451# Checks for typedefs, structures, and compiler characteristics.
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4453$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4454if ${ac_cv_c_const+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459
4460int
4461main ()
4462{
4463
4464#ifndef __cplusplus
4465  /* Ultrix mips cc rejects this sort of thing.  */
4466  typedef int charset[2];
4467  const charset cs = { 0, 0 };
4468  /* SunOS 4.1.1 cc rejects this.  */
4469  char const *const *pcpcc;
4470  char **ppc;
4471  /* NEC SVR4.0.2 mips cc rejects this.  */
4472  struct point {int x, y;};
4473  static struct point const zero = {0,0};
4474  /* AIX XL C 1.02.0.0 rejects this.
4475     It does not let you subtract one const X* pointer from another in
4476     an arm of an if-expression whose if-part is not a constant
4477     expression */
4478  const char *g = "string";
4479  pcpcc = &g + (g ? g-g : 0);
4480  /* HPUX 7.0 cc rejects these. */
4481  ++pcpcc;
4482  ppc = (char**) pcpcc;
4483  pcpcc = (char const *const *) ppc;
4484  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4485    char tx;
4486    char *t = &tx;
4487    char const *s = 0 ? (char *) 0 : (char const *) 0;
4488
4489    *t++ = 0;
4490    if (s) return 0;
4491  }
4492  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4493    int x[] = {25, 17};
4494    const int *foo = &x[0];
4495    ++foo;
4496  }
4497  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4498    typedef const int *iptr;
4499    iptr p = 0;
4500    ++p;
4501  }
4502  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4503       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4504    struct s { int j; const int *ap[3]; } bx;
4505    struct s *b = &bx; b->j = 5;
4506  }
4507  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4508    const int foo = 10;
4509    if (!foo) return 0;
4510  }
4511  return !cs[0] && !zero.x;
4512#endif
4513
4514  ;
4515  return 0;
4516}
4517_ACEOF
4518if ac_fn_c_try_compile "$LINENO"; then :
4519  ac_cv_c_const=yes
4520else
4521  ac_cv_c_const=no
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4526$as_echo "$ac_cv_c_const" >&6; }
4527if test $ac_cv_c_const = no; then
4528
4529$as_echo "#define const /**/" >>confdefs.h
4530
4531fi
4532
4533ac_ext=c
4534ac_cpp='$CPP $CPPFLAGS'
4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539# allow user to override the -g -O2 flags.
4540default_cflags=no
4541if test "x$CFLAGS" = "x" ; then
4542
4543
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4545$as_echo_n "checking whether $CC supports -g... " >&6; }
4546cache=`echo g | sed 'y%.=/+-%___p_%'`
4547if eval \${cv_prog_cc_flag_$cache+:} false; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550
4551echo 'void f(void){}' >conftest.c
4552if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4553eval "cv_prog_cc_flag_$cache=yes"
4554else
4555eval "cv_prog_cc_flag_$cache=no"
4556fi
4557rm -f conftest conftest.o conftest.c
4558
4559fi
4560
4561if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563$as_echo "yes" >&6; }
4564:
4565CFLAGS="$CFLAGS -g"
4566else
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
4569:
4570
4571fi
4572
4573
4574
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4576$as_echo_n "checking whether $CC supports -O2... " >&6; }
4577cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4578if eval \${cv_prog_cc_flag_$cache+:} false; then :
4579  $as_echo_n "(cached) " >&6
4580else
4581
4582echo 'void f(void){}' >conftest.c
4583if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4584eval "cv_prog_cc_flag_$cache=yes"
4585else
4586eval "cv_prog_cc_flag_$cache=no"
4587fi
4588rm -f conftest conftest.o conftest.c
4589
4590fi
4591
4592if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594$as_echo "yes" >&6; }
4595:
4596CFLAGS="$CFLAGS -O2"
4597else
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
4600:
4601
4602fi
4603
4604default_cflags=yes
4605fi
4606ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611if test -n "$ac_tool_prefix"; then
4612  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615$as_echo_n "checking for $ac_word... " >&6; }
4616if ${ac_cv_prog_CC+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test -n "$CC"; then
4620  ac_cv_prog_CC="$CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625  IFS=$as_save_IFS
4626  test -z "$as_dir" && as_dir=.
4627    for ac_exec_ext in '' $ac_executable_extensions; do
4628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631    break 2
4632  fi
4633done
4634  done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639CC=$ac_cv_prog_CC
4640if test -n "$CC"; then
4641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4642$as_echo "$CC" >&6; }
4643else
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645$as_echo "no" >&6; }
4646fi
4647
4648
4649fi
4650if test -z "$ac_cv_prog_CC"; then
4651  ac_ct_CC=$CC
4652  # Extract the first word of "gcc", so it can be a program name with args.
4653set dummy gcc; ac_word=$2
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655$as_echo_n "checking for $ac_word... " >&6; }
4656if ${ac_cv_prog_ac_ct_CC+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  if test -n "$ac_ct_CC"; then
4660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665  IFS=$as_save_IFS
4666  test -z "$as_dir" && as_dir=.
4667    for ac_exec_ext in '' $ac_executable_extensions; do
4668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669    ac_cv_prog_ac_ct_CC="gcc"
4670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674  done
4675IFS=$as_save_IFS
4676
4677fi
4678fi
4679ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680if test -n "$ac_ct_CC"; then
4681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682$as_echo "$ac_ct_CC" >&6; }
4683else
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685$as_echo "no" >&6; }
4686fi
4687
4688  if test "x$ac_ct_CC" = x; then
4689    CC=""
4690  else
4691    case $cross_compiling:$ac_tool_warned in
4692yes:)
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695ac_tool_warned=yes ;;
4696esac
4697    CC=$ac_ct_CC
4698  fi
4699else
4700  CC="$ac_cv_prog_CC"
4701fi
4702
4703if test -z "$CC"; then
4704          if test -n "$ac_tool_prefix"; then
4705    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}cc; ac_word=$2
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708$as_echo_n "checking for $ac_word... " >&6; }
4709if ${ac_cv_prog_CC+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if test -n "$CC"; then
4713  ac_cv_prog_CC="$CC" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720    for ac_exec_ext in '' $ac_executable_extensions; do
4721  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722    ac_cv_prog_CC="${ac_tool_prefix}cc"
4723    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727  done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732CC=$ac_cv_prog_CC
4733if test -n "$CC"; then
4734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735$as_echo "$CC" >&6; }
4736else
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738$as_echo "no" >&6; }
4739fi
4740
4741
4742  fi
4743fi
4744if test -z "$CC"; then
4745  # Extract the first word of "cc", so it can be a program name with args.
4746set dummy cc; ac_word=$2
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748$as_echo_n "checking for $ac_word... " >&6; }
4749if ${ac_cv_prog_CC+:} false; then :
4750  $as_echo_n "(cached) " >&6
4751else
4752  if test -n "$CC"; then
4753  ac_cv_prog_CC="$CC" # Let the user override the test.
4754else
4755  ac_prog_rejected=no
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761    for ac_exec_ext in '' $ac_executable_extensions; do
4762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764       ac_prog_rejected=yes
4765       continue
4766     fi
4767    ac_cv_prog_CC="cc"
4768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769    break 2
4770  fi
4771done
4772  done
4773IFS=$as_save_IFS
4774
4775if test $ac_prog_rejected = yes; then
4776  # We found a bogon in the path, so make sure we never use it.
4777  set dummy $ac_cv_prog_CC
4778  shift
4779  if test $# != 0; then
4780    # We chose a different compiler from the bogus one.
4781    # However, it has the same basename, so the bogon will be chosen
4782    # first if we set CC to just the basename; use the full file name.
4783    shift
4784    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4785  fi
4786fi
4787fi
4788fi
4789CC=$ac_cv_prog_CC
4790if test -n "$CC"; then
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792$as_echo "$CC" >&6; }
4793else
4794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796fi
4797
4798
4799fi
4800if test -z "$CC"; then
4801  if test -n "$ac_tool_prefix"; then
4802  for ac_prog in cl.exe
4803  do
4804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807$as_echo_n "checking for $ac_word... " >&6; }
4808if ${ac_cv_prog_CC+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  if test -n "$CC"; then
4812  ac_cv_prog_CC="$CC" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817  IFS=$as_save_IFS
4818  test -z "$as_dir" && as_dir=.
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823    break 2
4824  fi
4825done
4826  done
4827IFS=$as_save_IFS
4828
4829fi
4830fi
4831CC=$ac_cv_prog_CC
4832if test -n "$CC"; then
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834$as_echo "$CC" >&6; }
4835else
4836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840
4841    test -n "$CC" && break
4842  done
4843fi
4844if test -z "$CC"; then
4845  ac_ct_CC=$CC
4846  for ac_prog in cl.exe
4847do
4848  # Extract the first word of "$ac_prog", so it can be a program name with args.
4849set dummy $ac_prog; ac_word=$2
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851$as_echo_n "checking for $ac_word... " >&6; }
4852if ${ac_cv_prog_ac_ct_CC+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  if test -n "$ac_ct_CC"; then
4856  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861  IFS=$as_save_IFS
4862  test -z "$as_dir" && as_dir=.
4863    for ac_exec_ext in '' $ac_executable_extensions; do
4864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865    ac_cv_prog_ac_ct_CC="$ac_prog"
4866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867    break 2
4868  fi
4869done
4870  done
4871IFS=$as_save_IFS
4872
4873fi
4874fi
4875ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876if test -n "$ac_ct_CC"; then
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878$as_echo "$ac_ct_CC" >&6; }
4879else
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881$as_echo "no" >&6; }
4882fi
4883
4884
4885  test -n "$ac_ct_CC" && break
4886done
4887
4888  if test "x$ac_ct_CC" = x; then
4889    CC=""
4890  else
4891    case $cross_compiling:$ac_tool_warned in
4892yes:)
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895ac_tool_warned=yes ;;
4896esac
4897    CC=$ac_ct_CC
4898  fi
4899fi
4900
4901fi
4902
4903
4904test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906as_fn_error $? "no acceptable C compiler found in \$PATH
4907See \`config.log' for more details" "$LINENO" 5; }
4908
4909# Provide some information about the compiler.
4910$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4911set X $ac_compile
4912ac_compiler=$2
4913for ac_option in --version -v -V -qversion; do
4914  { { ac_try="$ac_compiler $ac_option >&5"
4915case "(($ac_try" in
4916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917  *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922  ac_status=$?
4923  if test -s conftest.err; then
4924    sed '10a\
4925... rest of stderr output deleted ...
4926         10q' conftest.err >conftest.er1
4927    cat conftest.er1 >&5
4928  fi
4929  rm -f conftest.er1 conftest.err
4930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931  test $ac_status = 0; }
4932done
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4935$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4936if ${ac_cv_c_compiler_gnu+:} false; then :
4937  $as_echo_n "(cached) " >&6
4938else
4939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941
4942int
4943main ()
4944{
4945#ifndef __GNUC__
4946       choke me
4947#endif
4948
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953if ac_fn_c_try_compile "$LINENO"; then :
4954  ac_compiler_gnu=yes
4955else
4956  ac_compiler_gnu=no
4957fi
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959ac_cv_c_compiler_gnu=$ac_compiler_gnu
4960
4961fi
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4963$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4964if test $ac_compiler_gnu = yes; then
4965  GCC=yes
4966else
4967  GCC=
4968fi
4969ac_test_CFLAGS=${CFLAGS+set}
4970ac_save_CFLAGS=$CFLAGS
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4972$as_echo_n "checking whether $CC accepts -g... " >&6; }
4973if ${ac_cv_prog_cc_g+:} false; then :
4974  $as_echo_n "(cached) " >&6
4975else
4976  ac_save_c_werror_flag=$ac_c_werror_flag
4977   ac_c_werror_flag=yes
4978   ac_cv_prog_cc_g=no
4979   CFLAGS="-g"
4980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982
4983int
4984main ()
4985{
4986
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_compile "$LINENO"; then :
4992  ac_cv_prog_cc_g=yes
4993else
4994  CFLAGS=""
4995      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h.  */
4997
4998int
4999main ()
5000{
5001
5002  ;
5003  return 0;
5004}
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"; then :
5007
5008else
5009  ac_c_werror_flag=$ac_save_c_werror_flag
5010	 CFLAGS="-g"
5011	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h.  */
5013
5014int
5015main ()
5016{
5017
5018  ;
5019  return 0;
5020}
5021_ACEOF
5022if ac_fn_c_try_compile "$LINENO"; then :
5023  ac_cv_prog_cc_g=yes
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030   ac_c_werror_flag=$ac_save_c_werror_flag
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5033$as_echo "$ac_cv_prog_cc_g" >&6; }
5034if test "$ac_test_CFLAGS" = set; then
5035  CFLAGS=$ac_save_CFLAGS
5036elif test $ac_cv_prog_cc_g = yes; then
5037  if test "$GCC" = yes; then
5038    CFLAGS="-g -O2"
5039  else
5040    CFLAGS="-g"
5041  fi
5042else
5043  if test "$GCC" = yes; then
5044    CFLAGS="-O2"
5045  else
5046    CFLAGS=
5047  fi
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5050$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5051if ${ac_cv_prog_cc_c89+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  ac_cv_prog_cc_c89=no
5055ac_save_CC=$CC
5056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058#include <stdarg.h>
5059#include <stdio.h>
5060struct stat;
5061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5062struct buf { int x; };
5063FILE * (*rcsopen) (struct buf *, struct stat *, int);
5064static char *e (p, i)
5065     char **p;
5066     int i;
5067{
5068  return p[i];
5069}
5070static char *f (char * (*g) (char **, int), char **p, ...)
5071{
5072  char *s;
5073  va_list v;
5074  va_start (v,p);
5075  s = g (p, va_arg (v,int));
5076  va_end (v);
5077  return s;
5078}
5079
5080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5081   function prototypes and stuff, but not '\xHH' hex character constants.
5082   These don't provoke an error unfortunately, instead are silently treated
5083   as 'x'.  The following induces an error, until -std is added to get
5084   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5085   array size at least.  It's necessary to write '\x00'==0 to get something
5086   that's true only with -std.  */
5087int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5088
5089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5090   inside strings and character constants.  */
5091#define FOO(x) 'x'
5092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5093
5094int test (int i, double x);
5095struct s1 {int (*f) (int a);};
5096struct s2 {int (*f) (double a);};
5097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5098int argc;
5099char **argv;
5100int
5101main ()
5102{
5103return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5109	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5110do
5111  CC="$ac_save_CC $ac_arg"
5112  if ac_fn_c_try_compile "$LINENO"; then :
5113  ac_cv_prog_cc_c89=$ac_arg
5114fi
5115rm -f core conftest.err conftest.$ac_objext
5116  test "x$ac_cv_prog_cc_c89" != "xno" && break
5117done
5118rm -f conftest.$ac_ext
5119CC=$ac_save_CC
5120
5121fi
5122# AC_CACHE_VAL
5123case "x$ac_cv_prog_cc_c89" in
5124  x)
5125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5126$as_echo "none needed" >&6; } ;;
5127  xno)
5128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5129$as_echo "unsupported" >&6; } ;;
5130  *)
5131    CC="$CC $ac_cv_prog_cc_c89"
5132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5133$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5134esac
5135if test "x$ac_cv_prog_cc_c89" != xno; then :
5136
5137fi
5138
5139ac_ext=c
5140ac_cpp='$CPP $CPPFLAGS'
5141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5147$as_echo_n "checking $CC dependency flag... " >&6; }
5148echo 'void f(){}' >conftest.c
5149if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5150	DEPFLAG="-MM"
5151else
5152  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5153	DEPFLAG="-xM1"
5154  else
5155	DEPFLAG="-MM"  # dunno do something
5156  fi
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5159$as_echo "$DEPFLAG" >&6; }
5160rm -f conftest.c
5161
5162
5163
5164
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5167$as_echo_n "checking whether $CC supports -Werror... " >&6; }
5168cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5169if eval \${cv_prog_cc_flag_$cache+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172
5173echo 'void f(void){}' >conftest.c
5174if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5175eval "cv_prog_cc_flag_$cache=yes"
5176else
5177eval "cv_prog_cc_flag_$cache=no"
5178fi
5179rm -f conftest conftest.o conftest.c
5180
5181fi
5182
5183if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185$as_echo "yes" >&6; }
5186:
5187ERRFLAG="-Werror"
5188else
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
5191:
5192ERRFLAG="-errwarn"
5193fi
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5198$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5199cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5200if eval \${cv_prog_cc_flag_$cache+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203
5204echo 'void f(void){}' >conftest.c
5205if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5206eval "cv_prog_cc_flag_$cache=yes"
5207else
5208eval "cv_prog_cc_flag_$cache=no"
5209fi
5210rm -f conftest conftest.o conftest.c
5211
5212fi
5213
5214if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216$as_echo "yes" >&6; }
5217:
5218ERRFLAG="$ERRFLAG -Wall"
5219else
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222:
5223ERRFLAG="$ERRFLAG -errfmt"
5224fi
5225
5226
5227
5228
5229
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5231$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5232cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5233if eval \${cv_prog_cc_flag_$cache+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236
5237echo 'void f(void){}' >conftest.c
5238if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5239eval "cv_prog_cc_flag_$cache=yes"
5240else
5241eval "cv_prog_cc_flag_$cache=no"
5242fi
5243rm -f conftest conftest.o conftest.c
5244
5245fi
5246
5247if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249$as_echo "yes" >&6; }
5250:
5251C99FLAG="-std=c99"
5252else
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
5255:
5256
5257fi
5258
5259
5260
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5262$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5263cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5264if eval \${cv_prog_cc_flag_$cache+:} false; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267
5268echo 'void f(void){}' >conftest.c
5269if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5270eval "cv_prog_cc_flag_$cache=yes"
5271else
5272eval "cv_prog_cc_flag_$cache=no"
5273fi
5274rm -f conftest conftest.o conftest.c
5275
5276fi
5277
5278if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280$as_echo "yes" >&6; }
5281:
5282C99FLAG="-xc99"
5283else
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286:
5287
5288fi
5289
5290
5291for ac_header in getopt.h time.h
5292do :
5293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5295"
5296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5297  cat >>confdefs.h <<_ACEOF
5298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5299_ACEOF
5300
5301fi
5302
5303done
5304
5305
5306
5307
5308
5309{ $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
5310$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; }
5311cache=`$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`
5312if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315
5316echo '
5317#include "confdefs.h"
5318#include <stdlib.h>
5319#include <ctype.h>
5320#include <sys/time.h>
5321#ifdef HAVE_TIME_H
5322#include <time.h>
5323#endif
5324#include <unistd.h>
5325#include <netdb.h>
5326#ifdef HAVE_GETOPT_H
5327#include <getopt.h>
5328#endif
5329
5330int test() {
5331	int a;
5332	char **opts = NULL;
5333	struct timeval tv;
5334	char *t;
5335	time_t time = 0;
5336	char *buf = NULL;
5337	const char* str = NULL;
5338	struct msghdr msg;
5339	msg.msg_control = 0;
5340	t = ctime_r(&time, buf);
5341	tv.tv_usec = 10;
5342	srandom(32);
5343	a = getopt(2, opts, "a");
5344	a = isascii(32);
5345	str = gai_strerror(0);
5346	if(str && t && tv.tv_usec && msg.msg_control)
5347		a = 0;
5348	return a;
5349}
5350' > conftest.c
5351echo 'void f(){}' >>conftest.c
5352if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5353eval "cv_prog_cc_flag_needed_$cache=no"
5354else
5355
5356if 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
5357eval "cv_prog_cc_flag_needed_$cache=yes"
5358else
5359eval "cv_prog_cc_flag_needed_$cache=fail"
5360#echo 'Test with flag fails too!'
5361#cat conftest.c
5362#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"
5363#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`
5364#exit 1
5365fi
5366
5367fi
5368rm -f conftest conftest.c conftest.o
5369
5370fi
5371
5372if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5374$as_echo "yes" >&6; }
5375:
5376CFLAGS="$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"
5377else
5378if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
5381#echo 'Test with flag is no!'
5382#cat conftest.c
5383#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"
5384#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`
5385#exit 1
5386:
5387
5388else
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5390$as_echo "failed" >&6; }
5391:
5392
5393fi
5394fi
5395
5396
5397
5398
5399
5400{ $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
5401$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; }
5402cache=`$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`
5403if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406
5407echo '
5408#include "confdefs.h"
5409#include <stdlib.h>
5410#include <ctype.h>
5411#include <sys/time.h>
5412#ifdef HAVE_TIME_H
5413#include <time.h>
5414#endif
5415#include <unistd.h>
5416#include <netdb.h>
5417#ifdef HAVE_GETOPT_H
5418#include <getopt.h>
5419#endif
5420
5421int test() {
5422	int a;
5423	char **opts = NULL;
5424	struct timeval tv;
5425	char *t;
5426	time_t time = 0;
5427	char *buf = NULL;
5428	const char* str = NULL;
5429	struct msghdr msg;
5430	msg.msg_control = 0;
5431	t = ctime_r(&time, buf);
5432	tv.tv_usec = 10;
5433	srandom(32);
5434	a = getopt(2, opts, "a");
5435	a = isascii(32);
5436	str = gai_strerror(0);
5437	if(str && t && tv.tv_usec && msg.msg_control)
5438		a = 0;
5439	return a;
5440}
5441' > conftest.c
5442echo 'void f(){}' >>conftest.c
5443if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5444eval "cv_prog_cc_flag_needed_$cache=no"
5445else
5446
5447if 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
5448eval "cv_prog_cc_flag_needed_$cache=yes"
5449else
5450eval "cv_prog_cc_flag_needed_$cache=fail"
5451#echo 'Test with flag fails too!'
5452#cat conftest.c
5453#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"
5454#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`
5455#exit 1
5456fi
5457
5458fi
5459rm -f conftest conftest.c conftest.o
5460
5461fi
5462
5463if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465$as_echo "yes" >&6; }
5466:
5467CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5468else
5469if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472#echo 'Test with flag is no!'
5473#cat conftest.c
5474#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"
5475#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`
5476#exit 1
5477:
5478
5479else
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5481$as_echo "failed" >&6; }
5482:
5483
5484fi
5485fi
5486
5487
5488
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5492$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5493cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5494if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497
5498echo '
5499#include <stdbool.h>
5500#include <ctype.h>
5501int test() {
5502        int a = 0;
5503        return a;
5504}
5505' > conftest.c
5506echo 'void f(){}' >>conftest.c
5507if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5508eval "cv_prog_cc_flag_needed_$cache=no"
5509else
5510
5511if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5512eval "cv_prog_cc_flag_needed_$cache=yes"
5513else
5514eval "cv_prog_cc_flag_needed_$cache=fail"
5515#echo 'Test with flag fails too!'
5516#cat conftest.c
5517#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5518#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5519#exit 1
5520fi
5521
5522fi
5523rm -f conftest conftest.c conftest.o
5524
5525fi
5526
5527if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5529$as_echo "yes" >&6; }
5530:
5531CFLAGS="$CFLAGS $C99FLAG"
5532else
5533if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536#echo 'Test with flag is no!'
5537#cat conftest.c
5538#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5539#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5540#exit 1
5541:
5542
5543else
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5545$as_echo "failed" >&6; }
5546:
5547
5548fi
5549fi
5550
5551
5552
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5556$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5557cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5558if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561
5562echo '
5563#include <ctype.h>
5564
5565int test() {
5566        int a;
5567        a = isascii(32);
5568        return a;
5569}
5570' > conftest.c
5571echo 'void f(){}' >>conftest.c
5572if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5573eval "cv_prog_cc_flag_needed_$cache=no"
5574else
5575
5576if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5577eval "cv_prog_cc_flag_needed_$cache=yes"
5578else
5579eval "cv_prog_cc_flag_needed_$cache=fail"
5580#echo 'Test with flag fails too!'
5581#cat conftest.c
5582#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5583#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5584#exit 1
5585fi
5586
5587fi
5588rm -f conftest conftest.c conftest.o
5589
5590fi
5591
5592if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5594$as_echo "yes" >&6; }
5595:
5596CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5597else
5598if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600$as_echo "no" >&6; }
5601#echo 'Test with flag is no!'
5602#cat conftest.c
5603#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5604#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5605#exit 1
5606:
5607
5608else
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5610$as_echo "failed" >&6; }
5611:
5612
5613fi
5614fi
5615
5616
5617
5618
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5621$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5622cache=_D_GNU_SOURCE
5623if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626
5627echo '
5628#include <netinet/in.h>
5629
5630int test() {
5631        struct in6_pktinfo inf;
5632	int a = (int)sizeof(inf);
5633        return a;
5634}
5635' > conftest.c
5636echo 'void f(){}' >>conftest.c
5637if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5638eval "cv_prog_cc_flag_needed_$cache=no"
5639else
5640
5641if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5642eval "cv_prog_cc_flag_needed_$cache=yes"
5643else
5644eval "cv_prog_cc_flag_needed_$cache=fail"
5645#echo 'Test with flag fails too!'
5646#cat conftest.c
5647#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5648#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5649#exit 1
5650fi
5651
5652fi
5653rm -f conftest conftest.c conftest.o
5654
5655fi
5656
5657if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5659$as_echo "yes" >&6; }
5660:
5661CFLAGS="$CFLAGS -D_GNU_SOURCE"
5662else
5663if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665$as_echo "no" >&6; }
5666#echo 'Test with flag is no!'
5667#cat conftest.c
5668#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5669#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5670#exit 1
5671:
5672
5673else
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5675$as_echo "failed" >&6; }
5676:
5677
5678fi
5679fi
5680
5681
5682# check again for GNU_SOURCE for setresgid. May fail if setresgid
5683# is not available at all. -D_FRSRESGID is to make this check unique.
5684# otherwise we would get the previous cached result.
5685
5686
5687
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5689$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5690cache=_D_GNU_SOURCE__D_FRSRESGID
5691if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694
5695echo '
5696#include <unistd.h>
5697
5698int test() {
5699	int a = setresgid(0,0,0);
5700	a = setresuid(0,0,0);
5701        return a;
5702}
5703' > conftest.c
5704echo 'void f(){}' >>conftest.c
5705if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5706eval "cv_prog_cc_flag_needed_$cache=no"
5707else
5708
5709if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5710eval "cv_prog_cc_flag_needed_$cache=yes"
5711else
5712eval "cv_prog_cc_flag_needed_$cache=fail"
5713#echo 'Test with flag fails too!'
5714#cat conftest.c
5715#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5716#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5717#exit 1
5718fi
5719
5720fi
5721rm -f conftest conftest.c conftest.o
5722
5723fi
5724
5725if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5727$as_echo "yes" >&6; }
5728:
5729CFLAGS="$CFLAGS -D_GNU_SOURCE"
5730else
5731if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734#echo 'Test with flag is no!'
5735#cat conftest.c
5736#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5737#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5738#exit 1
5739:
5740
5741else
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5743$as_echo "failed" >&6; }
5744:
5745
5746fi
5747fi
5748
5749
5750
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5754$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5755cache=_D_POSIX_C_SOURCE_200112
5756if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759
5760echo '
5761#include "confdefs.h"
5762#ifdef HAVE_TIME_H
5763#include <time.h>
5764#endif
5765#include <netdb.h>
5766
5767int test() {
5768        int a = 0;
5769        char *t;
5770        time_t time = 0;
5771        char *buf = NULL;
5772	const char* str = NULL;
5773        t = ctime_r(&time, buf);
5774	str = gai_strerror(0);
5775	if(t && str)
5776		a = 0;
5777        return a;
5778}
5779' > conftest.c
5780echo 'void f(){}' >>conftest.c
5781if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5782eval "cv_prog_cc_flag_needed_$cache=no"
5783else
5784
5785if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5786eval "cv_prog_cc_flag_needed_$cache=yes"
5787else
5788eval "cv_prog_cc_flag_needed_$cache=fail"
5789#echo 'Test with flag fails too!'
5790#cat conftest.c
5791#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5792#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5793#exit 1
5794fi
5795
5796fi
5797rm -f conftest conftest.c conftest.o
5798
5799fi
5800
5801if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803$as_echo "yes" >&6; }
5804:
5805CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5806else
5807if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810#echo 'Test with flag is no!'
5811#cat conftest.c
5812#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5813#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5814#exit 1
5815:
5816
5817else
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5819$as_echo "failed" >&6; }
5820:
5821
5822fi
5823fi
5824
5825
5826
5827
5828
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5830$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5831cache=_D__EXTENSIONS__
5832if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835
5836echo '
5837#include "confdefs.h"
5838#include <stdlib.h>
5839#include <ctype.h>
5840#include <sys/time.h>
5841#ifdef HAVE_TIME_H
5842#include <time.h>
5843#endif
5844#include <unistd.h>
5845#ifdef HAVE_GETOPT_H
5846#include <getopt.h>
5847#endif
5848
5849int test() {
5850        int a;
5851        char **opts = NULL;
5852        struct timeval tv;
5853        tv.tv_usec = 10;
5854        srandom(32);
5855        a = getopt(2, opts, "a");
5856        a = isascii(32);
5857	if(tv.tv_usec)
5858		a = 0;
5859        return a;
5860}
5861' > conftest.c
5862echo 'void f(){}' >>conftest.c
5863if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5864eval "cv_prog_cc_flag_needed_$cache=no"
5865else
5866
5867if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5868eval "cv_prog_cc_flag_needed_$cache=yes"
5869else
5870eval "cv_prog_cc_flag_needed_$cache=fail"
5871#echo 'Test with flag fails too!'
5872#cat conftest.c
5873#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5874#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5875#exit 1
5876fi
5877
5878fi
5879rm -f conftest conftest.c conftest.o
5880
5881fi
5882
5883if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5885$as_echo "yes" >&6; }
5886:
5887CFLAGS="$CFLAGS -D__EXTENSIONS__"
5888else
5889if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891$as_echo "no" >&6; }
5892#echo 'Test with flag is no!'
5893#cat conftest.c
5894#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5895#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5896#exit 1
5897:
5898
5899else
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5901$as_echo "failed" >&6; }
5902:
5903
5904fi
5905fi
5906
5907
5908
5909
5910# debug mode flags warnings
5911# Check whether --enable-checking was given.
5912if test "${enable_checking+set}" = set; then :
5913  enableval=$enable_checking;
5914fi
5915
5916# Check whether --enable-debug was given.
5917if test "${enable_debug+set}" = set; then :
5918  enableval=$enable_debug;
5919fi
5920
5921if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5922else debug_enabled="$enable_checking"; fi
5923
5924case "$debug_enabled" in
5925        yes)
5926
5927
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5929$as_echo_n "checking whether $CC supports -W... " >&6; }
5930cache=`echo W | sed 'y%.=/+-%___p_%'`
5931if eval \${cv_prog_cc_flag_$cache+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934
5935echo 'void f(void){}' >conftest.c
5936if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5937eval "cv_prog_cc_flag_$cache=yes"
5938else
5939eval "cv_prog_cc_flag_$cache=no"
5940fi
5941rm -f conftest conftest.o conftest.c
5942
5943fi
5944
5945if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5947$as_echo "yes" >&6; }
5948:
5949CFLAGS="$CFLAGS -W"
5950else
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953:
5954
5955fi
5956
5957
5958
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5960$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5961cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5962if eval \${cv_prog_cc_flag_$cache+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965
5966echo 'void f(void){}' >conftest.c
5967if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5968eval "cv_prog_cc_flag_$cache=yes"
5969else
5970eval "cv_prog_cc_flag_$cache=no"
5971fi
5972rm -f conftest conftest.o conftest.c
5973
5974fi
5975
5976if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5978$as_echo "yes" >&6; }
5979:
5980CFLAGS="$CFLAGS -Wall"
5981else
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984:
5985
5986fi
5987
5988
5989
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5991$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5992cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5993if eval \${cv_prog_cc_flag_$cache+:} false; then :
5994  $as_echo_n "(cached) " >&6
5995else
5996
5997echo 'void f(void){}' >conftest.c
5998if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5999eval "cv_prog_cc_flag_$cache=yes"
6000else
6001eval "cv_prog_cc_flag_$cache=no"
6002fi
6003rm -f conftest conftest.o conftest.c
6004
6005fi
6006
6007if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6009$as_echo "yes" >&6; }
6010:
6011CFLAGS="$CFLAGS -Wextra"
6012else
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
6015:
6016
6017fi
6018
6019
6020
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6022$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6023cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6024if eval \${cv_prog_cc_flag_$cache+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027
6028echo 'void f(void){}' >conftest.c
6029if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6030eval "cv_prog_cc_flag_$cache=yes"
6031else
6032eval "cv_prog_cc_flag_$cache=no"
6033fi
6034rm -f conftest conftest.o conftest.c
6035
6036fi
6037
6038if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6040$as_echo "yes" >&6; }
6041:
6042CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6043else
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045$as_echo "no" >&6; }
6046:
6047
6048fi
6049
6050
6051$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6052
6053		;;
6054	no|*)
6055		# nothing to do.
6056		;;
6057esac
6058if test "$default_cflags" = "yes"; then
6059	# only when CFLAGS was "" at the start, if the users wants to
6060	# override we shouldn't add default cflags, because they wouldn't
6061	# be able to turn off these options and set the CFLAGS wanted.
6062
6063    # Check whether --enable-flto was given.
6064if test "${enable_flto+set}" = set; then :
6065  enableval=$enable_flto;
6066fi
6067
6068    if test "x$enable_flto" != "xno"; then :
6069
6070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6071$as_echo_n "checking if $CC supports -flto... " >&6; }
6072        BAKCFLAGS="$CFLAGS"
6073        CFLAGS="$CFLAGS -flto"
6074        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076
6077int
6078main ()
6079{
6080
6081  ;
6082  return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_link "$LINENO"; then :
6086
6087            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6088                CFLAGS="$BAKCFLAGS"
6089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090$as_echo "no" >&6; }
6091            else
6092                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093$as_echo "yes" >&6; }
6094            fi
6095            rm -f conftest conftest.c conftest.o
6096
6097else
6098  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100fi
6101rm -f core conftest.err conftest.$ac_objext \
6102    conftest$ac_exeext conftest.$ac_ext
6103
6104fi
6105
6106
6107    # Check whether --enable-pie was given.
6108if test "${enable_pie+set}" = set; then :
6109  enableval=$enable_pie;
6110fi
6111
6112    if test "x$enable_pie" = "xyes"; then :
6113
6114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6115$as_echo_n "checking if $CC supports PIE... " >&6; }
6116	BAKLDFLAGS="$LDFLAGS"
6117	BAKCFLAGS="$CFLAGS"
6118	LDFLAGS="$LDFLAGS -pie"
6119	CFLAGS="$CFLAGS -fPIE"
6120	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122
6123int
6124main ()
6125{
6126
6127  ;
6128  return 0;
6129}
6130_ACEOF
6131if ac_fn_c_try_link "$LINENO"; then :
6132
6133	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6134		LDFLAGS="$BAKLDFLAGS"
6135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137	    else
6138		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139$as_echo "yes" >&6; }
6140	    fi
6141	    rm -f conftest conftest.c conftest.o
6142
6143else
6144  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145$as_echo "no" >&6; }
6146fi
6147rm -f core conftest.err conftest.$ac_objext \
6148    conftest$ac_exeext conftest.$ac_ext
6149
6150fi
6151
6152
6153    # Check whether --enable-relro_now was given.
6154if test "${enable_relro_now+set}" = set; then :
6155  enableval=$enable_relro_now;
6156fi
6157
6158    if test "x$enable_relro_now" = "xyes"; then :
6159
6160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6161$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6162	BAKLDFLAGS="$LDFLAGS"
6163	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6164	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h.  */
6166
6167int
6168main ()
6169{
6170
6171  ;
6172  return 0;
6173}
6174_ACEOF
6175if ac_fn_c_try_link "$LINENO"; then :
6176
6177	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6178		LDFLAGS="$BAKLDFLAGS"
6179		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180$as_echo "no" >&6; }
6181	    else
6182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183$as_echo "yes" >&6; }
6184	    fi
6185	    rm -f conftest conftest.c conftest.o
6186
6187else
6188  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191rm -f core conftest.err conftest.$ac_objext \
6192    conftest$ac_exeext conftest.$ac_ext
6193
6194fi
6195
6196fi
6197
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6199$as_echo_n "checking for inline... " >&6; }
6200if ${ac_cv_c_inline+:} false; then :
6201  $as_echo_n "(cached) " >&6
6202else
6203  ac_cv_c_inline=no
6204for ac_kw in inline __inline__ __inline; do
6205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h.  */
6207#ifndef __cplusplus
6208typedef int foo_t;
6209static $ac_kw foo_t static_foo () {return 0; }
6210$ac_kw foo_t foo () {return 0; }
6211#endif
6212
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  ac_cv_c_inline=$ac_kw
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218  test "$ac_cv_c_inline" != no && break
6219done
6220
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6223$as_echo "$ac_cv_c_inline" >&6; }
6224
6225case $ac_cv_c_inline in
6226  inline | yes) ;;
6227  *)
6228    case $ac_cv_c_inline in
6229      no) ac_val=;;
6230      *) ac_val=$ac_cv_c_inline;;
6231    esac
6232    cat >>confdefs.h <<_ACEOF
6233#ifndef __cplusplus
6234#define inline $ac_val
6235#endif
6236_ACEOF
6237    ;;
6238esac
6239
6240
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6242$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6243if ${ac_cv_c_format_attribute+:} false; then :
6244  $as_echo_n "(cached) " >&6
6245else
6246  ac_cv_c_format_attribute=no
6247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249#include <stdio.h>
6250void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6251void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6252
6253int
6254main ()
6255{
6256
6257   f ("%s", "str");
6258
6259  ;
6260  return 0;
6261}
6262_ACEOF
6263if ac_fn_c_try_compile "$LINENO"; then :
6264  ac_cv_c_format_attribute="yes"
6265else
6266  ac_cv_c_format_attribute="no"
6267fi
6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269
6270fi
6271
6272
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6274$as_echo "$ac_cv_c_format_attribute" >&6; }
6275if test $ac_cv_c_format_attribute = yes; then
6276
6277$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6278
6279fi
6280
6281
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6283$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6284if ${ac_cv_c_unused_attribute+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  ac_cv_c_unused_attribute=no
6288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290#include <stdio.h>
6291void f (char *u __attribute__((unused)));
6292
6293int
6294main ()
6295{
6296
6297   f ("x");
6298
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"; then :
6304  ac_cv_c_unused_attribute="yes"
6305else
6306  ac_cv_c_unused_attribute="no"
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309
6310fi
6311
6312
6313
6314
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6316$as_echo "$ac_cv_c_unused_attribute" >&6; }
6317if test $ac_cv_c_unused_attribute = yes; then
6318
6319$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6320
6321fi
6322
6323
6324
6325
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6327$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6328if ${ac_cv_c_weak_attribute+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  ac_cv_c_weak_attribute=no
6332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334 #include <stdio.h>
6335__attribute__((weak)) void f(int x) { printf("%d", x); }
6336
6337int
6338main ()
6339{
6340
6341   f(1);
6342
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"; then :
6348  ac_cv_c_weak_attribute="yes"
6349else
6350  ac_cv_c_weak_attribute="no"
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354fi
6355
6356
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6358$as_echo "$ac_cv_c_weak_attribute" >&6; }
6359if test $ac_cv_c_weak_attribute = yes; then
6360
6361$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6362
6363
6364$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6365
6366fi
6367
6368
6369
6370
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6372$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6373if ${ac_cv_c_noreturn_attribute+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  ac_cv_c_noreturn_attribute=no
6377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379 #include <stdio.h>
6380__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6381
6382int
6383main ()
6384{
6385
6386   f(1);
6387
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_compile "$LINENO"; then :
6393  ac_cv_c_noreturn_attribute="yes"
6394else
6395  ac_cv_c_noreturn_attribute="no"
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398
6399fi
6400
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6403$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6404if test $ac_cv_c_noreturn_attribute = yes; then
6405
6406$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6407
6408
6409$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6410
6411fi
6412
6413
6414if test "$srcdir" != "."; then
6415	CPPFLAGS="$CPPFLAGS -I$srcdir"
6416fi
6417
6418
6419
6420
6421
6422for ac_prog in flex lex
6423do
6424  # Extract the first word of "$ac_prog", so it can be a program name with args.
6425set dummy $ac_prog; ac_word=$2
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427$as_echo_n "checking for $ac_word... " >&6; }
6428if ${ac_cv_prog_LEX+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  if test -n "$LEX"; then
6432  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437  IFS=$as_save_IFS
6438  test -z "$as_dir" && as_dir=.
6439    for ac_exec_ext in '' $ac_executable_extensions; do
6440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441    ac_cv_prog_LEX="$ac_prog"
6442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443    break 2
6444  fi
6445done
6446  done
6447IFS=$as_save_IFS
6448
6449fi
6450fi
6451LEX=$ac_cv_prog_LEX
6452if test -n "$LEX"; then
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6454$as_echo "$LEX" >&6; }
6455else
6456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457$as_echo "no" >&6; }
6458fi
6459
6460
6461  test -n "$LEX" && break
6462done
6463test -n "$LEX" || LEX=":"
6464
6465if test "x$LEX" != "x:"; then
6466  cat >conftest.l <<_ACEOF
6467%%
6468a { ECHO; }
6469b { REJECT; }
6470c { yymore (); }
6471d { yyless (1); }
6472e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6473    yyless ((input () != 0)); }
6474f { unput (yytext[0]); }
6475. { BEGIN INITIAL; }
6476%%
6477#ifdef YYTEXT_POINTER
6478extern char *yytext;
6479#endif
6480int
6481main (void)
6482{
6483  return ! yylex () + ! yywrap ();
6484}
6485_ACEOF
6486{ { ac_try="$LEX conftest.l"
6487case "(($ac_try" in
6488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489  *) ac_try_echo=$ac_try;;
6490esac
6491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6492$as_echo "$ac_try_echo"; } >&5
6493  (eval "$LEX conftest.l") 2>&5
6494  ac_status=$?
6495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496  test $ac_status = 0; }
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6498$as_echo_n "checking lex output file root... " >&6; }
6499if ${ac_cv_prog_lex_root+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502
6503if test -f lex.yy.c; then
6504  ac_cv_prog_lex_root=lex.yy
6505elif test -f lexyy.c; then
6506  ac_cv_prog_lex_root=lexyy
6507else
6508  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6509fi
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6512$as_echo "$ac_cv_prog_lex_root" >&6; }
6513LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6514
6515if test -z "${LEXLIB+set}"; then
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6517$as_echo_n "checking lex library... " >&6; }
6518if ${ac_cv_lib_lex+:} false; then :
6519  $as_echo_n "(cached) " >&6
6520else
6521
6522    ac_save_LIBS=$LIBS
6523    ac_cv_lib_lex='none needed'
6524    for ac_lib in '' -lfl -ll; do
6525      LIBS="$ac_lib $ac_save_LIBS"
6526      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h.  */
6528`cat $LEX_OUTPUT_ROOT.c`
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  ac_cv_lib_lex=$ac_lib
6532fi
6533rm -f core conftest.err conftest.$ac_objext \
6534    conftest$ac_exeext conftest.$ac_ext
6535      test "$ac_cv_lib_lex" != 'none needed' && break
6536    done
6537    LIBS=$ac_save_LIBS
6538
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6541$as_echo "$ac_cv_lib_lex" >&6; }
6542  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6543fi
6544
6545
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6547$as_echo_n "checking whether yytext is a pointer... " >&6; }
6548if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  # POSIX says lex can declare yytext either as a pointer or an array; the
6552# default is implementation-dependent.  Figure out which it is, since
6553# not all implementations provide the %pointer and %array declarations.
6554ac_cv_prog_lex_yytext_pointer=no
6555ac_save_LIBS=$LIBS
6556LIBS="$LEXLIB $ac_save_LIBS"
6557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h.  */
6559
6560  #define YYTEXT_POINTER 1
6561`cat $LEX_OUTPUT_ROOT.c`
6562_ACEOF
6563if ac_fn_c_try_link "$LINENO"; then :
6564  ac_cv_prog_lex_yytext_pointer=yes
6565fi
6566rm -f core conftest.err conftest.$ac_objext \
6567    conftest$ac_exeext conftest.$ac_ext
6568LIBS=$ac_save_LIBS
6569
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6572$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6573if test $ac_cv_prog_lex_yytext_pointer = yes; then
6574
6575$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6576
6577fi
6578rm -f conftest.l $LEX_OUTPUT_ROOT.c
6579
6580fi
6581if test "$LEX" != "" -a "$LEX" != ":"; then
6582
6583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6584$as_echo_n "checking for yylex_destroy... " >&6; }
6585	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6586
6587$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6588
6589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6590$as_echo "yes" >&6; }
6591	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; };
6593		LEX=":"
6594	fi
6595
6596fi
6597if test "$LEX" != "" -a "$LEX" != ":"; then
6598
6599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6600$as_echo_n "checking for lex %option... " >&6; }
6601	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6602%option nounput
6603%%
6604EOF
6605		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6606$as_echo "yes" >&6; }
6607	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; };
6609		LEX=":"
6610	fi
6611
6612fi
6613for ac_prog in 'bison -y' byacc
6614do
6615  # Extract the first word of "$ac_prog", so it can be a program name with args.
6616set dummy $ac_prog; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_YACC+:} false; then :
6620  $as_echo_n "(cached) " >&6
6621else
6622  if test -n "$YACC"; then
6623  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628  IFS=$as_save_IFS
6629  test -z "$as_dir" && as_dir=.
6630    for ac_exec_ext in '' $ac_executable_extensions; do
6631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632    ac_cv_prog_YACC="$ac_prog"
6633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634    break 2
6635  fi
6636done
6637  done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642YACC=$ac_cv_prog_YACC
6643if test -n "$YACC"; then
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6645$as_echo "$YACC" >&6; }
6646else
6647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651
6652  test -n "$YACC" && break
6653done
6654test -n "$YACC" || YACC="yacc"
6655
6656# Extract the first word of "doxygen", so it can be a program name with args.
6657set dummy doxygen; ac_word=$2
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659$as_echo_n "checking for $ac_word... " >&6; }
6660if ${ac_cv_prog_doxygen+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  if test -n "$doxygen"; then
6664  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6665else
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669  IFS=$as_save_IFS
6670  test -z "$as_dir" && as_dir=.
6671    for ac_exec_ext in '' $ac_executable_extensions; do
6672  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673    ac_cv_prog_doxygen="doxygen"
6674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675    break 2
6676  fi
6677done
6678  done
6679IFS=$as_save_IFS
6680
6681fi
6682fi
6683doxygen=$ac_cv_prog_doxygen
6684if test -n "$doxygen"; then
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6686$as_echo "$doxygen" >&6; }
6687else
6688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689$as_echo "no" >&6; }
6690fi
6691
6692
6693if test -n "$ac_tool_prefix"; then
6694  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695set dummy ${ac_tool_prefix}strip; ac_word=$2
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697$as_echo_n "checking for $ac_word... " >&6; }
6698if ${ac_cv_prog_STRIP+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  if test -n "$STRIP"; then
6702  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  test -z "$as_dir" && as_dir=.
6709    for ac_exec_ext in '' $ac_executable_extensions; do
6710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713    break 2
6714  fi
6715done
6716  done
6717IFS=$as_save_IFS
6718
6719fi
6720fi
6721STRIP=$ac_cv_prog_STRIP
6722if test -n "$STRIP"; then
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6724$as_echo "$STRIP" >&6; }
6725else
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727$as_echo "no" >&6; }
6728fi
6729
6730
6731fi
6732if test -z "$ac_cv_prog_STRIP"; then
6733  ac_ct_STRIP=$STRIP
6734  # Extract the first word of "strip", so it can be a program name with args.
6735set dummy strip; ac_word=$2
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test -n "$ac_ct_STRIP"; then
6742  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749    for ac_exec_ext in '' $ac_executable_extensions; do
6750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751    ac_cv_prog_ac_ct_STRIP="strip"
6752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756  done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762if test -n "$ac_ct_STRIP"; then
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6764$as_echo "$ac_ct_STRIP" >&6; }
6765else
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770  if test "x$ac_ct_STRIP" = x; then
6771    STRIP=""
6772  else
6773    case $cross_compiling:$ac_tool_warned in
6774yes:)
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777ac_tool_warned=yes ;;
6778esac
6779    STRIP=$ac_ct_STRIP
6780  fi
6781else
6782  STRIP="$ac_cv_prog_STRIP"
6783fi
6784
6785ac_aux_dir=
6786for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6787  if test -f "$ac_dir/install-sh"; then
6788    ac_aux_dir=$ac_dir
6789    ac_install_sh="$ac_aux_dir/install-sh -c"
6790    break
6791  elif test -f "$ac_dir/install.sh"; then
6792    ac_aux_dir=$ac_dir
6793    ac_install_sh="$ac_aux_dir/install.sh -c"
6794    break
6795  elif test -f "$ac_dir/shtool"; then
6796    ac_aux_dir=$ac_dir
6797    ac_install_sh="$ac_aux_dir/shtool install -c"
6798    break
6799  fi
6800done
6801if test -z "$ac_aux_dir"; then
6802  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6803fi
6804
6805# These three variables are undocumented and unsupported,
6806# and are intended to be withdrawn in a future Autoconf release.
6807# They can cause serious problems if a builder's source tree is in a directory
6808# whose full name contains unusual characters.
6809ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6810ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6811ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6812
6813
6814# Make sure we can run config.sub.
6815$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6816  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6819$as_echo_n "checking build system type... " >&6; }
6820if ${ac_cv_build+:} false; then :
6821  $as_echo_n "(cached) " >&6
6822else
6823  ac_build_alias=$build_alias
6824test "x$ac_build_alias" = x &&
6825  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6826test "x$ac_build_alias" = x &&
6827  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6828ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6829  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6830
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6833$as_echo "$ac_cv_build" >&6; }
6834case $ac_cv_build in
6835*-*-*) ;;
6836*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6837esac
6838build=$ac_cv_build
6839ac_save_IFS=$IFS; IFS='-'
6840set x $ac_cv_build
6841shift
6842build_cpu=$1
6843build_vendor=$2
6844shift; shift
6845# Remember, the first character of IFS is used to create $*,
6846# except with old shells:
6847build_os=$*
6848IFS=$ac_save_IFS
6849case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6850
6851
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6853$as_echo_n "checking host system type... " >&6; }
6854if ${ac_cv_host+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  if test "x$host_alias" = x; then
6858  ac_cv_host=$ac_cv_build
6859else
6860  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6861    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6862fi
6863
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6866$as_echo "$ac_cv_host" >&6; }
6867case $ac_cv_host in
6868*-*-*) ;;
6869*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6870esac
6871host=$ac_cv_host
6872ac_save_IFS=$IFS; IFS='-'
6873set x $ac_cv_host
6874shift
6875host_cpu=$1
6876host_vendor=$2
6877shift; shift
6878# Remember, the first character of IFS is used to create $*,
6879# except with old shells:
6880host_os=$*
6881IFS=$ac_save_IFS
6882case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6883
6884
6885
6886# skip these tests, we do not need them.
6887
6888
6889
6890
6891
6892
6893
6894
6895# always use ./libtool unless override from commandline (libtool=mylibtool)
6896if test -z "$libtool"; then
6897	libtool="./libtool"
6898fi
6899
6900# avoid libtool max commandline length test on systems that fork slowly.
6901
6902if echo "$host_os" | grep "sunos4" >/dev/null; then
6903	lt_cv_sys_max_cmd_len=32750;
6904fi
6905if test -n "$ac_tool_prefix"; then
6906  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6907set dummy ${ac_tool_prefix}ar; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if ${ac_cv_path_AR+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  case $AR in
6914  [\\/]* | ?:[\\/]*)
6915  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6916  ;;
6917  *)
6918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921  IFS=$as_save_IFS
6922  test -z "$as_dir" && as_dir=.
6923    for ac_exec_ext in '' $ac_executable_extensions; do
6924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927    break 2
6928  fi
6929done
6930  done
6931IFS=$as_save_IFS
6932
6933  ;;
6934esac
6935fi
6936AR=$ac_cv_path_AR
6937if test -n "$AR"; then
6938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6939$as_echo "$AR" >&6; }
6940else
6941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945
6946fi
6947if test -z "$ac_cv_path_AR"; then
6948  ac_pt_AR=$AR
6949  # Extract the first word of "ar", so it can be a program name with args.
6950set dummy ar; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if ${ac_cv_path_ac_pt_AR+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  case $ac_pt_AR in
6957  [\\/]* | ?:[\\/]*)
6958  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6959  ;;
6960  *)
6961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966    for ac_exec_ext in '' $ac_executable_extensions; do
6967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6969    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973  done
6974IFS=$as_save_IFS
6975
6976  ;;
6977esac
6978fi
6979ac_pt_AR=$ac_cv_path_ac_pt_AR
6980if test -n "$ac_pt_AR"; then
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6982$as_echo "$ac_pt_AR" >&6; }
6983else
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988  if test "x$ac_pt_AR" = x; then
6989    AR="false"
6990  else
6991    case $cross_compiling:$ac_tool_warned in
6992yes:)
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995ac_tool_warned=yes ;;
6996esac
6997    AR=$ac_pt_AR
6998  fi
6999else
7000  AR="$ac_cv_path_AR"
7001fi
7002
7003if test $AR = false; then
7004	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7005fi
7006
7007case `pwd` in
7008  *\ * | *\	*)
7009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7010$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7011esac
7012
7013
7014
7015macro_version='2.4.6'
7016macro_revision='2.4.6'
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030ltmain=$ac_aux_dir/ltmain.sh
7031
7032# Backslashify metacharacters that are still active within
7033# double-quoted strings.
7034sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7035
7036# Same as above, but do not quote variable references.
7037double_quote_subst='s/\(["`\\]\)/\\\1/g'
7038
7039# Sed substitution to delay expansion of an escaped shell variable in a
7040# double_quote_subst'ed string.
7041delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7042
7043# Sed substitution to delay expansion of an escaped single quote.
7044delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7045
7046# Sed substitution to avoid accidental globbing in evaled expressions
7047no_glob_subst='s/\*/\\\*/g'
7048
7049ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7050ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7051ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7052
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7054$as_echo_n "checking how to print strings... " >&6; }
7055# Test print first, because it will be a builtin if present.
7056if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7057   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7058  ECHO='print -r --'
7059elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7060  ECHO='printf %s\n'
7061else
7062  # Use this function as a fallback that always works.
7063  func_fallback_echo ()
7064  {
7065    eval 'cat <<_LTECHO_EOF
7066$1
7067_LTECHO_EOF'
7068  }
7069  ECHO='func_fallback_echo'
7070fi
7071
7072# func_echo_all arg...
7073# Invoke $ECHO with all args, space-separated.
7074func_echo_all ()
7075{
7076    $ECHO ""
7077}
7078
7079case $ECHO in
7080  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7081$as_echo "printf" >&6; } ;;
7082  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7083$as_echo "print -r" >&6; } ;;
7084  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7085$as_echo "cat" >&6; } ;;
7086esac
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7102$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7103if ${ac_cv_path_SED+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7107     for ac_i in 1 2 3 4 5 6 7; do
7108       ac_script="$ac_script$as_nl$ac_script"
7109     done
7110     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7111     { ac_script=; unset ac_script;}
7112     if test -z "$SED"; then
7113  ac_path_SED_found=false
7114  # Loop through the user's path and test for each of PROGNAME-LIST
7115  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118  IFS=$as_save_IFS
7119  test -z "$as_dir" && as_dir=.
7120    for ac_prog in sed gsed; do
7121    for ac_exec_ext in '' $ac_executable_extensions; do
7122      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7123      as_fn_executable_p "$ac_path_SED" || continue
7124# Check for GNU ac_path_SED and select it if it is found.
7125  # Check for GNU $ac_path_SED
7126case `"$ac_path_SED" --version 2>&1` in
7127*GNU*)
7128  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7129*)
7130  ac_count=0
7131  $as_echo_n 0123456789 >"conftest.in"
7132  while :
7133  do
7134    cat "conftest.in" "conftest.in" >"conftest.tmp"
7135    mv "conftest.tmp" "conftest.in"
7136    cp "conftest.in" "conftest.nl"
7137    $as_echo '' >> "conftest.nl"
7138    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7139    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7140    as_fn_arith $ac_count + 1 && ac_count=$as_val
7141    if test $ac_count -gt ${ac_path_SED_max-0}; then
7142      # Best one so far, save it but keep looking for a better one
7143      ac_cv_path_SED="$ac_path_SED"
7144      ac_path_SED_max=$ac_count
7145    fi
7146    # 10*(2^10) chars as input seems more than enough
7147    test $ac_count -gt 10 && break
7148  done
7149  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7150esac
7151
7152      $ac_path_SED_found && break 3
7153    done
7154  done
7155  done
7156IFS=$as_save_IFS
7157  if test -z "$ac_cv_path_SED"; then
7158    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7159  fi
7160else
7161  ac_cv_path_SED=$SED
7162fi
7163
7164fi
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7166$as_echo "$ac_cv_path_SED" >&6; }
7167 SED="$ac_cv_path_SED"
7168  rm -f conftest.sed
7169
7170test -z "$SED" && SED=sed
7171Xsed="$SED -e 1s/^X//"
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7184$as_echo_n "checking for fgrep... " >&6; }
7185if ${ac_cv_path_FGREP+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7189   then ac_cv_path_FGREP="$GREP -F"
7190   else
7191     if test -z "$FGREP"; then
7192  ac_path_FGREP_found=false
7193  # Loop through the user's path and test for each of PROGNAME-LIST
7194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_prog in fgrep; do
7200    for ac_exec_ext in '' $ac_executable_extensions; do
7201      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7202      as_fn_executable_p "$ac_path_FGREP" || continue
7203# Check for GNU ac_path_FGREP and select it if it is found.
7204  # Check for GNU $ac_path_FGREP
7205case `"$ac_path_FGREP" --version 2>&1` in
7206*GNU*)
7207  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7208*)
7209  ac_count=0
7210  $as_echo_n 0123456789 >"conftest.in"
7211  while :
7212  do
7213    cat "conftest.in" "conftest.in" >"conftest.tmp"
7214    mv "conftest.tmp" "conftest.in"
7215    cp "conftest.in" "conftest.nl"
7216    $as_echo 'FGREP' >> "conftest.nl"
7217    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7218    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7219    as_fn_arith $ac_count + 1 && ac_count=$as_val
7220    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7221      # Best one so far, save it but keep looking for a better one
7222      ac_cv_path_FGREP="$ac_path_FGREP"
7223      ac_path_FGREP_max=$ac_count
7224    fi
7225    # 10*(2^10) chars as input seems more than enough
7226    test $ac_count -gt 10 && break
7227  done
7228  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7229esac
7230
7231      $ac_path_FGREP_found && break 3
7232    done
7233  done
7234  done
7235IFS=$as_save_IFS
7236  if test -z "$ac_cv_path_FGREP"; then
7237    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7238  fi
7239else
7240  ac_cv_path_FGREP=$FGREP
7241fi
7242
7243   fi
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7246$as_echo "$ac_cv_path_FGREP" >&6; }
7247 FGREP="$ac_cv_path_FGREP"
7248
7249
7250test -z "$GREP" && GREP=grep
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270# Check whether --with-gnu-ld was given.
7271if test "${with_gnu_ld+set}" = set; then :
7272  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7273else
7274  with_gnu_ld=no
7275fi
7276
7277ac_prog=ld
7278if test yes = "$GCC"; then
7279  # Check if gcc -print-prog-name=ld gives a path.
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7281$as_echo_n "checking for ld used by $CC... " >&6; }
7282  case $host in
7283  *-*-mingw*)
7284    # gcc leaves a trailing carriage return, which upsets mingw
7285    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7286  *)
7287    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7288  esac
7289  case $ac_prog in
7290    # Accept absolute paths.
7291    [\\/]* | ?:[\\/]*)
7292      re_direlt='/[^/][^/]*/\.\./'
7293      # Canonicalize the pathname of ld
7294      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7295      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7296	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7297      done
7298      test -z "$LD" && LD=$ac_prog
7299      ;;
7300  "")
7301    # If it fails, then pretend we aren't using GCC.
7302    ac_prog=ld
7303    ;;
7304  *)
7305    # If it is relative, then search for the first ld in PATH.
7306    with_gnu_ld=unknown
7307    ;;
7308  esac
7309elif test yes = "$with_gnu_ld"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7311$as_echo_n "checking for GNU ld... " >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7314$as_echo_n "checking for non-GNU ld... " >&6; }
7315fi
7316if ${lt_cv_path_LD+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  if test -z "$LD"; then
7320  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7321  for ac_dir in $PATH; do
7322    IFS=$lt_save_ifs
7323    test -z "$ac_dir" && ac_dir=.
7324    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7325      lt_cv_path_LD=$ac_dir/$ac_prog
7326      # Check to see if the program is GNU ld.  I'd rather use --version,
7327      # but apparently some variants of GNU ld only accept -v.
7328      # Break only if it was the GNU/non-GNU ld that we prefer.
7329      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7330      *GNU* | *'with BFD'*)
7331	test no != "$with_gnu_ld" && break
7332	;;
7333      *)
7334	test yes != "$with_gnu_ld" && break
7335	;;
7336      esac
7337    fi
7338  done
7339  IFS=$lt_save_ifs
7340else
7341  lt_cv_path_LD=$LD # Let the user override the test with a path.
7342fi
7343fi
7344
7345LD=$lt_cv_path_LD
7346if test -n "$LD"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7348$as_echo "$LD" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7355$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7356if ${lt_cv_prog_gnu_ld+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7360case `$LD -v 2>&1 </dev/null` in
7361*GNU* | *'with BFD'*)
7362  lt_cv_prog_gnu_ld=yes
7363  ;;
7364*)
7365  lt_cv_prog_gnu_ld=no
7366  ;;
7367esac
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7370$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7371with_gnu_ld=$lt_cv_prog_gnu_ld
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7382$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7383if ${lt_cv_path_NM+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  if test -n "$NM"; then
7387  # Let the user override the test.
7388  lt_cv_path_NM=$NM
7389else
7390  lt_nm_to_check=${ac_tool_prefix}nm
7391  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7392    lt_nm_to_check="$lt_nm_to_check nm"
7393  fi
7394  for lt_tmp_nm in $lt_nm_to_check; do
7395    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7396    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7397      IFS=$lt_save_ifs
7398      test -z "$ac_dir" && ac_dir=.
7399      tmp_nm=$ac_dir/$lt_tmp_nm
7400      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7401	# Check to see if the nm accepts a BSD-compat flag.
7402	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7403	#   nm: unknown option "B" ignored
7404	# Tru64's nm complains that /dev/null is an invalid object file
7405	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7406	case $build_os in
7407	mingw*) lt_bad_file=conftest.nm/nofile ;;
7408	*) lt_bad_file=/dev/null ;;
7409	esac
7410	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7411	*$lt_bad_file* | *'Invalid file or object type'*)
7412	  lt_cv_path_NM="$tmp_nm -B"
7413	  break 2
7414	  ;;
7415	*)
7416	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7417	  */dev/null*)
7418	    lt_cv_path_NM="$tmp_nm -p"
7419	    break 2
7420	    ;;
7421	  *)
7422	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7423	    continue # so that we can try to find one that supports BSD flags
7424	    ;;
7425	  esac
7426	  ;;
7427	esac
7428      fi
7429    done
7430    IFS=$lt_save_ifs
7431  done
7432  : ${lt_cv_path_NM=no}
7433fi
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7436$as_echo "$lt_cv_path_NM" >&6; }
7437if test no != "$lt_cv_path_NM"; then
7438  NM=$lt_cv_path_NM
7439else
7440  # Didn't find any BSD compatible name lister, look for dumpbin.
7441  if test -n "$DUMPBIN"; then :
7442    # Let the user override the test.
7443  else
7444    if test -n "$ac_tool_prefix"; then
7445  for ac_prog in dumpbin "link -dump"
7446  do
7447    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7448set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450$as_echo_n "checking for $ac_word... " >&6; }
7451if ${ac_cv_prog_DUMPBIN+:} false; then :
7452  $as_echo_n "(cached) " >&6
7453else
7454  if test -n "$DUMPBIN"; then
7455  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460  IFS=$as_save_IFS
7461  test -z "$as_dir" && as_dir=.
7462    for ac_exec_ext in '' $ac_executable_extensions; do
7463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466    break 2
7467  fi
7468done
7469  done
7470IFS=$as_save_IFS
7471
7472fi
7473fi
7474DUMPBIN=$ac_cv_prog_DUMPBIN
7475if test -n "$DUMPBIN"; then
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7477$as_echo "$DUMPBIN" >&6; }
7478else
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
7481fi
7482
7483
7484    test -n "$DUMPBIN" && break
7485  done
7486fi
7487if test -z "$DUMPBIN"; then
7488  ac_ct_DUMPBIN=$DUMPBIN
7489  for ac_prog in dumpbin "link -dump"
7490do
7491  # Extract the first word of "$ac_prog", so it can be a program name with args.
7492set dummy $ac_prog; ac_word=$2
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494$as_echo_n "checking for $ac_word... " >&6; }
7495if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  if test -n "$ac_ct_DUMPBIN"; then
7499  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7500else
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504  IFS=$as_save_IFS
7505  test -z "$as_dir" && as_dir=.
7506    for ac_exec_ext in '' $ac_executable_extensions; do
7507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510    break 2
7511  fi
7512done
7513  done
7514IFS=$as_save_IFS
7515
7516fi
7517fi
7518ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7519if test -n "$ac_ct_DUMPBIN"; then
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7521$as_echo "$ac_ct_DUMPBIN" >&6; }
7522else
7523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524$as_echo "no" >&6; }
7525fi
7526
7527
7528  test -n "$ac_ct_DUMPBIN" && break
7529done
7530
7531  if test "x$ac_ct_DUMPBIN" = x; then
7532    DUMPBIN=":"
7533  else
7534    case $cross_compiling:$ac_tool_warned in
7535yes:)
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538ac_tool_warned=yes ;;
7539esac
7540    DUMPBIN=$ac_ct_DUMPBIN
7541  fi
7542fi
7543
7544    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7545    *COFF*)
7546      DUMPBIN="$DUMPBIN -symbols -headers"
7547      ;;
7548    *)
7549      DUMPBIN=:
7550      ;;
7551    esac
7552  fi
7553
7554  if test : != "$DUMPBIN"; then
7555    NM=$DUMPBIN
7556  fi
7557fi
7558test -z "$NM" && NM=nm
7559
7560
7561
7562
7563
7564
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7566$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7567if ${lt_cv_nm_interface+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  lt_cv_nm_interface="BSD nm"
7571  echo "int some_variable = 0;" > conftest.$ac_ext
7572  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7573  (eval "$ac_compile" 2>conftest.err)
7574  cat conftest.err >&5
7575  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7576  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7577  cat conftest.err >&5
7578  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7579  cat conftest.out >&5
7580  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7581    lt_cv_nm_interface="MS dumpbin"
7582  fi
7583  rm -f conftest*
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7586$as_echo "$lt_cv_nm_interface" >&6; }
7587
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7589$as_echo_n "checking whether ln -s works... " >&6; }
7590LN_S=$as_ln_s
7591if test "$LN_S" = "ln -s"; then
7592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593$as_echo "yes" >&6; }
7594else
7595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7596$as_echo "no, using $LN_S" >&6; }
7597fi
7598
7599# find the maximum length of command line arguments
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7601$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7602if ${lt_cv_sys_max_cmd_len+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605    i=0
7606  teststring=ABCD
7607
7608  case $build_os in
7609  msdosdjgpp*)
7610    # On DJGPP, this test can blow up pretty badly due to problems in libc
7611    # (any single argument exceeding 2000 bytes causes a buffer overrun
7612    # during glob expansion).  Even if it were fixed, the result of this
7613    # check would be larger than it should be.
7614    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7615    ;;
7616
7617  gnu*)
7618    # Under GNU Hurd, this test is not required because there is
7619    # no limit to the length of command line arguments.
7620    # Libtool will interpret -1 as no limit whatsoever
7621    lt_cv_sys_max_cmd_len=-1;
7622    ;;
7623
7624  cygwin* | mingw* | cegcc*)
7625    # On Win9x/ME, this test blows up -- it succeeds, but takes
7626    # about 5 minutes as the teststring grows exponentially.
7627    # Worse, since 9x/ME are not pre-emptively multitasking,
7628    # you end up with a "frozen" computer, even though with patience
7629    # the test eventually succeeds (with a max line length of 256k).
7630    # Instead, let's just punt: use the minimum linelength reported by
7631    # all of the supported platforms: 8192 (on NT/2K/XP).
7632    lt_cv_sys_max_cmd_len=8192;
7633    ;;
7634
7635  mint*)
7636    # On MiNT this can take a long time and run out of memory.
7637    lt_cv_sys_max_cmd_len=8192;
7638    ;;
7639
7640  amigaos*)
7641    # On AmigaOS with pdksh, this test takes hours, literally.
7642    # So we just punt and use a minimum line length of 8192.
7643    lt_cv_sys_max_cmd_len=8192;
7644    ;;
7645
7646  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7647    # This has been around since 386BSD, at least.  Likely further.
7648    if test -x /sbin/sysctl; then
7649      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7650    elif test -x /usr/sbin/sysctl; then
7651      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7652    else
7653      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7654    fi
7655    # And add a safety zone
7656    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7657    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7658    ;;
7659
7660  interix*)
7661    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7662    lt_cv_sys_max_cmd_len=196608
7663    ;;
7664
7665  os2*)
7666    # The test takes a long time on OS/2.
7667    lt_cv_sys_max_cmd_len=8192
7668    ;;
7669
7670  osf*)
7671    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7672    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7673    # nice to cause kernel panics so lets avoid the loop below.
7674    # First set a reasonable default.
7675    lt_cv_sys_max_cmd_len=16384
7676    #
7677    if test -x /sbin/sysconfig; then
7678      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7679        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7680      esac
7681    fi
7682    ;;
7683  sco3.2v5*)
7684    lt_cv_sys_max_cmd_len=102400
7685    ;;
7686  sysv5* | sco5v6* | sysv4.2uw2*)
7687    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7688    if test -n "$kargmax"; then
7689      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7690    else
7691      lt_cv_sys_max_cmd_len=32768
7692    fi
7693    ;;
7694  *)
7695    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7696    if test -n "$lt_cv_sys_max_cmd_len" && \
7697       test undefined != "$lt_cv_sys_max_cmd_len"; then
7698      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7699      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7700    else
7701      # Make teststring a little bigger before we do anything with it.
7702      # a 1K string should be a reasonable start.
7703      for i in 1 2 3 4 5 6 7 8; do
7704        teststring=$teststring$teststring
7705      done
7706      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7707      # If test is not a shell built-in, we'll probably end up computing a
7708      # maximum length that is only half of the actual maximum length, but
7709      # we can't tell.
7710      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7711	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7712	      test 17 != "$i" # 1/2 MB should be enough
7713      do
7714        i=`expr $i + 1`
7715        teststring=$teststring$teststring
7716      done
7717      # Only check the string length outside the loop.
7718      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7719      teststring=
7720      # Add a significant safety factor because C++ compilers can tack on
7721      # massive amounts of additional arguments before passing them to the
7722      # linker.  It appears as though 1/2 is a usable value.
7723      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7724    fi
7725    ;;
7726  esac
7727
7728fi
7729
7730if test -n "$lt_cv_sys_max_cmd_len"; then
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7732$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7733else
7734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7735$as_echo "none" >&6; }
7736fi
7737max_cmd_len=$lt_cv_sys_max_cmd_len
7738
7739
7740
7741
7742
7743
7744: ${CP="cp -f"}
7745: ${MV="mv -f"}
7746: ${RM="rm -f"}
7747
7748if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7749  lt_unset=unset
7750else
7751  lt_unset=false
7752fi
7753
7754
7755
7756
7757
7758# test EBCDIC or ASCII
7759case `echo X|tr X '\101'` in
7760 A) # ASCII based system
7761    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7762  lt_SP2NL='tr \040 \012'
7763  lt_NL2SP='tr \015\012 \040\040'
7764  ;;
7765 *) # EBCDIC based system
7766  lt_SP2NL='tr \100 \n'
7767  lt_NL2SP='tr \r\n \100\100'
7768  ;;
7769esac
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7780$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7781if ${lt_cv_to_host_file_cmd+:} false; then :
7782  $as_echo_n "(cached) " >&6
7783else
7784  case $host in
7785  *-*-mingw* )
7786    case $build in
7787      *-*-mingw* ) # actually msys
7788        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7789        ;;
7790      *-*-cygwin* )
7791        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7792        ;;
7793      * ) # otherwise, assume *nix
7794        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7795        ;;
7796    esac
7797    ;;
7798  *-*-cygwin* )
7799    case $build in
7800      *-*-mingw* ) # actually msys
7801        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7802        ;;
7803      *-*-cygwin* )
7804        lt_cv_to_host_file_cmd=func_convert_file_noop
7805        ;;
7806      * ) # otherwise, assume *nix
7807        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7808        ;;
7809    esac
7810    ;;
7811  * ) # unhandled hosts (and "normal" native builds)
7812    lt_cv_to_host_file_cmd=func_convert_file_noop
7813    ;;
7814esac
7815
7816fi
7817
7818to_host_file_cmd=$lt_cv_to_host_file_cmd
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7820$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7821
7822
7823
7824
7825
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7827$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7828if ${lt_cv_to_tool_file_cmd+:} false; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  #assume ordinary cross tools, or native build.
7832lt_cv_to_tool_file_cmd=func_convert_file_noop
7833case $host in
7834  *-*-mingw* )
7835    case $build in
7836      *-*-mingw* ) # actually msys
7837        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7838        ;;
7839    esac
7840    ;;
7841esac
7842
7843fi
7844
7845to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7847$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7848
7849
7850
7851
7852
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7854$as_echo_n "checking for $LD option to reload object files... " >&6; }
7855if ${lt_cv_ld_reload_flag+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  lt_cv_ld_reload_flag='-r'
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7861$as_echo "$lt_cv_ld_reload_flag" >&6; }
7862reload_flag=$lt_cv_ld_reload_flag
7863case $reload_flag in
7864"" | " "*) ;;
7865*) reload_flag=" $reload_flag" ;;
7866esac
7867reload_cmds='$LD$reload_flag -o $output$reload_objs'
7868case $host_os in
7869  cygwin* | mingw* | pw32* | cegcc*)
7870    if test yes != "$GCC"; then
7871      reload_cmds=false
7872    fi
7873    ;;
7874  darwin*)
7875    if test yes = "$GCC"; then
7876      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7877    else
7878      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7879    fi
7880    ;;
7881esac
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891if test -n "$ac_tool_prefix"; then
7892  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7893set dummy ${ac_tool_prefix}objdump; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if ${ac_cv_prog_OBJDUMP+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  if test -n "$OBJDUMP"; then
7900  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905  IFS=$as_save_IFS
7906  test -z "$as_dir" && as_dir=.
7907    for ac_exec_ext in '' $ac_executable_extensions; do
7908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911    break 2
7912  fi
7913done
7914  done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919OBJDUMP=$ac_cv_prog_OBJDUMP
7920if test -n "$OBJDUMP"; then
7921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7922$as_echo "$OBJDUMP" >&6; }
7923else
7924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928
7929fi
7930if test -z "$ac_cv_prog_OBJDUMP"; then
7931  ac_ct_OBJDUMP=$OBJDUMP
7932  # Extract the first word of "objdump", so it can be a program name with args.
7933set dummy objdump; ac_word=$2
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
7936if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7937  $as_echo_n "(cached) " >&6
7938else
7939  if test -n "$ac_ct_OBJDUMP"; then
7940  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7941else
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945  IFS=$as_save_IFS
7946  test -z "$as_dir" && as_dir=.
7947    for ac_exec_ext in '' $ac_executable_extensions; do
7948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951    break 2
7952  fi
7953done
7954  done
7955IFS=$as_save_IFS
7956
7957fi
7958fi
7959ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7960if test -n "$ac_ct_OBJDUMP"; then
7961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7962$as_echo "$ac_ct_OBJDUMP" >&6; }
7963else
7964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
7966fi
7967
7968  if test "x$ac_ct_OBJDUMP" = x; then
7969    OBJDUMP="false"
7970  else
7971    case $cross_compiling:$ac_tool_warned in
7972yes:)
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975ac_tool_warned=yes ;;
7976esac
7977    OBJDUMP=$ac_ct_OBJDUMP
7978  fi
7979else
7980  OBJDUMP="$ac_cv_prog_OBJDUMP"
7981fi
7982
7983test -z "$OBJDUMP" && OBJDUMP=objdump
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7994$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7995if ${lt_cv_deplibs_check_method+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  lt_cv_file_magic_cmd='$MAGIC_CMD'
7999lt_cv_file_magic_test_file=
8000lt_cv_deplibs_check_method='unknown'
8001# Need to set the preceding variable on all platforms that support
8002# interlibrary dependencies.
8003# 'none' -- dependencies not supported.
8004# 'unknown' -- same as none, but documents that we really don't know.
8005# 'pass_all' -- all dependencies passed with no checks.
8006# 'test_compile' -- check by making test program.
8007# 'file_magic [[regex]]' -- check by looking for files in library path
8008# that responds to the $file_magic_cmd with a given extended regex.
8009# If you have 'file' or equivalent on your system and you're not sure
8010# whether 'pass_all' will *always* work, you probably want this one.
8011
8012case $host_os in
8013aix[4-9]*)
8014  lt_cv_deplibs_check_method=pass_all
8015  ;;
8016
8017beos*)
8018  lt_cv_deplibs_check_method=pass_all
8019  ;;
8020
8021bsdi[45]*)
8022  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8023  lt_cv_file_magic_cmd='/usr/bin/file -L'
8024  lt_cv_file_magic_test_file=/shlib/libc.so
8025  ;;
8026
8027cygwin*)
8028  # func_win32_libid is a shell function defined in ltmain.sh
8029  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8030  lt_cv_file_magic_cmd='func_win32_libid'
8031  ;;
8032
8033mingw* | pw32*)
8034  # Base MSYS/MinGW do not provide the 'file' command needed by
8035  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8036  # unless we find 'file', for example because we are cross-compiling.
8037  if ( file / ) >/dev/null 2>&1; then
8038    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8039    lt_cv_file_magic_cmd='func_win32_libid'
8040  else
8041    # Keep this pattern in sync with the one in func_win32_libid.
8042    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8043    lt_cv_file_magic_cmd='$OBJDUMP -f'
8044  fi
8045  ;;
8046
8047cegcc*)
8048  # use the weaker test based on 'objdump'. See mingw*.
8049  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8050  lt_cv_file_magic_cmd='$OBJDUMP -f'
8051  ;;
8052
8053darwin* | rhapsody*)
8054  lt_cv_deplibs_check_method=pass_all
8055  ;;
8056
8057freebsd* | dragonfly*)
8058  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8059    case $host_cpu in
8060    i*86 )
8061      # Not sure whether the presence of OpenBSD here was a mistake.
8062      # Let's accept both of them until this is cleared up.
8063      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8064      lt_cv_file_magic_cmd=/usr/bin/file
8065      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8066      ;;
8067    esac
8068  else
8069    lt_cv_deplibs_check_method=pass_all
8070  fi
8071  ;;
8072
8073haiku*)
8074  lt_cv_deplibs_check_method=pass_all
8075  ;;
8076
8077hpux10.20* | hpux11*)
8078  lt_cv_file_magic_cmd=/usr/bin/file
8079  case $host_cpu in
8080  ia64*)
8081    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8082    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8083    ;;
8084  hppa*64*)
8085    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]'
8086    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8087    ;;
8088  *)
8089    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8090    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8091    ;;
8092  esac
8093  ;;
8094
8095interix[3-9]*)
8096  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8097  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8098  ;;
8099
8100irix5* | irix6* | nonstopux*)
8101  case $LD in
8102  *-32|*"-32 ") libmagic=32-bit;;
8103  *-n32|*"-n32 ") libmagic=N32;;
8104  *-64|*"-64 ") libmagic=64-bit;;
8105  *) libmagic=never-match;;
8106  esac
8107  lt_cv_deplibs_check_method=pass_all
8108  ;;
8109
8110# This must be glibc/ELF.
8111linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8112  lt_cv_deplibs_check_method=pass_all
8113  ;;
8114
8115netbsd*)
8116  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8117    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8118  else
8119    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8120  fi
8121  ;;
8122
8123newos6*)
8124  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8125  lt_cv_file_magic_cmd=/usr/bin/file
8126  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8127  ;;
8128
8129*nto* | *qnx*)
8130  lt_cv_deplibs_check_method=pass_all
8131  ;;
8132
8133openbsd* | bitrig*)
8134  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8135    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8136  else
8137    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8138  fi
8139  ;;
8140
8141osf3* | osf4* | osf5*)
8142  lt_cv_deplibs_check_method=pass_all
8143  ;;
8144
8145rdos*)
8146  lt_cv_deplibs_check_method=pass_all
8147  ;;
8148
8149solaris*)
8150  lt_cv_deplibs_check_method=pass_all
8151  ;;
8152
8153sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8154  lt_cv_deplibs_check_method=pass_all
8155  ;;
8156
8157sysv4 | sysv4.3*)
8158  case $host_vendor in
8159  motorola)
8160    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]'
8161    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8162    ;;
8163  ncr)
8164    lt_cv_deplibs_check_method=pass_all
8165    ;;
8166  sequent)
8167    lt_cv_file_magic_cmd='/bin/file'
8168    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8169    ;;
8170  sni)
8171    lt_cv_file_magic_cmd='/bin/file'
8172    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8173    lt_cv_file_magic_test_file=/lib/libc.so
8174    ;;
8175  siemens)
8176    lt_cv_deplibs_check_method=pass_all
8177    ;;
8178  pc)
8179    lt_cv_deplibs_check_method=pass_all
8180    ;;
8181  esac
8182  ;;
8183
8184tpf*)
8185  lt_cv_deplibs_check_method=pass_all
8186  ;;
8187os2*)
8188  lt_cv_deplibs_check_method=pass_all
8189  ;;
8190esac
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8194$as_echo "$lt_cv_deplibs_check_method" >&6; }
8195
8196file_magic_glob=
8197want_nocaseglob=no
8198if test "$build" = "$host"; then
8199  case $host_os in
8200  mingw* | pw32*)
8201    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8202      want_nocaseglob=yes
8203    else
8204      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8205    fi
8206    ;;
8207  esac
8208fi
8209
8210file_magic_cmd=$lt_cv_file_magic_cmd
8211deplibs_check_method=$lt_cv_deplibs_check_method
8212test -z "$deplibs_check_method" && deplibs_check_method=unknown
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235if test -n "$ac_tool_prefix"; then
8236  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8237set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239$as_echo_n "checking for $ac_word... " >&6; }
8240if ${ac_cv_prog_DLLTOOL+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  if test -n "$DLLTOOL"; then
8244  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8245else
8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249  IFS=$as_save_IFS
8250  test -z "$as_dir" && as_dir=.
8251    for ac_exec_ext in '' $ac_executable_extensions; do
8252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255    break 2
8256  fi
8257done
8258  done
8259IFS=$as_save_IFS
8260
8261fi
8262fi
8263DLLTOOL=$ac_cv_prog_DLLTOOL
8264if test -n "$DLLTOOL"; then
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8266$as_echo "$DLLTOOL" >&6; }
8267else
8268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269$as_echo "no" >&6; }
8270fi
8271
8272
8273fi
8274if test -z "$ac_cv_prog_DLLTOOL"; then
8275  ac_ct_DLLTOOL=$DLLTOOL
8276  # Extract the first word of "dlltool", so it can be a program name with args.
8277set dummy dlltool; ac_word=$2
8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279$as_echo_n "checking for $ac_word... " >&6; }
8280if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8281  $as_echo_n "(cached) " >&6
8282else
8283  if test -n "$ac_ct_DLLTOOL"; then
8284  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289  IFS=$as_save_IFS
8290  test -z "$as_dir" && as_dir=.
8291    for ac_exec_ext in '' $ac_executable_extensions; do
8292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295    break 2
8296  fi
8297done
8298  done
8299IFS=$as_save_IFS
8300
8301fi
8302fi
8303ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8304if test -n "$ac_ct_DLLTOOL"; then
8305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8306$as_echo "$ac_ct_DLLTOOL" >&6; }
8307else
8308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
8310fi
8311
8312  if test "x$ac_ct_DLLTOOL" = x; then
8313    DLLTOOL="false"
8314  else
8315    case $cross_compiling:$ac_tool_warned in
8316yes:)
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319ac_tool_warned=yes ;;
8320esac
8321    DLLTOOL=$ac_ct_DLLTOOL
8322  fi
8323else
8324  DLLTOOL="$ac_cv_prog_DLLTOOL"
8325fi
8326
8327test -z "$DLLTOOL" && DLLTOOL=dlltool
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8339$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8340if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  lt_cv_sharedlib_from_linklib_cmd='unknown'
8344
8345case $host_os in
8346cygwin* | mingw* | pw32* | cegcc*)
8347  # two different shell functions defined in ltmain.sh;
8348  # decide which one to use based on capabilities of $DLLTOOL
8349  case `$DLLTOOL --help 2>&1` in
8350  *--identify-strict*)
8351    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8352    ;;
8353  *)
8354    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8355    ;;
8356  esac
8357  ;;
8358*)
8359  # fallback: assume linklib IS sharedlib
8360  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8361  ;;
8362esac
8363
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8366$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8367sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8368test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8369
8370
8371
8372
8373
8374
8375
8376if test -n "$ac_tool_prefix"; then
8377  for ac_prog in ar
8378  do
8379    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if ${ac_cv_prog_AR+:} false; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  if test -n "$AR"; then
8387  ac_cv_prog_AR="$AR" # Let the user override the test.
8388else
8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392  IFS=$as_save_IFS
8393  test -z "$as_dir" && as_dir=.
8394    for ac_exec_ext in '' $ac_executable_extensions; do
8395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398    break 2
8399  fi
8400done
8401  done
8402IFS=$as_save_IFS
8403
8404fi
8405fi
8406AR=$ac_cv_prog_AR
8407if test -n "$AR"; then
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8409$as_echo "$AR" >&6; }
8410else
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416    test -n "$AR" && break
8417  done
8418fi
8419if test -z "$AR"; then
8420  ac_ct_AR=$AR
8421  for ac_prog in ar
8422do
8423  # Extract the first word of "$ac_prog", so it can be a program name with args.
8424set dummy $ac_prog; 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_ac_ct_AR+:} false; then :
8428  $as_echo_n "(cached) " >&6
8429else
8430  if test -n "$ac_ct_AR"; then
8431  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$ac_prog"
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
8450ac_ct_AR=$ac_cv_prog_ac_ct_AR
8451if test -n "$ac_ct_AR"; then
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8453$as_echo "$ac_ct_AR" >&6; }
8454else
8455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456$as_echo "no" >&6; }
8457fi
8458
8459
8460  test -n "$ac_ct_AR" && break
8461done
8462
8463  if test "x$ac_ct_AR" = x; then
8464    AR="false"
8465  else
8466    case $cross_compiling:$ac_tool_warned in
8467yes:)
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470ac_tool_warned=yes ;;
8471esac
8472    AR=$ac_ct_AR
8473  fi
8474fi
8475
8476: ${AR=ar}
8477: ${AR_FLAGS=cru}
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8490$as_echo_n "checking for archiver @FILE support... " >&6; }
8491if ${lt_cv_ar_at_file+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  lt_cv_ar_at_file=no
8495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497
8498int
8499main ()
8500{
8501
8502  ;
8503  return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_compile "$LINENO"; then :
8507  echo conftest.$ac_objext > conftest.lst
8508      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8509      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8510  (eval $lt_ar_try) 2>&5
8511  ac_status=$?
8512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513  test $ac_status = 0; }
8514      if test 0 -eq "$ac_status"; then
8515	# Ensure the archiver fails upon bogus file names.
8516	rm -f conftest.$ac_objext libconftest.a
8517	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8518  (eval $lt_ar_try) 2>&5
8519  ac_status=$?
8520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8521  test $ac_status = 0; }
8522	if test 0 -ne "$ac_status"; then
8523          lt_cv_ar_at_file=@
8524        fi
8525      fi
8526      rm -f conftest.* libconftest.a
8527
8528fi
8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8533$as_echo "$lt_cv_ar_at_file" >&6; }
8534
8535if test no = "$lt_cv_ar_at_file"; then
8536  archiver_list_spec=
8537else
8538  archiver_list_spec=$lt_cv_ar_at_file
8539fi
8540
8541
8542
8543
8544
8545
8546
8547if test -n "$ac_tool_prefix"; then
8548  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8549set dummy ${ac_tool_prefix}strip; ac_word=$2
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551$as_echo_n "checking for $ac_word... " >&6; }
8552if ${ac_cv_prog_STRIP+:} false; then :
8553  $as_echo_n "(cached) " >&6
8554else
8555  if test -n "$STRIP"; then
8556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8557else
8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559for as_dir in $PATH
8560do
8561  IFS=$as_save_IFS
8562  test -z "$as_dir" && as_dir=.
8563    for ac_exec_ext in '' $ac_executable_extensions; do
8564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567    break 2
8568  fi
8569done
8570  done
8571IFS=$as_save_IFS
8572
8573fi
8574fi
8575STRIP=$ac_cv_prog_STRIP
8576if test -n "$STRIP"; then
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8578$as_echo "$STRIP" >&6; }
8579else
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585fi
8586if test -z "$ac_cv_prog_STRIP"; then
8587  ac_ct_STRIP=$STRIP
8588  # Extract the first word of "strip", so it can be a program name with args.
8589set dummy strip; ac_word=$2
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591$as_echo_n "checking for $ac_word... " >&6; }
8592if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  if test -n "$ac_ct_STRIP"; then
8596  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  test -z "$as_dir" && as_dir=.
8603    for ac_exec_ext in '' $ac_executable_extensions; do
8604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605    ac_cv_prog_ac_ct_STRIP="strip"
8606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610  done
8611IFS=$as_save_IFS
8612
8613fi
8614fi
8615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8616if test -n "$ac_ct_STRIP"; then
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8618$as_echo "$ac_ct_STRIP" >&6; }
8619else
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624  if test "x$ac_ct_STRIP" = x; then
8625    STRIP=":"
8626  else
8627    case $cross_compiling:$ac_tool_warned in
8628yes:)
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8631ac_tool_warned=yes ;;
8632esac
8633    STRIP=$ac_ct_STRIP
8634  fi
8635else
8636  STRIP="$ac_cv_prog_STRIP"
8637fi
8638
8639test -z "$STRIP" && STRIP=:
8640
8641
8642
8643
8644
8645
8646if test -n "$ac_tool_prefix"; then
8647  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650$as_echo_n "checking for $ac_word... " >&6; }
8651if ${ac_cv_prog_RANLIB+:} false; then :
8652  $as_echo_n "(cached) " >&6
8653else
8654  if test -n "$RANLIB"; then
8655  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8656else
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660  IFS=$as_save_IFS
8661  test -z "$as_dir" && as_dir=.
8662    for ac_exec_ext in '' $ac_executable_extensions; do
8663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666    break 2
8667  fi
8668done
8669  done
8670IFS=$as_save_IFS
8671
8672fi
8673fi
8674RANLIB=$ac_cv_prog_RANLIB
8675if test -n "$RANLIB"; then
8676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8677$as_echo "$RANLIB" >&6; }
8678else
8679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680$as_echo "no" >&6; }
8681fi
8682
8683
8684fi
8685if test -z "$ac_cv_prog_RANLIB"; then
8686  ac_ct_RANLIB=$RANLIB
8687  # Extract the first word of "ranlib", so it can be a program name with args.
8688set dummy ranlib; ac_word=$2
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  if test -n "$ac_ct_RANLIB"; then
8695  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700  IFS=$as_save_IFS
8701  test -z "$as_dir" && as_dir=.
8702    for ac_exec_ext in '' $ac_executable_extensions; do
8703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704    ac_cv_prog_ac_ct_RANLIB="ranlib"
8705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706    break 2
8707  fi
8708done
8709  done
8710IFS=$as_save_IFS
8711
8712fi
8713fi
8714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8715if test -n "$ac_ct_RANLIB"; then
8716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8717$as_echo "$ac_ct_RANLIB" >&6; }
8718else
8719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
8721fi
8722
8723  if test "x$ac_ct_RANLIB" = x; then
8724    RANLIB=":"
8725  else
8726    case $cross_compiling:$ac_tool_warned in
8727yes:)
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8730ac_tool_warned=yes ;;
8731esac
8732    RANLIB=$ac_ct_RANLIB
8733  fi
8734else
8735  RANLIB="$ac_cv_prog_RANLIB"
8736fi
8737
8738test -z "$RANLIB" && RANLIB=:
8739
8740
8741
8742
8743
8744
8745# Determine commands to create old-style static archives.
8746old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8747old_postinstall_cmds='chmod 644 $oldlib'
8748old_postuninstall_cmds=
8749
8750if test -n "$RANLIB"; then
8751  case $host_os in
8752  bitrig* | openbsd*)
8753    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8754    ;;
8755  *)
8756    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8757    ;;
8758  esac
8759  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8760fi
8761
8762case $host_os in
8763  darwin*)
8764    lock_old_archive_extraction=yes ;;
8765  *)
8766    lock_old_archive_extraction=no ;;
8767esac
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789for ac_prog in gawk mawk nawk awk
8790do
8791  # Extract the first word of "$ac_prog", so it can be a program name with args.
8792set dummy $ac_prog; ac_word=$2
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794$as_echo_n "checking for $ac_word... " >&6; }
8795if ${ac_cv_prog_AWK+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  if test -n "$AWK"; then
8799  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804  IFS=$as_save_IFS
8805  test -z "$as_dir" && as_dir=.
8806    for ac_exec_ext in '' $ac_executable_extensions; do
8807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808    ac_cv_prog_AWK="$ac_prog"
8809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810    break 2
8811  fi
8812done
8813  done
8814IFS=$as_save_IFS
8815
8816fi
8817fi
8818AWK=$ac_cv_prog_AWK
8819if test -n "$AWK"; then
8820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8821$as_echo "$AWK" >&6; }
8822else
8823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824$as_echo "no" >&6; }
8825fi
8826
8827
8828  test -n "$AWK" && break
8829done
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849# If no C compiler was specified, use CC.
8850LTCC=${LTCC-"$CC"}
8851
8852# If no C compiler flags were specified, use CFLAGS.
8853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8854
8855# Allow CC to be a program name with arguments.
8856compiler=$CC
8857
8858
8859# Check for command to grab the raw symbol name followed by C symbol from nm.
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8862if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8863  $as_echo_n "(cached) " >&6
8864else
8865
8866# These are sane defaults that work on at least a few old systems.
8867# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8868
8869# Character class describing NM global symbol codes.
8870symcode='[BCDEGRST]'
8871
8872# Regexp to match symbols that can be accessed directly from C.
8873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8874
8875# Define system-specific variables.
8876case $host_os in
8877aix*)
8878  symcode='[BCDT]'
8879  ;;
8880cygwin* | mingw* | pw32* | cegcc*)
8881  symcode='[ABCDGISTW]'
8882  ;;
8883hpux*)
8884  if test ia64 = "$host_cpu"; then
8885    symcode='[ABCDEGRST]'
8886  fi
8887  ;;
8888irix* | nonstopux*)
8889  symcode='[BCDEGRST]'
8890  ;;
8891osf*)
8892  symcode='[BCDEGQRST]'
8893  ;;
8894solaris*)
8895  symcode='[BDRT]'
8896  ;;
8897sco3.2v5*)
8898  symcode='[DT]'
8899  ;;
8900sysv4.2uw2*)
8901  symcode='[DT]'
8902  ;;
8903sysv5* | sco5v6* | unixware* | OpenUNIX*)
8904  symcode='[ABDT]'
8905  ;;
8906sysv4)
8907  symcode='[DFNSTU]'
8908  ;;
8909esac
8910
8911# If we're using GNU nm, then use its standard symbol codes.
8912case `$NM -V 2>&1` in
8913*GNU* | *'with BFD'*)
8914  symcode='[ABCDGIRSTW]' ;;
8915esac
8916
8917if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8918  # Gets list of data symbols to import.
8919  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8920  # Adjust the below global symbol transforms to fixup imported variables.
8921  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8922  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8923  lt_c_name_lib_hook="\
8924  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8925  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8926else
8927  # Disable hooks by default.
8928  lt_cv_sys_global_symbol_to_import=
8929  lt_cdecl_hook=
8930  lt_c_name_hook=
8931  lt_c_name_lib_hook=
8932fi
8933
8934# Transform an extracted symbol line into a proper C declaration.
8935# Some systems (esp. on ia64) link data and code symbols differently,
8936# so use this general approach.
8937lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8938$lt_cdecl_hook\
8939" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8940" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8941
8942# Transform an extracted symbol line into symbol name and symbol address
8943lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8944$lt_c_name_hook\
8945" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8946" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8947
8948# Transform an extracted symbol line into symbol name with lib prefix and
8949# symbol address.
8950lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8951$lt_c_name_lib_hook\
8952" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8953" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8954" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8955
8956# Handle CRLF in mingw tool chain
8957opt_cr=
8958case $build_os in
8959mingw*)
8960  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8961  ;;
8962esac
8963
8964# Try without a prefix underscore, then with it.
8965for ac_symprfx in "" "_"; do
8966
8967  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8968  symxfrm="\\1 $ac_symprfx\\2 \\2"
8969
8970  # Write the raw and C identifiers.
8971  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8972    # Fake it for dumpbin and say T for any non-static function,
8973    # D for any global variable and I for any imported variable.
8974    # Also find C++ and __fastcall symbols from MSVC++,
8975    # which start with @ or ?.
8976    lt_cv_sys_global_symbol_pipe="$AWK '"\
8977"     {last_section=section; section=\$ 3};"\
8978"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8979"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8980"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8981"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8982"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8983"     \$ 0!~/External *\|/{next};"\
8984"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8985"     {if(hide[section]) next};"\
8986"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8987"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8988"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8989"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8990"     ' prfx=^$ac_symprfx"
8991  else
8992    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8993  fi
8994  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8995
8996  # Check to see that the pipe works correctly.
8997  pipe_works=no
8998
8999  rm -f conftest*
9000  cat > conftest.$ac_ext <<_LT_EOF
9001#ifdef __cplusplus
9002extern "C" {
9003#endif
9004char nm_test_var;
9005void nm_test_func(void);
9006void nm_test_func(void){}
9007#ifdef __cplusplus
9008}
9009#endif
9010int main(){nm_test_var='a';nm_test_func();return(0);}
9011_LT_EOF
9012
9013  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9014  (eval $ac_compile) 2>&5
9015  ac_status=$?
9016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9017  test $ac_status = 0; }; then
9018    # Now try to grab the symbols.
9019    nlist=conftest.nm
9020    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9021  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9022  ac_status=$?
9023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9024  test $ac_status = 0; } && test -s "$nlist"; then
9025      # Try sorting and uniquifying the output.
9026      if sort "$nlist" | uniq > "$nlist"T; then
9027	mv -f "$nlist"T "$nlist"
9028      else
9029	rm -f "$nlist"T
9030      fi
9031
9032      # Make sure that we snagged all the symbols we need.
9033      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9034	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9035	  cat <<_LT_EOF > conftest.$ac_ext
9036/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9037#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9038/* DATA imports from DLLs on WIN32 can't be const, because runtime
9039   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9040# define LT_DLSYM_CONST
9041#elif defined __osf__
9042/* This system does not cope well with relocations in const data.  */
9043# define LT_DLSYM_CONST
9044#else
9045# define LT_DLSYM_CONST const
9046#endif
9047
9048#ifdef __cplusplus
9049extern "C" {
9050#endif
9051
9052_LT_EOF
9053	  # Now generate the symbol file.
9054	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9055
9056	  cat <<_LT_EOF >> conftest.$ac_ext
9057
9058/* The mapping between symbol names and symbols.  */
9059LT_DLSYM_CONST struct {
9060  const char *name;
9061  void       *address;
9062}
9063lt__PROGRAM__LTX_preloaded_symbols[] =
9064{
9065  { "@PROGRAM@", (void *) 0 },
9066_LT_EOF
9067	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9068	  cat <<\_LT_EOF >> conftest.$ac_ext
9069  {0, (void *) 0}
9070};
9071
9072/* This works around a problem in FreeBSD linker */
9073#ifdef FREEBSD_WORKAROUND
9074static const void *lt_preloaded_setup() {
9075  return lt__PROGRAM__LTX_preloaded_symbols;
9076}
9077#endif
9078
9079#ifdef __cplusplus
9080}
9081#endif
9082_LT_EOF
9083	  # Now try linking the two files.
9084	  mv conftest.$ac_objext conftstm.$ac_objext
9085	  lt_globsym_save_LIBS=$LIBS
9086	  lt_globsym_save_CFLAGS=$CFLAGS
9087	  LIBS=conftstm.$ac_objext
9088	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9089	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9090  (eval $ac_link) 2>&5
9091  ac_status=$?
9092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9093  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9094	    pipe_works=yes
9095	  fi
9096	  LIBS=$lt_globsym_save_LIBS
9097	  CFLAGS=$lt_globsym_save_CFLAGS
9098	else
9099	  echo "cannot find nm_test_func in $nlist" >&5
9100	fi
9101      else
9102	echo "cannot find nm_test_var in $nlist" >&5
9103      fi
9104    else
9105      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9106    fi
9107  else
9108    echo "$progname: failed program was:" >&5
9109    cat conftest.$ac_ext >&5
9110  fi
9111  rm -rf conftest* conftst*
9112
9113  # Do not use the global_symbol_pipe unless it works.
9114  if test yes = "$pipe_works"; then
9115    break
9116  else
9117    lt_cv_sys_global_symbol_pipe=
9118  fi
9119done
9120
9121fi
9122
9123if test -z "$lt_cv_sys_global_symbol_pipe"; then
9124  lt_cv_sys_global_symbol_to_cdecl=
9125fi
9126if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9128$as_echo "failed" >&6; }
9129else
9130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9131$as_echo "ok" >&6; }
9132fi
9133
9134# Response file support.
9135if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9136  nm_file_list_spec='@'
9137elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9138  nm_file_list_spec='@'
9139fi
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9178$as_echo_n "checking for sysroot... " >&6; }
9179
9180# Check whether --with-sysroot was given.
9181if test "${with_sysroot+set}" = set; then :
9182  withval=$with_sysroot;
9183else
9184  with_sysroot=no
9185fi
9186
9187
9188lt_sysroot=
9189case $with_sysroot in #(
9190 yes)
9191   if test yes = "$GCC"; then
9192     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9193   fi
9194   ;; #(
9195 /*)
9196   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9197   ;; #(
9198 no|'')
9199   ;; #(
9200 *)
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9202$as_echo "$with_sysroot" >&6; }
9203   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9204   ;;
9205esac
9206
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9208$as_echo "${lt_sysroot:-no}" >&6; }
9209
9210
9211
9212
9213
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9215$as_echo_n "checking for a working dd... " >&6; }
9216if ${ac_cv_path_lt_DD+:} false; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219  printf 0123456789abcdef0123456789abcdef >conftest.i
9220cat conftest.i conftest.i >conftest2.i
9221: ${lt_DD:=$DD}
9222if test -z "$lt_DD"; then
9223  ac_path_lt_DD_found=false
9224  # Loop through the user's path and test for each of PROGNAME-LIST
9225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228  IFS=$as_save_IFS
9229  test -z "$as_dir" && as_dir=.
9230    for ac_prog in dd; do
9231    for ac_exec_ext in '' $ac_executable_extensions; do
9232      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9233      as_fn_executable_p "$ac_path_lt_DD" || continue
9234if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9235  cmp -s conftest.i conftest.out \
9236  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9237fi
9238      $ac_path_lt_DD_found && break 3
9239    done
9240  done
9241  done
9242IFS=$as_save_IFS
9243  if test -z "$ac_cv_path_lt_DD"; then
9244    :
9245  fi
9246else
9247  ac_cv_path_lt_DD=$lt_DD
9248fi
9249
9250rm -f conftest.i conftest2.i conftest.out
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9253$as_echo "$ac_cv_path_lt_DD" >&6; }
9254
9255
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9257$as_echo_n "checking how to truncate binary pipes... " >&6; }
9258if ${lt_cv_truncate_bin+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  printf 0123456789abcdef0123456789abcdef >conftest.i
9262cat conftest.i conftest.i >conftest2.i
9263lt_cv_truncate_bin=
9264if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9265  cmp -s conftest.i conftest.out \
9266  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9267fi
9268rm -f conftest.i conftest2.i conftest.out
9269test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9270fi
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9272$as_echo "$lt_cv_truncate_bin" >&6; }
9273
9274
9275
9276
9277
9278
9279
9280# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9281func_cc_basename ()
9282{
9283    for cc_temp in $*""; do
9284      case $cc_temp in
9285        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9286        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9287        \-*) ;;
9288        *) break;;
9289      esac
9290    done
9291    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9292}
9293
9294# Check whether --enable-libtool-lock was given.
9295if test "${enable_libtool_lock+set}" = set; then :
9296  enableval=$enable_libtool_lock;
9297fi
9298
9299test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9300
9301# Some flags need to be propagated to the compiler or linker for good
9302# libtool support.
9303case $host in
9304ia64-*-hpux*)
9305  # Find out what ABI is being produced by ac_compile, and set mode
9306  # options accordingly.
9307  echo 'int i;' > conftest.$ac_ext
9308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309  (eval $ac_compile) 2>&5
9310  ac_status=$?
9311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312  test $ac_status = 0; }; then
9313    case `/usr/bin/file conftest.$ac_objext` in
9314      *ELF-32*)
9315	HPUX_IA64_MODE=32
9316	;;
9317      *ELF-64*)
9318	HPUX_IA64_MODE=64
9319	;;
9320    esac
9321  fi
9322  rm -rf conftest*
9323  ;;
9324*-*-irix6*)
9325  # Find out what ABI is being produced by ac_compile, and set linker
9326  # options accordingly.
9327  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9329  (eval $ac_compile) 2>&5
9330  ac_status=$?
9331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9332  test $ac_status = 0; }; then
9333    if test yes = "$lt_cv_prog_gnu_ld"; then
9334      case `/usr/bin/file conftest.$ac_objext` in
9335	*32-bit*)
9336	  LD="${LD-ld} -melf32bsmip"
9337	  ;;
9338	*N32*)
9339	  LD="${LD-ld} -melf32bmipn32"
9340	  ;;
9341	*64-bit*)
9342	  LD="${LD-ld} -melf64bmip"
9343	;;
9344      esac
9345    else
9346      case `/usr/bin/file conftest.$ac_objext` in
9347	*32-bit*)
9348	  LD="${LD-ld} -32"
9349	  ;;
9350	*N32*)
9351	  LD="${LD-ld} -n32"
9352	  ;;
9353	*64-bit*)
9354	  LD="${LD-ld} -64"
9355	  ;;
9356      esac
9357    fi
9358  fi
9359  rm -rf conftest*
9360  ;;
9361
9362mips64*-*linux*)
9363  # Find out what ABI is being produced by ac_compile, and set linker
9364  # options accordingly.
9365  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9367  (eval $ac_compile) 2>&5
9368  ac_status=$?
9369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9370  test $ac_status = 0; }; then
9371    emul=elf
9372    case `/usr/bin/file conftest.$ac_objext` in
9373      *32-bit*)
9374	emul="${emul}32"
9375	;;
9376      *64-bit*)
9377	emul="${emul}64"
9378	;;
9379    esac
9380    case `/usr/bin/file conftest.$ac_objext` in
9381      *MSB*)
9382	emul="${emul}btsmip"
9383	;;
9384      *LSB*)
9385	emul="${emul}ltsmip"
9386	;;
9387    esac
9388    case `/usr/bin/file conftest.$ac_objext` in
9389      *N32*)
9390	emul="${emul}n32"
9391	;;
9392    esac
9393    LD="${LD-ld} -m $emul"
9394  fi
9395  rm -rf conftest*
9396  ;;
9397
9398x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9399s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9400  # Find out what ABI is being produced by ac_compile, and set linker
9401  # options accordingly.  Note that the listed cases only cover the
9402  # situations where additional linker options are needed (such as when
9403  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9404  # vice versa); the common cases where no linker options are needed do
9405  # not appear in the list.
9406  echo 'int i;' > conftest.$ac_ext
9407  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9408  (eval $ac_compile) 2>&5
9409  ac_status=$?
9410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411  test $ac_status = 0; }; then
9412    case `/usr/bin/file conftest.o` in
9413      *32-bit*)
9414	case $host in
9415	  x86_64-*kfreebsd*-gnu)
9416	    LD="${LD-ld} -m elf_i386_fbsd"
9417	    ;;
9418	  x86_64-*linux*)
9419	    case `/usr/bin/file conftest.o` in
9420	      *x86-64*)
9421		LD="${LD-ld} -m elf32_x86_64"
9422		;;
9423	      *)
9424		LD="${LD-ld} -m elf_i386"
9425		;;
9426	    esac
9427	    ;;
9428	  powerpc64le-*linux*)
9429	    LD="${LD-ld} -m elf32lppclinux"
9430	    ;;
9431	  powerpc64-*linux*)
9432	    LD="${LD-ld} -m elf32ppclinux"
9433	    ;;
9434	  s390x-*linux*)
9435	    LD="${LD-ld} -m elf_s390"
9436	    ;;
9437	  sparc64-*linux*)
9438	    LD="${LD-ld} -m elf32_sparc"
9439	    ;;
9440	esac
9441	;;
9442      *64-bit*)
9443	case $host in
9444	  x86_64-*kfreebsd*-gnu)
9445	    LD="${LD-ld} -m elf_x86_64_fbsd"
9446	    ;;
9447	  x86_64-*linux*)
9448	    LD="${LD-ld} -m elf_x86_64"
9449	    ;;
9450	  powerpcle-*linux*)
9451	    LD="${LD-ld} -m elf64lppc"
9452	    ;;
9453	  powerpc-*linux*)
9454	    LD="${LD-ld} -m elf64ppc"
9455	    ;;
9456	  s390*-*linux*|s390*-*tpf*)
9457	    LD="${LD-ld} -m elf64_s390"
9458	    ;;
9459	  sparc*-*linux*)
9460	    LD="${LD-ld} -m elf64_sparc"
9461	    ;;
9462	esac
9463	;;
9464    esac
9465  fi
9466  rm -rf conftest*
9467  ;;
9468
9469*-*-sco3.2v5*)
9470  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9471  SAVE_CFLAGS=$CFLAGS
9472  CFLAGS="$CFLAGS -belf"
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9475if ${lt_cv_cc_needs_belf+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  ac_ext=c
9479ac_cpp='$CPP $CPPFLAGS'
9480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
9484     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486
9487int
9488main ()
9489{
9490
9491  ;
9492  return 0;
9493}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496  lt_cv_cc_needs_belf=yes
9497else
9498  lt_cv_cc_needs_belf=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502     ac_ext=c
9503ac_cpp='$CPP $CPPFLAGS'
9504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508fi
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9510$as_echo "$lt_cv_cc_needs_belf" >&6; }
9511  if test yes != "$lt_cv_cc_needs_belf"; then
9512    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9513    CFLAGS=$SAVE_CFLAGS
9514  fi
9515  ;;
9516*-*solaris*)
9517  # Find out what ABI is being produced by ac_compile, and set linker
9518  # options accordingly.
9519  echo 'int i;' > conftest.$ac_ext
9520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9521  (eval $ac_compile) 2>&5
9522  ac_status=$?
9523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9524  test $ac_status = 0; }; then
9525    case `/usr/bin/file conftest.o` in
9526    *64-bit*)
9527      case $lt_cv_prog_gnu_ld in
9528      yes*)
9529        case $host in
9530        i?86-*-solaris*|x86_64-*-solaris*)
9531          LD="${LD-ld} -m elf_x86_64"
9532          ;;
9533        sparc*-*-solaris*)
9534          LD="${LD-ld} -m elf64_sparc"
9535          ;;
9536        esac
9537        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9538        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9539          LD=${LD-ld}_sol2
9540        fi
9541        ;;
9542      *)
9543	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9544	  LD="${LD-ld} -64"
9545	fi
9546	;;
9547      esac
9548      ;;
9549    esac
9550  fi
9551  rm -rf conftest*
9552  ;;
9553esac
9554
9555need_locks=$enable_libtool_lock
9556
9557if test -n "$ac_tool_prefix"; then
9558  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9559set dummy ${ac_tool_prefix}mt; ac_word=$2
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561$as_echo_n "checking for $ac_word... " >&6; }
9562if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  if test -n "$MANIFEST_TOOL"; then
9566  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9567else
9568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569for as_dir in $PATH
9570do
9571  IFS=$as_save_IFS
9572  test -z "$as_dir" && as_dir=.
9573    for ac_exec_ext in '' $ac_executable_extensions; do
9574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577    break 2
9578  fi
9579done
9580  done
9581IFS=$as_save_IFS
9582
9583fi
9584fi
9585MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9586if test -n "$MANIFEST_TOOL"; then
9587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9588$as_echo "$MANIFEST_TOOL" >&6; }
9589else
9590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591$as_echo "no" >&6; }
9592fi
9593
9594
9595fi
9596if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9597  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9598  # Extract the first word of "mt", so it can be a program name with args.
9599set dummy mt; ac_word=$2
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601$as_echo_n "checking for $ac_word... " >&6; }
9602if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9603  $as_echo_n "(cached) " >&6
9604else
9605  if test -n "$ac_ct_MANIFEST_TOOL"; then
9606  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9607else
9608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611  IFS=$as_save_IFS
9612  test -z "$as_dir" && as_dir=.
9613    for ac_exec_ext in '' $ac_executable_extensions; do
9614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617    break 2
9618  fi
9619done
9620  done
9621IFS=$as_save_IFS
9622
9623fi
9624fi
9625ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9626if test -n "$ac_ct_MANIFEST_TOOL"; then
9627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9628$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9629else
9630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631$as_echo "no" >&6; }
9632fi
9633
9634  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9635    MANIFEST_TOOL=":"
9636  else
9637    case $cross_compiling:$ac_tool_warned in
9638yes:)
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641ac_tool_warned=yes ;;
9642esac
9643    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9644  fi
9645else
9646  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9647fi
9648
9649test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9651$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9652if ${lt_cv_path_mainfest_tool+:} false; then :
9653  $as_echo_n "(cached) " >&6
9654else
9655  lt_cv_path_mainfest_tool=no
9656  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9657  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9658  cat conftest.err >&5
9659  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9660    lt_cv_path_mainfest_tool=yes
9661  fi
9662  rm -f conftest*
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9665$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9666if test yes != "$lt_cv_path_mainfest_tool"; then
9667  MANIFEST_TOOL=:
9668fi
9669
9670
9671
9672
9673
9674
9675  case $host_os in
9676    rhapsody* | darwin*)
9677    if test -n "$ac_tool_prefix"; then
9678  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9679set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  if test -n "$DSYMUTIL"; then
9686  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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
9705DSYMUTIL=$ac_cv_prog_DSYMUTIL
9706if test -n "$DSYMUTIL"; then
9707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9708$as_echo "$DSYMUTIL" >&6; }
9709else
9710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711$as_echo "no" >&6; }
9712fi
9713
9714
9715fi
9716if test -z "$ac_cv_prog_DSYMUTIL"; then
9717  ac_ct_DSYMUTIL=$DSYMUTIL
9718  # Extract the first word of "dsymutil", so it can be a program name with args.
9719set dummy dsymutil; ac_word=$2
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721$as_echo_n "checking for $ac_word... " >&6; }
9722if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  if test -n "$ac_ct_DSYMUTIL"; then
9726  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9727else
9728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729for as_dir in $PATH
9730do
9731  IFS=$as_save_IFS
9732  test -z "$as_dir" && as_dir=.
9733    for ac_exec_ext in '' $ac_executable_extensions; do
9734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737    break 2
9738  fi
9739done
9740  done
9741IFS=$as_save_IFS
9742
9743fi
9744fi
9745ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9746if test -n "$ac_ct_DSYMUTIL"; then
9747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9748$as_echo "$ac_ct_DSYMUTIL" >&6; }
9749else
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754  if test "x$ac_ct_DSYMUTIL" = x; then
9755    DSYMUTIL=":"
9756  else
9757    case $cross_compiling:$ac_tool_warned in
9758yes:)
9759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9761ac_tool_warned=yes ;;
9762esac
9763    DSYMUTIL=$ac_ct_DSYMUTIL
9764  fi
9765else
9766  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9767fi
9768
9769    if test -n "$ac_tool_prefix"; then
9770  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9771set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  if test -n "$NMEDIT"; then
9778  ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
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
9797NMEDIT=$ac_cv_prog_NMEDIT
9798if test -n "$NMEDIT"; then
9799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9800$as_echo "$NMEDIT" >&6; }
9801else
9802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
9804fi
9805
9806
9807fi
9808if test -z "$ac_cv_prog_NMEDIT"; then
9809  ac_ct_NMEDIT=$NMEDIT
9810  # Extract the first word of "nmedit", so it can be a program name with args.
9811set dummy nmedit; ac_word=$2
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
9814if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9815  $as_echo_n "(cached) " >&6
9816else
9817  if test -n "$ac_ct_NMEDIT"; then
9818  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9819else
9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823  IFS=$as_save_IFS
9824  test -z "$as_dir" && as_dir=.
9825    for ac_exec_ext in '' $ac_executable_extensions; do
9826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829    break 2
9830  fi
9831done
9832  done
9833IFS=$as_save_IFS
9834
9835fi
9836fi
9837ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9838if test -n "$ac_ct_NMEDIT"; then
9839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9840$as_echo "$ac_ct_NMEDIT" >&6; }
9841else
9842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843$as_echo "no" >&6; }
9844fi
9845
9846  if test "x$ac_ct_NMEDIT" = x; then
9847    NMEDIT=":"
9848  else
9849    case $cross_compiling:$ac_tool_warned in
9850yes:)
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9853ac_tool_warned=yes ;;
9854esac
9855    NMEDIT=$ac_ct_NMEDIT
9856  fi
9857else
9858  NMEDIT="$ac_cv_prog_NMEDIT"
9859fi
9860
9861    if test -n "$ac_tool_prefix"; then
9862  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9863set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
9867  $as_echo_n "(cached) " >&6
9868else
9869  if test -n "$LIPO"; then
9870  ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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
9889LIPO=$ac_cv_prog_LIPO
9890if test -n "$LIPO"; then
9891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9892$as_echo "$LIPO" >&6; }
9893else
9894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895$as_echo "no" >&6; }
9896fi
9897
9898
9899fi
9900if test -z "$ac_cv_prog_LIPO"; then
9901  ac_ct_LIPO=$LIPO
9902  # Extract the first word of "lipo", so it can be a program name with args.
9903set dummy lipo; ac_word=$2
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905$as_echo_n "checking for $ac_word... " >&6; }
9906if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9907  $as_echo_n "(cached) " >&6
9908else
9909  if test -n "$ac_ct_LIPO"; then
9910  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9911else
9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915  IFS=$as_save_IFS
9916  test -z "$as_dir" && as_dir=.
9917    for ac_exec_ext in '' $ac_executable_extensions; do
9918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919    ac_cv_prog_ac_ct_LIPO="lipo"
9920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9921    break 2
9922  fi
9923done
9924  done
9925IFS=$as_save_IFS
9926
9927fi
9928fi
9929ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9930if test -n "$ac_ct_LIPO"; then
9931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9932$as_echo "$ac_ct_LIPO" >&6; }
9933else
9934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935$as_echo "no" >&6; }
9936fi
9937
9938  if test "x$ac_ct_LIPO" = x; then
9939    LIPO=":"
9940  else
9941    case $cross_compiling:$ac_tool_warned in
9942yes:)
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9945ac_tool_warned=yes ;;
9946esac
9947    LIPO=$ac_ct_LIPO
9948  fi
9949else
9950  LIPO="$ac_cv_prog_LIPO"
9951fi
9952
9953    if test -n "$ac_tool_prefix"; then
9954  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9955set dummy ${ac_tool_prefix}otool; ac_word=$2
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957$as_echo_n "checking for $ac_word... " >&6; }
9958if ${ac_cv_prog_OTOOL+:} false; then :
9959  $as_echo_n "(cached) " >&6
9960else
9961  if test -n "$OTOOL"; then
9962  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967  IFS=$as_save_IFS
9968  test -z "$as_dir" && as_dir=.
9969    for ac_exec_ext in '' $ac_executable_extensions; do
9970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9971    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973    break 2
9974  fi
9975done
9976  done
9977IFS=$as_save_IFS
9978
9979fi
9980fi
9981OTOOL=$ac_cv_prog_OTOOL
9982if test -n "$OTOOL"; then
9983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9984$as_echo "$OTOOL" >&6; }
9985else
9986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987$as_echo "no" >&6; }
9988fi
9989
9990
9991fi
9992if test -z "$ac_cv_prog_OTOOL"; then
9993  ac_ct_OTOOL=$OTOOL
9994  # Extract the first word of "otool", so it can be a program name with args.
9995set dummy otool; ac_word=$2
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997$as_echo_n "checking for $ac_word... " >&6; }
9998if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9999  $as_echo_n "(cached) " >&6
10000else
10001  if test -n "$ac_ct_OTOOL"; then
10002  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007  IFS=$as_save_IFS
10008  test -z "$as_dir" && as_dir=.
10009    for ac_exec_ext in '' $ac_executable_extensions; do
10010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011    ac_cv_prog_ac_ct_OTOOL="otool"
10012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013    break 2
10014  fi
10015done
10016  done
10017IFS=$as_save_IFS
10018
10019fi
10020fi
10021ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10022if test -n "$ac_ct_OTOOL"; then
10023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10024$as_echo "$ac_ct_OTOOL" >&6; }
10025else
10026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
10028fi
10029
10030  if test "x$ac_ct_OTOOL" = x; then
10031    OTOOL=":"
10032  else
10033    case $cross_compiling:$ac_tool_warned in
10034yes:)
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037ac_tool_warned=yes ;;
10038esac
10039    OTOOL=$ac_ct_OTOOL
10040  fi
10041else
10042  OTOOL="$ac_cv_prog_OTOOL"
10043fi
10044
10045    if test -n "$ac_tool_prefix"; then
10046  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10047set dummy ${ac_tool_prefix}otool64; ac_word=$2
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049$as_echo_n "checking for $ac_word... " >&6; }
10050if ${ac_cv_prog_OTOOL64+:} false; then :
10051  $as_echo_n "(cached) " >&6
10052else
10053  if test -n "$OTOOL64"; then
10054  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10055else
10056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10057for as_dir in $PATH
10058do
10059  IFS=$as_save_IFS
10060  test -z "$as_dir" && as_dir=.
10061    for ac_exec_ext in '' $ac_executable_extensions; do
10062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10063    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065    break 2
10066  fi
10067done
10068  done
10069IFS=$as_save_IFS
10070
10071fi
10072fi
10073OTOOL64=$ac_cv_prog_OTOOL64
10074if test -n "$OTOOL64"; then
10075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10076$as_echo "$OTOOL64" >&6; }
10077else
10078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
10080fi
10081
10082
10083fi
10084if test -z "$ac_cv_prog_OTOOL64"; then
10085  ac_ct_OTOOL64=$OTOOL64
10086  # Extract the first word of "otool64", so it can be a program name with args.
10087set dummy otool64; ac_word=$2
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089$as_echo_n "checking for $ac_word... " >&6; }
10090if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10091  $as_echo_n "(cached) " >&6
10092else
10093  if test -n "$ac_ct_OTOOL64"; then
10094  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10095else
10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097for as_dir in $PATH
10098do
10099  IFS=$as_save_IFS
10100  test -z "$as_dir" && as_dir=.
10101    for ac_exec_ext in '' $ac_executable_extensions; do
10102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10103    ac_cv_prog_ac_ct_OTOOL64="otool64"
10104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105    break 2
10106  fi
10107done
10108  done
10109IFS=$as_save_IFS
10110
10111fi
10112fi
10113ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10114if test -n "$ac_ct_OTOOL64"; then
10115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10116$as_echo "$ac_ct_OTOOL64" >&6; }
10117else
10118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
10120fi
10121
10122  if test "x$ac_ct_OTOOL64" = x; then
10123    OTOOL64=":"
10124  else
10125    case $cross_compiling:$ac_tool_warned in
10126yes:)
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10129ac_tool_warned=yes ;;
10130esac
10131    OTOOL64=$ac_ct_OTOOL64
10132  fi
10133else
10134  OTOOL64="$ac_cv_prog_OTOOL64"
10135fi
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10164$as_echo_n "checking for -single_module linker flag... " >&6; }
10165if ${lt_cv_apple_cc_single_mod+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  lt_cv_apple_cc_single_mod=no
10169      if test -z "$LT_MULTI_MODULE"; then
10170	# By default we will add the -single_module flag. You can override
10171	# by either setting the environment variable LT_MULTI_MODULE
10172	# non-empty at configure time, or by adding -multi_module to the
10173	# link flags.
10174	rm -rf libconftest.dylib*
10175	echo "int foo(void){return 1;}" > conftest.c
10176	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10177-dynamiclib -Wl,-single_module conftest.c" >&5
10178	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10179	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10180        _lt_result=$?
10181	# If there is a non-empty error log, and "single_module"
10182	# appears in it, assume the flag caused a linker warning
10183        if test -s conftest.err && $GREP single_module conftest.err; then
10184	  cat conftest.err >&5
10185	# Otherwise, if the output was created with a 0 exit code from
10186	# the compiler, it worked.
10187	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10188	  lt_cv_apple_cc_single_mod=yes
10189	else
10190	  cat conftest.err >&5
10191	fi
10192	rm -rf libconftest.dylib*
10193	rm -f conftest.*
10194      fi
10195fi
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10197$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10198
10199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10200$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10201if ${lt_cv_ld_exported_symbols_list+:} false; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  lt_cv_ld_exported_symbols_list=no
10205      save_LDFLAGS=$LDFLAGS
10206      echo "_main" > conftest.sym
10207      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10208      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209/* end confdefs.h.  */
10210
10211int
10212main ()
10213{
10214
10215  ;
10216  return 0;
10217}
10218_ACEOF
10219if ac_fn_c_try_link "$LINENO"; then :
10220  lt_cv_ld_exported_symbols_list=yes
10221else
10222  lt_cv_ld_exported_symbols_list=no
10223fi
10224rm -f core conftest.err conftest.$ac_objext \
10225    conftest$ac_exeext conftest.$ac_ext
10226	LDFLAGS=$save_LDFLAGS
10227
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10230$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10231
10232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10233$as_echo_n "checking for -force_load linker flag... " >&6; }
10234if ${lt_cv_ld_force_load+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  lt_cv_ld_force_load=no
10238      cat > conftest.c << _LT_EOF
10239int forced_loaded() { return 2;}
10240_LT_EOF
10241      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10242      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10243      echo "$AR cru libconftest.a conftest.o" >&5
10244      $AR cru libconftest.a conftest.o 2>&5
10245      echo "$RANLIB libconftest.a" >&5
10246      $RANLIB libconftest.a 2>&5
10247      cat > conftest.c << _LT_EOF
10248int main() { return 0;}
10249_LT_EOF
10250      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10251      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10252      _lt_result=$?
10253      if test -s conftest.err && $GREP force_load conftest.err; then
10254	cat conftest.err >&5
10255      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10256	lt_cv_ld_force_load=yes
10257      else
10258	cat conftest.err >&5
10259      fi
10260        rm -f conftest.err libconftest.a conftest conftest.c
10261        rm -rf conftest.dSYM
10262
10263fi
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10265$as_echo "$lt_cv_ld_force_load" >&6; }
10266    case $host_os in
10267    rhapsody* | darwin1.[012])
10268      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10269    darwin1.*)
10270      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10271    darwin*) # darwin 5.x on
10272      # if running on 10.5 or later, the deployment target defaults
10273      # to the OS version, if on x86, and 10.4, the deployment
10274      # target defaults to 10.4. Don't you love it?
10275      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10276	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10277	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10278	10.[012][,.]*)
10279	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10280	10.*)
10281	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10282      esac
10283    ;;
10284  esac
10285    if test yes = "$lt_cv_apple_cc_single_mod"; then
10286      _lt_dar_single_mod='$single_module'
10287    fi
10288    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10289      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10290    else
10291      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10292    fi
10293    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10294      _lt_dsymutil='~$DSYMUTIL $lib || :'
10295    else
10296      _lt_dsymutil=
10297    fi
10298    ;;
10299  esac
10300
10301# func_munge_path_list VARIABLE PATH
10302# -----------------------------------
10303# VARIABLE is name of variable containing _space_ separated list of
10304# directories to be munged by the contents of PATH, which is string
10305# having a format:
10306# "DIR[:DIR]:"
10307#       string "DIR[ DIR]" will be prepended to VARIABLE
10308# ":DIR[:DIR]"
10309#       string "DIR[ DIR]" will be appended to VARIABLE
10310# "DIRP[:DIRP]::[DIRA:]DIRA"
10311#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10312#       "DIRA[ DIRA]" will be appended to VARIABLE
10313# "DIR[:DIR]"
10314#       VARIABLE will be replaced by "DIR[ DIR]"
10315func_munge_path_list ()
10316{
10317    case x$2 in
10318    x)
10319        ;;
10320    *:)
10321        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10322        ;;
10323    x:*)
10324        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10325        ;;
10326    *::*)
10327        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10328        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10329        ;;
10330    *)
10331        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10332        ;;
10333    esac
10334}
10335
10336for ac_header in dlfcn.h
10337do :
10338  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10339"
10340if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10341  cat >>confdefs.h <<_ACEOF
10342#define HAVE_DLFCN_H 1
10343_ACEOF
10344
10345fi
10346
10347done
10348
10349
10350
10351
10352
10353
10354
10355# Set options
10356
10357
10358
10359        enable_dlopen=no
10360
10361
10362  enable_win32_dll=no
10363
10364
10365            # Check whether --enable-shared was given.
10366if test "${enable_shared+set}" = set; then :
10367  enableval=$enable_shared; p=${PACKAGE-default}
10368    case $enableval in
10369    yes) enable_shared=yes ;;
10370    no) enable_shared=no ;;
10371    *)
10372      enable_shared=no
10373      # Look at the argument we got.  We use all the common list separators.
10374      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10375      for pkg in $enableval; do
10376	IFS=$lt_save_ifs
10377	if test "X$pkg" = "X$p"; then
10378	  enable_shared=yes
10379	fi
10380      done
10381      IFS=$lt_save_ifs
10382      ;;
10383    esac
10384else
10385  enable_shared=yes
10386fi
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396  # Check whether --enable-static was given.
10397if test "${enable_static+set}" = set; then :
10398  enableval=$enable_static; p=${PACKAGE-default}
10399    case $enableval in
10400    yes) enable_static=yes ;;
10401    no) enable_static=no ;;
10402    *)
10403     enable_static=no
10404      # Look at the argument we got.  We use all the common list separators.
10405      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10406      for pkg in $enableval; do
10407	IFS=$lt_save_ifs
10408	if test "X$pkg" = "X$p"; then
10409	  enable_static=yes
10410	fi
10411      done
10412      IFS=$lt_save_ifs
10413      ;;
10414    esac
10415else
10416  enable_static=yes
10417fi
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428# Check whether --with-pic was given.
10429if test "${with_pic+set}" = set; then :
10430  withval=$with_pic; lt_p=${PACKAGE-default}
10431    case $withval in
10432    yes|no) pic_mode=$withval ;;
10433    *)
10434      pic_mode=default
10435      # Look at the argument we got.  We use all the common list separators.
10436      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10437      for lt_pkg in $withval; do
10438	IFS=$lt_save_ifs
10439	if test "X$lt_pkg" = "X$lt_p"; then
10440	  pic_mode=yes
10441	fi
10442      done
10443      IFS=$lt_save_ifs
10444      ;;
10445    esac
10446else
10447  pic_mode=default
10448fi
10449
10450
10451
10452
10453
10454
10455
10456
10457  # Check whether --enable-fast-install was given.
10458if test "${enable_fast_install+set}" = set; then :
10459  enableval=$enable_fast_install; p=${PACKAGE-default}
10460    case $enableval in
10461    yes) enable_fast_install=yes ;;
10462    no) enable_fast_install=no ;;
10463    *)
10464      enable_fast_install=no
10465      # Look at the argument we got.  We use all the common list separators.
10466      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10467      for pkg in $enableval; do
10468	IFS=$lt_save_ifs
10469	if test "X$pkg" = "X$p"; then
10470	  enable_fast_install=yes
10471	fi
10472      done
10473      IFS=$lt_save_ifs
10474      ;;
10475    esac
10476else
10477  enable_fast_install=yes
10478fi
10479
10480
10481
10482
10483
10484
10485
10486
10487  shared_archive_member_spec=
10488case $host,$enable_shared in
10489power*-*-aix[5-9]*,yes)
10490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10491$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10492
10493# Check whether --with-aix-soname was given.
10494if test "${with_aix_soname+set}" = set; then :
10495  withval=$with_aix_soname; case $withval in
10496    aix|svr4|both)
10497      ;;
10498    *)
10499      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10500      ;;
10501    esac
10502    lt_cv_with_aix_soname=$with_aix_soname
10503else
10504  if ${lt_cv_with_aix_soname+:} false; then :
10505  $as_echo_n "(cached) " >&6
10506else
10507  lt_cv_with_aix_soname=aix
10508fi
10509
10510    with_aix_soname=$lt_cv_with_aix_soname
10511fi
10512
10513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10514$as_echo "$with_aix_soname" >&6; }
10515  if test aix != "$with_aix_soname"; then
10516    # For the AIX way of multilib, we name the shared archive member
10517    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10518    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10519    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10520    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10521    if test 64 = "${OBJECT_MODE-32}"; then
10522      shared_archive_member_spec=shr_64
10523    else
10524      shared_archive_member_spec=shr
10525    fi
10526  fi
10527  ;;
10528*)
10529  with_aix_soname=aix
10530  ;;
10531esac
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542# This can be used to rebuild libtool when needed
10543LIBTOOL_DEPS=$ltmain
10544
10545# Always use our own libtool.
10546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577test -z "$LN_S" && LN_S="ln -s"
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592if test -n "${ZSH_VERSION+set}"; then
10593   setopt NO_GLOB_SUBST
10594fi
10595
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10597$as_echo_n "checking for objdir... " >&6; }
10598if ${lt_cv_objdir+:} false; then :
10599  $as_echo_n "(cached) " >&6
10600else
10601  rm -f .libs 2>/dev/null
10602mkdir .libs 2>/dev/null
10603if test -d .libs; then
10604  lt_cv_objdir=.libs
10605else
10606  # MS-DOS does not allow filenames that begin with a dot.
10607  lt_cv_objdir=_libs
10608fi
10609rmdir .libs 2>/dev/null
10610fi
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10612$as_echo "$lt_cv_objdir" >&6; }
10613objdir=$lt_cv_objdir
10614
10615
10616
10617
10618
10619cat >>confdefs.h <<_ACEOF
10620#define LT_OBJDIR "$lt_cv_objdir/"
10621_ACEOF
10622
10623
10624
10625
10626case $host_os in
10627aix3*)
10628  # AIX sometimes has problems with the GCC collect2 program.  For some
10629  # reason, if we set the COLLECT_NAMES environment variable, the problems
10630  # vanish in a puff of smoke.
10631  if test set != "${COLLECT_NAMES+set}"; then
10632    COLLECT_NAMES=
10633    export COLLECT_NAMES
10634  fi
10635  ;;
10636esac
10637
10638# Global variables:
10639ofile=libtool
10640can_build_shared=yes
10641
10642# All known linkers require a '.a' archive for static linking (except MSVC,
10643# which needs '.lib').
10644libext=a
10645
10646with_gnu_ld=$lt_cv_prog_gnu_ld
10647
10648old_CC=$CC
10649old_CFLAGS=$CFLAGS
10650
10651# Set sane defaults for various variables
10652test -z "$CC" && CC=cc
10653test -z "$LTCC" && LTCC=$CC
10654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10655test -z "$LD" && LD=ld
10656test -z "$ac_objext" && ac_objext=o
10657
10658func_cc_basename $compiler
10659cc_basename=$func_cc_basename_result
10660
10661
10662# Only perform the check for file, if the check method requires it
10663test -z "$MAGIC_CMD" && MAGIC_CMD=file
10664case $deplibs_check_method in
10665file_magic*)
10666  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10668$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10669if ${lt_cv_path_MAGIC_CMD+:} false; then :
10670  $as_echo_n "(cached) " >&6
10671else
10672  case $MAGIC_CMD in
10673[\\/*] |  ?:[\\/]*)
10674  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10675  ;;
10676*)
10677  lt_save_MAGIC_CMD=$MAGIC_CMD
10678  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10679  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10680  for ac_dir in $ac_dummy; do
10681    IFS=$lt_save_ifs
10682    test -z "$ac_dir" && ac_dir=.
10683    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10684      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10685      if test -n "$file_magic_test_file"; then
10686	case $deplibs_check_method in
10687	"file_magic "*)
10688	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10689	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10690	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10691	    $EGREP "$file_magic_regex" > /dev/null; then
10692	    :
10693	  else
10694	    cat <<_LT_EOF 1>&2
10695
10696*** Warning: the command libtool uses to detect shared libraries,
10697*** $file_magic_cmd, produces output that libtool cannot recognize.
10698*** The result is that libtool may fail to recognize shared libraries
10699*** as such.  This will affect the creation of libtool libraries that
10700*** depend on shared libraries, but programs linked with such libtool
10701*** libraries will work regardless of this problem.  Nevertheless, you
10702*** may want to report the problem to your system manager and/or to
10703*** bug-libtool@gnu.org
10704
10705_LT_EOF
10706	  fi ;;
10707	esac
10708      fi
10709      break
10710    fi
10711  done
10712  IFS=$lt_save_ifs
10713  MAGIC_CMD=$lt_save_MAGIC_CMD
10714  ;;
10715esac
10716fi
10717
10718MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10719if test -n "$MAGIC_CMD"; then
10720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10721$as_echo "$MAGIC_CMD" >&6; }
10722else
10723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724$as_echo "no" >&6; }
10725fi
10726
10727
10728
10729
10730
10731if test -z "$lt_cv_path_MAGIC_CMD"; then
10732  if test -n "$ac_tool_prefix"; then
10733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10734$as_echo_n "checking for file... " >&6; }
10735if ${lt_cv_path_MAGIC_CMD+:} false; then :
10736  $as_echo_n "(cached) " >&6
10737else
10738  case $MAGIC_CMD in
10739[\\/*] |  ?:[\\/]*)
10740  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10741  ;;
10742*)
10743  lt_save_MAGIC_CMD=$MAGIC_CMD
10744  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10745  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10746  for ac_dir in $ac_dummy; do
10747    IFS=$lt_save_ifs
10748    test -z "$ac_dir" && ac_dir=.
10749    if test -f "$ac_dir/file"; then
10750      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10751      if test -n "$file_magic_test_file"; then
10752	case $deplibs_check_method in
10753	"file_magic "*)
10754	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10755	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10756	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10757	    $EGREP "$file_magic_regex" > /dev/null; then
10758	    :
10759	  else
10760	    cat <<_LT_EOF 1>&2
10761
10762*** Warning: the command libtool uses to detect shared libraries,
10763*** $file_magic_cmd, produces output that libtool cannot recognize.
10764*** The result is that libtool may fail to recognize shared libraries
10765*** as such.  This will affect the creation of libtool libraries that
10766*** depend on shared libraries, but programs linked with such libtool
10767*** libraries will work regardless of this problem.  Nevertheless, you
10768*** may want to report the problem to your system manager and/or to
10769*** bug-libtool@gnu.org
10770
10771_LT_EOF
10772	  fi ;;
10773	esac
10774      fi
10775      break
10776    fi
10777  done
10778  IFS=$lt_save_ifs
10779  MAGIC_CMD=$lt_save_MAGIC_CMD
10780  ;;
10781esac
10782fi
10783
10784MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10785if test -n "$MAGIC_CMD"; then
10786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10787$as_echo "$MAGIC_CMD" >&6; }
10788else
10789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791fi
10792
10793
10794  else
10795    MAGIC_CMD=:
10796  fi
10797fi
10798
10799  fi
10800  ;;
10801esac
10802
10803# Use C for the default configuration in the libtool script
10804
10805lt_save_CC=$CC
10806ac_ext=c
10807ac_cpp='$CPP $CPPFLAGS'
10808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10810ac_compiler_gnu=$ac_cv_c_compiler_gnu
10811
10812
10813# Source file extension for C test sources.
10814ac_ext=c
10815
10816# Object file extension for compiled C test sources.
10817objext=o
10818objext=$objext
10819
10820# Code to be used in simple compile tests
10821lt_simple_compile_test_code="int some_variable = 0;"
10822
10823# Code to be used in simple link tests
10824lt_simple_link_test_code='int main(){return(0);}'
10825
10826
10827
10828
10829
10830
10831
10832# If no C compiler was specified, use CC.
10833LTCC=${LTCC-"$CC"}
10834
10835# If no C compiler flags were specified, use CFLAGS.
10836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10837
10838# Allow CC to be a program name with arguments.
10839compiler=$CC
10840
10841# Save the default compiler, since it gets overwritten when the other
10842# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10843compiler_DEFAULT=$CC
10844
10845# save warnings/boilerplate of simple test code
10846ac_outfile=conftest.$ac_objext
10847echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10848eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10849_lt_compiler_boilerplate=`cat conftest.err`
10850$RM conftest*
10851
10852ac_outfile=conftest.$ac_objext
10853echo "$lt_simple_link_test_code" >conftest.$ac_ext
10854eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10855_lt_linker_boilerplate=`cat conftest.err`
10856$RM -r conftest*
10857
10858
10859if test -n "$compiler"; then
10860
10861lt_prog_compiler_no_builtin_flag=
10862
10863if test yes = "$GCC"; then
10864  case $cc_basename in
10865  nvcc*)
10866    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10867  *)
10868    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10869  esac
10870
10871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10872$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10873if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10874  $as_echo_n "(cached) " >&6
10875else
10876  lt_cv_prog_compiler_rtti_exceptions=no
10877   ac_outfile=conftest.$ac_objext
10878   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10879   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10880   # Insert the option either (1) after the last *FLAGS variable, or
10881   # (2) before a word containing "conftest.", or (3) at the end.
10882   # Note that $ac_compile itself does not contain backslashes and begins
10883   # with a dollar sign (not a hyphen), so the echo should work correctly.
10884   # The option is referenced via a variable to avoid confusing sed.
10885   lt_compile=`echo "$ac_compile" | $SED \
10886   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10887   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10888   -e 's:$: $lt_compiler_flag:'`
10889   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10890   (eval "$lt_compile" 2>conftest.err)
10891   ac_status=$?
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   if (exit $ac_status) && test -s "$ac_outfile"; then
10895     # The compiler can only warn and ignore the option if not recognized
10896     # So say no if there are warnings other than the usual output.
10897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10898     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10899     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10900       lt_cv_prog_compiler_rtti_exceptions=yes
10901     fi
10902   fi
10903   $RM conftest*
10904
10905fi
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10907$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10908
10909if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10910    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10911else
10912    :
10913fi
10914
10915fi
10916
10917
10918
10919
10920
10921
10922  lt_prog_compiler_wl=
10923lt_prog_compiler_pic=
10924lt_prog_compiler_static=
10925
10926
10927  if test yes = "$GCC"; then
10928    lt_prog_compiler_wl='-Wl,'
10929    lt_prog_compiler_static='-static'
10930
10931    case $host_os in
10932      aix*)
10933      # All AIX code is PIC.
10934      if test ia64 = "$host_cpu"; then
10935	# AIX 5 now supports IA64 processor
10936	lt_prog_compiler_static='-Bstatic'
10937      fi
10938      lt_prog_compiler_pic='-fPIC'
10939      ;;
10940
10941    amigaos*)
10942      case $host_cpu in
10943      powerpc)
10944            # see comment about AmigaOS4 .so support
10945            lt_prog_compiler_pic='-fPIC'
10946        ;;
10947      m68k)
10948            # FIXME: we need at least 68020 code to build shared libraries, but
10949            # adding the '-m68020' flag to GCC prevents building anything better,
10950            # like '-m68040'.
10951            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10952        ;;
10953      esac
10954      ;;
10955
10956    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10957      # PIC is the default for these OSes.
10958      ;;
10959
10960    mingw* | cygwin* | pw32* | os2* | cegcc*)
10961      # This hack is so that the source file can tell whether it is being
10962      # built for inclusion in a dll (and should export symbols for example).
10963      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10964      # (--disable-auto-import) libraries
10965      lt_prog_compiler_pic='-DDLL_EXPORT'
10966      case $host_os in
10967      os2*)
10968	lt_prog_compiler_static='$wl-static'
10969	;;
10970      esac
10971      ;;
10972
10973    darwin* | rhapsody*)
10974      # PIC is the default on this platform
10975      # Common symbols not allowed in MH_DYLIB files
10976      lt_prog_compiler_pic='-fno-common'
10977      ;;
10978
10979    haiku*)
10980      # PIC is the default for Haiku.
10981      # The "-static" flag exists, but is broken.
10982      lt_prog_compiler_static=
10983      ;;
10984
10985    hpux*)
10986      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10987      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10988      # sets the default TLS model and affects inlining.
10989      case $host_cpu in
10990      hppa*64*)
10991	# +Z the default
10992	;;
10993      *)
10994	lt_prog_compiler_pic='-fPIC'
10995	;;
10996      esac
10997      ;;
10998
10999    interix[3-9]*)
11000      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11001      # Instead, we relocate shared libraries at runtime.
11002      ;;
11003
11004    msdosdjgpp*)
11005      # Just because we use GCC doesn't mean we suddenly get shared libraries
11006      # on systems that don't support them.
11007      lt_prog_compiler_can_build_shared=no
11008      enable_shared=no
11009      ;;
11010
11011    *nto* | *qnx*)
11012      # QNX uses GNU C++, but need to define -shared option too, otherwise
11013      # it will coredump.
11014      lt_prog_compiler_pic='-fPIC -shared'
11015      ;;
11016
11017    sysv4*MP*)
11018      if test -d /usr/nec; then
11019	lt_prog_compiler_pic=-Kconform_pic
11020      fi
11021      ;;
11022
11023    *)
11024      lt_prog_compiler_pic='-fPIC'
11025      ;;
11026    esac
11027
11028    case $cc_basename in
11029    nvcc*) # Cuda Compiler Driver 2.2
11030      lt_prog_compiler_wl='-Xlinker '
11031      if test -n "$lt_prog_compiler_pic"; then
11032        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11033      fi
11034      ;;
11035    esac
11036  else
11037    # PORTME Check for flag to pass linker flags through the system compiler.
11038    case $host_os in
11039    aix*)
11040      lt_prog_compiler_wl='-Wl,'
11041      if test ia64 = "$host_cpu"; then
11042	# AIX 5 now supports IA64 processor
11043	lt_prog_compiler_static='-Bstatic'
11044      else
11045	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11046      fi
11047      ;;
11048
11049    darwin* | rhapsody*)
11050      # PIC is the default on this platform
11051      # Common symbols not allowed in MH_DYLIB files
11052      lt_prog_compiler_pic='-fno-common'
11053      case $cc_basename in
11054      nagfor*)
11055        # NAG Fortran compiler
11056        lt_prog_compiler_wl='-Wl,-Wl,,'
11057        lt_prog_compiler_pic='-PIC'
11058        lt_prog_compiler_static='-Bstatic'
11059        ;;
11060      esac
11061      ;;
11062
11063    mingw* | cygwin* | pw32* | os2* | cegcc*)
11064      # This hack is so that the source file can tell whether it is being
11065      # built for inclusion in a dll (and should export symbols for example).
11066      lt_prog_compiler_pic='-DDLL_EXPORT'
11067      case $host_os in
11068      os2*)
11069	lt_prog_compiler_static='$wl-static'
11070	;;
11071      esac
11072      ;;
11073
11074    hpux9* | hpux10* | hpux11*)
11075      lt_prog_compiler_wl='-Wl,'
11076      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11077      # not for PA HP-UX.
11078      case $host_cpu in
11079      hppa*64*|ia64*)
11080	# +Z the default
11081	;;
11082      *)
11083	lt_prog_compiler_pic='+Z'
11084	;;
11085      esac
11086      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11087      lt_prog_compiler_static='$wl-a ${wl}archive'
11088      ;;
11089
11090    irix5* | irix6* | nonstopux*)
11091      lt_prog_compiler_wl='-Wl,'
11092      # PIC (with -KPIC) is the default.
11093      lt_prog_compiler_static='-non_shared'
11094      ;;
11095
11096    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11097      case $cc_basename in
11098      # old Intel for x86_64, which still supported -KPIC.
11099      ecc*)
11100	lt_prog_compiler_wl='-Wl,'
11101	lt_prog_compiler_pic='-KPIC'
11102	lt_prog_compiler_static='-static'
11103        ;;
11104      # icc used to be incompatible with GCC.
11105      # ICC 10 doesn't accept -KPIC any more.
11106      icc* | ifort*)
11107	lt_prog_compiler_wl='-Wl,'
11108	lt_prog_compiler_pic='-fPIC'
11109	lt_prog_compiler_static='-static'
11110        ;;
11111      # Lahey Fortran 8.1.
11112      lf95*)
11113	lt_prog_compiler_wl='-Wl,'
11114	lt_prog_compiler_pic='--shared'
11115	lt_prog_compiler_static='--static'
11116	;;
11117      nagfor*)
11118	# NAG Fortran compiler
11119	lt_prog_compiler_wl='-Wl,-Wl,,'
11120	lt_prog_compiler_pic='-PIC'
11121	lt_prog_compiler_static='-Bstatic'
11122	;;
11123      tcc*)
11124	# Fabrice Bellard et al's Tiny C Compiler
11125	lt_prog_compiler_wl='-Wl,'
11126	lt_prog_compiler_pic='-fPIC'
11127	lt_prog_compiler_static='-static'
11128	;;
11129      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11130        # Portland Group compilers (*not* the Pentium gcc compiler,
11131	# which looks to be a dead project)
11132	lt_prog_compiler_wl='-Wl,'
11133	lt_prog_compiler_pic='-fpic'
11134	lt_prog_compiler_static='-Bstatic'
11135        ;;
11136      ccc*)
11137        lt_prog_compiler_wl='-Wl,'
11138        # All Alpha code is PIC.
11139        lt_prog_compiler_static='-non_shared'
11140        ;;
11141      xl* | bgxl* | bgf* | mpixl*)
11142	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11143	lt_prog_compiler_wl='-Wl,'
11144	lt_prog_compiler_pic='-qpic'
11145	lt_prog_compiler_static='-qstaticlink'
11146	;;
11147      *)
11148	case `$CC -V 2>&1 | sed 5q` in
11149	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11150	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11151	  lt_prog_compiler_pic='-KPIC'
11152	  lt_prog_compiler_static='-Bstatic'
11153	  lt_prog_compiler_wl=''
11154	  ;;
11155	*Sun\ F* | *Sun*Fortran*)
11156	  lt_prog_compiler_pic='-KPIC'
11157	  lt_prog_compiler_static='-Bstatic'
11158	  lt_prog_compiler_wl='-Qoption ld '
11159	  ;;
11160	*Sun\ C*)
11161	  # Sun C 5.9
11162	  lt_prog_compiler_pic='-KPIC'
11163	  lt_prog_compiler_static='-Bstatic'
11164	  lt_prog_compiler_wl='-Wl,'
11165	  ;;
11166        *Intel*\ [CF]*Compiler*)
11167	  lt_prog_compiler_wl='-Wl,'
11168	  lt_prog_compiler_pic='-fPIC'
11169	  lt_prog_compiler_static='-static'
11170	  ;;
11171	*Portland\ Group*)
11172	  lt_prog_compiler_wl='-Wl,'
11173	  lt_prog_compiler_pic='-fpic'
11174	  lt_prog_compiler_static='-Bstatic'
11175	  ;;
11176	esac
11177	;;
11178      esac
11179      ;;
11180
11181    newsos6)
11182      lt_prog_compiler_pic='-KPIC'
11183      lt_prog_compiler_static='-Bstatic'
11184      ;;
11185
11186    *nto* | *qnx*)
11187      # QNX uses GNU C++, but need to define -shared option too, otherwise
11188      # it will coredump.
11189      lt_prog_compiler_pic='-fPIC -shared'
11190      ;;
11191
11192    osf3* | osf4* | osf5*)
11193      lt_prog_compiler_wl='-Wl,'
11194      # All OSF/1 code is PIC.
11195      lt_prog_compiler_static='-non_shared'
11196      ;;
11197
11198    rdos*)
11199      lt_prog_compiler_static='-non_shared'
11200      ;;
11201
11202    solaris*)
11203      lt_prog_compiler_pic='-KPIC'
11204      lt_prog_compiler_static='-Bstatic'
11205      case $cc_basename in
11206      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11207	lt_prog_compiler_wl='-Qoption ld ';;
11208      *)
11209	lt_prog_compiler_wl='-Wl,';;
11210      esac
11211      ;;
11212
11213    sunos4*)
11214      lt_prog_compiler_wl='-Qoption ld '
11215      lt_prog_compiler_pic='-PIC'
11216      lt_prog_compiler_static='-Bstatic'
11217      ;;
11218
11219    sysv4 | sysv4.2uw2* | sysv4.3*)
11220      lt_prog_compiler_wl='-Wl,'
11221      lt_prog_compiler_pic='-KPIC'
11222      lt_prog_compiler_static='-Bstatic'
11223      ;;
11224
11225    sysv4*MP*)
11226      if test -d /usr/nec; then
11227	lt_prog_compiler_pic='-Kconform_pic'
11228	lt_prog_compiler_static='-Bstatic'
11229      fi
11230      ;;
11231
11232    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11233      lt_prog_compiler_wl='-Wl,'
11234      lt_prog_compiler_pic='-KPIC'
11235      lt_prog_compiler_static='-Bstatic'
11236      ;;
11237
11238    unicos*)
11239      lt_prog_compiler_wl='-Wl,'
11240      lt_prog_compiler_can_build_shared=no
11241      ;;
11242
11243    uts4*)
11244      lt_prog_compiler_pic='-pic'
11245      lt_prog_compiler_static='-Bstatic'
11246      ;;
11247
11248    *)
11249      lt_prog_compiler_can_build_shared=no
11250      ;;
11251    esac
11252  fi
11253
11254case $host_os in
11255  # For platforms that do not support PIC, -DPIC is meaningless:
11256  *djgpp*)
11257    lt_prog_compiler_pic=
11258    ;;
11259  *)
11260    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11261    ;;
11262esac
11263
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11265$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11266if ${lt_cv_prog_compiler_pic+:} false; then :
11267  $as_echo_n "(cached) " >&6
11268else
11269  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11272$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11273lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11274
11275#
11276# Check to make sure the PIC flag actually works.
11277#
11278if test -n "$lt_prog_compiler_pic"; then
11279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11280$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11281if ${lt_cv_prog_compiler_pic_works+:} false; then :
11282  $as_echo_n "(cached) " >&6
11283else
11284  lt_cv_prog_compiler_pic_works=no
11285   ac_outfile=conftest.$ac_objext
11286   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11287   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11288   # Insert the option either (1) after the last *FLAGS variable, or
11289   # (2) before a word containing "conftest.", or (3) at the end.
11290   # Note that $ac_compile itself does not contain backslashes and begins
11291   # with a dollar sign (not a hyphen), so the echo should work correctly.
11292   # The option is referenced via a variable to avoid confusing sed.
11293   lt_compile=`echo "$ac_compile" | $SED \
11294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11296   -e 's:$: $lt_compiler_flag:'`
11297   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11298   (eval "$lt_compile" 2>conftest.err)
11299   ac_status=$?
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   if (exit $ac_status) && test -s "$ac_outfile"; then
11303     # The compiler can only warn and ignore the option if not recognized
11304     # So say no if there are warnings other than the usual output.
11305     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11308       lt_cv_prog_compiler_pic_works=yes
11309     fi
11310   fi
11311   $RM conftest*
11312
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11315$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11316
11317if test yes = "$lt_cv_prog_compiler_pic_works"; then
11318    case $lt_prog_compiler_pic in
11319     "" | " "*) ;;
11320     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11321     esac
11322else
11323    lt_prog_compiler_pic=
11324     lt_prog_compiler_can_build_shared=no
11325fi
11326
11327fi
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339#
11340# Check to make sure the static flag actually works.
11341#
11342wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11344$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11345if ${lt_cv_prog_compiler_static_works+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  lt_cv_prog_compiler_static_works=no
11349   save_LDFLAGS=$LDFLAGS
11350   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11351   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11353     # The linker can only warn and ignore the option if not recognized
11354     # So say no if there are warnings
11355     if test -s conftest.err; then
11356       # Append any errors to the config.log.
11357       cat conftest.err 1>&5
11358       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11359       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11360       if diff conftest.exp conftest.er2 >/dev/null; then
11361         lt_cv_prog_compiler_static_works=yes
11362       fi
11363     else
11364       lt_cv_prog_compiler_static_works=yes
11365     fi
11366   fi
11367   $RM -r conftest*
11368   LDFLAGS=$save_LDFLAGS
11369
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11372$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11373
11374if test yes = "$lt_cv_prog_compiler_static_works"; then
11375    :
11376else
11377    lt_prog_compiler_static=
11378fi
11379
11380
11381
11382
11383
11384
11385
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11387$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11388if ${lt_cv_prog_compiler_c_o+:} false; then :
11389  $as_echo_n "(cached) " >&6
11390else
11391  lt_cv_prog_compiler_c_o=no
11392   $RM -r conftest 2>/dev/null
11393   mkdir conftest
11394   cd conftest
11395   mkdir out
11396   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11397
11398   lt_compiler_flag="-o out/conftest2.$ac_objext"
11399   # Insert the option either (1) after the last *FLAGS variable, or
11400   # (2) before a word containing "conftest.", or (3) at the end.
11401   # Note that $ac_compile itself does not contain backslashes and begins
11402   # with a dollar sign (not a hyphen), so the echo should work correctly.
11403   lt_compile=`echo "$ac_compile" | $SED \
11404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11406   -e 's:$: $lt_compiler_flag:'`
11407   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11408   (eval "$lt_compile" 2>out/conftest.err)
11409   ac_status=$?
11410   cat out/conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11413   then
11414     # The compiler can only warn and ignore the option if not recognized
11415     # So say no if there are warnings
11416     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11417     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11418     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11419       lt_cv_prog_compiler_c_o=yes
11420     fi
11421   fi
11422   chmod u+w . 2>&5
11423   $RM conftest*
11424   # SGI C++ compiler will create directory out/ii_files/ for
11425   # template instantiation
11426   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11427   $RM out/* && rmdir out
11428   cd ..
11429   $RM -r conftest
11430   $RM conftest*
11431
11432fi
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11434$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11435
11436
11437
11438
11439
11440
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11442$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11443if ${lt_cv_prog_compiler_c_o+:} false; then :
11444  $as_echo_n "(cached) " >&6
11445else
11446  lt_cv_prog_compiler_c_o=no
11447   $RM -r conftest 2>/dev/null
11448   mkdir conftest
11449   cd conftest
11450   mkdir out
11451   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11452
11453   lt_compiler_flag="-o out/conftest2.$ac_objext"
11454   # Insert the option either (1) after the last *FLAGS variable, or
11455   # (2) before a word containing "conftest.", or (3) at the end.
11456   # Note that $ac_compile itself does not contain backslashes and begins
11457   # with a dollar sign (not a hyphen), so the echo should work correctly.
11458   lt_compile=`echo "$ac_compile" | $SED \
11459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11461   -e 's:$: $lt_compiler_flag:'`
11462   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11463   (eval "$lt_compile" 2>out/conftest.err)
11464   ac_status=$?
11465   cat out/conftest.err >&5
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11468   then
11469     # The compiler can only warn and ignore the option if not recognized
11470     # So say no if there are warnings
11471     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11472     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11473     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11474       lt_cv_prog_compiler_c_o=yes
11475     fi
11476   fi
11477   chmod u+w . 2>&5
11478   $RM conftest*
11479   # SGI C++ compiler will create directory out/ii_files/ for
11480   # template instantiation
11481   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11482   $RM out/* && rmdir out
11483   cd ..
11484   $RM -r conftest
11485   $RM conftest*
11486
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11489$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11490
11491
11492
11493
11494hard_links=nottested
11495if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11496  # do not overwrite the value of need_locks provided by the user
11497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11498$as_echo_n "checking if we can lock with hard links... " >&6; }
11499  hard_links=yes
11500  $RM conftest*
11501  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11502  touch conftest.a
11503  ln conftest.a conftest.b 2>&5 || hard_links=no
11504  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11506$as_echo "$hard_links" >&6; }
11507  if test no = "$hard_links"; then
11508    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11509$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11510    need_locks=warn
11511  fi
11512else
11513  need_locks=no
11514fi
11515
11516
11517
11518
11519
11520
11521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11523
11524  runpath_var=
11525  allow_undefined_flag=
11526  always_export_symbols=no
11527  archive_cmds=
11528  archive_expsym_cmds=
11529  compiler_needs_object=no
11530  enable_shared_with_static_runtimes=no
11531  export_dynamic_flag_spec=
11532  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11533  hardcode_automatic=no
11534  hardcode_direct=no
11535  hardcode_direct_absolute=no
11536  hardcode_libdir_flag_spec=
11537  hardcode_libdir_separator=
11538  hardcode_minus_L=no
11539  hardcode_shlibpath_var=unsupported
11540  inherit_rpath=no
11541  link_all_deplibs=unknown
11542  module_cmds=
11543  module_expsym_cmds=
11544  old_archive_from_new_cmds=
11545  old_archive_from_expsyms_cmds=
11546  thread_safe_flag_spec=
11547  whole_archive_flag_spec=
11548  # include_expsyms should be a list of space-separated symbols to be *always*
11549  # included in the symbol list
11550  include_expsyms=
11551  # exclude_expsyms can be an extended regexp of symbols to exclude
11552  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11553  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11554  # as well as any symbol that contains 'd'.
11555  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11556  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11557  # platforms (ab)use it in PIC code, but their linkers get confused if
11558  # the symbol is explicitly referenced.  Since portable code cannot
11559  # rely on this symbol name, it's probably fine to never include it in
11560  # preloaded symbol tables.
11561  # Exclude shared library initialization/finalization symbols.
11562  extract_expsyms_cmds=
11563
11564  case $host_os in
11565  cygwin* | mingw* | pw32* | cegcc*)
11566    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11567    # When not using gcc, we currently assume that we are using
11568    # Microsoft Visual C++.
11569    if test yes != "$GCC"; then
11570      with_gnu_ld=no
11571    fi
11572    ;;
11573  interix*)
11574    # we just hope/assume this is gcc and not c89 (= MSVC++)
11575    with_gnu_ld=yes
11576    ;;
11577  openbsd* | bitrig*)
11578    with_gnu_ld=no
11579    ;;
11580  esac
11581
11582  ld_shlibs=yes
11583
11584  # On some targets, GNU ld is compatible enough with the native linker
11585  # that we're better off using the native interface for both.
11586  lt_use_gnu_ld_interface=no
11587  if test yes = "$with_gnu_ld"; then
11588    case $host_os in
11589      aix*)
11590	# The AIX port of GNU ld has always aspired to compatibility
11591	# with the native linker.  However, as the warning in the GNU ld
11592	# block says, versions before 2.19.5* couldn't really create working
11593	# shared libraries, regardless of the interface used.
11594	case `$LD -v 2>&1` in
11595	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11596	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11597	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11598	  *)
11599	    lt_use_gnu_ld_interface=yes
11600	    ;;
11601	esac
11602	;;
11603      *)
11604	lt_use_gnu_ld_interface=yes
11605	;;
11606    esac
11607  fi
11608
11609  if test yes = "$lt_use_gnu_ld_interface"; then
11610    # If archive_cmds runs LD, not CC, wlarc should be empty
11611    wlarc='$wl'
11612
11613    # Set some defaults for GNU ld with shared library support. These
11614    # are reset later if shared libraries are not supported. Putting them
11615    # here allows them to be overridden if necessary.
11616    runpath_var=LD_RUN_PATH
11617    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11618    export_dynamic_flag_spec='$wl--export-dynamic'
11619    # ancient GNU ld didn't support --whole-archive et. al.
11620    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11621      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11622    else
11623      whole_archive_flag_spec=
11624    fi
11625    supports_anon_versioning=no
11626    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11627      *GNU\ gold*) supports_anon_versioning=yes ;;
11628      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11629      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11630      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11631      *\ 2.11.*) ;; # other 2.11 versions
11632      *) supports_anon_versioning=yes ;;
11633    esac
11634
11635    # See if GNU ld supports shared libraries.
11636    case $host_os in
11637    aix[3-9]*)
11638      # On AIX/PPC, the GNU linker is very broken
11639      if test ia64 != "$host_cpu"; then
11640	ld_shlibs=no
11641	cat <<_LT_EOF 1>&2
11642
11643*** Warning: the GNU linker, at least up to release 2.19, is reported
11644*** to be unable to reliably create shared libraries on AIX.
11645*** Therefore, libtool is disabling shared libraries support.  If you
11646*** really care for shared libraries, you may want to install binutils
11647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11648*** You will then need to restart the configuration process.
11649
11650_LT_EOF
11651      fi
11652      ;;
11653
11654    amigaos*)
11655      case $host_cpu in
11656      powerpc)
11657            # see comment about AmigaOS4 .so support
11658            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11659            archive_expsym_cmds=''
11660        ;;
11661      m68k)
11662            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)'
11663            hardcode_libdir_flag_spec='-L$libdir'
11664            hardcode_minus_L=yes
11665        ;;
11666      esac
11667      ;;
11668
11669    beos*)
11670      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11671	allow_undefined_flag=unsupported
11672	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11673	# support --undefined.  This deserves some investigation.  FIXME
11674	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11675      else
11676	ld_shlibs=no
11677      fi
11678      ;;
11679
11680    cygwin* | mingw* | pw32* | cegcc*)
11681      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11682      # as there is no search path for DLLs.
11683      hardcode_libdir_flag_spec='-L$libdir'
11684      export_dynamic_flag_spec='$wl--export-all-symbols'
11685      allow_undefined_flag=unsupported
11686      always_export_symbols=no
11687      enable_shared_with_static_runtimes=yes
11688      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'
11689      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11690
11691      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11692        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11693	# If the export-symbols file already is a .def file, use it as
11694	# is; otherwise, prepend EXPORTS...
11695	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11696          cp $export_symbols $output_objdir/$soname.def;
11697        else
11698          echo EXPORTS > $output_objdir/$soname.def;
11699          cat $export_symbols >> $output_objdir/$soname.def;
11700        fi~
11701        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11702      else
11703	ld_shlibs=no
11704      fi
11705      ;;
11706
11707    haiku*)
11708      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11709      link_all_deplibs=yes
11710      ;;
11711
11712    os2*)
11713      hardcode_libdir_flag_spec='-L$libdir'
11714      hardcode_minus_L=yes
11715      allow_undefined_flag=unsupported
11716      shrext_cmds=.dll
11717      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11718	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11719	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11720	$ECHO EXPORTS >> $output_objdir/$libname.def~
11721	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11722	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11723	emximp -o $lib $output_objdir/$libname.def'
11724      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11725	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11726	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11727	$ECHO EXPORTS >> $output_objdir/$libname.def~
11728	prefix_cmds="$SED"~
11729	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11730	  prefix_cmds="$prefix_cmds -e 1d";
11731	fi~
11732	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11733	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11734	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11735	emximp -o $lib $output_objdir/$libname.def'
11736      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11737      enable_shared_with_static_runtimes=yes
11738      ;;
11739
11740    interix[3-9]*)
11741      hardcode_direct=no
11742      hardcode_shlibpath_var=no
11743      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11744      export_dynamic_flag_spec='$wl-E'
11745      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11746      # Instead, shared libraries are loaded at an image base (0x10000000 by
11747      # default) and relocated if they conflict, which is a slow very memory
11748      # consuming and fragmenting process.  To avoid this, we pick a random,
11749      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11750      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11751      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11752      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'
11753      ;;
11754
11755    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11756      tmp_diet=no
11757      if test linux-dietlibc = "$host_os"; then
11758	case $cc_basename in
11759	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11760	esac
11761      fi
11762      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11763	 && test no = "$tmp_diet"
11764      then
11765	tmp_addflag=' $pic_flag'
11766	tmp_sharedflag='-shared'
11767	case $cc_basename,$host_cpu in
11768        pgcc*)				# Portland Group C compiler
11769	  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'
11770	  tmp_addflag=' $pic_flag'
11771	  ;;
11772	pgf77* | pgf90* | pgf95* | pgfortran*)
11773					# Portland Group f77 and f90 compilers
11774	  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'
11775	  tmp_addflag=' $pic_flag -Mnomain' ;;
11776	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11777	  tmp_addflag=' -i_dynamic' ;;
11778	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11779	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11780	ifc* | ifort*)			# Intel Fortran compiler
11781	  tmp_addflag=' -nofor_main' ;;
11782	lf95*)				# Lahey Fortran 8.1
11783	  whole_archive_flag_spec=
11784	  tmp_sharedflag='--shared' ;;
11785        nagfor*)                        # NAGFOR 5.3
11786          tmp_sharedflag='-Wl,-shared' ;;
11787	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11788	  tmp_sharedflag='-qmkshrobj'
11789	  tmp_addflag= ;;
11790	nvcc*)	# Cuda Compiler Driver 2.2
11791	  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'
11792	  compiler_needs_object=yes
11793	  ;;
11794	esac
11795	case `$CC -V 2>&1 | sed 5q` in
11796	*Sun\ C*)			# Sun C 5.9
11797	  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'
11798	  compiler_needs_object=yes
11799	  tmp_sharedflag='-G' ;;
11800	*Sun\ F*)			# Sun Fortran 8.3
11801	  tmp_sharedflag='-G' ;;
11802	esac
11803	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11804
11805        if test yes = "$supports_anon_versioning"; then
11806          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11807            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11808            echo "local: *; };" >> $output_objdir/$libname.ver~
11809            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11810        fi
11811
11812	case $cc_basename in
11813	tcc*)
11814	  export_dynamic_flag_spec='-rdynamic'
11815	  ;;
11816	xlf* | bgf* | bgxlf* | mpixlf*)
11817	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11818	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11819	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11820	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11821	  if test yes = "$supports_anon_versioning"; then
11822	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11823              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11824              echo "local: *; };" >> $output_objdir/$libname.ver~
11825              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11826	  fi
11827	  ;;
11828	esac
11829      else
11830        ld_shlibs=no
11831      fi
11832      ;;
11833
11834    netbsd*)
11835      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11836	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11837	wlarc=
11838      else
11839	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11841      fi
11842      ;;
11843
11844    solaris*)
11845      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11846	ld_shlibs=no
11847	cat <<_LT_EOF 1>&2
11848
11849*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11850*** create shared libraries on Solaris systems.  Therefore, libtool
11851*** is disabling shared libraries support.  We urge you to upgrade GNU
11852*** binutils to release 2.9.1 or newer.  Another option is to modify
11853*** your PATH or compiler configuration so that the native linker is
11854*** used, and then restart.
11855
11856_LT_EOF
11857      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11858	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11859	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11860      else
11861	ld_shlibs=no
11862      fi
11863      ;;
11864
11865    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11866      case `$LD -v 2>&1` in
11867        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11868	ld_shlibs=no
11869	cat <<_LT_EOF 1>&2
11870
11871*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11872*** reliably create shared libraries on SCO systems.  Therefore, libtool
11873*** is disabling shared libraries support.  We urge you to upgrade GNU
11874*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11875*** your PATH or compiler configuration so that the native linker is
11876*** used, and then restart.
11877
11878_LT_EOF
11879	;;
11880	*)
11881	  # For security reasons, it is highly recommended that you always
11882	  # use absolute paths for naming shared libraries, and exclude the
11883	  # DT_RUNPATH tag from executables and libraries.  But doing so
11884	  # requires that you compile everything twice, which is a pain.
11885	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11887	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11888	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11889	  else
11890	    ld_shlibs=no
11891	  fi
11892	;;
11893      esac
11894      ;;
11895
11896    sunos4*)
11897      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11898      wlarc=
11899      hardcode_direct=yes
11900      hardcode_shlibpath_var=no
11901      ;;
11902
11903    *)
11904      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11905	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11906	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11907      else
11908	ld_shlibs=no
11909      fi
11910      ;;
11911    esac
11912
11913    if test no = "$ld_shlibs"; then
11914      runpath_var=
11915      hardcode_libdir_flag_spec=
11916      export_dynamic_flag_spec=
11917      whole_archive_flag_spec=
11918    fi
11919  else
11920    # PORTME fill in a description of your system's linker (not GNU ld)
11921    case $host_os in
11922    aix3*)
11923      allow_undefined_flag=unsupported
11924      always_export_symbols=yes
11925      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'
11926      # Note: this linker hardcodes the directories in LIBPATH if there
11927      # are no directories specified by -L.
11928      hardcode_minus_L=yes
11929      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11930	# Neither direct hardcoding nor static linking is supported with a
11931	# broken collect2.
11932	hardcode_direct=unsupported
11933      fi
11934      ;;
11935
11936    aix[4-9]*)
11937      if test ia64 = "$host_cpu"; then
11938	# On IA64, the linker does run time linking by default, so we don't
11939	# have to do anything special.
11940	aix_use_runtimelinking=no
11941	exp_sym_flag='-Bexport'
11942	no_entry_flag=
11943      else
11944	# If we're using GNU nm, then we don't want the "-C" option.
11945	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11946	# Without the "-l" option, or with the "-B" option, AIX nm treats
11947	# weak defined symbols like other global defined symbols, whereas
11948	# GNU nm marks them as "W".
11949	# While the 'weak' keyword is ignored in the Export File, we need
11950	# it in the Import File for the 'aix-soname' feature, so we have
11951	# to replace the "-B" option with "-P" for AIX nm.
11952	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11953	  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'
11954	else
11955	  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'
11956	fi
11957	aix_use_runtimelinking=no
11958
11959	# Test if we are trying to use run time linking or normal
11960	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11961	# have runtime linking enabled, and use it for executables.
11962	# For shared libraries, we enable/disable runtime linking
11963	# depending on the kind of the shared library created -
11964	# when "with_aix_soname,aix_use_runtimelinking" is:
11965	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11966	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11967	#            lib.a           static archive
11968	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11969	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11970	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11971	#            lib.a(lib.so.V) shared, rtl:no
11972	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11973	#            lib.a           static archive
11974	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11975	  for ld_flag in $LDFLAGS; do
11976	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11977	    aix_use_runtimelinking=yes
11978	    break
11979	  fi
11980	  done
11981	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11982	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11983	    # so we don't have lib.a shared libs to link our executables.
11984	    # We have to force runtime linking in this case.
11985	    aix_use_runtimelinking=yes
11986	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11987	  fi
11988	  ;;
11989	esac
11990
11991	exp_sym_flag='-bexport'
11992	no_entry_flag='-bnoentry'
11993      fi
11994
11995      # When large executables or shared objects are built, AIX ld can
11996      # have problems creating the table of contents.  If linking a library
11997      # or program results in "error TOC overflow" add -mminimal-toc to
11998      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11999      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12000
12001      archive_cmds=''
12002      hardcode_direct=yes
12003      hardcode_direct_absolute=yes
12004      hardcode_libdir_separator=':'
12005      link_all_deplibs=yes
12006      file_list_spec='$wl-f,'
12007      case $with_aix_soname,$aix_use_runtimelinking in
12008      aix,*) ;; # traditional, no import file
12009      svr4,* | *,yes) # use import file
12010	# The Import File defines what to hardcode.
12011	hardcode_direct=no
12012	hardcode_direct_absolute=no
12013	;;
12014      esac
12015
12016      if test yes = "$GCC"; then
12017	case $host_os in aix4.[012]|aix4.[012].*)
12018	# We only want to do this on AIX 4.2 and lower, the check
12019	# below for broken collect2 doesn't work under 4.3+
12020	  collect2name=`$CC -print-prog-name=collect2`
12021	  if test -f "$collect2name" &&
12022	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12023	  then
12024	  # We have reworked collect2
12025	  :
12026	  else
12027	  # We have old collect2
12028	  hardcode_direct=unsupported
12029	  # It fails to find uninstalled libraries when the uninstalled
12030	  # path is not listed in the libpath.  Setting hardcode_minus_L
12031	  # to unsupported forces relinking
12032	  hardcode_minus_L=yes
12033	  hardcode_libdir_flag_spec='-L$libdir'
12034	  hardcode_libdir_separator=
12035	  fi
12036	  ;;
12037	esac
12038	shared_flag='-shared'
12039	if test yes = "$aix_use_runtimelinking"; then
12040	  shared_flag="$shared_flag "'$wl-G'
12041	fi
12042	# Need to ensure runtime linking is disabled for the traditional
12043	# shared library, or the linker may eventually find shared libraries
12044	# /with/ Import File - we do not want to mix them.
12045	shared_flag_aix='-shared'
12046	shared_flag_svr4='-shared $wl-G'
12047      else
12048	# not using gcc
12049	if test ia64 = "$host_cpu"; then
12050	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12051	# chokes on -Wl,-G. The following line is correct:
12052	  shared_flag='-G'
12053	else
12054	  if test yes = "$aix_use_runtimelinking"; then
12055	    shared_flag='$wl-G'
12056	  else
12057	    shared_flag='$wl-bM:SRE'
12058	  fi
12059	  shared_flag_aix='$wl-bM:SRE'
12060	  shared_flag_svr4='$wl-G'
12061	fi
12062      fi
12063
12064      export_dynamic_flag_spec='$wl-bexpall'
12065      # It seems that -bexpall does not export symbols beginning with
12066      # underscore (_), so it is better to generate a list of symbols to export.
12067      always_export_symbols=yes
12068      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12069	# Warning - without using the other runtime loading flags (-brtl),
12070	# -berok will link without error, but may produce a broken library.
12071	allow_undefined_flag='-berok'
12072        # Determine the default libpath from the value encoded in an
12073        # empty executable.
12074        if test set = "${lt_cv_aix_libpath+set}"; then
12075  aix_libpath=$lt_cv_aix_libpath
12076else
12077  if ${lt_cv_aix_libpath_+:} false; then :
12078  $as_echo_n "(cached) " >&6
12079else
12080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h.  */
12082
12083int
12084main ()
12085{
12086
12087  ;
12088  return 0;
12089}
12090_ACEOF
12091if ac_fn_c_try_link "$LINENO"; then :
12092
12093  lt_aix_libpath_sed='
12094      /Import File Strings/,/^$/ {
12095	  /^0/ {
12096	      s/^0  *\([^ ]*\) *$/\1/
12097	      p
12098	  }
12099      }'
12100  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12101  # Check for a 64-bit object if we didn't find anything.
12102  if test -z "$lt_cv_aix_libpath_"; then
12103    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12104  fi
12105fi
12106rm -f core conftest.err conftest.$ac_objext \
12107    conftest$ac_exeext conftest.$ac_ext
12108  if test -z "$lt_cv_aix_libpath_"; then
12109    lt_cv_aix_libpath_=/usr/lib:/lib
12110  fi
12111
12112fi
12113
12114  aix_libpath=$lt_cv_aix_libpath_
12115fi
12116
12117        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12118        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
12119      else
12120	if test ia64 = "$host_cpu"; then
12121	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12122	  allow_undefined_flag="-z nodefs"
12123	  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"
12124	else
12125	 # Determine the default libpath from the value encoded in an
12126	 # empty executable.
12127	 if test set = "${lt_cv_aix_libpath+set}"; then
12128  aix_libpath=$lt_cv_aix_libpath
12129else
12130  if ${lt_cv_aix_libpath_+:} false; then :
12131  $as_echo_n "(cached) " >&6
12132else
12133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134/* end confdefs.h.  */
12135
12136int
12137main ()
12138{
12139
12140  ;
12141  return 0;
12142}
12143_ACEOF
12144if ac_fn_c_try_link "$LINENO"; then :
12145
12146  lt_aix_libpath_sed='
12147      /Import File Strings/,/^$/ {
12148	  /^0/ {
12149	      s/^0  *\([^ ]*\) *$/\1/
12150	      p
12151	  }
12152      }'
12153  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12154  # Check for a 64-bit object if we didn't find anything.
12155  if test -z "$lt_cv_aix_libpath_"; then
12156    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12157  fi
12158fi
12159rm -f core conftest.err conftest.$ac_objext \
12160    conftest$ac_exeext conftest.$ac_ext
12161  if test -z "$lt_cv_aix_libpath_"; then
12162    lt_cv_aix_libpath_=/usr/lib:/lib
12163  fi
12164
12165fi
12166
12167  aix_libpath=$lt_cv_aix_libpath_
12168fi
12169
12170	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12171	  # Warning - without using the other run time loading flags,
12172	  # -berok will link without error, but may produce a broken library.
12173	  no_undefined_flag=' $wl-bernotok'
12174	  allow_undefined_flag=' $wl-berok'
12175	  if test yes = "$with_gnu_ld"; then
12176	    # We only use this code for GNU lds that support --whole-archive.
12177	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12178	  else
12179	    # Exported symbols can be pulled into shared objects from archives
12180	    whole_archive_flag_spec='$convenience'
12181	  fi
12182	  archive_cmds_need_lc=yes
12183	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12184	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12185	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12186	  if test svr4 != "$with_aix_soname"; then
12187	    # This is similar to how AIX traditionally builds its shared libraries.
12188	    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'
12189	  fi
12190	  if test aix != "$with_aix_soname"; then
12191	    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'
12192	  else
12193	    # used by -dlpreopen to get the symbols
12194	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12195	  fi
12196	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12197	fi
12198      fi
12199      ;;
12200
12201    amigaos*)
12202      case $host_cpu in
12203      powerpc)
12204            # see comment about AmigaOS4 .so support
12205            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12206            archive_expsym_cmds=''
12207        ;;
12208      m68k)
12209            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)'
12210            hardcode_libdir_flag_spec='-L$libdir'
12211            hardcode_minus_L=yes
12212        ;;
12213      esac
12214      ;;
12215
12216    bsdi[45]*)
12217      export_dynamic_flag_spec=-rdynamic
12218      ;;
12219
12220    cygwin* | mingw* | pw32* | cegcc*)
12221      # When not using gcc, we currently assume that we are using
12222      # Microsoft Visual C++.
12223      # hardcode_libdir_flag_spec is actually meaningless, as there is
12224      # no search path for DLLs.
12225      case $cc_basename in
12226      cl*)
12227	# Native MSVC
12228	hardcode_libdir_flag_spec=' '
12229	allow_undefined_flag=unsupported
12230	always_export_symbols=yes
12231	file_list_spec='@'
12232	# Tell ltmain to make .lib files, not .a files.
12233	libext=lib
12234	# Tell ltmain to make .dll files, not .so files.
12235	shrext_cmds=.dll
12236	# FIXME: Setting linknames here is a bad hack.
12237	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12238	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12239            cp "$export_symbols" "$output_objdir/$soname.def";
12240            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12241          else
12242            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12243          fi~
12244          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12245          linknames='
12246	# The linker will not automatically build a static lib if we build a DLL.
12247	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12248	enable_shared_with_static_runtimes=yes
12249	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12250	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12251	# Don't use ranlib
12252	old_postinstall_cmds='chmod 644 $oldlib'
12253	postlink_cmds='lt_outputfile="@OUTPUT@"~
12254          lt_tool_outputfile="@TOOL_OUTPUT@"~
12255          case $lt_outputfile in
12256            *.exe|*.EXE) ;;
12257            *)
12258              lt_outputfile=$lt_outputfile.exe
12259              lt_tool_outputfile=$lt_tool_outputfile.exe
12260              ;;
12261          esac~
12262          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12263            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12264            $RM "$lt_outputfile.manifest";
12265          fi'
12266	;;
12267      *)
12268	# Assume MSVC wrapper
12269	hardcode_libdir_flag_spec=' '
12270	allow_undefined_flag=unsupported
12271	# Tell ltmain to make .lib files, not .a files.
12272	libext=lib
12273	# Tell ltmain to make .dll files, not .so files.
12274	shrext_cmds=.dll
12275	# FIXME: Setting linknames here is a bad hack.
12276	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12277	# The linker will automatically build a .lib file if we build a DLL.
12278	old_archive_from_new_cmds='true'
12279	# FIXME: Should let the user specify the lib program.
12280	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12281	enable_shared_with_static_runtimes=yes
12282	;;
12283      esac
12284      ;;
12285
12286    darwin* | rhapsody*)
12287
12288
12289  archive_cmds_need_lc=no
12290  hardcode_direct=no
12291  hardcode_automatic=yes
12292  hardcode_shlibpath_var=unsupported
12293  if test yes = "$lt_cv_ld_force_load"; then
12294    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\"`'
12295
12296  else
12297    whole_archive_flag_spec=''
12298  fi
12299  link_all_deplibs=yes
12300  allow_undefined_flag=$_lt_dar_allow_undefined
12301  case $cc_basename in
12302     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12303     *) _lt_dar_can_shared=$GCC ;;
12304  esac
12305  if test yes = "$_lt_dar_can_shared"; then
12306    output_verbose_link_cmd=func_echo_all
12307    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12308    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12309    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"
12310    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"
12311
12312  else
12313  ld_shlibs=no
12314  fi
12315
12316      ;;
12317
12318    dgux*)
12319      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320      hardcode_libdir_flag_spec='-L$libdir'
12321      hardcode_shlibpath_var=no
12322      ;;
12323
12324    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12325    # support.  Future versions do this automatically, but an explicit c++rt0.o
12326    # does not break anything, and helps significantly (at the cost of a little
12327    # extra space).
12328    freebsd2.2*)
12329      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12330      hardcode_libdir_flag_spec='-R$libdir'
12331      hardcode_direct=yes
12332      hardcode_shlibpath_var=no
12333      ;;
12334
12335    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12336    freebsd2.*)
12337      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12338      hardcode_direct=yes
12339      hardcode_minus_L=yes
12340      hardcode_shlibpath_var=no
12341      ;;
12342
12343    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12344    freebsd* | dragonfly*)
12345      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12346      hardcode_libdir_flag_spec='-R$libdir'
12347      hardcode_direct=yes
12348      hardcode_shlibpath_var=no
12349      ;;
12350
12351    hpux9*)
12352      if test yes = "$GCC"; then
12353	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'
12354      else
12355	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'
12356      fi
12357      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12358      hardcode_libdir_separator=:
12359      hardcode_direct=yes
12360
12361      # hardcode_minus_L: Not really in the search PATH,
12362      # but as the default location of the library.
12363      hardcode_minus_L=yes
12364      export_dynamic_flag_spec='$wl-E'
12365      ;;
12366
12367    hpux10*)
12368      if test yes,no = "$GCC,$with_gnu_ld"; then
12369	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12370      else
12371	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12372      fi
12373      if test no = "$with_gnu_ld"; then
12374	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12375	hardcode_libdir_separator=:
12376	hardcode_direct=yes
12377	hardcode_direct_absolute=yes
12378	export_dynamic_flag_spec='$wl-E'
12379	# hardcode_minus_L: Not really in the search PATH,
12380	# but as the default location of the library.
12381	hardcode_minus_L=yes
12382      fi
12383      ;;
12384
12385    hpux11*)
12386      if test yes,no = "$GCC,$with_gnu_ld"; then
12387	case $host_cpu in
12388	hppa*64*)
12389	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12390	  ;;
12391	ia64*)
12392	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12393	  ;;
12394	*)
12395	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12396	  ;;
12397	esac
12398      else
12399	case $host_cpu in
12400	hppa*64*)
12401	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12402	  ;;
12403	ia64*)
12404	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12405	  ;;
12406	*)
12407
12408	  # Older versions of the 11.00 compiler do not understand -b yet
12409	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12410	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12411$as_echo_n "checking if $CC understands -b... " >&6; }
12412if ${lt_cv_prog_compiler__b+:} false; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  lt_cv_prog_compiler__b=no
12416   save_LDFLAGS=$LDFLAGS
12417   LDFLAGS="$LDFLAGS -b"
12418   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12419   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12420     # The linker can only warn and ignore the option if not recognized
12421     # So say no if there are warnings
12422     if test -s conftest.err; then
12423       # Append any errors to the config.log.
12424       cat conftest.err 1>&5
12425       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12426       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12427       if diff conftest.exp conftest.er2 >/dev/null; then
12428         lt_cv_prog_compiler__b=yes
12429       fi
12430     else
12431       lt_cv_prog_compiler__b=yes
12432     fi
12433   fi
12434   $RM -r conftest*
12435   LDFLAGS=$save_LDFLAGS
12436
12437fi
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12439$as_echo "$lt_cv_prog_compiler__b" >&6; }
12440
12441if test yes = "$lt_cv_prog_compiler__b"; then
12442    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12443else
12444    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12445fi
12446
12447	  ;;
12448	esac
12449      fi
12450      if test no = "$with_gnu_ld"; then
12451	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12452	hardcode_libdir_separator=:
12453
12454	case $host_cpu in
12455	hppa*64*|ia64*)
12456	  hardcode_direct=no
12457	  hardcode_shlibpath_var=no
12458	  ;;
12459	*)
12460	  hardcode_direct=yes
12461	  hardcode_direct_absolute=yes
12462	  export_dynamic_flag_spec='$wl-E'
12463
12464	  # hardcode_minus_L: Not really in the search PATH,
12465	  # but as the default location of the library.
12466	  hardcode_minus_L=yes
12467	  ;;
12468	esac
12469      fi
12470      ;;
12471
12472    irix5* | irix6* | nonstopux*)
12473      if test yes = "$GCC"; then
12474	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'
12475	# Try to use the -exported_symbol ld option, if it does not
12476	# work, assume that -exports_file does not work either and
12477	# implicitly export all symbols.
12478	# This should be the same for all languages, so no per-tag cache variable.
12479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12480$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12481if ${lt_cv_irix_exported_symbol+:} false; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484  save_LDFLAGS=$LDFLAGS
12485	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12486	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h.  */
12488int foo (void) { return 0; }
12489_ACEOF
12490if ac_fn_c_try_link "$LINENO"; then :
12491  lt_cv_irix_exported_symbol=yes
12492else
12493  lt_cv_irix_exported_symbol=no
12494fi
12495rm -f core conftest.err conftest.$ac_objext \
12496    conftest$ac_exeext conftest.$ac_ext
12497           LDFLAGS=$save_LDFLAGS
12498fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12500$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12501	if test yes = "$lt_cv_irix_exported_symbol"; then
12502          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'
12503	fi
12504      else
12505	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'
12506	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'
12507      fi
12508      archive_cmds_need_lc='no'
12509      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12510      hardcode_libdir_separator=:
12511      inherit_rpath=yes
12512      link_all_deplibs=yes
12513      ;;
12514
12515    linux*)
12516      case $cc_basename in
12517      tcc*)
12518	# Fabrice Bellard et al's Tiny C Compiler
12519	ld_shlibs=yes
12520	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12521	;;
12522      esac
12523      ;;
12524
12525    netbsd*)
12526      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12527	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12528      else
12529	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12530      fi
12531      hardcode_libdir_flag_spec='-R$libdir'
12532      hardcode_direct=yes
12533      hardcode_shlibpath_var=no
12534      ;;
12535
12536    newsos6)
12537      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12538      hardcode_direct=yes
12539      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12540      hardcode_libdir_separator=:
12541      hardcode_shlibpath_var=no
12542      ;;
12543
12544    *nto* | *qnx*)
12545      ;;
12546
12547    openbsd* | bitrig*)
12548      if test -f /usr/libexec/ld.so; then
12549	hardcode_direct=yes
12550	hardcode_shlibpath_var=no
12551	hardcode_direct_absolute=yes
12552	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12553	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12554	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12555	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12556	  export_dynamic_flag_spec='$wl-E'
12557	else
12558	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12559	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12560	fi
12561      else
12562	ld_shlibs=no
12563      fi
12564      ;;
12565
12566    os2*)
12567      hardcode_libdir_flag_spec='-L$libdir'
12568      hardcode_minus_L=yes
12569      allow_undefined_flag=unsupported
12570      shrext_cmds=.dll
12571      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12572	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12573	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12574	$ECHO EXPORTS >> $output_objdir/$libname.def~
12575	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12576	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12577	emximp -o $lib $output_objdir/$libname.def'
12578      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12579	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12580	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12581	$ECHO EXPORTS >> $output_objdir/$libname.def~
12582	prefix_cmds="$SED"~
12583	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12584	  prefix_cmds="$prefix_cmds -e 1d";
12585	fi~
12586	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12587	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12589	emximp -o $lib $output_objdir/$libname.def'
12590      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12591      enable_shared_with_static_runtimes=yes
12592      ;;
12593
12594    osf3*)
12595      if test yes = "$GCC"; then
12596	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12597	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'
12598      else
12599	allow_undefined_flag=' -expect_unresolved \*'
12600	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'
12601      fi
12602      archive_cmds_need_lc='no'
12603      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12604      hardcode_libdir_separator=:
12605      ;;
12606
12607    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12608      if test yes = "$GCC"; then
12609	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12610	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'
12611	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12612      else
12613	allow_undefined_flag=' -expect_unresolved \*'
12614	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'
12615	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~
12616          $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'
12617
12618	# Both c and cxx compiler support -rpath directly
12619	hardcode_libdir_flag_spec='-rpath $libdir'
12620      fi
12621      archive_cmds_need_lc='no'
12622      hardcode_libdir_separator=:
12623      ;;
12624
12625    solaris*)
12626      no_undefined_flag=' -z defs'
12627      if test yes = "$GCC"; then
12628	wlarc='$wl'
12629	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12630	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12631          $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'
12632      else
12633	case `$CC -V 2>&1` in
12634	*"Compilers 5.0"*)
12635	  wlarc=''
12636	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12637	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12639	  ;;
12640	*)
12641	  wlarc='$wl'
12642	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12643	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12644            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12645	  ;;
12646	esac
12647      fi
12648      hardcode_libdir_flag_spec='-R$libdir'
12649      hardcode_shlibpath_var=no
12650      case $host_os in
12651      solaris2.[0-5] | solaris2.[0-5].*) ;;
12652      *)
12653	# The compiler driver will combine and reorder linker options,
12654	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12655	# but is careful enough not to reorder.
12656	# Supported since Solaris 2.6 (maybe 2.5.1?)
12657	if test yes = "$GCC"; then
12658	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12659	else
12660	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12661	fi
12662	;;
12663      esac
12664      link_all_deplibs=yes
12665      ;;
12666
12667    sunos4*)
12668      if test sequent = "$host_vendor"; then
12669	# Use $CC to link under sequent, because it throws in some extra .o
12670	# files that make .init and .fini sections work.
12671	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12672      else
12673	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12674      fi
12675      hardcode_libdir_flag_spec='-L$libdir'
12676      hardcode_direct=yes
12677      hardcode_minus_L=yes
12678      hardcode_shlibpath_var=no
12679      ;;
12680
12681    sysv4)
12682      case $host_vendor in
12683	sni)
12684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685	  hardcode_direct=yes # is this really true???
12686	;;
12687	siemens)
12688	  ## LD is ld it makes a PLAMLIB
12689	  ## CC just makes a GrossModule.
12690	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12691	  reload_cmds='$CC -r -o $output$reload_objs'
12692	  hardcode_direct=no
12693        ;;
12694	motorola)
12695	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12696	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12697	;;
12698      esac
12699      runpath_var='LD_RUN_PATH'
12700      hardcode_shlibpath_var=no
12701      ;;
12702
12703    sysv4.3*)
12704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705      hardcode_shlibpath_var=no
12706      export_dynamic_flag_spec='-Bexport'
12707      ;;
12708
12709    sysv4*MP*)
12710      if test -d /usr/nec; then
12711	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12712	hardcode_shlibpath_var=no
12713	runpath_var=LD_RUN_PATH
12714	hardcode_runpath_var=yes
12715	ld_shlibs=yes
12716      fi
12717      ;;
12718
12719    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12720      no_undefined_flag='$wl-z,text'
12721      archive_cmds_need_lc=no
12722      hardcode_shlibpath_var=no
12723      runpath_var='LD_RUN_PATH'
12724
12725      if test yes = "$GCC"; then
12726	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728      else
12729	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12731      fi
12732      ;;
12733
12734    sysv5* | sco3.2v5* | sco5v6*)
12735      # Note: We CANNOT use -z defs as we might desire, because we do not
12736      # link with -lc, and that would cause any symbols used from libc to
12737      # always be unresolved, which means just about no library would
12738      # ever link correctly.  If we're not using GNU ld we use -z text
12739      # though, which does catch some bad symbols but isn't as heavy-handed
12740      # as -z defs.
12741      no_undefined_flag='$wl-z,text'
12742      allow_undefined_flag='$wl-z,nodefs'
12743      archive_cmds_need_lc=no
12744      hardcode_shlibpath_var=no
12745      hardcode_libdir_flag_spec='$wl-R,$libdir'
12746      hardcode_libdir_separator=':'
12747      link_all_deplibs=yes
12748      export_dynamic_flag_spec='$wl-Bexport'
12749      runpath_var='LD_RUN_PATH'
12750
12751      if test yes = "$GCC"; then
12752	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754      else
12755	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12757      fi
12758      ;;
12759
12760    uts4*)
12761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12762      hardcode_libdir_flag_spec='-L$libdir'
12763      hardcode_shlibpath_var=no
12764      ;;
12765
12766    *)
12767      ld_shlibs=no
12768      ;;
12769    esac
12770
12771    if test sni = "$host_vendor"; then
12772      case $host in
12773      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12774	export_dynamic_flag_spec='$wl-Blargedynsym'
12775	;;
12776      esac
12777    fi
12778  fi
12779
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12781$as_echo "$ld_shlibs" >&6; }
12782test no = "$ld_shlibs" && can_build_shared=no
12783
12784with_gnu_ld=$with_gnu_ld
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800#
12801# Do we need to explicitly link libc?
12802#
12803case "x$archive_cmds_need_lc" in
12804x|xyes)
12805  # Assume -lc should be added
12806  archive_cmds_need_lc=yes
12807
12808  if test yes,yes = "$GCC,$enable_shared"; then
12809    case $archive_cmds in
12810    *'~'*)
12811      # FIXME: we may have to deal with multi-command sequences.
12812      ;;
12813    '$CC '*)
12814      # Test whether the compiler implicitly links with -lc since on some
12815      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12816      # to ld, don't add -lc before -lgcc.
12817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12819if ${lt_cv_archive_cmds_need_lc+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  $RM conftest*
12823	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12824
12825	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12826  (eval $ac_compile) 2>&5
12827  ac_status=$?
12828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829  test $ac_status = 0; } 2>conftest.err; then
12830	  soname=conftest
12831	  lib=conftest
12832	  libobjs=conftest.$ac_objext
12833	  deplibs=
12834	  wl=$lt_prog_compiler_wl
12835	  pic_flag=$lt_prog_compiler_pic
12836	  compiler_flags=-v
12837	  linker_flags=-v
12838	  verstring=
12839	  output_objdir=.
12840	  libname=conftest
12841	  lt_save_allow_undefined_flag=$allow_undefined_flag
12842	  allow_undefined_flag=
12843	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12844  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12845  ac_status=$?
12846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847  test $ac_status = 0; }
12848	  then
12849	    lt_cv_archive_cmds_need_lc=no
12850	  else
12851	    lt_cv_archive_cmds_need_lc=yes
12852	  fi
12853	  allow_undefined_flag=$lt_save_allow_undefined_flag
12854	else
12855	  cat conftest.err 1>&5
12856	fi
12857	$RM conftest*
12858
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12861$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12862      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12863      ;;
12864    esac
12865  fi
12866  ;;
12867esac
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13021$as_echo_n "checking dynamic linker characteristics... " >&6; }
13022
13023if test yes = "$GCC"; then
13024  case $host_os in
13025    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13026    *) lt_awk_arg='/^libraries:/' ;;
13027  esac
13028  case $host_os in
13029    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13030    *) lt_sed_strip_eq='s|=/|/|g' ;;
13031  esac
13032  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13033  case $lt_search_path_spec in
13034  *\;*)
13035    # if the path contains ";" then we assume it to be the separator
13036    # otherwise default to the standard path separator (i.e. ":") - it is
13037    # assumed that no part of a normal pathname contains ";" but that should
13038    # okay in the real world where ";" in dirpaths is itself problematic.
13039    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13040    ;;
13041  *)
13042    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13043    ;;
13044  esac
13045  # Ok, now we have the path, separated by spaces, we can step through it
13046  # and add multilib dir if necessary...
13047  lt_tmp_lt_search_path_spec=
13048  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13049  # ...but if some path component already ends with the multilib dir we assume
13050  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13051  case "$lt_multi_os_dir; $lt_search_path_spec " in
13052  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13053    lt_multi_os_dir=
13054    ;;
13055  esac
13056  for lt_sys_path in $lt_search_path_spec; do
13057    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13058      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13059    elif test -n "$lt_multi_os_dir"; then
13060      test -d "$lt_sys_path" && \
13061	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13062    fi
13063  done
13064  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13065BEGIN {RS = " "; FS = "/|\n";} {
13066  lt_foo = "";
13067  lt_count = 0;
13068  for (lt_i = NF; lt_i > 0; lt_i--) {
13069    if ($lt_i != "" && $lt_i != ".") {
13070      if ($lt_i == "..") {
13071        lt_count++;
13072      } else {
13073        if (lt_count == 0) {
13074          lt_foo = "/" $lt_i lt_foo;
13075        } else {
13076          lt_count--;
13077        }
13078      }
13079    }
13080  }
13081  if (lt_foo != "") { lt_freq[lt_foo]++; }
13082  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13083}'`
13084  # AWK program above erroneously prepends '/' to C:/dos/paths
13085  # for these hosts.
13086  case $host_os in
13087    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13088      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13089  esac
13090  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13091else
13092  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13093fi
13094library_names_spec=
13095libname_spec='lib$name'
13096soname_spec=
13097shrext_cmds=.so
13098postinstall_cmds=
13099postuninstall_cmds=
13100finish_cmds=
13101finish_eval=
13102shlibpath_var=
13103shlibpath_overrides_runpath=unknown
13104version_type=none
13105dynamic_linker="$host_os ld.so"
13106sys_lib_dlsearch_path_spec="/lib /usr/lib"
13107need_lib_prefix=unknown
13108hardcode_into_libs=no
13109
13110# when you set need_version to no, make sure it does not cause -set_version
13111# flags to be left without arguments
13112need_version=unknown
13113
13114
13115
13116case $host_os in
13117aix3*)
13118  version_type=linux # correct to gnu/linux during the next big refactor
13119  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13120  shlibpath_var=LIBPATH
13121
13122  # AIX 3 has no versioning support, so we append a major version to the name.
13123  soname_spec='$libname$release$shared_ext$major'
13124  ;;
13125
13126aix[4-9]*)
13127  version_type=linux # correct to gnu/linux during the next big refactor
13128  need_lib_prefix=no
13129  need_version=no
13130  hardcode_into_libs=yes
13131  if test ia64 = "$host_cpu"; then
13132    # AIX 5 supports IA64
13133    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13134    shlibpath_var=LD_LIBRARY_PATH
13135  else
13136    # With GCC up to 2.95.x, collect2 would create an import file
13137    # for dependence libraries.  The import file would start with
13138    # the line '#! .'.  This would cause the generated library to
13139    # depend on '.', always an invalid library.  This was fixed in
13140    # development snapshots of GCC prior to 3.0.
13141    case $host_os in
13142      aix4 | aix4.[01] | aix4.[01].*)
13143      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13144	   echo ' yes '
13145	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13146	:
13147      else
13148	can_build_shared=no
13149      fi
13150      ;;
13151    esac
13152    # Using Import Files as archive members, it is possible to support
13153    # filename-based versioning of shared library archives on AIX. While
13154    # this would work for both with and without runtime linking, it will
13155    # prevent static linking of such archives. So we do filename-based
13156    # shared library versioning with .so extension only, which is used
13157    # when both runtime linking and shared linking is enabled.
13158    # Unfortunately, runtime linking may impact performance, so we do
13159    # not want this to be the default eventually. Also, we use the
13160    # versioned .so libs for executables only if there is the -brtl
13161    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13162    # To allow for filename-based versioning support, we need to create
13163    # libNAME.so.V as an archive file, containing:
13164    # *) an Import File, referring to the versioned filename of the
13165    #    archive as well as the shared archive member, telling the
13166    #    bitwidth (32 or 64) of that shared object, and providing the
13167    #    list of exported symbols of that shared object, eventually
13168    #    decorated with the 'weak' keyword
13169    # *) the shared object with the F_LOADONLY flag set, to really avoid
13170    #    it being seen by the linker.
13171    # At run time we better use the real file rather than another symlink,
13172    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13173
13174    case $with_aix_soname,$aix_use_runtimelinking in
13175    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13176    # soname into executable. Probably we can add versioning support to
13177    # collect2, so additional links can be useful in future.
13178    aix,yes) # traditional libtool
13179      dynamic_linker='AIX unversionable lib.so'
13180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13181      # instead of lib<name>.a to let people know that these are not
13182      # typical AIX shared libraries.
13183      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184      ;;
13185    aix,no) # traditional AIX only
13186      dynamic_linker='AIX lib.a(lib.so.V)'
13187      # We preserve .a as extension for shared libraries through AIX4.2
13188      # and later when we are not doing run time linking.
13189      library_names_spec='$libname$release.a $libname.a'
13190      soname_spec='$libname$release$shared_ext$major'
13191      ;;
13192    svr4,*) # full svr4 only
13193      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13194      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13195      # We do not specify a path in Import Files, so LIBPATH fires.
13196      shlibpath_overrides_runpath=yes
13197      ;;
13198    *,yes) # both, prefer svr4
13199      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13200      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13201      # unpreferred sharedlib libNAME.a needs extra handling
13202      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"'
13203      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"'
13204      # We do not specify a path in Import Files, so LIBPATH fires.
13205      shlibpath_overrides_runpath=yes
13206      ;;
13207    *,no) # both, prefer aix
13208      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13209      library_names_spec='$libname$release.a $libname.a'
13210      soname_spec='$libname$release$shared_ext$major'
13211      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13212      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)'
13213      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"'
13214      ;;
13215    esac
13216    shlibpath_var=LIBPATH
13217  fi
13218  ;;
13219
13220amigaos*)
13221  case $host_cpu in
13222  powerpc)
13223    # Since July 2007 AmigaOS4 officially supports .so libraries.
13224    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13225    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13226    ;;
13227  m68k)
13228    library_names_spec='$libname.ixlibrary $libname.a'
13229    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13230    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'
13231    ;;
13232  esac
13233  ;;
13234
13235beos*)
13236  library_names_spec='$libname$shared_ext'
13237  dynamic_linker="$host_os ld.so"
13238  shlibpath_var=LIBRARY_PATH
13239  ;;
13240
13241bsdi[45]*)
13242  version_type=linux # correct to gnu/linux during the next big refactor
13243  need_version=no
13244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13245  soname_spec='$libname$release$shared_ext$major'
13246  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247  shlibpath_var=LD_LIBRARY_PATH
13248  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250  # the default ld.so.conf also contains /usr/contrib/lib and
13251  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252  # libtool to hard-code these into programs
13253  ;;
13254
13255cygwin* | mingw* | pw32* | cegcc*)
13256  version_type=windows
13257  shrext_cmds=.dll
13258  need_version=no
13259  need_lib_prefix=no
13260
13261  case $GCC,$cc_basename in
13262  yes,*)
13263    # gcc
13264    library_names_spec='$libname.dll.a'
13265    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13266    postinstall_cmds='base_file=`basename \$file`~
13267      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13268      dldir=$destdir/`dirname \$dlpath`~
13269      test -d \$dldir || mkdir -p \$dldir~
13270      $install_prog $dir/$dlname \$dldir/$dlname~
13271      chmod a+x \$dldir/$dlname~
13272      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13273        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13274      fi'
13275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13276      dlpath=$dir/\$dldll~
13277       $RM \$dlpath'
13278    shlibpath_overrides_runpath=yes
13279
13280    case $host_os in
13281    cygwin*)
13282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13283      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13284
13285      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13286      ;;
13287    mingw* | cegcc*)
13288      # MinGW DLLs use traditional 'lib' prefix
13289      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13290      ;;
13291    pw32*)
13292      # pw32 DLLs use 'pw' prefix rather than 'lib'
13293      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13294      ;;
13295    esac
13296    dynamic_linker='Win32 ld.exe'
13297    ;;
13298
13299  *,cl*)
13300    # Native MSVC
13301    libname_spec='$name'
13302    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13303    library_names_spec='$libname.dll.lib'
13304
13305    case $build_os in
13306    mingw*)
13307      sys_lib_search_path_spec=
13308      lt_save_ifs=$IFS
13309      IFS=';'
13310      for lt_path in $LIB
13311      do
13312        IFS=$lt_save_ifs
13313        # Let DOS variable expansion print the short 8.3 style file name.
13314        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13315        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13316      done
13317      IFS=$lt_save_ifs
13318      # Convert to MSYS style.
13319      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13320      ;;
13321    cygwin*)
13322      # Convert to unix form, then to dos form, then back to unix form
13323      # but this time dos style (no spaces!) so that the unix form looks
13324      # like /cygdrive/c/PROGRA~1:/cygdr...
13325      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13326      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13327      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13328      ;;
13329    *)
13330      sys_lib_search_path_spec=$LIB
13331      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13332        # It is most probably a Windows format PATH.
13333        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13334      else
13335        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13336      fi
13337      # FIXME: find the short name or the path components, as spaces are
13338      # common. (e.g. "Program Files" -> "PROGRA~1")
13339      ;;
13340    esac
13341
13342    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13343    postinstall_cmds='base_file=`basename \$file`~
13344      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13345      dldir=$destdir/`dirname \$dlpath`~
13346      test -d \$dldir || mkdir -p \$dldir~
13347      $install_prog $dir/$dlname \$dldir/$dlname'
13348    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13349      dlpath=$dir/\$dldll~
13350       $RM \$dlpath'
13351    shlibpath_overrides_runpath=yes
13352    dynamic_linker='Win32 link.exe'
13353    ;;
13354
13355  *)
13356    # Assume MSVC wrapper
13357    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13358    dynamic_linker='Win32 ld.exe'
13359    ;;
13360  esac
13361  # FIXME: first we should search . and the directory the executable is in
13362  shlibpath_var=PATH
13363  ;;
13364
13365darwin* | rhapsody*)
13366  dynamic_linker="$host_os dyld"
13367  version_type=darwin
13368  need_lib_prefix=no
13369  need_version=no
13370  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13371  soname_spec='$libname$release$major$shared_ext'
13372  shlibpath_overrides_runpath=yes
13373  shlibpath_var=DYLD_LIBRARY_PATH
13374  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13375
13376  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13377  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13378  ;;
13379
13380dgux*)
13381  version_type=linux # correct to gnu/linux during the next big refactor
13382  need_lib_prefix=no
13383  need_version=no
13384  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13385  soname_spec='$libname$release$shared_ext$major'
13386  shlibpath_var=LD_LIBRARY_PATH
13387  ;;
13388
13389freebsd* | dragonfly*)
13390  # DragonFly does not have aout.  When/if they implement a new
13391  # versioning mechanism, adjust this.
13392  if test -x /usr/bin/objformat; then
13393    objformat=`/usr/bin/objformat`
13394  else
13395    case $host_os in
13396    freebsd[23].*) objformat=aout ;;
13397    *) objformat=elf ;;
13398    esac
13399  fi
13400  version_type=freebsd-$objformat
13401  case $version_type in
13402    freebsd-elf*)
13403      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13404      soname_spec='$libname$release$shared_ext$major'
13405      need_version=no
13406      need_lib_prefix=no
13407      ;;
13408    freebsd-*)
13409      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13410      need_version=yes
13411      ;;
13412  esac
13413  shlibpath_var=LD_LIBRARY_PATH
13414  case $host_os in
13415  freebsd2.*)
13416    shlibpath_overrides_runpath=yes
13417    ;;
13418  freebsd3.[01]* | freebsdelf3.[01]*)
13419    shlibpath_overrides_runpath=yes
13420    hardcode_into_libs=yes
13421    ;;
13422  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13423  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13424    shlibpath_overrides_runpath=no
13425    hardcode_into_libs=yes
13426    ;;
13427  *) # from 4.6 on, and DragonFly
13428    shlibpath_overrides_runpath=yes
13429    hardcode_into_libs=yes
13430    ;;
13431  esac
13432  ;;
13433
13434haiku*)
13435  version_type=linux # correct to gnu/linux during the next big refactor
13436  need_lib_prefix=no
13437  need_version=no
13438  dynamic_linker="$host_os runtime_loader"
13439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440  soname_spec='$libname$release$shared_ext$major'
13441  shlibpath_var=LIBRARY_PATH
13442  shlibpath_overrides_runpath=no
13443  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13444  hardcode_into_libs=yes
13445  ;;
13446
13447hpux9* | hpux10* | hpux11*)
13448  # Give a soname corresponding to the major version so that dld.sl refuses to
13449  # link against other versions.
13450  version_type=sunos
13451  need_lib_prefix=no
13452  need_version=no
13453  case $host_cpu in
13454  ia64*)
13455    shrext_cmds='.so'
13456    hardcode_into_libs=yes
13457    dynamic_linker="$host_os dld.so"
13458    shlibpath_var=LD_LIBRARY_PATH
13459    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13460    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13461    soname_spec='$libname$release$shared_ext$major'
13462    if test 32 = "$HPUX_IA64_MODE"; then
13463      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13464      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13465    else
13466      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13467      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13468    fi
13469    ;;
13470  hppa*64*)
13471    shrext_cmds='.sl'
13472    hardcode_into_libs=yes
13473    dynamic_linker="$host_os dld.sl"
13474    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477    soname_spec='$libname$release$shared_ext$major'
13478    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13480    ;;
13481  *)
13482    shrext_cmds='.sl'
13483    dynamic_linker="$host_os dld.sl"
13484    shlibpath_var=SHLIB_PATH
13485    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13487    soname_spec='$libname$release$shared_ext$major'
13488    ;;
13489  esac
13490  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13491  postinstall_cmds='chmod 555 $lib'
13492  # or fails outright, so override atomically:
13493  install_override_mode=555
13494  ;;
13495
13496interix[3-9]*)
13497  version_type=linux # correct to gnu/linux during the next big refactor
13498  need_lib_prefix=no
13499  need_version=no
13500  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13501  soname_spec='$libname$release$shared_ext$major'
13502  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13503  shlibpath_var=LD_LIBRARY_PATH
13504  shlibpath_overrides_runpath=no
13505  hardcode_into_libs=yes
13506  ;;
13507
13508irix5* | irix6* | nonstopux*)
13509  case $host_os in
13510    nonstopux*) version_type=nonstopux ;;
13511    *)
13512	if test yes = "$lt_cv_prog_gnu_ld"; then
13513		version_type=linux # correct to gnu/linux during the next big refactor
13514	else
13515		version_type=irix
13516	fi ;;
13517  esac
13518  need_lib_prefix=no
13519  need_version=no
13520  soname_spec='$libname$release$shared_ext$major'
13521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13522  case $host_os in
13523  irix5* | nonstopux*)
13524    libsuff= shlibsuff=
13525    ;;
13526  *)
13527    case $LD in # libtool.m4 will add one of these switches to LD
13528    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13529      libsuff= shlibsuff= libmagic=32-bit;;
13530    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13531      libsuff=32 shlibsuff=N32 libmagic=N32;;
13532    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13533      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13534    *) libsuff= shlibsuff= libmagic=never-match;;
13535    esac
13536    ;;
13537  esac
13538  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13539  shlibpath_overrides_runpath=no
13540  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13541  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13542  hardcode_into_libs=yes
13543  ;;
13544
13545# No shared lib support for Linux oldld, aout, or coff.
13546linux*oldld* | linux*aout* | linux*coff*)
13547  dynamic_linker=no
13548  ;;
13549
13550linux*android*)
13551  version_type=none # Android doesn't support versioned libraries.
13552  need_lib_prefix=no
13553  need_version=no
13554  library_names_spec='$libname$release$shared_ext'
13555  soname_spec='$libname$release$shared_ext'
13556  finish_cmds=
13557  shlibpath_var=LD_LIBRARY_PATH
13558  shlibpath_overrides_runpath=yes
13559
13560  # This implies no fast_install, which is unacceptable.
13561  # Some rework will be needed to allow for fast_install
13562  # before this can be enabled.
13563  hardcode_into_libs=yes
13564
13565  dynamic_linker='Android linker'
13566  # Don't embed -rpath directories since the linker doesn't support them.
13567  hardcode_libdir_flag_spec='-L$libdir'
13568  ;;
13569
13570# This must be glibc/ELF.
13571linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13572  version_type=linux # correct to gnu/linux during the next big refactor
13573  need_lib_prefix=no
13574  need_version=no
13575  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13576  soname_spec='$libname$release$shared_ext$major'
13577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578  shlibpath_var=LD_LIBRARY_PATH
13579  shlibpath_overrides_runpath=no
13580
13581  # Some binutils ld are patched to set DT_RUNPATH
13582  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  lt_cv_shlibpath_overrides_runpath=no
13586    save_LDFLAGS=$LDFLAGS
13587    save_libdir=$libdir
13588    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13589	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591/* end confdefs.h.  */
13592
13593int
13594main ()
13595{
13596
13597  ;
13598  return 0;
13599}
13600_ACEOF
13601if ac_fn_c_try_link "$LINENO"; then :
13602  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13603  lt_cv_shlibpath_overrides_runpath=yes
13604fi
13605fi
13606rm -f core conftest.err conftest.$ac_objext \
13607    conftest$ac_exeext conftest.$ac_ext
13608    LDFLAGS=$save_LDFLAGS
13609    libdir=$save_libdir
13610
13611fi
13612
13613  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13614
13615  # This implies no fast_install, which is unacceptable.
13616  # Some rework will be needed to allow for fast_install
13617  # before this can be enabled.
13618  hardcode_into_libs=yes
13619
13620  # Add ABI-specific directories to the system library path.
13621  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13622
13623  # Ideally, we could use ldconfig to report *all* directores which are
13624  # searched for libraries, however this is still not possible.  Aside from not
13625  # being certain /sbin/ldconfig is available, command
13626  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13627  # even though it is searched at run-time.  Try to do the best guess by
13628  # appending ld.so.conf contents (and includes) to the search path.
13629  if test -f /etc/ld.so.conf; then
13630    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' ' '`
13631    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13632  fi
13633
13634  # We used to test for /lib/ld.so.1 and disable shared libraries on
13635  # powerpc, because MkLinux only supported shared libraries with the
13636  # GNU dynamic linker.  Since this was broken with cross compilers,
13637  # most powerpc-linux boxes support dynamic linking these days and
13638  # people can always --disable-shared, the test was removed, and we
13639  # assume the GNU/Linux dynamic linker is in use.
13640  dynamic_linker='GNU/Linux ld.so'
13641  ;;
13642
13643netbsd*)
13644  version_type=sunos
13645  need_lib_prefix=no
13646  need_version=no
13647  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13648    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13649    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13650    dynamic_linker='NetBSD (a.out) ld.so'
13651  else
13652    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13653    soname_spec='$libname$release$shared_ext$major'
13654    dynamic_linker='NetBSD ld.elf_so'
13655  fi
13656  shlibpath_var=LD_LIBRARY_PATH
13657  shlibpath_overrides_runpath=yes
13658  hardcode_into_libs=yes
13659  ;;
13660
13661newsos6)
13662  version_type=linux # correct to gnu/linux during the next big refactor
13663  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13664  shlibpath_var=LD_LIBRARY_PATH
13665  shlibpath_overrides_runpath=yes
13666  ;;
13667
13668*nto* | *qnx*)
13669  version_type=qnx
13670  need_lib_prefix=no
13671  need_version=no
13672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13673  soname_spec='$libname$release$shared_ext$major'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  shlibpath_overrides_runpath=no
13676  hardcode_into_libs=yes
13677  dynamic_linker='ldqnx.so'
13678  ;;
13679
13680openbsd* | bitrig*)
13681  version_type=sunos
13682  sys_lib_dlsearch_path_spec=/usr/lib
13683  need_lib_prefix=no
13684  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13685    need_version=no
13686  else
13687    need_version=yes
13688  fi
13689  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13690  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13691  shlibpath_var=LD_LIBRARY_PATH
13692  shlibpath_overrides_runpath=yes
13693  ;;
13694
13695os2*)
13696  libname_spec='$name'
13697  version_type=windows
13698  shrext_cmds=.dll
13699  need_version=no
13700  need_lib_prefix=no
13701  # OS/2 can only load a DLL with a base name of 8 characters or less.
13702  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13703    v=$($ECHO $release$versuffix | tr -d .-);
13704    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13705    $ECHO $n$v`$shared_ext'
13706  library_names_spec='${libname}_dll.$libext'
13707  dynamic_linker='OS/2 ld.exe'
13708  shlibpath_var=BEGINLIBPATH
13709  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13710  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13711  postinstall_cmds='base_file=`basename \$file`~
13712    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13713    dldir=$destdir/`dirname \$dlpath`~
13714    test -d \$dldir || mkdir -p \$dldir~
13715    $install_prog $dir/$dlname \$dldir/$dlname~
13716    chmod a+x \$dldir/$dlname~
13717    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13718      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13719    fi'
13720  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13721    dlpath=$dir/\$dldll~
13722    $RM \$dlpath'
13723  ;;
13724
13725osf3* | osf4* | osf5*)
13726  version_type=osf
13727  need_lib_prefix=no
13728  need_version=no
13729  soname_spec='$libname$release$shared_ext$major'
13730  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13731  shlibpath_var=LD_LIBRARY_PATH
13732  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13733  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13734  ;;
13735
13736rdos*)
13737  dynamic_linker=no
13738  ;;
13739
13740solaris*)
13741  version_type=linux # correct to gnu/linux during the next big refactor
13742  need_lib_prefix=no
13743  need_version=no
13744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13745  soname_spec='$libname$release$shared_ext$major'
13746  shlibpath_var=LD_LIBRARY_PATH
13747  shlibpath_overrides_runpath=yes
13748  hardcode_into_libs=yes
13749  # ldd complains unless libraries are executable
13750  postinstall_cmds='chmod +x $lib'
13751  ;;
13752
13753sunos4*)
13754  version_type=sunos
13755  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13756  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13757  shlibpath_var=LD_LIBRARY_PATH
13758  shlibpath_overrides_runpath=yes
13759  if test yes = "$with_gnu_ld"; then
13760    need_lib_prefix=no
13761  fi
13762  need_version=yes
13763  ;;
13764
13765sysv4 | sysv4.3*)
13766  version_type=linux # correct to gnu/linux during the next big refactor
13767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768  soname_spec='$libname$release$shared_ext$major'
13769  shlibpath_var=LD_LIBRARY_PATH
13770  case $host_vendor in
13771    sni)
13772      shlibpath_overrides_runpath=no
13773      need_lib_prefix=no
13774      runpath_var=LD_RUN_PATH
13775      ;;
13776    siemens)
13777      need_lib_prefix=no
13778      ;;
13779    motorola)
13780      need_lib_prefix=no
13781      need_version=no
13782      shlibpath_overrides_runpath=no
13783      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13784      ;;
13785  esac
13786  ;;
13787
13788sysv4*MP*)
13789  if test -d /usr/nec; then
13790    version_type=linux # correct to gnu/linux during the next big refactor
13791    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13792    soname_spec='$libname$shared_ext.$major'
13793    shlibpath_var=LD_LIBRARY_PATH
13794  fi
13795  ;;
13796
13797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13798  version_type=sco
13799  need_lib_prefix=no
13800  need_version=no
13801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13802  soname_spec='$libname$release$shared_ext$major'
13803  shlibpath_var=LD_LIBRARY_PATH
13804  shlibpath_overrides_runpath=yes
13805  hardcode_into_libs=yes
13806  if test yes = "$with_gnu_ld"; then
13807    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13808  else
13809    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13810    case $host_os in
13811      sco3.2v5*)
13812        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13813	;;
13814    esac
13815  fi
13816  sys_lib_dlsearch_path_spec='/usr/lib'
13817  ;;
13818
13819tpf*)
13820  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13821  version_type=linux # correct to gnu/linux during the next big refactor
13822  need_lib_prefix=no
13823  need_version=no
13824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13825  shlibpath_var=LD_LIBRARY_PATH
13826  shlibpath_overrides_runpath=no
13827  hardcode_into_libs=yes
13828  ;;
13829
13830uts4*)
13831  version_type=linux # correct to gnu/linux during the next big refactor
13832  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13833  soname_spec='$libname$release$shared_ext$major'
13834  shlibpath_var=LD_LIBRARY_PATH
13835  ;;
13836
13837*)
13838  dynamic_linker=no
13839  ;;
13840esac
13841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13842$as_echo "$dynamic_linker" >&6; }
13843test no = "$dynamic_linker" && can_build_shared=no
13844
13845variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13846if test yes = "$GCC"; then
13847  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13848fi
13849
13850if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13851  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13852fi
13853
13854if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13855  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13856fi
13857
13858# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13859configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13860
13861# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13862func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13863
13864# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13865configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13964$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13965hardcode_action=
13966if test -n "$hardcode_libdir_flag_spec" ||
13967   test -n "$runpath_var" ||
13968   test yes = "$hardcode_automatic"; then
13969
13970  # We can hardcode non-existent directories.
13971  if test no != "$hardcode_direct" &&
13972     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13973     # have to relink, otherwise we might link with an installed library
13974     # when we should be linking with a yet-to-be-installed one
13975     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13976     test no != "$hardcode_minus_L"; then
13977    # Linking always hardcodes the temporary library directory.
13978    hardcode_action=relink
13979  else
13980    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13981    hardcode_action=immediate
13982  fi
13983else
13984  # We cannot hardcode anything, or else we can only hardcode existing
13985  # directories.
13986  hardcode_action=unsupported
13987fi
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13989$as_echo "$hardcode_action" >&6; }
13990
13991if test relink = "$hardcode_action" ||
13992   test yes = "$inherit_rpath"; then
13993  # Fast installation is not supported
13994  enable_fast_install=no
13995elif test yes = "$shlibpath_overrides_runpath" ||
13996     test no = "$enable_shared"; then
13997  # Fast installation is not necessary
13998  enable_fast_install=needless
13999fi
14000
14001
14002
14003
14004
14005
14006  if test yes != "$enable_dlopen"; then
14007  enable_dlopen=unknown
14008  enable_dlopen_self=unknown
14009  enable_dlopen_self_static=unknown
14010else
14011  lt_cv_dlopen=no
14012  lt_cv_dlopen_libs=
14013
14014  case $host_os in
14015  beos*)
14016    lt_cv_dlopen=load_add_on
14017    lt_cv_dlopen_libs=
14018    lt_cv_dlopen_self=yes
14019    ;;
14020
14021  mingw* | pw32* | cegcc*)
14022    lt_cv_dlopen=LoadLibrary
14023    lt_cv_dlopen_libs=
14024    ;;
14025
14026  cygwin*)
14027    lt_cv_dlopen=dlopen
14028    lt_cv_dlopen_libs=
14029    ;;
14030
14031  darwin*)
14032    # if libdl is installed we need to link against it
14033    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14034$as_echo_n "checking for dlopen in -ldl... " >&6; }
14035if ${ac_cv_lib_dl_dlopen+:} false; then :
14036  $as_echo_n "(cached) " >&6
14037else
14038  ac_check_lib_save_LIBS=$LIBS
14039LIBS="-ldl  $LIBS"
14040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042
14043/* Override any GCC internal prototype to avoid an error.
14044   Use char because int might match the return type of a GCC
14045   builtin and then its argument prototype would still apply.  */
14046#ifdef __cplusplus
14047extern "C"
14048#endif
14049char dlopen ();
14050int
14051main ()
14052{
14053return dlopen ();
14054  ;
14055  return 0;
14056}
14057_ACEOF
14058if ac_fn_c_try_link "$LINENO"; then :
14059  ac_cv_lib_dl_dlopen=yes
14060else
14061  ac_cv_lib_dl_dlopen=no
14062fi
14063rm -f core conftest.err conftest.$ac_objext \
14064    conftest$ac_exeext conftest.$ac_ext
14065LIBS=$ac_check_lib_save_LIBS
14066fi
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14068$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14069if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14070  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14071else
14072
14073    lt_cv_dlopen=dyld
14074    lt_cv_dlopen_libs=
14075    lt_cv_dlopen_self=yes
14076
14077fi
14078
14079    ;;
14080
14081  tpf*)
14082    # Don't try to run any link tests for TPF.  We know it's impossible
14083    # because TPF is a cross-compiler, and we know how we open DSOs.
14084    lt_cv_dlopen=dlopen
14085    lt_cv_dlopen_libs=
14086    lt_cv_dlopen_self=no
14087    ;;
14088
14089  *)
14090    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14091if test "x$ac_cv_func_shl_load" = xyes; then :
14092  lt_cv_dlopen=shl_load
14093else
14094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14095$as_echo_n "checking for shl_load in -ldld... " >&6; }
14096if ${ac_cv_lib_dld_shl_load+:} false; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  ac_check_lib_save_LIBS=$LIBS
14100LIBS="-ldld  $LIBS"
14101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103
14104/* Override any GCC internal prototype to avoid an error.
14105   Use char because int might match the return type of a GCC
14106   builtin and then its argument prototype would still apply.  */
14107#ifdef __cplusplus
14108extern "C"
14109#endif
14110char shl_load ();
14111int
14112main ()
14113{
14114return shl_load ();
14115  ;
14116  return 0;
14117}
14118_ACEOF
14119if ac_fn_c_try_link "$LINENO"; then :
14120  ac_cv_lib_dld_shl_load=yes
14121else
14122  ac_cv_lib_dld_shl_load=no
14123fi
14124rm -f core conftest.err conftest.$ac_objext \
14125    conftest$ac_exeext conftest.$ac_ext
14126LIBS=$ac_check_lib_save_LIBS
14127fi
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14129$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14130if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14131  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14132else
14133  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14134if test "x$ac_cv_func_dlopen" = xyes; then :
14135  lt_cv_dlopen=dlopen
14136else
14137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14138$as_echo_n "checking for dlopen in -ldl... " >&6; }
14139if ${ac_cv_lib_dl_dlopen+:} false; then :
14140  $as_echo_n "(cached) " >&6
14141else
14142  ac_check_lib_save_LIBS=$LIBS
14143LIBS="-ldl  $LIBS"
14144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h.  */
14146
14147/* Override any GCC internal prototype to avoid an error.
14148   Use char because int might match the return type of a GCC
14149   builtin and then its argument prototype would still apply.  */
14150#ifdef __cplusplus
14151extern "C"
14152#endif
14153char dlopen ();
14154int
14155main ()
14156{
14157return dlopen ();
14158  ;
14159  return 0;
14160}
14161_ACEOF
14162if ac_fn_c_try_link "$LINENO"; then :
14163  ac_cv_lib_dl_dlopen=yes
14164else
14165  ac_cv_lib_dl_dlopen=no
14166fi
14167rm -f core conftest.err conftest.$ac_objext \
14168    conftest$ac_exeext conftest.$ac_ext
14169LIBS=$ac_check_lib_save_LIBS
14170fi
14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14173if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14174  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14175else
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14177$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14178if ${ac_cv_lib_svld_dlopen+:} false; then :
14179  $as_echo_n "(cached) " >&6
14180else
14181  ac_check_lib_save_LIBS=$LIBS
14182LIBS="-lsvld  $LIBS"
14183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184/* end confdefs.h.  */
14185
14186/* Override any GCC internal prototype to avoid an error.
14187   Use char because int might match the return type of a GCC
14188   builtin and then its argument prototype would still apply.  */
14189#ifdef __cplusplus
14190extern "C"
14191#endif
14192char dlopen ();
14193int
14194main ()
14195{
14196return dlopen ();
14197  ;
14198  return 0;
14199}
14200_ACEOF
14201if ac_fn_c_try_link "$LINENO"; then :
14202  ac_cv_lib_svld_dlopen=yes
14203else
14204  ac_cv_lib_svld_dlopen=no
14205fi
14206rm -f core conftest.err conftest.$ac_objext \
14207    conftest$ac_exeext conftest.$ac_ext
14208LIBS=$ac_check_lib_save_LIBS
14209fi
14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14211$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14212if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14213  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14214else
14215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14216$as_echo_n "checking for dld_link in -ldld... " >&6; }
14217if ${ac_cv_lib_dld_dld_link+:} false; then :
14218  $as_echo_n "(cached) " >&6
14219else
14220  ac_check_lib_save_LIBS=$LIBS
14221LIBS="-ldld  $LIBS"
14222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h.  */
14224
14225/* Override any GCC internal prototype to avoid an error.
14226   Use char because int might match the return type of a GCC
14227   builtin and then its argument prototype would still apply.  */
14228#ifdef __cplusplus
14229extern "C"
14230#endif
14231char dld_link ();
14232int
14233main ()
14234{
14235return dld_link ();
14236  ;
14237  return 0;
14238}
14239_ACEOF
14240if ac_fn_c_try_link "$LINENO"; then :
14241  ac_cv_lib_dld_dld_link=yes
14242else
14243  ac_cv_lib_dld_dld_link=no
14244fi
14245rm -f core conftest.err conftest.$ac_objext \
14246    conftest$ac_exeext conftest.$ac_ext
14247LIBS=$ac_check_lib_save_LIBS
14248fi
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14250$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14251if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14252  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14253fi
14254
14255
14256fi
14257
14258
14259fi
14260
14261
14262fi
14263
14264
14265fi
14266
14267
14268fi
14269
14270    ;;
14271  esac
14272
14273  if test no = "$lt_cv_dlopen"; then
14274    enable_dlopen=no
14275  else
14276    enable_dlopen=yes
14277  fi
14278
14279  case $lt_cv_dlopen in
14280  dlopen)
14281    save_CPPFLAGS=$CPPFLAGS
14282    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14283
14284    save_LDFLAGS=$LDFLAGS
14285    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14286
14287    save_LIBS=$LIBS
14288    LIBS="$lt_cv_dlopen_libs $LIBS"
14289
14290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14291$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14292if ${lt_cv_dlopen_self+:} false; then :
14293  $as_echo_n "(cached) " >&6
14294else
14295  	  if test yes = "$cross_compiling"; then :
14296  lt_cv_dlopen_self=cross
14297else
14298  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14299  lt_status=$lt_dlunknown
14300  cat > conftest.$ac_ext <<_LT_EOF
14301#line $LINENO "configure"
14302#include "confdefs.h"
14303
14304#if HAVE_DLFCN_H
14305#include <dlfcn.h>
14306#endif
14307
14308#include <stdio.h>
14309
14310#ifdef RTLD_GLOBAL
14311#  define LT_DLGLOBAL		RTLD_GLOBAL
14312#else
14313#  ifdef DL_GLOBAL
14314#    define LT_DLGLOBAL		DL_GLOBAL
14315#  else
14316#    define LT_DLGLOBAL		0
14317#  endif
14318#endif
14319
14320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14321   find out it does not work in some platform. */
14322#ifndef LT_DLLAZY_OR_NOW
14323#  ifdef RTLD_LAZY
14324#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14325#  else
14326#    ifdef DL_LAZY
14327#      define LT_DLLAZY_OR_NOW		DL_LAZY
14328#    else
14329#      ifdef RTLD_NOW
14330#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14331#      else
14332#        ifdef DL_NOW
14333#          define LT_DLLAZY_OR_NOW	DL_NOW
14334#        else
14335#          define LT_DLLAZY_OR_NOW	0
14336#        endif
14337#      endif
14338#    endif
14339#  endif
14340#endif
14341
14342/* When -fvisibility=hidden is used, assume the code has been annotated
14343   correspondingly for the symbols needed.  */
14344#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14345int fnord () __attribute__((visibility("default")));
14346#endif
14347
14348int fnord () { return 42; }
14349int main ()
14350{
14351  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14352  int status = $lt_dlunknown;
14353
14354  if (self)
14355    {
14356      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14357      else
14358        {
14359	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14360          else puts (dlerror ());
14361	}
14362      /* dlclose (self); */
14363    }
14364  else
14365    puts (dlerror ());
14366
14367  return status;
14368}
14369_LT_EOF
14370  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14371  (eval $ac_link) 2>&5
14372  ac_status=$?
14373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14375    (./conftest; exit; ) >&5 2>/dev/null
14376    lt_status=$?
14377    case x$lt_status in
14378      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14379      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14380      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14381    esac
14382  else :
14383    # compilation failed
14384    lt_cv_dlopen_self=no
14385  fi
14386fi
14387rm -fr conftest*
14388
14389
14390fi
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14392$as_echo "$lt_cv_dlopen_self" >&6; }
14393
14394    if test yes = "$lt_cv_dlopen_self"; then
14395      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14396      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14397$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14398if ${lt_cv_dlopen_self_static+:} false; then :
14399  $as_echo_n "(cached) " >&6
14400else
14401  	  if test yes = "$cross_compiling"; then :
14402  lt_cv_dlopen_self_static=cross
14403else
14404  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14405  lt_status=$lt_dlunknown
14406  cat > conftest.$ac_ext <<_LT_EOF
14407#line $LINENO "configure"
14408#include "confdefs.h"
14409
14410#if HAVE_DLFCN_H
14411#include <dlfcn.h>
14412#endif
14413
14414#include <stdio.h>
14415
14416#ifdef RTLD_GLOBAL
14417#  define LT_DLGLOBAL		RTLD_GLOBAL
14418#else
14419#  ifdef DL_GLOBAL
14420#    define LT_DLGLOBAL		DL_GLOBAL
14421#  else
14422#    define LT_DLGLOBAL		0
14423#  endif
14424#endif
14425
14426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14427   find out it does not work in some platform. */
14428#ifndef LT_DLLAZY_OR_NOW
14429#  ifdef RTLD_LAZY
14430#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14431#  else
14432#    ifdef DL_LAZY
14433#      define LT_DLLAZY_OR_NOW		DL_LAZY
14434#    else
14435#      ifdef RTLD_NOW
14436#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14437#      else
14438#        ifdef DL_NOW
14439#          define LT_DLLAZY_OR_NOW	DL_NOW
14440#        else
14441#          define LT_DLLAZY_OR_NOW	0
14442#        endif
14443#      endif
14444#    endif
14445#  endif
14446#endif
14447
14448/* When -fvisibility=hidden is used, assume the code has been annotated
14449   correspondingly for the symbols needed.  */
14450#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14451int fnord () __attribute__((visibility("default")));
14452#endif
14453
14454int fnord () { return 42; }
14455int main ()
14456{
14457  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14458  int status = $lt_dlunknown;
14459
14460  if (self)
14461    {
14462      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14463      else
14464        {
14465	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14466          else puts (dlerror ());
14467	}
14468      /* dlclose (self); */
14469    }
14470  else
14471    puts (dlerror ());
14472
14473  return status;
14474}
14475_LT_EOF
14476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14477  (eval $ac_link) 2>&5
14478  ac_status=$?
14479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14480  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14481    (./conftest; exit; ) >&5 2>/dev/null
14482    lt_status=$?
14483    case x$lt_status in
14484      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14485      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14486      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14487    esac
14488  else :
14489    # compilation failed
14490    lt_cv_dlopen_self_static=no
14491  fi
14492fi
14493rm -fr conftest*
14494
14495
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14498$as_echo "$lt_cv_dlopen_self_static" >&6; }
14499    fi
14500
14501    CPPFLAGS=$save_CPPFLAGS
14502    LDFLAGS=$save_LDFLAGS
14503    LIBS=$save_LIBS
14504    ;;
14505  esac
14506
14507  case $lt_cv_dlopen_self in
14508  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14509  *) enable_dlopen_self=unknown ;;
14510  esac
14511
14512  case $lt_cv_dlopen_self_static in
14513  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14514  *) enable_dlopen_self_static=unknown ;;
14515  esac
14516fi
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534striplib=
14535old_striplib=
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14537$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14538if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14539  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14540  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542$as_echo "yes" >&6; }
14543else
14544# FIXME - insert some real tests, host_os isn't really good enough
14545  case $host_os in
14546  darwin*)
14547    if test -n "$STRIP"; then
14548      striplib="$STRIP -x"
14549      old_striplib="$STRIP -S"
14550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14551$as_echo "yes" >&6; }
14552    else
14553      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554$as_echo "no" >&6; }
14555    fi
14556    ;;
14557  *)
14558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559$as_echo "no" >&6; }
14560    ;;
14561  esac
14562fi
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575  # Report what library types will actually be built
14576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14577$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14579$as_echo "$can_build_shared" >&6; }
14580
14581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14582$as_echo_n "checking whether to build shared libraries... " >&6; }
14583  test no = "$can_build_shared" && enable_shared=no
14584
14585  # On AIX, shared libraries and static libraries use the same namespace, and
14586  # are all built from PIC.
14587  case $host_os in
14588  aix3*)
14589    test yes = "$enable_shared" && enable_static=no
14590    if test -n "$RANLIB"; then
14591      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14592      postinstall_cmds='$RANLIB $lib'
14593    fi
14594    ;;
14595
14596  aix[4-9]*)
14597    if test ia64 != "$host_cpu"; then
14598      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14599      yes,aix,yes) ;;			# shared object as lib.so file only
14600      yes,svr4,*) ;;			# shared object as lib.so archive member only
14601      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14602      esac
14603    fi
14604    ;;
14605  esac
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14607$as_echo "$enable_shared" >&6; }
14608
14609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14610$as_echo_n "checking whether to build static libraries... " >&6; }
14611  # Make sure either enable_shared or enable_static is yes.
14612  test yes = "$enable_shared" || enable_static=yes
14613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14614$as_echo "$enable_static" >&6; }
14615
14616
14617
14618
14619fi
14620ac_ext=c
14621ac_cpp='$CPP $CPPFLAGS'
14622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624ac_compiler_gnu=$ac_cv_c_compiler_gnu
14625
14626CC=$lt_save_CC
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642        ac_config_commands="$ac_config_commands libtool"
14643
14644
14645
14646
14647# Only expand once:
14648
14649
14650
14651
14652# pkg-config is only needed for these options, do not require it otherwise
14653if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14654
14655
14656
14657
14658
14659
14660
14661if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14662	if test -n "$ac_tool_prefix"; then
14663  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14664set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666$as_echo_n "checking for $ac_word... " >&6; }
14667if ${ac_cv_path_PKG_CONFIG+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  case $PKG_CONFIG in
14671  [\\/]* | ?:[\\/]*)
14672  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14673  ;;
14674  *)
14675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676for as_dir in $PATH
14677do
14678  IFS=$as_save_IFS
14679  test -z "$as_dir" && as_dir=.
14680    for ac_exec_ext in '' $ac_executable_extensions; do
14681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684    break 2
14685  fi
14686done
14687  done
14688IFS=$as_save_IFS
14689
14690  ;;
14691esac
14692fi
14693PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14694if test -n "$PKG_CONFIG"; then
14695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14696$as_echo "$PKG_CONFIG" >&6; }
14697else
14698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699$as_echo "no" >&6; }
14700fi
14701
14702
14703fi
14704if test -z "$ac_cv_path_PKG_CONFIG"; then
14705  ac_pt_PKG_CONFIG=$PKG_CONFIG
14706  # Extract the first word of "pkg-config", so it can be a program name with args.
14707set dummy pkg-config; ac_word=$2
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14709$as_echo_n "checking for $ac_word... " >&6; }
14710if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14711  $as_echo_n "(cached) " >&6
14712else
14713  case $ac_pt_PKG_CONFIG in
14714  [\\/]* | ?:[\\/]*)
14715  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14716  ;;
14717  *)
14718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721  IFS=$as_save_IFS
14722  test -z "$as_dir" && as_dir=.
14723    for ac_exec_ext in '' $ac_executable_extensions; do
14724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727    break 2
14728  fi
14729done
14730  done
14731IFS=$as_save_IFS
14732
14733  ;;
14734esac
14735fi
14736ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14737if test -n "$ac_pt_PKG_CONFIG"; then
14738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14739$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14740else
14741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742$as_echo "no" >&6; }
14743fi
14744
14745  if test "x$ac_pt_PKG_CONFIG" = x; then
14746    PKG_CONFIG=""
14747  else
14748    case $cross_compiling:$ac_tool_warned in
14749yes:)
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14752ac_tool_warned=yes ;;
14753esac
14754    PKG_CONFIG=$ac_pt_PKG_CONFIG
14755  fi
14756else
14757  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14758fi
14759
14760fi
14761if test -n "$PKG_CONFIG"; then
14762	_pkg_min_version=0.9.0
14763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14764$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14765	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767$as_echo "yes" >&6; }
14768	else
14769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770$as_echo "no" >&6; }
14771		PKG_CONFIG=""
14772	fi
14773fi
14774fi
14775
14776# Checks for header files.
14777for 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
14778do :
14779  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14780ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14781"
14782if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14783  cat >>confdefs.h <<_ACEOF
14784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14785_ACEOF
14786
14787fi
14788
14789done
14790
14791# net/if.h portability for Darwin see:
14792# https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14793for ac_header in net/if.h
14794do :
14795  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14796#include <stdio.h>
14797#ifdef STDC_HEADERS
14798# include <stdlib.h>
14799# include <stddef.h>
14800#else
14801# ifdef HAVE_STDLIB_H
14802#  include <stdlib.h>
14803# endif
14804#endif
14805#ifdef HAVE_SYS_SOCKET_H
14806# include <sys/socket.h>
14807#endif
14808
14809"
14810if test "x$ac_cv_header_net_if_h" = xyes; then :
14811  cat >>confdefs.h <<_ACEOF
14812#define HAVE_NET_IF_H 1
14813_ACEOF
14814
14815fi
14816
14817done
14818
14819
14820# Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14821for ac_header in TargetConditionals.h
14822do :
14823  ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14824"
14825if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14826  cat >>confdefs.h <<_ACEOF
14827#define HAVE_TARGETCONDITIONALS_H 1
14828_ACEOF
14829
14830fi
14831
14832done
14833
14834for ac_header in netioapi.h
14835do :
14836  ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14837#if HAVE_SYS_PARAM_H
14838#include <sys/param.h>
14839#endif
14840
14841#ifdef HAVE_SYS_SOCKET_H
14842#include <sys/socket.h>
14843#endif
14844
14845#ifdef HAVE_SYS_UIO_H
14846#include <sys/uio.h>
14847#endif
14848
14849#ifdef HAVE_NETINET_IN_H
14850#include <netinet/in.h>
14851#endif
14852
14853#ifdef HAVE_NETINET_TCP_H
14854#include <netinet/tcp.h>
14855#endif
14856
14857#ifdef HAVE_ARPA_INET_H
14858#include <arpa/inet.h>
14859#endif
14860
14861#ifdef HAVE_WINSOCK2_H
14862#include <winsock2.h>
14863#endif
14864
14865#ifdef HAVE_WS2TCPIP_H
14866#include <ws2tcpip.h>
14867#endif
14868
14869"
14870if test "x$ac_cv_header_netioapi_h" = xyes; then :
14871  cat >>confdefs.h <<_ACEOF
14872#define HAVE_NETIOAPI_H 1
14873_ACEOF
14874
14875fi
14876
14877done
14878
14879
14880# check for types.
14881# Using own tests for int64* because autoconf builtin only give 32bit.
14882ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14883if test "x$ac_cv_type_int8_t" = xyes; then :
14884
14885else
14886
14887cat >>confdefs.h <<_ACEOF
14888#define int8_t signed char
14889_ACEOF
14890
14891fi
14892
14893ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14894if test "x$ac_cv_type_int16_t" = xyes; then :
14895
14896else
14897
14898cat >>confdefs.h <<_ACEOF
14899#define int16_t short
14900_ACEOF
14901
14902fi
14903
14904ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14905if test "x$ac_cv_type_int32_t" = xyes; then :
14906
14907else
14908
14909cat >>confdefs.h <<_ACEOF
14910#define int32_t int
14911_ACEOF
14912
14913fi
14914
14915ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14916if test "x$ac_cv_type_int64_t" = xyes; then :
14917
14918else
14919
14920cat >>confdefs.h <<_ACEOF
14921#define int64_t long long
14922_ACEOF
14923
14924fi
14925
14926ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14927if test "x$ac_cv_type_uint8_t" = xyes; then :
14928
14929else
14930
14931cat >>confdefs.h <<_ACEOF
14932#define uint8_t unsigned char
14933_ACEOF
14934
14935fi
14936
14937ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14938if test "x$ac_cv_type_uint16_t" = xyes; then :
14939
14940else
14941
14942cat >>confdefs.h <<_ACEOF
14943#define uint16_t unsigned short
14944_ACEOF
14945
14946fi
14947
14948ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14949if test "x$ac_cv_type_uint32_t" = xyes; then :
14950
14951else
14952
14953cat >>confdefs.h <<_ACEOF
14954#define uint32_t unsigned int
14955_ACEOF
14956
14957fi
14958
14959ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14960if test "x$ac_cv_type_uint64_t" = xyes; then :
14961
14962else
14963
14964cat >>confdefs.h <<_ACEOF
14965#define uint64_t unsigned long long
14966_ACEOF
14967
14968fi
14969
14970ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14971if test "x$ac_cv_type_size_t" = xyes; then :
14972
14973else
14974
14975cat >>confdefs.h <<_ACEOF
14976#define size_t unsigned int
14977_ACEOF
14978
14979fi
14980
14981ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14982if test "x$ac_cv_type_ssize_t" = xyes; then :
14983
14984else
14985
14986cat >>confdefs.h <<_ACEOF
14987#define ssize_t int
14988_ACEOF
14989
14990fi
14991
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14993$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14994if ${ac_cv_type_uid_t+:} false; then :
14995  $as_echo_n "(cached) " >&6
14996else
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999#include <sys/types.h>
15000
15001_ACEOF
15002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15003  $EGREP "uid_t" >/dev/null 2>&1; then :
15004  ac_cv_type_uid_t=yes
15005else
15006  ac_cv_type_uid_t=no
15007fi
15008rm -f conftest*
15009
15010fi
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15012$as_echo "$ac_cv_type_uid_t" >&6; }
15013if test $ac_cv_type_uid_t = no; then
15014
15015$as_echo "#define uid_t int" >>confdefs.h
15016
15017
15018$as_echo "#define gid_t int" >>confdefs.h
15019
15020fi
15021
15022ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15023if test "x$ac_cv_type_pid_t" = xyes; then :
15024
15025else
15026
15027cat >>confdefs.h <<_ACEOF
15028#define pid_t int
15029_ACEOF
15030
15031fi
15032
15033ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15034if test "x$ac_cv_type_off_t" = xyes; then :
15035
15036else
15037
15038cat >>confdefs.h <<_ACEOF
15039#define off_t long int
15040_ACEOF
15041
15042fi
15043
15044ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
15045$ac_includes_default
15046#ifdef HAVE_WINSOCK2_H
15047#  include <winsock2.h>
15048#endif
15049
15050"
15051if test "x$ac_cv_type_u_char" = xyes; then :
15052
15053else
15054
15055$as_echo "#define u_char unsigned char" >>confdefs.h
15056
15057fi
15058
15059ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
15060$ac_includes_default
15061#ifdef HAVE_SYS_RESOURCE_H
15062#  include <sys/resource.h>
15063#endif
15064
15065"
15066if test "x$ac_cv_type_rlim_t" = xyes; then :
15067
15068else
15069
15070$as_echo "#define rlim_t unsigned long" >>confdefs.h
15071
15072fi
15073
15074
15075ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15076$ac_includes_default
15077#ifdef HAVE_SYS_SOCKET_H
15078#  include <sys/socket.h>
15079#endif
15080#ifdef HAVE_WS2TCPIP_H
15081#  include <ws2tcpip.h>
15082#endif
15083
15084"
15085if test "x$ac_cv_type_socklen_t" = xyes; then :
15086
15087else
15088
15089$as_echo "#define socklen_t int" >>confdefs.h
15090
15091fi
15092
15093 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15094$ac_includes_default
15095#ifdef HAVE_SYS_TYPES_H
15096# include <sys/types.h>
15097#endif
15098#ifdef HAVE_NETINET_IN_H
15099# include <netinet/in.h>
15100#endif
15101
15102"
15103if test "x$ac_cv_type_in_addr_t" = xyes; then :
15104
15105else
15106
15107$as_echo "#define in_addr_t uint32_t" >>confdefs.h
15108
15109fi
15110
15111 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15112$ac_includes_default
15113#ifdef HAVE_SYS_TYPES_H
15114# include <sys/types.h>
15115#endif
15116#ifdef HAVE_NETINET_IN_H
15117# include <netinet/in.h>
15118#endif
15119
15120"
15121if test "x$ac_cv_type_in_port_t" = xyes; then :
15122
15123else
15124
15125$as_echo "#define in_port_t uint16_t" >>confdefs.h
15126
15127fi
15128
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15130$as_echo_n "checking if memcmp compares unsigned... " >&6; }
15131if test "$cross_compiling" = yes; then :
15132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15133$as_echo "cross-compile no" >&6; }
15134
15135$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15136
15137  case " $LIBOBJS " in
15138  *" memcmp.$ac_objext "* ) ;;
15139  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15140 ;;
15141esac
15142
15143
15144else
15145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147
15148#include <stdio.h>
15149#include <stdlib.h>
15150#include <string.h>
15151int main(void)
15152{
15153	char a = 255, b = 0;
15154	if(memcmp(&a, &b, 1) < 0)
15155		return 1;
15156	return 0;
15157}
15158
15159_ACEOF
15160if ac_fn_c_try_run "$LINENO"; then :
15161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15162$as_echo "yes" >&6; }
15163else
15164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165$as_echo "no" >&6; }
15166
15167$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15168
15169  case " $LIBOBJS " in
15170  *" memcmp.$ac_objext "* ) ;;
15171  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15172 ;;
15173esac
15174
15175
15176fi
15177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15178  conftest.$ac_objext conftest.beam conftest.$ac_ext
15179fi
15180
15181
15182# The cast to long int works around a bug in the HP C Compiler
15183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15185# This bug is HP SR number 8606223364.
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15187$as_echo_n "checking size of time_t... " >&6; }
15188if ${ac_cv_sizeof_time_t+:} false; then :
15189  $as_echo_n "(cached) " >&6
15190else
15191  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15192$ac_includes_default
15193#ifdef TIME_WITH_SYS_TIME
15194# include <sys/time.h>
15195# include <time.h>
15196#else
15197# ifdef HAVE_SYS_TIME_H
15198#  include <sys/time.h>
15199# else
15200#  include <time.h>
15201# endif
15202#endif
15203
15204"; then :
15205
15206else
15207  if test "$ac_cv_type_time_t" = yes; then
15208     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15210as_fn_error 77 "cannot compute sizeof (time_t)
15211See \`config.log' for more details" "$LINENO" 5; }
15212   else
15213     ac_cv_sizeof_time_t=0
15214   fi
15215fi
15216
15217fi
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15219$as_echo "$ac_cv_sizeof_time_t" >&6; }
15220
15221
15222
15223cat >>confdefs.h <<_ACEOF
15224#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15225_ACEOF
15226
15227
15228# The cast to long int works around a bug in the HP C Compiler
15229# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15230# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15231# This bug is HP SR number 8606223364.
15232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15233$as_echo_n "checking size of size_t... " >&6; }
15234if ${ac_cv_sizeof_size_t+:} false; then :
15235  $as_echo_n "(cached) " >&6
15236else
15237  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15238
15239else
15240  if test "$ac_cv_type_size_t" = yes; then
15241     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15243as_fn_error 77 "cannot compute sizeof (size_t)
15244See \`config.log' for more details" "$LINENO" 5; }
15245   else
15246     ac_cv_sizeof_size_t=0
15247   fi
15248fi
15249
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15252$as_echo "$ac_cv_sizeof_size_t" >&6; }
15253
15254
15255
15256cat >>confdefs.h <<_ACEOF
15257#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15258_ACEOF
15259
15260
15261
15262# add option to disable the evil rpath
15263
15264# Check whether --enable-rpath was given.
15265if test "${enable_rpath+set}" = set; then :
15266  enableval=$enable_rpath; enable_rpath=$enableval
15267else
15268  enable_rpath=yes
15269fi
15270
15271if test "x$enable_rpath" = xno; then
15272		ac_config_commands="$ac_config_commands disable-rpath"
15273
15274fi
15275
15276
15277
15278# check to see if libraries are needed for these functions.
15279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15280$as_echo_n "checking for library containing inet_pton... " >&6; }
15281if ${ac_cv_search_inet_pton+:} false; then :
15282  $as_echo_n "(cached) " >&6
15283else
15284  ac_func_search_save_LIBS=$LIBS
15285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287
15288/* Override any GCC internal prototype to avoid an error.
15289   Use char because int might match the return type of a GCC
15290   builtin and then its argument prototype would still apply.  */
15291#ifdef __cplusplus
15292extern "C"
15293#endif
15294char inet_pton ();
15295int
15296main ()
15297{
15298return inet_pton ();
15299  ;
15300  return 0;
15301}
15302_ACEOF
15303for ac_lib in '' nsl; do
15304  if test -z "$ac_lib"; then
15305    ac_res="none required"
15306  else
15307    ac_res=-l$ac_lib
15308    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15309  fi
15310  if ac_fn_c_try_link "$LINENO"; then :
15311  ac_cv_search_inet_pton=$ac_res
15312fi
15313rm -f core conftest.err conftest.$ac_objext \
15314    conftest$ac_exeext
15315  if ${ac_cv_search_inet_pton+:} false; then :
15316  break
15317fi
15318done
15319if ${ac_cv_search_inet_pton+:} false; then :
15320
15321else
15322  ac_cv_search_inet_pton=no
15323fi
15324rm conftest.$ac_ext
15325LIBS=$ac_func_search_save_LIBS
15326fi
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15328$as_echo "$ac_cv_search_inet_pton" >&6; }
15329ac_res=$ac_cv_search_inet_pton
15330if test "$ac_res" != no; then :
15331  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15332
15333fi
15334
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15336$as_echo_n "checking for library containing socket... " >&6; }
15337if ${ac_cv_search_socket+:} false; then :
15338  $as_echo_n "(cached) " >&6
15339else
15340  ac_func_search_save_LIBS=$LIBS
15341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h.  */
15343
15344/* Override any GCC internal prototype to avoid an error.
15345   Use char because int might match the return type of a GCC
15346   builtin and then its argument prototype would still apply.  */
15347#ifdef __cplusplus
15348extern "C"
15349#endif
15350char socket ();
15351int
15352main ()
15353{
15354return socket ();
15355  ;
15356  return 0;
15357}
15358_ACEOF
15359for ac_lib in '' socket; do
15360  if test -z "$ac_lib"; then
15361    ac_res="none required"
15362  else
15363    ac_res=-l$ac_lib
15364    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15365  fi
15366  if ac_fn_c_try_link "$LINENO"; then :
15367  ac_cv_search_socket=$ac_res
15368fi
15369rm -f core conftest.err conftest.$ac_objext \
15370    conftest$ac_exeext
15371  if ${ac_cv_search_socket+:} false; then :
15372  break
15373fi
15374done
15375if ${ac_cv_search_socket+:} false; then :
15376
15377else
15378  ac_cv_search_socket=no
15379fi
15380rm conftest.$ac_ext
15381LIBS=$ac_func_search_save_LIBS
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15384$as_echo "$ac_cv_search_socket" >&6; }
15385ac_res=$ac_cv_search_socket
15386if test "$ac_res" != no; then :
15387  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15388
15389fi
15390
15391
15392# check whether strptime also works
15393
15394# check some functions of the OS before linking libs (while still runnable).
15395for ac_header in unistd.h
15396do :
15397  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15398if test "x$ac_cv_header_unistd_h" = xyes; then :
15399  cat >>confdefs.h <<_ACEOF
15400#define HAVE_UNISTD_H 1
15401_ACEOF
15402
15403fi
15404
15405done
15406
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15408$as_echo_n "checking for working chown... " >&6; }
15409if ${ac_cv_func_chown_works+:} false; then :
15410  $as_echo_n "(cached) " >&6
15411else
15412  if test "$cross_compiling" = yes; then :
15413  ac_cv_func_chown_works=no
15414else
15415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h.  */
15417$ac_includes_default
15418#include <fcntl.h>
15419
15420int
15421main ()
15422{
15423  char *f = "conftest.chown";
15424  struct stat before, after;
15425
15426  if (creat (f, 0600) < 0)
15427    return 1;
15428  if (stat (f, &before) < 0)
15429    return 1;
15430  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15431    return 1;
15432  if (stat (f, &after) < 0)
15433    return 1;
15434  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15435
15436  ;
15437  return 0;
15438}
15439_ACEOF
15440if ac_fn_c_try_run "$LINENO"; then :
15441  ac_cv_func_chown_works=yes
15442else
15443  ac_cv_func_chown_works=no
15444fi
15445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15446  conftest.$ac_objext conftest.beam conftest.$ac_ext
15447fi
15448
15449rm -f conftest.chown
15450
15451fi
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15453$as_echo "$ac_cv_func_chown_works" >&6; }
15454if test $ac_cv_func_chown_works = yes; then
15455
15456$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15457
15458fi
15459
15460for ac_header in vfork.h
15461do :
15462  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15463if test "x$ac_cv_header_vfork_h" = xyes; then :
15464  cat >>confdefs.h <<_ACEOF
15465#define HAVE_VFORK_H 1
15466_ACEOF
15467
15468fi
15469
15470done
15471
15472for ac_func in fork vfork
15473do :
15474  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15475ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15476if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15477  cat >>confdefs.h <<_ACEOF
15478#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15479_ACEOF
15480
15481fi
15482done
15483
15484if test "x$ac_cv_func_fork" = xyes; then
15485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15486$as_echo_n "checking for working fork... " >&6; }
15487if ${ac_cv_func_fork_works+:} false; then :
15488  $as_echo_n "(cached) " >&6
15489else
15490  if test "$cross_compiling" = yes; then :
15491  ac_cv_func_fork_works=cross
15492else
15493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h.  */
15495$ac_includes_default
15496int
15497main ()
15498{
15499
15500	  /* By Ruediger Kuhlmann. */
15501	  return fork () < 0;
15502
15503  ;
15504  return 0;
15505}
15506_ACEOF
15507if ac_fn_c_try_run "$LINENO"; then :
15508  ac_cv_func_fork_works=yes
15509else
15510  ac_cv_func_fork_works=no
15511fi
15512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15513  conftest.$ac_objext conftest.beam conftest.$ac_ext
15514fi
15515
15516fi
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15518$as_echo "$ac_cv_func_fork_works" >&6; }
15519
15520else
15521  ac_cv_func_fork_works=$ac_cv_func_fork
15522fi
15523if test "x$ac_cv_func_fork_works" = xcross; then
15524  case $host in
15525    *-*-amigaos* | *-*-msdosdjgpp*)
15526      # Override, as these systems have only a dummy fork() stub
15527      ac_cv_func_fork_works=no
15528      ;;
15529    *)
15530      ac_cv_func_fork_works=yes
15531      ;;
15532  esac
15533  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15534$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15535fi
15536ac_cv_func_vfork_works=$ac_cv_func_vfork
15537if test "x$ac_cv_func_vfork" = xyes; then
15538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15539$as_echo_n "checking for working vfork... " >&6; }
15540if ${ac_cv_func_vfork_works+:} false; then :
15541  $as_echo_n "(cached) " >&6
15542else
15543  if test "$cross_compiling" = yes; then :
15544  ac_cv_func_vfork_works=cross
15545else
15546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547/* end confdefs.h.  */
15548/* Thanks to Paul Eggert for this test.  */
15549$ac_includes_default
15550#include <sys/wait.h>
15551#ifdef HAVE_VFORK_H
15552# include <vfork.h>
15553#endif
15554/* On some sparc systems, changes by the child to local and incoming
15555   argument registers are propagated back to the parent.  The compiler
15556   is told about this with #include <vfork.h>, but some compilers
15557   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15558   static variable whose address is put into a register that is
15559   clobbered by the vfork.  */
15560static void
15561#ifdef __cplusplus
15562sparc_address_test (int arg)
15563# else
15564sparc_address_test (arg) int arg;
15565#endif
15566{
15567  static pid_t child;
15568  if (!child) {
15569    child = vfork ();
15570    if (child < 0) {
15571      perror ("vfork");
15572      _exit(2);
15573    }
15574    if (!child) {
15575      arg = getpid();
15576      write(-1, "", 0);
15577      _exit (arg);
15578    }
15579  }
15580}
15581
15582int
15583main ()
15584{
15585  pid_t parent = getpid ();
15586  pid_t child;
15587
15588  sparc_address_test (0);
15589
15590  child = vfork ();
15591
15592  if (child == 0) {
15593    /* Here is another test for sparc vfork register problems.  This
15594       test uses lots of local variables, at least as many local
15595       variables as main has allocated so far including compiler
15596       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15597       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15598       reuse the register of parent for one of the local variables,
15599       since it will think that parent can't possibly be used any more
15600       in this routine.  Assigning to the local variable will thus
15601       munge parent in the parent process.  */
15602    pid_t
15603      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15604      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15605    /* Convince the compiler that p..p7 are live; otherwise, it might
15606       use the same hardware register for all 8 local variables.  */
15607    if (p != p1 || p != p2 || p != p3 || p != p4
15608	|| p != p5 || p != p6 || p != p7)
15609      _exit(1);
15610
15611    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15612       from child file descriptors.  If the child closes a descriptor
15613       before it execs or exits, this munges the parent's descriptor
15614       as well.  Test for this by closing stdout in the child.  */
15615    _exit(close(fileno(stdout)) != 0);
15616  } else {
15617    int status;
15618    struct stat st;
15619
15620    while (wait(&status) != child)
15621      ;
15622    return (
15623	 /* Was there some problem with vforking?  */
15624	 child < 0
15625
15626	 /* Did the child fail?  (This shouldn't happen.)  */
15627	 || status
15628
15629	 /* Did the vfork/compiler bug occur?  */
15630	 || parent != getpid()
15631
15632	 /* Did the file descriptor bug occur?  */
15633	 || fstat(fileno(stdout), &st) != 0
15634	 );
15635  }
15636}
15637_ACEOF
15638if ac_fn_c_try_run "$LINENO"; then :
15639  ac_cv_func_vfork_works=yes
15640else
15641  ac_cv_func_vfork_works=no
15642fi
15643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15644  conftest.$ac_objext conftest.beam conftest.$ac_ext
15645fi
15646
15647fi
15648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15649$as_echo "$ac_cv_func_vfork_works" >&6; }
15650
15651fi;
15652if test "x$ac_cv_func_fork_works" = xcross; then
15653  ac_cv_func_vfork_works=$ac_cv_func_vfork
15654  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15655$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15656fi
15657
15658if test "x$ac_cv_func_vfork_works" = xyes; then
15659
15660$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15661
15662else
15663
15664$as_echo "#define vfork fork" >>confdefs.h
15665
15666fi
15667if test "x$ac_cv_func_fork_works" = xyes; then
15668
15669$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15670
15671fi
15672
15673
15674$as_echo "#define RETSIGTYPE void" >>confdefs.h
15675
15676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15677$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15678if ${ac_cv_sys_largefile_source+:} false; then :
15679  $as_echo_n "(cached) " >&6
15680else
15681  while :; do
15682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h.  */
15684#include <sys/types.h> /* for off_t */
15685     #include <stdio.h>
15686int
15687main ()
15688{
15689int (*fp) (FILE *, off_t, int) = fseeko;
15690     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15691  ;
15692  return 0;
15693}
15694_ACEOF
15695if ac_fn_c_try_link "$LINENO"; then :
15696  ac_cv_sys_largefile_source=no; break
15697fi
15698rm -f core conftest.err conftest.$ac_objext \
15699    conftest$ac_exeext conftest.$ac_ext
15700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701/* end confdefs.h.  */
15702#define _LARGEFILE_SOURCE 1
15703#include <sys/types.h> /* for off_t */
15704     #include <stdio.h>
15705int
15706main ()
15707{
15708int (*fp) (FILE *, off_t, int) = fseeko;
15709     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15710  ;
15711  return 0;
15712}
15713_ACEOF
15714if ac_fn_c_try_link "$LINENO"; then :
15715  ac_cv_sys_largefile_source=1; break
15716fi
15717rm -f core conftest.err conftest.$ac_objext \
15718    conftest$ac_exeext conftest.$ac_ext
15719  ac_cv_sys_largefile_source=unknown
15720  break
15721done
15722fi
15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15724$as_echo "$ac_cv_sys_largefile_source" >&6; }
15725case $ac_cv_sys_largefile_source in #(
15726  no | unknown) ;;
15727  *)
15728cat >>confdefs.h <<_ACEOF
15729#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15730_ACEOF
15731;;
15732esac
15733rm -rf conftest*
15734
15735# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15736# in glibc 2.1.3, but that breaks too many other things.
15737# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15738if test $ac_cv_sys_largefile_source != unknown; then
15739
15740$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15741
15742fi
15743
15744
15745# Check whether --enable-largefile was given.
15746if test "${enable_largefile+set}" = set; then :
15747  enableval=$enable_largefile;
15748fi
15749
15750if test "$enable_largefile" != no; then
15751
15752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15753$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15754if ${ac_cv_sys_largefile_CC+:} false; then :
15755  $as_echo_n "(cached) " >&6
15756else
15757  ac_cv_sys_largefile_CC=no
15758     if test "$GCC" != yes; then
15759       ac_save_CC=$CC
15760       while :; do
15761	 # IRIX 6.2 and later do not support large files by default,
15762	 # so use the C compiler's -n32 option if that helps.
15763	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765#include <sys/types.h>
15766 /* Check that off_t can represent 2**63 - 1 correctly.
15767    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15768    since some C++ compilers masquerading as C compilers
15769    incorrectly reject 9223372036854775807.  */
15770#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15771  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15772		       && LARGE_OFF_T % 2147483647 == 1)
15773		      ? 1 : -1];
15774int
15775main ()
15776{
15777
15778  ;
15779  return 0;
15780}
15781_ACEOF
15782	 if ac_fn_c_try_compile "$LINENO"; then :
15783  break
15784fi
15785rm -f core conftest.err conftest.$ac_objext
15786	 CC="$CC -n32"
15787	 if ac_fn_c_try_compile "$LINENO"; then :
15788  ac_cv_sys_largefile_CC=' -n32'; break
15789fi
15790rm -f core conftest.err conftest.$ac_objext
15791	 break
15792       done
15793       CC=$ac_save_CC
15794       rm -f conftest.$ac_ext
15795    fi
15796fi
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15798$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15799  if test "$ac_cv_sys_largefile_CC" != no; then
15800    CC=$CC$ac_cv_sys_largefile_CC
15801  fi
15802
15803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15804$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15805if ${ac_cv_sys_file_offset_bits+:} false; then :
15806  $as_echo_n "(cached) " >&6
15807else
15808  while :; do
15809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810/* end confdefs.h.  */
15811#include <sys/types.h>
15812 /* Check that off_t can represent 2**63 - 1 correctly.
15813    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15814    since some C++ compilers masquerading as C compilers
15815    incorrectly reject 9223372036854775807.  */
15816#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15817  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15818		       && LARGE_OFF_T % 2147483647 == 1)
15819		      ? 1 : -1];
15820int
15821main ()
15822{
15823
15824  ;
15825  return 0;
15826}
15827_ACEOF
15828if ac_fn_c_try_compile "$LINENO"; then :
15829  ac_cv_sys_file_offset_bits=no; break
15830fi
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834#define _FILE_OFFSET_BITS 64
15835#include <sys/types.h>
15836 /* Check that off_t can represent 2**63 - 1 correctly.
15837    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15838    since some C++ compilers masquerading as C compilers
15839    incorrectly reject 9223372036854775807.  */
15840#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15841  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15842		       && LARGE_OFF_T % 2147483647 == 1)
15843		      ? 1 : -1];
15844int
15845main ()
15846{
15847
15848  ;
15849  return 0;
15850}
15851_ACEOF
15852if ac_fn_c_try_compile "$LINENO"; then :
15853  ac_cv_sys_file_offset_bits=64; break
15854fi
15855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856  ac_cv_sys_file_offset_bits=unknown
15857  break
15858done
15859fi
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15861$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15862case $ac_cv_sys_file_offset_bits in #(
15863  no | unknown) ;;
15864  *)
15865cat >>confdefs.h <<_ACEOF
15866#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15867_ACEOF
15868;;
15869esac
15870rm -rf conftest*
15871  if test $ac_cv_sys_file_offset_bits = unknown; then
15872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15873$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15874if ${ac_cv_sys_large_files+:} false; then :
15875  $as_echo_n "(cached) " >&6
15876else
15877  while :; do
15878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879/* end confdefs.h.  */
15880#include <sys/types.h>
15881 /* Check that off_t can represent 2**63 - 1 correctly.
15882    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15883    since some C++ compilers masquerading as C compilers
15884    incorrectly reject 9223372036854775807.  */
15885#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15886  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15887		       && LARGE_OFF_T % 2147483647 == 1)
15888		      ? 1 : -1];
15889int
15890main ()
15891{
15892
15893  ;
15894  return 0;
15895}
15896_ACEOF
15897if ac_fn_c_try_compile "$LINENO"; then :
15898  ac_cv_sys_large_files=no; break
15899fi
15900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902/* end confdefs.h.  */
15903#define _LARGE_FILES 1
15904#include <sys/types.h>
15905 /* Check that off_t can represent 2**63 - 1 correctly.
15906    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15907    since some C++ compilers masquerading as C compilers
15908    incorrectly reject 9223372036854775807.  */
15909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15910  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15911		       && LARGE_OFF_T % 2147483647 == 1)
15912		      ? 1 : -1];
15913int
15914main ()
15915{
15916
15917  ;
15918  return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_compile "$LINENO"; then :
15922  ac_cv_sys_large_files=1; break
15923fi
15924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925  ac_cv_sys_large_files=unknown
15926  break
15927done
15928fi
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15930$as_echo "$ac_cv_sys_large_files" >&6; }
15931case $ac_cv_sys_large_files in #(
15932  no | unknown) ;;
15933  *)
15934cat >>confdefs.h <<_ACEOF
15935#define _LARGE_FILES $ac_cv_sys_large_files
15936_ACEOF
15937;;
15938esac
15939rm -rf conftest*
15940  fi
15941
15942
15943fi
15944
15945
15946
15947
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15949$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15950cache=_D_LARGEFILE_SOURCE_1
15951if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954
15955echo '
15956#include <stdio.h>
15957int test() {
15958        int a = fseeko(stdin, 0, 0);
15959        return a;
15960}
15961' > conftest.c
15962echo 'void f(){}' >>conftest.c
15963if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15964eval "cv_prog_cc_flag_needed_$cache=no"
15965else
15966
15967if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15968eval "cv_prog_cc_flag_needed_$cache=yes"
15969else
15970eval "cv_prog_cc_flag_needed_$cache=fail"
15971#echo 'Test with flag fails too!'
15972#cat conftest.c
15973#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15974#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15975#exit 1
15976fi
15977
15978fi
15979rm -f conftest conftest.c conftest.o
15980
15981fi
15982
15983if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15985$as_echo "yes" >&6; }
15986:
15987CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15988else
15989if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15991$as_echo "no" >&6; }
15992#echo 'Test with flag is no!'
15993#cat conftest.c
15994#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15995#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15996#exit 1
15997:
15998
15999else
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16001$as_echo "failed" >&6; }
16002:
16003
16004fi
16005fi
16006
16007
16008
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
16010$as_echo_n "checking if nonblocking sockets work... " >&6; }
16011if echo $host | grep mingw >/dev/null; then
16012	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
16013$as_echo "no (windows)" >&6; }
16014
16015$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16016
16017else
16018if test "$cross_compiling" = yes; then :
16019
16020	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
16021$as_echo "crosscompile(yes)" >&6; }
16022
16023else
16024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025/* end confdefs.h.  */
16026
16027
16028#include <stdio.h>
16029#include <string.h>
16030#include <stdlib.h>
16031#include <fcntl.h>
16032#include <errno.h>
16033#ifdef HAVE_SYS_TYPES_H
16034#include <sys/types.h>
16035#endif
16036#ifdef HAVE_SYS_SELECT_H
16037#include <sys/select.h>
16038#endif
16039#ifdef HAVE_SYS_SOCKET_H
16040#include <sys/socket.h>
16041#endif
16042#ifdef HAVE_NETINET_IN_H
16043#include <netinet/in.h>
16044#endif
16045#ifdef HAVE_ARPA_INET_H
16046#include <arpa/inet.h>
16047#endif
16048#ifdef HAVE_UNISTD_H
16049#include <unistd.h>
16050#endif
16051#ifdef HAVE_TIME_H
16052#include <time.h>
16053#endif
16054
16055int main(void)
16056{
16057	int port;
16058	int sfd, cfd;
16059	int num = 10;
16060	int i, p;
16061	struct sockaddr_in a;
16062	/* test if select and nonblocking reads work well together */
16063	/* open port.
16064	   fork child to send 10 messages.
16065	   select to read.
16066	   then try to nonblocking read the 10 messages
16067	   then, nonblocking read must give EAGAIN
16068	*/
16069
16070	port = 12345 + (time(0)%32);
16071	sfd = socket(PF_INET, SOCK_DGRAM, 0);
16072	if(sfd == -1) {
16073		perror("socket");
16074		return 1;
16075	}
16076	memset(&a, 0, sizeof(a));
16077	a.sin_family = AF_INET;
16078	a.sin_port = htons(port);
16079	a.sin_addr.s_addr = inet_addr("127.0.0.1");
16080	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16081		perror("bind");
16082		return 1;
16083	}
16084	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
16085		perror("fcntl");
16086		return 1;
16087	}
16088
16089	cfd = socket(PF_INET, SOCK_DGRAM, 0);
16090	if(cfd == -1) {
16091		perror("client socket");
16092		return 1;
16093	}
16094	a.sin_port = 0;
16095	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16096		perror("client bind");
16097		return 1;
16098	}
16099	a.sin_port = htons(port);
16100
16101	/* no handler, causes exit in 10 seconds */
16102	alarm(10);
16103
16104	/* send and receive on the socket */
16105	if((p=fork()) == 0) {
16106		for(i=0; i<num; i++) {
16107			if(sendto(cfd, &i, sizeof(i), 0,
16108				(struct sockaddr*)&a, sizeof(a)) < 0) {
16109				perror("sendto");
16110				return 1;
16111			}
16112		}
16113	} else {
16114		/* parent */
16115		fd_set rset;
16116		int x;
16117		if(p == -1) {
16118			perror("fork");
16119			return 1;
16120		}
16121		FD_ZERO(&rset);
16122		FD_SET(sfd, &rset);
16123		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16124			perror("select");
16125			return 1;
16126		}
16127		i = 0;
16128		while(i < num) {
16129			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16130				if(errno == EAGAIN)
16131					continue;
16132				perror("recv");
16133				return 1;
16134			}
16135			i++;
16136		}
16137		/* now we want to get EAGAIN: nonblocking goodness */
16138		errno = 0;
16139		recv(sfd, &x, sizeof(x), 0);
16140		if(errno != EAGAIN) {
16141			perror("trying to recv again");
16142			return 1;
16143		}
16144		/* EAGAIN encountered */
16145	}
16146
16147	close(sfd);
16148	close(cfd);
16149	return 0;
16150}
16151
16152_ACEOF
16153if ac_fn_c_try_run "$LINENO"; then :
16154
16155	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156$as_echo "yes" >&6; }
16157
16158else
16159
16160	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161$as_echo "no" >&6; }
16162
16163$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16164
16165
16166fi
16167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16168  conftest.$ac_objext conftest.beam conftest.$ac_ext
16169fi
16170
16171fi
16172
16173
16174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16175$as_echo_n "checking whether mkdir has one arg... " >&6; }
16176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h.  */
16178
16179#include <stdio.h>
16180#include <unistd.h>
16181#ifdef HAVE_WINSOCK2_H
16182#include <winsock2.h>
16183#endif
16184#ifdef HAVE_SYS_STAT_H
16185#include <sys/stat.h>
16186#endif
16187
16188int
16189main ()
16190{
16191
16192	(void)mkdir("directory");
16193
16194  ;
16195  return 0;
16196}
16197_ACEOF
16198if ac_fn_c_try_compile "$LINENO"; then :
16199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16200$as_echo "yes" >&6; }
16201
16202$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16203
16204
16205else
16206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16207$as_echo "no" >&6; }
16208
16209fi
16210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211
16212for ac_func in strptime
16213do :
16214  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16215if test "x$ac_cv_func_strptime" = xyes; then :
16216  cat >>confdefs.h <<_ACEOF
16217#define HAVE_STRPTIME 1
16218_ACEOF
16219
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16221$as_echo_n "checking whether strptime works... " >&6; }
16222if test c${cross_compiling} = cno; then
16223if test "$cross_compiling" = yes; then :
16224  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16226as_fn_error $? "cannot run test program while cross compiling
16227See \`config.log' for more details" "$LINENO" 5; }
16228else
16229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231
16232#define _XOPEN_SOURCE 600
16233#include <time.h>
16234int main(void) { struct tm tm; char *res;
16235res = 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);
16236if (!res) return 2;
16237res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16238if (!res) return 1; return 0; }
16239
16240_ACEOF
16241if ac_fn_c_try_run "$LINENO"; then :
16242  eval "ac_cv_c_strptime_works=yes"
16243else
16244  eval "ac_cv_c_strptime_works=no"
16245fi
16246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16247  conftest.$ac_objext conftest.beam conftest.$ac_ext
16248fi
16249
16250else
16251eval "ac_cv_c_strptime_works=maybe"
16252fi
16253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16254$as_echo "$ac_cv_c_strptime_works" >&6; }
16255if test $ac_cv_c_strptime_works = no; then
16256case " $LIBOBJS " in
16257  *" strptime.$ac_objext "* ) ;;
16258  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16259 ;;
16260esac
16261
16262else
16263
16264cat >>confdefs.h <<_ACEOF
16265#define STRPTIME_WORKS 1
16266_ACEOF
16267
16268fi
16269
16270else
16271  case " $LIBOBJS " in
16272  *" strptime.$ac_objext "* ) ;;
16273  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16274 ;;
16275esac
16276
16277fi
16278done
16279
16280
16281# check if we can use SO_REUSEPORT
16282reuseport_default=0
16283if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16284if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16285if test "$reuseport_default" = 1; then
16286
16287$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16288
16289else
16290
16291$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16292
16293fi
16294
16295# Include systemd.m4 - begin
16296#   macros for configuring systemd
16297#   Copyright 2015, Sami Kerola, CloudFlare.
16298#   BSD licensed.
16299# Check whether --enable-systemd was given.
16300if test "${enable_systemd+set}" = set; then :
16301  enableval=$enable_systemd;
16302else
16303  enable_systemd=no
16304fi
16305
16306have_systemd=no
16307if test "x$enable_systemd" != xno; then :
16308
16309
16310
16311pkg_failed=no
16312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16313$as_echo_n "checking for SYSTEMD... " >&6; }
16314
16315if test -n "$SYSTEMD_CFLAGS"; then
16316    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16317 elif test -n "$PKG_CONFIG"; then
16318    if test -n "$PKG_CONFIG" && \
16319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16320  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16321  ac_status=$?
16322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16323  test $ac_status = 0; }; then
16324  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16325		      test "x$?" != "x0" && pkg_failed=yes
16326else
16327  pkg_failed=yes
16328fi
16329 else
16330    pkg_failed=untried
16331fi
16332if test -n "$SYSTEMD_LIBS"; then
16333    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16334 elif test -n "$PKG_CONFIG"; then
16335    if test -n "$PKG_CONFIG" && \
16336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16337  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16338  ac_status=$?
16339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340  test $ac_status = 0; }; then
16341  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16342		      test "x$?" != "x0" && pkg_failed=yes
16343else
16344  pkg_failed=yes
16345fi
16346 else
16347    pkg_failed=untried
16348fi
16349
16350
16351
16352if test $pkg_failed = yes; then
16353   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16354$as_echo "no" >&6; }
16355
16356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16357        _pkg_short_errors_supported=yes
16358else
16359        _pkg_short_errors_supported=no
16360fi
16361        if test $_pkg_short_errors_supported = yes; then
16362	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16363        else
16364	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16365        fi
16366	# Put the nasty error message in config.log where it belongs
16367	echo "$SYSTEMD_PKG_ERRORS" >&5
16368
16369	have_systemd=no
16370elif test $pkg_failed = untried; then
16371     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16372$as_echo "no" >&6; }
16373	have_systemd=no
16374else
16375	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16376	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16378$as_echo "yes" >&6; }
16379	have_systemd=yes
16380fi
16381		if test "x$have_systemd" != "xyes"; then :
16382
16383
16384pkg_failed=no
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16386$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16387
16388if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16389    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16390 elif test -n "$PKG_CONFIG"; then
16391    if test -n "$PKG_CONFIG" && \
16392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16393  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16394  ac_status=$?
16395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16396  test $ac_status = 0; }; then
16397  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16398		      test "x$?" != "x0" && pkg_failed=yes
16399else
16400  pkg_failed=yes
16401fi
16402 else
16403    pkg_failed=untried
16404fi
16405if test -n "$SYSTEMD_DAEMON_LIBS"; then
16406    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16407 elif test -n "$PKG_CONFIG"; then
16408    if test -n "$PKG_CONFIG" && \
16409    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16410  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16411  ac_status=$?
16412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413  test $ac_status = 0; }; then
16414  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16415		      test "x$?" != "x0" && pkg_failed=yes
16416else
16417  pkg_failed=yes
16418fi
16419 else
16420    pkg_failed=untried
16421fi
16422
16423
16424
16425if test $pkg_failed = yes; then
16426   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427$as_echo "no" >&6; }
16428
16429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16430        _pkg_short_errors_supported=yes
16431else
16432        _pkg_short_errors_supported=no
16433fi
16434        if test $_pkg_short_errors_supported = yes; then
16435	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16436        else
16437	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16438        fi
16439	# Put the nasty error message in config.log where it belongs
16440	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16441
16442	have_systemd_daemon=no
16443elif test $pkg_failed = untried; then
16444     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445$as_echo "no" >&6; }
16446	have_systemd_daemon=no
16447else
16448	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16449	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16451$as_echo "yes" >&6; }
16452	have_systemd_daemon=yes
16453fi
16454		if test "x$have_systemd_daemon" = "xyes"; then :
16455  have_systemd=yes
16456fi
16457
16458fi
16459	case $enable_systemd:$have_systemd in #(
16460  yes:no) :
16461    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16462  *:yes) :
16463
16464$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16465
16466		LIBS="$LIBS $SYSTEMD_LIBS"
16467
16468	 ;; #(
16469  *) :
16470     ;;
16471esac
16472
16473
16474fi
16475 if test "x$have_systemd" = xyes; then
16476  USE_SYSTEMD_TRUE=
16477  USE_SYSTEMD_FALSE='#'
16478else
16479  USE_SYSTEMD_TRUE='#'
16480  USE_SYSTEMD_FALSE=
16481fi
16482
16483
16484# Include systemd.m4 - end
16485
16486# set memory allocation checking if requested
16487# Check whether --enable-alloc-checks was given.
16488if test "${enable_alloc_checks+set}" = set; then :
16489  enableval=$enable_alloc_checks;
16490fi
16491
16492# Check whether --enable-alloc-lite was given.
16493if test "${enable_alloc_lite+set}" = set; then :
16494  enableval=$enable_alloc_lite;
16495fi
16496
16497# Check whether --enable-alloc-nonregional was given.
16498if test "${enable_alloc_nonregional+set}" = set; then :
16499  enableval=$enable_alloc_nonregional;
16500fi
16501
16502if test x_$enable_alloc_nonregional = x_yes; then
16503
16504$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16505
16506fi
16507if test x_$enable_alloc_checks = x_yes; then
16508
16509$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16510
16511	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16512
16513	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16514
16515else
16516	if test x_$enable_alloc_lite = x_yes; then
16517
16518$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16519
16520	else
16521
16522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16523$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16524	if test "$cross_compiling" = yes; then :
16525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16526$as_echo "no (crosscompile)" >&6; }
16527	case " $LIBOBJS " in
16528  *" malloc.$ac_objext "* ) ;;
16529  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16530 ;;
16531esac
16532
16533
16534cat >>confdefs.h <<_ACEOF
16535#define malloc rpl_malloc_unbound
16536_ACEOF
16537
16538else
16539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540/* end confdefs.h.  */
16541#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16542#include <stdlib.h>
16543#else
16544char *malloc ();
16545#endif
16546
16547int
16548main ()
16549{
16550 if(malloc(0) != 0) return 1;
16551  ;
16552  return 0;
16553}
16554
16555_ACEOF
16556if ac_fn_c_try_run "$LINENO"; then :
16557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558$as_echo "no" >&6; }
16559	case " $LIBOBJS " in
16560  *" malloc.$ac_objext "* ) ;;
16561  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16562 ;;
16563esac
16564
16565
16566cat >>confdefs.h <<_ACEOF
16567#define malloc rpl_malloc_unbound
16568_ACEOF
16569
16570else
16571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16572$as_echo "yes" >&6; }
16573
16574$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16575
16576fi
16577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16578  conftest.$ac_objext conftest.beam conftest.$ac_ext
16579fi
16580
16581
16582	fi
16583fi
16584
16585# check windows threads (we use them, not pthreads, on windows).
16586if test "$on_mingw" = "yes"; then
16587# check windows threads
16588	for ac_header in windows.h
16589do :
16590  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16591"
16592if test "x$ac_cv_header_windows_h" = xyes; then :
16593  cat >>confdefs.h <<_ACEOF
16594#define HAVE_WINDOWS_H 1
16595_ACEOF
16596
16597fi
16598
16599done
16600
16601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16602$as_echo_n "checking for CreateThread... " >&6; }
16603	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h.  */
16605
16606#ifdef HAVE_WINDOWS_H
16607#include <windows.h>
16608#endif
16609
16610int
16611main ()
16612{
16613
16614	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16615
16616  ;
16617  return 0;
16618}
16619_ACEOF
16620if ac_fn_c_try_compile "$LINENO"; then :
16621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622$as_echo "yes" >&6; }
16623
16624$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16625
16626
16627else
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629$as_echo "no" >&6; }
16630
16631fi
16632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633
16634else
16635# not on mingw, check thread libraries.
16636
16637# check for thread library.
16638# check this first, so that the pthread lib does not get linked in via
16639# libssl or libpython, and thus distorts the tests, and we end up using
16640# the non-threadsafe C libraries.
16641
16642# Check whether --with-pthreads was given.
16643if test "${with_pthreads+set}" = set; then :
16644  withval=$with_pthreads;
16645else
16646   withval="yes"
16647fi
16648
16649ub_have_pthreads=no
16650if test x_$withval != x_no; then
16651
16652
16653ac_ext=c
16654ac_cpp='$CPP $CPPFLAGS'
16655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657ac_compiler_gnu=$ac_cv_c_compiler_gnu
16658
16659ax_pthread_ok=no
16660
16661# We used to check for pthread.h first, but this fails if pthread.h
16662# requires special compiler flags (e.g. on True64 or Sequent).
16663# It gets checked for in the link test anyway.
16664
16665# First of all, check if the user has set any of the PTHREAD_LIBS,
16666# etcetera environment variables, and if threads linking works using
16667# them:
16668if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16669        save_CFLAGS="$CFLAGS"
16670        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16671        save_LIBS="$LIBS"
16672        LIBS="$PTHREAD_LIBS $LIBS"
16673        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16674$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676/* end confdefs.h.  */
16677
16678/* Override any GCC internal prototype to avoid an error.
16679   Use char because int might match the return type of a GCC
16680   builtin and then its argument prototype would still apply.  */
16681#ifdef __cplusplus
16682extern "C"
16683#endif
16684char pthread_join ();
16685int
16686main ()
16687{
16688return pthread_join ();
16689  ;
16690  return 0;
16691}
16692_ACEOF
16693if ac_fn_c_try_link "$LINENO"; then :
16694  ax_pthread_ok=yes
16695fi
16696rm -f core conftest.err conftest.$ac_objext \
16697    conftest$ac_exeext conftest.$ac_ext
16698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16699$as_echo "$ax_pthread_ok" >&6; }
16700        if test x"$ax_pthread_ok" = xno; then
16701                PTHREAD_LIBS=""
16702                PTHREAD_CFLAGS=""
16703        fi
16704        LIBS="$save_LIBS"
16705        CFLAGS="$save_CFLAGS"
16706fi
16707
16708# We must check for the threads library under a number of different
16709# names; the ordering is very important because some systems
16710# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16711# libraries is broken (non-POSIX).
16712
16713# Create a list of thread flags to try.  Items starting with a "-" are
16714# C compiler flags, and other items are library names, except for "none"
16715# which indicates that we try without any flags at all, and "pthread-config"
16716# which is a program returning the flags for the Pth emulation library.
16717
16718ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16719
16720# The ordering *is* (sometimes) important.  Some notes on the
16721# individual items follow:
16722
16723# pthreads: AIX (must check this before -lpthread)
16724# none: in case threads are in libc; should be tried before -Kthread and
16725#       other compiler flags to prevent continual compiler warnings
16726# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16727# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16728# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16729# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16730# -pthreads: Solaris/gcc
16731# -mthreads: Mingw32/gcc, Lynx/gcc
16732# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16733#      doesn't hurt to check since this sometimes defines pthreads too;
16734#      also defines -D_REENTRANT)
16735#      ... -mt is also the pthreads flag for HP/aCC
16736# pthread: Linux, etcetera
16737# --thread-safe: KAI C++
16738# pthread-config: use pthread-config program (for GNU Pth library)
16739
16740case ${host_os} in
16741        solaris*)
16742
16743        # On Solaris (at least, for some versions), libc contains stubbed
16744        # (non-functional) versions of the pthreads routines, so link-based
16745        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16746        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16747        # a function called by this macro, so we could check for that, but
16748        # who knows whether they'll stub that too in a future libc.)  So,
16749        # we'll just look for -pthreads and -lpthread first:
16750
16751        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16752        ;;
16753
16754        darwin*)
16755        ax_pthread_flags="-pthread $ax_pthread_flags"
16756        ;;
16757esac
16758
16759# Clang doesn't consider unrecognized options an error unless we specify
16760# -Werror. We throw in some extra Clang-specific options to ensure that
16761# this doesn't happen for GCC, which also accepts -Werror.
16762
16763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16764$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16765save_CFLAGS="$CFLAGS"
16766ax_pthread_extra_flags="-Werror"
16767CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769/* end confdefs.h.  */
16770int foo(void);
16771int
16772main ()
16773{
16774foo()
16775  ;
16776  return 0;
16777}
16778_ACEOF
16779if ac_fn_c_try_compile "$LINENO"; then :
16780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16781$as_echo "yes" >&6; }
16782else
16783  ax_pthread_extra_flags=
16784                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785$as_echo "no" >&6; }
16786fi
16787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788CFLAGS="$save_CFLAGS"
16789
16790if test x"$ax_pthread_ok" = xno; then
16791for flag in $ax_pthread_flags; do
16792
16793        case $flag in
16794                none)
16795                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16796$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16797                ;;
16798
16799                -*)
16800                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16801$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16802                PTHREAD_CFLAGS="$flag"
16803                ;;
16804
16805                pthread-config)
16806                # Extract the first word of "pthread-config", so it can be a program name with args.
16807set dummy pthread-config; ac_word=$2
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16809$as_echo_n "checking for $ac_word... " >&6; }
16810if ${ac_cv_prog_ax_pthread_config+:} false; then :
16811  $as_echo_n "(cached) " >&6
16812else
16813  if test -n "$ax_pthread_config"; then
16814  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16815else
16816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16817for as_dir in $PATH
16818do
16819  IFS=$as_save_IFS
16820  test -z "$as_dir" && as_dir=.
16821    for ac_exec_ext in '' $ac_executable_extensions; do
16822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16823    ac_cv_prog_ax_pthread_config="yes"
16824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16825    break 2
16826  fi
16827done
16828  done
16829IFS=$as_save_IFS
16830
16831  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16832fi
16833fi
16834ax_pthread_config=$ac_cv_prog_ax_pthread_config
16835if test -n "$ax_pthread_config"; then
16836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16837$as_echo "$ax_pthread_config" >&6; }
16838else
16839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16840$as_echo "no" >&6; }
16841fi
16842
16843
16844                if test x"$ax_pthread_config" = xno; then continue; fi
16845                PTHREAD_CFLAGS="`pthread-config --cflags`"
16846                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16847                ;;
16848
16849                *)
16850                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16851$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16852                PTHREAD_LIBS="-l$flag"
16853                ;;
16854        esac
16855
16856        save_LIBS="$LIBS"
16857        save_CFLAGS="$CFLAGS"
16858        LIBS="$PTHREAD_LIBS $LIBS"
16859        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16860
16861        # Check for various functions.  We must include pthread.h,
16862        # since some functions may be macros.  (On the Sequent, we
16863        # need a special flag -Kthread to make this header compile.)
16864        # We check for pthread_join because it is in -lpthread on IRIX
16865        # while pthread_create is in libc.  We check for pthread_attr_init
16866        # due to DEC craziness with -lpthreads.  We check for
16867        # pthread_cleanup_push because it is one of the few pthread
16868        # functions on Solaris that doesn't have a non-functional libc stub.
16869        # We try pthread_create on general principles.
16870        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872#include <pthread.h>
16873                        static void routine(void *a) { *((int*)a) = 0; }
16874                        static void *start_routine(void *a) { return a; }
16875int
16876main ()
16877{
16878pthread_t th; pthread_attr_t attr;
16879                        pthread_create(&th, 0, start_routine, 0);
16880                        pthread_join(th, 0);
16881                        pthread_attr_init(&attr);
16882                        pthread_cleanup_push(routine, 0);
16883                        pthread_cleanup_pop(0) /* ; */
16884  ;
16885  return 0;
16886}
16887_ACEOF
16888if ac_fn_c_try_link "$LINENO"; then :
16889  ax_pthread_ok=yes
16890fi
16891rm -f core conftest.err conftest.$ac_objext \
16892    conftest$ac_exeext conftest.$ac_ext
16893
16894        LIBS="$save_LIBS"
16895        CFLAGS="$save_CFLAGS"
16896
16897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16898$as_echo "$ax_pthread_ok" >&6; }
16899        if test "x$ax_pthread_ok" = xyes; then
16900                break;
16901        fi
16902
16903        PTHREAD_LIBS=""
16904        PTHREAD_CFLAGS=""
16905done
16906fi
16907
16908# Various other checks:
16909if test "x$ax_pthread_ok" = xyes; then
16910        save_LIBS="$LIBS"
16911        LIBS="$PTHREAD_LIBS $LIBS"
16912        save_CFLAGS="$CFLAGS"
16913        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16914
16915        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16916        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16917$as_echo_n "checking for joinable pthread attribute... " >&6; }
16918        attr_name=unknown
16919        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16920            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921/* end confdefs.h.  */
16922#include <pthread.h>
16923int
16924main ()
16925{
16926int attr = $attr; return attr /* ; */
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"; then :
16932  attr_name=$attr; break
16933fi
16934rm -f core conftest.err conftest.$ac_objext \
16935    conftest$ac_exeext conftest.$ac_ext
16936        done
16937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16938$as_echo "$attr_name" >&6; }
16939        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16940
16941cat >>confdefs.h <<_ACEOF
16942#define PTHREAD_CREATE_JOINABLE $attr_name
16943_ACEOF
16944
16945        fi
16946
16947        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16948$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16949        flag=no
16950        case ${host_os} in
16951            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16952            osf* | hpux*) flag="-D_REENTRANT";;
16953            solaris*)
16954            if test "$GCC" = "yes"; then
16955                flag="-D_REENTRANT"
16956            else
16957                # TODO: What about Clang on Solaris?
16958                flag="-mt -D_REENTRANT"
16959            fi
16960            ;;
16961        esac
16962        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16963$as_echo "$flag" >&6; }
16964        if test "x$flag" != xno; then
16965            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16966        fi
16967
16968        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16969$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16970if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973
16974                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16975/* end confdefs.h.  */
16976#include <pthread.h>
16977int
16978main ()
16979{
16980int i = PTHREAD_PRIO_INHERIT;
16981  ;
16982  return 0;
16983}
16984_ACEOF
16985if ac_fn_c_try_link "$LINENO"; then :
16986  ax_cv_PTHREAD_PRIO_INHERIT=yes
16987else
16988  ax_cv_PTHREAD_PRIO_INHERIT=no
16989fi
16990rm -f core conftest.err conftest.$ac_objext \
16991    conftest$ac_exeext conftest.$ac_ext
16992
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16995$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16996        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16997
16998$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16999
17000fi
17001
17002        LIBS="$save_LIBS"
17003        CFLAGS="$save_CFLAGS"
17004
17005        # More AIX lossage: compile with *_r variant
17006        if test "x$GCC" != xyes; then
17007            case $host_os in
17008                aix*)
17009                case "x/$CC" in #(
17010  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17011    #handle absolute path differently from PATH based program lookup
17012                   case "x$CC" in #(
17013  x/*) :
17014    if as_fn_executable_p ${CC}_r; then :
17015  PTHREAD_CC="${CC}_r"
17016fi ;; #(
17017  *) :
17018    for ac_prog in ${CC}_r
17019do
17020  # Extract the first word of "$ac_prog", so it can be a program name with args.
17021set dummy $ac_prog; ac_word=$2
17022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17023$as_echo_n "checking for $ac_word... " >&6; }
17024if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17025  $as_echo_n "(cached) " >&6
17026else
17027  if test -n "$PTHREAD_CC"; then
17028  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17029else
17030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17031for as_dir in $PATH
17032do
17033  IFS=$as_save_IFS
17034  test -z "$as_dir" && as_dir=.
17035    for ac_exec_ext in '' $ac_executable_extensions; do
17036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17037    ac_cv_prog_PTHREAD_CC="$ac_prog"
17038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17039    break 2
17040  fi
17041done
17042  done
17043IFS=$as_save_IFS
17044
17045fi
17046fi
17047PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17048if test -n "$PTHREAD_CC"; then
17049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17050$as_echo "$PTHREAD_CC" >&6; }
17051else
17052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053$as_echo "no" >&6; }
17054fi
17055
17056
17057  test -n "$PTHREAD_CC" && break
17058done
17059test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17060 ;;
17061esac ;; #(
17062  *) :
17063     ;;
17064esac
17065                ;;
17066            esac
17067        fi
17068fi
17069
17070test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17071
17072
17073
17074
17075
17076# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17077if test x"$ax_pthread_ok" = xyes; then
17078
17079
17080$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17081
17082		if test -n "$PTHREAD_LIBS"; then
17083		  LIBS="$PTHREAD_LIBS $LIBS"
17084		fi
17085		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17086		CC="$PTHREAD_CC"
17087		ub_have_pthreads=yes
17088		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
17089"
17090if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
17091
17092cat >>confdefs.h <<_ACEOF
17093#define HAVE_PTHREAD_SPINLOCK_T 1
17094_ACEOF
17095
17096
17097fi
17098ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17099"
17100if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17101
17102cat >>confdefs.h <<_ACEOF
17103#define HAVE_PTHREAD_RWLOCK_T 1
17104_ACEOF
17105
17106
17107fi
17108
17109		# The cast to long int works around a bug in the HP C Compiler
17110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17112# This bug is HP SR number 8606223364.
17113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17114$as_echo_n "checking size of unsigned long... " >&6; }
17115if ${ac_cv_sizeof_unsigned_long+:} false; then :
17116  $as_echo_n "(cached) " >&6
17117else
17118  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
17119
17120else
17121  if test "$ac_cv_type_unsigned_long" = yes; then
17122     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17124as_fn_error 77 "cannot compute sizeof (unsigned long)
17125See \`config.log' for more details" "$LINENO" 5; }
17126   else
17127     ac_cv_sizeof_unsigned_long=0
17128   fi
17129fi
17130
17131fi
17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17133$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17134
17135
17136
17137cat >>confdefs.h <<_ACEOF
17138#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17139_ACEOF
17140
17141
17142		# The cast to long int works around a bug in the HP C Compiler
17143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17145# This bug is HP SR number 8606223364.
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
17147$as_echo_n "checking size of pthread_t... " >&6; }
17148if ${ac_cv_sizeof_pthread_t+:} false; then :
17149  $as_echo_n "(cached) " >&6
17150else
17151  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default"; then :
17152
17153else
17154  if test "$ac_cv_type_pthread_t" = yes; then
17155     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17157as_fn_error 77 "cannot compute sizeof (pthread_t)
17158See \`config.log' for more details" "$LINENO" 5; }
17159   else
17160     ac_cv_sizeof_pthread_t=0
17161   fi
17162fi
17163
17164fi
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
17166$as_echo "$ac_cv_sizeof_pthread_t" >&6; }
17167
17168
17169
17170cat >>confdefs.h <<_ACEOF
17171#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
17172_ACEOF
17173
17174
17175
17176		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17177		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17178$as_echo_n "checking if -pthread unused during linking... " >&6; }
17179		# catch clang warning 'argument unused during compilation'
17180		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181/* end confdefs.h.  */
17182$ac_includes_default
17183
17184int main(void) {return 0;}
17185
17186_ACEOF
17187		pthread_unused="yes"
17188		# first compile
17189		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17190		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17191		if test $? = 0; then
17192			# then link
17193			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17194			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17195			if test $? -ne 0; then
17196				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197$as_echo "yes" >&6; }
17198				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17199				PTHREAD_CFLAGS_ONLY="-pthread"
17200
17201			else
17202				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203$as_echo "no" >&6; }
17204			fi
17205		else
17206			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207$as_echo "no" >&6; }
17208		fi # endif cc successful
17209		rm -f conftest conftest.c conftest.o
17210		fi # endif -pthread in CFLAGS
17211
17212
17213        :
17214else
17215        ax_pthread_ok=no
17216
17217fi
17218ac_ext=c
17219ac_cpp='$CPP $CPPFLAGS'
17220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222ac_compiler_gnu=$ac_cv_c_compiler_gnu
17223
17224
17225fi
17226
17227# check solaris thread library
17228
17229# Check whether --with-solaris-threads was given.
17230if test "${with_solaris_threads+set}" = set; then :
17231  withval=$with_solaris_threads;
17232else
17233   withval="no"
17234fi
17235
17236ub_have_sol_threads=no
17237if test x_$withval != x_no; then
17238	if test x_$ub_have_pthreads != x_no; then
17239	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17240$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17241	else
17242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17243$as_echo_n "checking for library containing thr_create... " >&6; }
17244if ${ac_cv_search_thr_create+:} false; then :
17245  $as_echo_n "(cached) " >&6
17246else
17247  ac_func_search_save_LIBS=$LIBS
17248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249/* end confdefs.h.  */
17250
17251/* Override any GCC internal prototype to avoid an error.
17252   Use char because int might match the return type of a GCC
17253   builtin and then its argument prototype would still apply.  */
17254#ifdef __cplusplus
17255extern "C"
17256#endif
17257char thr_create ();
17258int
17259main ()
17260{
17261return thr_create ();
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266for ac_lib in '' thread; do
17267  if test -z "$ac_lib"; then
17268    ac_res="none required"
17269  else
17270    ac_res=-l$ac_lib
17271    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17272  fi
17273  if ac_fn_c_try_link "$LINENO"; then :
17274  ac_cv_search_thr_create=$ac_res
17275fi
17276rm -f core conftest.err conftest.$ac_objext \
17277    conftest$ac_exeext
17278  if ${ac_cv_search_thr_create+:} false; then :
17279  break
17280fi
17281done
17282if ${ac_cv_search_thr_create+:} false; then :
17283
17284else
17285  ac_cv_search_thr_create=no
17286fi
17287rm conftest.$ac_ext
17288LIBS=$ac_func_search_save_LIBS
17289fi
17290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17291$as_echo "$ac_cv_search_thr_create" >&6; }
17292ac_res=$ac_cv_search_thr_create
17293if test "$ac_res" != no; then :
17294  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17295
17296
17297$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17298
17299
17300
17301
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17303$as_echo_n "checking whether $CC supports -mt... " >&6; }
17304cache=`echo mt | sed 'y%.=/+-%___p_%'`
17305if eval \${cv_prog_cc_flag_$cache+:} false; then :
17306  $as_echo_n "(cached) " >&6
17307else
17308
17309echo 'void f(void){}' >conftest.c
17310if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17311eval "cv_prog_cc_flag_$cache=yes"
17312else
17313eval "cv_prog_cc_flag_$cache=no"
17314fi
17315rm -f conftest conftest.o conftest.c
17316
17317fi
17318
17319if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321$as_echo "yes" >&6; }
17322:
17323CFLAGS="$CFLAGS -mt"
17324else
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326$as_echo "no" >&6; }
17327:
17328CFLAGS="$CFLAGS -D_REENTRANT"
17329fi
17330
17331		ub_have_sol_threads=yes
17332
17333else
17334
17335		as_fn_error $? "no solaris threads found." "$LINENO" 5
17336
17337fi
17338
17339	fi
17340fi
17341
17342fi # end of non-mingw check of thread libraries
17343
17344# Check for SYSLOG_FACILITY
17345
17346# Check whether --with-syslog-facility was given.
17347if test "${with_syslog_facility+set}" = set; then :
17348  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
17349fi
17350
17351case "${UNBOUND_SYSLOG_FACILITY}" in
17352
17353  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17354
17355           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17356
17357esac
17358
17359cat >>confdefs.h <<_ACEOF
17360#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17361_ACEOF
17362
17363
17364# Check for dynamic library module
17365
17366# Check whether --with-dynlibmodule was given.
17367if test "${with_dynlibmodule+set}" = set; then :
17368  withval=$with_dynlibmodule;
17369else
17370   withval="no"
17371fi
17372
17373
17374if test x_$withval != x_no; then
17375
17376$as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17377
17378  WITH_DYNLIBMODULE=yes
17379
17380  DYNLIBMOD_OBJ="dynlibmod.lo"
17381
17382  DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17383
17384  if test $on_mingw = "no"; then
17385    # link with -ldl if not already there, for all executables because
17386    # dlopen call is in the dynlib module.  For unbound executable, also
17387    # export symbols.
17388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17389$as_echo_n "checking for library containing dlopen... " >&6; }
17390if ${ac_cv_search_dlopen+:} false; then :
17391  $as_echo_n "(cached) " >&6
17392else
17393  ac_func_search_save_LIBS=$LIBS
17394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395/* end confdefs.h.  */
17396
17397/* Override any GCC internal prototype to avoid an error.
17398   Use char because int might match the return type of a GCC
17399   builtin and then its argument prototype would still apply.  */
17400#ifdef __cplusplus
17401extern "C"
17402#endif
17403char dlopen ();
17404int
17405main ()
17406{
17407return dlopen ();
17408  ;
17409  return 0;
17410}
17411_ACEOF
17412for ac_lib in '' dl; do
17413  if test -z "$ac_lib"; then
17414    ac_res="none required"
17415  else
17416    ac_res=-l$ac_lib
17417    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17418  fi
17419  if ac_fn_c_try_link "$LINENO"; then :
17420  ac_cv_search_dlopen=$ac_res
17421fi
17422rm -f core conftest.err conftest.$ac_objext \
17423    conftest$ac_exeext
17424  if ${ac_cv_search_dlopen+:} false; then :
17425  break
17426fi
17427done
17428if ${ac_cv_search_dlopen+:} false; then :
17429
17430else
17431  ac_cv_search_dlopen=no
17432fi
17433rm conftest.$ac_ext
17434LIBS=$ac_func_search_save_LIBS
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17437$as_echo "$ac_cv_search_dlopen" >&6; }
17438ac_res=$ac_cv_search_dlopen
17439if test "$ac_res" != no; then :
17440  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17441
17442fi
17443
17444    DYNLIBMOD_EXTRALIBS="-export-dynamic"
17445  else
17446    DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17447  fi
17448
17449fi
17450
17451# Check for PyUnbound
17452
17453# Check whether --with-pyunbound was given.
17454if test "${with_pyunbound+set}" = set; then :
17455  withval=$with_pyunbound;
17456else
17457   withval="no"
17458fi
17459
17460
17461ub_test_python=no
17462ub_with_pyunbound=no
17463if test x_$withval != x_no; then
17464   ub_with_pyunbound=yes
17465   ub_test_python=yes
17466fi
17467
17468# Check for Python module
17469
17470# Check whether --with-pythonmodule was given.
17471if test "${with_pythonmodule+set}" = set; then :
17472  withval=$with_pythonmodule;
17473else
17474   withval="no"
17475fi
17476
17477
17478ub_with_pythonmod=no
17479if test x_$withval != x_no; then
17480   ub_with_pythonmod=yes
17481   ub_test_python=yes
17482fi
17483
17484# Check for Python & SWIG only on PyUnbound or PyModule
17485if test x_$ub_test_python != x_no; then
17486
17487   # Check for Python
17488   ub_have_python=no
17489   ac_save_LIBS="$LIBS"
17490        #
17491        # Allow the use of a (user set) custom python version
17492        #
17493
17494
17495        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17496set dummy python$PYTHON_VERSION; ac_word=$2
17497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17498$as_echo_n "checking for $ac_word... " >&6; }
17499if ${ac_cv_path_PYTHON+:} false; then :
17500  $as_echo_n "(cached) " >&6
17501else
17502  case $PYTHON in
17503  [\\/]* | ?:[\\/]*)
17504  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17505  ;;
17506  *)
17507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508for as_dir in $PATH
17509do
17510  IFS=$as_save_IFS
17511  test -z "$as_dir" && as_dir=.
17512    for ac_exec_ext in '' $ac_executable_extensions; do
17513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17516    break 2
17517  fi
17518done
17519  done
17520IFS=$as_save_IFS
17521
17522  ;;
17523esac
17524fi
17525PYTHON=$ac_cv_path_PYTHON
17526if test -n "$PYTHON"; then
17527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17528$as_echo "$PYTHON" >&6; }
17529else
17530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531$as_echo "no" >&6; }
17532fi
17533
17534
17535        if test -z "$PYTHON"; then
17536           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17537           PYTHON_VERSION=""
17538        fi
17539
17540        if test -z "$PYTHON_VERSION"; then
17541		PYTHON_VERSION=`$PYTHON -c "import sys; \
17542			print(sys.version.split()[0])"`
17543	fi
17544
17545	# Check if you have sysconfig
17546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python module" >&5
17547$as_echo_n "checking for the sysconfig Python module... " >&6; }
17548        if ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`; then
17549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550$as_echo "yes" >&6; }
17551		sysconfig_module="sysconfig"
17552		# if yes, use sysconfig, because distutils is deprecated.
17553	else
17554                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555$as_echo "no" >&6; }
17556		# if no, try to use distutils
17557
17558		#
17559		# Check if you have distutils, else fail
17560		#
17561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17562$as_echo_n "checking for the distutils Python package... " >&6; }
17563		if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17564			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17565$as_echo "yes" >&6; }
17566		else
17567			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568$as_echo "no" >&6; }
17569			as_fn_error $? "cannot import Python module \"distutils\".
17570	Please check your Python installation. The error was:
17571	$ac_distutils_result" "$LINENO" 5
17572			PYTHON_VERSION=""
17573		fi
17574
17575		sysconfig_module="distutils.sysconfig"
17576	fi
17577
17578        #
17579        # Check for Python include path
17580        #
17581        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17582$as_echo_n "checking for Python include path... " >&6; }
17583        if test -z "$PYTHON_CPPFLAGS"; then
17584		if test "$sysconfig_module" = "sysconfig"; then
17585			python_path=`$PYTHON -c 'import sysconfig; \
17586				print(sysconfig.get_path("include"));'`
17587		else
17588			python_path=`$PYTHON -c "import distutils.sysconfig; \
17589				print(distutils.sysconfig.get_python_inc());"`
17590		fi
17591                if test -n "${python_path}"; then
17592                        python_path="-I$python_path"
17593                fi
17594                PYTHON_CPPFLAGS=$python_path
17595        fi
17596        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17597$as_echo "$PYTHON_CPPFLAGS" >&6; }
17598
17599
17600        #
17601        # Check for Python library path
17602        #
17603        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17604$as_echo_n "checking for Python library path... " >&6; }
17605        if test -z "$PYTHON_LDFLAGS"; then
17606                PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17607                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17608        fi
17609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17610$as_echo "$PYTHON_LDFLAGS" >&6; }
17611
17612
17613        if test -z "$PYTHON_LIBDIR"; then
17614                PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17615                        print(get_config_var('LIBDIR'));"`
17616        fi
17617
17618        #
17619        # Check for site packages
17620        #
17621        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17622$as_echo_n "checking for Python site-packages path... " >&6; }
17623        if test -z "$PYTHON_SITE_PKG"; then
17624		if test "$sysconfig_module" = "sysconfig"; then
17625			PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17626				print(sysconfig.get_path("platlib"));'`
17627		else
17628			PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17629				print(distutils.sysconfig.get_python_lib(1,0));"`
17630		fi
17631        fi
17632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17633$as_echo "$PYTHON_SITE_PKG" >&6; }
17634
17635
17636        #
17637        # final check to see if everything compiles alright
17638        #
17639        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17640$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17641        ac_ext=c
17642ac_cpp='$CPP $CPPFLAGS'
17643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645ac_compiler_gnu=$ac_cv_c_compiler_gnu
17646
17647        # save current global flags
17648        ac_save_LIBS="$LIBS"
17649        ac_save_CPPFLAGS="$CPPFLAGS"
17650
17651        LIBS="$LIBS $PYTHON_LDFLAGS"
17652        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17653        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654/* end confdefs.h.  */
17655
17656                #include <Python.h>
17657
17658int
17659main ()
17660{
17661
17662                Py_Initialize();
17663
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668if ac_fn_c_try_link "$LINENO"; then :
17669  pythonexists=yes
17670else
17671  pythonexists=no
17672fi
17673rm -f core conftest.err conftest.$ac_objext \
17674    conftest$ac_exeext conftest.$ac_ext
17675
17676        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17677$as_echo "$pythonexists" >&6; }
17678
17679        if test ! "$pythonexists" = "yes"; then
17680           as_fn_error $? "
17681  Could not link test program to Python. Maybe the main Python library has been
17682  installed in some non-standard library path. If so, pass it to configure,
17683  via the LDFLAGS environment variable.
17684  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17685  ============================================================================
17686   ERROR!
17687   You probably have to install the development version of the Python package
17688   for your distribution.  The exact name of this package varies among them.
17689  ============================================================================
17690           " "$LINENO" 5
17691          PYTHON_VERSION=""
17692        fi
17693        ac_ext=c
17694ac_cpp='$CPP $CPPFLAGS'
17695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698
17699        # turn back to default flags
17700        CPPFLAGS="$ac_save_CPPFLAGS"
17701        LIBS="$ac_save_LIBS"
17702
17703        #
17704        # all done!
17705        #
17706
17707   if test ! -z "$PYTHON_VERSION"; then
17708	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17709		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17710	fi
17711
17712      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17713
17714      # Have Python
17715
17716$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17717
17718      if test x_$ub_with_pythonmod != x_no; then
17719        if test -n "$LIBS"; then
17720          LIBS="$PYTHON_LDFLAGS $LIBS"
17721        else
17722          LIBS="$PYTHON_LDFLAGS"
17723        fi
17724      fi
17725      PYTHON_LIBS="$PYTHON_LDFLAGS"
17726
17727      if test -n "$CPPFLAGS"; then
17728        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17729      else
17730        CPPFLAGS="$PYTHON_CPPFLAGS"
17731      fi
17732      if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17733
17734	if test "x$enable_rpath" = xyes; then
17735		if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17736			RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17737		fi
17738	fi
17739
17740      fi
17741      ub_have_python=yes
17742      if test -n "$PKG_CONFIG" && \
17743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17744  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17745  ac_status=$?
17746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17747  test $ac_status = 0; }; then
17748  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17749else
17750  PC_PY_DEPENDENCY="python"
17751fi
17752
17753
17754      # Check for SWIG
17755      ub_have_swig=no
17756      # Check whether --enable-swig-version-check was given.
17757if test "${enable_swig_version_check+set}" = set; then :
17758  enableval=$enable_swig_version_check;
17759fi
17760
17761      if test "$enable_swig_version_check" = "yes"; then
17762
17763        # Extract the first word of "swig", so it can be a program name with args.
17764set dummy swig; ac_word=$2
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766$as_echo_n "checking for $ac_word... " >&6; }
17767if ${ac_cv_path_SWIG+:} false; then :
17768  $as_echo_n "(cached) " >&6
17769else
17770  case $SWIG in
17771  [\\/]* | ?:[\\/]*)
17772  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17773  ;;
17774  *)
17775  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776for as_dir in $PATH
17777do
17778  IFS=$as_save_IFS
17779  test -z "$as_dir" && as_dir=.
17780    for ac_exec_ext in '' $ac_executable_extensions; do
17781  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17782    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17784    break 2
17785  fi
17786done
17787  done
17788IFS=$as_save_IFS
17789
17790  ;;
17791esac
17792fi
17793SWIG=$ac_cv_path_SWIG
17794if test -n "$SWIG"; then
17795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17796$as_echo "$SWIG" >&6; }
17797else
17798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800fi
17801
17802
17803        if test -z "$SWIG" ; then
17804                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17805$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17806                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17807        elif test -n "2.0.1" ; then
17808                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17809$as_echo_n "checking for SWIG version... " >&6; }
17810                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'`
17811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17812$as_echo "$swig_version" >&6; }
17813                if test -n "$swig_version" ; then
17814                        # Calculate the required version number components
17815                        required=2.0.1
17816                        required_major=`echo $required | sed 's/[^0-9].*//'`
17817                        if test -z "$required_major" ; then
17818                                required_major=0
17819                        fi
17820                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17821                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17822                        if test -z "$required_minor" ; then
17823                                required_minor=0
17824                        fi
17825                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17826                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17827                        if test -z "$required_patch" ; then
17828                                required_patch=0
17829                        fi
17830                        # Calculate the available version number components
17831                        available=$swig_version
17832                        available_major=`echo $available | sed 's/[^0-9].*//'`
17833                        if test -z "$available_major" ; then
17834                                available_major=0
17835                        fi
17836                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17837                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17838                        if test -z "$available_minor" ; then
17839                                available_minor=0
17840                        fi
17841                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17842                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17843                        if test -z "$available_patch" ; then
17844                                available_patch=0
17845                        fi
17846			badversion=0
17847			if test $available_major -lt $required_major ; then
17848				badversion=1
17849			fi
17850                        if test $available_major -eq $required_major \
17851                                -a $available_minor -lt $required_minor ; then
17852				badversion=1
17853			fi
17854                        if test $available_major -eq $required_major \
17855                                -a $available_minor -eq $required_minor \
17856                                -a $available_patch -lt $required_patch ; then
17857				badversion=1
17858			fi
17859			if test $badversion -eq 1 ; then
17860                                { $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
17861$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;}
17862                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17863                        else
17864                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17865$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17866                                SWIG_LIB=`$SWIG -swiglib`
17867                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17868$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17869                        fi
17870                else
17871                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17872$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17873                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17874                fi
17875        fi
17876
17877
17878      else
17879
17880        # Extract the first word of "swig", so it can be a program name with args.
17881set dummy swig; ac_word=$2
17882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17883$as_echo_n "checking for $ac_word... " >&6; }
17884if ${ac_cv_path_SWIG+:} false; then :
17885  $as_echo_n "(cached) " >&6
17886else
17887  case $SWIG in
17888  [\\/]* | ?:[\\/]*)
17889  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17890  ;;
17891  *)
17892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17893for as_dir in $PATH
17894do
17895  IFS=$as_save_IFS
17896  test -z "$as_dir" && as_dir=.
17897    for ac_exec_ext in '' $ac_executable_extensions; do
17898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17899    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17901    break 2
17902  fi
17903done
17904  done
17905IFS=$as_save_IFS
17906
17907  ;;
17908esac
17909fi
17910SWIG=$ac_cv_path_SWIG
17911if test -n "$SWIG"; then
17912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17913$as_echo "$SWIG" >&6; }
17914else
17915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17916$as_echo "no" >&6; }
17917fi
17918
17919
17920        if test -z "$SWIG" ; then
17921                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17922$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17923                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17924        elif test -n "" ; then
17925                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17926$as_echo_n "checking for SWIG version... " >&6; }
17927                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'`
17928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17929$as_echo "$swig_version" >&6; }
17930                if test -n "$swig_version" ; then
17931                        # Calculate the required version number components
17932                        required=
17933                        required_major=`echo $required | sed 's/[^0-9].*//'`
17934                        if test -z "$required_major" ; then
17935                                required_major=0
17936                        fi
17937                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17938                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17939                        if test -z "$required_minor" ; then
17940                                required_minor=0
17941                        fi
17942                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17943                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17944                        if test -z "$required_patch" ; then
17945                                required_patch=0
17946                        fi
17947                        # Calculate the available version number components
17948                        available=$swig_version
17949                        available_major=`echo $available | sed 's/[^0-9].*//'`
17950                        if test -z "$available_major" ; then
17951                                available_major=0
17952                        fi
17953                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17954                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17955                        if test -z "$available_minor" ; then
17956                                available_minor=0
17957                        fi
17958                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17959                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17960                        if test -z "$available_patch" ; then
17961                                available_patch=0
17962                        fi
17963			badversion=0
17964			if test $available_major -lt $required_major ; then
17965				badversion=1
17966			fi
17967                        if test $available_major -eq $required_major \
17968                                -a $available_minor -lt $required_minor ; then
17969				badversion=1
17970			fi
17971                        if test $available_major -eq $required_major \
17972                                -a $available_minor -eq $required_minor \
17973                                -a $available_patch -lt $required_patch ; then
17974				badversion=1
17975			fi
17976			if test $badversion -eq 1 ; then
17977                                { $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
17978$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17979                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17980                        else
17981                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17982$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17983                                SWIG_LIB=`$SWIG -swiglib`
17984                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17985$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17986                        fi
17987                else
17988                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17989$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17990                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17991                fi
17992        fi
17993
17994
17995      fi
17996      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17997$as_echo_n "checking SWIG... " >&6; }
17998      if test ! -x "$SWIG"; then
17999         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
18000      else
18001
18002$as_echo "#define HAVE_SWIG 1" >>confdefs.h
18003
18004         swig="$SWIG"
18005
18006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
18007$as_echo "present" >&6; }
18008
18009         # If have Python & SWIG
18010         # Declare PythonMod
18011         if test x_$ub_with_pythonmod != x_no; then
18012
18013$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
18014
18015            WITH_PYTHONMODULE=yes
18016
18017	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
18018
18019	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
18020
18021	    PYTHONMOD_INSTALL=pythonmod-install
18022
18023	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
18024
18025         fi
18026
18027         # Declare PyUnbound
18028         if test x_$ub_with_pyunbound != x_no; then
18029
18030$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
18031
18032            WITH_PYUNBOUND=yes
18033
18034	    PYUNBOUND_OBJ="libunbound_wrap.lo"
18035
18036	    PYUNBOUND_TARGET="_unbound.la"
18037
18038	    PYUNBOUND_INSTALL=pyunbound-install
18039
18040	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
18041
18042         fi
18043      fi
18044   else
18045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
18046$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
18047      ub_with_pyunbound=no
18048      ub_with_pythonmod=no
18049   fi
18050fi
18051
18052if test "`uname`" = "NetBSD"; then
18053	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
18054
18055fi
18056
18057if test "`uname`" = "Linux"; then
18058	# splint cannot parse modern c99 header files
18059	GCC_DOCKER_LINTFLAGS='-syntax'
18060
18061fi
18062CONFIG_DATE=`date +%Y%m%d`
18063
18064
18065# Checks for libraries.
18066
18067# libnss
18068USE_NSS="no"
18069
18070# Check whether --with-nss was given.
18071if test "${with_nss+set}" = set; then :
18072  withval=$with_nss;
18073	USE_NSS="yes"
18074
18075$as_echo "#define HAVE_NSS 1" >>confdefs.h
18076
18077	if test "$withval" != "" -a "$withval" != "yes"; then
18078		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
18079		LDFLAGS="$LDFLAGS -L$withval/lib"
18080
18081	if test "x$enable_rpath" = xyes; then
18082		if echo "$withval/lib" | grep "^/" >/dev/null; then
18083			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18084		fi
18085	fi
18086
18087		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
18088	else
18089		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
18090		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
18091	fi
18092        LIBS="$LIBS -lnss3 -lnspr4"
18093	SSLLIB=""
18094	PC_CRYPTO_DEPENDENCY="nss nspr"
18095
18096
18097
18098fi
18099
18100
18101# libnettle
18102USE_NETTLE="no"
18103
18104# Check whether --with-nettle was given.
18105if test "${with_nettle+set}" = set; then :
18106  withval=$with_nettle;
18107	USE_NETTLE="yes"
18108
18109$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
18110
18111	for ac_header in nettle/dsa-compat.h
18112do :
18113  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
18114"
18115if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
18116  cat >>confdefs.h <<_ACEOF
18117#define HAVE_NETTLE_DSA_COMPAT_H 1
18118_ACEOF
18119
18120fi
18121
18122done
18123
18124	if test "$withval" != "" -a "$withval" != "yes"; then
18125		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
18126		LDFLAGS="$LDFLAGS -L$withval/lib"
18127
18128	if test "x$enable_rpath" = xyes; then
18129		if echo "$withval/lib" | grep "^/" >/dev/null; then
18130			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18131		fi
18132	fi
18133
18134	else
18135		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
18136	fi
18137        LIBS="$LIBS -lhogweed -lnettle -lgmp"
18138	SSLLIB=""
18139	PC_CRYPTO_DEPENDENCY="hogweed nettle"
18140
18141
18142
18143fi
18144
18145
18146# openssl
18147if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18148
18149
18150# Check whether --with-ssl was given.
18151if test "${with_ssl+set}" = set; then :
18152  withval=$with_ssl;
18153
18154else
18155
18156            withval="yes"
18157
18158fi
18159
18160    if test x_$withval = x_no; then
18161	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
18162    fi
18163
18164    withval=$withval
18165    if test x_$withval != x_no; then
18166        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18167$as_echo_n "checking for SSL... " >&6; }
18168	if test -n "$withval"; then
18169										if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
18170			ssldir="$withval"
18171			found_ssl="yes"
18172			withval=""
18173			ssldir_include="$ssldir"
18174						ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
18175			if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18176				: # found here
18177			else
18178				ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
18179				if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18180					: # found here
18181				else
18182					as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18183				fi
18184			fi
18185		fi
18186	fi
18187        if test x_$withval = x_ -o x_$withval = x_yes; then
18188            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18189        fi
18190        for dir in $withval; do
18191            ssldir="$dir"
18192            if test -f "$dir/include/openssl/ssl.h"; then
18193                found_ssl="yes"
18194		ssldir_include="$ssldir/include"
18195		if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18196			ssldir_lib="$ssldir/lib64"
18197		else
18198			ssldir_lib="$ssldir/lib"
18199		fi
18200                break;
18201            fi
18202        done
18203        if test x_$found_ssl != x_yes; then
18204            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18205        else
18206            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18207$as_echo "found in $ssldir" >&6; }
18208
18209cat >>confdefs.h <<_ACEOF
18210#define HAVE_SSL /**/
18211_ACEOF
18212
18213            HAVE_SSL=yes
18214	                if test "$ssldir" != "/usr"; then
18215		    CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18216		    LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18217		    LDFLAGS="$LDFLAGS -L$ssldir_lib"
18218		    LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18219
18220	if test "x$enable_rpath" = xyes; then
18221		if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18222			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18223		fi
18224	fi
18225
18226	    fi
18227
18228            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18229$as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18230            LIBS="$LIBS -lcrypto"
18231            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18232            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233/* end confdefs.h.  */
18234
18235int
18236main ()
18237{
18238
18239                int EVP_sha256(void);
18240                (void)EVP_sha256();
18241
18242  ;
18243  return 0;
18244}
18245_ACEOF
18246if ac_fn_c_try_link "$LINENO"; then :
18247
18248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18249$as_echo "yes" >&6; }
18250
18251$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18252
18253
18254else
18255
18256                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18257$as_echo "no" >&6; }
18258                # check if -lwsock32 or -lgdi32 are needed.
18259                BAKLIBS="$LIBS"
18260                BAKSSLLIBS="$LIBSSL_LIBS"
18261		LIBS="$LIBS -lgdi32 -lws2_32"
18262		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18263                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18264$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18265                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266/* end confdefs.h.  */
18267
18268int
18269main ()
18270{
18271
18272                    int EVP_sha256(void);
18273                    (void)EVP_sha256();
18274
18275  ;
18276  return 0;
18277}
18278_ACEOF
18279if ac_fn_c_try_link "$LINENO"; then :
18280
18281
18282$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18283
18284                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18285$as_echo "yes" >&6; }
18286
18287else
18288
18289                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290$as_echo "no" >&6; }
18291                    LIBS="$BAKLIBS"
18292                    LIBSSL_LIBS="$BAKSSLLIBS"
18293                    LIBS="$LIBS -ldl"
18294                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18295                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18296$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18297                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298/* end confdefs.h.  */
18299
18300int
18301main ()
18302{
18303
18304                        int EVP_sha256(void);
18305                        (void)EVP_sha256();
18306
18307  ;
18308  return 0;
18309}
18310_ACEOF
18311if ac_fn_c_try_link "$LINENO"; then :
18312
18313
18314$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18315
18316                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18317$as_echo "yes" >&6; }
18318
18319else
18320
18321                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322$as_echo "no" >&6; }
18323                        LIBS="$BAKLIBS"
18324                        LIBSSL_LIBS="$BAKSSLLIBS"
18325                        LIBS="$LIBS -ldl -pthread"
18326                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18327                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18328$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18329                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331
18332int
18333main ()
18334{
18335
18336                            int EVP_sha256(void);
18337                            (void)EVP_sha256();
18338
18339  ;
18340  return 0;
18341}
18342_ACEOF
18343if ac_fn_c_try_link "$LINENO"; then :
18344
18345
18346$as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18347
18348                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349$as_echo "yes" >&6; }
18350
18351else
18352
18353                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354$as_echo "no" >&6; }
18355                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18356
18357fi
18358rm -f core conftest.err conftest.$ac_objext \
18359    conftest$ac_exeext conftest.$ac_ext
18360
18361fi
18362rm -f core conftest.err conftest.$ac_objext \
18363    conftest$ac_exeext conftest.$ac_ext
18364
18365fi
18366rm -f core conftest.err conftest.$ac_objext \
18367    conftest$ac_exeext conftest.$ac_ext
18368
18369fi
18370rm -f core conftest.err conftest.$ac_objext \
18371    conftest$ac_exeext conftest.$ac_ext
18372        fi
18373
18374
18375    fi
18376for ac_header in openssl/ssl.h
18377do :
18378  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18379"
18380if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18381  cat >>confdefs.h <<_ACEOF
18382#define HAVE_OPENSSL_SSL_H 1
18383_ACEOF
18384
18385fi
18386
18387done
18388
18389for ac_header in openssl/err.h
18390do :
18391  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18392"
18393if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18394  cat >>confdefs.h <<_ACEOF
18395#define HAVE_OPENSSL_ERR_H 1
18396_ACEOF
18397
18398fi
18399
18400done
18401
18402for ac_header in openssl/rand.h
18403do :
18404  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18405"
18406if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18407  cat >>confdefs.h <<_ACEOF
18408#define HAVE_OPENSSL_RAND_H 1
18409_ACEOF
18410
18411fi
18412
18413done
18414
18415
18416
18417
18418# check if libssl needs libdl
18419BAKLIBS="$LIBS"
18420LIBS="-lssl $LIBS"
18421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18422$as_echo_n "checking if libssl needs libdl... " >&6; }
18423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424/* end confdefs.h.  */
18425
18426/* Override any GCC internal prototype to avoid an error.
18427   Use char because int might match the return type of a GCC
18428   builtin and then its argument prototype would still apply.  */
18429#ifdef __cplusplus
18430extern "C"
18431#endif
18432char SSL_CTX_new ();
18433int
18434main ()
18435{
18436return SSL_CTX_new ();
18437  ;
18438  return 0;
18439}
18440_ACEOF
18441if ac_fn_c_try_link "$LINENO"; then :
18442
18443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18444$as_echo "no" >&6; }
18445	LIBS="$BAKLIBS"
18446
18447else
18448
18449	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18450$as_echo "yes" >&6; }
18451	LIBS="$BAKLIBS"
18452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18453$as_echo_n "checking for library containing dlopen... " >&6; }
18454if ${ac_cv_search_dlopen+:} false; then :
18455  $as_echo_n "(cached) " >&6
18456else
18457  ac_func_search_save_LIBS=$LIBS
18458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459/* end confdefs.h.  */
18460
18461/* Override any GCC internal prototype to avoid an error.
18462   Use char because int might match the return type of a GCC
18463   builtin and then its argument prototype would still apply.  */
18464#ifdef __cplusplus
18465extern "C"
18466#endif
18467char dlopen ();
18468int
18469main ()
18470{
18471return dlopen ();
18472  ;
18473  return 0;
18474}
18475_ACEOF
18476for ac_lib in '' dl; do
18477  if test -z "$ac_lib"; then
18478    ac_res="none required"
18479  else
18480    ac_res=-l$ac_lib
18481    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18482  fi
18483  if ac_fn_c_try_link "$LINENO"; then :
18484  ac_cv_search_dlopen=$ac_res
18485fi
18486rm -f core conftest.err conftest.$ac_objext \
18487    conftest$ac_exeext
18488  if ${ac_cv_search_dlopen+:} false; then :
18489  break
18490fi
18491done
18492if ${ac_cv_search_dlopen+:} false; then :
18493
18494else
18495  ac_cv_search_dlopen=no
18496fi
18497rm conftest.$ac_ext
18498LIBS=$ac_func_search_save_LIBS
18499fi
18500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18501$as_echo "$ac_cv_search_dlopen" >&6; }
18502ac_res=$ac_cv_search_dlopen
18503if test "$ac_res" != no; then :
18504  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18505
18506fi
18507
18508
18509fi
18510rm -f core conftest.err conftest.$ac_objext \
18511    conftest$ac_exeext conftest.$ac_ext
18512SSLLIB="-lssl"
18513
18514PC_CRYPTO_DEPENDENCY=""
18515
18516
18517# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18518BAKLIBS="$LIBS"
18519LIBS="-lssl $LIBS"
18520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18521$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523/* end confdefs.h.  */
18524
18525int
18526main ()
18527{
18528
18529	int EVP_sha256(void);
18530	(void)EVP_sha256();
18531
18532  ;
18533  return 0;
18534}
18535_ACEOF
18536if ac_fn_c_try_link "$LINENO"; then :
18537
18538	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18539$as_echo "no" >&6; }
18540	LIBS="$BAKLIBS"
18541
18542else
18543
18544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18545$as_echo "yes" >&6; }
18546	LIBS="$BAKLIBS"
18547	LIBS="$LIBS -lcrypt32"
18548
18549fi
18550rm -f core conftest.err conftest.$ac_objext \
18551    conftest$ac_exeext conftest.$ac_ext
18552
18553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18554$as_echo_n "checking for LibreSSL... " >&6; }
18555if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18556	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18557$as_echo "yes" >&6; }
18558
18559$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18560
18561	# libressl provides these compat functions, but they may also be
18562	# declared by the OS in libc.  See if they have been declared.
18563	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18564if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18565  ac_have_decl=1
18566else
18567  ac_have_decl=0
18568fi
18569
18570cat >>confdefs.h <<_ACEOF
18571#define HAVE_DECL_STRLCPY $ac_have_decl
18572_ACEOF
18573ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18574if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18575  ac_have_decl=1
18576else
18577  ac_have_decl=0
18578fi
18579
18580cat >>confdefs.h <<_ACEOF
18581#define HAVE_DECL_STRLCAT $ac_have_decl
18582_ACEOF
18583ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18584if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18585  ac_have_decl=1
18586else
18587  ac_have_decl=0
18588fi
18589
18590cat >>confdefs.h <<_ACEOF
18591#define HAVE_DECL_ARC4RANDOM $ac_have_decl
18592_ACEOF
18593ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18594if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18595  ac_have_decl=1
18596else
18597  ac_have_decl=0
18598fi
18599
18600cat >>confdefs.h <<_ACEOF
18601#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18602_ACEOF
18603
18604else
18605	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606$as_echo "no" >&6; }
18607fi
18608for 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
18609do :
18610  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18611ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18612"
18613if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18614  cat >>confdefs.h <<_ACEOF
18615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18616_ACEOF
18617
18618fi
18619
18620done
18621
18622for 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
18623do :
18624  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18625ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18626if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18627  cat >>confdefs.h <<_ACEOF
18628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629_ACEOF
18630
18631fi
18632done
18633
18634
18635# these check_funcs need -lssl
18636BAKLIBS="$LIBS"
18637LIBS="-lssl $LIBS"
18638for 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
18639do :
18640  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18641ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18642if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18643  cat >>confdefs.h <<_ACEOF
18644#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18645_ACEOF
18646
18647fi
18648done
18649
18650LIBS="$BAKLIBS"
18651
18652ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18653$ac_includes_default
18654#ifdef HAVE_OPENSSL_ERR_H
18655#include <openssl/err.h>
18656#endif
18657
18658#ifdef HAVE_OPENSSL_RAND_H
18659#include <openssl/rand.h>
18660#endif
18661
18662#ifdef HAVE_OPENSSL_CONF_H
18663#include <openssl/conf.h>
18664#endif
18665
18666#ifdef HAVE_OPENSSL_ENGINE_H
18667#include <openssl/engine.h>
18668#endif
18669#include <openssl/ssl.h>
18670#include <openssl/evp.h>
18671
18672"
18673if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18674  ac_have_decl=1
18675else
18676  ac_have_decl=0
18677fi
18678
18679cat >>confdefs.h <<_ACEOF
18680#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18681_ACEOF
18682ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18683$ac_includes_default
18684#ifdef HAVE_OPENSSL_ERR_H
18685#include <openssl/err.h>
18686#endif
18687
18688#ifdef HAVE_OPENSSL_RAND_H
18689#include <openssl/rand.h>
18690#endif
18691
18692#ifdef HAVE_OPENSSL_CONF_H
18693#include <openssl/conf.h>
18694#endif
18695
18696#ifdef HAVE_OPENSSL_ENGINE_H
18697#include <openssl/engine.h>
18698#endif
18699#include <openssl/ssl.h>
18700#include <openssl/evp.h>
18701
18702"
18703if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18704  ac_have_decl=1
18705else
18706  ac_have_decl=0
18707fi
18708
18709cat >>confdefs.h <<_ACEOF
18710#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18711_ACEOF
18712ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18713$ac_includes_default
18714#ifdef HAVE_OPENSSL_ERR_H
18715#include <openssl/err.h>
18716#endif
18717
18718#ifdef HAVE_OPENSSL_RAND_H
18719#include <openssl/rand.h>
18720#endif
18721
18722#ifdef HAVE_OPENSSL_CONF_H
18723#include <openssl/conf.h>
18724#endif
18725
18726#ifdef HAVE_OPENSSL_ENGINE_H
18727#include <openssl/engine.h>
18728#endif
18729#include <openssl/ssl.h>
18730#include <openssl/evp.h>
18731
18732"
18733if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18734  ac_have_decl=1
18735else
18736  ac_have_decl=0
18737fi
18738
18739cat >>confdefs.h <<_ACEOF
18740#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18741_ACEOF
18742
18743
18744if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18745# check function return type.
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18747$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749/* end confdefs.h.  */
18750
18751#ifdef HAVE_OPENSSL_ERR_H
18752#include <openssl/err.h>
18753#endif
18754
18755#ifdef HAVE_OPENSSL_RAND_H
18756#include <openssl/rand.h>
18757#endif
18758
18759#ifdef HAVE_OPENSSL_CONF_H
18760#include <openssl/conf.h>
18761#endif
18762
18763#ifdef HAVE_OPENSSL_ENGINE_H
18764#include <openssl/engine.h>
18765#endif
18766#include <openssl/ssl.h>
18767#include <openssl/evp.h>
18768
18769int
18770main ()
18771{
18772
18773	HMAC_CTX* hmac_ctx = NULL;
18774	void* hmac_key = NULL;
18775	const EVP_MD* digest = NULL;
18776	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18777	(void)x;
18778
18779  ;
18780  return 0;
18781}
18782_ACEOF
18783if ac_fn_c_try_compile "$LINENO"; then :
18784
18785	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18786$as_echo "int" >&6; }
18787
18788else
18789
18790	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18791$as_echo "void" >&6; }
18792
18793$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18794
18795
18796fi
18797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18798fi
18799
18800fi
18801
18802
18803# libbsd
18804
18805# Check whether --with-libbsd was given.
18806if test "${with_libbsd+set}" = set; then :
18807  withval=$with_libbsd;
18808	for ac_header in bsd/string.h bsd/stdlib.h
18809do :
18810  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18811ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18812"
18813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18814  cat >>confdefs.h <<_ACEOF
18815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18816_ACEOF
18817
18818fi
18819
18820done
18821
18822	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18823		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18824			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18826$as_echo_n "checking for library containing $func... " >&6; }
18827if eval \${$as_ac_Search+:} false; then :
18828  $as_echo_n "(cached) " >&6
18829else
18830  ac_func_search_save_LIBS=$LIBS
18831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832/* end confdefs.h.  */
18833
18834/* Override any GCC internal prototype to avoid an error.
18835   Use char because int might match the return type of a GCC
18836   builtin and then its argument prototype would still apply.  */
18837#ifdef __cplusplus
18838extern "C"
18839#endif
18840char $func ();
18841int
18842main ()
18843{
18844return $func ();
18845  ;
18846  return 0;
18847}
18848_ACEOF
18849for ac_lib in '' bsd; do
18850  if test -z "$ac_lib"; then
18851    ac_res="none required"
18852  else
18853    ac_res=-l$ac_lib
18854    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18855  fi
18856  if ac_fn_c_try_link "$LINENO"; then :
18857  eval "$as_ac_Search=\$ac_res"
18858fi
18859rm -f core conftest.err conftest.$ac_objext \
18860    conftest$ac_exeext
18861  if eval \${$as_ac_Search+:} false; then :
18862  break
18863fi
18864done
18865if eval \${$as_ac_Search+:} false; then :
18866
18867else
18868  eval "$as_ac_Search=no"
18869fi
18870rm conftest.$ac_ext
18871LIBS=$ac_func_search_save_LIBS
18872fi
18873eval ac_res=\$$as_ac_Search
18874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18875$as_echo "$ac_res" >&6; }
18876eval ac_res=\$$as_ac_Search
18877if test "$ac_res" != no; then :
18878  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18879
18880
18881$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18882
18883				PC_LIBBSD_DEPENDENCY=libbsd
18884
18885
18886fi
18887
18888		done
18889	fi
18890
18891fi
18892
18893
18894# Check whether --enable-sha1 was given.
18895if test "${enable_sha1+set}" = set; then :
18896  enableval=$enable_sha1;
18897fi
18898
18899case "$enable_sha1" in
18900	no)
18901	;;
18902	yes|*)
18903
18904$as_echo "#define USE_SHA1 1" >>confdefs.h
18905
18906	;;
18907esac
18908
18909
18910# Check whether --enable-sha2 was given.
18911if test "${enable_sha2+set}" = set; then :
18912  enableval=$enable_sha2;
18913fi
18914
18915case "$enable_sha2" in
18916	no)
18917	;;
18918	yes|*)
18919
18920$as_echo "#define USE_SHA2 1" >>confdefs.h
18921
18922	;;
18923esac
18924
18925# Check whether --enable-subnet was given.
18926if test "${enable_subnet+set}" = set; then :
18927  enableval=$enable_subnet;
18928fi
18929
18930case "$enable_subnet" in
18931	yes)
18932
18933$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18934
18935	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18936
18937	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18938
18939	;;
18940	no|*)
18941	;;
18942esac
18943
18944# check whether gost also works
18945
18946# Check whether --enable-gost was given.
18947if test "${enable_gost+set}" = set; then :
18948  enableval=$enable_gost;
18949fi
18950
18951use_gost="no"
18952if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18953case "$enable_gost" in
18954	no)
18955	;;
18956	*)
18957	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18958if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18959  :
18960else
18961  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18962fi
18963
18964	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18965if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18966
18967else
18968  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18969fi
18970
18971
18972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18973$as_echo_n "checking if GOST works... " >&6; }
18974if test c${cross_compiling} = cno; then
18975BAKCFLAGS="$CFLAGS"
18976if test -n "$ssldir"; then
18977	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18978fi
18979if test "$cross_compiling" = yes; then :
18980  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18982as_fn_error $? "cannot run test program while cross compiling
18983See \`config.log' for more details" "$LINENO" 5; }
18984else
18985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986/* end confdefs.h.  */
18987
18988#include <string.h>
18989#include <openssl/ssl.h>
18990#include <openssl/evp.h>
18991#include <openssl/engine.h>
18992#include <openssl/conf.h>
18993/* routine to load gost (from sldns) */
18994int load_gost_id(void)
18995{
18996	static int gost_id = 0;
18997	const EVP_PKEY_ASN1_METHOD* meth;
18998	ENGINE* e;
18999
19000	if(gost_id) return gost_id;
19001
19002	/* see if configuration loaded gost implementation from other engine*/
19003	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
19004	if(meth) {
19005		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19006		return gost_id;
19007	}
19008
19009	/* see if engine can be loaded already */
19010	e = ENGINE_by_id("gost");
19011	if(!e) {
19012		/* load it ourself, in case statically linked */
19013		ENGINE_load_builtin_engines();
19014		ENGINE_load_dynamic();
19015		e = ENGINE_by_id("gost");
19016	}
19017	if(!e) {
19018		/* no gost engine in openssl */
19019		return 0;
19020	}
19021	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
19022		ENGINE_finish(e);
19023		ENGINE_free(e);
19024		return 0;
19025	}
19026
19027	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
19028	if(!meth) {
19029		/* algo not found */
19030		ENGINE_finish(e);
19031		ENGINE_free(e);
19032		return 0;
19033	}
19034	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19035	return gost_id;
19036}
19037int main(void) {
19038	EVP_MD_CTX* ctx;
19039	const EVP_MD* md;
19040	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
19041	const char* str = "Hello world";
19042	const unsigned char check[] = {
19043		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
19044		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
19045		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
19046		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
19047	};
19048	OPENSSL_config(NULL);
19049	(void)load_gost_id();
19050	md = EVP_get_digestbyname("md_gost94");
19051	if(!md) return 1;
19052	memset(digest, 0, sizeof(digest));
19053	ctx = EVP_MD_CTX_create();
19054	if(!ctx) return 2;
19055	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
19056	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
19057	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
19058	/* uncomment to see the hash calculated.
19059		{int i;
19060		for(i=0; i<32; i++)
19061			printf(" %2.2x", (int)digest[i]);
19062		printf("\n");}
19063	*/
19064	if(memcmp(digest, check, sizeof(check)) != 0)
19065		return 6;
19066	return 0;
19067}
19068
19069_ACEOF
19070if ac_fn_c_try_run "$LINENO"; then :
19071  eval "ac_cv_c_gost_works=yes"
19072else
19073  eval "ac_cv_c_gost_works=no"
19074fi
19075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19076  conftest.$ac_objext conftest.beam conftest.$ac_ext
19077fi
19078
19079CFLAGS="$BAKCFLAGS"
19080else
19081eval "ac_cv_c_gost_works=maybe"
19082fi
19083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
19084$as_echo "$ac_cv_c_gost_works" >&6; }
19085
19086	if test "$ac_cv_c_gost_works" != no; then
19087		use_gost="yes"
19088
19089$as_echo "#define USE_GOST 1" >>confdefs.h
19090
19091	fi
19092	;;
19093esac
19094fi
19095# Check whether --enable-ecdsa was given.
19096if test "${enable_ecdsa+set}" = set; then :
19097  enableval=$enable_ecdsa;
19098fi
19099
19100use_ecdsa="no"
19101case "$enable_ecdsa" in
19102    no)
19103      ;;
19104    *)
19105      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19106	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
19107if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
19108
19109else
19110  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19111fi
19112
19113	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
19114if test "x$ac_cv_func_SHA384_Init" = xyes; then :
19115
19116else
19117  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19118fi
19119
19120	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
19121#include <openssl/evp.h>
19122
19123"
19124if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
19125  ac_have_decl=1
19126else
19127  ac_have_decl=0
19128fi
19129
19130cat >>confdefs.h <<_ACEOF
19131#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
19132_ACEOF
19133if test $ac_have_decl = 1; then :
19134
19135else
19136  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19137fi
19138ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
19139#include <openssl/evp.h>
19140
19141"
19142if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
19143  ac_have_decl=1
19144else
19145  ac_have_decl=0
19146fi
19147
19148cat >>confdefs.h <<_ACEOF
19149#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
19150_ACEOF
19151if test $ac_have_decl = 1; then :
19152
19153else
19154  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19155fi
19156
19157	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
19158	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
19159$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
19160	      if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
19161		if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
19162		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163$as_echo "no" >&6; }
19164
19165cat >>confdefs.h <<_ACEOF
19166#define USE_ECDSA_EVP_WORKAROUND 1
19167_ACEOF
19168
19169		else
19170		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19171$as_echo "yes" >&6; }
19172		fi
19173	      else
19174		# not OpenSSL, thus likely LibreSSL, which supports it
19175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176$as_echo "yes" >&6; }
19177	      fi
19178      fi
19179      # we now know we have ECDSA and the required curves.
19180
19181cat >>confdefs.h <<_ACEOF
19182#define USE_ECDSA 1
19183_ACEOF
19184
19185      use_ecdsa="yes"
19186      ;;
19187esac
19188
19189# Check whether --enable-dsa was given.
19190if test "${enable_dsa+set}" = set; then :
19191  enableval=$enable_dsa;
19192fi
19193
19194use_dsa="no"
19195case "$enable_dsa" in
19196    yes)
19197      # detect if DSA is supported, and turn it off if not.
19198      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19199      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19200if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19201
19202      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19203ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19204$ac_includes_default
19205#ifdef HAVE_OPENSSL_ERR_H
19206#include <openssl/err.h>
19207#endif
19208
19209#ifdef HAVE_OPENSSL_RAND_H
19210#include <openssl/rand.h>
19211#endif
19212
19213#ifdef HAVE_OPENSSL_CONF_H
19214#include <openssl/conf.h>
19215#endif
19216
19217#ifdef HAVE_OPENSSL_ENGINE_H
19218#include <openssl/engine.h>
19219#endif
19220
19221"
19222if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19223
19224
19225cat >>confdefs.h <<_ACEOF
19226#define USE_DSA 1
19227_ACEOF
19228
19229
19230else
19231  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19232               fi
19233fi
19234
19235
19236else
19237  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19238               fi
19239fi
19240
19241      else
19242
19243cat >>confdefs.h <<_ACEOF
19244#define USE_DSA 1
19245_ACEOF
19246
19247      fi
19248      ;;
19249    *)
19250      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19251      # support DSA for DNSSEC Validation.
19252      ;;
19253esac
19254
19255
19256# Check whether --with-deprecate-rsa-1024 was given.
19257if test "${with_deprecate_rsa_1024+set}" = set; then :
19258  withval=$with_deprecate_rsa_1024;
19259fi
19260
19261if test "$with_deprecate_rsa_1024" = "yes"; then
19262
19263$as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19264
19265fi
19266
19267# Check whether --enable-ed25519 was given.
19268if test "${enable_ed25519+set}" = set; then :
19269  enableval=$enable_ed25519;
19270fi
19271
19272use_ed25519="no"
19273case "$enable_ed25519" in
19274    no)
19275      ;;
19276    *)
19277      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19278	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19279#include <openssl/evp.h>
19280
19281"
19282if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19283  ac_have_decl=1
19284else
19285  ac_have_decl=0
19286fi
19287
19288cat >>confdefs.h <<_ACEOF
19289#define HAVE_DECL_NID_ED25519 $ac_have_decl
19290_ACEOF
19291if test $ac_have_decl = 1; then :
19292
19293      		use_ed25519="yes"
19294
19295else
19296   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19297	      	fi
19298fi
19299
19300      fi
19301      if test $USE_NETTLE = "yes"; then
19302		for ac_header in nettle/eddsa.h
19303do :
19304  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19305"
19306if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19307  cat >>confdefs.h <<_ACEOF
19308#define HAVE_NETTLE_EDDSA_H 1
19309_ACEOF
19310 use_ed25519="yes"
19311fi
19312
19313done
19314
19315      fi
19316      if test $use_ed25519 = "yes"; then
19317
19318cat >>confdefs.h <<_ACEOF
19319#define USE_ED25519 1
19320_ACEOF
19321
19322      fi
19323      ;;
19324esac
19325
19326# Check whether --enable-ed448 was given.
19327if test "${enable_ed448+set}" = set; then :
19328  enableval=$enable_ed448;
19329fi
19330
19331use_ed448="no"
19332case "$enable_ed448" in
19333    no)
19334      ;;
19335    *)
19336      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19337	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19338#include <openssl/evp.h>
19339
19340"
19341if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19342  ac_have_decl=1
19343else
19344  ac_have_decl=0
19345fi
19346
19347cat >>confdefs.h <<_ACEOF
19348#define HAVE_DECL_NID_ED448 $ac_have_decl
19349_ACEOF
19350if test $ac_have_decl = 1; then :
19351
19352      		use_ed448="yes"
19353
19354else
19355   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19356	      	fi
19357fi
19358
19359      fi
19360      if test $use_ed448 = "yes"; then
19361
19362cat >>confdefs.h <<_ACEOF
19363#define USE_ED448 1
19364_ACEOF
19365
19366      fi
19367      ;;
19368esac
19369
19370# Check whether --enable-event-api was given.
19371if test "${enable_event_api+set}" = set; then :
19372  enableval=$enable_event_api;
19373fi
19374
19375case "$enable_event_api" in
19376    yes)
19377      UNBOUND_EVENT_INSTALL=unbound-event-install
19378
19379      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19380
19381      ;;
19382    *)
19383      ;;
19384esac
19385
19386# Check whether --enable-tfo-client was given.
19387if test "${enable_tfo_client+set}" = set; then :
19388  enableval=$enable_tfo_client;
19389fi
19390
19391case "$enable_tfo_client" in
19392	yes)
19393		case "$host_os" in
19394			linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19395#include <netinet/tcp.h>
19396
19397"
19398if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19399  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19400$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19401else
19402  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19403fi
19404
19405
19406cat >>confdefs.h <<_ACEOF
19407#define USE_MSG_FASTOPEN 1
19408_ACEOF
19409
19410				;;
19411			darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19412#include <sys/socket.h>
19413
19414"
19415if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19416  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19417$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19418else
19419  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19420fi
19421
19422
19423cat >>confdefs.h <<_ACEOF
19424#define USE_OSX_MSG_FASTOPEN 1
19425_ACEOF
19426
19427				;;
19428		esac
19429		;;
19430	no|*)
19431		;;
19432esac
19433
19434# Check whether --enable-tfo-server was given.
19435if test "${enable_tfo_server+set}" = set; then :
19436  enableval=$enable_tfo_server;
19437fi
19438
19439case "$enable_tfo_server" in
19440	yes)
19441	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19442#include <netinet/tcp.h>
19443
19444"
19445if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19446  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19447$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19448else
19449  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19450fi
19451
19452
19453cat >>confdefs.h <<_ACEOF
19454#define USE_TCP_FASTOPEN 1
19455_ACEOF
19456
19457		;;
19458	no|*)
19459		;;
19460esac
19461
19462# check for libevent
19463
19464# Check whether --with-libevent was given.
19465if test "${with_libevent+set}" = set; then :
19466  withval=$with_libevent;
19467else
19468   with_libevent="no"
19469fi
19470
19471if test "x_$with_libevent" != x_no; then
19472
19473$as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19474
19475        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19476$as_echo_n "checking for libevent... " >&6; }
19477        if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19478            with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19479        fi
19480        for dir in $with_libevent; do
19481            thedir="$dir"
19482            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19483                found_libevent="yes"
19484								if test "$thedir" != "/usr"; then
19485				    CPPFLAGS="$CPPFLAGS -I$thedir/include"
19486				fi
19487				break;
19488		    fi
19489        done
19490        if test x_$found_libevent != x_yes; then
19491		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19492			# libevent source directory
19493			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19494$as_echo "found in $thedir" >&6; }
19495			CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19496			BAK_LDFLAGS_SET="1"
19497			BAK_LDFLAGS="$LDFLAGS"
19498			# remove evdns from linking
19499			mkdir build >/dev/null 2>&1
19500			mkdir build/libevent >/dev/null 2>&1
19501			mkdir build/libevent/.libs >/dev/null 2>&1
19502			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19503			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19504			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19505			cp $ev_files_o build/libevent
19506			cp $ev_files_lo build/libevent
19507			cp $ev_files_libso build/libevent/.libs
19508			LATE_LDFLAGS="build/libevent/*.lo -lm"
19509			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19510		else
19511            as_fn_error $? "Cannot find the libevent library in $with_libevent
19512You can restart ./configure --with-libevent=no to use a builtin alternative.
19513Please note that this alternative is not as capable as libevent when using
19514large outgoing port ranges.  " "$LINENO" 5
19515		fi
19516        else
19517            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19518$as_echo "found in $thedir" >&6; }
19519	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19520		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19521
19522	if test "x$enable_rpath" = xyes; then
19523		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19524			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19525		fi
19526	fi
19527
19528	    else
19529		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
19530			LDFLAGS="$LDFLAGS -L$thedir/lib"
19531
19532	if test "x$enable_rpath" = xyes; then
19533		if echo "$thedir/lib" | grep "^/" >/dev/null; then
19534			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19535		fi
19536	fi
19537
19538		    fi
19539	    fi
19540        fi
19541	# check for library used by libevent after 1.3c
19542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19543$as_echo_n "checking for library containing clock_gettime... " >&6; }
19544if ${ac_cv_search_clock_gettime+:} false; then :
19545  $as_echo_n "(cached) " >&6
19546else
19547  ac_func_search_save_LIBS=$LIBS
19548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h.  */
19550
19551/* Override any GCC internal prototype to avoid an error.
19552   Use char because int might match the return type of a GCC
19553   builtin and then its argument prototype would still apply.  */
19554#ifdef __cplusplus
19555extern "C"
19556#endif
19557char clock_gettime ();
19558int
19559main ()
19560{
19561return clock_gettime ();
19562  ;
19563  return 0;
19564}
19565_ACEOF
19566for ac_lib in '' rt; do
19567  if test -z "$ac_lib"; then
19568    ac_res="none required"
19569  else
19570    ac_res=-l$ac_lib
19571    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19572  fi
19573  if ac_fn_c_try_link "$LINENO"; then :
19574  ac_cv_search_clock_gettime=$ac_res
19575fi
19576rm -f core conftest.err conftest.$ac_objext \
19577    conftest$ac_exeext
19578  if ${ac_cv_search_clock_gettime+:} false; then :
19579  break
19580fi
19581done
19582if ${ac_cv_search_clock_gettime+:} false; then :
19583
19584else
19585  ac_cv_search_clock_gettime=no
19586fi
19587rm conftest.$ac_ext
19588LIBS=$ac_func_search_save_LIBS
19589fi
19590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19591$as_echo "$ac_cv_search_clock_gettime" >&6; }
19592ac_res=$ac_cv_search_clock_gettime
19593if test "$ac_res" != no; then :
19594  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19595
19596fi
19597
19598
19599	# is the event.h header libev or libevent?
19600	for ac_header in event.h
19601do :
19602  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19603"
19604if test "x$ac_cv_header_event_h" = xyes; then :
19605  cat >>confdefs.h <<_ACEOF
19606#define HAVE_EVENT_H 1
19607_ACEOF
19608
19609fi
19610
19611done
19612
19613	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19614#include <event.h>
19615
19616"
19617if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19618
19619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19620$as_echo_n "checking for library containing event_set... " >&6; }
19621if ${ac_cv_search_event_set+:} false; then :
19622  $as_echo_n "(cached) " >&6
19623else
19624  ac_func_search_save_LIBS=$LIBS
19625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626/* end confdefs.h.  */
19627
19628/* Override any GCC internal prototype to avoid an error.
19629   Use char because int might match the return type of a GCC
19630   builtin and then its argument prototype would still apply.  */
19631#ifdef __cplusplus
19632extern "C"
19633#endif
19634char event_set ();
19635int
19636main ()
19637{
19638return event_set ();
19639  ;
19640  return 0;
19641}
19642_ACEOF
19643for ac_lib in '' ev; do
19644  if test -z "$ac_lib"; then
19645    ac_res="none required"
19646  else
19647    ac_res=-l$ac_lib
19648    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19649  fi
19650  if ac_fn_c_try_link "$LINENO"; then :
19651  ac_cv_search_event_set=$ac_res
19652fi
19653rm -f core conftest.err conftest.$ac_objext \
19654    conftest$ac_exeext
19655  if ${ac_cv_search_event_set+:} false; then :
19656  break
19657fi
19658done
19659if ${ac_cv_search_event_set+:} false; then :
19660
19661else
19662  ac_cv_search_event_set=no
19663fi
19664rm conftest.$ac_ext
19665LIBS=$ac_func_search_save_LIBS
19666fi
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19668$as_echo "$ac_cv_search_event_set" >&6; }
19669ac_res=$ac_cv_search_event_set
19670if test "$ac_res" != no; then :
19671  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19672
19673fi
19674
19675
19676else
19677
19678		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19679$as_echo_n "checking for library containing event_set... " >&6; }
19680if ${ac_cv_search_event_set+:} false; then :
19681  $as_echo_n "(cached) " >&6
19682else
19683  ac_func_search_save_LIBS=$LIBS
19684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685/* end confdefs.h.  */
19686
19687/* Override any GCC internal prototype to avoid an error.
19688   Use char because int might match the return type of a GCC
19689   builtin and then its argument prototype would still apply.  */
19690#ifdef __cplusplus
19691extern "C"
19692#endif
19693char event_set ();
19694int
19695main ()
19696{
19697return event_set ();
19698  ;
19699  return 0;
19700}
19701_ACEOF
19702for ac_lib in '' event; do
19703  if test -z "$ac_lib"; then
19704    ac_res="none required"
19705  else
19706    ac_res=-l$ac_lib
19707    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19708  fi
19709  if ac_fn_c_try_link "$LINENO"; then :
19710  ac_cv_search_event_set=$ac_res
19711fi
19712rm -f core conftest.err conftest.$ac_objext \
19713    conftest$ac_exeext
19714  if ${ac_cv_search_event_set+:} false; then :
19715  break
19716fi
19717done
19718if ${ac_cv_search_event_set+:} false; then :
19719
19720else
19721  ac_cv_search_event_set=no
19722fi
19723rm conftest.$ac_ext
19724LIBS=$ac_func_search_save_LIBS
19725fi
19726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19727$as_echo "$ac_cv_search_event_set" >&6; }
19728ac_res=$ac_cv_search_event_set
19729if test "$ac_res" != no; then :
19730  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19731
19732fi
19733
19734
19735fi
19736
19737	for ac_func in event_base_free
19738do :
19739  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19740if test "x$ac_cv_func_event_base_free" = xyes; then :
19741  cat >>confdefs.h <<_ACEOF
19742#define HAVE_EVENT_BASE_FREE 1
19743_ACEOF
19744
19745fi
19746done
19747 # only in libevent 1.2 and later
19748	for ac_func in event_base_once
19749do :
19750  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19751if test "x$ac_cv_func_event_base_once" = xyes; then :
19752  cat >>confdefs.h <<_ACEOF
19753#define HAVE_EVENT_BASE_ONCE 1
19754_ACEOF
19755
19756fi
19757done
19758 # only in libevent 1.4.1 and later
19759	for ac_func in event_base_new
19760do :
19761  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19762if test "x$ac_cv_func_event_base_new" = xyes; then :
19763  cat >>confdefs.h <<_ACEOF
19764#define HAVE_EVENT_BASE_NEW 1
19765_ACEOF
19766
19767fi
19768done
19769 # only in libevent 1.4.1 and later
19770	for ac_func in event_base_get_method
19771do :
19772  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19773if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19774  cat >>confdefs.h <<_ACEOF
19775#define HAVE_EVENT_BASE_GET_METHOD 1
19776_ACEOF
19777
19778fi
19779done
19780 # only in libevent 1.4.3 and later
19781	for ac_func in ev_loop
19782do :
19783  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19784if test "x$ac_cv_func_ev_loop" = xyes; then :
19785  cat >>confdefs.h <<_ACEOF
19786#define HAVE_EV_LOOP 1
19787_ACEOF
19788
19789fi
19790done
19791 # only in libev. (tested on 3.51)
19792	for ac_func in ev_default_loop
19793do :
19794  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19795if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19796  cat >>confdefs.h <<_ACEOF
19797#define HAVE_EV_DEFAULT_LOOP 1
19798_ACEOF
19799
19800fi
19801done
19802 # only in libev. (tested on 4.00)
19803	for ac_func in event_assign
19804do :
19805  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19806if test "x$ac_cv_func_event_assign" = xyes; then :
19807  cat >>confdefs.h <<_ACEOF
19808#define HAVE_EVENT_ASSIGN 1
19809_ACEOF
19810
19811fi
19812done
19813 # in libevent, for thread-safety
19814	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19815#ifdef HAVE_EVENT_H
19816#  include <event.h>
19817#else
19818#  include \"event2/event.h\"
19819#endif
19820
19821"
19822if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19823  ac_have_decl=1
19824else
19825  ac_have_decl=0
19826fi
19827
19828cat >>confdefs.h <<_ACEOF
19829#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19830_ACEOF
19831
19832        PC_LIBEVENT_DEPENDENCY="libevent"
19833
19834	if test -n "$BAK_LDFLAGS_SET"; then
19835		LDFLAGS="$BAK_LDFLAGS"
19836	fi
19837else
19838
19839$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19840
19841fi
19842
19843# check for libexpat
19844
19845# Check whether --with-libexpat was given.
19846if test "${with_libexpat+set}" = set; then :
19847  withval=$with_libexpat;
19848else
19849   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19850fi
19851
19852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19853$as_echo_n "checking for libexpat... " >&6; }
19854found_libexpat="no"
19855for dir in $withval ; do
19856            if test -f "$dir/include/expat.h"; then
19857		found_libexpat="yes"
19858				if test "$dir" != "/usr"; then
19859                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19860		    LDFLAGS="$LDFLAGS -L$dir/lib"
19861		fi
19862            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19863$as_echo "found in $dir" >&6; }
19864                break;
19865            fi
19866done
19867if test x_$found_libexpat != x_yes; then
19868	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19869fi
19870for ac_header in expat.h
19871do :
19872  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19873"
19874if test "x$ac_cv_header_expat_h" = xyes; then :
19875  cat >>confdefs.h <<_ACEOF
19876#define HAVE_EXPAT_H 1
19877_ACEOF
19878
19879fi
19880
19881done
19882
19883ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19884#include <expat.h>
19885
19886"
19887if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19888  ac_have_decl=1
19889else
19890  ac_have_decl=0
19891fi
19892
19893cat >>confdefs.h <<_ACEOF
19894#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19895_ACEOF
19896
19897
19898# hiredis (redis C client for cachedb)
19899
19900# Check whether --with-libhiredis was given.
19901if test "${with_libhiredis+set}" = set; then :
19902  withval=$with_libhiredis;
19903else
19904   withval="no"
19905fi
19906
19907found_libhiredis="no"
19908if test x_$withval = x_yes -o x_$withval != x_no; then
19909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19910$as_echo_n "checking for libhiredis... " >&6; }
19911   if test x_$withval = x_ -o x_$withval = x_yes; then
19912            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19913   fi
19914   for dir in $withval ; do
19915            if test -f "$dir/include/hiredis/hiredis.h"; then
19916		found_libhiredis="yes"
19917				if test "$dir" != "/usr"; then
19918                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19919		    LDFLAGS="$LDFLAGS -L$dir/lib"
19920		fi
19921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19922$as_echo "found in $dir" >&6; }
19923
19924$as_echo "#define USE_REDIS 1" >>confdefs.h
19925
19926		LIBS="$LIBS -lhiredis"
19927                break;
19928            fi
19929    done
19930    if test x_$found_libhiredis != x_yes; then
19931	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19932    fi
19933    for ac_header in hiredis/hiredis.h
19934do :
19935  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19936"
19937if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19938  cat >>confdefs.h <<_ACEOF
19939#define HAVE_HIREDIS_HIREDIS_H 1
19940_ACEOF
19941
19942fi
19943
19944done
19945
19946    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19947    #include <hiredis/hiredis.h>
19948
19949"
19950if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19951  ac_have_decl=1
19952else
19953  ac_have_decl=0
19954fi
19955
19956cat >>confdefs.h <<_ACEOF
19957#define HAVE_DECL_REDISCONNECT $ac_have_decl
19958_ACEOF
19959
19960fi
19961
19962# nghttp2
19963
19964# Check whether --with-libnghttp2 was given.
19965if test "${with_libnghttp2+set}" = set; then :
19966  withval=$with_libnghttp2;
19967else
19968   withval="no"
19969fi
19970
19971found_libnghttp2="no"
19972if test x_$withval = x_yes -o x_$withval != x_no; then
19973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19974$as_echo_n "checking for libnghttp2... " >&6; }
19975   if test x_$withval = x_ -o x_$withval = x_yes; then
19976            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19977   fi
19978   for dir in $withval ; do
19979            if test -f "$dir/include/nghttp2/nghttp2.h"; then
19980		found_libnghttp2="yes"
19981				if test "$dir" != "/usr"; then
19982                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19983		    LDFLAGS="$LDFLAGS -L$dir/lib"
19984		fi
19985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19986$as_echo "found in $dir" >&6; }
19987
19988$as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19989
19990		LIBS="$LIBS -lnghttp2"
19991                break;
19992            fi
19993    done
19994    if test x_$found_libnghttp2 != x_yes; then
19995	as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19996    fi
19997    for ac_header in nghttp2/nghttp2.h
19998do :
19999  ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
20000"
20001if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
20002  cat >>confdefs.h <<_ACEOF
20003#define HAVE_NGHTTP2_NGHTTP2_H 1
20004_ACEOF
20005
20006fi
20007
20008done
20009
20010    ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
20011    #include <nghttp2/nghttp2.h>
20012
20013"
20014if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
20015  ac_have_decl=1
20016else
20017  ac_have_decl=0
20018fi
20019
20020cat >>confdefs.h <<_ACEOF
20021#define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
20022_ACEOF
20023
20024fi
20025
20026# set static linking for uninstalled libraries if requested
20027
20028staticexe=""
20029# Check whether --enable-static-exe was given.
20030if test "${enable_static_exe+set}" = set; then :
20031  enableval=$enable_static_exe;
20032fi
20033
20034if test x_$enable_static_exe = x_yes; then
20035	staticexe="-static"
20036	if test "$on_mingw" = yes; then
20037		staticexe="-all-static"
20038		# for static compile, include gdi32 and zlib here.
20039		if echo $LIBS | grep 'lgdi32' >/dev/null; then
20040			:
20041		else
20042			LIBS="$LIBS -lgdi32"
20043		fi
20044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20045$as_echo_n "checking for compress in -lz... " >&6; }
20046if ${ac_cv_lib_z_compress+:} false; then :
20047  $as_echo_n "(cached) " >&6
20048else
20049  ac_check_lib_save_LIBS=$LIBS
20050LIBS="-lz  $LIBS"
20051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052/* end confdefs.h.  */
20053
20054/* Override any GCC internal prototype to avoid an error.
20055   Use char because int might match the return type of a GCC
20056   builtin and then its argument prototype would still apply.  */
20057#ifdef __cplusplus
20058extern "C"
20059#endif
20060char compress ();
20061int
20062main ()
20063{
20064return compress ();
20065  ;
20066  return 0;
20067}
20068_ACEOF
20069if ac_fn_c_try_link "$LINENO"; then :
20070  ac_cv_lib_z_compress=yes
20071else
20072  ac_cv_lib_z_compress=no
20073fi
20074rm -f core conftest.err conftest.$ac_objext \
20075    conftest$ac_exeext conftest.$ac_ext
20076LIBS=$ac_check_lib_save_LIBS
20077fi
20078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20079$as_echo "$ac_cv_lib_z_compress" >&6; }
20080if test "x$ac_cv_lib_z_compress" = xyes; then :
20081   LIBS="$LIBS -lz"
20082fi
20083
20084		LIBS="$LIBS -l:libssp.a"
20085	fi
20086fi
20087
20088# set full static linking if requested
20089# Check whether --enable-fully-static was given.
20090if test "${enable_fully_static+set}" = set; then :
20091  enableval=$enable_fully_static;
20092fi
20093
20094if test x_$enable_fully_static = x_yes; then
20095	staticexe="-all-static"
20096	if test "$on_mingw" = yes; then
20097		# for static compile, include gdi32 and zlib here.
20098		if echo $LIBS | grep 'lgdi32' >/dev/null; then
20099			:
20100		else
20101			LIBS="$LIBS -lgdi32"
20102		fi
20103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20104$as_echo_n "checking for compress in -lz... " >&6; }
20105if ${ac_cv_lib_z_compress+:} false; then :
20106  $as_echo_n "(cached) " >&6
20107else
20108  ac_check_lib_save_LIBS=$LIBS
20109LIBS="-lz  $LIBS"
20110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20111/* end confdefs.h.  */
20112
20113/* Override any GCC internal prototype to avoid an error.
20114   Use char because int might match the return type of a GCC
20115   builtin and then its argument prototype would still apply.  */
20116#ifdef __cplusplus
20117extern "C"
20118#endif
20119char compress ();
20120int
20121main ()
20122{
20123return compress ();
20124  ;
20125  return 0;
20126}
20127_ACEOF
20128if ac_fn_c_try_link "$LINENO"; then :
20129  ac_cv_lib_z_compress=yes
20130else
20131  ac_cv_lib_z_compress=no
20132fi
20133rm -f core conftest.err conftest.$ac_objext \
20134    conftest$ac_exeext conftest.$ac_ext
20135LIBS=$ac_check_lib_save_LIBS
20136fi
20137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20138$as_echo "$ac_cv_lib_z_compress" >&6; }
20139if test "x$ac_cv_lib_z_compress" = xyes; then :
20140   LIBS="$LIBS -lz"
20141fi
20142
20143		LIBS="$LIBS -l:libssp.a"
20144	fi
20145fi
20146
20147# set lock checking if requested
20148# Check whether --enable-lock_checks was given.
20149if test "${enable_lock_checks+set}" = set; then :
20150  enableval=$enable_lock_checks;
20151fi
20152
20153if test x_$enable_lock_checks = x_yes; then
20154
20155$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
20156
20157	CHECKLOCK_OBJ="checklocks.lo"
20158
20159fi
20160
20161
20162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
20163$as_echo_n "checking for getaddrinfo... " >&6; }
20164ac_cv_func_getaddrinfo=no
20165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20166/* end confdefs.h.  */
20167
20168#ifdef __cplusplus
20169extern "C"
20170{
20171#endif
20172char* getaddrinfo();
20173char* (*f) () = getaddrinfo;
20174#ifdef __cplusplus
20175}
20176#endif
20177int main() {
20178        ;
20179        return 0;
20180}
20181
20182_ACEOF
20183if ac_fn_c_try_link "$LINENO"; then :
20184  ac_cv_func_getaddrinfo="yes"
20185if test "$ac_cv_header_windows_h" = "yes"; then
20186
20187$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20188
20189	USE_WINSOCK="1"
20190	if echo $LIBS | grep 'lws2_32' >/dev/null; then
20191		:
20192	else
20193		LIBS="$LIBS -lws2_32"
20194	fi
20195fi
20196
20197else
20198  ORIGLIBS="$LIBS"
20199LIBS="$LIBS -lws2_32"
20200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201/* end confdefs.h.  */
20202
20203#ifdef HAVE_WS2TCPIP_H
20204#include <ws2tcpip.h>
20205#endif
20206
20207int
20208main ()
20209{
20210
20211        (void)getaddrinfo(NULL, NULL, NULL, NULL);
20212
20213
20214  ;
20215  return 0;
20216}
20217_ACEOF
20218if ac_fn_c_try_link "$LINENO"; then :
20219
20220ac_cv_func_getaddrinfo="yes"
20221
20222$as_echo "#define USE_WINSOCK 1" >>confdefs.h
20223
20224USE_WINSOCK="1"
20225
20226else
20227
20228ac_cv_func_getaddrinfo="no"
20229LIBS="$ORIGLIBS"
20230
20231fi
20232rm -f core conftest.err conftest.$ac_objext \
20233    conftest$ac_exeext conftest.$ac_ext
20234
20235fi
20236rm -f core conftest.err conftest.$ac_objext \
20237    conftest$ac_exeext conftest.$ac_ext
20238
20239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20240$as_echo "$ac_cv_func_getaddrinfo" >&6; }
20241if test $ac_cv_func_getaddrinfo = yes; then
20242
20243$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20244
20245fi
20246
20247if test "$USE_WINSOCK" = 1; then
20248
20249$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20250
20251	for ac_header in iphlpapi.h
20252do :
20253  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20254#include <windows.h>
20255
20256"
20257if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20258  cat >>confdefs.h <<_ACEOF
20259#define HAVE_IPHLPAPI_H 1
20260_ACEOF
20261
20262fi
20263
20264done
20265
20266	if test -n "$ac_tool_prefix"; then
20267  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20268set dummy ${ac_tool_prefix}windres; ac_word=$2
20269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20270$as_echo_n "checking for $ac_word... " >&6; }
20271if ${ac_cv_prog_WINDRES+:} false; then :
20272  $as_echo_n "(cached) " >&6
20273else
20274  if test -n "$WINDRES"; then
20275  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20276else
20277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278for as_dir in $PATH
20279do
20280  IFS=$as_save_IFS
20281  test -z "$as_dir" && as_dir=.
20282    for ac_exec_ext in '' $ac_executable_extensions; do
20283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20284    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20286    break 2
20287  fi
20288done
20289  done
20290IFS=$as_save_IFS
20291
20292fi
20293fi
20294WINDRES=$ac_cv_prog_WINDRES
20295if test -n "$WINDRES"; then
20296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20297$as_echo "$WINDRES" >&6; }
20298else
20299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20300$as_echo "no" >&6; }
20301fi
20302
20303
20304fi
20305if test -z "$ac_cv_prog_WINDRES"; then
20306  ac_ct_WINDRES=$WINDRES
20307  # Extract the first word of "windres", so it can be a program name with args.
20308set dummy windres; ac_word=$2
20309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20310$as_echo_n "checking for $ac_word... " >&6; }
20311if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20312  $as_echo_n "(cached) " >&6
20313else
20314  if test -n "$ac_ct_WINDRES"; then
20315  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20316else
20317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20318for as_dir in $PATH
20319do
20320  IFS=$as_save_IFS
20321  test -z "$as_dir" && as_dir=.
20322    for ac_exec_ext in '' $ac_executable_extensions; do
20323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20324    ac_cv_prog_ac_ct_WINDRES="windres"
20325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20326    break 2
20327  fi
20328done
20329  done
20330IFS=$as_save_IFS
20331
20332fi
20333fi
20334ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20335if test -n "$ac_ct_WINDRES"; then
20336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20337$as_echo "$ac_ct_WINDRES" >&6; }
20338else
20339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340$as_echo "no" >&6; }
20341fi
20342
20343  if test "x$ac_ct_WINDRES" = x; then
20344    WINDRES=""
20345  else
20346    case $cross_compiling:$ac_tool_warned in
20347yes:)
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20350ac_tool_warned=yes ;;
20351esac
20352    WINDRES=$ac_ct_WINDRES
20353  fi
20354else
20355  WINDRES="$ac_cv_prog_WINDRES"
20356fi
20357
20358	LIBS="$LIBS -liphlpapi -lcrypt32"
20359	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20360
20361	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20362
20363	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20364
20365	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20366
20367	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20368
20369	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20370
20371	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20372
20373	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20374
20375
20376$as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20377
20378fi
20379if test $ac_cv_func_getaddrinfo = no; then
20380	case " $LIBOBJS " in
20381  *" fake-rfc2553.$ac_objext "* ) ;;
20382  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20383 ;;
20384esac
20385
20386fi
20387# check after getaddrinfo for its libraries
20388
20389# check ioctlsocket
20390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20391$as_echo_n "checking for ioctlsocket... " >&6; }
20392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393/* end confdefs.h.  */
20394
20395#ifdef HAVE_WINSOCK2_H
20396#include <winsock2.h>
20397#endif
20398
20399int
20400main ()
20401{
20402
20403	(void)ioctlsocket(0, 0, NULL);
20404
20405  ;
20406  return 0;
20407}
20408_ACEOF
20409if ac_fn_c_try_link "$LINENO"; then :
20410
20411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20412$as_echo "yes" >&6; }
20413
20414$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20415
20416
20417else
20418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419$as_echo "no" >&6; }
20420fi
20421rm -f core conftest.err conftest.$ac_objext \
20422    conftest$ac_exeext conftest.$ac_ext
20423
20424
20425# see if daemon(3) exists, and if it is deprecated.
20426for ac_func in daemon
20427do :
20428  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20429if test "x$ac_cv_func_daemon" = xyes; then :
20430  cat >>confdefs.h <<_ACEOF
20431#define HAVE_DAEMON 1
20432_ACEOF
20433
20434fi
20435done
20436
20437if test $ac_cv_func_daemon = yes; then
20438
20439
20440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20441$as_echo_n "checking if daemon is deprecated... " >&6; }
20442cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20443if eval \${cv_cc_deprecated_$cache+:} false; then :
20444  $as_echo_n "(cached) " >&6
20445else
20446
20447echo '
20448#include <stdlib.h>
20449#include <unistd.h>
20450' >conftest.c
20451echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20452if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20453eval "cv_cc_deprecated_$cache=no"
20454else
20455eval "cv_cc_deprecated_$cache=yes"
20456fi
20457rm -f conftest conftest.o conftest.c
20458
20459fi
20460
20461if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20463$as_echo "yes" >&6; }
20464
20465cat >>confdefs.h <<_ACEOF
20466#define DEPRECATED_DAEMON 1
20467_ACEOF
20468
20469:
20470
20471else
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20473$as_echo "no" >&6; }
20474:
20475
20476fi
20477
20478fi
20479
20480ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20481$ac_includes_default
20482#ifdef HAVE_SYS_UN_H
20483#include <sys/un.h>
20484#endif
20485
20486"
20487if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20488
20489cat >>confdefs.h <<_ACEOF
20490#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20491_ACEOF
20492
20493
20494fi
20495
20496ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20497$ac_includes_default
20498#if HAVE_SYS_PARAM_H
20499#include <sys/param.h>
20500#endif
20501
20502#ifdef HAVE_SYS_SOCKET_H
20503#include <sys/socket.h>
20504#endif
20505
20506#ifdef HAVE_SYS_UIO_H
20507#include <sys/uio.h>
20508#endif
20509
20510#ifdef HAVE_NETINET_IN_H
20511#include <netinet/in.h>
20512#endif
20513
20514#ifdef HAVE_NETINET_TCP_H
20515#include <netinet/tcp.h>
20516#endif
20517
20518#ifdef HAVE_ARPA_INET_H
20519#include <arpa/inet.h>
20520#endif
20521
20522#ifdef HAVE_WINSOCK2_H
20523#include <winsock2.h>
20524#endif
20525
20526#ifdef HAVE_WS2TCPIP_H
20527#include <ws2tcpip.h>
20528#endif
20529
20530"
20531if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20532
20533cat >>confdefs.h <<_ACEOF
20534#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20535_ACEOF
20536
20537
20538fi
20539
20540
20541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20542$as_echo_n "checking for htobe64... " >&6; }
20543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544/* end confdefs.h.  */
20545
20546#include <stdio.h>
20547#ifdef HAVE_ENDIAN_H
20548#  include <endian.h>
20549#endif
20550#ifdef HAVE_SYS_ENDIAN_H
20551#  include <sys/endian.h>
20552#endif
20553
20554int
20555main ()
20556{
20557unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20558  ;
20559  return 0;
20560}
20561_ACEOF
20562if ac_fn_c_try_link "$LINENO"; then :
20563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20564$as_echo "yes" >&6; }
20565
20566$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20567
20568else
20569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20570$as_echo "no" >&6; }
20571fi
20572rm -f core conftest.err conftest.$ac_objext \
20573    conftest$ac_exeext conftest.$ac_ext
20574
20575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20576$as_echo_n "checking for be64toh... " >&6; }
20577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578/* end confdefs.h.  */
20579
20580#include <stdio.h>
20581#ifdef HAVE_ENDIAN_H
20582#  include <endian.h>
20583#endif
20584#ifdef HAVE_SYS_ENDIAN_H
20585#  include <sys/endian.h>
20586#endif
20587
20588int
20589main ()
20590{
20591unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20592  ;
20593  return 0;
20594}
20595_ACEOF
20596if ac_fn_c_try_link "$LINENO"; then :
20597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20598$as_echo "yes" >&6; }
20599
20600$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20601
20602else
20603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604$as_echo "no" >&6; }
20605fi
20606rm -f core conftest.err conftest.$ac_objext \
20607    conftest$ac_exeext conftest.$ac_ext
20608
20609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20610$as_echo_n "checking for library containing setusercontext... " >&6; }
20611if ${ac_cv_search_setusercontext+:} false; then :
20612  $as_echo_n "(cached) " >&6
20613else
20614  ac_func_search_save_LIBS=$LIBS
20615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616/* end confdefs.h.  */
20617
20618/* Override any GCC internal prototype to avoid an error.
20619   Use char because int might match the return type of a GCC
20620   builtin and then its argument prototype would still apply.  */
20621#ifdef __cplusplus
20622extern "C"
20623#endif
20624char setusercontext ();
20625int
20626main ()
20627{
20628return setusercontext ();
20629  ;
20630  return 0;
20631}
20632_ACEOF
20633for ac_lib in '' util; do
20634  if test -z "$ac_lib"; then
20635    ac_res="none required"
20636  else
20637    ac_res=-l$ac_lib
20638    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20639  fi
20640  if ac_fn_c_try_link "$LINENO"; then :
20641  ac_cv_search_setusercontext=$ac_res
20642fi
20643rm -f core conftest.err conftest.$ac_objext \
20644    conftest$ac_exeext
20645  if ${ac_cv_search_setusercontext+:} false; then :
20646  break
20647fi
20648done
20649if ${ac_cv_search_setusercontext+:} false; then :
20650
20651else
20652  ac_cv_search_setusercontext=no
20653fi
20654rm conftest.$ac_ext
20655LIBS=$ac_func_search_save_LIBS
20656fi
20657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20658$as_echo "$ac_cv_search_setusercontext" >&6; }
20659ac_res=$ac_cv_search_setusercontext
20660if test "$ac_res" != no; then :
20661  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20662
20663fi
20664
20665for 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
20666do :
20667  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20669if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20670  cat >>confdefs.h <<_ACEOF
20671#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20672_ACEOF
20673
20674fi
20675done
20676
20677for ac_func in setresuid
20678do :
20679  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20680if test "x$ac_cv_func_setresuid" = xyes; then :
20681  cat >>confdefs.h <<_ACEOF
20682#define HAVE_SETRESUID 1
20683_ACEOF
20684
20685else
20686  for ac_func in setreuid
20687do :
20688  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20689if test "x$ac_cv_func_setreuid" = xyes; then :
20690  cat >>confdefs.h <<_ACEOF
20691#define HAVE_SETREUID 1
20692_ACEOF
20693
20694fi
20695done
20696
20697fi
20698done
20699
20700for ac_func in setresgid
20701do :
20702  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20703if test "x$ac_cv_func_setresgid" = xyes; then :
20704  cat >>confdefs.h <<_ACEOF
20705#define HAVE_SETRESGID 1
20706_ACEOF
20707
20708else
20709  for ac_func in setregid
20710do :
20711  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20712if test "x$ac_cv_func_setregid" = xyes; then :
20713  cat >>confdefs.h <<_ACEOF
20714#define HAVE_SETREGID 1
20715_ACEOF
20716
20717fi
20718done
20719
20720fi
20721done
20722
20723
20724# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20725if echo $host_os | grep darwin8 > /dev/null; then
20726
20727$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20728
20729fi
20730ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20731$ac_includes_default
20732#ifdef HAVE_NETINET_IN_H
20733#include <netinet/in.h>
20734#endif
20735
20736#ifdef HAVE_NETINET_TCP_H
20737#include <netinet/tcp.h>
20738#endif
20739
20740#ifdef HAVE_ARPA_INET_H
20741#include <arpa/inet.h>
20742#endif
20743
20744#ifdef HAVE_WINSOCK2_H
20745#include <winsock2.h>
20746#endif
20747
20748#ifdef HAVE_WS2TCPIP_H
20749#include <ws2tcpip.h>
20750#endif
20751
20752"
20753if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20754  ac_have_decl=1
20755else
20756  ac_have_decl=0
20757fi
20758
20759cat >>confdefs.h <<_ACEOF
20760#define HAVE_DECL_INET_PTON $ac_have_decl
20761_ACEOF
20762ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20763$ac_includes_default
20764#ifdef HAVE_NETINET_IN_H
20765#include <netinet/in.h>
20766#endif
20767
20768#ifdef HAVE_NETINET_TCP_H
20769#include <netinet/tcp.h>
20770#endif
20771
20772#ifdef HAVE_ARPA_INET_H
20773#include <arpa/inet.h>
20774#endif
20775
20776#ifdef HAVE_WINSOCK2_H
20777#include <winsock2.h>
20778#endif
20779
20780#ifdef HAVE_WS2TCPIP_H
20781#include <ws2tcpip.h>
20782#endif
20783
20784"
20785if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20786  ac_have_decl=1
20787else
20788  ac_have_decl=0
20789fi
20790
20791cat >>confdefs.h <<_ACEOF
20792#define HAVE_DECL_INET_NTOP $ac_have_decl
20793_ACEOF
20794
20795ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20796if test "x$ac_cv_func_inet_aton" = xyes; then :
20797  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20798
20799else
20800  case " $LIBOBJS " in
20801  *" inet_aton.$ac_objext "* ) ;;
20802  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20803 ;;
20804esac
20805
20806fi
20807
20808
20809ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20810if test "x$ac_cv_func_inet_pton" = xyes; then :
20811  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20812
20813else
20814  case " $LIBOBJS " in
20815  *" inet_pton.$ac_objext "* ) ;;
20816  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20817 ;;
20818esac
20819
20820fi
20821
20822
20823ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20824if test "x$ac_cv_func_inet_ntop" = xyes; then :
20825  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20826
20827else
20828  case " $LIBOBJS " in
20829  *" inet_ntop.$ac_objext "* ) ;;
20830  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20831 ;;
20832esac
20833
20834fi
20835
20836
20837ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20838if test "x$ac_cv_func_snprintf" = xyes; then :
20839  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20840
20841else
20842  case " $LIBOBJS " in
20843  *" snprintf.$ac_objext "* ) ;;
20844  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20845 ;;
20846esac
20847
20848fi
20849
20850
20851# test if snprintf return the proper length
20852if test "x$ac_cv_func_snprintf" = xyes; then
20853    if test c${cross_compiling} = cno; then
20854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20855$as_echo_n "checking for correct snprintf return value... " >&6; }
20856	if test "$cross_compiling" = yes; then :
20857  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20859as_fn_error $? "cannot run test program while cross compiling
20860See \`config.log' for more details" "$LINENO" 5; }
20861else
20862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863/* end confdefs.h.  */
20864$ac_includes_default
20865
20866int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20867
20868_ACEOF
20869if ac_fn_c_try_run "$LINENO"; then :
20870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20871$as_echo "yes" >&6; }
20872else
20873
20874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875$as_echo "no" >&6; }
20876
20877$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20878
20879		case " $LIBOBJS " in
20880  *" snprintf.$ac_objext "* ) ;;
20881  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20882 ;;
20883esac
20884
20885
20886fi
20887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20888  conftest.$ac_objext conftest.beam conftest.$ac_ext
20889fi
20890
20891    fi
20892fi
20893ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20894if test "x$ac_cv_func_strlcat" = xyes; then :
20895  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20896
20897else
20898  case " $LIBOBJS " in
20899  *" strlcat.$ac_objext "* ) ;;
20900  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20901 ;;
20902esac
20903
20904fi
20905
20906
20907ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20908if test "x$ac_cv_func_strlcpy" = xyes; then :
20909  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20910
20911else
20912  case " $LIBOBJS " in
20913  *" strlcpy.$ac_objext "* ) ;;
20914  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20915 ;;
20916esac
20917
20918fi
20919
20920
20921ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20922if test "x$ac_cv_func_memmove" = xyes; then :
20923  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20924
20925else
20926  case " $LIBOBJS " in
20927  *" memmove.$ac_objext "* ) ;;
20928  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20929 ;;
20930esac
20931
20932fi
20933
20934
20935ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20936if test "x$ac_cv_func_gmtime_r" = xyes; then :
20937  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20938
20939else
20940  case " $LIBOBJS " in
20941  *" gmtime_r.$ac_objext "* ) ;;
20942  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20943 ;;
20944esac
20945
20946fi
20947
20948
20949ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20950if test "x$ac_cv_func_isblank" = xyes; then :
20951  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20952
20953else
20954  case " $LIBOBJS " in
20955  *" isblank.$ac_objext "* ) ;;
20956  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20957 ;;
20958esac
20959
20960fi
20961
20962
20963ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20964if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20965  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20966
20967else
20968  case " $LIBOBJS " in
20969  *" explicit_bzero.$ac_objext "* ) ;;
20970  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20971 ;;
20972esac
20973
20974fi
20975
20976
20977LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20978
20979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20980$as_echo_n "checking for reallocarray... " >&6; }
20981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982/* end confdefs.h.  */
20983$ac_includes_default
20984
20985#ifndef _OPENBSD_SOURCE
20986#define _OPENBSD_SOURCE 1
20987#endif
20988#include <stdlib.h>
20989int main(void) {
20990	void* p = reallocarray(NULL, 10, 100);
20991	free(p);
20992	return 0;
20993}
20994
20995_ACEOF
20996if ac_fn_c_try_link "$LINENO"; then :
20997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20998$as_echo "yes" >&6; }
20999
21000$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21001
21002
21003else
21004
21005	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21006$as_echo "no" >&6; }
21007	case " $LIBOBJS " in
21008  *" reallocarray.$ac_objext "* ) ;;
21009  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21010 ;;
21011esac
21012
21013
21014fi
21015rm -f core conftest.err conftest.$ac_objext \
21016    conftest$ac_exeext conftest.$ac_ext
21017ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
21018if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
21019  ac_have_decl=1
21020else
21021  ac_have_decl=0
21022fi
21023
21024cat >>confdefs.h <<_ACEOF
21025#define HAVE_DECL_REALLOCARRAY $ac_have_decl
21026_ACEOF
21027
21028if test "$USE_NSS" = "no"; then
21029	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21030if test "x$ac_cv_func_arc4random" = xyes; then :
21031  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21032
21033else
21034  case " $LIBOBJS " in
21035  *" arc4random.$ac_objext "* ) ;;
21036  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
21037 ;;
21038esac
21039
21040fi
21041
21042
21043	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
21044if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
21045  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
21046
21047else
21048  case " $LIBOBJS " in
21049  *" arc4random_uniform.$ac_objext "* ) ;;
21050  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
21051 ;;
21052esac
21053
21054fi
21055
21056
21057	if test "$ac_cv_func_arc4random" = "no"; then
21058		case " $LIBOBJS " in
21059  *" arc4_lock.$ac_objext "* ) ;;
21060  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
21061 ;;
21062esac
21063
21064		for ac_func in getentropy
21065do :
21066  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21067if test "x$ac_cv_func_getentropy" = xyes; then :
21068  cat >>confdefs.h <<_ACEOF
21069#define HAVE_GETENTROPY 1
21070_ACEOF
21071
21072else
21073
21074		    if test "$USE_WINSOCK" = 1; then
21075			case " $LIBOBJS " in
21076  *" getentropy_win.$ac_objext "* ) ;;
21077  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
21078 ;;
21079esac
21080
21081		    else
21082			case "$host" in
21083			Darwin|*darwin*)
21084				case " $LIBOBJS " in
21085  *" getentropy_osx.$ac_objext "* ) ;;
21086  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
21087 ;;
21088esac
21089
21090			;;
21091			*solaris*|*sunos*|SunOS)
21092				case " $LIBOBJS " in
21093  *" getentropy_solaris.$ac_objext "* ) ;;
21094  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
21095 ;;
21096esac
21097
21098				for ac_header in sys/sha2.h
21099do :
21100  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
21101"
21102if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
21103  cat >>confdefs.h <<_ACEOF
21104#define HAVE_SYS_SHA2_H 1
21105_ACEOF
21106
21107else
21108
21109					for ac_func in SHA512_Update
21110do :
21111  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21112if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21113  cat >>confdefs.h <<_ACEOF
21114#define HAVE_SHA512_UPDATE 1
21115_ACEOF
21116
21117else
21118
21119						case " $LIBOBJS " in
21120  *" sha512.$ac_objext "* ) ;;
21121  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21122 ;;
21123esac
21124
21125
21126fi
21127done
21128
21129
21130fi
21131
21132done
21133
21134				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
21135					# this lib needed for sha2 on solaris
21136					LIBS="$LIBS -lmd"
21137				fi
21138				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21139$as_echo_n "checking for library containing clock_gettime... " >&6; }
21140if ${ac_cv_search_clock_gettime+:} false; then :
21141  $as_echo_n "(cached) " >&6
21142else
21143  ac_func_search_save_LIBS=$LIBS
21144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145/* end confdefs.h.  */
21146
21147/* Override any GCC internal prototype to avoid an error.
21148   Use char because int might match the return type of a GCC
21149   builtin and then its argument prototype would still apply.  */
21150#ifdef __cplusplus
21151extern "C"
21152#endif
21153char clock_gettime ();
21154int
21155main ()
21156{
21157return clock_gettime ();
21158  ;
21159  return 0;
21160}
21161_ACEOF
21162for ac_lib in '' rt; do
21163  if test -z "$ac_lib"; then
21164    ac_res="none required"
21165  else
21166    ac_res=-l$ac_lib
21167    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21168  fi
21169  if ac_fn_c_try_link "$LINENO"; then :
21170  ac_cv_search_clock_gettime=$ac_res
21171fi
21172rm -f core conftest.err conftest.$ac_objext \
21173    conftest$ac_exeext
21174  if ${ac_cv_search_clock_gettime+:} false; then :
21175  break
21176fi
21177done
21178if ${ac_cv_search_clock_gettime+:} false; then :
21179
21180else
21181  ac_cv_search_clock_gettime=no
21182fi
21183rm conftest.$ac_ext
21184LIBS=$ac_func_search_save_LIBS
21185fi
21186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21187$as_echo "$ac_cv_search_clock_gettime" >&6; }
21188ac_res=$ac_cv_search_clock_gettime
21189if test "$ac_res" != no; then :
21190  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21191
21192fi
21193
21194			;;
21195			*freebsd*|*FreeBSD)
21196				case " $LIBOBJS " in
21197  *" getentropy_freebsd.$ac_objext "* ) ;;
21198  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21199 ;;
21200esac
21201
21202			;;
21203			*linux*|Linux|*)
21204				case " $LIBOBJS " in
21205  *" getentropy_linux.$ac_objext "* ) ;;
21206  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21207 ;;
21208esac
21209
21210				for ac_func in SHA512_Update
21211do :
21212  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21213if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21214  cat >>confdefs.h <<_ACEOF
21215#define HAVE_SHA512_UPDATE 1
21216_ACEOF
21217
21218else
21219
21220
21221$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21222
21223					case " $LIBOBJS " in
21224  *" sha512.$ac_objext "* ) ;;
21225  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21226 ;;
21227esac
21228
21229
21230fi
21231done
21232
21233				for ac_header in sys/sysctl.h
21234do :
21235  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21236"
21237if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21238  cat >>confdefs.h <<_ACEOF
21239#define HAVE_SYS_SYSCTL_H 1
21240_ACEOF
21241
21242fi
21243
21244done
21245
21246				for ac_func in getauxval
21247do :
21248  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21249if test "x$ac_cv_func_getauxval" = xyes; then :
21250  cat >>confdefs.h <<_ACEOF
21251#define HAVE_GETAUXVAL 1
21252_ACEOF
21253
21254fi
21255done
21256
21257				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21258$as_echo_n "checking for library containing clock_gettime... " >&6; }
21259if ${ac_cv_search_clock_gettime+:} false; then :
21260  $as_echo_n "(cached) " >&6
21261else
21262  ac_func_search_save_LIBS=$LIBS
21263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264/* end confdefs.h.  */
21265
21266/* Override any GCC internal prototype to avoid an error.
21267   Use char because int might match the return type of a GCC
21268   builtin and then its argument prototype would still apply.  */
21269#ifdef __cplusplus
21270extern "C"
21271#endif
21272char clock_gettime ();
21273int
21274main ()
21275{
21276return clock_gettime ();
21277  ;
21278  return 0;
21279}
21280_ACEOF
21281for ac_lib in '' rt; do
21282  if test -z "$ac_lib"; then
21283    ac_res="none required"
21284  else
21285    ac_res=-l$ac_lib
21286    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21287  fi
21288  if ac_fn_c_try_link "$LINENO"; then :
21289  ac_cv_search_clock_gettime=$ac_res
21290fi
21291rm -f core conftest.err conftest.$ac_objext \
21292    conftest$ac_exeext
21293  if ${ac_cv_search_clock_gettime+:} false; then :
21294  break
21295fi
21296done
21297if ${ac_cv_search_clock_gettime+:} false; then :
21298
21299else
21300  ac_cv_search_clock_gettime=no
21301fi
21302rm conftest.$ac_ext
21303LIBS=$ac_func_search_save_LIBS
21304fi
21305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21306$as_echo "$ac_cv_search_clock_gettime" >&6; }
21307ac_res=$ac_cv_search_clock_gettime
21308if test "$ac_res" != no; then :
21309  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21310
21311fi
21312
21313			;;
21314			esac
21315		    fi
21316
21317fi
21318done
21319
21320	fi
21321fi
21322LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21323
21324ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21325if test "x$ac_cv_func_ctime_r" = xyes; then :
21326  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21327
21328else
21329  case " $LIBOBJS " in
21330  *" ctime_r.$ac_objext "* ) ;;
21331  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21332 ;;
21333esac
21334
21335fi
21336
21337
21338ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21339if test "x$ac_cv_func_strsep" = xyes; then :
21340  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21341
21342else
21343  case " $LIBOBJS " in
21344  *" strsep.$ac_objext "* ) ;;
21345  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21346 ;;
21347esac
21348
21349fi
21350
21351
21352
21353# Check whether --enable-allsymbols was given.
21354if test "${enable_allsymbols+set}" = set; then :
21355  enableval=$enable_allsymbols;
21356fi
21357
21358case "$enable_allsymbols" in
21359	yes)
21360	COMMON_OBJ_ALL_SYMBOLS=""
21361	UBSYMS=""
21362	EXTRALINK="libunbound.la"
21363
21364$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21365
21366	;;
21367	no|*)
21368	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21369	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21370	EXTRALINK=""
21371	;;
21372esac
21373
21374
21375
21376if test x_$enable_lock_checks = x_yes; then
21377	UBSYMS="-export-symbols clubsyms.def"
21378	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21379	echo lock_protect >> clubsyms.def
21380	echo lock_unprotect >> clubsyms.def
21381	echo lock_get_mem >> clubsyms.def
21382	echo checklock_start >> clubsyms.def
21383	echo checklock_stop >> clubsyms.def
21384	echo checklock_lock >> clubsyms.def
21385	echo checklock_unlock >> clubsyms.def
21386	echo checklock_init >> clubsyms.def
21387	echo checklock_thrcreate >> clubsyms.def
21388	echo checklock_thrjoin >> clubsyms.def
21389fi
21390
21391# check for dnstap if requested
21392
21393  # Check whether --enable-dnstap was given.
21394if test "${enable_dnstap+set}" = set; then :
21395  enableval=$enable_dnstap; opt_dnstap=$enableval
21396else
21397  opt_dnstap=no
21398fi
21399
21400
21401
21402# Check whether --with-dnstap-socket-path was given.
21403if test "${with_dnstap_socket_path+set}" = set; then :
21404  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21405else
21406  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21407fi
21408
21409
21410  if test "x$opt_dnstap" != "xno"; then
21411    # Extract the first word of "protoc-c", so it can be a program name with args.
21412set dummy protoc-c; ac_word=$2
21413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21414$as_echo_n "checking for $ac_word... " >&6; }
21415if ${ac_cv_path_PROTOC_C+:} false; then :
21416  $as_echo_n "(cached) " >&6
21417else
21418  case $PROTOC_C in
21419  [\\/]* | ?:[\\/]*)
21420  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21421  ;;
21422  *)
21423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21424for as_dir in $PATH
21425do
21426  IFS=$as_save_IFS
21427  test -z "$as_dir" && as_dir=.
21428    for ac_exec_ext in '' $ac_executable_extensions; do
21429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21430    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21432    break 2
21433  fi
21434done
21435  done
21436IFS=$as_save_IFS
21437
21438  ;;
21439esac
21440fi
21441PROTOC_C=$ac_cv_path_PROTOC_C
21442if test -n "$PROTOC_C"; then
21443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21444$as_echo "$PROTOC_C" >&6; }
21445else
21446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21447$as_echo "no" >&6; }
21448fi
21449
21450
21451    if test -z "$PROTOC_C"; then
21452      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21453    fi
21454
21455# Check whether --with-protobuf-c was given.
21456if test "${with_protobuf_c+set}" = set; then :
21457  withval=$with_protobuf_c;
21458	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21459	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21460	    CFLAGS="$CFLAGS -I$withval/include/google"
21461	  else
21462	    CFLAGS="$CFLAGS -I$withval/include"
21463	  fi
21464	  LDFLAGS="$LDFLAGS -L$withval/lib"
21465
21466else
21467
21468	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21469	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21470	    CFLAGS="$CFLAGS -I/usr/include/google"
21471	  else
21472	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21473	      CFLAGS="$CFLAGS -I/usr/local/include/google"
21474	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
21475	    fi
21476	  fi
21477
21478fi
21479
21480    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21481$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21482if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21483  $as_echo_n "(cached) " >&6
21484else
21485  ac_func_search_save_LIBS=$LIBS
21486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487/* end confdefs.h.  */
21488
21489/* Override any GCC internal prototype to avoid an error.
21490   Use char because int might match the return type of a GCC
21491   builtin and then its argument prototype would still apply.  */
21492#ifdef __cplusplus
21493extern "C"
21494#endif
21495char protobuf_c_message_pack ();
21496int
21497main ()
21498{
21499return protobuf_c_message_pack ();
21500  ;
21501  return 0;
21502}
21503_ACEOF
21504for ac_lib in '' protobuf-c; do
21505  if test -z "$ac_lib"; then
21506    ac_res="none required"
21507  else
21508    ac_res=-l$ac_lib
21509    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21510  fi
21511  if ac_fn_c_try_link "$LINENO"; then :
21512  ac_cv_search_protobuf_c_message_pack=$ac_res
21513fi
21514rm -f core conftest.err conftest.$ac_objext \
21515    conftest$ac_exeext
21516  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21517  break
21518fi
21519done
21520if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21521
21522else
21523  ac_cv_search_protobuf_c_message_pack=no
21524fi
21525rm conftest.$ac_ext
21526LIBS=$ac_func_search_save_LIBS
21527fi
21528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21529$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21530ac_res=$ac_cv_search_protobuf_c_message_pack
21531if test "$ac_res" != no; then :
21532  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21533
21534else
21535  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21536fi
21537
21538
21539
21540$as_echo "#define USE_DNSTAP 1" >>confdefs.h
21541
21542        ENABLE_DNSTAP=1
21543
21544
21545
21546        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21547
21548
21549cat >>confdefs.h <<_ACEOF
21550#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21551_ACEOF
21552
21553	DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21554
21555	DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21556
21557        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21558
21559        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21560
21561
21562  else
21563
21564        ENABLE_DNSTAP=0
21565
21566
21567
21568  fi
21569
21570
21571# check for dnscrypt if requested
21572
21573  # Check whether --enable-dnscrypt was given.
21574if test "${enable_dnscrypt+set}" = set; then :
21575  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21576else
21577  opt_dnscrypt=no
21578fi
21579
21580
21581  if test "x$opt_dnscrypt" != "xno"; then
21582
21583# Check whether --with-libsodium was given.
21584if test "${with_libsodium+set}" = set; then :
21585  withval=$with_libsodium;
21586	CFLAGS="$CFLAGS -I$withval/include"
21587	LDFLAGS="$LDFLAGS -L$withval/lib"
21588
21589fi
21590
21591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21592$as_echo_n "checking for library containing sodium_init... " >&6; }
21593if ${ac_cv_search_sodium_init+:} false; then :
21594  $as_echo_n "(cached) " >&6
21595else
21596  ac_func_search_save_LIBS=$LIBS
21597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598/* end confdefs.h.  */
21599
21600/* Override any GCC internal prototype to avoid an error.
21601   Use char because int might match the return type of a GCC
21602   builtin and then its argument prototype would still apply.  */
21603#ifdef __cplusplus
21604extern "C"
21605#endif
21606char sodium_init ();
21607int
21608main ()
21609{
21610return sodium_init ();
21611  ;
21612  return 0;
21613}
21614_ACEOF
21615for ac_lib in '' sodium; do
21616  if test -z "$ac_lib"; then
21617    ac_res="none required"
21618  else
21619    ac_res=-l$ac_lib
21620    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21621  fi
21622  if ac_fn_c_try_link "$LINENO"; then :
21623  ac_cv_search_sodium_init=$ac_res
21624fi
21625rm -f core conftest.err conftest.$ac_objext \
21626    conftest$ac_exeext
21627  if ${ac_cv_search_sodium_init+:} false; then :
21628  break
21629fi
21630done
21631if ${ac_cv_search_sodium_init+:} false; then :
21632
21633else
21634  ac_cv_search_sodium_init=no
21635fi
21636rm conftest.$ac_ext
21637LIBS=$ac_func_search_save_LIBS
21638fi
21639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21640$as_echo "$ac_cv_search_sodium_init" >&6; }
21641ac_res=$ac_cv_search_sodium_init
21642if test "$ac_res" != no; then :
21643  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21644
21645else
21646  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21647fi
21648
21649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21650$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21651if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21652  $as_echo_n "(cached) " >&6
21653else
21654  ac_func_search_save_LIBS=$LIBS
21655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656/* end confdefs.h.  */
21657
21658/* Override any GCC internal prototype to avoid an error.
21659   Use char because int might match the return type of a GCC
21660   builtin and then its argument prototype would still apply.  */
21661#ifdef __cplusplus
21662extern "C"
21663#endif
21664char crypto_box_curve25519xchacha20poly1305_beforenm ();
21665int
21666main ()
21667{
21668return crypto_box_curve25519xchacha20poly1305_beforenm ();
21669  ;
21670  return 0;
21671}
21672_ACEOF
21673for ac_lib in '' sodium; do
21674  if test -z "$ac_lib"; then
21675    ac_res="none required"
21676  else
21677    ac_res=-l$ac_lib
21678    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21679  fi
21680  if ac_fn_c_try_link "$LINENO"; then :
21681  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21682fi
21683rm -f core conftest.err conftest.$ac_objext \
21684    conftest$ac_exeext
21685  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21686  break
21687fi
21688done
21689if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21690
21691else
21692  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21693fi
21694rm conftest.$ac_ext
21695LIBS=$ac_func_search_save_LIBS
21696fi
21697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21698$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21699ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21700if test "$ac_res" != no; then :
21701  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21702
21703            ENABLE_DNSCRYPT_XCHACHA20=1
21704
21705
21706$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21707
21708
21709else
21710
21711            ENABLE_DNSCRYPT_XCHACHA20=0
21712
21713
21714fi
21715
21716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21717$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21718if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21719  $as_echo_n "(cached) " >&6
21720else
21721  ac_func_search_save_LIBS=$LIBS
21722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723/* end confdefs.h.  */
21724
21725/* Override any GCC internal prototype to avoid an error.
21726   Use char because int might match the return type of a GCC
21727   builtin and then its argument prototype would still apply.  */
21728#ifdef __cplusplus
21729extern "C"
21730#endif
21731char sodium_set_misuse_handler ();
21732int
21733main ()
21734{
21735return sodium_set_misuse_handler ();
21736  ;
21737  return 0;
21738}
21739_ACEOF
21740for ac_lib in '' sodium; do
21741  if test -z "$ac_lib"; then
21742    ac_res="none required"
21743  else
21744    ac_res=-l$ac_lib
21745    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21746  fi
21747  if ac_fn_c_try_link "$LINENO"; then :
21748  ac_cv_search_sodium_set_misuse_handler=$ac_res
21749fi
21750rm -f core conftest.err conftest.$ac_objext \
21751    conftest$ac_exeext
21752  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21753  break
21754fi
21755done
21756if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21757
21758else
21759  ac_cv_search_sodium_set_misuse_handler=no
21760fi
21761rm conftest.$ac_ext
21762LIBS=$ac_func_search_save_LIBS
21763fi
21764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21765$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21766ac_res=$ac_cv_search_sodium_set_misuse_handler
21767if test "$ac_res" != no; then :
21768  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21769
21770
21771$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21772
21773
21774fi
21775
21776
21777
21778$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21779
21780        ENABLE_DNSCRYPT=1
21781
21782
21783        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21784
21785        DNSCRYPT_OBJ="dnscrypt.lo"
21786
21787
21788  else
21789    ENABLE_DNSCRYPT_XCHACHA20=0
21790
21791
21792        ENABLE_DNSCRYPT=0
21793
21794
21795
21796  fi
21797
21798
21799# check for cachedb if requested
21800# Check whether --enable-cachedb was given.
21801if test "${enable_cachedb+set}" = set; then :
21802  enableval=$enable_cachedb;
21803fi
21804
21805# turn on cachedb when hiredis support is enabled.
21806if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21807case "$enable_cachedb" in
21808    yes)
21809
21810$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21811
21812	CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21813
21814	CACHEDB_OBJ="cachedb.lo redis.lo"
21815
21816    	;;
21817    no|*)
21818    	# nothing
21819    	;;
21820esac
21821
21822# check for ipsecmod if requested
21823# Check whether --enable-ipsecmod was given.
21824if test "${enable_ipsecmod+set}" = set; then :
21825  enableval=$enable_ipsecmod;
21826fi
21827
21828case "$enable_ipsecmod" in
21829	yes)
21830
21831$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21832
21833		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21834
21835		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21836
21837		;;
21838	no|*)
21839		# nothing
21840		;;
21841esac
21842
21843# check for ipset if requested
21844# Check whether --enable-ipset was given.
21845if test "${enable_ipset+set}" = set; then :
21846  enableval=$enable_ipset;
21847fi
21848
21849case "$enable_ipset" in
21850    yes)
21851
21852$as_echo "#define USE_IPSET 1" >>confdefs.h
21853
21854		IPSET_SRC="ipset/ipset.c"
21855
21856		IPSET_OBJ="ipset.lo"
21857
21858
21859		# mnl
21860
21861# Check whether --with-libmnl was given.
21862if test "${with_libmnl+set}" = set; then :
21863  withval=$with_libmnl;
21864else
21865   withval="yes"
21866fi
21867
21868		found_libmnl="no"
21869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21870$as_echo_n "checking for libmnl... " >&6; }
21871		if test x_$withval = x_ -o x_$withval = x_yes; then
21872			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21873		fi
21874		for dir in $withval ; do
21875			if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21876				found_libmnl="yes"
21877								extralibmnl=""
21878				if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21879					extralibmnl="/libmnl"
21880				fi
21881				if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21882					CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21883				fi
21884				if test "$dir" != "/usr"; then
21885					LDFLAGS="$LDFLAGS -L$dir/lib"
21886				fi
21887				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21888$as_echo "found in $dir" >&6; }
21889				LIBS="$LIBS -lmnl"
21890				break;
21891			fi
21892		done
21893		if test x_$found_libmnl != x_yes; then
21894			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21895		fi
21896		;;
21897    no|*)
21898    	# nothing
21899		;;
21900esac
21901# Check whether --enable-explicit-port-randomisation was given.
21902if test "${enable_explicit_port_randomisation+set}" = set; then :
21903  enableval=$enable_explicit_port_randomisation;
21904fi
21905
21906case "$enable_explicit_port_randomisation" in
21907	no)
21908
21909$as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21910
21911		;;
21912	yes|*)
21913		;;
21914esac
21915
21916if echo "$host" | $GREP -i -e linux >/dev/null; then
21917	# Check whether --enable-linux-ip-local-port-range was given.
21918if test "${enable_linux_ip_local_port_range+set}" = set; then :
21919  enableval=$enable_linux_ip_local_port_range;
21920fi
21921
21922	case "$enable_linux_ip_local_port_range" in
21923		yes)
21924
21925$as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21926
21927			;;
21928		no|*)
21929			;;
21930	esac
21931fi
21932
21933
21934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21935$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21936# on openBSD, the implicit rule make $< work.
21937# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21938# gmake works.
21939cat >conftest.make <<EOF
21940all:	conftest.lo
21941
21942conftest.lo foo.lo bla.lo:
21943	if test -f "\$<"; then touch \$@; fi
21944
21945.SUFFIXES: .lo
21946.c.lo:
21947	if test -f "\$<"; then touch \$@; fi
21948
21949conftest.lo:        conftest.dir/conftest.c
21950EOF
21951mkdir conftest.dir
21952touch conftest.dir/conftest.c
21953rm -f conftest.lo conftest.c
21954${MAKE:-make} -f conftest.make >/dev/null
21955rm -f conftest.make conftest.c conftest.dir/conftest.c
21956rm -rf conftest.dir
21957if test ! -f conftest.lo; then
21958	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21959$as_echo "no" >&6; }
21960	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21961	SOURCEFILE='`cat .source`'
21962else
21963	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21964$as_echo "yes" >&6; }
21965	SOURCEDETERMINE=':'
21966	SOURCEFILE='$<'
21967fi
21968rm -f conftest.lo
21969
21970
21971
21972# see if we want to build the library or everything
21973ALLTARGET="alltargets"
21974INSTALLTARGET="install-all"
21975
21976# Check whether --with-libunbound-only was given.
21977if test "${with_libunbound_only+set}" = set; then :
21978  withval=$with_libunbound_only;
21979	if test "$withval" = "yes"; then
21980		ALLTARGET="lib"
21981		INSTALLTARGET="install-lib"
21982	fi
21983
21984fi
21985
21986if test $ALLTARGET = "alltargets"; then
21987	if test $USE_NSS = "yes"; then
21988		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21989	fi
21990	if test $USE_NETTLE = "yes"; then
21991		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21992	fi
21993fi
21994
21995
21996
21997
21998
21999  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
22000$as_echo "$as_me: Stripping extension flags..." >&6;}
22001
22002  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
22003    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
22004
22005$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
22006
22007  fi
22008
22009
22010  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
22011    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
22012
22013$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
22014
22015  fi
22016
22017
22018  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
22019    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
22020
22021$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
22022
22023  fi
22024
22025
22026  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
22027    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
22028
22029$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
22030
22031  fi
22032
22033
22034  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
22035    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
22036
22037$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
22038
22039  fi
22040
22041
22042  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
22043    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
22044
22045$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
22046
22047  fi
22048
22049
22050  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
22051    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
22052
22053$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
22054
22055  fi
22056
22057
22058  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
22059    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
22060
22061$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
22062
22063  fi
22064
22065
22066  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
22067    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
22068
22069$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
22070
22071  fi
22072
22073
22074if test -n "$LATE_LDFLAGS"; then
22075  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
22076fi
22077# remove start spaces
22078LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
22079LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
22080
22081
22082cat >>confdefs.h <<_ACEOF
22083#define MAXSYSLOGMSGLEN 10240
22084_ACEOF
22085
22086
22087
22088
22089version=1.17.1
22090
22091date=`date +'%b %e, %Y'`
22092
22093
22094ac_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"
22095
22096ac_config_headers="$ac_config_headers config.h"
22097
22098cat >confcache <<\_ACEOF
22099# This file is a shell script that caches the results of configure
22100# tests run on this system so they can be shared between configure
22101# scripts and configure runs, see configure's option --config-cache.
22102# It is not useful on other systems.  If it contains results you don't
22103# want to keep, you may remove or edit it.
22104#
22105# config.status only pays attention to the cache file if you give it
22106# the --recheck option to rerun configure.
22107#
22108# `ac_cv_env_foo' variables (set or unset) will be overridden when
22109# loading this file, other *unset* `ac_cv_foo' will be assigned the
22110# following values.
22111
22112_ACEOF
22113
22114# The following way of writing the cache mishandles newlines in values,
22115# but we know of no workaround that is simple, portable, and efficient.
22116# So, we kill variables containing newlines.
22117# Ultrix sh set writes to stderr and can't be redirected directly,
22118# and sets the high bit in the cache file unless we assign to the vars.
22119(
22120  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22121    eval ac_val=\$$ac_var
22122    case $ac_val in #(
22123    *${as_nl}*)
22124      case $ac_var in #(
22125      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22127      esac
22128      case $ac_var in #(
22129      _ | IFS | as_nl) ;; #(
22130      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22131      *) { eval $ac_var=; unset $ac_var;} ;;
22132      esac ;;
22133    esac
22134  done
22135
22136  (set) 2>&1 |
22137    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22138    *${as_nl}ac_space=\ *)
22139      # `set' does not quote correctly, so add quotes: double-quote
22140      # substitution turns \\\\ into \\, and sed turns \\ into \.
22141      sed -n \
22142	"s/'/'\\\\''/g;
22143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22144      ;; #(
22145    *)
22146      # `set' quotes correctly as required by POSIX, so do not add quotes.
22147      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22148      ;;
22149    esac |
22150    sort
22151) |
22152  sed '
22153     /^ac_cv_env_/b end
22154     t clear
22155     :clear
22156     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22157     t end
22158     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22159     :end' >>confcache
22160if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22161  if test -w "$cache_file"; then
22162    if test "x$cache_file" != "x/dev/null"; then
22163      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22164$as_echo "$as_me: updating cache $cache_file" >&6;}
22165      if test ! -f "$cache_file" || test -h "$cache_file"; then
22166	cat confcache >"$cache_file"
22167      else
22168        case $cache_file in #(
22169        */* | ?:*)
22170	  mv -f confcache "$cache_file"$$ &&
22171	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22172        *)
22173	  mv -f confcache "$cache_file" ;;
22174	esac
22175      fi
22176    fi
22177  else
22178    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22179$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22180  fi
22181fi
22182rm -f confcache
22183
22184test "x$prefix" = xNONE && prefix=$ac_default_prefix
22185# Let make expand exec_prefix.
22186test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22187
22188DEFS=-DHAVE_CONFIG_H
22189
22190ac_libobjs=
22191ac_ltlibobjs=
22192U=
22193for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22194  # 1. Remove the extension, and $U if already installed.
22195  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22196  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22197  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22198  #    will be set to the directory where LIBOBJS objects are built.
22199  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22200  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22201done
22202LIBOBJS=$ac_libobjs
22203
22204LTLIBOBJS=$ac_ltlibobjs
22205
22206
22207if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22208  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22209Usually this means the macro was only invoked conditionally." "$LINENO" 5
22210fi
22211
22212: "${CONFIG_STATUS=./config.status}"
22213ac_write_fail=0
22214ac_clean_files_save=$ac_clean_files
22215ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22217$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22218as_write_fail=0
22219cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22220#! $SHELL
22221# Generated by $as_me.
22222# Run this file to recreate the current configuration.
22223# Compiler output produced by configure, useful for debugging
22224# configure, is in config.log if it exists.
22225
22226debug=false
22227ac_cs_recheck=false
22228ac_cs_silent=false
22229
22230SHELL=\${CONFIG_SHELL-$SHELL}
22231export SHELL
22232_ASEOF
22233cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22234## -------------------- ##
22235## M4sh Initialization. ##
22236## -------------------- ##
22237
22238# Be more Bourne compatible
22239DUALCASE=1; export DUALCASE # for MKS sh
22240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22241  emulate sh
22242  NULLCMD=:
22243  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22244  # is contrary to our usage.  Disable this feature.
22245  alias -g '${1+"$@"}'='"$@"'
22246  setopt NO_GLOB_SUBST
22247else
22248  case `(set -o) 2>/dev/null` in #(
22249  *posix*) :
22250    set -o posix ;; #(
22251  *) :
22252     ;;
22253esac
22254fi
22255
22256
22257as_nl='
22258'
22259export as_nl
22260# Printing a long string crashes Solaris 7 /usr/bin/printf.
22261as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22262as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22264# Prefer a ksh shell builtin over an external printf program on Solaris,
22265# but without wasting forks for bash or zsh.
22266if test -z "$BASH_VERSION$ZSH_VERSION" \
22267    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22268  as_echo='print -r --'
22269  as_echo_n='print -rn --'
22270elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22271  as_echo='printf %s\n'
22272  as_echo_n='printf %s'
22273else
22274  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22275    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22276    as_echo_n='/usr/ucb/echo -n'
22277  else
22278    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22279    as_echo_n_body='eval
22280      arg=$1;
22281      case $arg in #(
22282      *"$as_nl"*)
22283	expr "X$arg" : "X\\(.*\\)$as_nl";
22284	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22285      esac;
22286      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22287    '
22288    export as_echo_n_body
22289    as_echo_n='sh -c $as_echo_n_body as_echo'
22290  fi
22291  export as_echo_body
22292  as_echo='sh -c $as_echo_body as_echo'
22293fi
22294
22295# The user is always right.
22296if test "${PATH_SEPARATOR+set}" != set; then
22297  PATH_SEPARATOR=:
22298  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22299    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22300      PATH_SEPARATOR=';'
22301  }
22302fi
22303
22304
22305# IFS
22306# We need space, tab and new line, in precisely that order.  Quoting is
22307# there to prevent editors from complaining about space-tab.
22308# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22309# splitting by setting IFS to empty value.)
22310IFS=" ""	$as_nl"
22311
22312# Find who we are.  Look in the path if we contain no directory separator.
22313as_myself=
22314case $0 in #((
22315  *[\\/]* ) as_myself=$0 ;;
22316  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22317for as_dir in $PATH
22318do
22319  IFS=$as_save_IFS
22320  test -z "$as_dir" && as_dir=.
22321    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22322  done
22323IFS=$as_save_IFS
22324
22325     ;;
22326esac
22327# We did not find ourselves, most probably we were run as `sh COMMAND'
22328# in which case we are not to be found in the path.
22329if test "x$as_myself" = x; then
22330  as_myself=$0
22331fi
22332if test ! -f "$as_myself"; then
22333  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22334  exit 1
22335fi
22336
22337# Unset variables that we do not need and which cause bugs (e.g. in
22338# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22339# suppresses any "Segmentation fault" message there.  '((' could
22340# trigger a bug in pdksh 5.2.14.
22341for as_var in BASH_ENV ENV MAIL MAILPATH
22342do eval test x\${$as_var+set} = xset \
22343  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22344done
22345PS1='$ '
22346PS2='> '
22347PS4='+ '
22348
22349# NLS nuisances.
22350LC_ALL=C
22351export LC_ALL
22352LANGUAGE=C
22353export LANGUAGE
22354
22355# CDPATH.
22356(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22357
22358
22359# as_fn_error STATUS ERROR [LINENO LOG_FD]
22360# ----------------------------------------
22361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22363# script with STATUS, using 1 if that was 0.
22364as_fn_error ()
22365{
22366  as_status=$1; test $as_status -eq 0 && as_status=1
22367  if test "$4"; then
22368    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22370  fi
22371  $as_echo "$as_me: error: $2" >&2
22372  as_fn_exit $as_status
22373} # as_fn_error
22374
22375
22376# as_fn_set_status STATUS
22377# -----------------------
22378# Set $? to STATUS, without forking.
22379as_fn_set_status ()
22380{
22381  return $1
22382} # as_fn_set_status
22383
22384# as_fn_exit STATUS
22385# -----------------
22386# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22387as_fn_exit ()
22388{
22389  set +e
22390  as_fn_set_status $1
22391  exit $1
22392} # as_fn_exit
22393
22394# as_fn_unset VAR
22395# ---------------
22396# Portably unset VAR.
22397as_fn_unset ()
22398{
22399  { eval $1=; unset $1;}
22400}
22401as_unset=as_fn_unset
22402# as_fn_append VAR VALUE
22403# ----------------------
22404# Append the text in VALUE to the end of the definition contained in VAR. Take
22405# advantage of any shell optimizations that allow amortized linear growth over
22406# repeated appends, instead of the typical quadratic growth present in naive
22407# implementations.
22408if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22409  eval 'as_fn_append ()
22410  {
22411    eval $1+=\$2
22412  }'
22413else
22414  as_fn_append ()
22415  {
22416    eval $1=\$$1\$2
22417  }
22418fi # as_fn_append
22419
22420# as_fn_arith ARG...
22421# ------------------
22422# Perform arithmetic evaluation on the ARGs, and store the result in the
22423# global $as_val. Take advantage of shells that can avoid forks. The arguments
22424# must be portable across $(()) and expr.
22425if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22426  eval 'as_fn_arith ()
22427  {
22428    as_val=$(( $* ))
22429  }'
22430else
22431  as_fn_arith ()
22432  {
22433    as_val=`expr "$@" || test $? -eq 1`
22434  }
22435fi # as_fn_arith
22436
22437
22438if expr a : '\(a\)' >/dev/null 2>&1 &&
22439   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22440  as_expr=expr
22441else
22442  as_expr=false
22443fi
22444
22445if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22446  as_basename=basename
22447else
22448  as_basename=false
22449fi
22450
22451if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22452  as_dirname=dirname
22453else
22454  as_dirname=false
22455fi
22456
22457as_me=`$as_basename -- "$0" ||
22458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22459	 X"$0" : 'X\(//\)$' \| \
22460	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22461$as_echo X/"$0" |
22462    sed '/^.*\/\([^/][^/]*\)\/*$/{
22463	    s//\1/
22464	    q
22465	  }
22466	  /^X\/\(\/\/\)$/{
22467	    s//\1/
22468	    q
22469	  }
22470	  /^X\/\(\/\).*/{
22471	    s//\1/
22472	    q
22473	  }
22474	  s/.*/./; q'`
22475
22476# Avoid depending upon Character Ranges.
22477as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22479as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22480as_cr_digits='0123456789'
22481as_cr_alnum=$as_cr_Letters$as_cr_digits
22482
22483ECHO_C= ECHO_N= ECHO_T=
22484case `echo -n x` in #(((((
22485-n*)
22486  case `echo 'xy\c'` in
22487  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22488  xy)  ECHO_C='\c';;
22489  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22490       ECHO_T='	';;
22491  esac;;
22492*)
22493  ECHO_N='-n';;
22494esac
22495
22496rm -f conf$$ conf$$.exe conf$$.file
22497if test -d conf$$.dir; then
22498  rm -f conf$$.dir/conf$$.file
22499else
22500  rm -f conf$$.dir
22501  mkdir conf$$.dir 2>/dev/null
22502fi
22503if (echo >conf$$.file) 2>/dev/null; then
22504  if ln -s conf$$.file conf$$ 2>/dev/null; then
22505    as_ln_s='ln -s'
22506    # ... but there are two gotchas:
22507    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22508    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22509    # In both cases, we have to default to `cp -pR'.
22510    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22511      as_ln_s='cp -pR'
22512  elif ln conf$$.file conf$$ 2>/dev/null; then
22513    as_ln_s=ln
22514  else
22515    as_ln_s='cp -pR'
22516  fi
22517else
22518  as_ln_s='cp -pR'
22519fi
22520rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22521rmdir conf$$.dir 2>/dev/null
22522
22523
22524# as_fn_mkdir_p
22525# -------------
22526# Create "$as_dir" as a directory, including parents if necessary.
22527as_fn_mkdir_p ()
22528{
22529
22530  case $as_dir in #(
22531  -*) as_dir=./$as_dir;;
22532  esac
22533  test -d "$as_dir" || eval $as_mkdir_p || {
22534    as_dirs=
22535    while :; do
22536      case $as_dir in #(
22537      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22538      *) as_qdir=$as_dir;;
22539      esac
22540      as_dirs="'$as_qdir' $as_dirs"
22541      as_dir=`$as_dirname -- "$as_dir" ||
22542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22543	 X"$as_dir" : 'X\(//\)[^/]' \| \
22544	 X"$as_dir" : 'X\(//\)$' \| \
22545	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22546$as_echo X"$as_dir" |
22547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22548	    s//\1/
22549	    q
22550	  }
22551	  /^X\(\/\/\)[^/].*/{
22552	    s//\1/
22553	    q
22554	  }
22555	  /^X\(\/\/\)$/{
22556	    s//\1/
22557	    q
22558	  }
22559	  /^X\(\/\).*/{
22560	    s//\1/
22561	    q
22562	  }
22563	  s/.*/./; q'`
22564      test -d "$as_dir" && break
22565    done
22566    test -z "$as_dirs" || eval "mkdir $as_dirs"
22567  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22568
22569
22570} # as_fn_mkdir_p
22571if mkdir -p . 2>/dev/null; then
22572  as_mkdir_p='mkdir -p "$as_dir"'
22573else
22574  test -d ./-p && rmdir ./-p
22575  as_mkdir_p=false
22576fi
22577
22578
22579# as_fn_executable_p FILE
22580# -----------------------
22581# Test if FILE is an executable regular file.
22582as_fn_executable_p ()
22583{
22584  test -f "$1" && test -x "$1"
22585} # as_fn_executable_p
22586as_test_x='test -x'
22587as_executable_p=as_fn_executable_p
22588
22589# Sed expression to map a string onto a valid CPP name.
22590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22591
22592# Sed expression to map a string onto a valid variable name.
22593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22594
22595
22596exec 6>&1
22597## ----------------------------------- ##
22598## Main body of $CONFIG_STATUS script. ##
22599## ----------------------------------- ##
22600_ASEOF
22601test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22602
22603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22604# Save the log message, to keep $0 and so on meaningful, and to
22605# report actual input values of CONFIG_FILES etc. instead of their
22606# values after options handling.
22607ac_log="
22608This file was extended by unbound $as_me 1.17.1, which was
22609generated by GNU Autoconf 2.69.  Invocation command line was
22610
22611  CONFIG_FILES    = $CONFIG_FILES
22612  CONFIG_HEADERS  = $CONFIG_HEADERS
22613  CONFIG_LINKS    = $CONFIG_LINKS
22614  CONFIG_COMMANDS = $CONFIG_COMMANDS
22615  $ $0 $@
22616
22617on `(hostname || uname -n) 2>/dev/null | sed 1q`
22618"
22619
22620_ACEOF
22621
22622case $ac_config_files in *"
22623"*) set x $ac_config_files; shift; ac_config_files=$*;;
22624esac
22625
22626case $ac_config_headers in *"
22627"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22628esac
22629
22630
22631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22632# Files that config.status was made for.
22633config_files="$ac_config_files"
22634config_headers="$ac_config_headers"
22635config_commands="$ac_config_commands"
22636
22637_ACEOF
22638
22639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22640ac_cs_usage="\
22641\`$as_me' instantiates files and other configuration actions
22642from templates according to the current configuration.  Unless the files
22643and actions are specified as TAGs, all are instantiated by default.
22644
22645Usage: $0 [OPTION]... [TAG]...
22646
22647  -h, --help       print this help, then exit
22648  -V, --version    print version number and configuration settings, then exit
22649      --config     print configuration, then exit
22650  -q, --quiet, --silent
22651                   do not print progress messages
22652  -d, --debug      don't remove temporary files
22653      --recheck    update $as_me by reconfiguring in the same conditions
22654      --file=FILE[:TEMPLATE]
22655                   instantiate the configuration file FILE
22656      --header=FILE[:TEMPLATE]
22657                   instantiate the configuration header FILE
22658
22659Configuration files:
22660$config_files
22661
22662Configuration headers:
22663$config_headers
22664
22665Configuration commands:
22666$config_commands
22667
22668Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22669
22670_ACEOF
22671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22672ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22673ac_cs_version="\\
22674unbound config.status 1.17.1
22675configured by $0, generated by GNU Autoconf 2.69,
22676  with options \\"\$ac_cs_config\\"
22677
22678Copyright (C) 2012 Free Software Foundation, Inc.
22679This config.status script is free software; the Free Software Foundation
22680gives unlimited permission to copy, distribute and modify it."
22681
22682ac_pwd='$ac_pwd'
22683srcdir='$srcdir'
22684AWK='$AWK'
22685test -n "\$AWK" || AWK=awk
22686_ACEOF
22687
22688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22689# The default lists apply if the user does not specify any file.
22690ac_need_defaults=:
22691while test $# != 0
22692do
22693  case $1 in
22694  --*=?*)
22695    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22696    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22697    ac_shift=:
22698    ;;
22699  --*=)
22700    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22701    ac_optarg=
22702    ac_shift=:
22703    ;;
22704  *)
22705    ac_option=$1
22706    ac_optarg=$2
22707    ac_shift=shift
22708    ;;
22709  esac
22710
22711  case $ac_option in
22712  # Handling of the options.
22713  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22714    ac_cs_recheck=: ;;
22715  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22716    $as_echo "$ac_cs_version"; exit ;;
22717  --config | --confi | --conf | --con | --co | --c )
22718    $as_echo "$ac_cs_config"; exit ;;
22719  --debug | --debu | --deb | --de | --d | -d )
22720    debug=: ;;
22721  --file | --fil | --fi | --f )
22722    $ac_shift
22723    case $ac_optarg in
22724    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22725    '') as_fn_error $? "missing file argument" ;;
22726    esac
22727    as_fn_append CONFIG_FILES " '$ac_optarg'"
22728    ac_need_defaults=false;;
22729  --header | --heade | --head | --hea )
22730    $ac_shift
22731    case $ac_optarg in
22732    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22733    esac
22734    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22735    ac_need_defaults=false;;
22736  --he | --h)
22737    # Conflict between --help and --header
22738    as_fn_error $? "ambiguous option: \`$1'
22739Try \`$0 --help' for more information.";;
22740  --help | --hel | -h )
22741    $as_echo "$ac_cs_usage"; exit ;;
22742  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22743  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22744    ac_cs_silent=: ;;
22745
22746  # This is an error.
22747  -*) as_fn_error $? "unrecognized option: \`$1'
22748Try \`$0 --help' for more information." ;;
22749
22750  *) as_fn_append ac_config_targets " $1"
22751     ac_need_defaults=false ;;
22752
22753  esac
22754  shift
22755done
22756
22757ac_configure_extra_args=
22758
22759if $ac_cs_silent; then
22760  exec 6>/dev/null
22761  ac_configure_extra_args="$ac_configure_extra_args --silent"
22762fi
22763
22764_ACEOF
22765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22766if \$ac_cs_recheck; then
22767  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22768  shift
22769  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22770  CONFIG_SHELL='$SHELL'
22771  export CONFIG_SHELL
22772  exec "\$@"
22773fi
22774
22775_ACEOF
22776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22777exec 5>>config.log
22778{
22779  echo
22780  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22781## Running $as_me. ##
22782_ASBOX
22783  $as_echo "$ac_log"
22784} >&5
22785
22786_ACEOF
22787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22788#
22789# INIT-COMMANDS
22790#
22791
22792
22793# The HP-UX ksh and POSIX shell print the target directory to stdout
22794# if CDPATH is set.
22795(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22796
22797sed_quote_subst='$sed_quote_subst'
22798double_quote_subst='$double_quote_subst'
22799delay_variable_subst='$delay_variable_subst'
22800macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22801macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22802enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22803enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22804pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22805enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22806shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22807SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22808ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22809PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22810host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22811host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22812host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22813build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22814build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22815build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22816SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22817Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22818GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22819EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22820FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22821LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22822NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22823LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22824max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22825ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22826exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22827lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22828lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22829lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22830lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22831lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22832reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22833reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22834OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22835deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22836file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22837file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22838want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22839DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22840sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22841AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22842AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22843archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22844STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22845RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22846old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22847old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22848old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22849lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22850CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22851CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22852compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22853GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22854lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22855lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22856lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22857lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22858lt_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"`'
22859lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22860nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22861lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22862lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22863objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22864MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22865lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22866lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22867lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22868lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22869lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22870need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22871MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22872DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22873NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22874LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22875OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22876OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22877libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22878shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22879extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22880archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22881enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22882export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22883whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22884compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22885old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22886old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22887archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22888archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22889module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22890module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22891with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22892allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22893no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22894hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22895hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22896hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22897hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22898hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22899hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22900hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22901inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22902link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22903always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22904export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22905exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22906include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22907prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22908postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22909file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22910variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22911need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22912need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22913version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22914runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22915shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22916shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22917libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22918library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22919soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22920install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22921postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22922postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22923finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22924finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22925hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22926sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22927configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22928configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22929hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22930enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22931enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22932enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22933old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22934striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22935
22936LTCC='$LTCC'
22937LTCFLAGS='$LTCFLAGS'
22938compiler='$compiler_DEFAULT'
22939
22940# A function that is used when there is no print builtin or printf.
22941func_fallback_echo ()
22942{
22943  eval 'cat <<_LTECHO_EOF
22944\$1
22945_LTECHO_EOF'
22946}
22947
22948# Quote evaled strings.
22949for var in SHELL \
22950ECHO \
22951PATH_SEPARATOR \
22952SED \
22953GREP \
22954EGREP \
22955FGREP \
22956LD \
22957NM \
22958LN_S \
22959lt_SP2NL \
22960lt_NL2SP \
22961reload_flag \
22962OBJDUMP \
22963deplibs_check_method \
22964file_magic_cmd \
22965file_magic_glob \
22966want_nocaseglob \
22967DLLTOOL \
22968sharedlib_from_linklib_cmd \
22969AR \
22970AR_FLAGS \
22971archiver_list_spec \
22972STRIP \
22973RANLIB \
22974CC \
22975CFLAGS \
22976compiler \
22977lt_cv_sys_global_symbol_pipe \
22978lt_cv_sys_global_symbol_to_cdecl \
22979lt_cv_sys_global_symbol_to_import \
22980lt_cv_sys_global_symbol_to_c_name_address \
22981lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22982lt_cv_nm_interface \
22983nm_file_list_spec \
22984lt_cv_truncate_bin \
22985lt_prog_compiler_no_builtin_flag \
22986lt_prog_compiler_pic \
22987lt_prog_compiler_wl \
22988lt_prog_compiler_static \
22989lt_cv_prog_compiler_c_o \
22990need_locks \
22991MANIFEST_TOOL \
22992DSYMUTIL \
22993NMEDIT \
22994LIPO \
22995OTOOL \
22996OTOOL64 \
22997shrext_cmds \
22998export_dynamic_flag_spec \
22999whole_archive_flag_spec \
23000compiler_needs_object \
23001with_gnu_ld \
23002allow_undefined_flag \
23003no_undefined_flag \
23004hardcode_libdir_flag_spec \
23005hardcode_libdir_separator \
23006exclude_expsyms \
23007include_expsyms \
23008file_list_spec \
23009variables_saved_for_relink \
23010libname_spec \
23011library_names_spec \
23012soname_spec \
23013install_override_mode \
23014finish_eval \
23015old_striplib \
23016striplib; do
23017    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23018    *[\\\\\\\`\\"\\\$]*)
23019      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23020      ;;
23021    *)
23022      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23023      ;;
23024    esac
23025done
23026
23027# Double-quote double-evaled strings.
23028for var in reload_cmds \
23029old_postinstall_cmds \
23030old_postuninstall_cmds \
23031old_archive_cmds \
23032extract_expsyms_cmds \
23033old_archive_from_new_cmds \
23034old_archive_from_expsyms_cmds \
23035archive_cmds \
23036archive_expsym_cmds \
23037module_cmds \
23038module_expsym_cmds \
23039export_symbols_cmds \
23040prelink_cmds \
23041postlink_cmds \
23042postinstall_cmds \
23043postuninstall_cmds \
23044finish_cmds \
23045sys_lib_search_path_spec \
23046configure_time_dlsearch_path \
23047configure_time_lt_sys_library_path; do
23048    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23049    *[\\\\\\\`\\"\\\$]*)
23050      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23051      ;;
23052    *)
23053      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23054      ;;
23055    esac
23056done
23057
23058ac_aux_dir='$ac_aux_dir'
23059
23060# See if we are running on zsh, and set the options that allow our
23061# commands through without removal of \ escapes INIT.
23062if test -n "\${ZSH_VERSION+set}"; then
23063   setopt NO_GLOB_SUBST
23064fi
23065
23066
23067    PACKAGE='$PACKAGE'
23068    VERSION='$VERSION'
23069    RM='$RM'
23070    ofile='$ofile'
23071
23072
23073
23074
23075_ACEOF
23076
23077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23078
23079# Handling of arguments.
23080for ac_config_target in $ac_config_targets
23081do
23082  case $ac_config_target in
23083    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23084    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
23085    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23086    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
23087    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
23088    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
23089    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
23090    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
23091    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
23092    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
23093    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
23094    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
23095    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
23096    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
23097    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
23098    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
23099    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
23100    "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
23101    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23102
23103  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23104  esac
23105done
23106
23107
23108# If the user did not use the arguments to specify the items to instantiate,
23109# then the envvar interface is used.  Set only those that are not.
23110# We use the long form for the default assignment because of an extremely
23111# bizarre bug on SunOS 4.1.3.
23112if $ac_need_defaults; then
23113  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23114  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23115  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23116fi
23117
23118# Have a temporary directory for convenience.  Make it in the build tree
23119# simply because there is no reason against having it here, and in addition,
23120# creating and moving files from /tmp can sometimes cause problems.
23121# Hook for its removal unless debugging.
23122# Note that there is a small window in which the directory will not be cleaned:
23123# after its creation but before its name has been assigned to `$tmp'.
23124$debug ||
23125{
23126  tmp= ac_tmp=
23127  trap 'exit_status=$?
23128  : "${ac_tmp:=$tmp}"
23129  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23130' 0
23131  trap 'as_fn_exit 1' 1 2 13 15
23132}
23133# Create a (secure) tmp directory for tmp files.
23134
23135{
23136  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23137  test -d "$tmp"
23138}  ||
23139{
23140  tmp=./conf$$-$RANDOM
23141  (umask 077 && mkdir "$tmp")
23142} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23143ac_tmp=$tmp
23144
23145# Set up the scripts for CONFIG_FILES section.
23146# No need to generate them if there are no CONFIG_FILES.
23147# This happens for instance with `./config.status config.h'.
23148if test -n "$CONFIG_FILES"; then
23149
23150
23151ac_cr=`echo X | tr X '\015'`
23152# On cygwin, bash can eat \r inside `` if the user requested igncr.
23153# But we know of no other shell where ac_cr would be empty at this
23154# point, so we can use a bashism as a fallback.
23155if test "x$ac_cr" = x; then
23156  eval ac_cr=\$\'\\r\'
23157fi
23158ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23159if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23160  ac_cs_awk_cr='\\r'
23161else
23162  ac_cs_awk_cr=$ac_cr
23163fi
23164
23165echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23166_ACEOF
23167
23168
23169{
23170  echo "cat >conf$$subs.awk <<_ACEOF" &&
23171  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23172  echo "_ACEOF"
23173} >conf$$subs.sh ||
23174  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23175ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23176ac_delim='%!_!# '
23177for ac_last_try in false false false false false :; do
23178  . ./conf$$subs.sh ||
23179    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23180
23181  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23182  if test $ac_delim_n = $ac_delim_num; then
23183    break
23184  elif $ac_last_try; then
23185    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23186  else
23187    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23188  fi
23189done
23190rm -f conf$$subs.sh
23191
23192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23193cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23194_ACEOF
23195sed -n '
23196h
23197s/^/S["/; s/!.*/"]=/
23198p
23199g
23200s/^[^!]*!//
23201:repl
23202t repl
23203s/'"$ac_delim"'$//
23204t delim
23205:nl
23206h
23207s/\(.\{148\}\)..*/\1/
23208t more1
23209s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23210p
23211n
23212b repl
23213:more1
23214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23215p
23216g
23217s/.\{148\}//
23218t nl
23219:delim
23220h
23221s/\(.\{148\}\)..*/\1/
23222t more2
23223s/["\\]/\\&/g; s/^/"/; s/$/"/
23224p
23225b
23226:more2
23227s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23228p
23229g
23230s/.\{148\}//
23231t delim
23232' <conf$$subs.awk | sed '
23233/^[^""]/{
23234  N
23235  s/\n//
23236}
23237' >>$CONFIG_STATUS || ac_write_fail=1
23238rm -f conf$$subs.awk
23239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23240_ACAWK
23241cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23242  for (key in S) S_is_set[key] = 1
23243  FS = ""
23244
23245}
23246{
23247  line = $ 0
23248  nfields = split(line, field, "@")
23249  substed = 0
23250  len = length(field[1])
23251  for (i = 2; i < nfields; i++) {
23252    key = field[i]
23253    keylen = length(key)
23254    if (S_is_set[key]) {
23255      value = S[key]
23256      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23257      len += length(value) + length(field[++i])
23258      substed = 1
23259    } else
23260      len += 1 + keylen
23261  }
23262
23263  print line
23264}
23265
23266_ACAWK
23267_ACEOF
23268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23270  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23271else
23272  cat
23273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23274  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23275_ACEOF
23276
23277# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23279# trailing colons and then remove the whole line if VPATH becomes empty
23280# (actually we leave an empty line to preserve line numbers).
23281if test "x$srcdir" = x.; then
23282  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23283h
23284s///
23285s/^/:/
23286s/[	 ]*$/:/
23287s/:\$(srcdir):/:/g
23288s/:\${srcdir}:/:/g
23289s/:@srcdir@:/:/g
23290s/^:*//
23291s/:*$//
23292x
23293s/\(=[	 ]*\).*/\1/
23294G
23295s/\n//
23296s/^[^=]*=[	 ]*$//
23297}'
23298fi
23299
23300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23301fi # test -n "$CONFIG_FILES"
23302
23303# Set up the scripts for CONFIG_HEADERS section.
23304# No need to generate them if there are no CONFIG_HEADERS.
23305# This happens for instance with `./config.status Makefile'.
23306if test -n "$CONFIG_HEADERS"; then
23307cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23308BEGIN {
23309_ACEOF
23310
23311# Transform confdefs.h into an awk script `defines.awk', embedded as
23312# here-document in config.status, that substitutes the proper values into
23313# config.h.in to produce config.h.
23314
23315# Create a delimiter string that does not exist in confdefs.h, to ease
23316# handling of long lines.
23317ac_delim='%!_!# '
23318for ac_last_try in false false :; do
23319  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23320  if test -z "$ac_tt"; then
23321    break
23322  elif $ac_last_try; then
23323    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23324  else
23325    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23326  fi
23327done
23328
23329# For the awk script, D is an array of macro values keyed by name,
23330# likewise P contains macro parameters if any.  Preserve backslash
23331# newline sequences.
23332
23333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23334sed -n '
23335s/.\{148\}/&'"$ac_delim"'/g
23336t rset
23337:rset
23338s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23339t def
23340d
23341:def
23342s/\\$//
23343t bsnl
23344s/["\\]/\\&/g
23345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23346D["\1"]=" \3"/p
23347s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23348d
23349:bsnl
23350s/["\\]/\\&/g
23351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23352D["\1"]=" \3\\\\\\n"\\/p
23353t cont
23354s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23355t cont
23356d
23357:cont
23358n
23359s/.\{148\}/&'"$ac_delim"'/g
23360t clear
23361:clear
23362s/\\$//
23363t bsnlc
23364s/["\\]/\\&/g; s/^/"/; s/$/"/p
23365d
23366:bsnlc
23367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23368b cont
23369' <confdefs.h | sed '
23370s/'"$ac_delim"'/"\\\
23371"/g' >>$CONFIG_STATUS || ac_write_fail=1
23372
23373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23374  for (key in D) D_is_set[key] = 1
23375  FS = ""
23376}
23377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23378  line = \$ 0
23379  split(line, arg, " ")
23380  if (arg[1] == "#") {
23381    defundef = arg[2]
23382    mac1 = arg[3]
23383  } else {
23384    defundef = substr(arg[1], 2)
23385    mac1 = arg[2]
23386  }
23387  split(mac1, mac2, "(") #)
23388  macro = mac2[1]
23389  prefix = substr(line, 1, index(line, defundef) - 1)
23390  if (D_is_set[macro]) {
23391    # Preserve the white space surrounding the "#".
23392    print prefix "define", macro P[macro] D[macro]
23393    next
23394  } else {
23395    # Replace #undef with comments.  This is necessary, for example,
23396    # in the case of _POSIX_SOURCE, which is predefined and required
23397    # on some systems where configure will not decide to define it.
23398    if (defundef == "undef") {
23399      print "/*", prefix defundef, macro, "*/"
23400      next
23401    }
23402  }
23403}
23404{ print }
23405_ACAWK
23406_ACEOF
23407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23408  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23409fi # test -n "$CONFIG_HEADERS"
23410
23411
23412eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23413shift
23414for ac_tag
23415do
23416  case $ac_tag in
23417  :[FHLC]) ac_mode=$ac_tag; continue;;
23418  esac
23419  case $ac_mode$ac_tag in
23420  :[FHL]*:*);;
23421  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23422  :[FH]-) ac_tag=-:-;;
23423  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23424  esac
23425  ac_save_IFS=$IFS
23426  IFS=:
23427  set x $ac_tag
23428  IFS=$ac_save_IFS
23429  shift
23430  ac_file=$1
23431  shift
23432
23433  case $ac_mode in
23434  :L) ac_source=$1;;
23435  :[FH])
23436    ac_file_inputs=
23437    for ac_f
23438    do
23439      case $ac_f in
23440      -) ac_f="$ac_tmp/stdin";;
23441      *) # Look for the file first in the build tree, then in the source tree
23442	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23443	 # because $ac_f cannot contain `:'.
23444	 test -f "$ac_f" ||
23445	   case $ac_f in
23446	   [\\/$]*) false;;
23447	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23448	   esac ||
23449	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23450      esac
23451      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23452      as_fn_append ac_file_inputs " '$ac_f'"
23453    done
23454
23455    # Let's still pretend it is `configure' which instantiates (i.e., don't
23456    # use $as_me), people would be surprised to read:
23457    #    /* config.h.  Generated by config.status.  */
23458    configure_input='Generated from '`
23459	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23460	`' by configure.'
23461    if test x"$ac_file" != x-; then
23462      configure_input="$ac_file.  $configure_input"
23463      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23464$as_echo "$as_me: creating $ac_file" >&6;}
23465    fi
23466    # Neutralize special characters interpreted by sed in replacement strings.
23467    case $configure_input in #(
23468    *\&* | *\|* | *\\* )
23469       ac_sed_conf_input=`$as_echo "$configure_input" |
23470       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23471    *) ac_sed_conf_input=$configure_input;;
23472    esac
23473
23474    case $ac_tag in
23475    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23476      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23477    esac
23478    ;;
23479  esac
23480
23481  ac_dir=`$as_dirname -- "$ac_file" ||
23482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483	 X"$ac_file" : 'X\(//\)[^/]' \| \
23484	 X"$ac_file" : 'X\(//\)$' \| \
23485	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23486$as_echo X"$ac_file" |
23487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23488	    s//\1/
23489	    q
23490	  }
23491	  /^X\(\/\/\)[^/].*/{
23492	    s//\1/
23493	    q
23494	  }
23495	  /^X\(\/\/\)$/{
23496	    s//\1/
23497	    q
23498	  }
23499	  /^X\(\/\).*/{
23500	    s//\1/
23501	    q
23502	  }
23503	  s/.*/./; q'`
23504  as_dir="$ac_dir"; as_fn_mkdir_p
23505  ac_builddir=.
23506
23507case "$ac_dir" in
23508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23509*)
23510  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23511  # A ".." for each directory in $ac_dir_suffix.
23512  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23513  case $ac_top_builddir_sub in
23514  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23515  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23516  esac ;;
23517esac
23518ac_abs_top_builddir=$ac_pwd
23519ac_abs_builddir=$ac_pwd$ac_dir_suffix
23520# for backward compatibility:
23521ac_top_builddir=$ac_top_build_prefix
23522
23523case $srcdir in
23524  .)  # We are building in place.
23525    ac_srcdir=.
23526    ac_top_srcdir=$ac_top_builddir_sub
23527    ac_abs_top_srcdir=$ac_pwd ;;
23528  [\\/]* | ?:[\\/]* )  # Absolute name.
23529    ac_srcdir=$srcdir$ac_dir_suffix;
23530    ac_top_srcdir=$srcdir
23531    ac_abs_top_srcdir=$srcdir ;;
23532  *) # Relative name.
23533    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23534    ac_top_srcdir=$ac_top_build_prefix$srcdir
23535    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23536esac
23537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23538
23539
23540  case $ac_mode in
23541  :F)
23542  #
23543  # CONFIG_FILE
23544  #
23545
23546_ACEOF
23547
23548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23549# If the template does not know about datarootdir, expand it.
23550# FIXME: This hack should be removed a few years after 2.60.
23551ac_datarootdir_hack=; ac_datarootdir_seen=
23552ac_sed_dataroot='
23553/datarootdir/ {
23554  p
23555  q
23556}
23557/@datadir@/p
23558/@docdir@/p
23559/@infodir@/p
23560/@localedir@/p
23561/@mandir@/p'
23562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23563*datarootdir*) ac_datarootdir_seen=yes;;
23564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23567_ACEOF
23568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23569  ac_datarootdir_hack='
23570  s&@datadir@&$datadir&g
23571  s&@docdir@&$docdir&g
23572  s&@infodir@&$infodir&g
23573  s&@localedir@&$localedir&g
23574  s&@mandir@&$mandir&g
23575  s&\\\${datarootdir}&$datarootdir&g' ;;
23576esac
23577_ACEOF
23578
23579# Neutralize VPATH when `$srcdir' = `.'.
23580# Shell code in configure.ac might set extrasub.
23581# FIXME: do we really want to maintain this feature?
23582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23583ac_sed_extra="$ac_vpsub
23584$extrasub
23585_ACEOF
23586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23587:t
23588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23589s|@configure_input@|$ac_sed_conf_input|;t t
23590s&@top_builddir@&$ac_top_builddir_sub&;t t
23591s&@top_build_prefix@&$ac_top_build_prefix&;t t
23592s&@srcdir@&$ac_srcdir&;t t
23593s&@abs_srcdir@&$ac_abs_srcdir&;t t
23594s&@top_srcdir@&$ac_top_srcdir&;t t
23595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23596s&@builddir@&$ac_builddir&;t t
23597s&@abs_builddir@&$ac_abs_builddir&;t t
23598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23599$ac_datarootdir_hack
23600"
23601eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23602  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23603
23604test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23605  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23606  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23607      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23608  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23609which seems to be undefined.  Please make sure it is defined" >&5
23610$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23611which seems to be undefined.  Please make sure it is defined" >&2;}
23612
23613  rm -f "$ac_tmp/stdin"
23614  case $ac_file in
23615  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23616  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23617  esac \
23618  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23619 ;;
23620  :H)
23621  #
23622  # CONFIG_HEADER
23623  #
23624  if test x"$ac_file" != x-; then
23625    {
23626      $as_echo "/* $configure_input  */" \
23627      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23628    } >"$ac_tmp/config.h" \
23629      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23630    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23631      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23632$as_echo "$as_me: $ac_file is unchanged" >&6;}
23633    else
23634      rm -f "$ac_file"
23635      mv "$ac_tmp/config.h" "$ac_file" \
23636	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23637    fi
23638  else
23639    $as_echo "/* $configure_input  */" \
23640      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23641      || as_fn_error $? "could not create -" "$LINENO" 5
23642  fi
23643 ;;
23644
23645  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23646$as_echo "$as_me: executing $ac_file commands" >&6;}
23647 ;;
23648  esac
23649
23650
23651  case $ac_file$ac_mode in
23652    "libtool":C)
23653
23654    # See if we are running on zsh, and set the options that allow our
23655    # commands through without removal of \ escapes.
23656    if test -n "${ZSH_VERSION+set}"; then
23657      setopt NO_GLOB_SUBST
23658    fi
23659
23660    cfgfile=${ofile}T
23661    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23662    $RM "$cfgfile"
23663
23664    cat <<_LT_EOF >> "$cfgfile"
23665#! $SHELL
23666# Generated automatically by $as_me ($PACKAGE) $VERSION
23667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23668# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23669
23670# Provide generalized library-building support services.
23671# Written by Gordon Matzigkeit, 1996
23672
23673# Copyright (C) 2014 Free Software Foundation, Inc.
23674# This is free software; see the source for copying conditions.  There is NO
23675# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23676
23677# GNU Libtool is free software; you can redistribute it and/or modify
23678# it under the terms of the GNU General Public License as published by
23679# the Free Software Foundation; either version 2 of of the License, or
23680# (at your option) any later version.
23681#
23682# As a special exception to the GNU General Public License, if you
23683# distribute this file as part of a program or library that is built
23684# using GNU Libtool, you may include this file under the  same
23685# distribution terms that you use for the rest of that program.
23686#
23687# GNU Libtool is distributed in the hope that it will be useful, but
23688# WITHOUT ANY WARRANTY; without even the implied warranty of
23689# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23690# GNU General Public License for more details.
23691#
23692# You should have received a copy of the GNU General Public License
23693# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23694
23695
23696# The names of the tagged configurations supported by this script.
23697available_tags=''
23698
23699# Configured defaults for sys_lib_dlsearch_path munging.
23700: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23701
23702# ### BEGIN LIBTOOL CONFIG
23703
23704# Which release of libtool.m4 was used?
23705macro_version=$macro_version
23706macro_revision=$macro_revision
23707
23708# Whether or not to build shared libraries.
23709build_libtool_libs=$enable_shared
23710
23711# Whether or not to build static libraries.
23712build_old_libs=$enable_static
23713
23714# What type of objects to build.
23715pic_mode=$pic_mode
23716
23717# Whether or not to optimize for fast installation.
23718fast_install=$enable_fast_install
23719
23720# Shared archive member basename,for filename based shared library versioning on AIX.
23721shared_archive_member_spec=$shared_archive_member_spec
23722
23723# Shell to use when invoking shell scripts.
23724SHELL=$lt_SHELL
23725
23726# An echo program that protects backslashes.
23727ECHO=$lt_ECHO
23728
23729# The PATH separator for the build system.
23730PATH_SEPARATOR=$lt_PATH_SEPARATOR
23731
23732# The host system.
23733host_alias=$host_alias
23734host=$host
23735host_os=$host_os
23736
23737# The build system.
23738build_alias=$build_alias
23739build=$build
23740build_os=$build_os
23741
23742# A sed program that does not truncate output.
23743SED=$lt_SED
23744
23745# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23746Xsed="\$SED -e 1s/^X//"
23747
23748# A grep program that handles long lines.
23749GREP=$lt_GREP
23750
23751# An ERE matcher.
23752EGREP=$lt_EGREP
23753
23754# A literal string matcher.
23755FGREP=$lt_FGREP
23756
23757# A BSD- or MS-compatible name lister.
23758NM=$lt_NM
23759
23760# Whether we need soft or hard links.
23761LN_S=$lt_LN_S
23762
23763# What is the maximum length of a command?
23764max_cmd_len=$max_cmd_len
23765
23766# Object file suffix (normally "o").
23767objext=$ac_objext
23768
23769# Executable file suffix (normally "").
23770exeext=$exeext
23771
23772# whether the shell understands "unset".
23773lt_unset=$lt_unset
23774
23775# turn spaces into newlines.
23776SP2NL=$lt_lt_SP2NL
23777
23778# turn newlines into spaces.
23779NL2SP=$lt_lt_NL2SP
23780
23781# convert \$build file names to \$host format.
23782to_host_file_cmd=$lt_cv_to_host_file_cmd
23783
23784# convert \$build files to toolchain format.
23785to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23786
23787# An object symbol dumper.
23788OBJDUMP=$lt_OBJDUMP
23789
23790# Method to check whether dependent libraries are shared objects.
23791deplibs_check_method=$lt_deplibs_check_method
23792
23793# Command to use when deplibs_check_method = "file_magic".
23794file_magic_cmd=$lt_file_magic_cmd
23795
23796# How to find potential files when deplibs_check_method = "file_magic".
23797file_magic_glob=$lt_file_magic_glob
23798
23799# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23800want_nocaseglob=$lt_want_nocaseglob
23801
23802# DLL creation program.
23803DLLTOOL=$lt_DLLTOOL
23804
23805# Command to associate shared and link libraries.
23806sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23807
23808# The archiver.
23809AR=$lt_AR
23810
23811# Flags to create an archive.
23812AR_FLAGS=$lt_AR_FLAGS
23813
23814# How to feed a file listing to the archiver.
23815archiver_list_spec=$lt_archiver_list_spec
23816
23817# A symbol stripping program.
23818STRIP=$lt_STRIP
23819
23820# Commands used to install an old-style archive.
23821RANLIB=$lt_RANLIB
23822old_postinstall_cmds=$lt_old_postinstall_cmds
23823old_postuninstall_cmds=$lt_old_postuninstall_cmds
23824
23825# Whether to use a lock for old archive extraction.
23826lock_old_archive_extraction=$lock_old_archive_extraction
23827
23828# A C compiler.
23829LTCC=$lt_CC
23830
23831# LTCC compiler flags.
23832LTCFLAGS=$lt_CFLAGS
23833
23834# Take the output of nm and produce a listing of raw symbols and C names.
23835global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23836
23837# Transform the output of nm in a proper C declaration.
23838global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23839
23840# Transform the output of nm into a list of symbols to manually relocate.
23841global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23842
23843# Transform the output of nm in a C name address pair.
23844global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23845
23846# Transform the output of nm in a C name address pair when lib prefix is needed.
23847global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23848
23849# The name lister interface.
23850nm_interface=$lt_lt_cv_nm_interface
23851
23852# Specify filename containing input files for \$NM.
23853nm_file_list_spec=$lt_nm_file_list_spec
23854
23855# The root where to search for dependent libraries,and where our libraries should be installed.
23856lt_sysroot=$lt_sysroot
23857
23858# Command to truncate a binary pipe.
23859lt_truncate_bin=$lt_lt_cv_truncate_bin
23860
23861# The name of the directory that contains temporary libtool files.
23862objdir=$objdir
23863
23864# Used to examine libraries when file_magic_cmd begins with "file".
23865MAGIC_CMD=$MAGIC_CMD
23866
23867# Must we lock files when doing compilation?
23868need_locks=$lt_need_locks
23869
23870# Manifest tool.
23871MANIFEST_TOOL=$lt_MANIFEST_TOOL
23872
23873# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23874DSYMUTIL=$lt_DSYMUTIL
23875
23876# Tool to change global to local symbols on Mac OS X.
23877NMEDIT=$lt_NMEDIT
23878
23879# Tool to manipulate fat objects and archives on Mac OS X.
23880LIPO=$lt_LIPO
23881
23882# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23883OTOOL=$lt_OTOOL
23884
23885# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23886OTOOL64=$lt_OTOOL64
23887
23888# Old archive suffix (normally "a").
23889libext=$libext
23890
23891# Shared library suffix (normally ".so").
23892shrext_cmds=$lt_shrext_cmds
23893
23894# The commands to extract the exported symbol list from a shared archive.
23895extract_expsyms_cmds=$lt_extract_expsyms_cmds
23896
23897# Variables whose values should be saved in libtool wrapper scripts and
23898# restored at link time.
23899variables_saved_for_relink=$lt_variables_saved_for_relink
23900
23901# Do we need the "lib" prefix for modules?
23902need_lib_prefix=$need_lib_prefix
23903
23904# Do we need a version for libraries?
23905need_version=$need_version
23906
23907# Library versioning type.
23908version_type=$version_type
23909
23910# Shared library runtime path variable.
23911runpath_var=$runpath_var
23912
23913# Shared library path variable.
23914shlibpath_var=$shlibpath_var
23915
23916# Is shlibpath searched before the hard-coded library search path?
23917shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23918
23919# Format of library name prefix.
23920libname_spec=$lt_libname_spec
23921
23922# List of archive names.  First name is the real one, the rest are links.
23923# The last name is the one that the linker finds with -lNAME
23924library_names_spec=$lt_library_names_spec
23925
23926# The coded name of the library, if different from the real name.
23927soname_spec=$lt_soname_spec
23928
23929# Permission mode override for installation of shared libraries.
23930install_override_mode=$lt_install_override_mode
23931
23932# Command to use after installation of a shared archive.
23933postinstall_cmds=$lt_postinstall_cmds
23934
23935# Command to use after uninstallation of a shared archive.
23936postuninstall_cmds=$lt_postuninstall_cmds
23937
23938# Commands used to finish a libtool library installation in a directory.
23939finish_cmds=$lt_finish_cmds
23940
23941# As "finish_cmds", except a single script fragment to be evaled but
23942# not shown.
23943finish_eval=$lt_finish_eval
23944
23945# Whether we should hardcode library paths into libraries.
23946hardcode_into_libs=$hardcode_into_libs
23947
23948# Compile-time system search path for libraries.
23949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23950
23951# Detected run-time system search path for libraries.
23952sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23953
23954# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23955configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23956
23957# Whether dlopen is supported.
23958dlopen_support=$enable_dlopen
23959
23960# Whether dlopen of programs is supported.
23961dlopen_self=$enable_dlopen_self
23962
23963# Whether dlopen of statically linked programs is supported.
23964dlopen_self_static=$enable_dlopen_self_static
23965
23966# Commands to strip libraries.
23967old_striplib=$lt_old_striplib
23968striplib=$lt_striplib
23969
23970
23971# The linker used to build libraries.
23972LD=$lt_LD
23973
23974# How to create reloadable object files.
23975reload_flag=$lt_reload_flag
23976reload_cmds=$lt_reload_cmds
23977
23978# Commands used to build an old-style archive.
23979old_archive_cmds=$lt_old_archive_cmds
23980
23981# A language specific compiler.
23982CC=$lt_compiler
23983
23984# Is the compiler the GNU compiler?
23985with_gcc=$GCC
23986
23987# Compiler flag to turn off builtin functions.
23988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23989
23990# Additional compiler flags for building library objects.
23991pic_flag=$lt_lt_prog_compiler_pic
23992
23993# How to pass a linker flag through the compiler.
23994wl=$lt_lt_prog_compiler_wl
23995
23996# Compiler flag to prevent dynamic linking.
23997link_static_flag=$lt_lt_prog_compiler_static
23998
23999# Does compiler simultaneously support -c and -o options?
24000compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24001
24002# Whether or not to add -lc for building shared libraries.
24003build_libtool_need_lc=$archive_cmds_need_lc
24004
24005# Whether or not to disallow shared libs when runtime libs are static.
24006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24007
24008# Compiler flag to allow reflexive dlopens.
24009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24010
24011# Compiler flag to generate shared objects directly from archives.
24012whole_archive_flag_spec=$lt_whole_archive_flag_spec
24013
24014# Whether the compiler copes with passing no objects directly.
24015compiler_needs_object=$lt_compiler_needs_object
24016
24017# Create an old-style archive from a shared archive.
24018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24019
24020# Create a temporary old-style archive to link instead of a shared archive.
24021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24022
24023# Commands used to build a shared archive.
24024archive_cmds=$lt_archive_cmds
24025archive_expsym_cmds=$lt_archive_expsym_cmds
24026
24027# Commands used to build a loadable module if different from building
24028# a shared archive.
24029module_cmds=$lt_module_cmds
24030module_expsym_cmds=$lt_module_expsym_cmds
24031
24032# Whether we are building with GNU ld or not.
24033with_gnu_ld=$lt_with_gnu_ld
24034
24035# Flag that allows shared libraries with undefined symbols to be built.
24036allow_undefined_flag=$lt_allow_undefined_flag
24037
24038# Flag that enforces no undefined symbols.
24039no_undefined_flag=$lt_no_undefined_flag
24040
24041# Flag to hardcode \$libdir into a binary during linking.
24042# This must work even if \$libdir does not exist
24043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24044
24045# Whether we need a single "-rpath" flag with a separated argument.
24046hardcode_libdir_separator=$lt_hardcode_libdir_separator
24047
24048# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24049# DIR into the resulting binary.
24050hardcode_direct=$hardcode_direct
24051
24052# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24053# DIR into the resulting binary and the resulting library dependency is
24054# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24055# library is relocated.
24056hardcode_direct_absolute=$hardcode_direct_absolute
24057
24058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24059# into the resulting binary.
24060hardcode_minus_L=$hardcode_minus_L
24061
24062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24063# into the resulting binary.
24064hardcode_shlibpath_var=$hardcode_shlibpath_var
24065
24066# Set to "yes" if building a shared library automatically hardcodes DIR
24067# into the library and all subsequent libraries and executables linked
24068# against it.
24069hardcode_automatic=$hardcode_automatic
24070
24071# Set to yes if linker adds runtime paths of dependent libraries
24072# to runtime path list.
24073inherit_rpath=$inherit_rpath
24074
24075# Whether libtool must link a program against all its dependency libraries.
24076link_all_deplibs=$link_all_deplibs
24077
24078# Set to "yes" if exported symbols are required.
24079always_export_symbols=$always_export_symbols
24080
24081# The commands to list exported symbols.
24082export_symbols_cmds=$lt_export_symbols_cmds
24083
24084# Symbols that should not be listed in the preloaded symbols.
24085exclude_expsyms=$lt_exclude_expsyms
24086
24087# Symbols that must always be exported.
24088include_expsyms=$lt_include_expsyms
24089
24090# Commands necessary for linking programs (against libraries) with templates.
24091prelink_cmds=$lt_prelink_cmds
24092
24093# Commands necessary for finishing linking programs.
24094postlink_cmds=$lt_postlink_cmds
24095
24096# Specify filename containing input files.
24097file_list_spec=$lt_file_list_spec
24098
24099# How to hardcode a shared library path into an executable.
24100hardcode_action=$hardcode_action
24101
24102# ### END LIBTOOL CONFIG
24103
24104_LT_EOF
24105
24106    cat <<'_LT_EOF' >> "$cfgfile"
24107
24108# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24109
24110# func_munge_path_list VARIABLE PATH
24111# -----------------------------------
24112# VARIABLE is name of variable containing _space_ separated list of
24113# directories to be munged by the contents of PATH, which is string
24114# having a format:
24115# "DIR[:DIR]:"
24116#       string "DIR[ DIR]" will be prepended to VARIABLE
24117# ":DIR[:DIR]"
24118#       string "DIR[ DIR]" will be appended to VARIABLE
24119# "DIRP[:DIRP]::[DIRA:]DIRA"
24120#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24121#       "DIRA[ DIRA]" will be appended to VARIABLE
24122# "DIR[:DIR]"
24123#       VARIABLE will be replaced by "DIR[ DIR]"
24124func_munge_path_list ()
24125{
24126    case x$2 in
24127    x)
24128        ;;
24129    *:)
24130        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24131        ;;
24132    x:*)
24133        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24134        ;;
24135    *::*)
24136        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24137        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24138        ;;
24139    *)
24140        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24141        ;;
24142    esac
24143}
24144
24145
24146# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24147func_cc_basename ()
24148{
24149    for cc_temp in $*""; do
24150      case $cc_temp in
24151        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24152        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24153        \-*) ;;
24154        *) break;;
24155      esac
24156    done
24157    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24158}
24159
24160
24161# ### END FUNCTIONS SHARED WITH CONFIGURE
24162
24163_LT_EOF
24164
24165  case $host_os in
24166  aix3*)
24167    cat <<\_LT_EOF >> "$cfgfile"
24168# AIX sometimes has problems with the GCC collect2 program.  For some
24169# reason, if we set the COLLECT_NAMES environment variable, the problems
24170# vanish in a puff of smoke.
24171if test set != "${COLLECT_NAMES+set}"; then
24172  COLLECT_NAMES=
24173  export COLLECT_NAMES
24174fi
24175_LT_EOF
24176    ;;
24177  esac
24178
24179
24180ltmain=$ac_aux_dir/ltmain.sh
24181
24182
24183  # We use sed instead of cat because bash on DJGPP gets confused if
24184  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24185  # text mode, it properly converts lines to CR/LF.  This bash problem
24186  # is reportedly fixed, but why not run on old versions too?
24187  sed '$q' "$ltmain" >> "$cfgfile" \
24188     || (rm -f "$cfgfile"; exit 1)
24189
24190   mv -f "$cfgfile" "$ofile" ||
24191    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24192  chmod +x "$ofile"
24193
24194 ;;
24195    "disable-rpath":C)
24196	sed < libtool > libtool-2 \
24197	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24198	mv libtool-2 libtool
24199	chmod 755 libtool
24200	libtool="./libtool"
24201	 ;;
24202
24203  esac
24204done # for ac_tag
24205
24206
24207as_fn_exit 0
24208_ACEOF
24209ac_clean_files=$ac_clean_files_save
24210
24211test $ac_write_fail = 0 ||
24212  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24213
24214
24215# configure is writing to config.log, and then calls config.status.
24216# config.status does its own redirection, appending to config.log.
24217# Unfortunately, on DOS this fails, as config.log is still kept open
24218# by configure, so config.status won't be able to write to it; its
24219# output is simply discarded.  So we exec the FD to /dev/null,
24220# effectively closing config.log, so it can be properly (re)opened and
24221# appended to by config.status.  When coming back to configure, we
24222# need to make the FD available again.
24223if test "$no_create" != yes; then
24224  ac_cs_success=:
24225  ac_config_status_args=
24226  test "$silent" = yes &&
24227    ac_config_status_args="$ac_config_status_args --quiet"
24228  exec 5>/dev/null
24229  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24230  exec 5>>config.log
24231  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24232  # would make configure fail if this is the last instruction.
24233  $ac_cs_success || as_fn_exit 1
24234fi
24235if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24236  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24237$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24238fi
24239
24240