xref: /freebsd/contrib/unbound/configure (revision 6419bb52)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.10.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.10.1'
595PACKAGE_STRING='unbound 1.10.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
646DNSCRYPT_OBJ
647DNSCRYPT_SRC
648ENABLE_DNSCRYPT
649ENABLE_DNSCRYPT_XCHACHA20
650DNSTAP_OBJ
651DNSTAP_SRC
652opt_dnstap_socket_path
653ENABLE_DNSTAP
654PROTOC_C
655UBSYMS
656EXTRALINK
657COMMON_OBJ_ALL_SYMBOLS
658LIBOBJ_WITHOUT_CTIME
659LIBOBJ_WITHOUT_CTIMEARC4
660WIN_CHECKCONF_OBJ_LINK
661WIN_CONTROL_OBJ_LINK
662WIN_UBANCHOR_OBJ_LINK
663WIN_HOST_OBJ_LINK
664WIN_DAEMON_OBJ_LINK
665WIN_DAEMON_OBJ
666WIN_DAEMON_SRC
667WINAPPS
668WINDRES
669CHECKLOCK_OBJ
670staticexe
671PC_LIBEVENT_DEPENDENCY
672UNBOUND_EVENT_UNINSTALL
673UNBOUND_EVENT_INSTALL
674SUBNET_HEADER
675SUBNET_OBJ
676PC_LIBBSD_DEPENDENCY
677SSLLIB
678HAVE_SSL
679PC_CRYPTO_DEPENDENCY
680CONFIG_DATE
681NETBSD_LINTFLAGS
682PYUNBOUND_UNINSTALL
683PYUNBOUND_INSTALL
684PYUNBOUND_TARGET
685PYUNBOUND_OBJ
686WITH_PYUNBOUND
687PYTHONMOD_UNINSTALL
688PYTHONMOD_INSTALL
689PYTHONMOD_HEADER
690PYTHONMOD_OBJ
691WITH_PYTHONMODULE
692swig
693SWIG_LIB
694SWIG
695PC_PY_DEPENDENCY
696PY_MAJOR_VERSION
697PYTHON_SITE_PKG
698PYTHON_LDFLAGS
699PYTHON_CPPFLAGS
700PYTHON
701PYTHON_VERSION
702PTHREAD_CFLAGS_ONLY
703PTHREAD_CFLAGS
704PTHREAD_LIBS
705PTHREAD_CC
706ax_pthread_config
707ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
708SLDNS_ALLOCCHECK_EXTRA_OBJ
709USE_SYSTEMD_FALSE
710USE_SYSTEMD_TRUE
711SYSTEMD_DAEMON_LIBS
712SYSTEMD_DAEMON_CFLAGS
713SYSTEMD_LIBS
714SYSTEMD_CFLAGS
715RUNTIME_PATH
716LIBOBJS
717PKG_CONFIG_LIBDIR
718PKG_CONFIG_PATH
719PKG_CONFIG
720LT_SYS_LIBRARY_PATH
721OTOOL64
722OTOOL
723LIPO
724NMEDIT
725DSYMUTIL
726MANIFEST_TOOL
727AWK
728RANLIB
729ac_ct_AR
730DLLTOOL
731OBJDUMP
732LN_S
733NM
734ac_ct_DUMPBIN
735DUMPBIN
736LD
737FGREP
738SED
739LIBTOOL
740AR
741host_os
742host_vendor
743host_cpu
744host
745build_os
746build_vendor
747build_cpu
748build
749libtool
750STRIP
751doxygen
752YFLAGS
753YACC
754LEXLIB
755LEX_OUTPUT_ROOT
756LEX
757debug_enabled
758DEPFLAG
759UNBOUND_USERNAME
760UNBOUND_ROOTCERT_FILE
761UNBOUND_ROOTKEY_FILE
762UNBOUND_PIDFILE
763UNBOUND_SHARE_DIR
764UNBOUND_CHROOT_DIR
765UNBOUND_RUN_DIR
766ub_conf_dir
767ub_conf_file
768UNBOUND_LOCALSTATE_DIR
769UNBOUND_SYSCONF_DIR
770UNBOUND_SBIN_DIR
771EGREP
772GREP
773CPP
774OBJEXT
775EXEEXT
776ac_ct_CC
777CPPFLAGS
778LDFLAGS
779CFLAGS
780CC
781LIBUNBOUND_AGE
782LIBUNBOUND_REVISION
783LIBUNBOUND_CURRENT
784UNBOUND_VERSION_MICRO
785UNBOUND_VERSION_MINOR
786UNBOUND_VERSION_MAJOR
787target_alias
788host_alias
789build_alias
790LIBS
791ECHO_T
792ECHO_N
793ECHO_C
794DEFS
795mandir
796localedir
797libdir
798psdir
799pdfdir
800dvidir
801htmldir
802infodir
803docdir
804oldincludedir
805includedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL'
825ac_subst_files=''
826ac_user_opts='
827enable_option_checking
828with_conf_file
829with_run_dir
830with_chroot_dir
831with_share_dir
832with_pidfile
833with_rootkey_file
834with_rootcert_file
835with_username
836enable_checking
837enable_debug
838enable_flto
839enable_pie
840enable_relro_now
841enable_shared
842enable_static
843with_pic
844enable_fast_install
845with_aix_soname
846with_gnu_ld
847with_sysroot
848enable_libtool_lock
849enable_rpath
850enable_largefile
851enable_systemd
852enable_alloc_checks
853enable_alloc_lite
854enable_alloc_nonregional
855with_pthreads
856with_solaris_threads
857with_syslog_facility
858with_pyunbound
859with_pythonmodule
860enable_swig_version_check
861with_nss
862with_nettle
863with_ssl
864with_libbsd
865enable_sha1
866enable_sha2
867enable_subnet
868enable_gost
869enable_ecdsa
870enable_dsa
871enable_ed25519
872enable_ed448
873enable_event_api
874enable_tfo_client
875enable_tfo_server
876with_libevent
877with_libexpat
878with_libhiredis
879enable_static_exe
880enable_fully_static
881enable_lock_checks
882enable_allsymbols
883enable_dnstap
884with_dnstap_socket_path
885with_protobuf_c
886with_libfstrm
887enable_dnscrypt
888with_libsodium
889enable_cachedb
890enable_ipsecmod
891enable_ipset
892with_libmnl
893with_libunbound_only
894'
895      ac_precious_vars='build_alias
896host_alias
897target_alias
898CC
899CFLAGS
900LDFLAGS
901LIBS
902CPPFLAGS
903CPP
904YACC
905YFLAGS
906LT_SYS_LIBRARY_PATH
907PKG_CONFIG
908PKG_CONFIG_PATH
909PKG_CONFIG_LIBDIR
910SYSTEMD_CFLAGS
911SYSTEMD_LIBS
912SYSTEMD_DAEMON_CFLAGS
913SYSTEMD_DAEMON_LIBS
914PYTHON_VERSION'
915
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920ac_unrecognized_opts=
921ac_unrecognized_sep=
922# The variables have the same names as the options, with
923# dashes changed to underlines.
924cache_file=/dev/null
925exec_prefix=NONE
926no_create=
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
935verbose=
936x_includes=NONE
937x_libraries=NONE
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
944# (The list follows the same order as the GNU Coding Standards.)
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *=)   ac_optarg= ;;
979  *)    ac_optarg=yes ;;
980  esac
981
982  # Accept the important Cygnus configure options, so we can diagnose typos.
983
984  case $ac_dashdash$ac_option in
985  --)
986    ac_dashdash=yes ;;
987
988  -bindir | --bindir | --bindi | --bind | --bin | --bi)
989    ac_prev=bindir ;;
990  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991    bindir=$ac_optarg ;;
992
993  -build | --build | --buil | --bui | --bu)
994    ac_prev=build_alias ;;
995  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996    build_alias=$ac_optarg ;;
997
998  -cache-file | --cache-file | --cache-fil | --cache-fi \
999  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000    ac_prev=cache_file ;;
1001  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003    cache_file=$ac_optarg ;;
1004
1005  --config-cache | -C)
1006    cache_file=config.cache ;;
1007
1008  -datadir | --datadir | --datadi | --datad)
1009    ac_prev=datadir ;;
1010  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011    datadir=$ac_optarg ;;
1012
1013  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014  | --dataroo | --dataro | --datar)
1015    ac_prev=datarootdir ;;
1016  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018    datarootdir=$ac_optarg ;;
1019
1020  -disable-* | --disable-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error $? "invalid feature name: $ac_useropt"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"enable_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032	 ac_unrecognized_sep=', ';;
1033    esac
1034    eval enable_$ac_useropt=no ;;
1035
1036  -docdir | --docdir | --docdi | --doc | --do)
1037    ac_prev=docdir ;;
1038  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039    docdir=$ac_optarg ;;
1040
1041  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042    ac_prev=dvidir ;;
1043  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044    dvidir=$ac_optarg ;;
1045
1046  -enable-* | --enable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064  | --exec | --exe | --ex)
1065    ac_prev=exec_prefix ;;
1066  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068  | --exec=* | --exe=* | --ex=*)
1069    exec_prefix=$ac_optarg ;;
1070
1071  -gas | --gas | --ga | --g)
1072    # Obsolete; use --with-gas.
1073    with_gas=yes ;;
1074
1075  -help | --help | --hel | --he | -h)
1076    ac_init_help=long ;;
1077  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078    ac_init_help=recursive ;;
1079  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080    ac_init_help=short ;;
1081
1082  -host | --host | --hos | --ho)
1083    ac_prev=host_alias ;;
1084  -host=* | --host=* | --hos=* | --ho=*)
1085    host_alias=$ac_optarg ;;
1086
1087  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088    ac_prev=htmldir ;;
1089  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090  | --ht=*)
1091    htmldir=$ac_optarg ;;
1092
1093  -includedir | --includedir | --includedi | --included | --include \
1094  | --includ | --inclu | --incl | --inc)
1095    ac_prev=includedir ;;
1096  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097  | --includ=* | --inclu=* | --incl=* | --inc=*)
1098    includedir=$ac_optarg ;;
1099
1100  -infodir | --infodir | --infodi | --infod | --info | --inf)
1101    ac_prev=infodir ;;
1102  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103    infodir=$ac_optarg ;;
1104
1105  -libdir | --libdir | --libdi | --libd)
1106    ac_prev=libdir ;;
1107  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108    libdir=$ac_optarg ;;
1109
1110  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111  | --libexe | --libex | --libe)
1112    ac_prev=libexecdir ;;
1113  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114  | --libexe=* | --libex=* | --libe=*)
1115    libexecdir=$ac_optarg ;;
1116
1117  -localedir | --localedir | --localedi | --localed | --locale)
1118    ac_prev=localedir ;;
1119  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120    localedir=$ac_optarg ;;
1121
1122  -localstatedir | --localstatedir | --localstatedi | --localstated \
1123  | --localstate | --localstat | --localsta | --localst | --locals)
1124    ac_prev=localstatedir ;;
1125  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127    localstatedir=$ac_optarg ;;
1128
1129  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130    ac_prev=mandir ;;
1131  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132    mandir=$ac_optarg ;;
1133
1134  -nfp | --nfp | --nf)
1135    # Obsolete; use --without-fp.
1136    with_fp=no ;;
1137
1138  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139  | --no-cr | --no-c | -n)
1140    no_create=yes ;;
1141
1142  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144    no_recursion=yes ;;
1145
1146  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148  | --oldin | --oldi | --old | --ol | --o)
1149    ac_prev=oldincludedir ;;
1150  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153    oldincludedir=$ac_optarg ;;
1154
1155  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156    ac_prev=prefix ;;
1157  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158    prefix=$ac_optarg ;;
1159
1160  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161  | --program-pre | --program-pr | --program-p)
1162    ac_prev=program_prefix ;;
1163  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165    program_prefix=$ac_optarg ;;
1166
1167  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168  | --program-suf | --program-su | --program-s)
1169    ac_prev=program_suffix ;;
1170  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172    program_suffix=$ac_optarg ;;
1173
1174  -program-transform-name | --program-transform-name \
1175  | --program-transform-nam | --program-transform-na \
1176  | --program-transform-n | --program-transform- \
1177  | --program-transform | --program-transfor \
1178  | --program-transfo | --program-transf \
1179  | --program-trans | --program-tran \
1180  | --progr-tra | --program-tr | --program-t)
1181    ac_prev=program_transform_name ;;
1182  -program-transform-name=* | --program-transform-name=* \
1183  | --program-transform-nam=* | --program-transform-na=* \
1184  | --program-transform-n=* | --program-transform-=* \
1185  | --program-transform=* | --program-transfor=* \
1186  | --program-transfo=* | --program-transf=* \
1187  | --program-trans=* | --program-tran=* \
1188  | --progr-tra=* | --program-tr=* | --program-t=*)
1189    program_transform_name=$ac_optarg ;;
1190
1191  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192    ac_prev=pdfdir ;;
1193  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194    pdfdir=$ac_optarg ;;
1195
1196  -psdir | --psdir | --psdi | --psd | --ps)
1197    ac_prev=psdir ;;
1198  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199    psdir=$ac_optarg ;;
1200
1201  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202  | -silent | --silent | --silen | --sile | --sil)
1203    silent=yes ;;
1204
1205  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206    ac_prev=sbindir ;;
1207  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208  | --sbi=* | --sb=*)
1209    sbindir=$ac_optarg ;;
1210
1211  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213  | --sharedst | --shareds | --shared | --share | --shar \
1214  | --sha | --sh)
1215    ac_prev=sharedstatedir ;;
1216  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219  | --sha=* | --sh=*)
1220    sharedstatedir=$ac_optarg ;;
1221
1222  -site | --site | --sit)
1223    ac_prev=site ;;
1224  -site=* | --site=* | --sit=*)
1225    site=$ac_optarg ;;
1226
1227  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228    ac_prev=srcdir ;;
1229  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230    srcdir=$ac_optarg ;;
1231
1232  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233  | --syscon | --sysco | --sysc | --sys | --sy)
1234    ac_prev=sysconfdir ;;
1235  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237    sysconfdir=$ac_optarg ;;
1238
1239  -target | --target | --targe | --targ | --tar | --ta | --t)
1240    ac_prev=target_alias ;;
1241  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242    target_alias=$ac_optarg ;;
1243
1244  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245    verbose=yes ;;
1246
1247  -version | --version | --versio | --versi | --vers | -V)
1248    ac_init_version=: ;;
1249
1250  -with-* | --with-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=no ;;
1281
1282  --x)
1283    # Obsolete; use --with-x.
1284    with_x=yes ;;
1285
1286  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287  | --x-incl | --x-inc | --x-in | --x-i)
1288    ac_prev=x_includes ;;
1289  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291    x_includes=$ac_optarg ;;
1292
1293  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295    ac_prev=x_libraries ;;
1296  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298    x_libraries=$ac_optarg ;;
1299
1300  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302    ;;
1303
1304  *=*)
1305    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306    # Reject names that are not valid shell variable names.
1307    case $ac_envvar in #(
1308      '' | [0-9]* | *[!_$as_cr_alnum]* )
1309      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310    esac
1311    eval $ac_envvar=\$ac_optarg
1312    export $ac_envvar ;;
1313
1314  *)
1315    # FIXME: should be removed in autoconf 3.0.
1316    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320    ;;
1321
1322  esac
1323done
1324
1325if test -n "$ac_prev"; then
1326  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327  as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331  case $enable_option_checking in
1332    no) ;;
1333    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335  esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340		datadir sysconfdir sharedstatedir localstatedir includedir \
1341		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342		libdir localedir mandir
1343do
1344  eval ac_val=\$$ac_var
1345  # Remove trailing slashes.
1346  case $ac_val in
1347    */ )
1348      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349      eval $ac_var=\$ac_val;;
1350  esac
1351  # Be sure to have absolute directory names.
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370  elif test "x$build_alias" != "x$host_alias"; then
1371    cross_compiling=yes
1372  fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384  as_fn_error $? "working directory cannot be determined"
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386  as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389# Find the source files, if location was not specified.
1390if test -z "$srcdir"; then
1391  ac_srcdir_defaulted=yes
1392  # Try the directory containing this script, then the parent directory.
1393  ac_confdir=`$as_dirname -- "$as_myself" ||
1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395	 X"$as_myself" : 'X\(//\)[^/]' \| \
1396	 X"$as_myself" : 'X\(//\)$' \| \
1397	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398$as_echo X"$as_myself" |
1399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400	    s//\1/
1401	    q
1402	  }
1403	  /^X\(\/\/\)[^/].*/{
1404	    s//\1/
1405	    q
1406	  }
1407	  /^X\(\/\/\)$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\).*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  s/.*/./; q'`
1416  srcdir=$ac_confdir
1417  if test ! -r "$srcdir/$ac_unique_file"; then
1418    srcdir=..
1419  fi
1420else
1421  ac_srcdir_defaulted=no
1422fi
1423if test ! -r "$srcdir/$ac_unique_file"; then
1424  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426fi
1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428ac_abs_confdir=`(
1429	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430	pwd)`
1431# When building in place, set srcdir=.
1432if test "$ac_abs_confdir" = "$ac_pwd"; then
1433  srcdir=.
1434fi
1435# Remove unnecessary trailing slashes from srcdir.
1436# Double slashes in file names in object file debugging info
1437# mess up M-x gdb in Emacs.
1438case $srcdir in
1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440esac
1441for ac_var in $ac_precious_vars; do
1442  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443  eval ac_env_${ac_var}_value=\$${ac_var}
1444  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446done
1447
1448#
1449# Report the --help message.
1450#
1451if test "$ac_init_help" = "long"; then
1452  # Omit some internal or obsolete options to make the list less imposing.
1453  # This message is too long to be a string in the A/UX 3.1 sh.
1454  cat <<_ACEOF
1455\`configure' configures unbound 1.10.1 to adapt to many kinds of systems.
1456
1457Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462Defaults for the options are specified in brackets.
1463
1464Configuration:
1465  -h, --help              display this help and exit
1466      --help=short        display options specific to this package
1467      --help=recursive    display the short help of all the included packages
1468  -V, --version           display version information and exit
1469  -q, --quiet, --silent   do not print \`checking ...' messages
1470      --cache-file=FILE   cache test results in FILE [disabled]
1471  -C, --config-cache      alias for \`--cache-file=config.cache'
1472  -n, --no-create         do not create output files
1473      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475Installation directories:
1476  --prefix=PREFIX         install architecture-independent files in PREFIX
1477                          [$ac_default_prefix]
1478  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                          [PREFIX]
1480
1481By default, \`make install' will install all the files in
1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484for instance \`--prefix=\$HOME'.
1485
1486For better control, use the options below.
1487
1488Fine tuning of the installation directories:
1489  --bindir=DIR            user executables [EPREFIX/bin]
1490  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1491  --libexecdir=DIR        program executables [EPREFIX/libexec]
1492  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1493  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1494  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1495  --libdir=DIR            object code libraries [EPREFIX/lib]
1496  --includedir=DIR        C header files [PREFIX/include]
1497  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1498  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1499  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1500  --infodir=DIR           info documentation [DATAROOTDIR/info]
1501  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1502  --mandir=DIR            man documentation [DATAROOTDIR/man]
1503  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1504  --htmldir=DIR           html documentation [DOCDIR]
1505  --dvidir=DIR            dvi documentation [DOCDIR]
1506  --pdfdir=DIR            pdf documentation [DOCDIR]
1507  --psdir=DIR             ps documentation [DOCDIR]
1508_ACEOF
1509
1510  cat <<\_ACEOF
1511
1512System types:
1513  --build=BUILD     configure for building on BUILD [guessed]
1514  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1515_ACEOF
1516fi
1517
1518if test -n "$ac_init_help"; then
1519  case $ac_init_help in
1520     short | recursive ) echo "Configuration of unbound 1.10.1:";;
1521   esac
1522  cat <<\_ACEOF
1523
1524Optional Features:
1525  --disable-option-checking  ignore unrecognized --enable/--with options
1526  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528  --enable-checking       Enable warnings, asserts, makefile-dependencies
1529  --enable-debug          same as enable-checking
1530  --disable-flto          Disable link-time optimization (gcc specific option)
1531  --enable-pie            Enable Position-Independent Executable (eg. to fully
1532                          benefit from ASLR, small performance penalty)
1533  --enable-relro-now      Enable full relocation binding at load-time (RELRO
1534                          NOW, to protect GOT and .dtor areas)
1535  --enable-shared[=PKGS]  build shared libraries [default=yes]
1536  --enable-static[=PKGS]  build static libraries [default=yes]
1537  --enable-fast-install[=PKGS]
1538                          optimize for fast installation [default=yes]
1539  --disable-libtool-lock  avoid locking (might break parallel builds)
1540  --disable-rpath         disable hardcoded rpath (default=enabled)
1541  --disable-largefile     omit support for large files
1542  --enable-systemd        compile with systemd support
1543  --enable-alloc-checks   enable to memory allocation statistics, for debug
1544                          purposes
1545  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1546                          purposes
1547  --enable-alloc-nonregional
1548                          enable nonregional allocs, slow but exposes regional
1549                          allocations to other memory purifiers, for debug
1550                          purposes
1551  --disable-swig-version-check
1552                          Disable swig version check to build python modules
1553                          with older swig even though that is unreliable
1554  --disable-sha1          Disable SHA1 RRSIG support, does not disable nsec3
1555                          support
1556  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1557  --enable-subnet         Enable client subnet
1558  --disable-gost          Disable GOST support
1559  --disable-ecdsa         Disable ECDSA support
1560  --disable-dsa           Disable DSA support
1561  --disable-ed25519       Disable ED25519 support
1562  --disable-ed448         Disable ED448 support
1563  --enable-event-api      Enable (experimental) pluggable event base
1564                          libunbound API installed to unbound-event.h
1565  --enable-tfo-client     Enable TCP Fast Open for client mode
1566  --enable-tfo-server     Enable TCP Fast Open for server mode
1567  --enable-static-exe     enable to compile executables statically against
1568                          (event) uninstalled libs, for debug purposes
1569  --enable-fully-static   enable to compile fully static
1570  --enable-lock-checks    enable to check lock and unlock calls, for debug
1571                          purposes
1572  --enable-allsymbols     export all symbols from libunbound and link binaries
1573                          to it, smaller install size but libunbound export
1574                          table is polluted by internal symbols
1575  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1576  --enable-dnscrypt       Enable dnscrypt support (requires libsodium)
1577  --enable-cachedb        enable cachedb module that can use external cache
1578                          storage
1579  --enable-ipsecmod       Enable ipsecmod module that facilitates
1580                          opportunistic IPsec
1581  --enable-ipset          enable ipset module
1582
1583Optional Packages:
1584  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586  --with-conf-file=path   Pathname to the Unbound configuration file
1587  --with-run-dir=path     set default directory to chdir to (by default dir
1588                          part of cfg file)
1589  --with-chroot-dir=path  set default directory to chroot to (by default same
1590                          as run-dir)
1591  --with-share-dir=path   set default directory with shared data (by default
1592                          same as share/unbound)
1593  --with-pidfile=filename set default pathname to unbound pidfile (default
1594                          run-dir/unbound.pid)
1595  --with-rootkey-file=filename
1596                          set default pathname to root key file (default
1597                          run-dir/root.key). This file is read and written.
1598  --with-rootcert-file=filename
1599                          set default pathname to root update certificate file
1600                          (default run-dir/icannbundle.pem). This file need
1601                          not exist if you are content with the builtin.
1602  --with-username=user    set default user that unbound changes to (default
1603                          user is unbound)
1604  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1605                          both]
1606  --with-aix-soname=aix|svr4|both
1607                          shared library versioning (aka "SONAME") variant to
1608                          provide on AIX, [default=aix].
1609  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1611                          compiler's sysroot if not specified).
1612  --with-pthreads         use pthreads library, or --without-pthreads to
1613                          disable threading support.
1614  --with-solaris-threads  use solaris native thread library.
1615  --with-syslog-facility=LOCAL0 - LOCAL7
1616                          set SYSLOG_FACILITY, default DAEMON
1617  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1618                          (default=no)
1619  --with-pythonmodule     build Python module, or --without-pythonmodule to
1620                          disable script engine. (default=no)
1621  --with-nss=path         use libnss instead of openssl, installed at path.
1622  --with-nettle=path      use libnettle as crypto library, installed at path.
1623  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1624                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1625                          /usr)
1626  --with-libbsd           Use portable libbsd functions
1627  --with-libevent=pathname
1628                          use libevent (will check /usr/local /opt/local
1629                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1630                          an explicit path). Slower, but allows use of large
1631                          outgoing port ranges.
1632  --with-libexpat=path    specify explicit path for libexpat.
1633  --with-libhiredis=path  specify explicit path for libhiredis.
1634  --with-dnstap-socket-path=pathname
1635                          set default dnstap socket path
1636  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1637  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1638  --with-libsodium=path   Path where libsodium is installed, for dnscrypt
1639  --with-libmnl=path      specify explicit path for libmnl.
1640  --with-libunbound-only  do not build daemon and tool programs
1641
1642Some influential environment variables:
1643  CC          C compiler command
1644  CFLAGS      C compiler flags
1645  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1646              nonstandard directory <lib dir>
1647  LIBS        libraries to pass to the linker, e.g. -l<library>
1648  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649              you have headers in a nonstandard directory <include dir>
1650  CPP         C preprocessor
1651  YACC        The `Yet Another Compiler Compiler' implementation to use.
1652              Defaults to the first program found out of: `bison -y', `byacc',
1653              `yacc'.
1654  YFLAGS      The list of arguments that will be passed by default to $YACC.
1655              This script will default YFLAGS to the empty string to avoid a
1656              default value of `-d' given by some make applications.
1657  LT_SYS_LIBRARY_PATH
1658              User-defined run-time library search path.
1659  PKG_CONFIG  path to pkg-config utility
1660  PKG_CONFIG_PATH
1661              directories to add to pkg-config's search path
1662  PKG_CONFIG_LIBDIR
1663              path overriding pkg-config's built-in search path
1664  SYSTEMD_CFLAGS
1665              C compiler flags for SYSTEMD, overriding pkg-config
1666  SYSTEMD_LIBS
1667              linker flags for SYSTEMD, overriding pkg-config
1668  SYSTEMD_DAEMON_CFLAGS
1669              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1670  SYSTEMD_DAEMON_LIBS
1671              linker flags for SYSTEMD_DAEMON, overriding pkg-config
1672  PYTHON_VERSION
1673              The installed Python version to use, for example '2.3'. This
1674              string will be appended to the Python interpreter canonical
1675              name.
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
1680Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1681_ACEOF
1682ac_status=$?
1683fi
1684
1685if test "$ac_init_help" = "recursive"; then
1686  # If there are subdirs, report their specific --help.
1687  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688    test -d "$ac_dir" ||
1689      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690      continue
1691    ac_builddir=.
1692
1693case "$ac_dir" in
1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695*)
1696  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697  # A ".." for each directory in $ac_dir_suffix.
1698  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699  case $ac_top_builddir_sub in
1700  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702  esac ;;
1703esac
1704ac_abs_top_builddir=$ac_pwd
1705ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706# for backward compatibility:
1707ac_top_builddir=$ac_top_build_prefix
1708
1709case $srcdir in
1710  .)  # We are building in place.
1711    ac_srcdir=.
1712    ac_top_srcdir=$ac_top_builddir_sub
1713    ac_abs_top_srcdir=$ac_pwd ;;
1714  [\\/]* | ?:[\\/]* )  # Absolute name.
1715    ac_srcdir=$srcdir$ac_dir_suffix;
1716    ac_top_srcdir=$srcdir
1717    ac_abs_top_srcdir=$srcdir ;;
1718  *) # Relative name.
1719    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720    ac_top_srcdir=$ac_top_build_prefix$srcdir
1721    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722esac
1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725    cd "$ac_dir" || { ac_status=$?; continue; }
1726    # Check for guested configure.
1727    if test -f "$ac_srcdir/configure.gnu"; then
1728      echo &&
1729      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730    elif test -f "$ac_srcdir/configure"; then
1731      echo &&
1732      $SHELL "$ac_srcdir/configure" --help=recursive
1733    else
1734      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735    fi || ac_status=$?
1736    cd "$ac_pwd" || { ac_status=$?; break; }
1737  done
1738fi
1739
1740test -n "$ac_init_help" && exit $ac_status
1741if $ac_init_version; then
1742  cat <<\_ACEOF
1743unbound configure 1.10.1
1744generated by GNU Autoconf 2.69
1745
1746Copyright (C) 2012 Free Software Foundation, Inc.
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
1750  exit
1751fi
1752
1753## ------------------------ ##
1754## Autoconf initialization. ##
1755## ------------------------ ##
1756
1757# ac_fn_c_try_compile LINENO
1758# --------------------------
1759# Try to compile conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_compile ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext
1764  if { { ac_try="$ac_compile"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771  (eval "$ac_compile") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest.$ac_objext; then :
1783  ac_retval=0
1784else
1785  $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788	ac_retval=1
1789fi
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_compile
1794
1795# ac_fn_c_try_cpp LINENO
1796# ----------------------
1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_cpp ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_cpp conftest.$ac_ext"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } > conftest.i && {
1817	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1818	 test ! -s conftest.err
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825    ac_retval=1
1826fi
1827  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828  as_fn_set_status $ac_retval
1829
1830} # ac_fn_c_try_cpp
1831
1832# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833# -------------------------------------------------------
1834# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835# the include files in INCLUDES and setting the cache variable VAR
1836# accordingly.
1837ac_fn_c_check_header_mongrel ()
1838{
1839  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840  if eval \${$3+:} false; then :
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849else
1850  # Is the header compilable?
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852$as_echo_n "checking $2 usability... " >&6; }
1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855$4
1856#include <$2>
1857_ACEOF
1858if ac_fn_c_try_compile "$LINENO"; then :
1859  ac_header_compiler=yes
1860else
1861  ac_header_compiler=no
1862fi
1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865$as_echo "$ac_header_compiler" >&6; }
1866
1867# Is the header present?
1868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869$as_echo_n "checking $2 presence... " >&6; }
1870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872#include <$2>
1873_ACEOF
1874if ac_fn_c_try_cpp "$LINENO"; then :
1875  ac_header_preproc=yes
1876else
1877  ac_header_preproc=no
1878fi
1879rm -f conftest.err conftest.i conftest.$ac_ext
1880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881$as_echo "$ac_header_preproc" >&6; }
1882
1883# So?  What about this header?
1884case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1885  yes:no: )
1886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890    ;;
1891  no:yes:* )
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1895$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1896    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1899$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902( $as_echo "## --------------------------------------------------------------------------------------- ##
1903## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1904## --------------------------------------------------------------------------------------- ##"
1905     ) | sed "s/^/$as_me: WARNING:     /" >&2
1906    ;;
1907esac
1908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if eval \${$3+:} false; then :
1911  $as_echo_n "(cached) " >&6
1912else
1913  eval "$3=\$ac_header_compiler"
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918fi
1919  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921} # ac_fn_c_check_header_mongrel
1922
1923# ac_fn_c_try_run LINENO
1924# ----------------------
1925# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1926# that executables *can* be run.
1927ac_fn_c_try_run ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  if { { ac_try="$ac_link"
1931case "(($ac_try" in
1932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933  *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937  (eval "$ac_link") 2>&5
1938  ac_status=$?
1939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941  { { case "(($ac_try" in
1942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943  *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947  (eval "$ac_try") 2>&5
1948  ac_status=$?
1949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950  test $ac_status = 0; }; }; then :
1951  ac_retval=0
1952else
1953  $as_echo "$as_me: program exited with status $ac_status" >&5
1954       $as_echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957       ac_retval=$ac_status
1958fi
1959  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961  as_fn_set_status $ac_retval
1962
1963} # ac_fn_c_try_run
1964
1965# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1966# -------------------------------------------------------
1967# Tests whether HEADER exists and can be compiled using the include files in
1968# INCLUDES, setting the cache variable VAR accordingly.
1969ac_fn_c_check_header_compile ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973$as_echo_n "checking for $2... " >&6; }
1974if eval \${$3+:} false; then :
1975  $as_echo_n "(cached) " >&6
1976else
1977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980#include <$2>
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983  eval "$3=yes"
1984else
1985  eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989eval ac_res=\$$3
1990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994} # ac_fn_c_check_header_compile
1995
1996# ac_fn_c_try_link LINENO
1997# -----------------------
1998# Try to link conftest.$ac_ext, and return whether this succeeded.
1999ac_fn_c_try_link ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  rm -f conftest.$ac_objext conftest$ac_exeext
2003  if { { ac_try="$ac_link"
2004case "(($ac_try" in
2005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006  *) ac_try_echo=$ac_try;;
2007esac
2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009$as_echo "$ac_try_echo"; } >&5
2010  (eval "$ac_link") 2>conftest.err
2011  ac_status=$?
2012  if test -s conftest.err; then
2013    grep -v '^ *+' conftest.err >conftest.er1
2014    cat conftest.er1 >&5
2015    mv -f conftest.er1 conftest.err
2016  fi
2017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018  test $ac_status = 0; } && {
2019	 test -z "$ac_c_werror_flag" ||
2020	 test ! -s conftest.err
2021       } && test -s conftest$ac_exeext && {
2022	 test "$cross_compiling" = yes ||
2023	 test -x conftest$ac_exeext
2024       }; then :
2025  ac_retval=0
2026else
2027  $as_echo "$as_me: failed program was:" >&5
2028sed 's/^/| /' conftest.$ac_ext >&5
2029
2030	ac_retval=1
2031fi
2032  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2033  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2034  # interfere with the next link command; also delete a directory that is
2035  # left behind by Apple's compiler.  We do this before executing the actions.
2036  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038  as_fn_set_status $ac_retval
2039
2040} # ac_fn_c_try_link
2041
2042# ac_fn_c_check_func LINENO FUNC VAR
2043# ----------------------------------
2044# Tests whether FUNC exists, setting the cache variable VAR accordingly
2045ac_fn_c_check_func ()
2046{
2047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049$as_echo_n "checking for $2... " >&6; }
2050if eval \${$3+:} false; then :
2051  $as_echo_n "(cached) " >&6
2052else
2053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h.  */
2055/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2057#define $2 innocuous_$2
2058
2059/* System header to define __stub macros and hopefully few prototypes,
2060    which can conflict with char $2 (); below.
2061    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062    <limits.h> exists even on freestanding compilers.  */
2063
2064#ifdef __STDC__
2065# include <limits.h>
2066#else
2067# include <assert.h>
2068#endif
2069
2070#undef $2
2071
2072/* Override any GCC internal prototype to avoid an error.
2073   Use char because int might match the return type of a GCC
2074   builtin and then its argument prototype would still apply.  */
2075#ifdef __cplusplus
2076extern "C"
2077#endif
2078char $2 ();
2079/* The GNU C library defines this for functions which it implements
2080    to always fail with ENOSYS.  Some functions are actually named
2081    something starting with __ and the normal name is an alias.  */
2082#if defined __stub_$2 || defined __stub___$2
2083choke me
2084#endif
2085
2086int
2087main ()
2088{
2089return $2 ();
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_link "$LINENO"; then :
2095  eval "$3=yes"
2096else
2097  eval "$3=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext \
2100    conftest$ac_exeext conftest.$ac_ext
2101fi
2102eval ac_res=\$$3
2103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104$as_echo "$ac_res" >&6; }
2105  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107} # ac_fn_c_check_func
2108
2109# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110# -------------------------------------------
2111# Tests whether TYPE exists after having included INCLUDES, setting cache
2112# variable VAR accordingly.
2113ac_fn_c_check_type ()
2114{
2115  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117$as_echo_n "checking for $2... " >&6; }
2118if eval \${$3+:} false; then :
2119  $as_echo_n "(cached) " >&6
2120else
2121  eval "$3=no"
2122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h.  */
2124$4
2125int
2126main ()
2127{
2128if (sizeof ($2))
2129	 return 0;
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138int
2139main ()
2140{
2141if (sizeof (($2)))
2142	    return 0;
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148
2149else
2150  eval "$3=yes"
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155fi
2156eval ac_res=\$$3
2157	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158$as_echo "$ac_res" >&6; }
2159  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161} # ac_fn_c_check_type
2162
2163# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164# --------------------------------------------
2165# Tries to find the compile-time value of EXPR in a program that includes
2166# INCLUDES, setting VAR accordingly. Returns whether the value could be
2167# computed
2168ac_fn_c_compute_int ()
2169{
2170  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171  if test "$cross_compiling" = yes; then
2172    # Depending upon the size, compute the lo and hi bounds.
2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) >= 0)];
2180test_array [0] = 0;
2181return test_array [0];
2182
2183  ;
2184  return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188  ac_lo=0 ac_mid=0
2189  while :; do
2190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h.  */
2192$4
2193int
2194main ()
2195{
2196static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197test_array [0] = 0;
2198return test_array [0];
2199
2200  ;
2201  return 0;
2202}
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205  ac_hi=$ac_mid; break
2206else
2207  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2208			if test $ac_lo -le $ac_mid; then
2209			  ac_lo= ac_hi=
2210			  break
2211			fi
2212			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215  done
2216else
2217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h.  */
2219$4
2220int
2221main ()
2222{
2223static int test_array [1 - 2 * !(($2) < 0)];
2224test_array [0] = 0;
2225return test_array [0];
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231if ac_fn_c_try_compile "$LINENO"; then :
2232  ac_hi=-1 ac_mid=-1
2233  while :; do
2234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h.  */
2236$4
2237int
2238main ()
2239{
2240static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2241test_array [0] = 0;
2242return test_array [0];
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249  ac_lo=$ac_mid; break
2250else
2251  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252			if test $ac_mid -le $ac_hi; then
2253			  ac_lo= ac_hi=
2254			  break
2255			fi
2256			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259  done
2260else
2261  ac_lo= ac_hi=
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266# Binary search between lo and hi bounds.
2267while test "x$ac_lo" != "x$ac_hi"; do
2268  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271$4
2272int
2273main ()
2274{
2275static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276test_array [0] = 0;
2277return test_array [0];
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  ac_hi=$ac_mid
2285else
2286  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289done
2290case $ac_lo in #((
2291?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2292'') ac_retval=1 ;;
2293esac
2294  else
2295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296/* end confdefs.h.  */
2297$4
2298static long int longval () { return $2; }
2299static unsigned long int ulongval () { return $2; }
2300#include <stdio.h>
2301#include <stdlib.h>
2302int
2303main ()
2304{
2305
2306  FILE *f = fopen ("conftest.val", "w");
2307  if (! f)
2308    return 1;
2309  if (($2) < 0)
2310    {
2311      long int i = longval ();
2312      if (i != ($2))
2313	return 1;
2314      fprintf (f, "%ld", i);
2315    }
2316  else
2317    {
2318      unsigned long int i = ulongval ();
2319      if (i != ($2))
2320	return 1;
2321      fprintf (f, "%lu", i);
2322    }
2323  /* Do not output a trailing newline, as this causes \r\n confusion
2324     on some platforms.  */
2325  return ferror (f) || fclose (f) != 0;
2326
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331if ac_fn_c_try_run "$LINENO"; then :
2332  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2333else
2334  ac_retval=1
2335fi
2336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337  conftest.$ac_objext conftest.beam conftest.$ac_ext
2338rm -f conftest.val
2339
2340  fi
2341  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342  as_fn_set_status $ac_retval
2343
2344} # ac_fn_c_compute_int
2345
2346# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2347# ---------------------------------------------
2348# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2349# accordingly.
2350ac_fn_c_check_decl ()
2351{
2352  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353  as_decl_name=`echo $2|sed 's/ *(.*//'`
2354  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2356$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2357if eval \${$3+:} false; then :
2358  $as_echo_n "(cached) " >&6
2359else
2360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h.  */
2362$4
2363int
2364main ()
2365{
2366#ifndef $as_decl_name
2367#ifdef __cplusplus
2368  (void) $as_decl_use;
2369#else
2370  (void) $as_decl_name;
2371#endif
2372#endif
2373
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378if ac_fn_c_try_compile "$LINENO"; then :
2379  eval "$3=yes"
2380else
2381  eval "$3=no"
2382fi
2383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384fi
2385eval ac_res=\$$3
2386	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387$as_echo "$ac_res" >&6; }
2388  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389
2390} # ac_fn_c_check_decl
2391
2392# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2393# ----------------------------------------------------
2394# Tries to find if the field MEMBER exists in type AGGR, after including
2395# INCLUDES, setting cache variable VAR accordingly.
2396ac_fn_c_check_member ()
2397{
2398  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2400$as_echo_n "checking for $2.$3... " >&6; }
2401if eval \${$4+:} false; then :
2402  $as_echo_n "(cached) " >&6
2403else
2404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405/* end confdefs.h.  */
2406$5
2407int
2408main ()
2409{
2410static $2 ac_aggr;
2411if (ac_aggr.$3)
2412return 0;
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_compile "$LINENO"; then :
2418  eval "$4=yes"
2419else
2420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421/* end confdefs.h.  */
2422$5
2423int
2424main ()
2425{
2426static $2 ac_aggr;
2427if (sizeof ac_aggr.$3)
2428return 0;
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433if ac_fn_c_try_compile "$LINENO"; then :
2434  eval "$4=yes"
2435else
2436  eval "$4=no"
2437fi
2438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439fi
2440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441fi
2442eval ac_res=\$$4
2443	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444$as_echo "$ac_res" >&6; }
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446
2447} # ac_fn_c_check_member
2448cat >config.log <<_ACEOF
2449This file contains any messages produced by compilers while
2450running configure, to aid debugging if configure makes a mistake.
2451
2452It was created by unbound $as_me 1.10.1, which was
2453generated by GNU Autoconf 2.69.  Invocation command line was
2454
2455  $ $0 $@
2456
2457_ACEOF
2458exec 5>>config.log
2459{
2460cat <<_ASUNAME
2461## --------- ##
2462## Platform. ##
2463## --------- ##
2464
2465hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2466uname -m = `(uname -m) 2>/dev/null || echo unknown`
2467uname -r = `(uname -r) 2>/dev/null || echo unknown`
2468uname -s = `(uname -s) 2>/dev/null || echo unknown`
2469uname -v = `(uname -v) 2>/dev/null || echo unknown`
2470
2471/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2472/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2473
2474/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2475/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2476/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2477/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2478/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2479/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2480/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2481
2482_ASUNAME
2483
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487  IFS=$as_save_IFS
2488  test -z "$as_dir" && as_dir=.
2489    $as_echo "PATH: $as_dir"
2490  done
2491IFS=$as_save_IFS
2492
2493} >&5
2494
2495cat >&5 <<_ACEOF
2496
2497
2498## ----------- ##
2499## Core tests. ##
2500## ----------- ##
2501
2502_ACEOF
2503
2504
2505# Keep a trace of the command line.
2506# Strip out --no-create and --no-recursion so they do not pile up.
2507# Strip out --silent because we don't want to record it for future runs.
2508# Also quote any args containing shell meta-characters.
2509# Make two passes to allow for proper duplicate-argument suppression.
2510ac_configure_args=
2511ac_configure_args0=
2512ac_configure_args1=
2513ac_must_keep_next=false
2514for ac_pass in 1 2
2515do
2516  for ac_arg
2517  do
2518    case $ac_arg in
2519    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2520    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2521    | -silent | --silent | --silen | --sile | --sil)
2522      continue ;;
2523    *\'*)
2524      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2525    esac
2526    case $ac_pass in
2527    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2528    2)
2529      as_fn_append ac_configure_args1 " '$ac_arg'"
2530      if test $ac_must_keep_next = true; then
2531	ac_must_keep_next=false # Got value, back to normal.
2532      else
2533	case $ac_arg in
2534	  *=* | --config-cache | -C | -disable-* | --disable-* \
2535	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2536	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2537	  | -with-* | --with-* | -without-* | --without-* | --x)
2538	    case "$ac_configure_args0 " in
2539	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2540	    esac
2541	    ;;
2542	  -* ) ac_must_keep_next=true ;;
2543	esac
2544      fi
2545      as_fn_append ac_configure_args " '$ac_arg'"
2546      ;;
2547    esac
2548  done
2549done
2550{ ac_configure_args0=; unset ac_configure_args0;}
2551{ ac_configure_args1=; unset ac_configure_args1;}
2552
2553# When interrupted or exit'd, cleanup temporary files, and complete
2554# config.log.  We remove comments because anyway the quotes in there
2555# would cause problems or look ugly.
2556# WARNING: Use '\'' to represent an apostrophe within the trap.
2557# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2558trap 'exit_status=$?
2559  # Save into config.log some information that might help in debugging.
2560  {
2561    echo
2562
2563    $as_echo "## ---------------- ##
2564## Cache variables. ##
2565## ---------------- ##"
2566    echo
2567    # The following way of writing the cache mishandles newlines in values,
2568(
2569  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2570    eval ac_val=\$$ac_var
2571    case $ac_val in #(
2572    *${as_nl}*)
2573      case $ac_var in #(
2574      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2576      esac
2577      case $ac_var in #(
2578      _ | IFS | as_nl) ;; #(
2579      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580      *) { eval $ac_var=; unset $ac_var;} ;;
2581      esac ;;
2582    esac
2583  done
2584  (set) 2>&1 |
2585    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2586    *${as_nl}ac_space=\ *)
2587      sed -n \
2588	"s/'\''/'\''\\\\'\'''\''/g;
2589	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2590      ;; #(
2591    *)
2592      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2593      ;;
2594    esac |
2595    sort
2596)
2597    echo
2598
2599    $as_echo "## ----------------- ##
2600## Output variables. ##
2601## ----------------- ##"
2602    echo
2603    for ac_var in $ac_subst_vars
2604    do
2605      eval ac_val=\$$ac_var
2606      case $ac_val in
2607      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608      esac
2609      $as_echo "$ac_var='\''$ac_val'\''"
2610    done | sort
2611    echo
2612
2613    if test -n "$ac_subst_files"; then
2614      $as_echo "## ------------------- ##
2615## File substitutions. ##
2616## ------------------- ##"
2617      echo
2618      for ac_var in $ac_subst_files
2619      do
2620	eval ac_val=\$$ac_var
2621	case $ac_val in
2622	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2623	esac
2624	$as_echo "$ac_var='\''$ac_val'\''"
2625      done | sort
2626      echo
2627    fi
2628
2629    if test -s confdefs.h; then
2630      $as_echo "## ----------- ##
2631## confdefs.h. ##
2632## ----------- ##"
2633      echo
2634      cat confdefs.h
2635      echo
2636    fi
2637    test "$ac_signal" != 0 &&
2638      $as_echo "$as_me: caught signal $ac_signal"
2639    $as_echo "$as_me: exit $exit_status"
2640  } >&5
2641  rm -f core *.core core.conftest.* &&
2642    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2643    exit $exit_status
2644' 0
2645for ac_signal in 1 2 13 15; do
2646  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2647done
2648ac_signal=0
2649
2650# confdefs.h avoids OS command line length limits that DEFS can exceed.
2651rm -f -r conftest* confdefs.h
2652
2653$as_echo "/* confdefs.h */" > confdefs.h
2654
2655# Predefined preprocessor variables.
2656
2657cat >>confdefs.h <<_ACEOF
2658#define PACKAGE_NAME "$PACKAGE_NAME"
2659_ACEOF
2660
2661cat >>confdefs.h <<_ACEOF
2662#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2663_ACEOF
2664
2665cat >>confdefs.h <<_ACEOF
2666#define PACKAGE_VERSION "$PACKAGE_VERSION"
2667_ACEOF
2668
2669cat >>confdefs.h <<_ACEOF
2670#define PACKAGE_STRING "$PACKAGE_STRING"
2671_ACEOF
2672
2673cat >>confdefs.h <<_ACEOF
2674#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2675_ACEOF
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE_URL "$PACKAGE_URL"
2679_ACEOF
2680
2681
2682# Let the site file select an alternate cache file if it wants to.
2683# Prefer an explicitly selected file to automatically selected ones.
2684ac_site_file1=NONE
2685ac_site_file2=NONE
2686if test -n "$CONFIG_SITE"; then
2687  # We do not want a PATH search for config.site.
2688  case $CONFIG_SITE in #((
2689    -*)  ac_site_file1=./$CONFIG_SITE;;
2690    */*) ac_site_file1=$CONFIG_SITE;;
2691    *)   ac_site_file1=./$CONFIG_SITE;;
2692  esac
2693elif test "x$prefix" != xNONE; then
2694  ac_site_file1=$prefix/share/config.site
2695  ac_site_file2=$prefix/etc/config.site
2696else
2697  ac_site_file1=$ac_default_prefix/share/config.site
2698  ac_site_file2=$ac_default_prefix/etc/config.site
2699fi
2700for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2701do
2702  test "x$ac_site_file" = xNONE && continue
2703  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2704    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2705$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2706    sed 's/^/| /' "$ac_site_file" >&5
2707    . "$ac_site_file" \
2708      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710as_fn_error $? "failed to load site script $ac_site_file
2711See \`config.log' for more details" "$LINENO" 5; }
2712  fi
2713done
2714
2715if test -r "$cache_file"; then
2716  # Some versions of bash will fail to source /dev/null (special files
2717  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2718  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2719    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720$as_echo "$as_me: loading cache $cache_file" >&6;}
2721    case $cache_file in
2722      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2723      *)                      . "./$cache_file";;
2724    esac
2725  fi
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2728$as_echo "$as_me: creating cache $cache_file" >&6;}
2729  >$cache_file
2730fi
2731
2732# Check that the precious variables saved in the cache have kept the same
2733# value.
2734ac_cache_corrupted=false
2735for ac_var in $ac_precious_vars; do
2736  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2737  eval ac_new_set=\$ac_env_${ac_var}_set
2738  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2739  eval ac_new_val=\$ac_env_${ac_var}_value
2740  case $ac_old_set,$ac_new_set in
2741    set,)
2742      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744      ac_cache_corrupted=: ;;
2745    ,set)
2746      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748      ac_cache_corrupted=: ;;
2749    ,);;
2750    *)
2751      if test "x$ac_old_val" != "x$ac_new_val"; then
2752	# differences in whitespace do not lead to failure.
2753	ac_old_val_w=`echo x $ac_old_val`
2754	ac_new_val_w=`echo x $ac_new_val`
2755	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758	  ac_cache_corrupted=:
2759	else
2760	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762	  eval $ac_var=\$ac_old_val
2763	fi
2764	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2765$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2766	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2767$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2768      fi;;
2769  esac
2770  # Pass precious variables to config.status.
2771  if test "$ac_new_set" = set; then
2772    case $ac_new_val in
2773    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774    *) ac_arg=$ac_var=$ac_new_val ;;
2775    esac
2776    case " $ac_configure_args " in
2777      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2778      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2779    esac
2780  fi
2781done
2782if $ac_cache_corrupted; then
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2788fi
2789## -------------------- ##
2790## Main body of script. ##
2791## -------------------- ##
2792
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799
2800UNBOUND_VERSION_MAJOR=1
2801
2802UNBOUND_VERSION_MINOR=10
2803
2804UNBOUND_VERSION_MICRO=1
2805
2806
2807LIBUNBOUND_CURRENT=9
2808LIBUNBOUND_REVISION=8
2809LIBUNBOUND_AGE=1
2810# 1.0.0 had 0:12:0
2811# 1.0.1 had 0:13:0
2812# 1.0.2 had 0:14:0
2813# 1.1.0 had 0:15:0
2814# 1.1.1 had 0:16:0
2815# 1.2.0 had 0:17:0
2816# 1.2.1 had 0:18:0
2817# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2818# 1.3.1 had 1:1:0
2819# 1.3.2 had 1:2:0
2820# 1.3.3 had 1:3:0
2821# 1.3.4 had 1:4:0
2822# 1.4.0-snapshots had 1:5:0
2823# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2824# 1.4.1 had 2:1:0
2825# 1.4.2 had 2:2:0
2826# 1.4.3 had 2:3:0
2827# 1.4.4 had 2:4:0
2828# 1.4.5 had 2:5:0
2829# 1.4.6 had 2:6:0
2830# 1.4.7 had 2:7:0
2831# 1.4.8 had 2:8:0
2832# 1.4.9 had 2:9:0
2833# 1.4.10 had 2:10:0
2834# 1.4.11 had 2:11:0
2835# 1.4.12 had 2:12:0
2836# 1.4.13 had 2:13:0
2837# and 1.4.13p1 and 1.4.13.p2
2838# 1.4.14 had 2:14:0
2839# 1.4.15 had 3:0:1 # adds ub_version()
2840# 1.4.16 had 3:1:1
2841# 1.4.17 had 3:2:1
2842# 1.4.18 had 3:3:1
2843# 1.4.19 had 3:4:1
2844# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2845# 1.4.21 had 4:1:2
2846# 1.4.22 had 4:1:2
2847# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2848# 1.5.1 had 5:3:3
2849# 1.5.2 had 5:5:3
2850# 1.5.3 had 5:6:3
2851# 1.5.4 had 5:7:3
2852# 1.5.5 had 5:8:3
2853# 1.5.6 had 5:9:3
2854# 1.5.7 had 5:10:3
2855# 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2856# 1.5.9 had 6:1:4
2857# 1.5.10 had 6:2:4
2858# 1.6.0 had 6:3:4
2859# 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2860# 1.6.2 had 7:1:5
2861# 1.6.3 had 7:2:5
2862# 1.6.4 had 7:3:5
2863# 1.6.5 had 7:4:5
2864# 1.6.6 had 7:5:5
2865# 1.6.7 had 7:6:5
2866# 1.6.8 had 7:7:5
2867# 1.7.0 had 7:8:5
2868# 1.7.1 had 7:9:5
2869# 1.7.2 had 7:10:5
2870# 1.7.3 had 7:11:5
2871# 1.8.0 had 8:0:0 # changes the event callback function signature
2872# 1.8.1 had 8:1:0
2873# 1.8.2 had 8:2:0
2874# 1.8.3 had 8:3:0
2875# 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2876# 1.9.1 had 9:1:1
2877# 1.9.2 had 9:2:1
2878# 1.9.3 had 9:3:1
2879# 1.9.4 had 9:4:1
2880# 1.9.5 had 9:5:1
2881# 1.9.6 had 9:6:1
2882# 1.10.0 had 9:7:1
2883# 1.10.1 had 9:8:1
2884
2885#   Current  -- the number of the binary API that we're implementing
2886#   Revision -- which iteration of the implementation of the binary
2887#               API are we supplying?
2888#   Age      -- How many previous binary API versions do we also
2889#               support?
2890#
2891# If we release a new version that does not change the binary API,
2892# increment Revision.
2893#
2894# If we release a new version that changes the binary API, but does
2895# not break programs compiled against the old binary API, increment
2896# Current and Age.  Set Revision to 0, since this is the first
2897# implementation of the new API.
2898#
2899# Otherwise, we're changing the binary API and breaking backward
2900# compatibility with old binaries.  Increment Current.  Set Age to 0,
2901# since we're backward compatible with no previous APIs.  Set Revision
2902# to 0 too.
2903
2904
2905
2906
2907
2908cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2909
2910cat >>confdefs.h <<_ACEOF
2911#define CONFCMDLINE "$cmdln"
2912_ACEOF
2913
2914
2915CFLAGS="$CFLAGS"
2916ac_ext=c
2917ac_cpp='$CPP $CPPFLAGS'
2918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921if test -n "$ac_tool_prefix"; then
2922  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if ${ac_cv_prog_CC+:} false; then :
2927  $as_echo_n "(cached) " >&6
2928else
2929  if test -n "$CC"; then
2930  ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935  IFS=$as_save_IFS
2936  test -z "$as_dir" && as_dir=.
2937    for ac_exec_ext in '' $ac_executable_extensions; do
2938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944  done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949CC=$ac_cv_prog_CC
2950if test -n "$CC"; then
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952$as_echo "$CC" >&6; }
2953else
2954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958
2959fi
2960if test -z "$ac_cv_prog_CC"; then
2961  ac_ct_CC=$CC
2962  # Extract the first word of "gcc", so it can be a program name with args.
2963set dummy gcc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$ac_ct_CC"; then
2970  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_ac_ct_CC="gcc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990if test -n "$ac_ct_CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992$as_echo "$ac_ct_CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998  if test "x$ac_ct_CC" = x; then
2999    CC=""
3000  else
3001    case $cross_compiling:$ac_tool_warned in
3002yes:)
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005ac_tool_warned=yes ;;
3006esac
3007    CC=$ac_ct_CC
3008  fi
3009else
3010  CC="$ac_cv_prog_CC"
3011fi
3012
3013if test -z "$CC"; then
3014          if test -n "$ac_tool_prefix"; then
3015    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016set dummy ${ac_tool_prefix}cc; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if ${ac_cv_prog_CC+:} false; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  if test -n "$CC"; then
3023  ac_cv_prog_CC="$CC" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028  IFS=$as_save_IFS
3029  test -z "$as_dir" && as_dir=.
3030    for ac_exec_ext in '' $ac_executable_extensions; do
3031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032    ac_cv_prog_CC="${ac_tool_prefix}cc"
3033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034    break 2
3035  fi
3036done
3037  done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042CC=$ac_cv_prog_CC
3043if test -n "$CC"; then
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045$as_echo "$CC" >&6; }
3046else
3047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051
3052  fi
3053fi
3054if test -z "$CC"; then
3055  # Extract the first word of "cc", so it can be a program name with args.
3056set dummy cc; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if ${ac_cv_prog_CC+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  if test -n "$CC"; then
3063  ac_cv_prog_CC="$CC" # Let the user override the test.
3064else
3065  ac_prog_rejected=no
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074       ac_prog_rejected=yes
3075       continue
3076     fi
3077    ac_cv_prog_CC="cc"
3078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079    break 2
3080  fi
3081done
3082  done
3083IFS=$as_save_IFS
3084
3085if test $ac_prog_rejected = yes; then
3086  # We found a bogon in the path, so make sure we never use it.
3087  set dummy $ac_cv_prog_CC
3088  shift
3089  if test $# != 0; then
3090    # We chose a different compiler from the bogus one.
3091    # However, it has the same basename, so the bogon will be chosen
3092    # first if we set CC to just the basename; use the full file name.
3093    shift
3094    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3095  fi
3096fi
3097fi
3098fi
3099CC=$ac_cv_prog_CC
3100if test -n "$CC"; then
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102$as_echo "$CC" >&6; }
3103else
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109fi
3110if test -z "$CC"; then
3111  if test -n "$ac_tool_prefix"; then
3112  for ac_prog in cl.exe
3113  do
3114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117$as_echo_n "checking for $ac_word... " >&6; }
3118if ${ac_cv_prog_CC+:} false; then :
3119  $as_echo_n "(cached) " >&6
3120else
3121  if test -n "$CC"; then
3122  ac_cv_prog_CC="$CC" # Let the user override the test.
3123else
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    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136  done
3137IFS=$as_save_IFS
3138
3139fi
3140fi
3141CC=$ac_cv_prog_CC
3142if test -n "$CC"; then
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144$as_echo "$CC" >&6; }
3145else
3146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148fi
3149
3150
3151    test -n "$CC" && break
3152  done
3153fi
3154if test -z "$CC"; then
3155  ac_ct_CC=$CC
3156  for ac_prog in cl.exe
3157do
3158  # Extract the first word of "$ac_prog", so it can be a program name with args.
3159set dummy $ac_prog; ac_word=$2
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161$as_echo_n "checking for $ac_word... " >&6; }
3162if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165  if test -n "$ac_ct_CC"; then
3166  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167else
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171  IFS=$as_save_IFS
3172  test -z "$as_dir" && as_dir=.
3173    for ac_exec_ext in '' $ac_executable_extensions; do
3174  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175    ac_cv_prog_ac_ct_CC="$ac_prog"
3176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177    break 2
3178  fi
3179done
3180  done
3181IFS=$as_save_IFS
3182
3183fi
3184fi
3185ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186if test -n "$ac_ct_CC"; then
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188$as_echo "$ac_ct_CC" >&6; }
3189else
3190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193
3194
3195  test -n "$ac_ct_CC" && break
3196done
3197
3198  if test "x$ac_ct_CC" = x; then
3199    CC=""
3200  else
3201    case $cross_compiling:$ac_tool_warned in
3202yes:)
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205ac_tool_warned=yes ;;
3206esac
3207    CC=$ac_ct_CC
3208  fi
3209fi
3210
3211fi
3212
3213
3214test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216as_fn_error $? "no acceptable C compiler found in \$PATH
3217See \`config.log' for more details" "$LINENO" 5; }
3218
3219# Provide some information about the compiler.
3220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221set X $ac_compile
3222ac_compiler=$2
3223for ac_option in --version -v -V -qversion; do
3224  { { ac_try="$ac_compiler $ac_option >&5"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232  ac_status=$?
3233  if test -s conftest.err; then
3234    sed '10a\
3235... rest of stderr output deleted ...
3236         10q' conftest.err >conftest.er1
3237    cat conftest.er1 >&5
3238  fi
3239  rm -f conftest.er1 conftest.err
3240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241  test $ac_status = 0; }
3242done
3243
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246
3247int
3248main ()
3249{
3250
3251  ;
3252  return 0;
3253}
3254_ACEOF
3255ac_clean_files_save=$ac_clean_files
3256ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257# Try to create an executable without -o first, disregard a.out.
3258# It will help us diagnose broken compilers, and finding out an intuition
3259# of exeext.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3261$as_echo_n "checking whether the C compiler works... " >&6; }
3262ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263
3264# The possible output files:
3265ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266
3267ac_rmfiles=
3268for ac_file in $ac_files
3269do
3270  case $ac_file in
3271    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3273  esac
3274done
3275rm -f $ac_rmfiles
3276
3277if { { ac_try="$ac_link_default"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284  (eval "$ac_link_default") 2>&5
3285  ac_status=$?
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }; then :
3288  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3291# so that the user can short-circuit this test for compilers unknown to
3292# Autoconf.
3293for ac_file in $ac_files ''
3294do
3295  test -f "$ac_file" || continue
3296  case $ac_file in
3297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298	;;
3299    [ab].out )
3300	# We found the default executable, but exeext='' is most
3301	# certainly right.
3302	break;;
3303    *.* )
3304	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305	then :; else
3306	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307	fi
3308	# We set ac_cv_exeext here because the later test for it is not
3309	# safe: cross compilers may not add the suffix if given an `-o'
3310	# argument, so we may need to know it at that point already.
3311	# Even if this section looks crufty: it has the advantage of
3312	# actually working.
3313	break;;
3314    * )
3315	break;;
3316  esac
3317done
3318test "$ac_cv_exeext" = no && ac_cv_exeext=
3319
3320else
3321  ac_file=''
3322fi
3323if test -z "$ac_file"; then :
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326$as_echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error 77 "C compiler cannot create executables
3332See \`config.log' for more details" "$LINENO" 5; }
3333else
3334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335$as_echo "yes" >&6; }
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3338$as_echo_n "checking for C compiler default output file name... " >&6; }
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340$as_echo "$ac_file" >&6; }
3341ac_exeext=$ac_cv_exeext
3342
3343rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344ac_clean_files=$ac_clean_files_save
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346$as_echo_n "checking for suffix of executables... " >&6; }
3347if { { ac_try="$ac_link"
3348case "(($ac_try" in
3349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350  *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354  (eval "$ac_link") 2>&5
3355  ac_status=$?
3356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357  test $ac_status = 0; }; then :
3358  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3359# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3360# work properly (i.e., refer to `conftest.exe'), while it won't with
3361# `rm'.
3362for ac_file in conftest.exe conftest conftest.*; do
3363  test -f "$ac_file" || continue
3364  case $ac_file in
3365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367	  break;;
3368    * ) break;;
3369  esac
3370done
3371else
3372  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375See \`config.log' for more details" "$LINENO" 5; }
3376fi
3377rm -f conftest conftest$ac_cv_exeext
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379$as_echo "$ac_cv_exeext" >&6; }
3380
3381rm -f conftest.$ac_ext
3382EXEEXT=$ac_cv_exeext
3383ac_exeext=$EXEEXT
3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386#include <stdio.h>
3387int
3388main ()
3389{
3390FILE *f = fopen ("conftest.out", "w");
3391 return ferror (f) || fclose (f) != 0;
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397ac_clean_files="$ac_clean_files conftest.out"
3398# Check that the compiler produces executables we can run.  If not, either
3399# the compiler is broken, or we cross compile.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401$as_echo_n "checking whether we are cross compiling... " >&6; }
3402if test "$cross_compiling" != yes; then
3403  { { ac_try="$ac_link"
3404case "(($ac_try" in
3405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406  *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410  (eval "$ac_link") 2>&5
3411  ac_status=$?
3412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413  test $ac_status = 0; }
3414  if { ac_try='./conftest$ac_cv_exeext'
3415  { { case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_try") 2>&5
3422  ac_status=$?
3423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424  test $ac_status = 0; }; }; then
3425    cross_compiling=no
3426  else
3427    if test "$cross_compiling" = maybe; then
3428	cross_compiling=yes
3429    else
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 run C compiled programs.
3433If you meant to cross compile, use \`--host'.
3434See \`config.log' for more details" "$LINENO" 5; }
3435    fi
3436  fi
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439$as_echo "$cross_compiling" >&6; }
3440
3441rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442ac_clean_files=$ac_clean_files_save
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444$as_echo_n "checking for suffix of object files... " >&6; }
3445if ${ac_cv_objext+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459rm -f conftest.o conftest.obj
3460if { { ac_try="$ac_compile"
3461case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467  (eval "$ac_compile") 2>&5
3468  ac_status=$?
3469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470  test $ac_status = 0; }; then :
3471  for ac_file in conftest.o conftest.obj conftest.*; do
3472  test -f "$ac_file" || continue;
3473  case $ac_file in
3474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3476       break;;
3477  esac
3478done
3479else
3480  $as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot compute suffix of object files: cannot compile
3486See \`config.log' for more details" "$LINENO" 5; }
3487fi
3488rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491$as_echo "$ac_cv_objext" >&6; }
3492OBJEXT=$ac_cv_objext
3493ac_objext=$OBJEXT
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3495$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3496if ${ac_cv_c_compiler_gnu+:} false; then :
3497  $as_echo_n "(cached) " >&6
3498else
3499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h.  */
3501
3502int
3503main ()
3504{
3505#ifndef __GNUC__
3506       choke me
3507#endif
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514  ac_compiler_gnu=yes
3515else
3516  ac_compiler_gnu=no
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519ac_cv_c_compiler_gnu=$ac_compiler_gnu
3520
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3523$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3524if test $ac_compiler_gnu = yes; then
3525  GCC=yes
3526else
3527  GCC=
3528fi
3529ac_test_CFLAGS=${CFLAGS+set}
3530ac_save_CFLAGS=$CFLAGS
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532$as_echo_n "checking whether $CC accepts -g... " >&6; }
3533if ${ac_cv_prog_cc_g+:} false; then :
3534  $as_echo_n "(cached) " >&6
3535else
3536  ac_save_c_werror_flag=$ac_c_werror_flag
3537   ac_c_werror_flag=yes
3538   ac_cv_prog_cc_g=no
3539   CFLAGS="-g"
3540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551if ac_fn_c_try_compile "$LINENO"; then :
3552  ac_cv_prog_cc_g=yes
3553else
3554  CFLAGS=""
3555      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566if ac_fn_c_try_compile "$LINENO"; then :
3567
3568else
3569  ac_c_werror_flag=$ac_save_c_werror_flag
3570	 CFLAGS="-g"
3571	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h.  */
3573
3574int
3575main ()
3576{
3577
3578  ;
3579  return 0;
3580}
3581_ACEOF
3582if ac_fn_c_try_compile "$LINENO"; then :
3583  ac_cv_prog_cc_g=yes
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590   ac_c_werror_flag=$ac_save_c_werror_flag
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3593$as_echo "$ac_cv_prog_cc_g" >&6; }
3594if test "$ac_test_CFLAGS" = set; then
3595  CFLAGS=$ac_save_CFLAGS
3596elif test $ac_cv_prog_cc_g = yes; then
3597  if test "$GCC" = yes; then
3598    CFLAGS="-g -O2"
3599  else
3600    CFLAGS="-g"
3601  fi
3602else
3603  if test "$GCC" = yes; then
3604    CFLAGS="-O2"
3605  else
3606    CFLAGS=
3607  fi
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611if ${ac_cv_prog_cc_c89+:} false; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  ac_cv_prog_cc_c89=no
3615ac_save_CC=$CC
3616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h.  */
3618#include <stdarg.h>
3619#include <stdio.h>
3620struct stat;
3621/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3622struct buf { int x; };
3623FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624static char *e (p, i)
3625     char **p;
3626     int i;
3627{
3628  return p[i];
3629}
3630static char *f (char * (*g) (char **, int), char **p, ...)
3631{
3632  char *s;
3633  va_list v;
3634  va_start (v,p);
3635  s = g (p, va_arg (v,int));
3636  va_end (v);
3637  return s;
3638}
3639
3640/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3641   function prototypes and stuff, but not '\xHH' hex character constants.
3642   These don't provoke an error unfortunately, instead are silently treated
3643   as 'x'.  The following induces an error, until -std is added to get
3644   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3645   array size at least.  It's necessary to write '\x00'==0 to get something
3646   that's true only with -std.  */
3647int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650   inside strings and character constants.  */
3651#define FOO(x) 'x'
3652int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654int test (int i, double x);
3655struct s1 {int (*f) (int a);};
3656struct s2 {int (*f) (double a);};
3657int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658int argc;
3659char **argv;
3660int
3661main ()
3662{
3663return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670do
3671  CC="$ac_save_CC $ac_arg"
3672  if ac_fn_c_try_compile "$LINENO"; then :
3673  ac_cv_prog_cc_c89=$ac_arg
3674fi
3675rm -f core conftest.err conftest.$ac_objext
3676  test "x$ac_cv_prog_cc_c89" != "xno" && break
3677done
3678rm -f conftest.$ac_ext
3679CC=$ac_save_CC
3680
3681fi
3682# AC_CACHE_VAL
3683case "x$ac_cv_prog_cc_c89" in
3684  x)
3685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686$as_echo "none needed" >&6; } ;;
3687  xno)
3688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689$as_echo "unsupported" >&6; } ;;
3690  *)
3691    CC="$CC $ac_cv_prog_cc_c89"
3692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694esac
3695if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697fi
3698
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3712$as_echo_n "checking how to run the C preprocessor... " >&6; }
3713# On Suns, sometimes $CPP names a directory.
3714if test -n "$CPP" && test -d "$CPP"; then
3715  CPP=
3716fi
3717if test -z "$CPP"; then
3718  if ${ac_cv_prog_CPP+:} false; then :
3719  $as_echo_n "(cached) " >&6
3720else
3721      # Double quotes because CPP needs to be expanded
3722    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3723    do
3724      ac_preproc_ok=false
3725for ac_c_preproc_warn_flag in '' yes
3726do
3727  # Use a header file that comes with gcc, so configuring glibc
3728  # with a fresh cross-compiler works.
3729  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730  # <limits.h> exists even on freestanding compilers.
3731  # On the NeXT, cc -E runs the code through the compiler's parser,
3732  # not just through cpp. "Syntax error" is here to catch this case.
3733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735#ifdef __STDC__
3736# include <limits.h>
3737#else
3738# include <assert.h>
3739#endif
3740		     Syntax error
3741_ACEOF
3742if ac_fn_c_try_cpp "$LINENO"; then :
3743
3744else
3745  # Broken: fails on valid input.
3746continue
3747fi
3748rm -f conftest.err conftest.i conftest.$ac_ext
3749
3750  # OK, works on sane cases.  Now check whether nonexistent headers
3751  # can be detected and how.
3752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754#include <ac_nonexistent.h>
3755_ACEOF
3756if ac_fn_c_try_cpp "$LINENO"; then :
3757  # Broken: success on invalid input.
3758continue
3759else
3760  # Passes both tests.
3761ac_preproc_ok=:
3762break
3763fi
3764rm -f conftest.err conftest.i conftest.$ac_ext
3765
3766done
3767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3768rm -f conftest.i conftest.err conftest.$ac_ext
3769if $ac_preproc_ok; then :
3770  break
3771fi
3772
3773    done
3774    ac_cv_prog_CPP=$CPP
3775
3776fi
3777  CPP=$ac_cv_prog_CPP
3778else
3779  ac_cv_prog_CPP=$CPP
3780fi
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3782$as_echo "$CPP" >&6; }
3783ac_preproc_ok=false
3784for ac_c_preproc_warn_flag in '' yes
3785do
3786  # Use a header file that comes with gcc, so configuring glibc
3787  # with a fresh cross-compiler works.
3788  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789  # <limits.h> exists even on freestanding compilers.
3790  # On the NeXT, cc -E runs the code through the compiler's parser,
3791  # not just through cpp. "Syntax error" is here to catch this case.
3792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#ifdef __STDC__
3795# include <limits.h>
3796#else
3797# include <assert.h>
3798#endif
3799		     Syntax error
3800_ACEOF
3801if ac_fn_c_try_cpp "$LINENO"; then :
3802
3803else
3804  # Broken: fails on valid input.
3805continue
3806fi
3807rm -f conftest.err conftest.i conftest.$ac_ext
3808
3809  # OK, works on sane cases.  Now check whether nonexistent headers
3810  # can be detected and how.
3811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h.  */
3813#include <ac_nonexistent.h>
3814_ACEOF
3815if ac_fn_c_try_cpp "$LINENO"; then :
3816  # Broken: success on invalid input.
3817continue
3818else
3819  # Passes both tests.
3820ac_preproc_ok=:
3821break
3822fi
3823rm -f conftest.err conftest.i conftest.$ac_ext
3824
3825done
3826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827rm -f conftest.i conftest.err conftest.$ac_ext
3828if $ac_preproc_ok; then :
3829
3830else
3831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3834See \`config.log' for more details" "$LINENO" 5; }
3835fi
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3845$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3846if ${ac_cv_path_GREP+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -z "$GREP"; then
3850  ac_path_GREP_found=false
3851  # Loop through the user's path and test for each of PROGNAME-LIST
3852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857    for ac_prog in grep ggrep; do
3858    for ac_exec_ext in '' $ac_executable_extensions; do
3859      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860      as_fn_executable_p "$ac_path_GREP" || continue
3861# Check for GNU ac_path_GREP and select it if it is found.
3862  # Check for GNU $ac_path_GREP
3863case `"$ac_path_GREP" --version 2>&1` in
3864*GNU*)
3865  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3866*)
3867  ac_count=0
3868  $as_echo_n 0123456789 >"conftest.in"
3869  while :
3870  do
3871    cat "conftest.in" "conftest.in" >"conftest.tmp"
3872    mv "conftest.tmp" "conftest.in"
3873    cp "conftest.in" "conftest.nl"
3874    $as_echo 'GREP' >> "conftest.nl"
3875    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877    as_fn_arith $ac_count + 1 && ac_count=$as_val
3878    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879      # Best one so far, save it but keep looking for a better one
3880      ac_cv_path_GREP="$ac_path_GREP"
3881      ac_path_GREP_max=$ac_count
3882    fi
3883    # 10*(2^10) chars as input seems more than enough
3884    test $ac_count -gt 10 && break
3885  done
3886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887esac
3888
3889      $ac_path_GREP_found && break 3
3890    done
3891  done
3892  done
3893IFS=$as_save_IFS
3894  if test -z "$ac_cv_path_GREP"; then
3895    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3896  fi
3897else
3898  ac_cv_path_GREP=$GREP
3899fi
3900
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3903$as_echo "$ac_cv_path_GREP" >&6; }
3904 GREP="$ac_cv_path_GREP"
3905
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3908$as_echo_n "checking for egrep... " >&6; }
3909if ${ac_cv_path_EGREP+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3913   then ac_cv_path_EGREP="$GREP -E"
3914   else
3915     if test -z "$EGREP"; then
3916  ac_path_EGREP_found=false
3917  # Loop through the user's path and test for each of PROGNAME-LIST
3918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_prog in egrep; do
3924    for ac_exec_ext in '' $ac_executable_extensions; do
3925      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3926      as_fn_executable_p "$ac_path_EGREP" || continue
3927# Check for GNU ac_path_EGREP and select it if it is found.
3928  # Check for GNU $ac_path_EGREP
3929case `"$ac_path_EGREP" --version 2>&1` in
3930*GNU*)
3931  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3932*)
3933  ac_count=0
3934  $as_echo_n 0123456789 >"conftest.in"
3935  while :
3936  do
3937    cat "conftest.in" "conftest.in" >"conftest.tmp"
3938    mv "conftest.tmp" "conftest.in"
3939    cp "conftest.in" "conftest.nl"
3940    $as_echo 'EGREP' >> "conftest.nl"
3941    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943    as_fn_arith $ac_count + 1 && ac_count=$as_val
3944    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3945      # Best one so far, save it but keep looking for a better one
3946      ac_cv_path_EGREP="$ac_path_EGREP"
3947      ac_path_EGREP_max=$ac_count
3948    fi
3949    # 10*(2^10) chars as input seems more than enough
3950    test $ac_count -gt 10 && break
3951  done
3952  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953esac
3954
3955      $ac_path_EGREP_found && break 3
3956    done
3957  done
3958  done
3959IFS=$as_save_IFS
3960  if test -z "$ac_cv_path_EGREP"; then
3961    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3962  fi
3963else
3964  ac_cv_path_EGREP=$EGREP
3965fi
3966
3967   fi
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3970$as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3972
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3975$as_echo_n "checking for ANSI C header files... " >&6; }
3976if ${ac_cv_header_stdc+:} false; then :
3977  $as_echo_n "(cached) " >&6
3978else
3979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981#include <stdlib.h>
3982#include <stdarg.h>
3983#include <string.h>
3984#include <float.h>
3985
3986int
3987main ()
3988{
3989
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994if ac_fn_c_try_compile "$LINENO"; then :
3995  ac_cv_header_stdc=yes
3996else
3997  ac_cv_header_stdc=no
3998fi
3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000
4001if test $ac_cv_header_stdc = yes; then
4002  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h.  */
4005#include <string.h>
4006
4007_ACEOF
4008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009  $EGREP "memchr" >/dev/null 2>&1; then :
4010
4011else
4012  ac_cv_header_stdc=no
4013fi
4014rm -f conftest*
4015
4016fi
4017
4018if test $ac_cv_header_stdc = yes; then
4019  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h.  */
4022#include <stdlib.h>
4023
4024_ACEOF
4025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026  $EGREP "free" >/dev/null 2>&1; then :
4027
4028else
4029  ac_cv_header_stdc=no
4030fi
4031rm -f conftest*
4032
4033fi
4034
4035if test $ac_cv_header_stdc = yes; then
4036  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037  if test "$cross_compiling" = yes; then :
4038  :
4039else
4040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#include <ctype.h>
4043#include <stdlib.h>
4044#if ((' ' & 0x0FF) == 0x020)
4045# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4046# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4047#else
4048# define ISLOWER(c) \
4049		   (('a' <= (c) && (c) <= 'i') \
4050		     || ('j' <= (c) && (c) <= 'r') \
4051		     || ('s' <= (c) && (c) <= 'z'))
4052# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4053#endif
4054
4055#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4056int
4057main ()
4058{
4059  int i;
4060  for (i = 0; i < 256; i++)
4061    if (XOR (islower (i), ISLOWER (i))
4062	|| toupper (i) != TOUPPER (i))
4063      return 2;
4064  return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_run "$LINENO"; then :
4068
4069else
4070  ac_cv_header_stdc=no
4071fi
4072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4073  conftest.$ac_objext conftest.beam conftest.$ac_ext
4074fi
4075
4076fi
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4079$as_echo "$ac_cv_header_stdc" >&6; }
4080if test $ac_cv_header_stdc = yes; then
4081
4082$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4083
4084fi
4085
4086# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4087for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4088		  inttypes.h stdint.h unistd.h
4089do :
4090  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4091ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4092"
4093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4094  cat >>confdefs.h <<_ACEOF
4095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096_ACEOF
4097
4098fi
4099
4100done
4101
4102
4103
4104  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4105if test "x$ac_cv_header_minix_config_h" = xyes; then :
4106  MINIX=yes
4107else
4108  MINIX=
4109fi
4110
4111
4112  if test "$MINIX" = yes; then
4113
4114$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4115
4116
4117$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4118
4119
4120$as_echo "#define _MINIX 1" >>confdefs.h
4121
4122  fi
4123
4124
4125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4126$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4127if ${ac_cv_safe_to_define___extensions__+:} false; then :
4128  $as_echo_n "(cached) " >&6
4129else
4130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132
4133#         define __EXTENSIONS__ 1
4134          $ac_includes_default
4135int
4136main ()
4137{
4138
4139  ;
4140  return 0;
4141}
4142_ACEOF
4143if ac_fn_c_try_compile "$LINENO"; then :
4144  ac_cv_safe_to_define___extensions__=yes
4145else
4146  ac_cv_safe_to_define___extensions__=no
4147fi
4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4151$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4152  test $ac_cv_safe_to_define___extensions__ = yes &&
4153    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4154
4155  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4156
4157  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4158
4159  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4160
4161  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4162
4163
4164
4165if test "$ac_cv_header_minix_config_h" = "yes"; then
4166
4167$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4168
4169fi
4170
4171case "$prefix" in
4172        NONE)
4173		prefix="/usr/local"
4174        ;;
4175esac
4176case "$exec_prefix" in
4177        NONE)
4178		exec_prefix="$prefix"
4179        ;;
4180esac
4181
4182# are we on MinGW?
4183if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4184else
4185	if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4186	else on_mingw="no"; fi
4187fi
4188
4189#
4190# Determine configuration file
4191# the eval is to evaluate shell expansion twice
4192UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4193
4194UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4195
4196UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4197
4198if test $on_mingw = "no"; then
4199  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4200else
4201  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4202fi
4203
4204# Check whether --with-conf_file was given.
4205if test "${with_conf_file+set}" = set; then :
4206  withval=$with_conf_file; ub_conf_file="$withval"
4207fi
4208
4209
4210hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4211
4212
4213cat >>confdefs.h <<_ACEOF
4214#define CONFIGFILE "$hdr_config"
4215_ACEOF
4216
4217ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4218$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4219	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4220	 X"$ub_conf_file" : 'X\(//\)$' \| \
4221	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4222$as_echo X"$ub_conf_file" |
4223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4224	    s//\1/
4225	    q
4226	  }
4227	  /^X\(\/\/\)[^/].*/{
4228	    s//\1/
4229	    q
4230	  }
4231	  /^X\(\/\/\)$/{
4232	    s//\1/
4233	    q
4234	  }
4235	  /^X\(\/\).*/{
4236	    s//\1/
4237	    q
4238	  }
4239	  s/.*/./; q'`
4240
4241
4242# Determine run, chroot directory and pidfile locations
4243
4244# Check whether --with-run-dir was given.
4245if test "${with_run_dir+set}" = set; then :
4246  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4247else
4248  if test $on_mingw = no; then
4249    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4250else
4251    UNBOUND_RUN_DIR=""
4252fi
4253
4254fi
4255
4256
4257hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4258
4259
4260cat >>confdefs.h <<_ACEOF
4261#define RUN_DIR "$hdr_run"
4262_ACEOF
4263
4264
4265
4266# Check whether --with-chroot-dir was given.
4267if test "${with_chroot_dir+set}" = set; then :
4268  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4269else
4270  if test $on_mingw = no; then
4271    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4272else
4273    UNBOUND_CHROOT_DIR=""
4274fi
4275
4276fi
4277
4278
4279hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4280
4281
4282cat >>confdefs.h <<_ACEOF
4283#define CHROOT_DIR "$hdr_chroot"
4284_ACEOF
4285
4286
4287
4288# Check whether --with-share-dir was given.
4289if test "${with_share_dir+set}" = set; then :
4290  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4291else
4292  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4293fi
4294
4295
4296
4297cat >>confdefs.h <<_ACEOF
4298#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4299_ACEOF
4300
4301
4302
4303# Check whether --with-pidfile was given.
4304if test "${with_pidfile+set}" = set; then :
4305  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4306else
4307  if test $on_mingw = no; then
4308    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4309else
4310    UNBOUND_PIDFILE=""
4311fi
4312
4313fi
4314
4315
4316hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define PIDFILE "$hdr_pid"
4321_ACEOF
4322
4323
4324
4325# Check whether --with-rootkey-file was given.
4326if test "${with_rootkey_file+set}" = set; then :
4327  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4328else
4329  if test $on_mingw = no; then
4330    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4331else
4332    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4333fi
4334
4335fi
4336
4337
4338hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4339
4340
4341cat >>confdefs.h <<_ACEOF
4342#define ROOT_ANCHOR_FILE "$hdr_rkey"
4343_ACEOF
4344
4345
4346
4347# Check whether --with-rootcert-file was given.
4348if test "${with_rootcert_file+set}" = set; then :
4349  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4350else
4351  if test $on_mingw = no; then
4352    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4353else
4354    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4355fi
4356
4357fi
4358
4359
4360hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4361
4362
4363cat >>confdefs.h <<_ACEOF
4364#define ROOT_CERT_FILE "$hdr_rpem"
4365_ACEOF
4366
4367
4368
4369# Check whether --with-username was given.
4370if test "${with_username+set}" = set; then :
4371  withval=$with_username; UNBOUND_USERNAME="$withval"
4372else
4373  UNBOUND_USERNAME="unbound"
4374fi
4375
4376
4377
4378cat >>confdefs.h <<_ACEOF
4379#define UB_USERNAME "$UNBOUND_USERNAME"
4380_ACEOF
4381
4382
4383
4384$as_echo "#define WINVER 0x0502" >>confdefs.h
4385
4386wnvs=`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/' `
4387
4388
4389cat >>confdefs.h <<_ACEOF
4390#define RSRC_PACKAGE_VERSION $wnvs
4391_ACEOF
4392
4393
4394# Checks for typedefs, structures, and compiler characteristics.
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4396$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4397if ${ac_cv_c_const+:} false; then :
4398  $as_echo_n "(cached) " >&6
4399else
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402
4403int
4404main ()
4405{
4406
4407#ifndef __cplusplus
4408  /* Ultrix mips cc rejects this sort of thing.  */
4409  typedef int charset[2];
4410  const charset cs = { 0, 0 };
4411  /* SunOS 4.1.1 cc rejects this.  */
4412  char const *const *pcpcc;
4413  char **ppc;
4414  /* NEC SVR4.0.2 mips cc rejects this.  */
4415  struct point {int x, y;};
4416  static struct point const zero = {0,0};
4417  /* AIX XL C 1.02.0.0 rejects this.
4418     It does not let you subtract one const X* pointer from another in
4419     an arm of an if-expression whose if-part is not a constant
4420     expression */
4421  const char *g = "string";
4422  pcpcc = &g + (g ? g-g : 0);
4423  /* HPUX 7.0 cc rejects these. */
4424  ++pcpcc;
4425  ppc = (char**) pcpcc;
4426  pcpcc = (char const *const *) ppc;
4427  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4428    char tx;
4429    char *t = &tx;
4430    char const *s = 0 ? (char *) 0 : (char const *) 0;
4431
4432    *t++ = 0;
4433    if (s) return 0;
4434  }
4435  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4436    int x[] = {25, 17};
4437    const int *foo = &x[0];
4438    ++foo;
4439  }
4440  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4441    typedef const int *iptr;
4442    iptr p = 0;
4443    ++p;
4444  }
4445  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4446       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4447    struct s { int j; const int *ap[3]; } bx;
4448    struct s *b = &bx; b->j = 5;
4449  }
4450  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4451    const int foo = 10;
4452    if (!foo) return 0;
4453  }
4454  return !cs[0] && !zero.x;
4455#endif
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462  ac_cv_c_const=yes
4463else
4464  ac_cv_c_const=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467fi
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4469$as_echo "$ac_cv_c_const" >&6; }
4470if test $ac_cv_c_const = no; then
4471
4472$as_echo "#define const /**/" >>confdefs.h
4473
4474fi
4475
4476ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482# allow user to override the -g -O2 flags.
4483default_cflags=no
4484if test "x$CFLAGS" = "x" ; then
4485
4486
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4488$as_echo_n "checking whether $CC supports -g... " >&6; }
4489cache=`echo g | sed 'y%.=/+-%___p_%'`
4490if eval \${cv_prog_cc_flag_$cache+:} false; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493
4494echo 'void f(void){}' >conftest.c
4495if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4496eval "cv_prog_cc_flag_$cache=yes"
4497else
4498eval "cv_prog_cc_flag_$cache=no"
4499fi
4500rm -f conftest conftest.o conftest.c
4501
4502fi
4503
4504if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506$as_echo "yes" >&6; }
4507:
4508CFLAGS="$CFLAGS -g"
4509else
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511$as_echo "no" >&6; }
4512:
4513
4514fi
4515
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4519$as_echo_n "checking whether $CC supports -O2... " >&6; }
4520cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4521if eval \${cv_prog_cc_flag_$cache+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524
4525echo 'void f(void){}' >conftest.c
4526if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4527eval "cv_prog_cc_flag_$cache=yes"
4528else
4529eval "cv_prog_cc_flag_$cache=no"
4530fi
4531rm -f conftest conftest.o conftest.c
4532
4533fi
4534
4535if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537$as_echo "yes" >&6; }
4538:
4539CFLAGS="$CFLAGS -O2"
4540else
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543:
4544
4545fi
4546
4547default_cflags=yes
4548fi
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554if test -n "$ac_tool_prefix"; then
4555  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}gcc; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if ${ac_cv_prog_CC+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  if test -n "$CC"; then
4563  ac_cv_prog_CC="$CC" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568  IFS=$as_save_IFS
4569  test -z "$as_dir" && as_dir=.
4570    for ac_exec_ext in '' $ac_executable_extensions; do
4571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574    break 2
4575  fi
4576done
4577  done
4578IFS=$as_save_IFS
4579
4580fi
4581fi
4582CC=$ac_cv_prog_CC
4583if test -n "$CC"; then
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4585$as_echo "$CC" >&6; }
4586else
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
4592fi
4593if test -z "$ac_cv_prog_CC"; then
4594  ac_ct_CC=$CC
4595  # Extract the first word of "gcc", so it can be a program name with args.
4596set dummy gcc; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
4599if ${ac_cv_prog_ac_ct_CC+:} false; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602  if test -n "$ac_ct_CC"; then
4603  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608  IFS=$as_save_IFS
4609  test -z "$as_dir" && as_dir=.
4610    for ac_exec_ext in '' $ac_executable_extensions; do
4611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612    ac_cv_prog_ac_ct_CC="gcc"
4613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617  done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622ac_ct_CC=$ac_cv_prog_ac_ct_CC
4623if test -n "$ac_ct_CC"; then
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4625$as_echo "$ac_ct_CC" >&6; }
4626else
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630
4631  if test "x$ac_ct_CC" = x; then
4632    CC=""
4633  else
4634    case $cross_compiling:$ac_tool_warned in
4635yes:)
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638ac_tool_warned=yes ;;
4639esac
4640    CC=$ac_ct_CC
4641  fi
4642else
4643  CC="$ac_cv_prog_CC"
4644fi
4645
4646if test -z "$CC"; then
4647          if test -n "$ac_tool_prefix"; then
4648    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}cc; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if ${ac_cv_prog_CC+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  if test -n "$CC"; then
4656  ac_cv_prog_CC="$CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661  IFS=$as_save_IFS
4662  test -z "$as_dir" && as_dir=.
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665    ac_cv_prog_CC="${ac_tool_prefix}cc"
4666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670  done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675CC=$ac_cv_prog_CC
4676if test -n "$CC"; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678$as_echo "$CC" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685  fi
4686fi
4687if test -z "$CC"; then
4688  # Extract the first word of "cc", so it can be a program name with args.
4689set dummy cc; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if ${ac_cv_prog_CC+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  if test -n "$CC"; then
4696  ac_cv_prog_CC="$CC" # Let the user override the test.
4697else
4698  ac_prog_rejected=no
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702  IFS=$as_save_IFS
4703  test -z "$as_dir" && as_dir=.
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707       ac_prog_rejected=yes
4708       continue
4709     fi
4710    ac_cv_prog_CC="cc"
4711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715  done
4716IFS=$as_save_IFS
4717
4718if test $ac_prog_rejected = yes; then
4719  # We found a bogon in the path, so make sure we never use it.
4720  set dummy $ac_cv_prog_CC
4721  shift
4722  if test $# != 0; then
4723    # We chose a different compiler from the bogus one.
4724    # However, it has the same basename, so the bogon will be chosen
4725    # first if we set CC to just the basename; use the full file name.
4726    shift
4727    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4728  fi
4729fi
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
4742fi
4743if test -z "$CC"; then
4744  if test -n "$ac_tool_prefix"; then
4745  for ac_prog in cl.exe
4746  do
4747    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if ${ac_cv_prog_CC+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  if test -n "$CC"; then
4755  ac_cv_prog_CC="$CC" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760  IFS=$as_save_IFS
4761  test -z "$as_dir" && as_dir=.
4762    for ac_exec_ext in '' $ac_executable_extensions; do
4763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766    break 2
4767  fi
4768done
4769  done
4770IFS=$as_save_IFS
4771
4772fi
4773fi
4774CC=$ac_cv_prog_CC
4775if test -n "$CC"; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777$as_echo "$CC" >&6; }
4778else
4779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
4781fi
4782
4783
4784    test -n "$CC" && break
4785  done
4786fi
4787if test -z "$CC"; then
4788  ac_ct_CC=$CC
4789  for ac_prog in cl.exe
4790do
4791  # Extract the first word of "$ac_prog", so it can be a program name with args.
4792set dummy $ac_prog; ac_word=$2
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if ${ac_cv_prog_ac_ct_CC+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -n "$ac_ct_CC"; then
4799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808    ac_cv_prog_ac_ct_CC="$ac_prog"
4809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812done
4813  done
4814IFS=$as_save_IFS
4815
4816fi
4817fi
4818ac_ct_CC=$ac_cv_prog_ac_ct_CC
4819if test -n "$ac_ct_CC"; then
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4821$as_echo "$ac_ct_CC" >&6; }
4822else
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827
4828  test -n "$ac_ct_CC" && break
4829done
4830
4831  if test "x$ac_ct_CC" = x; then
4832    CC=""
4833  else
4834    case $cross_compiling:$ac_tool_warned in
4835yes:)
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838ac_tool_warned=yes ;;
4839esac
4840    CC=$ac_ct_CC
4841  fi
4842fi
4843
4844fi
4845
4846
4847test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849as_fn_error $? "no acceptable C compiler found in \$PATH
4850See \`config.log' for more details" "$LINENO" 5; }
4851
4852# Provide some information about the compiler.
4853$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4854set X $ac_compile
4855ac_compiler=$2
4856for ac_option in --version -v -V -qversion; do
4857  { { ac_try="$ac_compiler $ac_option >&5"
4858case "(($ac_try" in
4859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860  *) ac_try_echo=$ac_try;;
4861esac
4862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863$as_echo "$ac_try_echo"; } >&5
4864  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4865  ac_status=$?
4866  if test -s conftest.err; then
4867    sed '10a\
4868... rest of stderr output deleted ...
4869         10q' conftest.err >conftest.er1
4870    cat conftest.er1 >&5
4871  fi
4872  rm -f conftest.er1 conftest.err
4873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874  test $ac_status = 0; }
4875done
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4878$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4879if ${ac_cv_c_compiler_gnu+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884
4885int
4886main ()
4887{
4888#ifndef __GNUC__
4889       choke me
4890#endif
4891
4892  ;
4893  return 0;
4894}
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897  ac_compiler_gnu=yes
4898else
4899  ac_compiler_gnu=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902ac_cv_c_compiler_gnu=$ac_compiler_gnu
4903
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4906$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4907if test $ac_compiler_gnu = yes; then
4908  GCC=yes
4909else
4910  GCC=
4911fi
4912ac_test_CFLAGS=${CFLAGS+set}
4913ac_save_CFLAGS=$CFLAGS
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4915$as_echo_n "checking whether $CC accepts -g... " >&6; }
4916if ${ac_cv_prog_cc_g+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  ac_save_c_werror_flag=$ac_c_werror_flag
4920   ac_c_werror_flag=yes
4921   ac_cv_prog_cc_g=no
4922   CFLAGS="-g"
4923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935  ac_cv_prog_cc_g=yes
4936else
4937  CFLAGS=""
4938      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941int
4942main ()
4943{
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949if ac_fn_c_try_compile "$LINENO"; then :
4950
4951else
4952  ac_c_werror_flag=$ac_save_c_werror_flag
4953	 CFLAGS="-g"
4954	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956
4957int
4958main ()
4959{
4960
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965if ac_fn_c_try_compile "$LINENO"; then :
4966  ac_cv_prog_cc_g=yes
4967fi
4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969fi
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973   ac_c_werror_flag=$ac_save_c_werror_flag
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4976$as_echo "$ac_cv_prog_cc_g" >&6; }
4977if test "$ac_test_CFLAGS" = set; then
4978  CFLAGS=$ac_save_CFLAGS
4979elif test $ac_cv_prog_cc_g = yes; then
4980  if test "$GCC" = yes; then
4981    CFLAGS="-g -O2"
4982  else
4983    CFLAGS="-g"
4984  fi
4985else
4986  if test "$GCC" = yes; then
4987    CFLAGS="-O2"
4988  else
4989    CFLAGS=
4990  fi
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4993$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4994if ${ac_cv_prog_cc_c89+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  ac_cv_prog_cc_c89=no
4998ac_save_CC=$CC
4999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001#include <stdarg.h>
5002#include <stdio.h>
5003struct stat;
5004/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5005struct buf { int x; };
5006FILE * (*rcsopen) (struct buf *, struct stat *, int);
5007static char *e (p, i)
5008     char **p;
5009     int i;
5010{
5011  return p[i];
5012}
5013static char *f (char * (*g) (char **, int), char **p, ...)
5014{
5015  char *s;
5016  va_list v;
5017  va_start (v,p);
5018  s = g (p, va_arg (v,int));
5019  va_end (v);
5020  return s;
5021}
5022
5023/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5024   function prototypes and stuff, but not '\xHH' hex character constants.
5025   These don't provoke an error unfortunately, instead are silently treated
5026   as 'x'.  The following induces an error, until -std is added to get
5027   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5028   array size at least.  It's necessary to write '\x00'==0 to get something
5029   that's true only with -std.  */
5030int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5031
5032/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5033   inside strings and character constants.  */
5034#define FOO(x) 'x'
5035int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5036
5037int test (int i, double x);
5038struct s1 {int (*f) (int a);};
5039struct s2 {int (*f) (double a);};
5040int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5041int argc;
5042char **argv;
5043int
5044main ()
5045{
5046return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5047  ;
5048  return 0;
5049}
5050_ACEOF
5051for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5052	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5053do
5054  CC="$ac_save_CC $ac_arg"
5055  if ac_fn_c_try_compile "$LINENO"; then :
5056  ac_cv_prog_cc_c89=$ac_arg
5057fi
5058rm -f core conftest.err conftest.$ac_objext
5059  test "x$ac_cv_prog_cc_c89" != "xno" && break
5060done
5061rm -f conftest.$ac_ext
5062CC=$ac_save_CC
5063
5064fi
5065# AC_CACHE_VAL
5066case "x$ac_cv_prog_cc_c89" in
5067  x)
5068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5069$as_echo "none needed" >&6; } ;;
5070  xno)
5071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5072$as_echo "unsupported" >&6; } ;;
5073  *)
5074    CC="$CC $ac_cv_prog_cc_c89"
5075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5076$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5077esac
5078if test "x$ac_cv_prog_cc_c89" != xno; then :
5079
5080fi
5081
5082ac_ext=c
5083ac_cpp='$CPP $CPPFLAGS'
5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5090$as_echo_n "checking $CC dependency flag... " >&6; }
5091echo 'void f(){}' >conftest.c
5092if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5093	DEPFLAG="-MM"
5094else
5095  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5096	DEPFLAG="-xM1"
5097  else
5098	DEPFLAG="-MM"  # dunno do something
5099  fi
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5102$as_echo "$DEPFLAG" >&6; }
5103rm -f conftest.c
5104
5105
5106
5107
5108
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5110$as_echo_n "checking whether $CC supports -Werror... " >&6; }
5111cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5112if eval \${cv_prog_cc_flag_$cache+:} false; then :
5113  $as_echo_n "(cached) " >&6
5114else
5115
5116echo 'void f(void){}' >conftest.c
5117if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5118eval "cv_prog_cc_flag_$cache=yes"
5119else
5120eval "cv_prog_cc_flag_$cache=no"
5121fi
5122rm -f conftest conftest.o conftest.c
5123
5124fi
5125
5126if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128$as_echo "yes" >&6; }
5129:
5130ERRFLAG="-Werror"
5131else
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
5134:
5135ERRFLAG="-errwarn"
5136fi
5137
5138
5139
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5141$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5142cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5143if eval \${cv_prog_cc_flag_$cache+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146
5147echo 'void f(void){}' >conftest.c
5148if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5149eval "cv_prog_cc_flag_$cache=yes"
5150else
5151eval "cv_prog_cc_flag_$cache=no"
5152fi
5153rm -f conftest conftest.o conftest.c
5154
5155fi
5156
5157if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159$as_echo "yes" >&6; }
5160:
5161ERRFLAG="$ERRFLAG -Wall"
5162else
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164$as_echo "no" >&6; }
5165:
5166ERRFLAG="$ERRFLAG -errfmt"
5167fi
5168
5169
5170
5171
5172
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5174$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5175cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5176if eval \${cv_prog_cc_flag_$cache+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179
5180echo 'void f(void){}' >conftest.c
5181if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5182eval "cv_prog_cc_flag_$cache=yes"
5183else
5184eval "cv_prog_cc_flag_$cache=no"
5185fi
5186rm -f conftest conftest.o conftest.c
5187
5188fi
5189
5190if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192$as_echo "yes" >&6; }
5193:
5194C99FLAG="-std=c99"
5195else
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198:
5199
5200fi
5201
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5205$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5206cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5207if eval \${cv_prog_cc_flag_$cache+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210
5211echo 'void f(void){}' >conftest.c
5212if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5213eval "cv_prog_cc_flag_$cache=yes"
5214else
5215eval "cv_prog_cc_flag_$cache=no"
5216fi
5217rm -f conftest conftest.o conftest.c
5218
5219fi
5220
5221if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223$as_echo "yes" >&6; }
5224:
5225C99FLAG="-xc99"
5226else
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229:
5230
5231fi
5232
5233
5234for ac_header in getopt.h time.h
5235do :
5236  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5238"
5239if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5240  cat >>confdefs.h <<_ACEOF
5241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242_ACEOF
5243
5244fi
5245
5246done
5247
5248
5249
5250
5251
5252{ $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
5253$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; }
5254cache=`$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`
5255if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258
5259echo '
5260#include "confdefs.h"
5261#include <stdlib.h>
5262#include <ctype.h>
5263#include <sys/time.h>
5264#ifdef HAVE_TIME_H
5265#include <time.h>
5266#endif
5267#include <unistd.h>
5268#include <netdb.h>
5269#ifdef HAVE_GETOPT_H
5270#include <getopt.h>
5271#endif
5272
5273int test() {
5274	int a;
5275	char **opts = NULL;
5276	struct timeval tv;
5277	char *t;
5278	time_t time = 0;
5279	char *buf = NULL;
5280	const char* str = NULL;
5281	struct msghdr msg;
5282	msg.msg_control = 0;
5283	t = ctime_r(&time, buf);
5284	tv.tv_usec = 10;
5285	srandom(32);
5286	a = getopt(2, opts, "a");
5287	a = isascii(32);
5288	str = gai_strerror(0);
5289	if(str && t && tv.tv_usec && msg.msg_control)
5290		a = 0;
5291	return a;
5292}
5293' > conftest.c
5294echo 'void f(){}' >>conftest.c
5295if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5296eval "cv_prog_cc_flag_needed_$cache=no"
5297else
5298
5299if 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
5300eval "cv_prog_cc_flag_needed_$cache=yes"
5301else
5302eval "cv_prog_cc_flag_needed_$cache=fail"
5303#echo 'Test with flag fails too!'
5304#cat conftest.c
5305#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"
5306#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`
5307#exit 1
5308fi
5309
5310fi
5311rm -f conftest conftest.c conftest.o
5312
5313fi
5314
5315if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317$as_echo "yes" >&6; }
5318:
5319CFLAGS="$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"
5320else
5321if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324#echo 'Test with flag is no!'
5325#cat conftest.c
5326#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"
5327#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`
5328#exit 1
5329:
5330
5331else
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5333$as_echo "failed" >&6; }
5334:
5335
5336fi
5337fi
5338
5339
5340
5341
5342
5343{ $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
5344$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; }
5345cache=`$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`
5346if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5347  $as_echo_n "(cached) " >&6
5348else
5349
5350echo '
5351#include "confdefs.h"
5352#include <stdlib.h>
5353#include <ctype.h>
5354#include <sys/time.h>
5355#ifdef HAVE_TIME_H
5356#include <time.h>
5357#endif
5358#include <unistd.h>
5359#include <netdb.h>
5360#ifdef HAVE_GETOPT_H
5361#include <getopt.h>
5362#endif
5363
5364int test() {
5365	int a;
5366	char **opts = NULL;
5367	struct timeval tv;
5368	char *t;
5369	time_t time = 0;
5370	char *buf = NULL;
5371	const char* str = NULL;
5372	struct msghdr msg;
5373	msg.msg_control = 0;
5374	t = ctime_r(&time, buf);
5375	tv.tv_usec = 10;
5376	srandom(32);
5377	a = getopt(2, opts, "a");
5378	a = isascii(32);
5379	str = gai_strerror(0);
5380	if(str && t && tv.tv_usec && msg.msg_control)
5381		a = 0;
5382	return a;
5383}
5384' > conftest.c
5385echo 'void f(){}' >>conftest.c
5386if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5387eval "cv_prog_cc_flag_needed_$cache=no"
5388else
5389
5390if 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
5391eval "cv_prog_cc_flag_needed_$cache=yes"
5392else
5393eval "cv_prog_cc_flag_needed_$cache=fail"
5394#echo 'Test with flag fails too!'
5395#cat conftest.c
5396#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"
5397#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`
5398#exit 1
5399fi
5400
5401fi
5402rm -f conftest conftest.c conftest.o
5403
5404fi
5405
5406if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408$as_echo "yes" >&6; }
5409:
5410CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5411else
5412if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414$as_echo "no" >&6; }
5415#echo 'Test with flag is no!'
5416#cat conftest.c
5417#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"
5418#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`
5419#exit 1
5420:
5421
5422else
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5424$as_echo "failed" >&6; }
5425:
5426
5427fi
5428fi
5429
5430
5431
5432
5433
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5435$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5436cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5437if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440
5441echo '
5442#include <stdbool.h>
5443#include <ctype.h>
5444int test() {
5445        int a = 0;
5446        return a;
5447}
5448' > conftest.c
5449echo 'void f(){}' >>conftest.c
5450if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5451eval "cv_prog_cc_flag_needed_$cache=no"
5452else
5453
5454if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5455eval "cv_prog_cc_flag_needed_$cache=yes"
5456else
5457eval "cv_prog_cc_flag_needed_$cache=fail"
5458#echo 'Test with flag fails too!'
5459#cat conftest.c
5460#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5461#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5462#exit 1
5463fi
5464
5465fi
5466rm -f conftest conftest.c conftest.o
5467
5468fi
5469
5470if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472$as_echo "yes" >&6; }
5473:
5474CFLAGS="$CFLAGS $C99FLAG"
5475else
5476if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479#echo 'Test with flag is no!'
5480#cat conftest.c
5481#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5482#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5483#exit 1
5484:
5485
5486else
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5488$as_echo "failed" >&6; }
5489:
5490
5491fi
5492fi
5493
5494
5495
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5499$as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5500cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5501if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504
5505echo '
5506#include <ctype.h>
5507
5508int test() {
5509        int a;
5510        a = isascii(32);
5511        return a;
5512}
5513' > conftest.c
5514echo 'void f(){}' >>conftest.c
5515if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5516eval "cv_prog_cc_flag_needed_$cache=no"
5517else
5518
5519if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5520eval "cv_prog_cc_flag_needed_$cache=yes"
5521else
5522eval "cv_prog_cc_flag_needed_$cache=fail"
5523#echo 'Test with flag fails too!'
5524#cat conftest.c
5525#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5526#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5527#exit 1
5528fi
5529
5530fi
5531rm -f conftest conftest.c conftest.o
5532
5533fi
5534
5535if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537$as_echo "yes" >&6; }
5538:
5539CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5540else
5541if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544#echo 'Test with flag is no!'
5545#cat conftest.c
5546#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5547#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5548#exit 1
5549:
5550
5551else
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5553$as_echo "failed" >&6; }
5554:
5555
5556fi
5557fi
5558
5559
5560
5561
5562
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5564$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5565cache=_D_GNU_SOURCE
5566if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569
5570echo '
5571#include <netinet/in.h>
5572
5573int test() {
5574        struct in6_pktinfo inf;
5575	int a = (int)sizeof(inf);
5576        return a;
5577}
5578' > conftest.c
5579echo 'void f(){}' >>conftest.c
5580if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5581eval "cv_prog_cc_flag_needed_$cache=no"
5582else
5583
5584if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5585eval "cv_prog_cc_flag_needed_$cache=yes"
5586else
5587eval "cv_prog_cc_flag_needed_$cache=fail"
5588#echo 'Test with flag fails too!'
5589#cat conftest.c
5590#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5591#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5592#exit 1
5593fi
5594
5595fi
5596rm -f conftest conftest.c conftest.o
5597
5598fi
5599
5600if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602$as_echo "yes" >&6; }
5603:
5604CFLAGS="$CFLAGS -D_GNU_SOURCE"
5605else
5606if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609#echo 'Test with flag is no!'
5610#cat conftest.c
5611#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5612#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5613#exit 1
5614:
5615
5616else
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5618$as_echo "failed" >&6; }
5619:
5620
5621fi
5622fi
5623
5624
5625# check again for GNU_SOURCE for setresgid. May fail if setresgid
5626# is not available at all. -D_FRSRESGID is to make this check unique.
5627# otherwise we would get the previous cached result.
5628
5629
5630
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5632$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5633cache=_D_GNU_SOURCE__D_FRSRESGID
5634if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637
5638echo '
5639#include <unistd.h>
5640
5641int test() {
5642	int a = setresgid(0,0,0);
5643	a = setresuid(0,0,0);
5644        return a;
5645}
5646' > conftest.c
5647echo 'void f(){}' >>conftest.c
5648if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5649eval "cv_prog_cc_flag_needed_$cache=no"
5650else
5651
5652if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5653eval "cv_prog_cc_flag_needed_$cache=yes"
5654else
5655eval "cv_prog_cc_flag_needed_$cache=fail"
5656#echo 'Test with flag fails too!'
5657#cat conftest.c
5658#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5659#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5660#exit 1
5661fi
5662
5663fi
5664rm -f conftest conftest.c conftest.o
5665
5666fi
5667
5668if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670$as_echo "yes" >&6; }
5671:
5672CFLAGS="$CFLAGS -D_GNU_SOURCE"
5673else
5674if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677#echo 'Test with flag is no!'
5678#cat conftest.c
5679#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5680#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5681#exit 1
5682:
5683
5684else
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5686$as_echo "failed" >&6; }
5687:
5688
5689fi
5690fi
5691
5692
5693
5694
5695
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5697$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5698cache=_D_POSIX_C_SOURCE_200112
5699if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702
5703echo '
5704#include "confdefs.h"
5705#ifdef HAVE_TIME_H
5706#include <time.h>
5707#endif
5708#include <netdb.h>
5709
5710int test() {
5711        int a = 0;
5712        char *t;
5713        time_t time = 0;
5714        char *buf = NULL;
5715	const char* str = NULL;
5716        t = ctime_r(&time, buf);
5717	str = gai_strerror(0);
5718	if(t && str)
5719		a = 0;
5720        return a;
5721}
5722' > conftest.c
5723echo 'void f(){}' >>conftest.c
5724if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5725eval "cv_prog_cc_flag_needed_$cache=no"
5726else
5727
5728if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5729eval "cv_prog_cc_flag_needed_$cache=yes"
5730else
5731eval "cv_prog_cc_flag_needed_$cache=fail"
5732#echo 'Test with flag fails too!'
5733#cat conftest.c
5734#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5735#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5736#exit 1
5737fi
5738
5739fi
5740rm -f conftest conftest.c conftest.o
5741
5742fi
5743
5744if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5746$as_echo "yes" >&6; }
5747:
5748CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5749else
5750if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
5753#echo 'Test with flag is no!'
5754#cat conftest.c
5755#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5756#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5757#exit 1
5758:
5759
5760else
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5762$as_echo "failed" >&6; }
5763:
5764
5765fi
5766fi
5767
5768
5769
5770
5771
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5773$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5774cache=_D__EXTENSIONS__
5775if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778
5779echo '
5780#include "confdefs.h"
5781#include <stdlib.h>
5782#include <ctype.h>
5783#include <sys/time.h>
5784#ifdef HAVE_TIME_H
5785#include <time.h>
5786#endif
5787#include <unistd.h>
5788#ifdef HAVE_GETOPT_H
5789#include <getopt.h>
5790#endif
5791
5792int test() {
5793        int a;
5794        char **opts = NULL;
5795        struct timeval tv;
5796        tv.tv_usec = 10;
5797        srandom(32);
5798        a = getopt(2, opts, "a");
5799        a = isascii(32);
5800	if(tv.tv_usec)
5801		a = 0;
5802        return a;
5803}
5804' > conftest.c
5805echo 'void f(){}' >>conftest.c
5806if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5807eval "cv_prog_cc_flag_needed_$cache=no"
5808else
5809
5810if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5811eval "cv_prog_cc_flag_needed_$cache=yes"
5812else
5813eval "cv_prog_cc_flag_needed_$cache=fail"
5814#echo 'Test with flag fails too!'
5815#cat conftest.c
5816#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5817#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5818#exit 1
5819fi
5820
5821fi
5822rm -f conftest conftest.c conftest.o
5823
5824fi
5825
5826if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828$as_echo "yes" >&6; }
5829:
5830CFLAGS="$CFLAGS -D__EXTENSIONS__"
5831else
5832if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834$as_echo "no" >&6; }
5835#echo 'Test with flag is no!'
5836#cat conftest.c
5837#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5838#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5839#exit 1
5840:
5841
5842else
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5844$as_echo "failed" >&6; }
5845:
5846
5847fi
5848fi
5849
5850
5851
5852
5853# debug mode flags warnings
5854# Check whether --enable-checking was given.
5855if test "${enable_checking+set}" = set; then :
5856  enableval=$enable_checking;
5857fi
5858
5859# Check whether --enable-debug was given.
5860if test "${enable_debug+set}" = set; then :
5861  enableval=$enable_debug;
5862fi
5863
5864if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5865else debug_enabled="$enable_checking"; fi
5866
5867case "$debug_enabled" in
5868        yes)
5869
5870
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5872$as_echo_n "checking whether $CC supports -W... " >&6; }
5873cache=`echo W | sed 'y%.=/+-%___p_%'`
5874if eval \${cv_prog_cc_flag_$cache+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877
5878echo 'void f(void){}' >conftest.c
5879if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5880eval "cv_prog_cc_flag_$cache=yes"
5881else
5882eval "cv_prog_cc_flag_$cache=no"
5883fi
5884rm -f conftest conftest.o conftest.c
5885
5886fi
5887
5888if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5890$as_echo "yes" >&6; }
5891:
5892CFLAGS="$CFLAGS -W"
5893else
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896:
5897
5898fi
5899
5900
5901
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5903$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5904cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5905if eval \${cv_prog_cc_flag_$cache+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908
5909echo 'void f(void){}' >conftest.c
5910if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5911eval "cv_prog_cc_flag_$cache=yes"
5912else
5913eval "cv_prog_cc_flag_$cache=no"
5914fi
5915rm -f conftest conftest.o conftest.c
5916
5917fi
5918
5919if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921$as_echo "yes" >&6; }
5922:
5923CFLAGS="$CFLAGS -Wall"
5924else
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
5927:
5928
5929fi
5930
5931
5932
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5934$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5935cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5936if eval \${cv_prog_cc_flag_$cache+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939
5940echo 'void f(void){}' >conftest.c
5941if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5942eval "cv_prog_cc_flag_$cache=yes"
5943else
5944eval "cv_prog_cc_flag_$cache=no"
5945fi
5946rm -f conftest conftest.o conftest.c
5947
5948fi
5949
5950if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952$as_echo "yes" >&6; }
5953:
5954CFLAGS="$CFLAGS -Wextra"
5955else
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958:
5959
5960fi
5961
5962
5963
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5965$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5966cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5967if eval \${cv_prog_cc_flag_$cache+:} false; then :
5968  $as_echo_n "(cached) " >&6
5969else
5970
5971echo 'void f(void){}' >conftest.c
5972if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5973eval "cv_prog_cc_flag_$cache=yes"
5974else
5975eval "cv_prog_cc_flag_$cache=no"
5976fi
5977rm -f conftest conftest.o conftest.c
5978
5979fi
5980
5981if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983$as_echo "yes" >&6; }
5984:
5985CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5986else
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989:
5990
5991fi
5992
5993
5994$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5995
5996		;;
5997	no|*)
5998		# nothing to do.
5999		;;
6000esac
6001if test "$default_cflags" = "yes"; then
6002	# only when CFLAGS was "" at the start, if the users wants to
6003	# override we shouldn't add default cflags, because they wouldn't
6004	# be able to turn off these options and set the CFLAGS wanted.
6005
6006    # Check whether --enable-flto was given.
6007if test "${enable_flto+set}" = set; then :
6008  enableval=$enable_flto;
6009fi
6010
6011    if test "x$enable_flto" != "xno"; then :
6012
6013        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6014$as_echo_n "checking if $CC supports -flto... " >&6; }
6015        BAKCFLAGS="$CFLAGS"
6016        CFLAGS="$CFLAGS -flto"
6017        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h.  */
6019
6020int
6021main ()
6022{
6023
6024  ;
6025  return 0;
6026}
6027_ACEOF
6028if ac_fn_c_try_link "$LINENO"; then :
6029
6030            if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6031                CFLAGS="$BAKCFLAGS"
6032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034            else
6035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036$as_echo "yes" >&6; }
6037            fi
6038            rm -f conftest conftest.c conftest.o
6039
6040else
6041  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044rm -f core conftest.err conftest.$ac_objext \
6045    conftest$ac_exeext conftest.$ac_ext
6046
6047fi
6048
6049
6050    # Check whether --enable-pie was given.
6051if test "${enable_pie+set}" = set; then :
6052  enableval=$enable_pie;
6053fi
6054
6055    if test "x$enable_pie" = "xyes"; then :
6056
6057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6058$as_echo_n "checking if $CC supports PIE... " >&6; }
6059	BAKLDFLAGS="$LDFLAGS"
6060	BAKCFLAGS="$CFLAGS"
6061	LDFLAGS="$LDFLAGS -pie"
6062	CFLAGS="$CFLAGS -fPIE"
6063	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065
6066int
6067main ()
6068{
6069
6070  ;
6071  return 0;
6072}
6073_ACEOF
6074if ac_fn_c_try_link "$LINENO"; then :
6075
6076	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6077		LDFLAGS="$BAKLDFLAGS"
6078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079$as_echo "no" >&6; }
6080	    else
6081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6082$as_echo "yes" >&6; }
6083	    fi
6084	    rm -f conftest conftest.c conftest.o
6085
6086else
6087  LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
6089fi
6090rm -f core conftest.err conftest.$ac_objext \
6091    conftest$ac_exeext conftest.$ac_ext
6092
6093fi
6094
6095
6096    # Check whether --enable-relro_now was given.
6097if test "${enable_relro_now+set}" = set; then :
6098  enableval=$enable_relro_now;
6099fi
6100
6101    if test "x$enable_relro_now" = "xyes"; then :
6102
6103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6104$as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6105	BAKLDFLAGS="$LDFLAGS"
6106	LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6107	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_link "$LINENO"; then :
6119
6120	    if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6121		LDFLAGS="$BAKLDFLAGS"
6122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124	    else
6125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6126$as_echo "yes" >&6; }
6127	    fi
6128	    rm -f conftest conftest.c conftest.o
6129
6130else
6131  LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134rm -f core conftest.err conftest.$ac_objext \
6135    conftest$ac_exeext conftest.$ac_ext
6136
6137fi
6138
6139fi
6140
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6142$as_echo_n "checking for inline... " >&6; }
6143if ${ac_cv_c_inline+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  ac_cv_c_inline=no
6147for ac_kw in inline __inline__ __inline; do
6148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150#ifndef __cplusplus
6151typedef int foo_t;
6152static $ac_kw foo_t static_foo () {return 0; }
6153$ac_kw foo_t foo () {return 0; }
6154#endif
6155
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158  ac_cv_c_inline=$ac_kw
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161  test "$ac_cv_c_inline" != no && break
6162done
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6166$as_echo "$ac_cv_c_inline" >&6; }
6167
6168case $ac_cv_c_inline in
6169  inline | yes) ;;
6170  *)
6171    case $ac_cv_c_inline in
6172      no) ac_val=;;
6173      *) ac_val=$ac_cv_c_inline;;
6174    esac
6175    cat >>confdefs.h <<_ACEOF
6176#ifndef __cplusplus
6177#define inline $ac_val
6178#endif
6179_ACEOF
6180    ;;
6181esac
6182
6183
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6185$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6186if ${ac_cv_c_format_attribute+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  ac_cv_c_format_attribute=no
6190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192#include <stdio.h>
6193void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6194void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6195
6196int
6197main ()
6198{
6199
6200   f ("%s", "str");
6201
6202  ;
6203  return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207  ac_cv_c_format_attribute="yes"
6208else
6209  ac_cv_c_format_attribute="no"
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212
6213fi
6214
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6217$as_echo "$ac_cv_c_format_attribute" >&6; }
6218if test $ac_cv_c_format_attribute = yes; then
6219
6220$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6221
6222fi
6223
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6226$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6227if ${ac_cv_c_unused_attribute+:} false; then :
6228  $as_echo_n "(cached) " >&6
6229else
6230  ac_cv_c_unused_attribute=no
6231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233#include <stdio.h>
6234void f (char *u __attribute__((unused)));
6235
6236int
6237main ()
6238{
6239
6240   f ("x");
6241
6242  ;
6243  return 0;
6244}
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247  ac_cv_c_unused_attribute="yes"
6248else
6249  ac_cv_c_unused_attribute="no"
6250fi
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252
6253fi
6254
6255
6256
6257
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6259$as_echo "$ac_cv_c_unused_attribute" >&6; }
6260if test $ac_cv_c_unused_attribute = yes; then
6261
6262$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6263
6264fi
6265
6266
6267
6268
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6270$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6271if ${ac_cv_c_weak_attribute+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  ac_cv_c_weak_attribute=no
6275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h.  */
6277 #include <stdio.h>
6278__attribute__((weak)) void f(int x) { printf("%d", x); }
6279
6280int
6281main ()
6282{
6283
6284   f(1);
6285
6286  ;
6287  return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291  ac_cv_c_weak_attribute="yes"
6292else
6293  ac_cv_c_weak_attribute="no"
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296
6297fi
6298
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6301$as_echo "$ac_cv_c_weak_attribute" >&6; }
6302if test $ac_cv_c_weak_attribute = yes; then
6303
6304$as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6305
6306
6307$as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6308
6309fi
6310
6311
6312
6313
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6315$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6316if ${ac_cv_c_noreturn_attribute+:} false; then :
6317  $as_echo_n "(cached) " >&6
6318else
6319  ac_cv_c_noreturn_attribute=no
6320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h.  */
6322 #include <stdio.h>
6323__attribute__((noreturn)) void f(int x) { printf("%d", x); }
6324
6325int
6326main ()
6327{
6328
6329   f(1);
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"; then :
6336  ac_cv_c_noreturn_attribute="yes"
6337else
6338  ac_cv_c_noreturn_attribute="no"
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341
6342fi
6343
6344
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6346$as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6347if test $ac_cv_c_noreturn_attribute = yes; then
6348
6349$as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6350
6351
6352$as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6353
6354fi
6355
6356
6357if test "$srcdir" != "."; then
6358	CPPFLAGS="$CPPFLAGS -I$srcdir"
6359fi
6360
6361
6362
6363
6364
6365for ac_prog in flex lex
6366do
6367  # Extract the first word of "$ac_prog", so it can be a program name with args.
6368set dummy $ac_prog; ac_word=$2
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370$as_echo_n "checking for $ac_word... " >&6; }
6371if ${ac_cv_prog_LEX+:} false; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  if test -n "$LEX"; then
6375  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6376else
6377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380  IFS=$as_save_IFS
6381  test -z "$as_dir" && as_dir=.
6382    for ac_exec_ext in '' $ac_executable_extensions; do
6383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384    ac_cv_prog_LEX="$ac_prog"
6385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386    break 2
6387  fi
6388done
6389  done
6390IFS=$as_save_IFS
6391
6392fi
6393fi
6394LEX=$ac_cv_prog_LEX
6395if test -n "$LEX"; then
6396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6397$as_echo "$LEX" >&6; }
6398else
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400$as_echo "no" >&6; }
6401fi
6402
6403
6404  test -n "$LEX" && break
6405done
6406test -n "$LEX" || LEX=":"
6407
6408if test "x$LEX" != "x:"; then
6409  cat >conftest.l <<_ACEOF
6410%%
6411a { ECHO; }
6412b { REJECT; }
6413c { yymore (); }
6414d { yyless (1); }
6415e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6416    yyless ((input () != 0)); }
6417f { unput (yytext[0]); }
6418. { BEGIN INITIAL; }
6419%%
6420#ifdef YYTEXT_POINTER
6421extern char *yytext;
6422#endif
6423int
6424main (void)
6425{
6426  return ! yylex () + ! yywrap ();
6427}
6428_ACEOF
6429{ { ac_try="$LEX conftest.l"
6430case "(($ac_try" in
6431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432  *) ac_try_echo=$ac_try;;
6433esac
6434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6435$as_echo "$ac_try_echo"; } >&5
6436  (eval "$LEX conftest.l") 2>&5
6437  ac_status=$?
6438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; }
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6441$as_echo_n "checking lex output file root... " >&6; }
6442if ${ac_cv_prog_lex_root+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445
6446if test -f lex.yy.c; then
6447  ac_cv_prog_lex_root=lex.yy
6448elif test -f lexyy.c; then
6449  ac_cv_prog_lex_root=lexyy
6450else
6451  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6452fi
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6455$as_echo "$ac_cv_prog_lex_root" >&6; }
6456LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6457
6458if test -z "${LEXLIB+set}"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6460$as_echo_n "checking lex library... " >&6; }
6461if ${ac_cv_lib_lex+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464
6465    ac_save_LIBS=$LIBS
6466    ac_cv_lib_lex='none needed'
6467    for ac_lib in '' -lfl -ll; do
6468      LIBS="$ac_lib $ac_save_LIBS"
6469      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471`cat $LEX_OUTPUT_ROOT.c`
6472_ACEOF
6473if ac_fn_c_try_link "$LINENO"; then :
6474  ac_cv_lib_lex=$ac_lib
6475fi
6476rm -f core conftest.err conftest.$ac_objext \
6477    conftest$ac_exeext conftest.$ac_ext
6478      test "$ac_cv_lib_lex" != 'none needed' && break
6479    done
6480    LIBS=$ac_save_LIBS
6481
6482fi
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6484$as_echo "$ac_cv_lib_lex" >&6; }
6485  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6486fi
6487
6488
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6490$as_echo_n "checking whether yytext is a pointer... " >&6; }
6491if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  # POSIX says lex can declare yytext either as a pointer or an array; the
6495# default is implementation-dependent.  Figure out which it is, since
6496# not all implementations provide the %pointer and %array declarations.
6497ac_cv_prog_lex_yytext_pointer=no
6498ac_save_LIBS=$LIBS
6499LIBS="$LEXLIB $ac_save_LIBS"
6500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502
6503  #define YYTEXT_POINTER 1
6504`cat $LEX_OUTPUT_ROOT.c`
6505_ACEOF
6506if ac_fn_c_try_link "$LINENO"; then :
6507  ac_cv_prog_lex_yytext_pointer=yes
6508fi
6509rm -f core conftest.err conftest.$ac_objext \
6510    conftest$ac_exeext conftest.$ac_ext
6511LIBS=$ac_save_LIBS
6512
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6515$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6516if test $ac_cv_prog_lex_yytext_pointer = yes; then
6517
6518$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6519
6520fi
6521rm -f conftest.l $LEX_OUTPUT_ROOT.c
6522
6523fi
6524if test "$LEX" != "" -a "$LEX" != ":"; then
6525
6526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6527$as_echo_n "checking for yylex_destroy... " >&6; }
6528	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6529
6530$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6531
6532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6533$as_echo "yes" >&6; }
6534	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535$as_echo "no" >&6; };
6536		LEX=":"
6537	fi
6538
6539fi
6540if test "$LEX" != "" -a "$LEX" != ":"; then
6541
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6543$as_echo_n "checking for lex %option... " >&6; }
6544	if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6545%option nounput
6546%%
6547EOF
6548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549$as_echo "yes" >&6; }
6550	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; };
6552		LEX=":"
6553	fi
6554
6555fi
6556for ac_prog in 'bison -y' byacc
6557do
6558  # Extract the first word of "$ac_prog", so it can be a program name with args.
6559set dummy $ac_prog; ac_word=$2
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561$as_echo_n "checking for $ac_word... " >&6; }
6562if ${ac_cv_prog_YACC+:} false; then :
6563  $as_echo_n "(cached) " >&6
6564else
6565  if test -n "$YACC"; then
6566  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571  IFS=$as_save_IFS
6572  test -z "$as_dir" && as_dir=.
6573    for ac_exec_ext in '' $ac_executable_extensions; do
6574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575    ac_cv_prog_YACC="$ac_prog"
6576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577    break 2
6578  fi
6579done
6580  done
6581IFS=$as_save_IFS
6582
6583fi
6584fi
6585YACC=$ac_cv_prog_YACC
6586if test -n "$YACC"; then
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6588$as_echo "$YACC" >&6; }
6589else
6590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591$as_echo "no" >&6; }
6592fi
6593
6594
6595  test -n "$YACC" && break
6596done
6597test -n "$YACC" || YACC="yacc"
6598
6599# Extract the first word of "doxygen", so it can be a program name with args.
6600set dummy doxygen; ac_word=$2
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
6603if ${ac_cv_prog_doxygen+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  if test -n "$doxygen"; then
6607  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6608else
6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612  IFS=$as_save_IFS
6613  test -z "$as_dir" && as_dir=.
6614    for ac_exec_ext in '' $ac_executable_extensions; do
6615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616    ac_cv_prog_doxygen="doxygen"
6617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618    break 2
6619  fi
6620done
6621  done
6622IFS=$as_save_IFS
6623
6624fi
6625fi
6626doxygen=$ac_cv_prog_doxygen
6627if test -n "$doxygen"; then
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6629$as_echo "$doxygen" >&6; }
6630else
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632$as_echo "no" >&6; }
6633fi
6634
6635
6636if test -n "$ac_tool_prefix"; then
6637  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6638set dummy ${ac_tool_prefix}strip; ac_word=$2
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640$as_echo_n "checking for $ac_word... " >&6; }
6641if ${ac_cv_prog_STRIP+:} false; then :
6642  $as_echo_n "(cached) " >&6
6643else
6644  if test -n "$STRIP"; then
6645  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6646else
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650  IFS=$as_save_IFS
6651  test -z "$as_dir" && as_dir=.
6652    for ac_exec_ext in '' $ac_executable_extensions; do
6653  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6655    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656    break 2
6657  fi
6658done
6659  done
6660IFS=$as_save_IFS
6661
6662fi
6663fi
6664STRIP=$ac_cv_prog_STRIP
6665if test -n "$STRIP"; then
6666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6667$as_echo "$STRIP" >&6; }
6668else
6669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670$as_echo "no" >&6; }
6671fi
6672
6673
6674fi
6675if test -z "$ac_cv_prog_STRIP"; then
6676  ac_ct_STRIP=$STRIP
6677  # Extract the first word of "strip", so it can be a program name with args.
6678set dummy strip; ac_word=$2
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680$as_echo_n "checking for $ac_word... " >&6; }
6681if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6682  $as_echo_n "(cached) " >&6
6683else
6684  if test -n "$ac_ct_STRIP"; then
6685  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690  IFS=$as_save_IFS
6691  test -z "$as_dir" && as_dir=.
6692    for ac_exec_ext in '' $ac_executable_extensions; do
6693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694    ac_cv_prog_ac_ct_STRIP="strip"
6695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696    break 2
6697  fi
6698done
6699  done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6705if test -n "$ac_ct_STRIP"; then
6706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6707$as_echo "$ac_ct_STRIP" >&6; }
6708else
6709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713  if test "x$ac_ct_STRIP" = x; then
6714    STRIP=""
6715  else
6716    case $cross_compiling:$ac_tool_warned in
6717yes:)
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720ac_tool_warned=yes ;;
6721esac
6722    STRIP=$ac_ct_STRIP
6723  fi
6724else
6725  STRIP="$ac_cv_prog_STRIP"
6726fi
6727
6728ac_aux_dir=
6729for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6730  if test -f "$ac_dir/install-sh"; then
6731    ac_aux_dir=$ac_dir
6732    ac_install_sh="$ac_aux_dir/install-sh -c"
6733    break
6734  elif test -f "$ac_dir/install.sh"; then
6735    ac_aux_dir=$ac_dir
6736    ac_install_sh="$ac_aux_dir/install.sh -c"
6737    break
6738  elif test -f "$ac_dir/shtool"; then
6739    ac_aux_dir=$ac_dir
6740    ac_install_sh="$ac_aux_dir/shtool install -c"
6741    break
6742  fi
6743done
6744if test -z "$ac_aux_dir"; then
6745  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6746fi
6747
6748# These three variables are undocumented and unsupported,
6749# and are intended to be withdrawn in a future Autoconf release.
6750# They can cause serious problems if a builder's source tree is in a directory
6751# whose full name contains unusual characters.
6752ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6753ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6754ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6755
6756
6757# Make sure we can run config.sub.
6758$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6759  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6760
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6762$as_echo_n "checking build system type... " >&6; }
6763if ${ac_cv_build+:} false; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  ac_build_alias=$build_alias
6767test "x$ac_build_alias" = x &&
6768  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6769test "x$ac_build_alias" = x &&
6770  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6771ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6772  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6773
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6776$as_echo "$ac_cv_build" >&6; }
6777case $ac_cv_build in
6778*-*-*) ;;
6779*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6780esac
6781build=$ac_cv_build
6782ac_save_IFS=$IFS; IFS='-'
6783set x $ac_cv_build
6784shift
6785build_cpu=$1
6786build_vendor=$2
6787shift; shift
6788# Remember, the first character of IFS is used to create $*,
6789# except with old shells:
6790build_os=$*
6791IFS=$ac_save_IFS
6792case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6793
6794
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6796$as_echo_n "checking host system type... " >&6; }
6797if ${ac_cv_host+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  if test "x$host_alias" = x; then
6801  ac_cv_host=$ac_cv_build
6802else
6803  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6804    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6805fi
6806
6807fi
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6809$as_echo "$ac_cv_host" >&6; }
6810case $ac_cv_host in
6811*-*-*) ;;
6812*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6813esac
6814host=$ac_cv_host
6815ac_save_IFS=$IFS; IFS='-'
6816set x $ac_cv_host
6817shift
6818host_cpu=$1
6819host_vendor=$2
6820shift; shift
6821# Remember, the first character of IFS is used to create $*,
6822# except with old shells:
6823host_os=$*
6824IFS=$ac_save_IFS
6825case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6826
6827
6828
6829# skip these tests, we do not need them.
6830
6831
6832
6833
6834
6835
6836
6837
6838# always use ./libtool unless override from commandline (libtool=mylibtool)
6839if test -z "$libtool"; then
6840	libtool="./libtool"
6841fi
6842
6843# avoid libtool max commandline length test on systems that fork slowly.
6844
6845if echo "$host_os" | grep "sunos4" >/dev/null; then
6846	lt_cv_sys_max_cmd_len=32750;
6847fi
6848if test -n "$ac_tool_prefix"; then
6849  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850set dummy ${ac_tool_prefix}ar; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_path_AR+:} false; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  case $AR in
6857  [\\/]* | ?:[\\/]*)
6858  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6859  ;;
6860  *)
6861  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864  IFS=$as_save_IFS
6865  test -z "$as_dir" && as_dir=.
6866    for ac_exec_ext in '' $ac_executable_extensions; do
6867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870    break 2
6871  fi
6872done
6873  done
6874IFS=$as_save_IFS
6875
6876  ;;
6877esac
6878fi
6879AR=$ac_cv_path_AR
6880if test -n "$AR"; then
6881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6882$as_echo "$AR" >&6; }
6883else
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888
6889fi
6890if test -z "$ac_cv_path_AR"; then
6891  ac_pt_AR=$AR
6892  # Extract the first word of "ar", so it can be a program name with args.
6893set dummy ar; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if ${ac_cv_path_ac_pt_AR+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  case $ac_pt_AR in
6900  [\\/]* | ?:[\\/]*)
6901  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6902  ;;
6903  *)
6904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909    for ac_exec_ext in '' $ac_executable_extensions; do
6910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916  done
6917IFS=$as_save_IFS
6918
6919  ;;
6920esac
6921fi
6922ac_pt_AR=$ac_cv_path_ac_pt_AR
6923if test -n "$ac_pt_AR"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6925$as_echo "$ac_pt_AR" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931  if test "x$ac_pt_AR" = x; then
6932    AR="false"
6933  else
6934    case $cross_compiling:$ac_tool_warned in
6935yes:)
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940    AR=$ac_pt_AR
6941  fi
6942else
6943  AR="$ac_cv_path_AR"
6944fi
6945
6946if test $AR = false; then
6947	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6948fi
6949
6950case `pwd` in
6951  *\ * | *\	*)
6952    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6953$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6954esac
6955
6956
6957
6958macro_version='2.4.6'
6959macro_revision='2.4.6'
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973ltmain=$ac_aux_dir/ltmain.sh
6974
6975# Backslashify metacharacters that are still active within
6976# double-quoted strings.
6977sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6978
6979# Same as above, but do not quote variable references.
6980double_quote_subst='s/\(["`\\]\)/\\\1/g'
6981
6982# Sed substitution to delay expansion of an escaped shell variable in a
6983# double_quote_subst'ed string.
6984delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6985
6986# Sed substitution to delay expansion of an escaped single quote.
6987delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6988
6989# Sed substitution to avoid accidental globbing in evaled expressions
6990no_glob_subst='s/\*/\\\*/g'
6991
6992ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6993ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6994ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6995
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6997$as_echo_n "checking how to print strings... " >&6; }
6998# Test print first, because it will be a builtin if present.
6999if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7000   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7001  ECHO='print -r --'
7002elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7003  ECHO='printf %s\n'
7004else
7005  # Use this function as a fallback that always works.
7006  func_fallback_echo ()
7007  {
7008    eval 'cat <<_LTECHO_EOF
7009$1
7010_LTECHO_EOF'
7011  }
7012  ECHO='func_fallback_echo'
7013fi
7014
7015# func_echo_all arg...
7016# Invoke $ECHO with all args, space-separated.
7017func_echo_all ()
7018{
7019    $ECHO ""
7020}
7021
7022case $ECHO in
7023  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7024$as_echo "printf" >&6; } ;;
7025  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7026$as_echo "print -r" >&6; } ;;
7027  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7028$as_echo "cat" >&6; } ;;
7029esac
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7045$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7046if ${ac_cv_path_SED+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7050     for ac_i in 1 2 3 4 5 6 7; do
7051       ac_script="$ac_script$as_nl$ac_script"
7052     done
7053     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7054     { ac_script=; unset ac_script;}
7055     if test -z "$SED"; then
7056  ac_path_SED_found=false
7057  # Loop through the user's path and test for each of PROGNAME-LIST
7058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063    for ac_prog in sed gsed; do
7064    for ac_exec_ext in '' $ac_executable_extensions; do
7065      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7066      as_fn_executable_p "$ac_path_SED" || continue
7067# Check for GNU ac_path_SED and select it if it is found.
7068  # Check for GNU $ac_path_SED
7069case `"$ac_path_SED" --version 2>&1` in
7070*GNU*)
7071  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7072*)
7073  ac_count=0
7074  $as_echo_n 0123456789 >"conftest.in"
7075  while :
7076  do
7077    cat "conftest.in" "conftest.in" >"conftest.tmp"
7078    mv "conftest.tmp" "conftest.in"
7079    cp "conftest.in" "conftest.nl"
7080    $as_echo '' >> "conftest.nl"
7081    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7082    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083    as_fn_arith $ac_count + 1 && ac_count=$as_val
7084    if test $ac_count -gt ${ac_path_SED_max-0}; then
7085      # Best one so far, save it but keep looking for a better one
7086      ac_cv_path_SED="$ac_path_SED"
7087      ac_path_SED_max=$ac_count
7088    fi
7089    # 10*(2^10) chars as input seems more than enough
7090    test $ac_count -gt 10 && break
7091  done
7092  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7093esac
7094
7095      $ac_path_SED_found && break 3
7096    done
7097  done
7098  done
7099IFS=$as_save_IFS
7100  if test -z "$ac_cv_path_SED"; then
7101    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7102  fi
7103else
7104  ac_cv_path_SED=$SED
7105fi
7106
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7109$as_echo "$ac_cv_path_SED" >&6; }
7110 SED="$ac_cv_path_SED"
7111  rm -f conftest.sed
7112
7113test -z "$SED" && SED=sed
7114Xsed="$SED -e 1s/^X//"
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7127$as_echo_n "checking for fgrep... " >&6; }
7128if ${ac_cv_path_FGREP+:} false; then :
7129  $as_echo_n "(cached) " >&6
7130else
7131  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7132   then ac_cv_path_FGREP="$GREP -F"
7133   else
7134     if test -z "$FGREP"; then
7135  ac_path_FGREP_found=false
7136  # Loop through the user's path and test for each of PROGNAME-LIST
7137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142    for ac_prog in fgrep; do
7143    for ac_exec_ext in '' $ac_executable_extensions; do
7144      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7145      as_fn_executable_p "$ac_path_FGREP" || continue
7146# Check for GNU ac_path_FGREP and select it if it is found.
7147  # Check for GNU $ac_path_FGREP
7148case `"$ac_path_FGREP" --version 2>&1` in
7149*GNU*)
7150  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7151*)
7152  ac_count=0
7153  $as_echo_n 0123456789 >"conftest.in"
7154  while :
7155  do
7156    cat "conftest.in" "conftest.in" >"conftest.tmp"
7157    mv "conftest.tmp" "conftest.in"
7158    cp "conftest.in" "conftest.nl"
7159    $as_echo 'FGREP' >> "conftest.nl"
7160    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7161    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7162    as_fn_arith $ac_count + 1 && ac_count=$as_val
7163    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7164      # Best one so far, save it but keep looking for a better one
7165      ac_cv_path_FGREP="$ac_path_FGREP"
7166      ac_path_FGREP_max=$ac_count
7167    fi
7168    # 10*(2^10) chars as input seems more than enough
7169    test $ac_count -gt 10 && break
7170  done
7171  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7172esac
7173
7174      $ac_path_FGREP_found && break 3
7175    done
7176  done
7177  done
7178IFS=$as_save_IFS
7179  if test -z "$ac_cv_path_FGREP"; then
7180    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7181  fi
7182else
7183  ac_cv_path_FGREP=$FGREP
7184fi
7185
7186   fi
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7189$as_echo "$ac_cv_path_FGREP" >&6; }
7190 FGREP="$ac_cv_path_FGREP"
7191
7192
7193test -z "$GREP" && GREP=grep
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213# Check whether --with-gnu-ld was given.
7214if test "${with_gnu_ld+set}" = set; then :
7215  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7216else
7217  with_gnu_ld=no
7218fi
7219
7220ac_prog=ld
7221if test yes = "$GCC"; then
7222  # Check if gcc -print-prog-name=ld gives a path.
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7224$as_echo_n "checking for ld used by $CC... " >&6; }
7225  case $host in
7226  *-*-mingw*)
7227    # gcc leaves a trailing carriage return, which upsets mingw
7228    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7229  *)
7230    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7231  esac
7232  case $ac_prog in
7233    # Accept absolute paths.
7234    [\\/]* | ?:[\\/]*)
7235      re_direlt='/[^/][^/]*/\.\./'
7236      # Canonicalize the pathname of ld
7237      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7238      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7239	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7240      done
7241      test -z "$LD" && LD=$ac_prog
7242      ;;
7243  "")
7244    # If it fails, then pretend we aren't using GCC.
7245    ac_prog=ld
7246    ;;
7247  *)
7248    # If it is relative, then search for the first ld in PATH.
7249    with_gnu_ld=unknown
7250    ;;
7251  esac
7252elif test yes = "$with_gnu_ld"; then
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7254$as_echo_n "checking for GNU ld... " >&6; }
7255else
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7257$as_echo_n "checking for non-GNU ld... " >&6; }
7258fi
7259if ${lt_cv_path_LD+:} false; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262  if test -z "$LD"; then
7263  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7264  for ac_dir in $PATH; do
7265    IFS=$lt_save_ifs
7266    test -z "$ac_dir" && ac_dir=.
7267    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7268      lt_cv_path_LD=$ac_dir/$ac_prog
7269      # Check to see if the program is GNU ld.  I'd rather use --version,
7270      # but apparently some variants of GNU ld only accept -v.
7271      # Break only if it was the GNU/non-GNU ld that we prefer.
7272      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7273      *GNU* | *'with BFD'*)
7274	test no != "$with_gnu_ld" && break
7275	;;
7276      *)
7277	test yes != "$with_gnu_ld" && break
7278	;;
7279      esac
7280    fi
7281  done
7282  IFS=$lt_save_ifs
7283else
7284  lt_cv_path_LD=$LD # Let the user override the test with a path.
7285fi
7286fi
7287
7288LD=$lt_cv_path_LD
7289if test -n "$LD"; then
7290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7291$as_echo "$LD" >&6; }
7292else
7293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
7295fi
7296test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7298$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7299if ${lt_cv_prog_gnu_ld+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7303case `$LD -v 2>&1 </dev/null` in
7304*GNU* | *'with BFD'*)
7305  lt_cv_prog_gnu_ld=yes
7306  ;;
7307*)
7308  lt_cv_prog_gnu_ld=no
7309  ;;
7310esac
7311fi
7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7313$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7314with_gnu_ld=$lt_cv_prog_gnu_ld
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7325$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7326if ${lt_cv_path_NM+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  if test -n "$NM"; then
7330  # Let the user override the test.
7331  lt_cv_path_NM=$NM
7332else
7333  lt_nm_to_check=${ac_tool_prefix}nm
7334  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7335    lt_nm_to_check="$lt_nm_to_check nm"
7336  fi
7337  for lt_tmp_nm in $lt_nm_to_check; do
7338    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7339    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7340      IFS=$lt_save_ifs
7341      test -z "$ac_dir" && ac_dir=.
7342      tmp_nm=$ac_dir/$lt_tmp_nm
7343      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7344	# Check to see if the nm accepts a BSD-compat flag.
7345	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7346	#   nm: unknown option "B" ignored
7347	# Tru64's nm complains that /dev/null is an invalid object file
7348	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7349	case $build_os in
7350	mingw*) lt_bad_file=conftest.nm/nofile ;;
7351	*) lt_bad_file=/dev/null ;;
7352	esac
7353	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7354	*$lt_bad_file* | *'Invalid file or object type'*)
7355	  lt_cv_path_NM="$tmp_nm -B"
7356	  break 2
7357	  ;;
7358	*)
7359	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7360	  */dev/null*)
7361	    lt_cv_path_NM="$tmp_nm -p"
7362	    break 2
7363	    ;;
7364	  *)
7365	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7366	    continue # so that we can try to find one that supports BSD flags
7367	    ;;
7368	  esac
7369	  ;;
7370	esac
7371      fi
7372    done
7373    IFS=$lt_save_ifs
7374  done
7375  : ${lt_cv_path_NM=no}
7376fi
7377fi
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7379$as_echo "$lt_cv_path_NM" >&6; }
7380if test no != "$lt_cv_path_NM"; then
7381  NM=$lt_cv_path_NM
7382else
7383  # Didn't find any BSD compatible name lister, look for dumpbin.
7384  if test -n "$DUMPBIN"; then :
7385    # Let the user override the test.
7386  else
7387    if test -n "$ac_tool_prefix"; then
7388  for ac_prog in dumpbin "link -dump"
7389  do
7390    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7391set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_DUMPBIN+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$DUMPBIN"; then
7398  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417DUMPBIN=$ac_cv_prog_DUMPBIN
7418if test -n "$DUMPBIN"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7420$as_echo "$DUMPBIN" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427    test -n "$DUMPBIN" && break
7428  done
7429fi
7430if test -z "$DUMPBIN"; then
7431  ac_ct_DUMPBIN=$DUMPBIN
7432  for ac_prog in dumpbin "link -dump"
7433do
7434  # Extract the first word of "$ac_prog", so it can be a program name with args.
7435set dummy $ac_prog; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$ac_ct_DUMPBIN"; then
7442  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7462if test -n "$ac_ct_DUMPBIN"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7464$as_echo "$ac_ct_DUMPBIN" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470
7471  test -n "$ac_ct_DUMPBIN" && break
7472done
7473
7474  if test "x$ac_ct_DUMPBIN" = x; then
7475    DUMPBIN=":"
7476  else
7477    case $cross_compiling:$ac_tool_warned in
7478yes:)
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481ac_tool_warned=yes ;;
7482esac
7483    DUMPBIN=$ac_ct_DUMPBIN
7484  fi
7485fi
7486
7487    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7488    *COFF*)
7489      DUMPBIN="$DUMPBIN -symbols -headers"
7490      ;;
7491    *)
7492      DUMPBIN=:
7493      ;;
7494    esac
7495  fi
7496
7497  if test : != "$DUMPBIN"; then
7498    NM=$DUMPBIN
7499  fi
7500fi
7501test -z "$NM" && NM=nm
7502
7503
7504
7505
7506
7507
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7509$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7510if ${lt_cv_nm_interface+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  lt_cv_nm_interface="BSD nm"
7514  echo "int some_variable = 0;" > conftest.$ac_ext
7515  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7516  (eval "$ac_compile" 2>conftest.err)
7517  cat conftest.err >&5
7518  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7519  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7520  cat conftest.err >&5
7521  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7522  cat conftest.out >&5
7523  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7524    lt_cv_nm_interface="MS dumpbin"
7525  fi
7526  rm -f conftest*
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7529$as_echo "$lt_cv_nm_interface" >&6; }
7530
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7532$as_echo_n "checking whether ln -s works... " >&6; }
7533LN_S=$as_ln_s
7534if test "$LN_S" = "ln -s"; then
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7536$as_echo "yes" >&6; }
7537else
7538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7539$as_echo "no, using $LN_S" >&6; }
7540fi
7541
7542# find the maximum length of command line arguments
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7544$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7545if ${lt_cv_sys_max_cmd_len+:} false; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548    i=0
7549  teststring=ABCD
7550
7551  case $build_os in
7552  msdosdjgpp*)
7553    # On DJGPP, this test can blow up pretty badly due to problems in libc
7554    # (any single argument exceeding 2000 bytes causes a buffer overrun
7555    # during glob expansion).  Even if it were fixed, the result of this
7556    # check would be larger than it should be.
7557    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7558    ;;
7559
7560  gnu*)
7561    # Under GNU Hurd, this test is not required because there is
7562    # no limit to the length of command line arguments.
7563    # Libtool will interpret -1 as no limit whatsoever
7564    lt_cv_sys_max_cmd_len=-1;
7565    ;;
7566
7567  cygwin* | mingw* | cegcc*)
7568    # On Win9x/ME, this test blows up -- it succeeds, but takes
7569    # about 5 minutes as the teststring grows exponentially.
7570    # Worse, since 9x/ME are not pre-emptively multitasking,
7571    # you end up with a "frozen" computer, even though with patience
7572    # the test eventually succeeds (with a max line length of 256k).
7573    # Instead, let's just punt: use the minimum linelength reported by
7574    # all of the supported platforms: 8192 (on NT/2K/XP).
7575    lt_cv_sys_max_cmd_len=8192;
7576    ;;
7577
7578  mint*)
7579    # On MiNT this can take a long time and run out of memory.
7580    lt_cv_sys_max_cmd_len=8192;
7581    ;;
7582
7583  amigaos*)
7584    # On AmigaOS with pdksh, this test takes hours, literally.
7585    # So we just punt and use a minimum line length of 8192.
7586    lt_cv_sys_max_cmd_len=8192;
7587    ;;
7588
7589  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7590    # This has been around since 386BSD, at least.  Likely further.
7591    if test -x /sbin/sysctl; then
7592      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7593    elif test -x /usr/sbin/sysctl; then
7594      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7595    else
7596      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7597    fi
7598    # And add a safety zone
7599    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7600    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7601    ;;
7602
7603  interix*)
7604    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7605    lt_cv_sys_max_cmd_len=196608
7606    ;;
7607
7608  os2*)
7609    # The test takes a long time on OS/2.
7610    lt_cv_sys_max_cmd_len=8192
7611    ;;
7612
7613  osf*)
7614    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7615    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7616    # nice to cause kernel panics so lets avoid the loop below.
7617    # First set a reasonable default.
7618    lt_cv_sys_max_cmd_len=16384
7619    #
7620    if test -x /sbin/sysconfig; then
7621      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7622        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7623      esac
7624    fi
7625    ;;
7626  sco3.2v5*)
7627    lt_cv_sys_max_cmd_len=102400
7628    ;;
7629  sysv5* | sco5v6* | sysv4.2uw2*)
7630    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7631    if test -n "$kargmax"; then
7632      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7633    else
7634      lt_cv_sys_max_cmd_len=32768
7635    fi
7636    ;;
7637  *)
7638    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7639    if test -n "$lt_cv_sys_max_cmd_len" && \
7640       test undefined != "$lt_cv_sys_max_cmd_len"; then
7641      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7642      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7643    else
7644      # Make teststring a little bigger before we do anything with it.
7645      # a 1K string should be a reasonable start.
7646      for i in 1 2 3 4 5 6 7 8; do
7647        teststring=$teststring$teststring
7648      done
7649      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7650      # If test is not a shell built-in, we'll probably end up computing a
7651      # maximum length that is only half of the actual maximum length, but
7652      # we can't tell.
7653      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7654	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7655	      test 17 != "$i" # 1/2 MB should be enough
7656      do
7657        i=`expr $i + 1`
7658        teststring=$teststring$teststring
7659      done
7660      # Only check the string length outside the loop.
7661      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7662      teststring=
7663      # Add a significant safety factor because C++ compilers can tack on
7664      # massive amounts of additional arguments before passing them to the
7665      # linker.  It appears as though 1/2 is a usable value.
7666      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7667    fi
7668    ;;
7669  esac
7670
7671fi
7672
7673if test -n "$lt_cv_sys_max_cmd_len"; then
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7675$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7676else
7677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7678$as_echo "none" >&6; }
7679fi
7680max_cmd_len=$lt_cv_sys_max_cmd_len
7681
7682
7683
7684
7685
7686
7687: ${CP="cp -f"}
7688: ${MV="mv -f"}
7689: ${RM="rm -f"}
7690
7691if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7692  lt_unset=unset
7693else
7694  lt_unset=false
7695fi
7696
7697
7698
7699
7700
7701# test EBCDIC or ASCII
7702case `echo X|tr X '\101'` in
7703 A) # ASCII based system
7704    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7705  lt_SP2NL='tr \040 \012'
7706  lt_NL2SP='tr \015\012 \040\040'
7707  ;;
7708 *) # EBCDIC based system
7709  lt_SP2NL='tr \100 \n'
7710  lt_NL2SP='tr \r\n \100\100'
7711  ;;
7712esac
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7723$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7724if ${lt_cv_to_host_file_cmd+:} false; then :
7725  $as_echo_n "(cached) " >&6
7726else
7727  case $host in
7728  *-*-mingw* )
7729    case $build in
7730      *-*-mingw* ) # actually msys
7731        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7732        ;;
7733      *-*-cygwin* )
7734        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7735        ;;
7736      * ) # otherwise, assume *nix
7737        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7738        ;;
7739    esac
7740    ;;
7741  *-*-cygwin* )
7742    case $build in
7743      *-*-mingw* ) # actually msys
7744        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7745        ;;
7746      *-*-cygwin* )
7747        lt_cv_to_host_file_cmd=func_convert_file_noop
7748        ;;
7749      * ) # otherwise, assume *nix
7750        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7751        ;;
7752    esac
7753    ;;
7754  * ) # unhandled hosts (and "normal" native builds)
7755    lt_cv_to_host_file_cmd=func_convert_file_noop
7756    ;;
7757esac
7758
7759fi
7760
7761to_host_file_cmd=$lt_cv_to_host_file_cmd
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7763$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7764
7765
7766
7767
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7770$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7771if ${lt_cv_to_tool_file_cmd+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  #assume ordinary cross tools, or native build.
7775lt_cv_to_tool_file_cmd=func_convert_file_noop
7776case $host in
7777  *-*-mingw* )
7778    case $build in
7779      *-*-mingw* ) # actually msys
7780        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7781        ;;
7782    esac
7783    ;;
7784esac
7785
7786fi
7787
7788to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7790$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7791
7792
7793
7794
7795
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7797$as_echo_n "checking for $LD option to reload object files... " >&6; }
7798if ${lt_cv_ld_reload_flag+:} false; then :
7799  $as_echo_n "(cached) " >&6
7800else
7801  lt_cv_ld_reload_flag='-r'
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7804$as_echo "$lt_cv_ld_reload_flag" >&6; }
7805reload_flag=$lt_cv_ld_reload_flag
7806case $reload_flag in
7807"" | " "*) ;;
7808*) reload_flag=" $reload_flag" ;;
7809esac
7810reload_cmds='$LD$reload_flag -o $output$reload_objs'
7811case $host_os in
7812  cygwin* | mingw* | pw32* | cegcc*)
7813    if test yes != "$GCC"; then
7814      reload_cmds=false
7815    fi
7816    ;;
7817  darwin*)
7818    if test yes = "$GCC"; then
7819      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7820    else
7821      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7822    fi
7823    ;;
7824esac
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834if test -n "$ac_tool_prefix"; then
7835  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}objdump; ac_word=$2
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838$as_echo_n "checking for $ac_word... " >&6; }
7839if ${ac_cv_prog_OBJDUMP+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  if test -n "$OBJDUMP"; then
7843  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  test -z "$as_dir" && as_dir=.
7850    for ac_exec_ext in '' $ac_executable_extensions; do
7851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854    break 2
7855  fi
7856done
7857  done
7858IFS=$as_save_IFS
7859
7860fi
7861fi
7862OBJDUMP=$ac_cv_prog_OBJDUMP
7863if test -n "$OBJDUMP"; then
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7865$as_echo "$OBJDUMP" >&6; }
7866else
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871
7872fi
7873if test -z "$ac_cv_prog_OBJDUMP"; then
7874  ac_ct_OBJDUMP=$OBJDUMP
7875  # Extract the first word of "objdump", so it can be a program name with args.
7876set dummy objdump; ac_word=$2
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  if test -n "$ac_ct_OBJDUMP"; then
7883  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888  IFS=$as_save_IFS
7889  test -z "$as_dir" && as_dir=.
7890    for ac_exec_ext in '' $ac_executable_extensions; do
7891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894    break 2
7895  fi
7896done
7897  done
7898IFS=$as_save_IFS
7899
7900fi
7901fi
7902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7903if test -n "$ac_ct_OBJDUMP"; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7905$as_echo "$ac_ct_OBJDUMP" >&6; }
7906else
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911  if test "x$ac_ct_OBJDUMP" = x; then
7912    OBJDUMP="false"
7913  else
7914    case $cross_compiling:$ac_tool_warned in
7915yes:)
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918ac_tool_warned=yes ;;
7919esac
7920    OBJDUMP=$ac_ct_OBJDUMP
7921  fi
7922else
7923  OBJDUMP="$ac_cv_prog_OBJDUMP"
7924fi
7925
7926test -z "$OBJDUMP" && OBJDUMP=objdump
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7937$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7938if ${lt_cv_deplibs_check_method+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  lt_cv_file_magic_cmd='$MAGIC_CMD'
7942lt_cv_file_magic_test_file=
7943lt_cv_deplibs_check_method='unknown'
7944# Need to set the preceding variable on all platforms that support
7945# interlibrary dependencies.
7946# 'none' -- dependencies not supported.
7947# 'unknown' -- same as none, but documents that we really don't know.
7948# 'pass_all' -- all dependencies passed with no checks.
7949# 'test_compile' -- check by making test program.
7950# 'file_magic [[regex]]' -- check by looking for files in library path
7951# that responds to the $file_magic_cmd with a given extended regex.
7952# If you have 'file' or equivalent on your system and you're not sure
7953# whether 'pass_all' will *always* work, you probably want this one.
7954
7955case $host_os in
7956aix[4-9]*)
7957  lt_cv_deplibs_check_method=pass_all
7958  ;;
7959
7960beos*)
7961  lt_cv_deplibs_check_method=pass_all
7962  ;;
7963
7964bsdi[45]*)
7965  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7966  lt_cv_file_magic_cmd='/usr/bin/file -L'
7967  lt_cv_file_magic_test_file=/shlib/libc.so
7968  ;;
7969
7970cygwin*)
7971  # func_win32_libid is a shell function defined in ltmain.sh
7972  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7973  lt_cv_file_magic_cmd='func_win32_libid'
7974  ;;
7975
7976mingw* | pw32*)
7977  # Base MSYS/MinGW do not provide the 'file' command needed by
7978  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7979  # unless we find 'file', for example because we are cross-compiling.
7980  if ( file / ) >/dev/null 2>&1; then
7981    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7982    lt_cv_file_magic_cmd='func_win32_libid'
7983  else
7984    # Keep this pattern in sync with the one in func_win32_libid.
7985    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7986    lt_cv_file_magic_cmd='$OBJDUMP -f'
7987  fi
7988  ;;
7989
7990cegcc*)
7991  # use the weaker test based on 'objdump'. See mingw*.
7992  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7993  lt_cv_file_magic_cmd='$OBJDUMP -f'
7994  ;;
7995
7996darwin* | rhapsody*)
7997  lt_cv_deplibs_check_method=pass_all
7998  ;;
7999
8000freebsd* | dragonfly*)
8001  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8002    case $host_cpu in
8003    i*86 )
8004      # Not sure whether the presence of OpenBSD here was a mistake.
8005      # Let's accept both of them until this is cleared up.
8006      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8007      lt_cv_file_magic_cmd=/usr/bin/file
8008      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8009      ;;
8010    esac
8011  else
8012    lt_cv_deplibs_check_method=pass_all
8013  fi
8014  ;;
8015
8016haiku*)
8017  lt_cv_deplibs_check_method=pass_all
8018  ;;
8019
8020hpux10.20* | hpux11*)
8021  lt_cv_file_magic_cmd=/usr/bin/file
8022  case $host_cpu in
8023  ia64*)
8024    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8025    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8026    ;;
8027  hppa*64*)
8028    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]'
8029    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8030    ;;
8031  *)
8032    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8033    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8034    ;;
8035  esac
8036  ;;
8037
8038interix[3-9]*)
8039  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8040  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8041  ;;
8042
8043irix5* | irix6* | nonstopux*)
8044  case $LD in
8045  *-32|*"-32 ") libmagic=32-bit;;
8046  *-n32|*"-n32 ") libmagic=N32;;
8047  *-64|*"-64 ") libmagic=64-bit;;
8048  *) libmagic=never-match;;
8049  esac
8050  lt_cv_deplibs_check_method=pass_all
8051  ;;
8052
8053# This must be glibc/ELF.
8054linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8055  lt_cv_deplibs_check_method=pass_all
8056  ;;
8057
8058netbsd*)
8059  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8060    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8061  else
8062    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8063  fi
8064  ;;
8065
8066newos6*)
8067  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8068  lt_cv_file_magic_cmd=/usr/bin/file
8069  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8070  ;;
8071
8072*nto* | *qnx*)
8073  lt_cv_deplibs_check_method=pass_all
8074  ;;
8075
8076openbsd* | bitrig*)
8077  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8078    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8079  else
8080    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8081  fi
8082  ;;
8083
8084osf3* | osf4* | osf5*)
8085  lt_cv_deplibs_check_method=pass_all
8086  ;;
8087
8088rdos*)
8089  lt_cv_deplibs_check_method=pass_all
8090  ;;
8091
8092solaris*)
8093  lt_cv_deplibs_check_method=pass_all
8094  ;;
8095
8096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8097  lt_cv_deplibs_check_method=pass_all
8098  ;;
8099
8100sysv4 | sysv4.3*)
8101  case $host_vendor in
8102  motorola)
8103    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]'
8104    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8105    ;;
8106  ncr)
8107    lt_cv_deplibs_check_method=pass_all
8108    ;;
8109  sequent)
8110    lt_cv_file_magic_cmd='/bin/file'
8111    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8112    ;;
8113  sni)
8114    lt_cv_file_magic_cmd='/bin/file'
8115    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8116    lt_cv_file_magic_test_file=/lib/libc.so
8117    ;;
8118  siemens)
8119    lt_cv_deplibs_check_method=pass_all
8120    ;;
8121  pc)
8122    lt_cv_deplibs_check_method=pass_all
8123    ;;
8124  esac
8125  ;;
8126
8127tpf*)
8128  lt_cv_deplibs_check_method=pass_all
8129  ;;
8130os2*)
8131  lt_cv_deplibs_check_method=pass_all
8132  ;;
8133esac
8134
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8137$as_echo "$lt_cv_deplibs_check_method" >&6; }
8138
8139file_magic_glob=
8140want_nocaseglob=no
8141if test "$build" = "$host"; then
8142  case $host_os in
8143  mingw* | pw32*)
8144    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8145      want_nocaseglob=yes
8146    else
8147      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8148    fi
8149    ;;
8150  esac
8151fi
8152
8153file_magic_cmd=$lt_cv_file_magic_cmd
8154deplibs_check_method=$lt_cv_deplibs_check_method
8155test -z "$deplibs_check_method" && deplibs_check_method=unknown
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178if test -n "$ac_tool_prefix"; then
8179  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8180set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182$as_echo_n "checking for $ac_word... " >&6; }
8183if ${ac_cv_prog_DLLTOOL+:} false; then :
8184  $as_echo_n "(cached) " >&6
8185else
8186  if test -n "$DLLTOOL"; then
8187  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8188else
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  test -z "$as_dir" && as_dir=.
8194    for ac_exec_ext in '' $ac_executable_extensions; do
8195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198    break 2
8199  fi
8200done
8201  done
8202IFS=$as_save_IFS
8203
8204fi
8205fi
8206DLLTOOL=$ac_cv_prog_DLLTOOL
8207if test -n "$DLLTOOL"; then
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8209$as_echo "$DLLTOOL" >&6; }
8210else
8211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212$as_echo "no" >&6; }
8213fi
8214
8215
8216fi
8217if test -z "$ac_cv_prog_DLLTOOL"; then
8218  ac_ct_DLLTOOL=$DLLTOOL
8219  # Extract the first word of "dlltool", so it can be a program name with args.
8220set dummy dlltool; ac_word=$2
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  if test -n "$ac_ct_DLLTOOL"; then
8227  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232  IFS=$as_save_IFS
8233  test -z "$as_dir" && as_dir=.
8234    for ac_exec_ext in '' $ac_executable_extensions; do
8235  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238    break 2
8239  fi
8240done
8241  done
8242IFS=$as_save_IFS
8243
8244fi
8245fi
8246ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8247if test -n "$ac_ct_DLLTOOL"; then
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8249$as_echo "$ac_ct_DLLTOOL" >&6; }
8250else
8251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
8254
8255  if test "x$ac_ct_DLLTOOL" = x; then
8256    DLLTOOL="false"
8257  else
8258    case $cross_compiling:$ac_tool_warned in
8259yes:)
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262ac_tool_warned=yes ;;
8263esac
8264    DLLTOOL=$ac_ct_DLLTOOL
8265  fi
8266else
8267  DLLTOOL="$ac_cv_prog_DLLTOOL"
8268fi
8269
8270test -z "$DLLTOOL" && DLLTOOL=dlltool
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8282$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8283if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  lt_cv_sharedlib_from_linklib_cmd='unknown'
8287
8288case $host_os in
8289cygwin* | mingw* | pw32* | cegcc*)
8290  # two different shell functions defined in ltmain.sh;
8291  # decide which one to use based on capabilities of $DLLTOOL
8292  case `$DLLTOOL --help 2>&1` in
8293  *--identify-strict*)
8294    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8295    ;;
8296  *)
8297    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8298    ;;
8299  esac
8300  ;;
8301*)
8302  # fallback: assume linklib IS sharedlib
8303  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8304  ;;
8305esac
8306
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8309$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8310sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8311test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8312
8313
8314
8315
8316
8317
8318
8319if test -n "$ac_tool_prefix"; then
8320  for ac_prog in ar
8321  do
8322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325$as_echo_n "checking for $ac_word... " >&6; }
8326if ${ac_cv_prog_AR+:} false; then :
8327  $as_echo_n "(cached) " >&6
8328else
8329  if test -n "$AR"; then
8330  ac_cv_prog_AR="$AR" # Let the user override the test.
8331else
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335  IFS=$as_save_IFS
8336  test -z "$as_dir" && as_dir=.
8337    for ac_exec_ext in '' $ac_executable_extensions; do
8338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341    break 2
8342  fi
8343done
8344  done
8345IFS=$as_save_IFS
8346
8347fi
8348fi
8349AR=$ac_cv_prog_AR
8350if test -n "$AR"; then
8351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8352$as_echo "$AR" >&6; }
8353else
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
8356fi
8357
8358
8359    test -n "$AR" && break
8360  done
8361fi
8362if test -z "$AR"; then
8363  ac_ct_AR=$AR
8364  for ac_prog in ar
8365do
8366  # Extract the first word of "$ac_prog", so it can be a program name with args.
8367set dummy $ac_prog; ac_word=$2
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if ${ac_cv_prog_ac_ct_AR+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  if test -n "$ac_ct_AR"; then
8374  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379  IFS=$as_save_IFS
8380  test -z "$as_dir" && as_dir=.
8381    for ac_exec_ext in '' $ac_executable_extensions; do
8382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383    ac_cv_prog_ac_ct_AR="$ac_prog"
8384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385    break 2
8386  fi
8387done
8388  done
8389IFS=$as_save_IFS
8390
8391fi
8392fi
8393ac_ct_AR=$ac_cv_prog_ac_ct_AR
8394if test -n "$ac_ct_AR"; then
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8396$as_echo "$ac_ct_AR" >&6; }
8397else
8398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
8400fi
8401
8402
8403  test -n "$ac_ct_AR" && break
8404done
8405
8406  if test "x$ac_ct_AR" = x; then
8407    AR="false"
8408  else
8409    case $cross_compiling:$ac_tool_warned in
8410yes:)
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413ac_tool_warned=yes ;;
8414esac
8415    AR=$ac_ct_AR
8416  fi
8417fi
8418
8419: ${AR=ar}
8420: ${AR_FLAGS=cru}
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8433$as_echo_n "checking for archiver @FILE support... " >&6; }
8434if ${lt_cv_ar_at_file+:} false; then :
8435  $as_echo_n "(cached) " >&6
8436else
8437  lt_cv_ar_at_file=no
8438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439/* end confdefs.h.  */
8440
8441int
8442main ()
8443{
8444
8445  ;
8446  return 0;
8447}
8448_ACEOF
8449if ac_fn_c_try_compile "$LINENO"; then :
8450  echo conftest.$ac_objext > conftest.lst
8451      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8452      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8453  (eval $lt_ar_try) 2>&5
8454  ac_status=$?
8455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456  test $ac_status = 0; }
8457      if test 0 -eq "$ac_status"; then
8458	# Ensure the archiver fails upon bogus file names.
8459	rm -f conftest.$ac_objext libconftest.a
8460	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8461  (eval $lt_ar_try) 2>&5
8462  ac_status=$?
8463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8464  test $ac_status = 0; }
8465	if test 0 -ne "$ac_status"; then
8466          lt_cv_ar_at_file=@
8467        fi
8468      fi
8469      rm -f conftest.* libconftest.a
8470
8471fi
8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8476$as_echo "$lt_cv_ar_at_file" >&6; }
8477
8478if test no = "$lt_cv_ar_at_file"; then
8479  archiver_list_spec=
8480else
8481  archiver_list_spec=$lt_cv_ar_at_file
8482fi
8483
8484
8485
8486
8487
8488
8489
8490if test -n "$ac_tool_prefix"; then
8491  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8492set dummy ${ac_tool_prefix}strip; ac_word=$2
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494$as_echo_n "checking for $ac_word... " >&6; }
8495if ${ac_cv_prog_STRIP+:} false; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  if test -n "$STRIP"; then
8499  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8500else
8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504  IFS=$as_save_IFS
8505  test -z "$as_dir" && as_dir=.
8506    for ac_exec_ext in '' $ac_executable_extensions; do
8507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510    break 2
8511  fi
8512done
8513  done
8514IFS=$as_save_IFS
8515
8516fi
8517fi
8518STRIP=$ac_cv_prog_STRIP
8519if test -n "$STRIP"; then
8520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8521$as_echo "$STRIP" >&6; }
8522else
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524$as_echo "no" >&6; }
8525fi
8526
8527
8528fi
8529if test -z "$ac_cv_prog_STRIP"; then
8530  ac_ct_STRIP=$STRIP
8531  # Extract the first word of "strip", so it can be a program name with args.
8532set dummy strip; ac_word=$2
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534$as_echo_n "checking for $ac_word... " >&6; }
8535if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8536  $as_echo_n "(cached) " >&6
8537else
8538  if test -n "$ac_ct_STRIP"; then
8539  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8540else
8541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542for as_dir in $PATH
8543do
8544  IFS=$as_save_IFS
8545  test -z "$as_dir" && as_dir=.
8546    for ac_exec_ext in '' $ac_executable_extensions; do
8547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548    ac_cv_prog_ac_ct_STRIP="strip"
8549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550    break 2
8551  fi
8552done
8553  done
8554IFS=$as_save_IFS
8555
8556fi
8557fi
8558ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8559if test -n "$ac_ct_STRIP"; then
8560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8561$as_echo "$ac_ct_STRIP" >&6; }
8562else
8563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564$as_echo "no" >&6; }
8565fi
8566
8567  if test "x$ac_ct_STRIP" = x; then
8568    STRIP=":"
8569  else
8570    case $cross_compiling:$ac_tool_warned in
8571yes:)
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574ac_tool_warned=yes ;;
8575esac
8576    STRIP=$ac_ct_STRIP
8577  fi
8578else
8579  STRIP="$ac_cv_prog_STRIP"
8580fi
8581
8582test -z "$STRIP" && STRIP=:
8583
8584
8585
8586
8587
8588
8589if test -n "$ac_tool_prefix"; then
8590  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8591set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593$as_echo_n "checking for $ac_word... " >&6; }
8594if ${ac_cv_prog_RANLIB+:} false; then :
8595  $as_echo_n "(cached) " >&6
8596else
8597  if test -n "$RANLIB"; then
8598  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8599else
8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603  IFS=$as_save_IFS
8604  test -z "$as_dir" && as_dir=.
8605    for ac_exec_ext in '' $ac_executable_extensions; do
8606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609    break 2
8610  fi
8611done
8612  done
8613IFS=$as_save_IFS
8614
8615fi
8616fi
8617RANLIB=$ac_cv_prog_RANLIB
8618if test -n "$RANLIB"; then
8619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8620$as_echo "$RANLIB" >&6; }
8621else
8622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
8624fi
8625
8626
8627fi
8628if test -z "$ac_cv_prog_RANLIB"; then
8629  ac_ct_RANLIB=$RANLIB
8630  # Extract the first word of "ranlib", so it can be a program name with args.
8631set dummy ranlib; ac_word=$2
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
8634if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8635  $as_echo_n "(cached) " >&6
8636else
8637  if test -n "$ac_ct_RANLIB"; then
8638  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643  IFS=$as_save_IFS
8644  test -z "$as_dir" && as_dir=.
8645    for ac_exec_ext in '' $ac_executable_extensions; do
8646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647    ac_cv_prog_ac_ct_RANLIB="ranlib"
8648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649    break 2
8650  fi
8651done
8652  done
8653IFS=$as_save_IFS
8654
8655fi
8656fi
8657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8658if test -n "$ac_ct_RANLIB"; then
8659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8660$as_echo "$ac_ct_RANLIB" >&6; }
8661else
8662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
8664fi
8665
8666  if test "x$ac_ct_RANLIB" = x; then
8667    RANLIB=":"
8668  else
8669    case $cross_compiling:$ac_tool_warned in
8670yes:)
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673ac_tool_warned=yes ;;
8674esac
8675    RANLIB=$ac_ct_RANLIB
8676  fi
8677else
8678  RANLIB="$ac_cv_prog_RANLIB"
8679fi
8680
8681test -z "$RANLIB" && RANLIB=:
8682
8683
8684
8685
8686
8687
8688# Determine commands to create old-style static archives.
8689old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8690old_postinstall_cmds='chmod 644 $oldlib'
8691old_postuninstall_cmds=
8692
8693if test -n "$RANLIB"; then
8694  case $host_os in
8695  bitrig* | openbsd*)
8696    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8697    ;;
8698  *)
8699    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8700    ;;
8701  esac
8702  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8703fi
8704
8705case $host_os in
8706  darwin*)
8707    lock_old_archive_extraction=yes ;;
8708  *)
8709    lock_old_archive_extraction=no ;;
8710esac
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732for ac_prog in gawk mawk nawk awk
8733do
8734  # Extract the first word of "$ac_prog", so it can be a program name with args.
8735set dummy $ac_prog; ac_word=$2
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if ${ac_cv_prog_AWK+:} false; then :
8739  $as_echo_n "(cached) " >&6
8740else
8741  if test -n "$AWK"; then
8742  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  test -z "$as_dir" && as_dir=.
8749    for ac_exec_ext in '' $ac_executable_extensions; do
8750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_AWK="$ac_prog"
8752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756  done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761AWK=$ac_cv_prog_AWK
8762if test -n "$AWK"; then
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8764$as_echo "$AWK" >&6; }
8765else
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770
8771  test -n "$AWK" && break
8772done
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792# If no C compiler was specified, use CC.
8793LTCC=${LTCC-"$CC"}
8794
8795# If no C compiler flags were specified, use CFLAGS.
8796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8797
8798# Allow CC to be a program name with arguments.
8799compiler=$CC
8800
8801
8802# Check for command to grab the raw symbol name followed by C symbol from nm.
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8804$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8805if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808
8809# These are sane defaults that work on at least a few old systems.
8810# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8811
8812# Character class describing NM global symbol codes.
8813symcode='[BCDEGRST]'
8814
8815# Regexp to match symbols that can be accessed directly from C.
8816sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8817
8818# Define system-specific variables.
8819case $host_os in
8820aix*)
8821  symcode='[BCDT]'
8822  ;;
8823cygwin* | mingw* | pw32* | cegcc*)
8824  symcode='[ABCDGISTW]'
8825  ;;
8826hpux*)
8827  if test ia64 = "$host_cpu"; then
8828    symcode='[ABCDEGRST]'
8829  fi
8830  ;;
8831irix* | nonstopux*)
8832  symcode='[BCDEGRST]'
8833  ;;
8834osf*)
8835  symcode='[BCDEGQRST]'
8836  ;;
8837solaris*)
8838  symcode='[BDRT]'
8839  ;;
8840sco3.2v5*)
8841  symcode='[DT]'
8842  ;;
8843sysv4.2uw2*)
8844  symcode='[DT]'
8845  ;;
8846sysv5* | sco5v6* | unixware* | OpenUNIX*)
8847  symcode='[ABDT]'
8848  ;;
8849sysv4)
8850  symcode='[DFNSTU]'
8851  ;;
8852esac
8853
8854# If we're using GNU nm, then use its standard symbol codes.
8855case `$NM -V 2>&1` in
8856*GNU* | *'with BFD'*)
8857  symcode='[ABCDGIRSTW]' ;;
8858esac
8859
8860if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8861  # Gets list of data symbols to import.
8862  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8863  # Adjust the below global symbol transforms to fixup imported variables.
8864  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8865  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8866  lt_c_name_lib_hook="\
8867  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8868  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8869else
8870  # Disable hooks by default.
8871  lt_cv_sys_global_symbol_to_import=
8872  lt_cdecl_hook=
8873  lt_c_name_hook=
8874  lt_c_name_lib_hook=
8875fi
8876
8877# Transform an extracted symbol line into a proper C declaration.
8878# Some systems (esp. on ia64) link data and code symbols differently,
8879# so use this general approach.
8880lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8881$lt_cdecl_hook\
8882" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8883" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8884
8885# Transform an extracted symbol line into symbol name and symbol address
8886lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8887$lt_c_name_hook\
8888" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8889" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8890
8891# Transform an extracted symbol line into symbol name with lib prefix and
8892# symbol address.
8893lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8894$lt_c_name_lib_hook\
8895" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8896" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8897" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8898
8899# Handle CRLF in mingw tool chain
8900opt_cr=
8901case $build_os in
8902mingw*)
8903  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8904  ;;
8905esac
8906
8907# Try without a prefix underscore, then with it.
8908for ac_symprfx in "" "_"; do
8909
8910  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8911  symxfrm="\\1 $ac_symprfx\\2 \\2"
8912
8913  # Write the raw and C identifiers.
8914  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8915    # Fake it for dumpbin and say T for any non-static function,
8916    # D for any global variable and I for any imported variable.
8917    # Also find C++ and __fastcall symbols from MSVC++,
8918    # which start with @ or ?.
8919    lt_cv_sys_global_symbol_pipe="$AWK '"\
8920"     {last_section=section; section=\$ 3};"\
8921"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8922"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8923"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8924"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8925"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8926"     \$ 0!~/External *\|/{next};"\
8927"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8928"     {if(hide[section]) next};"\
8929"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8930"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8931"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8932"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8933"     ' prfx=^$ac_symprfx"
8934  else
8935    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8936  fi
8937  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8938
8939  # Check to see that the pipe works correctly.
8940  pipe_works=no
8941
8942  rm -f conftest*
8943  cat > conftest.$ac_ext <<_LT_EOF
8944#ifdef __cplusplus
8945extern "C" {
8946#endif
8947char nm_test_var;
8948void nm_test_func(void);
8949void nm_test_func(void){}
8950#ifdef __cplusplus
8951}
8952#endif
8953int main(){nm_test_var='a';nm_test_func();return(0);}
8954_LT_EOF
8955
8956  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957  (eval $ac_compile) 2>&5
8958  ac_status=$?
8959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960  test $ac_status = 0; }; then
8961    # Now try to grab the symbols.
8962    nlist=conftest.nm
8963    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8964  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8965  ac_status=$?
8966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967  test $ac_status = 0; } && test -s "$nlist"; then
8968      # Try sorting and uniquifying the output.
8969      if sort "$nlist" | uniq > "$nlist"T; then
8970	mv -f "$nlist"T "$nlist"
8971      else
8972	rm -f "$nlist"T
8973      fi
8974
8975      # Make sure that we snagged all the symbols we need.
8976      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8977	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8978	  cat <<_LT_EOF > conftest.$ac_ext
8979/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8980#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8981/* DATA imports from DLLs on WIN32 can't be const, because runtime
8982   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8983# define LT_DLSYM_CONST
8984#elif defined __osf__
8985/* This system does not cope well with relocations in const data.  */
8986# define LT_DLSYM_CONST
8987#else
8988# define LT_DLSYM_CONST const
8989#endif
8990
8991#ifdef __cplusplus
8992extern "C" {
8993#endif
8994
8995_LT_EOF
8996	  # Now generate the symbol file.
8997	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8998
8999	  cat <<_LT_EOF >> conftest.$ac_ext
9000
9001/* The mapping between symbol names and symbols.  */
9002LT_DLSYM_CONST struct {
9003  const char *name;
9004  void       *address;
9005}
9006lt__PROGRAM__LTX_preloaded_symbols[] =
9007{
9008  { "@PROGRAM@", (void *) 0 },
9009_LT_EOF
9010	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9011	  cat <<\_LT_EOF >> conftest.$ac_ext
9012  {0, (void *) 0}
9013};
9014
9015/* This works around a problem in FreeBSD linker */
9016#ifdef FREEBSD_WORKAROUND
9017static const void *lt_preloaded_setup() {
9018  return lt__PROGRAM__LTX_preloaded_symbols;
9019}
9020#endif
9021
9022#ifdef __cplusplus
9023}
9024#endif
9025_LT_EOF
9026	  # Now try linking the two files.
9027	  mv conftest.$ac_objext conftstm.$ac_objext
9028	  lt_globsym_save_LIBS=$LIBS
9029	  lt_globsym_save_CFLAGS=$CFLAGS
9030	  LIBS=conftstm.$ac_objext
9031	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9032	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9033  (eval $ac_link) 2>&5
9034  ac_status=$?
9035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9036  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9037	    pipe_works=yes
9038	  fi
9039	  LIBS=$lt_globsym_save_LIBS
9040	  CFLAGS=$lt_globsym_save_CFLAGS
9041	else
9042	  echo "cannot find nm_test_func in $nlist" >&5
9043	fi
9044      else
9045	echo "cannot find nm_test_var in $nlist" >&5
9046      fi
9047    else
9048      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9049    fi
9050  else
9051    echo "$progname: failed program was:" >&5
9052    cat conftest.$ac_ext >&5
9053  fi
9054  rm -rf conftest* conftst*
9055
9056  # Do not use the global_symbol_pipe unless it works.
9057  if test yes = "$pipe_works"; then
9058    break
9059  else
9060    lt_cv_sys_global_symbol_pipe=
9061  fi
9062done
9063
9064fi
9065
9066if test -z "$lt_cv_sys_global_symbol_pipe"; then
9067  lt_cv_sys_global_symbol_to_cdecl=
9068fi
9069if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9071$as_echo "failed" >&6; }
9072else
9073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9074$as_echo "ok" >&6; }
9075fi
9076
9077# Response file support.
9078if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9079  nm_file_list_spec='@'
9080elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9081  nm_file_list_spec='@'
9082fi
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9121$as_echo_n "checking for sysroot... " >&6; }
9122
9123# Check whether --with-sysroot was given.
9124if test "${with_sysroot+set}" = set; then :
9125  withval=$with_sysroot;
9126else
9127  with_sysroot=no
9128fi
9129
9130
9131lt_sysroot=
9132case $with_sysroot in #(
9133 yes)
9134   if test yes = "$GCC"; then
9135     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9136   fi
9137   ;; #(
9138 /*)
9139   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9140   ;; #(
9141 no|'')
9142   ;; #(
9143 *)
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9145$as_echo "$with_sysroot" >&6; }
9146   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9147   ;;
9148esac
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9151$as_echo "${lt_sysroot:-no}" >&6; }
9152
9153
9154
9155
9156
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9158$as_echo_n "checking for a working dd... " >&6; }
9159if ${ac_cv_path_lt_DD+:} false; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  printf 0123456789abcdef0123456789abcdef >conftest.i
9163cat conftest.i conftest.i >conftest2.i
9164: ${lt_DD:=$DD}
9165if test -z "$lt_DD"; then
9166  ac_path_lt_DD_found=false
9167  # Loop through the user's path and test for each of PROGNAME-LIST
9168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $PATH
9170do
9171  IFS=$as_save_IFS
9172  test -z "$as_dir" && as_dir=.
9173    for ac_prog in dd; do
9174    for ac_exec_ext in '' $ac_executable_extensions; do
9175      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9176      as_fn_executable_p "$ac_path_lt_DD" || continue
9177if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9178  cmp -s conftest.i conftest.out \
9179  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9180fi
9181      $ac_path_lt_DD_found && break 3
9182    done
9183  done
9184  done
9185IFS=$as_save_IFS
9186  if test -z "$ac_cv_path_lt_DD"; then
9187    :
9188  fi
9189else
9190  ac_cv_path_lt_DD=$lt_DD
9191fi
9192
9193rm -f conftest.i conftest2.i conftest.out
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9196$as_echo "$ac_cv_path_lt_DD" >&6; }
9197
9198
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9200$as_echo_n "checking how to truncate binary pipes... " >&6; }
9201if ${lt_cv_truncate_bin+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  printf 0123456789abcdef0123456789abcdef >conftest.i
9205cat conftest.i conftest.i >conftest2.i
9206lt_cv_truncate_bin=
9207if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9208  cmp -s conftest.i conftest.out \
9209  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9210fi
9211rm -f conftest.i conftest2.i conftest.out
9212test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9213fi
9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9215$as_echo "$lt_cv_truncate_bin" >&6; }
9216
9217
9218
9219
9220
9221
9222
9223# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9224func_cc_basename ()
9225{
9226    for cc_temp in $*""; do
9227      case $cc_temp in
9228        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9229        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9230        \-*) ;;
9231        *) break;;
9232      esac
9233    done
9234    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9235}
9236
9237# Check whether --enable-libtool-lock was given.
9238if test "${enable_libtool_lock+set}" = set; then :
9239  enableval=$enable_libtool_lock;
9240fi
9241
9242test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9243
9244# Some flags need to be propagated to the compiler or linker for good
9245# libtool support.
9246case $host in
9247ia64-*-hpux*)
9248  # Find out what ABI is being produced by ac_compile, and set mode
9249  # options accordingly.
9250  echo 'int i;' > conftest.$ac_ext
9251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9252  (eval $ac_compile) 2>&5
9253  ac_status=$?
9254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255  test $ac_status = 0; }; then
9256    case `/usr/bin/file conftest.$ac_objext` in
9257      *ELF-32*)
9258	HPUX_IA64_MODE=32
9259	;;
9260      *ELF-64*)
9261	HPUX_IA64_MODE=64
9262	;;
9263    esac
9264  fi
9265  rm -rf conftest*
9266  ;;
9267*-*-irix6*)
9268  # Find out what ABI is being produced by ac_compile, and set linker
9269  # options accordingly.
9270  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9272  (eval $ac_compile) 2>&5
9273  ac_status=$?
9274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9275  test $ac_status = 0; }; then
9276    if test yes = "$lt_cv_prog_gnu_ld"; then
9277      case `/usr/bin/file conftest.$ac_objext` in
9278	*32-bit*)
9279	  LD="${LD-ld} -melf32bsmip"
9280	  ;;
9281	*N32*)
9282	  LD="${LD-ld} -melf32bmipn32"
9283	  ;;
9284	*64-bit*)
9285	  LD="${LD-ld} -melf64bmip"
9286	;;
9287      esac
9288    else
9289      case `/usr/bin/file conftest.$ac_objext` in
9290	*32-bit*)
9291	  LD="${LD-ld} -32"
9292	  ;;
9293	*N32*)
9294	  LD="${LD-ld} -n32"
9295	  ;;
9296	*64-bit*)
9297	  LD="${LD-ld} -64"
9298	  ;;
9299      esac
9300    fi
9301  fi
9302  rm -rf conftest*
9303  ;;
9304
9305mips64*-*linux*)
9306  # Find out what ABI is being produced by ac_compile, and set linker
9307  # options accordingly.
9308  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9309  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9310  (eval $ac_compile) 2>&5
9311  ac_status=$?
9312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9313  test $ac_status = 0; }; then
9314    emul=elf
9315    case `/usr/bin/file conftest.$ac_objext` in
9316      *32-bit*)
9317	emul="${emul}32"
9318	;;
9319      *64-bit*)
9320	emul="${emul}64"
9321	;;
9322    esac
9323    case `/usr/bin/file conftest.$ac_objext` in
9324      *MSB*)
9325	emul="${emul}btsmip"
9326	;;
9327      *LSB*)
9328	emul="${emul}ltsmip"
9329	;;
9330    esac
9331    case `/usr/bin/file conftest.$ac_objext` in
9332      *N32*)
9333	emul="${emul}n32"
9334	;;
9335    esac
9336    LD="${LD-ld} -m $emul"
9337  fi
9338  rm -rf conftest*
9339  ;;
9340
9341x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9342s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9343  # Find out what ABI is being produced by ac_compile, and set linker
9344  # options accordingly.  Note that the listed cases only cover the
9345  # situations where additional linker options are needed (such as when
9346  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9347  # vice versa); the common cases where no linker options are needed do
9348  # not appear in the list.
9349  echo 'int i;' > conftest.$ac_ext
9350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9351  (eval $ac_compile) 2>&5
9352  ac_status=$?
9353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9354  test $ac_status = 0; }; then
9355    case `/usr/bin/file conftest.o` in
9356      *32-bit*)
9357	case $host in
9358	  x86_64-*kfreebsd*-gnu)
9359	    LD="${LD-ld} -m elf_i386_fbsd"
9360	    ;;
9361	  x86_64-*linux*)
9362	    case `/usr/bin/file conftest.o` in
9363	      *x86-64*)
9364		LD="${LD-ld} -m elf32_x86_64"
9365		;;
9366	      *)
9367		LD="${LD-ld} -m elf_i386"
9368		;;
9369	    esac
9370	    ;;
9371	  powerpc64le-*linux*)
9372	    LD="${LD-ld} -m elf32lppclinux"
9373	    ;;
9374	  powerpc64-*linux*)
9375	    LD="${LD-ld} -m elf32ppclinux"
9376	    ;;
9377	  s390x-*linux*)
9378	    LD="${LD-ld} -m elf_s390"
9379	    ;;
9380	  sparc64-*linux*)
9381	    LD="${LD-ld} -m elf32_sparc"
9382	    ;;
9383	esac
9384	;;
9385      *64-bit*)
9386	case $host in
9387	  x86_64-*kfreebsd*-gnu)
9388	    LD="${LD-ld} -m elf_x86_64_fbsd"
9389	    ;;
9390	  x86_64-*linux*)
9391	    LD="${LD-ld} -m elf_x86_64"
9392	    ;;
9393	  powerpcle-*linux*)
9394	    LD="${LD-ld} -m elf64lppc"
9395	    ;;
9396	  powerpc-*linux*)
9397	    LD="${LD-ld} -m elf64ppc"
9398	    ;;
9399	  s390*-*linux*|s390*-*tpf*)
9400	    LD="${LD-ld} -m elf64_s390"
9401	    ;;
9402	  sparc*-*linux*)
9403	    LD="${LD-ld} -m elf64_sparc"
9404	    ;;
9405	esac
9406	;;
9407    esac
9408  fi
9409  rm -rf conftest*
9410  ;;
9411
9412*-*-sco3.2v5*)
9413  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9414  SAVE_CFLAGS=$CFLAGS
9415  CFLAGS="$CFLAGS -belf"
9416  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9417$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9418if ${lt_cv_cc_needs_belf+:} false; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  ac_ext=c
9422ac_cpp='$CPP $CPPFLAGS'
9423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h.  */
9429
9430int
9431main ()
9432{
9433
9434  ;
9435  return 0;
9436}
9437_ACEOF
9438if ac_fn_c_try_link "$LINENO"; then :
9439  lt_cv_cc_needs_belf=yes
9440else
9441  lt_cv_cc_needs_belf=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext \
9444    conftest$ac_exeext conftest.$ac_ext
9445     ac_ext=c
9446ac_cpp='$CPP $CPPFLAGS'
9447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9449ac_compiler_gnu=$ac_cv_c_compiler_gnu
9450
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9453$as_echo "$lt_cv_cc_needs_belf" >&6; }
9454  if test yes != "$lt_cv_cc_needs_belf"; then
9455    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9456    CFLAGS=$SAVE_CFLAGS
9457  fi
9458  ;;
9459*-*solaris*)
9460  # Find out what ABI is being produced by ac_compile, and set linker
9461  # options accordingly.
9462  echo 'int i;' > conftest.$ac_ext
9463  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464  (eval $ac_compile) 2>&5
9465  ac_status=$?
9466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467  test $ac_status = 0; }; then
9468    case `/usr/bin/file conftest.o` in
9469    *64-bit*)
9470      case $lt_cv_prog_gnu_ld in
9471      yes*)
9472        case $host in
9473        i?86-*-solaris*|x86_64-*-solaris*)
9474          LD="${LD-ld} -m elf_x86_64"
9475          ;;
9476        sparc*-*-solaris*)
9477          LD="${LD-ld} -m elf64_sparc"
9478          ;;
9479        esac
9480        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9481        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9482          LD=${LD-ld}_sol2
9483        fi
9484        ;;
9485      *)
9486	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9487	  LD="${LD-ld} -64"
9488	fi
9489	;;
9490      esac
9491      ;;
9492    esac
9493  fi
9494  rm -rf conftest*
9495  ;;
9496esac
9497
9498need_locks=$enable_libtool_lock
9499
9500if test -n "$ac_tool_prefix"; then
9501  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9502set dummy ${ac_tool_prefix}mt; ac_word=$2
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504$as_echo_n "checking for $ac_word... " >&6; }
9505if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  if test -n "$MANIFEST_TOOL"; then
9509  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9510else
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514  IFS=$as_save_IFS
9515  test -z "$as_dir" && as_dir=.
9516    for ac_exec_ext in '' $ac_executable_extensions; do
9517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520    break 2
9521  fi
9522done
9523  done
9524IFS=$as_save_IFS
9525
9526fi
9527fi
9528MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9529if test -n "$MANIFEST_TOOL"; then
9530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9531$as_echo "$MANIFEST_TOOL" >&6; }
9532else
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534$as_echo "no" >&6; }
9535fi
9536
9537
9538fi
9539if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9540  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9541  # Extract the first word of "mt", so it can be a program name with args.
9542set dummy mt; ac_word=$2
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544$as_echo_n "checking for $ac_word... " >&6; }
9545if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  if test -n "$ac_ct_MANIFEST_TOOL"; then
9549  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9550else
9551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552for as_dir in $PATH
9553do
9554  IFS=$as_save_IFS
9555  test -z "$as_dir" && as_dir=.
9556    for ac_exec_ext in '' $ac_executable_extensions; do
9557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9560    break 2
9561  fi
9562done
9563  done
9564IFS=$as_save_IFS
9565
9566fi
9567fi
9568ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9569if test -n "$ac_ct_MANIFEST_TOOL"; then
9570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9571$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9572else
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574$as_echo "no" >&6; }
9575fi
9576
9577  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9578    MANIFEST_TOOL=":"
9579  else
9580    case $cross_compiling:$ac_tool_warned in
9581yes:)
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9584ac_tool_warned=yes ;;
9585esac
9586    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9587  fi
9588else
9589  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9590fi
9591
9592test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9594$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9595if ${lt_cv_path_mainfest_tool+:} false; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598  lt_cv_path_mainfest_tool=no
9599  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9600  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9601  cat conftest.err >&5
9602  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9603    lt_cv_path_mainfest_tool=yes
9604  fi
9605  rm -f conftest*
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9608$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9609if test yes != "$lt_cv_path_mainfest_tool"; then
9610  MANIFEST_TOOL=:
9611fi
9612
9613
9614
9615
9616
9617
9618  case $host_os in
9619    rhapsody* | darwin*)
9620    if test -n "$ac_tool_prefix"; then
9621  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9622set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624$as_echo_n "checking for $ac_word... " >&6; }
9625if ${ac_cv_prog_DSYMUTIL+:} false; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  if test -n "$DSYMUTIL"; then
9629  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9630else
9631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632for as_dir in $PATH
9633do
9634  IFS=$as_save_IFS
9635  test -z "$as_dir" && as_dir=.
9636    for ac_exec_ext in '' $ac_executable_extensions; do
9637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640    break 2
9641  fi
9642done
9643  done
9644IFS=$as_save_IFS
9645
9646fi
9647fi
9648DSYMUTIL=$ac_cv_prog_DSYMUTIL
9649if test -n "$DSYMUTIL"; then
9650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9651$as_echo "$DSYMUTIL" >&6; }
9652else
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654$as_echo "no" >&6; }
9655fi
9656
9657
9658fi
9659if test -z "$ac_cv_prog_DSYMUTIL"; then
9660  ac_ct_DSYMUTIL=$DSYMUTIL
9661  # Extract the first word of "dsymutil", so it can be a program name with args.
9662set dummy dsymutil; ac_word=$2
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664$as_echo_n "checking for $ac_word... " >&6; }
9665if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9666  $as_echo_n "(cached) " >&6
9667else
9668  if test -n "$ac_ct_DSYMUTIL"; then
9669  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9670else
9671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672for as_dir in $PATH
9673do
9674  IFS=$as_save_IFS
9675  test -z "$as_dir" && as_dir=.
9676    for ac_exec_ext in '' $ac_executable_extensions; do
9677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680    break 2
9681  fi
9682done
9683  done
9684IFS=$as_save_IFS
9685
9686fi
9687fi
9688ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9689if test -n "$ac_ct_DSYMUTIL"; then
9690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9691$as_echo "$ac_ct_DSYMUTIL" >&6; }
9692else
9693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694$as_echo "no" >&6; }
9695fi
9696
9697  if test "x$ac_ct_DSYMUTIL" = x; then
9698    DSYMUTIL=":"
9699  else
9700    case $cross_compiling:$ac_tool_warned in
9701yes:)
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9704ac_tool_warned=yes ;;
9705esac
9706    DSYMUTIL=$ac_ct_DSYMUTIL
9707  fi
9708else
9709  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9710fi
9711
9712    if test -n "$ac_tool_prefix"; then
9713  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9714set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if ${ac_cv_prog_NMEDIT+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  if test -n "$NMEDIT"; then
9721  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9722else
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726  IFS=$as_save_IFS
9727  test -z "$as_dir" && as_dir=.
9728    for ac_exec_ext in '' $ac_executable_extensions; do
9729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732    break 2
9733  fi
9734done
9735  done
9736IFS=$as_save_IFS
9737
9738fi
9739fi
9740NMEDIT=$ac_cv_prog_NMEDIT
9741if test -n "$NMEDIT"; then
9742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9743$as_echo "$NMEDIT" >&6; }
9744else
9745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
9747fi
9748
9749
9750fi
9751if test -z "$ac_cv_prog_NMEDIT"; then
9752  ac_ct_NMEDIT=$NMEDIT
9753  # Extract the first word of "nmedit", so it can be a program name with args.
9754set dummy nmedit; ac_word=$2
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756$as_echo_n "checking for $ac_word... " >&6; }
9757if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9758  $as_echo_n "(cached) " >&6
9759else
9760  if test -n "$ac_ct_NMEDIT"; then
9761  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9762else
9763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766  IFS=$as_save_IFS
9767  test -z "$as_dir" && as_dir=.
9768    for ac_exec_ext in '' $ac_executable_extensions; do
9769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772    break 2
9773  fi
9774done
9775  done
9776IFS=$as_save_IFS
9777
9778fi
9779fi
9780ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9781if test -n "$ac_ct_NMEDIT"; then
9782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9783$as_echo "$ac_ct_NMEDIT" >&6; }
9784else
9785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786$as_echo "no" >&6; }
9787fi
9788
9789  if test "x$ac_ct_NMEDIT" = x; then
9790    NMEDIT=":"
9791  else
9792    case $cross_compiling:$ac_tool_warned in
9793yes:)
9794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9796ac_tool_warned=yes ;;
9797esac
9798    NMEDIT=$ac_ct_NMEDIT
9799  fi
9800else
9801  NMEDIT="$ac_cv_prog_NMEDIT"
9802fi
9803
9804    if test -n "$ac_tool_prefix"; then
9805  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9806set dummy ${ac_tool_prefix}lipo; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if ${ac_cv_prog_LIPO+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  if test -n "$LIPO"; then
9813  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818  IFS=$as_save_IFS
9819  test -z "$as_dir" && as_dir=.
9820    for ac_exec_ext in '' $ac_executable_extensions; do
9821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824    break 2
9825  fi
9826done
9827  done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832LIPO=$ac_cv_prog_LIPO
9833if test -n "$LIPO"; then
9834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9835$as_echo "$LIPO" >&6; }
9836else
9837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842fi
9843if test -z "$ac_cv_prog_LIPO"; then
9844  ac_ct_LIPO=$LIPO
9845  # Extract the first word of "lipo", so it can be a program name with args.
9846set dummy lipo; ac_word=$2
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848$as_echo_n "checking for $ac_word... " >&6; }
9849if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9850  $as_echo_n "(cached) " >&6
9851else
9852  if test -n "$ac_ct_LIPO"; then
9853  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9854else
9855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858  IFS=$as_save_IFS
9859  test -z "$as_dir" && as_dir=.
9860    for ac_exec_ext in '' $ac_executable_extensions; do
9861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862    ac_cv_prog_ac_ct_LIPO="lipo"
9863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864    break 2
9865  fi
9866done
9867  done
9868IFS=$as_save_IFS
9869
9870fi
9871fi
9872ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9873if test -n "$ac_ct_LIPO"; then
9874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9875$as_echo "$ac_ct_LIPO" >&6; }
9876else
9877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878$as_echo "no" >&6; }
9879fi
9880
9881  if test "x$ac_ct_LIPO" = x; then
9882    LIPO=":"
9883  else
9884    case $cross_compiling:$ac_tool_warned in
9885yes:)
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9888ac_tool_warned=yes ;;
9889esac
9890    LIPO=$ac_ct_LIPO
9891  fi
9892else
9893  LIPO="$ac_cv_prog_LIPO"
9894fi
9895
9896    if test -n "$ac_tool_prefix"; then
9897  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9898set dummy ${ac_tool_prefix}otool; ac_word=$2
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900$as_echo_n "checking for $ac_word... " >&6; }
9901if ${ac_cv_prog_OTOOL+:} false; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  if test -n "$OTOOL"; then
9905  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9906else
9907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910  IFS=$as_save_IFS
9911  test -z "$as_dir" && as_dir=.
9912    for ac_exec_ext in '' $ac_executable_extensions; do
9913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9916    break 2
9917  fi
9918done
9919  done
9920IFS=$as_save_IFS
9921
9922fi
9923fi
9924OTOOL=$ac_cv_prog_OTOOL
9925if test -n "$OTOOL"; then
9926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9927$as_echo "$OTOOL" >&6; }
9928else
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
9931fi
9932
9933
9934fi
9935if test -z "$ac_cv_prog_OTOOL"; then
9936  ac_ct_OTOOL=$OTOOL
9937  # Extract the first word of "otool", so it can be a program name with args.
9938set dummy otool; ac_word=$2
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940$as_echo_n "checking for $ac_word... " >&6; }
9941if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  if test -n "$ac_ct_OTOOL"; then
9945  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9946else
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950  IFS=$as_save_IFS
9951  test -z "$as_dir" && as_dir=.
9952    for ac_exec_ext in '' $ac_executable_extensions; do
9953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954    ac_cv_prog_ac_ct_OTOOL="otool"
9955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956    break 2
9957  fi
9958done
9959  done
9960IFS=$as_save_IFS
9961
9962fi
9963fi
9964ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9965if test -n "$ac_ct_OTOOL"; then
9966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9967$as_echo "$ac_ct_OTOOL" >&6; }
9968else
9969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
9971fi
9972
9973  if test "x$ac_ct_OTOOL" = x; then
9974    OTOOL=":"
9975  else
9976    case $cross_compiling:$ac_tool_warned in
9977yes:)
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980ac_tool_warned=yes ;;
9981esac
9982    OTOOL=$ac_ct_OTOOL
9983  fi
9984else
9985  OTOOL="$ac_cv_prog_OTOOL"
9986fi
9987
9988    if test -n "$ac_tool_prefix"; then
9989  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9990set dummy ${ac_tool_prefix}otool64; ac_word=$2
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
9993if ${ac_cv_prog_OTOOL64+:} false; then :
9994  $as_echo_n "(cached) " >&6
9995else
9996  if test -n "$OTOOL64"; then
9997  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9998else
9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $PATH
10001do
10002  IFS=$as_save_IFS
10003  test -z "$as_dir" && as_dir=.
10004    for ac_exec_ext in '' $ac_executable_extensions; do
10005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008    break 2
10009  fi
10010done
10011  done
10012IFS=$as_save_IFS
10013
10014fi
10015fi
10016OTOOL64=$ac_cv_prog_OTOOL64
10017if test -n "$OTOOL64"; then
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10019$as_echo "$OTOOL64" >&6; }
10020else
10021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022$as_echo "no" >&6; }
10023fi
10024
10025
10026fi
10027if test -z "$ac_cv_prog_OTOOL64"; then
10028  ac_ct_OTOOL64=$OTOOL64
10029  # Extract the first word of "otool64", so it can be a program name with args.
10030set dummy otool64; ac_word=$2
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032$as_echo_n "checking for $ac_word... " >&6; }
10033if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10034  $as_echo_n "(cached) " >&6
10035else
10036  if test -n "$ac_ct_OTOOL64"; then
10037  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10038else
10039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042  IFS=$as_save_IFS
10043  test -z "$as_dir" && as_dir=.
10044    for ac_exec_ext in '' $ac_executable_extensions; do
10045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046    ac_cv_prog_ac_ct_OTOOL64="otool64"
10047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10048    break 2
10049  fi
10050done
10051  done
10052IFS=$as_save_IFS
10053
10054fi
10055fi
10056ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10057if test -n "$ac_ct_OTOOL64"; then
10058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10059$as_echo "$ac_ct_OTOOL64" >&6; }
10060else
10061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062$as_echo "no" >&6; }
10063fi
10064
10065  if test "x$ac_ct_OTOOL64" = x; then
10066    OTOOL64=":"
10067  else
10068    case $cross_compiling:$ac_tool_warned in
10069yes:)
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10072ac_tool_warned=yes ;;
10073esac
10074    OTOOL64=$ac_ct_OTOOL64
10075  fi
10076else
10077  OTOOL64="$ac_cv_prog_OTOOL64"
10078fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10107$as_echo_n "checking for -single_module linker flag... " >&6; }
10108if ${lt_cv_apple_cc_single_mod+:} false; then :
10109  $as_echo_n "(cached) " >&6
10110else
10111  lt_cv_apple_cc_single_mod=no
10112      if test -z "$LT_MULTI_MODULE"; then
10113	# By default we will add the -single_module flag. You can override
10114	# by either setting the environment variable LT_MULTI_MODULE
10115	# non-empty at configure time, or by adding -multi_module to the
10116	# link flags.
10117	rm -rf libconftest.dylib*
10118	echo "int foo(void){return 1;}" > conftest.c
10119	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10120-dynamiclib -Wl,-single_module conftest.c" >&5
10121	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10122	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10123        _lt_result=$?
10124	# If there is a non-empty error log, and "single_module"
10125	# appears in it, assume the flag caused a linker warning
10126        if test -s conftest.err && $GREP single_module conftest.err; then
10127	  cat conftest.err >&5
10128	# Otherwise, if the output was created with a 0 exit code from
10129	# the compiler, it worked.
10130	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10131	  lt_cv_apple_cc_single_mod=yes
10132	else
10133	  cat conftest.err >&5
10134	fi
10135	rm -rf libconftest.dylib*
10136	rm -f conftest.*
10137      fi
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10140$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10141
10142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10143$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10144if ${lt_cv_ld_exported_symbols_list+:} false; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  lt_cv_ld_exported_symbols_list=no
10148      save_LDFLAGS=$LDFLAGS
10149      echo "_main" > conftest.sym
10150      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10151      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152/* end confdefs.h.  */
10153
10154int
10155main ()
10156{
10157
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162if ac_fn_c_try_link "$LINENO"; then :
10163  lt_cv_ld_exported_symbols_list=yes
10164else
10165  lt_cv_ld_exported_symbols_list=no
10166fi
10167rm -f core conftest.err conftest.$ac_objext \
10168    conftest$ac_exeext conftest.$ac_ext
10169	LDFLAGS=$save_LDFLAGS
10170
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10173$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10174
10175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10176$as_echo_n "checking for -force_load linker flag... " >&6; }
10177if ${lt_cv_ld_force_load+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  lt_cv_ld_force_load=no
10181      cat > conftest.c << _LT_EOF
10182int forced_loaded() { return 2;}
10183_LT_EOF
10184      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10185      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10186      echo "$AR cru libconftest.a conftest.o" >&5
10187      $AR cru libconftest.a conftest.o 2>&5
10188      echo "$RANLIB libconftest.a" >&5
10189      $RANLIB libconftest.a 2>&5
10190      cat > conftest.c << _LT_EOF
10191int main() { return 0;}
10192_LT_EOF
10193      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10194      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10195      _lt_result=$?
10196      if test -s conftest.err && $GREP force_load conftest.err; then
10197	cat conftest.err >&5
10198      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10199	lt_cv_ld_force_load=yes
10200      else
10201	cat conftest.err >&5
10202      fi
10203        rm -f conftest.err libconftest.a conftest conftest.c
10204        rm -rf conftest.dSYM
10205
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10208$as_echo "$lt_cv_ld_force_load" >&6; }
10209    case $host_os in
10210    rhapsody* | darwin1.[012])
10211      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10212    darwin1.*)
10213      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10214    darwin*) # darwin 5.x on
10215      # if running on 10.5 or later, the deployment target defaults
10216      # to the OS version, if on x86, and 10.4, the deployment
10217      # target defaults to 10.4. Don't you love it?
10218      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10219	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10220	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10221	10.[012][,.]*)
10222	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10223	10.*)
10224	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10225      esac
10226    ;;
10227  esac
10228    if test yes = "$lt_cv_apple_cc_single_mod"; then
10229      _lt_dar_single_mod='$single_module'
10230    fi
10231    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10232      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10233    else
10234      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10235    fi
10236    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10237      _lt_dsymutil='~$DSYMUTIL $lib || :'
10238    else
10239      _lt_dsymutil=
10240    fi
10241    ;;
10242  esac
10243
10244# func_munge_path_list VARIABLE PATH
10245# -----------------------------------
10246# VARIABLE is name of variable containing _space_ separated list of
10247# directories to be munged by the contents of PATH, which is string
10248# having a format:
10249# "DIR[:DIR]:"
10250#       string "DIR[ DIR]" will be prepended to VARIABLE
10251# ":DIR[:DIR]"
10252#       string "DIR[ DIR]" will be appended to VARIABLE
10253# "DIRP[:DIRP]::[DIRA:]DIRA"
10254#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10255#       "DIRA[ DIRA]" will be appended to VARIABLE
10256# "DIR[:DIR]"
10257#       VARIABLE will be replaced by "DIR[ DIR]"
10258func_munge_path_list ()
10259{
10260    case x$2 in
10261    x)
10262        ;;
10263    *:)
10264        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10265        ;;
10266    x:*)
10267        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10268        ;;
10269    *::*)
10270        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10271        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10272        ;;
10273    *)
10274        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10275        ;;
10276    esac
10277}
10278
10279for ac_header in dlfcn.h
10280do :
10281  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10282"
10283if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10284  cat >>confdefs.h <<_ACEOF
10285#define HAVE_DLFCN_H 1
10286_ACEOF
10287
10288fi
10289
10290done
10291
10292
10293
10294
10295
10296
10297
10298# Set options
10299
10300
10301
10302        enable_dlopen=no
10303
10304
10305  enable_win32_dll=no
10306
10307
10308            # Check whether --enable-shared was given.
10309if test "${enable_shared+set}" = set; then :
10310  enableval=$enable_shared; p=${PACKAGE-default}
10311    case $enableval in
10312    yes) enable_shared=yes ;;
10313    no) enable_shared=no ;;
10314    *)
10315      enable_shared=no
10316      # Look at the argument we got.  We use all the common list separators.
10317      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10318      for pkg in $enableval; do
10319	IFS=$lt_save_ifs
10320	if test "X$pkg" = "X$p"; then
10321	  enable_shared=yes
10322	fi
10323      done
10324      IFS=$lt_save_ifs
10325      ;;
10326    esac
10327else
10328  enable_shared=yes
10329fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339  # Check whether --enable-static was given.
10340if test "${enable_static+set}" = set; then :
10341  enableval=$enable_static; p=${PACKAGE-default}
10342    case $enableval in
10343    yes) enable_static=yes ;;
10344    no) enable_static=no ;;
10345    *)
10346     enable_static=no
10347      # Look at the argument we got.  We use all the common list separators.
10348      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10349      for pkg in $enableval; do
10350	IFS=$lt_save_ifs
10351	if test "X$pkg" = "X$p"; then
10352	  enable_static=yes
10353	fi
10354      done
10355      IFS=$lt_save_ifs
10356      ;;
10357    esac
10358else
10359  enable_static=yes
10360fi
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371# Check whether --with-pic was given.
10372if test "${with_pic+set}" = set; then :
10373  withval=$with_pic; lt_p=${PACKAGE-default}
10374    case $withval in
10375    yes|no) pic_mode=$withval ;;
10376    *)
10377      pic_mode=default
10378      # Look at the argument we got.  We use all the common list separators.
10379      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10380      for lt_pkg in $withval; do
10381	IFS=$lt_save_ifs
10382	if test "X$lt_pkg" = "X$lt_p"; then
10383	  pic_mode=yes
10384	fi
10385      done
10386      IFS=$lt_save_ifs
10387      ;;
10388    esac
10389else
10390  pic_mode=default
10391fi
10392
10393
10394
10395
10396
10397
10398
10399
10400  # Check whether --enable-fast-install was given.
10401if test "${enable_fast_install+set}" = set; then :
10402  enableval=$enable_fast_install; p=${PACKAGE-default}
10403    case $enableval in
10404    yes) enable_fast_install=yes ;;
10405    no) enable_fast_install=no ;;
10406    *)
10407      enable_fast_install=no
10408      # Look at the argument we got.  We use all the common list separators.
10409      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10410      for pkg in $enableval; do
10411	IFS=$lt_save_ifs
10412	if test "X$pkg" = "X$p"; then
10413	  enable_fast_install=yes
10414	fi
10415      done
10416      IFS=$lt_save_ifs
10417      ;;
10418    esac
10419else
10420  enable_fast_install=yes
10421fi
10422
10423
10424
10425
10426
10427
10428
10429
10430  shared_archive_member_spec=
10431case $host,$enable_shared in
10432power*-*-aix[5-9]*,yes)
10433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10434$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10435
10436# Check whether --with-aix-soname was given.
10437if test "${with_aix_soname+set}" = set; then :
10438  withval=$with_aix_soname; case $withval in
10439    aix|svr4|both)
10440      ;;
10441    *)
10442      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10443      ;;
10444    esac
10445    lt_cv_with_aix_soname=$with_aix_soname
10446else
10447  if ${lt_cv_with_aix_soname+:} false; then :
10448  $as_echo_n "(cached) " >&6
10449else
10450  lt_cv_with_aix_soname=aix
10451fi
10452
10453    with_aix_soname=$lt_cv_with_aix_soname
10454fi
10455
10456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10457$as_echo "$with_aix_soname" >&6; }
10458  if test aix != "$with_aix_soname"; then
10459    # For the AIX way of multilib, we name the shared archive member
10460    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10461    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10462    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10463    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10464    if test 64 = "${OBJECT_MODE-32}"; then
10465      shared_archive_member_spec=shr_64
10466    else
10467      shared_archive_member_spec=shr
10468    fi
10469  fi
10470  ;;
10471*)
10472  with_aix_soname=aix
10473  ;;
10474esac
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485# This can be used to rebuild libtool when needed
10486LIBTOOL_DEPS=$ltmain
10487
10488# Always use our own libtool.
10489LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520test -z "$LN_S" && LN_S="ln -s"
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535if test -n "${ZSH_VERSION+set}"; then
10536   setopt NO_GLOB_SUBST
10537fi
10538
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10540$as_echo_n "checking for objdir... " >&6; }
10541if ${lt_cv_objdir+:} false; then :
10542  $as_echo_n "(cached) " >&6
10543else
10544  rm -f .libs 2>/dev/null
10545mkdir .libs 2>/dev/null
10546if test -d .libs; then
10547  lt_cv_objdir=.libs
10548else
10549  # MS-DOS does not allow filenames that begin with a dot.
10550  lt_cv_objdir=_libs
10551fi
10552rmdir .libs 2>/dev/null
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10555$as_echo "$lt_cv_objdir" >&6; }
10556objdir=$lt_cv_objdir
10557
10558
10559
10560
10561
10562cat >>confdefs.h <<_ACEOF
10563#define LT_OBJDIR "$lt_cv_objdir/"
10564_ACEOF
10565
10566
10567
10568
10569case $host_os in
10570aix3*)
10571  # AIX sometimes has problems with the GCC collect2 program.  For some
10572  # reason, if we set the COLLECT_NAMES environment variable, the problems
10573  # vanish in a puff of smoke.
10574  if test set != "${COLLECT_NAMES+set}"; then
10575    COLLECT_NAMES=
10576    export COLLECT_NAMES
10577  fi
10578  ;;
10579esac
10580
10581# Global variables:
10582ofile=libtool
10583can_build_shared=yes
10584
10585# All known linkers require a '.a' archive for static linking (except MSVC,
10586# which needs '.lib').
10587libext=a
10588
10589with_gnu_ld=$lt_cv_prog_gnu_ld
10590
10591old_CC=$CC
10592old_CFLAGS=$CFLAGS
10593
10594# Set sane defaults for various variables
10595test -z "$CC" && CC=cc
10596test -z "$LTCC" && LTCC=$CC
10597test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10598test -z "$LD" && LD=ld
10599test -z "$ac_objext" && ac_objext=o
10600
10601func_cc_basename $compiler
10602cc_basename=$func_cc_basename_result
10603
10604
10605# Only perform the check for file, if the check method requires it
10606test -z "$MAGIC_CMD" && MAGIC_CMD=file
10607case $deplibs_check_method in
10608file_magic*)
10609  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10611$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10612if ${lt_cv_path_MAGIC_CMD+:} false; then :
10613  $as_echo_n "(cached) " >&6
10614else
10615  case $MAGIC_CMD in
10616[\\/*] |  ?:[\\/]*)
10617  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10618  ;;
10619*)
10620  lt_save_MAGIC_CMD=$MAGIC_CMD
10621  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10622  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10623  for ac_dir in $ac_dummy; do
10624    IFS=$lt_save_ifs
10625    test -z "$ac_dir" && ac_dir=.
10626    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10627      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10628      if test -n "$file_magic_test_file"; then
10629	case $deplibs_check_method in
10630	"file_magic "*)
10631	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10632	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10633	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10634	    $EGREP "$file_magic_regex" > /dev/null; then
10635	    :
10636	  else
10637	    cat <<_LT_EOF 1>&2
10638
10639*** Warning: the command libtool uses to detect shared libraries,
10640*** $file_magic_cmd, produces output that libtool cannot recognize.
10641*** The result is that libtool may fail to recognize shared libraries
10642*** as such.  This will affect the creation of libtool libraries that
10643*** depend on shared libraries, but programs linked with such libtool
10644*** libraries will work regardless of this problem.  Nevertheless, you
10645*** may want to report the problem to your system manager and/or to
10646*** bug-libtool@gnu.org
10647
10648_LT_EOF
10649	  fi ;;
10650	esac
10651      fi
10652      break
10653    fi
10654  done
10655  IFS=$lt_save_ifs
10656  MAGIC_CMD=$lt_save_MAGIC_CMD
10657  ;;
10658esac
10659fi
10660
10661MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10662if test -n "$MAGIC_CMD"; then
10663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10664$as_echo "$MAGIC_CMD" >&6; }
10665else
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668fi
10669
10670
10671
10672
10673
10674if test -z "$lt_cv_path_MAGIC_CMD"; then
10675  if test -n "$ac_tool_prefix"; then
10676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10677$as_echo_n "checking for file... " >&6; }
10678if ${lt_cv_path_MAGIC_CMD+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  case $MAGIC_CMD in
10682[\\/*] |  ?:[\\/]*)
10683  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10684  ;;
10685*)
10686  lt_save_MAGIC_CMD=$MAGIC_CMD
10687  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10688  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10689  for ac_dir in $ac_dummy; do
10690    IFS=$lt_save_ifs
10691    test -z "$ac_dir" && ac_dir=.
10692    if test -f "$ac_dir/file"; then
10693      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10694      if test -n "$file_magic_test_file"; then
10695	case $deplibs_check_method in
10696	"file_magic "*)
10697	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10698	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10699	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10700	    $EGREP "$file_magic_regex" > /dev/null; then
10701	    :
10702	  else
10703	    cat <<_LT_EOF 1>&2
10704
10705*** Warning: the command libtool uses to detect shared libraries,
10706*** $file_magic_cmd, produces output that libtool cannot recognize.
10707*** The result is that libtool may fail to recognize shared libraries
10708*** as such.  This will affect the creation of libtool libraries that
10709*** depend on shared libraries, but programs linked with such libtool
10710*** libraries will work regardless of this problem.  Nevertheless, you
10711*** may want to report the problem to your system manager and/or to
10712*** bug-libtool@gnu.org
10713
10714_LT_EOF
10715	  fi ;;
10716	esac
10717      fi
10718      break
10719    fi
10720  done
10721  IFS=$lt_save_ifs
10722  MAGIC_CMD=$lt_save_MAGIC_CMD
10723  ;;
10724esac
10725fi
10726
10727MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10728if test -n "$MAGIC_CMD"; then
10729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10730$as_echo "$MAGIC_CMD" >&6; }
10731else
10732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733$as_echo "no" >&6; }
10734fi
10735
10736
10737  else
10738    MAGIC_CMD=:
10739  fi
10740fi
10741
10742  fi
10743  ;;
10744esac
10745
10746# Use C for the default configuration in the libtool script
10747
10748lt_save_CC=$CC
10749ac_ext=c
10750ac_cpp='$CPP $CPPFLAGS'
10751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753ac_compiler_gnu=$ac_cv_c_compiler_gnu
10754
10755
10756# Source file extension for C test sources.
10757ac_ext=c
10758
10759# Object file extension for compiled C test sources.
10760objext=o
10761objext=$objext
10762
10763# Code to be used in simple compile tests
10764lt_simple_compile_test_code="int some_variable = 0;"
10765
10766# Code to be used in simple link tests
10767lt_simple_link_test_code='int main(){return(0);}'
10768
10769
10770
10771
10772
10773
10774
10775# If no C compiler was specified, use CC.
10776LTCC=${LTCC-"$CC"}
10777
10778# If no C compiler flags were specified, use CFLAGS.
10779LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10780
10781# Allow CC to be a program name with arguments.
10782compiler=$CC
10783
10784# Save the default compiler, since it gets overwritten when the other
10785# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10786compiler_DEFAULT=$CC
10787
10788# save warnings/boilerplate of simple test code
10789ac_outfile=conftest.$ac_objext
10790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10792_lt_compiler_boilerplate=`cat conftest.err`
10793$RM conftest*
10794
10795ac_outfile=conftest.$ac_objext
10796echo "$lt_simple_link_test_code" >conftest.$ac_ext
10797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10798_lt_linker_boilerplate=`cat conftest.err`
10799$RM -r conftest*
10800
10801
10802if test -n "$compiler"; then
10803
10804lt_prog_compiler_no_builtin_flag=
10805
10806if test yes = "$GCC"; then
10807  case $cc_basename in
10808  nvcc*)
10809    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10810  *)
10811    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10812  esac
10813
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10815$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10816if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10817  $as_echo_n "(cached) " >&6
10818else
10819  lt_cv_prog_compiler_rtti_exceptions=no
10820   ac_outfile=conftest.$ac_objext
10821   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10822   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10823   # Insert the option either (1) after the last *FLAGS variable, or
10824   # (2) before a word containing "conftest.", or (3) at the end.
10825   # Note that $ac_compile itself does not contain backslashes and begins
10826   # with a dollar sign (not a hyphen), so the echo should work correctly.
10827   # The option is referenced via a variable to avoid confusing sed.
10828   lt_compile=`echo "$ac_compile" | $SED \
10829   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10830   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10831   -e 's:$: $lt_compiler_flag:'`
10832   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10833   (eval "$lt_compile" 2>conftest.err)
10834   ac_status=$?
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   if (exit $ac_status) && test -s "$ac_outfile"; then
10838     # The compiler can only warn and ignore the option if not recognized
10839     # So say no if there are warnings other than the usual output.
10840     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10841     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10842     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10843       lt_cv_prog_compiler_rtti_exceptions=yes
10844     fi
10845   fi
10846   $RM conftest*
10847
10848fi
10849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10850$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10851
10852if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10853    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10854else
10855    :
10856fi
10857
10858fi
10859
10860
10861
10862
10863
10864
10865  lt_prog_compiler_wl=
10866lt_prog_compiler_pic=
10867lt_prog_compiler_static=
10868
10869
10870  if test yes = "$GCC"; then
10871    lt_prog_compiler_wl='-Wl,'
10872    lt_prog_compiler_static='-static'
10873
10874    case $host_os in
10875      aix*)
10876      # All AIX code is PIC.
10877      if test ia64 = "$host_cpu"; then
10878	# AIX 5 now supports IA64 processor
10879	lt_prog_compiler_static='-Bstatic'
10880      fi
10881      lt_prog_compiler_pic='-fPIC'
10882      ;;
10883
10884    amigaos*)
10885      case $host_cpu in
10886      powerpc)
10887            # see comment about AmigaOS4 .so support
10888            lt_prog_compiler_pic='-fPIC'
10889        ;;
10890      m68k)
10891            # FIXME: we need at least 68020 code to build shared libraries, but
10892            # adding the '-m68020' flag to GCC prevents building anything better,
10893            # like '-m68040'.
10894            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10895        ;;
10896      esac
10897      ;;
10898
10899    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10900      # PIC is the default for these OSes.
10901      ;;
10902
10903    mingw* | cygwin* | pw32* | os2* | cegcc*)
10904      # This hack is so that the source file can tell whether it is being
10905      # built for inclusion in a dll (and should export symbols for example).
10906      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10907      # (--disable-auto-import) libraries
10908      lt_prog_compiler_pic='-DDLL_EXPORT'
10909      case $host_os in
10910      os2*)
10911	lt_prog_compiler_static='$wl-static'
10912	;;
10913      esac
10914      ;;
10915
10916    darwin* | rhapsody*)
10917      # PIC is the default on this platform
10918      # Common symbols not allowed in MH_DYLIB files
10919      lt_prog_compiler_pic='-fno-common'
10920      ;;
10921
10922    haiku*)
10923      # PIC is the default for Haiku.
10924      # The "-static" flag exists, but is broken.
10925      lt_prog_compiler_static=
10926      ;;
10927
10928    hpux*)
10929      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10930      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10931      # sets the default TLS model and affects inlining.
10932      case $host_cpu in
10933      hppa*64*)
10934	# +Z the default
10935	;;
10936      *)
10937	lt_prog_compiler_pic='-fPIC'
10938	;;
10939      esac
10940      ;;
10941
10942    interix[3-9]*)
10943      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10944      # Instead, we relocate shared libraries at runtime.
10945      ;;
10946
10947    msdosdjgpp*)
10948      # Just because we use GCC doesn't mean we suddenly get shared libraries
10949      # on systems that don't support them.
10950      lt_prog_compiler_can_build_shared=no
10951      enable_shared=no
10952      ;;
10953
10954    *nto* | *qnx*)
10955      # QNX uses GNU C++, but need to define -shared option too, otherwise
10956      # it will coredump.
10957      lt_prog_compiler_pic='-fPIC -shared'
10958      ;;
10959
10960    sysv4*MP*)
10961      if test -d /usr/nec; then
10962	lt_prog_compiler_pic=-Kconform_pic
10963      fi
10964      ;;
10965
10966    *)
10967      lt_prog_compiler_pic='-fPIC'
10968      ;;
10969    esac
10970
10971    case $cc_basename in
10972    nvcc*) # Cuda Compiler Driver 2.2
10973      lt_prog_compiler_wl='-Xlinker '
10974      if test -n "$lt_prog_compiler_pic"; then
10975        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10976      fi
10977      ;;
10978    esac
10979  else
10980    # PORTME Check for flag to pass linker flags through the system compiler.
10981    case $host_os in
10982    aix*)
10983      lt_prog_compiler_wl='-Wl,'
10984      if test ia64 = "$host_cpu"; then
10985	# AIX 5 now supports IA64 processor
10986	lt_prog_compiler_static='-Bstatic'
10987      else
10988	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10989      fi
10990      ;;
10991
10992    darwin* | rhapsody*)
10993      # PIC is the default on this platform
10994      # Common symbols not allowed in MH_DYLIB files
10995      lt_prog_compiler_pic='-fno-common'
10996      case $cc_basename in
10997      nagfor*)
10998        # NAG Fortran compiler
10999        lt_prog_compiler_wl='-Wl,-Wl,,'
11000        lt_prog_compiler_pic='-PIC'
11001        lt_prog_compiler_static='-Bstatic'
11002        ;;
11003      esac
11004      ;;
11005
11006    mingw* | cygwin* | pw32* | os2* | cegcc*)
11007      # This hack is so that the source file can tell whether it is being
11008      # built for inclusion in a dll (and should export symbols for example).
11009      lt_prog_compiler_pic='-DDLL_EXPORT'
11010      case $host_os in
11011      os2*)
11012	lt_prog_compiler_static='$wl-static'
11013	;;
11014      esac
11015      ;;
11016
11017    hpux9* | hpux10* | hpux11*)
11018      lt_prog_compiler_wl='-Wl,'
11019      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11020      # not for PA HP-UX.
11021      case $host_cpu in
11022      hppa*64*|ia64*)
11023	# +Z the default
11024	;;
11025      *)
11026	lt_prog_compiler_pic='+Z'
11027	;;
11028      esac
11029      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11030      lt_prog_compiler_static='$wl-a ${wl}archive'
11031      ;;
11032
11033    irix5* | irix6* | nonstopux*)
11034      lt_prog_compiler_wl='-Wl,'
11035      # PIC (with -KPIC) is the default.
11036      lt_prog_compiler_static='-non_shared'
11037      ;;
11038
11039    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11040      case $cc_basename in
11041      # old Intel for x86_64, which still supported -KPIC.
11042      ecc*)
11043	lt_prog_compiler_wl='-Wl,'
11044	lt_prog_compiler_pic='-KPIC'
11045	lt_prog_compiler_static='-static'
11046        ;;
11047      # icc used to be incompatible with GCC.
11048      # ICC 10 doesn't accept -KPIC any more.
11049      icc* | ifort*)
11050	lt_prog_compiler_wl='-Wl,'
11051	lt_prog_compiler_pic='-fPIC'
11052	lt_prog_compiler_static='-static'
11053        ;;
11054      # Lahey Fortran 8.1.
11055      lf95*)
11056	lt_prog_compiler_wl='-Wl,'
11057	lt_prog_compiler_pic='--shared'
11058	lt_prog_compiler_static='--static'
11059	;;
11060      nagfor*)
11061	# NAG Fortran compiler
11062	lt_prog_compiler_wl='-Wl,-Wl,,'
11063	lt_prog_compiler_pic='-PIC'
11064	lt_prog_compiler_static='-Bstatic'
11065	;;
11066      tcc*)
11067	# Fabrice Bellard et al's Tiny C Compiler
11068	lt_prog_compiler_wl='-Wl,'
11069	lt_prog_compiler_pic='-fPIC'
11070	lt_prog_compiler_static='-static'
11071	;;
11072      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11073        # Portland Group compilers (*not* the Pentium gcc compiler,
11074	# which looks to be a dead project)
11075	lt_prog_compiler_wl='-Wl,'
11076	lt_prog_compiler_pic='-fpic'
11077	lt_prog_compiler_static='-Bstatic'
11078        ;;
11079      ccc*)
11080        lt_prog_compiler_wl='-Wl,'
11081        # All Alpha code is PIC.
11082        lt_prog_compiler_static='-non_shared'
11083        ;;
11084      xl* | bgxl* | bgf* | mpixl*)
11085	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11086	lt_prog_compiler_wl='-Wl,'
11087	lt_prog_compiler_pic='-qpic'
11088	lt_prog_compiler_static='-qstaticlink'
11089	;;
11090      *)
11091	case `$CC -V 2>&1 | sed 5q` in
11092	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11093	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11094	  lt_prog_compiler_pic='-KPIC'
11095	  lt_prog_compiler_static='-Bstatic'
11096	  lt_prog_compiler_wl=''
11097	  ;;
11098	*Sun\ F* | *Sun*Fortran*)
11099	  lt_prog_compiler_pic='-KPIC'
11100	  lt_prog_compiler_static='-Bstatic'
11101	  lt_prog_compiler_wl='-Qoption ld '
11102	  ;;
11103	*Sun\ C*)
11104	  # Sun C 5.9
11105	  lt_prog_compiler_pic='-KPIC'
11106	  lt_prog_compiler_static='-Bstatic'
11107	  lt_prog_compiler_wl='-Wl,'
11108	  ;;
11109        *Intel*\ [CF]*Compiler*)
11110	  lt_prog_compiler_wl='-Wl,'
11111	  lt_prog_compiler_pic='-fPIC'
11112	  lt_prog_compiler_static='-static'
11113	  ;;
11114	*Portland\ Group*)
11115	  lt_prog_compiler_wl='-Wl,'
11116	  lt_prog_compiler_pic='-fpic'
11117	  lt_prog_compiler_static='-Bstatic'
11118	  ;;
11119	esac
11120	;;
11121      esac
11122      ;;
11123
11124    newsos6)
11125      lt_prog_compiler_pic='-KPIC'
11126      lt_prog_compiler_static='-Bstatic'
11127      ;;
11128
11129    *nto* | *qnx*)
11130      # QNX uses GNU C++, but need to define -shared option too, otherwise
11131      # it will coredump.
11132      lt_prog_compiler_pic='-fPIC -shared'
11133      ;;
11134
11135    osf3* | osf4* | osf5*)
11136      lt_prog_compiler_wl='-Wl,'
11137      # All OSF/1 code is PIC.
11138      lt_prog_compiler_static='-non_shared'
11139      ;;
11140
11141    rdos*)
11142      lt_prog_compiler_static='-non_shared'
11143      ;;
11144
11145    solaris*)
11146      lt_prog_compiler_pic='-KPIC'
11147      lt_prog_compiler_static='-Bstatic'
11148      case $cc_basename in
11149      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11150	lt_prog_compiler_wl='-Qoption ld ';;
11151      *)
11152	lt_prog_compiler_wl='-Wl,';;
11153      esac
11154      ;;
11155
11156    sunos4*)
11157      lt_prog_compiler_wl='-Qoption ld '
11158      lt_prog_compiler_pic='-PIC'
11159      lt_prog_compiler_static='-Bstatic'
11160      ;;
11161
11162    sysv4 | sysv4.2uw2* | sysv4.3*)
11163      lt_prog_compiler_wl='-Wl,'
11164      lt_prog_compiler_pic='-KPIC'
11165      lt_prog_compiler_static='-Bstatic'
11166      ;;
11167
11168    sysv4*MP*)
11169      if test -d /usr/nec; then
11170	lt_prog_compiler_pic='-Kconform_pic'
11171	lt_prog_compiler_static='-Bstatic'
11172      fi
11173      ;;
11174
11175    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11176      lt_prog_compiler_wl='-Wl,'
11177      lt_prog_compiler_pic='-KPIC'
11178      lt_prog_compiler_static='-Bstatic'
11179      ;;
11180
11181    unicos*)
11182      lt_prog_compiler_wl='-Wl,'
11183      lt_prog_compiler_can_build_shared=no
11184      ;;
11185
11186    uts4*)
11187      lt_prog_compiler_pic='-pic'
11188      lt_prog_compiler_static='-Bstatic'
11189      ;;
11190
11191    *)
11192      lt_prog_compiler_can_build_shared=no
11193      ;;
11194    esac
11195  fi
11196
11197case $host_os in
11198  # For platforms that do not support PIC, -DPIC is meaningless:
11199  *djgpp*)
11200    lt_prog_compiler_pic=
11201    ;;
11202  *)
11203    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11204    ;;
11205esac
11206
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11208$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11209if ${lt_cv_prog_compiler_pic+:} false; then :
11210  $as_echo_n "(cached) " >&6
11211else
11212  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11215$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11216lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11217
11218#
11219# Check to make sure the PIC flag actually works.
11220#
11221if test -n "$lt_prog_compiler_pic"; then
11222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11224if ${lt_cv_prog_compiler_pic_works+:} false; then :
11225  $as_echo_n "(cached) " >&6
11226else
11227  lt_cv_prog_compiler_pic_works=no
11228   ac_outfile=conftest.$ac_objext
11229   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11230   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11231   # Insert the option either (1) after the last *FLAGS variable, or
11232   # (2) before a word containing "conftest.", or (3) at the end.
11233   # Note that $ac_compile itself does not contain backslashes and begins
11234   # with a dollar sign (not a hyphen), so the echo should work correctly.
11235   # The option is referenced via a variable to avoid confusing sed.
11236   lt_compile=`echo "$ac_compile" | $SED \
11237   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11239   -e 's:$: $lt_compiler_flag:'`
11240   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11241   (eval "$lt_compile" 2>conftest.err)
11242   ac_status=$?
11243   cat conftest.err >&5
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   if (exit $ac_status) && test -s "$ac_outfile"; then
11246     # The compiler can only warn and ignore the option if not recognized
11247     # So say no if there are warnings other than the usual output.
11248     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11249     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11250     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11251       lt_cv_prog_compiler_pic_works=yes
11252     fi
11253   fi
11254   $RM conftest*
11255
11256fi
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11258$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11259
11260if test yes = "$lt_cv_prog_compiler_pic_works"; then
11261    case $lt_prog_compiler_pic in
11262     "" | " "*) ;;
11263     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11264     esac
11265else
11266    lt_prog_compiler_pic=
11267     lt_prog_compiler_can_build_shared=no
11268fi
11269
11270fi
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282#
11283# Check to make sure the static flag actually works.
11284#
11285wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11287$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11288if ${lt_cv_prog_compiler_static_works+:} false; then :
11289  $as_echo_n "(cached) " >&6
11290else
11291  lt_cv_prog_compiler_static_works=no
11292   save_LDFLAGS=$LDFLAGS
11293   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11294   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11295   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11296     # The linker can only warn and ignore the option if not recognized
11297     # So say no if there are warnings
11298     if test -s conftest.err; then
11299       # Append any errors to the config.log.
11300       cat conftest.err 1>&5
11301       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11302       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11303       if diff conftest.exp conftest.er2 >/dev/null; then
11304         lt_cv_prog_compiler_static_works=yes
11305       fi
11306     else
11307       lt_cv_prog_compiler_static_works=yes
11308     fi
11309   fi
11310   $RM -r conftest*
11311   LDFLAGS=$save_LDFLAGS
11312
11313fi
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11315$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11316
11317if test yes = "$lt_cv_prog_compiler_static_works"; then
11318    :
11319else
11320    lt_prog_compiler_static=
11321fi
11322
11323
11324
11325
11326
11327
11328
11329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11331if ${lt_cv_prog_compiler_c_o+:} false; then :
11332  $as_echo_n "(cached) " >&6
11333else
11334  lt_cv_prog_compiler_c_o=no
11335   $RM -r conftest 2>/dev/null
11336   mkdir conftest
11337   cd conftest
11338   mkdir out
11339   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11340
11341   lt_compiler_flag="-o out/conftest2.$ac_objext"
11342   # Insert the option either (1) after the last *FLAGS variable, or
11343   # (2) before a word containing "conftest.", or (3) at the end.
11344   # Note that $ac_compile itself does not contain backslashes and begins
11345   # with a dollar sign (not a hyphen), so the echo should work correctly.
11346   lt_compile=`echo "$ac_compile" | $SED \
11347   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11348   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11349   -e 's:$: $lt_compiler_flag:'`
11350   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11351   (eval "$lt_compile" 2>out/conftest.err)
11352   ac_status=$?
11353   cat out/conftest.err >&5
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11356   then
11357     # The compiler can only warn and ignore the option if not recognized
11358     # So say no if there are warnings
11359     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11360     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11361     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11362       lt_cv_prog_compiler_c_o=yes
11363     fi
11364   fi
11365   chmod u+w . 2>&5
11366   $RM conftest*
11367   # SGI C++ compiler will create directory out/ii_files/ for
11368   # template instantiation
11369   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11370   $RM out/* && rmdir out
11371   cd ..
11372   $RM -r conftest
11373   $RM conftest*
11374
11375fi
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11378
11379
11380
11381
11382
11383
11384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11385$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11386if ${lt_cv_prog_compiler_c_o+:} false; then :
11387  $as_echo_n "(cached) " >&6
11388else
11389  lt_cv_prog_compiler_c_o=no
11390   $RM -r conftest 2>/dev/null
11391   mkdir conftest
11392   cd conftest
11393   mkdir out
11394   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11395
11396   lt_compiler_flag="-o out/conftest2.$ac_objext"
11397   # Insert the option either (1) after the last *FLAGS variable, or
11398   # (2) before a word containing "conftest.", or (3) at the end.
11399   # Note that $ac_compile itself does not contain backslashes and begins
11400   # with a dollar sign (not a hyphen), so the echo should work correctly.
11401   lt_compile=`echo "$ac_compile" | $SED \
11402   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11403   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11404   -e 's:$: $lt_compiler_flag:'`
11405   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11406   (eval "$lt_compile" 2>out/conftest.err)
11407   ac_status=$?
11408   cat out/conftest.err >&5
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11411   then
11412     # The compiler can only warn and ignore the option if not recognized
11413     # So say no if there are warnings
11414     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11415     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11416     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11417       lt_cv_prog_compiler_c_o=yes
11418     fi
11419   fi
11420   chmod u+w . 2>&5
11421   $RM conftest*
11422   # SGI C++ compiler will create directory out/ii_files/ for
11423   # template instantiation
11424   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11425   $RM out/* && rmdir out
11426   cd ..
11427   $RM -r conftest
11428   $RM conftest*
11429
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11432$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11433
11434
11435
11436
11437hard_links=nottested
11438if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11439  # do not overwrite the value of need_locks provided by the user
11440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11441$as_echo_n "checking if we can lock with hard links... " >&6; }
11442  hard_links=yes
11443  $RM conftest*
11444  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11445  touch conftest.a
11446  ln conftest.a conftest.b 2>&5 || hard_links=no
11447  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11449$as_echo "$hard_links" >&6; }
11450  if test no = "$hard_links"; then
11451    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11452$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11453    need_locks=warn
11454  fi
11455else
11456  need_locks=no
11457fi
11458
11459
11460
11461
11462
11463
11464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11465$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11466
11467  runpath_var=
11468  allow_undefined_flag=
11469  always_export_symbols=no
11470  archive_cmds=
11471  archive_expsym_cmds=
11472  compiler_needs_object=no
11473  enable_shared_with_static_runtimes=no
11474  export_dynamic_flag_spec=
11475  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11476  hardcode_automatic=no
11477  hardcode_direct=no
11478  hardcode_direct_absolute=no
11479  hardcode_libdir_flag_spec=
11480  hardcode_libdir_separator=
11481  hardcode_minus_L=no
11482  hardcode_shlibpath_var=unsupported
11483  inherit_rpath=no
11484  link_all_deplibs=unknown
11485  module_cmds=
11486  module_expsym_cmds=
11487  old_archive_from_new_cmds=
11488  old_archive_from_expsyms_cmds=
11489  thread_safe_flag_spec=
11490  whole_archive_flag_spec=
11491  # include_expsyms should be a list of space-separated symbols to be *always*
11492  # included in the symbol list
11493  include_expsyms=
11494  # exclude_expsyms can be an extended regexp of symbols to exclude
11495  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11496  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11497  # as well as any symbol that contains 'd'.
11498  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11499  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11500  # platforms (ab)use it in PIC code, but their linkers get confused if
11501  # the symbol is explicitly referenced.  Since portable code cannot
11502  # rely on this symbol name, it's probably fine to never include it in
11503  # preloaded symbol tables.
11504  # Exclude shared library initialization/finalization symbols.
11505  extract_expsyms_cmds=
11506
11507  case $host_os in
11508  cygwin* | mingw* | pw32* | cegcc*)
11509    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11510    # When not using gcc, we currently assume that we are using
11511    # Microsoft Visual C++.
11512    if test yes != "$GCC"; then
11513      with_gnu_ld=no
11514    fi
11515    ;;
11516  interix*)
11517    # we just hope/assume this is gcc and not c89 (= MSVC++)
11518    with_gnu_ld=yes
11519    ;;
11520  openbsd* | bitrig*)
11521    with_gnu_ld=no
11522    ;;
11523  esac
11524
11525  ld_shlibs=yes
11526
11527  # On some targets, GNU ld is compatible enough with the native linker
11528  # that we're better off using the native interface for both.
11529  lt_use_gnu_ld_interface=no
11530  if test yes = "$with_gnu_ld"; then
11531    case $host_os in
11532      aix*)
11533	# The AIX port of GNU ld has always aspired to compatibility
11534	# with the native linker.  However, as the warning in the GNU ld
11535	# block says, versions before 2.19.5* couldn't really create working
11536	# shared libraries, regardless of the interface used.
11537	case `$LD -v 2>&1` in
11538	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11539	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11540	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11541	  *)
11542	    lt_use_gnu_ld_interface=yes
11543	    ;;
11544	esac
11545	;;
11546      *)
11547	lt_use_gnu_ld_interface=yes
11548	;;
11549    esac
11550  fi
11551
11552  if test yes = "$lt_use_gnu_ld_interface"; then
11553    # If archive_cmds runs LD, not CC, wlarc should be empty
11554    wlarc='$wl'
11555
11556    # Set some defaults for GNU ld with shared library support. These
11557    # are reset later if shared libraries are not supported. Putting them
11558    # here allows them to be overridden if necessary.
11559    runpath_var=LD_RUN_PATH
11560    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11561    export_dynamic_flag_spec='$wl--export-dynamic'
11562    # ancient GNU ld didn't support --whole-archive et. al.
11563    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11564      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11565    else
11566      whole_archive_flag_spec=
11567    fi
11568    supports_anon_versioning=no
11569    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11570      *GNU\ gold*) supports_anon_versioning=yes ;;
11571      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11572      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11573      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11574      *\ 2.11.*) ;; # other 2.11 versions
11575      *) supports_anon_versioning=yes ;;
11576    esac
11577
11578    # See if GNU ld supports shared libraries.
11579    case $host_os in
11580    aix[3-9]*)
11581      # On AIX/PPC, the GNU linker is very broken
11582      if test ia64 != "$host_cpu"; then
11583	ld_shlibs=no
11584	cat <<_LT_EOF 1>&2
11585
11586*** Warning: the GNU linker, at least up to release 2.19, is reported
11587*** to be unable to reliably create shared libraries on AIX.
11588*** Therefore, libtool is disabling shared libraries support.  If you
11589*** really care for shared libraries, you may want to install binutils
11590*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11591*** You will then need to restart the configuration process.
11592
11593_LT_EOF
11594      fi
11595      ;;
11596
11597    amigaos*)
11598      case $host_cpu in
11599      powerpc)
11600            # see comment about AmigaOS4 .so support
11601            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11602            archive_expsym_cmds=''
11603        ;;
11604      m68k)
11605            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)'
11606            hardcode_libdir_flag_spec='-L$libdir'
11607            hardcode_minus_L=yes
11608        ;;
11609      esac
11610      ;;
11611
11612    beos*)
11613      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11614	allow_undefined_flag=unsupported
11615	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11616	# support --undefined.  This deserves some investigation.  FIXME
11617	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11618      else
11619	ld_shlibs=no
11620      fi
11621      ;;
11622
11623    cygwin* | mingw* | pw32* | cegcc*)
11624      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11625      # as there is no search path for DLLs.
11626      hardcode_libdir_flag_spec='-L$libdir'
11627      export_dynamic_flag_spec='$wl--export-all-symbols'
11628      allow_undefined_flag=unsupported
11629      always_export_symbols=no
11630      enable_shared_with_static_runtimes=yes
11631      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'
11632      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11633
11634      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11635        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11636	# If the export-symbols file already is a .def file, use it as
11637	# is; otherwise, prepend EXPORTS...
11638	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11639          cp $export_symbols $output_objdir/$soname.def;
11640        else
11641          echo EXPORTS > $output_objdir/$soname.def;
11642          cat $export_symbols >> $output_objdir/$soname.def;
11643        fi~
11644        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11645      else
11646	ld_shlibs=no
11647      fi
11648      ;;
11649
11650    haiku*)
11651      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11652      link_all_deplibs=yes
11653      ;;
11654
11655    os2*)
11656      hardcode_libdir_flag_spec='-L$libdir'
11657      hardcode_minus_L=yes
11658      allow_undefined_flag=unsupported
11659      shrext_cmds=.dll
11660      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11661	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11662	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11663	$ECHO EXPORTS >> $output_objdir/$libname.def~
11664	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11665	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11666	emximp -o $lib $output_objdir/$libname.def'
11667      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11668	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11669	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11670	$ECHO EXPORTS >> $output_objdir/$libname.def~
11671	prefix_cmds="$SED"~
11672	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11673	  prefix_cmds="$prefix_cmds -e 1d";
11674	fi~
11675	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11676	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11677	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11678	emximp -o $lib $output_objdir/$libname.def'
11679      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11680      enable_shared_with_static_runtimes=yes
11681      ;;
11682
11683    interix[3-9]*)
11684      hardcode_direct=no
11685      hardcode_shlibpath_var=no
11686      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11687      export_dynamic_flag_spec='$wl-E'
11688      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11689      # Instead, shared libraries are loaded at an image base (0x10000000 by
11690      # default) and relocated if they conflict, which is a slow very memory
11691      # consuming and fragmenting process.  To avoid this, we pick a random,
11692      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11693      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11694      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11695      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'
11696      ;;
11697
11698    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11699      tmp_diet=no
11700      if test linux-dietlibc = "$host_os"; then
11701	case $cc_basename in
11702	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11703	esac
11704      fi
11705      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11706	 && test no = "$tmp_diet"
11707      then
11708	tmp_addflag=' $pic_flag'
11709	tmp_sharedflag='-shared'
11710	case $cc_basename,$host_cpu in
11711        pgcc*)				# Portland Group C compiler
11712	  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'
11713	  tmp_addflag=' $pic_flag'
11714	  ;;
11715	pgf77* | pgf90* | pgf95* | pgfortran*)
11716					# Portland Group f77 and f90 compilers
11717	  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'
11718	  tmp_addflag=' $pic_flag -Mnomain' ;;
11719	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11720	  tmp_addflag=' -i_dynamic' ;;
11721	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11722	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11723	ifc* | ifort*)			# Intel Fortran compiler
11724	  tmp_addflag=' -nofor_main' ;;
11725	lf95*)				# Lahey Fortran 8.1
11726	  whole_archive_flag_spec=
11727	  tmp_sharedflag='--shared' ;;
11728        nagfor*)                        # NAGFOR 5.3
11729          tmp_sharedflag='-Wl,-shared' ;;
11730	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11731	  tmp_sharedflag='-qmkshrobj'
11732	  tmp_addflag= ;;
11733	nvcc*)	# Cuda Compiler Driver 2.2
11734	  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'
11735	  compiler_needs_object=yes
11736	  ;;
11737	esac
11738	case `$CC -V 2>&1 | sed 5q` in
11739	*Sun\ C*)			# Sun C 5.9
11740	  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'
11741	  compiler_needs_object=yes
11742	  tmp_sharedflag='-G' ;;
11743	*Sun\ F*)			# Sun Fortran 8.3
11744	  tmp_sharedflag='-G' ;;
11745	esac
11746	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11747
11748        if test yes = "$supports_anon_versioning"; then
11749          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11750            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11751            echo "local: *; };" >> $output_objdir/$libname.ver~
11752            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11753        fi
11754
11755	case $cc_basename in
11756	tcc*)
11757	  export_dynamic_flag_spec='-rdynamic'
11758	  ;;
11759	xlf* | bgf* | bgxlf* | mpixlf*)
11760	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11761	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11762	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11763	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11764	  if test yes = "$supports_anon_versioning"; then
11765	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11766              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11767              echo "local: *; };" >> $output_objdir/$libname.ver~
11768              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11769	  fi
11770	  ;;
11771	esac
11772      else
11773        ld_shlibs=no
11774      fi
11775      ;;
11776
11777    netbsd*)
11778      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11779	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11780	wlarc=
11781      else
11782	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11783	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11784      fi
11785      ;;
11786
11787    solaris*)
11788      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11789	ld_shlibs=no
11790	cat <<_LT_EOF 1>&2
11791
11792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11793*** create shared libraries on Solaris systems.  Therefore, libtool
11794*** is disabling shared libraries support.  We urge you to upgrade GNU
11795*** binutils to release 2.9.1 or newer.  Another option is to modify
11796*** your PATH or compiler configuration so that the native linker is
11797*** used, and then restart.
11798
11799_LT_EOF
11800      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11801	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11802	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11803      else
11804	ld_shlibs=no
11805      fi
11806      ;;
11807
11808    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11809      case `$LD -v 2>&1` in
11810        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11811	ld_shlibs=no
11812	cat <<_LT_EOF 1>&2
11813
11814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11815*** reliably create shared libraries on SCO systems.  Therefore, libtool
11816*** is disabling shared libraries support.  We urge you to upgrade GNU
11817*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11818*** your PATH or compiler configuration so that the native linker is
11819*** used, and then restart.
11820
11821_LT_EOF
11822	;;
11823	*)
11824	  # For security reasons, it is highly recommended that you always
11825	  # use absolute paths for naming shared libraries, and exclude the
11826	  # DT_RUNPATH tag from executables and libraries.  But doing so
11827	  # requires that you compile everything twice, which is a pain.
11828	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11829	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11830	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11831	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11832	  else
11833	    ld_shlibs=no
11834	  fi
11835	;;
11836      esac
11837      ;;
11838
11839    sunos4*)
11840      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11841      wlarc=
11842      hardcode_direct=yes
11843      hardcode_shlibpath_var=no
11844      ;;
11845
11846    *)
11847      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11848	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11849	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11850      else
11851	ld_shlibs=no
11852      fi
11853      ;;
11854    esac
11855
11856    if test no = "$ld_shlibs"; then
11857      runpath_var=
11858      hardcode_libdir_flag_spec=
11859      export_dynamic_flag_spec=
11860      whole_archive_flag_spec=
11861    fi
11862  else
11863    # PORTME fill in a description of your system's linker (not GNU ld)
11864    case $host_os in
11865    aix3*)
11866      allow_undefined_flag=unsupported
11867      always_export_symbols=yes
11868      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'
11869      # Note: this linker hardcodes the directories in LIBPATH if there
11870      # are no directories specified by -L.
11871      hardcode_minus_L=yes
11872      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11873	# Neither direct hardcoding nor static linking is supported with a
11874	# broken collect2.
11875	hardcode_direct=unsupported
11876      fi
11877      ;;
11878
11879    aix[4-9]*)
11880      if test ia64 = "$host_cpu"; then
11881	# On IA64, the linker does run time linking by default, so we don't
11882	# have to do anything special.
11883	aix_use_runtimelinking=no
11884	exp_sym_flag='-Bexport'
11885	no_entry_flag=
11886      else
11887	# If we're using GNU nm, then we don't want the "-C" option.
11888	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11889	# Without the "-l" option, or with the "-B" option, AIX nm treats
11890	# weak defined symbols like other global defined symbols, whereas
11891	# GNU nm marks them as "W".
11892	# While the 'weak' keyword is ignored in the Export File, we need
11893	# it in the Import File for the 'aix-soname' feature, so we have
11894	# to replace the "-B" option with "-P" for AIX nm.
11895	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11896	  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'
11897	else
11898	  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'
11899	fi
11900	aix_use_runtimelinking=no
11901
11902	# Test if we are trying to use run time linking or normal
11903	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11904	# have runtime linking enabled, and use it for executables.
11905	# For shared libraries, we enable/disable runtime linking
11906	# depending on the kind of the shared library created -
11907	# when "with_aix_soname,aix_use_runtimelinking" is:
11908	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11909	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11910	#            lib.a           static archive
11911	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11912	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11913	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11914	#            lib.a(lib.so.V) shared, rtl:no
11915	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11916	#            lib.a           static archive
11917	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11918	  for ld_flag in $LDFLAGS; do
11919	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11920	    aix_use_runtimelinking=yes
11921	    break
11922	  fi
11923	  done
11924	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11925	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11926	    # so we don't have lib.a shared libs to link our executables.
11927	    # We have to force runtime linking in this case.
11928	    aix_use_runtimelinking=yes
11929	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11930	  fi
11931	  ;;
11932	esac
11933
11934	exp_sym_flag='-bexport'
11935	no_entry_flag='-bnoentry'
11936      fi
11937
11938      # When large executables or shared objects are built, AIX ld can
11939      # have problems creating the table of contents.  If linking a library
11940      # or program results in "error TOC overflow" add -mminimal-toc to
11941      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11942      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11943
11944      archive_cmds=''
11945      hardcode_direct=yes
11946      hardcode_direct_absolute=yes
11947      hardcode_libdir_separator=':'
11948      link_all_deplibs=yes
11949      file_list_spec='$wl-f,'
11950      case $with_aix_soname,$aix_use_runtimelinking in
11951      aix,*) ;; # traditional, no import file
11952      svr4,* | *,yes) # use import file
11953	# The Import File defines what to hardcode.
11954	hardcode_direct=no
11955	hardcode_direct_absolute=no
11956	;;
11957      esac
11958
11959      if test yes = "$GCC"; then
11960	case $host_os in aix4.[012]|aix4.[012].*)
11961	# We only want to do this on AIX 4.2 and lower, the check
11962	# below for broken collect2 doesn't work under 4.3+
11963	  collect2name=`$CC -print-prog-name=collect2`
11964	  if test -f "$collect2name" &&
11965	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11966	  then
11967	  # We have reworked collect2
11968	  :
11969	  else
11970	  # We have old collect2
11971	  hardcode_direct=unsupported
11972	  # It fails to find uninstalled libraries when the uninstalled
11973	  # path is not listed in the libpath.  Setting hardcode_minus_L
11974	  # to unsupported forces relinking
11975	  hardcode_minus_L=yes
11976	  hardcode_libdir_flag_spec='-L$libdir'
11977	  hardcode_libdir_separator=
11978	  fi
11979	  ;;
11980	esac
11981	shared_flag='-shared'
11982	if test yes = "$aix_use_runtimelinking"; then
11983	  shared_flag="$shared_flag "'$wl-G'
11984	fi
11985	# Need to ensure runtime linking is disabled for the traditional
11986	# shared library, or the linker may eventually find shared libraries
11987	# /with/ Import File - we do not want to mix them.
11988	shared_flag_aix='-shared'
11989	shared_flag_svr4='-shared $wl-G'
11990      else
11991	# not using gcc
11992	if test ia64 = "$host_cpu"; then
11993	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11994	# chokes on -Wl,-G. The following line is correct:
11995	  shared_flag='-G'
11996	else
11997	  if test yes = "$aix_use_runtimelinking"; then
11998	    shared_flag='$wl-G'
11999	  else
12000	    shared_flag='$wl-bM:SRE'
12001	  fi
12002	  shared_flag_aix='$wl-bM:SRE'
12003	  shared_flag_svr4='$wl-G'
12004	fi
12005      fi
12006
12007      export_dynamic_flag_spec='$wl-bexpall'
12008      # It seems that -bexpall does not export symbols beginning with
12009      # underscore (_), so it is better to generate a list of symbols to export.
12010      always_export_symbols=yes
12011      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12012	# Warning - without using the other runtime loading flags (-brtl),
12013	# -berok will link without error, but may produce a broken library.
12014	allow_undefined_flag='-berok'
12015        # Determine the default libpath from the value encoded in an
12016        # empty executable.
12017        if test set = "${lt_cv_aix_libpath+set}"; then
12018  aix_libpath=$lt_cv_aix_libpath
12019else
12020  if ${lt_cv_aix_libpath_+:} false; then :
12021  $as_echo_n "(cached) " >&6
12022else
12023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h.  */
12025
12026int
12027main ()
12028{
12029
12030  ;
12031  return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_link "$LINENO"; then :
12035
12036  lt_aix_libpath_sed='
12037      /Import File Strings/,/^$/ {
12038	  /^0/ {
12039	      s/^0  *\([^ ]*\) *$/\1/
12040	      p
12041	  }
12042      }'
12043  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12044  # Check for a 64-bit object if we didn't find anything.
12045  if test -z "$lt_cv_aix_libpath_"; then
12046    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12047  fi
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050    conftest$ac_exeext conftest.$ac_ext
12051  if test -z "$lt_cv_aix_libpath_"; then
12052    lt_cv_aix_libpath_=/usr/lib:/lib
12053  fi
12054
12055fi
12056
12057  aix_libpath=$lt_cv_aix_libpath_
12058fi
12059
12060        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12061        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
12062      else
12063	if test ia64 = "$host_cpu"; then
12064	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12065	  allow_undefined_flag="-z nodefs"
12066	  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"
12067	else
12068	 # Determine the default libpath from the value encoded in an
12069	 # empty executable.
12070	 if test set = "${lt_cv_aix_libpath+set}"; then
12071  aix_libpath=$lt_cv_aix_libpath
12072else
12073  if ${lt_cv_aix_libpath_+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077/* end confdefs.h.  */
12078
12079int
12080main ()
12081{
12082
12083  ;
12084  return 0;
12085}
12086_ACEOF
12087if ac_fn_c_try_link "$LINENO"; then :
12088
12089  lt_aix_libpath_sed='
12090      /Import File Strings/,/^$/ {
12091	  /^0/ {
12092	      s/^0  *\([^ ]*\) *$/\1/
12093	      p
12094	  }
12095      }'
12096  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12097  # Check for a 64-bit object if we didn't find anything.
12098  if test -z "$lt_cv_aix_libpath_"; then
12099    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12100  fi
12101fi
12102rm -f core conftest.err conftest.$ac_objext \
12103    conftest$ac_exeext conftest.$ac_ext
12104  if test -z "$lt_cv_aix_libpath_"; then
12105    lt_cv_aix_libpath_=/usr/lib:/lib
12106  fi
12107
12108fi
12109
12110  aix_libpath=$lt_cv_aix_libpath_
12111fi
12112
12113	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12114	  # Warning - without using the other run time loading flags,
12115	  # -berok will link without error, but may produce a broken library.
12116	  no_undefined_flag=' $wl-bernotok'
12117	  allow_undefined_flag=' $wl-berok'
12118	  if test yes = "$with_gnu_ld"; then
12119	    # We only use this code for GNU lds that support --whole-archive.
12120	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12121	  else
12122	    # Exported symbols can be pulled into shared objects from archives
12123	    whole_archive_flag_spec='$convenience'
12124	  fi
12125	  archive_cmds_need_lc=yes
12126	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12127	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12128	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12129	  if test svr4 != "$with_aix_soname"; then
12130	    # This is similar to how AIX traditionally builds its shared libraries.
12131	    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'
12132	  fi
12133	  if test aix != "$with_aix_soname"; then
12134	    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'
12135	  else
12136	    # used by -dlpreopen to get the symbols
12137	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12138	  fi
12139	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12140	fi
12141      fi
12142      ;;
12143
12144    amigaos*)
12145      case $host_cpu in
12146      powerpc)
12147            # see comment about AmigaOS4 .so support
12148            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12149            archive_expsym_cmds=''
12150        ;;
12151      m68k)
12152            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)'
12153            hardcode_libdir_flag_spec='-L$libdir'
12154            hardcode_minus_L=yes
12155        ;;
12156      esac
12157      ;;
12158
12159    bsdi[45]*)
12160      export_dynamic_flag_spec=-rdynamic
12161      ;;
12162
12163    cygwin* | mingw* | pw32* | cegcc*)
12164      # When not using gcc, we currently assume that we are using
12165      # Microsoft Visual C++.
12166      # hardcode_libdir_flag_spec is actually meaningless, as there is
12167      # no search path for DLLs.
12168      case $cc_basename in
12169      cl*)
12170	# Native MSVC
12171	hardcode_libdir_flag_spec=' '
12172	allow_undefined_flag=unsupported
12173	always_export_symbols=yes
12174	file_list_spec='@'
12175	# Tell ltmain to make .lib files, not .a files.
12176	libext=lib
12177	# Tell ltmain to make .dll files, not .so files.
12178	shrext_cmds=.dll
12179	# FIXME: Setting linknames here is a bad hack.
12180	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12181	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12182            cp "$export_symbols" "$output_objdir/$soname.def";
12183            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12184          else
12185            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12186          fi~
12187          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12188          linknames='
12189	# The linker will not automatically build a static lib if we build a DLL.
12190	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12191	enable_shared_with_static_runtimes=yes
12192	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12193	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12194	# Don't use ranlib
12195	old_postinstall_cmds='chmod 644 $oldlib'
12196	postlink_cmds='lt_outputfile="@OUTPUT@"~
12197          lt_tool_outputfile="@TOOL_OUTPUT@"~
12198          case $lt_outputfile in
12199            *.exe|*.EXE) ;;
12200            *)
12201              lt_outputfile=$lt_outputfile.exe
12202              lt_tool_outputfile=$lt_tool_outputfile.exe
12203              ;;
12204          esac~
12205          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12206            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12207            $RM "$lt_outputfile.manifest";
12208          fi'
12209	;;
12210      *)
12211	# Assume MSVC wrapper
12212	hardcode_libdir_flag_spec=' '
12213	allow_undefined_flag=unsupported
12214	# Tell ltmain to make .lib files, not .a files.
12215	libext=lib
12216	# Tell ltmain to make .dll files, not .so files.
12217	shrext_cmds=.dll
12218	# FIXME: Setting linknames here is a bad hack.
12219	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12220	# The linker will automatically build a .lib file if we build a DLL.
12221	old_archive_from_new_cmds='true'
12222	# FIXME: Should let the user specify the lib program.
12223	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12224	enable_shared_with_static_runtimes=yes
12225	;;
12226      esac
12227      ;;
12228
12229    darwin* | rhapsody*)
12230
12231
12232  archive_cmds_need_lc=no
12233  hardcode_direct=no
12234  hardcode_automatic=yes
12235  hardcode_shlibpath_var=unsupported
12236  if test yes = "$lt_cv_ld_force_load"; then
12237    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\"`'
12238
12239  else
12240    whole_archive_flag_spec=''
12241  fi
12242  link_all_deplibs=yes
12243  allow_undefined_flag=$_lt_dar_allow_undefined
12244  case $cc_basename in
12245     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12246     *) _lt_dar_can_shared=$GCC ;;
12247  esac
12248  if test yes = "$_lt_dar_can_shared"; then
12249    output_verbose_link_cmd=func_echo_all
12250    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12251    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12252    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"
12253    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"
12254
12255  else
12256  ld_shlibs=no
12257  fi
12258
12259      ;;
12260
12261    dgux*)
12262      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263      hardcode_libdir_flag_spec='-L$libdir'
12264      hardcode_shlibpath_var=no
12265      ;;
12266
12267    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12268    # support.  Future versions do this automatically, but an explicit c++rt0.o
12269    # does not break anything, and helps significantly (at the cost of a little
12270    # extra space).
12271    freebsd2.2*)
12272      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12273      hardcode_libdir_flag_spec='-R$libdir'
12274      hardcode_direct=yes
12275      hardcode_shlibpath_var=no
12276      ;;
12277
12278    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12279    freebsd2.*)
12280      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12281      hardcode_direct=yes
12282      hardcode_minus_L=yes
12283      hardcode_shlibpath_var=no
12284      ;;
12285
12286    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12287    freebsd* | dragonfly*)
12288      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12289      hardcode_libdir_flag_spec='-R$libdir'
12290      hardcode_direct=yes
12291      hardcode_shlibpath_var=no
12292      ;;
12293
12294    hpux9*)
12295      if test yes = "$GCC"; then
12296	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'
12297      else
12298	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'
12299      fi
12300      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12301      hardcode_libdir_separator=:
12302      hardcode_direct=yes
12303
12304      # hardcode_minus_L: Not really in the search PATH,
12305      # but as the default location of the library.
12306      hardcode_minus_L=yes
12307      export_dynamic_flag_spec='$wl-E'
12308      ;;
12309
12310    hpux10*)
12311      if test yes,no = "$GCC,$with_gnu_ld"; then
12312	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12313      else
12314	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12315      fi
12316      if test no = "$with_gnu_ld"; then
12317	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12318	hardcode_libdir_separator=:
12319	hardcode_direct=yes
12320	hardcode_direct_absolute=yes
12321	export_dynamic_flag_spec='$wl-E'
12322	# hardcode_minus_L: Not really in the search PATH,
12323	# but as the default location of the library.
12324	hardcode_minus_L=yes
12325      fi
12326      ;;
12327
12328    hpux11*)
12329      if test yes,no = "$GCC,$with_gnu_ld"; then
12330	case $host_cpu in
12331	hppa*64*)
12332	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12333	  ;;
12334	ia64*)
12335	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12336	  ;;
12337	*)
12338	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12339	  ;;
12340	esac
12341      else
12342	case $host_cpu in
12343	hppa*64*)
12344	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12345	  ;;
12346	ia64*)
12347	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12348	  ;;
12349	*)
12350
12351	  # Older versions of the 11.00 compiler do not understand -b yet
12352	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12353	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12354$as_echo_n "checking if $CC understands -b... " >&6; }
12355if ${lt_cv_prog_compiler__b+:} false; then :
12356  $as_echo_n "(cached) " >&6
12357else
12358  lt_cv_prog_compiler__b=no
12359   save_LDFLAGS=$LDFLAGS
12360   LDFLAGS="$LDFLAGS -b"
12361   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12362   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12363     # The linker can only warn and ignore the option if not recognized
12364     # So say no if there are warnings
12365     if test -s conftest.err; then
12366       # Append any errors to the config.log.
12367       cat conftest.err 1>&5
12368       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12369       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12370       if diff conftest.exp conftest.er2 >/dev/null; then
12371         lt_cv_prog_compiler__b=yes
12372       fi
12373     else
12374       lt_cv_prog_compiler__b=yes
12375     fi
12376   fi
12377   $RM -r conftest*
12378   LDFLAGS=$save_LDFLAGS
12379
12380fi
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12382$as_echo "$lt_cv_prog_compiler__b" >&6; }
12383
12384if test yes = "$lt_cv_prog_compiler__b"; then
12385    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12386else
12387    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12388fi
12389
12390	  ;;
12391	esac
12392      fi
12393      if test no = "$with_gnu_ld"; then
12394	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12395	hardcode_libdir_separator=:
12396
12397	case $host_cpu in
12398	hppa*64*|ia64*)
12399	  hardcode_direct=no
12400	  hardcode_shlibpath_var=no
12401	  ;;
12402	*)
12403	  hardcode_direct=yes
12404	  hardcode_direct_absolute=yes
12405	  export_dynamic_flag_spec='$wl-E'
12406
12407	  # hardcode_minus_L: Not really in the search PATH,
12408	  # but as the default location of the library.
12409	  hardcode_minus_L=yes
12410	  ;;
12411	esac
12412      fi
12413      ;;
12414
12415    irix5* | irix6* | nonstopux*)
12416      if test yes = "$GCC"; then
12417	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'
12418	# Try to use the -exported_symbol ld option, if it does not
12419	# work, assume that -exports_file does not work either and
12420	# implicitly export all symbols.
12421	# This should be the same for all languages, so no per-tag cache variable.
12422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12423$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12424if ${lt_cv_irix_exported_symbol+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  save_LDFLAGS=$LDFLAGS
12428	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12429	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430/* end confdefs.h.  */
12431int foo (void) { return 0; }
12432_ACEOF
12433if ac_fn_c_try_link "$LINENO"; then :
12434  lt_cv_irix_exported_symbol=yes
12435else
12436  lt_cv_irix_exported_symbol=no
12437fi
12438rm -f core conftest.err conftest.$ac_objext \
12439    conftest$ac_exeext conftest.$ac_ext
12440           LDFLAGS=$save_LDFLAGS
12441fi
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12443$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12444	if test yes = "$lt_cv_irix_exported_symbol"; then
12445          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'
12446	fi
12447      else
12448	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'
12449	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'
12450      fi
12451      archive_cmds_need_lc='no'
12452      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12453      hardcode_libdir_separator=:
12454      inherit_rpath=yes
12455      link_all_deplibs=yes
12456      ;;
12457
12458    linux*)
12459      case $cc_basename in
12460      tcc*)
12461	# Fabrice Bellard et al's Tiny C Compiler
12462	ld_shlibs=yes
12463	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12464	;;
12465      esac
12466      ;;
12467
12468    netbsd*)
12469      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12470	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12471      else
12472	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12473      fi
12474      hardcode_libdir_flag_spec='-R$libdir'
12475      hardcode_direct=yes
12476      hardcode_shlibpath_var=no
12477      ;;
12478
12479    newsos6)
12480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12481      hardcode_direct=yes
12482      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12483      hardcode_libdir_separator=:
12484      hardcode_shlibpath_var=no
12485      ;;
12486
12487    *nto* | *qnx*)
12488      ;;
12489
12490    openbsd* | bitrig*)
12491      if test -f /usr/libexec/ld.so; then
12492	hardcode_direct=yes
12493	hardcode_shlibpath_var=no
12494	hardcode_direct_absolute=yes
12495	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12496	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12497	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12498	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12499	  export_dynamic_flag_spec='$wl-E'
12500	else
12501	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12502	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12503	fi
12504      else
12505	ld_shlibs=no
12506      fi
12507      ;;
12508
12509    os2*)
12510      hardcode_libdir_flag_spec='-L$libdir'
12511      hardcode_minus_L=yes
12512      allow_undefined_flag=unsupported
12513      shrext_cmds=.dll
12514      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12515	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12516	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12517	$ECHO EXPORTS >> $output_objdir/$libname.def~
12518	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12519	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12520	emximp -o $lib $output_objdir/$libname.def'
12521      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12522	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12523	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12524	$ECHO EXPORTS >> $output_objdir/$libname.def~
12525	prefix_cmds="$SED"~
12526	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12527	  prefix_cmds="$prefix_cmds -e 1d";
12528	fi~
12529	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12530	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12531	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12532	emximp -o $lib $output_objdir/$libname.def'
12533      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12534      enable_shared_with_static_runtimes=yes
12535      ;;
12536
12537    osf3*)
12538      if test yes = "$GCC"; then
12539	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12540	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'
12541      else
12542	allow_undefined_flag=' -expect_unresolved \*'
12543	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'
12544      fi
12545      archive_cmds_need_lc='no'
12546      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12547      hardcode_libdir_separator=:
12548      ;;
12549
12550    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12551      if test yes = "$GCC"; then
12552	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12553	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'
12554	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12555      else
12556	allow_undefined_flag=' -expect_unresolved \*'
12557	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'
12558	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~
12559          $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'
12560
12561	# Both c and cxx compiler support -rpath directly
12562	hardcode_libdir_flag_spec='-rpath $libdir'
12563      fi
12564      archive_cmds_need_lc='no'
12565      hardcode_libdir_separator=:
12566      ;;
12567
12568    solaris*)
12569      no_undefined_flag=' -z defs'
12570      if test yes = "$GCC"; then
12571	wlarc='$wl'
12572	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12573	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12574          $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'
12575      else
12576	case `$CC -V 2>&1` in
12577	*"Compilers 5.0"*)
12578	  wlarc=''
12579	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12580	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12581            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12582	  ;;
12583	*)
12584	  wlarc='$wl'
12585	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12586	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12587            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12588	  ;;
12589	esac
12590      fi
12591      hardcode_libdir_flag_spec='-R$libdir'
12592      hardcode_shlibpath_var=no
12593      case $host_os in
12594      solaris2.[0-5] | solaris2.[0-5].*) ;;
12595      *)
12596	# The compiler driver will combine and reorder linker options,
12597	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12598	# but is careful enough not to reorder.
12599	# Supported since Solaris 2.6 (maybe 2.5.1?)
12600	if test yes = "$GCC"; then
12601	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12602	else
12603	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12604	fi
12605	;;
12606      esac
12607      link_all_deplibs=yes
12608      ;;
12609
12610    sunos4*)
12611      if test sequent = "$host_vendor"; then
12612	# Use $CC to link under sequent, because it throws in some extra .o
12613	# files that make .init and .fini sections work.
12614	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12615      else
12616	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12617      fi
12618      hardcode_libdir_flag_spec='-L$libdir'
12619      hardcode_direct=yes
12620      hardcode_minus_L=yes
12621      hardcode_shlibpath_var=no
12622      ;;
12623
12624    sysv4)
12625      case $host_vendor in
12626	sni)
12627	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12628	  hardcode_direct=yes # is this really true???
12629	;;
12630	siemens)
12631	  ## LD is ld it makes a PLAMLIB
12632	  ## CC just makes a GrossModule.
12633	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12634	  reload_cmds='$CC -r -o $output$reload_objs'
12635	  hardcode_direct=no
12636        ;;
12637	motorola)
12638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12640	;;
12641      esac
12642      runpath_var='LD_RUN_PATH'
12643      hardcode_shlibpath_var=no
12644      ;;
12645
12646    sysv4.3*)
12647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12648      hardcode_shlibpath_var=no
12649      export_dynamic_flag_spec='-Bexport'
12650      ;;
12651
12652    sysv4*MP*)
12653      if test -d /usr/nec; then
12654	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12655	hardcode_shlibpath_var=no
12656	runpath_var=LD_RUN_PATH
12657	hardcode_runpath_var=yes
12658	ld_shlibs=yes
12659      fi
12660      ;;
12661
12662    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12663      no_undefined_flag='$wl-z,text'
12664      archive_cmds_need_lc=no
12665      hardcode_shlibpath_var=no
12666      runpath_var='LD_RUN_PATH'
12667
12668      if test yes = "$GCC"; then
12669	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12671      else
12672	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12674      fi
12675      ;;
12676
12677    sysv5* | sco3.2v5* | sco5v6*)
12678      # Note: We CANNOT use -z defs as we might desire, because we do not
12679      # link with -lc, and that would cause any symbols used from libc to
12680      # always be unresolved, which means just about no library would
12681      # ever link correctly.  If we're not using GNU ld we use -z text
12682      # though, which does catch some bad symbols but isn't as heavy-handed
12683      # as -z defs.
12684      no_undefined_flag='$wl-z,text'
12685      allow_undefined_flag='$wl-z,nodefs'
12686      archive_cmds_need_lc=no
12687      hardcode_shlibpath_var=no
12688      hardcode_libdir_flag_spec='$wl-R,$libdir'
12689      hardcode_libdir_separator=':'
12690      link_all_deplibs=yes
12691      export_dynamic_flag_spec='$wl-Bexport'
12692      runpath_var='LD_RUN_PATH'
12693
12694      if test yes = "$GCC"; then
12695	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12697      else
12698	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12700      fi
12701      ;;
12702
12703    uts4*)
12704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705      hardcode_libdir_flag_spec='-L$libdir'
12706      hardcode_shlibpath_var=no
12707      ;;
12708
12709    *)
12710      ld_shlibs=no
12711      ;;
12712    esac
12713
12714    if test sni = "$host_vendor"; then
12715      case $host in
12716      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12717	export_dynamic_flag_spec='$wl-Blargedynsym'
12718	;;
12719      esac
12720    fi
12721  fi
12722
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12724$as_echo "$ld_shlibs" >&6; }
12725test no = "$ld_shlibs" && can_build_shared=no
12726
12727with_gnu_ld=$with_gnu_ld
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743#
12744# Do we need to explicitly link libc?
12745#
12746case "x$archive_cmds_need_lc" in
12747x|xyes)
12748  # Assume -lc should be added
12749  archive_cmds_need_lc=yes
12750
12751  if test yes,yes = "$GCC,$enable_shared"; then
12752    case $archive_cmds in
12753    *'~'*)
12754      # FIXME: we may have to deal with multi-command sequences.
12755      ;;
12756    '$CC '*)
12757      # Test whether the compiler implicitly links with -lc since on some
12758      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12759      # to ld, don't add -lc before -lgcc.
12760      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12761$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12762if ${lt_cv_archive_cmds_need_lc+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  $RM conftest*
12766	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12767
12768	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12769  (eval $ac_compile) 2>&5
12770  ac_status=$?
12771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772  test $ac_status = 0; } 2>conftest.err; then
12773	  soname=conftest
12774	  lib=conftest
12775	  libobjs=conftest.$ac_objext
12776	  deplibs=
12777	  wl=$lt_prog_compiler_wl
12778	  pic_flag=$lt_prog_compiler_pic
12779	  compiler_flags=-v
12780	  linker_flags=-v
12781	  verstring=
12782	  output_objdir=.
12783	  libname=conftest
12784	  lt_save_allow_undefined_flag=$allow_undefined_flag
12785	  allow_undefined_flag=
12786	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12787  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12788  ac_status=$?
12789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790  test $ac_status = 0; }
12791	  then
12792	    lt_cv_archive_cmds_need_lc=no
12793	  else
12794	    lt_cv_archive_cmds_need_lc=yes
12795	  fi
12796	  allow_undefined_flag=$lt_save_allow_undefined_flag
12797	else
12798	  cat conftest.err 1>&5
12799	fi
12800	$RM conftest*
12801
12802fi
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12804$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12805      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12806      ;;
12807    esac
12808  fi
12809  ;;
12810esac
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12964$as_echo_n "checking dynamic linker characteristics... " >&6; }
12965
12966if test yes = "$GCC"; then
12967  case $host_os in
12968    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12969    *) lt_awk_arg='/^libraries:/' ;;
12970  esac
12971  case $host_os in
12972    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12973    *) lt_sed_strip_eq='s|=/|/|g' ;;
12974  esac
12975  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12976  case $lt_search_path_spec in
12977  *\;*)
12978    # if the path contains ";" then we assume it to be the separator
12979    # otherwise default to the standard path separator (i.e. ":") - it is
12980    # assumed that no part of a normal pathname contains ";" but that should
12981    # okay in the real world where ";" in dirpaths is itself problematic.
12982    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12983    ;;
12984  *)
12985    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12986    ;;
12987  esac
12988  # Ok, now we have the path, separated by spaces, we can step through it
12989  # and add multilib dir if necessary...
12990  lt_tmp_lt_search_path_spec=
12991  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12992  # ...but if some path component already ends with the multilib dir we assume
12993  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12994  case "$lt_multi_os_dir; $lt_search_path_spec " in
12995  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12996    lt_multi_os_dir=
12997    ;;
12998  esac
12999  for lt_sys_path in $lt_search_path_spec; do
13000    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13001      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13002    elif test -n "$lt_multi_os_dir"; then
13003      test -d "$lt_sys_path" && \
13004	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13005    fi
13006  done
13007  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13008BEGIN {RS = " "; FS = "/|\n";} {
13009  lt_foo = "";
13010  lt_count = 0;
13011  for (lt_i = NF; lt_i > 0; lt_i--) {
13012    if ($lt_i != "" && $lt_i != ".") {
13013      if ($lt_i == "..") {
13014        lt_count++;
13015      } else {
13016        if (lt_count == 0) {
13017          lt_foo = "/" $lt_i lt_foo;
13018        } else {
13019          lt_count--;
13020        }
13021      }
13022    }
13023  }
13024  if (lt_foo != "") { lt_freq[lt_foo]++; }
13025  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13026}'`
13027  # AWK program above erroneously prepends '/' to C:/dos/paths
13028  # for these hosts.
13029  case $host_os in
13030    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13031      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13032  esac
13033  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13034else
13035  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13036fi
13037library_names_spec=
13038libname_spec='lib$name'
13039soname_spec=
13040shrext_cmds=.so
13041postinstall_cmds=
13042postuninstall_cmds=
13043finish_cmds=
13044finish_eval=
13045shlibpath_var=
13046shlibpath_overrides_runpath=unknown
13047version_type=none
13048dynamic_linker="$host_os ld.so"
13049sys_lib_dlsearch_path_spec="/lib /usr/lib"
13050need_lib_prefix=unknown
13051hardcode_into_libs=no
13052
13053# when you set need_version to no, make sure it does not cause -set_version
13054# flags to be left without arguments
13055need_version=unknown
13056
13057
13058
13059case $host_os in
13060aix3*)
13061  version_type=linux # correct to gnu/linux during the next big refactor
13062  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13063  shlibpath_var=LIBPATH
13064
13065  # AIX 3 has no versioning support, so we append a major version to the name.
13066  soname_spec='$libname$release$shared_ext$major'
13067  ;;
13068
13069aix[4-9]*)
13070  version_type=linux # correct to gnu/linux during the next big refactor
13071  need_lib_prefix=no
13072  need_version=no
13073  hardcode_into_libs=yes
13074  if test ia64 = "$host_cpu"; then
13075    # AIX 5 supports IA64
13076    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13077    shlibpath_var=LD_LIBRARY_PATH
13078  else
13079    # With GCC up to 2.95.x, collect2 would create an import file
13080    # for dependence libraries.  The import file would start with
13081    # the line '#! .'.  This would cause the generated library to
13082    # depend on '.', always an invalid library.  This was fixed in
13083    # development snapshots of GCC prior to 3.0.
13084    case $host_os in
13085      aix4 | aix4.[01] | aix4.[01].*)
13086      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13087	   echo ' yes '
13088	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13089	:
13090      else
13091	can_build_shared=no
13092      fi
13093      ;;
13094    esac
13095    # Using Import Files as archive members, it is possible to support
13096    # filename-based versioning of shared library archives on AIX. While
13097    # this would work for both with and without runtime linking, it will
13098    # prevent static linking of such archives. So we do filename-based
13099    # shared library versioning with .so extension only, which is used
13100    # when both runtime linking and shared linking is enabled.
13101    # Unfortunately, runtime linking may impact performance, so we do
13102    # not want this to be the default eventually. Also, we use the
13103    # versioned .so libs for executables only if there is the -brtl
13104    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13105    # To allow for filename-based versioning support, we need to create
13106    # libNAME.so.V as an archive file, containing:
13107    # *) an Import File, referring to the versioned filename of the
13108    #    archive as well as the shared archive member, telling the
13109    #    bitwidth (32 or 64) of that shared object, and providing the
13110    #    list of exported symbols of that shared object, eventually
13111    #    decorated with the 'weak' keyword
13112    # *) the shared object with the F_LOADONLY flag set, to really avoid
13113    #    it being seen by the linker.
13114    # At run time we better use the real file rather than another symlink,
13115    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13116
13117    case $with_aix_soname,$aix_use_runtimelinking in
13118    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13119    # soname into executable. Probably we can add versioning support to
13120    # collect2, so additional links can be useful in future.
13121    aix,yes) # traditional libtool
13122      dynamic_linker='AIX unversionable lib.so'
13123      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13124      # instead of lib<name>.a to let people know that these are not
13125      # typical AIX shared libraries.
13126      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13127      ;;
13128    aix,no) # traditional AIX only
13129      dynamic_linker='AIX lib.a(lib.so.V)'
13130      # We preserve .a as extension for shared libraries through AIX4.2
13131      # and later when we are not doing run time linking.
13132      library_names_spec='$libname$release.a $libname.a'
13133      soname_spec='$libname$release$shared_ext$major'
13134      ;;
13135    svr4,*) # full svr4 only
13136      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13137      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13138      # We do not specify a path in Import Files, so LIBPATH fires.
13139      shlibpath_overrides_runpath=yes
13140      ;;
13141    *,yes) # both, prefer svr4
13142      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13143      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13144      # unpreferred sharedlib libNAME.a needs extra handling
13145      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"'
13146      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"'
13147      # We do not specify a path in Import Files, so LIBPATH fires.
13148      shlibpath_overrides_runpath=yes
13149      ;;
13150    *,no) # both, prefer aix
13151      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13152      library_names_spec='$libname$release.a $libname.a'
13153      soname_spec='$libname$release$shared_ext$major'
13154      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13155      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)'
13156      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"'
13157      ;;
13158    esac
13159    shlibpath_var=LIBPATH
13160  fi
13161  ;;
13162
13163amigaos*)
13164  case $host_cpu in
13165  powerpc)
13166    # Since July 2007 AmigaOS4 officially supports .so libraries.
13167    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13168    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13169    ;;
13170  m68k)
13171    library_names_spec='$libname.ixlibrary $libname.a'
13172    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13173    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'
13174    ;;
13175  esac
13176  ;;
13177
13178beos*)
13179  library_names_spec='$libname$shared_ext'
13180  dynamic_linker="$host_os ld.so"
13181  shlibpath_var=LIBRARY_PATH
13182  ;;
13183
13184bsdi[45]*)
13185  version_type=linux # correct to gnu/linux during the next big refactor
13186  need_version=no
13187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13188  soname_spec='$libname$release$shared_ext$major'
13189  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13190  shlibpath_var=LD_LIBRARY_PATH
13191  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13192  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13193  # the default ld.so.conf also contains /usr/contrib/lib and
13194  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13195  # libtool to hard-code these into programs
13196  ;;
13197
13198cygwin* | mingw* | pw32* | cegcc*)
13199  version_type=windows
13200  shrext_cmds=.dll
13201  need_version=no
13202  need_lib_prefix=no
13203
13204  case $GCC,$cc_basename in
13205  yes,*)
13206    # gcc
13207    library_names_spec='$libname.dll.a'
13208    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13209    postinstall_cmds='base_file=`basename \$file`~
13210      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13211      dldir=$destdir/`dirname \$dlpath`~
13212      test -d \$dldir || mkdir -p \$dldir~
13213      $install_prog $dir/$dlname \$dldir/$dlname~
13214      chmod a+x \$dldir/$dlname~
13215      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13216        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13217      fi'
13218    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13219      dlpath=$dir/\$dldll~
13220       $RM \$dlpath'
13221    shlibpath_overrides_runpath=yes
13222
13223    case $host_os in
13224    cygwin*)
13225      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13226      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13227
13228      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13229      ;;
13230    mingw* | cegcc*)
13231      # MinGW DLLs use traditional 'lib' prefix
13232      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13233      ;;
13234    pw32*)
13235      # pw32 DLLs use 'pw' prefix rather than 'lib'
13236      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13237      ;;
13238    esac
13239    dynamic_linker='Win32 ld.exe'
13240    ;;
13241
13242  *,cl*)
13243    # Native MSVC
13244    libname_spec='$name'
13245    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13246    library_names_spec='$libname.dll.lib'
13247
13248    case $build_os in
13249    mingw*)
13250      sys_lib_search_path_spec=
13251      lt_save_ifs=$IFS
13252      IFS=';'
13253      for lt_path in $LIB
13254      do
13255        IFS=$lt_save_ifs
13256        # Let DOS variable expansion print the short 8.3 style file name.
13257        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13258        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13259      done
13260      IFS=$lt_save_ifs
13261      # Convert to MSYS style.
13262      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13263      ;;
13264    cygwin*)
13265      # Convert to unix form, then to dos form, then back to unix form
13266      # but this time dos style (no spaces!) so that the unix form looks
13267      # like /cygdrive/c/PROGRA~1:/cygdr...
13268      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13269      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13270      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13271      ;;
13272    *)
13273      sys_lib_search_path_spec=$LIB
13274      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13275        # It is most probably a Windows format PATH.
13276        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13277      else
13278        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13279      fi
13280      # FIXME: find the short name or the path components, as spaces are
13281      # common. (e.g. "Program Files" -> "PROGRA~1")
13282      ;;
13283    esac
13284
13285    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13286    postinstall_cmds='base_file=`basename \$file`~
13287      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13288      dldir=$destdir/`dirname \$dlpath`~
13289      test -d \$dldir || mkdir -p \$dldir~
13290      $install_prog $dir/$dlname \$dldir/$dlname'
13291    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13292      dlpath=$dir/\$dldll~
13293       $RM \$dlpath'
13294    shlibpath_overrides_runpath=yes
13295    dynamic_linker='Win32 link.exe'
13296    ;;
13297
13298  *)
13299    # Assume MSVC wrapper
13300    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13301    dynamic_linker='Win32 ld.exe'
13302    ;;
13303  esac
13304  # FIXME: first we should search . and the directory the executable is in
13305  shlibpath_var=PATH
13306  ;;
13307
13308darwin* | rhapsody*)
13309  dynamic_linker="$host_os dyld"
13310  version_type=darwin
13311  need_lib_prefix=no
13312  need_version=no
13313  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13314  soname_spec='$libname$release$major$shared_ext'
13315  shlibpath_overrides_runpath=yes
13316  shlibpath_var=DYLD_LIBRARY_PATH
13317  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13318
13319  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13320  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13321  ;;
13322
13323dgux*)
13324  version_type=linux # correct to gnu/linux during the next big refactor
13325  need_lib_prefix=no
13326  need_version=no
13327  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328  soname_spec='$libname$release$shared_ext$major'
13329  shlibpath_var=LD_LIBRARY_PATH
13330  ;;
13331
13332freebsd* | dragonfly*)
13333  # DragonFly does not have aout.  When/if they implement a new
13334  # versioning mechanism, adjust this.
13335  if test -x /usr/bin/objformat; then
13336    objformat=`/usr/bin/objformat`
13337  else
13338    case $host_os in
13339    freebsd[23].*) objformat=aout ;;
13340    *) objformat=elf ;;
13341    esac
13342  fi
13343  version_type=freebsd-$objformat
13344  case $version_type in
13345    freebsd-elf*)
13346      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347      soname_spec='$libname$release$shared_ext$major'
13348      need_version=no
13349      need_lib_prefix=no
13350      ;;
13351    freebsd-*)
13352      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13353      need_version=yes
13354      ;;
13355  esac
13356  shlibpath_var=LD_LIBRARY_PATH
13357  case $host_os in
13358  freebsd2.*)
13359    shlibpath_overrides_runpath=yes
13360    ;;
13361  freebsd3.[01]* | freebsdelf3.[01]*)
13362    shlibpath_overrides_runpath=yes
13363    hardcode_into_libs=yes
13364    ;;
13365  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13366  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13367    shlibpath_overrides_runpath=no
13368    hardcode_into_libs=yes
13369    ;;
13370  *) # from 4.6 on, and DragonFly
13371    shlibpath_overrides_runpath=yes
13372    hardcode_into_libs=yes
13373    ;;
13374  esac
13375  ;;
13376
13377haiku*)
13378  version_type=linux # correct to gnu/linux during the next big refactor
13379  need_lib_prefix=no
13380  need_version=no
13381  dynamic_linker="$host_os runtime_loader"
13382  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13383  soname_spec='$libname$release$shared_ext$major'
13384  shlibpath_var=LIBRARY_PATH
13385  shlibpath_overrides_runpath=no
13386  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13387  hardcode_into_libs=yes
13388  ;;
13389
13390hpux9* | hpux10* | hpux11*)
13391  # Give a soname corresponding to the major version so that dld.sl refuses to
13392  # link against other versions.
13393  version_type=sunos
13394  need_lib_prefix=no
13395  need_version=no
13396  case $host_cpu in
13397  ia64*)
13398    shrext_cmds='.so'
13399    hardcode_into_libs=yes
13400    dynamic_linker="$host_os dld.so"
13401    shlibpath_var=LD_LIBRARY_PATH
13402    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
13406      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13407      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13408    else
13409      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13410      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13411    fi
13412    ;;
13413  hppa*64*)
13414    shrext_cmds='.sl'
13415    hardcode_into_libs=yes
13416    dynamic_linker="$host_os dld.sl"
13417    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13418    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13419    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420    soname_spec='$libname$release$shared_ext$major'
13421    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13422    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13423    ;;
13424  *)
13425    shrext_cmds='.sl'
13426    dynamic_linker="$host_os dld.sl"
13427    shlibpath_var=SHLIB_PATH
13428    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13429    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13430    soname_spec='$libname$release$shared_ext$major'
13431    ;;
13432  esac
13433  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13434  postinstall_cmds='chmod 555 $lib'
13435  # or fails outright, so override atomically:
13436  install_override_mode=555
13437  ;;
13438
13439interix[3-9]*)
13440  version_type=linux # correct to gnu/linux during the next big refactor
13441  need_lib_prefix=no
13442  need_version=no
13443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444  soname_spec='$libname$release$shared_ext$major'
13445  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13446  shlibpath_var=LD_LIBRARY_PATH
13447  shlibpath_overrides_runpath=no
13448  hardcode_into_libs=yes
13449  ;;
13450
13451irix5* | irix6* | nonstopux*)
13452  case $host_os in
13453    nonstopux*) version_type=nonstopux ;;
13454    *)
13455	if test yes = "$lt_cv_prog_gnu_ld"; then
13456		version_type=linux # correct to gnu/linux during the next big refactor
13457	else
13458		version_type=irix
13459	fi ;;
13460  esac
13461  need_lib_prefix=no
13462  need_version=no
13463  soname_spec='$libname$release$shared_ext$major'
13464  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13465  case $host_os in
13466  irix5* | nonstopux*)
13467    libsuff= shlibsuff=
13468    ;;
13469  *)
13470    case $LD in # libtool.m4 will add one of these switches to LD
13471    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13472      libsuff= shlibsuff= libmagic=32-bit;;
13473    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13474      libsuff=32 shlibsuff=N32 libmagic=N32;;
13475    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13476      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13477    *) libsuff= shlibsuff= libmagic=never-match;;
13478    esac
13479    ;;
13480  esac
13481  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13482  shlibpath_overrides_runpath=no
13483  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13484  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13485  hardcode_into_libs=yes
13486  ;;
13487
13488# No shared lib support for Linux oldld, aout, or coff.
13489linux*oldld* | linux*aout* | linux*coff*)
13490  dynamic_linker=no
13491  ;;
13492
13493linux*android*)
13494  version_type=none # Android doesn't support versioned libraries.
13495  need_lib_prefix=no
13496  need_version=no
13497  library_names_spec='$libname$release$shared_ext'
13498  soname_spec='$libname$release$shared_ext'
13499  finish_cmds=
13500  shlibpath_var=LD_LIBRARY_PATH
13501  shlibpath_overrides_runpath=yes
13502
13503  # This implies no fast_install, which is unacceptable.
13504  # Some rework will be needed to allow for fast_install
13505  # before this can be enabled.
13506  hardcode_into_libs=yes
13507
13508  dynamic_linker='Android linker'
13509  # Don't embed -rpath directories since the linker doesn't support them.
13510  hardcode_libdir_flag_spec='-L$libdir'
13511  ;;
13512
13513# This must be glibc/ELF.
13514linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13515  version_type=linux # correct to gnu/linux during the next big refactor
13516  need_lib_prefix=no
13517  need_version=no
13518  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13519  soname_spec='$libname$release$shared_ext$major'
13520  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13521  shlibpath_var=LD_LIBRARY_PATH
13522  shlibpath_overrides_runpath=no
13523
13524  # Some binutils ld are patched to set DT_RUNPATH
13525  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13526  $as_echo_n "(cached) " >&6
13527else
13528  lt_cv_shlibpath_overrides_runpath=no
13529    save_LDFLAGS=$LDFLAGS
13530    save_libdir=$libdir
13531    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13532	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535
13536int
13537main ()
13538{
13539
13540  ;
13541  return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_link "$LINENO"; then :
13545  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13546  lt_cv_shlibpath_overrides_runpath=yes
13547fi
13548fi
13549rm -f core conftest.err conftest.$ac_objext \
13550    conftest$ac_exeext conftest.$ac_ext
13551    LDFLAGS=$save_LDFLAGS
13552    libdir=$save_libdir
13553
13554fi
13555
13556  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13557
13558  # This implies no fast_install, which is unacceptable.
13559  # Some rework will be needed to allow for fast_install
13560  # before this can be enabled.
13561  hardcode_into_libs=yes
13562
13563  # Add ABI-specific directories to the system library path.
13564  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13565
13566  # Ideally, we could use ldconfig to report *all* directores which are
13567  # searched for libraries, however this is still not possible.  Aside from not
13568  # being certain /sbin/ldconfig is available, command
13569  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13570  # even though it is searched at run-time.  Try to do the best guess by
13571  # appending ld.so.conf contents (and includes) to the search path.
13572  if test -f /etc/ld.so.conf; then
13573    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' ' '`
13574    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13575  fi
13576
13577  # We used to test for /lib/ld.so.1 and disable shared libraries on
13578  # powerpc, because MkLinux only supported shared libraries with the
13579  # GNU dynamic linker.  Since this was broken with cross compilers,
13580  # most powerpc-linux boxes support dynamic linking these days and
13581  # people can always --disable-shared, the test was removed, and we
13582  # assume the GNU/Linux dynamic linker is in use.
13583  dynamic_linker='GNU/Linux ld.so'
13584  ;;
13585
13586netbsd*)
13587  version_type=sunos
13588  need_lib_prefix=no
13589  need_version=no
13590  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13591    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13592    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593    dynamic_linker='NetBSD (a.out) ld.so'
13594  else
13595    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13596    soname_spec='$libname$release$shared_ext$major'
13597    dynamic_linker='NetBSD ld.elf_so'
13598  fi
13599  shlibpath_var=LD_LIBRARY_PATH
13600  shlibpath_overrides_runpath=yes
13601  hardcode_into_libs=yes
13602  ;;
13603
13604newsos6)
13605  version_type=linux # correct to gnu/linux during the next big refactor
13606  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13607  shlibpath_var=LD_LIBRARY_PATH
13608  shlibpath_overrides_runpath=yes
13609  ;;
13610
13611*nto* | *qnx*)
13612  version_type=qnx
13613  need_lib_prefix=no
13614  need_version=no
13615  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13616  soname_spec='$libname$release$shared_ext$major'
13617  shlibpath_var=LD_LIBRARY_PATH
13618  shlibpath_overrides_runpath=no
13619  hardcode_into_libs=yes
13620  dynamic_linker='ldqnx.so'
13621  ;;
13622
13623openbsd* | bitrig*)
13624  version_type=sunos
13625  sys_lib_dlsearch_path_spec=/usr/lib
13626  need_lib_prefix=no
13627  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13628    need_version=no
13629  else
13630    need_version=yes
13631  fi
13632  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13633  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13634  shlibpath_var=LD_LIBRARY_PATH
13635  shlibpath_overrides_runpath=yes
13636  ;;
13637
13638os2*)
13639  libname_spec='$name'
13640  version_type=windows
13641  shrext_cmds=.dll
13642  need_version=no
13643  need_lib_prefix=no
13644  # OS/2 can only load a DLL with a base name of 8 characters or less.
13645  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13646    v=$($ECHO $release$versuffix | tr -d .-);
13647    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13648    $ECHO $n$v`$shared_ext'
13649  library_names_spec='${libname}_dll.$libext'
13650  dynamic_linker='OS/2 ld.exe'
13651  shlibpath_var=BEGINLIBPATH
13652  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13653  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654  postinstall_cmds='base_file=`basename \$file`~
13655    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13656    dldir=$destdir/`dirname \$dlpath`~
13657    test -d \$dldir || mkdir -p \$dldir~
13658    $install_prog $dir/$dlname \$dldir/$dlname~
13659    chmod a+x \$dldir/$dlname~
13660    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13661      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13662    fi'
13663  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13664    dlpath=$dir/\$dldll~
13665    $RM \$dlpath'
13666  ;;
13667
13668osf3* | osf4* | osf5*)
13669  version_type=osf
13670  need_lib_prefix=no
13671  need_version=no
13672  soname_spec='$libname$release$shared_ext$major'
13673  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13674  shlibpath_var=LD_LIBRARY_PATH
13675  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13676  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13677  ;;
13678
13679rdos*)
13680  dynamic_linker=no
13681  ;;
13682
13683solaris*)
13684  version_type=linux # correct to gnu/linux during the next big refactor
13685  need_lib_prefix=no
13686  need_version=no
13687  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688  soname_spec='$libname$release$shared_ext$major'
13689  shlibpath_var=LD_LIBRARY_PATH
13690  shlibpath_overrides_runpath=yes
13691  hardcode_into_libs=yes
13692  # ldd complains unless libraries are executable
13693  postinstall_cmds='chmod +x $lib'
13694  ;;
13695
13696sunos4*)
13697  version_type=sunos
13698  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13699  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  shlibpath_overrides_runpath=yes
13702  if test yes = "$with_gnu_ld"; then
13703    need_lib_prefix=no
13704  fi
13705  need_version=yes
13706  ;;
13707
13708sysv4 | sysv4.3*)
13709  version_type=linux # correct to gnu/linux during the next big refactor
13710  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13711  soname_spec='$libname$release$shared_ext$major'
13712  shlibpath_var=LD_LIBRARY_PATH
13713  case $host_vendor in
13714    sni)
13715      shlibpath_overrides_runpath=no
13716      need_lib_prefix=no
13717      runpath_var=LD_RUN_PATH
13718      ;;
13719    siemens)
13720      need_lib_prefix=no
13721      ;;
13722    motorola)
13723      need_lib_prefix=no
13724      need_version=no
13725      shlibpath_overrides_runpath=no
13726      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13727      ;;
13728  esac
13729  ;;
13730
13731sysv4*MP*)
13732  if test -d /usr/nec; then
13733    version_type=linux # correct to gnu/linux during the next big refactor
13734    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13735    soname_spec='$libname$shared_ext.$major'
13736    shlibpath_var=LD_LIBRARY_PATH
13737  fi
13738  ;;
13739
13740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13741  version_type=sco
13742  need_lib_prefix=no
13743  need_version=no
13744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $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  if test yes = "$with_gnu_ld"; then
13750    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13751  else
13752    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13753    case $host_os in
13754      sco3.2v5*)
13755        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13756	;;
13757    esac
13758  fi
13759  sys_lib_dlsearch_path_spec='/usr/lib'
13760  ;;
13761
13762tpf*)
13763  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13764  version_type=linux # correct to gnu/linux during the next big refactor
13765  need_lib_prefix=no
13766  need_version=no
13767  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768  shlibpath_var=LD_LIBRARY_PATH
13769  shlibpath_overrides_runpath=no
13770  hardcode_into_libs=yes
13771  ;;
13772
13773uts4*)
13774  version_type=linux # correct to gnu/linux during the next big refactor
13775  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13776  soname_spec='$libname$release$shared_ext$major'
13777  shlibpath_var=LD_LIBRARY_PATH
13778  ;;
13779
13780*)
13781  dynamic_linker=no
13782  ;;
13783esac
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13785$as_echo "$dynamic_linker" >&6; }
13786test no = "$dynamic_linker" && can_build_shared=no
13787
13788variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13789if test yes = "$GCC"; then
13790  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13791fi
13792
13793if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13794  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13795fi
13796
13797if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13798  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13799fi
13800
13801# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13802configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13803
13804# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13805func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13806
13807# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13808configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13907$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13908hardcode_action=
13909if test -n "$hardcode_libdir_flag_spec" ||
13910   test -n "$runpath_var" ||
13911   test yes = "$hardcode_automatic"; then
13912
13913  # We can hardcode non-existent directories.
13914  if test no != "$hardcode_direct" &&
13915     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13916     # have to relink, otherwise we might link with an installed library
13917     # when we should be linking with a yet-to-be-installed one
13918     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13919     test no != "$hardcode_minus_L"; then
13920    # Linking always hardcodes the temporary library directory.
13921    hardcode_action=relink
13922  else
13923    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13924    hardcode_action=immediate
13925  fi
13926else
13927  # We cannot hardcode anything, or else we can only hardcode existing
13928  # directories.
13929  hardcode_action=unsupported
13930fi
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13932$as_echo "$hardcode_action" >&6; }
13933
13934if test relink = "$hardcode_action" ||
13935   test yes = "$inherit_rpath"; then
13936  # Fast installation is not supported
13937  enable_fast_install=no
13938elif test yes = "$shlibpath_overrides_runpath" ||
13939     test no = "$enable_shared"; then
13940  # Fast installation is not necessary
13941  enable_fast_install=needless
13942fi
13943
13944
13945
13946
13947
13948
13949  if test yes != "$enable_dlopen"; then
13950  enable_dlopen=unknown
13951  enable_dlopen_self=unknown
13952  enable_dlopen_self_static=unknown
13953else
13954  lt_cv_dlopen=no
13955  lt_cv_dlopen_libs=
13956
13957  case $host_os in
13958  beos*)
13959    lt_cv_dlopen=load_add_on
13960    lt_cv_dlopen_libs=
13961    lt_cv_dlopen_self=yes
13962    ;;
13963
13964  mingw* | pw32* | cegcc*)
13965    lt_cv_dlopen=LoadLibrary
13966    lt_cv_dlopen_libs=
13967    ;;
13968
13969  cygwin*)
13970    lt_cv_dlopen=dlopen
13971    lt_cv_dlopen_libs=
13972    ;;
13973
13974  darwin*)
13975    # if libdl is installed we need to link against it
13976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13977$as_echo_n "checking for dlopen in -ldl... " >&6; }
13978if ${ac_cv_lib_dl_dlopen+:} false; then :
13979  $as_echo_n "(cached) " >&6
13980else
13981  ac_check_lib_save_LIBS=$LIBS
13982LIBS="-ldl  $LIBS"
13983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984/* end confdefs.h.  */
13985
13986/* Override any GCC internal prototype to avoid an error.
13987   Use char because int might match the return type of a GCC
13988   builtin and then its argument prototype would still apply.  */
13989#ifdef __cplusplus
13990extern "C"
13991#endif
13992char dlopen ();
13993int
13994main ()
13995{
13996return dlopen ();
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001if ac_fn_c_try_link "$LINENO"; then :
14002  ac_cv_lib_dl_dlopen=yes
14003else
14004  ac_cv_lib_dl_dlopen=no
14005fi
14006rm -f core conftest.err conftest.$ac_objext \
14007    conftest$ac_exeext conftest.$ac_ext
14008LIBS=$ac_check_lib_save_LIBS
14009fi
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14011$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14012if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14013  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14014else
14015
14016    lt_cv_dlopen=dyld
14017    lt_cv_dlopen_libs=
14018    lt_cv_dlopen_self=yes
14019
14020fi
14021
14022    ;;
14023
14024  tpf*)
14025    # Don't try to run any link tests for TPF.  We know it's impossible
14026    # because TPF is a cross-compiler, and we know how we open DSOs.
14027    lt_cv_dlopen=dlopen
14028    lt_cv_dlopen_libs=
14029    lt_cv_dlopen_self=no
14030    ;;
14031
14032  *)
14033    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14034if test "x$ac_cv_func_shl_load" = xyes; then :
14035  lt_cv_dlopen=shl_load
14036else
14037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14038$as_echo_n "checking for shl_load in -ldld... " >&6; }
14039if ${ac_cv_lib_dld_shl_load+:} false; then :
14040  $as_echo_n "(cached) " >&6
14041else
14042  ac_check_lib_save_LIBS=$LIBS
14043LIBS="-ldld  $LIBS"
14044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045/* end confdefs.h.  */
14046
14047/* Override any GCC internal prototype to avoid an error.
14048   Use char because int might match the return type of a GCC
14049   builtin and then its argument prototype would still apply.  */
14050#ifdef __cplusplus
14051extern "C"
14052#endif
14053char shl_load ();
14054int
14055main ()
14056{
14057return shl_load ();
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062if ac_fn_c_try_link "$LINENO"; then :
14063  ac_cv_lib_dld_shl_load=yes
14064else
14065  ac_cv_lib_dld_shl_load=no
14066fi
14067rm -f core conftest.err conftest.$ac_objext \
14068    conftest$ac_exeext conftest.$ac_ext
14069LIBS=$ac_check_lib_save_LIBS
14070fi
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14072$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14073if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14074  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14075else
14076  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14077if test "x$ac_cv_func_dlopen" = xyes; then :
14078  lt_cv_dlopen=dlopen
14079else
14080  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14081$as_echo_n "checking for dlopen in -ldl... " >&6; }
14082if ${ac_cv_lib_dl_dlopen+:} false; then :
14083  $as_echo_n "(cached) " >&6
14084else
14085  ac_check_lib_save_LIBS=$LIBS
14086LIBS="-ldl  $LIBS"
14087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088/* end confdefs.h.  */
14089
14090/* Override any GCC internal prototype to avoid an error.
14091   Use char because int might match the return type of a GCC
14092   builtin and then its argument prototype would still apply.  */
14093#ifdef __cplusplus
14094extern "C"
14095#endif
14096char dlopen ();
14097int
14098main ()
14099{
14100return dlopen ();
14101  ;
14102  return 0;
14103}
14104_ACEOF
14105if ac_fn_c_try_link "$LINENO"; then :
14106  ac_cv_lib_dl_dlopen=yes
14107else
14108  ac_cv_lib_dl_dlopen=no
14109fi
14110rm -f core conftest.err conftest.$ac_objext \
14111    conftest$ac_exeext conftest.$ac_ext
14112LIBS=$ac_check_lib_save_LIBS
14113fi
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14115$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14116if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14117  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14118else
14119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14120$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14121if ${ac_cv_lib_svld_dlopen+:} false; then :
14122  $as_echo_n "(cached) " >&6
14123else
14124  ac_check_lib_save_LIBS=$LIBS
14125LIBS="-lsvld  $LIBS"
14126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h.  */
14128
14129/* Override any GCC internal prototype to avoid an error.
14130   Use char because int might match the return type of a GCC
14131   builtin and then its argument prototype would still apply.  */
14132#ifdef __cplusplus
14133extern "C"
14134#endif
14135char dlopen ();
14136int
14137main ()
14138{
14139return dlopen ();
14140  ;
14141  return 0;
14142}
14143_ACEOF
14144if ac_fn_c_try_link "$LINENO"; then :
14145  ac_cv_lib_svld_dlopen=yes
14146else
14147  ac_cv_lib_svld_dlopen=no
14148fi
14149rm -f core conftest.err conftest.$ac_objext \
14150    conftest$ac_exeext conftest.$ac_ext
14151LIBS=$ac_check_lib_save_LIBS
14152fi
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14154$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14155if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14156  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14157else
14158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14159$as_echo_n "checking for dld_link in -ldld... " >&6; }
14160if ${ac_cv_lib_dld_dld_link+:} false; then :
14161  $as_echo_n "(cached) " >&6
14162else
14163  ac_check_lib_save_LIBS=$LIBS
14164LIBS="-ldld  $LIBS"
14165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166/* end confdefs.h.  */
14167
14168/* Override any GCC internal prototype to avoid an error.
14169   Use char because int might match the return type of a GCC
14170   builtin and then its argument prototype would still apply.  */
14171#ifdef __cplusplus
14172extern "C"
14173#endif
14174char dld_link ();
14175int
14176main ()
14177{
14178return dld_link ();
14179  ;
14180  return 0;
14181}
14182_ACEOF
14183if ac_fn_c_try_link "$LINENO"; then :
14184  ac_cv_lib_dld_dld_link=yes
14185else
14186  ac_cv_lib_dld_dld_link=no
14187fi
14188rm -f core conftest.err conftest.$ac_objext \
14189    conftest$ac_exeext conftest.$ac_ext
14190LIBS=$ac_check_lib_save_LIBS
14191fi
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14193$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14194if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14195  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14196fi
14197
14198
14199fi
14200
14201
14202fi
14203
14204
14205fi
14206
14207
14208fi
14209
14210
14211fi
14212
14213    ;;
14214  esac
14215
14216  if test no = "$lt_cv_dlopen"; then
14217    enable_dlopen=no
14218  else
14219    enable_dlopen=yes
14220  fi
14221
14222  case $lt_cv_dlopen in
14223  dlopen)
14224    save_CPPFLAGS=$CPPFLAGS
14225    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14226
14227    save_LDFLAGS=$LDFLAGS
14228    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14229
14230    save_LIBS=$LIBS
14231    LIBS="$lt_cv_dlopen_libs $LIBS"
14232
14233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14234$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14235if ${lt_cv_dlopen_self+:} false; then :
14236  $as_echo_n "(cached) " >&6
14237else
14238  	  if test yes = "$cross_compiling"; then :
14239  lt_cv_dlopen_self=cross
14240else
14241  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14242  lt_status=$lt_dlunknown
14243  cat > conftest.$ac_ext <<_LT_EOF
14244#line $LINENO "configure"
14245#include "confdefs.h"
14246
14247#if HAVE_DLFCN_H
14248#include <dlfcn.h>
14249#endif
14250
14251#include <stdio.h>
14252
14253#ifdef RTLD_GLOBAL
14254#  define LT_DLGLOBAL		RTLD_GLOBAL
14255#else
14256#  ifdef DL_GLOBAL
14257#    define LT_DLGLOBAL		DL_GLOBAL
14258#  else
14259#    define LT_DLGLOBAL		0
14260#  endif
14261#endif
14262
14263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14264   find out it does not work in some platform. */
14265#ifndef LT_DLLAZY_OR_NOW
14266#  ifdef RTLD_LAZY
14267#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14268#  else
14269#    ifdef DL_LAZY
14270#      define LT_DLLAZY_OR_NOW		DL_LAZY
14271#    else
14272#      ifdef RTLD_NOW
14273#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14274#      else
14275#        ifdef DL_NOW
14276#          define LT_DLLAZY_OR_NOW	DL_NOW
14277#        else
14278#          define LT_DLLAZY_OR_NOW	0
14279#        endif
14280#      endif
14281#    endif
14282#  endif
14283#endif
14284
14285/* When -fvisibility=hidden is used, assume the code has been annotated
14286   correspondingly for the symbols needed.  */
14287#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14288int fnord () __attribute__((visibility("default")));
14289#endif
14290
14291int fnord () { return 42; }
14292int main ()
14293{
14294  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14295  int status = $lt_dlunknown;
14296
14297  if (self)
14298    {
14299      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14300      else
14301        {
14302	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14303          else puts (dlerror ());
14304	}
14305      /* dlclose (self); */
14306    }
14307  else
14308    puts (dlerror ());
14309
14310  return status;
14311}
14312_LT_EOF
14313  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14314  (eval $ac_link) 2>&5
14315  ac_status=$?
14316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14317  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14318    (./conftest; exit; ) >&5 2>/dev/null
14319    lt_status=$?
14320    case x$lt_status in
14321      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14322      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14323      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14324    esac
14325  else :
14326    # compilation failed
14327    lt_cv_dlopen_self=no
14328  fi
14329fi
14330rm -fr conftest*
14331
14332
14333fi
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14335$as_echo "$lt_cv_dlopen_self" >&6; }
14336
14337    if test yes = "$lt_cv_dlopen_self"; then
14338      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14339      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14340$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14341if ${lt_cv_dlopen_self_static+:} false; then :
14342  $as_echo_n "(cached) " >&6
14343else
14344  	  if test yes = "$cross_compiling"; then :
14345  lt_cv_dlopen_self_static=cross
14346else
14347  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14348  lt_status=$lt_dlunknown
14349  cat > conftest.$ac_ext <<_LT_EOF
14350#line $LINENO "configure"
14351#include "confdefs.h"
14352
14353#if HAVE_DLFCN_H
14354#include <dlfcn.h>
14355#endif
14356
14357#include <stdio.h>
14358
14359#ifdef RTLD_GLOBAL
14360#  define LT_DLGLOBAL		RTLD_GLOBAL
14361#else
14362#  ifdef DL_GLOBAL
14363#    define LT_DLGLOBAL		DL_GLOBAL
14364#  else
14365#    define LT_DLGLOBAL		0
14366#  endif
14367#endif
14368
14369/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14370   find out it does not work in some platform. */
14371#ifndef LT_DLLAZY_OR_NOW
14372#  ifdef RTLD_LAZY
14373#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14374#  else
14375#    ifdef DL_LAZY
14376#      define LT_DLLAZY_OR_NOW		DL_LAZY
14377#    else
14378#      ifdef RTLD_NOW
14379#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14380#      else
14381#        ifdef DL_NOW
14382#          define LT_DLLAZY_OR_NOW	DL_NOW
14383#        else
14384#          define LT_DLLAZY_OR_NOW	0
14385#        endif
14386#      endif
14387#    endif
14388#  endif
14389#endif
14390
14391/* When -fvisibility=hidden is used, assume the code has been annotated
14392   correspondingly for the symbols needed.  */
14393#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14394int fnord () __attribute__((visibility("default")));
14395#endif
14396
14397int fnord () { return 42; }
14398int main ()
14399{
14400  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14401  int status = $lt_dlunknown;
14402
14403  if (self)
14404    {
14405      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14406      else
14407        {
14408	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14409          else puts (dlerror ());
14410	}
14411      /* dlclose (self); */
14412    }
14413  else
14414    puts (dlerror ());
14415
14416  return status;
14417}
14418_LT_EOF
14419  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14420  (eval $ac_link) 2>&5
14421  ac_status=$?
14422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14424    (./conftest; exit; ) >&5 2>/dev/null
14425    lt_status=$?
14426    case x$lt_status in
14427      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14428      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14429      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14430    esac
14431  else :
14432    # compilation failed
14433    lt_cv_dlopen_self_static=no
14434  fi
14435fi
14436rm -fr conftest*
14437
14438
14439fi
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14441$as_echo "$lt_cv_dlopen_self_static" >&6; }
14442    fi
14443
14444    CPPFLAGS=$save_CPPFLAGS
14445    LDFLAGS=$save_LDFLAGS
14446    LIBS=$save_LIBS
14447    ;;
14448  esac
14449
14450  case $lt_cv_dlopen_self in
14451  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14452  *) enable_dlopen_self=unknown ;;
14453  esac
14454
14455  case $lt_cv_dlopen_self_static in
14456  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14457  *) enable_dlopen_self_static=unknown ;;
14458  esac
14459fi
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477striplib=
14478old_striplib=
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14480$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14481if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14482  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14483  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485$as_echo "yes" >&6; }
14486else
14487# FIXME - insert some real tests, host_os isn't really good enough
14488  case $host_os in
14489  darwin*)
14490    if test -n "$STRIP"; then
14491      striplib="$STRIP -x"
14492      old_striplib="$STRIP -S"
14493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494$as_echo "yes" >&6; }
14495    else
14496      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497$as_echo "no" >&6; }
14498    fi
14499    ;;
14500  *)
14501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502$as_echo "no" >&6; }
14503    ;;
14504  esac
14505fi
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518  # Report what library types will actually be built
14519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14520$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14522$as_echo "$can_build_shared" >&6; }
14523
14524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14525$as_echo_n "checking whether to build shared libraries... " >&6; }
14526  test no = "$can_build_shared" && enable_shared=no
14527
14528  # On AIX, shared libraries and static libraries use the same namespace, and
14529  # are all built from PIC.
14530  case $host_os in
14531  aix3*)
14532    test yes = "$enable_shared" && enable_static=no
14533    if test -n "$RANLIB"; then
14534      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14535      postinstall_cmds='$RANLIB $lib'
14536    fi
14537    ;;
14538
14539  aix[4-9]*)
14540    if test ia64 != "$host_cpu"; then
14541      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14542      yes,aix,yes) ;;			# shared object as lib.so file only
14543      yes,svr4,*) ;;			# shared object as lib.so archive member only
14544      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14545      esac
14546    fi
14547    ;;
14548  esac
14549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14550$as_echo "$enable_shared" >&6; }
14551
14552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14553$as_echo_n "checking whether to build static libraries... " >&6; }
14554  # Make sure either enable_shared or enable_static is yes.
14555  test yes = "$enable_shared" || enable_static=yes
14556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14557$as_echo "$enable_static" >&6; }
14558
14559
14560
14561
14562fi
14563ac_ext=c
14564ac_cpp='$CPP $CPPFLAGS'
14565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567ac_compiler_gnu=$ac_cv_c_compiler_gnu
14568
14569CC=$lt_save_CC
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585        ac_config_commands="$ac_config_commands libtool"
14586
14587
14588
14589
14590# Only expand once:
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14603	if test -n "$ac_tool_prefix"; then
14604  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14605set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607$as_echo_n "checking for $ac_word... " >&6; }
14608if ${ac_cv_path_PKG_CONFIG+:} false; then :
14609  $as_echo_n "(cached) " >&6
14610else
14611  case $PKG_CONFIG in
14612  [\\/]* | ?:[\\/]*)
14613  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14614  ;;
14615  *)
14616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617for as_dir in $PATH
14618do
14619  IFS=$as_save_IFS
14620  test -z "$as_dir" && as_dir=.
14621    for ac_exec_ext in '' $ac_executable_extensions; do
14622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14625    break 2
14626  fi
14627done
14628  done
14629IFS=$as_save_IFS
14630
14631  ;;
14632esac
14633fi
14634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14635if test -n "$PKG_CONFIG"; then
14636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14637$as_echo "$PKG_CONFIG" >&6; }
14638else
14639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640$as_echo "no" >&6; }
14641fi
14642
14643
14644fi
14645if test -z "$ac_cv_path_PKG_CONFIG"; then
14646  ac_pt_PKG_CONFIG=$PKG_CONFIG
14647  # Extract the first word of "pkg-config", so it can be a program name with args.
14648set dummy pkg-config; ac_word=$2
14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14650$as_echo_n "checking for $ac_word... " >&6; }
14651if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14652  $as_echo_n "(cached) " >&6
14653else
14654  case $ac_pt_PKG_CONFIG in
14655  [\\/]* | ?:[\\/]*)
14656  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14657  ;;
14658  *)
14659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660for as_dir in $PATH
14661do
14662  IFS=$as_save_IFS
14663  test -z "$as_dir" && as_dir=.
14664    for ac_exec_ext in '' $ac_executable_extensions; do
14665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14668    break 2
14669  fi
14670done
14671  done
14672IFS=$as_save_IFS
14673
14674  ;;
14675esac
14676fi
14677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14678if test -n "$ac_pt_PKG_CONFIG"; then
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14680$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14681else
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683$as_echo "no" >&6; }
14684fi
14685
14686  if test "x$ac_pt_PKG_CONFIG" = x; then
14687    PKG_CONFIG=""
14688  else
14689    case $cross_compiling:$ac_tool_warned in
14690yes:)
14691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14693ac_tool_warned=yes ;;
14694esac
14695    PKG_CONFIG=$ac_pt_PKG_CONFIG
14696  fi
14697else
14698  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14699fi
14700
14701fi
14702if test -n "$PKG_CONFIG"; then
14703	_pkg_min_version=0.9.0
14704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14705$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14706	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14708$as_echo "yes" >&6; }
14709	else
14710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711$as_echo "no" >&6; }
14712		PKG_CONFIG=""
14713	fi
14714fi
14715
14716# Checks for header files.
14717for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.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
14718do :
14719  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14720ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14721"
14722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14723  cat >>confdefs.h <<_ACEOF
14724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14725_ACEOF
14726
14727fi
14728
14729done
14730
14731
14732# check for types.
14733# Using own tests for int64* because autoconf builtin only give 32bit.
14734ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14735if test "x$ac_cv_type_int8_t" = xyes; then :
14736
14737else
14738
14739cat >>confdefs.h <<_ACEOF
14740#define int8_t signed char
14741_ACEOF
14742
14743fi
14744
14745ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14746if test "x$ac_cv_type_int16_t" = xyes; then :
14747
14748else
14749
14750cat >>confdefs.h <<_ACEOF
14751#define int16_t short
14752_ACEOF
14753
14754fi
14755
14756ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14757if test "x$ac_cv_type_int32_t" = xyes; then :
14758
14759else
14760
14761cat >>confdefs.h <<_ACEOF
14762#define int32_t int
14763_ACEOF
14764
14765fi
14766
14767ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14768if test "x$ac_cv_type_int64_t" = xyes; then :
14769
14770else
14771
14772cat >>confdefs.h <<_ACEOF
14773#define int64_t long long
14774_ACEOF
14775
14776fi
14777
14778ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14779if test "x$ac_cv_type_uint8_t" = xyes; then :
14780
14781else
14782
14783cat >>confdefs.h <<_ACEOF
14784#define uint8_t unsigned char
14785_ACEOF
14786
14787fi
14788
14789ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14790if test "x$ac_cv_type_uint16_t" = xyes; then :
14791
14792else
14793
14794cat >>confdefs.h <<_ACEOF
14795#define uint16_t unsigned short
14796_ACEOF
14797
14798fi
14799
14800ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14801if test "x$ac_cv_type_uint32_t" = xyes; then :
14802
14803else
14804
14805cat >>confdefs.h <<_ACEOF
14806#define uint32_t unsigned int
14807_ACEOF
14808
14809fi
14810
14811ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14812if test "x$ac_cv_type_uint64_t" = xyes; then :
14813
14814else
14815
14816cat >>confdefs.h <<_ACEOF
14817#define uint64_t unsigned long long
14818_ACEOF
14819
14820fi
14821
14822ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14823if test "x$ac_cv_type_size_t" = xyes; then :
14824
14825else
14826
14827cat >>confdefs.h <<_ACEOF
14828#define size_t unsigned int
14829_ACEOF
14830
14831fi
14832
14833ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14834if test "x$ac_cv_type_ssize_t" = xyes; then :
14835
14836else
14837
14838cat >>confdefs.h <<_ACEOF
14839#define ssize_t int
14840_ACEOF
14841
14842fi
14843
14844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14845$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14846if ${ac_cv_type_uid_t+:} false; then :
14847  $as_echo_n "(cached) " >&6
14848else
14849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850/* end confdefs.h.  */
14851#include <sys/types.h>
14852
14853_ACEOF
14854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14855  $EGREP "uid_t" >/dev/null 2>&1; then :
14856  ac_cv_type_uid_t=yes
14857else
14858  ac_cv_type_uid_t=no
14859fi
14860rm -f conftest*
14861
14862fi
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14864$as_echo "$ac_cv_type_uid_t" >&6; }
14865if test $ac_cv_type_uid_t = no; then
14866
14867$as_echo "#define uid_t int" >>confdefs.h
14868
14869
14870$as_echo "#define gid_t int" >>confdefs.h
14871
14872fi
14873
14874ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14875if test "x$ac_cv_type_pid_t" = xyes; then :
14876
14877else
14878
14879cat >>confdefs.h <<_ACEOF
14880#define pid_t int
14881_ACEOF
14882
14883fi
14884
14885ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14886if test "x$ac_cv_type_off_t" = xyes; then :
14887
14888else
14889
14890cat >>confdefs.h <<_ACEOF
14891#define off_t long int
14892_ACEOF
14893
14894fi
14895
14896ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14897$ac_includes_default
14898#ifdef HAVE_WINSOCK2_H
14899#  include <winsock2.h>
14900#endif
14901
14902"
14903if test "x$ac_cv_type_u_char" = xyes; then :
14904
14905else
14906
14907$as_echo "#define u_char unsigned char" >>confdefs.h
14908
14909fi
14910
14911ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14912$ac_includes_default
14913#ifdef HAVE_SYS_RESOURCE_H
14914#  include <sys/resource.h>
14915#endif
14916
14917"
14918if test "x$ac_cv_type_rlim_t" = xyes; then :
14919
14920else
14921
14922$as_echo "#define rlim_t unsigned long" >>confdefs.h
14923
14924fi
14925
14926
14927ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14928$ac_includes_default
14929#ifdef HAVE_SYS_SOCKET_H
14930#  include <sys/socket.h>
14931#endif
14932#ifdef HAVE_WS2TCPIP_H
14933#  include <ws2tcpip.h>
14934#endif
14935
14936"
14937if test "x$ac_cv_type_socklen_t" = xyes; then :
14938
14939else
14940
14941$as_echo "#define socklen_t int" >>confdefs.h
14942
14943fi
14944
14945 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14946$ac_includes_default
14947#ifdef HAVE_SYS_TYPES_H
14948# include <sys/types.h>
14949#endif
14950#ifdef HAVE_NETINET_IN_H
14951# include <netinet/in.h>
14952#endif
14953
14954"
14955if test "x$ac_cv_type_in_addr_t" = xyes; then :
14956
14957else
14958
14959$as_echo "#define in_addr_t uint32_t" >>confdefs.h
14960
14961fi
14962
14963 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14964$ac_includes_default
14965#ifdef HAVE_SYS_TYPES_H
14966# include <sys/types.h>
14967#endif
14968#ifdef HAVE_NETINET_IN_H
14969# include <netinet/in.h>
14970#endif
14971
14972"
14973if test "x$ac_cv_type_in_port_t" = xyes; then :
14974
14975else
14976
14977$as_echo "#define in_port_t uint16_t" >>confdefs.h
14978
14979fi
14980
14981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14982$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14983if test "$cross_compiling" = yes; then :
14984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14985$as_echo "cross-compile no" >&6; }
14986
14987$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14988
14989  case " $LIBOBJS " in
14990  *" memcmp.$ac_objext "* ) ;;
14991  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14992 ;;
14993esac
14994
14995
14996else
14997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998/* end confdefs.h.  */
14999
15000#include <stdio.h>
15001#include <stdlib.h>
15002#include <string.h>
15003int main(void)
15004{
15005	char a = 255, b = 0;
15006	if(memcmp(&a, &b, 1) < 0)
15007		return 1;
15008	return 0;
15009}
15010
15011_ACEOF
15012if ac_fn_c_try_run "$LINENO"; then :
15013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014$as_echo "yes" >&6; }
15015else
15016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017$as_echo "no" >&6; }
15018
15019$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15020
15021  case " $LIBOBJS " in
15022  *" memcmp.$ac_objext "* ) ;;
15023  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15024 ;;
15025esac
15026
15027
15028fi
15029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15030  conftest.$ac_objext conftest.beam conftest.$ac_ext
15031fi
15032
15033
15034# The cast to long int works around a bug in the HP C Compiler
15035# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15036# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15037# This bug is HP SR number 8606223364.
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15039$as_echo_n "checking size of time_t... " >&6; }
15040if ${ac_cv_sizeof_time_t+:} false; then :
15041  $as_echo_n "(cached) " >&6
15042else
15043  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
15044$ac_includes_default
15045#ifdef TIME_WITH_SYS_TIME
15046# include <sys/time.h>
15047# include <time.h>
15048#else
15049# ifdef HAVE_SYS_TIME_H
15050#  include <sys/time.h>
15051# else
15052#  include <time.h>
15053# endif
15054#endif
15055
15056"; then :
15057
15058else
15059  if test "$ac_cv_type_time_t" = yes; then
15060     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15062as_fn_error 77 "cannot compute sizeof (time_t)
15063See \`config.log' for more details" "$LINENO" 5; }
15064   else
15065     ac_cv_sizeof_time_t=0
15066   fi
15067fi
15068
15069fi
15070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15071$as_echo "$ac_cv_sizeof_time_t" >&6; }
15072
15073
15074
15075cat >>confdefs.h <<_ACEOF
15076#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15077_ACEOF
15078
15079
15080# The cast to long int works around a bug in the HP C Compiler
15081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15083# This bug is HP SR number 8606223364.
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15085$as_echo_n "checking size of size_t... " >&6; }
15086if ${ac_cv_sizeof_size_t+:} false; then :
15087  $as_echo_n "(cached) " >&6
15088else
15089  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
15090
15091else
15092  if test "$ac_cv_type_size_t" = yes; then
15093     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15095as_fn_error 77 "cannot compute sizeof (size_t)
15096See \`config.log' for more details" "$LINENO" 5; }
15097   else
15098     ac_cv_sizeof_size_t=0
15099   fi
15100fi
15101
15102fi
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15104$as_echo "$ac_cv_sizeof_size_t" >&6; }
15105
15106
15107
15108cat >>confdefs.h <<_ACEOF
15109#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15110_ACEOF
15111
15112
15113
15114# add option to disable the evil rpath
15115
15116# Check whether --enable-rpath was given.
15117if test "${enable_rpath+set}" = set; then :
15118  enableval=$enable_rpath; enable_rpath=$enableval
15119else
15120  enable_rpath=yes
15121fi
15122
15123if test "x$enable_rpath" = xno; then
15124		ac_config_commands="$ac_config_commands disable-rpath"
15125
15126fi
15127
15128
15129
15130# check to see if libraries are needed for these functions.
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15132$as_echo_n "checking for library containing inet_pton... " >&6; }
15133if ${ac_cv_search_inet_pton+:} false; then :
15134  $as_echo_n "(cached) " >&6
15135else
15136  ac_func_search_save_LIBS=$LIBS
15137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h.  */
15139
15140/* Override any GCC internal prototype to avoid an error.
15141   Use char because int might match the return type of a GCC
15142   builtin and then its argument prototype would still apply.  */
15143#ifdef __cplusplus
15144extern "C"
15145#endif
15146char inet_pton ();
15147int
15148main ()
15149{
15150return inet_pton ();
15151  ;
15152  return 0;
15153}
15154_ACEOF
15155for ac_lib in '' nsl; do
15156  if test -z "$ac_lib"; then
15157    ac_res="none required"
15158  else
15159    ac_res=-l$ac_lib
15160    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15161  fi
15162  if ac_fn_c_try_link "$LINENO"; then :
15163  ac_cv_search_inet_pton=$ac_res
15164fi
15165rm -f core conftest.err conftest.$ac_objext \
15166    conftest$ac_exeext
15167  if ${ac_cv_search_inet_pton+:} false; then :
15168  break
15169fi
15170done
15171if ${ac_cv_search_inet_pton+:} false; then :
15172
15173else
15174  ac_cv_search_inet_pton=no
15175fi
15176rm conftest.$ac_ext
15177LIBS=$ac_func_search_save_LIBS
15178fi
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15180$as_echo "$ac_cv_search_inet_pton" >&6; }
15181ac_res=$ac_cv_search_inet_pton
15182if test "$ac_res" != no; then :
15183  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15184
15185fi
15186
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15188$as_echo_n "checking for library containing socket... " >&6; }
15189if ${ac_cv_search_socket+:} false; then :
15190  $as_echo_n "(cached) " >&6
15191else
15192  ac_func_search_save_LIBS=$LIBS
15193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h.  */
15195
15196/* Override any GCC internal prototype to avoid an error.
15197   Use char because int might match the return type of a GCC
15198   builtin and then its argument prototype would still apply.  */
15199#ifdef __cplusplus
15200extern "C"
15201#endif
15202char socket ();
15203int
15204main ()
15205{
15206return socket ();
15207  ;
15208  return 0;
15209}
15210_ACEOF
15211for ac_lib in '' socket; do
15212  if test -z "$ac_lib"; then
15213    ac_res="none required"
15214  else
15215    ac_res=-l$ac_lib
15216    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15217  fi
15218  if ac_fn_c_try_link "$LINENO"; then :
15219  ac_cv_search_socket=$ac_res
15220fi
15221rm -f core conftest.err conftest.$ac_objext \
15222    conftest$ac_exeext
15223  if ${ac_cv_search_socket+:} false; then :
15224  break
15225fi
15226done
15227if ${ac_cv_search_socket+:} false; then :
15228
15229else
15230  ac_cv_search_socket=no
15231fi
15232rm conftest.$ac_ext
15233LIBS=$ac_func_search_save_LIBS
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15236$as_echo "$ac_cv_search_socket" >&6; }
15237ac_res=$ac_cv_search_socket
15238if test "$ac_res" != no; then :
15239  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15240
15241fi
15242
15243
15244# check wether strptime also works
15245
15246# check some functions of the OS before linking libs (while still runnable).
15247for ac_header in unistd.h
15248do :
15249  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15250if test "x$ac_cv_header_unistd_h" = xyes; then :
15251  cat >>confdefs.h <<_ACEOF
15252#define HAVE_UNISTD_H 1
15253_ACEOF
15254
15255fi
15256
15257done
15258
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15260$as_echo_n "checking for working chown... " >&6; }
15261if ${ac_cv_func_chown_works+:} false; then :
15262  $as_echo_n "(cached) " >&6
15263else
15264  if test "$cross_compiling" = yes; then :
15265  ac_cv_func_chown_works=no
15266else
15267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268/* end confdefs.h.  */
15269$ac_includes_default
15270#include <fcntl.h>
15271
15272int
15273main ()
15274{
15275  char *f = "conftest.chown";
15276  struct stat before, after;
15277
15278  if (creat (f, 0600) < 0)
15279    return 1;
15280  if (stat (f, &before) < 0)
15281    return 1;
15282  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15283    return 1;
15284  if (stat (f, &after) < 0)
15285    return 1;
15286  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15287
15288  ;
15289  return 0;
15290}
15291_ACEOF
15292if ac_fn_c_try_run "$LINENO"; then :
15293  ac_cv_func_chown_works=yes
15294else
15295  ac_cv_func_chown_works=no
15296fi
15297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298  conftest.$ac_objext conftest.beam conftest.$ac_ext
15299fi
15300
15301rm -f conftest.chown
15302
15303fi
15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15305$as_echo "$ac_cv_func_chown_works" >&6; }
15306if test $ac_cv_func_chown_works = yes; then
15307
15308$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15309
15310fi
15311
15312for ac_header in vfork.h
15313do :
15314  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15315if test "x$ac_cv_header_vfork_h" = xyes; then :
15316  cat >>confdefs.h <<_ACEOF
15317#define HAVE_VFORK_H 1
15318_ACEOF
15319
15320fi
15321
15322done
15323
15324for ac_func in fork vfork
15325do :
15326  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15328if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15329  cat >>confdefs.h <<_ACEOF
15330#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15331_ACEOF
15332
15333fi
15334done
15335
15336if test "x$ac_cv_func_fork" = xyes; then
15337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15338$as_echo_n "checking for working fork... " >&6; }
15339if ${ac_cv_func_fork_works+:} false; then :
15340  $as_echo_n "(cached) " >&6
15341else
15342  if test "$cross_compiling" = yes; then :
15343  ac_cv_func_fork_works=cross
15344else
15345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346/* end confdefs.h.  */
15347$ac_includes_default
15348int
15349main ()
15350{
15351
15352	  /* By Ruediger Kuhlmann. */
15353	  return fork () < 0;
15354
15355  ;
15356  return 0;
15357}
15358_ACEOF
15359if ac_fn_c_try_run "$LINENO"; then :
15360  ac_cv_func_fork_works=yes
15361else
15362  ac_cv_func_fork_works=no
15363fi
15364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15365  conftest.$ac_objext conftest.beam conftest.$ac_ext
15366fi
15367
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15370$as_echo "$ac_cv_func_fork_works" >&6; }
15371
15372else
15373  ac_cv_func_fork_works=$ac_cv_func_fork
15374fi
15375if test "x$ac_cv_func_fork_works" = xcross; then
15376  case $host in
15377    *-*-amigaos* | *-*-msdosdjgpp*)
15378      # Override, as these systems have only a dummy fork() stub
15379      ac_cv_func_fork_works=no
15380      ;;
15381    *)
15382      ac_cv_func_fork_works=yes
15383      ;;
15384  esac
15385  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15386$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15387fi
15388ac_cv_func_vfork_works=$ac_cv_func_vfork
15389if test "x$ac_cv_func_vfork" = xyes; then
15390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15391$as_echo_n "checking for working vfork... " >&6; }
15392if ${ac_cv_func_vfork_works+:} false; then :
15393  $as_echo_n "(cached) " >&6
15394else
15395  if test "$cross_compiling" = yes; then :
15396  ac_cv_func_vfork_works=cross
15397else
15398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h.  */
15400/* Thanks to Paul Eggert for this test.  */
15401$ac_includes_default
15402#include <sys/wait.h>
15403#ifdef HAVE_VFORK_H
15404# include <vfork.h>
15405#endif
15406/* On some sparc systems, changes by the child to local and incoming
15407   argument registers are propagated back to the parent.  The compiler
15408   is told about this with #include <vfork.h>, but some compilers
15409   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
15410   static variable whose address is put into a register that is
15411   clobbered by the vfork.  */
15412static void
15413#ifdef __cplusplus
15414sparc_address_test (int arg)
15415# else
15416sparc_address_test (arg) int arg;
15417#endif
15418{
15419  static pid_t child;
15420  if (!child) {
15421    child = vfork ();
15422    if (child < 0) {
15423      perror ("vfork");
15424      _exit(2);
15425    }
15426    if (!child) {
15427      arg = getpid();
15428      write(-1, "", 0);
15429      _exit (arg);
15430    }
15431  }
15432}
15433
15434int
15435main ()
15436{
15437  pid_t parent = getpid ();
15438  pid_t child;
15439
15440  sparc_address_test (0);
15441
15442  child = vfork ();
15443
15444  if (child == 0) {
15445    /* Here is another test for sparc vfork register problems.  This
15446       test uses lots of local variables, at least as many local
15447       variables as main has allocated so far including compiler
15448       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
15449       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
15450       reuse the register of parent for one of the local variables,
15451       since it will think that parent can't possibly be used any more
15452       in this routine.  Assigning to the local variable will thus
15453       munge parent in the parent process.  */
15454    pid_t
15455      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15456      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15457    /* Convince the compiler that p..p7 are live; otherwise, it might
15458       use the same hardware register for all 8 local variables.  */
15459    if (p != p1 || p != p2 || p != p3 || p != p4
15460	|| p != p5 || p != p6 || p != p7)
15461      _exit(1);
15462
15463    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15464       from child file descriptors.  If the child closes a descriptor
15465       before it execs or exits, this munges the parent's descriptor
15466       as well.  Test for this by closing stdout in the child.  */
15467    _exit(close(fileno(stdout)) != 0);
15468  } else {
15469    int status;
15470    struct stat st;
15471
15472    while (wait(&status) != child)
15473      ;
15474    return (
15475	 /* Was there some problem with vforking?  */
15476	 child < 0
15477
15478	 /* Did the child fail?  (This shouldn't happen.)  */
15479	 || status
15480
15481	 /* Did the vfork/compiler bug occur?  */
15482	 || parent != getpid()
15483
15484	 /* Did the file descriptor bug occur?  */
15485	 || fstat(fileno(stdout), &st) != 0
15486	 );
15487  }
15488}
15489_ACEOF
15490if ac_fn_c_try_run "$LINENO"; then :
15491  ac_cv_func_vfork_works=yes
15492else
15493  ac_cv_func_vfork_works=no
15494fi
15495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15496  conftest.$ac_objext conftest.beam conftest.$ac_ext
15497fi
15498
15499fi
15500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15501$as_echo "$ac_cv_func_vfork_works" >&6; }
15502
15503fi;
15504if test "x$ac_cv_func_fork_works" = xcross; then
15505  ac_cv_func_vfork_works=$ac_cv_func_vfork
15506  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15507$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15508fi
15509
15510if test "x$ac_cv_func_vfork_works" = xyes; then
15511
15512$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15513
15514else
15515
15516$as_echo "#define vfork fork" >>confdefs.h
15517
15518fi
15519if test "x$ac_cv_func_fork_works" = xyes; then
15520
15521$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15522
15523fi
15524
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15526$as_echo_n "checking return type of signal handlers... " >&6; }
15527if ${ac_cv_type_signal+:} false; then :
15528  $as_echo_n "(cached) " >&6
15529else
15530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531/* end confdefs.h.  */
15532#include <sys/types.h>
15533#include <signal.h>
15534
15535int
15536main ()
15537{
15538return *(signal (0, 0)) (0) == 1;
15539  ;
15540  return 0;
15541}
15542_ACEOF
15543if ac_fn_c_try_compile "$LINENO"; then :
15544  ac_cv_type_signal=int
15545else
15546  ac_cv_type_signal=void
15547fi
15548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549fi
15550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15551$as_echo "$ac_cv_type_signal" >&6; }
15552
15553cat >>confdefs.h <<_ACEOF
15554#define RETSIGTYPE $ac_cv_type_signal
15555_ACEOF
15556
15557
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15559$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15560if ${ac_cv_sys_largefile_source+:} false; then :
15561  $as_echo_n "(cached) " >&6
15562else
15563  while :; do
15564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565/* end confdefs.h.  */
15566#include <sys/types.h> /* for off_t */
15567     #include <stdio.h>
15568int
15569main ()
15570{
15571int (*fp) (FILE *, off_t, int) = fseeko;
15572     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15573  ;
15574  return 0;
15575}
15576_ACEOF
15577if ac_fn_c_try_link "$LINENO"; then :
15578  ac_cv_sys_largefile_source=no; break
15579fi
15580rm -f core conftest.err conftest.$ac_objext \
15581    conftest$ac_exeext conftest.$ac_ext
15582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583/* end confdefs.h.  */
15584#define _LARGEFILE_SOURCE 1
15585#include <sys/types.h> /* for off_t */
15586     #include <stdio.h>
15587int
15588main ()
15589{
15590int (*fp) (FILE *, off_t, int) = fseeko;
15591     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15592  ;
15593  return 0;
15594}
15595_ACEOF
15596if ac_fn_c_try_link "$LINENO"; then :
15597  ac_cv_sys_largefile_source=1; break
15598fi
15599rm -f core conftest.err conftest.$ac_objext \
15600    conftest$ac_exeext conftest.$ac_ext
15601  ac_cv_sys_largefile_source=unknown
15602  break
15603done
15604fi
15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15606$as_echo "$ac_cv_sys_largefile_source" >&6; }
15607case $ac_cv_sys_largefile_source in #(
15608  no | unknown) ;;
15609  *)
15610cat >>confdefs.h <<_ACEOF
15611#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15612_ACEOF
15613;;
15614esac
15615rm -rf conftest*
15616
15617# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15618# in glibc 2.1.3, but that breaks too many other things.
15619# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15620if test $ac_cv_sys_largefile_source != unknown; then
15621
15622$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15623
15624fi
15625
15626
15627# Check whether --enable-largefile was given.
15628if test "${enable_largefile+set}" = set; then :
15629  enableval=$enable_largefile;
15630fi
15631
15632if test "$enable_largefile" != no; then
15633
15634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15635$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15636if ${ac_cv_sys_largefile_CC+:} false; then :
15637  $as_echo_n "(cached) " >&6
15638else
15639  ac_cv_sys_largefile_CC=no
15640     if test "$GCC" != yes; then
15641       ac_save_CC=$CC
15642       while :; do
15643	 # IRIX 6.2 and later do not support large files by default,
15644	 # so use the C compiler's -n32 option if that helps.
15645	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h.  */
15647#include <sys/types.h>
15648 /* Check that off_t can represent 2**63 - 1 correctly.
15649    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15650    since some C++ compilers masquerading as C compilers
15651    incorrectly reject 9223372036854775807.  */
15652#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15653  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15654		       && LARGE_OFF_T % 2147483647 == 1)
15655		      ? 1 : -1];
15656int
15657main ()
15658{
15659
15660  ;
15661  return 0;
15662}
15663_ACEOF
15664	 if ac_fn_c_try_compile "$LINENO"; then :
15665  break
15666fi
15667rm -f core conftest.err conftest.$ac_objext
15668	 CC="$CC -n32"
15669	 if ac_fn_c_try_compile "$LINENO"; then :
15670  ac_cv_sys_largefile_CC=' -n32'; break
15671fi
15672rm -f core conftest.err conftest.$ac_objext
15673	 break
15674       done
15675       CC=$ac_save_CC
15676       rm -f conftest.$ac_ext
15677    fi
15678fi
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15680$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15681  if test "$ac_cv_sys_largefile_CC" != no; then
15682    CC=$CC$ac_cv_sys_largefile_CC
15683  fi
15684
15685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15686$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15687if ${ac_cv_sys_file_offset_bits+:} false; then :
15688  $as_echo_n "(cached) " >&6
15689else
15690  while :; do
15691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h.  */
15693#include <sys/types.h>
15694 /* Check that off_t can represent 2**63 - 1 correctly.
15695    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15696    since some C++ compilers masquerading as C compilers
15697    incorrectly reject 9223372036854775807.  */
15698#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15699  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15700		       && LARGE_OFF_T % 2147483647 == 1)
15701		      ? 1 : -1];
15702int
15703main ()
15704{
15705
15706  ;
15707  return 0;
15708}
15709_ACEOF
15710if ac_fn_c_try_compile "$LINENO"; then :
15711  ac_cv_sys_file_offset_bits=no; break
15712fi
15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716#define _FILE_OFFSET_BITS 64
15717#include <sys/types.h>
15718 /* Check that off_t can represent 2**63 - 1 correctly.
15719    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720    since some C++ compilers masquerading as C compilers
15721    incorrectly reject 9223372036854775807.  */
15722#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15723  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724		       && LARGE_OFF_T % 2147483647 == 1)
15725		      ? 1 : -1];
15726int
15727main ()
15728{
15729
15730  ;
15731  return 0;
15732}
15733_ACEOF
15734if ac_fn_c_try_compile "$LINENO"; then :
15735  ac_cv_sys_file_offset_bits=64; break
15736fi
15737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738  ac_cv_sys_file_offset_bits=unknown
15739  break
15740done
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15743$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15744case $ac_cv_sys_file_offset_bits in #(
15745  no | unknown) ;;
15746  *)
15747cat >>confdefs.h <<_ACEOF
15748#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15749_ACEOF
15750;;
15751esac
15752rm -rf conftest*
15753  if test $ac_cv_sys_file_offset_bits = unknown; then
15754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15755$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15756if ${ac_cv_sys_large_files+:} false; then :
15757  $as_echo_n "(cached) " >&6
15758else
15759  while :; do
15760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761/* end confdefs.h.  */
15762#include <sys/types.h>
15763 /* Check that off_t can represent 2**63 - 1 correctly.
15764    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15765    since some C++ compilers masquerading as C compilers
15766    incorrectly reject 9223372036854775807.  */
15767#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15768  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15769		       && LARGE_OFF_T % 2147483647 == 1)
15770		      ? 1 : -1];
15771int
15772main ()
15773{
15774
15775  ;
15776  return 0;
15777}
15778_ACEOF
15779if ac_fn_c_try_compile "$LINENO"; then :
15780  ac_cv_sys_large_files=no; break
15781fi
15782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784/* end confdefs.h.  */
15785#define _LARGE_FILES 1
15786#include <sys/types.h>
15787 /* Check that off_t can represent 2**63 - 1 correctly.
15788    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15789    since some C++ compilers masquerading as C compilers
15790    incorrectly reject 9223372036854775807.  */
15791#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15792  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15793		       && LARGE_OFF_T % 2147483647 == 1)
15794		      ? 1 : -1];
15795int
15796main ()
15797{
15798
15799  ;
15800  return 0;
15801}
15802_ACEOF
15803if ac_fn_c_try_compile "$LINENO"; then :
15804  ac_cv_sys_large_files=1; break
15805fi
15806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807  ac_cv_sys_large_files=unknown
15808  break
15809done
15810fi
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15812$as_echo "$ac_cv_sys_large_files" >&6; }
15813case $ac_cv_sys_large_files in #(
15814  no | unknown) ;;
15815  *)
15816cat >>confdefs.h <<_ACEOF
15817#define _LARGE_FILES $ac_cv_sys_large_files
15818_ACEOF
15819;;
15820esac
15821rm -rf conftest*
15822  fi
15823
15824
15825fi
15826
15827
15828
15829
15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15831$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15832cache=_D_LARGEFILE_SOURCE_1
15833if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15834  $as_echo_n "(cached) " >&6
15835else
15836
15837echo '
15838#include <stdio.h>
15839int test() {
15840        int a = fseeko(stdin, 0, 0);
15841        return a;
15842}
15843' > conftest.c
15844echo 'void f(){}' >>conftest.c
15845if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15846eval "cv_prog_cc_flag_needed_$cache=no"
15847else
15848
15849if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15850eval "cv_prog_cc_flag_needed_$cache=yes"
15851else
15852eval "cv_prog_cc_flag_needed_$cache=fail"
15853#echo 'Test with flag fails too!'
15854#cat conftest.c
15855#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15856#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15857#exit 1
15858fi
15859
15860fi
15861rm -f conftest conftest.c conftest.o
15862
15863fi
15864
15865if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15867$as_echo "yes" >&6; }
15868:
15869CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15870else
15871if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873$as_echo "no" >&6; }
15874#echo 'Test with flag is no!'
15875#cat conftest.c
15876#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15877#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15878#exit 1
15879:
15880
15881else
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15883$as_echo "failed" >&6; }
15884:
15885
15886fi
15887fi
15888
15889
15890
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15892$as_echo_n "checking if nonblocking sockets work... " >&6; }
15893if echo $target | grep mingw32 >/dev/null; then
15894	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15895$as_echo "no (windows)" >&6; }
15896
15897$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15898
15899else
15900if test "$cross_compiling" = yes; then :
15901
15902	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15903$as_echo "crosscompile(yes)" >&6; }
15904
15905else
15906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907/* end confdefs.h.  */
15908
15909
15910#include <stdio.h>
15911#include <string.h>
15912#include <stdlib.h>
15913#include <fcntl.h>
15914#include <errno.h>
15915#ifdef HAVE_SYS_TYPES_H
15916#include <sys/types.h>
15917#endif
15918#ifdef HAVE_SYS_SOCKET_H
15919#include <sys/socket.h>
15920#endif
15921#ifdef HAVE_NETINET_IN_H
15922#include <netinet/in.h>
15923#endif
15924#ifdef HAVE_ARPA_INET_H
15925#include <arpa/inet.h>
15926#endif
15927#ifdef HAVE_UNISTD_H
15928#include <unistd.h>
15929#endif
15930#ifdef HAVE_TIME_H
15931#include <time.h>
15932#endif
15933
15934int main(void)
15935{
15936	int port;
15937	int sfd, cfd;
15938	int num = 10;
15939	int i, p;
15940	struct sockaddr_in a;
15941	/* test if select and nonblocking reads work well together */
15942	/* open port.
15943	   fork child to send 10 messages.
15944	   select to read.
15945	   then try to nonblocking read the 10 messages
15946	   then, nonblocking read must give EAGAIN
15947	*/
15948
15949	port = 12345 + (time(0)%32);
15950	sfd = socket(PF_INET, SOCK_DGRAM, 0);
15951	if(sfd == -1) {
15952		perror("socket");
15953		return 1;
15954	}
15955	memset(&a, 0, sizeof(a));
15956	a.sin_family = AF_INET;
15957	a.sin_port = htons(port);
15958	a.sin_addr.s_addr = inet_addr("127.0.0.1");
15959	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15960		perror("bind");
15961		return 1;
15962	}
15963	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15964		perror("fcntl");
15965		return 1;
15966	}
15967
15968	cfd = socket(PF_INET, SOCK_DGRAM, 0);
15969	if(cfd == -1) {
15970		perror("client socket");
15971		return 1;
15972	}
15973	a.sin_port = 0;
15974	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15975		perror("client bind");
15976		return 1;
15977	}
15978	a.sin_port = htons(port);
15979
15980	/* no handler, causes exit in 10 seconds */
15981	alarm(10);
15982
15983	/* send and receive on the socket */
15984	if((p=fork()) == 0) {
15985		for(i=0; i<num; i++) {
15986			if(sendto(cfd, &i, sizeof(i), 0,
15987				(struct sockaddr*)&a, sizeof(a)) < 0) {
15988				perror("sendto");
15989				return 1;
15990			}
15991		}
15992	} else {
15993		/* parent */
15994		fd_set rset;
15995		int x;
15996		if(p == -1) {
15997			perror("fork");
15998			return 1;
15999		}
16000		FD_ZERO(&rset);
16001		FD_SET(sfd, &rset);
16002		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16003			perror("select");
16004			return 1;
16005		}
16006		i = 0;
16007		while(i < num) {
16008			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16009				if(errno == EAGAIN)
16010					continue;
16011				perror("recv");
16012				return 1;
16013			}
16014			i++;
16015		}
16016		/* now we want to get EAGAIN: nonblocking goodness */
16017		errno = 0;
16018		recv(sfd, &x, sizeof(x), 0);
16019		if(errno != EAGAIN) {
16020			perror("trying to recv again");
16021			return 1;
16022		}
16023		/* EAGAIN encountered */
16024	}
16025
16026	close(sfd);
16027	close(cfd);
16028	return 0;
16029}
16030
16031_ACEOF
16032if ac_fn_c_try_run "$LINENO"; then :
16033
16034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035$as_echo "yes" >&6; }
16036
16037else
16038
16039	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040$as_echo "no" >&6; }
16041
16042$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16043
16044
16045fi
16046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16047  conftest.$ac_objext conftest.beam conftest.$ac_ext
16048fi
16049
16050fi
16051
16052
16053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16054$as_echo_n "checking whether mkdir has one arg... " >&6; }
16055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056/* end confdefs.h.  */
16057
16058#include <stdio.h>
16059#include <unistd.h>
16060#ifdef HAVE_WINSOCK2_H
16061#include <winsock2.h>
16062#endif
16063#ifdef HAVE_SYS_STAT_H
16064#include <sys/stat.h>
16065#endif
16066
16067int
16068main ()
16069{
16070
16071	(void)mkdir("directory");
16072
16073  ;
16074  return 0;
16075}
16076_ACEOF
16077if ac_fn_c_try_compile "$LINENO"; then :
16078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16079$as_echo "yes" >&6; }
16080
16081$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16082
16083
16084else
16085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086$as_echo "no" >&6; }
16087
16088fi
16089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090
16091for ac_func in strptime
16092do :
16093  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16094if test "x$ac_cv_func_strptime" = xyes; then :
16095  cat >>confdefs.h <<_ACEOF
16096#define HAVE_STRPTIME 1
16097_ACEOF
16098
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16100$as_echo_n "checking whether strptime works... " >&6; }
16101if test c${cross_compiling} = cno; then
16102if test "$cross_compiling" = yes; then :
16103  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16105as_fn_error $? "cannot run test program while cross compiling
16106See \`config.log' for more details" "$LINENO" 5; }
16107else
16108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109/* end confdefs.h.  */
16110
16111#define _XOPEN_SOURCE 600
16112#include <time.h>
16113int main(void) { struct tm tm; char *res;
16114res = 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);
16115if (!res) return 2;
16116res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16117if (!res) return 1; return 0; }
16118
16119_ACEOF
16120if ac_fn_c_try_run "$LINENO"; then :
16121  eval "ac_cv_c_strptime_works=yes"
16122else
16123  eval "ac_cv_c_strptime_works=no"
16124fi
16125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16126  conftest.$ac_objext conftest.beam conftest.$ac_ext
16127fi
16128
16129else
16130eval "ac_cv_c_strptime_works=maybe"
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16133$as_echo "$ac_cv_c_strptime_works" >&6; }
16134if test $ac_cv_c_strptime_works = no; then
16135case " $LIBOBJS " in
16136  *" strptime.$ac_objext "* ) ;;
16137  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16138 ;;
16139esac
16140
16141else
16142
16143cat >>confdefs.h <<_ACEOF
16144#define STRPTIME_WORKS 1
16145_ACEOF
16146
16147fi
16148
16149else
16150  case " $LIBOBJS " in
16151  *" strptime.$ac_objext "* ) ;;
16152  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16153 ;;
16154esac
16155
16156fi
16157done
16158
16159
16160# check if we can use SO_REUSEPORT
16161if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then
16162
16163$as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16164
16165else
16166
16167$as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16168
16169fi
16170
16171# Include systemd.m4 - begin
16172#   macros for configuring systemd
16173#   Copyright 2015, Sami Kerola, CloudFlare.
16174#   BSD licensed.
16175# Check whether --enable-systemd was given.
16176if test "${enable_systemd+set}" = set; then :
16177  enableval=$enable_systemd;
16178else
16179  enable_systemd=no
16180fi
16181
16182have_systemd=no
16183if test "x$enable_systemd" != xno; then :
16184
16185
16186
16187pkg_failed=no
16188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16189$as_echo_n "checking for SYSTEMD... " >&6; }
16190
16191if test -n "$SYSTEMD_CFLAGS"; then
16192    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16193 elif test -n "$PKG_CONFIG"; then
16194    if test -n "$PKG_CONFIG" && \
16195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16196  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16197  ac_status=$?
16198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16199  test $ac_status = 0; }; then
16200  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16201		      test "x$?" != "x0" && pkg_failed=yes
16202else
16203  pkg_failed=yes
16204fi
16205 else
16206    pkg_failed=untried
16207fi
16208if test -n "$SYSTEMD_LIBS"; then
16209    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16210 elif test -n "$PKG_CONFIG"; then
16211    if test -n "$PKG_CONFIG" && \
16212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16213  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16214  ac_status=$?
16215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16216  test $ac_status = 0; }; then
16217  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16218		      test "x$?" != "x0" && pkg_failed=yes
16219else
16220  pkg_failed=yes
16221fi
16222 else
16223    pkg_failed=untried
16224fi
16225
16226
16227
16228if test $pkg_failed = yes; then
16229   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230$as_echo "no" >&6; }
16231
16232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16233        _pkg_short_errors_supported=yes
16234else
16235        _pkg_short_errors_supported=no
16236fi
16237        if test $_pkg_short_errors_supported = yes; then
16238	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16239        else
16240	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16241        fi
16242	# Put the nasty error message in config.log where it belongs
16243	echo "$SYSTEMD_PKG_ERRORS" >&5
16244
16245	have_systemd=no
16246elif test $pkg_failed = untried; then
16247     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248$as_echo "no" >&6; }
16249	have_systemd=no
16250else
16251	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16252	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16254$as_echo "yes" >&6; }
16255	have_systemd=yes
16256fi
16257		if test "x$have_systemd" != "xyes"; then :
16258
16259
16260pkg_failed=no
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16262$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16263
16264if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16265    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16266 elif test -n "$PKG_CONFIG"; then
16267    if test -n "$PKG_CONFIG" && \
16268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16269  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16270  ac_status=$?
16271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272  test $ac_status = 0; }; then
16273  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16274		      test "x$?" != "x0" && pkg_failed=yes
16275else
16276  pkg_failed=yes
16277fi
16278 else
16279    pkg_failed=untried
16280fi
16281if test -n "$SYSTEMD_DAEMON_LIBS"; then
16282    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16283 elif test -n "$PKG_CONFIG"; then
16284    if test -n "$PKG_CONFIG" && \
16285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16286  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16287  ac_status=$?
16288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289  test $ac_status = 0; }; then
16290  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16291		      test "x$?" != "x0" && pkg_failed=yes
16292else
16293  pkg_failed=yes
16294fi
16295 else
16296    pkg_failed=untried
16297fi
16298
16299
16300
16301if test $pkg_failed = yes; then
16302   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16303$as_echo "no" >&6; }
16304
16305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16306        _pkg_short_errors_supported=yes
16307else
16308        _pkg_short_errors_supported=no
16309fi
16310        if test $_pkg_short_errors_supported = yes; then
16311	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16312        else
16313	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16314        fi
16315	# Put the nasty error message in config.log where it belongs
16316	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16317
16318	have_systemd_daemon=no
16319elif test $pkg_failed = untried; then
16320     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321$as_echo "no" >&6; }
16322	have_systemd_daemon=no
16323else
16324	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16325	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16327$as_echo "yes" >&6; }
16328	have_systemd_daemon=yes
16329fi
16330		if test "x$have_systemd_daemon" = "xyes"; then :
16331  have_systemd=yes
16332fi
16333
16334fi
16335	case $enable_systemd:$have_systemd in #(
16336  yes:no) :
16337    as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16338  *:yes) :
16339
16340$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16341
16342		LIBS="$LIBS $SYSTEMD_LIBS"
16343
16344	 ;; #(
16345  *) :
16346     ;;
16347esac
16348
16349
16350fi
16351 if test "x$have_systemd" = xyes; then
16352  USE_SYSTEMD_TRUE=
16353  USE_SYSTEMD_FALSE='#'
16354else
16355  USE_SYSTEMD_TRUE='#'
16356  USE_SYSTEMD_FALSE=
16357fi
16358
16359
16360# Include systemd.m4 - end
16361
16362# set memory allocation checking if requested
16363# Check whether --enable-alloc-checks was given.
16364if test "${enable_alloc_checks+set}" = set; then :
16365  enableval=$enable_alloc_checks;
16366fi
16367
16368# Check whether --enable-alloc-lite was given.
16369if test "${enable_alloc_lite+set}" = set; then :
16370  enableval=$enable_alloc_lite;
16371fi
16372
16373# Check whether --enable-alloc-nonregional was given.
16374if test "${enable_alloc_nonregional+set}" = set; then :
16375  enableval=$enable_alloc_nonregional;
16376fi
16377
16378if test x_$enable_alloc_nonregional = x_yes; then
16379
16380$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16381
16382fi
16383if test x_$enable_alloc_checks = x_yes; then
16384
16385$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16386
16387	SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16388
16389	ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16390
16391else
16392	if test x_$enable_alloc_lite = x_yes; then
16393
16394$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16395
16396	else
16397
16398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16399$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16400	if test "$cross_compiling" = yes; then :
16401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16402$as_echo "no (crosscompile)" >&6; }
16403	case " $LIBOBJS " in
16404  *" malloc.$ac_objext "* ) ;;
16405  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16406 ;;
16407esac
16408
16409
16410cat >>confdefs.h <<_ACEOF
16411#define malloc rpl_malloc_unbound
16412_ACEOF
16413
16414else
16415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416/* end confdefs.h.  */
16417#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16418#include <stdlib.h>
16419#else
16420char *malloc ();
16421#endif
16422
16423int
16424main ()
16425{
16426 if(malloc(0) != 0) return 1;
16427  ;
16428  return 0;
16429}
16430
16431_ACEOF
16432if ac_fn_c_try_run "$LINENO"; then :
16433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434$as_echo "no" >&6; }
16435	case " $LIBOBJS " in
16436  *" malloc.$ac_objext "* ) ;;
16437  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16438 ;;
16439esac
16440
16441
16442cat >>confdefs.h <<_ACEOF
16443#define malloc rpl_malloc_unbound
16444_ACEOF
16445
16446else
16447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448$as_echo "yes" >&6; }
16449
16450$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16451
16452fi
16453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16454  conftest.$ac_objext conftest.beam conftest.$ac_ext
16455fi
16456
16457
16458	fi
16459fi
16460
16461# check windows threads (we use them, not pthreads, on windows).
16462if test "$on_mingw" = "yes"; then
16463# check windows threads
16464	for ac_header in windows.h
16465do :
16466  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16467"
16468if test "x$ac_cv_header_windows_h" = xyes; then :
16469  cat >>confdefs.h <<_ACEOF
16470#define HAVE_WINDOWS_H 1
16471_ACEOF
16472
16473fi
16474
16475done
16476
16477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16478$as_echo_n "checking for CreateThread... " >&6; }
16479	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481
16482#ifdef HAVE_WINDOWS_H
16483#include <windows.h>
16484#endif
16485
16486int
16487main ()
16488{
16489
16490	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16491
16492  ;
16493  return 0;
16494}
16495_ACEOF
16496if ac_fn_c_try_compile "$LINENO"; then :
16497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16498$as_echo "yes" >&6; }
16499
16500$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16501
16502
16503else
16504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505$as_echo "no" >&6; }
16506
16507fi
16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509
16510else
16511# not on mingw, check thread libraries.
16512
16513# check for thread library.
16514# check this first, so that the pthread lib does not get linked in via
16515# libssl or libpython, and thus distorts the tests, and we end up using
16516# the non-threadsafe C libraries.
16517
16518# Check whether --with-pthreads was given.
16519if test "${with_pthreads+set}" = set; then :
16520  withval=$with_pthreads;
16521else
16522   withval="yes"
16523fi
16524
16525ub_have_pthreads=no
16526if test x_$withval != x_no; then
16527
16528
16529ac_ext=c
16530ac_cpp='$CPP $CPPFLAGS'
16531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533ac_compiler_gnu=$ac_cv_c_compiler_gnu
16534
16535ax_pthread_ok=no
16536
16537# We used to check for pthread.h first, but this fails if pthread.h
16538# requires special compiler flags (e.g. on True64 or Sequent).
16539# It gets checked for in the link test anyway.
16540
16541# First of all, check if the user has set any of the PTHREAD_LIBS,
16542# etcetera environment variables, and if threads linking works using
16543# them:
16544if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16545        save_CFLAGS="$CFLAGS"
16546        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16547        save_LIBS="$LIBS"
16548        LIBS="$PTHREAD_LIBS $LIBS"
16549        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16550$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16551        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h.  */
16553
16554/* Override any GCC internal prototype to avoid an error.
16555   Use char because int might match the return type of a GCC
16556   builtin and then its argument prototype would still apply.  */
16557#ifdef __cplusplus
16558extern "C"
16559#endif
16560char pthread_join ();
16561int
16562main ()
16563{
16564return pthread_join ();
16565  ;
16566  return 0;
16567}
16568_ACEOF
16569if ac_fn_c_try_link "$LINENO"; then :
16570  ax_pthread_ok=yes
16571fi
16572rm -f core conftest.err conftest.$ac_objext \
16573    conftest$ac_exeext conftest.$ac_ext
16574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16575$as_echo "$ax_pthread_ok" >&6; }
16576        if test x"$ax_pthread_ok" = xno; then
16577                PTHREAD_LIBS=""
16578                PTHREAD_CFLAGS=""
16579        fi
16580        LIBS="$save_LIBS"
16581        CFLAGS="$save_CFLAGS"
16582fi
16583
16584# We must check for the threads library under a number of different
16585# names; the ordering is very important because some systems
16586# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16587# libraries is broken (non-POSIX).
16588
16589# Create a list of thread flags to try.  Items starting with a "-" are
16590# C compiler flags, and other items are library names, except for "none"
16591# which indicates that we try without any flags at all, and "pthread-config"
16592# which is a program returning the flags for the Pth emulation library.
16593
16594ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16595
16596# The ordering *is* (sometimes) important.  Some notes on the
16597# individual items follow:
16598
16599# pthreads: AIX (must check this before -lpthread)
16600# none: in case threads are in libc; should be tried before -Kthread and
16601#       other compiler flags to prevent continual compiler warnings
16602# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16603# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16604# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16605# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16606# -pthreads: Solaris/gcc
16607# -mthreads: Mingw32/gcc, Lynx/gcc
16608# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16609#      doesn't hurt to check since this sometimes defines pthreads too;
16610#      also defines -D_REENTRANT)
16611#      ... -mt is also the pthreads flag for HP/aCC
16612# pthread: Linux, etcetera
16613# --thread-safe: KAI C++
16614# pthread-config: use pthread-config program (for GNU Pth library)
16615
16616case ${host_os} in
16617        solaris*)
16618
16619        # On Solaris (at least, for some versions), libc contains stubbed
16620        # (non-functional) versions of the pthreads routines, so link-based
16621        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16622        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16623        # a function called by this macro, so we could check for that, but
16624        # who knows whether they'll stub that too in a future libc.)  So,
16625        # we'll just look for -pthreads and -lpthread first:
16626
16627        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16628        ;;
16629
16630        darwin*)
16631        ax_pthread_flags="-pthread $ax_pthread_flags"
16632        ;;
16633esac
16634
16635# Clang doesn't consider unrecognized options an error unless we specify
16636# -Werror. We throw in some extra Clang-specific options to ensure that
16637# this doesn't happen for GCC, which also accepts -Werror.
16638
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16640$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16641save_CFLAGS="$CFLAGS"
16642ax_pthread_extra_flags="-Werror"
16643CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646int foo(void);
16647int
16648main ()
16649{
16650foo()
16651  ;
16652  return 0;
16653}
16654_ACEOF
16655if ac_fn_c_try_compile "$LINENO"; then :
16656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16657$as_echo "yes" >&6; }
16658else
16659  ax_pthread_extra_flags=
16660                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661$as_echo "no" >&6; }
16662fi
16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664CFLAGS="$save_CFLAGS"
16665
16666if test x"$ax_pthread_ok" = xno; then
16667for flag in $ax_pthread_flags; do
16668
16669        case $flag in
16670                none)
16671                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16672$as_echo_n "checking whether pthreads work without any flags... " >&6; }
16673                ;;
16674
16675                -*)
16676                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16677$as_echo_n "checking whether pthreads work with $flag... " >&6; }
16678                PTHREAD_CFLAGS="$flag"
16679                ;;
16680
16681                pthread-config)
16682                # Extract the first word of "pthread-config", so it can be a program name with args.
16683set dummy pthread-config; ac_word=$2
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685$as_echo_n "checking for $ac_word... " >&6; }
16686if ${ac_cv_prog_ax_pthread_config+:} false; then :
16687  $as_echo_n "(cached) " >&6
16688else
16689  if test -n "$ax_pthread_config"; then
16690  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16691else
16692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693for as_dir in $PATH
16694do
16695  IFS=$as_save_IFS
16696  test -z "$as_dir" && as_dir=.
16697    for ac_exec_ext in '' $ac_executable_extensions; do
16698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699    ac_cv_prog_ax_pthread_config="yes"
16700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701    break 2
16702  fi
16703done
16704  done
16705IFS=$as_save_IFS
16706
16707  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16708fi
16709fi
16710ax_pthread_config=$ac_cv_prog_ax_pthread_config
16711if test -n "$ax_pthread_config"; then
16712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16713$as_echo "$ax_pthread_config" >&6; }
16714else
16715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716$as_echo "no" >&6; }
16717fi
16718
16719
16720                if test x"$ax_pthread_config" = xno; then continue; fi
16721                PTHREAD_CFLAGS="`pthread-config --cflags`"
16722                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16723                ;;
16724
16725                *)
16726                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16727$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16728                PTHREAD_LIBS="-l$flag"
16729                ;;
16730        esac
16731
16732        save_LIBS="$LIBS"
16733        save_CFLAGS="$CFLAGS"
16734        LIBS="$PTHREAD_LIBS $LIBS"
16735        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16736
16737        # Check for various functions.  We must include pthread.h,
16738        # since some functions may be macros.  (On the Sequent, we
16739        # need a special flag -Kthread to make this header compile.)
16740        # We check for pthread_join because it is in -lpthread on IRIX
16741        # while pthread_create is in libc.  We check for pthread_attr_init
16742        # due to DEC craziness with -lpthreads.  We check for
16743        # pthread_cleanup_push because it is one of the few pthread
16744        # functions on Solaris that doesn't have a non-functional libc stub.
16745        # We try pthread_create on general principles.
16746        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748#include <pthread.h>
16749                        static void routine(void *a) { *((int*)a) = 0; }
16750                        static void *start_routine(void *a) { return a; }
16751int
16752main ()
16753{
16754pthread_t th; pthread_attr_t attr;
16755                        pthread_create(&th, 0, start_routine, 0);
16756                        pthread_join(th, 0);
16757                        pthread_attr_init(&attr);
16758                        pthread_cleanup_push(routine, 0);
16759                        pthread_cleanup_pop(0) /* ; */
16760  ;
16761  return 0;
16762}
16763_ACEOF
16764if ac_fn_c_try_link "$LINENO"; then :
16765  ax_pthread_ok=yes
16766fi
16767rm -f core conftest.err conftest.$ac_objext \
16768    conftest$ac_exeext conftest.$ac_ext
16769
16770        LIBS="$save_LIBS"
16771        CFLAGS="$save_CFLAGS"
16772
16773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16774$as_echo "$ax_pthread_ok" >&6; }
16775        if test "x$ax_pthread_ok" = xyes; then
16776                break;
16777        fi
16778
16779        PTHREAD_LIBS=""
16780        PTHREAD_CFLAGS=""
16781done
16782fi
16783
16784# Various other checks:
16785if test "x$ax_pthread_ok" = xyes; then
16786        save_LIBS="$LIBS"
16787        LIBS="$PTHREAD_LIBS $LIBS"
16788        save_CFLAGS="$CFLAGS"
16789        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16790
16791        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16793$as_echo_n "checking for joinable pthread attribute... " >&6; }
16794        attr_name=unknown
16795        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16796            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h.  */
16798#include <pthread.h>
16799int
16800main ()
16801{
16802int attr = $attr; return attr /* ; */
16803  ;
16804  return 0;
16805}
16806_ACEOF
16807if ac_fn_c_try_link "$LINENO"; then :
16808  attr_name=$attr; break
16809fi
16810rm -f core conftest.err conftest.$ac_objext \
16811    conftest$ac_exeext conftest.$ac_ext
16812        done
16813        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16814$as_echo "$attr_name" >&6; }
16815        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16816
16817cat >>confdefs.h <<_ACEOF
16818#define PTHREAD_CREATE_JOINABLE $attr_name
16819_ACEOF
16820
16821        fi
16822
16823        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16824$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16825        flag=no
16826        case ${host_os} in
16827            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16828            osf* | hpux*) flag="-D_REENTRANT";;
16829            solaris*)
16830            if test "$GCC" = "yes"; then
16831                flag="-D_REENTRANT"
16832            else
16833                # TODO: What about Clang on Solaris?
16834                flag="-mt -D_REENTRANT"
16835            fi
16836            ;;
16837        esac
16838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16839$as_echo "$flag" >&6; }
16840        if test "x$flag" != xno; then
16841            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16842        fi
16843
16844        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16845$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16846if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849
16850                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851/* end confdefs.h.  */
16852#include <pthread.h>
16853int
16854main ()
16855{
16856int i = PTHREAD_PRIO_INHERIT;
16857  ;
16858  return 0;
16859}
16860_ACEOF
16861if ac_fn_c_try_link "$LINENO"; then :
16862  ax_cv_PTHREAD_PRIO_INHERIT=yes
16863else
16864  ax_cv_PTHREAD_PRIO_INHERIT=no
16865fi
16866rm -f core conftest.err conftest.$ac_objext \
16867    conftest$ac_exeext conftest.$ac_ext
16868
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16871$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16872        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16873
16874$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16875
16876fi
16877
16878        LIBS="$save_LIBS"
16879        CFLAGS="$save_CFLAGS"
16880
16881        # More AIX lossage: compile with *_r variant
16882        if test "x$GCC" != xyes; then
16883            case $host_os in
16884                aix*)
16885                case "x/$CC" in #(
16886  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16887    #handle absolute path differently from PATH based program lookup
16888                   case "x$CC" in #(
16889  x/*) :
16890    if as_fn_executable_p ${CC}_r; then :
16891  PTHREAD_CC="${CC}_r"
16892fi ;; #(
16893  *) :
16894    for ac_prog in ${CC}_r
16895do
16896  # Extract the first word of "$ac_prog", so it can be a program name with args.
16897set dummy $ac_prog; ac_word=$2
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16899$as_echo_n "checking for $ac_word... " >&6; }
16900if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  if test -n "$PTHREAD_CC"; then
16904  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16905else
16906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16907for as_dir in $PATH
16908do
16909  IFS=$as_save_IFS
16910  test -z "$as_dir" && as_dir=.
16911    for ac_exec_ext in '' $ac_executable_extensions; do
16912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16913    ac_cv_prog_PTHREAD_CC="$ac_prog"
16914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16915    break 2
16916  fi
16917done
16918  done
16919IFS=$as_save_IFS
16920
16921fi
16922fi
16923PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16924if test -n "$PTHREAD_CC"; then
16925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16926$as_echo "$PTHREAD_CC" >&6; }
16927else
16928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16929$as_echo "no" >&6; }
16930fi
16931
16932
16933  test -n "$PTHREAD_CC" && break
16934done
16935test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16936 ;;
16937esac ;; #(
16938  *) :
16939     ;;
16940esac
16941                ;;
16942            esac
16943        fi
16944fi
16945
16946test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16947
16948
16949
16950
16951
16952# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16953if test x"$ax_pthread_ok" = xyes; then
16954
16955
16956$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16957
16958		if test -n "$PTHREAD_LIBS"; then
16959		  LIBS="$PTHREAD_LIBS $LIBS"
16960		fi
16961		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16962		CC="$PTHREAD_CC"
16963		ub_have_pthreads=yes
16964		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16965"
16966if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16967
16968cat >>confdefs.h <<_ACEOF
16969#define HAVE_PTHREAD_SPINLOCK_T 1
16970_ACEOF
16971
16972
16973fi
16974ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16975"
16976if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16977
16978cat >>confdefs.h <<_ACEOF
16979#define HAVE_PTHREAD_RWLOCK_T 1
16980_ACEOF
16981
16982
16983fi
16984
16985
16986		if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16988$as_echo_n "checking if -pthread unused during linking... " >&6; }
16989		# catch clang warning 'argument unused during compilation'
16990		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991/* end confdefs.h.  */
16992$ac_includes_default
16993
16994int main(void) {return 0;}
16995
16996_ACEOF
16997		pthread_unused="yes"
16998		# first compile
16999		echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17000		$CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17001		if test $? = 0; then
17002			# then link
17003			echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17004			$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17005			if test $? -ne 0; then
17006				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17007$as_echo "yes" >&6; }
17008				CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17009				PTHREAD_CFLAGS_ONLY="-pthread"
17010
17011			else
17012				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013$as_echo "no" >&6; }
17014			fi
17015		else
17016			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017$as_echo "no" >&6; }
17018		fi # endif cc successful
17019		rm -f conftest conftest.c conftest.o
17020		fi # endif -pthread in CFLAGS
17021
17022
17023        :
17024else
17025        ax_pthread_ok=no
17026
17027fi
17028ac_ext=c
17029ac_cpp='$CPP $CPPFLAGS'
17030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032ac_compiler_gnu=$ac_cv_c_compiler_gnu
17033
17034
17035fi
17036
17037# check solaris thread library
17038
17039# Check whether --with-solaris-threads was given.
17040if test "${with_solaris_threads+set}" = set; then :
17041  withval=$with_solaris_threads;
17042else
17043   withval="no"
17044fi
17045
17046ub_have_sol_threads=no
17047if test x_$withval != x_no; then
17048	if test x_$ub_have_pthreads != x_no; then
17049	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17050$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17051	else
17052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17053$as_echo_n "checking for library containing thr_create... " >&6; }
17054if ${ac_cv_search_thr_create+:} false; then :
17055  $as_echo_n "(cached) " >&6
17056else
17057  ac_func_search_save_LIBS=$LIBS
17058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059/* end confdefs.h.  */
17060
17061/* Override any GCC internal prototype to avoid an error.
17062   Use char because int might match the return type of a GCC
17063   builtin and then its argument prototype would still apply.  */
17064#ifdef __cplusplus
17065extern "C"
17066#endif
17067char thr_create ();
17068int
17069main ()
17070{
17071return thr_create ();
17072  ;
17073  return 0;
17074}
17075_ACEOF
17076for ac_lib in '' thread; do
17077  if test -z "$ac_lib"; then
17078    ac_res="none required"
17079  else
17080    ac_res=-l$ac_lib
17081    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17082  fi
17083  if ac_fn_c_try_link "$LINENO"; then :
17084  ac_cv_search_thr_create=$ac_res
17085fi
17086rm -f core conftest.err conftest.$ac_objext \
17087    conftest$ac_exeext
17088  if ${ac_cv_search_thr_create+:} false; then :
17089  break
17090fi
17091done
17092if ${ac_cv_search_thr_create+:} false; then :
17093
17094else
17095  ac_cv_search_thr_create=no
17096fi
17097rm conftest.$ac_ext
17098LIBS=$ac_func_search_save_LIBS
17099fi
17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17101$as_echo "$ac_cv_search_thr_create" >&6; }
17102ac_res=$ac_cv_search_thr_create
17103if test "$ac_res" != no; then :
17104  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17105
17106
17107$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17108
17109
17110
17111
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17113$as_echo_n "checking whether $CC supports -mt... " >&6; }
17114cache=`echo mt | sed 'y%.=/+-%___p_%'`
17115if eval \${cv_prog_cc_flag_$cache+:} false; then :
17116  $as_echo_n "(cached) " >&6
17117else
17118
17119echo 'void f(void){}' >conftest.c
17120if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17121eval "cv_prog_cc_flag_$cache=yes"
17122else
17123eval "cv_prog_cc_flag_$cache=no"
17124fi
17125rm -f conftest conftest.o conftest.c
17126
17127fi
17128
17129if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131$as_echo "yes" >&6; }
17132:
17133CFLAGS="$CFLAGS -mt"
17134else
17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136$as_echo "no" >&6; }
17137:
17138CFLAGS="$CFLAGS -D_REENTRANT"
17139fi
17140
17141		ub_have_sol_threads=yes
17142
17143else
17144
17145		as_fn_error $? "no solaris threads found." "$LINENO" 5
17146
17147fi
17148
17149	fi
17150fi
17151
17152fi # end of non-mingw check of thread libraries
17153
17154# Check for SYSLOG_FACILITY
17155
17156# Check whether --with-syslog-facility was given.
17157if test "${with_syslog_facility+set}" = set; then :
17158  withval=$with_syslog_facility;  UNBOUND_SYSLOG_FACILITY="$withval"
17159fi
17160
17161case "${UNBOUND_SYSLOG_FACILITY}" in
17162
17163  LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17164
17165           *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17166
17167esac
17168
17169cat >>confdefs.h <<_ACEOF
17170#define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17171_ACEOF
17172
17173
17174# Check for PyUnbound
17175
17176# Check whether --with-pyunbound was given.
17177if test "${with_pyunbound+set}" = set; then :
17178  withval=$with_pyunbound;
17179else
17180   withval="no"
17181fi
17182
17183
17184ub_test_python=no
17185ub_with_pyunbound=no
17186if test x_$withval != x_no; then
17187   ub_with_pyunbound=yes
17188   ub_test_python=yes
17189fi
17190
17191# Check for Python module
17192
17193# Check whether --with-pythonmodule was given.
17194if test "${with_pythonmodule+set}" = set; then :
17195  withval=$with_pythonmodule;
17196else
17197   withval="no"
17198fi
17199
17200
17201ub_with_pythonmod=no
17202if test x_$withval != x_no; then
17203   ub_with_pythonmod=yes
17204   ub_test_python=yes
17205fi
17206
17207# Check for Python & SWIG only on PyUnbound or PyModule
17208if test x_$ub_test_python != x_no; then
17209
17210   # Check for Python
17211   ub_have_python=no
17212   ac_save_LIBS="$LIBS"
17213        #
17214        # Allow the use of a (user set) custom python version
17215        #
17216
17217
17218        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17219set dummy python$PYTHON_VERSION; ac_word=$2
17220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17221$as_echo_n "checking for $ac_word... " >&6; }
17222if ${ac_cv_path_PYTHON+:} false; then :
17223  $as_echo_n "(cached) " >&6
17224else
17225  case $PYTHON in
17226  [\\/]* | ?:[\\/]*)
17227  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17228  ;;
17229  *)
17230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231for as_dir in $PATH
17232do
17233  IFS=$as_save_IFS
17234  test -z "$as_dir" && as_dir=.
17235    for ac_exec_ext in '' $ac_executable_extensions; do
17236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17237    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17239    break 2
17240  fi
17241done
17242  done
17243IFS=$as_save_IFS
17244
17245  ;;
17246esac
17247fi
17248PYTHON=$ac_cv_path_PYTHON
17249if test -n "$PYTHON"; then
17250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17251$as_echo "$PYTHON" >&6; }
17252else
17253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254$as_echo "no" >&6; }
17255fi
17256
17257
17258        if test -z "$PYTHON"; then
17259           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17260           PYTHON_VERSION=""
17261        fi
17262
17263        if test -z "$PYTHON_VERSION"; then
17264		PYTHON_VERSION=`$PYTHON -c "import sys; \
17265			print(sys.version.split()[0])"`
17266	fi
17267
17268        #
17269        # Check if you have distutils, else fail
17270        #
17271        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17272$as_echo_n "checking for the distutils Python package... " >&6; }
17273        if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17274                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275$as_echo "yes" >&6; }
17276        else
17277                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278$as_echo "no" >&6; }
17279                as_fn_error $? "cannot import Python module \"distutils\".
17280Please check your Python installation. The error was:
17281$ac_distutils_result" "$LINENO" 5
17282                PYTHON_VERSION=""
17283        fi
17284
17285        #
17286        # Check for Python include path
17287        #
17288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17289$as_echo_n "checking for Python include path... " >&6; }
17290        if test -z "$PYTHON_CPPFLAGS"; then
17291                python_path=`$PYTHON -c "import distutils.sysconfig; \
17292                        print(distutils.sysconfig.get_python_inc());"`
17293                if test -n "${python_path}"; then
17294                        python_path="-I$python_path"
17295                fi
17296                PYTHON_CPPFLAGS=$python_path
17297        fi
17298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17299$as_echo "$PYTHON_CPPFLAGS" >&6; }
17300
17301
17302        #
17303        # Check for Python library path
17304        #
17305        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17306$as_echo_n "checking for Python library path... " >&6; }
17307        if test -z "$PYTHON_LDFLAGS"; then
17308                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17309                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17310        fi
17311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17312$as_echo "$PYTHON_LDFLAGS" >&6; }
17313
17314
17315        #
17316        # Check for site packages
17317        #
17318        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17319$as_echo_n "checking for Python site-packages path... " >&6; }
17320        if test -z "$PYTHON_SITE_PKG"; then
17321                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17322                        print(distutils.sysconfig.get_python_lib(1,0));"`
17323        fi
17324        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17325$as_echo "$PYTHON_SITE_PKG" >&6; }
17326
17327
17328        #
17329        # final check to see if everything compiles alright
17330        #
17331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17332$as_echo_n "checking consistency of all components of python development environment... " >&6; }
17333        ac_ext=c
17334ac_cpp='$CPP $CPPFLAGS'
17335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337ac_compiler_gnu=$ac_cv_c_compiler_gnu
17338
17339        # save current global flags
17340        ac_save_LIBS="$LIBS"
17341        ac_save_CPPFLAGS="$CPPFLAGS"
17342
17343        LIBS="$LIBS $PYTHON_LDFLAGS"
17344        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17345        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347
17348                #include <Python.h>
17349
17350int
17351main ()
17352{
17353
17354                Py_Initialize();
17355
17356  ;
17357  return 0;
17358}
17359_ACEOF
17360if ac_fn_c_try_link "$LINENO"; then :
17361  pythonexists=yes
17362else
17363  pythonexists=no
17364fi
17365rm -f core conftest.err conftest.$ac_objext \
17366    conftest$ac_exeext conftest.$ac_ext
17367
17368        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17369$as_echo "$pythonexists" >&6; }
17370
17371        if test ! "$pythonexists" = "yes"; then
17372           as_fn_error $? "
17373  Could not link test program to Python. Maybe the main Python library has been
17374  installed in some non-standard library path. If so, pass it to configure,
17375  via the LDFLAGS environment variable.
17376  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17377  ============================================================================
17378   ERROR!
17379   You probably have to install the development version of the Python package
17380   for your distribution.  The exact name of this package varies among them.
17381  ============================================================================
17382           " "$LINENO" 5
17383          PYTHON_VERSION=""
17384        fi
17385        ac_ext=c
17386ac_cpp='$CPP $CPPFLAGS'
17387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17389ac_compiler_gnu=$ac_cv_c_compiler_gnu
17390
17391        # turn back to default flags
17392        CPPFLAGS="$ac_save_CPPFLAGS"
17393        LIBS="$ac_save_LIBS"
17394
17395        #
17396        # all done!
17397        #
17398
17399   if test ! -z "$PYTHON_VERSION"; then
17400	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17401		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17402	fi
17403
17404      PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17405
17406      # Have Python
17407
17408$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17409
17410      if test -n "$LIBS"; then
17411        LIBS="$PYTHON_LDFLAGS $LIBS"
17412      else
17413        LIBS="$PYTHON_LDFLAGS"
17414      fi
17415      if test -n "$CPPFLAGS"; then
17416        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17417      else
17418        CPPFLAGS="$PYTHON_CPPFLAGS"
17419      fi
17420      ub_have_python=yes
17421      if test -n "$PKG_CONFIG" && \
17422    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17423  ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17424  ac_status=$?
17425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426  test $ac_status = 0; }; then
17427  PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17428else
17429  PC_PY_DEPENDENCY="python"
17430fi
17431
17432
17433      # Check for SWIG
17434      ub_have_swig=no
17435      # Check whether --enable-swig-version-check was given.
17436if test "${enable_swig_version_check+set}" = set; then :
17437  enableval=$enable_swig_version_check;
17438fi
17439
17440      if test "$enable_swig_version_check" = "yes"; then
17441
17442        # Extract the first word of "swig", so it can be a program name with args.
17443set dummy swig; ac_word=$2
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17445$as_echo_n "checking for $ac_word... " >&6; }
17446if ${ac_cv_path_SWIG+:} false; then :
17447  $as_echo_n "(cached) " >&6
17448else
17449  case $SWIG in
17450  [\\/]* | ?:[\\/]*)
17451  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17452  ;;
17453  *)
17454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17455for as_dir in $PATH
17456do
17457  IFS=$as_save_IFS
17458  test -z "$as_dir" && as_dir=.
17459    for ac_exec_ext in '' $ac_executable_extensions; do
17460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17461    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17463    break 2
17464  fi
17465done
17466  done
17467IFS=$as_save_IFS
17468
17469  ;;
17470esac
17471fi
17472SWIG=$ac_cv_path_SWIG
17473if test -n "$SWIG"; then
17474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17475$as_echo "$SWIG" >&6; }
17476else
17477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478$as_echo "no" >&6; }
17479fi
17480
17481
17482        if test -z "$SWIG" ; then
17483                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17484$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17485                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17486        elif test -n "2.0.1" ; then
17487                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17488$as_echo_n "checking for SWIG version... " >&6; }
17489                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'`
17490                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17491$as_echo "$swig_version" >&6; }
17492                if test -n "$swig_version" ; then
17493                        # Calculate the required version number components
17494                        required=2.0.1
17495                        required_major=`echo $required | sed 's/[^0-9].*//'`
17496                        if test -z "$required_major" ; then
17497                                required_major=0
17498                        fi
17499                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17500                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17501                        if test -z "$required_minor" ; then
17502                                required_minor=0
17503                        fi
17504                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17505                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17506                        if test -z "$required_patch" ; then
17507                                required_patch=0
17508                        fi
17509                        # Calculate the available version number components
17510                        available=$swig_version
17511                        available_major=`echo $available | sed 's/[^0-9].*//'`
17512                        if test -z "$available_major" ; then
17513                                available_major=0
17514                        fi
17515                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17516                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17517                        if test -z "$available_minor" ; then
17518                                available_minor=0
17519                        fi
17520                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17521                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17522                        if test -z "$available_patch" ; then
17523                                available_patch=0
17524                        fi
17525			badversion=0
17526			if test $available_major -lt $required_major ; then
17527				badversion=1
17528			fi
17529                        if test $available_major -eq $required_major \
17530                                -a $available_minor -lt $required_minor ; then
17531				badversion=1
17532			fi
17533                        if test $available_major -eq $required_major \
17534                                -a $available_minor -eq $required_minor \
17535                                -a $available_patch -lt $required_patch ; then
17536				badversion=1
17537			fi
17538			if test $badversion -eq 1 ; then
17539                                { $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
17540$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;}
17541                                SWIG='echo "Error: SWIG version >= 2.0.1 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17542                        else
17543                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17544$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17545                                SWIG_LIB=`$SWIG -swiglib`
17546                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17547$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17548                        fi
17549                else
17550                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17551$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17552                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17553                fi
17554        fi
17555
17556
17557      else
17558
17559        # Extract the first word of "swig", so it can be a program name with args.
17560set dummy swig; ac_word=$2
17561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17562$as_echo_n "checking for $ac_word... " >&6; }
17563if ${ac_cv_path_SWIG+:} false; then :
17564  $as_echo_n "(cached) " >&6
17565else
17566  case $SWIG in
17567  [\\/]* | ?:[\\/]*)
17568  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17569  ;;
17570  *)
17571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572for as_dir in $PATH
17573do
17574  IFS=$as_save_IFS
17575  test -z "$as_dir" && as_dir=.
17576    for ac_exec_ext in '' $ac_executable_extensions; do
17577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17578    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17580    break 2
17581  fi
17582done
17583  done
17584IFS=$as_save_IFS
17585
17586  ;;
17587esac
17588fi
17589SWIG=$ac_cv_path_SWIG
17590if test -n "$SWIG"; then
17591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17592$as_echo "$SWIG" >&6; }
17593else
17594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595$as_echo "no" >&6; }
17596fi
17597
17598
17599        if test -z "$SWIG" ; then
17600                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17601$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17602                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17603        elif test -n "" ; then
17604                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17605$as_echo_n "checking for SWIG version... " >&6; }
17606                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'`
17607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17608$as_echo "$swig_version" >&6; }
17609                if test -n "$swig_version" ; then
17610                        # Calculate the required version number components
17611                        required=
17612                        required_major=`echo $required | sed 's/[^0-9].*//'`
17613                        if test -z "$required_major" ; then
17614                                required_major=0
17615                        fi
17616                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17617                        required_minor=`echo $required | sed 's/[^0-9].*//'`
17618                        if test -z "$required_minor" ; then
17619                                required_minor=0
17620                        fi
17621                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17622                        required_patch=`echo $required | sed 's/[^0-9].*//'`
17623                        if test -z "$required_patch" ; then
17624                                required_patch=0
17625                        fi
17626                        # Calculate the available version number components
17627                        available=$swig_version
17628                        available_major=`echo $available | sed 's/[^0-9].*//'`
17629                        if test -z "$available_major" ; then
17630                                available_major=0
17631                        fi
17632                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17633                        available_minor=`echo $available | sed 's/[^0-9].*//'`
17634                        if test -z "$available_minor" ; then
17635                                available_minor=0
17636                        fi
17637                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17638                        available_patch=`echo $available | sed 's/[^0-9].*//'`
17639                        if test -z "$available_patch" ; then
17640                                available_patch=0
17641                        fi
17642			badversion=0
17643			if test $available_major -lt $required_major ; then
17644				badversion=1
17645			fi
17646                        if test $available_major -eq $required_major \
17647                                -a $available_minor -lt $required_minor ; then
17648				badversion=1
17649			fi
17650                        if test $available_major -eq $required_major \
17651                                -a $available_minor -eq $required_minor \
17652                                -a $available_patch -lt $required_patch ; then
17653				badversion=1
17654			fi
17655			if test $badversion -eq 1 ; then
17656                                { $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
17657$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
17658                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
17659                        else
17660                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17661$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17662                                SWIG_LIB=`$SWIG -swiglib`
17663                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17664$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17665                        fi
17666                else
17667                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17668$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17669                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
17670                fi
17671        fi
17672
17673
17674      fi
17675      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17676$as_echo_n "checking SWIG... " >&6; }
17677      if test ! -x "$SWIG"; then
17678         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17679      else
17680
17681$as_echo "#define HAVE_SWIG 1" >>confdefs.h
17682
17683         swig="$SWIG"
17684
17685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17686$as_echo "present" >&6; }
17687
17688         # If have Python & SWIG
17689         # Declare PythonMod
17690         if test x_$ub_with_pythonmod != x_no; then
17691
17692$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17693
17694            WITH_PYTHONMODULE=yes
17695
17696	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17697
17698	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17699
17700	    PYTHONMOD_INSTALL=pythonmod-install
17701
17702	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
17703
17704         fi
17705
17706         # Declare PyUnbound
17707         if test x_$ub_with_pyunbound != x_no; then
17708
17709$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17710
17711            WITH_PYUNBOUND=yes
17712
17713	    PYUNBOUND_OBJ="libunbound_wrap.lo"
17714
17715	    PYUNBOUND_TARGET="_unbound.la"
17716
17717	    PYUNBOUND_INSTALL=pyunbound-install
17718
17719	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
17720
17721         fi
17722      fi
17723   else
17724      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17725$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17726      ub_with_pyunbound=no
17727      ub_with_pythonmod=no
17728   fi
17729fi
17730
17731if test "`uname`" = "NetBSD"; then
17732	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17733
17734fi
17735CONFIG_DATE=`date +%Y%m%d`
17736
17737
17738# Checks for libraries.
17739
17740# libnss
17741USE_NSS="no"
17742
17743# Check whether --with-nss was given.
17744if test "${with_nss+set}" = set; then :
17745  withval=$with_nss;
17746	USE_NSS="yes"
17747
17748$as_echo "#define HAVE_NSS 1" >>confdefs.h
17749
17750	if test "$withval" != "" -a "$withval" != "yes"; then
17751		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17752		LDFLAGS="$LDFLAGS -L$withval/lib"
17753
17754	if test "x$enable_rpath" = xyes; then
17755		if echo "$withval/lib" | grep "^/" >/dev/null; then
17756			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17757		fi
17758	fi
17759
17760		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17761	else
17762		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17763		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17764	fi
17765        LIBS="$LIBS -lnss3 -lnspr4"
17766	SSLLIB=""
17767	PC_CRYPTO_DEPENDENCY="nss nspr"
17768
17769
17770
17771fi
17772
17773
17774# libnettle
17775USE_NETTLE="no"
17776
17777# Check whether --with-nettle was given.
17778if test "${with_nettle+set}" = set; then :
17779  withval=$with_nettle;
17780	USE_NETTLE="yes"
17781
17782$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17783
17784	for ac_header in nettle/dsa-compat.h
17785do :
17786  ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17787"
17788if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17789  cat >>confdefs.h <<_ACEOF
17790#define HAVE_NETTLE_DSA_COMPAT_H 1
17791_ACEOF
17792
17793fi
17794
17795done
17796
17797	if test "$withval" != "" -a "$withval" != "yes"; then
17798		CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17799		LDFLAGS="$LDFLAGS -L$withval/lib"
17800
17801	if test "x$enable_rpath" = xyes; then
17802		if echo "$withval/lib" | grep "^/" >/dev/null; then
17803			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17804		fi
17805	fi
17806
17807	else
17808		CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17809	fi
17810        LIBS="$LIBS -lhogweed -lnettle -lgmp"
17811	SSLLIB=""
17812	PC_CRYPTO_DEPENDENCY="hogweed nettle"
17813
17814
17815
17816fi
17817
17818
17819# openssl
17820if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17821
17822
17823# Check whether --with-ssl was given.
17824if test "${with_ssl+set}" = set; then :
17825  withval=$with_ssl;
17826
17827else
17828
17829            withval="yes"
17830
17831fi
17832
17833    if test x_$withval = x_no; then
17834	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17835    fi
17836
17837    withval=$withval
17838    if test x_$withval != x_no; then
17839        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17840$as_echo_n "checking for SSL... " >&6; }
17841        if test x_$withval = x_ -o x_$withval = x_yes; then
17842            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17843        fi
17844        for dir in $withval; do
17845            ssldir="$dir"
17846            if test -f "$dir/include/openssl/ssl.h"; then
17847                found_ssl="yes"
17848
17849cat >>confdefs.h <<_ACEOF
17850#define HAVE_SSL /**/
17851_ACEOF
17852
17853                                if test "$ssldir" != "/usr"; then
17854                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17855                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17856                fi
17857                break;
17858            fi
17859        done
17860        if test x_$found_ssl != x_yes; then
17861            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17862        else
17863            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17864$as_echo "found in $ssldir" >&6; }
17865            HAVE_SSL=yes
17866                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17867                LDFLAGS="$LDFLAGS -L$ssldir/lib"
17868                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17869
17870	if test "x$enable_rpath" = xyes; then
17871		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17872			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17873		fi
17874	fi
17875
17876            fi
17877
17878            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17879$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17880            LIBS="$LIBS -lcrypto"
17881            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17882            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883/* end confdefs.h.  */
17884
17885int
17886main ()
17887{
17888
17889                int HMAC_Update(void);
17890                (void)HMAC_Update();
17891
17892  ;
17893  return 0;
17894}
17895_ACEOF
17896if ac_fn_c_try_link "$LINENO"; then :
17897
17898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17899$as_echo "yes" >&6; }
17900
17901$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17902
17903
17904else
17905
17906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907$as_echo "no" >&6; }
17908                # check if -lwsock32 or -lgdi32 are needed.
17909                BAKLIBS="$LIBS"
17910                BAKSSLLIBS="$LIBSSL_LIBS"
17911		LIBS="$LIBS -lgdi32 -lws2_32"
17912		LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17913                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17914$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17915                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916/* end confdefs.h.  */
17917
17918int
17919main ()
17920{
17921
17922                    int HMAC_Update(void);
17923                    (void)HMAC_Update();
17924
17925  ;
17926  return 0;
17927}
17928_ACEOF
17929if ac_fn_c_try_link "$LINENO"; then :
17930
17931
17932$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17933
17934                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17935$as_echo "yes" >&6; }
17936
17937else
17938
17939                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940$as_echo "no" >&6; }
17941                    LIBS="$BAKLIBS"
17942                    LIBSSL_LIBS="$BAKSSLLIBS"
17943                    LIBS="$LIBS -ldl"
17944                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17945                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17946$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17947                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948/* end confdefs.h.  */
17949
17950int
17951main ()
17952{
17953
17954                        int HMAC_Update(void);
17955                        (void)HMAC_Update();
17956
17957  ;
17958  return 0;
17959}
17960_ACEOF
17961if ac_fn_c_try_link "$LINENO"; then :
17962
17963
17964$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17965
17966                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17967$as_echo "yes" >&6; }
17968
17969else
17970
17971                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17972$as_echo "no" >&6; }
17973                        LIBS="$BAKLIBS"
17974                        LIBSSL_LIBS="$BAKSSLLIBS"
17975                        LIBS="$LIBS -ldl -pthread"
17976                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17977                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17978$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17979                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980/* end confdefs.h.  */
17981
17982int
17983main ()
17984{
17985
17986                            int HMAC_Update(void);
17987                            (void)HMAC_Update();
17988
17989  ;
17990  return 0;
17991}
17992_ACEOF
17993if ac_fn_c_try_link "$LINENO"; then :
17994
17995
17996$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17997
17998                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999$as_echo "yes" >&6; }
18000
18001else
18002
18003                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18004$as_echo "no" >&6; }
18005                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18006
18007fi
18008rm -f core conftest.err conftest.$ac_objext \
18009    conftest$ac_exeext conftest.$ac_ext
18010
18011fi
18012rm -f core conftest.err conftest.$ac_objext \
18013    conftest$ac_exeext conftest.$ac_ext
18014
18015fi
18016rm -f core conftest.err conftest.$ac_objext \
18017    conftest$ac_exeext conftest.$ac_ext
18018
18019fi
18020rm -f core conftest.err conftest.$ac_objext \
18021    conftest$ac_exeext conftest.$ac_ext
18022        fi
18023
18024
18025    fi
18026for ac_header in openssl/ssl.h
18027do :
18028  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18029"
18030if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18031  cat >>confdefs.h <<_ACEOF
18032#define HAVE_OPENSSL_SSL_H 1
18033_ACEOF
18034
18035fi
18036
18037done
18038
18039for ac_header in openssl/err.h
18040do :
18041  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18042"
18043if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18044  cat >>confdefs.h <<_ACEOF
18045#define HAVE_OPENSSL_ERR_H 1
18046_ACEOF
18047
18048fi
18049
18050done
18051
18052for ac_header in openssl/rand.h
18053do :
18054  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18055"
18056if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18057  cat >>confdefs.h <<_ACEOF
18058#define HAVE_OPENSSL_RAND_H 1
18059_ACEOF
18060
18061fi
18062
18063done
18064
18065
18066
18067
18068# check if libssl needs libdl
18069BAKLIBS="$LIBS"
18070LIBS="-lssl $LIBS"
18071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18072$as_echo_n "checking if libssl needs libdl... " >&6; }
18073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074/* end confdefs.h.  */
18075
18076/* Override any GCC internal prototype to avoid an error.
18077   Use char because int might match the return type of a GCC
18078   builtin and then its argument prototype would still apply.  */
18079#ifdef __cplusplus
18080extern "C"
18081#endif
18082char SSL_CTX_new ();
18083int
18084main ()
18085{
18086return SSL_CTX_new ();
18087  ;
18088  return 0;
18089}
18090_ACEOF
18091if ac_fn_c_try_link "$LINENO"; then :
18092
18093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094$as_echo "no" >&6; }
18095	LIBS="$BAKLIBS"
18096
18097else
18098
18099	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100$as_echo "yes" >&6; }
18101	LIBS="$BAKLIBS"
18102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18103$as_echo_n "checking for library containing dlopen... " >&6; }
18104if ${ac_cv_search_dlopen+:} false; then :
18105  $as_echo_n "(cached) " >&6
18106else
18107  ac_func_search_save_LIBS=$LIBS
18108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109/* end confdefs.h.  */
18110
18111/* Override any GCC internal prototype to avoid an error.
18112   Use char because int might match the return type of a GCC
18113   builtin and then its argument prototype would still apply.  */
18114#ifdef __cplusplus
18115extern "C"
18116#endif
18117char dlopen ();
18118int
18119main ()
18120{
18121return dlopen ();
18122  ;
18123  return 0;
18124}
18125_ACEOF
18126for ac_lib in '' dl; do
18127  if test -z "$ac_lib"; then
18128    ac_res="none required"
18129  else
18130    ac_res=-l$ac_lib
18131    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18132  fi
18133  if ac_fn_c_try_link "$LINENO"; then :
18134  ac_cv_search_dlopen=$ac_res
18135fi
18136rm -f core conftest.err conftest.$ac_objext \
18137    conftest$ac_exeext
18138  if ${ac_cv_search_dlopen+:} false; then :
18139  break
18140fi
18141done
18142if ${ac_cv_search_dlopen+:} false; then :
18143
18144else
18145  ac_cv_search_dlopen=no
18146fi
18147rm conftest.$ac_ext
18148LIBS=$ac_func_search_save_LIBS
18149fi
18150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18151$as_echo "$ac_cv_search_dlopen" >&6; }
18152ac_res=$ac_cv_search_dlopen
18153if test "$ac_res" != no; then :
18154  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18155
18156fi
18157
18158
18159fi
18160rm -f core conftest.err conftest.$ac_objext \
18161    conftest$ac_exeext conftest.$ac_ext
18162SSLLIB="-lssl"
18163
18164PC_CRYPTO_DEPENDENCY="libcrypto libssl"
18165
18166
18167# check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18168BAKLIBS="$LIBS"
18169LIBS="-lssl $LIBS"
18170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18171$as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173/* end confdefs.h.  */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176   Use char because int might match the return type of a GCC
18177   builtin and then its argument prototype would still apply.  */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char HMAC_Update ();
18182int
18183main ()
18184{
18185return HMAC_Update ();
18186  ;
18187  return 0;
18188}
18189_ACEOF
18190if ac_fn_c_try_link "$LINENO"; then :
18191
18192	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193$as_echo "no" >&6; }
18194	LIBS="$BAKLIBS"
18195
18196else
18197
18198	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18199$as_echo "yes" >&6; }
18200	LIBS="$BAKLIBS"
18201	LIBS="$LIBS -lcrypt32"
18202
18203fi
18204rm -f core conftest.err conftest.$ac_objext \
18205    conftest$ac_exeext conftest.$ac_ext
18206
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18208$as_echo_n "checking for LibreSSL... " >&6; }
18209if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18210	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211$as_echo "yes" >&6; }
18212
18213$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18214
18215	# libressl provides these compat functions, but they may also be
18216	# declared by the OS in libc.  See if they have been declared.
18217	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18218if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18219  ac_have_decl=1
18220else
18221  ac_have_decl=0
18222fi
18223
18224cat >>confdefs.h <<_ACEOF
18225#define HAVE_DECL_STRLCPY $ac_have_decl
18226_ACEOF
18227ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18228if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18229  ac_have_decl=1
18230else
18231  ac_have_decl=0
18232fi
18233
18234cat >>confdefs.h <<_ACEOF
18235#define HAVE_DECL_STRLCAT $ac_have_decl
18236_ACEOF
18237ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18238if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18239  ac_have_decl=1
18240else
18241  ac_have_decl=0
18242fi
18243
18244cat >>confdefs.h <<_ACEOF
18245#define HAVE_DECL_ARC4RANDOM $ac_have_decl
18246_ACEOF
18247ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18248if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18249  ac_have_decl=1
18250else
18251  ac_have_decl=0
18252fi
18253
18254cat >>confdefs.h <<_ACEOF
18255#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18256_ACEOF
18257
18258else
18259	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260$as_echo "no" >&6; }
18261fi
18262for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
18263do :
18264  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18265ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18266"
18267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18268  cat >>confdefs.h <<_ACEOF
18269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18270_ACEOF
18271
18272fi
18273
18274done
18275
18276for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify SSL_CTX_set_tlsext_ticket_key_cb EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback
18277do :
18278  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18281  cat >>confdefs.h <<_ACEOF
18282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283_ACEOF
18284
18285fi
18286done
18287
18288
18289# these check_funcs need -lssl
18290BAKLIBS="$LIBS"
18291LIBS="-lssl $LIBS"
18292for 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
18293do :
18294  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18296if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18297  cat >>confdefs.h <<_ACEOF
18298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18299_ACEOF
18300
18301fi
18302done
18303
18304LIBS="$BAKLIBS"
18305
18306ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18307$ac_includes_default
18308#ifdef HAVE_OPENSSL_ERR_H
18309#include <openssl/err.h>
18310#endif
18311
18312#ifdef HAVE_OPENSSL_RAND_H
18313#include <openssl/rand.h>
18314#endif
18315
18316#ifdef HAVE_OPENSSL_CONF_H
18317#include <openssl/conf.h>
18318#endif
18319
18320#ifdef HAVE_OPENSSL_ENGINE_H
18321#include <openssl/engine.h>
18322#endif
18323#include <openssl/ssl.h>
18324#include <openssl/evp.h>
18325
18326"
18327if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18328  ac_have_decl=1
18329else
18330  ac_have_decl=0
18331fi
18332
18333cat >>confdefs.h <<_ACEOF
18334#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18335_ACEOF
18336ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18337$ac_includes_default
18338#ifdef HAVE_OPENSSL_ERR_H
18339#include <openssl/err.h>
18340#endif
18341
18342#ifdef HAVE_OPENSSL_RAND_H
18343#include <openssl/rand.h>
18344#endif
18345
18346#ifdef HAVE_OPENSSL_CONF_H
18347#include <openssl/conf.h>
18348#endif
18349
18350#ifdef HAVE_OPENSSL_ENGINE_H
18351#include <openssl/engine.h>
18352#endif
18353#include <openssl/ssl.h>
18354#include <openssl/evp.h>
18355
18356"
18357if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18358  ac_have_decl=1
18359else
18360  ac_have_decl=0
18361fi
18362
18363cat >>confdefs.h <<_ACEOF
18364#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18365_ACEOF
18366ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18367$ac_includes_default
18368#ifdef HAVE_OPENSSL_ERR_H
18369#include <openssl/err.h>
18370#endif
18371
18372#ifdef HAVE_OPENSSL_RAND_H
18373#include <openssl/rand.h>
18374#endif
18375
18376#ifdef HAVE_OPENSSL_CONF_H
18377#include <openssl/conf.h>
18378#endif
18379
18380#ifdef HAVE_OPENSSL_ENGINE_H
18381#include <openssl/engine.h>
18382#endif
18383#include <openssl/ssl.h>
18384#include <openssl/evp.h>
18385
18386"
18387if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18388  ac_have_decl=1
18389else
18390  ac_have_decl=0
18391fi
18392
18393cat >>confdefs.h <<_ACEOF
18394#define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18395_ACEOF
18396
18397
18398if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18399# check function return type.
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18401$as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403/* end confdefs.h.  */
18404
18405#ifdef HAVE_OPENSSL_ERR_H
18406#include <openssl/err.h>
18407#endif
18408
18409#ifdef HAVE_OPENSSL_RAND_H
18410#include <openssl/rand.h>
18411#endif
18412
18413#ifdef HAVE_OPENSSL_CONF_H
18414#include <openssl/conf.h>
18415#endif
18416
18417#ifdef HAVE_OPENSSL_ENGINE_H
18418#include <openssl/engine.h>
18419#endif
18420#include <openssl/ssl.h>
18421#include <openssl/evp.h>
18422
18423int
18424main ()
18425{
18426
18427	HMAC_CTX* hmac_ctx = NULL;
18428	void* hmac_key = NULL;
18429	const EVP_MD* digest = NULL;
18430	int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18431	(void)x;
18432
18433  ;
18434  return 0;
18435}
18436_ACEOF
18437if ac_fn_c_try_compile "$LINENO"; then :
18438
18439	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18440$as_echo "int" >&6; }
18441
18442else
18443
18444	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18445$as_echo "void" >&6; }
18446
18447$as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18448
18449
18450fi
18451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18452fi
18453
18454fi
18455
18456
18457# libbsd
18458
18459# Check whether --with-libbsd was given.
18460if test "${with_libbsd+set}" = set; then :
18461  withval=$with_libbsd;
18462	for ac_header in bsd/string.h bsd/stdlib.h
18463do :
18464  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18465ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18466"
18467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18468  cat >>confdefs.h <<_ACEOF
18469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18470_ACEOF
18471
18472fi
18473
18474done
18475
18476	if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18477		for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18478			as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18480$as_echo_n "checking for library containing $func... " >&6; }
18481if eval \${$as_ac_Search+:} false; then :
18482  $as_echo_n "(cached) " >&6
18483else
18484  ac_func_search_save_LIBS=$LIBS
18485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486/* end confdefs.h.  */
18487
18488/* Override any GCC internal prototype to avoid an error.
18489   Use char because int might match the return type of a GCC
18490   builtin and then its argument prototype would still apply.  */
18491#ifdef __cplusplus
18492extern "C"
18493#endif
18494char $func ();
18495int
18496main ()
18497{
18498return $func ();
18499  ;
18500  return 0;
18501}
18502_ACEOF
18503for ac_lib in '' bsd; do
18504  if test -z "$ac_lib"; then
18505    ac_res="none required"
18506  else
18507    ac_res=-l$ac_lib
18508    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18509  fi
18510  if ac_fn_c_try_link "$LINENO"; then :
18511  eval "$as_ac_Search=\$ac_res"
18512fi
18513rm -f core conftest.err conftest.$ac_objext \
18514    conftest$ac_exeext
18515  if eval \${$as_ac_Search+:} false; then :
18516  break
18517fi
18518done
18519if eval \${$as_ac_Search+:} false; then :
18520
18521else
18522  eval "$as_ac_Search=no"
18523fi
18524rm conftest.$ac_ext
18525LIBS=$ac_func_search_save_LIBS
18526fi
18527eval ac_res=\$$as_ac_Search
18528	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18529$as_echo "$ac_res" >&6; }
18530eval ac_res=\$$as_ac_Search
18531if test "$ac_res" != no; then :
18532  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18533
18534
18535$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18536
18537				PC_LIBBSD_DEPENDENCY=libbsd
18538
18539
18540fi
18541
18542		done
18543	fi
18544
18545fi
18546
18547
18548# Check whether --enable-sha1 was given.
18549if test "${enable_sha1+set}" = set; then :
18550  enableval=$enable_sha1;
18551fi
18552
18553case "$enable_sha1" in
18554	no)
18555	;;
18556	yes|*)
18557
18558$as_echo "#define USE_SHA1 1" >>confdefs.h
18559
18560	;;
18561esac
18562
18563
18564# Check whether --enable-sha2 was given.
18565if test "${enable_sha2+set}" = set; then :
18566  enableval=$enable_sha2;
18567fi
18568
18569case "$enable_sha2" in
18570	no)
18571	;;
18572	yes|*)
18573
18574$as_echo "#define USE_SHA2 1" >>confdefs.h
18575
18576	;;
18577esac
18578
18579# Check whether --enable-subnet was given.
18580if test "${enable_subnet+set}" = set; then :
18581  enableval=$enable_subnet;
18582fi
18583
18584case "$enable_subnet" in
18585	yes)
18586
18587$as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18588
18589	SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18590
18591	SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18592
18593	;;
18594	no|*)
18595	;;
18596esac
18597
18598# check wether gost also works
18599
18600# Check whether --enable-gost was given.
18601if test "${enable_gost+set}" = set; then :
18602  enableval=$enable_gost;
18603fi
18604
18605use_gost="no"
18606if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18607case "$enable_gost" in
18608	no)
18609	;;
18610	*)
18611	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18612if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18613  :
18614else
18615  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18616fi
18617
18618	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18619if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18620
18621else
18622  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18623fi
18624
18625
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18627$as_echo_n "checking if GOST works... " >&6; }
18628if test c${cross_compiling} = cno; then
18629BAKCFLAGS="$CFLAGS"
18630if test -n "$ssldir"; then
18631	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18632fi
18633if test "$cross_compiling" = yes; then :
18634  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18636as_fn_error $? "cannot run test program while cross compiling
18637See \`config.log' for more details" "$LINENO" 5; }
18638else
18639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640/* end confdefs.h.  */
18641
18642#include <string.h>
18643#include <openssl/ssl.h>
18644#include <openssl/evp.h>
18645#include <openssl/engine.h>
18646#include <openssl/conf.h>
18647/* routine to load gost (from sldns) */
18648int load_gost_id(void)
18649{
18650	static int gost_id = 0;
18651	const EVP_PKEY_ASN1_METHOD* meth;
18652	ENGINE* e;
18653
18654	if(gost_id) return gost_id;
18655
18656	/* see if configuration loaded gost implementation from other engine*/
18657	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18658	if(meth) {
18659		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18660		return gost_id;
18661	}
18662
18663	/* see if engine can be loaded already */
18664	e = ENGINE_by_id("gost");
18665	if(!e) {
18666		/* load it ourself, in case statically linked */
18667		ENGINE_load_builtin_engines();
18668		ENGINE_load_dynamic();
18669		e = ENGINE_by_id("gost");
18670	}
18671	if(!e) {
18672		/* no gost engine in openssl */
18673		return 0;
18674	}
18675	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18676		ENGINE_finish(e);
18677		ENGINE_free(e);
18678		return 0;
18679	}
18680
18681	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18682	if(!meth) {
18683		/* algo not found */
18684		ENGINE_finish(e);
18685		ENGINE_free(e);
18686		return 0;
18687	}
18688	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18689	return gost_id;
18690}
18691int main(void) {
18692	EVP_MD_CTX* ctx;
18693	const EVP_MD* md;
18694	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18695	const char* str = "Hello world";
18696	const unsigned char check[] = {
18697		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18698		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18699		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18700		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18701	};
18702	OPENSSL_config(NULL);
18703	(void)load_gost_id();
18704	md = EVP_get_digestbyname("md_gost94");
18705	if(!md) return 1;
18706	memset(digest, 0, sizeof(digest));
18707	ctx = EVP_MD_CTX_create();
18708	if(!ctx) return 2;
18709	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18710	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18711	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18712	/* uncomment to see the hash calculated.
18713		{int i;
18714		for(i=0; i<32; i++)
18715			printf(" %2.2x", (int)digest[i]);
18716		printf("\n");}
18717	*/
18718	if(memcmp(digest, check, sizeof(check)) != 0)
18719		return 6;
18720	return 0;
18721}
18722
18723_ACEOF
18724if ac_fn_c_try_run "$LINENO"; then :
18725  eval "ac_cv_c_gost_works=yes"
18726else
18727  eval "ac_cv_c_gost_works=no"
18728fi
18729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18730  conftest.$ac_objext conftest.beam conftest.$ac_ext
18731fi
18732
18733CFLAGS="$BAKCFLAGS"
18734else
18735eval "ac_cv_c_gost_works=maybe"
18736fi
18737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18738$as_echo "$ac_cv_c_gost_works" >&6; }
18739
18740	if test "$ac_cv_c_gost_works" != no; then
18741		use_gost="yes"
18742
18743$as_echo "#define USE_GOST 1" >>confdefs.h
18744
18745	fi
18746	;;
18747esac
18748fi
18749# Check whether --enable-ecdsa was given.
18750if test "${enable_ecdsa+set}" = set; then :
18751  enableval=$enable_ecdsa;
18752fi
18753
18754use_ecdsa="no"
18755case "$enable_ecdsa" in
18756    no)
18757      ;;
18758    *)
18759      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18760	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18761if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18762
18763else
18764  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18765fi
18766
18767	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18768if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18769
18770else
18771  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18772fi
18773
18774	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18775#include <openssl/evp.h>
18776
18777"
18778if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18779  ac_have_decl=1
18780else
18781  ac_have_decl=0
18782fi
18783
18784cat >>confdefs.h <<_ACEOF
18785#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18786_ACEOF
18787if test $ac_have_decl = 1; then :
18788
18789else
18790  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18791fi
18792ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18793#include <openssl/evp.h>
18794
18795"
18796if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18797  ac_have_decl=1
18798else
18799  ac_have_decl=0
18800fi
18801
18802cat >>confdefs.h <<_ACEOF
18803#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18804_ACEOF
18805if test $ac_have_decl = 1; then :
18806
18807else
18808  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18809fi
18810
18811	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18812	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18813$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18814	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18815		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18816		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817$as_echo "no" >&6; }
18818
18819cat >>confdefs.h <<_ACEOF
18820#define USE_ECDSA_EVP_WORKAROUND 1
18821_ACEOF
18822
18823		else
18824		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18825$as_echo "yes" >&6; }
18826		fi
18827	      else
18828		# not OpenSSL, thus likely LibreSSL, which supports it
18829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830$as_echo "yes" >&6; }
18831	      fi
18832      fi
18833      # we now know we have ECDSA and the required curves.
18834
18835cat >>confdefs.h <<_ACEOF
18836#define USE_ECDSA 1
18837_ACEOF
18838
18839      use_ecdsa="yes"
18840      ;;
18841esac
18842
18843# Check whether --enable-dsa was given.
18844if test "${enable_dsa+set}" = set; then :
18845  enableval=$enable_dsa;
18846fi
18847
18848use_dsa="no"
18849case "$enable_dsa" in
18850    yes)
18851      # detect if DSA is supported, and turn it off if not.
18852      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18853      ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18854if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18855
18856      as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18857ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18858$ac_includes_default
18859#ifdef HAVE_OPENSSL_ERR_H
18860#include <openssl/err.h>
18861#endif
18862
18863#ifdef HAVE_OPENSSL_RAND_H
18864#include <openssl/rand.h>
18865#endif
18866
18867#ifdef HAVE_OPENSSL_CONF_H
18868#include <openssl/conf.h>
18869#endif
18870
18871#ifdef HAVE_OPENSSL_ENGINE_H
18872#include <openssl/engine.h>
18873#endif
18874
18875"
18876if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18877
18878
18879cat >>confdefs.h <<_ACEOF
18880#define USE_DSA 1
18881_ACEOF
18882
18883
18884else
18885  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18886               fi
18887fi
18888
18889
18890else
18891  if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18892               fi
18893fi
18894
18895      else
18896
18897cat >>confdefs.h <<_ACEOF
18898#define USE_DSA 1
18899_ACEOF
18900
18901      fi
18902      ;;
18903    *)
18904      # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
18905      # support DSA for DNSSEC Validation.
18906      ;;
18907esac
18908
18909# Check whether --enable-ed25519 was given.
18910if test "${enable_ed25519+set}" = set; then :
18911  enableval=$enable_ed25519;
18912fi
18913
18914use_ed25519="no"
18915case "$enable_ed25519" in
18916    no)
18917      ;;
18918    *)
18919      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18920	      ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18921#include <openssl/evp.h>
18922
18923"
18924if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18925  ac_have_decl=1
18926else
18927  ac_have_decl=0
18928fi
18929
18930cat >>confdefs.h <<_ACEOF
18931#define HAVE_DECL_NID_ED25519 $ac_have_decl
18932_ACEOF
18933if test $ac_have_decl = 1; then :
18934
18935      		use_ed25519="yes"
18936
18937else
18938   if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18939	      	fi
18940fi
18941
18942      fi
18943      if test $USE_NETTLE = "yes"; then
18944		for ac_header in nettle/eddsa.h
18945do :
18946  ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18947"
18948if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18949  cat >>confdefs.h <<_ACEOF
18950#define HAVE_NETTLE_EDDSA_H 1
18951_ACEOF
18952 use_ed25519="yes"
18953fi
18954
18955done
18956
18957      fi
18958      if test $use_ed25519 = "yes"; then
18959
18960cat >>confdefs.h <<_ACEOF
18961#define USE_ED25519 1
18962_ACEOF
18963
18964      fi
18965      ;;
18966esac
18967
18968# Check whether --enable-ed448 was given.
18969if test "${enable_ed448+set}" = set; then :
18970  enableval=$enable_ed448;
18971fi
18972
18973use_ed448="no"
18974case "$enable_ed448" in
18975    no)
18976      ;;
18977    *)
18978      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18979	      ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
18980#include <openssl/evp.h>
18981
18982"
18983if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
18984  ac_have_decl=1
18985else
18986  ac_have_decl=0
18987fi
18988
18989cat >>confdefs.h <<_ACEOF
18990#define HAVE_DECL_NID_ED448 $ac_have_decl
18991_ACEOF
18992if test $ac_have_decl = 1; then :
18993
18994      		use_ed448="yes"
18995
18996else
18997   if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
18998	      	fi
18999fi
19000
19001      fi
19002      if test $use_ed448 = "yes"; then
19003
19004cat >>confdefs.h <<_ACEOF
19005#define USE_ED448 1
19006_ACEOF
19007
19008      fi
19009      ;;
19010esac
19011
19012# Check whether --enable-event-api was given.
19013if test "${enable_event_api+set}" = set; then :
19014  enableval=$enable_event_api;
19015fi
19016
19017case "$enable_event_api" in
19018    yes)
19019      UNBOUND_EVENT_INSTALL=unbound-event-install
19020
19021      UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19022
19023      ;;
19024    *)
19025      ;;
19026esac
19027
19028# Check whether --enable-tfo-client was given.
19029if test "${enable_tfo_client+set}" = set; then :
19030  enableval=$enable_tfo_client;
19031fi
19032
19033case "$enable_tfo_client" in
19034	yes)
19035		case `uname` in
19036			Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19037#include <netinet/tcp.h>
19038
19039"
19040if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19041  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19042$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19043else
19044  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19045fi
19046
19047
19048cat >>confdefs.h <<_ACEOF
19049#define USE_MSG_FASTOPEN 1
19050_ACEOF
19051
19052			  ;;
19053			Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19054#include <sys/socket.h>
19055
19056"
19057if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19058  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19059$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19060else
19061  as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19062fi
19063
19064
19065cat >>confdefs.h <<_ACEOF
19066#define USE_OSX_MSG_FASTOPEN 1
19067_ACEOF
19068
19069			  ;;
19070		esac
19071	;;
19072	no|*)
19073		;;
19074esac
19075
19076# Check whether --enable-tfo-server was given.
19077if test "${enable_tfo_server+set}" = set; then :
19078  enableval=$enable_tfo_server;
19079fi
19080
19081case "$enable_tfo_server" in
19082	yes)
19083	      ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19084#include <netinet/tcp.h>
19085
19086"
19087if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19088  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19089$as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19090else
19091  as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19092fi
19093
19094
19095cat >>confdefs.h <<_ACEOF
19096#define USE_TCP_FASTOPEN 1
19097_ACEOF
19098
19099		;;
19100	no|*)
19101		;;
19102esac
19103
19104# check for libevent
19105
19106# Check whether --with-libevent was given.
19107if test "${with_libevent+set}" = set; then :
19108  withval=$with_libevent;
19109else
19110   withval="no"
19111fi
19112
19113if test x_$withval = x_yes -o x_$withval != x_no; then
19114        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19115$as_echo_n "checking for libevent... " >&6; }
19116        if test x_$withval = x_ -o x_$withval = x_yes; then
19117            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19118        fi
19119        for dir in $withval; do
19120            thedir="$dir"
19121            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19122                found_libevent="yes"
19123				if test "$thedir" != "/usr"; then
19124                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
19125		fi
19126                break;
19127            fi
19128        done
19129        if test x_$found_libevent != x_yes; then
19130		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19131			# libevent source directory
19132            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19133$as_echo "found in $thedir" >&6; }
19134                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19135			BAK_LDFLAGS_SET="1"
19136			BAK_LDFLAGS="$LDFLAGS"
19137			# remove evdns from linking
19138			mkdir build >/dev/null 2>&1
19139			mkdir build/libevent >/dev/null 2>&1
19140			mkdir build/libevent/.libs >/dev/null 2>&1
19141			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19142			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19143			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19144			cp $ev_files_o build/libevent
19145			cp $ev_files_lo build/libevent
19146			cp $ev_files_libso build/libevent/.libs
19147            		LATE_LDFLAGS="build/libevent/*.lo -lm"
19148			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19149		else
19150            		as_fn_error $? "Cannot find the libevent library in $withval
19151You can restart ./configure --with-libevent=no to use a builtin alternative.
19152Please note that this alternative is not as capable as libevent when using
19153large outgoing port ranges.  " "$LINENO" 5
19154		fi
19155        else
19156            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19157$as_echo "found in $thedir" >&6; }
19158	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19159		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19160
19161	if test "x$enable_rpath" = xyes; then
19162		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19163			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19164		fi
19165	fi
19166
19167	    else
19168		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
19169			LDFLAGS="$LDFLAGS -L$thedir/lib"
19170
19171	if test "x$enable_rpath" = xyes; then
19172		if echo "$thedir/lib" | grep "^/" >/dev/null; then
19173			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19174		fi
19175	fi
19176
19177		    fi
19178	    fi
19179        fi
19180	# check for library used by libevent after 1.3c
19181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19182$as_echo_n "checking for library containing clock_gettime... " >&6; }
19183if ${ac_cv_search_clock_gettime+:} false; then :
19184  $as_echo_n "(cached) " >&6
19185else
19186  ac_func_search_save_LIBS=$LIBS
19187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188/* end confdefs.h.  */
19189
19190/* Override any GCC internal prototype to avoid an error.
19191   Use char because int might match the return type of a GCC
19192   builtin and then its argument prototype would still apply.  */
19193#ifdef __cplusplus
19194extern "C"
19195#endif
19196char clock_gettime ();
19197int
19198main ()
19199{
19200return clock_gettime ();
19201  ;
19202  return 0;
19203}
19204_ACEOF
19205for ac_lib in '' rt; do
19206  if test -z "$ac_lib"; then
19207    ac_res="none required"
19208  else
19209    ac_res=-l$ac_lib
19210    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19211  fi
19212  if ac_fn_c_try_link "$LINENO"; then :
19213  ac_cv_search_clock_gettime=$ac_res
19214fi
19215rm -f core conftest.err conftest.$ac_objext \
19216    conftest$ac_exeext
19217  if ${ac_cv_search_clock_gettime+:} false; then :
19218  break
19219fi
19220done
19221if ${ac_cv_search_clock_gettime+:} false; then :
19222
19223else
19224  ac_cv_search_clock_gettime=no
19225fi
19226rm conftest.$ac_ext
19227LIBS=$ac_func_search_save_LIBS
19228fi
19229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19230$as_echo "$ac_cv_search_clock_gettime" >&6; }
19231ac_res=$ac_cv_search_clock_gettime
19232if test "$ac_res" != no; then :
19233  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19234
19235fi
19236
19237
19238	# is the event.h header libev or libevent?
19239	for ac_header in event.h
19240do :
19241  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19242"
19243if test "x$ac_cv_header_event_h" = xyes; then :
19244  cat >>confdefs.h <<_ACEOF
19245#define HAVE_EVENT_H 1
19246_ACEOF
19247
19248fi
19249
19250done
19251
19252	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19253#include <event.h>
19254
19255"
19256if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19257
19258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19259$as_echo_n "checking for library containing event_set... " >&6; }
19260if ${ac_cv_search_event_set+:} false; then :
19261  $as_echo_n "(cached) " >&6
19262else
19263  ac_func_search_save_LIBS=$LIBS
19264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265/* end confdefs.h.  */
19266
19267/* Override any GCC internal prototype to avoid an error.
19268   Use char because int might match the return type of a GCC
19269   builtin and then its argument prototype would still apply.  */
19270#ifdef __cplusplus
19271extern "C"
19272#endif
19273char event_set ();
19274int
19275main ()
19276{
19277return event_set ();
19278  ;
19279  return 0;
19280}
19281_ACEOF
19282for ac_lib in '' ev; do
19283  if test -z "$ac_lib"; then
19284    ac_res="none required"
19285  else
19286    ac_res=-l$ac_lib
19287    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19288  fi
19289  if ac_fn_c_try_link "$LINENO"; then :
19290  ac_cv_search_event_set=$ac_res
19291fi
19292rm -f core conftest.err conftest.$ac_objext \
19293    conftest$ac_exeext
19294  if ${ac_cv_search_event_set+:} false; then :
19295  break
19296fi
19297done
19298if ${ac_cv_search_event_set+:} false; then :
19299
19300else
19301  ac_cv_search_event_set=no
19302fi
19303rm conftest.$ac_ext
19304LIBS=$ac_func_search_save_LIBS
19305fi
19306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19307$as_echo "$ac_cv_search_event_set" >&6; }
19308ac_res=$ac_cv_search_event_set
19309if test "$ac_res" != no; then :
19310  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19311
19312fi
19313
19314
19315else
19316
19317		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19318$as_echo_n "checking for library containing event_set... " >&6; }
19319if ${ac_cv_search_event_set+:} false; then :
19320  $as_echo_n "(cached) " >&6
19321else
19322  ac_func_search_save_LIBS=$LIBS
19323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324/* end confdefs.h.  */
19325
19326/* Override any GCC internal prototype to avoid an error.
19327   Use char because int might match the return type of a GCC
19328   builtin and then its argument prototype would still apply.  */
19329#ifdef __cplusplus
19330extern "C"
19331#endif
19332char event_set ();
19333int
19334main ()
19335{
19336return event_set ();
19337  ;
19338  return 0;
19339}
19340_ACEOF
19341for ac_lib in '' event; do
19342  if test -z "$ac_lib"; then
19343    ac_res="none required"
19344  else
19345    ac_res=-l$ac_lib
19346    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19347  fi
19348  if ac_fn_c_try_link "$LINENO"; then :
19349  ac_cv_search_event_set=$ac_res
19350fi
19351rm -f core conftest.err conftest.$ac_objext \
19352    conftest$ac_exeext
19353  if ${ac_cv_search_event_set+:} false; then :
19354  break
19355fi
19356done
19357if ${ac_cv_search_event_set+:} false; then :
19358
19359else
19360  ac_cv_search_event_set=no
19361fi
19362rm conftest.$ac_ext
19363LIBS=$ac_func_search_save_LIBS
19364fi
19365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19366$as_echo "$ac_cv_search_event_set" >&6; }
19367ac_res=$ac_cv_search_event_set
19368if test "$ac_res" != no; then :
19369  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19370
19371fi
19372
19373
19374fi
19375
19376	for ac_func in event_base_free
19377do :
19378  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19379if test "x$ac_cv_func_event_base_free" = xyes; then :
19380  cat >>confdefs.h <<_ACEOF
19381#define HAVE_EVENT_BASE_FREE 1
19382_ACEOF
19383
19384fi
19385done
19386 # only in libevent 1.2 and later
19387	for ac_func in event_base_once
19388do :
19389  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19390if test "x$ac_cv_func_event_base_once" = xyes; then :
19391  cat >>confdefs.h <<_ACEOF
19392#define HAVE_EVENT_BASE_ONCE 1
19393_ACEOF
19394
19395fi
19396done
19397 # only in libevent 1.4.1 and later
19398	for ac_func in event_base_new
19399do :
19400  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19401if test "x$ac_cv_func_event_base_new" = xyes; then :
19402  cat >>confdefs.h <<_ACEOF
19403#define HAVE_EVENT_BASE_NEW 1
19404_ACEOF
19405
19406fi
19407done
19408 # only in libevent 1.4.1 and later
19409	for ac_func in event_base_get_method
19410do :
19411  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19412if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19413  cat >>confdefs.h <<_ACEOF
19414#define HAVE_EVENT_BASE_GET_METHOD 1
19415_ACEOF
19416
19417fi
19418done
19419 # only in libevent 1.4.3 and later
19420	for ac_func in ev_loop
19421do :
19422  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19423if test "x$ac_cv_func_ev_loop" = xyes; then :
19424  cat >>confdefs.h <<_ACEOF
19425#define HAVE_EV_LOOP 1
19426_ACEOF
19427
19428fi
19429done
19430 # only in libev. (tested on 3.51)
19431	for ac_func in ev_default_loop
19432do :
19433  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19434if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19435  cat >>confdefs.h <<_ACEOF
19436#define HAVE_EV_DEFAULT_LOOP 1
19437_ACEOF
19438
19439fi
19440done
19441 # only in libev. (tested on 4.00)
19442	for ac_func in event_assign
19443do :
19444  ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19445if test "x$ac_cv_func_event_assign" = xyes; then :
19446  cat >>confdefs.h <<_ACEOF
19447#define HAVE_EVENT_ASSIGN 1
19448_ACEOF
19449
19450fi
19451done
19452 # in libevent, for thread-safety
19453	ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19454#ifdef HAVE_EVENT_H
19455#  include <event.h>
19456#else
19457#  include \"event2/event.h\"
19458#endif
19459
19460"
19461if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19462  ac_have_decl=1
19463else
19464  ac_have_decl=0
19465fi
19466
19467cat >>confdefs.h <<_ACEOF
19468#define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19469_ACEOF
19470
19471        PC_LIBEVENT_DEPENDENCY="libevent"
19472
19473	if test -n "$BAK_LDFLAGS_SET"; then
19474		LDFLAGS="$BAK_LDFLAGS"
19475	fi
19476else
19477
19478$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19479
19480fi
19481
19482# check for libexpat
19483
19484# Check whether --with-libexpat was given.
19485if test "${with_libexpat+set}" = set; then :
19486  withval=$with_libexpat;
19487else
19488   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19489fi
19490
19491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19492$as_echo_n "checking for libexpat... " >&6; }
19493found_libexpat="no"
19494for dir in $withval ; do
19495            if test -f "$dir/include/expat.h"; then
19496		found_libexpat="yes"
19497				if test "$dir" != "/usr"; then
19498                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19499		    LDFLAGS="$LDFLAGS -L$dir/lib"
19500		fi
19501            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19502$as_echo "found in $dir" >&6; }
19503                break;
19504            fi
19505done
19506if test x_$found_libexpat != x_yes; then
19507	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19508fi
19509for ac_header in expat.h
19510do :
19511  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19512"
19513if test "x$ac_cv_header_expat_h" = xyes; then :
19514  cat >>confdefs.h <<_ACEOF
19515#define HAVE_EXPAT_H 1
19516_ACEOF
19517
19518fi
19519
19520done
19521
19522ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19523#include <expat.h>
19524
19525"
19526if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19527  ac_have_decl=1
19528else
19529  ac_have_decl=0
19530fi
19531
19532cat >>confdefs.h <<_ACEOF
19533#define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19534_ACEOF
19535
19536
19537# hiredis (redis C client for cachedb)
19538
19539# Check whether --with-libhiredis was given.
19540if test "${with_libhiredis+set}" = set; then :
19541  withval=$with_libhiredis;
19542else
19543   withval="no"
19544fi
19545
19546found_libhiredis="no"
19547if test x_$withval = x_yes -o x_$withval != x_no; then
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19549$as_echo_n "checking for libhiredis... " >&6; }
19550   if test x_$withval = x_ -o x_$withval = x_yes; then
19551            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19552   fi
19553   for dir in $withval ; do
19554            if test -f "$dir/include/hiredis/hiredis.h"; then
19555		found_libhiredis="yes"
19556				if test "$dir" != "/usr"; then
19557                    CPPFLAGS="$CPPFLAGS -I$dir/include"
19558		    LDFLAGS="$LDFLAGS -L$dir/lib"
19559		fi
19560		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19561$as_echo "found in $dir" >&6; }
19562
19563$as_echo "#define USE_REDIS 1" >>confdefs.h
19564
19565		LIBS="$LIBS -lhiredis"
19566                break;
19567            fi
19568    done
19569    if test x_$found_libhiredis != x_yes; then
19570	as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19571    fi
19572    for ac_header in hiredis/hiredis.h
19573do :
19574  ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19575"
19576if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19577  cat >>confdefs.h <<_ACEOF
19578#define HAVE_HIREDIS_HIREDIS_H 1
19579_ACEOF
19580
19581fi
19582
19583done
19584
19585    ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19586    #include <hiredis/hiredis.h>
19587
19588"
19589if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19590  ac_have_decl=1
19591else
19592  ac_have_decl=0
19593fi
19594
19595cat >>confdefs.h <<_ACEOF
19596#define HAVE_DECL_REDISCONNECT $ac_have_decl
19597_ACEOF
19598
19599fi
19600
19601# set static linking for uninstalled libraries if requested
19602
19603staticexe=""
19604# Check whether --enable-static-exe was given.
19605if test "${enable_static_exe+set}" = set; then :
19606  enableval=$enable_static_exe;
19607fi
19608
19609if test x_$enable_static_exe = x_yes; then
19610	staticexe="-static"
19611	if test "$on_mingw" = yes; then
19612		staticexe="-all-static"
19613		# for static compile, include gdi32 and zlib here.
19614		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19615			:
19616		else
19617			LIBS="$LIBS -lgdi32"
19618		fi
19619		LIBS="$LIBS -lz"
19620	fi
19621fi
19622
19623# set full static linking if requested
19624# Check whether --enable-fully-static was given.
19625if test "${enable_fully_static+set}" = set; then :
19626  enableval=$enable_fully_static;
19627fi
19628
19629if test x_$enable_fully_static = x_yes; then
19630	staticexe="-all-static"
19631	if test "$on_mingw" = yes; then
19632		# for static compile, include gdi32 and zlib here.
19633		if echo $LIBS | grep 'lgdi32' >/dev/null; then
19634			:
19635		else
19636			LIBS="$LIBS -lgdi32"
19637		fi
19638		LIBS="$LIBS -lz"
19639	fi
19640fi
19641
19642# set lock checking if requested
19643# Check whether --enable-lock_checks was given.
19644if test "${enable_lock_checks+set}" = set; then :
19645  enableval=$enable_lock_checks;
19646fi
19647
19648if test x_$enable_lock_checks = x_yes; then
19649
19650$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19651
19652	CHECKLOCK_OBJ="checklocks.lo"
19653
19654fi
19655
19656
19657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19658$as_echo_n "checking for getaddrinfo... " >&6; }
19659ac_cv_func_getaddrinfo=no
19660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661/* end confdefs.h.  */
19662
19663#ifdef __cplusplus
19664extern "C"
19665{
19666#endif
19667char* getaddrinfo();
19668char* (*f) () = getaddrinfo;
19669#ifdef __cplusplus
19670}
19671#endif
19672int main() {
19673        ;
19674        return 0;
19675}
19676
19677_ACEOF
19678if ac_fn_c_try_link "$LINENO"; then :
19679  ac_cv_func_getaddrinfo="yes"
19680if test "$ac_cv_header_windows_h" = "yes"; then
19681
19682$as_echo "#define USE_WINSOCK 1" >>confdefs.h
19683
19684	USE_WINSOCK="1"
19685	if echo $LIBS | grep 'lws2_32' >/dev/null; then
19686		:
19687	else
19688		LIBS="$LIBS -lws2_32"
19689	fi
19690fi
19691
19692else
19693  ORIGLIBS="$LIBS"
19694LIBS="$LIBS -lws2_32"
19695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696/* end confdefs.h.  */
19697
19698#ifdef HAVE_WS2TCPIP_H
19699#include <ws2tcpip.h>
19700#endif
19701
19702int
19703main ()
19704{
19705
19706        (void)getaddrinfo(NULL, NULL, NULL, NULL);
19707
19708
19709  ;
19710  return 0;
19711}
19712_ACEOF
19713if ac_fn_c_try_link "$LINENO"; then :
19714
19715ac_cv_func_getaddrinfo="yes"
19716
19717$as_echo "#define USE_WINSOCK 1" >>confdefs.h
19718
19719USE_WINSOCK="1"
19720
19721else
19722
19723ac_cv_func_getaddrinfo="no"
19724LIBS="$ORIGLIBS"
19725
19726fi
19727rm -f core conftest.err conftest.$ac_objext \
19728    conftest$ac_exeext conftest.$ac_ext
19729
19730fi
19731rm -f core conftest.err conftest.$ac_objext \
19732    conftest$ac_exeext conftest.$ac_ext
19733
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19735$as_echo "$ac_cv_func_getaddrinfo" >&6; }
19736if test $ac_cv_func_getaddrinfo = yes; then
19737
19738$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19739
19740fi
19741
19742if test "$USE_WINSOCK" = 1; then
19743
19744$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19745
19746	for ac_header in iphlpapi.h
19747do :
19748  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19749#include <windows.h>
19750
19751"
19752if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19753  cat >>confdefs.h <<_ACEOF
19754#define HAVE_IPHLPAPI_H 1
19755_ACEOF
19756
19757fi
19758
19759done
19760
19761	if test -n "$ac_tool_prefix"; then
19762  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19763set dummy ${ac_tool_prefix}windres; ac_word=$2
19764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19765$as_echo_n "checking for $ac_word... " >&6; }
19766if ${ac_cv_prog_WINDRES+:} false; then :
19767  $as_echo_n "(cached) " >&6
19768else
19769  if test -n "$WINDRES"; then
19770  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19771else
19772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773for as_dir in $PATH
19774do
19775  IFS=$as_save_IFS
19776  test -z "$as_dir" && as_dir=.
19777    for ac_exec_ext in '' $ac_executable_extensions; do
19778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19781    break 2
19782  fi
19783done
19784  done
19785IFS=$as_save_IFS
19786
19787fi
19788fi
19789WINDRES=$ac_cv_prog_WINDRES
19790if test -n "$WINDRES"; then
19791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19792$as_echo "$WINDRES" >&6; }
19793else
19794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19795$as_echo "no" >&6; }
19796fi
19797
19798
19799fi
19800if test -z "$ac_cv_prog_WINDRES"; then
19801  ac_ct_WINDRES=$WINDRES
19802  # Extract the first word of "windres", so it can be a program name with args.
19803set dummy windres; ac_word=$2
19804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19805$as_echo_n "checking for $ac_word... " >&6; }
19806if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19807  $as_echo_n "(cached) " >&6
19808else
19809  if test -n "$ac_ct_WINDRES"; then
19810  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19811else
19812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813for as_dir in $PATH
19814do
19815  IFS=$as_save_IFS
19816  test -z "$as_dir" && as_dir=.
19817    for ac_exec_ext in '' $ac_executable_extensions; do
19818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19819    ac_cv_prog_ac_ct_WINDRES="windres"
19820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19821    break 2
19822  fi
19823done
19824  done
19825IFS=$as_save_IFS
19826
19827fi
19828fi
19829ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19830if test -n "$ac_ct_WINDRES"; then
19831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19832$as_echo "$ac_ct_WINDRES" >&6; }
19833else
19834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835$as_echo "no" >&6; }
19836fi
19837
19838  if test "x$ac_ct_WINDRES" = x; then
19839    WINDRES=""
19840  else
19841    case $cross_compiling:$ac_tool_warned in
19842yes:)
19843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19845ac_tool_warned=yes ;;
19846esac
19847    WINDRES=$ac_ct_WINDRES
19848  fi
19849else
19850  WINDRES="$ac_cv_prog_WINDRES"
19851fi
19852
19853	LIBS="$LIBS -liphlpapi -lcrypt32"
19854	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19855
19856	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19857
19858	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19859
19860	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19861
19862	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19863
19864	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19865
19866	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19867
19868	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19869
19870fi
19871if test $ac_cv_func_getaddrinfo = no; then
19872	case " $LIBOBJS " in
19873  *" fake-rfc2553.$ac_objext "* ) ;;
19874  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19875 ;;
19876esac
19877
19878fi
19879# check after getaddrinfo for its libraries
19880
19881# check ioctlsocket
19882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19883$as_echo_n "checking for ioctlsocket... " >&6; }
19884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885/* end confdefs.h.  */
19886
19887#ifdef HAVE_WINSOCK2_H
19888#include <winsock2.h>
19889#endif
19890
19891int
19892main ()
19893{
19894
19895	(void)ioctlsocket(0, 0, NULL);
19896
19897  ;
19898  return 0;
19899}
19900_ACEOF
19901if ac_fn_c_try_link "$LINENO"; then :
19902
19903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19904$as_echo "yes" >&6; }
19905
19906$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19907
19908
19909else
19910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19911$as_echo "no" >&6; }
19912fi
19913rm -f core conftest.err conftest.$ac_objext \
19914    conftest$ac_exeext conftest.$ac_ext
19915
19916
19917# see if daemon(3) exists, and if it is deprecated.
19918for ac_func in daemon
19919do :
19920  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19921if test "x$ac_cv_func_daemon" = xyes; then :
19922  cat >>confdefs.h <<_ACEOF
19923#define HAVE_DAEMON 1
19924_ACEOF
19925
19926fi
19927done
19928
19929if test $ac_cv_func_daemon = yes; then
19930
19931
19932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19933$as_echo_n "checking if daemon is deprecated... " >&6; }
19934cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19935if eval \${cv_cc_deprecated_$cache+:} false; then :
19936  $as_echo_n "(cached) " >&6
19937else
19938
19939echo '
19940#include <stdlib.h>
19941' >conftest.c
19942echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19943if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19944eval "cv_cc_deprecated_$cache=no"
19945else
19946eval "cv_cc_deprecated_$cache=yes"
19947fi
19948rm -f conftest conftest.o conftest.c
19949
19950fi
19951
19952if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954$as_echo "yes" >&6; }
19955
19956cat >>confdefs.h <<_ACEOF
19957#define DEPRECATED_DAEMON 1
19958_ACEOF
19959
19960:
19961
19962else
19963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964$as_echo "no" >&6; }
19965:
19966
19967fi
19968
19969fi
19970
19971ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19972$ac_includes_default
19973#ifdef HAVE_SYS_UN_H
19974#include <sys/un.h>
19975#endif
19976
19977"
19978if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19979
19980cat >>confdefs.h <<_ACEOF
19981#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19982_ACEOF
19983
19984
19985fi
19986
19987ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19988$ac_includes_default
19989#if HAVE_SYS_PARAM_H
19990#include <sys/param.h>
19991#endif
19992
19993#ifdef HAVE_SYS_SOCKET_H
19994#include <sys/socket.h>
19995#endif
19996
19997#ifdef HAVE_SYS_UIO_H
19998#include <sys/uio.h>
19999#endif
20000
20001#ifdef HAVE_NETINET_IN_H
20002#include <netinet/in.h>
20003#endif
20004
20005#ifdef HAVE_NETINET_TCP_H
20006#include <netinet/tcp.h>
20007#endif
20008
20009#ifdef HAVE_ARPA_INET_H
20010#include <arpa/inet.h>
20011#endif
20012
20013#ifdef HAVE_WINSOCK2_H
20014#include <winsock2.h>
20015#endif
20016
20017#ifdef HAVE_WS2TCPIP_H
20018#include <ws2tcpip.h>
20019#endif
20020
20021"
20022if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20023
20024cat >>confdefs.h <<_ACEOF
20025#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20026_ACEOF
20027
20028
20029fi
20030
20031
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20033$as_echo_n "checking for htobe64... " >&6; }
20034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035/* end confdefs.h.  */
20036
20037#include <stdio.h>
20038#ifdef HAVE_ENDIAN_H
20039#  include <endian.h>
20040#endif
20041#ifdef HAVE_SYS_ENDIAN_H
20042#  include <sys/endian.h>
20043#endif
20044
20045int
20046main ()
20047{
20048unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20049  ;
20050  return 0;
20051}
20052_ACEOF
20053if ac_fn_c_try_link "$LINENO"; then :
20054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20055$as_echo "yes" >&6; }
20056
20057$as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20058
20059else
20060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20061$as_echo "no" >&6; }
20062fi
20063rm -f core conftest.err conftest.$ac_objext \
20064    conftest$ac_exeext conftest.$ac_ext
20065
20066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20067$as_echo_n "checking for be64toh... " >&6; }
20068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069/* end confdefs.h.  */
20070
20071#include <stdio.h>
20072#ifdef HAVE_ENDIAN_H
20073#  include <endian.h>
20074#endif
20075#ifdef HAVE_SYS_ENDIAN_H
20076#  include <sys/endian.h>
20077#endif
20078
20079int
20080main ()
20081{
20082unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20083  ;
20084  return 0;
20085}
20086_ACEOF
20087if ac_fn_c_try_link "$LINENO"; then :
20088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089$as_echo "yes" >&6; }
20090
20091$as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20092
20093else
20094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20095$as_echo "no" >&6; }
20096fi
20097rm -f core conftest.err conftest.$ac_objext \
20098    conftest$ac_exeext conftest.$ac_ext
20099
20100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20101$as_echo_n "checking for library containing setusercontext... " >&6; }
20102if ${ac_cv_search_setusercontext+:} false; then :
20103  $as_echo_n "(cached) " >&6
20104else
20105  ac_func_search_save_LIBS=$LIBS
20106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107/* end confdefs.h.  */
20108
20109/* Override any GCC internal prototype to avoid an error.
20110   Use char because int might match the return type of a GCC
20111   builtin and then its argument prototype would still apply.  */
20112#ifdef __cplusplus
20113extern "C"
20114#endif
20115char setusercontext ();
20116int
20117main ()
20118{
20119return setusercontext ();
20120  ;
20121  return 0;
20122}
20123_ACEOF
20124for ac_lib in '' util; do
20125  if test -z "$ac_lib"; then
20126    ac_res="none required"
20127  else
20128    ac_res=-l$ac_lib
20129    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20130  fi
20131  if ac_fn_c_try_link "$LINENO"; then :
20132  ac_cv_search_setusercontext=$ac_res
20133fi
20134rm -f core conftest.err conftest.$ac_objext \
20135    conftest$ac_exeext
20136  if ${ac_cv_search_setusercontext+:} false; then :
20137  break
20138fi
20139done
20140if ${ac_cv_search_setusercontext+:} false; then :
20141
20142else
20143  ac_cv_search_setusercontext=no
20144fi
20145rm conftest.$ac_ext
20146LIBS=$ac_func_search_save_LIBS
20147fi
20148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20149$as_echo "$ac_cv_search_setusercontext" >&6; }
20150ac_res=$ac_cv_search_setusercontext
20151if test "$ac_res" != no; then :
20152  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20153
20154fi
20155
20156for 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
20157do :
20158  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20159ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20160if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20161  cat >>confdefs.h <<_ACEOF
20162#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20163_ACEOF
20164
20165fi
20166done
20167
20168for ac_func in setresuid
20169do :
20170  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20171if test "x$ac_cv_func_setresuid" = xyes; then :
20172  cat >>confdefs.h <<_ACEOF
20173#define HAVE_SETRESUID 1
20174_ACEOF
20175
20176else
20177  for ac_func in setreuid
20178do :
20179  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20180if test "x$ac_cv_func_setreuid" = xyes; then :
20181  cat >>confdefs.h <<_ACEOF
20182#define HAVE_SETREUID 1
20183_ACEOF
20184
20185fi
20186done
20187
20188fi
20189done
20190
20191for ac_func in setresgid
20192do :
20193  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20194if test "x$ac_cv_func_setresgid" = xyes; then :
20195  cat >>confdefs.h <<_ACEOF
20196#define HAVE_SETRESGID 1
20197_ACEOF
20198
20199else
20200  for ac_func in setregid
20201do :
20202  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20203if test "x$ac_cv_func_setregid" = xyes; then :
20204  cat >>confdefs.h <<_ACEOF
20205#define HAVE_SETREGID 1
20206_ACEOF
20207
20208fi
20209done
20210
20211fi
20212done
20213
20214
20215# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20216if echo $target_os | grep darwin8 > /dev/null; then
20217
20218$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20219
20220fi
20221ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20222$ac_includes_default
20223#ifdef HAVE_NETINET_IN_H
20224#include <netinet/in.h>
20225#endif
20226
20227#ifdef HAVE_NETINET_TCP_H
20228#include <netinet/tcp.h>
20229#endif
20230
20231#ifdef HAVE_ARPA_INET_H
20232#include <arpa/inet.h>
20233#endif
20234
20235#ifdef HAVE_WINSOCK2_H
20236#include <winsock2.h>
20237#endif
20238
20239#ifdef HAVE_WS2TCPIP_H
20240#include <ws2tcpip.h>
20241#endif
20242
20243"
20244if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20245  ac_have_decl=1
20246else
20247  ac_have_decl=0
20248fi
20249
20250cat >>confdefs.h <<_ACEOF
20251#define HAVE_DECL_INET_PTON $ac_have_decl
20252_ACEOF
20253ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20254$ac_includes_default
20255#ifdef HAVE_NETINET_IN_H
20256#include <netinet/in.h>
20257#endif
20258
20259#ifdef HAVE_NETINET_TCP_H
20260#include <netinet/tcp.h>
20261#endif
20262
20263#ifdef HAVE_ARPA_INET_H
20264#include <arpa/inet.h>
20265#endif
20266
20267#ifdef HAVE_WINSOCK2_H
20268#include <winsock2.h>
20269#endif
20270
20271#ifdef HAVE_WS2TCPIP_H
20272#include <ws2tcpip.h>
20273#endif
20274
20275"
20276if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20277  ac_have_decl=1
20278else
20279  ac_have_decl=0
20280fi
20281
20282cat >>confdefs.h <<_ACEOF
20283#define HAVE_DECL_INET_NTOP $ac_have_decl
20284_ACEOF
20285
20286ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20287if test "x$ac_cv_func_inet_aton" = xyes; then :
20288  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20289
20290else
20291  case " $LIBOBJS " in
20292  *" inet_aton.$ac_objext "* ) ;;
20293  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20294 ;;
20295esac
20296
20297fi
20298
20299
20300ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20301if test "x$ac_cv_func_inet_pton" = xyes; then :
20302  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20303
20304else
20305  case " $LIBOBJS " in
20306  *" inet_pton.$ac_objext "* ) ;;
20307  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20308 ;;
20309esac
20310
20311fi
20312
20313
20314ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20315if test "x$ac_cv_func_inet_ntop" = xyes; then :
20316  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20317
20318else
20319  case " $LIBOBJS " in
20320  *" inet_ntop.$ac_objext "* ) ;;
20321  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20322 ;;
20323esac
20324
20325fi
20326
20327
20328ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20329if test "x$ac_cv_func_snprintf" = xyes; then :
20330  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20331
20332else
20333  case " $LIBOBJS " in
20334  *" snprintf.$ac_objext "* ) ;;
20335  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20336 ;;
20337esac
20338
20339fi
20340
20341
20342# test if snprintf return the proper length
20343if test "x$ac_cv_func_snprintf" = xyes; then
20344    if test c${cross_compiling} = cno; then
20345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20346$as_echo_n "checking for correct snprintf return value... " >&6; }
20347	if test "$cross_compiling" = yes; then :
20348  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20350as_fn_error $? "cannot run test program while cross compiling
20351See \`config.log' for more details" "$LINENO" 5; }
20352else
20353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354/* end confdefs.h.  */
20355$ac_includes_default
20356
20357int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20358
20359_ACEOF
20360if ac_fn_c_try_run "$LINENO"; then :
20361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20362$as_echo "yes" >&6; }
20363else
20364
20365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366$as_echo "no" >&6; }
20367
20368$as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20369
20370		case " $LIBOBJS " in
20371  *" snprintf.$ac_objext "* ) ;;
20372  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20373 ;;
20374esac
20375
20376
20377fi
20378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20379  conftest.$ac_objext conftest.beam conftest.$ac_ext
20380fi
20381
20382    fi
20383fi
20384ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20385if test "x$ac_cv_func_strlcat" = xyes; then :
20386  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20387
20388else
20389  case " $LIBOBJS " in
20390  *" strlcat.$ac_objext "* ) ;;
20391  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20392 ;;
20393esac
20394
20395fi
20396
20397
20398ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20399if test "x$ac_cv_func_strlcpy" = xyes; then :
20400  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20401
20402else
20403  case " $LIBOBJS " in
20404  *" strlcpy.$ac_objext "* ) ;;
20405  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20406 ;;
20407esac
20408
20409fi
20410
20411
20412ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20413if test "x$ac_cv_func_memmove" = xyes; then :
20414  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20415
20416else
20417  case " $LIBOBJS " in
20418  *" memmove.$ac_objext "* ) ;;
20419  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20420 ;;
20421esac
20422
20423fi
20424
20425
20426ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20427if test "x$ac_cv_func_gmtime_r" = xyes; then :
20428  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20429
20430else
20431  case " $LIBOBJS " in
20432  *" gmtime_r.$ac_objext "* ) ;;
20433  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20434 ;;
20435esac
20436
20437fi
20438
20439
20440ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20441if test "x$ac_cv_func_isblank" = xyes; then :
20442  $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20443
20444else
20445  case " $LIBOBJS " in
20446  *" isblank.$ac_objext "* ) ;;
20447  *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20448 ;;
20449esac
20450
20451fi
20452
20453
20454ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20455if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20456  $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20457
20458else
20459  case " $LIBOBJS " in
20460  *" explicit_bzero.$ac_objext "* ) ;;
20461  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20462 ;;
20463esac
20464
20465fi
20466
20467
20468LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20469
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20471$as_echo_n "checking for reallocarray... " >&6; }
20472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473/* end confdefs.h.  */
20474$ac_includes_default
20475
20476#ifndef _OPENBSD_SOURCE
20477#define _OPENBSD_SOURCE 1
20478#endif
20479#include <stdlib.h>
20480int main(void) {
20481	void* p = reallocarray(NULL, 10, 100);
20482	free(p);
20483	return 0;
20484}
20485
20486_ACEOF
20487if ac_fn_c_try_link "$LINENO"; then :
20488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20489$as_echo "yes" >&6; }
20490
20491$as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20492
20493
20494else
20495
20496	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497$as_echo "no" >&6; }
20498	case " $LIBOBJS " in
20499  *" reallocarray.$ac_objext "* ) ;;
20500  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20501 ;;
20502esac
20503
20504
20505fi
20506rm -f core conftest.err conftest.$ac_objext \
20507    conftest$ac_exeext conftest.$ac_ext
20508ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20509if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20510  ac_have_decl=1
20511else
20512  ac_have_decl=0
20513fi
20514
20515cat >>confdefs.h <<_ACEOF
20516#define HAVE_DECL_REALLOCARRAY $ac_have_decl
20517_ACEOF
20518
20519if test "$USE_NSS" = "no"; then
20520	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20521if test "x$ac_cv_func_arc4random" = xyes; then :
20522  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20523
20524else
20525  case " $LIBOBJS " in
20526  *" arc4random.$ac_objext "* ) ;;
20527  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20528 ;;
20529esac
20530
20531fi
20532
20533
20534	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20535if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20536  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20537
20538else
20539  case " $LIBOBJS " in
20540  *" arc4random_uniform.$ac_objext "* ) ;;
20541  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20542 ;;
20543esac
20544
20545fi
20546
20547
20548	if test "$ac_cv_func_arc4random" = "no"; then
20549		case " $LIBOBJS " in
20550  *" arc4_lock.$ac_objext "* ) ;;
20551  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20552 ;;
20553esac
20554
20555		for ac_func in getentropy
20556do :
20557  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20558if test "x$ac_cv_func_getentropy" = xyes; then :
20559  cat >>confdefs.h <<_ACEOF
20560#define HAVE_GETENTROPY 1
20561_ACEOF
20562
20563else
20564
20565		    if test "$USE_WINSOCK" = 1; then
20566			case " $LIBOBJS " in
20567  *" getentropy_win.$ac_objext "* ) ;;
20568  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20569 ;;
20570esac
20571
20572		    else
20573			case "$host" in
20574			Darwin|*darwin*)
20575				case " $LIBOBJS " in
20576  *" getentropy_osx.$ac_objext "* ) ;;
20577  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20578 ;;
20579esac
20580
20581			;;
20582			*solaris*|*sunos*|SunOS)
20583				case " $LIBOBJS " in
20584  *" getentropy_solaris.$ac_objext "* ) ;;
20585  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20586 ;;
20587esac
20588
20589				for ac_header in sys/sha2.h
20590do :
20591  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20592"
20593if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20594  cat >>confdefs.h <<_ACEOF
20595#define HAVE_SYS_SHA2_H 1
20596_ACEOF
20597
20598else
20599
20600					for ac_func in SHA512_Update
20601do :
20602  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20603if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20604  cat >>confdefs.h <<_ACEOF
20605#define HAVE_SHA512_UPDATE 1
20606_ACEOF
20607
20608else
20609
20610						case " $LIBOBJS " in
20611  *" sha512.$ac_objext "* ) ;;
20612  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20613 ;;
20614esac
20615
20616
20617fi
20618done
20619
20620
20621fi
20622
20623done
20624
20625				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20626					# this lib needed for sha2 on solaris
20627					LIBS="$LIBS -lmd"
20628				fi
20629				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20630$as_echo_n "checking for library containing clock_gettime... " >&6; }
20631if ${ac_cv_search_clock_gettime+:} false; then :
20632  $as_echo_n "(cached) " >&6
20633else
20634  ac_func_search_save_LIBS=$LIBS
20635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636/* end confdefs.h.  */
20637
20638/* Override any GCC internal prototype to avoid an error.
20639   Use char because int might match the return type of a GCC
20640   builtin and then its argument prototype would still apply.  */
20641#ifdef __cplusplus
20642extern "C"
20643#endif
20644char clock_gettime ();
20645int
20646main ()
20647{
20648return clock_gettime ();
20649  ;
20650  return 0;
20651}
20652_ACEOF
20653for ac_lib in '' rt; do
20654  if test -z "$ac_lib"; then
20655    ac_res="none required"
20656  else
20657    ac_res=-l$ac_lib
20658    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20659  fi
20660  if ac_fn_c_try_link "$LINENO"; then :
20661  ac_cv_search_clock_gettime=$ac_res
20662fi
20663rm -f core conftest.err conftest.$ac_objext \
20664    conftest$ac_exeext
20665  if ${ac_cv_search_clock_gettime+:} false; then :
20666  break
20667fi
20668done
20669if ${ac_cv_search_clock_gettime+:} false; then :
20670
20671else
20672  ac_cv_search_clock_gettime=no
20673fi
20674rm conftest.$ac_ext
20675LIBS=$ac_func_search_save_LIBS
20676fi
20677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20678$as_echo "$ac_cv_search_clock_gettime" >&6; }
20679ac_res=$ac_cv_search_clock_gettime
20680if test "$ac_res" != no; then :
20681  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20682
20683fi
20684
20685			;;
20686			*freebsd*|*FreeBSD)
20687				case " $LIBOBJS " in
20688  *" getentropy_freebsd.$ac_objext "* ) ;;
20689  *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
20690 ;;
20691esac
20692
20693			;;
20694			*linux*|Linux|*)
20695				case " $LIBOBJS " in
20696  *" getentropy_linux.$ac_objext "* ) ;;
20697  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20698 ;;
20699esac
20700
20701				for ac_func in SHA512_Update
20702do :
20703  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20704if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20705  cat >>confdefs.h <<_ACEOF
20706#define HAVE_SHA512_UPDATE 1
20707_ACEOF
20708
20709else
20710
20711
20712$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20713
20714					case " $LIBOBJS " in
20715  *" sha512.$ac_objext "* ) ;;
20716  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20717 ;;
20718esac
20719
20720
20721fi
20722done
20723
20724				for ac_header in sys/sysctl.h
20725do :
20726  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20727"
20728if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20729  cat >>confdefs.h <<_ACEOF
20730#define HAVE_SYS_SYSCTL_H 1
20731_ACEOF
20732
20733fi
20734
20735done
20736
20737				for ac_func in getauxval
20738do :
20739  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20740if test "x$ac_cv_func_getauxval" = xyes; then :
20741  cat >>confdefs.h <<_ACEOF
20742#define HAVE_GETAUXVAL 1
20743_ACEOF
20744
20745fi
20746done
20747
20748				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20749$as_echo_n "checking for library containing clock_gettime... " >&6; }
20750if ${ac_cv_search_clock_gettime+:} false; then :
20751  $as_echo_n "(cached) " >&6
20752else
20753  ac_func_search_save_LIBS=$LIBS
20754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755/* end confdefs.h.  */
20756
20757/* Override any GCC internal prototype to avoid an error.
20758   Use char because int might match the return type of a GCC
20759   builtin and then its argument prototype would still apply.  */
20760#ifdef __cplusplus
20761extern "C"
20762#endif
20763char clock_gettime ();
20764int
20765main ()
20766{
20767return clock_gettime ();
20768  ;
20769  return 0;
20770}
20771_ACEOF
20772for ac_lib in '' rt; do
20773  if test -z "$ac_lib"; then
20774    ac_res="none required"
20775  else
20776    ac_res=-l$ac_lib
20777    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20778  fi
20779  if ac_fn_c_try_link "$LINENO"; then :
20780  ac_cv_search_clock_gettime=$ac_res
20781fi
20782rm -f core conftest.err conftest.$ac_objext \
20783    conftest$ac_exeext
20784  if ${ac_cv_search_clock_gettime+:} false; then :
20785  break
20786fi
20787done
20788if ${ac_cv_search_clock_gettime+:} false; then :
20789
20790else
20791  ac_cv_search_clock_gettime=no
20792fi
20793rm conftest.$ac_ext
20794LIBS=$ac_func_search_save_LIBS
20795fi
20796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20797$as_echo "$ac_cv_search_clock_gettime" >&6; }
20798ac_res=$ac_cv_search_clock_gettime
20799if test "$ac_res" != no; then :
20800  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20801
20802fi
20803
20804			;;
20805			esac
20806		    fi
20807
20808fi
20809done
20810
20811	fi
20812fi
20813LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20814
20815ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20816if test "x$ac_cv_func_ctime_r" = xyes; then :
20817  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20818
20819else
20820  case " $LIBOBJS " in
20821  *" ctime_r.$ac_objext "* ) ;;
20822  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20823 ;;
20824esac
20825
20826fi
20827
20828
20829ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20830if test "x$ac_cv_func_strsep" = xyes; then :
20831  $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20832
20833else
20834  case " $LIBOBJS " in
20835  *" strsep.$ac_objext "* ) ;;
20836  *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20837 ;;
20838esac
20839
20840fi
20841
20842
20843
20844# Check whether --enable-allsymbols was given.
20845if test "${enable_allsymbols+set}" = set; then :
20846  enableval=$enable_allsymbols;
20847fi
20848
20849case "$enable_allsymbols" in
20850	yes)
20851	COMMON_OBJ_ALL_SYMBOLS=""
20852	UBSYMS=""
20853	EXTRALINK="-L. -L.libs -lunbound"
20854
20855$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20856
20857	;;
20858	no|*)
20859	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20860	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20861	EXTRALINK=""
20862	;;
20863esac
20864
20865
20866
20867if test x_$enable_lock_checks = x_yes; then
20868	UBSYMS="-export-symbols clubsyms.def"
20869	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20870	echo lock_protect >> clubsyms.def
20871	echo lock_unprotect >> clubsyms.def
20872	echo lock_get_mem >> clubsyms.def
20873	echo checklock_start >> clubsyms.def
20874	echo checklock_stop >> clubsyms.def
20875	echo checklock_lock >> clubsyms.def
20876	echo checklock_unlock >> clubsyms.def
20877	echo checklock_init >> clubsyms.def
20878	echo checklock_thrcreate >> clubsyms.def
20879	echo checklock_thrjoin >> clubsyms.def
20880fi
20881
20882# check for dnstap if requested
20883
20884  # Check whether --enable-dnstap was given.
20885if test "${enable_dnstap+set}" = set; then :
20886  enableval=$enable_dnstap; opt_dnstap=$enableval
20887else
20888  opt_dnstap=no
20889fi
20890
20891
20892
20893# Check whether --with-dnstap-socket-path was given.
20894if test "${with_dnstap_socket_path+set}" = set; then :
20895  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20896else
20897  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20898fi
20899
20900
20901  if test "x$opt_dnstap" != "xno"; then
20902    # Extract the first word of "protoc-c", so it can be a program name with args.
20903set dummy protoc-c; ac_word=$2
20904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20905$as_echo_n "checking for $ac_word... " >&6; }
20906if ${ac_cv_path_PROTOC_C+:} false; then :
20907  $as_echo_n "(cached) " >&6
20908else
20909  case $PROTOC_C in
20910  [\\/]* | ?:[\\/]*)
20911  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20912  ;;
20913  *)
20914  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20915for as_dir in $PATH
20916do
20917  IFS=$as_save_IFS
20918  test -z "$as_dir" && as_dir=.
20919    for ac_exec_ext in '' $ac_executable_extensions; do
20920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20921    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20923    break 2
20924  fi
20925done
20926  done
20927IFS=$as_save_IFS
20928
20929  ;;
20930esac
20931fi
20932PROTOC_C=$ac_cv_path_PROTOC_C
20933if test -n "$PROTOC_C"; then
20934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20935$as_echo "$PROTOC_C" >&6; }
20936else
20937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938$as_echo "no" >&6; }
20939fi
20940
20941
20942    if test -z "$PROTOC_C"; then
20943      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20944    fi
20945
20946# Check whether --with-protobuf-c was given.
20947if test "${with_protobuf_c+set}" = set; then :
20948  withval=$with_protobuf_c;
20949	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20950	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20951	    CFLAGS="$CFLAGS -I$withval/include/google"
20952	  else
20953	    CFLAGS="$CFLAGS -I$withval/include"
20954	  fi
20955	  LDFLAGS="$LDFLAGS -L$withval/lib"
20956
20957else
20958
20959	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20960	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20961	    CFLAGS="$CFLAGS -I/usr/include/google"
20962	  else
20963	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20964	      CFLAGS="$CFLAGS -I/usr/local/include/google"
20965	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
20966	    fi
20967	  fi
20968
20969fi
20970
20971
20972# Check whether --with-libfstrm was given.
20973if test "${with_libfstrm+set}" = set; then :
20974  withval=$with_libfstrm;
20975	CFLAGS="$CFLAGS -I$withval/include"
20976	LDFLAGS="$LDFLAGS -L$withval/lib"
20977
20978fi
20979
20980    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20981$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20982if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20983  $as_echo_n "(cached) " >&6
20984else
20985  ac_func_search_save_LIBS=$LIBS
20986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987/* end confdefs.h.  */
20988
20989/* Override any GCC internal prototype to avoid an error.
20990   Use char because int might match the return type of a GCC
20991   builtin and then its argument prototype would still apply.  */
20992#ifdef __cplusplus
20993extern "C"
20994#endif
20995char fstrm_iothr_init ();
20996int
20997main ()
20998{
20999return fstrm_iothr_init ();
21000  ;
21001  return 0;
21002}
21003_ACEOF
21004for ac_lib in '' fstrm; do
21005  if test -z "$ac_lib"; then
21006    ac_res="none required"
21007  else
21008    ac_res=-l$ac_lib
21009    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21010  fi
21011  if ac_fn_c_try_link "$LINENO"; then :
21012  ac_cv_search_fstrm_iothr_init=$ac_res
21013fi
21014rm -f core conftest.err conftest.$ac_objext \
21015    conftest$ac_exeext
21016  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21017  break
21018fi
21019done
21020if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21021
21022else
21023  ac_cv_search_fstrm_iothr_init=no
21024fi
21025rm conftest.$ac_ext
21026LIBS=$ac_func_search_save_LIBS
21027fi
21028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
21029$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
21030ac_res=$ac_cv_search_fstrm_iothr_init
21031if test "$ac_res" != no; then :
21032  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21033
21034else
21035  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
21036fi
21037
21038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21039$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21040if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21041  $as_echo_n "(cached) " >&6
21042else
21043  ac_func_search_save_LIBS=$LIBS
21044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045/* end confdefs.h.  */
21046
21047/* Override any GCC internal prototype to avoid an error.
21048   Use char because int might match the return type of a GCC
21049   builtin and then its argument prototype would still apply.  */
21050#ifdef __cplusplus
21051extern "C"
21052#endif
21053char protobuf_c_message_pack ();
21054int
21055main ()
21056{
21057return protobuf_c_message_pack ();
21058  ;
21059  return 0;
21060}
21061_ACEOF
21062for ac_lib in '' protobuf-c; do
21063  if test -z "$ac_lib"; then
21064    ac_res="none required"
21065  else
21066    ac_res=-l$ac_lib
21067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21068  fi
21069  if ac_fn_c_try_link "$LINENO"; then :
21070  ac_cv_search_protobuf_c_message_pack=$ac_res
21071fi
21072rm -f core conftest.err conftest.$ac_objext \
21073    conftest$ac_exeext
21074  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21075  break
21076fi
21077done
21078if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21079
21080else
21081  ac_cv_search_protobuf_c_message_pack=no
21082fi
21083rm conftest.$ac_ext
21084LIBS=$ac_func_search_save_LIBS
21085fi
21086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21087$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21088ac_res=$ac_cv_search_protobuf_c_message_pack
21089if test "$ac_res" != no; then :
21090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21091
21092else
21093  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21094fi
21095
21096
21097
21098$as_echo "#define USE_DNSTAP 1" >>confdefs.h
21099
21100        ENABLE_DNSTAP=1
21101
21102
21103
21104        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21105
21106
21107cat >>confdefs.h <<_ACEOF
21108#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21109_ACEOF
21110
21111
21112        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
21113
21114        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
21115
21116
21117  else
21118
21119        ENABLE_DNSTAP=0
21120
21121
21122
21123  fi
21124
21125
21126# check for dnscrypt if requested
21127
21128  # Check whether --enable-dnscrypt was given.
21129if test "${enable_dnscrypt+set}" = set; then :
21130  enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21131else
21132  opt_dnscrypt=no
21133fi
21134
21135
21136  if test "x$opt_dnscrypt" != "xno"; then
21137
21138# Check whether --with-libsodium was given.
21139if test "${with_libsodium+set}" = set; then :
21140  withval=$with_libsodium;
21141	CFLAGS="$CFLAGS -I$withval/include"
21142	LDFLAGS="$LDFLAGS -L$withval/lib"
21143
21144fi
21145
21146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21147$as_echo_n "checking for library containing sodium_init... " >&6; }
21148if ${ac_cv_search_sodium_init+:} false; then :
21149  $as_echo_n "(cached) " >&6
21150else
21151  ac_func_search_save_LIBS=$LIBS
21152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153/* end confdefs.h.  */
21154
21155/* Override any GCC internal prototype to avoid an error.
21156   Use char because int might match the return type of a GCC
21157   builtin and then its argument prototype would still apply.  */
21158#ifdef __cplusplus
21159extern "C"
21160#endif
21161char sodium_init ();
21162int
21163main ()
21164{
21165return sodium_init ();
21166  ;
21167  return 0;
21168}
21169_ACEOF
21170for ac_lib in '' sodium; do
21171  if test -z "$ac_lib"; then
21172    ac_res="none required"
21173  else
21174    ac_res=-l$ac_lib
21175    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21176  fi
21177  if ac_fn_c_try_link "$LINENO"; then :
21178  ac_cv_search_sodium_init=$ac_res
21179fi
21180rm -f core conftest.err conftest.$ac_objext \
21181    conftest$ac_exeext
21182  if ${ac_cv_search_sodium_init+:} false; then :
21183  break
21184fi
21185done
21186if ${ac_cv_search_sodium_init+:} false; then :
21187
21188else
21189  ac_cv_search_sodium_init=no
21190fi
21191rm conftest.$ac_ext
21192LIBS=$ac_func_search_save_LIBS
21193fi
21194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21195$as_echo "$ac_cv_search_sodium_init" >&6; }
21196ac_res=$ac_cv_search_sodium_init
21197if test "$ac_res" != no; then :
21198  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21199
21200else
21201  as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21202fi
21203
21204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21205$as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21206if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21207  $as_echo_n "(cached) " >&6
21208else
21209  ac_func_search_save_LIBS=$LIBS
21210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211/* end confdefs.h.  */
21212
21213/* Override any GCC internal prototype to avoid an error.
21214   Use char because int might match the return type of a GCC
21215   builtin and then its argument prototype would still apply.  */
21216#ifdef __cplusplus
21217extern "C"
21218#endif
21219char crypto_box_curve25519xchacha20poly1305_beforenm ();
21220int
21221main ()
21222{
21223return crypto_box_curve25519xchacha20poly1305_beforenm ();
21224  ;
21225  return 0;
21226}
21227_ACEOF
21228for ac_lib in '' sodium; do
21229  if test -z "$ac_lib"; then
21230    ac_res="none required"
21231  else
21232    ac_res=-l$ac_lib
21233    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21234  fi
21235  if ac_fn_c_try_link "$LINENO"; then :
21236  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21237fi
21238rm -f core conftest.err conftest.$ac_objext \
21239    conftest$ac_exeext
21240  if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21241  break
21242fi
21243done
21244if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21245
21246else
21247  ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21248fi
21249rm conftest.$ac_ext
21250LIBS=$ac_func_search_save_LIBS
21251fi
21252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21253$as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21254ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21255if test "$ac_res" != no; then :
21256  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21257
21258            ENABLE_DNSCRYPT_XCHACHA20=1
21259
21260
21261$as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21262
21263
21264else
21265
21266            ENABLE_DNSCRYPT_XCHACHA20=0
21267
21268
21269fi
21270
21271    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21272$as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21273if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21274  $as_echo_n "(cached) " >&6
21275else
21276  ac_func_search_save_LIBS=$LIBS
21277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278/* end confdefs.h.  */
21279
21280/* Override any GCC internal prototype to avoid an error.
21281   Use char because int might match the return type of a GCC
21282   builtin and then its argument prototype would still apply.  */
21283#ifdef __cplusplus
21284extern "C"
21285#endif
21286char sodium_set_misuse_handler ();
21287int
21288main ()
21289{
21290return sodium_set_misuse_handler ();
21291  ;
21292  return 0;
21293}
21294_ACEOF
21295for ac_lib in '' sodium; do
21296  if test -z "$ac_lib"; then
21297    ac_res="none required"
21298  else
21299    ac_res=-l$ac_lib
21300    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21301  fi
21302  if ac_fn_c_try_link "$LINENO"; then :
21303  ac_cv_search_sodium_set_misuse_handler=$ac_res
21304fi
21305rm -f core conftest.err conftest.$ac_objext \
21306    conftest$ac_exeext
21307  if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21308  break
21309fi
21310done
21311if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21312
21313else
21314  ac_cv_search_sodium_set_misuse_handler=no
21315fi
21316rm conftest.$ac_ext
21317LIBS=$ac_func_search_save_LIBS
21318fi
21319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21320$as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21321ac_res=$ac_cv_search_sodium_set_misuse_handler
21322if test "$ac_res" != no; then :
21323  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21324
21325
21326$as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21327
21328
21329fi
21330
21331
21332
21333$as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21334
21335        ENABLE_DNSCRYPT=1
21336
21337
21338        DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21339
21340        DNSCRYPT_OBJ="dnscrypt.lo"
21341
21342
21343  else
21344    ENABLE_DNSCRYPT_XCHACHA20=0
21345
21346
21347        ENABLE_DNSCRYPT=0
21348
21349
21350
21351  fi
21352
21353
21354# check for cachedb if requested
21355# Check whether --enable-cachedb was given.
21356if test "${enable_cachedb+set}" = set; then :
21357  enableval=$enable_cachedb;
21358fi
21359
21360# turn on cachedb when hiredis support is enabled.
21361if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21362case "$enable_cachedb" in
21363    yes)
21364
21365$as_echo "#define USE_CACHEDB 1" >>confdefs.h
21366
21367    	;;
21368    no|*)
21369    	# nothing
21370    	;;
21371esac
21372
21373# check for ipsecmod if requested
21374# Check whether --enable-ipsecmod was given.
21375if test "${enable_ipsecmod+set}" = set; then :
21376  enableval=$enable_ipsecmod;
21377fi
21378
21379case "$enable_ipsecmod" in
21380	yes)
21381
21382$as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21383
21384		IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21385
21386		IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21387
21388		;;
21389	no|*)
21390		# nothing
21391		;;
21392esac
21393
21394# check for ipset if requested
21395# Check whether --enable-ipset was given.
21396if test "${enable_ipset+set}" = set; then :
21397  enableval=$enable_ipset;
21398fi
21399
21400case "$enable_ipset" in
21401    yes)
21402
21403$as_echo "#define USE_IPSET 1" >>confdefs.h
21404
21405		IPSET_SRC="ipset/ipset.c"
21406
21407		IPSET_OBJ="ipset.lo"
21408
21409
21410		# mnl
21411
21412# Check whether --with-libmnl was given.
21413if test "${with_libmnl+set}" = set; then :
21414  withval=$with_libmnl;
21415else
21416   withval="yes"
21417fi
21418
21419		found_libmnl="no"
21420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21421$as_echo_n "checking for libmnl... " >&6; }
21422		if test x_$withval = x_ -o x_$withval = x_yes; then
21423			withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21424		fi
21425		for dir in $withval ; do
21426			if test -f "$dir/include/libmnl/libmnl.h"; then
21427				found_libmnl="yes"
21428								if test "$dir" != "/usr"; then
21429					CPPFLAGS="$CPPFLAGS -I$dir/include"
21430					LDFLAGS="$LDFLAGS -L$dir/lib"
21431				fi
21432				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21433$as_echo "found in $dir" >&6; }
21434				LIBS="$LIBS -lmnl"
21435				break;
21436			fi
21437		done
21438		if test x_$found_libmnl != x_yes; then
21439			as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21440		fi
21441		;;
21442    no|*)
21443    	# nothing
21444		;;
21445esac
21446
21447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21448$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21449# on openBSD, the implicit rule make $< work.
21450# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21451# gmake works.
21452cat >conftest.make <<EOF
21453all:	conftest.lo
21454
21455conftest.lo foo.lo bla.lo:
21456	if test -f "\$<"; then touch \$@; fi
21457
21458.SUFFIXES: .lo
21459.c.lo:
21460	if test -f "\$<"; then touch \$@; fi
21461
21462conftest.lo:        conftest.dir/conftest.c
21463EOF
21464mkdir conftest.dir
21465touch conftest.dir/conftest.c
21466rm -f conftest.lo conftest.c
21467${MAKE:-make} -f conftest.make >/dev/null
21468rm -f conftest.make conftest.c conftest.dir/conftest.c
21469rm -rf conftest.dir
21470if test ! -f conftest.lo; then
21471	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21472$as_echo "no" >&6; }
21473	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21474	SOURCEFILE='`cat .source`'
21475else
21476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477$as_echo "yes" >&6; }
21478	SOURCEDETERMINE=':'
21479	SOURCEFILE='$<'
21480fi
21481rm -f conftest.lo
21482
21483
21484
21485# see if we want to build the library or everything
21486ALLTARGET="alltargets"
21487INSTALLTARGET="install-all"
21488
21489# Check whether --with-libunbound-only was given.
21490if test "${with_libunbound_only+set}" = set; then :
21491  withval=$with_libunbound_only;
21492	if test "$withval" = "yes"; then
21493		ALLTARGET="lib"
21494		INSTALLTARGET="install-lib"
21495	fi
21496
21497fi
21498
21499if test $ALLTARGET = "alltargets"; then
21500	if test $USE_NSS = "yes"; then
21501		as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21502	fi
21503	if test $USE_NETTLE = "yes"; then
21504		as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21505	fi
21506fi
21507
21508
21509
21510
21511
21512  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21513$as_echo "$as_me: Stripping extension flags..." >&6;}
21514
21515  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21516    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21517
21518$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21519
21520  fi
21521
21522
21523  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21524    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21525
21526$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21527
21528  fi
21529
21530
21531  if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21532    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21533
21534$as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21535
21536  fi
21537
21538
21539  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21540    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21541
21542$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21543
21544  fi
21545
21546
21547  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21548    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21549
21550$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21551
21552  fi
21553
21554
21555  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21556    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21557
21558$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21559
21560  fi
21561
21562
21563  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21564    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21565
21566$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21567
21568  fi
21569
21570
21571  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21572    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21573
21574$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21575
21576  fi
21577
21578
21579  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21580    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21581
21582$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21583
21584  fi
21585
21586
21587if test -n "$LATE_LDFLAGS"; then
21588  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21589fi
21590# remove start spaces
21591LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21592LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21593
21594
21595cat >>confdefs.h <<_ACEOF
21596#define MAXSYSLOGMSGLEN 10240
21597_ACEOF
21598
21599
21600
21601
21602version=1.10.1
21603
21604date=`date +'%b %e, %Y'`
21605
21606
21607ac_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"
21608
21609ac_config_headers="$ac_config_headers config.h"
21610
21611cat >confcache <<\_ACEOF
21612# This file is a shell script that caches the results of configure
21613# tests run on this system so they can be shared between configure
21614# scripts and configure runs, see configure's option --config-cache.
21615# It is not useful on other systems.  If it contains results you don't
21616# want to keep, you may remove or edit it.
21617#
21618# config.status only pays attention to the cache file if you give it
21619# the --recheck option to rerun configure.
21620#
21621# `ac_cv_env_foo' variables (set or unset) will be overridden when
21622# loading this file, other *unset* `ac_cv_foo' will be assigned the
21623# following values.
21624
21625_ACEOF
21626
21627# The following way of writing the cache mishandles newlines in values,
21628# but we know of no workaround that is simple, portable, and efficient.
21629# So, we kill variables containing newlines.
21630# Ultrix sh set writes to stderr and can't be redirected directly,
21631# and sets the high bit in the cache file unless we assign to the vars.
21632(
21633  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21634    eval ac_val=\$$ac_var
21635    case $ac_val in #(
21636    *${as_nl}*)
21637      case $ac_var in #(
21638      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21639$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21640      esac
21641      case $ac_var in #(
21642      _ | IFS | as_nl) ;; #(
21643      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21644      *) { eval $ac_var=; unset $ac_var;} ;;
21645      esac ;;
21646    esac
21647  done
21648
21649  (set) 2>&1 |
21650    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21651    *${as_nl}ac_space=\ *)
21652      # `set' does not quote correctly, so add quotes: double-quote
21653      # substitution turns \\\\ into \\, and sed turns \\ into \.
21654      sed -n \
21655	"s/'/'\\\\''/g;
21656	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21657      ;; #(
21658    *)
21659      # `set' quotes correctly as required by POSIX, so do not add quotes.
21660      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21661      ;;
21662    esac |
21663    sort
21664) |
21665  sed '
21666     /^ac_cv_env_/b end
21667     t clear
21668     :clear
21669     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21670     t end
21671     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21672     :end' >>confcache
21673if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21674  if test -w "$cache_file"; then
21675    if test "x$cache_file" != "x/dev/null"; then
21676      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21677$as_echo "$as_me: updating cache $cache_file" >&6;}
21678      if test ! -f "$cache_file" || test -h "$cache_file"; then
21679	cat confcache >"$cache_file"
21680      else
21681        case $cache_file in #(
21682        */* | ?:*)
21683	  mv -f confcache "$cache_file"$$ &&
21684	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21685        *)
21686	  mv -f confcache "$cache_file" ;;
21687	esac
21688      fi
21689    fi
21690  else
21691    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21692$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21693  fi
21694fi
21695rm -f confcache
21696
21697test "x$prefix" = xNONE && prefix=$ac_default_prefix
21698# Let make expand exec_prefix.
21699test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21700
21701DEFS=-DHAVE_CONFIG_H
21702
21703ac_libobjs=
21704ac_ltlibobjs=
21705U=
21706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707  # 1. Remove the extension, and $U if already installed.
21708  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21710  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21711  #    will be set to the directory where LIBOBJS objects are built.
21712  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21714done
21715LIBOBJS=$ac_libobjs
21716
21717LTLIBOBJS=$ac_ltlibobjs
21718
21719
21720if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21721  as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21722Usually this means the macro was only invoked conditionally." "$LINENO" 5
21723fi
21724
21725: "${CONFIG_STATUS=./config.status}"
21726ac_write_fail=0
21727ac_clean_files_save=$ac_clean_files
21728ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21729{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21730$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21731as_write_fail=0
21732cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21733#! $SHELL
21734# Generated by $as_me.
21735# Run this file to recreate the current configuration.
21736# Compiler output produced by configure, useful for debugging
21737# configure, is in config.log if it exists.
21738
21739debug=false
21740ac_cs_recheck=false
21741ac_cs_silent=false
21742
21743SHELL=\${CONFIG_SHELL-$SHELL}
21744export SHELL
21745_ASEOF
21746cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21747## -------------------- ##
21748## M4sh Initialization. ##
21749## -------------------- ##
21750
21751# Be more Bourne compatible
21752DUALCASE=1; export DUALCASE # for MKS sh
21753if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21754  emulate sh
21755  NULLCMD=:
21756  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21757  # is contrary to our usage.  Disable this feature.
21758  alias -g '${1+"$@"}'='"$@"'
21759  setopt NO_GLOB_SUBST
21760else
21761  case `(set -o) 2>/dev/null` in #(
21762  *posix*) :
21763    set -o posix ;; #(
21764  *) :
21765     ;;
21766esac
21767fi
21768
21769
21770as_nl='
21771'
21772export as_nl
21773# Printing a long string crashes Solaris 7 /usr/bin/printf.
21774as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21775as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21776as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21777# Prefer a ksh shell builtin over an external printf program on Solaris,
21778# but without wasting forks for bash or zsh.
21779if test -z "$BASH_VERSION$ZSH_VERSION" \
21780    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21781  as_echo='print -r --'
21782  as_echo_n='print -rn --'
21783elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21784  as_echo='printf %s\n'
21785  as_echo_n='printf %s'
21786else
21787  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21788    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21789    as_echo_n='/usr/ucb/echo -n'
21790  else
21791    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21792    as_echo_n_body='eval
21793      arg=$1;
21794      case $arg in #(
21795      *"$as_nl"*)
21796	expr "X$arg" : "X\\(.*\\)$as_nl";
21797	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21798      esac;
21799      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21800    '
21801    export as_echo_n_body
21802    as_echo_n='sh -c $as_echo_n_body as_echo'
21803  fi
21804  export as_echo_body
21805  as_echo='sh -c $as_echo_body as_echo'
21806fi
21807
21808# The user is always right.
21809if test "${PATH_SEPARATOR+set}" != set; then
21810  PATH_SEPARATOR=:
21811  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21812    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21813      PATH_SEPARATOR=';'
21814  }
21815fi
21816
21817
21818# IFS
21819# We need space, tab and new line, in precisely that order.  Quoting is
21820# there to prevent editors from complaining about space-tab.
21821# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21822# splitting by setting IFS to empty value.)
21823IFS=" ""	$as_nl"
21824
21825# Find who we are.  Look in the path if we contain no directory separator.
21826as_myself=
21827case $0 in #((
21828  *[\\/]* ) as_myself=$0 ;;
21829  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21830for as_dir in $PATH
21831do
21832  IFS=$as_save_IFS
21833  test -z "$as_dir" && as_dir=.
21834    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21835  done
21836IFS=$as_save_IFS
21837
21838     ;;
21839esac
21840# We did not find ourselves, most probably we were run as `sh COMMAND'
21841# in which case we are not to be found in the path.
21842if test "x$as_myself" = x; then
21843  as_myself=$0
21844fi
21845if test ! -f "$as_myself"; then
21846  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21847  exit 1
21848fi
21849
21850# Unset variables that we do not need and which cause bugs (e.g. in
21851# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21852# suppresses any "Segmentation fault" message there.  '((' could
21853# trigger a bug in pdksh 5.2.14.
21854for as_var in BASH_ENV ENV MAIL MAILPATH
21855do eval test x\${$as_var+set} = xset \
21856  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21857done
21858PS1='$ '
21859PS2='> '
21860PS4='+ '
21861
21862# NLS nuisances.
21863LC_ALL=C
21864export LC_ALL
21865LANGUAGE=C
21866export LANGUAGE
21867
21868# CDPATH.
21869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21870
21871
21872# as_fn_error STATUS ERROR [LINENO LOG_FD]
21873# ----------------------------------------
21874# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21875# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21876# script with STATUS, using 1 if that was 0.
21877as_fn_error ()
21878{
21879  as_status=$1; test $as_status -eq 0 && as_status=1
21880  if test "$4"; then
21881    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21882    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21883  fi
21884  $as_echo "$as_me: error: $2" >&2
21885  as_fn_exit $as_status
21886} # as_fn_error
21887
21888
21889# as_fn_set_status STATUS
21890# -----------------------
21891# Set $? to STATUS, without forking.
21892as_fn_set_status ()
21893{
21894  return $1
21895} # as_fn_set_status
21896
21897# as_fn_exit STATUS
21898# -----------------
21899# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21900as_fn_exit ()
21901{
21902  set +e
21903  as_fn_set_status $1
21904  exit $1
21905} # as_fn_exit
21906
21907# as_fn_unset VAR
21908# ---------------
21909# Portably unset VAR.
21910as_fn_unset ()
21911{
21912  { eval $1=; unset $1;}
21913}
21914as_unset=as_fn_unset
21915# as_fn_append VAR VALUE
21916# ----------------------
21917# Append the text in VALUE to the end of the definition contained in VAR. Take
21918# advantage of any shell optimizations that allow amortized linear growth over
21919# repeated appends, instead of the typical quadratic growth present in naive
21920# implementations.
21921if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21922  eval 'as_fn_append ()
21923  {
21924    eval $1+=\$2
21925  }'
21926else
21927  as_fn_append ()
21928  {
21929    eval $1=\$$1\$2
21930  }
21931fi # as_fn_append
21932
21933# as_fn_arith ARG...
21934# ------------------
21935# Perform arithmetic evaluation on the ARGs, and store the result in the
21936# global $as_val. Take advantage of shells that can avoid forks. The arguments
21937# must be portable across $(()) and expr.
21938if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21939  eval 'as_fn_arith ()
21940  {
21941    as_val=$(( $* ))
21942  }'
21943else
21944  as_fn_arith ()
21945  {
21946    as_val=`expr "$@" || test $? -eq 1`
21947  }
21948fi # as_fn_arith
21949
21950
21951if expr a : '\(a\)' >/dev/null 2>&1 &&
21952   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21953  as_expr=expr
21954else
21955  as_expr=false
21956fi
21957
21958if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21959  as_basename=basename
21960else
21961  as_basename=false
21962fi
21963
21964if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21965  as_dirname=dirname
21966else
21967  as_dirname=false
21968fi
21969
21970as_me=`$as_basename -- "$0" ||
21971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21972	 X"$0" : 'X\(//\)$' \| \
21973	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21974$as_echo X/"$0" |
21975    sed '/^.*\/\([^/][^/]*\)\/*$/{
21976	    s//\1/
21977	    q
21978	  }
21979	  /^X\/\(\/\/\)$/{
21980	    s//\1/
21981	    q
21982	  }
21983	  /^X\/\(\/\).*/{
21984	    s//\1/
21985	    q
21986	  }
21987	  s/.*/./; q'`
21988
21989# Avoid depending upon Character Ranges.
21990as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21991as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21992as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21993as_cr_digits='0123456789'
21994as_cr_alnum=$as_cr_Letters$as_cr_digits
21995
21996ECHO_C= ECHO_N= ECHO_T=
21997case `echo -n x` in #(((((
21998-n*)
21999  case `echo 'xy\c'` in
22000  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22001  xy)  ECHO_C='\c';;
22002  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22003       ECHO_T='	';;
22004  esac;;
22005*)
22006  ECHO_N='-n';;
22007esac
22008
22009rm -f conf$$ conf$$.exe conf$$.file
22010if test -d conf$$.dir; then
22011  rm -f conf$$.dir/conf$$.file
22012else
22013  rm -f conf$$.dir
22014  mkdir conf$$.dir 2>/dev/null
22015fi
22016if (echo >conf$$.file) 2>/dev/null; then
22017  if ln -s conf$$.file conf$$ 2>/dev/null; then
22018    as_ln_s='ln -s'
22019    # ... but there are two gotchas:
22020    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22021    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22022    # In both cases, we have to default to `cp -pR'.
22023    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22024      as_ln_s='cp -pR'
22025  elif ln conf$$.file conf$$ 2>/dev/null; then
22026    as_ln_s=ln
22027  else
22028    as_ln_s='cp -pR'
22029  fi
22030else
22031  as_ln_s='cp -pR'
22032fi
22033rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22034rmdir conf$$.dir 2>/dev/null
22035
22036
22037# as_fn_mkdir_p
22038# -------------
22039# Create "$as_dir" as a directory, including parents if necessary.
22040as_fn_mkdir_p ()
22041{
22042
22043  case $as_dir in #(
22044  -*) as_dir=./$as_dir;;
22045  esac
22046  test -d "$as_dir" || eval $as_mkdir_p || {
22047    as_dirs=
22048    while :; do
22049      case $as_dir in #(
22050      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22051      *) as_qdir=$as_dir;;
22052      esac
22053      as_dirs="'$as_qdir' $as_dirs"
22054      as_dir=`$as_dirname -- "$as_dir" ||
22055$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22056	 X"$as_dir" : 'X\(//\)[^/]' \| \
22057	 X"$as_dir" : 'X\(//\)$' \| \
22058	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22059$as_echo X"$as_dir" |
22060    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22061	    s//\1/
22062	    q
22063	  }
22064	  /^X\(\/\/\)[^/].*/{
22065	    s//\1/
22066	    q
22067	  }
22068	  /^X\(\/\/\)$/{
22069	    s//\1/
22070	    q
22071	  }
22072	  /^X\(\/\).*/{
22073	    s//\1/
22074	    q
22075	  }
22076	  s/.*/./; q'`
22077      test -d "$as_dir" && break
22078    done
22079    test -z "$as_dirs" || eval "mkdir $as_dirs"
22080  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22081
22082
22083} # as_fn_mkdir_p
22084if mkdir -p . 2>/dev/null; then
22085  as_mkdir_p='mkdir -p "$as_dir"'
22086else
22087  test -d ./-p && rmdir ./-p
22088  as_mkdir_p=false
22089fi
22090
22091
22092# as_fn_executable_p FILE
22093# -----------------------
22094# Test if FILE is an executable regular file.
22095as_fn_executable_p ()
22096{
22097  test -f "$1" && test -x "$1"
22098} # as_fn_executable_p
22099as_test_x='test -x'
22100as_executable_p=as_fn_executable_p
22101
22102# Sed expression to map a string onto a valid CPP name.
22103as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22104
22105# Sed expression to map a string onto a valid variable name.
22106as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22107
22108
22109exec 6>&1
22110## ----------------------------------- ##
22111## Main body of $CONFIG_STATUS script. ##
22112## ----------------------------------- ##
22113_ASEOF
22114test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22115
22116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22117# Save the log message, to keep $0 and so on meaningful, and to
22118# report actual input values of CONFIG_FILES etc. instead of their
22119# values after options handling.
22120ac_log="
22121This file was extended by unbound $as_me 1.10.1, which was
22122generated by GNU Autoconf 2.69.  Invocation command line was
22123
22124  CONFIG_FILES    = $CONFIG_FILES
22125  CONFIG_HEADERS  = $CONFIG_HEADERS
22126  CONFIG_LINKS    = $CONFIG_LINKS
22127  CONFIG_COMMANDS = $CONFIG_COMMANDS
22128  $ $0 $@
22129
22130on `(hostname || uname -n) 2>/dev/null | sed 1q`
22131"
22132
22133_ACEOF
22134
22135case $ac_config_files in *"
22136"*) set x $ac_config_files; shift; ac_config_files=$*;;
22137esac
22138
22139case $ac_config_headers in *"
22140"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22141esac
22142
22143
22144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22145# Files that config.status was made for.
22146config_files="$ac_config_files"
22147config_headers="$ac_config_headers"
22148config_commands="$ac_config_commands"
22149
22150_ACEOF
22151
22152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22153ac_cs_usage="\
22154\`$as_me' instantiates files and other configuration actions
22155from templates according to the current configuration.  Unless the files
22156and actions are specified as TAGs, all are instantiated by default.
22157
22158Usage: $0 [OPTION]... [TAG]...
22159
22160  -h, --help       print this help, then exit
22161  -V, --version    print version number and configuration settings, then exit
22162      --config     print configuration, then exit
22163  -q, --quiet, --silent
22164                   do not print progress messages
22165  -d, --debug      don't remove temporary files
22166      --recheck    update $as_me by reconfiguring in the same conditions
22167      --file=FILE[:TEMPLATE]
22168                   instantiate the configuration file FILE
22169      --header=FILE[:TEMPLATE]
22170                   instantiate the configuration header FILE
22171
22172Configuration files:
22173$config_files
22174
22175Configuration headers:
22176$config_headers
22177
22178Configuration commands:
22179$config_commands
22180
22181Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22182
22183_ACEOF
22184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22186ac_cs_version="\\
22187unbound config.status 1.10.1
22188configured by $0, generated by GNU Autoconf 2.69,
22189  with options \\"\$ac_cs_config\\"
22190
22191Copyright (C) 2012 Free Software Foundation, Inc.
22192This config.status script is free software; the Free Software Foundation
22193gives unlimited permission to copy, distribute and modify it."
22194
22195ac_pwd='$ac_pwd'
22196srcdir='$srcdir'
22197AWK='$AWK'
22198test -n "\$AWK" || AWK=awk
22199_ACEOF
22200
22201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202# The default lists apply if the user does not specify any file.
22203ac_need_defaults=:
22204while test $# != 0
22205do
22206  case $1 in
22207  --*=?*)
22208    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22209    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22210    ac_shift=:
22211    ;;
22212  --*=)
22213    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22214    ac_optarg=
22215    ac_shift=:
22216    ;;
22217  *)
22218    ac_option=$1
22219    ac_optarg=$2
22220    ac_shift=shift
22221    ;;
22222  esac
22223
22224  case $ac_option in
22225  # Handling of the options.
22226  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22227    ac_cs_recheck=: ;;
22228  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22229    $as_echo "$ac_cs_version"; exit ;;
22230  --config | --confi | --conf | --con | --co | --c )
22231    $as_echo "$ac_cs_config"; exit ;;
22232  --debug | --debu | --deb | --de | --d | -d )
22233    debug=: ;;
22234  --file | --fil | --fi | --f )
22235    $ac_shift
22236    case $ac_optarg in
22237    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22238    '') as_fn_error $? "missing file argument" ;;
22239    esac
22240    as_fn_append CONFIG_FILES " '$ac_optarg'"
22241    ac_need_defaults=false;;
22242  --header | --heade | --head | --hea )
22243    $ac_shift
22244    case $ac_optarg in
22245    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22246    esac
22247    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22248    ac_need_defaults=false;;
22249  --he | --h)
22250    # Conflict between --help and --header
22251    as_fn_error $? "ambiguous option: \`$1'
22252Try \`$0 --help' for more information.";;
22253  --help | --hel | -h )
22254    $as_echo "$ac_cs_usage"; exit ;;
22255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22256  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22257    ac_cs_silent=: ;;
22258
22259  # This is an error.
22260  -*) as_fn_error $? "unrecognized option: \`$1'
22261Try \`$0 --help' for more information." ;;
22262
22263  *) as_fn_append ac_config_targets " $1"
22264     ac_need_defaults=false ;;
22265
22266  esac
22267  shift
22268done
22269
22270ac_configure_extra_args=
22271
22272if $ac_cs_silent; then
22273  exec 6>/dev/null
22274  ac_configure_extra_args="$ac_configure_extra_args --silent"
22275fi
22276
22277_ACEOF
22278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22279if \$ac_cs_recheck; then
22280  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22281  shift
22282  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22283  CONFIG_SHELL='$SHELL'
22284  export CONFIG_SHELL
22285  exec "\$@"
22286fi
22287
22288_ACEOF
22289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290exec 5>>config.log
22291{
22292  echo
22293  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22294## Running $as_me. ##
22295_ASBOX
22296  $as_echo "$ac_log"
22297} >&5
22298
22299_ACEOF
22300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22301#
22302# INIT-COMMANDS
22303#
22304
22305
22306# The HP-UX ksh and POSIX shell print the target directory to stdout
22307# if CDPATH is set.
22308(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22309
22310sed_quote_subst='$sed_quote_subst'
22311double_quote_subst='$double_quote_subst'
22312delay_variable_subst='$delay_variable_subst'
22313macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22314macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22315enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22316enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22317pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22318enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22319shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22320SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22321ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22322PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22323host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22324host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22325host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22326build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22327build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22328build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22329SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22330Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22331GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22332EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22333FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22334LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22335NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22336LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22337max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22338ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22339exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22340lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22341lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22342lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22343lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22344lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22345reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22346reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22347OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22348deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22349file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22350file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22351want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22352DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22353sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22354AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22355AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22356archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22357STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22358RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22359old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22360old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22361old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22362lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22363CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22364CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22365compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22366GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22367lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22368lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22369lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22370lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22371lt_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"`'
22372lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22373nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22374lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22375lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22376objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22377MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22378lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22379lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22380lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22381lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22382lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22383need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22384MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22385DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22386NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22387LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22388OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22389OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22390libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22391shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22392extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22393archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22394enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22395export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22396whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22397compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22398old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22399old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22400archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22401archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22402module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22403module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22404with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22405allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22406no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22407hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22408hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22409hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22410hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22411hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22412hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22413hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22414inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22415link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22416always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22417export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22418exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22419include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22420prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22421postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22422file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22423variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22424need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22425need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22426version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22427runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22428shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22429shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22430libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22431library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22432soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22433install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22434postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22435postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22436finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22437finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22438hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22439sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22440configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22441configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22442hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22443enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22444enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22445enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22446old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22447striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22448
22449LTCC='$LTCC'
22450LTCFLAGS='$LTCFLAGS'
22451compiler='$compiler_DEFAULT'
22452
22453# A function that is used when there is no print builtin or printf.
22454func_fallback_echo ()
22455{
22456  eval 'cat <<_LTECHO_EOF
22457\$1
22458_LTECHO_EOF'
22459}
22460
22461# Quote evaled strings.
22462for var in SHELL \
22463ECHO \
22464PATH_SEPARATOR \
22465SED \
22466GREP \
22467EGREP \
22468FGREP \
22469LD \
22470NM \
22471LN_S \
22472lt_SP2NL \
22473lt_NL2SP \
22474reload_flag \
22475OBJDUMP \
22476deplibs_check_method \
22477file_magic_cmd \
22478file_magic_glob \
22479want_nocaseglob \
22480DLLTOOL \
22481sharedlib_from_linklib_cmd \
22482AR \
22483AR_FLAGS \
22484archiver_list_spec \
22485STRIP \
22486RANLIB \
22487CC \
22488CFLAGS \
22489compiler \
22490lt_cv_sys_global_symbol_pipe \
22491lt_cv_sys_global_symbol_to_cdecl \
22492lt_cv_sys_global_symbol_to_import \
22493lt_cv_sys_global_symbol_to_c_name_address \
22494lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22495lt_cv_nm_interface \
22496nm_file_list_spec \
22497lt_cv_truncate_bin \
22498lt_prog_compiler_no_builtin_flag \
22499lt_prog_compiler_pic \
22500lt_prog_compiler_wl \
22501lt_prog_compiler_static \
22502lt_cv_prog_compiler_c_o \
22503need_locks \
22504MANIFEST_TOOL \
22505DSYMUTIL \
22506NMEDIT \
22507LIPO \
22508OTOOL \
22509OTOOL64 \
22510shrext_cmds \
22511export_dynamic_flag_spec \
22512whole_archive_flag_spec \
22513compiler_needs_object \
22514with_gnu_ld \
22515allow_undefined_flag \
22516no_undefined_flag \
22517hardcode_libdir_flag_spec \
22518hardcode_libdir_separator \
22519exclude_expsyms \
22520include_expsyms \
22521file_list_spec \
22522variables_saved_for_relink \
22523libname_spec \
22524library_names_spec \
22525soname_spec \
22526install_override_mode \
22527finish_eval \
22528old_striplib \
22529striplib; do
22530    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22531    *[\\\\\\\`\\"\\\$]*)
22532      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22533      ;;
22534    *)
22535      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22536      ;;
22537    esac
22538done
22539
22540# Double-quote double-evaled strings.
22541for var in reload_cmds \
22542old_postinstall_cmds \
22543old_postuninstall_cmds \
22544old_archive_cmds \
22545extract_expsyms_cmds \
22546old_archive_from_new_cmds \
22547old_archive_from_expsyms_cmds \
22548archive_cmds \
22549archive_expsym_cmds \
22550module_cmds \
22551module_expsym_cmds \
22552export_symbols_cmds \
22553prelink_cmds \
22554postlink_cmds \
22555postinstall_cmds \
22556postuninstall_cmds \
22557finish_cmds \
22558sys_lib_search_path_spec \
22559configure_time_dlsearch_path \
22560configure_time_lt_sys_library_path; do
22561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22562    *[\\\\\\\`\\"\\\$]*)
22563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22564      ;;
22565    *)
22566      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22567      ;;
22568    esac
22569done
22570
22571ac_aux_dir='$ac_aux_dir'
22572
22573# See if we are running on zsh, and set the options that allow our
22574# commands through without removal of \ escapes INIT.
22575if test -n "\${ZSH_VERSION+set}"; then
22576   setopt NO_GLOB_SUBST
22577fi
22578
22579
22580    PACKAGE='$PACKAGE'
22581    VERSION='$VERSION'
22582    RM='$RM'
22583    ofile='$ofile'
22584
22585
22586
22587
22588_ACEOF
22589
22590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22591
22592# Handling of arguments.
22593for ac_config_target in $ac_config_targets
22594do
22595  case $ac_config_target in
22596    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22597    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22598    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22599    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22600    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22601    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22602    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22603    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22604    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22605    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22606    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22607    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22608    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22609    "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22610    "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22611    "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22612    "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22613    "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22614    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22615
22616  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22617  esac
22618done
22619
22620
22621# If the user did not use the arguments to specify the items to instantiate,
22622# then the envvar interface is used.  Set only those that are not.
22623# We use the long form for the default assignment because of an extremely
22624# bizarre bug on SunOS 4.1.3.
22625if $ac_need_defaults; then
22626  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22627  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22628  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22629fi
22630
22631# Have a temporary directory for convenience.  Make it in the build tree
22632# simply because there is no reason against having it here, and in addition,
22633# creating and moving files from /tmp can sometimes cause problems.
22634# Hook for its removal unless debugging.
22635# Note that there is a small window in which the directory will not be cleaned:
22636# after its creation but before its name has been assigned to `$tmp'.
22637$debug ||
22638{
22639  tmp= ac_tmp=
22640  trap 'exit_status=$?
22641  : "${ac_tmp:=$tmp}"
22642  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22643' 0
22644  trap 'as_fn_exit 1' 1 2 13 15
22645}
22646# Create a (secure) tmp directory for tmp files.
22647
22648{
22649  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22650  test -d "$tmp"
22651}  ||
22652{
22653  tmp=./conf$$-$RANDOM
22654  (umask 077 && mkdir "$tmp")
22655} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22656ac_tmp=$tmp
22657
22658# Set up the scripts for CONFIG_FILES section.
22659# No need to generate them if there are no CONFIG_FILES.
22660# This happens for instance with `./config.status config.h'.
22661if test -n "$CONFIG_FILES"; then
22662
22663
22664ac_cr=`echo X | tr X '\015'`
22665# On cygwin, bash can eat \r inside `` if the user requested igncr.
22666# But we know of no other shell where ac_cr would be empty at this
22667# point, so we can use a bashism as a fallback.
22668if test "x$ac_cr" = x; then
22669  eval ac_cr=\$\'\\r\'
22670fi
22671ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22672if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22673  ac_cs_awk_cr='\\r'
22674else
22675  ac_cs_awk_cr=$ac_cr
22676fi
22677
22678echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22679_ACEOF
22680
22681
22682{
22683  echo "cat >conf$$subs.awk <<_ACEOF" &&
22684  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22685  echo "_ACEOF"
22686} >conf$$subs.sh ||
22687  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22688ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22689ac_delim='%!_!# '
22690for ac_last_try in false false false false false :; do
22691  . ./conf$$subs.sh ||
22692    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22693
22694  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22695  if test $ac_delim_n = $ac_delim_num; then
22696    break
22697  elif $ac_last_try; then
22698    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22699  else
22700    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22701  fi
22702done
22703rm -f conf$$subs.sh
22704
22705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22706cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22707_ACEOF
22708sed -n '
22709h
22710s/^/S["/; s/!.*/"]=/
22711p
22712g
22713s/^[^!]*!//
22714:repl
22715t repl
22716s/'"$ac_delim"'$//
22717t delim
22718:nl
22719h
22720s/\(.\{148\}\)..*/\1/
22721t more1
22722s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22723p
22724n
22725b repl
22726:more1
22727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22728p
22729g
22730s/.\{148\}//
22731t nl
22732:delim
22733h
22734s/\(.\{148\}\)..*/\1/
22735t more2
22736s/["\\]/\\&/g; s/^/"/; s/$/"/
22737p
22738b
22739:more2
22740s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22741p
22742g
22743s/.\{148\}//
22744t delim
22745' <conf$$subs.awk | sed '
22746/^[^""]/{
22747  N
22748  s/\n//
22749}
22750' >>$CONFIG_STATUS || ac_write_fail=1
22751rm -f conf$$subs.awk
22752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22753_ACAWK
22754cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22755  for (key in S) S_is_set[key] = 1
22756  FS = ""
22757
22758}
22759{
22760  line = $ 0
22761  nfields = split(line, field, "@")
22762  substed = 0
22763  len = length(field[1])
22764  for (i = 2; i < nfields; i++) {
22765    key = field[i]
22766    keylen = length(key)
22767    if (S_is_set[key]) {
22768      value = S[key]
22769      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22770      len += length(value) + length(field[++i])
22771      substed = 1
22772    } else
22773      len += 1 + keylen
22774  }
22775
22776  print line
22777}
22778
22779_ACAWK
22780_ACEOF
22781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22782if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22783  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22784else
22785  cat
22786fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22787  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22788_ACEOF
22789
22790# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22791# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22792# trailing colons and then remove the whole line if VPATH becomes empty
22793# (actually we leave an empty line to preserve line numbers).
22794if test "x$srcdir" = x.; then
22795  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22796h
22797s///
22798s/^/:/
22799s/[	 ]*$/:/
22800s/:\$(srcdir):/:/g
22801s/:\${srcdir}:/:/g
22802s/:@srcdir@:/:/g
22803s/^:*//
22804s/:*$//
22805x
22806s/\(=[	 ]*\).*/\1/
22807G
22808s/\n//
22809s/^[^=]*=[	 ]*$//
22810}'
22811fi
22812
22813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22814fi # test -n "$CONFIG_FILES"
22815
22816# Set up the scripts for CONFIG_HEADERS section.
22817# No need to generate them if there are no CONFIG_HEADERS.
22818# This happens for instance with `./config.status Makefile'.
22819if test -n "$CONFIG_HEADERS"; then
22820cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22821BEGIN {
22822_ACEOF
22823
22824# Transform confdefs.h into an awk script `defines.awk', embedded as
22825# here-document in config.status, that substitutes the proper values into
22826# config.h.in to produce config.h.
22827
22828# Create a delimiter string that does not exist in confdefs.h, to ease
22829# handling of long lines.
22830ac_delim='%!_!# '
22831for ac_last_try in false false :; do
22832  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22833  if test -z "$ac_tt"; then
22834    break
22835  elif $ac_last_try; then
22836    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22837  else
22838    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22839  fi
22840done
22841
22842# For the awk script, D is an array of macro values keyed by name,
22843# likewise P contains macro parameters if any.  Preserve backslash
22844# newline sequences.
22845
22846ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22847sed -n '
22848s/.\{148\}/&'"$ac_delim"'/g
22849t rset
22850:rset
22851s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22852t def
22853d
22854:def
22855s/\\$//
22856t bsnl
22857s/["\\]/\\&/g
22858s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22859D["\1"]=" \3"/p
22860s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22861d
22862:bsnl
22863s/["\\]/\\&/g
22864s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22865D["\1"]=" \3\\\\\\n"\\/p
22866t cont
22867s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22868t cont
22869d
22870:cont
22871n
22872s/.\{148\}/&'"$ac_delim"'/g
22873t clear
22874:clear
22875s/\\$//
22876t bsnlc
22877s/["\\]/\\&/g; s/^/"/; s/$/"/p
22878d
22879:bsnlc
22880s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22881b cont
22882' <confdefs.h | sed '
22883s/'"$ac_delim"'/"\\\
22884"/g' >>$CONFIG_STATUS || ac_write_fail=1
22885
22886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22887  for (key in D) D_is_set[key] = 1
22888  FS = ""
22889}
22890/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22891  line = \$ 0
22892  split(line, arg, " ")
22893  if (arg[1] == "#") {
22894    defundef = arg[2]
22895    mac1 = arg[3]
22896  } else {
22897    defundef = substr(arg[1], 2)
22898    mac1 = arg[2]
22899  }
22900  split(mac1, mac2, "(") #)
22901  macro = mac2[1]
22902  prefix = substr(line, 1, index(line, defundef) - 1)
22903  if (D_is_set[macro]) {
22904    # Preserve the white space surrounding the "#".
22905    print prefix "define", macro P[macro] D[macro]
22906    next
22907  } else {
22908    # Replace #undef with comments.  This is necessary, for example,
22909    # in the case of _POSIX_SOURCE, which is predefined and required
22910    # on some systems where configure will not decide to define it.
22911    if (defundef == "undef") {
22912      print "/*", prefix defundef, macro, "*/"
22913      next
22914    }
22915  }
22916}
22917{ print }
22918_ACAWK
22919_ACEOF
22920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22921  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22922fi # test -n "$CONFIG_HEADERS"
22923
22924
22925eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22926shift
22927for ac_tag
22928do
22929  case $ac_tag in
22930  :[FHLC]) ac_mode=$ac_tag; continue;;
22931  esac
22932  case $ac_mode$ac_tag in
22933  :[FHL]*:*);;
22934  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22935  :[FH]-) ac_tag=-:-;;
22936  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22937  esac
22938  ac_save_IFS=$IFS
22939  IFS=:
22940  set x $ac_tag
22941  IFS=$ac_save_IFS
22942  shift
22943  ac_file=$1
22944  shift
22945
22946  case $ac_mode in
22947  :L) ac_source=$1;;
22948  :[FH])
22949    ac_file_inputs=
22950    for ac_f
22951    do
22952      case $ac_f in
22953      -) ac_f="$ac_tmp/stdin";;
22954      *) # Look for the file first in the build tree, then in the source tree
22955	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22956	 # because $ac_f cannot contain `:'.
22957	 test -f "$ac_f" ||
22958	   case $ac_f in
22959	   [\\/$]*) false;;
22960	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22961	   esac ||
22962	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22963      esac
22964      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22965      as_fn_append ac_file_inputs " '$ac_f'"
22966    done
22967
22968    # Let's still pretend it is `configure' which instantiates (i.e., don't
22969    # use $as_me), people would be surprised to read:
22970    #    /* config.h.  Generated by config.status.  */
22971    configure_input='Generated from '`
22972	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22973	`' by configure.'
22974    if test x"$ac_file" != x-; then
22975      configure_input="$ac_file.  $configure_input"
22976      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22977$as_echo "$as_me: creating $ac_file" >&6;}
22978    fi
22979    # Neutralize special characters interpreted by sed in replacement strings.
22980    case $configure_input in #(
22981    *\&* | *\|* | *\\* )
22982       ac_sed_conf_input=`$as_echo "$configure_input" |
22983       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22984    *) ac_sed_conf_input=$configure_input;;
22985    esac
22986
22987    case $ac_tag in
22988    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22989      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22990    esac
22991    ;;
22992  esac
22993
22994  ac_dir=`$as_dirname -- "$ac_file" ||
22995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996	 X"$ac_file" : 'X\(//\)[^/]' \| \
22997	 X"$ac_file" : 'X\(//\)$' \| \
22998	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22999$as_echo X"$ac_file" |
23000    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23001	    s//\1/
23002	    q
23003	  }
23004	  /^X\(\/\/\)[^/].*/{
23005	    s//\1/
23006	    q
23007	  }
23008	  /^X\(\/\/\)$/{
23009	    s//\1/
23010	    q
23011	  }
23012	  /^X\(\/\).*/{
23013	    s//\1/
23014	    q
23015	  }
23016	  s/.*/./; q'`
23017  as_dir="$ac_dir"; as_fn_mkdir_p
23018  ac_builddir=.
23019
23020case "$ac_dir" in
23021.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23022*)
23023  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23024  # A ".." for each directory in $ac_dir_suffix.
23025  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23026  case $ac_top_builddir_sub in
23027  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23028  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23029  esac ;;
23030esac
23031ac_abs_top_builddir=$ac_pwd
23032ac_abs_builddir=$ac_pwd$ac_dir_suffix
23033# for backward compatibility:
23034ac_top_builddir=$ac_top_build_prefix
23035
23036case $srcdir in
23037  .)  # We are building in place.
23038    ac_srcdir=.
23039    ac_top_srcdir=$ac_top_builddir_sub
23040    ac_abs_top_srcdir=$ac_pwd ;;
23041  [\\/]* | ?:[\\/]* )  # Absolute name.
23042    ac_srcdir=$srcdir$ac_dir_suffix;
23043    ac_top_srcdir=$srcdir
23044    ac_abs_top_srcdir=$srcdir ;;
23045  *) # Relative name.
23046    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23047    ac_top_srcdir=$ac_top_build_prefix$srcdir
23048    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23049esac
23050ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23051
23052
23053  case $ac_mode in
23054  :F)
23055  #
23056  # CONFIG_FILE
23057  #
23058
23059_ACEOF
23060
23061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23062# If the template does not know about datarootdir, expand it.
23063# FIXME: This hack should be removed a few years after 2.60.
23064ac_datarootdir_hack=; ac_datarootdir_seen=
23065ac_sed_dataroot='
23066/datarootdir/ {
23067  p
23068  q
23069}
23070/@datadir@/p
23071/@docdir@/p
23072/@infodir@/p
23073/@localedir@/p
23074/@mandir@/p'
23075case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23076*datarootdir*) ac_datarootdir_seen=yes;;
23077*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23079$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23080_ACEOF
23081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23082  ac_datarootdir_hack='
23083  s&@datadir@&$datadir&g
23084  s&@docdir@&$docdir&g
23085  s&@infodir@&$infodir&g
23086  s&@localedir@&$localedir&g
23087  s&@mandir@&$mandir&g
23088  s&\\\${datarootdir}&$datarootdir&g' ;;
23089esac
23090_ACEOF
23091
23092# Neutralize VPATH when `$srcdir' = `.'.
23093# Shell code in configure.ac might set extrasub.
23094# FIXME: do we really want to maintain this feature?
23095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23096ac_sed_extra="$ac_vpsub
23097$extrasub
23098_ACEOF
23099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23100:t
23101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23102s|@configure_input@|$ac_sed_conf_input|;t t
23103s&@top_builddir@&$ac_top_builddir_sub&;t t
23104s&@top_build_prefix@&$ac_top_build_prefix&;t t
23105s&@srcdir@&$ac_srcdir&;t t
23106s&@abs_srcdir@&$ac_abs_srcdir&;t t
23107s&@top_srcdir@&$ac_top_srcdir&;t t
23108s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23109s&@builddir@&$ac_builddir&;t t
23110s&@abs_builddir@&$ac_abs_builddir&;t t
23111s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23112$ac_datarootdir_hack
23113"
23114eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23115  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23116
23117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23118  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23119  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23120      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23121  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23122which seems to be undefined.  Please make sure it is defined" >&5
23123$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23124which seems to be undefined.  Please make sure it is defined" >&2;}
23125
23126  rm -f "$ac_tmp/stdin"
23127  case $ac_file in
23128  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23129  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23130  esac \
23131  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23132 ;;
23133  :H)
23134  #
23135  # CONFIG_HEADER
23136  #
23137  if test x"$ac_file" != x-; then
23138    {
23139      $as_echo "/* $configure_input  */" \
23140      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23141    } >"$ac_tmp/config.h" \
23142      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23143    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23144      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23145$as_echo "$as_me: $ac_file is unchanged" >&6;}
23146    else
23147      rm -f "$ac_file"
23148      mv "$ac_tmp/config.h" "$ac_file" \
23149	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23150    fi
23151  else
23152    $as_echo "/* $configure_input  */" \
23153      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23154      || as_fn_error $? "could not create -" "$LINENO" 5
23155  fi
23156 ;;
23157
23158  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23159$as_echo "$as_me: executing $ac_file commands" >&6;}
23160 ;;
23161  esac
23162
23163
23164  case $ac_file$ac_mode in
23165    "libtool":C)
23166
23167    # See if we are running on zsh, and set the options that allow our
23168    # commands through without removal of \ escapes.
23169    if test -n "${ZSH_VERSION+set}"; then
23170      setopt NO_GLOB_SUBST
23171    fi
23172
23173    cfgfile=${ofile}T
23174    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23175    $RM "$cfgfile"
23176
23177    cat <<_LT_EOF >> "$cfgfile"
23178#! $SHELL
23179# Generated automatically by $as_me ($PACKAGE) $VERSION
23180# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23181# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23182
23183# Provide generalized library-building support services.
23184# Written by Gordon Matzigkeit, 1996
23185
23186# Copyright (C) 2014 Free Software Foundation, Inc.
23187# This is free software; see the source for copying conditions.  There is NO
23188# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23189
23190# GNU Libtool is free software; you can redistribute it and/or modify
23191# it under the terms of the GNU General Public License as published by
23192# the Free Software Foundation; either version 2 of of the License, or
23193# (at your option) any later version.
23194#
23195# As a special exception to the GNU General Public License, if you
23196# distribute this file as part of a program or library that is built
23197# using GNU Libtool, you may include this file under the  same
23198# distribution terms that you use for the rest of that program.
23199#
23200# GNU Libtool is distributed in the hope that it will be useful, but
23201# WITHOUT ANY WARRANTY; without even the implied warranty of
23202# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23203# GNU General Public License for more details.
23204#
23205# You should have received a copy of the GNU General Public License
23206# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23207
23208
23209# The names of the tagged configurations supported by this script.
23210available_tags=''
23211
23212# Configured defaults for sys_lib_dlsearch_path munging.
23213: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23214
23215# ### BEGIN LIBTOOL CONFIG
23216
23217# Which release of libtool.m4 was used?
23218macro_version=$macro_version
23219macro_revision=$macro_revision
23220
23221# Whether or not to build shared libraries.
23222build_libtool_libs=$enable_shared
23223
23224# Whether or not to build static libraries.
23225build_old_libs=$enable_static
23226
23227# What type of objects to build.
23228pic_mode=$pic_mode
23229
23230# Whether or not to optimize for fast installation.
23231fast_install=$enable_fast_install
23232
23233# Shared archive member basename,for filename based shared library versioning on AIX.
23234shared_archive_member_spec=$shared_archive_member_spec
23235
23236# Shell to use when invoking shell scripts.
23237SHELL=$lt_SHELL
23238
23239# An echo program that protects backslashes.
23240ECHO=$lt_ECHO
23241
23242# The PATH separator for the build system.
23243PATH_SEPARATOR=$lt_PATH_SEPARATOR
23244
23245# The host system.
23246host_alias=$host_alias
23247host=$host
23248host_os=$host_os
23249
23250# The build system.
23251build_alias=$build_alias
23252build=$build
23253build_os=$build_os
23254
23255# A sed program that does not truncate output.
23256SED=$lt_SED
23257
23258# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23259Xsed="\$SED -e 1s/^X//"
23260
23261# A grep program that handles long lines.
23262GREP=$lt_GREP
23263
23264# An ERE matcher.
23265EGREP=$lt_EGREP
23266
23267# A literal string matcher.
23268FGREP=$lt_FGREP
23269
23270# A BSD- or MS-compatible name lister.
23271NM=$lt_NM
23272
23273# Whether we need soft or hard links.
23274LN_S=$lt_LN_S
23275
23276# What is the maximum length of a command?
23277max_cmd_len=$max_cmd_len
23278
23279# Object file suffix (normally "o").
23280objext=$ac_objext
23281
23282# Executable file suffix (normally "").
23283exeext=$exeext
23284
23285# whether the shell understands "unset".
23286lt_unset=$lt_unset
23287
23288# turn spaces into newlines.
23289SP2NL=$lt_lt_SP2NL
23290
23291# turn newlines into spaces.
23292NL2SP=$lt_lt_NL2SP
23293
23294# convert \$build file names to \$host format.
23295to_host_file_cmd=$lt_cv_to_host_file_cmd
23296
23297# convert \$build files to toolchain format.
23298to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23299
23300# An object symbol dumper.
23301OBJDUMP=$lt_OBJDUMP
23302
23303# Method to check whether dependent libraries are shared objects.
23304deplibs_check_method=$lt_deplibs_check_method
23305
23306# Command to use when deplibs_check_method = "file_magic".
23307file_magic_cmd=$lt_file_magic_cmd
23308
23309# How to find potential files when deplibs_check_method = "file_magic".
23310file_magic_glob=$lt_file_magic_glob
23311
23312# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23313want_nocaseglob=$lt_want_nocaseglob
23314
23315# DLL creation program.
23316DLLTOOL=$lt_DLLTOOL
23317
23318# Command to associate shared and link libraries.
23319sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23320
23321# The archiver.
23322AR=$lt_AR
23323
23324# Flags to create an archive.
23325AR_FLAGS=$lt_AR_FLAGS
23326
23327# How to feed a file listing to the archiver.
23328archiver_list_spec=$lt_archiver_list_spec
23329
23330# A symbol stripping program.
23331STRIP=$lt_STRIP
23332
23333# Commands used to install an old-style archive.
23334RANLIB=$lt_RANLIB
23335old_postinstall_cmds=$lt_old_postinstall_cmds
23336old_postuninstall_cmds=$lt_old_postuninstall_cmds
23337
23338# Whether to use a lock for old archive extraction.
23339lock_old_archive_extraction=$lock_old_archive_extraction
23340
23341# A C compiler.
23342LTCC=$lt_CC
23343
23344# LTCC compiler flags.
23345LTCFLAGS=$lt_CFLAGS
23346
23347# Take the output of nm and produce a listing of raw symbols and C names.
23348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23349
23350# Transform the output of nm in a proper C declaration.
23351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23352
23353# Transform the output of nm into a list of symbols to manually relocate.
23354global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23355
23356# Transform the output of nm in a C name address pair.
23357global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23358
23359# Transform the output of nm in a C name address pair when lib prefix is needed.
23360global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23361
23362# The name lister interface.
23363nm_interface=$lt_lt_cv_nm_interface
23364
23365# Specify filename containing input files for \$NM.
23366nm_file_list_spec=$lt_nm_file_list_spec
23367
23368# The root where to search for dependent libraries,and where our libraries should be installed.
23369lt_sysroot=$lt_sysroot
23370
23371# Command to truncate a binary pipe.
23372lt_truncate_bin=$lt_lt_cv_truncate_bin
23373
23374# The name of the directory that contains temporary libtool files.
23375objdir=$objdir
23376
23377# Used to examine libraries when file_magic_cmd begins with "file".
23378MAGIC_CMD=$MAGIC_CMD
23379
23380# Must we lock files when doing compilation?
23381need_locks=$lt_need_locks
23382
23383# Manifest tool.
23384MANIFEST_TOOL=$lt_MANIFEST_TOOL
23385
23386# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23387DSYMUTIL=$lt_DSYMUTIL
23388
23389# Tool to change global to local symbols on Mac OS X.
23390NMEDIT=$lt_NMEDIT
23391
23392# Tool to manipulate fat objects and archives on Mac OS X.
23393LIPO=$lt_LIPO
23394
23395# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23396OTOOL=$lt_OTOOL
23397
23398# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23399OTOOL64=$lt_OTOOL64
23400
23401# Old archive suffix (normally "a").
23402libext=$libext
23403
23404# Shared library suffix (normally ".so").
23405shrext_cmds=$lt_shrext_cmds
23406
23407# The commands to extract the exported symbol list from a shared archive.
23408extract_expsyms_cmds=$lt_extract_expsyms_cmds
23409
23410# Variables whose values should be saved in libtool wrapper scripts and
23411# restored at link time.
23412variables_saved_for_relink=$lt_variables_saved_for_relink
23413
23414# Do we need the "lib" prefix for modules?
23415need_lib_prefix=$need_lib_prefix
23416
23417# Do we need a version for libraries?
23418need_version=$need_version
23419
23420# Library versioning type.
23421version_type=$version_type
23422
23423# Shared library runtime path variable.
23424runpath_var=$runpath_var
23425
23426# Shared library path variable.
23427shlibpath_var=$shlibpath_var
23428
23429# Is shlibpath searched before the hard-coded library search path?
23430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23431
23432# Format of library name prefix.
23433libname_spec=$lt_libname_spec
23434
23435# List of archive names.  First name is the real one, the rest are links.
23436# The last name is the one that the linker finds with -lNAME
23437library_names_spec=$lt_library_names_spec
23438
23439# The coded name of the library, if different from the real name.
23440soname_spec=$lt_soname_spec
23441
23442# Permission mode override for installation of shared libraries.
23443install_override_mode=$lt_install_override_mode
23444
23445# Command to use after installation of a shared archive.
23446postinstall_cmds=$lt_postinstall_cmds
23447
23448# Command to use after uninstallation of a shared archive.
23449postuninstall_cmds=$lt_postuninstall_cmds
23450
23451# Commands used to finish a libtool library installation in a directory.
23452finish_cmds=$lt_finish_cmds
23453
23454# As "finish_cmds", except a single script fragment to be evaled but
23455# not shown.
23456finish_eval=$lt_finish_eval
23457
23458# Whether we should hardcode library paths into libraries.
23459hardcode_into_libs=$hardcode_into_libs
23460
23461# Compile-time system search path for libraries.
23462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23463
23464# Detected run-time system search path for libraries.
23465sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23466
23467# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23468configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23469
23470# Whether dlopen is supported.
23471dlopen_support=$enable_dlopen
23472
23473# Whether dlopen of programs is supported.
23474dlopen_self=$enable_dlopen_self
23475
23476# Whether dlopen of statically linked programs is supported.
23477dlopen_self_static=$enable_dlopen_self_static
23478
23479# Commands to strip libraries.
23480old_striplib=$lt_old_striplib
23481striplib=$lt_striplib
23482
23483
23484# The linker used to build libraries.
23485LD=$lt_LD
23486
23487# How to create reloadable object files.
23488reload_flag=$lt_reload_flag
23489reload_cmds=$lt_reload_cmds
23490
23491# Commands used to build an old-style archive.
23492old_archive_cmds=$lt_old_archive_cmds
23493
23494# A language specific compiler.
23495CC=$lt_compiler
23496
23497# Is the compiler the GNU compiler?
23498with_gcc=$GCC
23499
23500# Compiler flag to turn off builtin functions.
23501no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23502
23503# Additional compiler flags for building library objects.
23504pic_flag=$lt_lt_prog_compiler_pic
23505
23506# How to pass a linker flag through the compiler.
23507wl=$lt_lt_prog_compiler_wl
23508
23509# Compiler flag to prevent dynamic linking.
23510link_static_flag=$lt_lt_prog_compiler_static
23511
23512# Does compiler simultaneously support -c and -o options?
23513compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23514
23515# Whether or not to add -lc for building shared libraries.
23516build_libtool_need_lc=$archive_cmds_need_lc
23517
23518# Whether or not to disallow shared libs when runtime libs are static.
23519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23520
23521# Compiler flag to allow reflexive dlopens.
23522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23523
23524# Compiler flag to generate shared objects directly from archives.
23525whole_archive_flag_spec=$lt_whole_archive_flag_spec
23526
23527# Whether the compiler copes with passing no objects directly.
23528compiler_needs_object=$lt_compiler_needs_object
23529
23530# Create an old-style archive from a shared archive.
23531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23532
23533# Create a temporary old-style archive to link instead of a shared archive.
23534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23535
23536# Commands used to build a shared archive.
23537archive_cmds=$lt_archive_cmds
23538archive_expsym_cmds=$lt_archive_expsym_cmds
23539
23540# Commands used to build a loadable module if different from building
23541# a shared archive.
23542module_cmds=$lt_module_cmds
23543module_expsym_cmds=$lt_module_expsym_cmds
23544
23545# Whether we are building with GNU ld or not.
23546with_gnu_ld=$lt_with_gnu_ld
23547
23548# Flag that allows shared libraries with undefined symbols to be built.
23549allow_undefined_flag=$lt_allow_undefined_flag
23550
23551# Flag that enforces no undefined symbols.
23552no_undefined_flag=$lt_no_undefined_flag
23553
23554# Flag to hardcode \$libdir into a binary during linking.
23555# This must work even if \$libdir does not exist
23556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23557
23558# Whether we need a single "-rpath" flag with a separated argument.
23559hardcode_libdir_separator=$lt_hardcode_libdir_separator
23560
23561# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23562# DIR into the resulting binary.
23563hardcode_direct=$hardcode_direct
23564
23565# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23566# DIR into the resulting binary and the resulting library dependency is
23567# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23568# library is relocated.
23569hardcode_direct_absolute=$hardcode_direct_absolute
23570
23571# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23572# into the resulting binary.
23573hardcode_minus_L=$hardcode_minus_L
23574
23575# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23576# into the resulting binary.
23577hardcode_shlibpath_var=$hardcode_shlibpath_var
23578
23579# Set to "yes" if building a shared library automatically hardcodes DIR
23580# into the library and all subsequent libraries and executables linked
23581# against it.
23582hardcode_automatic=$hardcode_automatic
23583
23584# Set to yes if linker adds runtime paths of dependent libraries
23585# to runtime path list.
23586inherit_rpath=$inherit_rpath
23587
23588# Whether libtool must link a program against all its dependency libraries.
23589link_all_deplibs=$link_all_deplibs
23590
23591# Set to "yes" if exported symbols are required.
23592always_export_symbols=$always_export_symbols
23593
23594# The commands to list exported symbols.
23595export_symbols_cmds=$lt_export_symbols_cmds
23596
23597# Symbols that should not be listed in the preloaded symbols.
23598exclude_expsyms=$lt_exclude_expsyms
23599
23600# Symbols that must always be exported.
23601include_expsyms=$lt_include_expsyms
23602
23603# Commands necessary for linking programs (against libraries) with templates.
23604prelink_cmds=$lt_prelink_cmds
23605
23606# Commands necessary for finishing linking programs.
23607postlink_cmds=$lt_postlink_cmds
23608
23609# Specify filename containing input files.
23610file_list_spec=$lt_file_list_spec
23611
23612# How to hardcode a shared library path into an executable.
23613hardcode_action=$hardcode_action
23614
23615# ### END LIBTOOL CONFIG
23616
23617_LT_EOF
23618
23619    cat <<'_LT_EOF' >> "$cfgfile"
23620
23621# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23622
23623# func_munge_path_list VARIABLE PATH
23624# -----------------------------------
23625# VARIABLE is name of variable containing _space_ separated list of
23626# directories to be munged by the contents of PATH, which is string
23627# having a format:
23628# "DIR[:DIR]:"
23629#       string "DIR[ DIR]" will be prepended to VARIABLE
23630# ":DIR[:DIR]"
23631#       string "DIR[ DIR]" will be appended to VARIABLE
23632# "DIRP[:DIRP]::[DIRA:]DIRA"
23633#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23634#       "DIRA[ DIRA]" will be appended to VARIABLE
23635# "DIR[:DIR]"
23636#       VARIABLE will be replaced by "DIR[ DIR]"
23637func_munge_path_list ()
23638{
23639    case x$2 in
23640    x)
23641        ;;
23642    *:)
23643        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23644        ;;
23645    x:*)
23646        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23647        ;;
23648    *::*)
23649        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23650        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23651        ;;
23652    *)
23653        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23654        ;;
23655    esac
23656}
23657
23658
23659# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23660func_cc_basename ()
23661{
23662    for cc_temp in $*""; do
23663      case $cc_temp in
23664        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23665        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23666        \-*) ;;
23667        *) break;;
23668      esac
23669    done
23670    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23671}
23672
23673
23674# ### END FUNCTIONS SHARED WITH CONFIGURE
23675
23676_LT_EOF
23677
23678  case $host_os in
23679  aix3*)
23680    cat <<\_LT_EOF >> "$cfgfile"
23681# AIX sometimes has problems with the GCC collect2 program.  For some
23682# reason, if we set the COLLECT_NAMES environment variable, the problems
23683# vanish in a puff of smoke.
23684if test set != "${COLLECT_NAMES+set}"; then
23685  COLLECT_NAMES=
23686  export COLLECT_NAMES
23687fi
23688_LT_EOF
23689    ;;
23690  esac
23691
23692
23693ltmain=$ac_aux_dir/ltmain.sh
23694
23695
23696  # We use sed instead of cat because bash on DJGPP gets confused if
23697  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23698  # text mode, it properly converts lines to CR/LF.  This bash problem
23699  # is reportedly fixed, but why not run on old versions too?
23700  sed '$q' "$ltmain" >> "$cfgfile" \
23701     || (rm -f "$cfgfile"; exit 1)
23702
23703   mv -f "$cfgfile" "$ofile" ||
23704    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23705  chmod +x "$ofile"
23706
23707 ;;
23708    "disable-rpath":C)
23709	sed < libtool > libtool-2 \
23710	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23711	mv libtool-2 libtool
23712	chmod 755 libtool
23713	libtool="./libtool"
23714	 ;;
23715
23716  esac
23717done # for ac_tag
23718
23719
23720as_fn_exit 0
23721_ACEOF
23722ac_clean_files=$ac_clean_files_save
23723
23724test $ac_write_fail = 0 ||
23725  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23726
23727
23728# configure is writing to config.log, and then calls config.status.
23729# config.status does its own redirection, appending to config.log.
23730# Unfortunately, on DOS this fails, as config.log is still kept open
23731# by configure, so config.status won't be able to write to it; its
23732# output is simply discarded.  So we exec the FD to /dev/null,
23733# effectively closing config.log, so it can be properly (re)opened and
23734# appended to by config.status.  When coming back to configure, we
23735# need to make the FD available again.
23736if test "$no_create" != yes; then
23737  ac_cs_success=:
23738  ac_config_status_args=
23739  test "$silent" = yes &&
23740    ac_config_status_args="$ac_config_status_args --quiet"
23741  exec 5>/dev/null
23742  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23743  exec 5>>config.log
23744  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23745  # would make configure fail if this is the last instruction.
23746  $ac_cs_success || as_fn_exit 1
23747fi
23748if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23749  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23750$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23751fi
23752
23753