xref: /freebsd/contrib/unbound/configure (revision 6ae1554a5d9b318f8ad53ccc39fa5a961403da73)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for unbound 1.5.4.
4#
5# Report bugs to <unbound-bugs@nlnetlabs.nl>.
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 about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='unbound'
592PACKAGE_TARNAME='unbound'
593PACKAGE_VERSION='1.5.4'
594PACKAGE_STRING='unbound 1.5.4'
595PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='LTLIBOBJS
635date
636version
637INSTALLTARGET
638ALLTARGET
639SOURCEFILE
640SOURCEDETERMINE
641DNSTAP_OBJ
642DNSTAP_SRC
643opt_dnstap_socket_path
644ENABLE_DNSTAP
645PROTOC_C
646UBSYMS
647EXTRALINK
648COMMON_OBJ_ALL_SYMBOLS
649LIBOBJ_WITHOUT_CTIME
650LIBOBJ_WITHOUT_CTIMEARC4
651WIN_CHECKCONF_OBJ_LINK
652WIN_CONTROL_OBJ_LINK
653WIN_UBANCHOR_OBJ_LINK
654WIN_HOST_OBJ_LINK
655WIN_DAEMON_OBJ_LINK
656WIN_DAEMON_OBJ
657WIN_DAEMON_SRC
658WINAPPS
659WINDRES
660CHECKLOCK_OBJ
661staticexe
662UNBOUND_EVENT_UNINSTALL
663UNBOUND_EVENT_INSTALL
664HAVE_SSL
665CONFIG_DATE
666NETBSD_LINTFLAGS
667PYUNBOUND_UNINSTALL
668PYUNBOUND_INSTALL
669PYUNBOUND_TARGET
670PYUNBOUND_OBJ
671WITH_PYUNBOUND
672PYTHONMOD_UNINSTALL
673PYTHONMOD_INSTALL
674PYTHONMOD_HEADER
675PYTHONMOD_OBJ
676WITH_PYTHONMODULE
677swig
678SWIG_LIB
679SWIG
680PY_MAJOR_VERSION
681PYTHON_SITE_PKG
682PYTHON_LDFLAGS
683PYTHON_CPPFLAGS
684PYTHON
685PYTHON_VERSION
686PTHREAD_CFLAGS
687PTHREAD_LIBS
688PTHREAD_CC
689ax_pthread_config
690RUNTIME_PATH
691LIBOBJS
692OTOOL64
693OTOOL
694LIPO
695NMEDIT
696DSYMUTIL
697MANIFEST_TOOL
698AWK
699RANLIB
700ac_ct_AR
701DLLTOOL
702OBJDUMP
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709SED
710LIBTOOL
711AR
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720libtool
721STRIP
722doxygen
723YFLAGS
724YACC
725LEXLIB
726LEX_OUTPUT_ROOT
727LEX
728debug_enabled
729DEPFLAG
730UNBOUND_USERNAME
731UNBOUND_ROOTCERT_FILE
732UNBOUND_ROOTKEY_FILE
733UNBOUND_PIDFILE
734UNBOUND_SHARE_DIR
735UNBOUND_CHROOT_DIR
736UNBOUND_RUN_DIR
737ub_conf_dir
738ub_conf_file
739EGREP
740GREP
741CPP
742OBJEXT
743EXEEXT
744ac_ct_CC
745CPPFLAGS
746LDFLAGS
747CFLAGS
748CC
749LIBUNBOUND_AGE
750LIBUNBOUND_REVISION
751LIBUNBOUND_CURRENT
752UNBOUND_VERSION_MICRO
753UNBOUND_VERSION_MINOR
754UNBOUND_VERSION_MAJOR
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796with_conf_file
797with_run_dir
798with_chroot_dir
799with_share_dir
800with_pidfile
801with_rootkey_file
802with_rootcert_file
803with_username
804enable_checking
805enable_debug
806enable_flto
807enable_shared
808enable_static
809with_pic
810enable_fast_install
811with_gnu_ld
812with_sysroot
813enable_libtool_lock
814enable_rpath
815enable_largefile
816enable_alloc_checks
817enable_alloc_lite
818enable_alloc_nonregional
819with_pthreads
820with_solaris_threads
821with_pyunbound
822with_pythonmodule
823with_nss
824with_ssl
825enable_sha2
826enable_gost
827enable_ecdsa
828enable_event_api
829with_libevent
830with_libexpat
831enable_static_exe
832enable_lock_checks
833enable_allsymbols
834enable_dnstap
835with_dnstap_socket_path
836with_protobuf_c
837with_libfstrm
838with_libunbound_only
839'
840      ac_precious_vars='build_alias
841host_alias
842target_alias
843CC
844CFLAGS
845LDFLAGS
846LIBS
847CPPFLAGS
848CPP
849YACC
850YFLAGS
851PYTHON_VERSION'
852
853
854# Initialize some variables set by options.
855ac_init_help=
856ac_init_version=false
857ac_unrecognized_opts=
858ac_unrecognized_sep=
859# The variables have the same names as the options, with
860# dashes changed to underlines.
861cache_file=/dev/null
862exec_prefix=NONE
863no_create=
864no_recursion=
865prefix=NONE
866program_prefix=NONE
867program_suffix=NONE
868program_transform_name=s,x,x,
869silent=
870site=
871srcdir=
872verbose=
873x_includes=NONE
874x_libraries=NONE
875
876# Installation directory options.
877# These are left unexpanded so users can "make install exec_prefix=/foo"
878# and all the variables that are supposed to be based on exec_prefix
879# by default will actually change.
880# Use braces instead of parens because sh, perl, etc. also accept them.
881# (The list follows the same order as the GNU Coding Standards.)
882bindir='${exec_prefix}/bin'
883sbindir='${exec_prefix}/sbin'
884libexecdir='${exec_prefix}/libexec'
885datarootdir='${prefix}/share'
886datadir='${datarootdir}'
887sysconfdir='${prefix}/etc'
888sharedstatedir='${prefix}/com'
889localstatedir='${prefix}/var'
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
901
902ac_prev=
903ac_dashdash=
904for ac_option
905do
906  # If the previous option needs an argument, assign it.
907  if test -n "$ac_prev"; then
908    eval $ac_prev=\$ac_option
909    ac_prev=
910    continue
911  fi
912
913  case $ac_option in
914  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915  *=)   ac_optarg= ;;
916  *)    ac_optarg=yes ;;
917  esac
918
919  # Accept the important Cygnus configure options, so we can diagnose typos.
920
921  case $ac_dashdash$ac_option in
922  --)
923    ac_dashdash=yes ;;
924
925  -bindir | --bindir | --bindi | --bind | --bin | --bi)
926    ac_prev=bindir ;;
927  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928    bindir=$ac_optarg ;;
929
930  -build | --build | --buil | --bui | --bu)
931    ac_prev=build_alias ;;
932  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933    build_alias=$ac_optarg ;;
934
935  -cache-file | --cache-file | --cache-fil | --cache-fi \
936  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937    ac_prev=cache_file ;;
938  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940    cache_file=$ac_optarg ;;
941
942  --config-cache | -C)
943    cache_file=config.cache ;;
944
945  -datadir | --datadir | --datadi | --datad)
946    ac_prev=datadir ;;
947  -datadir=* | --datadir=* | --datadi=* | --datad=*)
948    datadir=$ac_optarg ;;
949
950  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951  | --dataroo | --dataro | --datar)
952    ac_prev=datarootdir ;;
953  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955    datarootdir=$ac_optarg ;;
956
957  -disable-* | --disable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: $ac_useropt"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=no ;;
972
973  -docdir | --docdir | --docdi | --doc | --do)
974    ac_prev=docdir ;;
975  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976    docdir=$ac_optarg ;;
977
978  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979    ac_prev=dvidir ;;
980  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981    dvidir=$ac_optarg ;;
982
983  -enable-* | --enable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: $ac_useropt"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=\$ac_optarg ;;
998
999  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001  | --exec | --exe | --ex)
1002    ac_prev=exec_prefix ;;
1003  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005  | --exec=* | --exe=* | --ex=*)
1006    exec_prefix=$ac_optarg ;;
1007
1008  -gas | --gas | --ga | --g)
1009    # Obsolete; use --with-gas.
1010    with_gas=yes ;;
1011
1012  -help | --help | --hel | --he | -h)
1013    ac_init_help=long ;;
1014  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015    ac_init_help=recursive ;;
1016  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017    ac_init_help=short ;;
1018
1019  -host | --host | --hos | --ho)
1020    ac_prev=host_alias ;;
1021  -host=* | --host=* | --hos=* | --ho=*)
1022    host_alias=$ac_optarg ;;
1023
1024  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025    ac_prev=htmldir ;;
1026  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027  | --ht=*)
1028    htmldir=$ac_optarg ;;
1029
1030  -includedir | --includedir | --includedi | --included | --include \
1031  | --includ | --inclu | --incl | --inc)
1032    ac_prev=includedir ;;
1033  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034  | --includ=* | --inclu=* | --incl=* | --inc=*)
1035    includedir=$ac_optarg ;;
1036
1037  -infodir | --infodir | --infodi | --infod | --info | --inf)
1038    ac_prev=infodir ;;
1039  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040    infodir=$ac_optarg ;;
1041
1042  -libdir | --libdir | --libdi | --libd)
1043    ac_prev=libdir ;;
1044  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045    libdir=$ac_optarg ;;
1046
1047  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048  | --libexe | --libex | --libe)
1049    ac_prev=libexecdir ;;
1050  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051  | --libexe=* | --libex=* | --libe=*)
1052    libexecdir=$ac_optarg ;;
1053
1054  -localedir | --localedir | --localedi | --localed | --locale)
1055    ac_prev=localedir ;;
1056  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057    localedir=$ac_optarg ;;
1058
1059  -localstatedir | --localstatedir | --localstatedi | --localstated \
1060  | --localstate | --localstat | --localsta | --localst | --locals)
1061    ac_prev=localstatedir ;;
1062  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064    localstatedir=$ac_optarg ;;
1065
1066  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067    ac_prev=mandir ;;
1068  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069    mandir=$ac_optarg ;;
1070
1071  -nfp | --nfp | --nf)
1072    # Obsolete; use --without-fp.
1073    with_fp=no ;;
1074
1075  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076  | --no-cr | --no-c | -n)
1077    no_create=yes ;;
1078
1079  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081    no_recursion=yes ;;
1082
1083  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085  | --oldin | --oldi | --old | --ol | --o)
1086    ac_prev=oldincludedir ;;
1087  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090    oldincludedir=$ac_optarg ;;
1091
1092  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093    ac_prev=prefix ;;
1094  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095    prefix=$ac_optarg ;;
1096
1097  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098  | --program-pre | --program-pr | --program-p)
1099    ac_prev=program_prefix ;;
1100  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102    program_prefix=$ac_optarg ;;
1103
1104  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105  | --program-suf | --program-su | --program-s)
1106    ac_prev=program_suffix ;;
1107  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109    program_suffix=$ac_optarg ;;
1110
1111  -program-transform-name | --program-transform-name \
1112  | --program-transform-nam | --program-transform-na \
1113  | --program-transform-n | --program-transform- \
1114  | --program-transform | --program-transfor \
1115  | --program-transfo | --program-transf \
1116  | --program-trans | --program-tran \
1117  | --progr-tra | --program-tr | --program-t)
1118    ac_prev=program_transform_name ;;
1119  -program-transform-name=* | --program-transform-name=* \
1120  | --program-transform-nam=* | --program-transform-na=* \
1121  | --program-transform-n=* | --program-transform-=* \
1122  | --program-transform=* | --program-transfor=* \
1123  | --program-transfo=* | --program-transf=* \
1124  | --program-trans=* | --program-tran=* \
1125  | --progr-tra=* | --program-tr=* | --program-t=*)
1126    program_transform_name=$ac_optarg ;;
1127
1128  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129    ac_prev=pdfdir ;;
1130  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131    pdfdir=$ac_optarg ;;
1132
1133  -psdir | --psdir | --psdi | --psd | --ps)
1134    ac_prev=psdir ;;
1135  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136    psdir=$ac_optarg ;;
1137
1138  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139  | -silent | --silent | --silen | --sile | --sil)
1140    silent=yes ;;
1141
1142  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143    ac_prev=sbindir ;;
1144  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145  | --sbi=* | --sb=*)
1146    sbindir=$ac_optarg ;;
1147
1148  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150  | --sharedst | --shareds | --shared | --share | --shar \
1151  | --sha | --sh)
1152    ac_prev=sharedstatedir ;;
1153  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156  | --sha=* | --sh=*)
1157    sharedstatedir=$ac_optarg ;;
1158
1159  -site | --site | --sit)
1160    ac_prev=site ;;
1161  -site=* | --site=* | --sit=*)
1162    site=$ac_optarg ;;
1163
1164  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165    ac_prev=srcdir ;;
1166  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167    srcdir=$ac_optarg ;;
1168
1169  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170  | --syscon | --sysco | --sysc | --sys | --sy)
1171    ac_prev=sysconfdir ;;
1172  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174    sysconfdir=$ac_optarg ;;
1175
1176  -target | --target | --targe | --targ | --tar | --ta | --t)
1177    ac_prev=target_alias ;;
1178  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179    target_alias=$ac_optarg ;;
1180
1181  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182    verbose=yes ;;
1183
1184  -version | --version | --versio | --versi | --vers | -V)
1185    ac_init_version=: ;;
1186
1187  -with-* | --with-*)
1188    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189    # Reject names that are not valid shell variable names.
1190    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191      as_fn_error $? "invalid package name: $ac_useropt"
1192    ac_useropt_orig=$ac_useropt
1193    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194    case $ac_user_opts in
1195      *"
1196"with_$ac_useropt"
1197"*) ;;
1198      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199	 ac_unrecognized_sep=', ';;
1200    esac
1201    eval with_$ac_useropt=\$ac_optarg ;;
1202
1203  -without-* | --without-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: $ac_useropt"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=no ;;
1218
1219  --x)
1220    # Obsolete; use --with-x.
1221    with_x=yes ;;
1222
1223  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224  | --x-incl | --x-inc | --x-in | --x-i)
1225    ac_prev=x_includes ;;
1226  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228    x_includes=$ac_optarg ;;
1229
1230  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232    ac_prev=x_libraries ;;
1233  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235    x_libraries=$ac_optarg ;;
1236
1237  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238Try \`$0 --help' for more information"
1239    ;;
1240
1241  *=*)
1242    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243    # Reject names that are not valid shell variable names.
1244    case $ac_envvar in #(
1245      '' | [0-9]* | *[!_$as_cr_alnum]* )
1246      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247    esac
1248    eval $ac_envvar=\$ac_optarg
1249    export $ac_envvar ;;
1250
1251  *)
1252    # FIXME: should be removed in autoconf 3.0.
1253    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257    ;;
1258
1259  esac
1260done
1261
1262if test -n "$ac_prev"; then
1263  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264  as_fn_error $? "missing argument to $ac_option"
1265fi
1266
1267if test -n "$ac_unrecognized_opts"; then
1268  case $enable_option_checking in
1269    no) ;;
1270    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272  esac
1273fi
1274
1275# Check all directory arguments for consistency.
1276for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277		datadir sysconfdir sharedstatedir localstatedir includedir \
1278		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279		libdir localedir mandir
1280do
1281  eval ac_val=\$$ac_var
1282  # Remove trailing slashes.
1283  case $ac_val in
1284    */ )
1285      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286      eval $ac_var=\$ac_val;;
1287  esac
1288  # Be sure to have absolute directory names.
1289  case $ac_val in
1290    [\\/$]* | ?:[\\/]* )  continue;;
1291    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292  esac
1293  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294done
1295
1296# There might be people who depend on the old broken behavior: `$host'
1297# used to hold the argument of --host etc.
1298# FIXME: To remove some day.
1299build=$build_alias
1300host=$host_alias
1301target=$target_alias
1302
1303# FIXME: To remove some day.
1304if test "x$host_alias" != x; then
1305  if test "x$build_alias" = x; then
1306    cross_compiling=maybe
1307  elif test "x$build_alias" != "x$host_alias"; then
1308    cross_compiling=yes
1309  fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321  as_fn_error $? "working directory cannot be determined"
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$as_myself" ||
1331$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$as_myself" : 'X\(//\)[^/]' \| \
1333	 X"$as_myself" : 'X\(//\)$' \| \
1334	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335$as_echo X"$as_myself" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363fi
1364ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365ac_abs_confdir=`(
1366	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367	pwd)`
1368# When building in place, set srcdir=.
1369if test "$ac_abs_confdir" = "$ac_pwd"; then
1370  srcdir=.
1371fi
1372# Remove unnecessary trailing slashes from srcdir.
1373# Double slashes in file names in object file debugging info
1374# mess up M-x gdb in Emacs.
1375case $srcdir in
1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377esac
1378for ac_var in $ac_precious_vars; do
1379  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_env_${ac_var}_value=\$${ac_var}
1381  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383done
1384
1385#
1386# Report the --help message.
1387#
1388if test "$ac_init_help" = "long"; then
1389  # Omit some internal or obsolete options to make the list less imposing.
1390  # This message is too long to be a string in the A/UX 3.1 sh.
1391  cat <<_ACEOF
1392\`configure' configures unbound 1.5.4 to adapt to many kinds of systems.
1393
1394Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399Defaults for the options are specified in brackets.
1400
1401Configuration:
1402  -h, --help              display this help and exit
1403      --help=short        display options specific to this package
1404      --help=recursive    display the short help of all the included packages
1405  -V, --version           display version information and exit
1406  -q, --quiet, --silent   do not print \`checking ...' messages
1407      --cache-file=FILE   cache test results in FILE [disabled]
1408  -C, --config-cache      alias for \`--cache-file=config.cache'
1409  -n, --no-create         do not create output files
1410      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412Installation directories:
1413  --prefix=PREFIX         install architecture-independent files in PREFIX
1414                          [$ac_default_prefix]
1415  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                          [PREFIX]
1417
1418By default, \`make install' will install all the files in
1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421for instance \`--prefix=\$HOME'.
1422
1423For better control, use the options below.
1424
1425Fine tuning of the installation directories:
1426  --bindir=DIR            user executables [EPREFIX/bin]
1427  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1428  --libexecdir=DIR        program executables [EPREFIX/libexec]
1429  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1430  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1431  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/unbound]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449System types:
1450  --build=BUILD     configure for building on BUILD [guessed]
1451  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456  case $ac_init_help in
1457     short | recursive ) echo "Configuration of unbound 1.5.4:";;
1458   esac
1459  cat <<\_ACEOF
1460
1461Optional Features:
1462  --disable-option-checking  ignore unrecognized --enable/--with options
1463  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465  --enable-checking       Enable warnings, asserts, makefile-dependencies
1466  --enable-debug          same as enable-checking
1467  --disable-flto          Disable link-time optimization (gcc specific option)
1468  --enable-shared[=PKGS]  build shared libraries [default=yes]
1469  --enable-static[=PKGS]  build static libraries [default=yes]
1470  --enable-fast-install[=PKGS]
1471                          optimize for fast installation [default=yes]
1472  --disable-libtool-lock  avoid locking (might break parallel builds)
1473  --disable-rpath         disable hardcoded rpath (default=enabled)
1474  --disable-largefile     omit support for large files
1475  --enable-alloc-checks   enable to memory allocation statistics, for debug
1476                          purposes
1477  --enable-alloc-lite     enable for lightweight alloc assertions, for debug
1478                          purposes
1479  --enable-alloc-nonregional
1480                          enable nonregional allocs, slow but exposes regional
1481                          allocations to other memory purifiers, for debug
1482                          purposes
1483  --disable-sha2          Disable SHA256 and SHA512 RRSIG support
1484  --disable-gost          Disable GOST support
1485  --disable-ecdsa         Disable ECDSA support
1486  --enable-event-api      Enable (experimental) libevent-based libunbound API
1487                          installed to unbound-event.h
1488  --enable-static-exe     enable to compile executables statically against
1489                          (event) libs, for debug purposes
1490  --enable-lock-checks    enable to check lock and unlock calls, for debug
1491                          purposes
1492  --enable-allsymbols     export all symbols from libunbound and link binaries
1493                          to it, smaller install size but libunbound export
1494                          table is polluted by internal symbols
1495  --enable-dnstap         Enable dnstap support (requires fstrm, protobuf-c)
1496
1497Optional Packages:
1498  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500  --with-conf-file=path   Pathname to the Unbound configuration file
1501  --with-run-dir=path     set default directory to chdir to (by default dir
1502                          part of cfg file)
1503  --with-chroot-dir=path  set default directory to chroot to (by default same
1504                          as run-dir)
1505  --with-share-dir=path   set default directory with shared data (by default
1506                          same as share/unbound)
1507  --with-pidfile=filename set default pathname to unbound pidfile (default
1508                          run-dir/unbound.pid)
1509  --with-rootkey-file=filename
1510                          set default pathname to root key file (default
1511                          run-dir/root.key). This file is read and written.
1512  --with-rootcert-file=filename
1513                          set default pathname to root update certificate file
1514                          (default run-dir/icannbundle.pem). This file need
1515                          not exist if you are content with the builtin.
1516  --with-username=user    set default user that unbound changes to (default
1517                          user is unbound)
1518  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1519                          both]
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-sysroot=DIR Search for dependent libraries within DIR
1522                        (or the compiler's sysroot if not specified).
1523  --with-pthreads         use pthreads library, or --without-pthreads to
1524                          disable threading support.
1525  --with-solaris-threads  use solaris native thread library.
1526  --with-pyunbound        build PyUnbound, or --without-pyunbound to skip it.
1527                          (default=no)
1528  --with-pythonmodule     build Python module, or --without-pythonmodule to
1529                          disable script engine. (default=no)
1530  --with-nss=path         use libnss instead of openssl, installed at path.
1531  --with-ssl=pathname     enable SSL (will check /usr/local/ssl /usr/lib/ssl
1532                          /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1533                          /usr)
1534  --with-libevent=pathname
1535                          use libevent (will check /usr/local /opt/local
1536                          /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1537                          an explicit path). Slower, but allows use of large
1538                          outgoing port ranges.
1539  --with-libexpat=path    specify explicit path for libexpat.
1540  --with-dnstap-socket-path=pathname
1541                          set default dnstap socket path
1542  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1543  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1544  --with-libunbound-only  do not build daemon and tool programs
1545
1546Some influential environment variables:
1547  CC          C compiler command
1548  CFLAGS      C compiler flags
1549  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550              nonstandard directory <lib dir>
1551  LIBS        libraries to pass to the linker, e.g. -l<library>
1552  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1553              you have headers in a nonstandard directory <include dir>
1554  CPP         C preprocessor
1555  YACC        The `Yet Another Compiler Compiler' implementation to use.
1556              Defaults to the first program found out of: `bison -y', `byacc',
1557              `yacc'.
1558  YFLAGS      The list of arguments that will be passed by default to $YACC.
1559              This script will default YFLAGS to the empty string to avoid a
1560              default value of `-d' given by some make applications.
1561  PYTHON_VERSION
1562              The installed Python version to use, for example '2.3'. This
1563              string will be appended to the Python interpreter canonical
1564              name.
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <unbound-bugs@nlnetlabs.nl>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632unbound configure 1.5.4
1633generated by GNU Autoconf 2.69
1634
1635Copyright (C) 2012 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
1684# ac_fn_c_try_cpp LINENO
1685# ----------------------
1686# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687ac_fn_c_try_cpp ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_cpp conftest.$ac_ext"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } > conftest.i && {
1706	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714    ac_retval=1
1715fi
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_cpp
1720
1721# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722# -------------------------------------------------------
1723# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724# the include files in INCLUDES and setting the cache variable VAR
1725# accordingly.
1726ac_fn_c_check_header_mongrel ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  if eval \${$3+:} false; then :
1730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if eval \${$3+:} false; then :
1733  $as_echo_n "(cached) " >&6
1734fi
1735eval ac_res=\$$3
1736	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
1738else
1739  # Is the header compilable?
1740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741$as_echo_n "checking $2 usability... " >&6; }
1742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"; then :
1748  ac_header_compiler=yes
1749else
1750  ac_header_compiler=no
1751fi
1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754$as_echo "$ac_header_compiler" >&6; }
1755
1756# Is the header present?
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758$as_echo_n "checking $2 presence... " >&6; }
1759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761#include <$2>
1762_ACEOF
1763if ac_fn_c_try_cpp "$LINENO"; then :
1764  ac_header_preproc=yes
1765else
1766  ac_header_preproc=no
1767fi
1768rm -f conftest.err conftest.i conftest.$ac_ext
1769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770$as_echo "$ac_header_preproc" >&6; }
1771
1772# So?  What about this header?
1773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774  yes:no: )
1775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779    ;;
1780  no:yes:* )
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1784$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1788$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791( $as_echo "## ---------------------------------------- ##
1792## Report this to unbound-bugs@nlnetlabs.nl ##
1793## ---------------------------------------- ##"
1794     ) | sed "s/^/$as_me: WARNING:     /" >&2
1795    ;;
1796esac
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists and can be compiled using the include files in
1857# INCLUDES, setting the cache variable VAR accordingly.
1858ac_fn_c_check_header_compile ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872  eval "$3=yes"
1873else
1874  eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_compile
1884
1885# ac_fn_c_try_link LINENO
1886# -----------------------
1887# Try to link conftest.$ac_ext, and return whether this succeeded.
1888ac_fn_c_try_link ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  rm -f conftest.$ac_objext conftest$ac_exeext
1892  if { { ac_try="$ac_link"
1893case "(($ac_try" in
1894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895  *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899  (eval "$ac_link") 2>conftest.err
1900  ac_status=$?
1901  if test -s conftest.err; then
1902    grep -v '^ *+' conftest.err >conftest.er1
1903    cat conftest.er1 >&5
1904    mv -f conftest.er1 conftest.err
1905  fi
1906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907  test $ac_status = 0; } && {
1908	 test -z "$ac_c_werror_flag" ||
1909	 test ! -s conftest.err
1910       } && test -s conftest$ac_exeext && {
1911	 test "$cross_compiling" = yes ||
1912	 test -x conftest$ac_exeext
1913       }; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919	ac_retval=1
1920fi
1921  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923  # interfere with the next link command; also delete a directory that is
1924  # left behind by Apple's compiler.  We do this before executing the actions.
1925  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_link
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1946#define $2 innocuous_$2
1947
1948/* System header to define __stub macros and hopefully few prototypes,
1949    which can conflict with char $2 (); below.
1950    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951    <limits.h> exists even on freestanding compilers.  */
1952
1953#ifdef __STDC__
1954# include <limits.h>
1955#else
1956# include <assert.h>
1957#endif
1958
1959#undef $2
1960
1961/* Override any GCC internal prototype to avoid an error.
1962   Use char because int might match the return type of a GCC
1963   builtin and then its argument prototype would still apply.  */
1964#ifdef __cplusplus
1965extern "C"
1966#endif
1967char $2 ();
1968/* The GNU C library defines this for functions which it implements
1969    to always fail with ENOSYS.  Some functions are actually named
1970    something starting with __ and the normal name is an alias.  */
1971#if defined __stub_$2 || defined __stub___$2
1972choke me
1973#endif
1974
1975int
1976main ()
1977{
1978return $2 ();
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_link "$LINENO"; then :
1984  eval "$3=yes"
1985else
1986  eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext \
1989    conftest$ac_exeext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_func
1997
1998# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1999# -------------------------------------------
2000# Tests whether TYPE exists after having included INCLUDES, setting cache
2001# variable VAR accordingly.
2002ac_fn_c_check_type ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
2007if eval \${$3+:} false; then :
2008  $as_echo_n "(cached) " >&6
2009else
2010  eval "$3=no"
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017if (sizeof ($2))
2018	 return 0;
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026$4
2027int
2028main ()
2029{
2030if (sizeof (($2)))
2031	    return 0;
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037
2038else
2039  eval "$3=yes"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$3
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_type
2051
2052# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053# --------------------------------------------
2054# Tries to find the compile-time value of EXPR in a program that includes
2055# INCLUDES, setting VAR accordingly. Returns whether the value could be
2056# computed
2057ac_fn_c_compute_int ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  if test "$cross_compiling" = yes; then
2061    # Depending upon the size, compute the lo and hi bounds.
2062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$4
2065int
2066main ()
2067{
2068static int test_array [1 - 2 * !(($2) >= 0)];
2069test_array [0] = 0;
2070return test_array [0];
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  ac_lo=0 ac_mid=0
2078  while :; do
2079    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h.  */
2081$4
2082int
2083main ()
2084{
2085static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086test_array [0] = 0;
2087return test_array [0];
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094  ac_hi=$ac_mid; break
2095else
2096  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2097			if test $ac_lo -le $ac_mid; then
2098			  ac_lo= ac_hi=
2099			  break
2100			fi
2101			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104  done
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) < 0)];
2113test_array [0] = 0;
2114return test_array [0];
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_hi=-1 ac_mid=-1
2122  while :; do
2123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h.  */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130test_array [0] = 0;
2131return test_array [0];
2132
2133  ;
2134  return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138  ac_lo=$ac_mid; break
2139else
2140  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141			if test $ac_mid -le $ac_hi; then
2142			  ac_lo= ac_hi=
2143			  break
2144			fi
2145			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148  done
2149else
2150  ac_lo= ac_hi=
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153fi
2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155# Binary search between lo and hi bounds.
2156while test "x$ac_lo" != "x$ac_hi"; do
2157  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165test_array [0] = 0;
2166return test_array [0];
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  ac_hi=$ac_mid
2174else
2175  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178done
2179case $ac_lo in #((
2180?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2181'') ac_retval=1 ;;
2182esac
2183  else
2184    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185/* end confdefs.h.  */
2186$4
2187static long int longval () { return $2; }
2188static unsigned long int ulongval () { return $2; }
2189#include <stdio.h>
2190#include <stdlib.h>
2191int
2192main ()
2193{
2194
2195  FILE *f = fopen ("conftest.val", "w");
2196  if (! f)
2197    return 1;
2198  if (($2) < 0)
2199    {
2200      long int i = longval ();
2201      if (i != ($2))
2202	return 1;
2203      fprintf (f, "%ld", i);
2204    }
2205  else
2206    {
2207      unsigned long int i = ulongval ();
2208      if (i != ($2))
2209	return 1;
2210      fprintf (f, "%lu", i);
2211    }
2212  /* Do not output a trailing newline, as this causes \r\n confusion
2213     on some platforms.  */
2214  return ferror (f) || fclose (f) != 0;
2215
2216  ;
2217  return 0;
2218}
2219_ACEOF
2220if ac_fn_c_try_run "$LINENO"; then :
2221  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2222else
2223  ac_retval=1
2224fi
2225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2226  conftest.$ac_objext conftest.beam conftest.$ac_ext
2227rm -f conftest.val
2228
2229  fi
2230  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231  as_fn_set_status $ac_retval
2232
2233} # ac_fn_c_compute_int
2234
2235# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2236# ---------------------------------------------
2237# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2238# accordingly.
2239ac_fn_c_check_decl ()
2240{
2241  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242  as_decl_name=`echo $2|sed 's/ *(.*//'`
2243  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2245$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2246if eval \${$3+:} false; then :
2247  $as_echo_n "(cached) " >&6
2248else
2249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h.  */
2251$4
2252int
2253main ()
2254{
2255#ifndef $as_decl_name
2256#ifdef __cplusplus
2257  (void) $as_decl_use;
2258#else
2259  (void) $as_decl_name;
2260#endif
2261#endif
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267if ac_fn_c_try_compile "$LINENO"; then :
2268  eval "$3=yes"
2269else
2270  eval "$3=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273fi
2274eval ac_res=\$$3
2275	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279} # ac_fn_c_check_decl
2280
2281# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282# ----------------------------------------------------
2283# Tries to find if the field MEMBER exists in type AGGR, after including
2284# INCLUDES, setting cache variable VAR accordingly.
2285ac_fn_c_check_member ()
2286{
2287  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289$as_echo_n "checking for $2.$3... " >&6; }
2290if eval \${$4+:} false; then :
2291  $as_echo_n "(cached) " >&6
2292else
2293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h.  */
2295$5
2296int
2297main ()
2298{
2299static $2 ac_aggr;
2300if (ac_aggr.$3)
2301return 0;
2302  ;
2303  return 0;
2304}
2305_ACEOF
2306if ac_fn_c_try_compile "$LINENO"; then :
2307  eval "$4=yes"
2308else
2309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h.  */
2311$5
2312int
2313main ()
2314{
2315static $2 ac_aggr;
2316if (sizeof ac_aggr.$3)
2317return 0;
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322if ac_fn_c_try_compile "$LINENO"; then :
2323  eval "$4=yes"
2324else
2325  eval "$4=no"
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331eval ac_res=\$$4
2332	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333$as_echo "$ac_res" >&6; }
2334  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335
2336} # ac_fn_c_check_member
2337cat >config.log <<_ACEOF
2338This file contains any messages produced by compilers while
2339running configure, to aid debugging if configure makes a mistake.
2340
2341It was created by unbound $as_me 1.5.4, which was
2342generated by GNU Autoconf 2.69.  Invocation command line was
2343
2344  $ $0 $@
2345
2346_ACEOF
2347exec 5>>config.log
2348{
2349cat <<_ASUNAME
2350## --------- ##
2351## Platform. ##
2352## --------- ##
2353
2354hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2355uname -m = `(uname -m) 2>/dev/null || echo unknown`
2356uname -r = `(uname -r) 2>/dev/null || echo unknown`
2357uname -s = `(uname -s) 2>/dev/null || echo unknown`
2358uname -v = `(uname -v) 2>/dev/null || echo unknown`
2359
2360/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2361/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2362
2363/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2364/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2365/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2366/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2367/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2368/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2369/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2370
2371_ASUNAME
2372
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376  IFS=$as_save_IFS
2377  test -z "$as_dir" && as_dir=.
2378    $as_echo "PATH: $as_dir"
2379  done
2380IFS=$as_save_IFS
2381
2382} >&5
2383
2384cat >&5 <<_ACEOF
2385
2386
2387## ----------- ##
2388## Core tests. ##
2389## ----------- ##
2390
2391_ACEOF
2392
2393
2394# Keep a trace of the command line.
2395# Strip out --no-create and --no-recursion so they do not pile up.
2396# Strip out --silent because we don't want to record it for future runs.
2397# Also quote any args containing shell meta-characters.
2398# Make two passes to allow for proper duplicate-argument suppression.
2399ac_configure_args=
2400ac_configure_args0=
2401ac_configure_args1=
2402ac_must_keep_next=false
2403for ac_pass in 1 2
2404do
2405  for ac_arg
2406  do
2407    case $ac_arg in
2408    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2409    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2410    | -silent | --silent | --silen | --sile | --sil)
2411      continue ;;
2412    *\'*)
2413      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2414    esac
2415    case $ac_pass in
2416    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2417    2)
2418      as_fn_append ac_configure_args1 " '$ac_arg'"
2419      if test $ac_must_keep_next = true; then
2420	ac_must_keep_next=false # Got value, back to normal.
2421      else
2422	case $ac_arg in
2423	  *=* | --config-cache | -C | -disable-* | --disable-* \
2424	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2425	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2426	  | -with-* | --with-* | -without-* | --without-* | --x)
2427	    case "$ac_configure_args0 " in
2428	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2429	    esac
2430	    ;;
2431	  -* ) ac_must_keep_next=true ;;
2432	esac
2433      fi
2434      as_fn_append ac_configure_args " '$ac_arg'"
2435      ;;
2436    esac
2437  done
2438done
2439{ ac_configure_args0=; unset ac_configure_args0;}
2440{ ac_configure_args1=; unset ac_configure_args1;}
2441
2442# When interrupted or exit'd, cleanup temporary files, and complete
2443# config.log.  We remove comments because anyway the quotes in there
2444# would cause problems or look ugly.
2445# WARNING: Use '\'' to represent an apostrophe within the trap.
2446# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2447trap 'exit_status=$?
2448  # Save into config.log some information that might help in debugging.
2449  {
2450    echo
2451
2452    $as_echo "## ---------------- ##
2453## Cache variables. ##
2454## ---------------- ##"
2455    echo
2456    # The following way of writing the cache mishandles newlines in values,
2457(
2458  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2459    eval ac_val=\$$ac_var
2460    case $ac_val in #(
2461    *${as_nl}*)
2462      case $ac_var in #(
2463      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2464$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2465      esac
2466      case $ac_var in #(
2467      _ | IFS | as_nl) ;; #(
2468      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2469      *) { eval $ac_var=; unset $ac_var;} ;;
2470      esac ;;
2471    esac
2472  done
2473  (set) 2>&1 |
2474    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2475    *${as_nl}ac_space=\ *)
2476      sed -n \
2477	"s/'\''/'\''\\\\'\'''\''/g;
2478	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2479      ;; #(
2480    *)
2481      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2482      ;;
2483    esac |
2484    sort
2485)
2486    echo
2487
2488    $as_echo "## ----------------- ##
2489## Output variables. ##
2490## ----------------- ##"
2491    echo
2492    for ac_var in $ac_subst_vars
2493    do
2494      eval ac_val=\$$ac_var
2495      case $ac_val in
2496      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497      esac
2498      $as_echo "$ac_var='\''$ac_val'\''"
2499    done | sort
2500    echo
2501
2502    if test -n "$ac_subst_files"; then
2503      $as_echo "## ------------------- ##
2504## File substitutions. ##
2505## ------------------- ##"
2506      echo
2507      for ac_var in $ac_subst_files
2508      do
2509	eval ac_val=\$$ac_var
2510	case $ac_val in
2511	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512	esac
2513	$as_echo "$ac_var='\''$ac_val'\''"
2514      done | sort
2515      echo
2516    fi
2517
2518    if test -s confdefs.h; then
2519      $as_echo "## ----------- ##
2520## confdefs.h. ##
2521## ----------- ##"
2522      echo
2523      cat confdefs.h
2524      echo
2525    fi
2526    test "$ac_signal" != 0 &&
2527      $as_echo "$as_me: caught signal $ac_signal"
2528    $as_echo "$as_me: exit $exit_status"
2529  } >&5
2530  rm -f core *.core core.conftest.* &&
2531    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532    exit $exit_status
2533' 0
2534for ac_signal in 1 2 13 15; do
2535  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2536done
2537ac_signal=0
2538
2539# confdefs.h avoids OS command line length limits that DEFS can exceed.
2540rm -f -r conftest* confdefs.h
2541
2542$as_echo "/* confdefs.h */" > confdefs.h
2543
2544# Predefined preprocessor variables.
2545
2546cat >>confdefs.h <<_ACEOF
2547#define PACKAGE_NAME "$PACKAGE_NAME"
2548_ACEOF
2549
2550cat >>confdefs.h <<_ACEOF
2551#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552_ACEOF
2553
2554cat >>confdefs.h <<_ACEOF
2555#define PACKAGE_VERSION "$PACKAGE_VERSION"
2556_ACEOF
2557
2558cat >>confdefs.h <<_ACEOF
2559#define PACKAGE_STRING "$PACKAGE_STRING"
2560_ACEOF
2561
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564_ACEOF
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_URL "$PACKAGE_URL"
2568_ACEOF
2569
2570
2571# Let the site file select an alternate cache file if it wants to.
2572# Prefer an explicitly selected file to automatically selected ones.
2573ac_site_file1=NONE
2574ac_site_file2=NONE
2575if test -n "$CONFIG_SITE"; then
2576  # We do not want a PATH search for config.site.
2577  case $CONFIG_SITE in #((
2578    -*)  ac_site_file1=./$CONFIG_SITE;;
2579    */*) ac_site_file1=$CONFIG_SITE;;
2580    *)   ac_site_file1=./$CONFIG_SITE;;
2581  esac
2582elif test "x$prefix" != xNONE; then
2583  ac_site_file1=$prefix/share/config.site
2584  ac_site_file2=$prefix/etc/config.site
2585else
2586  ac_site_file1=$ac_default_prefix/share/config.site
2587  ac_site_file2=$ac_default_prefix/etc/config.site
2588fi
2589for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2590do
2591  test "x$ac_site_file" = xNONE && continue
2592  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2593    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2594$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2595    sed 's/^/| /' "$ac_site_file" >&5
2596    . "$ac_site_file" \
2597      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599as_fn_error $? "failed to load site script $ac_site_file
2600See \`config.log' for more details" "$LINENO" 5; }
2601  fi
2602done
2603
2604if test -r "$cache_file"; then
2605  # Some versions of bash will fail to source /dev/null (special files
2606  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2607  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2608    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2609$as_echo "$as_me: loading cache $cache_file" >&6;}
2610    case $cache_file in
2611      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2612      *)                      . "./$cache_file";;
2613    esac
2614  fi
2615else
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2617$as_echo "$as_me: creating cache $cache_file" >&6;}
2618  >$cache_file
2619fi
2620
2621# Check that the precious variables saved in the cache have kept the same
2622# value.
2623ac_cache_corrupted=false
2624for ac_var in $ac_precious_vars; do
2625  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2626  eval ac_new_set=\$ac_env_${ac_var}_set
2627  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2628  eval ac_new_val=\$ac_env_${ac_var}_value
2629  case $ac_old_set,$ac_new_set in
2630    set,)
2631      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2632$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2633      ac_cache_corrupted=: ;;
2634    ,set)
2635      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2636$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2637      ac_cache_corrupted=: ;;
2638    ,);;
2639    *)
2640      if test "x$ac_old_val" != "x$ac_new_val"; then
2641	# differences in whitespace do not lead to failure.
2642	ac_old_val_w=`echo x $ac_old_val`
2643	ac_new_val_w=`echo x $ac_new_val`
2644	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2645	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2646$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2647	  ac_cache_corrupted=:
2648	else
2649	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2650$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2651	  eval $ac_var=\$ac_old_val
2652	fi
2653	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2654$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2655	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2656$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2657      fi;;
2658  esac
2659  # Pass precious variables to config.status.
2660  if test "$ac_new_set" = set; then
2661    case $ac_new_val in
2662    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2663    *) ac_arg=$ac_var=$ac_new_val ;;
2664    esac
2665    case " $ac_configure_args " in
2666      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2667      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2668    esac
2669  fi
2670done
2671if $ac_cache_corrupted; then
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2675$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2676  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2677fi
2678## -------------------- ##
2679## Main body of script. ##
2680## -------------------- ##
2681
2682ac_ext=c
2683ac_cpp='$CPP $CPPFLAGS'
2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688
2689UNBOUND_VERSION_MAJOR=1
2690
2691UNBOUND_VERSION_MINOR=5
2692
2693UNBOUND_VERSION_MICRO=4
2694
2695
2696LIBUNBOUND_CURRENT=5
2697LIBUNBOUND_REVISION=7
2698LIBUNBOUND_AGE=3
2699# 1.0.0 had 0:12:0
2700# 1.0.1 had 0:13:0
2701# 1.0.2 had 0:14:0
2702# 1.1.0 had 0:15:0
2703# 1.1.1 had 0:16:0
2704# 1.2.0 had 0:17:0
2705# 1.2.1 had 0:18:0
2706# 1.3.0 had 1:0:0   # ub_cancel and -export-symbols.
2707# 1.3.1 had 1:1:0
2708# 1.3.2 had 1:2:0
2709# 1.3.3 had 1:3:0
2710# 1.3.4 had 1:4:0
2711# 1.4.0-snapshots had 1:5:0
2712# 1.4.0 had 1:5:0 (not 2:0:0)   # ub_result.why_bogus
2713# 1.4.1 had 2:1:0
2714# 1.4.2 had 2:2:0
2715# 1.4.3 had 2:3:0
2716# 1.4.4 had 2:4:0
2717# 1.4.5 had 2:5:0
2718# 1.4.6 had 2:6:0
2719# 1.4.7 had 2:7:0
2720# 1.4.8 had 2:8:0
2721# 1.4.9 had 2:9:0
2722# 1.4.10 had 2:10:0
2723# 1.4.11 had 2:11:0
2724# 1.4.12 had 2:12:0
2725# 1.4.13 had 2:13:0
2726# and 1.4.13p1 and 1.4.13.p2
2727# 1.4.14 had 2:14:0
2728# 1.4.15 had 3:0:1 # adds ub_version()
2729# 1.4.16 had 3:1:1
2730# 1.4.17 had 3:2:1
2731# 1.4.18 had 3:3:1
2732# 1.4.19 had 3:4:1
2733# 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2734# 1.4.21 had 4:1:2
2735# 1.4.22 had 4:1:2
2736# 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2737# 1.5.1 had 5:3:3
2738# 1.5.2 had 5:5:3
2739# 1.5.3 had 5:6:3
2740# 1.5.4 had 5:7:3
2741
2742#   Current  -- the number of the binary API that we're implementing
2743#   Revision -- which iteration of the implementation of the binary
2744#               API are we supplying?
2745#   Age      -- How many previous binary API versions do we also
2746#               support?
2747#
2748# If we release a new version that does not change the binary API,
2749# increment Revision.
2750#
2751# If we release a new version that changes the binary API, but does
2752# not break programs compiled against the old binary API, increment
2753# Current and Age.  Set Revision to 0, since this is the first
2754# implementation of the new API.
2755#
2756# Otherwise, we're changing the binary API and breaking bakward
2757# compatibility with old binaries.  Increment Current.  Set Age to 0,
2758# since we're backward compatible with no previous APIs.  Set Revision
2759# to 0 too.
2760
2761
2762
2763
2764CFLAGS="$CFLAGS"
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770if test -n "$ac_tool_prefix"; then
2771  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2772set dummy ${ac_tool_prefix}gcc; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if ${ac_cv_prog_CC+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test -n "$CC"; then
2779  ac_cv_prog_CC="$CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801$as_echo "$CC" >&6; }
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807
2808fi
2809if test -z "$ac_cv_prog_CC"; then
2810  ac_ct_CC=$CC
2811  # Extract the first word of "gcc", so it can be a program name with args.
2812set dummy gcc; ac_word=$2
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
2815if ${ac_cv_prog_ac_ct_CC+:} false; then :
2816  $as_echo_n "(cached) " >&6
2817else
2818  if test -n "$ac_ct_CC"; then
2819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826    for ac_exec_ext in '' $ac_executable_extensions; do
2827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_ac_ct_CC="gcc"
2829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833  done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839if test -n "$ac_ct_CC"; then
2840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2841$as_echo "$ac_ct_CC" >&6; }
2842else
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847  if test "x$ac_ct_CC" = x; then
2848    CC=""
2849  else
2850    case $cross_compiling:$ac_tool_warned in
2851yes:)
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854ac_tool_warned=yes ;;
2855esac
2856    CC=$ac_ct_CC
2857  fi
2858else
2859  CC="$ac_cv_prog_CC"
2860fi
2861
2862if test -z "$CC"; then
2863          if test -n "$ac_tool_prefix"; then
2864    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2865set dummy ${ac_tool_prefix}cc; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_CC+:} false; then :
2869  $as_echo_n "(cached) " >&6
2870else
2871  if test -n "$CC"; then
2872  ac_cv_prog_CC="$CC" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877  IFS=$as_save_IFS
2878  test -z "$as_dir" && as_dir=.
2879    for ac_exec_ext in '' $ac_executable_extensions; do
2880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881    ac_cv_prog_CC="${ac_tool_prefix}cc"
2882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883    break 2
2884  fi
2885done
2886  done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891CC=$ac_cv_prog_CC
2892if test -n "$CC"; then
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894$as_echo "$CC" >&6; }
2895else
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
2898fi
2899
2900
2901  fi
2902fi
2903if test -z "$CC"; then
2904  # Extract the first word of "cc", so it can be a program name with args.
2905set dummy cc; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if ${ac_cv_prog_CC+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  if test -n "$CC"; then
2912  ac_cv_prog_CC="$CC" # Let the user override the test.
2913else
2914  ac_prog_rejected=no
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920    for ac_exec_ext in '' $ac_executable_extensions; do
2921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2923       ac_prog_rejected=yes
2924       continue
2925     fi
2926    ac_cv_prog_CC="cc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934if test $ac_prog_rejected = yes; then
2935  # We found a bogon in the path, so make sure we never use it.
2936  set dummy $ac_cv_prog_CC
2937  shift
2938  if test $# != 0; then
2939    # We chose a different compiler from the bogus one.
2940    # However, it has the same basename, so the bogon will be chosen
2941    # first if we set CC to just the basename; use the full file name.
2942    shift
2943    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2944  fi
2945fi
2946fi
2947fi
2948CC=$ac_cv_prog_CC
2949if test -n "$CC"; then
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951$as_echo "$CC" >&6; }
2952else
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954$as_echo "no" >&6; }
2955fi
2956
2957
2958fi
2959if test -z "$CC"; then
2960  if test -n "$ac_tool_prefix"; then
2961  for ac_prog in cl.exe
2962  do
2963    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2964set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000    test -n "$CC" && break
3001  done
3002fi
3003if test -z "$CC"; then
3004  ac_ct_CC=$CC
3005  for ac_prog in cl.exe
3006do
3007  # Extract the first word of "$ac_prog", so it can be a program name with args.
3008set dummy $ac_prog; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_ac_ct_CC+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$ac_ct_CC"; then
3015  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024    ac_cv_prog_ac_ct_CC="$ac_prog"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035if test -n "$ac_ct_CC"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037$as_echo "$ac_ct_CC" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044  test -n "$ac_ct_CC" && break
3045done
3046
3047  if test "x$ac_ct_CC" = x; then
3048    CC=""
3049  else
3050    case $cross_compiling:$ac_tool_warned in
3051yes:)
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054ac_tool_warned=yes ;;
3055esac
3056    CC=$ac_ct_CC
3057  fi
3058fi
3059
3060fi
3061
3062
3063test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065as_fn_error $? "no acceptable C compiler found in \$PATH
3066See \`config.log' for more details" "$LINENO" 5; }
3067
3068# Provide some information about the compiler.
3069$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3070set X $ac_compile
3071ac_compiler=$2
3072for ac_option in --version -v -V -qversion; do
3073  { { ac_try="$ac_compiler $ac_option >&5"
3074case "(($ac_try" in
3075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076  *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3081  ac_status=$?
3082  if test -s conftest.err; then
3083    sed '10a\
3084... rest of stderr output deleted ...
3085         10q' conftest.err >conftest.er1
3086    cat conftest.er1 >&5
3087  fi
3088  rm -f conftest.er1 conftest.err
3089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090  test $ac_status = 0; }
3091done
3092
3093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104ac_clean_files_save=$ac_clean_files
3105ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3106# Try to create an executable without -o first, disregard a.out.
3107# It will help us diagnose broken compilers, and finding out an intuition
3108# of exeext.
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110$as_echo_n "checking whether the C compiler works... " >&6; }
3111ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3112
3113# The possible output files:
3114ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3115
3116ac_rmfiles=
3117for ac_file in $ac_files
3118do
3119  case $ac_file in
3120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3122  esac
3123done
3124rm -f $ac_rmfiles
3125
3126if { { ac_try="$ac_link_default"
3127case "(($ac_try" in
3128  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129  *) ac_try_echo=$ac_try;;
3130esac
3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132$as_echo "$ac_try_echo"; } >&5
3133  (eval "$ac_link_default") 2>&5
3134  ac_status=$?
3135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136  test $ac_status = 0; }; then :
3137  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3138# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3139# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3140# so that the user can short-circuit this test for compilers unknown to
3141# Autoconf.
3142for ac_file in $ac_files ''
3143do
3144  test -f "$ac_file" || continue
3145  case $ac_file in
3146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3147	;;
3148    [ab].out )
3149	# We found the default executable, but exeext='' is most
3150	# certainly right.
3151	break;;
3152    *.* )
3153	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3154	then :; else
3155	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156	fi
3157	# We set ac_cv_exeext here because the later test for it is not
3158	# safe: cross compilers may not add the suffix if given an `-o'
3159	# argument, so we may need to know it at that point already.
3160	# Even if this section looks crufty: it has the advantage of
3161	# actually working.
3162	break;;
3163    * )
3164	break;;
3165  esac
3166done
3167test "$ac_cv_exeext" = no && ac_cv_exeext=
3168
3169else
3170  ac_file=''
3171fi
3172if test -z "$ac_file"; then :
3173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174$as_echo "no" >&6; }
3175$as_echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180as_fn_error 77 "C compiler cannot create executables
3181See \`config.log' for more details" "$LINENO" 5; }
3182else
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184$as_echo "yes" >&6; }
3185fi
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187$as_echo_n "checking for C compiler default output file name... " >&6; }
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3189$as_echo "$ac_file" >&6; }
3190ac_exeext=$ac_cv_exeext
3191
3192rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3193ac_clean_files=$ac_clean_files_save
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3195$as_echo_n "checking for suffix of executables... " >&6; }
3196if { { ac_try="$ac_link"
3197case "(($ac_try" in
3198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199  *) ac_try_echo=$ac_try;;
3200esac
3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202$as_echo "$ac_try_echo"; } >&5
3203  (eval "$ac_link") 2>&5
3204  ac_status=$?
3205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206  test $ac_status = 0; }; then :
3207  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3208# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3209# work properly (i.e., refer to `conftest.exe'), while it won't with
3210# `rm'.
3211for ac_file in conftest.exe conftest conftest.*; do
3212  test -f "$ac_file" || continue
3213  case $ac_file in
3214    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3215    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216	  break;;
3217    * ) break;;
3218  esac
3219done
3220else
3221  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3224See \`config.log' for more details" "$LINENO" 5; }
3225fi
3226rm -f conftest conftest$ac_cv_exeext
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3228$as_echo "$ac_cv_exeext" >&6; }
3229
3230rm -f conftest.$ac_ext
3231EXEEXT=$ac_cv_exeext
3232ac_exeext=$EXEEXT
3233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235#include <stdio.h>
3236int
3237main ()
3238{
3239FILE *f = fopen ("conftest.out", "w");
3240 return ferror (f) || fclose (f) != 0;
3241
3242  ;
3243  return 0;
3244}
3245_ACEOF
3246ac_clean_files="$ac_clean_files conftest.out"
3247# Check that the compiler produces executables we can run.  If not, either
3248# the compiler is broken, or we cross compile.
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3250$as_echo_n "checking whether we are cross compiling... " >&6; }
3251if test "$cross_compiling" != yes; then
3252  { { ac_try="$ac_link"
3253case "(($ac_try" in
3254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255  *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259  (eval "$ac_link") 2>&5
3260  ac_status=$?
3261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262  test $ac_status = 0; }
3263  if { ac_try='./conftest$ac_cv_exeext'
3264  { { case "(($ac_try" in
3265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266  *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270  (eval "$ac_try") 2>&5
3271  ac_status=$?
3272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273  test $ac_status = 0; }; }; then
3274    cross_compiling=no
3275  else
3276    if test "$cross_compiling" = maybe; then
3277	cross_compiling=yes
3278    else
3279	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281as_fn_error $? "cannot run C compiled programs.
3282If you meant to cross compile, use \`--host'.
3283See \`config.log' for more details" "$LINENO" 5; }
3284    fi
3285  fi
3286fi
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3288$as_echo "$cross_compiling" >&6; }
3289
3290rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3291ac_clean_files=$ac_clean_files_save
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3293$as_echo_n "checking for suffix of object files... " >&6; }
3294if ${ac_cv_objext+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h.  */
3299
3300int
3301main ()
3302{
3303
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.o conftest.obj
3309if { { ac_try="$ac_compile"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315$as_echo "$ac_try_echo"; } >&5
3316  (eval "$ac_compile") 2>&5
3317  ac_status=$?
3318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }; then :
3320  for ac_file in conftest.o conftest.obj conftest.*; do
3321  test -f "$ac_file" || continue;
3322  case $ac_file in
3323    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3325       break;;
3326  esac
3327done
3328else
3329  $as_echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "cannot compute suffix of object files: cannot compile
3335See \`config.log' for more details" "$LINENO" 5; }
3336fi
3337rm -f conftest.$ac_cv_objext conftest.$ac_ext
3338fi
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340$as_echo "$ac_cv_objext" >&6; }
3341OBJEXT=$ac_cv_objext
3342ac_objext=$OBJEXT
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3344$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3345if ${ac_cv_c_compiler_gnu+:} false; then :
3346  $as_echo_n "(cached) " >&6
3347else
3348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h.  */
3350
3351int
3352main ()
3353{
3354#ifndef __GNUC__
3355       choke me
3356#endif
3357
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
3363  ac_compiler_gnu=yes
3364else
3365  ac_compiler_gnu=no
3366fi
3367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369
3370fi
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3372$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3373if test $ac_compiler_gnu = yes; then
3374  GCC=yes
3375else
3376  GCC=
3377fi
3378ac_test_CFLAGS=${CFLAGS+set}
3379ac_save_CFLAGS=$CFLAGS
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3381$as_echo_n "checking whether $CC accepts -g... " >&6; }
3382if ${ac_cv_prog_cc_g+:} false; then :
3383  $as_echo_n "(cached) " >&6
3384else
3385  ac_save_c_werror_flag=$ac_c_werror_flag
3386   ac_c_werror_flag=yes
3387   ac_cv_prog_cc_g=no
3388   CFLAGS="-g"
3389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390/* end confdefs.h.  */
3391
3392int
3393main ()
3394{
3395
3396  ;
3397  return 0;
3398}
3399_ACEOF
3400if ac_fn_c_try_compile "$LINENO"; then :
3401  ac_cv_prog_cc_g=yes
3402else
3403  CFLAGS=""
3404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h.  */
3406
3407int
3408main ()
3409{
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415if ac_fn_c_try_compile "$LINENO"; then :
3416
3417else
3418  ac_c_werror_flag=$ac_save_c_werror_flag
3419	 CFLAGS="-g"
3420	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422
3423int
3424main ()
3425{
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431if ac_fn_c_try_compile "$LINENO"; then :
3432  ac_cv_prog_cc_g=yes
3433fi
3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435fi
3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437fi
3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439   ac_c_werror_flag=$ac_save_c_werror_flag
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3442$as_echo "$ac_cv_prog_cc_g" >&6; }
3443if test "$ac_test_CFLAGS" = set; then
3444  CFLAGS=$ac_save_CFLAGS
3445elif test $ac_cv_prog_cc_g = yes; then
3446  if test "$GCC" = yes; then
3447    CFLAGS="-g -O2"
3448  else
3449    CFLAGS="-g"
3450  fi
3451else
3452  if test "$GCC" = yes; then
3453    CFLAGS="-O2"
3454  else
3455    CFLAGS=
3456  fi
3457fi
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3459$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3460if ${ac_cv_prog_cc_c89+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  ac_cv_prog_cc_c89=no
3464ac_save_CC=$CC
3465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467#include <stdarg.h>
3468#include <stdio.h>
3469struct stat;
3470/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3471struct buf { int x; };
3472FILE * (*rcsopen) (struct buf *, struct stat *, int);
3473static char *e (p, i)
3474     char **p;
3475     int i;
3476{
3477  return p[i];
3478}
3479static char *f (char * (*g) (char **, int), char **p, ...)
3480{
3481  char *s;
3482  va_list v;
3483  va_start (v,p);
3484  s = g (p, va_arg (v,int));
3485  va_end (v);
3486  return s;
3487}
3488
3489/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3490   function prototypes and stuff, but not '\xHH' hex character constants.
3491   These don't provoke an error unfortunately, instead are silently treated
3492   as 'x'.  The following induces an error, until -std is added to get
3493   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3494   array size at least.  It's necessary to write '\x00'==0 to get something
3495   that's true only with -std.  */
3496int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3497
3498/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3499   inside strings and character constants.  */
3500#define FOO(x) 'x'
3501int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3502
3503int test (int i, double x);
3504struct s1 {int (*f) (int a);};
3505struct s2 {int (*f) (double a);};
3506int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507int argc;
3508char **argv;
3509int
3510main ()
3511{
3512return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3518	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3519do
3520  CC="$ac_save_CC $ac_arg"
3521  if ac_fn_c_try_compile "$LINENO"; then :
3522  ac_cv_prog_cc_c89=$ac_arg
3523fi
3524rm -f core conftest.err conftest.$ac_objext
3525  test "x$ac_cv_prog_cc_c89" != "xno" && break
3526done
3527rm -f conftest.$ac_ext
3528CC=$ac_save_CC
3529
3530fi
3531# AC_CACHE_VAL
3532case "x$ac_cv_prog_cc_c89" in
3533  x)
3534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535$as_echo "none needed" >&6; } ;;
3536  xno)
3537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3538$as_echo "unsupported" >&6; } ;;
3539  *)
3540    CC="$CC $ac_cv_prog_cc_c89"
3541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3542$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3543esac
3544if test "x$ac_cv_prog_cc_c89" != xno; then :
3545
3546fi
3547
3548ac_ext=c
3549ac_cpp='$CPP $CPPFLAGS'
3550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554
3555ac_ext=c
3556ac_cpp='$CPP $CPPFLAGS'
3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3561$as_echo_n "checking how to run the C preprocessor... " >&6; }
3562# On Suns, sometimes $CPP names a directory.
3563if test -n "$CPP" && test -d "$CPP"; then
3564  CPP=
3565fi
3566if test -z "$CPP"; then
3567  if ${ac_cv_prog_CPP+:} false; then :
3568  $as_echo_n "(cached) " >&6
3569else
3570      # Double quotes because CPP needs to be expanded
3571    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3572    do
3573      ac_preproc_ok=false
3574for ac_c_preproc_warn_flag in '' yes
3575do
3576  # Use a header file that comes with gcc, so configuring glibc
3577  # with a fresh cross-compiler works.
3578  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3579  # <limits.h> exists even on freestanding compilers.
3580  # On the NeXT, cc -E runs the code through the compiler's parser,
3581  # not just through cpp. "Syntax error" is here to catch this case.
3582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584#ifdef __STDC__
3585# include <limits.h>
3586#else
3587# include <assert.h>
3588#endif
3589		     Syntax error
3590_ACEOF
3591if ac_fn_c_try_cpp "$LINENO"; then :
3592
3593else
3594  # Broken: fails on valid input.
3595continue
3596fi
3597rm -f conftest.err conftest.i conftest.$ac_ext
3598
3599  # OK, works on sane cases.  Now check whether nonexistent headers
3600  # can be detected and how.
3601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603#include <ac_nonexistent.h>
3604_ACEOF
3605if ac_fn_c_try_cpp "$LINENO"; then :
3606  # Broken: success on invalid input.
3607continue
3608else
3609  # Passes both tests.
3610ac_preproc_ok=:
3611break
3612fi
3613rm -f conftest.err conftest.i conftest.$ac_ext
3614
3615done
3616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3617rm -f conftest.i conftest.err conftest.$ac_ext
3618if $ac_preproc_ok; then :
3619  break
3620fi
3621
3622    done
3623    ac_cv_prog_CPP=$CPP
3624
3625fi
3626  CPP=$ac_cv_prog_CPP
3627else
3628  ac_cv_prog_CPP=$CPP
3629fi
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3631$as_echo "$CPP" >&6; }
3632ac_preproc_ok=false
3633for ac_c_preproc_warn_flag in '' yes
3634do
3635  # Use a header file that comes with gcc, so configuring glibc
3636  # with a fresh cross-compiler works.
3637  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3638  # <limits.h> exists even on freestanding compilers.
3639  # On the NeXT, cc -E runs the code through the compiler's parser,
3640  # not just through cpp. "Syntax error" is here to catch this case.
3641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643#ifdef __STDC__
3644# include <limits.h>
3645#else
3646# include <assert.h>
3647#endif
3648		     Syntax error
3649_ACEOF
3650if ac_fn_c_try_cpp "$LINENO"; then :
3651
3652else
3653  # Broken: fails on valid input.
3654continue
3655fi
3656rm -f conftest.err conftest.i conftest.$ac_ext
3657
3658  # OK, works on sane cases.  Now check whether nonexistent headers
3659  # can be detected and how.
3660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662#include <ac_nonexistent.h>
3663_ACEOF
3664if ac_fn_c_try_cpp "$LINENO"; then :
3665  # Broken: success on invalid input.
3666continue
3667else
3668  # Passes both tests.
3669ac_preproc_ok=:
3670break
3671fi
3672rm -f conftest.err conftest.i conftest.$ac_ext
3673
3674done
3675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3676rm -f conftest.i conftest.err conftest.$ac_ext
3677if $ac_preproc_ok; then :
3678
3679else
3680  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3683See \`config.log' for more details" "$LINENO" 5; }
3684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3694$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3695if ${ac_cv_path_GREP+:} false; then :
3696  $as_echo_n "(cached) " >&6
3697else
3698  if test -z "$GREP"; then
3699  ac_path_GREP_found=false
3700  # Loop through the user's path and test for each of PROGNAME-LIST
3701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703do
3704  IFS=$as_save_IFS
3705  test -z "$as_dir" && as_dir=.
3706    for ac_prog in grep ggrep; do
3707    for ac_exec_ext in '' $ac_executable_extensions; do
3708      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3709      as_fn_executable_p "$ac_path_GREP" || continue
3710# Check for GNU ac_path_GREP and select it if it is found.
3711  # Check for GNU $ac_path_GREP
3712case `"$ac_path_GREP" --version 2>&1` in
3713*GNU*)
3714  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3715*)
3716  ac_count=0
3717  $as_echo_n 0123456789 >"conftest.in"
3718  while :
3719  do
3720    cat "conftest.in" "conftest.in" >"conftest.tmp"
3721    mv "conftest.tmp" "conftest.in"
3722    cp "conftest.in" "conftest.nl"
3723    $as_echo 'GREP' >> "conftest.nl"
3724    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726    as_fn_arith $ac_count + 1 && ac_count=$as_val
3727    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3728      # Best one so far, save it but keep looking for a better one
3729      ac_cv_path_GREP="$ac_path_GREP"
3730      ac_path_GREP_max=$ac_count
3731    fi
3732    # 10*(2^10) chars as input seems more than enough
3733    test $ac_count -gt 10 && break
3734  done
3735  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736esac
3737
3738      $ac_path_GREP_found && break 3
3739    done
3740  done
3741  done
3742IFS=$as_save_IFS
3743  if test -z "$ac_cv_path_GREP"; then
3744    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3745  fi
3746else
3747  ac_cv_path_GREP=$GREP
3748fi
3749
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3752$as_echo "$ac_cv_path_GREP" >&6; }
3753 GREP="$ac_cv_path_GREP"
3754
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3757$as_echo_n "checking for egrep... " >&6; }
3758if ${ac_cv_path_EGREP+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3762   then ac_cv_path_EGREP="$GREP -E"
3763   else
3764     if test -z "$EGREP"; then
3765  ac_path_EGREP_found=false
3766  # Loop through the user's path and test for each of PROGNAME-LIST
3767  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769do
3770  IFS=$as_save_IFS
3771  test -z "$as_dir" && as_dir=.
3772    for ac_prog in egrep; do
3773    for ac_exec_ext in '' $ac_executable_extensions; do
3774      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3775      as_fn_executable_p "$ac_path_EGREP" || continue
3776# Check for GNU ac_path_EGREP and select it if it is found.
3777  # Check for GNU $ac_path_EGREP
3778case `"$ac_path_EGREP" --version 2>&1` in
3779*GNU*)
3780  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3781*)
3782  ac_count=0
3783  $as_echo_n 0123456789 >"conftest.in"
3784  while :
3785  do
3786    cat "conftest.in" "conftest.in" >"conftest.tmp"
3787    mv "conftest.tmp" "conftest.in"
3788    cp "conftest.in" "conftest.nl"
3789    $as_echo 'EGREP' >> "conftest.nl"
3790    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3791    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3792    as_fn_arith $ac_count + 1 && ac_count=$as_val
3793    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3794      # Best one so far, save it but keep looking for a better one
3795      ac_cv_path_EGREP="$ac_path_EGREP"
3796      ac_path_EGREP_max=$ac_count
3797    fi
3798    # 10*(2^10) chars as input seems more than enough
3799    test $ac_count -gt 10 && break
3800  done
3801  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802esac
3803
3804      $ac_path_EGREP_found && break 3
3805    done
3806  done
3807  done
3808IFS=$as_save_IFS
3809  if test -z "$ac_cv_path_EGREP"; then
3810    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811  fi
3812else
3813  ac_cv_path_EGREP=$EGREP
3814fi
3815
3816   fi
3817fi
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3819$as_echo "$ac_cv_path_EGREP" >&6; }
3820 EGREP="$ac_cv_path_EGREP"
3821
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3824$as_echo_n "checking for ANSI C header files... " >&6; }
3825if ${ac_cv_header_stdc+:} false; then :
3826  $as_echo_n "(cached) " >&6
3827else
3828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h.  */
3830#include <stdlib.h>
3831#include <stdarg.h>
3832#include <string.h>
3833#include <float.h>
3834
3835int
3836main ()
3837{
3838
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_compile "$LINENO"; then :
3844  ac_cv_header_stdc=yes
3845else
3846  ac_cv_header_stdc=no
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849
3850if test $ac_cv_header_stdc = yes; then
3851  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h.  */
3854#include <string.h>
3855
3856_ACEOF
3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858  $EGREP "memchr" >/dev/null 2>&1; then :
3859
3860else
3861  ac_cv_header_stdc=no
3862fi
3863rm -f conftest*
3864
3865fi
3866
3867if test $ac_cv_header_stdc = yes; then
3868  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h.  */
3871#include <stdlib.h>
3872
3873_ACEOF
3874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875  $EGREP "free" >/dev/null 2>&1; then :
3876
3877else
3878  ac_cv_header_stdc=no
3879fi
3880rm -f conftest*
3881
3882fi
3883
3884if test $ac_cv_header_stdc = yes; then
3885  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3886  if test "$cross_compiling" = yes; then :
3887  :
3888else
3889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <ctype.h>
3892#include <stdlib.h>
3893#if ((' ' & 0x0FF) == 0x020)
3894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3896#else
3897# define ISLOWER(c) \
3898		   (('a' <= (c) && (c) <= 'i') \
3899		     || ('j' <= (c) && (c) <= 'r') \
3900		     || ('s' <= (c) && (c) <= 'z'))
3901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3902#endif
3903
3904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3905int
3906main ()
3907{
3908  int i;
3909  for (i = 0; i < 256; i++)
3910    if (XOR (islower (i), ISLOWER (i))
3911	|| toupper (i) != TOUPPER (i))
3912      return 2;
3913  return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_run "$LINENO"; then :
3917
3918else
3919  ac_cv_header_stdc=no
3920fi
3921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3922  conftest.$ac_objext conftest.beam conftest.$ac_ext
3923fi
3924
3925fi
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3928$as_echo "$ac_cv_header_stdc" >&6; }
3929if test $ac_cv_header_stdc = yes; then
3930
3931$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3932
3933fi
3934
3935# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3936for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3937		  inttypes.h stdint.h unistd.h
3938do :
3939  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3941"
3942if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3943  cat >>confdefs.h <<_ACEOF
3944#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3945_ACEOF
3946
3947fi
3948
3949done
3950
3951
3952
3953  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3954if test "x$ac_cv_header_minix_config_h" = xyes; then :
3955  MINIX=yes
3956else
3957  MINIX=
3958fi
3959
3960
3961  if test "$MINIX" = yes; then
3962
3963$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3964
3965
3966$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3967
3968
3969$as_echo "#define _MINIX 1" >>confdefs.h
3970
3971  fi
3972
3973
3974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3975$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3976if ${ac_cv_safe_to_define___extensions__+:} false; then :
3977  $as_echo_n "(cached) " >&6
3978else
3979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981
3982#         define __EXTENSIONS__ 1
3983          $ac_includes_default
3984int
3985main ()
3986{
3987
3988  ;
3989  return 0;
3990}
3991_ACEOF
3992if ac_fn_c_try_compile "$LINENO"; then :
3993  ac_cv_safe_to_define___extensions__=yes
3994else
3995  ac_cv_safe_to_define___extensions__=no
3996fi
3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4000$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4001  test $ac_cv_safe_to_define___extensions__ = yes &&
4002    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4003
4004  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4005
4006  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4007
4008  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4009
4010  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4011
4012
4013
4014if test "$ac_cv_header_minix_config_h" = "yes"; then
4015
4016$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4017
4018fi
4019
4020case "$prefix" in
4021        NONE)
4022		prefix="/usr/local"
4023        ;;
4024esac
4025
4026# are we on MinGW?
4027if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4028else
4029	if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4030	else on_mingw="no"; fi
4031fi
4032
4033#
4034# Determine configuration file
4035# the eval is to evaluate shell expansion twice
4036if test $on_mingw = "no"; then
4037  ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4038else
4039  ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4040fi
4041
4042# Check whether --with-conf_file was given.
4043if test "${with_conf_file+set}" = set; then :
4044  withval=$with_conf_file; ub_conf_file="$withval"
4045fi
4046
4047
4048hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4049
4050
4051cat >>confdefs.h <<_ACEOF
4052#define CONFIGFILE "$hdr_config"
4053_ACEOF
4054
4055ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4056$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4057	 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4058	 X"$ub_conf_file" : 'X\(//\)$' \| \
4059	 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4060$as_echo X"$ub_conf_file" |
4061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4062	    s//\1/
4063	    q
4064	  }
4065	  /^X\(\/\/\)[^/].*/{
4066	    s//\1/
4067	    q
4068	  }
4069	  /^X\(\/\/\)$/{
4070	    s//\1/
4071	    q
4072	  }
4073	  /^X\(\/\).*/{
4074	    s//\1/
4075	    q
4076	  }
4077	  s/.*/./; q'`
4078
4079
4080# Determine run, chroot directory and pidfile locations
4081
4082# Check whether --with-run-dir was given.
4083if test "${with_run_dir+set}" = set; then :
4084  withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4085else
4086  if test $on_mingw = no; then
4087    UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4088else
4089    UNBOUND_RUN_DIR=""
4090fi
4091
4092fi
4093
4094
4095hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4096
4097
4098cat >>confdefs.h <<_ACEOF
4099#define RUN_DIR "$hdr_run"
4100_ACEOF
4101
4102
4103
4104# Check whether --with-chroot-dir was given.
4105if test "${with_chroot_dir+set}" = set; then :
4106  withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4107else
4108  if test $on_mingw = no; then
4109    UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4110else
4111    UNBOUND_CHROOT_DIR=""
4112fi
4113
4114fi
4115
4116
4117hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4118
4119
4120cat >>confdefs.h <<_ACEOF
4121#define CHROOT_DIR "$hdr_chroot"
4122_ACEOF
4123
4124
4125
4126# Check whether --with-share-dir was given.
4127if test "${with_share_dir+set}" = set; then :
4128  withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4129else
4130  UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4131fi
4132
4133
4134
4135cat >>confdefs.h <<_ACEOF
4136#define SHARE_DIR "$UNBOUND_SHARE_DIR"
4137_ACEOF
4138
4139
4140
4141# Check whether --with-pidfile was given.
4142if test "${with_pidfile+set}" = set; then :
4143  withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4144else
4145  if test $on_mingw = no; then
4146    UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4147else
4148    UNBOUND_PIDFILE=""
4149fi
4150
4151fi
4152
4153
4154hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4155
4156
4157cat >>confdefs.h <<_ACEOF
4158#define PIDFILE "$hdr_pid"
4159_ACEOF
4160
4161
4162
4163# Check whether --with-rootkey-file was given.
4164if test "${with_rootkey_file+set}" = set; then :
4165  withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4166else
4167  if test $on_mingw = no; then
4168    UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4169else
4170    UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4171fi
4172
4173fi
4174
4175
4176hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4177
4178
4179cat >>confdefs.h <<_ACEOF
4180#define ROOT_ANCHOR_FILE "$hdr_rkey"
4181_ACEOF
4182
4183
4184
4185# Check whether --with-rootcert-file was given.
4186if test "${with_rootcert_file+set}" = set; then :
4187  withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4188else
4189  if test $on_mingw = no; then
4190    UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4191else
4192    UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4193fi
4194
4195fi
4196
4197
4198hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4199
4200
4201cat >>confdefs.h <<_ACEOF
4202#define ROOT_CERT_FILE "$hdr_rpem"
4203_ACEOF
4204
4205
4206
4207# Check whether --with-username was given.
4208if test "${with_username+set}" = set; then :
4209  withval=$with_username; UNBOUND_USERNAME="$withval"
4210else
4211  UNBOUND_USERNAME="unbound"
4212fi
4213
4214
4215
4216cat >>confdefs.h <<_ACEOF
4217#define UB_USERNAME "$UNBOUND_USERNAME"
4218_ACEOF
4219
4220
4221
4222$as_echo "#define WINVER 0x0502" >>confdefs.h
4223
4224wnvs=`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/' `
4225
4226
4227cat >>confdefs.h <<_ACEOF
4228#define RSRC_PACKAGE_VERSION $wnvs
4229_ACEOF
4230
4231
4232# Checks for typedefs, structures, and compiler characteristics.
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4234$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4235if ${ac_cv_c_const+:} false; then :
4236  $as_echo_n "(cached) " >&6
4237else
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main ()
4243{
4244
4245#ifndef __cplusplus
4246  /* Ultrix mips cc rejects this sort of thing.  */
4247  typedef int charset[2];
4248  const charset cs = { 0, 0 };
4249  /* SunOS 4.1.1 cc rejects this.  */
4250  char const *const *pcpcc;
4251  char **ppc;
4252  /* NEC SVR4.0.2 mips cc rejects this.  */
4253  struct point {int x, y;};
4254  static struct point const zero = {0,0};
4255  /* AIX XL C 1.02.0.0 rejects this.
4256     It does not let you subtract one const X* pointer from another in
4257     an arm of an if-expression whose if-part is not a constant
4258     expression */
4259  const char *g = "string";
4260  pcpcc = &g + (g ? g-g : 0);
4261  /* HPUX 7.0 cc rejects these. */
4262  ++pcpcc;
4263  ppc = (char**) pcpcc;
4264  pcpcc = (char const *const *) ppc;
4265  { /* SCO 3.2v4 cc rejects this sort of thing.  */
4266    char tx;
4267    char *t = &tx;
4268    char const *s = 0 ? (char *) 0 : (char const *) 0;
4269
4270    *t++ = 0;
4271    if (s) return 0;
4272  }
4273  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4274    int x[] = {25, 17};
4275    const int *foo = &x[0];
4276    ++foo;
4277  }
4278  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4279    typedef const int *iptr;
4280    iptr p = 0;
4281    ++p;
4282  }
4283  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4284       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4285    struct s { int j; const int *ap[3]; } bx;
4286    struct s *b = &bx; b->j = 5;
4287  }
4288  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4289    const int foo = 10;
4290    if (!foo) return 0;
4291  }
4292  return !cs[0] && !zero.x;
4293#endif
4294
4295  ;
4296  return 0;
4297}
4298_ACEOF
4299if ac_fn_c_try_compile "$LINENO"; then :
4300  ac_cv_c_const=yes
4301else
4302  ac_cv_c_const=no
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4307$as_echo "$ac_cv_c_const" >&6; }
4308if test $ac_cv_c_const = no; then
4309
4310$as_echo "#define const /**/" >>confdefs.h
4311
4312fi
4313
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320# allow user to override the -g -O2 flags.
4321if test "x$CFLAGS" = "x" ; then
4322
4323
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4325$as_echo_n "checking whether $CC supports -g... " >&6; }
4326cache=`echo g | sed 'y%.=/+-%___p_%'`
4327if eval \${cv_prog_cc_flag_$cache+:} false; then :
4328  $as_echo_n "(cached) " >&6
4329else
4330
4331echo 'void f(void){}' >conftest.c
4332if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4333eval "cv_prog_cc_flag_$cache=yes"
4334else
4335eval "cv_prog_cc_flag_$cache=no"
4336fi
4337rm -f conftest conftest.o conftest.c
4338
4339fi
4340
4341if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4343$as_echo "yes" >&6; }
4344:
4345CFLAGS="$CFLAGS -g"
4346else
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349:
4350
4351fi
4352
4353
4354
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4356$as_echo_n "checking whether $CC supports -O2... " >&6; }
4357cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4358if eval \${cv_prog_cc_flag_$cache+:} false; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361
4362echo 'void f(void){}' >conftest.c
4363if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4364eval "cv_prog_cc_flag_$cache=yes"
4365else
4366eval "cv_prog_cc_flag_$cache=no"
4367fi
4368rm -f conftest conftest.o conftest.c
4369
4370fi
4371
4372if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4374$as_echo "yes" >&6; }
4375:
4376CFLAGS="$CFLAGS -O2"
4377else
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379$as_echo "no" >&6; }
4380:
4381
4382fi
4383
4384fi
4385ac_ext=c
4386ac_cpp='$CPP $CPPFLAGS'
4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390if test -n "$ac_tool_prefix"; then
4391  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4392set dummy ${ac_tool_prefix}gcc; ac_word=$2
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394$as_echo_n "checking for $ac_word... " >&6; }
4395if ${ac_cv_prog_CC+:} false; then :
4396  $as_echo_n "(cached) " >&6
4397else
4398  if test -n "$CC"; then
4399  ac_cv_prog_CC="$CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410    break 2
4411  fi
4412done
4413  done
4414IFS=$as_save_IFS
4415
4416fi
4417fi
4418CC=$ac_cv_prog_CC
4419if test -n "$CC"; then
4420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4421$as_echo "$CC" >&6; }
4422else
4423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424$as_echo "no" >&6; }
4425fi
4426
4427
4428fi
4429if test -z "$ac_cv_prog_CC"; then
4430  ac_ct_CC=$CC
4431  # Extract the first word of "gcc", so it can be a program name with args.
4432set dummy gcc; ac_word=$2
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if ${ac_cv_prog_ac_ct_CC+:} false; then :
4436  $as_echo_n "(cached) " >&6
4437else
4438  if test -n "$ac_ct_CC"; then
4439  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444  IFS=$as_save_IFS
4445  test -z "$as_dir" && as_dir=.
4446    for ac_exec_ext in '' $ac_executable_extensions; do
4447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448    ac_cv_prog_ac_ct_CC="gcc"
4449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450    break 2
4451  fi
4452done
4453  done
4454IFS=$as_save_IFS
4455
4456fi
4457fi
4458ac_ct_CC=$ac_cv_prog_ac_ct_CC
4459if test -n "$ac_ct_CC"; then
4460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461$as_echo "$ac_ct_CC" >&6; }
4462else
4463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
4465fi
4466
4467  if test "x$ac_ct_CC" = x; then
4468    CC=""
4469  else
4470    case $cross_compiling:$ac_tool_warned in
4471yes:)
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474ac_tool_warned=yes ;;
4475esac
4476    CC=$ac_ct_CC
4477  fi
4478else
4479  CC="$ac_cv_prog_CC"
4480fi
4481
4482if test -z "$CC"; then
4483          if test -n "$ac_tool_prefix"; then
4484    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4485set dummy ${ac_tool_prefix}cc; ac_word=$2
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487$as_echo_n "checking for $ac_word... " >&6; }
4488if ${ac_cv_prog_CC+:} false; then :
4489  $as_echo_n "(cached) " >&6
4490else
4491  if test -n "$CC"; then
4492  ac_cv_prog_CC="$CC" # Let the user override the test.
4493else
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497  IFS=$as_save_IFS
4498  test -z "$as_dir" && as_dir=.
4499    for ac_exec_ext in '' $ac_executable_extensions; do
4500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501    ac_cv_prog_CC="${ac_tool_prefix}cc"
4502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503    break 2
4504  fi
4505done
4506  done
4507IFS=$as_save_IFS
4508
4509fi
4510fi
4511CC=$ac_cv_prog_CC
4512if test -n "$CC"; then
4513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4514$as_echo "$CC" >&6; }
4515else
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517$as_echo "no" >&6; }
4518fi
4519
4520
4521  fi
4522fi
4523if test -z "$CC"; then
4524  # Extract the first word of "cc", so it can be a program name with args.
4525set dummy cc; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
4528if ${ac_cv_prog_CC+:} false; then :
4529  $as_echo_n "(cached) " >&6
4530else
4531  if test -n "$CC"; then
4532  ac_cv_prog_CC="$CC" # Let the user override the test.
4533else
4534  ac_prog_rejected=no
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538  IFS=$as_save_IFS
4539  test -z "$as_dir" && as_dir=.
4540    for ac_exec_ext in '' $ac_executable_extensions; do
4541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4543       ac_prog_rejected=yes
4544       continue
4545     fi
4546    ac_cv_prog_CC="cc"
4547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548    break 2
4549  fi
4550done
4551  done
4552IFS=$as_save_IFS
4553
4554if test $ac_prog_rejected = yes; then
4555  # We found a bogon in the path, so make sure we never use it.
4556  set dummy $ac_cv_prog_CC
4557  shift
4558  if test $# != 0; then
4559    # We chose a different compiler from the bogus one.
4560    # However, it has the same basename, so the bogon will be chosen
4561    # first if we set CC to just the basename; use the full file name.
4562    shift
4563    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4564  fi
4565fi
4566fi
4567fi
4568CC=$ac_cv_prog_CC
4569if test -n "$CC"; then
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571$as_echo "$CC" >&6; }
4572else
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576
4577
4578fi
4579if test -z "$CC"; then
4580  if test -n "$ac_tool_prefix"; then
4581  for ac_prog in cl.exe
4582  do
4583    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4584set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586$as_echo_n "checking for $ac_word... " >&6; }
4587if ${ac_cv_prog_CC+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if test -n "$CC"; then
4591  ac_cv_prog_CC="$CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598    for ac_exec_ext in '' $ac_executable_extensions; do
4599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604done
4605  done
4606IFS=$as_save_IFS
4607
4608fi
4609fi
4610CC=$ac_cv_prog_CC
4611if test -n "$CC"; then
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4613$as_echo "$CC" >&6; }
4614else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616$as_echo "no" >&6; }
4617fi
4618
4619
4620    test -n "$CC" && break
4621  done
4622fi
4623if test -z "$CC"; then
4624  ac_ct_CC=$CC
4625  for ac_prog in cl.exe
4626do
4627  # Extract the first word of "$ac_prog", so it can be a program name with args.
4628set dummy $ac_prog; ac_word=$2
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630$as_echo_n "checking for $ac_word... " >&6; }
4631if ${ac_cv_prog_ac_ct_CC+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  if test -n "$ac_ct_CC"; then
4635  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642    for ac_exec_ext in '' $ac_executable_extensions; do
4643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644    ac_cv_prog_ac_ct_CC="$ac_prog"
4645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646    break 2
4647  fi
4648done
4649  done
4650IFS=$as_save_IFS
4651
4652fi
4653fi
4654ac_ct_CC=$ac_cv_prog_ac_ct_CC
4655if test -n "$ac_ct_CC"; then
4656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4657$as_echo "$ac_ct_CC" >&6; }
4658else
4659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660$as_echo "no" >&6; }
4661fi
4662
4663
4664  test -n "$ac_ct_CC" && break
4665done
4666
4667  if test "x$ac_ct_CC" = x; then
4668    CC=""
4669  else
4670    case $cross_compiling:$ac_tool_warned in
4671yes:)
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674ac_tool_warned=yes ;;
4675esac
4676    CC=$ac_ct_CC
4677  fi
4678fi
4679
4680fi
4681
4682
4683test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4685as_fn_error $? "no acceptable C compiler found in \$PATH
4686See \`config.log' for more details" "$LINENO" 5; }
4687
4688# Provide some information about the compiler.
4689$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4690set X $ac_compile
4691ac_compiler=$2
4692for ac_option in --version -v -V -qversion; do
4693  { { ac_try="$ac_compiler $ac_option >&5"
4694case "(($ac_try" in
4695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696  *) ac_try_echo=$ac_try;;
4697esac
4698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699$as_echo "$ac_try_echo"; } >&5
4700  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4701  ac_status=$?
4702  if test -s conftest.err; then
4703    sed '10a\
4704... rest of stderr output deleted ...
4705         10q' conftest.err >conftest.er1
4706    cat conftest.er1 >&5
4707  fi
4708  rm -f conftest.er1 conftest.err
4709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710  test $ac_status = 0; }
4711done
4712
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715if ${ac_cv_c_compiler_gnu+:} false; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720
4721int
4722main ()
4723{
4724#ifndef __GNUC__
4725       choke me
4726#endif
4727
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732if ac_fn_c_try_compile "$LINENO"; then :
4733  ac_compiler_gnu=yes
4734else
4735  ac_compiler_gnu=no
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743if test $ac_compiler_gnu = yes; then
4744  GCC=yes
4745else
4746  GCC=
4747fi
4748ac_test_CFLAGS=${CFLAGS+set}
4749ac_save_CFLAGS=$CFLAGS
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751$as_echo_n "checking whether $CC accepts -g... " >&6; }
4752if ${ac_cv_prog_cc_g+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  ac_save_c_werror_flag=$ac_c_werror_flag
4756   ac_c_werror_flag=yes
4757   ac_cv_prog_cc_g=no
4758   CFLAGS="-g"
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_prog_cc_g=yes
4772else
4773  CFLAGS=""
4774      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776
4777int
4778main ()
4779{
4780
4781  ;
4782  return 0;
4783}
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786
4787else
4788  ac_c_werror_flag=$ac_save_c_werror_flag
4789	 CFLAGS="-g"
4790	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h.  */
4792
4793int
4794main ()
4795{
4796
4797  ;
4798  return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_compile "$LINENO"; then :
4802  ac_cv_prog_cc_g=yes
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809   ac_c_werror_flag=$ac_save_c_werror_flag
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812$as_echo "$ac_cv_prog_cc_g" >&6; }
4813if test "$ac_test_CFLAGS" = set; then
4814  CFLAGS=$ac_save_CFLAGS
4815elif test $ac_cv_prog_cc_g = yes; then
4816  if test "$GCC" = yes; then
4817    CFLAGS="-g -O2"
4818  else
4819    CFLAGS="-g"
4820  fi
4821else
4822  if test "$GCC" = yes; then
4823    CFLAGS="-O2"
4824  else
4825    CFLAGS=
4826  fi
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830if ${ac_cv_prog_cc_c89+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  ac_cv_prog_cc_c89=no
4834ac_save_CC=$CC
4835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h.  */
4837#include <stdarg.h>
4838#include <stdio.h>
4839struct stat;
4840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4841struct buf { int x; };
4842FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843static char *e (p, i)
4844     char **p;
4845     int i;
4846{
4847  return p[i];
4848}
4849static char *f (char * (*g) (char **, int), char **p, ...)
4850{
4851  char *s;
4852  va_list v;
4853  va_start (v,p);
4854  s = g (p, va_arg (v,int));
4855  va_end (v);
4856  return s;
4857}
4858
4859/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4860   function prototypes and stuff, but not '\xHH' hex character constants.
4861   These don't provoke an error unfortunately, instead are silently treated
4862   as 'x'.  The following induces an error, until -std is added to get
4863   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4864   array size at least.  It's necessary to write '\x00'==0 to get something
4865   that's true only with -std.  */
4866int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867
4868/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869   inside strings and character constants.  */
4870#define FOO(x) 'x'
4871int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872
4873int test (int i, double x);
4874struct s1 {int (*f) (int a);};
4875struct s2 {int (*f) (double a);};
4876int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4877int argc;
4878char **argv;
4879int
4880main ()
4881{
4882return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4883  ;
4884  return 0;
4885}
4886_ACEOF
4887for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889do
4890  CC="$ac_save_CC $ac_arg"
4891  if ac_fn_c_try_compile "$LINENO"; then :
4892  ac_cv_prog_cc_c89=$ac_arg
4893fi
4894rm -f core conftest.err conftest.$ac_objext
4895  test "x$ac_cv_prog_cc_c89" != "xno" && break
4896done
4897rm -f conftest.$ac_ext
4898CC=$ac_save_CC
4899
4900fi
4901# AC_CACHE_VAL
4902case "x$ac_cv_prog_cc_c89" in
4903  x)
4904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905$as_echo "none needed" >&6; } ;;
4906  xno)
4907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908$as_echo "unsupported" >&6; } ;;
4909  *)
4910    CC="$CC $ac_cv_prog_cc_c89"
4911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913esac
4914if test "x$ac_cv_prog_cc_c89" != xno; then :
4915
4916fi
4917
4918ac_ext=c
4919ac_cpp='$CPP $CPPFLAGS'
4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4926$as_echo_n "checking $CC dependency flag... " >&6; }
4927echo 'void f(){}' >conftest.c
4928if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4929	DEPFLAG="-MM"
4930else
4931  if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4932	DEPFLAG="-xM1"
4933  else
4934	DEPFLAG="-MM"  # dunno do something
4935  fi
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4938$as_echo "$DEPFLAG" >&6; }
4939rm -f conftest.c
4940
4941
4942
4943
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4946$as_echo_n "checking whether $CC supports -Werror... " >&6; }
4947cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4948if eval \${cv_prog_cc_flag_$cache+:} false; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951
4952echo 'void f(void){}' >conftest.c
4953if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4954eval "cv_prog_cc_flag_$cache=yes"
4955else
4956eval "cv_prog_cc_flag_$cache=no"
4957fi
4958rm -f conftest conftest.o conftest.c
4959
4960fi
4961
4962if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4964$as_echo "yes" >&6; }
4965:
4966ERRFLAG="-Werror"
4967else
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969$as_echo "no" >&6; }
4970:
4971ERRFLAG="-errwarn"
4972fi
4973
4974
4975
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4977$as_echo_n "checking whether $CC supports -Wall... " >&6; }
4978cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4979if eval \${cv_prog_cc_flag_$cache+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982
4983echo 'void f(void){}' >conftest.c
4984if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4985eval "cv_prog_cc_flag_$cache=yes"
4986else
4987eval "cv_prog_cc_flag_$cache=no"
4988fi
4989rm -f conftest conftest.o conftest.c
4990
4991fi
4992
4993if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4995$as_echo "yes" >&6; }
4996:
4997ERRFLAG="$ERRFLAG -Wall"
4998else
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001:
5002ERRFLAG="$ERRFLAG -errfmt"
5003fi
5004
5005
5006
5007
5008
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5010$as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5011cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5012if eval \${cv_prog_cc_flag_$cache+:} false; then :
5013  $as_echo_n "(cached) " >&6
5014else
5015
5016echo 'void f(void){}' >conftest.c
5017if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5018eval "cv_prog_cc_flag_$cache=yes"
5019else
5020eval "cv_prog_cc_flag_$cache=no"
5021fi
5022rm -f conftest conftest.o conftest.c
5023
5024fi
5025
5026if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5028$as_echo "yes" >&6; }
5029:
5030C99FLAG="-std=c99"
5031else
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034:
5035
5036fi
5037
5038
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5041$as_echo_n "checking whether $CC supports -xc99... " >&6; }
5042cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5043if eval \${cv_prog_cc_flag_$cache+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046
5047echo 'void f(void){}' >conftest.c
5048if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5049eval "cv_prog_cc_flag_$cache=yes"
5050else
5051eval "cv_prog_cc_flag_$cache=no"
5052fi
5053rm -f conftest conftest.o conftest.c
5054
5055fi
5056
5057if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059$as_echo "yes" >&6; }
5060:
5061C99FLAG="-xc99"
5062else
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064$as_echo "no" >&6; }
5065:
5066
5067fi
5068
5069
5070for ac_header in getopt.h time.h
5071do :
5072  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5074"
5075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5076  cat >>confdefs.h <<_ACEOF
5077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5078_ACEOF
5079
5080fi
5081
5082done
5083
5084
5085
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5089$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5090cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5091if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094
5095echo '
5096#include "confdefs.h"
5097#include <stdlib.h>
5098#include <ctype.h>
5099#include <sys/time.h>
5100#ifdef HAVE_TIME_H
5101#include <time.h>
5102#endif
5103#include <unistd.h>
5104#include <netdb.h>
5105#ifdef HAVE_GETOPT_H
5106#include <getopt.h>
5107#endif
5108
5109int test() {
5110	int a;
5111	char **opts = NULL;
5112	struct timeval tv;
5113	char *t;
5114	time_t time = 0;
5115	char *buf = NULL;
5116	const char* str = NULL;
5117	struct msghdr msg;
5118	msg.msg_control = 0;
5119	t = ctime_r(&time, buf);
5120	tv.tv_usec = 10;
5121	srandom(32);
5122	a = getopt(2, opts, "a");
5123	a = isascii(32);
5124	str = gai_strerror(0);
5125	if(str && t && tv.tv_usec && msg.msg_control)
5126		a = 0;
5127	return a;
5128}
5129' > conftest.c
5130echo 'void f(){}' >>conftest.c
5131if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5132eval "cv_prog_cc_flag_needed_$cache=no"
5133else
5134
5135if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5136eval "cv_prog_cc_flag_needed_$cache=yes"
5137else
5138eval "cv_prog_cc_flag_needed_$cache=fail"
5139#echo 'Test with flag fails too!'
5140#cat conftest.c
5141#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5142#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5143#exit 1
5144fi
5145
5146fi
5147rm -f conftest conftest.c conftest.o
5148
5149fi
5150
5151if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5153$as_echo "yes" >&6; }
5154:
5155CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5156else
5157if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160#echo 'Test with flag is no!'
5161#cat conftest.c
5162#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5163#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5164#exit 1
5165:
5166
5167else
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5169$as_echo "failed" >&6; }
5170:
5171
5172fi
5173fi
5174
5175
5176
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5180$as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5181cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5182if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185
5186echo '
5187#include "confdefs.h"
5188#include <stdlib.h>
5189#include <ctype.h>
5190#include <sys/time.h>
5191#ifdef HAVE_TIME_H
5192#include <time.h>
5193#endif
5194#include <unistd.h>
5195#include <netdb.h>
5196#ifdef HAVE_GETOPT_H
5197#include <getopt.h>
5198#endif
5199
5200int test() {
5201	int a;
5202	char **opts = NULL;
5203	struct timeval tv;
5204	char *t;
5205	time_t time = 0;
5206	char *buf = NULL;
5207	const char* str = NULL;
5208	struct msghdr msg;
5209	msg.msg_control = 0;
5210	t = ctime_r(&time, buf);
5211	tv.tv_usec = 10;
5212	srandom(32);
5213	a = getopt(2, opts, "a");
5214	a = isascii(32);
5215	str = gai_strerror(0);
5216	if(str && t && tv.tv_usec && msg.msg_control)
5217		a = 0;
5218	return a;
5219}
5220' > conftest.c
5221echo 'void f(){}' >>conftest.c
5222if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5223eval "cv_prog_cc_flag_needed_$cache=no"
5224else
5225
5226if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5227eval "cv_prog_cc_flag_needed_$cache=yes"
5228else
5229eval "cv_prog_cc_flag_needed_$cache=fail"
5230#echo 'Test with flag fails too!'
5231#cat conftest.c
5232#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5233#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5234#exit 1
5235fi
5236
5237fi
5238rm -f conftest conftest.c conftest.o
5239
5240fi
5241
5242if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5244$as_echo "yes" >&6; }
5245:
5246CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5247else
5248if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }
5251#echo 'Test with flag is no!'
5252#cat conftest.c
5253#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5254#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5255#exit 1
5256:
5257
5258else
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5260$as_echo "failed" >&6; }
5261:
5262
5263fi
5264fi
5265
5266
5267
5268
5269
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5271$as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5272cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5273if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276
5277echo '
5278#include <stdbool.h>
5279#include <ctype.h>
5280int test() {
5281        int a = 0;
5282        return a;
5283}
5284' > conftest.c
5285echo 'void f(){}' >>conftest.c
5286if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5287eval "cv_prog_cc_flag_needed_$cache=no"
5288else
5289
5290if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5291eval "cv_prog_cc_flag_needed_$cache=yes"
5292else
5293eval "cv_prog_cc_flag_needed_$cache=fail"
5294#echo 'Test with flag fails too!'
5295#cat conftest.c
5296#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5297#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5298#exit 1
5299fi
5300
5301fi
5302rm -f conftest conftest.c conftest.o
5303
5304fi
5305
5306if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5308$as_echo "yes" >&6; }
5309:
5310CFLAGS="$CFLAGS $C99FLAG"
5311else
5312if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315#echo 'Test with flag is no!'
5316#cat conftest.c
5317#echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5318#echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5319#exit 1
5320:
5321
5322else
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5324$as_echo "failed" >&6; }
5325:
5326
5327fi
5328fi
5329
5330
5331
5332
5333
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5335$as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5336cache=_D_BSD_SOURCE
5337if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340
5341echo '
5342#include <ctype.h>
5343
5344int test() {
5345        int a;
5346        a = isascii(32);
5347        return a;
5348}
5349' > conftest.c
5350echo 'void f(){}' >>conftest.c
5351if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5352eval "cv_prog_cc_flag_needed_$cache=no"
5353else
5354
5355if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5356eval "cv_prog_cc_flag_needed_$cache=yes"
5357else
5358eval "cv_prog_cc_flag_needed_$cache=fail"
5359#echo 'Test with flag fails too!'
5360#cat conftest.c
5361#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5362#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5363#exit 1
5364fi
5365
5366fi
5367rm -f conftest conftest.c conftest.o
5368
5369fi
5370
5371if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373$as_echo "yes" >&6; }
5374:
5375CFLAGS="$CFLAGS -D_BSD_SOURCE"
5376else
5377if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380#echo 'Test with flag is no!'
5381#cat conftest.c
5382#echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5383#echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5384#exit 1
5385:
5386
5387else
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5389$as_echo "failed" >&6; }
5390:
5391
5392fi
5393fi
5394
5395
5396
5397
5398
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5400$as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5401cache=_D_GNU_SOURCE
5402if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405
5406echo '
5407#include <netinet/in.h>
5408
5409int test() {
5410        struct in6_pktinfo inf;
5411	int a = (int)sizeof(inf);
5412        return a;
5413}
5414' > conftest.c
5415echo 'void f(){}' >>conftest.c
5416if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5417eval "cv_prog_cc_flag_needed_$cache=no"
5418else
5419
5420if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5421eval "cv_prog_cc_flag_needed_$cache=yes"
5422else
5423eval "cv_prog_cc_flag_needed_$cache=fail"
5424#echo 'Test with flag fails too!'
5425#cat conftest.c
5426#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5427#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5428#exit 1
5429fi
5430
5431fi
5432rm -f conftest conftest.c conftest.o
5433
5434fi
5435
5436if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438$as_echo "yes" >&6; }
5439:
5440CFLAGS="$CFLAGS -D_GNU_SOURCE"
5441else
5442if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445#echo 'Test with flag is no!'
5446#cat conftest.c
5447#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5448#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5449#exit 1
5450:
5451
5452else
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5454$as_echo "failed" >&6; }
5455:
5456
5457fi
5458fi
5459
5460
5461# check again for GNU_SOURCE for setresgid. May fail if setresgid
5462# is not available at all. -D_FRSRESGID is to make this check unique.
5463# otherwise we would get the previous cached result.
5464
5465
5466
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5468$as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5469cache=_D_GNU_SOURCE__D_FRSRESGID
5470if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473
5474echo '
5475#include <unistd.h>
5476
5477int test() {
5478	int a = setresgid(0,0,0);
5479	a = setresuid(0,0,0);
5480        return a;
5481}
5482' > conftest.c
5483echo 'void f(){}' >>conftest.c
5484if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5485eval "cv_prog_cc_flag_needed_$cache=no"
5486else
5487
5488if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5489eval "cv_prog_cc_flag_needed_$cache=yes"
5490else
5491eval "cv_prog_cc_flag_needed_$cache=fail"
5492#echo 'Test with flag fails too!'
5493#cat conftest.c
5494#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5495#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5496#exit 1
5497fi
5498
5499fi
5500rm -f conftest conftest.c conftest.o
5501
5502fi
5503
5504if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506$as_echo "yes" >&6; }
5507:
5508CFLAGS="$CFLAGS -D_GNU_SOURCE"
5509else
5510if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513#echo 'Test with flag is no!'
5514#cat conftest.c
5515#echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5516#echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5517#exit 1
5518:
5519
5520else
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5522$as_echo "failed" >&6; }
5523:
5524
5525fi
5526fi
5527
5528
5529
5530
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5533$as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5534cache=_D_POSIX_C_SOURCE_200112
5535if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538
5539echo '
5540#include "confdefs.h"
5541#ifdef HAVE_TIME_H
5542#include <time.h>
5543#endif
5544#include <netdb.h>
5545
5546int test() {
5547        int a = 0;
5548        char *t;
5549        time_t time = 0;
5550        char *buf = NULL;
5551	const char* str = NULL;
5552        t = ctime_r(&time, buf);
5553	str = gai_strerror(0);
5554	if(t && str)
5555		a = 0;
5556        return a;
5557}
5558' > conftest.c
5559echo 'void f(){}' >>conftest.c
5560if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5561eval "cv_prog_cc_flag_needed_$cache=no"
5562else
5563
5564if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5565eval "cv_prog_cc_flag_needed_$cache=yes"
5566else
5567eval "cv_prog_cc_flag_needed_$cache=fail"
5568#echo 'Test with flag fails too!'
5569#cat conftest.c
5570#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5571#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5572#exit 1
5573fi
5574
5575fi
5576rm -f conftest conftest.c conftest.o
5577
5578fi
5579
5580if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582$as_echo "yes" >&6; }
5583:
5584CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5585else
5586if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589#echo 'Test with flag is no!'
5590#cat conftest.c
5591#echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5592#echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5593#exit 1
5594:
5595
5596else
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5598$as_echo "failed" >&6; }
5599:
5600
5601fi
5602fi
5603
5604
5605
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5609$as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5610cache=_D__EXTENSIONS__
5611if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614
5615echo '
5616#include "confdefs.h"
5617#include <stdlib.h>
5618#include <ctype.h>
5619#include <sys/time.h>
5620#ifdef HAVE_TIME_H
5621#include <time.h>
5622#endif
5623#include <unistd.h>
5624#ifdef HAVE_GETOPT_H
5625#include <getopt.h>
5626#endif
5627
5628int test() {
5629        int a;
5630        char **opts = NULL;
5631        struct timeval tv;
5632        tv.tv_usec = 10;
5633        srandom(32);
5634        a = getopt(2, opts, "a");
5635        a = isascii(32);
5636	if(tv.tv_usec)
5637		a = 0;
5638        return a;
5639}
5640' > conftest.c
5641echo 'void f(){}' >>conftest.c
5642if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5643eval "cv_prog_cc_flag_needed_$cache=no"
5644else
5645
5646if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5647eval "cv_prog_cc_flag_needed_$cache=yes"
5648else
5649eval "cv_prog_cc_flag_needed_$cache=fail"
5650#echo 'Test with flag fails too!'
5651#cat conftest.c
5652#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5653#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5654#exit 1
5655fi
5656
5657fi
5658rm -f conftest conftest.c conftest.o
5659
5660fi
5661
5662if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664$as_echo "yes" >&6; }
5665:
5666CFLAGS="$CFLAGS -D__EXTENSIONS__"
5667else
5668if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671#echo 'Test with flag is no!'
5672#cat conftest.c
5673#echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5674#echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5675#exit 1
5676:
5677
5678else
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5680$as_echo "failed" >&6; }
5681:
5682
5683fi
5684fi
5685
5686
5687
5688
5689# debug mode flags warnings
5690# Check whether --enable-checking was given.
5691if test "${enable_checking+set}" = set; then :
5692  enableval=$enable_checking;
5693fi
5694
5695# Check whether --enable-debug was given.
5696if test "${enable_debug+set}" = set; then :
5697  enableval=$enable_debug;
5698fi
5699
5700if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5701else debug_enabled="$enable_checking"; fi
5702
5703case "$debug_enabled" in
5704        yes)
5705
5706
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5708$as_echo_n "checking whether $CC supports -W... " >&6; }
5709cache=`echo W | sed 'y%.=/+-%___p_%'`
5710if eval \${cv_prog_cc_flag_$cache+:} false; then :
5711  $as_echo_n "(cached) " >&6
5712else
5713
5714echo 'void f(void){}' >conftest.c
5715if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5716eval "cv_prog_cc_flag_$cache=yes"
5717else
5718eval "cv_prog_cc_flag_$cache=no"
5719fi
5720rm -f conftest conftest.o conftest.c
5721
5722fi
5723
5724if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726$as_echo "yes" >&6; }
5727:
5728CFLAGS="$CFLAGS -W"
5729else
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732:
5733
5734fi
5735
5736
5737
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5739$as_echo_n "checking whether $CC supports -Wall... " >&6; }
5740cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5741if eval \${cv_prog_cc_flag_$cache+:} false; then :
5742  $as_echo_n "(cached) " >&6
5743else
5744
5745echo 'void f(void){}' >conftest.c
5746if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5747eval "cv_prog_cc_flag_$cache=yes"
5748else
5749eval "cv_prog_cc_flag_$cache=no"
5750fi
5751rm -f conftest conftest.o conftest.c
5752
5753fi
5754
5755if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5757$as_echo "yes" >&6; }
5758:
5759CFLAGS="$CFLAGS -Wall"
5760else
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763:
5764
5765fi
5766
5767
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5770$as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5771cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5772if eval \${cv_prog_cc_flag_$cache+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775
5776echo 'void f(void){}' >conftest.c
5777if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5778eval "cv_prog_cc_flag_$cache=yes"
5779else
5780eval "cv_prog_cc_flag_$cache=no"
5781fi
5782rm -f conftest conftest.o conftest.c
5783
5784fi
5785
5786if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5788$as_echo "yes" >&6; }
5789:
5790CFLAGS="$CFLAGS -Wextra"
5791else
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793$as_echo "no" >&6; }
5794:
5795
5796fi
5797
5798
5799
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5801$as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5802cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5803if eval \${cv_prog_cc_flag_$cache+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806
5807echo 'void f(void){}' >conftest.c
5808if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5809eval "cv_prog_cc_flag_$cache=yes"
5810else
5811eval "cv_prog_cc_flag_$cache=no"
5812fi
5813rm -f conftest conftest.o conftest.c
5814
5815fi
5816
5817if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819$as_echo "yes" >&6; }
5820:
5821CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5822else
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824$as_echo "no" >&6; }
5825:
5826
5827fi
5828
5829
5830$as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5831
5832		;;
5833	no|*)
5834		# nothing to do.
5835		;;
5836esac
5837
5838    # Check whether --enable-flto was given.
5839if test "${enable_flto+set}" = set; then :
5840  enableval=$enable_flto;
5841fi
5842
5843    if test "x$enable_flto" != "xno"; then :
5844
5845        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5846$as_echo_n "checking if $CC supports -flto... " >&6; }
5847        BAKCFLAGS="$CFLAGS"
5848        CFLAGS="$CFLAGS -flto"
5849        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851
5852int
5853main ()
5854{
5855
5856  ;
5857  return 0;
5858}
5859_ACEOF
5860if ac_fn_c_try_link "$LINENO"; then :
5861
5862            if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5863                CFLAGS="$BAKCFLAGS"
5864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866            else
5867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5868$as_echo "yes" >&6; }
5869            fi
5870            rm -f conftest conftest.c conftest.o
5871
5872else
5873  CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876rm -f core conftest.err conftest.$ac_objext \
5877    conftest$ac_exeext conftest.$ac_ext
5878
5879fi
5880
5881
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5883$as_echo_n "checking for inline... " >&6; }
5884if ${ac_cv_c_inline+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  ac_cv_c_inline=no
5888for ac_kw in inline __inline__ __inline; do
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891#ifndef __cplusplus
5892typedef int foo_t;
5893static $ac_kw foo_t static_foo () {return 0; }
5894$ac_kw foo_t foo () {return 0; }
5895#endif
5896
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899  ac_cv_c_inline=$ac_kw
5900fi
5901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902  test "$ac_cv_c_inline" != no && break
5903done
5904
5905fi
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5907$as_echo "$ac_cv_c_inline" >&6; }
5908
5909case $ac_cv_c_inline in
5910  inline | yes) ;;
5911  *)
5912    case $ac_cv_c_inline in
5913      no) ac_val=;;
5914      *) ac_val=$ac_cv_c_inline;;
5915    esac
5916    cat >>confdefs.h <<_ACEOF
5917#ifndef __cplusplus
5918#define inline $ac_val
5919#endif
5920_ACEOF
5921    ;;
5922esac
5923
5924
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5926$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5927if ${ac_cv_c_format_attribute+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  ac_cv_c_format_attribute=no
5931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932/* end confdefs.h.  */
5933#include <stdio.h>
5934void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5935void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5936
5937int
5938main ()
5939{
5940
5941   f ("%s", "str");
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_compile "$LINENO"; then :
5948  ac_cv_c_format_attribute="yes"
5949else
5950  ac_cv_c_format_attribute="no"
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953
5954fi
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5958$as_echo "$ac_cv_c_format_attribute" >&6; }
5959if test $ac_cv_c_format_attribute = yes; then
5960
5961$as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5962
5963fi
5964
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5967$as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5968if ${ac_cv_c_unused_attribute+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  ac_cv_c_unused_attribute=no
5972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h.  */
5974#include <stdio.h>
5975void f (char *u __attribute__((unused)));
5976
5977int
5978main ()
5979{
5980
5981   f ("x");
5982
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988  ac_cv_c_unused_attribute="yes"
5989else
5990  ac_cv_c_unused_attribute="no"
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993
5994fi
5995
5996
5997
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6000$as_echo "$ac_cv_c_unused_attribute" >&6; }
6001if test $ac_cv_c_unused_attribute = yes; then
6002
6003$as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6004
6005fi
6006
6007
6008if test "$srcdir" != "."; then
6009	CPPFLAGS="$CPPFLAGS -I$srcdir"
6010fi
6011
6012
6013
6014for ac_prog in flex lex
6015do
6016  # Extract the first word of "$ac_prog", so it can be a program name with args.
6017set dummy $ac_prog; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if ${ac_cv_prog_LEX+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  if test -n "$LEX"; then
6024  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029  IFS=$as_save_IFS
6030  test -z "$as_dir" && as_dir=.
6031    for ac_exec_ext in '' $ac_executable_extensions; do
6032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033    ac_cv_prog_LEX="$ac_prog"
6034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035    break 2
6036  fi
6037done
6038  done
6039IFS=$as_save_IFS
6040
6041fi
6042fi
6043LEX=$ac_cv_prog_LEX
6044if test -n "$LEX"; then
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6046$as_echo "$LEX" >&6; }
6047else
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051
6052
6053  test -n "$LEX" && break
6054done
6055test -n "$LEX" || LEX=":"
6056
6057if test "x$LEX" != "x:"; then
6058  cat >conftest.l <<_ACEOF
6059%%
6060a { ECHO; }
6061b { REJECT; }
6062c { yymore (); }
6063d { yyless (1); }
6064e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
6065    yyless ((input () != 0)); }
6066f { unput (yytext[0]); }
6067. { BEGIN INITIAL; }
6068%%
6069#ifdef YYTEXT_POINTER
6070extern char *yytext;
6071#endif
6072int
6073main (void)
6074{
6075  return ! yylex () + ! yywrap ();
6076}
6077_ACEOF
6078{ { ac_try="$LEX conftest.l"
6079case "(($ac_try" in
6080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081  *) ac_try_echo=$ac_try;;
6082esac
6083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6084$as_echo "$ac_try_echo"; } >&5
6085  (eval "$LEX conftest.l") 2>&5
6086  ac_status=$?
6087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088  test $ac_status = 0; }
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6090$as_echo_n "checking lex output file root... " >&6; }
6091if ${ac_cv_prog_lex_root+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094
6095if test -f lex.yy.c; then
6096  ac_cv_prog_lex_root=lex.yy
6097elif test -f lexyy.c; then
6098  ac_cv_prog_lex_root=lexyy
6099else
6100  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6101fi
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6104$as_echo "$ac_cv_prog_lex_root" >&6; }
6105LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6106
6107if test -z "${LEXLIB+set}"; then
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6109$as_echo_n "checking lex library... " >&6; }
6110if ${ac_cv_lib_lex+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113
6114    ac_save_LIBS=$LIBS
6115    ac_cv_lib_lex='none needed'
6116    for ac_lib in '' -lfl -ll; do
6117      LIBS="$ac_lib $ac_save_LIBS"
6118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119/* end confdefs.h.  */
6120`cat $LEX_OUTPUT_ROOT.c`
6121_ACEOF
6122if ac_fn_c_try_link "$LINENO"; then :
6123  ac_cv_lib_lex=$ac_lib
6124fi
6125rm -f core conftest.err conftest.$ac_objext \
6126    conftest$ac_exeext conftest.$ac_ext
6127      test "$ac_cv_lib_lex" != 'none needed' && break
6128    done
6129    LIBS=$ac_save_LIBS
6130
6131fi
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6133$as_echo "$ac_cv_lib_lex" >&6; }
6134  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6135fi
6136
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6139$as_echo_n "checking whether yytext is a pointer... " >&6; }
6140if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  # POSIX says lex can declare yytext either as a pointer or an array; the
6144# default is implementation-dependent.  Figure out which it is, since
6145# not all implementations provide the %pointer and %array declarations.
6146ac_cv_prog_lex_yytext_pointer=no
6147ac_save_LIBS=$LIBS
6148LIBS="$LEXLIB $ac_save_LIBS"
6149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151
6152  #define YYTEXT_POINTER 1
6153`cat $LEX_OUTPUT_ROOT.c`
6154_ACEOF
6155if ac_fn_c_try_link "$LINENO"; then :
6156  ac_cv_prog_lex_yytext_pointer=yes
6157fi
6158rm -f core conftest.err conftest.$ac_objext \
6159    conftest$ac_exeext conftest.$ac_ext
6160LIBS=$ac_save_LIBS
6161
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6164$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6165if test $ac_cv_prog_lex_yytext_pointer = yes; then
6166
6167$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6168
6169fi
6170rm -f conftest.l $LEX_OUTPUT_ROOT.c
6171
6172fi
6173
6174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6175$as_echo_n "checking for yylex_destroy... " >&6; }
6176	if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6177
6178$as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6179
6180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6181$as_echo "yes" >&6; }
6182	else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }; fi
6184
6185for ac_prog in 'bison -y' byacc
6186do
6187  # Extract the first word of "$ac_prog", so it can be a program name with args.
6188set dummy $ac_prog; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
6191if ${ac_cv_prog_YACC+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if test -n "$YACC"; then
6195  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204    ac_cv_prog_YACC="$ac_prog"
6205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214YACC=$ac_cv_prog_YACC
6215if test -n "$YACC"; then
6216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6217$as_echo "$YACC" >&6; }
6218else
6219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223
6224  test -n "$YACC" && break
6225done
6226test -n "$YACC" || YACC="yacc"
6227
6228# Extract the first word of "doxygen", so it can be a program name with args.
6229set dummy doxygen; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_doxygen+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$doxygen"; then
6236  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_doxygen="doxygen"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255doxygen=$ac_cv_prog_doxygen
6256if test -n "$doxygen"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6258$as_echo "$doxygen" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264
6265if test -n "$ac_tool_prefix"; then
6266  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}strip; ac_word=$2
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if ${ac_cv_prog_STRIP+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  if test -n "$STRIP"; then
6274  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279  IFS=$as_save_IFS
6280  test -z "$as_dir" && as_dir=.
6281    for ac_exec_ext in '' $ac_executable_extensions; do
6282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285    break 2
6286  fi
6287done
6288  done
6289IFS=$as_save_IFS
6290
6291fi
6292fi
6293STRIP=$ac_cv_prog_STRIP
6294if test -n "$STRIP"; then
6295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6296$as_echo "$STRIP" >&6; }
6297else
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299$as_echo "no" >&6; }
6300fi
6301
6302
6303fi
6304if test -z "$ac_cv_prog_STRIP"; then
6305  ac_ct_STRIP=$STRIP
6306  # Extract the first word of "strip", so it can be a program name with args.
6307set dummy strip; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  if test -n "$ac_ct_STRIP"; then
6314  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321    for ac_exec_ext in '' $ac_executable_extensions; do
6322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_ac_ct_STRIP="strip"
6324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328  done
6329IFS=$as_save_IFS
6330
6331fi
6332fi
6333ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6334if test -n "$ac_ct_STRIP"; then
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6336$as_echo "$ac_ct_STRIP" >&6; }
6337else
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339$as_echo "no" >&6; }
6340fi
6341
6342  if test "x$ac_ct_STRIP" = x; then
6343    STRIP=""
6344  else
6345    case $cross_compiling:$ac_tool_warned in
6346yes:)
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6349ac_tool_warned=yes ;;
6350esac
6351    STRIP=$ac_ct_STRIP
6352  fi
6353else
6354  STRIP="$ac_cv_prog_STRIP"
6355fi
6356
6357ac_aux_dir=
6358for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6359  if test -f "$ac_dir/install-sh"; then
6360    ac_aux_dir=$ac_dir
6361    ac_install_sh="$ac_aux_dir/install-sh -c"
6362    break
6363  elif test -f "$ac_dir/install.sh"; then
6364    ac_aux_dir=$ac_dir
6365    ac_install_sh="$ac_aux_dir/install.sh -c"
6366    break
6367  elif test -f "$ac_dir/shtool"; then
6368    ac_aux_dir=$ac_dir
6369    ac_install_sh="$ac_aux_dir/shtool install -c"
6370    break
6371  fi
6372done
6373if test -z "$ac_aux_dir"; then
6374  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6375fi
6376
6377# These three variables are undocumented and unsupported,
6378# and are intended to be withdrawn in a future Autoconf release.
6379# They can cause serious problems if a builder's source tree is in a directory
6380# whose full name contains unusual characters.
6381ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
6382ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
6383ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
6384
6385
6386# Make sure we can run config.sub.
6387$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6388  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6391$as_echo_n "checking build system type... " >&6; }
6392if ${ac_cv_build+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  ac_build_alias=$build_alias
6396test "x$ac_build_alias" = x &&
6397  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6398test "x$ac_build_alias" = x &&
6399  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6400ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6401  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6402
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6405$as_echo "$ac_cv_build" >&6; }
6406case $ac_cv_build in
6407*-*-*) ;;
6408*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6409esac
6410build=$ac_cv_build
6411ac_save_IFS=$IFS; IFS='-'
6412set x $ac_cv_build
6413shift
6414build_cpu=$1
6415build_vendor=$2
6416shift; shift
6417# Remember, the first character of IFS is used to create $*,
6418# except with old shells:
6419build_os=$*
6420IFS=$ac_save_IFS
6421case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6425$as_echo_n "checking host system type... " >&6; }
6426if ${ac_cv_host+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  if test "x$host_alias" = x; then
6430  ac_cv_host=$ac_cv_build
6431else
6432  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6433    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6434fi
6435
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6438$as_echo "$ac_cv_host" >&6; }
6439case $ac_cv_host in
6440*-*-*) ;;
6441*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6442esac
6443host=$ac_cv_host
6444ac_save_IFS=$IFS; IFS='-'
6445set x $ac_cv_host
6446shift
6447host_cpu=$1
6448host_vendor=$2
6449shift; shift
6450# Remember, the first character of IFS is used to create $*,
6451# except with old shells:
6452host_os=$*
6453IFS=$ac_save_IFS
6454case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6455
6456
6457
6458# skip these tests, we do not need them.
6459
6460
6461
6462
6463
6464
6465
6466
6467# always use ./libtool unless override from commandline (libtool=mylibtool)
6468if test -z "$libtool"; then
6469	libtool="./libtool"
6470fi
6471
6472# avoid libtool max commandline length test on systems that fork slowly.
6473
6474if echo "$host_os" | grep "sunos4" >/dev/null; then
6475	lt_cv_sys_max_cmd_len=32750;
6476fi
6477if test -n "$ac_tool_prefix"; then
6478  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}ar; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_path_AR+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  case $AR in
6486  [\\/]* | ?:[\\/]*)
6487  ac_cv_path_AR="$AR" # Let the user override the test with a path.
6488  ;;
6489  *)
6490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505  ;;
6506esac
6507fi
6508AR=$ac_cv_path_AR
6509if test -n "$AR"; then
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6511$as_echo "$AR" >&6; }
6512else
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515fi
6516
6517
6518fi
6519if test -z "$ac_cv_path_AR"; then
6520  ac_pt_AR=$AR
6521  # Extract the first word of "ar", so it can be a program name with args.
6522set dummy ar; ac_word=$2
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524$as_echo_n "checking for $ac_word... " >&6; }
6525if ${ac_cv_path_ac_pt_AR+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  case $ac_pt_AR in
6529  [\\/]* | ?:[\\/]*)
6530  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6531  ;;
6532  *)
6533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  test -z "$as_dir" && as_dir=.
6538    for ac_exec_ext in '' $ac_executable_extensions; do
6539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542    break 2
6543  fi
6544done
6545  done
6546IFS=$as_save_IFS
6547
6548  ;;
6549esac
6550fi
6551ac_pt_AR=$ac_cv_path_ac_pt_AR
6552if test -n "$ac_pt_AR"; then
6553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6554$as_echo "$ac_pt_AR" >&6; }
6555else
6556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557$as_echo "no" >&6; }
6558fi
6559
6560  if test "x$ac_pt_AR" = x; then
6561    AR="false"
6562  else
6563    case $cross_compiling:$ac_tool_warned in
6564yes:)
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567ac_tool_warned=yes ;;
6568esac
6569    AR=$ac_pt_AR
6570  fi
6571else
6572  AR="$ac_cv_path_AR"
6573fi
6574
6575if test $AR = false; then
6576	as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6577fi
6578
6579case `pwd` in
6580  *\ * | *\	*)
6581    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6582$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6583esac
6584
6585
6586
6587macro_version='2.4.2'
6588macro_revision='1.3337'
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602ltmain="$ac_aux_dir/ltmain.sh"
6603
6604# Backslashify metacharacters that are still active within
6605# double-quoted strings.
6606sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6607
6608# Same as above, but do not quote variable references.
6609double_quote_subst='s/\(["`\\]\)/\\\1/g'
6610
6611# Sed substitution to delay expansion of an escaped shell variable in a
6612# double_quote_subst'ed string.
6613delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6614
6615# Sed substitution to delay expansion of an escaped single quote.
6616delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6617
6618# Sed substitution to avoid accidental globbing in evaled expressions
6619no_glob_subst='s/\*/\\\*/g'
6620
6621ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6622ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6623ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6624
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6626$as_echo_n "checking how to print strings... " >&6; }
6627# Test print first, because it will be a builtin if present.
6628if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6629   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6630  ECHO='print -r --'
6631elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6632  ECHO='printf %s\n'
6633else
6634  # Use this function as a fallback that always works.
6635  func_fallback_echo ()
6636  {
6637    eval 'cat <<_LTECHO_EOF
6638$1
6639_LTECHO_EOF'
6640  }
6641  ECHO='func_fallback_echo'
6642fi
6643
6644# func_echo_all arg...
6645# Invoke $ECHO with all args, space-separated.
6646func_echo_all ()
6647{
6648    $ECHO ""
6649}
6650
6651case "$ECHO" in
6652  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6653$as_echo "printf" >&6; } ;;
6654  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6655$as_echo "print -r" >&6; } ;;
6656  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6657$as_echo "cat" >&6; } ;;
6658esac
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6674$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6675if ${ac_cv_path_SED+:} false; then :
6676  $as_echo_n "(cached) " >&6
6677else
6678            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6679     for ac_i in 1 2 3 4 5 6 7; do
6680       ac_script="$ac_script$as_nl$ac_script"
6681     done
6682     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6683     { ac_script=; unset ac_script;}
6684     if test -z "$SED"; then
6685  ac_path_SED_found=false
6686  # Loop through the user's path and test for each of PROGNAME-LIST
6687  as_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_prog in sed gsed; do
6693    for ac_exec_ext in '' $ac_executable_extensions; do
6694      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6695      as_fn_executable_p "$ac_path_SED" || continue
6696# Check for GNU ac_path_SED and select it if it is found.
6697  # Check for GNU $ac_path_SED
6698case `"$ac_path_SED" --version 2>&1` in
6699*GNU*)
6700  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6701*)
6702  ac_count=0
6703  $as_echo_n 0123456789 >"conftest.in"
6704  while :
6705  do
6706    cat "conftest.in" "conftest.in" >"conftest.tmp"
6707    mv "conftest.tmp" "conftest.in"
6708    cp "conftest.in" "conftest.nl"
6709    $as_echo '' >> "conftest.nl"
6710    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6711    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6712    as_fn_arith $ac_count + 1 && ac_count=$as_val
6713    if test $ac_count -gt ${ac_path_SED_max-0}; then
6714      # Best one so far, save it but keep looking for a better one
6715      ac_cv_path_SED="$ac_path_SED"
6716      ac_path_SED_max=$ac_count
6717    fi
6718    # 10*(2^10) chars as input seems more than enough
6719    test $ac_count -gt 10 && break
6720  done
6721  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6722esac
6723
6724      $ac_path_SED_found && break 3
6725    done
6726  done
6727  done
6728IFS=$as_save_IFS
6729  if test -z "$ac_cv_path_SED"; then
6730    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6731  fi
6732else
6733  ac_cv_path_SED=$SED
6734fi
6735
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6738$as_echo "$ac_cv_path_SED" >&6; }
6739 SED="$ac_cv_path_SED"
6740  rm -f conftest.sed
6741
6742test -z "$SED" && SED=sed
6743Xsed="$SED -e 1s/^X//"
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6756$as_echo_n "checking for fgrep... " >&6; }
6757if ${ac_cv_path_FGREP+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6761   then ac_cv_path_FGREP="$GREP -F"
6762   else
6763     if test -z "$FGREP"; then
6764  ac_path_FGREP_found=false
6765  # Loop through the user's path and test for each of PROGNAME-LIST
6766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_prog in fgrep; do
6772    for ac_exec_ext in '' $ac_executable_extensions; do
6773      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6774      as_fn_executable_p "$ac_path_FGREP" || continue
6775# Check for GNU ac_path_FGREP and select it if it is found.
6776  # Check for GNU $ac_path_FGREP
6777case `"$ac_path_FGREP" --version 2>&1` in
6778*GNU*)
6779  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6780*)
6781  ac_count=0
6782  $as_echo_n 0123456789 >"conftest.in"
6783  while :
6784  do
6785    cat "conftest.in" "conftest.in" >"conftest.tmp"
6786    mv "conftest.tmp" "conftest.in"
6787    cp "conftest.in" "conftest.nl"
6788    $as_echo 'FGREP' >> "conftest.nl"
6789    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6790    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6791    as_fn_arith $ac_count + 1 && ac_count=$as_val
6792    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6793      # Best one so far, save it but keep looking for a better one
6794      ac_cv_path_FGREP="$ac_path_FGREP"
6795      ac_path_FGREP_max=$ac_count
6796    fi
6797    # 10*(2^10) chars as input seems more than enough
6798    test $ac_count -gt 10 && break
6799  done
6800  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801esac
6802
6803      $ac_path_FGREP_found && break 3
6804    done
6805  done
6806  done
6807IFS=$as_save_IFS
6808  if test -z "$ac_cv_path_FGREP"; then
6809    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810  fi
6811else
6812  ac_cv_path_FGREP=$FGREP
6813fi
6814
6815   fi
6816fi
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6818$as_echo "$ac_cv_path_FGREP" >&6; }
6819 FGREP="$ac_cv_path_FGREP"
6820
6821
6822test -z "$GREP" && GREP=grep
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842# Check whether --with-gnu-ld was given.
6843if test "${with_gnu_ld+set}" = set; then :
6844  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6845else
6846  with_gnu_ld=no
6847fi
6848
6849ac_prog=ld
6850if test "$GCC" = yes; then
6851  # Check if gcc -print-prog-name=ld gives a path.
6852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6853$as_echo_n "checking for ld used by $CC... " >&6; }
6854  case $host in
6855  *-*-mingw*)
6856    # gcc leaves a trailing carriage return which upsets mingw
6857    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6858  *)
6859    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6860  esac
6861  case $ac_prog in
6862    # Accept absolute paths.
6863    [\\/]* | ?:[\\/]*)
6864      re_direlt='/[^/][^/]*/\.\./'
6865      # Canonicalize the pathname of ld
6866      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6867      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6868	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6869      done
6870      test -z "$LD" && LD="$ac_prog"
6871      ;;
6872  "")
6873    # If it fails, then pretend we aren't using GCC.
6874    ac_prog=ld
6875    ;;
6876  *)
6877    # If it is relative, then search for the first ld in PATH.
6878    with_gnu_ld=unknown
6879    ;;
6880  esac
6881elif test "$with_gnu_ld" = yes; then
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6883$as_echo_n "checking for GNU ld... " >&6; }
6884else
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6886$as_echo_n "checking for non-GNU ld... " >&6; }
6887fi
6888if ${lt_cv_path_LD+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  if test -z "$LD"; then
6892  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6893  for ac_dir in $PATH; do
6894    IFS="$lt_save_ifs"
6895    test -z "$ac_dir" && ac_dir=.
6896    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6897      lt_cv_path_LD="$ac_dir/$ac_prog"
6898      # Check to see if the program is GNU ld.  I'd rather use --version,
6899      # but apparently some variants of GNU ld only accept -v.
6900      # Break only if it was the GNU/non-GNU ld that we prefer.
6901      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6902      *GNU* | *'with BFD'*)
6903	test "$with_gnu_ld" != no && break
6904	;;
6905      *)
6906	test "$with_gnu_ld" != yes && break
6907	;;
6908      esac
6909    fi
6910  done
6911  IFS="$lt_save_ifs"
6912else
6913  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6914fi
6915fi
6916
6917LD="$lt_cv_path_LD"
6918if test -n "$LD"; then
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6920$as_echo "$LD" >&6; }
6921else
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
6924fi
6925test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6927$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6928if ${lt_cv_prog_gnu_ld+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6932case `$LD -v 2>&1 </dev/null` in
6933*GNU* | *'with BFD'*)
6934  lt_cv_prog_gnu_ld=yes
6935  ;;
6936*)
6937  lt_cv_prog_gnu_ld=no
6938  ;;
6939esac
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6942$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6943with_gnu_ld=$lt_cv_prog_gnu_ld
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6954$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6955if ${lt_cv_path_NM+:} false; then :
6956  $as_echo_n "(cached) " >&6
6957else
6958  if test -n "$NM"; then
6959  # Let the user override the test.
6960  lt_cv_path_NM="$NM"
6961else
6962  lt_nm_to_check="${ac_tool_prefix}nm"
6963  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6964    lt_nm_to_check="$lt_nm_to_check nm"
6965  fi
6966  for lt_tmp_nm in $lt_nm_to_check; do
6967    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6969      IFS="$lt_save_ifs"
6970      test -z "$ac_dir" && ac_dir=.
6971      tmp_nm="$ac_dir/$lt_tmp_nm"
6972      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6973	# Check to see if the nm accepts a BSD-compat flag.
6974	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6975	#   nm: unknown option "B" ignored
6976	# Tru64's nm complains that /dev/null is an invalid object file
6977	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6978	*/dev/null* | *'Invalid file or object type'*)
6979	  lt_cv_path_NM="$tmp_nm -B"
6980	  break
6981	  ;;
6982	*)
6983	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6984	  */dev/null*)
6985	    lt_cv_path_NM="$tmp_nm -p"
6986	    break
6987	    ;;
6988	  *)
6989	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6990	    continue # so that we can try to find one that supports BSD flags
6991	    ;;
6992	  esac
6993	  ;;
6994	esac
6995      fi
6996    done
6997    IFS="$lt_save_ifs"
6998  done
6999  : ${lt_cv_path_NM=no}
7000fi
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7003$as_echo "$lt_cv_path_NM" >&6; }
7004if test "$lt_cv_path_NM" != "no"; then
7005  NM="$lt_cv_path_NM"
7006else
7007  # Didn't find any BSD compatible name lister, look for dumpbin.
7008  if test -n "$DUMPBIN"; then :
7009    # Let the user override the test.
7010  else
7011    if test -n "$ac_tool_prefix"; then
7012  for ac_prog in dumpbin "link -dump"
7013  do
7014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017$as_echo_n "checking for $ac_word... " >&6; }
7018if ${ac_cv_prog_DUMPBIN+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  if test -n "$DUMPBIN"; then
7022  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  test -z "$as_dir" && as_dir=.
7029    for ac_exec_ext in '' $ac_executable_extensions; do
7030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033    break 2
7034  fi
7035done
7036  done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041DUMPBIN=$ac_cv_prog_DUMPBIN
7042if test -n "$DUMPBIN"; then
7043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7044$as_echo "$DUMPBIN" >&6; }
7045else
7046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047$as_echo "no" >&6; }
7048fi
7049
7050
7051    test -n "$DUMPBIN" && break
7052  done
7053fi
7054if test -z "$DUMPBIN"; then
7055  ac_ct_DUMPBIN=$DUMPBIN
7056  for ac_prog in dumpbin "link -dump"
7057do
7058  # Extract the first word of "$ac_prog", so it can be a program name with args.
7059set dummy $ac_prog; ac_word=$2
7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061$as_echo_n "checking for $ac_word... " >&6; }
7062if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  if test -n "$ac_ct_DUMPBIN"; then
7066  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7067else
7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071  IFS=$as_save_IFS
7072  test -z "$as_dir" && as_dir=.
7073    for ac_exec_ext in '' $ac_executable_extensions; do
7074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077    break 2
7078  fi
7079done
7080  done
7081IFS=$as_save_IFS
7082
7083fi
7084fi
7085ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7086if test -n "$ac_ct_DUMPBIN"; then
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7088$as_echo "$ac_ct_DUMPBIN" >&6; }
7089else
7090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095  test -n "$ac_ct_DUMPBIN" && break
7096done
7097
7098  if test "x$ac_ct_DUMPBIN" = x; then
7099    DUMPBIN=":"
7100  else
7101    case $cross_compiling:$ac_tool_warned in
7102yes:)
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105ac_tool_warned=yes ;;
7106esac
7107    DUMPBIN=$ac_ct_DUMPBIN
7108  fi
7109fi
7110
7111    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7112    *COFF*)
7113      DUMPBIN="$DUMPBIN -symbols"
7114      ;;
7115    *)
7116      DUMPBIN=:
7117      ;;
7118    esac
7119  fi
7120
7121  if test "$DUMPBIN" != ":"; then
7122    NM="$DUMPBIN"
7123  fi
7124fi
7125test -z "$NM" && NM=nm
7126
7127
7128
7129
7130
7131
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7133$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7134if ${lt_cv_nm_interface+:} false; then :
7135  $as_echo_n "(cached) " >&6
7136else
7137  lt_cv_nm_interface="BSD nm"
7138  echo "int some_variable = 0;" > conftest.$ac_ext
7139  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7140  (eval "$ac_compile" 2>conftest.err)
7141  cat conftest.err >&5
7142  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7143  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7144  cat conftest.err >&5
7145  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7146  cat conftest.out >&5
7147  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7148    lt_cv_nm_interface="MS dumpbin"
7149  fi
7150  rm -f conftest*
7151fi
7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7153$as_echo "$lt_cv_nm_interface" >&6; }
7154
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7156$as_echo_n "checking whether ln -s works... " >&6; }
7157LN_S=$as_ln_s
7158if test "$LN_S" = "ln -s"; then
7159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7160$as_echo "yes" >&6; }
7161else
7162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7163$as_echo "no, using $LN_S" >&6; }
7164fi
7165
7166# find the maximum length of command line arguments
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7168$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7169if ${lt_cv_sys_max_cmd_len+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172    i=0
7173  teststring="ABCD"
7174
7175  case $build_os in
7176  msdosdjgpp*)
7177    # On DJGPP, this test can blow up pretty badly due to problems in libc
7178    # (any single argument exceeding 2000 bytes causes a buffer overrun
7179    # during glob expansion).  Even if it were fixed, the result of this
7180    # check would be larger than it should be.
7181    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7182    ;;
7183
7184  gnu*)
7185    # Under GNU Hurd, this test is not required because there is
7186    # no limit to the length of command line arguments.
7187    # Libtool will interpret -1 as no limit whatsoever
7188    lt_cv_sys_max_cmd_len=-1;
7189    ;;
7190
7191  cygwin* | mingw* | cegcc*)
7192    # On Win9x/ME, this test blows up -- it succeeds, but takes
7193    # about 5 minutes as the teststring grows exponentially.
7194    # Worse, since 9x/ME are not pre-emptively multitasking,
7195    # you end up with a "frozen" computer, even though with patience
7196    # the test eventually succeeds (with a max line length of 256k).
7197    # Instead, let's just punt: use the minimum linelength reported by
7198    # all of the supported platforms: 8192 (on NT/2K/XP).
7199    lt_cv_sys_max_cmd_len=8192;
7200    ;;
7201
7202  mint*)
7203    # On MiNT this can take a long time and run out of memory.
7204    lt_cv_sys_max_cmd_len=8192;
7205    ;;
7206
7207  amigaos*)
7208    # On AmigaOS with pdksh, this test takes hours, literally.
7209    # So we just punt and use a minimum line length of 8192.
7210    lt_cv_sys_max_cmd_len=8192;
7211    ;;
7212
7213  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7214    # This has been around since 386BSD, at least.  Likely further.
7215    if test -x /sbin/sysctl; then
7216      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7217    elif test -x /usr/sbin/sysctl; then
7218      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7219    else
7220      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7221    fi
7222    # And add a safety zone
7223    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7224    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7225    ;;
7226
7227  interix*)
7228    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7229    lt_cv_sys_max_cmd_len=196608
7230    ;;
7231
7232  os2*)
7233    # The test takes a long time on OS/2.
7234    lt_cv_sys_max_cmd_len=8192
7235    ;;
7236
7237  osf*)
7238    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7239    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7240    # nice to cause kernel panics so lets avoid the loop below.
7241    # First set a reasonable default.
7242    lt_cv_sys_max_cmd_len=16384
7243    #
7244    if test -x /sbin/sysconfig; then
7245      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7246        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7247      esac
7248    fi
7249    ;;
7250  sco3.2v5*)
7251    lt_cv_sys_max_cmd_len=102400
7252    ;;
7253  sysv5* | sco5v6* | sysv4.2uw2*)
7254    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7255    if test -n "$kargmax"; then
7256      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7257    else
7258      lt_cv_sys_max_cmd_len=32768
7259    fi
7260    ;;
7261  *)
7262    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7263    if test -n "$lt_cv_sys_max_cmd_len"; then
7264      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7265      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7266    else
7267      # Make teststring a little bigger before we do anything with it.
7268      # a 1K string should be a reasonable start.
7269      for i in 1 2 3 4 5 6 7 8 ; do
7270        teststring=$teststring$teststring
7271      done
7272      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7273      # If test is not a shell built-in, we'll probably end up computing a
7274      # maximum length that is only half of the actual maximum length, but
7275      # we can't tell.
7276      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7277	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7278	      test $i != 17 # 1/2 MB should be enough
7279      do
7280        i=`expr $i + 1`
7281        teststring=$teststring$teststring
7282      done
7283      # Only check the string length outside the loop.
7284      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7285      teststring=
7286      # Add a significant safety factor because C++ compilers can tack on
7287      # massive amounts of additional arguments before passing them to the
7288      # linker.  It appears as though 1/2 is a usable value.
7289      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7290    fi
7291    ;;
7292  esac
7293
7294fi
7295
7296if test -n $lt_cv_sys_max_cmd_len ; then
7297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7298$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7299else
7300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7301$as_echo "none" >&6; }
7302fi
7303max_cmd_len=$lt_cv_sys_max_cmd_len
7304
7305
7306
7307
7308
7309
7310: ${CP="cp -f"}
7311: ${MV="mv -f"}
7312: ${RM="rm -f"}
7313
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7315$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7316# Try some XSI features
7317xsi_shell=no
7318( _lt_dummy="a/b/c"
7319  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7320      = c,a/b,b/c, \
7321    && eval 'test $(( 1 + 1 )) -eq 2 \
7322    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7323  && xsi_shell=yes
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7325$as_echo "$xsi_shell" >&6; }
7326
7327
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7329$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7330lt_shell_append=no
7331( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7332    >/dev/null 2>&1 \
7333  && lt_shell_append=yes
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7335$as_echo "$lt_shell_append" >&6; }
7336
7337
7338if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7339  lt_unset=unset
7340else
7341  lt_unset=false
7342fi
7343
7344
7345
7346
7347
7348# test EBCDIC or ASCII
7349case `echo X|tr X '\101'` in
7350 A) # ASCII based system
7351    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7352  lt_SP2NL='tr \040 \012'
7353  lt_NL2SP='tr \015\012 \040\040'
7354  ;;
7355 *) # EBCDIC based system
7356  lt_SP2NL='tr \100 \n'
7357  lt_NL2SP='tr \r\n \100\100'
7358  ;;
7359esac
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7370$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7371if ${lt_cv_to_host_file_cmd+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  case $host in
7375  *-*-mingw* )
7376    case $build in
7377      *-*-mingw* ) # actually msys
7378        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7379        ;;
7380      *-*-cygwin* )
7381        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7382        ;;
7383      * ) # otherwise, assume *nix
7384        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7385        ;;
7386    esac
7387    ;;
7388  *-*-cygwin* )
7389    case $build in
7390      *-*-mingw* ) # actually msys
7391        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7392        ;;
7393      *-*-cygwin* )
7394        lt_cv_to_host_file_cmd=func_convert_file_noop
7395        ;;
7396      * ) # otherwise, assume *nix
7397        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7398        ;;
7399    esac
7400    ;;
7401  * ) # unhandled hosts (and "normal" native builds)
7402    lt_cv_to_host_file_cmd=func_convert_file_noop
7403    ;;
7404esac
7405
7406fi
7407
7408to_host_file_cmd=$lt_cv_to_host_file_cmd
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7410$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7411
7412
7413
7414
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7417$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7418if ${lt_cv_to_tool_file_cmd+:} false; then :
7419  $as_echo_n "(cached) " >&6
7420else
7421  #assume ordinary cross tools, or native build.
7422lt_cv_to_tool_file_cmd=func_convert_file_noop
7423case $host in
7424  *-*-mingw* )
7425    case $build in
7426      *-*-mingw* ) # actually msys
7427        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7428        ;;
7429    esac
7430    ;;
7431esac
7432
7433fi
7434
7435to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7437$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7438
7439
7440
7441
7442
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7444$as_echo_n "checking for $LD option to reload object files... " >&6; }
7445if ${lt_cv_ld_reload_flag+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  lt_cv_ld_reload_flag='-r'
7449fi
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7451$as_echo "$lt_cv_ld_reload_flag" >&6; }
7452reload_flag=$lt_cv_ld_reload_flag
7453case $reload_flag in
7454"" | " "*) ;;
7455*) reload_flag=" $reload_flag" ;;
7456esac
7457reload_cmds='$LD$reload_flag -o $output$reload_objs'
7458case $host_os in
7459  cygwin* | mingw* | pw32* | cegcc*)
7460    if test "$GCC" != yes; then
7461      reload_cmds=false
7462    fi
7463    ;;
7464  darwin*)
7465    if test "$GCC" = yes; then
7466      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7467    else
7468      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7469    fi
7470    ;;
7471esac
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481if test -n "$ac_tool_prefix"; then
7482  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7483set dummy ${ac_tool_prefix}objdump; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_OBJDUMP+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  if test -n "$OBJDUMP"; then
7490  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497    for ac_exec_ext in '' $ac_executable_extensions; do
7498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504  done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509OBJDUMP=$ac_cv_prog_OBJDUMP
7510if test -n "$OBJDUMP"; then
7511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7512$as_echo "$OBJDUMP" >&6; }
7513else
7514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518
7519fi
7520if test -z "$ac_cv_prog_OBJDUMP"; then
7521  ac_ct_OBJDUMP=$OBJDUMP
7522  # Extract the first word of "objdump", so it can be a program name with args.
7523set dummy objdump; ac_word=$2
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  if test -n "$ac_ct_OBJDUMP"; then
7530  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537    for ac_exec_ext in '' $ac_executable_extensions; do
7538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544  done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7550if test -n "$ac_ct_OBJDUMP"; then
7551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7552$as_echo "$ac_ct_OBJDUMP" >&6; }
7553else
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558  if test "x$ac_ct_OBJDUMP" = x; then
7559    OBJDUMP="false"
7560  else
7561    case $cross_compiling:$ac_tool_warned in
7562yes:)
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565ac_tool_warned=yes ;;
7566esac
7567    OBJDUMP=$ac_ct_OBJDUMP
7568  fi
7569else
7570  OBJDUMP="$ac_cv_prog_OBJDUMP"
7571fi
7572
7573test -z "$OBJDUMP" && OBJDUMP=objdump
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7584$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7585if ${lt_cv_deplibs_check_method+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  lt_cv_file_magic_cmd='$MAGIC_CMD'
7589lt_cv_file_magic_test_file=
7590lt_cv_deplibs_check_method='unknown'
7591# Need to set the preceding variable on all platforms that support
7592# interlibrary dependencies.
7593# 'none' -- dependencies not supported.
7594# `unknown' -- same as none, but documents that we really don't know.
7595# 'pass_all' -- all dependencies passed with no checks.
7596# 'test_compile' -- check by making test program.
7597# 'file_magic [[regex]]' -- check by looking for files in library path
7598# which responds to the $file_magic_cmd with a given extended regex.
7599# If you have `file' or equivalent on your system and you're not sure
7600# whether `pass_all' will *always* work, you probably want this one.
7601
7602case $host_os in
7603aix[4-9]*)
7604  lt_cv_deplibs_check_method=pass_all
7605  ;;
7606
7607beos*)
7608  lt_cv_deplibs_check_method=pass_all
7609  ;;
7610
7611bsdi[45]*)
7612  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7613  lt_cv_file_magic_cmd='/usr/bin/file -L'
7614  lt_cv_file_magic_test_file=/shlib/libc.so
7615  ;;
7616
7617cygwin*)
7618  # func_win32_libid is a shell function defined in ltmain.sh
7619  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7620  lt_cv_file_magic_cmd='func_win32_libid'
7621  ;;
7622
7623mingw* | pw32*)
7624  # Base MSYS/MinGW do not provide the 'file' command needed by
7625  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7626  # unless we find 'file', for example because we are cross-compiling.
7627  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7628  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7629    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7630    lt_cv_file_magic_cmd='func_win32_libid'
7631  else
7632    # Keep this pattern in sync with the one in func_win32_libid.
7633    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7634    lt_cv_file_magic_cmd='$OBJDUMP -f'
7635  fi
7636  ;;
7637
7638cegcc*)
7639  # use the weaker test based on 'objdump'. See mingw*.
7640  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7641  lt_cv_file_magic_cmd='$OBJDUMP -f'
7642  ;;
7643
7644darwin* | rhapsody*)
7645  lt_cv_deplibs_check_method=pass_all
7646  ;;
7647
7648freebsd* | dragonfly*)
7649  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7650    case $host_cpu in
7651    i*86 )
7652      # Not sure whether the presence of OpenBSD here was a mistake.
7653      # Let's accept both of them until this is cleared up.
7654      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7655      lt_cv_file_magic_cmd=/usr/bin/file
7656      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7657      ;;
7658    esac
7659  else
7660    lt_cv_deplibs_check_method=pass_all
7661  fi
7662  ;;
7663
7664gnu*)
7665  lt_cv_deplibs_check_method=pass_all
7666  ;;
7667
7668haiku*)
7669  lt_cv_deplibs_check_method=pass_all
7670  ;;
7671
7672hpux10.20* | hpux11*)
7673  lt_cv_file_magic_cmd=/usr/bin/file
7674  case $host_cpu in
7675  ia64*)
7676    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7677    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7678    ;;
7679  hppa*64*)
7680    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]'
7681    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7682    ;;
7683  *)
7684    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7685    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7686    ;;
7687  esac
7688  ;;
7689
7690interix[3-9]*)
7691  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7692  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7693  ;;
7694
7695irix5* | irix6* | nonstopux*)
7696  case $LD in
7697  *-32|*"-32 ") libmagic=32-bit;;
7698  *-n32|*"-n32 ") libmagic=N32;;
7699  *-64|*"-64 ") libmagic=64-bit;;
7700  *) libmagic=never-match;;
7701  esac
7702  lt_cv_deplibs_check_method=pass_all
7703  ;;
7704
7705# This must be glibc/ELF.
7706linux* | k*bsd*-gnu | kopensolaris*-gnu)
7707  lt_cv_deplibs_check_method=pass_all
7708  ;;
7709
7710netbsd*)
7711  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7712    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7713  else
7714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7715  fi
7716  ;;
7717
7718newos6*)
7719  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7720  lt_cv_file_magic_cmd=/usr/bin/file
7721  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7722  ;;
7723
7724*nto* | *qnx*)
7725  lt_cv_deplibs_check_method=pass_all
7726  ;;
7727
7728openbsd*)
7729  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7730    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7731  else
7732    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7733  fi
7734  ;;
7735
7736osf3* | osf4* | osf5*)
7737  lt_cv_deplibs_check_method=pass_all
7738  ;;
7739
7740rdos*)
7741  lt_cv_deplibs_check_method=pass_all
7742  ;;
7743
7744solaris*)
7745  lt_cv_deplibs_check_method=pass_all
7746  ;;
7747
7748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7749  lt_cv_deplibs_check_method=pass_all
7750  ;;
7751
7752sysv4 | sysv4.3*)
7753  case $host_vendor in
7754  motorola)
7755    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]'
7756    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7757    ;;
7758  ncr)
7759    lt_cv_deplibs_check_method=pass_all
7760    ;;
7761  sequent)
7762    lt_cv_file_magic_cmd='/bin/file'
7763    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7764    ;;
7765  sni)
7766    lt_cv_file_magic_cmd='/bin/file'
7767    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7768    lt_cv_file_magic_test_file=/lib/libc.so
7769    ;;
7770  siemens)
7771    lt_cv_deplibs_check_method=pass_all
7772    ;;
7773  pc)
7774    lt_cv_deplibs_check_method=pass_all
7775    ;;
7776  esac
7777  ;;
7778
7779tpf*)
7780  lt_cv_deplibs_check_method=pass_all
7781  ;;
7782esac
7783
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7786$as_echo "$lt_cv_deplibs_check_method" >&6; }
7787
7788file_magic_glob=
7789want_nocaseglob=no
7790if test "$build" = "$host"; then
7791  case $host_os in
7792  mingw* | pw32*)
7793    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7794      want_nocaseglob=yes
7795    else
7796      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7797    fi
7798    ;;
7799  esac
7800fi
7801
7802file_magic_cmd=$lt_cv_file_magic_cmd
7803deplibs_check_method=$lt_cv_deplibs_check_method
7804test -z "$deplibs_check_method" && deplibs_check_method=unknown
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827if test -n "$ac_tool_prefix"; then
7828  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7829set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831$as_echo_n "checking for $ac_word... " >&6; }
7832if ${ac_cv_prog_DLLTOOL+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  if test -n "$DLLTOOL"; then
7836  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7837else
7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839for as_dir in $PATH
7840do
7841  IFS=$as_save_IFS
7842  test -z "$as_dir" && as_dir=.
7843    for ac_exec_ext in '' $ac_executable_extensions; do
7844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847    break 2
7848  fi
7849done
7850  done
7851IFS=$as_save_IFS
7852
7853fi
7854fi
7855DLLTOOL=$ac_cv_prog_DLLTOOL
7856if test -n "$DLLTOOL"; then
7857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7858$as_echo "$DLLTOOL" >&6; }
7859else
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862fi
7863
7864
7865fi
7866if test -z "$ac_cv_prog_DLLTOOL"; then
7867  ac_ct_DLLTOOL=$DLLTOOL
7868  # Extract the first word of "dlltool", so it can be a program name with args.
7869set dummy dlltool; ac_word=$2
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871$as_echo_n "checking for $ac_word... " >&6; }
7872if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  if test -n "$ac_ct_DLLTOOL"; then
7876  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7877else
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  test -z "$as_dir" && as_dir=.
7883    for ac_exec_ext in '' $ac_executable_extensions; do
7884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887    break 2
7888  fi
7889done
7890  done
7891IFS=$as_save_IFS
7892
7893fi
7894fi
7895ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7896if test -n "$ac_ct_DLLTOOL"; then
7897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7898$as_echo "$ac_ct_DLLTOOL" >&6; }
7899else
7900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
7902fi
7903
7904  if test "x$ac_ct_DLLTOOL" = x; then
7905    DLLTOOL="false"
7906  else
7907    case $cross_compiling:$ac_tool_warned in
7908yes:)
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7911ac_tool_warned=yes ;;
7912esac
7913    DLLTOOL=$ac_ct_DLLTOOL
7914  fi
7915else
7916  DLLTOOL="$ac_cv_prog_DLLTOOL"
7917fi
7918
7919test -z "$DLLTOOL" && DLLTOOL=dlltool
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7931$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7932if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  lt_cv_sharedlib_from_linklib_cmd='unknown'
7936
7937case $host_os in
7938cygwin* | mingw* | pw32* | cegcc*)
7939  # two different shell functions defined in ltmain.sh
7940  # decide which to use based on capabilities of $DLLTOOL
7941  case `$DLLTOOL --help 2>&1` in
7942  *--identify-strict*)
7943    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7944    ;;
7945  *)
7946    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7947    ;;
7948  esac
7949  ;;
7950*)
7951  # fallback: assume linklib IS sharedlib
7952  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7953  ;;
7954esac
7955
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7958$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7959sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7960test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7961
7962
7963
7964
7965
7966
7967
7968if test -n "$ac_tool_prefix"; then
7969  for ac_prog in ar
7970  do
7971    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if ${ac_cv_prog_AR+:} false; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  if test -n "$AR"; then
7979  ac_cv_prog_AR="$AR" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  test -z "$as_dir" && as_dir=.
7986    for ac_exec_ext in '' $ac_executable_extensions; do
7987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990    break 2
7991  fi
7992done
7993  done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998AR=$ac_cv_prog_AR
7999if test -n "$AR"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8001$as_echo "$AR" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007
8008    test -n "$AR" && break
8009  done
8010fi
8011if test -z "$AR"; then
8012  ac_ct_AR=$AR
8013  for ac_prog in ar
8014do
8015  # Extract the first word of "$ac_prog", so it can be a program name with args.
8016set dummy $ac_prog; ac_word=$2
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if ${ac_cv_prog_ac_ct_AR+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  if test -n "$ac_ct_AR"; then
8023  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  test -z "$as_dir" && as_dir=.
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_ac_ct_AR="$ac_prog"
8033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_AR=$ac_cv_prog_ac_ct_AR
8043if test -n "$ac_ct_AR"; then
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8045$as_echo "$ac_ct_AR" >&6; }
8046else
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051
8052  test -n "$ac_ct_AR" && break
8053done
8054
8055  if test "x$ac_ct_AR" = x; then
8056    AR="false"
8057  else
8058    case $cross_compiling:$ac_tool_warned in
8059yes:)
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062ac_tool_warned=yes ;;
8063esac
8064    AR=$ac_ct_AR
8065  fi
8066fi
8067
8068: ${AR=ar}
8069: ${AR_FLAGS=cru}
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8082$as_echo_n "checking for archiver @FILE support... " >&6; }
8083if ${lt_cv_ar_at_file+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  lt_cv_ar_at_file=no
8087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089
8090int
8091main ()
8092{
8093
8094  ;
8095  return 0;
8096}
8097_ACEOF
8098if ac_fn_c_try_compile "$LINENO"; then :
8099  echo conftest.$ac_objext > conftest.lst
8100      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8101      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8102  (eval $lt_ar_try) 2>&5
8103  ac_status=$?
8104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8105  test $ac_status = 0; }
8106      if test "$ac_status" -eq 0; then
8107	# Ensure the archiver fails upon bogus file names.
8108	rm -f conftest.$ac_objext libconftest.a
8109	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8110  (eval $lt_ar_try) 2>&5
8111  ac_status=$?
8112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8113  test $ac_status = 0; }
8114	if test "$ac_status" -ne 0; then
8115          lt_cv_ar_at_file=@
8116        fi
8117      fi
8118      rm -f conftest.* libconftest.a
8119
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122
8123fi
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8125$as_echo "$lt_cv_ar_at_file" >&6; }
8126
8127if test "x$lt_cv_ar_at_file" = xno; then
8128  archiver_list_spec=
8129else
8130  archiver_list_spec=$lt_cv_ar_at_file
8131fi
8132
8133
8134
8135
8136
8137
8138
8139if test -n "$ac_tool_prefix"; then
8140  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8141set dummy ${ac_tool_prefix}strip; ac_word=$2
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
8144if ${ac_cv_prog_STRIP+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  if test -n "$STRIP"; then
8148  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155    for ac_exec_ext in '' $ac_executable_extensions; do
8156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162  done
8163IFS=$as_save_IFS
8164
8165fi
8166fi
8167STRIP=$ac_cv_prog_STRIP
8168if test -n "$STRIP"; then
8169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8170$as_echo "$STRIP" >&6; }
8171else
8172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
8174fi
8175
8176
8177fi
8178if test -z "$ac_cv_prog_STRIP"; then
8179  ac_ct_STRIP=$STRIP
8180  # Extract the first word of "strip", so it can be a program name with args.
8181set dummy strip; ac_word=$2
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$ac_ct_STRIP"; then
8188  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195    for ac_exec_ext in '' $ac_executable_extensions; do
8196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197    ac_cv_prog_ac_ct_STRIP="strip"
8198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202  done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8208if test -n "$ac_ct_STRIP"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8210$as_echo "$ac_ct_STRIP" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216  if test "x$ac_ct_STRIP" = x; then
8217    STRIP=":"
8218  else
8219    case $cross_compiling:$ac_tool_warned in
8220yes:)
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223ac_tool_warned=yes ;;
8224esac
8225    STRIP=$ac_ct_STRIP
8226  fi
8227else
8228  STRIP="$ac_cv_prog_STRIP"
8229fi
8230
8231test -z "$STRIP" && STRIP=:
8232
8233
8234
8235
8236
8237
8238if test -n "$ac_tool_prefix"; then
8239  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8240set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242$as_echo_n "checking for $ac_word... " >&6; }
8243if ${ac_cv_prog_RANLIB+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  if test -n "$RANLIB"; then
8247  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8248else
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252  IFS=$as_save_IFS
8253  test -z "$as_dir" && as_dir=.
8254    for ac_exec_ext in '' $ac_executable_extensions; do
8255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258    break 2
8259  fi
8260done
8261  done
8262IFS=$as_save_IFS
8263
8264fi
8265fi
8266RANLIB=$ac_cv_prog_RANLIB
8267if test -n "$RANLIB"; then
8268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8269$as_echo "$RANLIB" >&6; }
8270else
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273fi
8274
8275
8276fi
8277if test -z "$ac_cv_prog_RANLIB"; then
8278  ac_ct_RANLIB=$RANLIB
8279  # Extract the first word of "ranlib", so it can be a program name with args.
8280set dummy ranlib; ac_word=$2
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282$as_echo_n "checking for $ac_word... " >&6; }
8283if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  if test -n "$ac_ct_RANLIB"; then
8287  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8288else
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292  IFS=$as_save_IFS
8293  test -z "$as_dir" && as_dir=.
8294    for ac_exec_ext in '' $ac_executable_extensions; do
8295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296    ac_cv_prog_ac_ct_RANLIB="ranlib"
8297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298    break 2
8299  fi
8300done
8301  done
8302IFS=$as_save_IFS
8303
8304fi
8305fi
8306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8307if test -n "$ac_ct_RANLIB"; then
8308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8309$as_echo "$ac_ct_RANLIB" >&6; }
8310else
8311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312$as_echo "no" >&6; }
8313fi
8314
8315  if test "x$ac_ct_RANLIB" = x; then
8316    RANLIB=":"
8317  else
8318    case $cross_compiling:$ac_tool_warned in
8319yes:)
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8322ac_tool_warned=yes ;;
8323esac
8324    RANLIB=$ac_ct_RANLIB
8325  fi
8326else
8327  RANLIB="$ac_cv_prog_RANLIB"
8328fi
8329
8330test -z "$RANLIB" && RANLIB=:
8331
8332
8333
8334
8335
8336
8337# Determine commands to create old-style static archives.
8338old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8339old_postinstall_cmds='chmod 644 $oldlib'
8340old_postuninstall_cmds=
8341
8342if test -n "$RANLIB"; then
8343  case $host_os in
8344  openbsd*)
8345    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8346    ;;
8347  *)
8348    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8349    ;;
8350  esac
8351  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8352fi
8353
8354case $host_os in
8355  darwin*)
8356    lock_old_archive_extraction=yes ;;
8357  *)
8358    lock_old_archive_extraction=no ;;
8359esac
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381for ac_prog in gawk mawk nawk awk
8382do
8383  # Extract the first word of "$ac_prog", so it can be a program name with args.
8384set dummy $ac_prog; ac_word=$2
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if ${ac_cv_prog_AWK+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  if test -n "$AWK"; then
8391  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396  IFS=$as_save_IFS
8397  test -z "$as_dir" && as_dir=.
8398    for ac_exec_ext in '' $ac_executable_extensions; do
8399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400    ac_cv_prog_AWK="$ac_prog"
8401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402    break 2
8403  fi
8404done
8405  done
8406IFS=$as_save_IFS
8407
8408fi
8409fi
8410AWK=$ac_cv_prog_AWK
8411if test -n "$AWK"; then
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8413$as_echo "$AWK" >&6; }
8414else
8415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418
8419
8420  test -n "$AWK" && break
8421done
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441# If no C compiler was specified, use CC.
8442LTCC=${LTCC-"$CC"}
8443
8444# If no C compiler flags were specified, use CFLAGS.
8445LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8446
8447# Allow CC to be a program name with arguments.
8448compiler=$CC
8449
8450
8451# Check for command to grab the raw symbol name followed by C symbol from nm.
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8453$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8454if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8455  $as_echo_n "(cached) " >&6
8456else
8457
8458# These are sane defaults that work on at least a few old systems.
8459# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8460
8461# Character class describing NM global symbol codes.
8462symcode='[BCDEGRST]'
8463
8464# Regexp to match symbols that can be accessed directly from C.
8465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8466
8467# Define system-specific variables.
8468case $host_os in
8469aix*)
8470  symcode='[BCDT]'
8471  ;;
8472cygwin* | mingw* | pw32* | cegcc*)
8473  symcode='[ABCDGISTW]'
8474  ;;
8475hpux*)
8476  if test "$host_cpu" = ia64; then
8477    symcode='[ABCDEGRST]'
8478  fi
8479  ;;
8480irix* | nonstopux*)
8481  symcode='[BCDEGRST]'
8482  ;;
8483osf*)
8484  symcode='[BCDEGQRST]'
8485  ;;
8486solaris*)
8487  symcode='[BDRT]'
8488  ;;
8489sco3.2v5*)
8490  symcode='[DT]'
8491  ;;
8492sysv4.2uw2*)
8493  symcode='[DT]'
8494  ;;
8495sysv5* | sco5v6* | unixware* | OpenUNIX*)
8496  symcode='[ABDT]'
8497  ;;
8498sysv4)
8499  symcode='[DFNSTU]'
8500  ;;
8501esac
8502
8503# If we're using GNU nm, then use its standard symbol codes.
8504case `$NM -V 2>&1` in
8505*GNU* | *'with BFD'*)
8506  symcode='[ABCDGIRSTW]' ;;
8507esac
8508
8509# Transform an extracted symbol line into a proper C declaration.
8510# Some systems (esp. on ia64) link data and code symbols differently,
8511# so use this general approach.
8512lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8513
8514# Transform an extracted symbol line into symbol name and symbol address
8515lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8516lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8517
8518# Handle CRLF in mingw tool chain
8519opt_cr=
8520case $build_os in
8521mingw*)
8522  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8523  ;;
8524esac
8525
8526# Try without a prefix underscore, then with it.
8527for ac_symprfx in "" "_"; do
8528
8529  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8530  symxfrm="\\1 $ac_symprfx\\2 \\2"
8531
8532  # Write the raw and C identifiers.
8533  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8534    # Fake it for dumpbin and say T for any non-static function
8535    # and D for any global variable.
8536    # Also find C++ and __fastcall symbols from MSVC++,
8537    # which start with @ or ?.
8538    lt_cv_sys_global_symbol_pipe="$AWK '"\
8539"     {last_section=section; section=\$ 3};"\
8540"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8541"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8542"     \$ 0!~/External *\|/{next};"\
8543"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8544"     {if(hide[section]) next};"\
8545"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8546"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8547"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8548"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8549"     ' prfx=^$ac_symprfx"
8550  else
8551    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8552  fi
8553  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8554
8555  # Check to see that the pipe works correctly.
8556  pipe_works=no
8557
8558  rm -f conftest*
8559  cat > conftest.$ac_ext <<_LT_EOF
8560#ifdef __cplusplus
8561extern "C" {
8562#endif
8563char nm_test_var;
8564void nm_test_func(void);
8565void nm_test_func(void){}
8566#ifdef __cplusplus
8567}
8568#endif
8569int main(){nm_test_var='a';nm_test_func();return(0);}
8570_LT_EOF
8571
8572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8573  (eval $ac_compile) 2>&5
8574  ac_status=$?
8575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576  test $ac_status = 0; }; then
8577    # Now try to grab the symbols.
8578    nlist=conftest.nm
8579    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8580  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8581  ac_status=$?
8582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8583  test $ac_status = 0; } && test -s "$nlist"; then
8584      # Try sorting and uniquifying the output.
8585      if sort "$nlist" | uniq > "$nlist"T; then
8586	mv -f "$nlist"T "$nlist"
8587      else
8588	rm -f "$nlist"T
8589      fi
8590
8591      # Make sure that we snagged all the symbols we need.
8592      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8593	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8594	  cat <<_LT_EOF > conftest.$ac_ext
8595/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8596#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8597/* DATA imports from DLLs on WIN32 con't be const, because runtime
8598   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8599# define LT_DLSYM_CONST
8600#elif defined(__osf__)
8601/* This system does not cope well with relocations in const data.  */
8602# define LT_DLSYM_CONST
8603#else
8604# define LT_DLSYM_CONST const
8605#endif
8606
8607#ifdef __cplusplus
8608extern "C" {
8609#endif
8610
8611_LT_EOF
8612	  # Now generate the symbol file.
8613	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8614
8615	  cat <<_LT_EOF >> conftest.$ac_ext
8616
8617/* The mapping between symbol names and symbols.  */
8618LT_DLSYM_CONST struct {
8619  const char *name;
8620  void       *address;
8621}
8622lt__PROGRAM__LTX_preloaded_symbols[] =
8623{
8624  { "@PROGRAM@", (void *) 0 },
8625_LT_EOF
8626	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8627	  cat <<\_LT_EOF >> conftest.$ac_ext
8628  {0, (void *) 0}
8629};
8630
8631/* This works around a problem in FreeBSD linker */
8632#ifdef FREEBSD_WORKAROUND
8633static const void *lt_preloaded_setup() {
8634  return lt__PROGRAM__LTX_preloaded_symbols;
8635}
8636#endif
8637
8638#ifdef __cplusplus
8639}
8640#endif
8641_LT_EOF
8642	  # Now try linking the two files.
8643	  mv conftest.$ac_objext conftstm.$ac_objext
8644	  lt_globsym_save_LIBS=$LIBS
8645	  lt_globsym_save_CFLAGS=$CFLAGS
8646	  LIBS="conftstm.$ac_objext"
8647	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8648	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8649  (eval $ac_link) 2>&5
8650  ac_status=$?
8651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8652  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8653	    pipe_works=yes
8654	  fi
8655	  LIBS=$lt_globsym_save_LIBS
8656	  CFLAGS=$lt_globsym_save_CFLAGS
8657	else
8658	  echo "cannot find nm_test_func in $nlist" >&5
8659	fi
8660      else
8661	echo "cannot find nm_test_var in $nlist" >&5
8662      fi
8663    else
8664      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8665    fi
8666  else
8667    echo "$progname: failed program was:" >&5
8668    cat conftest.$ac_ext >&5
8669  fi
8670  rm -rf conftest* conftst*
8671
8672  # Do not use the global_symbol_pipe unless it works.
8673  if test "$pipe_works" = yes; then
8674    break
8675  else
8676    lt_cv_sys_global_symbol_pipe=
8677  fi
8678done
8679
8680fi
8681
8682if test -z "$lt_cv_sys_global_symbol_pipe"; then
8683  lt_cv_sys_global_symbol_to_cdecl=
8684fi
8685if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8687$as_echo "failed" >&6; }
8688else
8689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8690$as_echo "ok" >&6; }
8691fi
8692
8693# Response file support.
8694if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8695  nm_file_list_spec='@'
8696elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8697  nm_file_list_spec='@'
8698fi
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8727$as_echo_n "checking for sysroot... " >&6; }
8728
8729# Check whether --with-sysroot was given.
8730if test "${with_sysroot+set}" = set; then :
8731  withval=$with_sysroot;
8732else
8733  with_sysroot=no
8734fi
8735
8736
8737lt_sysroot=
8738case ${with_sysroot} in #(
8739 yes)
8740   if test "$GCC" = yes; then
8741     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8742   fi
8743   ;; #(
8744 /*)
8745   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8746   ;; #(
8747 no|'')
8748   ;; #(
8749 *)
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8751$as_echo "${with_sysroot}" >&6; }
8752   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8753   ;;
8754esac
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8757$as_echo "${lt_sysroot:-no}" >&6; }
8758
8759
8760
8761
8762
8763# Check whether --enable-libtool-lock was given.
8764if test "${enable_libtool_lock+set}" = set; then :
8765  enableval=$enable_libtool_lock;
8766fi
8767
8768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8769
8770# Some flags need to be propagated to the compiler or linker for good
8771# libtool support.
8772case $host in
8773ia64-*-hpux*)
8774  # Find out which ABI we are using.
8775  echo 'int i;' > conftest.$ac_ext
8776  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8777  (eval $ac_compile) 2>&5
8778  ac_status=$?
8779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8780  test $ac_status = 0; }; then
8781    case `/usr/bin/file conftest.$ac_objext` in
8782      *ELF-32*)
8783	HPUX_IA64_MODE="32"
8784	;;
8785      *ELF-64*)
8786	HPUX_IA64_MODE="64"
8787	;;
8788    esac
8789  fi
8790  rm -rf conftest*
8791  ;;
8792*-*-irix6*)
8793  # Find out which ABI we are using.
8794  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8795  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8796  (eval $ac_compile) 2>&5
8797  ac_status=$?
8798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799  test $ac_status = 0; }; then
8800    if test "$lt_cv_prog_gnu_ld" = yes; then
8801      case `/usr/bin/file conftest.$ac_objext` in
8802	*32-bit*)
8803	  LD="${LD-ld} -melf32bsmip"
8804	  ;;
8805	*N32*)
8806	  LD="${LD-ld} -melf32bmipn32"
8807	  ;;
8808	*64-bit*)
8809	  LD="${LD-ld} -melf64bmip"
8810	;;
8811      esac
8812    else
8813      case `/usr/bin/file conftest.$ac_objext` in
8814	*32-bit*)
8815	  LD="${LD-ld} -32"
8816	  ;;
8817	*N32*)
8818	  LD="${LD-ld} -n32"
8819	  ;;
8820	*64-bit*)
8821	  LD="${LD-ld} -64"
8822	  ;;
8823      esac
8824    fi
8825  fi
8826  rm -rf conftest*
8827  ;;
8828
8829x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8830s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8831  # Find out which ABI we are using.
8832  echo 'int i;' > conftest.$ac_ext
8833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8834  (eval $ac_compile) 2>&5
8835  ac_status=$?
8836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837  test $ac_status = 0; }; then
8838    case `/usr/bin/file conftest.o` in
8839      *32-bit*)
8840	case $host in
8841	  x86_64-*kfreebsd*-gnu)
8842	    LD="${LD-ld} -m elf_i386_fbsd"
8843	    ;;
8844	  x86_64-*linux*)
8845	    LD="${LD-ld} -m elf_i386"
8846	    ;;
8847	  powerpc64le-*linux*)
8848	    LD="${LD-ld} -m elf32lppclinux"
8849	    ;;
8850	  powerpc64-*linux*)
8851	    LD="${LD-ld} -m elf32ppclinux"
8852	    ;;
8853	  s390x-*linux*)
8854	    LD="${LD-ld} -m elf_s390"
8855	    ;;
8856	  sparc64-*linux*)
8857	    LD="${LD-ld} -m elf32_sparc"
8858	    ;;
8859	esac
8860	;;
8861      *64-bit*)
8862	case $host in
8863	  x86_64-*kfreebsd*-gnu)
8864	    LD="${LD-ld} -m elf_x86_64_fbsd"
8865	    ;;
8866	  x86_64-*linux*)
8867	    LD="${LD-ld} -m elf_x86_64"
8868	    ;;
8869	  powerpcle-*linux*)
8870	    LD="${LD-ld} -m elf64lppc"
8871	    ;;
8872	  powerpc-*linux*)
8873	    LD="${LD-ld} -m elf64ppc"
8874	    ;;
8875	  s390*-*linux*|s390*-*tpf*)
8876	    LD="${LD-ld} -m elf64_s390"
8877	    ;;
8878	  sparc*-*linux*)
8879	    LD="${LD-ld} -m elf64_sparc"
8880	    ;;
8881	esac
8882	;;
8883    esac
8884  fi
8885  rm -rf conftest*
8886  ;;
8887
8888*-*-sco3.2v5*)
8889  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8890  SAVE_CFLAGS="$CFLAGS"
8891  CFLAGS="$CFLAGS -belf"
8892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8893$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8894if ${lt_cv_cc_needs_belf+:} false; then :
8895  $as_echo_n "(cached) " >&6
8896else
8897  ac_ext=c
8898ac_cpp='$CPP $CPPFLAGS'
8899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
8903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905
8906int
8907main ()
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_link "$LINENO"; then :
8915  lt_cv_cc_needs_belf=yes
8916else
8917  lt_cv_cc_needs_belf=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext \
8920    conftest$ac_exeext conftest.$ac_ext
8921     ac_ext=c
8922ac_cpp='$CPP $CPPFLAGS'
8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927fi
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8929$as_echo "$lt_cv_cc_needs_belf" >&6; }
8930  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8931    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8932    CFLAGS="$SAVE_CFLAGS"
8933  fi
8934  ;;
8935*-*solaris*)
8936  # Find out which ABI we are using.
8937  echo 'int i;' > conftest.$ac_ext
8938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8939  (eval $ac_compile) 2>&5
8940  ac_status=$?
8941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8942  test $ac_status = 0; }; then
8943    case `/usr/bin/file conftest.o` in
8944    *64-bit*)
8945      case $lt_cv_prog_gnu_ld in
8946      yes*)
8947        case $host in
8948        i?86-*-solaris*)
8949          LD="${LD-ld} -m elf_x86_64"
8950          ;;
8951        sparc*-*-solaris*)
8952          LD="${LD-ld} -m elf64_sparc"
8953          ;;
8954        esac
8955        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8956        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8957          LD="${LD-ld}_sol2"
8958        fi
8959        ;;
8960      *)
8961	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8962	  LD="${LD-ld} -64"
8963	fi
8964	;;
8965      esac
8966      ;;
8967    esac
8968  fi
8969  rm -rf conftest*
8970  ;;
8971esac
8972
8973need_locks="$enable_libtool_lock"
8974
8975if test -n "$ac_tool_prefix"; then
8976  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8977set dummy ${ac_tool_prefix}mt; ac_word=$2
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  if test -n "$MANIFEST_TOOL"; then
8984  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989  IFS=$as_save_IFS
8990  test -z "$as_dir" && as_dir=.
8991    for ac_exec_ext in '' $ac_executable_extensions; do
8992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995    break 2
8996  fi
8997done
8998  done
8999IFS=$as_save_IFS
9000
9001fi
9002fi
9003MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9004if test -n "$MANIFEST_TOOL"; then
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9006$as_echo "$MANIFEST_TOOL" >&6; }
9007else
9008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9010fi
9011
9012
9013fi
9014if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9015  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9016  # Extract the first word of "mt", so it can be a program name with args.
9017set dummy mt; ac_word=$2
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019$as_echo_n "checking for $ac_word... " >&6; }
9020if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9021  $as_echo_n "(cached) " >&6
9022else
9023  if test -n "$ac_ct_MANIFEST_TOOL"; then
9024  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9025else
9026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027for as_dir in $PATH
9028do
9029  IFS=$as_save_IFS
9030  test -z "$as_dir" && as_dir=.
9031    for ac_exec_ext in '' $ac_executable_extensions; do
9032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035    break 2
9036  fi
9037done
9038  done
9039IFS=$as_save_IFS
9040
9041fi
9042fi
9043ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9044if test -n "$ac_ct_MANIFEST_TOOL"; then
9045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9046$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9047else
9048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049$as_echo "no" >&6; }
9050fi
9051
9052  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9053    MANIFEST_TOOL=":"
9054  else
9055    case $cross_compiling:$ac_tool_warned in
9056yes:)
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059ac_tool_warned=yes ;;
9060esac
9061    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9062  fi
9063else
9064  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9065fi
9066
9067test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9069$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9070if ${lt_cv_path_mainfest_tool+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  lt_cv_path_mainfest_tool=no
9074  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9075  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9076  cat conftest.err >&5
9077  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9078    lt_cv_path_mainfest_tool=yes
9079  fi
9080  rm -f conftest*
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9083$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9084if test "x$lt_cv_path_mainfest_tool" != xyes; then
9085  MANIFEST_TOOL=:
9086fi
9087
9088
9089
9090
9091
9092
9093  case $host_os in
9094    rhapsody* | darwin*)
9095    if test -n "$ac_tool_prefix"; then
9096  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9097set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099$as_echo_n "checking for $ac_word... " >&6; }
9100if ${ac_cv_prog_DSYMUTIL+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  if test -n "$DSYMUTIL"; then
9104  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9105else
9106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107for as_dir in $PATH
9108do
9109  IFS=$as_save_IFS
9110  test -z "$as_dir" && as_dir=.
9111    for ac_exec_ext in '' $ac_executable_extensions; do
9112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115    break 2
9116  fi
9117done
9118  done
9119IFS=$as_save_IFS
9120
9121fi
9122fi
9123DSYMUTIL=$ac_cv_prog_DSYMUTIL
9124if test -n "$DSYMUTIL"; then
9125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9126$as_echo "$DSYMUTIL" >&6; }
9127else
9128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129$as_echo "no" >&6; }
9130fi
9131
9132
9133fi
9134if test -z "$ac_cv_prog_DSYMUTIL"; then
9135  ac_ct_DSYMUTIL=$DSYMUTIL
9136  # Extract the first word of "dsymutil", so it can be a program name with args.
9137set dummy dsymutil; ac_word=$2
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139$as_echo_n "checking for $ac_word... " >&6; }
9140if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  if test -n "$ac_ct_DSYMUTIL"; then
9144  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9145else
9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149  IFS=$as_save_IFS
9150  test -z "$as_dir" && as_dir=.
9151    for ac_exec_ext in '' $ac_executable_extensions; do
9152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155    break 2
9156  fi
9157done
9158  done
9159IFS=$as_save_IFS
9160
9161fi
9162fi
9163ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9164if test -n "$ac_ct_DSYMUTIL"; then
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9166$as_echo "$ac_ct_DSYMUTIL" >&6; }
9167else
9168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
9170fi
9171
9172  if test "x$ac_ct_DSYMUTIL" = x; then
9173    DSYMUTIL=":"
9174  else
9175    case $cross_compiling:$ac_tool_warned in
9176yes:)
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9179ac_tool_warned=yes ;;
9180esac
9181    DSYMUTIL=$ac_ct_DSYMUTIL
9182  fi
9183else
9184  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9185fi
9186
9187    if test -n "$ac_tool_prefix"; then
9188  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9189set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191$as_echo_n "checking for $ac_word... " >&6; }
9192if ${ac_cv_prog_NMEDIT+:} false; then :
9193  $as_echo_n "(cached) " >&6
9194else
9195  if test -n "$NMEDIT"; then
9196  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9197else
9198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $PATH
9200do
9201  IFS=$as_save_IFS
9202  test -z "$as_dir" && as_dir=.
9203    for ac_exec_ext in '' $ac_executable_extensions; do
9204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207    break 2
9208  fi
9209done
9210  done
9211IFS=$as_save_IFS
9212
9213fi
9214fi
9215NMEDIT=$ac_cv_prog_NMEDIT
9216if test -n "$NMEDIT"; then
9217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9218$as_echo "$NMEDIT" >&6; }
9219else
9220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221$as_echo "no" >&6; }
9222fi
9223
9224
9225fi
9226if test -z "$ac_cv_prog_NMEDIT"; then
9227  ac_ct_NMEDIT=$NMEDIT
9228  # Extract the first word of "nmedit", so it can be a program name with args.
9229set dummy nmedit; ac_word=$2
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231$as_echo_n "checking for $ac_word... " >&6; }
9232if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9233  $as_echo_n "(cached) " >&6
9234else
9235  if test -n "$ac_ct_NMEDIT"; then
9236  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9237else
9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239for as_dir in $PATH
9240do
9241  IFS=$as_save_IFS
9242  test -z "$as_dir" && as_dir=.
9243    for ac_exec_ext in '' $ac_executable_extensions; do
9244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9245    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247    break 2
9248  fi
9249done
9250  done
9251IFS=$as_save_IFS
9252
9253fi
9254fi
9255ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9256if test -n "$ac_ct_NMEDIT"; then
9257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9258$as_echo "$ac_ct_NMEDIT" >&6; }
9259else
9260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261$as_echo "no" >&6; }
9262fi
9263
9264  if test "x$ac_ct_NMEDIT" = x; then
9265    NMEDIT=":"
9266  else
9267    case $cross_compiling:$ac_tool_warned in
9268yes:)
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9271ac_tool_warned=yes ;;
9272esac
9273    NMEDIT=$ac_ct_NMEDIT
9274  fi
9275else
9276  NMEDIT="$ac_cv_prog_NMEDIT"
9277fi
9278
9279    if test -n "$ac_tool_prefix"; then
9280  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9281set dummy ${ac_tool_prefix}lipo; ac_word=$2
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283$as_echo_n "checking for $ac_word... " >&6; }
9284if ${ac_cv_prog_LIPO+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  if test -n "$LIPO"; then
9288  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9289else
9290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291for as_dir in $PATH
9292do
9293  IFS=$as_save_IFS
9294  test -z "$as_dir" && as_dir=.
9295    for ac_exec_ext in '' $ac_executable_extensions; do
9296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299    break 2
9300  fi
9301done
9302  done
9303IFS=$as_save_IFS
9304
9305fi
9306fi
9307LIPO=$ac_cv_prog_LIPO
9308if test -n "$LIPO"; then
9309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9310$as_echo "$LIPO" >&6; }
9311else
9312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313$as_echo "no" >&6; }
9314fi
9315
9316
9317fi
9318if test -z "$ac_cv_prog_LIPO"; then
9319  ac_ct_LIPO=$LIPO
9320  # Extract the first word of "lipo", so it can be a program name with args.
9321set dummy lipo; ac_word=$2
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
9324if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  if test -n "$ac_ct_LIPO"; then
9328  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9329else
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333  IFS=$as_save_IFS
9334  test -z "$as_dir" && as_dir=.
9335    for ac_exec_ext in '' $ac_executable_extensions; do
9336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337    ac_cv_prog_ac_ct_LIPO="lipo"
9338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339    break 2
9340  fi
9341done
9342  done
9343IFS=$as_save_IFS
9344
9345fi
9346fi
9347ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9348if test -n "$ac_ct_LIPO"; then
9349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9350$as_echo "$ac_ct_LIPO" >&6; }
9351else
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
9354fi
9355
9356  if test "x$ac_ct_LIPO" = x; then
9357    LIPO=":"
9358  else
9359    case $cross_compiling:$ac_tool_warned in
9360yes:)
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9363ac_tool_warned=yes ;;
9364esac
9365    LIPO=$ac_ct_LIPO
9366  fi
9367else
9368  LIPO="$ac_cv_prog_LIPO"
9369fi
9370
9371    if test -n "$ac_tool_prefix"; then
9372  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9373set dummy ${ac_tool_prefix}otool; ac_word=$2
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
9376if ${ac_cv_prog_OTOOL+:} false; then :
9377  $as_echo_n "(cached) " >&6
9378else
9379  if test -n "$OTOOL"; then
9380  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9381else
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385  IFS=$as_save_IFS
9386  test -z "$as_dir" && as_dir=.
9387    for ac_exec_ext in '' $ac_executable_extensions; do
9388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391    break 2
9392  fi
9393done
9394  done
9395IFS=$as_save_IFS
9396
9397fi
9398fi
9399OTOOL=$ac_cv_prog_OTOOL
9400if test -n "$OTOOL"; then
9401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9402$as_echo "$OTOOL" >&6; }
9403else
9404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
9406fi
9407
9408
9409fi
9410if test -z "$ac_cv_prog_OTOOL"; then
9411  ac_ct_OTOOL=$OTOOL
9412  # Extract the first word of "otool", so it can be a program name with args.
9413set dummy otool; ac_word=$2
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9417  $as_echo_n "(cached) " >&6
9418else
9419  if test -n "$ac_ct_OTOOL"; then
9420  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425  IFS=$as_save_IFS
9426  test -z "$as_dir" && as_dir=.
9427    for ac_exec_ext in '' $ac_executable_extensions; do
9428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9429    ac_cv_prog_ac_ct_OTOOL="otool"
9430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431    break 2
9432  fi
9433done
9434  done
9435IFS=$as_save_IFS
9436
9437fi
9438fi
9439ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9440if test -n "$ac_ct_OTOOL"; then
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9442$as_echo "$ac_ct_OTOOL" >&6; }
9443else
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9446fi
9447
9448  if test "x$ac_ct_OTOOL" = x; then
9449    OTOOL=":"
9450  else
9451    case $cross_compiling:$ac_tool_warned in
9452yes:)
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9455ac_tool_warned=yes ;;
9456esac
9457    OTOOL=$ac_ct_OTOOL
9458  fi
9459else
9460  OTOOL="$ac_cv_prog_OTOOL"
9461fi
9462
9463    if test -n "$ac_tool_prefix"; then
9464  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9465set dummy ${ac_tool_prefix}otool64; ac_word=$2
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467$as_echo_n "checking for $ac_word... " >&6; }
9468if ${ac_cv_prog_OTOOL64+:} false; then :
9469  $as_echo_n "(cached) " >&6
9470else
9471  if test -n "$OTOOL64"; then
9472  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9473else
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477  IFS=$as_save_IFS
9478  test -z "$as_dir" && as_dir=.
9479    for ac_exec_ext in '' $ac_executable_extensions; do
9480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483    break 2
9484  fi
9485done
9486  done
9487IFS=$as_save_IFS
9488
9489fi
9490fi
9491OTOOL64=$ac_cv_prog_OTOOL64
9492if test -n "$OTOOL64"; then
9493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9494$as_echo "$OTOOL64" >&6; }
9495else
9496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497$as_echo "no" >&6; }
9498fi
9499
9500
9501fi
9502if test -z "$ac_cv_prog_OTOOL64"; then
9503  ac_ct_OTOOL64=$OTOOL64
9504  # Extract the first word of "otool64", so it can be a program name with args.
9505set dummy otool64; ac_word=$2
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
9508if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  if test -n "$ac_ct_OTOOL64"; then
9512  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517  IFS=$as_save_IFS
9518  test -z "$as_dir" && as_dir=.
9519    for ac_exec_ext in '' $ac_executable_extensions; do
9520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521    ac_cv_prog_ac_ct_OTOOL64="otool64"
9522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523    break 2
9524  fi
9525done
9526  done
9527IFS=$as_save_IFS
9528
9529fi
9530fi
9531ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9532if test -n "$ac_ct_OTOOL64"; then
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9534$as_echo "$ac_ct_OTOOL64" >&6; }
9535else
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540  if test "x$ac_ct_OTOOL64" = x; then
9541    OTOOL64=":"
9542  else
9543    case $cross_compiling:$ac_tool_warned in
9544yes:)
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9547ac_tool_warned=yes ;;
9548esac
9549    OTOOL64=$ac_ct_OTOOL64
9550  fi
9551else
9552  OTOOL64="$ac_cv_prog_OTOOL64"
9553fi
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9582$as_echo_n "checking for -single_module linker flag... " >&6; }
9583if ${lt_cv_apple_cc_single_mod+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  lt_cv_apple_cc_single_mod=no
9587      if test -z "${LT_MULTI_MODULE}"; then
9588	# By default we will add the -single_module flag. You can override
9589	# by either setting the environment variable LT_MULTI_MODULE
9590	# non-empty at configure time, or by adding -multi_module to the
9591	# link flags.
9592	rm -rf libconftest.dylib*
9593	echo "int foo(void){return 1;}" > conftest.c
9594	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9595-dynamiclib -Wl,-single_module conftest.c" >&5
9596	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9597	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9598        _lt_result=$?
9599	# If there is a non-empty error log, and "single_module"
9600	# appears in it, assume the flag caused a linker warning
9601        if test -s conftest.err && $GREP single_module conftest.err; then
9602	  cat conftest.err >&5
9603	# Otherwise, if the output was created with a 0 exit code from
9604	# the compiler, it worked.
9605	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9606	  lt_cv_apple_cc_single_mod=yes
9607	else
9608	  cat conftest.err >&5
9609	fi
9610	rm -rf libconftest.dylib*
9611	rm -f conftest.*
9612      fi
9613fi
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9615$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9616
9617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9618$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9619if ${lt_cv_ld_exported_symbols_list+:} false; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  lt_cv_ld_exported_symbols_list=no
9623      save_LDFLAGS=$LDFLAGS
9624      echo "_main" > conftest.sym
9625      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628
9629int
9630main ()
9631{
9632
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638  lt_cv_ld_exported_symbols_list=yes
9639else
9640  lt_cv_ld_exported_symbols_list=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643    conftest$ac_exeext conftest.$ac_ext
9644	LDFLAGS="$save_LDFLAGS"
9645
9646fi
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9648$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9649
9650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9651$as_echo_n "checking for -force_load linker flag... " >&6; }
9652if ${lt_cv_ld_force_load+:} false; then :
9653  $as_echo_n "(cached) " >&6
9654else
9655  lt_cv_ld_force_load=no
9656      cat > conftest.c << _LT_EOF
9657int forced_loaded() { return 2;}
9658_LT_EOF
9659      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9660      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9661      echo "$AR cru libconftest.a conftest.o" >&5
9662      $AR cru libconftest.a conftest.o 2>&5
9663      echo "$RANLIB libconftest.a" >&5
9664      $RANLIB libconftest.a 2>&5
9665      cat > conftest.c << _LT_EOF
9666int main() { return 0;}
9667_LT_EOF
9668      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9669      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9670      _lt_result=$?
9671      if test -s conftest.err && $GREP force_load conftest.err; then
9672	cat conftest.err >&5
9673      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9674	lt_cv_ld_force_load=yes
9675      else
9676	cat conftest.err >&5
9677      fi
9678        rm -f conftest.err libconftest.a conftest conftest.c
9679        rm -rf conftest.dSYM
9680
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9683$as_echo "$lt_cv_ld_force_load" >&6; }
9684    case $host_os in
9685    rhapsody* | darwin1.[012])
9686      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9687    darwin1.*)
9688      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9689    darwin*) # darwin 5.x on
9690      # if running on 10.5 or later, the deployment target defaults
9691      # to the OS version, if on x86, and 10.4, the deployment
9692      # target defaults to 10.4. Don't you love it?
9693      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9694	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9695	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9696	10.[012]*)
9697	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9698	10.*)
9699	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9700      esac
9701    ;;
9702  esac
9703    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9704      _lt_dar_single_mod='$single_module'
9705    fi
9706    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9707      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9708    else
9709      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9710    fi
9711    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9712      _lt_dsymutil='~$DSYMUTIL $lib || :'
9713    else
9714      _lt_dsymutil=
9715    fi
9716    ;;
9717  esac
9718
9719for ac_header in dlfcn.h
9720do :
9721  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9722"
9723if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9724  cat >>confdefs.h <<_ACEOF
9725#define HAVE_DLFCN_H 1
9726_ACEOF
9727
9728fi
9729
9730done
9731
9732
9733
9734
9735
9736
9737
9738# Set options
9739
9740
9741
9742        enable_dlopen=no
9743
9744
9745  enable_win32_dll=no
9746
9747
9748            # Check whether --enable-shared was given.
9749if test "${enable_shared+set}" = set; then :
9750  enableval=$enable_shared; p=${PACKAGE-default}
9751    case $enableval in
9752    yes) enable_shared=yes ;;
9753    no) enable_shared=no ;;
9754    *)
9755      enable_shared=no
9756      # Look at the argument we got.  We use all the common list separators.
9757      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9758      for pkg in $enableval; do
9759	IFS="$lt_save_ifs"
9760	if test "X$pkg" = "X$p"; then
9761	  enable_shared=yes
9762	fi
9763      done
9764      IFS="$lt_save_ifs"
9765      ;;
9766    esac
9767else
9768  enable_shared=yes
9769fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779  # Check whether --enable-static was given.
9780if test "${enable_static+set}" = set; then :
9781  enableval=$enable_static; p=${PACKAGE-default}
9782    case $enableval in
9783    yes) enable_static=yes ;;
9784    no) enable_static=no ;;
9785    *)
9786     enable_static=no
9787      # Look at the argument we got.  We use all the common list separators.
9788      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9789      for pkg in $enableval; do
9790	IFS="$lt_save_ifs"
9791	if test "X$pkg" = "X$p"; then
9792	  enable_static=yes
9793	fi
9794      done
9795      IFS="$lt_save_ifs"
9796      ;;
9797    esac
9798else
9799  enable_static=yes
9800fi
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811# Check whether --with-pic was given.
9812if test "${with_pic+set}" = set; then :
9813  withval=$with_pic; lt_p=${PACKAGE-default}
9814    case $withval in
9815    yes|no) pic_mode=$withval ;;
9816    *)
9817      pic_mode=default
9818      # Look at the argument we got.  We use all the common list separators.
9819      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9820      for lt_pkg in $withval; do
9821	IFS="$lt_save_ifs"
9822	if test "X$lt_pkg" = "X$lt_p"; then
9823	  pic_mode=yes
9824	fi
9825      done
9826      IFS="$lt_save_ifs"
9827      ;;
9828    esac
9829else
9830  pic_mode=default
9831fi
9832
9833
9834test -z "$pic_mode" && pic_mode=default
9835
9836
9837
9838
9839
9840
9841
9842  # Check whether --enable-fast-install was given.
9843if test "${enable_fast_install+set}" = set; then :
9844  enableval=$enable_fast_install; p=${PACKAGE-default}
9845    case $enableval in
9846    yes) enable_fast_install=yes ;;
9847    no) enable_fast_install=no ;;
9848    *)
9849      enable_fast_install=no
9850      # Look at the argument we got.  We use all the common list separators.
9851      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9852      for pkg in $enableval; do
9853	IFS="$lt_save_ifs"
9854	if test "X$pkg" = "X$p"; then
9855	  enable_fast_install=yes
9856	fi
9857      done
9858      IFS="$lt_save_ifs"
9859      ;;
9860    esac
9861else
9862  enable_fast_install=yes
9863fi
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875# This can be used to rebuild libtool when needed
9876LIBTOOL_DEPS="$ltmain"
9877
9878# Always use our own libtool.
9879LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910test -z "$LN_S" && LN_S="ln -s"
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925if test -n "${ZSH_VERSION+set}" ; then
9926   setopt NO_GLOB_SUBST
9927fi
9928
9929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9930$as_echo_n "checking for objdir... " >&6; }
9931if ${lt_cv_objdir+:} false; then :
9932  $as_echo_n "(cached) " >&6
9933else
9934  rm -f .libs 2>/dev/null
9935mkdir .libs 2>/dev/null
9936if test -d .libs; then
9937  lt_cv_objdir=.libs
9938else
9939  # MS-DOS does not allow filenames that begin with a dot.
9940  lt_cv_objdir=_libs
9941fi
9942rmdir .libs 2>/dev/null
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9945$as_echo "$lt_cv_objdir" >&6; }
9946objdir=$lt_cv_objdir
9947
9948
9949
9950
9951
9952cat >>confdefs.h <<_ACEOF
9953#define LT_OBJDIR "$lt_cv_objdir/"
9954_ACEOF
9955
9956
9957
9958
9959case $host_os in
9960aix3*)
9961  # AIX sometimes has problems with the GCC collect2 program.  For some
9962  # reason, if we set the COLLECT_NAMES environment variable, the problems
9963  # vanish in a puff of smoke.
9964  if test "X${COLLECT_NAMES+set}" != Xset; then
9965    COLLECT_NAMES=
9966    export COLLECT_NAMES
9967  fi
9968  ;;
9969esac
9970
9971# Global variables:
9972ofile=libtool
9973can_build_shared=yes
9974
9975# All known linkers require a `.a' archive for static linking (except MSVC,
9976# which needs '.lib').
9977libext=a
9978
9979with_gnu_ld="$lt_cv_prog_gnu_ld"
9980
9981old_CC="$CC"
9982old_CFLAGS="$CFLAGS"
9983
9984# Set sane defaults for various variables
9985test -z "$CC" && CC=cc
9986test -z "$LTCC" && LTCC=$CC
9987test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9988test -z "$LD" && LD=ld
9989test -z "$ac_objext" && ac_objext=o
9990
9991for cc_temp in $compiler""; do
9992  case $cc_temp in
9993    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9994    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9995    \-*) ;;
9996    *) break;;
9997  esac
9998done
9999cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10000
10001
10002# Only perform the check for file, if the check method requires it
10003test -z "$MAGIC_CMD" && MAGIC_CMD=file
10004case $deplibs_check_method in
10005file_magic*)
10006  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10008$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10009if ${lt_cv_path_MAGIC_CMD+:} false; then :
10010  $as_echo_n "(cached) " >&6
10011else
10012  case $MAGIC_CMD in
10013[\\/*] |  ?:[\\/]*)
10014  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10015  ;;
10016*)
10017  lt_save_MAGIC_CMD="$MAGIC_CMD"
10018  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10019  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10020  for ac_dir in $ac_dummy; do
10021    IFS="$lt_save_ifs"
10022    test -z "$ac_dir" && ac_dir=.
10023    if test -f $ac_dir/${ac_tool_prefix}file; then
10024      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10025      if test -n "$file_magic_test_file"; then
10026	case $deplibs_check_method in
10027	"file_magic "*)
10028	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10029	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10030	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10031	    $EGREP "$file_magic_regex" > /dev/null; then
10032	    :
10033	  else
10034	    cat <<_LT_EOF 1>&2
10035
10036*** Warning: the command libtool uses to detect shared libraries,
10037*** $file_magic_cmd, produces output that libtool cannot recognize.
10038*** The result is that libtool may fail to recognize shared libraries
10039*** as such.  This will affect the creation of libtool libraries that
10040*** depend on shared libraries, but programs linked with such libtool
10041*** libraries will work regardless of this problem.  Nevertheless, you
10042*** may want to report the problem to your system manager and/or to
10043*** bug-libtool@gnu.org
10044
10045_LT_EOF
10046	  fi ;;
10047	esac
10048      fi
10049      break
10050    fi
10051  done
10052  IFS="$lt_save_ifs"
10053  MAGIC_CMD="$lt_save_MAGIC_CMD"
10054  ;;
10055esac
10056fi
10057
10058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10059if test -n "$MAGIC_CMD"; then
10060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10061$as_echo "$MAGIC_CMD" >&6; }
10062else
10063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
10065fi
10066
10067
10068
10069
10070
10071if test -z "$lt_cv_path_MAGIC_CMD"; then
10072  if test -n "$ac_tool_prefix"; then
10073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10074$as_echo_n "checking for file... " >&6; }
10075if ${lt_cv_path_MAGIC_CMD+:} false; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  case $MAGIC_CMD in
10079[\\/*] |  ?:[\\/]*)
10080  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10081  ;;
10082*)
10083  lt_save_MAGIC_CMD="$MAGIC_CMD"
10084  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10085  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10086  for ac_dir in $ac_dummy; do
10087    IFS="$lt_save_ifs"
10088    test -z "$ac_dir" && ac_dir=.
10089    if test -f $ac_dir/file; then
10090      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10091      if test -n "$file_magic_test_file"; then
10092	case $deplibs_check_method in
10093	"file_magic "*)
10094	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10095	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10096	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10097	    $EGREP "$file_magic_regex" > /dev/null; then
10098	    :
10099	  else
10100	    cat <<_LT_EOF 1>&2
10101
10102*** Warning: the command libtool uses to detect shared libraries,
10103*** $file_magic_cmd, produces output that libtool cannot recognize.
10104*** The result is that libtool may fail to recognize shared libraries
10105*** as such.  This will affect the creation of libtool libraries that
10106*** depend on shared libraries, but programs linked with such libtool
10107*** libraries will work regardless of this problem.  Nevertheless, you
10108*** may want to report the problem to your system manager and/or to
10109*** bug-libtool@gnu.org
10110
10111_LT_EOF
10112	  fi ;;
10113	esac
10114      fi
10115      break
10116    fi
10117  done
10118  IFS="$lt_save_ifs"
10119  MAGIC_CMD="$lt_save_MAGIC_CMD"
10120  ;;
10121esac
10122fi
10123
10124MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10125if test -n "$MAGIC_CMD"; then
10126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10127$as_echo "$MAGIC_CMD" >&6; }
10128else
10129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
10131fi
10132
10133
10134  else
10135    MAGIC_CMD=:
10136  fi
10137fi
10138
10139  fi
10140  ;;
10141esac
10142
10143# Use C for the default configuration in the libtool script
10144
10145lt_save_CC="$CC"
10146ac_ext=c
10147ac_cpp='$CPP $CPPFLAGS'
10148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10150ac_compiler_gnu=$ac_cv_c_compiler_gnu
10151
10152
10153# Source file extension for C test sources.
10154ac_ext=c
10155
10156# Object file extension for compiled C test sources.
10157objext=o
10158objext=$objext
10159
10160# Code to be used in simple compile tests
10161lt_simple_compile_test_code="int some_variable = 0;"
10162
10163# Code to be used in simple link tests
10164lt_simple_link_test_code='int main(){return(0);}'
10165
10166
10167
10168
10169
10170
10171
10172# If no C compiler was specified, use CC.
10173LTCC=${LTCC-"$CC"}
10174
10175# If no C compiler flags were specified, use CFLAGS.
10176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10177
10178# Allow CC to be a program name with arguments.
10179compiler=$CC
10180
10181# Save the default compiler, since it gets overwritten when the other
10182# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10183compiler_DEFAULT=$CC
10184
10185# save warnings/boilerplate of simple test code
10186ac_outfile=conftest.$ac_objext
10187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10189_lt_compiler_boilerplate=`cat conftest.err`
10190$RM conftest*
10191
10192ac_outfile=conftest.$ac_objext
10193echo "$lt_simple_link_test_code" >conftest.$ac_ext
10194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10195_lt_linker_boilerplate=`cat conftest.err`
10196$RM -r conftest*
10197
10198
10199if test -n "$compiler"; then
10200
10201lt_prog_compiler_no_builtin_flag=
10202
10203if test "$GCC" = yes; then
10204  case $cc_basename in
10205  nvcc*)
10206    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10207  *)
10208    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10209  esac
10210
10211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10212$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10213if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  lt_cv_prog_compiler_rtti_exceptions=no
10217   ac_outfile=conftest.$ac_objext
10218   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219   lt_compiler_flag="-fno-rtti -fno-exceptions"
10220   # Insert the option either (1) after the last *FLAGS variable, or
10221   # (2) before a word containing "conftest.", or (3) at the end.
10222   # Note that $ac_compile itself does not contain backslashes and begins
10223   # with a dollar sign (not a hyphen), so the echo should work correctly.
10224   # The option is referenced via a variable to avoid confusing sed.
10225   lt_compile=`echo "$ac_compile" | $SED \
10226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228   -e 's:$: $lt_compiler_flag:'`
10229   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10230   (eval "$lt_compile" 2>conftest.err)
10231   ac_status=$?
10232   cat conftest.err >&5
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   if (exit $ac_status) && test -s "$ac_outfile"; then
10235     # The compiler can only warn and ignore the option if not recognized
10236     # So say no if there are warnings other than the usual output.
10237     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10238     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10239     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10240       lt_cv_prog_compiler_rtti_exceptions=yes
10241     fi
10242   fi
10243   $RM conftest*
10244
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10247$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10248
10249if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10250    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10251else
10252    :
10253fi
10254
10255fi
10256
10257
10258
10259
10260
10261
10262  lt_prog_compiler_wl=
10263lt_prog_compiler_pic=
10264lt_prog_compiler_static=
10265
10266
10267  if test "$GCC" = yes; then
10268    lt_prog_compiler_wl='-Wl,'
10269    lt_prog_compiler_static='-static'
10270
10271    case $host_os in
10272      aix*)
10273      # All AIX code is PIC.
10274      if test "$host_cpu" = ia64; then
10275	# AIX 5 now supports IA64 processor
10276	lt_prog_compiler_static='-Bstatic'
10277      fi
10278      ;;
10279
10280    amigaos*)
10281      case $host_cpu in
10282      powerpc)
10283            # see comment about AmigaOS4 .so support
10284            lt_prog_compiler_pic='-fPIC'
10285        ;;
10286      m68k)
10287            # FIXME: we need at least 68020 code to build shared libraries, but
10288            # adding the `-m68020' flag to GCC prevents building anything better,
10289            # like `-m68040'.
10290            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10291        ;;
10292      esac
10293      ;;
10294
10295    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10296      # PIC is the default for these OSes.
10297      ;;
10298
10299    mingw* | cygwin* | pw32* | os2* | cegcc*)
10300      # This hack is so that the source file can tell whether it is being
10301      # built for inclusion in a dll (and should export symbols for example).
10302      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10303      # (--disable-auto-import) libraries
10304      lt_prog_compiler_pic='-DDLL_EXPORT'
10305      ;;
10306
10307    darwin* | rhapsody*)
10308      # PIC is the default on this platform
10309      # Common symbols not allowed in MH_DYLIB files
10310      lt_prog_compiler_pic='-fno-common'
10311      ;;
10312
10313    haiku*)
10314      # PIC is the default for Haiku.
10315      # The "-static" flag exists, but is broken.
10316      lt_prog_compiler_static=
10317      ;;
10318
10319    hpux*)
10320      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10321      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10322      # sets the default TLS model and affects inlining.
10323      case $host_cpu in
10324      hppa*64*)
10325	# +Z the default
10326	;;
10327      *)
10328	lt_prog_compiler_pic='-fPIC'
10329	;;
10330      esac
10331      ;;
10332
10333    interix[3-9]*)
10334      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10335      # Instead, we relocate shared libraries at runtime.
10336      ;;
10337
10338    msdosdjgpp*)
10339      # Just because we use GCC doesn't mean we suddenly get shared libraries
10340      # on systems that don't support them.
10341      lt_prog_compiler_can_build_shared=no
10342      enable_shared=no
10343      ;;
10344
10345    *nto* | *qnx*)
10346      # QNX uses GNU C++, but need to define -shared option too, otherwise
10347      # it will coredump.
10348      lt_prog_compiler_pic='-fPIC -shared'
10349      ;;
10350
10351    sysv4*MP*)
10352      if test -d /usr/nec; then
10353	lt_prog_compiler_pic=-Kconform_pic
10354      fi
10355      ;;
10356
10357    *)
10358      lt_prog_compiler_pic='-fPIC'
10359      ;;
10360    esac
10361
10362    case $cc_basename in
10363    nvcc*) # Cuda Compiler Driver 2.2
10364      lt_prog_compiler_wl='-Xlinker '
10365      if test -n "$lt_prog_compiler_pic"; then
10366        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10367      fi
10368      ;;
10369    esac
10370  else
10371    # PORTME Check for flag to pass linker flags through the system compiler.
10372    case $host_os in
10373    aix*)
10374      lt_prog_compiler_wl='-Wl,'
10375      if test "$host_cpu" = ia64; then
10376	# AIX 5 now supports IA64 processor
10377	lt_prog_compiler_static='-Bstatic'
10378      else
10379	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10380      fi
10381      ;;
10382
10383    mingw* | cygwin* | pw32* | os2* | cegcc*)
10384      # This hack is so that the source file can tell whether it is being
10385      # built for inclusion in a dll (and should export symbols for example).
10386      lt_prog_compiler_pic='-DDLL_EXPORT'
10387      ;;
10388
10389    hpux9* | hpux10* | hpux11*)
10390      lt_prog_compiler_wl='-Wl,'
10391      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10392      # not for PA HP-UX.
10393      case $host_cpu in
10394      hppa*64*|ia64*)
10395	# +Z the default
10396	;;
10397      *)
10398	lt_prog_compiler_pic='+Z'
10399	;;
10400      esac
10401      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10402      lt_prog_compiler_static='${wl}-a ${wl}archive'
10403      ;;
10404
10405    irix5* | irix6* | nonstopux*)
10406      lt_prog_compiler_wl='-Wl,'
10407      # PIC (with -KPIC) is the default.
10408      lt_prog_compiler_static='-non_shared'
10409      ;;
10410
10411    linux* | k*bsd*-gnu | kopensolaris*-gnu)
10412      case $cc_basename in
10413      # old Intel for x86_64 which still supported -KPIC.
10414      ecc*)
10415	lt_prog_compiler_wl='-Wl,'
10416	lt_prog_compiler_pic='-KPIC'
10417	lt_prog_compiler_static='-static'
10418        ;;
10419      # icc used to be incompatible with GCC.
10420      # ICC 10 doesn't accept -KPIC any more.
10421      icc* | ifort*)
10422	lt_prog_compiler_wl='-Wl,'
10423	lt_prog_compiler_pic='-fPIC'
10424	lt_prog_compiler_static='-static'
10425        ;;
10426      # Lahey Fortran 8.1.
10427      lf95*)
10428	lt_prog_compiler_wl='-Wl,'
10429	lt_prog_compiler_pic='--shared'
10430	lt_prog_compiler_static='--static'
10431	;;
10432      nagfor*)
10433	# NAG Fortran compiler
10434	lt_prog_compiler_wl='-Wl,-Wl,,'
10435	lt_prog_compiler_pic='-PIC'
10436	lt_prog_compiler_static='-Bstatic'
10437	;;
10438      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10439        # Portland Group compilers (*not* the Pentium gcc compiler,
10440	# which looks to be a dead project)
10441	lt_prog_compiler_wl='-Wl,'
10442	lt_prog_compiler_pic='-fpic'
10443	lt_prog_compiler_static='-Bstatic'
10444        ;;
10445      ccc*)
10446        lt_prog_compiler_wl='-Wl,'
10447        # All Alpha code is PIC.
10448        lt_prog_compiler_static='-non_shared'
10449        ;;
10450      xl* | bgxl* | bgf* | mpixl*)
10451	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10452	lt_prog_compiler_wl='-Wl,'
10453	lt_prog_compiler_pic='-qpic'
10454	lt_prog_compiler_static='-qstaticlink'
10455	;;
10456      *)
10457	case `$CC -V 2>&1 | sed 5q` in
10458	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10459	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10460	  lt_prog_compiler_pic='-KPIC'
10461	  lt_prog_compiler_static='-Bstatic'
10462	  lt_prog_compiler_wl=''
10463	  ;;
10464	*Sun\ F* | *Sun*Fortran*)
10465	  lt_prog_compiler_pic='-KPIC'
10466	  lt_prog_compiler_static='-Bstatic'
10467	  lt_prog_compiler_wl='-Qoption ld '
10468	  ;;
10469	*Sun\ C*)
10470	  # Sun C 5.9
10471	  lt_prog_compiler_pic='-KPIC'
10472	  lt_prog_compiler_static='-Bstatic'
10473	  lt_prog_compiler_wl='-Wl,'
10474	  ;;
10475        *Intel*\ [CF]*Compiler*)
10476	  lt_prog_compiler_wl='-Wl,'
10477	  lt_prog_compiler_pic='-fPIC'
10478	  lt_prog_compiler_static='-static'
10479	  ;;
10480	*Portland\ Group*)
10481	  lt_prog_compiler_wl='-Wl,'
10482	  lt_prog_compiler_pic='-fpic'
10483	  lt_prog_compiler_static='-Bstatic'
10484	  ;;
10485	esac
10486	;;
10487      esac
10488      ;;
10489
10490    newsos6)
10491      lt_prog_compiler_pic='-KPIC'
10492      lt_prog_compiler_static='-Bstatic'
10493      ;;
10494
10495    *nto* | *qnx*)
10496      # QNX uses GNU C++, but need to define -shared option too, otherwise
10497      # it will coredump.
10498      lt_prog_compiler_pic='-fPIC -shared'
10499      ;;
10500
10501    osf3* | osf4* | osf5*)
10502      lt_prog_compiler_wl='-Wl,'
10503      # All OSF/1 code is PIC.
10504      lt_prog_compiler_static='-non_shared'
10505      ;;
10506
10507    rdos*)
10508      lt_prog_compiler_static='-non_shared'
10509      ;;
10510
10511    solaris*)
10512      lt_prog_compiler_pic='-KPIC'
10513      lt_prog_compiler_static='-Bstatic'
10514      case $cc_basename in
10515      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10516	lt_prog_compiler_wl='-Qoption ld ';;
10517      *)
10518	lt_prog_compiler_wl='-Wl,';;
10519      esac
10520      ;;
10521
10522    sunos4*)
10523      lt_prog_compiler_wl='-Qoption ld '
10524      lt_prog_compiler_pic='-PIC'
10525      lt_prog_compiler_static='-Bstatic'
10526      ;;
10527
10528    sysv4 | sysv4.2uw2* | sysv4.3*)
10529      lt_prog_compiler_wl='-Wl,'
10530      lt_prog_compiler_pic='-KPIC'
10531      lt_prog_compiler_static='-Bstatic'
10532      ;;
10533
10534    sysv4*MP*)
10535      if test -d /usr/nec ;then
10536	lt_prog_compiler_pic='-Kconform_pic'
10537	lt_prog_compiler_static='-Bstatic'
10538      fi
10539      ;;
10540
10541    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10542      lt_prog_compiler_wl='-Wl,'
10543      lt_prog_compiler_pic='-KPIC'
10544      lt_prog_compiler_static='-Bstatic'
10545      ;;
10546
10547    unicos*)
10548      lt_prog_compiler_wl='-Wl,'
10549      lt_prog_compiler_can_build_shared=no
10550      ;;
10551
10552    uts4*)
10553      lt_prog_compiler_pic='-pic'
10554      lt_prog_compiler_static='-Bstatic'
10555      ;;
10556
10557    *)
10558      lt_prog_compiler_can_build_shared=no
10559      ;;
10560    esac
10561  fi
10562
10563case $host_os in
10564  # For platforms which do not support PIC, -DPIC is meaningless:
10565  *djgpp*)
10566    lt_prog_compiler_pic=
10567    ;;
10568  *)
10569    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10570    ;;
10571esac
10572
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10574$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10575if ${lt_cv_prog_compiler_pic+:} false; then :
10576  $as_echo_n "(cached) " >&6
10577else
10578  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10581$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10582lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10583
10584#
10585# Check to make sure the PIC flag actually works.
10586#
10587if test -n "$lt_prog_compiler_pic"; then
10588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10590if ${lt_cv_prog_compiler_pic_works+:} false; then :
10591  $as_echo_n "(cached) " >&6
10592else
10593  lt_cv_prog_compiler_pic_works=no
10594   ac_outfile=conftest.$ac_objext
10595   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10596   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10597   # Insert the option either (1) after the last *FLAGS variable, or
10598   # (2) before a word containing "conftest.", or (3) at the end.
10599   # Note that $ac_compile itself does not contain backslashes and begins
10600   # with a dollar sign (not a hyphen), so the echo should work correctly.
10601   # The option is referenced via a variable to avoid confusing sed.
10602   lt_compile=`echo "$ac_compile" | $SED \
10603   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10604   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10605   -e 's:$: $lt_compiler_flag:'`
10606   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10607   (eval "$lt_compile" 2>conftest.err)
10608   ac_status=$?
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   if (exit $ac_status) && test -s "$ac_outfile"; then
10612     # The compiler can only warn and ignore the option if not recognized
10613     # So say no if there are warnings other than the usual output.
10614     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10615     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10616     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10617       lt_cv_prog_compiler_pic_works=yes
10618     fi
10619   fi
10620   $RM conftest*
10621
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10624$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10625
10626if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10627    case $lt_prog_compiler_pic in
10628     "" | " "*) ;;
10629     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10630     esac
10631else
10632    lt_prog_compiler_pic=
10633     lt_prog_compiler_can_build_shared=no
10634fi
10635
10636fi
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648#
10649# Check to make sure the static flag actually works.
10650#
10651wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10654if ${lt_cv_prog_compiler_static_works+:} false; then :
10655  $as_echo_n "(cached) " >&6
10656else
10657  lt_cv_prog_compiler_static_works=no
10658   save_LDFLAGS="$LDFLAGS"
10659   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10660   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10661   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10662     # The linker can only warn and ignore the option if not recognized
10663     # So say no if there are warnings
10664     if test -s conftest.err; then
10665       # Append any errors to the config.log.
10666       cat conftest.err 1>&5
10667       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10668       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10669       if diff conftest.exp conftest.er2 >/dev/null; then
10670         lt_cv_prog_compiler_static_works=yes
10671       fi
10672     else
10673       lt_cv_prog_compiler_static_works=yes
10674     fi
10675   fi
10676   $RM -r conftest*
10677   LDFLAGS="$save_LDFLAGS"
10678
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10681$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10682
10683if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10684    :
10685else
10686    lt_prog_compiler_static=
10687fi
10688
10689
10690
10691
10692
10693
10694
10695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10697if ${lt_cv_prog_compiler_c_o+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  lt_cv_prog_compiler_c_o=no
10701   $RM -r conftest 2>/dev/null
10702   mkdir conftest
10703   cd conftest
10704   mkdir out
10705   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10706
10707   lt_compiler_flag="-o out/conftest2.$ac_objext"
10708   # Insert the option either (1) after the last *FLAGS variable, or
10709   # (2) before a word containing "conftest.", or (3) at the end.
10710   # Note that $ac_compile itself does not contain backslashes and begins
10711   # with a dollar sign (not a hyphen), so the echo should work correctly.
10712   lt_compile=`echo "$ac_compile" | $SED \
10713   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10714   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10715   -e 's:$: $lt_compiler_flag:'`
10716   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10717   (eval "$lt_compile" 2>out/conftest.err)
10718   ac_status=$?
10719   cat out/conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10722   then
10723     # The compiler can only warn and ignore the option if not recognized
10724     # So say no if there are warnings
10725     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10726     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10727     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10728       lt_cv_prog_compiler_c_o=yes
10729     fi
10730   fi
10731   chmod u+w . 2>&5
10732   $RM conftest*
10733   # SGI C++ compiler will create directory out/ii_files/ for
10734   # template instantiation
10735   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10736   $RM out/* && rmdir out
10737   cd ..
10738   $RM -r conftest
10739   $RM conftest*
10740
10741fi
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10743$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10744
10745
10746
10747
10748
10749
10750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10752if ${lt_cv_prog_compiler_c_o+:} false; then :
10753  $as_echo_n "(cached) " >&6
10754else
10755  lt_cv_prog_compiler_c_o=no
10756   $RM -r conftest 2>/dev/null
10757   mkdir conftest
10758   cd conftest
10759   mkdir out
10760   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10761
10762   lt_compiler_flag="-o out/conftest2.$ac_objext"
10763   # Insert the option either (1) after the last *FLAGS variable, or
10764   # (2) before a word containing "conftest.", or (3) at the end.
10765   # Note that $ac_compile itself does not contain backslashes and begins
10766   # with a dollar sign (not a hyphen), so the echo should work correctly.
10767   lt_compile=`echo "$ac_compile" | $SED \
10768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10770   -e 's:$: $lt_compiler_flag:'`
10771   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10772   (eval "$lt_compile" 2>out/conftest.err)
10773   ac_status=$?
10774   cat out/conftest.err >&5
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10777   then
10778     # The compiler can only warn and ignore the option if not recognized
10779     # So say no if there are warnings
10780     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10781     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10782     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10783       lt_cv_prog_compiler_c_o=yes
10784     fi
10785   fi
10786   chmod u+w . 2>&5
10787   $RM conftest*
10788   # SGI C++ compiler will create directory out/ii_files/ for
10789   # template instantiation
10790   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10791   $RM out/* && rmdir out
10792   cd ..
10793   $RM -r conftest
10794   $RM conftest*
10795
10796fi
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10798$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10799
10800
10801
10802
10803hard_links="nottested"
10804if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10805  # do not overwrite the value of need_locks provided by the user
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10807$as_echo_n "checking if we can lock with hard links... " >&6; }
10808  hard_links=yes
10809  $RM conftest*
10810  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10811  touch conftest.a
10812  ln conftest.a conftest.b 2>&5 || hard_links=no
10813  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10815$as_echo "$hard_links" >&6; }
10816  if test "$hard_links" = no; then
10817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10818$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10819    need_locks=warn
10820  fi
10821else
10822  need_locks=no
10823fi
10824
10825
10826
10827
10828
10829
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10831$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10832
10833  runpath_var=
10834  allow_undefined_flag=
10835  always_export_symbols=no
10836  archive_cmds=
10837  archive_expsym_cmds=
10838  compiler_needs_object=no
10839  enable_shared_with_static_runtimes=no
10840  export_dynamic_flag_spec=
10841  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10842  hardcode_automatic=no
10843  hardcode_direct=no
10844  hardcode_direct_absolute=no
10845  hardcode_libdir_flag_spec=
10846  hardcode_libdir_separator=
10847  hardcode_minus_L=no
10848  hardcode_shlibpath_var=unsupported
10849  inherit_rpath=no
10850  link_all_deplibs=unknown
10851  module_cmds=
10852  module_expsym_cmds=
10853  old_archive_from_new_cmds=
10854  old_archive_from_expsyms_cmds=
10855  thread_safe_flag_spec=
10856  whole_archive_flag_spec=
10857  # include_expsyms should be a list of space-separated symbols to be *always*
10858  # included in the symbol list
10859  include_expsyms=
10860  # exclude_expsyms can be an extended regexp of symbols to exclude
10861  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10862  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10863  # as well as any symbol that contains `d'.
10864  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10865  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10866  # platforms (ab)use it in PIC code, but their linkers get confused if
10867  # the symbol is explicitly referenced.  Since portable code cannot
10868  # rely on this symbol name, it's probably fine to never include it in
10869  # preloaded symbol tables.
10870  # Exclude shared library initialization/finalization symbols.
10871  extract_expsyms_cmds=
10872
10873  case $host_os in
10874  cygwin* | mingw* | pw32* | cegcc*)
10875    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10876    # When not using gcc, we currently assume that we are using
10877    # Microsoft Visual C++.
10878    if test "$GCC" != yes; then
10879      with_gnu_ld=no
10880    fi
10881    ;;
10882  interix*)
10883    # we just hope/assume this is gcc and not c89 (= MSVC++)
10884    with_gnu_ld=yes
10885    ;;
10886  openbsd*)
10887    with_gnu_ld=no
10888    ;;
10889  esac
10890
10891  ld_shlibs=yes
10892
10893  # On some targets, GNU ld is compatible enough with the native linker
10894  # that we're better off using the native interface for both.
10895  lt_use_gnu_ld_interface=no
10896  if test "$with_gnu_ld" = yes; then
10897    case $host_os in
10898      aix*)
10899	# The AIX port of GNU ld has always aspired to compatibility
10900	# with the native linker.  However, as the warning in the GNU ld
10901	# block says, versions before 2.19.5* couldn't really create working
10902	# shared libraries, regardless of the interface used.
10903	case `$LD -v 2>&1` in
10904	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10905	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10906	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10907	  *)
10908	    lt_use_gnu_ld_interface=yes
10909	    ;;
10910	esac
10911	;;
10912      *)
10913	lt_use_gnu_ld_interface=yes
10914	;;
10915    esac
10916  fi
10917
10918  if test "$lt_use_gnu_ld_interface" = yes; then
10919    # If archive_cmds runs LD, not CC, wlarc should be empty
10920    wlarc='${wl}'
10921
10922    # Set some defaults for GNU ld with shared library support. These
10923    # are reset later if shared libraries are not supported. Putting them
10924    # here allows them to be overridden if necessary.
10925    runpath_var=LD_RUN_PATH
10926    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10927    export_dynamic_flag_spec='${wl}--export-dynamic'
10928    # ancient GNU ld didn't support --whole-archive et. al.
10929    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10930      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10931    else
10932      whole_archive_flag_spec=
10933    fi
10934    supports_anon_versioning=no
10935    case `$LD -v 2>&1` in
10936      *GNU\ gold*) supports_anon_versioning=yes ;;
10937      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10938      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10939      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10940      *\ 2.11.*) ;; # other 2.11 versions
10941      *) supports_anon_versioning=yes ;;
10942    esac
10943
10944    # See if GNU ld supports shared libraries.
10945    case $host_os in
10946    aix[3-9]*)
10947      # On AIX/PPC, the GNU linker is very broken
10948      if test "$host_cpu" != ia64; then
10949	ld_shlibs=no
10950	cat <<_LT_EOF 1>&2
10951
10952*** Warning: the GNU linker, at least up to release 2.19, is reported
10953*** to be unable to reliably create shared libraries on AIX.
10954*** Therefore, libtool is disabling shared libraries support.  If you
10955*** really care for shared libraries, you may want to install binutils
10956*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10957*** You will then need to restart the configuration process.
10958
10959_LT_EOF
10960      fi
10961      ;;
10962
10963    amigaos*)
10964      case $host_cpu in
10965      powerpc)
10966            # see comment about AmigaOS4 .so support
10967            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968            archive_expsym_cmds=''
10969        ;;
10970      m68k)
10971            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)'
10972            hardcode_libdir_flag_spec='-L$libdir'
10973            hardcode_minus_L=yes
10974        ;;
10975      esac
10976      ;;
10977
10978    beos*)
10979      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10980	allow_undefined_flag=unsupported
10981	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10982	# support --undefined.  This deserves some investigation.  FIXME
10983	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984      else
10985	ld_shlibs=no
10986      fi
10987      ;;
10988
10989    cygwin* | mingw* | pw32* | cegcc*)
10990      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10991      # as there is no search path for DLLs.
10992      hardcode_libdir_flag_spec='-L$libdir'
10993      export_dynamic_flag_spec='${wl}--export-all-symbols'
10994      allow_undefined_flag=unsupported
10995      always_export_symbols=no
10996      enable_shared_with_static_runtimes=yes
10997      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'
10998      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10999
11000      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11001        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11002	# If the export-symbols file already is a .def file (1st line
11003	# is EXPORTS), use it as is; otherwise, prepend...
11004	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11005	  cp $export_symbols $output_objdir/$soname.def;
11006	else
11007	  echo EXPORTS > $output_objdir/$soname.def;
11008	  cat $export_symbols >> $output_objdir/$soname.def;
11009	fi~
11010	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11011      else
11012	ld_shlibs=no
11013      fi
11014      ;;
11015
11016    haiku*)
11017      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018      link_all_deplibs=yes
11019      ;;
11020
11021    interix[3-9]*)
11022      hardcode_direct=no
11023      hardcode_shlibpath_var=no
11024      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11025      export_dynamic_flag_spec='${wl}-E'
11026      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11027      # Instead, shared libraries are loaded at an image base (0x10000000 by
11028      # default) and relocated if they conflict, which is a slow very memory
11029      # consuming and fragmenting process.  To avoid this, we pick a random,
11030      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11031      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11032      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11033      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'
11034      ;;
11035
11036    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11037      tmp_diet=no
11038      if test "$host_os" = linux-dietlibc; then
11039	case $cc_basename in
11040	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11041	esac
11042      fi
11043      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11044	 && test "$tmp_diet" = no
11045      then
11046	tmp_addflag=' $pic_flag'
11047	tmp_sharedflag='-shared'
11048	case $cc_basename,$host_cpu in
11049        pgcc*)				# Portland Group C compiler
11050	  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'
11051	  tmp_addflag=' $pic_flag'
11052	  ;;
11053	pgf77* | pgf90* | pgf95* | pgfortran*)
11054					# Portland Group f77 and f90 compilers
11055	  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'
11056	  tmp_addflag=' $pic_flag -Mnomain' ;;
11057	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11058	  tmp_addflag=' -i_dynamic' ;;
11059	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11060	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11061	ifc* | ifort*)			# Intel Fortran compiler
11062	  tmp_addflag=' -nofor_main' ;;
11063	lf95*)				# Lahey Fortran 8.1
11064	  whole_archive_flag_spec=
11065	  tmp_sharedflag='--shared' ;;
11066	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11067	  tmp_sharedflag='-qmkshrobj'
11068	  tmp_addflag= ;;
11069	nvcc*)	# Cuda Compiler Driver 2.2
11070	  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'
11071	  compiler_needs_object=yes
11072	  ;;
11073	esac
11074	case `$CC -V 2>&1 | sed 5q` in
11075	*Sun\ C*)			# Sun C 5.9
11076	  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'
11077	  compiler_needs_object=yes
11078	  tmp_sharedflag='-G' ;;
11079	*Sun\ F*)			# Sun Fortran 8.3
11080	  tmp_sharedflag='-G' ;;
11081	esac
11082	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083
11084        if test "x$supports_anon_versioning" = xyes; then
11085          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11086	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11087	    echo "local: *; };" >> $output_objdir/$libname.ver~
11088	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11089        fi
11090
11091	case $cc_basename in
11092	xlf* | bgf* | bgxlf* | mpixlf*)
11093	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11094	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11095	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11096	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11097	  if test "x$supports_anon_versioning" = xyes; then
11098	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11099	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11100	      echo "local: *; };" >> $output_objdir/$libname.ver~
11101	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11102	  fi
11103	  ;;
11104	esac
11105      else
11106        ld_shlibs=no
11107      fi
11108      ;;
11109
11110    netbsd*)
11111      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11112	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11113	wlarc=
11114      else
11115	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11117      fi
11118      ;;
11119
11120    solaris*)
11121      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11122	ld_shlibs=no
11123	cat <<_LT_EOF 1>&2
11124
11125*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11126*** create shared libraries on Solaris systems.  Therefore, libtool
11127*** is disabling shared libraries support.  We urge you to upgrade GNU
11128*** binutils to release 2.9.1 or newer.  Another option is to modify
11129*** your PATH or compiler configuration so that the native linker is
11130*** used, and then restart.
11131
11132_LT_EOF
11133      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11134	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11136      else
11137	ld_shlibs=no
11138      fi
11139      ;;
11140
11141    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11142      case `$LD -v 2>&1` in
11143        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11144	ld_shlibs=no
11145	cat <<_LT_EOF 1>&2
11146
11147*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11148*** reliably create shared libraries on SCO systems.  Therefore, libtool
11149*** is disabling shared libraries support.  We urge you to upgrade GNU
11150*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11151*** your PATH or compiler configuration so that the native linker is
11152*** used, and then restart.
11153
11154_LT_EOF
11155	;;
11156	*)
11157	  # For security reasons, it is highly recommended that you always
11158	  # use absolute paths for naming shared libraries, and exclude the
11159	  # DT_RUNPATH tag from executables and libraries.  But doing so
11160	  # requires that you compile everything twice, which is a pain.
11161	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11162	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11163	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11164	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11165	  else
11166	    ld_shlibs=no
11167	  fi
11168	;;
11169      esac
11170      ;;
11171
11172    sunos4*)
11173      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11174      wlarc=
11175      hardcode_direct=yes
11176      hardcode_shlibpath_var=no
11177      ;;
11178
11179    *)
11180      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11181	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11183      else
11184	ld_shlibs=no
11185      fi
11186      ;;
11187    esac
11188
11189    if test "$ld_shlibs" = no; then
11190      runpath_var=
11191      hardcode_libdir_flag_spec=
11192      export_dynamic_flag_spec=
11193      whole_archive_flag_spec=
11194    fi
11195  else
11196    # PORTME fill in a description of your system's linker (not GNU ld)
11197    case $host_os in
11198    aix3*)
11199      allow_undefined_flag=unsupported
11200      always_export_symbols=yes
11201      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'
11202      # Note: this linker hardcodes the directories in LIBPATH if there
11203      # are no directories specified by -L.
11204      hardcode_minus_L=yes
11205      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11206	# Neither direct hardcoding nor static linking is supported with a
11207	# broken collect2.
11208	hardcode_direct=unsupported
11209      fi
11210      ;;
11211
11212    aix[4-9]*)
11213      if test "$host_cpu" = ia64; then
11214	# On IA64, the linker does run time linking by default, so we don't
11215	# have to do anything special.
11216	aix_use_runtimelinking=no
11217	exp_sym_flag='-Bexport'
11218	no_entry_flag=""
11219      else
11220	# If we're using GNU nm, then we don't want the "-C" option.
11221	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11222	# Also, AIX nm treats weak defined symbols like other global
11223	# defined symbols, whereas GNU nm marks them as "W".
11224	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11225	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11226	else
11227	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11228	fi
11229	aix_use_runtimelinking=no
11230
11231	# Test if we are trying to use run time linking or normal
11232	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11233	# need to do runtime linking.
11234	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11235	  for ld_flag in $LDFLAGS; do
11236	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11237	    aix_use_runtimelinking=yes
11238	    break
11239	  fi
11240	  done
11241	  ;;
11242	esac
11243
11244	exp_sym_flag='-bexport'
11245	no_entry_flag='-bnoentry'
11246      fi
11247
11248      # When large executables or shared objects are built, AIX ld can
11249      # have problems creating the table of contents.  If linking a library
11250      # or program results in "error TOC overflow" add -mminimal-toc to
11251      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11252      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11253
11254      archive_cmds=''
11255      hardcode_direct=yes
11256      hardcode_direct_absolute=yes
11257      hardcode_libdir_separator=':'
11258      link_all_deplibs=yes
11259      file_list_spec='${wl}-f,'
11260
11261      if test "$GCC" = yes; then
11262	case $host_os in aix4.[012]|aix4.[012].*)
11263	# We only want to do this on AIX 4.2 and lower, the check
11264	# below for broken collect2 doesn't work under 4.3+
11265	  collect2name=`${CC} -print-prog-name=collect2`
11266	  if test -f "$collect2name" &&
11267	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11268	  then
11269	  # We have reworked collect2
11270	  :
11271	  else
11272	  # We have old collect2
11273	  hardcode_direct=unsupported
11274	  # It fails to find uninstalled libraries when the uninstalled
11275	  # path is not listed in the libpath.  Setting hardcode_minus_L
11276	  # to unsupported forces relinking
11277	  hardcode_minus_L=yes
11278	  hardcode_libdir_flag_spec='-L$libdir'
11279	  hardcode_libdir_separator=
11280	  fi
11281	  ;;
11282	esac
11283	shared_flag='-shared'
11284	if test "$aix_use_runtimelinking" = yes; then
11285	  shared_flag="$shared_flag "'${wl}-G'
11286	fi
11287      else
11288	# not using gcc
11289	if test "$host_cpu" = ia64; then
11290	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11291	# chokes on -Wl,-G. The following line is correct:
11292	  shared_flag='-G'
11293	else
11294	  if test "$aix_use_runtimelinking" = yes; then
11295	    shared_flag='${wl}-G'
11296	  else
11297	    shared_flag='${wl}-bM:SRE'
11298	  fi
11299	fi
11300      fi
11301
11302      export_dynamic_flag_spec='${wl}-bexpall'
11303      # It seems that -bexpall does not export symbols beginning with
11304      # underscore (_), so it is better to generate a list of symbols to export.
11305      always_export_symbols=yes
11306      if test "$aix_use_runtimelinking" = yes; then
11307	# Warning - without using the other runtime loading flags (-brtl),
11308	# -berok will link without error, but may produce a broken library.
11309	allow_undefined_flag='-berok'
11310        # Determine the default libpath from the value encoded in an
11311        # empty executable.
11312        if test "${lt_cv_aix_libpath+set}" = set; then
11313  aix_libpath=$lt_cv_aix_libpath
11314else
11315  if ${lt_cv_aix_libpath_+:} false; then :
11316  $as_echo_n "(cached) " >&6
11317else
11318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319/* end confdefs.h.  */
11320
11321int
11322main ()
11323{
11324
11325  ;
11326  return 0;
11327}
11328_ACEOF
11329if ac_fn_c_try_link "$LINENO"; then :
11330
11331  lt_aix_libpath_sed='
11332      /Import File Strings/,/^$/ {
11333	  /^0/ {
11334	      s/^0  *\([^ ]*\) *$/\1/
11335	      p
11336	  }
11337      }'
11338  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11339  # Check for a 64-bit object if we didn't find anything.
11340  if test -z "$lt_cv_aix_libpath_"; then
11341    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11342  fi
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345    conftest$ac_exeext conftest.$ac_ext
11346  if test -z "$lt_cv_aix_libpath_"; then
11347    lt_cv_aix_libpath_="/usr/lib:/lib"
11348  fi
11349
11350fi
11351
11352  aix_libpath=$lt_cv_aix_libpath_
11353fi
11354
11355        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11356        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11357      else
11358	if test "$host_cpu" = ia64; then
11359	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11360	  allow_undefined_flag="-z nodefs"
11361	  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"
11362	else
11363	 # Determine the default libpath from the value encoded in an
11364	 # empty executable.
11365	 if test "${lt_cv_aix_libpath+set}" = set; then
11366  aix_libpath=$lt_cv_aix_libpath
11367else
11368  if ${lt_cv_aix_libpath_+:} false; then :
11369  $as_echo_n "(cached) " >&6
11370else
11371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h.  */
11373
11374int
11375main ()
11376{
11377
11378  ;
11379  return 0;
11380}
11381_ACEOF
11382if ac_fn_c_try_link "$LINENO"; then :
11383
11384  lt_aix_libpath_sed='
11385      /Import File Strings/,/^$/ {
11386	  /^0/ {
11387	      s/^0  *\([^ ]*\) *$/\1/
11388	      p
11389	  }
11390      }'
11391  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11392  # Check for a 64-bit object if we didn't find anything.
11393  if test -z "$lt_cv_aix_libpath_"; then
11394    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11395  fi
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398    conftest$ac_exeext conftest.$ac_ext
11399  if test -z "$lt_cv_aix_libpath_"; then
11400    lt_cv_aix_libpath_="/usr/lib:/lib"
11401  fi
11402
11403fi
11404
11405  aix_libpath=$lt_cv_aix_libpath_
11406fi
11407
11408	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11409	  # Warning - without using the other run time loading flags,
11410	  # -berok will link without error, but may produce a broken library.
11411	  no_undefined_flag=' ${wl}-bernotok'
11412	  allow_undefined_flag=' ${wl}-berok'
11413	  if test "$with_gnu_ld" = yes; then
11414	    # We only use this code for GNU lds that support --whole-archive.
11415	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11416	  else
11417	    # Exported symbols can be pulled into shared objects from archives
11418	    whole_archive_flag_spec='$convenience'
11419	  fi
11420	  archive_cmds_need_lc=yes
11421	  # This is similar to how AIX traditionally builds its shared libraries.
11422	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11423	fi
11424      fi
11425      ;;
11426
11427    amigaos*)
11428      case $host_cpu in
11429      powerpc)
11430            # see comment about AmigaOS4 .so support
11431            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432            archive_expsym_cmds=''
11433        ;;
11434      m68k)
11435            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)'
11436            hardcode_libdir_flag_spec='-L$libdir'
11437            hardcode_minus_L=yes
11438        ;;
11439      esac
11440      ;;
11441
11442    bsdi[45]*)
11443      export_dynamic_flag_spec=-rdynamic
11444      ;;
11445
11446    cygwin* | mingw* | pw32* | cegcc*)
11447      # When not using gcc, we currently assume that we are using
11448      # Microsoft Visual C++.
11449      # hardcode_libdir_flag_spec is actually meaningless, as there is
11450      # no search path for DLLs.
11451      case $cc_basename in
11452      cl*)
11453	# Native MSVC
11454	hardcode_libdir_flag_spec=' '
11455	allow_undefined_flag=unsupported
11456	always_export_symbols=yes
11457	file_list_spec='@'
11458	# Tell ltmain to make .lib files, not .a files.
11459	libext=lib
11460	# Tell ltmain to make .dll files, not .so files.
11461	shrext_cmds=".dll"
11462	# FIXME: Setting linknames here is a bad hack.
11463	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11464	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11465	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11466	  else
11467	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11468	  fi~
11469	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11470	  linknames='
11471	# The linker will not automatically build a static lib if we build a DLL.
11472	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11473	enable_shared_with_static_runtimes=yes
11474	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11475	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11476	# Don't use ranlib
11477	old_postinstall_cmds='chmod 644 $oldlib'
11478	postlink_cmds='lt_outputfile="@OUTPUT@"~
11479	  lt_tool_outputfile="@TOOL_OUTPUT@"~
11480	  case $lt_outputfile in
11481	    *.exe|*.EXE) ;;
11482	    *)
11483	      lt_outputfile="$lt_outputfile.exe"
11484	      lt_tool_outputfile="$lt_tool_outputfile.exe"
11485	      ;;
11486	  esac~
11487	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11488	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11489	    $RM "$lt_outputfile.manifest";
11490	  fi'
11491	;;
11492      *)
11493	# Assume MSVC wrapper
11494	hardcode_libdir_flag_spec=' '
11495	allow_undefined_flag=unsupported
11496	# Tell ltmain to make .lib files, not .a files.
11497	libext=lib
11498	# Tell ltmain to make .dll files, not .so files.
11499	shrext_cmds=".dll"
11500	# FIXME: Setting linknames here is a bad hack.
11501	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11502	# The linker will automatically build a .lib file if we build a DLL.
11503	old_archive_from_new_cmds='true'
11504	# FIXME: Should let the user specify the lib program.
11505	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11506	enable_shared_with_static_runtimes=yes
11507	;;
11508      esac
11509      ;;
11510
11511    darwin* | rhapsody*)
11512
11513
11514  archive_cmds_need_lc=no
11515  hardcode_direct=no
11516  hardcode_automatic=yes
11517  hardcode_shlibpath_var=unsupported
11518  if test "$lt_cv_ld_force_load" = "yes"; then
11519    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\"`'
11520
11521  else
11522    whole_archive_flag_spec=''
11523  fi
11524  link_all_deplibs=yes
11525  allow_undefined_flag="$_lt_dar_allow_undefined"
11526  case $cc_basename in
11527     ifort*) _lt_dar_can_shared=yes ;;
11528     *) _lt_dar_can_shared=$GCC ;;
11529  esac
11530  if test "$_lt_dar_can_shared" = "yes"; then
11531    output_verbose_link_cmd=func_echo_all
11532    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11533    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11534    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}"
11535    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}"
11536
11537  else
11538  ld_shlibs=no
11539  fi
11540
11541      ;;
11542
11543    dgux*)
11544      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11545      hardcode_libdir_flag_spec='-L$libdir'
11546      hardcode_shlibpath_var=no
11547      ;;
11548
11549    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11550    # support.  Future versions do this automatically, but an explicit c++rt0.o
11551    # does not break anything, and helps significantly (at the cost of a little
11552    # extra space).
11553    freebsd2.2*)
11554      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11555      hardcode_libdir_flag_spec='-R$libdir'
11556      hardcode_direct=yes
11557      hardcode_shlibpath_var=no
11558      ;;
11559
11560    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11561    freebsd2.*)
11562      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11563      hardcode_direct=yes
11564      hardcode_minus_L=yes
11565      hardcode_shlibpath_var=no
11566      ;;
11567
11568    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11569    freebsd* | dragonfly*)
11570      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571      hardcode_libdir_flag_spec='-R$libdir'
11572      hardcode_direct=yes
11573      hardcode_shlibpath_var=no
11574      ;;
11575
11576    hpux9*)
11577      if test "$GCC" = yes; then
11578	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11579      else
11580	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11581      fi
11582      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11583      hardcode_libdir_separator=:
11584      hardcode_direct=yes
11585
11586      # hardcode_minus_L: Not really in the search PATH,
11587      # but as the default location of the library.
11588      hardcode_minus_L=yes
11589      export_dynamic_flag_spec='${wl}-E'
11590      ;;
11591
11592    hpux10*)
11593      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11594	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11595      else
11596	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11597      fi
11598      if test "$with_gnu_ld" = no; then
11599	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11600	hardcode_libdir_separator=:
11601	hardcode_direct=yes
11602	hardcode_direct_absolute=yes
11603	export_dynamic_flag_spec='${wl}-E'
11604	# hardcode_minus_L: Not really in the search PATH,
11605	# but as the default location of the library.
11606	hardcode_minus_L=yes
11607      fi
11608      ;;
11609
11610    hpux11*)
11611      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11612	case $host_cpu in
11613	hppa*64*)
11614	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11615	  ;;
11616	ia64*)
11617	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11618	  ;;
11619	*)
11620	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11621	  ;;
11622	esac
11623      else
11624	case $host_cpu in
11625	hppa*64*)
11626	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11627	  ;;
11628	ia64*)
11629	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11630	  ;;
11631	*)
11632
11633	  # Older versions of the 11.00 compiler do not understand -b yet
11634	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11635	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11636$as_echo_n "checking if $CC understands -b... " >&6; }
11637if ${lt_cv_prog_compiler__b+:} false; then :
11638  $as_echo_n "(cached) " >&6
11639else
11640  lt_cv_prog_compiler__b=no
11641   save_LDFLAGS="$LDFLAGS"
11642   LDFLAGS="$LDFLAGS -b"
11643   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11644   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11645     # The linker can only warn and ignore the option if not recognized
11646     # So say no if there are warnings
11647     if test -s conftest.err; then
11648       # Append any errors to the config.log.
11649       cat conftest.err 1>&5
11650       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11651       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11652       if diff conftest.exp conftest.er2 >/dev/null; then
11653         lt_cv_prog_compiler__b=yes
11654       fi
11655     else
11656       lt_cv_prog_compiler__b=yes
11657     fi
11658   fi
11659   $RM -r conftest*
11660   LDFLAGS="$save_LDFLAGS"
11661
11662fi
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11664$as_echo "$lt_cv_prog_compiler__b" >&6; }
11665
11666if test x"$lt_cv_prog_compiler__b" = xyes; then
11667    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11668else
11669    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11670fi
11671
11672	  ;;
11673	esac
11674      fi
11675      if test "$with_gnu_ld" = no; then
11676	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11677	hardcode_libdir_separator=:
11678
11679	case $host_cpu in
11680	hppa*64*|ia64*)
11681	  hardcode_direct=no
11682	  hardcode_shlibpath_var=no
11683	  ;;
11684	*)
11685	  hardcode_direct=yes
11686	  hardcode_direct_absolute=yes
11687	  export_dynamic_flag_spec='${wl}-E'
11688
11689	  # hardcode_minus_L: Not really in the search PATH,
11690	  # but as the default location of the library.
11691	  hardcode_minus_L=yes
11692	  ;;
11693	esac
11694      fi
11695      ;;
11696
11697    irix5* | irix6* | nonstopux*)
11698      if test "$GCC" = yes; then
11699	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'
11700	# Try to use the -exported_symbol ld option, if it does not
11701	# work, assume that -exports_file does not work either and
11702	# implicitly export all symbols.
11703	# This should be the same for all languages, so no per-tag cache variable.
11704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11705$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11706if ${lt_cv_irix_exported_symbol+:} false; then :
11707  $as_echo_n "(cached) " >&6
11708else
11709  save_LDFLAGS="$LDFLAGS"
11710	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11711	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h.  */
11713int foo (void) { return 0; }
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716  lt_cv_irix_exported_symbol=yes
11717else
11718  lt_cv_irix_exported_symbol=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721    conftest$ac_exeext conftest.$ac_ext
11722           LDFLAGS="$save_LDFLAGS"
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11725$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11726	if test "$lt_cv_irix_exported_symbol" = yes; then
11727          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'
11728	fi
11729      else
11730	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'
11731	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'
11732      fi
11733      archive_cmds_need_lc='no'
11734      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11735      hardcode_libdir_separator=:
11736      inherit_rpath=yes
11737      link_all_deplibs=yes
11738      ;;
11739
11740    netbsd*)
11741      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11742	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11743      else
11744	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11745      fi
11746      hardcode_libdir_flag_spec='-R$libdir'
11747      hardcode_direct=yes
11748      hardcode_shlibpath_var=no
11749      ;;
11750
11751    newsos6)
11752      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11753      hardcode_direct=yes
11754      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11755      hardcode_libdir_separator=:
11756      hardcode_shlibpath_var=no
11757      ;;
11758
11759    *nto* | *qnx*)
11760      ;;
11761
11762    openbsd*)
11763      if test -f /usr/libexec/ld.so; then
11764	hardcode_direct=yes
11765	hardcode_shlibpath_var=no
11766	hardcode_direct_absolute=yes
11767	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11768	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11769	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11770	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11771	  export_dynamic_flag_spec='${wl}-E'
11772	else
11773	  case $host_os in
11774	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11775	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11776	     hardcode_libdir_flag_spec='-R$libdir'
11777	     ;;
11778	   *)
11779	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11780	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11781	     ;;
11782	  esac
11783	fi
11784      else
11785	ld_shlibs=no
11786      fi
11787      ;;
11788
11789    os2*)
11790      hardcode_libdir_flag_spec='-L$libdir'
11791      hardcode_minus_L=yes
11792      allow_undefined_flag=unsupported
11793      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11794      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11795      ;;
11796
11797    osf3*)
11798      if test "$GCC" = yes; then
11799	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11800	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'
11801      else
11802	allow_undefined_flag=' -expect_unresolved \*'
11803	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'
11804      fi
11805      archive_cmds_need_lc='no'
11806      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11807      hardcode_libdir_separator=:
11808      ;;
11809
11810    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11811      if test "$GCC" = yes; then
11812	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11813	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'
11814	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11815      else
11816	allow_undefined_flag=' -expect_unresolved \*'
11817	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'
11818	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~
11819	$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'
11820
11821	# Both c and cxx compiler support -rpath directly
11822	hardcode_libdir_flag_spec='-rpath $libdir'
11823      fi
11824      archive_cmds_need_lc='no'
11825      hardcode_libdir_separator=:
11826      ;;
11827
11828    solaris*)
11829      no_undefined_flag=' -z defs'
11830      if test "$GCC" = yes; then
11831	wlarc='${wl}'
11832	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11833	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11834	  $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'
11835      else
11836	case `$CC -V 2>&1` in
11837	*"Compilers 5.0"*)
11838	  wlarc=''
11839	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11840	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11841	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11842	  ;;
11843	*)
11844	  wlarc='${wl}'
11845	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11846	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11847	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11848	  ;;
11849	esac
11850      fi
11851      hardcode_libdir_flag_spec='-R$libdir'
11852      hardcode_shlibpath_var=no
11853      case $host_os in
11854      solaris2.[0-5] | solaris2.[0-5].*) ;;
11855      *)
11856	# The compiler driver will combine and reorder linker options,
11857	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11858	# but is careful enough not to reorder.
11859	# Supported since Solaris 2.6 (maybe 2.5.1?)
11860	if test "$GCC" = yes; then
11861	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11862	else
11863	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11864	fi
11865	;;
11866      esac
11867      link_all_deplibs=yes
11868      ;;
11869
11870    sunos4*)
11871      if test "x$host_vendor" = xsequent; then
11872	# Use $CC to link under sequent, because it throws in some extra .o
11873	# files that make .init and .fini sections work.
11874	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11875      else
11876	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11877      fi
11878      hardcode_libdir_flag_spec='-L$libdir'
11879      hardcode_direct=yes
11880      hardcode_minus_L=yes
11881      hardcode_shlibpath_var=no
11882      ;;
11883
11884    sysv4)
11885      case $host_vendor in
11886	sni)
11887	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11888	  hardcode_direct=yes # is this really true???
11889	;;
11890	siemens)
11891	  ## LD is ld it makes a PLAMLIB
11892	  ## CC just makes a GrossModule.
11893	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11894	  reload_cmds='$CC -r -o $output$reload_objs'
11895	  hardcode_direct=no
11896        ;;
11897	motorola)
11898	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11899	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11900	;;
11901      esac
11902      runpath_var='LD_RUN_PATH'
11903      hardcode_shlibpath_var=no
11904      ;;
11905
11906    sysv4.3*)
11907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11908      hardcode_shlibpath_var=no
11909      export_dynamic_flag_spec='-Bexport'
11910      ;;
11911
11912    sysv4*MP*)
11913      if test -d /usr/nec; then
11914	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11915	hardcode_shlibpath_var=no
11916	runpath_var=LD_RUN_PATH
11917	hardcode_runpath_var=yes
11918	ld_shlibs=yes
11919      fi
11920      ;;
11921
11922    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11923      no_undefined_flag='${wl}-z,text'
11924      archive_cmds_need_lc=no
11925      hardcode_shlibpath_var=no
11926      runpath_var='LD_RUN_PATH'
11927
11928      if test "$GCC" = yes; then
11929	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931      else
11932	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934      fi
11935      ;;
11936
11937    sysv5* | sco3.2v5* | sco5v6*)
11938      # Note: We can NOT use -z defs as we might desire, because we do not
11939      # link with -lc, and that would cause any symbols used from libc to
11940      # always be unresolved, which means just about no library would
11941      # ever link correctly.  If we're not using GNU ld we use -z text
11942      # though, which does catch some bad symbols but isn't as heavy-handed
11943      # as -z defs.
11944      no_undefined_flag='${wl}-z,text'
11945      allow_undefined_flag='${wl}-z,nodefs'
11946      archive_cmds_need_lc=no
11947      hardcode_shlibpath_var=no
11948      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11949      hardcode_libdir_separator=':'
11950      link_all_deplibs=yes
11951      export_dynamic_flag_spec='${wl}-Bexport'
11952      runpath_var='LD_RUN_PATH'
11953
11954      if test "$GCC" = yes; then
11955	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957      else
11958	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11959	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960      fi
11961      ;;
11962
11963    uts4*)
11964      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965      hardcode_libdir_flag_spec='-L$libdir'
11966      hardcode_shlibpath_var=no
11967      ;;
11968
11969    *)
11970      ld_shlibs=no
11971      ;;
11972    esac
11973
11974    if test x$host_vendor = xsni; then
11975      case $host in
11976      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11977	export_dynamic_flag_spec='${wl}-Blargedynsym'
11978	;;
11979      esac
11980    fi
11981  fi
11982
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11984$as_echo "$ld_shlibs" >&6; }
11985test "$ld_shlibs" = no && can_build_shared=no
11986
11987with_gnu_ld=$with_gnu_ld
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003#
12004# Do we need to explicitly link libc?
12005#
12006case "x$archive_cmds_need_lc" in
12007x|xyes)
12008  # Assume -lc should be added
12009  archive_cmds_need_lc=yes
12010
12011  if test "$enable_shared" = yes && test "$GCC" = yes; then
12012    case $archive_cmds in
12013    *'~'*)
12014      # FIXME: we may have to deal with multi-command sequences.
12015      ;;
12016    '$CC '*)
12017      # Test whether the compiler implicitly links with -lc since on some
12018      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12019      # to ld, don't add -lc before -lgcc.
12020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12021$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12022if ${lt_cv_archive_cmds_need_lc+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  $RM conftest*
12026	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
12028	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12029  (eval $ac_compile) 2>&5
12030  ac_status=$?
12031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032  test $ac_status = 0; } 2>conftest.err; then
12033	  soname=conftest
12034	  lib=conftest
12035	  libobjs=conftest.$ac_objext
12036	  deplibs=
12037	  wl=$lt_prog_compiler_wl
12038	  pic_flag=$lt_prog_compiler_pic
12039	  compiler_flags=-v
12040	  linker_flags=-v
12041	  verstring=
12042	  output_objdir=.
12043	  libname=conftest
12044	  lt_save_allow_undefined_flag=$allow_undefined_flag
12045	  allow_undefined_flag=
12046	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12047  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12048  ac_status=$?
12049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050  test $ac_status = 0; }
12051	  then
12052	    lt_cv_archive_cmds_need_lc=no
12053	  else
12054	    lt_cv_archive_cmds_need_lc=yes
12055	  fi
12056	  allow_undefined_flag=$lt_save_allow_undefined_flag
12057	else
12058	  cat conftest.err 1>&5
12059	fi
12060	$RM conftest*
12061
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12064$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12065      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12066      ;;
12067    esac
12068  fi
12069  ;;
12070esac
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12224$as_echo_n "checking dynamic linker characteristics... " >&6; }
12225
12226if test "$GCC" = yes; then
12227  case $host_os in
12228    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12229    *) lt_awk_arg="/^libraries:/" ;;
12230  esac
12231  case $host_os in
12232    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12233    *) lt_sed_strip_eq="s,=/,/,g" ;;
12234  esac
12235  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12236  case $lt_search_path_spec in
12237  *\;*)
12238    # if the path contains ";" then we assume it to be the separator
12239    # otherwise default to the standard path separator (i.e. ":") - it is
12240    # assumed that no part of a normal pathname contains ";" but that should
12241    # okay in the real world where ";" in dirpaths is itself problematic.
12242    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12243    ;;
12244  *)
12245    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12246    ;;
12247  esac
12248  # Ok, now we have the path, separated by spaces, we can step through it
12249  # and add multilib dir if necessary.
12250  lt_tmp_lt_search_path_spec=
12251  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12252  for lt_sys_path in $lt_search_path_spec; do
12253    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12254      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12255    else
12256      test -d "$lt_sys_path" && \
12257	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12258    fi
12259  done
12260  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12261BEGIN {RS=" "; FS="/|\n";} {
12262  lt_foo="";
12263  lt_count=0;
12264  for (lt_i = NF; lt_i > 0; lt_i--) {
12265    if ($lt_i != "" && $lt_i != ".") {
12266      if ($lt_i == "..") {
12267        lt_count++;
12268      } else {
12269        if (lt_count == 0) {
12270          lt_foo="/" $lt_i lt_foo;
12271        } else {
12272          lt_count--;
12273        }
12274      }
12275    }
12276  }
12277  if (lt_foo != "") { lt_freq[lt_foo]++; }
12278  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12279}'`
12280  # AWK program above erroneously prepends '/' to C:/dos/paths
12281  # for these hosts.
12282  case $host_os in
12283    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12284      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12285  esac
12286  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12287else
12288  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12289fi
12290library_names_spec=
12291libname_spec='lib$name'
12292soname_spec=
12293shrext_cmds=".so"
12294postinstall_cmds=
12295postuninstall_cmds=
12296finish_cmds=
12297finish_eval=
12298shlibpath_var=
12299shlibpath_overrides_runpath=unknown
12300version_type=none
12301dynamic_linker="$host_os ld.so"
12302sys_lib_dlsearch_path_spec="/lib /usr/lib"
12303need_lib_prefix=unknown
12304hardcode_into_libs=no
12305
12306# when you set need_version to no, make sure it does not cause -set_version
12307# flags to be left without arguments
12308need_version=unknown
12309
12310case $host_os in
12311aix3*)
12312  version_type=linux # correct to gnu/linux during the next big refactor
12313  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12314  shlibpath_var=LIBPATH
12315
12316  # AIX 3 has no versioning support, so we append a major version to the name.
12317  soname_spec='${libname}${release}${shared_ext}$major'
12318  ;;
12319
12320aix[4-9]*)
12321  version_type=linux # correct to gnu/linux during the next big refactor
12322  need_lib_prefix=no
12323  need_version=no
12324  hardcode_into_libs=yes
12325  if test "$host_cpu" = ia64; then
12326    # AIX 5 supports IA64
12327    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12328    shlibpath_var=LD_LIBRARY_PATH
12329  else
12330    # With GCC up to 2.95.x, collect2 would create an import file
12331    # for dependence libraries.  The import file would start with
12332    # the line `#! .'.  This would cause the generated library to
12333    # depend on `.', always an invalid library.  This was fixed in
12334    # development snapshots of GCC prior to 3.0.
12335    case $host_os in
12336      aix4 | aix4.[01] | aix4.[01].*)
12337      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12338	   echo ' yes '
12339	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12340	:
12341      else
12342	can_build_shared=no
12343      fi
12344      ;;
12345    esac
12346    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12347    # soname into executable. Probably we can add versioning support to
12348    # collect2, so additional links can be useful in future.
12349    if test "$aix_use_runtimelinking" = yes; then
12350      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12351      # instead of lib<name>.a to let people know that these are not
12352      # typical AIX shared libraries.
12353      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354    else
12355      # We preserve .a as extension for shared libraries through AIX4.2
12356      # and later when we are not doing run time linking.
12357      library_names_spec='${libname}${release}.a $libname.a'
12358      soname_spec='${libname}${release}${shared_ext}$major'
12359    fi
12360    shlibpath_var=LIBPATH
12361  fi
12362  ;;
12363
12364amigaos*)
12365  case $host_cpu in
12366  powerpc)
12367    # Since July 2007 AmigaOS4 officially supports .so libraries.
12368    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370    ;;
12371  m68k)
12372    library_names_spec='$libname.ixlibrary $libname.a'
12373    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12374    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12375    ;;
12376  esac
12377  ;;
12378
12379beos*)
12380  library_names_spec='${libname}${shared_ext}'
12381  dynamic_linker="$host_os ld.so"
12382  shlibpath_var=LIBRARY_PATH
12383  ;;
12384
12385bsdi[45]*)
12386  version_type=linux # correct to gnu/linux during the next big refactor
12387  need_version=no
12388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12389  soname_spec='${libname}${release}${shared_ext}$major'
12390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12391  shlibpath_var=LD_LIBRARY_PATH
12392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12394  # the default ld.so.conf also contains /usr/contrib/lib and
12395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12396  # libtool to hard-code these into programs
12397  ;;
12398
12399cygwin* | mingw* | pw32* | cegcc*)
12400  version_type=windows
12401  shrext_cmds=".dll"
12402  need_version=no
12403  need_lib_prefix=no
12404
12405  case $GCC,$cc_basename in
12406  yes,*)
12407    # gcc
12408    library_names_spec='$libname.dll.a'
12409    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410    postinstall_cmds='base_file=`basename \${file}`~
12411      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12412      dldir=$destdir/`dirname \$dlpath`~
12413      test -d \$dldir || mkdir -p \$dldir~
12414      $install_prog $dir/$dlname \$dldir/$dlname~
12415      chmod a+x \$dldir/$dlname~
12416      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12418      fi'
12419    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420      dlpath=$dir/\$dldll~
12421       $RM \$dlpath'
12422    shlibpath_overrides_runpath=yes
12423
12424    case $host_os in
12425    cygwin*)
12426      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12428
12429      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12430      ;;
12431    mingw* | cegcc*)
12432      # MinGW DLLs use traditional 'lib' prefix
12433      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434      ;;
12435    pw32*)
12436      # pw32 DLLs use 'pw' prefix rather than 'lib'
12437      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12438      ;;
12439    esac
12440    dynamic_linker='Win32 ld.exe'
12441    ;;
12442
12443  *,cl*)
12444    # Native MSVC
12445    libname_spec='$name'
12446    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12447    library_names_spec='${libname}.dll.lib'
12448
12449    case $build_os in
12450    mingw*)
12451      sys_lib_search_path_spec=
12452      lt_save_ifs=$IFS
12453      IFS=';'
12454      for lt_path in $LIB
12455      do
12456        IFS=$lt_save_ifs
12457        # Let DOS variable expansion print the short 8.3 style file name.
12458        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12459        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12460      done
12461      IFS=$lt_save_ifs
12462      # Convert to MSYS style.
12463      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12464      ;;
12465    cygwin*)
12466      # Convert to unix form, then to dos form, then back to unix form
12467      # but this time dos style (no spaces!) so that the unix form looks
12468      # like /cygdrive/c/PROGRA~1:/cygdr...
12469      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12470      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12471      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12472      ;;
12473    *)
12474      sys_lib_search_path_spec="$LIB"
12475      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12476        # It is most probably a Windows format PATH.
12477        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12478      else
12479        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12480      fi
12481      # FIXME: find the short name or the path components, as spaces are
12482      # common. (e.g. "Program Files" -> "PROGRA~1")
12483      ;;
12484    esac
12485
12486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12487    postinstall_cmds='base_file=`basename \${file}`~
12488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12489      dldir=$destdir/`dirname \$dlpath`~
12490      test -d \$dldir || mkdir -p \$dldir~
12491      $install_prog $dir/$dlname \$dldir/$dlname'
12492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12493      dlpath=$dir/\$dldll~
12494       $RM \$dlpath'
12495    shlibpath_overrides_runpath=yes
12496    dynamic_linker='Win32 link.exe'
12497    ;;
12498
12499  *)
12500    # Assume MSVC wrapper
12501    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12502    dynamic_linker='Win32 ld.exe'
12503    ;;
12504  esac
12505  # FIXME: first we should search . and the directory the executable is in
12506  shlibpath_var=PATH
12507  ;;
12508
12509darwin* | rhapsody*)
12510  dynamic_linker="$host_os dyld"
12511  version_type=darwin
12512  need_lib_prefix=no
12513  need_version=no
12514  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12515  soname_spec='${libname}${release}${major}$shared_ext'
12516  shlibpath_overrides_runpath=yes
12517  shlibpath_var=DYLD_LIBRARY_PATH
12518  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12519
12520  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12521  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12522  ;;
12523
12524dgux*)
12525  version_type=linux # correct to gnu/linux during the next big refactor
12526  need_lib_prefix=no
12527  need_version=no
12528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12529  soname_spec='${libname}${release}${shared_ext}$major'
12530  shlibpath_var=LD_LIBRARY_PATH
12531  ;;
12532
12533freebsd* | dragonfly*)
12534  # DragonFly does not have aout.  When/if they implement a new
12535  # versioning mechanism, adjust this.
12536  if test -x /usr/bin/objformat; then
12537    objformat=`/usr/bin/objformat`
12538  else
12539    case $host_os in
12540    freebsd[23].*) objformat=aout ;;
12541    *) objformat=elf ;;
12542    esac
12543  fi
12544  version_type=freebsd-$objformat
12545  case $version_type in
12546    freebsd-elf*)
12547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12548      need_version=no
12549      need_lib_prefix=no
12550      ;;
12551    freebsd-*)
12552      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12553      need_version=yes
12554      ;;
12555  esac
12556  shlibpath_var=LD_LIBRARY_PATH
12557  case $host_os in
12558  freebsd2.*)
12559    shlibpath_overrides_runpath=yes
12560    ;;
12561  freebsd3.[01]* | freebsdelf3.[01]*)
12562    shlibpath_overrides_runpath=yes
12563    hardcode_into_libs=yes
12564    ;;
12565  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12566  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12567    shlibpath_overrides_runpath=no
12568    hardcode_into_libs=yes
12569    ;;
12570  *) # from 4.6 on, and DragonFly
12571    shlibpath_overrides_runpath=yes
12572    hardcode_into_libs=yes
12573    ;;
12574  esac
12575  ;;
12576
12577gnu*)
12578  version_type=linux # correct to gnu/linux during the next big refactor
12579  need_lib_prefix=no
12580  need_version=no
12581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12582  soname_spec='${libname}${release}${shared_ext}$major'
12583  shlibpath_var=LD_LIBRARY_PATH
12584  shlibpath_overrides_runpath=no
12585  hardcode_into_libs=yes
12586  ;;
12587
12588haiku*)
12589  version_type=linux # correct to gnu/linux during the next big refactor
12590  need_lib_prefix=no
12591  need_version=no
12592  dynamic_linker="$host_os runtime_loader"
12593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12594  soname_spec='${libname}${release}${shared_ext}$major'
12595  shlibpath_var=LIBRARY_PATH
12596  shlibpath_overrides_runpath=yes
12597  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12598  hardcode_into_libs=yes
12599  ;;
12600
12601hpux9* | hpux10* | hpux11*)
12602  # Give a soname corresponding to the major version so that dld.sl refuses to
12603  # link against other versions.
12604  version_type=sunos
12605  need_lib_prefix=no
12606  need_version=no
12607  case $host_cpu in
12608  ia64*)
12609    shrext_cmds='.so'
12610    hardcode_into_libs=yes
12611    dynamic_linker="$host_os dld.so"
12612    shlibpath_var=LD_LIBRARY_PATH
12613    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12614    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615    soname_spec='${libname}${release}${shared_ext}$major'
12616    if test "X$HPUX_IA64_MODE" = X32; then
12617      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12618    else
12619      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12620    fi
12621    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12622    ;;
12623  hppa*64*)
12624    shrext_cmds='.sl'
12625    hardcode_into_libs=yes
12626    dynamic_linker="$host_os dld.sl"
12627    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12628    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12629    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630    soname_spec='${libname}${release}${shared_ext}$major'
12631    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12632    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12633    ;;
12634  *)
12635    shrext_cmds='.sl'
12636    dynamic_linker="$host_os dld.sl"
12637    shlibpath_var=SHLIB_PATH
12638    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640    soname_spec='${libname}${release}${shared_ext}$major'
12641    ;;
12642  esac
12643  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12644  postinstall_cmds='chmod 555 $lib'
12645  # or fails outright, so override atomically:
12646  install_override_mode=555
12647  ;;
12648
12649interix[3-9]*)
12650  version_type=linux # correct to gnu/linux during the next big refactor
12651  need_lib_prefix=no
12652  need_version=no
12653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12654  soname_spec='${libname}${release}${shared_ext}$major'
12655  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12656  shlibpath_var=LD_LIBRARY_PATH
12657  shlibpath_overrides_runpath=no
12658  hardcode_into_libs=yes
12659  ;;
12660
12661irix5* | irix6* | nonstopux*)
12662  case $host_os in
12663    nonstopux*) version_type=nonstopux ;;
12664    *)
12665	if test "$lt_cv_prog_gnu_ld" = yes; then
12666		version_type=linux # correct to gnu/linux during the next big refactor
12667	else
12668		version_type=irix
12669	fi ;;
12670  esac
12671  need_lib_prefix=no
12672  need_version=no
12673  soname_spec='${libname}${release}${shared_ext}$major'
12674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12675  case $host_os in
12676  irix5* | nonstopux*)
12677    libsuff= shlibsuff=
12678    ;;
12679  *)
12680    case $LD in # libtool.m4 will add one of these switches to LD
12681    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12682      libsuff= shlibsuff= libmagic=32-bit;;
12683    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12684      libsuff=32 shlibsuff=N32 libmagic=N32;;
12685    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12686      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12687    *) libsuff= shlibsuff= libmagic=never-match;;
12688    esac
12689    ;;
12690  esac
12691  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12692  shlibpath_overrides_runpath=no
12693  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12694  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12695  hardcode_into_libs=yes
12696  ;;
12697
12698# No shared lib support for Linux oldld, aout, or coff.
12699linux*oldld* | linux*aout* | linux*coff*)
12700  dynamic_linker=no
12701  ;;
12702
12703# This must be glibc/ELF.
12704linux* | k*bsd*-gnu | kopensolaris*-gnu)
12705  version_type=linux # correct to gnu/linux during the next big refactor
12706  need_lib_prefix=no
12707  need_version=no
12708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12709  soname_spec='${libname}${release}${shared_ext}$major'
12710  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12711  shlibpath_var=LD_LIBRARY_PATH
12712  shlibpath_overrides_runpath=no
12713
12714  # Some binutils ld are patched to set DT_RUNPATH
12715  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12716  $as_echo_n "(cached) " >&6
12717else
12718  lt_cv_shlibpath_overrides_runpath=no
12719    save_LDFLAGS=$LDFLAGS
12720    save_libdir=$libdir
12721    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12722	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h.  */
12725
12726int
12727main ()
12728{
12729
12730  ;
12731  return 0;
12732}
12733_ACEOF
12734if ac_fn_c_try_link "$LINENO"; then :
12735  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12736  lt_cv_shlibpath_overrides_runpath=yes
12737fi
12738fi
12739rm -f core conftest.err conftest.$ac_objext \
12740    conftest$ac_exeext conftest.$ac_ext
12741    LDFLAGS=$save_LDFLAGS
12742    libdir=$save_libdir
12743
12744fi
12745
12746  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12747
12748  # This implies no fast_install, which is unacceptable.
12749  # Some rework will be needed to allow for fast_install
12750  # before this can be enabled.
12751  hardcode_into_libs=yes
12752
12753  # Add ABI-specific directories to the system library path.
12754  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12755
12756  # Append ld.so.conf contents to the search path
12757  if test -f /etc/ld.so.conf; then
12758    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' ' '`
12759    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12760
12761  fi
12762
12763  # We used to test for /lib/ld.so.1 and disable shared libraries on
12764  # powerpc, because MkLinux only supported shared libraries with the
12765  # GNU dynamic linker.  Since this was broken with cross compilers,
12766  # most powerpc-linux boxes support dynamic linking these days and
12767  # people can always --disable-shared, the test was removed, and we
12768  # assume the GNU/Linux dynamic linker is in use.
12769  dynamic_linker='GNU/Linux ld.so'
12770  ;;
12771
12772netbsd*)
12773  version_type=sunos
12774  need_lib_prefix=no
12775  need_version=no
12776  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12778    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12779    dynamic_linker='NetBSD (a.out) ld.so'
12780  else
12781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12782    soname_spec='${libname}${release}${shared_ext}$major'
12783    dynamic_linker='NetBSD ld.elf_so'
12784  fi
12785  shlibpath_var=LD_LIBRARY_PATH
12786  shlibpath_overrides_runpath=yes
12787  hardcode_into_libs=yes
12788  ;;
12789
12790newsos6)
12791  version_type=linux # correct to gnu/linux during the next big refactor
12792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793  shlibpath_var=LD_LIBRARY_PATH
12794  shlibpath_overrides_runpath=yes
12795  ;;
12796
12797*nto* | *qnx*)
12798  version_type=qnx
12799  need_lib_prefix=no
12800  need_version=no
12801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802  soname_spec='${libname}${release}${shared_ext}$major'
12803  shlibpath_var=LD_LIBRARY_PATH
12804  shlibpath_overrides_runpath=no
12805  hardcode_into_libs=yes
12806  dynamic_linker='ldqnx.so'
12807  ;;
12808
12809openbsd*)
12810  version_type=sunos
12811  sys_lib_dlsearch_path_spec="/usr/lib"
12812  need_lib_prefix=no
12813  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12814  case $host_os in
12815    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12816    *)				need_version=no  ;;
12817  esac
12818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12819  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12820  shlibpath_var=LD_LIBRARY_PATH
12821  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12822    case $host_os in
12823      openbsd2.[89] | openbsd2.[89].*)
12824	shlibpath_overrides_runpath=no
12825	;;
12826      *)
12827	shlibpath_overrides_runpath=yes
12828	;;
12829      esac
12830  else
12831    shlibpath_overrides_runpath=yes
12832  fi
12833  ;;
12834
12835os2*)
12836  libname_spec='$name'
12837  shrext_cmds=".dll"
12838  need_lib_prefix=no
12839  library_names_spec='$libname${shared_ext} $libname.a'
12840  dynamic_linker='OS/2 ld.exe'
12841  shlibpath_var=LIBPATH
12842  ;;
12843
12844osf3* | osf4* | osf5*)
12845  version_type=osf
12846  need_lib_prefix=no
12847  need_version=no
12848  soname_spec='${libname}${release}${shared_ext}$major'
12849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12850  shlibpath_var=LD_LIBRARY_PATH
12851  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12852  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12853  ;;
12854
12855rdos*)
12856  dynamic_linker=no
12857  ;;
12858
12859solaris*)
12860  version_type=linux # correct to gnu/linux during the next big refactor
12861  need_lib_prefix=no
12862  need_version=no
12863  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864  soname_spec='${libname}${release}${shared_ext}$major'
12865  shlibpath_var=LD_LIBRARY_PATH
12866  shlibpath_overrides_runpath=yes
12867  hardcode_into_libs=yes
12868  # ldd complains unless libraries are executable
12869  postinstall_cmds='chmod +x $lib'
12870  ;;
12871
12872sunos4*)
12873  version_type=sunos
12874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12875  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12876  shlibpath_var=LD_LIBRARY_PATH
12877  shlibpath_overrides_runpath=yes
12878  if test "$with_gnu_ld" = yes; then
12879    need_lib_prefix=no
12880  fi
12881  need_version=yes
12882  ;;
12883
12884sysv4 | sysv4.3*)
12885  version_type=linux # correct to gnu/linux during the next big refactor
12886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12887  soname_spec='${libname}${release}${shared_ext}$major'
12888  shlibpath_var=LD_LIBRARY_PATH
12889  case $host_vendor in
12890    sni)
12891      shlibpath_overrides_runpath=no
12892      need_lib_prefix=no
12893      runpath_var=LD_RUN_PATH
12894      ;;
12895    siemens)
12896      need_lib_prefix=no
12897      ;;
12898    motorola)
12899      need_lib_prefix=no
12900      need_version=no
12901      shlibpath_overrides_runpath=no
12902      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12903      ;;
12904  esac
12905  ;;
12906
12907sysv4*MP*)
12908  if test -d /usr/nec ;then
12909    version_type=linux # correct to gnu/linux during the next big refactor
12910    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12911    soname_spec='$libname${shared_ext}.$major'
12912    shlibpath_var=LD_LIBRARY_PATH
12913  fi
12914  ;;
12915
12916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12917  version_type=freebsd-elf
12918  need_lib_prefix=no
12919  need_version=no
12920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12921  soname_spec='${libname}${release}${shared_ext}$major'
12922  shlibpath_var=LD_LIBRARY_PATH
12923  shlibpath_overrides_runpath=yes
12924  hardcode_into_libs=yes
12925  if test "$with_gnu_ld" = yes; then
12926    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12927  else
12928    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12929    case $host_os in
12930      sco3.2v5*)
12931        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12932	;;
12933    esac
12934  fi
12935  sys_lib_dlsearch_path_spec='/usr/lib'
12936  ;;
12937
12938tpf*)
12939  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12940  version_type=linux # correct to gnu/linux during the next big refactor
12941  need_lib_prefix=no
12942  need_version=no
12943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12944  shlibpath_var=LD_LIBRARY_PATH
12945  shlibpath_overrides_runpath=no
12946  hardcode_into_libs=yes
12947  ;;
12948
12949uts4*)
12950  version_type=linux # correct to gnu/linux during the next big refactor
12951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12952  soname_spec='${libname}${release}${shared_ext}$major'
12953  shlibpath_var=LD_LIBRARY_PATH
12954  ;;
12955
12956*)
12957  dynamic_linker=no
12958  ;;
12959esac
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12961$as_echo "$dynamic_linker" >&6; }
12962test "$dynamic_linker" = no && can_build_shared=no
12963
12964variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12965if test "$GCC" = yes; then
12966  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12967fi
12968
12969if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12970  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12971fi
12972if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12973  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12974fi
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13068$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13069hardcode_action=
13070if test -n "$hardcode_libdir_flag_spec" ||
13071   test -n "$runpath_var" ||
13072   test "X$hardcode_automatic" = "Xyes" ; then
13073
13074  # We can hardcode non-existent directories.
13075  if test "$hardcode_direct" != no &&
13076     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13077     # have to relink, otherwise we might link with an installed library
13078     # when we should be linking with a yet-to-be-installed one
13079     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13080     test "$hardcode_minus_L" != no; then
13081    # Linking always hardcodes the temporary library directory.
13082    hardcode_action=relink
13083  else
13084    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13085    hardcode_action=immediate
13086  fi
13087else
13088  # We cannot hardcode anything, or else we can only hardcode existing
13089  # directories.
13090  hardcode_action=unsupported
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13093$as_echo "$hardcode_action" >&6; }
13094
13095if test "$hardcode_action" = relink ||
13096   test "$inherit_rpath" = yes; then
13097  # Fast installation is not supported
13098  enable_fast_install=no
13099elif test "$shlibpath_overrides_runpath" = yes ||
13100     test "$enable_shared" = no; then
13101  # Fast installation is not necessary
13102  enable_fast_install=needless
13103fi
13104
13105
13106
13107
13108
13109
13110  if test "x$enable_dlopen" != xyes; then
13111  enable_dlopen=unknown
13112  enable_dlopen_self=unknown
13113  enable_dlopen_self_static=unknown
13114else
13115  lt_cv_dlopen=no
13116  lt_cv_dlopen_libs=
13117
13118  case $host_os in
13119  beos*)
13120    lt_cv_dlopen="load_add_on"
13121    lt_cv_dlopen_libs=
13122    lt_cv_dlopen_self=yes
13123    ;;
13124
13125  mingw* | pw32* | cegcc*)
13126    lt_cv_dlopen="LoadLibrary"
13127    lt_cv_dlopen_libs=
13128    ;;
13129
13130  cygwin*)
13131    lt_cv_dlopen="dlopen"
13132    lt_cv_dlopen_libs=
13133    ;;
13134
13135  darwin*)
13136  # if libdl is installed we need to link against it
13137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13138$as_echo_n "checking for dlopen in -ldl... " >&6; }
13139if ${ac_cv_lib_dl_dlopen+:} false; then :
13140  $as_echo_n "(cached) " >&6
13141else
13142  ac_check_lib_save_LIBS=$LIBS
13143LIBS="-ldl  $LIBS"
13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h.  */
13146
13147/* Override any GCC internal prototype to avoid an error.
13148   Use char because int might match the return type of a GCC
13149   builtin and then its argument prototype would still apply.  */
13150#ifdef __cplusplus
13151extern "C"
13152#endif
13153char dlopen ();
13154int
13155main ()
13156{
13157return dlopen ();
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163  ac_cv_lib_dl_dlopen=yes
13164else
13165  ac_cv_lib_dl_dlopen=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext \
13168    conftest$ac_exeext conftest.$ac_ext
13169LIBS=$ac_check_lib_save_LIBS
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13173if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13174  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13175else
13176
13177    lt_cv_dlopen="dyld"
13178    lt_cv_dlopen_libs=
13179    lt_cv_dlopen_self=yes
13180
13181fi
13182
13183    ;;
13184
13185  *)
13186    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13187if test "x$ac_cv_func_shl_load" = xyes; then :
13188  lt_cv_dlopen="shl_load"
13189else
13190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13191$as_echo_n "checking for shl_load in -ldld... " >&6; }
13192if ${ac_cv_lib_dld_shl_load+:} false; then :
13193  $as_echo_n "(cached) " >&6
13194else
13195  ac_check_lib_save_LIBS=$LIBS
13196LIBS="-ldld  $LIBS"
13197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198/* end confdefs.h.  */
13199
13200/* Override any GCC internal prototype to avoid an error.
13201   Use char because int might match the return type of a GCC
13202   builtin and then its argument prototype would still apply.  */
13203#ifdef __cplusplus
13204extern "C"
13205#endif
13206char shl_load ();
13207int
13208main ()
13209{
13210return shl_load ();
13211  ;
13212  return 0;
13213}
13214_ACEOF
13215if ac_fn_c_try_link "$LINENO"; then :
13216  ac_cv_lib_dld_shl_load=yes
13217else
13218  ac_cv_lib_dld_shl_load=no
13219fi
13220rm -f core conftest.err conftest.$ac_objext \
13221    conftest$ac_exeext conftest.$ac_ext
13222LIBS=$ac_check_lib_save_LIBS
13223fi
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13225$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13226if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13227  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13228else
13229  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13230if test "x$ac_cv_func_dlopen" = xyes; then :
13231  lt_cv_dlopen="dlopen"
13232else
13233  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13234$as_echo_n "checking for dlopen in -ldl... " >&6; }
13235if ${ac_cv_lib_dl_dlopen+:} false; then :
13236  $as_echo_n "(cached) " >&6
13237else
13238  ac_check_lib_save_LIBS=$LIBS
13239LIBS="-ldl  $LIBS"
13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241/* end confdefs.h.  */
13242
13243/* Override any GCC internal prototype to avoid an error.
13244   Use char because int might match the return type of a GCC
13245   builtin and then its argument prototype would still apply.  */
13246#ifdef __cplusplus
13247extern "C"
13248#endif
13249char dlopen ();
13250int
13251main ()
13252{
13253return dlopen ();
13254  ;
13255  return 0;
13256}
13257_ACEOF
13258if ac_fn_c_try_link "$LINENO"; then :
13259  ac_cv_lib_dl_dlopen=yes
13260else
13261  ac_cv_lib_dl_dlopen=no
13262fi
13263rm -f core conftest.err conftest.$ac_objext \
13264    conftest$ac_exeext conftest.$ac_ext
13265LIBS=$ac_check_lib_save_LIBS
13266fi
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13268$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13269if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13270  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13271else
13272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13273$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13274if ${ac_cv_lib_svld_dlopen+:} false; then :
13275  $as_echo_n "(cached) " >&6
13276else
13277  ac_check_lib_save_LIBS=$LIBS
13278LIBS="-lsvld  $LIBS"
13279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281
13282/* Override any GCC internal prototype to avoid an error.
13283   Use char because int might match the return type of a GCC
13284   builtin and then its argument prototype would still apply.  */
13285#ifdef __cplusplus
13286extern "C"
13287#endif
13288char dlopen ();
13289int
13290main ()
13291{
13292return dlopen ();
13293  ;
13294  return 0;
13295}
13296_ACEOF
13297if ac_fn_c_try_link "$LINENO"; then :
13298  ac_cv_lib_svld_dlopen=yes
13299else
13300  ac_cv_lib_svld_dlopen=no
13301fi
13302rm -f core conftest.err conftest.$ac_objext \
13303    conftest$ac_exeext conftest.$ac_ext
13304LIBS=$ac_check_lib_save_LIBS
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13307$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13308if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13309  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13310else
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13312$as_echo_n "checking for dld_link in -ldld... " >&6; }
13313if ${ac_cv_lib_dld_dld_link+:} false; then :
13314  $as_echo_n "(cached) " >&6
13315else
13316  ac_check_lib_save_LIBS=$LIBS
13317LIBS="-ldld  $LIBS"
13318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319/* end confdefs.h.  */
13320
13321/* Override any GCC internal prototype to avoid an error.
13322   Use char because int might match the return type of a GCC
13323   builtin and then its argument prototype would still apply.  */
13324#ifdef __cplusplus
13325extern "C"
13326#endif
13327char dld_link ();
13328int
13329main ()
13330{
13331return dld_link ();
13332  ;
13333  return 0;
13334}
13335_ACEOF
13336if ac_fn_c_try_link "$LINENO"; then :
13337  ac_cv_lib_dld_dld_link=yes
13338else
13339  ac_cv_lib_dld_dld_link=no
13340fi
13341rm -f core conftest.err conftest.$ac_objext \
13342    conftest$ac_exeext conftest.$ac_ext
13343LIBS=$ac_check_lib_save_LIBS
13344fi
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13346$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13347if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13348  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13349fi
13350
13351
13352fi
13353
13354
13355fi
13356
13357
13358fi
13359
13360
13361fi
13362
13363
13364fi
13365
13366    ;;
13367  esac
13368
13369  if test "x$lt_cv_dlopen" != xno; then
13370    enable_dlopen=yes
13371  else
13372    enable_dlopen=no
13373  fi
13374
13375  case $lt_cv_dlopen in
13376  dlopen)
13377    save_CPPFLAGS="$CPPFLAGS"
13378    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13379
13380    save_LDFLAGS="$LDFLAGS"
13381    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13382
13383    save_LIBS="$LIBS"
13384    LIBS="$lt_cv_dlopen_libs $LIBS"
13385
13386    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13387$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13388if ${lt_cv_dlopen_self+:} false; then :
13389  $as_echo_n "(cached) " >&6
13390else
13391  	  if test "$cross_compiling" = yes; then :
13392  lt_cv_dlopen_self=cross
13393else
13394  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13395  lt_status=$lt_dlunknown
13396  cat > conftest.$ac_ext <<_LT_EOF
13397#line $LINENO "configure"
13398#include "confdefs.h"
13399
13400#if HAVE_DLFCN_H
13401#include <dlfcn.h>
13402#endif
13403
13404#include <stdio.h>
13405
13406#ifdef RTLD_GLOBAL
13407#  define LT_DLGLOBAL		RTLD_GLOBAL
13408#else
13409#  ifdef DL_GLOBAL
13410#    define LT_DLGLOBAL		DL_GLOBAL
13411#  else
13412#    define LT_DLGLOBAL		0
13413#  endif
13414#endif
13415
13416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13417   find out it does not work in some platform. */
13418#ifndef LT_DLLAZY_OR_NOW
13419#  ifdef RTLD_LAZY
13420#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13421#  else
13422#    ifdef DL_LAZY
13423#      define LT_DLLAZY_OR_NOW		DL_LAZY
13424#    else
13425#      ifdef RTLD_NOW
13426#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13427#      else
13428#        ifdef DL_NOW
13429#          define LT_DLLAZY_OR_NOW	DL_NOW
13430#        else
13431#          define LT_DLLAZY_OR_NOW	0
13432#        endif
13433#      endif
13434#    endif
13435#  endif
13436#endif
13437
13438/* When -fvisbility=hidden is used, assume the code has been annotated
13439   correspondingly for the symbols needed.  */
13440#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13441int fnord () __attribute__((visibility("default")));
13442#endif
13443
13444int fnord () { return 42; }
13445int main ()
13446{
13447  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13448  int status = $lt_dlunknown;
13449
13450  if (self)
13451    {
13452      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13453      else
13454        {
13455	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13456          else puts (dlerror ());
13457	}
13458      /* dlclose (self); */
13459    }
13460  else
13461    puts (dlerror ());
13462
13463  return status;
13464}
13465_LT_EOF
13466  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13467  (eval $ac_link) 2>&5
13468  ac_status=$?
13469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13470  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13471    (./conftest; exit; ) >&5 2>/dev/null
13472    lt_status=$?
13473    case x$lt_status in
13474      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13475      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13476      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13477    esac
13478  else :
13479    # compilation failed
13480    lt_cv_dlopen_self=no
13481  fi
13482fi
13483rm -fr conftest*
13484
13485
13486fi
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13488$as_echo "$lt_cv_dlopen_self" >&6; }
13489
13490    if test "x$lt_cv_dlopen_self" = xyes; then
13491      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13492      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13493$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13494if ${lt_cv_dlopen_self_static+:} false; then :
13495  $as_echo_n "(cached) " >&6
13496else
13497  	  if test "$cross_compiling" = yes; then :
13498  lt_cv_dlopen_self_static=cross
13499else
13500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13501  lt_status=$lt_dlunknown
13502  cat > conftest.$ac_ext <<_LT_EOF
13503#line $LINENO "configure"
13504#include "confdefs.h"
13505
13506#if HAVE_DLFCN_H
13507#include <dlfcn.h>
13508#endif
13509
13510#include <stdio.h>
13511
13512#ifdef RTLD_GLOBAL
13513#  define LT_DLGLOBAL		RTLD_GLOBAL
13514#else
13515#  ifdef DL_GLOBAL
13516#    define LT_DLGLOBAL		DL_GLOBAL
13517#  else
13518#    define LT_DLGLOBAL		0
13519#  endif
13520#endif
13521
13522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13523   find out it does not work in some platform. */
13524#ifndef LT_DLLAZY_OR_NOW
13525#  ifdef RTLD_LAZY
13526#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13527#  else
13528#    ifdef DL_LAZY
13529#      define LT_DLLAZY_OR_NOW		DL_LAZY
13530#    else
13531#      ifdef RTLD_NOW
13532#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13533#      else
13534#        ifdef DL_NOW
13535#          define LT_DLLAZY_OR_NOW	DL_NOW
13536#        else
13537#          define LT_DLLAZY_OR_NOW	0
13538#        endif
13539#      endif
13540#    endif
13541#  endif
13542#endif
13543
13544/* When -fvisbility=hidden is used, assume the code has been annotated
13545   correspondingly for the symbols needed.  */
13546#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13547int fnord () __attribute__((visibility("default")));
13548#endif
13549
13550int fnord () { return 42; }
13551int main ()
13552{
13553  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13554  int status = $lt_dlunknown;
13555
13556  if (self)
13557    {
13558      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13559      else
13560        {
13561	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13562          else puts (dlerror ());
13563	}
13564      /* dlclose (self); */
13565    }
13566  else
13567    puts (dlerror ());
13568
13569  return status;
13570}
13571_LT_EOF
13572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13573  (eval $ac_link) 2>&5
13574  ac_status=$?
13575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13577    (./conftest; exit; ) >&5 2>/dev/null
13578    lt_status=$?
13579    case x$lt_status in
13580      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13581      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13582      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13583    esac
13584  else :
13585    # compilation failed
13586    lt_cv_dlopen_self_static=no
13587  fi
13588fi
13589rm -fr conftest*
13590
13591
13592fi
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13594$as_echo "$lt_cv_dlopen_self_static" >&6; }
13595    fi
13596
13597    CPPFLAGS="$save_CPPFLAGS"
13598    LDFLAGS="$save_LDFLAGS"
13599    LIBS="$save_LIBS"
13600    ;;
13601  esac
13602
13603  case $lt_cv_dlopen_self in
13604  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13605  *) enable_dlopen_self=unknown ;;
13606  esac
13607
13608  case $lt_cv_dlopen_self_static in
13609  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13610  *) enable_dlopen_self_static=unknown ;;
13611  esac
13612fi
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630striplib=
13631old_striplib=
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13633$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13634if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13635  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13636  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13638$as_echo "yes" >&6; }
13639else
13640# FIXME - insert some real tests, host_os isn't really good enough
13641  case $host_os in
13642  darwin*)
13643    if test -n "$STRIP" ; then
13644      striplib="$STRIP -x"
13645      old_striplib="$STRIP -S"
13646      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13647$as_echo "yes" >&6; }
13648    else
13649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651    fi
13652    ;;
13653  *)
13654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
13656    ;;
13657  esac
13658fi
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671  # Report which library types will actually be built
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13673$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13675$as_echo "$can_build_shared" >&6; }
13676
13677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13678$as_echo_n "checking whether to build shared libraries... " >&6; }
13679  test "$can_build_shared" = "no" && enable_shared=no
13680
13681  # On AIX, shared libraries and static libraries use the same namespace, and
13682  # are all built from PIC.
13683  case $host_os in
13684  aix3*)
13685    test "$enable_shared" = yes && enable_static=no
13686    if test -n "$RANLIB"; then
13687      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13688      postinstall_cmds='$RANLIB $lib'
13689    fi
13690    ;;
13691
13692  aix[4-9]*)
13693    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13694      test "$enable_shared" = yes && enable_static=no
13695    fi
13696    ;;
13697  esac
13698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13699$as_echo "$enable_shared" >&6; }
13700
13701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13702$as_echo_n "checking whether to build static libraries... " >&6; }
13703  # Make sure either enable_shared or enable_static is yes.
13704  test "$enable_shared" = yes || enable_static=yes
13705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13706$as_echo "$enable_static" >&6; }
13707
13708
13709
13710
13711fi
13712ac_ext=c
13713ac_cpp='$CPP $CPPFLAGS'
13714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718CC="$lt_save_CC"
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734        ac_config_commands="$ac_config_commands libtool"
13735
13736
13737
13738
13739# Only expand once:
13740
13741
13742
13743
13744# Checks for header files.
13745for ac_header in stdarg.h stdbool.h netinet/in.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
13746do :
13747  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13749"
13750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13751  cat >>confdefs.h <<_ACEOF
13752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13753_ACEOF
13754
13755fi
13756
13757done
13758
13759
13760# check for types.
13761# Using own tests for int64* because autoconf builtin only give 32bit.
13762ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13763if test "x$ac_cv_type_int8_t" = xyes; then :
13764
13765else
13766
13767cat >>confdefs.h <<_ACEOF
13768#define int8_t signed char
13769_ACEOF
13770
13771fi
13772
13773ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13774if test "x$ac_cv_type_int16_t" = xyes; then :
13775
13776else
13777
13778cat >>confdefs.h <<_ACEOF
13779#define int16_t short
13780_ACEOF
13781
13782fi
13783
13784ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13785if test "x$ac_cv_type_int32_t" = xyes; then :
13786
13787else
13788
13789cat >>confdefs.h <<_ACEOF
13790#define int32_t int
13791_ACEOF
13792
13793fi
13794
13795ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13796if test "x$ac_cv_type_int64_t" = xyes; then :
13797
13798else
13799
13800cat >>confdefs.h <<_ACEOF
13801#define int64_t long long
13802_ACEOF
13803
13804fi
13805
13806ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13807if test "x$ac_cv_type_uint8_t" = xyes; then :
13808
13809else
13810
13811cat >>confdefs.h <<_ACEOF
13812#define uint8_t unsigned char
13813_ACEOF
13814
13815fi
13816
13817ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13818if test "x$ac_cv_type_uint16_t" = xyes; then :
13819
13820else
13821
13822cat >>confdefs.h <<_ACEOF
13823#define uint16_t unsigned short
13824_ACEOF
13825
13826fi
13827
13828ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13829if test "x$ac_cv_type_uint32_t" = xyes; then :
13830
13831else
13832
13833cat >>confdefs.h <<_ACEOF
13834#define uint32_t unsigned int
13835_ACEOF
13836
13837fi
13838
13839ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13840if test "x$ac_cv_type_uint64_t" = xyes; then :
13841
13842else
13843
13844cat >>confdefs.h <<_ACEOF
13845#define uint64_t unsigned long long
13846_ACEOF
13847
13848fi
13849
13850ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13851if test "x$ac_cv_type_size_t" = xyes; then :
13852
13853else
13854
13855cat >>confdefs.h <<_ACEOF
13856#define size_t unsigned int
13857_ACEOF
13858
13859fi
13860
13861ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13862if test "x$ac_cv_type_ssize_t" = xyes; then :
13863
13864else
13865
13866cat >>confdefs.h <<_ACEOF
13867#define ssize_t int
13868_ACEOF
13869
13870fi
13871
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13873$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13874if ${ac_cv_type_uid_t+:} false; then :
13875  $as_echo_n "(cached) " >&6
13876else
13877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878/* end confdefs.h.  */
13879#include <sys/types.h>
13880
13881_ACEOF
13882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13883  $EGREP "uid_t" >/dev/null 2>&1; then :
13884  ac_cv_type_uid_t=yes
13885else
13886  ac_cv_type_uid_t=no
13887fi
13888rm -f conftest*
13889
13890fi
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13892$as_echo "$ac_cv_type_uid_t" >&6; }
13893if test $ac_cv_type_uid_t = no; then
13894
13895$as_echo "#define uid_t int" >>confdefs.h
13896
13897
13898$as_echo "#define gid_t int" >>confdefs.h
13899
13900fi
13901
13902ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13903if test "x$ac_cv_type_pid_t" = xyes; then :
13904
13905else
13906
13907cat >>confdefs.h <<_ACEOF
13908#define pid_t int
13909_ACEOF
13910
13911fi
13912
13913ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13914if test "x$ac_cv_type_off_t" = xyes; then :
13915
13916else
13917
13918cat >>confdefs.h <<_ACEOF
13919#define off_t long int
13920_ACEOF
13921
13922fi
13923
13924ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13925$ac_includes_default
13926#ifdef HAVE_WINSOCK2_H
13927#  include <winsock2.h>
13928#endif
13929
13930"
13931if test "x$ac_cv_type_u_char" = xyes; then :
13932
13933else
13934
13935$as_echo "#define u_char unsigned char" >>confdefs.h
13936
13937fi
13938
13939ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13940$ac_includes_default
13941#ifdef HAVE_SYS_RESOURCE_H
13942#  include <sys/resource.h>
13943#endif
13944
13945"
13946if test "x$ac_cv_type_rlim_t" = xyes; then :
13947
13948else
13949
13950$as_echo "#define rlim_t unsigned long" >>confdefs.h
13951
13952fi
13953
13954
13955ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13956$ac_includes_default
13957#ifdef HAVE_SYS_SOCKET_H
13958#  include <sys/socket.h>
13959#endif
13960#ifdef HAVE_WS2TCPIP_H
13961#  include <ws2tcpip.h>
13962#endif
13963
13964"
13965if test "x$ac_cv_type_socklen_t" = xyes; then :
13966
13967else
13968
13969$as_echo "#define socklen_t int" >>confdefs.h
13970
13971fi
13972
13973 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13974$ac_includes_default
13975#ifdef HAVE_SYS_TYPES_H
13976# include <sys/types.h>
13977#endif
13978#ifdef HAVE_NETINET_IN_H
13979# include <netinet/in.h>
13980#endif
13981
13982"
13983if test "x$ac_cv_type_in_addr_t" = xyes; then :
13984
13985else
13986
13987$as_echo "#define in_addr_t uint32_t" >>confdefs.h
13988
13989fi
13990
13991 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13992$ac_includes_default
13993#ifdef HAVE_SYS_TYPES_H
13994# include <sys/types.h>
13995#endif
13996#ifdef HAVE_NETINET_IN_H
13997# include <netinet/in.h>
13998#endif
13999
14000"
14001if test "x$ac_cv_type_in_port_t" = xyes; then :
14002
14003else
14004
14005$as_echo "#define in_port_t uint16_t" >>confdefs.h
14006
14007fi
14008
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14010$as_echo_n "checking if memcmp compares unsigned... " >&6; }
14011if test "$cross_compiling" = yes; then :
14012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14013$as_echo "cross-compile no" >&6; }
14014
14015$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14016
14017  case " $LIBOBJS " in
14018  *" memcmp.$ac_objext "* ) ;;
14019  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14020 ;;
14021esac
14022
14023
14024else
14025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026/* end confdefs.h.  */
14027
14028#include <stdio.h>
14029#include <stdlib.h>
14030#include <string.h>
14031int main(void)
14032{
14033	char a = 255, b = 0;
14034	if(memcmp(&a, &b, 1) < 0)
14035		return 1;
14036	return 0;
14037}
14038
14039_ACEOF
14040if ac_fn_c_try_run "$LINENO"; then :
14041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14042$as_echo "yes" >&6; }
14043else
14044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045$as_echo "no" >&6; }
14046
14047$as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14048
14049  case " $LIBOBJS " in
14050  *" memcmp.$ac_objext "* ) ;;
14051  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14052 ;;
14053esac
14054
14055
14056fi
14057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14058  conftest.$ac_objext conftest.beam conftest.$ac_ext
14059fi
14060
14061
14062# The cast to long int works around a bug in the HP C Compiler
14063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065# This bug is HP SR number 8606223364.
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14067$as_echo_n "checking size of time_t... " >&6; }
14068if ${ac_cv_sizeof_time_t+:} false; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14072$ac_includes_default
14073#ifdef TIME_WITH_SYS_TIME
14074# include <sys/time.h>
14075# include <time.h>
14076#else
14077# ifdef HAVE_SYS_TIME_H
14078#  include <sys/time.h>
14079# else
14080#  include <time.h>
14081# endif
14082#endif
14083
14084"; then :
14085
14086else
14087  if test "$ac_cv_type_time_t" = yes; then
14088     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14090as_fn_error 77 "cannot compute sizeof (time_t)
14091See \`config.log' for more details" "$LINENO" 5; }
14092   else
14093     ac_cv_sizeof_time_t=0
14094   fi
14095fi
14096
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14099$as_echo "$ac_cv_sizeof_time_t" >&6; }
14100
14101
14102
14103cat >>confdefs.h <<_ACEOF
14104#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14105_ACEOF
14106
14107
14108
14109# add option to disable the evil rpath
14110
14111# Check whether --enable-rpath was given.
14112if test "${enable_rpath+set}" = set; then :
14113  enableval=$enable_rpath; enable_rpath=$enableval
14114else
14115  enable_rpath=yes
14116fi
14117
14118if test "x$enable_rpath" = xno; then
14119		ac_config_commands="$ac_config_commands disable-rpath"
14120
14121fi
14122
14123
14124
14125# check to see if libraries are needed for these functions.
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14127$as_echo_n "checking for library containing inet_pton... " >&6; }
14128if ${ac_cv_search_inet_pton+:} false; then :
14129  $as_echo_n "(cached) " >&6
14130else
14131  ac_func_search_save_LIBS=$LIBS
14132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133/* end confdefs.h.  */
14134
14135/* Override any GCC internal prototype to avoid an error.
14136   Use char because int might match the return type of a GCC
14137   builtin and then its argument prototype would still apply.  */
14138#ifdef __cplusplus
14139extern "C"
14140#endif
14141char inet_pton ();
14142int
14143main ()
14144{
14145return inet_pton ();
14146  ;
14147  return 0;
14148}
14149_ACEOF
14150for ac_lib in '' nsl; do
14151  if test -z "$ac_lib"; then
14152    ac_res="none required"
14153  else
14154    ac_res=-l$ac_lib
14155    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14156  fi
14157  if ac_fn_c_try_link "$LINENO"; then :
14158  ac_cv_search_inet_pton=$ac_res
14159fi
14160rm -f core conftest.err conftest.$ac_objext \
14161    conftest$ac_exeext
14162  if ${ac_cv_search_inet_pton+:} false; then :
14163  break
14164fi
14165done
14166if ${ac_cv_search_inet_pton+:} false; then :
14167
14168else
14169  ac_cv_search_inet_pton=no
14170fi
14171rm conftest.$ac_ext
14172LIBS=$ac_func_search_save_LIBS
14173fi
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14175$as_echo "$ac_cv_search_inet_pton" >&6; }
14176ac_res=$ac_cv_search_inet_pton
14177if test "$ac_res" != no; then :
14178  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14179
14180fi
14181
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14183$as_echo_n "checking for library containing socket... " >&6; }
14184if ${ac_cv_search_socket+:} false; then :
14185  $as_echo_n "(cached) " >&6
14186else
14187  ac_func_search_save_LIBS=$LIBS
14188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189/* end confdefs.h.  */
14190
14191/* Override any GCC internal prototype to avoid an error.
14192   Use char because int might match the return type of a GCC
14193   builtin and then its argument prototype would still apply.  */
14194#ifdef __cplusplus
14195extern "C"
14196#endif
14197char socket ();
14198int
14199main ()
14200{
14201return socket ();
14202  ;
14203  return 0;
14204}
14205_ACEOF
14206for ac_lib in '' socket; do
14207  if test -z "$ac_lib"; then
14208    ac_res="none required"
14209  else
14210    ac_res=-l$ac_lib
14211    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14212  fi
14213  if ac_fn_c_try_link "$LINENO"; then :
14214  ac_cv_search_socket=$ac_res
14215fi
14216rm -f core conftest.err conftest.$ac_objext \
14217    conftest$ac_exeext
14218  if ${ac_cv_search_socket+:} false; then :
14219  break
14220fi
14221done
14222if ${ac_cv_search_socket+:} false; then :
14223
14224else
14225  ac_cv_search_socket=no
14226fi
14227rm conftest.$ac_ext
14228LIBS=$ac_func_search_save_LIBS
14229fi
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14231$as_echo "$ac_cv_search_socket" >&6; }
14232ac_res=$ac_cv_search_socket
14233if test "$ac_res" != no; then :
14234  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14235
14236fi
14237
14238
14239# check wether strptime also works
14240
14241# check some functions of the OS before linking libs (while still runnable).
14242for ac_header in unistd.h
14243do :
14244  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14245if test "x$ac_cv_header_unistd_h" = xyes; then :
14246  cat >>confdefs.h <<_ACEOF
14247#define HAVE_UNISTD_H 1
14248_ACEOF
14249
14250fi
14251
14252done
14253
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14255$as_echo_n "checking for working chown... " >&6; }
14256if ${ac_cv_func_chown_works+:} false; then :
14257  $as_echo_n "(cached) " >&6
14258else
14259  if test "$cross_compiling" = yes; then :
14260  ac_cv_func_chown_works=no
14261else
14262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263/* end confdefs.h.  */
14264$ac_includes_default
14265#include <fcntl.h>
14266
14267int
14268main ()
14269{
14270  char *f = "conftest.chown";
14271  struct stat before, after;
14272
14273  if (creat (f, 0600) < 0)
14274    return 1;
14275  if (stat (f, &before) < 0)
14276    return 1;
14277  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14278    return 1;
14279  if (stat (f, &after) < 0)
14280    return 1;
14281  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14282
14283  ;
14284  return 0;
14285}
14286_ACEOF
14287if ac_fn_c_try_run "$LINENO"; then :
14288  ac_cv_func_chown_works=yes
14289else
14290  ac_cv_func_chown_works=no
14291fi
14292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14293  conftest.$ac_objext conftest.beam conftest.$ac_ext
14294fi
14295
14296rm -f conftest.chown
14297
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14300$as_echo "$ac_cv_func_chown_works" >&6; }
14301if test $ac_cv_func_chown_works = yes; then
14302
14303$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14304
14305fi
14306
14307for ac_header in vfork.h
14308do :
14309  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14310if test "x$ac_cv_header_vfork_h" = xyes; then :
14311  cat >>confdefs.h <<_ACEOF
14312#define HAVE_VFORK_H 1
14313_ACEOF
14314
14315fi
14316
14317done
14318
14319for ac_func in fork vfork
14320do :
14321  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14323if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14324  cat >>confdefs.h <<_ACEOF
14325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14326_ACEOF
14327
14328fi
14329done
14330
14331if test "x$ac_cv_func_fork" = xyes; then
14332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14333$as_echo_n "checking for working fork... " >&6; }
14334if ${ac_cv_func_fork_works+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  if test "$cross_compiling" = yes; then :
14338  ac_cv_func_fork_works=cross
14339else
14340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342$ac_includes_default
14343int
14344main ()
14345{
14346
14347	  /* By Ruediger Kuhlmann. */
14348	  return fork () < 0;
14349
14350  ;
14351  return 0;
14352}
14353_ACEOF
14354if ac_fn_c_try_run "$LINENO"; then :
14355  ac_cv_func_fork_works=yes
14356else
14357  ac_cv_func_fork_works=no
14358fi
14359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14360  conftest.$ac_objext conftest.beam conftest.$ac_ext
14361fi
14362
14363fi
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14365$as_echo "$ac_cv_func_fork_works" >&6; }
14366
14367else
14368  ac_cv_func_fork_works=$ac_cv_func_fork
14369fi
14370if test "x$ac_cv_func_fork_works" = xcross; then
14371  case $host in
14372    *-*-amigaos* | *-*-msdosdjgpp*)
14373      # Override, as these systems have only a dummy fork() stub
14374      ac_cv_func_fork_works=no
14375      ;;
14376    *)
14377      ac_cv_func_fork_works=yes
14378      ;;
14379  esac
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14381$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14382fi
14383ac_cv_func_vfork_works=$ac_cv_func_vfork
14384if test "x$ac_cv_func_vfork" = xyes; then
14385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14386$as_echo_n "checking for working vfork... " >&6; }
14387if ${ac_cv_func_vfork_works+:} false; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  if test "$cross_compiling" = yes; then :
14391  ac_cv_func_vfork_works=cross
14392else
14393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394/* end confdefs.h.  */
14395/* Thanks to Paul Eggert for this test.  */
14396$ac_includes_default
14397#include <sys/wait.h>
14398#ifdef HAVE_VFORK_H
14399# include <vfork.h>
14400#endif
14401/* On some sparc systems, changes by the child to local and incoming
14402   argument registers are propagated back to the parent.  The compiler
14403   is told about this with #include <vfork.h>, but some compilers
14404   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14405   static variable whose address is put into a register that is
14406   clobbered by the vfork.  */
14407static void
14408#ifdef __cplusplus
14409sparc_address_test (int arg)
14410# else
14411sparc_address_test (arg) int arg;
14412#endif
14413{
14414  static pid_t child;
14415  if (!child) {
14416    child = vfork ();
14417    if (child < 0) {
14418      perror ("vfork");
14419      _exit(2);
14420    }
14421    if (!child) {
14422      arg = getpid();
14423      write(-1, "", 0);
14424      _exit (arg);
14425    }
14426  }
14427}
14428
14429int
14430main ()
14431{
14432  pid_t parent = getpid ();
14433  pid_t child;
14434
14435  sparc_address_test (0);
14436
14437  child = vfork ();
14438
14439  if (child == 0) {
14440    /* Here is another test for sparc vfork register problems.  This
14441       test uses lots of local variables, at least as many local
14442       variables as main has allocated so far including compiler
14443       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14444       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14445       reuse the register of parent for one of the local variables,
14446       since it will think that parent can't possibly be used any more
14447       in this routine.  Assigning to the local variable will thus
14448       munge parent in the parent process.  */
14449    pid_t
14450      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14451      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14452    /* Convince the compiler that p..p7 are live; otherwise, it might
14453       use the same hardware register for all 8 local variables.  */
14454    if (p != p1 || p != p2 || p != p3 || p != p4
14455	|| p != p5 || p != p6 || p != p7)
14456      _exit(1);
14457
14458    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14459       from child file descriptors.  If the child closes a descriptor
14460       before it execs or exits, this munges the parent's descriptor
14461       as well.  Test for this by closing stdout in the child.  */
14462    _exit(close(fileno(stdout)) != 0);
14463  } else {
14464    int status;
14465    struct stat st;
14466
14467    while (wait(&status) != child)
14468      ;
14469    return (
14470	 /* Was there some problem with vforking?  */
14471	 child < 0
14472
14473	 /* Did the child fail?  (This shouldn't happen.)  */
14474	 || status
14475
14476	 /* Did the vfork/compiler bug occur?  */
14477	 || parent != getpid()
14478
14479	 /* Did the file descriptor bug occur?  */
14480	 || fstat(fileno(stdout), &st) != 0
14481	 );
14482  }
14483}
14484_ACEOF
14485if ac_fn_c_try_run "$LINENO"; then :
14486  ac_cv_func_vfork_works=yes
14487else
14488  ac_cv_func_vfork_works=no
14489fi
14490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14491  conftest.$ac_objext conftest.beam conftest.$ac_ext
14492fi
14493
14494fi
14495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14496$as_echo "$ac_cv_func_vfork_works" >&6; }
14497
14498fi;
14499if test "x$ac_cv_func_fork_works" = xcross; then
14500  ac_cv_func_vfork_works=$ac_cv_func_vfork
14501  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14502$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14503fi
14504
14505if test "x$ac_cv_func_vfork_works" = xyes; then
14506
14507$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14508
14509else
14510
14511$as_echo "#define vfork fork" >>confdefs.h
14512
14513fi
14514if test "x$ac_cv_func_fork_works" = xyes; then
14515
14516$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14517
14518fi
14519
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14521$as_echo_n "checking return type of signal handlers... " >&6; }
14522if ${ac_cv_type_signal+:} false; then :
14523  $as_echo_n "(cached) " >&6
14524else
14525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527#include <sys/types.h>
14528#include <signal.h>
14529
14530int
14531main ()
14532{
14533return *(signal (0, 0)) (0) == 1;
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_compile "$LINENO"; then :
14539  ac_cv_type_signal=int
14540else
14541  ac_cv_type_signal=void
14542fi
14543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544fi
14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14546$as_echo "$ac_cv_type_signal" >&6; }
14547
14548cat >>confdefs.h <<_ACEOF
14549#define RETSIGTYPE $ac_cv_type_signal
14550_ACEOF
14551
14552
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14554$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14555if ${ac_cv_sys_largefile_source+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  while :; do
14559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560/* end confdefs.h.  */
14561#include <sys/types.h> /* for off_t */
14562     #include <stdio.h>
14563int
14564main ()
14565{
14566int (*fp) (FILE *, off_t, int) = fseeko;
14567     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14568  ;
14569  return 0;
14570}
14571_ACEOF
14572if ac_fn_c_try_link "$LINENO"; then :
14573  ac_cv_sys_largefile_source=no; break
14574fi
14575rm -f core conftest.err conftest.$ac_objext \
14576    conftest$ac_exeext conftest.$ac_ext
14577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578/* end confdefs.h.  */
14579#define _LARGEFILE_SOURCE 1
14580#include <sys/types.h> /* for off_t */
14581     #include <stdio.h>
14582int
14583main ()
14584{
14585int (*fp) (FILE *, off_t, int) = fseeko;
14586     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14587  ;
14588  return 0;
14589}
14590_ACEOF
14591if ac_fn_c_try_link "$LINENO"; then :
14592  ac_cv_sys_largefile_source=1; break
14593fi
14594rm -f core conftest.err conftest.$ac_objext \
14595    conftest$ac_exeext conftest.$ac_ext
14596  ac_cv_sys_largefile_source=unknown
14597  break
14598done
14599fi
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14601$as_echo "$ac_cv_sys_largefile_source" >&6; }
14602case $ac_cv_sys_largefile_source in #(
14603  no | unknown) ;;
14604  *)
14605cat >>confdefs.h <<_ACEOF
14606#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14607_ACEOF
14608;;
14609esac
14610rm -rf conftest*
14611
14612# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14613# in glibc 2.1.3, but that breaks too many other things.
14614# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14615if test $ac_cv_sys_largefile_source != unknown; then
14616
14617$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14618
14619fi
14620
14621
14622# Check whether --enable-largefile was given.
14623if test "${enable_largefile+set}" = set; then :
14624  enableval=$enable_largefile;
14625fi
14626
14627if test "$enable_largefile" != no; then
14628
14629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14630$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14631if ${ac_cv_sys_largefile_CC+:} false; then :
14632  $as_echo_n "(cached) " >&6
14633else
14634  ac_cv_sys_largefile_CC=no
14635     if test "$GCC" != yes; then
14636       ac_save_CC=$CC
14637       while :; do
14638	 # IRIX 6.2 and later do not support large files by default,
14639	 # so use the C compiler's -n32 option if that helps.
14640	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h.  */
14642#include <sys/types.h>
14643 /* Check that off_t can represent 2**63 - 1 correctly.
14644    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14645    since some C++ compilers masquerading as C compilers
14646    incorrectly reject 9223372036854775807.  */
14647#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14648  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14649		       && LARGE_OFF_T % 2147483647 == 1)
14650		      ? 1 : -1];
14651int
14652main ()
14653{
14654
14655  ;
14656  return 0;
14657}
14658_ACEOF
14659	 if ac_fn_c_try_compile "$LINENO"; then :
14660  break
14661fi
14662rm -f core conftest.err conftest.$ac_objext
14663	 CC="$CC -n32"
14664	 if ac_fn_c_try_compile "$LINENO"; then :
14665  ac_cv_sys_largefile_CC=' -n32'; break
14666fi
14667rm -f core conftest.err conftest.$ac_objext
14668	 break
14669       done
14670       CC=$ac_save_CC
14671       rm -f conftest.$ac_ext
14672    fi
14673fi
14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14675$as_echo "$ac_cv_sys_largefile_CC" >&6; }
14676  if test "$ac_cv_sys_largefile_CC" != no; then
14677    CC=$CC$ac_cv_sys_largefile_CC
14678  fi
14679
14680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14681$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14682if ${ac_cv_sys_file_offset_bits+:} false; then :
14683  $as_echo_n "(cached) " >&6
14684else
14685  while :; do
14686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687/* end confdefs.h.  */
14688#include <sys/types.h>
14689 /* Check that off_t can represent 2**63 - 1 correctly.
14690    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14691    since some C++ compilers masquerading as C compilers
14692    incorrectly reject 9223372036854775807.  */
14693#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14694  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14695		       && LARGE_OFF_T % 2147483647 == 1)
14696		      ? 1 : -1];
14697int
14698main ()
14699{
14700
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705if ac_fn_c_try_compile "$LINENO"; then :
14706  ac_cv_sys_file_offset_bits=no; break
14707fi
14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710/* end confdefs.h.  */
14711#define _FILE_OFFSET_BITS 64
14712#include <sys/types.h>
14713 /* Check that off_t can represent 2**63 - 1 correctly.
14714    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14715    since some C++ compilers masquerading as C compilers
14716    incorrectly reject 9223372036854775807.  */
14717#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14718  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14719		       && LARGE_OFF_T % 2147483647 == 1)
14720		      ? 1 : -1];
14721int
14722main ()
14723{
14724
14725  ;
14726  return 0;
14727}
14728_ACEOF
14729if ac_fn_c_try_compile "$LINENO"; then :
14730  ac_cv_sys_file_offset_bits=64; break
14731fi
14732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733  ac_cv_sys_file_offset_bits=unknown
14734  break
14735done
14736fi
14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14738$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14739case $ac_cv_sys_file_offset_bits in #(
14740  no | unknown) ;;
14741  *)
14742cat >>confdefs.h <<_ACEOF
14743#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14744_ACEOF
14745;;
14746esac
14747rm -rf conftest*
14748  if test $ac_cv_sys_file_offset_bits = unknown; then
14749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14750$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14751if ${ac_cv_sys_large_files+:} false; then :
14752  $as_echo_n "(cached) " >&6
14753else
14754  while :; do
14755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h.  */
14757#include <sys/types.h>
14758 /* Check that off_t can represent 2**63 - 1 correctly.
14759    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14760    since some C++ compilers masquerading as C compilers
14761    incorrectly reject 9223372036854775807.  */
14762#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14763  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14764		       && LARGE_OFF_T % 2147483647 == 1)
14765		      ? 1 : -1];
14766int
14767main ()
14768{
14769
14770  ;
14771  return 0;
14772}
14773_ACEOF
14774if ac_fn_c_try_compile "$LINENO"; then :
14775  ac_cv_sys_large_files=no; break
14776fi
14777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h.  */
14780#define _LARGE_FILES 1
14781#include <sys/types.h>
14782 /* Check that off_t can represent 2**63 - 1 correctly.
14783    We can't simply define LARGE_OFF_T to be 9223372036854775807,
14784    since some C++ compilers masquerading as C compilers
14785    incorrectly reject 9223372036854775807.  */
14786#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14787  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14788		       && LARGE_OFF_T % 2147483647 == 1)
14789		      ? 1 : -1];
14790int
14791main ()
14792{
14793
14794  ;
14795  return 0;
14796}
14797_ACEOF
14798if ac_fn_c_try_compile "$LINENO"; then :
14799  ac_cv_sys_large_files=1; break
14800fi
14801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802  ac_cv_sys_large_files=unknown
14803  break
14804done
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14807$as_echo "$ac_cv_sys_large_files" >&6; }
14808case $ac_cv_sys_large_files in #(
14809  no | unknown) ;;
14810  *)
14811cat >>confdefs.h <<_ACEOF
14812#define _LARGE_FILES $ac_cv_sys_large_files
14813_ACEOF
14814;;
14815esac
14816rm -rf conftest*
14817  fi
14818
14819
14820fi
14821
14822
14823
14824
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14826$as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14827cache=_D_LARGEFILE_SOURCE_1
14828if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14829  $as_echo_n "(cached) " >&6
14830else
14831
14832echo '
14833#include <stdio.h>
14834int test() {
14835        int a = fseeko(stdin, 0, 0);
14836        return a;
14837}
14838' > conftest.c
14839echo 'void f(){}' >>conftest.c
14840if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14841eval "cv_prog_cc_flag_needed_$cache=no"
14842else
14843
14844if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14845eval "cv_prog_cc_flag_needed_$cache=yes"
14846else
14847eval "cv_prog_cc_flag_needed_$cache=fail"
14848#echo 'Test with flag fails too!'
14849#cat conftest.c
14850#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14851#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14852#exit 1
14853fi
14854
14855fi
14856rm -f conftest conftest.c conftest.o
14857
14858fi
14859
14860if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14862$as_echo "yes" >&6; }
14863:
14864CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14865else
14866if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868$as_echo "no" >&6; }
14869#echo 'Test with flag is no!'
14870#cat conftest.c
14871#echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14872#echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14873#exit 1
14874:
14875
14876else
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14878$as_echo "failed" >&6; }
14879:
14880
14881fi
14882fi
14883
14884
14885
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14887$as_echo_n "checking if nonblocking sockets work... " >&6; }
14888if echo $target | grep mingw32 >/dev/null; then
14889	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14890$as_echo "no (windows)" >&6; }
14891
14892$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14893
14894else
14895if test "$cross_compiling" = yes; then :
14896
14897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14898$as_echo "crosscompile(yes)" >&6; }
14899
14900else
14901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h.  */
14903
14904
14905#include <stdio.h>
14906#include <string.h>
14907#include <stdlib.h>
14908#include <fcntl.h>
14909#include <errno.h>
14910#ifdef HAVE_SYS_TYPES_H
14911#include <sys/types.h>
14912#endif
14913#ifdef HAVE_SYS_SOCKET_H
14914#include <sys/socket.h>
14915#endif
14916#ifdef HAVE_NETINET_IN_H
14917#include <netinet/in.h>
14918#endif
14919#ifdef HAVE_ARPA_INET_H
14920#include <arpa/inet.h>
14921#endif
14922#ifdef HAVE_UNISTD_H
14923#include <unistd.h>
14924#endif
14925#ifdef HAVE_TIME_H
14926#include <time.h>
14927#endif
14928
14929int main(void)
14930{
14931	int port;
14932	int sfd, cfd;
14933	int num = 10;
14934	int i, p;
14935	struct sockaddr_in a;
14936	/* test if select and nonblocking reads work well together */
14937	/* open port.
14938	   fork child to send 10 messages.
14939	   select to read.
14940	   then try to nonblocking read the 10 messages
14941	   then, nonblocking read must give EAGAIN
14942	*/
14943
14944	port = 12345 + (time(0)%32);
14945	sfd = socket(PF_INET, SOCK_DGRAM, 0);
14946	if(sfd == -1) {
14947		perror("socket");
14948		return 1;
14949	}
14950	memset(&a, 0, sizeof(a));
14951	a.sin_family = AF_INET;
14952	a.sin_port = htons(port);
14953	a.sin_addr.s_addr = inet_addr("127.0.0.1");
14954	if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14955		perror("bind");
14956		return 1;
14957	}
14958	if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14959		perror("fcntl");
14960		return 1;
14961	}
14962
14963	cfd = socket(PF_INET, SOCK_DGRAM, 0);
14964	if(cfd == -1) {
14965		perror("client socket");
14966		return 1;
14967	}
14968	a.sin_port = 0;
14969	if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14970		perror("client bind");
14971		return 1;
14972	}
14973	a.sin_port = htons(port);
14974
14975	/* no handler, causes exit in 10 seconds */
14976	alarm(10);
14977
14978	/* send and receive on the socket */
14979	if((p=fork()) == 0) {
14980		for(i=0; i<num; i++) {
14981			if(sendto(cfd, &i, sizeof(i), 0,
14982				(struct sockaddr*)&a, sizeof(a)) < 0) {
14983				perror("sendto");
14984				return 1;
14985			}
14986		}
14987	} else {
14988		/* parent */
14989		fd_set rset;
14990		int x;
14991		if(p == -1) {
14992			perror("fork");
14993			return 1;
14994		}
14995		FD_ZERO(&rset);
14996		FD_SET(sfd, &rset);
14997		if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14998			perror("select");
14999			return 1;
15000		}
15001		i = 0;
15002		while(i < num) {
15003			if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15004				if(errno == EAGAIN)
15005					continue;
15006				perror("recv");
15007				return 1;
15008			}
15009			i++;
15010		}
15011		/* now we want to get EAGAIN: nonblocking goodness */
15012		errno = 0;
15013		recv(sfd, &x, sizeof(x), 0);
15014		if(errno != EAGAIN) {
15015			perror("trying to recv again");
15016			return 1;
15017		}
15018		/* EAGAIN encountered */
15019	}
15020
15021	close(sfd);
15022	close(cfd);
15023	return 0;
15024}
15025
15026_ACEOF
15027if ac_fn_c_try_run "$LINENO"; then :
15028
15029	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15030$as_echo "yes" >&6; }
15031
15032else
15033
15034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035$as_echo "no" >&6; }
15036
15037$as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15038
15039
15040fi
15041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15042  conftest.$ac_objext conftest.beam conftest.$ac_ext
15043fi
15044
15045fi
15046
15047
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15049$as_echo_n "checking whether mkdir has one arg... " >&6; }
15050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051/* end confdefs.h.  */
15052
15053#include <stdio.h>
15054#include <unistd.h>
15055#ifdef HAVE_WINSOCK2_H
15056#include <winsock2.h>
15057#endif
15058#ifdef HAVE_SYS_STAT_H
15059#include <sys/stat.h>
15060#endif
15061
15062int
15063main ()
15064{
15065
15066	(void)mkdir("directory");
15067
15068  ;
15069  return 0;
15070}
15071_ACEOF
15072if ac_fn_c_try_compile "$LINENO"; then :
15073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15074$as_echo "yes" >&6; }
15075
15076$as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15077
15078
15079else
15080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081$as_echo "no" >&6; }
15082
15083fi
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085
15086for ac_func in strptime
15087do :
15088  ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15089if test "x$ac_cv_func_strptime" = xyes; then :
15090  cat >>confdefs.h <<_ACEOF
15091#define HAVE_STRPTIME 1
15092_ACEOF
15093
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15095$as_echo_n "checking whether strptime works... " >&6; }
15096if test c${cross_compiling} = cno; then
15097if test "$cross_compiling" = yes; then :
15098  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15100as_fn_error $? "cannot run test program while cross compiling
15101See \`config.log' for more details" "$LINENO" 5; }
15102else
15103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105
15106#define _XOPEN_SOURCE 600
15107#include <time.h>
15108int main(void) { struct tm tm; char *res;
15109res = 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);
15110if (!res) return 2;
15111res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15112if (!res) return 1; return 0; }
15113
15114_ACEOF
15115if ac_fn_c_try_run "$LINENO"; then :
15116  eval "ac_cv_c_strptime_works=yes"
15117else
15118  eval "ac_cv_c_strptime_works=no"
15119fi
15120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15121  conftest.$ac_objext conftest.beam conftest.$ac_ext
15122fi
15123
15124else
15125eval "ac_cv_c_strptime_works=maybe"
15126fi
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15128$as_echo "$ac_cv_c_strptime_works" >&6; }
15129if test $ac_cv_c_strptime_works = no; then
15130case " $LIBOBJS " in
15131  *" strptime.$ac_objext "* ) ;;
15132  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15133 ;;
15134esac
15135
15136else
15137
15138cat >>confdefs.h <<_ACEOF
15139#define STRPTIME_WORKS 1
15140_ACEOF
15141
15142fi
15143
15144else
15145  case " $LIBOBJS " in
15146  *" strptime.$ac_objext "* ) ;;
15147  *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15148 ;;
15149esac
15150
15151fi
15152done
15153
15154
15155# set memory allocation checking if requested
15156# Check whether --enable-alloc-checks was given.
15157if test "${enable_alloc_checks+set}" = set; then :
15158  enableval=$enable_alloc_checks;
15159fi
15160
15161# Check whether --enable-alloc-lite was given.
15162if test "${enable_alloc_lite+set}" = set; then :
15163  enableval=$enable_alloc_lite;
15164fi
15165
15166# Check whether --enable-alloc-nonregional was given.
15167if test "${enable_alloc_nonregional+set}" = set; then :
15168  enableval=$enable_alloc_nonregional;
15169fi
15170
15171if test x_$enable_alloc_nonregional = x_yes; then
15172
15173$as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15174
15175fi
15176if test x_$enable_alloc_checks = x_yes; then
15177
15178$as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15179
15180else
15181	if test x_$enable_alloc_lite = x_yes; then
15182
15183$as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15184
15185	else
15186
15187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15188$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15189	if test "$cross_compiling" = yes; then :
15190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15191$as_echo "no (crosscompile)" >&6; }
15192	case " $LIBOBJS " in
15193  *" malloc.$ac_objext "* ) ;;
15194  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15195 ;;
15196esac
15197
15198
15199cat >>confdefs.h <<_ACEOF
15200#define malloc rpl_malloc_unbound
15201_ACEOF
15202
15203else
15204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205/* end confdefs.h.  */
15206#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15207#include <stdlib.h>
15208#else
15209char *malloc ();
15210#endif
15211
15212int
15213main ()
15214{
15215 if(malloc(0) != 0) return 1;
15216  ;
15217  return 0;
15218}
15219
15220_ACEOF
15221if ac_fn_c_try_run "$LINENO"; then :
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15223$as_echo "no" >&6; }
15224	case " $LIBOBJS " in
15225  *" malloc.$ac_objext "* ) ;;
15226  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15227 ;;
15228esac
15229
15230
15231cat >>confdefs.h <<_ACEOF
15232#define malloc rpl_malloc_unbound
15233_ACEOF
15234
15235else
15236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15237$as_echo "yes" >&6; }
15238
15239$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15240
15241fi
15242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15243  conftest.$ac_objext conftest.beam conftest.$ac_ext
15244fi
15245
15246
15247	fi
15248fi
15249
15250# check windows threads (we use them, not pthreads, on windows).
15251if test "$on_mingw" = "yes"; then
15252# check windows threads
15253	for ac_header in windows.h
15254do :
15255  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15256"
15257if test "x$ac_cv_header_windows_h" = xyes; then :
15258  cat >>confdefs.h <<_ACEOF
15259#define HAVE_WINDOWS_H 1
15260_ACEOF
15261
15262fi
15263
15264done
15265
15266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15267$as_echo_n "checking for CreateThread... " >&6; }
15268	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270
15271#ifdef HAVE_WINDOWS_H
15272#include <windows.h>
15273#endif
15274
15275int
15276main ()
15277{
15278
15279	HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15280
15281  ;
15282  return 0;
15283}
15284_ACEOF
15285if ac_fn_c_try_compile "$LINENO"; then :
15286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287$as_echo "yes" >&6; }
15288
15289$as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15290
15291
15292else
15293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
15295
15296fi
15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298
15299else
15300# not on mingw, check thread libraries.
15301
15302# check for thread library.
15303# check this first, so that the pthread lib does not get linked in via
15304# libssl or libpython, and thus distorts the tests, and we end up using
15305# the non-threadsafe C libraries.
15306
15307# Check whether --with-pthreads was given.
15308if test "${with_pthreads+set}" = set; then :
15309  withval=$with_pthreads;
15310else
15311   withval="yes"
15312fi
15313
15314ub_have_pthreads=no
15315if test x_$withval != x_no; then
15316
15317
15318ac_ext=c
15319ac_cpp='$CPP $CPPFLAGS'
15320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15322ac_compiler_gnu=$ac_cv_c_compiler_gnu
15323
15324ax_pthread_ok=no
15325
15326# We used to check for pthread.h first, but this fails if pthread.h
15327# requires special compiler flags (e.g. on True64 or Sequent).
15328# It gets checked for in the link test anyway.
15329
15330# First of all, check if the user has set any of the PTHREAD_LIBS,
15331# etcetera environment variables, and if threads linking works using
15332# them:
15333if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15334        save_CFLAGS="$CFLAGS"
15335        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15336        save_LIBS="$LIBS"
15337        LIBS="$PTHREAD_LIBS $LIBS"
15338        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15339$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15340        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h.  */
15342
15343/* Override any GCC internal prototype to avoid an error.
15344   Use char because int might match the return type of a GCC
15345   builtin and then its argument prototype would still apply.  */
15346#ifdef __cplusplus
15347extern "C"
15348#endif
15349char pthread_join ();
15350int
15351main ()
15352{
15353return pthread_join ();
15354  ;
15355  return 0;
15356}
15357_ACEOF
15358if ac_fn_c_try_link "$LINENO"; then :
15359  ax_pthread_ok=yes
15360fi
15361rm -f core conftest.err conftest.$ac_objext \
15362    conftest$ac_exeext conftest.$ac_ext
15363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15364$as_echo "$ax_pthread_ok" >&6; }
15365        if test x"$ax_pthread_ok" = xno; then
15366                PTHREAD_LIBS=""
15367                PTHREAD_CFLAGS=""
15368        fi
15369        LIBS="$save_LIBS"
15370        CFLAGS="$save_CFLAGS"
15371fi
15372
15373# We must check for the threads library under a number of different
15374# names; the ordering is very important because some systems
15375# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15376# libraries is broken (non-POSIX).
15377
15378# Create a list of thread flags to try.  Items starting with a "-" are
15379# C compiler flags, and other items are library names, except for "none"
15380# which indicates that we try without any flags at all, and "pthread-config"
15381# which is a program returning the flags for the Pth emulation library.
15382
15383ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15384
15385# The ordering *is* (sometimes) important.  Some notes on the
15386# individual items follow:
15387
15388# pthreads: AIX (must check this before -lpthread)
15389# none: in case threads are in libc; should be tried before -Kthread and
15390#       other compiler flags to prevent continual compiler warnings
15391# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15392# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15393# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15394# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15395# -pthreads: Solaris/gcc
15396# -mthreads: Mingw32/gcc, Lynx/gcc
15397# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15398#      doesn't hurt to check since this sometimes defines pthreads too;
15399#      also defines -D_REENTRANT)
15400#      ... -mt is also the pthreads flag for HP/aCC
15401# pthread: Linux, etcetera
15402# --thread-safe: KAI C++
15403# pthread-config: use pthread-config program (for GNU Pth library)
15404
15405case ${host_os} in
15406        solaris*)
15407
15408        # On Solaris (at least, for some versions), libc contains stubbed
15409        # (non-functional) versions of the pthreads routines, so link-based
15410        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15411        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15412        # a function called by this macro, so we could check for that, but
15413        # who knows whether they'll stub that too in a future libc.)  So,
15414        # we'll just look for -pthreads and -lpthread first:
15415
15416        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15417        ;;
15418
15419        darwin*)
15420        ax_pthread_flags="-pthread $ax_pthread_flags"
15421        ;;
15422esac
15423
15424if test x"$ax_pthread_ok" = xno; then
15425for flag in $ax_pthread_flags; do
15426
15427        case $flag in
15428                none)
15429                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15430$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15431                ;;
15432
15433                -*)
15434                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15435$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15436                PTHREAD_CFLAGS="$flag"
15437                ;;
15438
15439                pthread-config)
15440                # Extract the first word of "pthread-config", so it can be a program name with args.
15441set dummy pthread-config; ac_word=$2
15442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15443$as_echo_n "checking for $ac_word... " >&6; }
15444if ${ac_cv_prog_ax_pthread_config+:} false; then :
15445  $as_echo_n "(cached) " >&6
15446else
15447  if test -n "$ax_pthread_config"; then
15448  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15449else
15450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451for as_dir in $PATH
15452do
15453  IFS=$as_save_IFS
15454  test -z "$as_dir" && as_dir=.
15455    for ac_exec_ext in '' $ac_executable_extensions; do
15456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15457    ac_cv_prog_ax_pthread_config="yes"
15458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15459    break 2
15460  fi
15461done
15462  done
15463IFS=$as_save_IFS
15464
15465  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15466fi
15467fi
15468ax_pthread_config=$ac_cv_prog_ax_pthread_config
15469if test -n "$ax_pthread_config"; then
15470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15471$as_echo "$ax_pthread_config" >&6; }
15472else
15473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474$as_echo "no" >&6; }
15475fi
15476
15477
15478                if test x"$ax_pthread_config" = xno; then continue; fi
15479                PTHREAD_CFLAGS="`pthread-config --cflags`"
15480                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15481                ;;
15482
15483                *)
15484                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15485$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15486                PTHREAD_LIBS="-l$flag"
15487                ;;
15488        esac
15489
15490        save_LIBS="$LIBS"
15491        save_CFLAGS="$CFLAGS"
15492        LIBS="$PTHREAD_LIBS $LIBS"
15493        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15494
15495        # Check for various functions.  We must include pthread.h,
15496        # since some functions may be macros.  (On the Sequent, we
15497        # need a special flag -Kthread to make this header compile.)
15498        # We check for pthread_join because it is in -lpthread on IRIX
15499        # while pthread_create is in libc.  We check for pthread_attr_init
15500        # due to DEC craziness with -lpthreads.  We check for
15501        # pthread_cleanup_push because it is one of the few pthread
15502        # functions on Solaris that doesn't have a non-functional libc stub.
15503        # We try pthread_create on general principles.
15504        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505/* end confdefs.h.  */
15506#include <pthread.h>
15507                        static void routine(void *a) { *((int*)a) = 0; }
15508                        static void *start_routine(void *a) { return a; }
15509int
15510main ()
15511{
15512pthread_t th; pthread_attr_t attr;
15513                        pthread_create(&th, 0, start_routine, 0);
15514                        pthread_join(th, 0);
15515                        pthread_attr_init(&attr);
15516                        pthread_cleanup_push(routine, 0);
15517                        pthread_cleanup_pop(0) /* ; */
15518  ;
15519  return 0;
15520}
15521_ACEOF
15522if ac_fn_c_try_link "$LINENO"; then :
15523  ax_pthread_ok=yes
15524fi
15525rm -f core conftest.err conftest.$ac_objext \
15526    conftest$ac_exeext conftest.$ac_ext
15527
15528        LIBS="$save_LIBS"
15529        CFLAGS="$save_CFLAGS"
15530
15531        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15532$as_echo "$ax_pthread_ok" >&6; }
15533        if test "x$ax_pthread_ok" = xyes; then
15534                break;
15535        fi
15536
15537        PTHREAD_LIBS=""
15538        PTHREAD_CFLAGS=""
15539done
15540fi
15541
15542# Various other checks:
15543if test "x$ax_pthread_ok" = xyes; then
15544        save_LIBS="$LIBS"
15545        LIBS="$PTHREAD_LIBS $LIBS"
15546        save_CFLAGS="$CFLAGS"
15547        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15548
15549        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15550        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15551$as_echo_n "checking for joinable pthread attribute... " >&6; }
15552        attr_name=unknown
15553        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15554            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556#include <pthread.h>
15557int
15558main ()
15559{
15560int attr = $attr; return attr /* ; */
15561  ;
15562  return 0;
15563}
15564_ACEOF
15565if ac_fn_c_try_link "$LINENO"; then :
15566  attr_name=$attr; break
15567fi
15568rm -f core conftest.err conftest.$ac_objext \
15569    conftest$ac_exeext conftest.$ac_ext
15570        done
15571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15572$as_echo "$attr_name" >&6; }
15573        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15574
15575cat >>confdefs.h <<_ACEOF
15576#define PTHREAD_CREATE_JOINABLE $attr_name
15577_ACEOF
15578
15579        fi
15580
15581        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15582$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15583        flag=no
15584        case ${host_os} in
15585            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15586            osf* | hpux*) flag="-D_REENTRANT";;
15587            solaris*)
15588            if test "$GCC" = "yes"; then
15589                flag="-D_REENTRANT"
15590            else
15591                flag="-mt -D_REENTRANT"
15592            fi
15593            ;;
15594        esac
15595        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15596$as_echo "${flag}" >&6; }
15597        if test "x$flag" != xno; then
15598            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15599        fi
15600
15601        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15602$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15603if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15604  $as_echo_n "(cached) " >&6
15605else
15606
15607                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608/* end confdefs.h.  */
15609
15610                    #include <pthread.h>
15611int
15612main ()
15613{
15614int i = PTHREAD_PRIO_INHERIT;
15615  ;
15616  return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_link "$LINENO"; then :
15620  ax_cv_PTHREAD_PRIO_INHERIT=yes
15621else
15622  ax_cv_PTHREAD_PRIO_INHERIT=no
15623fi
15624rm -f core conftest.err conftest.$ac_objext \
15625    conftest$ac_exeext conftest.$ac_ext
15626
15627fi
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15629$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15630        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15631
15632$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15633
15634fi
15635
15636        LIBS="$save_LIBS"
15637        CFLAGS="$save_CFLAGS"
15638
15639        # More AIX lossage: compile with *_r variant
15640        if test "x$GCC" != xyes; then
15641            case $host_os in
15642                aix*)
15643                case "x/$CC" in #(
15644  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15645    #handle absolute path differently from PATH based program lookup
15646                   case "x$CC" in #(
15647  x/*) :
15648    if as_fn_executable_p ${CC}_r; then :
15649  PTHREAD_CC="${CC}_r"
15650fi ;; #(
15651  *) :
15652    for ac_prog in ${CC}_r
15653do
15654  # Extract the first word of "$ac_prog", so it can be a program name with args.
15655set dummy $ac_prog; ac_word=$2
15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657$as_echo_n "checking for $ac_word... " >&6; }
15658if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15659  $as_echo_n "(cached) " >&6
15660else
15661  if test -n "$PTHREAD_CC"; then
15662  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15663else
15664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15665for as_dir in $PATH
15666do
15667  IFS=$as_save_IFS
15668  test -z "$as_dir" && as_dir=.
15669    for ac_exec_ext in '' $ac_executable_extensions; do
15670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15671    ac_cv_prog_PTHREAD_CC="$ac_prog"
15672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15673    break 2
15674  fi
15675done
15676  done
15677IFS=$as_save_IFS
15678
15679fi
15680fi
15681PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15682if test -n "$PTHREAD_CC"; then
15683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15684$as_echo "$PTHREAD_CC" >&6; }
15685else
15686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15687$as_echo "no" >&6; }
15688fi
15689
15690
15691  test -n "$PTHREAD_CC" && break
15692done
15693test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15694 ;;
15695esac ;; #(
15696  *) :
15697     ;;
15698esac
15699                ;;
15700            esac
15701        fi
15702fi
15703
15704test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15705
15706
15707
15708
15709
15710# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15711if test x"$ax_pthread_ok" = xyes; then
15712
15713
15714$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15715
15716		LIBS="$PTHREAD_LIBS $LIBS"
15717		CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15718		CC="$PTHREAD_CC"
15719		ub_have_pthreads=yes
15720		ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15721"
15722if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15723
15724cat >>confdefs.h <<_ACEOF
15725#define HAVE_PTHREAD_SPINLOCK_T 1
15726_ACEOF
15727
15728
15729fi
15730ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15731"
15732if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15733
15734cat >>confdefs.h <<_ACEOF
15735#define HAVE_PTHREAD_RWLOCK_T 1
15736_ACEOF
15737
15738
15739fi
15740
15741
15742        :
15743else
15744        ax_pthread_ok=no
15745
15746fi
15747ac_ext=c
15748ac_cpp='$CPP $CPPFLAGS'
15749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15751ac_compiler_gnu=$ac_cv_c_compiler_gnu
15752
15753
15754fi
15755
15756# check solaris thread library
15757
15758# Check whether --with-solaris-threads was given.
15759if test "${with_solaris_threads+set}" = set; then :
15760  withval=$with_solaris_threads;
15761else
15762   withval="no"
15763fi
15764
15765ub_have_sol_threads=no
15766if test x_$withval != x_no; then
15767	if test x_$ub_have_pthreads != x_no; then
15768	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15769$as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15770	else
15771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15772$as_echo_n "checking for library containing thr_create... " >&6; }
15773if ${ac_cv_search_thr_create+:} false; then :
15774  $as_echo_n "(cached) " >&6
15775else
15776  ac_func_search_save_LIBS=$LIBS
15777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778/* end confdefs.h.  */
15779
15780/* Override any GCC internal prototype to avoid an error.
15781   Use char because int might match the return type of a GCC
15782   builtin and then its argument prototype would still apply.  */
15783#ifdef __cplusplus
15784extern "C"
15785#endif
15786char thr_create ();
15787int
15788main ()
15789{
15790return thr_create ();
15791  ;
15792  return 0;
15793}
15794_ACEOF
15795for ac_lib in '' thread; do
15796  if test -z "$ac_lib"; then
15797    ac_res="none required"
15798  else
15799    ac_res=-l$ac_lib
15800    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15801  fi
15802  if ac_fn_c_try_link "$LINENO"; then :
15803  ac_cv_search_thr_create=$ac_res
15804fi
15805rm -f core conftest.err conftest.$ac_objext \
15806    conftest$ac_exeext
15807  if ${ac_cv_search_thr_create+:} false; then :
15808  break
15809fi
15810done
15811if ${ac_cv_search_thr_create+:} false; then :
15812
15813else
15814  ac_cv_search_thr_create=no
15815fi
15816rm conftest.$ac_ext
15817LIBS=$ac_func_search_save_LIBS
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15820$as_echo "$ac_cv_search_thr_create" >&6; }
15821ac_res=$ac_cv_search_thr_create
15822if test "$ac_res" != no; then :
15823  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15824
15825
15826$as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15827
15828
15829
15830
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15832$as_echo_n "checking whether $CC supports -mt... " >&6; }
15833cache=`echo mt | sed 'y%.=/+-%___p_%'`
15834if eval \${cv_prog_cc_flag_$cache+:} false; then :
15835  $as_echo_n "(cached) " >&6
15836else
15837
15838echo 'void f(void){}' >conftest.c
15839if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15840eval "cv_prog_cc_flag_$cache=yes"
15841else
15842eval "cv_prog_cc_flag_$cache=no"
15843fi
15844rm -f conftest conftest.o conftest.c
15845
15846fi
15847
15848if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15850$as_echo "yes" >&6; }
15851:
15852CFLAGS="$CFLAGS -mt"
15853else
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855$as_echo "no" >&6; }
15856:
15857CFLAGS="$CFLAGS -D_REENTRANT"
15858fi
15859
15860		ub_have_sol_threads=yes
15861
15862else
15863
15864		as_fn_error $? "no solaris threads found." "$LINENO" 5
15865
15866fi
15867
15868	fi
15869fi
15870
15871fi # end of non-mingw check of thread libraries
15872
15873# Check for PyUnbound
15874
15875# Check whether --with-pyunbound was given.
15876if test "${with_pyunbound+set}" = set; then :
15877  withval=$with_pyunbound;
15878else
15879   withval="no"
15880fi
15881
15882
15883ub_test_python=no
15884ub_with_pyunbound=no
15885if test x_$withval != x_no; then
15886   ub_with_pyunbound=yes
15887   ub_test_python=yes
15888fi
15889
15890# Check for Python module
15891
15892# Check whether --with-pythonmodule was given.
15893if test "${with_pythonmodule+set}" = set; then :
15894  withval=$with_pythonmodule;
15895else
15896   withval="no"
15897fi
15898
15899
15900ub_with_pythonmod=no
15901if test x_$withval != x_no; then
15902   ub_with_pythonmod=yes
15903   ub_test_python=yes
15904fi
15905
15906# Check for Python & SWIG only on PyUnbound or PyModule
15907if test x_$ub_test_python != x_no; then
15908
15909   # Check for Python
15910   ub_have_python=no
15911   ac_save_LIBS="$LIBS"
15912        #
15913        # Allow the use of a (user set) custom python version
15914        #
15915
15916
15917        # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15918set dummy python$PYTHON_VERSION; ac_word=$2
15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15920$as_echo_n "checking for $ac_word... " >&6; }
15921if ${ac_cv_path_PYTHON+:} false; then :
15922  $as_echo_n "(cached) " >&6
15923else
15924  case $PYTHON in
15925  [\\/]* | ?:[\\/]*)
15926  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15927  ;;
15928  *)
15929  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15930for as_dir in $PATH
15931do
15932  IFS=$as_save_IFS
15933  test -z "$as_dir" && as_dir=.
15934    for ac_exec_ext in '' $ac_executable_extensions; do
15935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15936    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15938    break 2
15939  fi
15940done
15941  done
15942IFS=$as_save_IFS
15943
15944  ;;
15945esac
15946fi
15947PYTHON=$ac_cv_path_PYTHON
15948if test -n "$PYTHON"; then
15949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15950$as_echo "$PYTHON" >&6; }
15951else
15952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953$as_echo "no" >&6; }
15954fi
15955
15956
15957        if test -z "$PYTHON"; then
15958           as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15959           PYTHON_VERSION=""
15960        fi
15961
15962        if test -z "$PYTHON_VERSION"; then
15963		PYTHON_VERSION=`$PYTHON -c "import sys; \
15964			print(sys.version.split()[0])"`
15965	fi
15966
15967        #
15968        # Check if you have distutils, else fail
15969        #
15970        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15971$as_echo_n "checking for the distutils Python package... " >&6; }
15972        ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15973        if test -z "$ac_distutils_result"; then
15974                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15975$as_echo "yes" >&6; }
15976        else
15977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978$as_echo "no" >&6; }
15979                as_fn_error $? "cannot import Python module \"distutils\".
15980Please check your Python installation. The error was:
15981$ac_distutils_result" "$LINENO" 5
15982                PYTHON_VERSION=""
15983        fi
15984
15985        #
15986        # Check for Python include path
15987        #
15988        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15989$as_echo_n "checking for Python include path... " >&6; }
15990        if test -z "$PYTHON_CPPFLAGS"; then
15991                python_path=`$PYTHON -c "import distutils.sysconfig; \
15992                        print(distutils.sysconfig.get_python_inc());"`
15993                if test -n "${python_path}"; then
15994                        python_path="-I$python_path"
15995                fi
15996                PYTHON_CPPFLAGS=$python_path
15997        fi
15998        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15999$as_echo "$PYTHON_CPPFLAGS" >&6; }
16000
16001
16002        #
16003        # Check for Python library path
16004        #
16005        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16006$as_echo_n "checking for Python library path... " >&6; }
16007        if test -z "$PYTHON_LDFLAGS"; then
16008                PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16009                        print(get_config_var('BLDLIBRARY'));"`
16010        fi
16011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16012$as_echo "$PYTHON_LDFLAGS" >&6; }
16013
16014
16015        #
16016        # Check for site packages
16017        #
16018        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16019$as_echo_n "checking for Python site-packages path... " >&6; }
16020        if test -z "$PYTHON_SITE_PKG"; then
16021                PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16022                        print(distutils.sysconfig.get_python_lib(1,0));"`
16023        fi
16024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16025$as_echo "$PYTHON_SITE_PKG" >&6; }
16026
16027
16028        #
16029        # final check to see if everything compiles alright
16030        #
16031        { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16032$as_echo_n "checking consistency of all components of python development environment... " >&6; }
16033        ac_ext=c
16034ac_cpp='$CPP $CPPFLAGS'
16035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16037ac_compiler_gnu=$ac_cv_c_compiler_gnu
16038
16039        # save current global flags
16040        ac_save_LIBS="$LIBS"
16041        ac_save_CPPFLAGS="$CPPFLAGS"
16042
16043        LIBS="$LIBS $PYTHON_LDFLAGS"
16044        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16045        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046/* end confdefs.h.  */
16047
16048                #include <Python.h>
16049
16050int
16051main ()
16052{
16053
16054                Py_Initialize();
16055
16056  ;
16057  return 0;
16058}
16059_ACEOF
16060if ac_fn_c_try_link "$LINENO"; then :
16061  pythonexists=yes
16062else
16063  pythonexists=no
16064fi
16065rm -f core conftest.err conftest.$ac_objext \
16066    conftest$ac_exeext conftest.$ac_ext
16067
16068        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16069$as_echo "$pythonexists" >&6; }
16070
16071        if test ! "$pythonexists" = "yes"; then
16072           as_fn_error $? "
16073  Could not link test program to Python. Maybe the main Python library has been
16074  installed in some non-standard library path. If so, pass it to configure,
16075  via the LDFLAGS environment variable.
16076  Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16077  ============================================================================
16078   ERROR!
16079   You probably have to install the development version of the Python package
16080   for your distribution.  The exact name of this package varies among them.
16081  ============================================================================
16082           " "$LINENO" 5
16083          PYTHON_VERSION=""
16084        fi
16085        ac_ext=c
16086ac_cpp='$CPP $CPPFLAGS'
16087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16089ac_compiler_gnu=$ac_cv_c_compiler_gnu
16090
16091        # turn back to default flags
16092        CPPFLAGS="$ac_save_CPPFLAGS"
16093        LIBS="$ac_save_LIBS"
16094
16095        #
16096        # all done!
16097        #
16098
16099   if test ! -z "$PYTHON_VERSION"; then
16100	if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16101		as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16102	fi
16103
16104      PY_MAJOR_VERSION="`$PYTHON -c "import sys; print(sys.version_info.major)"`"
16105
16106      # Have Python
16107
16108$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16109
16110      LIBS="$PYTHON_LDFLAGS $LIBS"
16111      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16112      ub_have_python=yes
16113
16114      # Check for SWIG
16115      ub_have_swig=no
16116
16117        # Extract the first word of "swig", so it can be a program name with args.
16118set dummy swig; ac_word=$2
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16120$as_echo_n "checking for $ac_word... " >&6; }
16121if ${ac_cv_path_SWIG+:} false; then :
16122  $as_echo_n "(cached) " >&6
16123else
16124  case $SWIG in
16125  [\\/]* | ?:[\\/]*)
16126  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16127  ;;
16128  *)
16129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130for as_dir in $PATH
16131do
16132  IFS=$as_save_IFS
16133  test -z "$as_dir" && as_dir=.
16134    for ac_exec_ext in '' $ac_executable_extensions; do
16135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138    break 2
16139  fi
16140done
16141  done
16142IFS=$as_save_IFS
16143
16144  ;;
16145esac
16146fi
16147SWIG=$ac_cv_path_SWIG
16148if test -n "$SWIG"; then
16149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16150$as_echo "$SWIG" >&6; }
16151else
16152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153$as_echo "no" >&6; }
16154fi
16155
16156
16157        if test -z "$SWIG" ; then
16158                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16159$as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16160                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16161        elif test -n "" ; then
16162                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16163$as_echo_n "checking for SWIG version... " >&6; }
16164                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'`
16165                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16166$as_echo "$swig_version" >&6; }
16167                if test -n "$swig_version" ; then
16168                        # Calculate the required version number components
16169                        required=
16170                        required_major=`echo $required | sed 's/[^0-9].*//'`
16171                        if test -z "$required_major" ; then
16172                                required_major=0
16173                        fi
16174                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16175                        required_minor=`echo $required | sed 's/[^0-9].*//'`
16176                        if test -z "$required_minor" ; then
16177                                required_minor=0
16178                        fi
16179                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16180                        required_patch=`echo $required | sed 's/[^0-9].*//'`
16181                        if test -z "$required_patch" ; then
16182                                required_patch=0
16183                        fi
16184                        # Calculate the available version number components
16185                        available=$swig_version
16186                        available_major=`echo $available | sed 's/[^0-9].*//'`
16187                        if test -z "$available_major" ; then
16188                                available_major=0
16189                        fi
16190                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16191                        available_minor=`echo $available | sed 's/[^0-9].*//'`
16192                        if test -z "$available_minor" ; then
16193                                available_minor=0
16194                        fi
16195                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16196                        available_patch=`echo $available | sed 's/[^0-9].*//'`
16197                        if test -z "$available_patch" ; then
16198                                available_patch=0
16199                        fi
16200                        if test $available_major -ne $required_major \
16201                                -o $available_minor -ne $required_minor \
16202                                -o $available_patch -lt $required_patch ; then
16203                                { $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
16204$as_echo "$as_me: WARNING: SWIG version >=  is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
16205                                SWIG='echo "Error: SWIG version >=  is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
16206                        else
16207                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16208$as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16209                                SWIG_LIB=`$SWIG -swiglib`
16210                                { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16211$as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16212                        fi
16213                else
16214                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16215$as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16216                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
16217                fi
16218        fi
16219
16220
16221      { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16222$as_echo_n "checking SWIG... " >&6; }
16223      if test ! -x "$SWIG"; then
16224         as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16225      else
16226
16227$as_echo "#define HAVE_SWIG 1" >>confdefs.h
16228
16229         swig="$SWIG"
16230
16231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16232$as_echo "present" >&6; }
16233
16234         # If have Python & SWIG
16235         # Declare PythonMod
16236         if test x_$ub_with_pythonmod != x_no; then
16237
16238$as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16239
16240            WITH_PYTHONMODULE=yes
16241
16242	    PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16243
16244	    PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16245
16246	    PYTHONMOD_INSTALL=pythonmod-install
16247
16248	    PYTHONMOD_UNINSTALL=pythonmod-uninstall
16249
16250         fi
16251
16252         # Declare PyUnbound
16253         if test x_$ub_with_pyunbound != x_no; then
16254
16255$as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16256
16257            WITH_PYUNBOUND=yes
16258
16259	    PYUNBOUND_OBJ="libunbound_wrap.lo"
16260
16261	    PYUNBOUND_TARGET="_unbound.la"
16262
16263	    PYUNBOUND_INSTALL=pyunbound-install
16264
16265	    PYUNBOUND_UNINSTALL=pyunbound-uninstall
16266
16267         fi
16268      fi
16269   else
16270      { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16271$as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16272      ub_with_pyunbound=no
16273      ub_with_pythonmod=no
16274   fi
16275fi
16276
16277if test "`uname`" = "NetBSD"; then
16278	NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16279
16280fi
16281CONFIG_DATE=`date +%Y%m%d`
16282
16283
16284# Checks for libraries.
16285
16286# libnss
16287USE_NSS="no"
16288
16289# Check whether --with-nss was given.
16290if test "${with_nss+set}" = set; then :
16291  withval=$with_nss;
16292	USE_NSS="yes"
16293
16294$as_echo "#define HAVE_NSS 1" >>confdefs.h
16295
16296	if test "$withval" != "" -a "$withval" != "yes"; then
16297		CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16298		LDFLAGS="$LDFLAGS -L$withval/lib"
16299
16300	if test "x$enable_rpath" = xyes; then
16301		if echo "$withval/lib" | grep "^/" >/dev/null; then
16302			RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16303		fi
16304	fi
16305
16306		CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16307	else
16308		CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16309		CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16310	fi
16311        LIBS="$LIBS -lnss3 -lnspr4"
16312
16313
16314fi
16315
16316
16317# openssl
16318if test $USE_NSS = "no"; then
16319
16320
16321# Check whether --with-ssl was given.
16322if test "${with_ssl+set}" = set; then :
16323  withval=$with_ssl;
16324
16325else
16326
16327            withval="yes"
16328
16329fi
16330
16331    if test x_$withval = x_no; then
16332	as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16333    fi
16334
16335    withval=$withval
16336    if test x_$withval != x_no; then
16337        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16338$as_echo_n "checking for SSL... " >&6; }
16339        if test x_$withval = x_ -o x_$withval = x_yes; then
16340            withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16341        fi
16342        for dir in $withval; do
16343            ssldir="$dir"
16344            if test -f "$dir/include/openssl/ssl.h"; then
16345                found_ssl="yes"
16346
16347cat >>confdefs.h <<_ACEOF
16348#define HAVE_SSL /**/
16349_ACEOF
16350
16351                                if test "$ssldir" != "/usr"; then
16352                        CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16353                        LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16354                fi
16355                break;
16356            fi
16357        done
16358        if test x_$found_ssl != x_yes; then
16359            as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16360        else
16361            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16362$as_echo "found in $ssldir" >&6; }
16363            HAVE_SSL=yes
16364                        if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16365                LDFLAGS="$LDFLAGS -L$ssldir/lib"
16366                LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16367
16368	if test "x$enable_rpath" = xyes; then
16369		if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16370			RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16371		fi
16372	fi
16373
16374            fi
16375
16376            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16377$as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16378            LIBS="$LIBS -lcrypto"
16379            LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16380            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382
16383int
16384main ()
16385{
16386
16387                int HMAC_CTX_init(void);
16388                (void)HMAC_CTX_init();
16389
16390  ;
16391  return 0;
16392}
16393_ACEOF
16394if ac_fn_c_try_link "$LINENO"; then :
16395
16396                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16397$as_echo "yes" >&6; }
16398
16399$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16400
16401
16402else
16403
16404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16405$as_echo "no" >&6; }
16406                # check if -lwsock32 or -lgdi32 are needed.
16407                BAKLIBS="$LIBS"
16408                BAKSSLLIBS="$LIBSSL_LIBS"
16409                LIBS="$LIBS -lgdi32"
16410                LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16411                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16412$as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16413                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414/* end confdefs.h.  */
16415
16416int
16417main ()
16418{
16419
16420                    int HMAC_CTX_init(void);
16421                    (void)HMAC_CTX_init();
16422
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_link "$LINENO"; then :
16428
16429
16430$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16431
16432                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16433$as_echo "yes" >&6; }
16434
16435else
16436
16437                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16438$as_echo "no" >&6; }
16439                    LIBS="$BAKLIBS"
16440                    LIBSSL_LIBS="$BAKSSLLIBS"
16441                    LIBS="$LIBS -ldl"
16442                    LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16443                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16444$as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16445                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h.  */
16447
16448int
16449main ()
16450{
16451
16452                        int HMAC_CTX_init(void);
16453                        (void)HMAC_CTX_init();
16454
16455  ;
16456  return 0;
16457}
16458_ACEOF
16459if ac_fn_c_try_link "$LINENO"; then :
16460
16461
16462$as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16463
16464                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16465$as_echo "yes" >&6; }
16466
16467else
16468
16469                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470$as_echo "no" >&6; }
16471                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16472
16473fi
16474rm -f core conftest.err conftest.$ac_objext \
16475    conftest$ac_exeext conftest.$ac_ext
16476
16477fi
16478rm -f core conftest.err conftest.$ac_objext \
16479    conftest$ac_exeext conftest.$ac_ext
16480
16481fi
16482rm -f core conftest.err conftest.$ac_objext \
16483    conftest$ac_exeext conftest.$ac_ext
16484        fi
16485
16486
16487	# openssl engine functionality needs dlopen().
16488	BAKLIBS="$LIBS"
16489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16490$as_echo_n "checking for library containing dlopen... " >&6; }
16491if ${ac_cv_search_dlopen+:} false; then :
16492  $as_echo_n "(cached) " >&6
16493else
16494  ac_func_search_save_LIBS=$LIBS
16495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h.  */
16497
16498/* Override any GCC internal prototype to avoid an error.
16499   Use char because int might match the return type of a GCC
16500   builtin and then its argument prototype would still apply.  */
16501#ifdef __cplusplus
16502extern "C"
16503#endif
16504char dlopen ();
16505int
16506main ()
16507{
16508return dlopen ();
16509  ;
16510  return 0;
16511}
16512_ACEOF
16513for ac_lib in '' dl; do
16514  if test -z "$ac_lib"; then
16515    ac_res="none required"
16516  else
16517    ac_res=-l$ac_lib
16518    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16519  fi
16520  if ac_fn_c_try_link "$LINENO"; then :
16521  ac_cv_search_dlopen=$ac_res
16522fi
16523rm -f core conftest.err conftest.$ac_objext \
16524    conftest$ac_exeext
16525  if ${ac_cv_search_dlopen+:} false; then :
16526  break
16527fi
16528done
16529if ${ac_cv_search_dlopen+:} false; then :
16530
16531else
16532  ac_cv_search_dlopen=no
16533fi
16534rm conftest.$ac_ext
16535LIBS=$ac_func_search_save_LIBS
16536fi
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16538$as_echo "$ac_cv_search_dlopen" >&6; }
16539ac_res=$ac_cv_search_dlopen
16540if test "$ac_res" != no; then :
16541  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16542
16543fi
16544
16545	if test "$LIBS" != "$BAKLIBS"; then
16546		LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16547	fi
16548    fi
16549for ac_header in openssl/ssl.h
16550do :
16551  ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16552"
16553if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16554  cat >>confdefs.h <<_ACEOF
16555#define HAVE_OPENSSL_SSL_H 1
16556_ACEOF
16557
16558fi
16559
16560done
16561
16562for ac_header in openssl/err.h
16563do :
16564  ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16565"
16566if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16567  cat >>confdefs.h <<_ACEOF
16568#define HAVE_OPENSSL_ERR_H 1
16569_ACEOF
16570
16571fi
16572
16573done
16574
16575for ac_header in openssl/rand.h
16576do :
16577  ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16578"
16579if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16580  cat >>confdefs.h <<_ACEOF
16581#define HAVE_OPENSSL_RAND_H 1
16582_ACEOF
16583
16584fi
16585
16586done
16587
16588
16589
16590
16591# check if libssl needs libdl
16592BAKLIBS="$LIBS"
16593LIBS="-lssl $LIBS"
16594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16595$as_echo_n "checking if libssl needs libdl... " >&6; }
16596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597/* end confdefs.h.  */
16598
16599/* Override any GCC internal prototype to avoid an error.
16600   Use char because int might match the return type of a GCC
16601   builtin and then its argument prototype would still apply.  */
16602#ifdef __cplusplus
16603extern "C"
16604#endif
16605char SSL_CTX_new ();
16606int
16607main ()
16608{
16609return SSL_CTX_new ();
16610  ;
16611  return 0;
16612}
16613_ACEOF
16614if ac_fn_c_try_link "$LINENO"; then :
16615
16616	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617$as_echo "no" >&6; }
16618	LIBS="$BAKLIBS"
16619
16620else
16621
16622	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16623$as_echo "yes" >&6; }
16624	LIBS="$BAKLIBS"
16625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16626$as_echo_n "checking for library containing dlopen... " >&6; }
16627if ${ac_cv_search_dlopen+:} false; then :
16628  $as_echo_n "(cached) " >&6
16629else
16630  ac_func_search_save_LIBS=$LIBS
16631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h.  */
16633
16634/* Override any GCC internal prototype to avoid an error.
16635   Use char because int might match the return type of a GCC
16636   builtin and then its argument prototype would still apply.  */
16637#ifdef __cplusplus
16638extern "C"
16639#endif
16640char dlopen ();
16641int
16642main ()
16643{
16644return dlopen ();
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649for ac_lib in '' dl; do
16650  if test -z "$ac_lib"; then
16651    ac_res="none required"
16652  else
16653    ac_res=-l$ac_lib
16654    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16655  fi
16656  if ac_fn_c_try_link "$LINENO"; then :
16657  ac_cv_search_dlopen=$ac_res
16658fi
16659rm -f core conftest.err conftest.$ac_objext \
16660    conftest$ac_exeext
16661  if ${ac_cv_search_dlopen+:} false; then :
16662  break
16663fi
16664done
16665if ${ac_cv_search_dlopen+:} false; then :
16666
16667else
16668  ac_cv_search_dlopen=no
16669fi
16670rm conftest.$ac_ext
16671LIBS=$ac_func_search_save_LIBS
16672fi
16673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16674$as_echo "$ac_cv_search_dlopen" >&6; }
16675ac_res=$ac_cv_search_dlopen
16676if test "$ac_res" != no; then :
16677  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16678
16679fi
16680
16681
16682fi
16683rm -f core conftest.err conftest.$ac_objext \
16684    conftest$ac_exeext conftest.$ac_ext
16685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16686$as_echo_n "checking for LibreSSL... " >&6; }
16687if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16688	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16689$as_echo "yes" >&6; }
16690
16691$as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16692
16693	# libressl provides these compat functions, but they may also be
16694	# declared by the OS in libc.  See if they have been declared.
16695	ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16696if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16697  ac_have_decl=1
16698else
16699  ac_have_decl=0
16700fi
16701
16702cat >>confdefs.h <<_ACEOF
16703#define HAVE_DECL_STRLCPY $ac_have_decl
16704_ACEOF
16705ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16706if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16707  ac_have_decl=1
16708else
16709  ac_have_decl=0
16710fi
16711
16712cat >>confdefs.h <<_ACEOF
16713#define HAVE_DECL_STRLCAT $ac_have_decl
16714_ACEOF
16715ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16716if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16717  ac_have_decl=1
16718else
16719  ac_have_decl=0
16720fi
16721
16722cat >>confdefs.h <<_ACEOF
16723#define HAVE_DECL_ARC4RANDOM $ac_have_decl
16724_ACEOF
16725ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16726if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16727  ac_have_decl=1
16728else
16729  ac_have_decl=0
16730fi
16731
16732cat >>confdefs.h <<_ACEOF
16733#define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16734_ACEOF
16735ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
16736if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
16737  ac_have_decl=1
16738else
16739  ac_have_decl=0
16740fi
16741
16742cat >>confdefs.h <<_ACEOF
16743#define HAVE_DECL_REALLOCARRAY $ac_have_decl
16744_ACEOF
16745
16746else
16747	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748$as_echo "no" >&6; }
16749fi
16750for ac_header in openssl/conf.h
16751do :
16752  ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16753"
16754if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16755  cat >>confdefs.h <<_ACEOF
16756#define HAVE_OPENSSL_CONF_H 1
16757_ACEOF
16758
16759fi
16760
16761done
16762
16763for ac_header in openssl/engine.h
16764do :
16765  ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16766"
16767if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16768  cat >>confdefs.h <<_ACEOF
16769#define HAVE_OPENSSL_ENGINE_H 1
16770_ACEOF
16771
16772fi
16773
16774done
16775
16776for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16777do :
16778  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16779ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16780if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16781  cat >>confdefs.h <<_ACEOF
16782#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16783_ACEOF
16784
16785fi
16786done
16787
16788ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16789$ac_includes_default
16790#ifdef HAVE_OPENSSL_ERR_H
16791#include <openssl/err.h>
16792#endif
16793
16794#ifdef HAVE_OPENSSL_RAND_H
16795#include <openssl/rand.h>
16796#endif
16797
16798#ifdef HAVE_OPENSSL_CONF_H
16799#include <openssl/conf.h>
16800#endif
16801
16802#ifdef HAVE_OPENSSL_ENGINE_H
16803#include <openssl/engine.h>
16804#endif
16805#include <openssl/ssl.h>
16806#include <openssl/evp.h>
16807
16808"
16809if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16810  ac_have_decl=1
16811else
16812  ac_have_decl=0
16813fi
16814
16815cat >>confdefs.h <<_ACEOF
16816#define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16817_ACEOF
16818ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16819$ac_includes_default
16820#ifdef HAVE_OPENSSL_ERR_H
16821#include <openssl/err.h>
16822#endif
16823
16824#ifdef HAVE_OPENSSL_RAND_H
16825#include <openssl/rand.h>
16826#endif
16827
16828#ifdef HAVE_OPENSSL_CONF_H
16829#include <openssl/conf.h>
16830#endif
16831
16832#ifdef HAVE_OPENSSL_ENGINE_H
16833#include <openssl/engine.h>
16834#endif
16835#include <openssl/ssl.h>
16836#include <openssl/evp.h>
16837
16838"
16839if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16840  ac_have_decl=1
16841else
16842  ac_have_decl=0
16843fi
16844
16845cat >>confdefs.h <<_ACEOF
16846#define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16847_ACEOF
16848
16849fi
16850
16851
16852# Check whether --enable-sha2 was given.
16853if test "${enable_sha2+set}" = set; then :
16854  enableval=$enable_sha2;
16855fi
16856
16857case "$enable_sha2" in
16858	no)
16859	;;
16860	yes|*)
16861
16862$as_echo "#define USE_SHA2 1" >>confdefs.h
16863
16864	;;
16865esac
16866
16867# check wether gost also works
16868
16869# Check whether --enable-gost was given.
16870if test "${enable_gost+set}" = set; then :
16871  enableval=$enable_gost;
16872fi
16873
16874use_gost="no"
16875if test $USE_NSS = "no"; then
16876case "$enable_gost" in
16877	no)
16878	;;
16879	*)
16880	ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16881if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16882  :
16883else
16884  as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16885fi
16886
16887	ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16888if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16889
16890else
16891  as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16892fi
16893
16894
16895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16896$as_echo_n "checking if GOST works... " >&6; }
16897if test c${cross_compiling} = cno; then
16898BAKCFLAGS="$CFLAGS"
16899if test -n "$ssldir"; then
16900	CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16901fi
16902if test "$cross_compiling" = yes; then :
16903  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16905as_fn_error $? "cannot run test program while cross compiling
16906See \`config.log' for more details" "$LINENO" 5; }
16907else
16908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909/* end confdefs.h.  */
16910
16911#include <string.h>
16912#include <openssl/ssl.h>
16913#include <openssl/evp.h>
16914#include <openssl/engine.h>
16915#include <openssl/conf.h>
16916/* routine to load gost (from sldns) */
16917int load_gost_id(void)
16918{
16919	static int gost_id = 0;
16920	const EVP_PKEY_ASN1_METHOD* meth;
16921	ENGINE* e;
16922
16923	if(gost_id) return gost_id;
16924
16925	/* see if configuration loaded gost implementation from other engine*/
16926	meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16927	if(meth) {
16928		EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16929		return gost_id;
16930	}
16931
16932	/* see if engine can be loaded already */
16933	e = ENGINE_by_id("gost");
16934	if(!e) {
16935		/* load it ourself, in case statically linked */
16936		ENGINE_load_builtin_engines();
16937		ENGINE_load_dynamic();
16938		e = ENGINE_by_id("gost");
16939	}
16940	if(!e) {
16941		/* no gost engine in openssl */
16942		return 0;
16943	}
16944	if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16945		ENGINE_finish(e);
16946		ENGINE_free(e);
16947		return 0;
16948	}
16949
16950	meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16951	if(!meth) {
16952		/* algo not found */
16953		ENGINE_finish(e);
16954		ENGINE_free(e);
16955		return 0;
16956	}
16957	EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16958	return gost_id;
16959}
16960int main(void) {
16961	EVP_MD_CTX* ctx;
16962	const EVP_MD* md;
16963	unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16964	const char* str = "Hello world";
16965	const unsigned char check[] = {
16966		0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16967		0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16968		0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16969		0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16970	};
16971	OPENSSL_config(NULL);
16972	(void)load_gost_id();
16973	md = EVP_get_digestbyname("md_gost94");
16974	if(!md) return 1;
16975	memset(digest, 0, sizeof(digest));
16976	ctx = EVP_MD_CTX_create();
16977	if(!ctx) return 2;
16978	if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16979	if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16980	if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16981	/* uncomment to see the hash calculated.
16982		{int i;
16983		for(i=0; i<32; i++)
16984			printf(" %2.2x", (int)digest[i]);
16985		printf("\n");}
16986	*/
16987	if(memcmp(digest, check, sizeof(check)) != 0)
16988		return 6;
16989	return 0;
16990}
16991
16992_ACEOF
16993if ac_fn_c_try_run "$LINENO"; then :
16994  eval "ac_cv_c_gost_works=yes"
16995else
16996  eval "ac_cv_c_gost_works=no"
16997fi
16998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16999  conftest.$ac_objext conftest.beam conftest.$ac_ext
17000fi
17001
17002CFLAGS="$BAKCFLAGS"
17003else
17004eval "ac_cv_c_gost_works=maybe"
17005fi
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17007$as_echo "$ac_cv_c_gost_works" >&6; }
17008
17009	if test "$ac_cv_c_gost_works" != no; then
17010		use_gost="yes"
17011
17012$as_echo "#define USE_GOST 1" >>confdefs.h
17013
17014	fi
17015	;;
17016esac
17017fi
17018# Check whether --enable-ecdsa was given.
17019if test "${enable_ecdsa+set}" = set; then :
17020  enableval=$enable_ecdsa;
17021fi
17022
17023use_ecdsa="no"
17024case "$enable_ecdsa" in
17025    no)
17026      ;;
17027    *)
17028      if test $USE_NSS = "no"; then
17029	      ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17030if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17031
17032else
17033  as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17034fi
17035
17036	      ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17037if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17038
17039else
17040  as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17041fi
17042
17043	      ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17044#include <openssl/evp.h>
17045
17046"
17047if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17048  ac_have_decl=1
17049else
17050  ac_have_decl=0
17051fi
17052
17053cat >>confdefs.h <<_ACEOF
17054#define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17055_ACEOF
17056if test $ac_have_decl = 1; then :
17057
17058else
17059  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17060fi
17061ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17062#include <openssl/evp.h>
17063
17064"
17065if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17066  ac_have_decl=1
17067else
17068  ac_have_decl=0
17069fi
17070
17071cat >>confdefs.h <<_ACEOF
17072#define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17073_ACEOF
17074if test $ac_have_decl = 1; then :
17075
17076else
17077  as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17078fi
17079
17080	      # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17081	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17082$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17083	      if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17084		if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17085		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086$as_echo "no" >&6; }
17087
17088cat >>confdefs.h <<_ACEOF
17089#define USE_ECDSA_EVP_WORKAROUND 1
17090_ACEOF
17091
17092		else
17093		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17094$as_echo "yes" >&6; }
17095		fi
17096	      else
17097		# not OpenSSL, thus likely LibreSSL, which supports it
17098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17099$as_echo "yes" >&6; }
17100	      fi
17101      fi
17102      # we now know we have ECDSA and the required curves.
17103
17104cat >>confdefs.h <<_ACEOF
17105#define USE_ECDSA 1
17106_ACEOF
17107
17108      use_ecdsa="yes"
17109      ;;
17110esac
17111
17112# Check whether --enable-event-api was given.
17113if test "${enable_event_api+set}" = set; then :
17114  enableval=$enable_event_api;
17115fi
17116
17117use_unbound_event="no"
17118case "$enable_event_api" in
17119    yes)
17120      use_unbound_event="yes"
17121      ;;
17122    *)
17123      ;;
17124esac
17125
17126# check for libevent
17127
17128# Check whether --with-libevent was given.
17129if test "${with_libevent+set}" = set; then :
17130  withval=$with_libevent;
17131else
17132   withval="no"
17133fi
17134
17135if test x_$withval = x_yes -o x_$withval != x_no; then
17136        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17137$as_echo_n "checking for libevent... " >&6; }
17138        if test x_$withval = x_ -o x_$withval = x_yes; then
17139            withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17140        fi
17141        for dir in $withval; do
17142            thedir="$dir"
17143            if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17144                found_libevent="yes"
17145				if test "$thedir" != "/usr"; then
17146                    CPPFLAGS="$CPPFLAGS -I$thedir/include"
17147		fi
17148                break;
17149            fi
17150        done
17151        if test x_$found_libevent != x_yes; then
17152		if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17153			# libevent source directory
17154            		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17155$as_echo "found in $thedir" >&6; }
17156                	CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17157			BAK_LDFLAGS_SET="1"
17158			BAK_LDFLAGS="$LDFLAGS"
17159			# remove evdns from linking
17160			mkdir build >/dev/null 2>&1
17161			mkdir build/libevent >/dev/null 2>&1
17162			mkdir build/libevent/.libs >/dev/null 2>&1
17163			ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17164			ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17165			ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17166			cp $ev_files_o build/libevent
17167			cp $ev_files_lo build/libevent
17168			cp $ev_files_libso build/libevent/.libs
17169            		LATE_LDFLAGS="build/libevent/*.lo -lm"
17170			LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17171		else
17172            		as_fn_error $? "Cannot find the libevent library in $withval
17173You can restart ./configure --with-libevent=no to use a builtin alternative.
17174Please note that this alternative is not as capable as libevent when using
17175large outgoing port ranges.  " "$LINENO" 5
17176		fi
17177        else
17178            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17179$as_echo "found in $thedir" >&6; }
17180	    	    if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17181		    LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17182
17183	if test "x$enable_rpath" = xyes; then
17184		if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17185			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17186		fi
17187	fi
17188
17189	    else
17190		    		    if test "$thedir" != "/usr" -a "$thedir" != ""; then
17191			LDFLAGS="$LDFLAGS -L$thedir/lib"
17192
17193	if test "x$enable_rpath" = xyes; then
17194		if echo "$thedir/lib" | grep "^/" >/dev/null; then
17195			RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17196		fi
17197	fi
17198
17199		    fi
17200	    fi
17201        fi
17202	# check for library used by libevent after 1.3c
17203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17204$as_echo_n "checking for library containing clock_gettime... " >&6; }
17205if ${ac_cv_search_clock_gettime+:} false; then :
17206  $as_echo_n "(cached) " >&6
17207else
17208  ac_func_search_save_LIBS=$LIBS
17209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210/* end confdefs.h.  */
17211
17212/* Override any GCC internal prototype to avoid an error.
17213   Use char because int might match the return type of a GCC
17214   builtin and then its argument prototype would still apply.  */
17215#ifdef __cplusplus
17216extern "C"
17217#endif
17218char clock_gettime ();
17219int
17220main ()
17221{
17222return clock_gettime ();
17223  ;
17224  return 0;
17225}
17226_ACEOF
17227for ac_lib in '' rt; do
17228  if test -z "$ac_lib"; then
17229    ac_res="none required"
17230  else
17231    ac_res=-l$ac_lib
17232    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17233  fi
17234  if ac_fn_c_try_link "$LINENO"; then :
17235  ac_cv_search_clock_gettime=$ac_res
17236fi
17237rm -f core conftest.err conftest.$ac_objext \
17238    conftest$ac_exeext
17239  if ${ac_cv_search_clock_gettime+:} false; then :
17240  break
17241fi
17242done
17243if ${ac_cv_search_clock_gettime+:} false; then :
17244
17245else
17246  ac_cv_search_clock_gettime=no
17247fi
17248rm conftest.$ac_ext
17249LIBS=$ac_func_search_save_LIBS
17250fi
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17252$as_echo "$ac_cv_search_clock_gettime" >&6; }
17253ac_res=$ac_cv_search_clock_gettime
17254if test "$ac_res" != no; then :
17255  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17256
17257fi
17258
17259
17260	# is the event.h header libev or libevent?
17261	for ac_header in event.h
17262do :
17263  ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17264"
17265if test "x$ac_cv_header_event_h" = xyes; then :
17266  cat >>confdefs.h <<_ACEOF
17267#define HAVE_EVENT_H 1
17268_ACEOF
17269
17270fi
17271
17272done
17273
17274	ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17275#include <event.h>
17276
17277"
17278if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17279
17280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17281$as_echo_n "checking for library containing event_set... " >&6; }
17282if ${ac_cv_search_event_set+:} false; then :
17283  $as_echo_n "(cached) " >&6
17284else
17285  ac_func_search_save_LIBS=$LIBS
17286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287/* end confdefs.h.  */
17288
17289/* Override any GCC internal prototype to avoid an error.
17290   Use char because int might match the return type of a GCC
17291   builtin and then its argument prototype would still apply.  */
17292#ifdef __cplusplus
17293extern "C"
17294#endif
17295char event_set ();
17296int
17297main ()
17298{
17299return event_set ();
17300  ;
17301  return 0;
17302}
17303_ACEOF
17304for ac_lib in '' ev; do
17305  if test -z "$ac_lib"; then
17306    ac_res="none required"
17307  else
17308    ac_res=-l$ac_lib
17309    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17310  fi
17311  if ac_fn_c_try_link "$LINENO"; then :
17312  ac_cv_search_event_set=$ac_res
17313fi
17314rm -f core conftest.err conftest.$ac_objext \
17315    conftest$ac_exeext
17316  if ${ac_cv_search_event_set+:} false; then :
17317  break
17318fi
17319done
17320if ${ac_cv_search_event_set+:} false; then :
17321
17322else
17323  ac_cv_search_event_set=no
17324fi
17325rm conftest.$ac_ext
17326LIBS=$ac_func_search_save_LIBS
17327fi
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17329$as_echo "$ac_cv_search_event_set" >&6; }
17330ac_res=$ac_cv_search_event_set
17331if test "$ac_res" != no; then :
17332  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17333
17334fi
17335
17336
17337else
17338
17339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17340$as_echo_n "checking for library containing event_set... " >&6; }
17341if ${ac_cv_search_event_set+:} false; then :
17342  $as_echo_n "(cached) " >&6
17343else
17344  ac_func_search_save_LIBS=$LIBS
17345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346/* end confdefs.h.  */
17347
17348/* Override any GCC internal prototype to avoid an error.
17349   Use char because int might match the return type of a GCC
17350   builtin and then its argument prototype would still apply.  */
17351#ifdef __cplusplus
17352extern "C"
17353#endif
17354char event_set ();
17355int
17356main ()
17357{
17358return event_set ();
17359  ;
17360  return 0;
17361}
17362_ACEOF
17363for ac_lib in '' event; do
17364  if test -z "$ac_lib"; then
17365    ac_res="none required"
17366  else
17367    ac_res=-l$ac_lib
17368    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17369  fi
17370  if ac_fn_c_try_link "$LINENO"; then :
17371  ac_cv_search_event_set=$ac_res
17372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374    conftest$ac_exeext
17375  if ${ac_cv_search_event_set+:} false; then :
17376  break
17377fi
17378done
17379if ${ac_cv_search_event_set+:} false; then :
17380
17381else
17382  ac_cv_search_event_set=no
17383fi
17384rm conftest.$ac_ext
17385LIBS=$ac_func_search_save_LIBS
17386fi
17387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17388$as_echo "$ac_cv_search_event_set" >&6; }
17389ac_res=$ac_cv_search_event_set
17390if test "$ac_res" != no; then :
17391  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17392
17393fi
17394
17395
17396fi
17397
17398	for ac_func in event_base_free
17399do :
17400  ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17401if test "x$ac_cv_func_event_base_free" = xyes; then :
17402  cat >>confdefs.h <<_ACEOF
17403#define HAVE_EVENT_BASE_FREE 1
17404_ACEOF
17405
17406fi
17407done
17408 # only in libevent 1.2 and later
17409	for ac_func in event_base_once
17410do :
17411  ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17412if test "x$ac_cv_func_event_base_once" = xyes; then :
17413  cat >>confdefs.h <<_ACEOF
17414#define HAVE_EVENT_BASE_ONCE 1
17415_ACEOF
17416
17417fi
17418done
17419 # only in libevent 1.4.1 and later
17420	for ac_func in event_base_new
17421do :
17422  ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17423if test "x$ac_cv_func_event_base_new" = xyes; then :
17424  cat >>confdefs.h <<_ACEOF
17425#define HAVE_EVENT_BASE_NEW 1
17426_ACEOF
17427
17428fi
17429done
17430 # only in libevent 1.4.1 and later
17431	for ac_func in event_base_get_method
17432do :
17433  ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17434if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17435  cat >>confdefs.h <<_ACEOF
17436#define HAVE_EVENT_BASE_GET_METHOD 1
17437_ACEOF
17438
17439fi
17440done
17441 # only in libevent 1.4.3 and later
17442	for ac_func in ev_loop
17443do :
17444  ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17445if test "x$ac_cv_func_ev_loop" = xyes; then :
17446  cat >>confdefs.h <<_ACEOF
17447#define HAVE_EV_LOOP 1
17448_ACEOF
17449
17450fi
17451done
17452 # only in libev. (tested on 3.51)
17453	for ac_func in ev_default_loop
17454do :
17455  ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17456if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17457  cat >>confdefs.h <<_ACEOF
17458#define HAVE_EV_DEFAULT_LOOP 1
17459_ACEOF
17460
17461fi
17462done
17463 # only in libev. (tested on 4.00)
17464	if test -n "$BAK_LDFLAGS_SET"; then
17465		LDFLAGS="$BAK_LDFLAGS"
17466	fi
17467        if test "$use_unbound_event" = "yes"; then
17468		UNBOUND_EVENT_INSTALL=unbound-event-install
17469
17470		UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17471
17472	fi
17473else
17474
17475$as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17476
17477fi
17478
17479# check for libexpat
17480
17481# Check whether --with-libexpat was given.
17482if test "${with_libexpat+set}" = set; then :
17483  withval=$with_libexpat;
17484else
17485   withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17486fi
17487
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17489$as_echo_n "checking for libexpat... " >&6; }
17490found_libexpat="no"
17491for dir in $withval ; do
17492            if test -f "$dir/include/expat.h"; then
17493		found_libexpat="yes"
17494				if test "$dir" != "/usr"; then
17495                    CPPFLAGS="$CPPFLAGS -I$dir/include"
17496		    LDFLAGS="$LDFLAGS -L$dir/lib"
17497		fi
17498            	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17499$as_echo "found in $dir" >&6; }
17500                break;
17501            fi
17502done
17503if test x_$found_libexpat != x_yes; then
17504	as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17505fi
17506for ac_header in expat.h
17507do :
17508  ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17509"
17510if test "x$ac_cv_header_expat_h" = xyes; then :
17511  cat >>confdefs.h <<_ACEOF
17512#define HAVE_EXPAT_H 1
17513_ACEOF
17514
17515fi
17516
17517done
17518
17519
17520# set static linking if requested
17521
17522staticexe=""
17523# Check whether --enable-static-exe was given.
17524if test "${enable_static_exe+set}" = set; then :
17525  enableval=$enable_static_exe;
17526fi
17527
17528if test x_$enable_static_exe = x_yes; then
17529	staticexe="-static"
17530	if test "$on_mingw" = yes; then
17531		staticexe="-all-static"
17532		# for static crosscompile, include gdi32 and zlib here.
17533		if test "`uname`" = "Linux"; then
17534			LIBS="$LIBS -lgdi32 -lz"
17535		fi
17536	fi
17537fi
17538
17539# set lock checking if requested
17540# Check whether --enable-lock_checks was given.
17541if test "${enable_lock_checks+set}" = set; then :
17542  enableval=$enable_lock_checks;
17543fi
17544
17545if test x_$enable_lock_checks = x_yes; then
17546
17547$as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17548
17549	CHECKLOCK_OBJ="checklocks.lo"
17550
17551fi
17552
17553
17554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17555$as_echo_n "checking for getaddrinfo... " >&6; }
17556ac_cv_func_getaddrinfo=no
17557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558/* end confdefs.h.  */
17559
17560#ifdef __cplusplus
17561extern "C"
17562{
17563#endif
17564char* getaddrinfo();
17565char* (*f) () = getaddrinfo;
17566#ifdef __cplusplus
17567}
17568#endif
17569int main() {
17570        ;
17571        return 0;
17572}
17573
17574_ACEOF
17575if ac_fn_c_try_link "$LINENO"; then :
17576  ac_cv_func_getaddrinfo="yes"
17577if test "$ac_cv_header_windows_h" = "yes"; then
17578
17579$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17580
17581	USE_WINSOCK="1"
17582	LIBS="$LIBS -lws2_32"
17583fi
17584
17585else
17586  ORIGLIBS="$LIBS"
17587LIBS="$LIBS -lws2_32"
17588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589/* end confdefs.h.  */
17590
17591#ifdef HAVE_WS2TCPIP_H
17592#include <ws2tcpip.h>
17593#endif
17594
17595int
17596main ()
17597{
17598
17599        (void)getaddrinfo(NULL, NULL, NULL, NULL);
17600
17601
17602  ;
17603  return 0;
17604}
17605_ACEOF
17606if ac_fn_c_try_link "$LINENO"; then :
17607
17608ac_cv_func_getaddrinfo="yes"
17609
17610$as_echo "#define USE_WINSOCK 1" >>confdefs.h
17611
17612USE_WINSOCK="1"
17613
17614else
17615
17616ac_cv_func_getaddrinfo="no"
17617LIBS="$ORIGLIBS"
17618
17619fi
17620rm -f core conftest.err conftest.$ac_objext \
17621    conftest$ac_exeext conftest.$ac_ext
17622
17623fi
17624rm -f core conftest.err conftest.$ac_objext \
17625    conftest$ac_exeext conftest.$ac_ext
17626
17627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17628$as_echo "$ac_cv_func_getaddrinfo" >&6; }
17629if test $ac_cv_func_getaddrinfo = yes; then
17630
17631$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17632
17633fi
17634
17635if test "$USE_WINSOCK" = 1; then
17636
17637$as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17638
17639	for ac_header in iphlpapi.h
17640do :
17641  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17642#include <windows.h>
17643
17644"
17645if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17646  cat >>confdefs.h <<_ACEOF
17647#define HAVE_IPHLPAPI_H 1
17648_ACEOF
17649
17650fi
17651
17652done
17653
17654	if test -n "$ac_tool_prefix"; then
17655  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17656set dummy ${ac_tool_prefix}windres; ac_word=$2
17657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17658$as_echo_n "checking for $ac_word... " >&6; }
17659if ${ac_cv_prog_WINDRES+:} false; then :
17660  $as_echo_n "(cached) " >&6
17661else
17662  if test -n "$WINDRES"; then
17663  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17664else
17665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666for as_dir in $PATH
17667do
17668  IFS=$as_save_IFS
17669  test -z "$as_dir" && as_dir=.
17670    for ac_exec_ext in '' $ac_executable_extensions; do
17671  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17672    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17674    break 2
17675  fi
17676done
17677  done
17678IFS=$as_save_IFS
17679
17680fi
17681fi
17682WINDRES=$ac_cv_prog_WINDRES
17683if test -n "$WINDRES"; then
17684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17685$as_echo "$WINDRES" >&6; }
17686else
17687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688$as_echo "no" >&6; }
17689fi
17690
17691
17692fi
17693if test -z "$ac_cv_prog_WINDRES"; then
17694  ac_ct_WINDRES=$WINDRES
17695  # Extract the first word of "windres", so it can be a program name with args.
17696set dummy windres; ac_word=$2
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17698$as_echo_n "checking for $ac_word... " >&6; }
17699if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17700  $as_echo_n "(cached) " >&6
17701else
17702  if test -n "$ac_ct_WINDRES"; then
17703  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17704else
17705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17706for as_dir in $PATH
17707do
17708  IFS=$as_save_IFS
17709  test -z "$as_dir" && as_dir=.
17710    for ac_exec_ext in '' $ac_executable_extensions; do
17711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17712    ac_cv_prog_ac_ct_WINDRES="windres"
17713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17714    break 2
17715  fi
17716done
17717  done
17718IFS=$as_save_IFS
17719
17720fi
17721fi
17722ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17723if test -n "$ac_ct_WINDRES"; then
17724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17725$as_echo "$ac_ct_WINDRES" >&6; }
17726else
17727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728$as_echo "no" >&6; }
17729fi
17730
17731  if test "x$ac_ct_WINDRES" = x; then
17732    WINDRES=""
17733  else
17734    case $cross_compiling:$ac_tool_warned in
17735yes:)
17736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17738ac_tool_warned=yes ;;
17739esac
17740    WINDRES=$ac_ct_WINDRES
17741  fi
17742else
17743  WINDRES="$ac_cv_prog_WINDRES"
17744fi
17745
17746	LIBS="$LIBS -liphlpapi"
17747	WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17748
17749	WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17750
17751	WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17752
17753	WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17754
17755	WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17756
17757	WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17758
17759	WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17760
17761	WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17762
17763fi
17764if test $ac_cv_func_getaddrinfo = no; then
17765	case " $LIBOBJS " in
17766  *" fake-rfc2553.$ac_objext "* ) ;;
17767  *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17768 ;;
17769esac
17770
17771fi
17772# check after getaddrinfo for its libraries
17773
17774# check ioctlsocket
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17776$as_echo_n "checking for ioctlsocket... " >&6; }
17777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778/* end confdefs.h.  */
17779
17780#ifdef HAVE_WINSOCK2_H
17781#include <winsock2.h>
17782#endif
17783
17784int
17785main ()
17786{
17787
17788	(void)ioctlsocket(0, 0, NULL);
17789
17790  ;
17791  return 0;
17792}
17793_ACEOF
17794if ac_fn_c_try_link "$LINENO"; then :
17795
17796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17797$as_echo "yes" >&6; }
17798
17799$as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17800
17801
17802else
17803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17804$as_echo "no" >&6; }
17805fi
17806rm -f core conftest.err conftest.$ac_objext \
17807    conftest$ac_exeext conftest.$ac_ext
17808
17809
17810# see if daemon(3) exists, and if it is deprecated.
17811for ac_func in daemon
17812do :
17813  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17814if test "x$ac_cv_func_daemon" = xyes; then :
17815  cat >>confdefs.h <<_ACEOF
17816#define HAVE_DAEMON 1
17817_ACEOF
17818
17819fi
17820done
17821
17822if test $ac_cv_func_daemon = yes; then
17823
17824
17825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17826$as_echo_n "checking if daemon is deprecated... " >&6; }
17827cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17828if eval \${cv_cc_deprecated_$cache+:} false; then :
17829  $as_echo_n "(cached) " >&6
17830else
17831
17832echo '
17833#include <stdlib.h>
17834' >conftest.c
17835echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17836if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17837eval "cv_cc_deprecated_$cache=no"
17838else
17839eval "cv_cc_deprecated_$cache=yes"
17840fi
17841rm -f conftest conftest.o conftest.c
17842
17843fi
17844
17845if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17847$as_echo "yes" >&6; }
17848
17849cat >>confdefs.h <<_ACEOF
17850#define DEPRECATED_DAEMON 1
17851_ACEOF
17852
17853:
17854
17855else
17856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17857$as_echo "no" >&6; }
17858:
17859
17860fi
17861
17862fi
17863
17864ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17865$ac_includes_default
17866#ifdef HAVE_SYS_UN_H
17867#include <sys/un.h>
17868#endif
17869
17870"
17871if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
17872
17873cat >>confdefs.h <<_ACEOF
17874#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17875_ACEOF
17876
17877
17878fi
17879
17880ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17881$ac_includes_default
17882#if HAVE_SYS_PARAM_H
17883#include <sys/param.h>
17884#endif
17885
17886#ifdef HAVE_SYS_SOCKET_H
17887#include <sys/socket.h>
17888#endif
17889
17890#ifdef HAVE_SYS_UIO_H
17891#include <sys/uio.h>
17892#endif
17893
17894#ifdef HAVE_NETINET_IN_H
17895#include <netinet/in.h>
17896#endif
17897
17898#ifdef HAVE_ARPA_INET_H
17899#include <arpa/inet.h>
17900#endif
17901
17902#ifdef HAVE_WINSOCK2_H
17903#include <winsock2.h>
17904#endif
17905
17906#ifdef HAVE_WS2TCPIP_H
17907#include <ws2tcpip.h>
17908#endif
17909
17910"
17911if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17912
17913cat >>confdefs.h <<_ACEOF
17914#define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17915_ACEOF
17916
17917
17918fi
17919
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17921$as_echo_n "checking for library containing setusercontext... " >&6; }
17922if ${ac_cv_search_setusercontext+:} false; then :
17923  $as_echo_n "(cached) " >&6
17924else
17925  ac_func_search_save_LIBS=$LIBS
17926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927/* end confdefs.h.  */
17928
17929/* Override any GCC internal prototype to avoid an error.
17930   Use char because int might match the return type of a GCC
17931   builtin and then its argument prototype would still apply.  */
17932#ifdef __cplusplus
17933extern "C"
17934#endif
17935char setusercontext ();
17936int
17937main ()
17938{
17939return setusercontext ();
17940  ;
17941  return 0;
17942}
17943_ACEOF
17944for ac_lib in '' util; do
17945  if test -z "$ac_lib"; then
17946    ac_res="none required"
17947  else
17948    ac_res=-l$ac_lib
17949    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17950  fi
17951  if ac_fn_c_try_link "$LINENO"; then :
17952  ac_cv_search_setusercontext=$ac_res
17953fi
17954rm -f core conftest.err conftest.$ac_objext \
17955    conftest$ac_exeext
17956  if ${ac_cv_search_setusercontext+:} false; then :
17957  break
17958fi
17959done
17960if ${ac_cv_search_setusercontext+:} false; then :
17961
17962else
17963  ac_cv_search_setusercontext=no
17964fi
17965rm conftest.$ac_ext
17966LIBS=$ac_func_search_save_LIBS
17967fi
17968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17969$as_echo "$ac_cv_search_setusercontext" >&6; }
17970ac_res=$ac_cv_search_setusercontext
17971if test "$ac_res" != no; then :
17972  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17973
17974fi
17975
17976for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent
17977do :
17978  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17981  cat >>confdefs.h <<_ACEOF
17982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17983_ACEOF
17984
17985fi
17986done
17987
17988for ac_func in setresuid
17989do :
17990  ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17991if test "x$ac_cv_func_setresuid" = xyes; then :
17992  cat >>confdefs.h <<_ACEOF
17993#define HAVE_SETRESUID 1
17994_ACEOF
17995
17996else
17997  for ac_func in setreuid
17998do :
17999  ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18000if test "x$ac_cv_func_setreuid" = xyes; then :
18001  cat >>confdefs.h <<_ACEOF
18002#define HAVE_SETREUID 1
18003_ACEOF
18004
18005fi
18006done
18007
18008fi
18009done
18010
18011for ac_func in setresgid
18012do :
18013  ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18014if test "x$ac_cv_func_setresgid" = xyes; then :
18015  cat >>confdefs.h <<_ACEOF
18016#define HAVE_SETRESGID 1
18017_ACEOF
18018
18019else
18020  for ac_func in setregid
18021do :
18022  ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18023if test "x$ac_cv_func_setregid" = xyes; then :
18024  cat >>confdefs.h <<_ACEOF
18025#define HAVE_SETREGID 1
18026_ACEOF
18027
18028fi
18029done
18030
18031fi
18032done
18033
18034
18035# check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18036if echo $build_os | grep darwin8 > /dev/null; then
18037
18038$as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18039
18040fi
18041ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18042if test "x$ac_cv_func_inet_aton" = xyes; then :
18043  $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18044
18045else
18046  case " $LIBOBJS " in
18047  *" inet_aton.$ac_objext "* ) ;;
18048  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18049 ;;
18050esac
18051
18052fi
18053
18054
18055ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18056if test "x$ac_cv_func_inet_pton" = xyes; then :
18057  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18058
18059else
18060  case " $LIBOBJS " in
18061  *" inet_pton.$ac_objext "* ) ;;
18062  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18063 ;;
18064esac
18065
18066fi
18067
18068
18069ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18070if test "x$ac_cv_func_inet_ntop" = xyes; then :
18071  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18072
18073else
18074  case " $LIBOBJS " in
18075  *" inet_ntop.$ac_objext "* ) ;;
18076  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18077 ;;
18078esac
18079
18080fi
18081
18082
18083ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18084if test "x$ac_cv_func_snprintf" = xyes; then :
18085  $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18086
18087else
18088  case " $LIBOBJS " in
18089  *" snprintf.$ac_objext "* ) ;;
18090  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18091 ;;
18092esac
18093
18094fi
18095
18096
18097ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18098if test "x$ac_cv_func_strlcat" = xyes; then :
18099  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18100
18101else
18102  case " $LIBOBJS " in
18103  *" strlcat.$ac_objext "* ) ;;
18104  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18105 ;;
18106esac
18107
18108fi
18109
18110
18111ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18112if test "x$ac_cv_func_strlcpy" = xyes; then :
18113  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18114
18115else
18116  case " $LIBOBJS " in
18117  *" strlcpy.$ac_objext "* ) ;;
18118  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18119 ;;
18120esac
18121
18122fi
18123
18124
18125ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18126if test "x$ac_cv_func_memmove" = xyes; then :
18127  $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18128
18129else
18130  case " $LIBOBJS " in
18131  *" memmove.$ac_objext "* ) ;;
18132  *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18133 ;;
18134esac
18135
18136fi
18137
18138
18139ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18140if test "x$ac_cv_func_gmtime_r" = xyes; then :
18141  $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18142
18143else
18144  case " $LIBOBJS " in
18145  *" gmtime_r.$ac_objext "* ) ;;
18146  *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18147 ;;
18148esac
18149
18150fi
18151
18152
18153LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18154
18155ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18156if test "x$ac_cv_func_reallocarray" = xyes; then :
18157  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18158
18159else
18160  case " $LIBOBJS " in
18161  *" reallocarray.$ac_objext "* ) ;;
18162  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
18163 ;;
18164esac
18165
18166fi
18167
18168
18169if test "$USE_NSS" = "no"; then
18170	ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18171if test "x$ac_cv_func_arc4random" = xyes; then :
18172  $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18173
18174else
18175  case " $LIBOBJS " in
18176  *" arc4random.$ac_objext "* ) ;;
18177  *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18178 ;;
18179esac
18180
18181fi
18182
18183
18184	ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18185if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18186  $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18187
18188else
18189  case " $LIBOBJS " in
18190  *" arc4random_uniform.$ac_objext "* ) ;;
18191  *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18192 ;;
18193esac
18194
18195fi
18196
18197
18198	if test "$ac_cv_func_arc4random" = "no"; then
18199		case " $LIBOBJS " in
18200  *" explicit_bzero.$ac_objext "* ) ;;
18201  *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18202 ;;
18203esac
18204
18205		case " $LIBOBJS " in
18206  *" arc4_lock.$ac_objext "* ) ;;
18207  *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18208 ;;
18209esac
18210
18211		for ac_func in getentropy
18212do :
18213  ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18214if test "x$ac_cv_func_getentropy" = xyes; then :
18215  cat >>confdefs.h <<_ACEOF
18216#define HAVE_GETENTROPY 1
18217_ACEOF
18218
18219else
18220
18221		    if test "$USE_WINSOCK" = 1; then
18222			case " $LIBOBJS " in
18223  *" getentropy_win.$ac_objext "* ) ;;
18224  *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18225 ;;
18226esac
18227
18228		    else
18229			case `uname` in
18230			Darwin)
18231				case " $LIBOBJS " in
18232  *" getentropy_osx.$ac_objext "* ) ;;
18233  *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18234 ;;
18235esac
18236
18237			;;
18238			SunOS)
18239				case " $LIBOBJS " in
18240  *" getentropy_solaris.$ac_objext "* ) ;;
18241  *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18242 ;;
18243esac
18244
18245				for ac_header in sys/sha2.h
18246do :
18247  ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18248"
18249if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18250  cat >>confdefs.h <<_ACEOF
18251#define HAVE_SYS_SHA2_H 1
18252_ACEOF
18253
18254else
18255
18256					for ac_func in SHA512_Update
18257do :
18258  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18259if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18260  cat >>confdefs.h <<_ACEOF
18261#define HAVE_SHA512_UPDATE 1
18262_ACEOF
18263
18264else
18265
18266						case " $LIBOBJS " in
18267  *" sha512.$ac_objext "* ) ;;
18268  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18269 ;;
18270esac
18271
18272
18273fi
18274done
18275
18276
18277fi
18278
18279done
18280
18281				if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18282					# this lib needed for sha2 on solaris
18283					LIBS="$LIBS -lmd"
18284				fi
18285				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18286$as_echo_n "checking for library containing clock_gettime... " >&6; }
18287if ${ac_cv_search_clock_gettime+:} false; then :
18288  $as_echo_n "(cached) " >&6
18289else
18290  ac_func_search_save_LIBS=$LIBS
18291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292/* end confdefs.h.  */
18293
18294/* Override any GCC internal prototype to avoid an error.
18295   Use char because int might match the return type of a GCC
18296   builtin and then its argument prototype would still apply.  */
18297#ifdef __cplusplus
18298extern "C"
18299#endif
18300char clock_gettime ();
18301int
18302main ()
18303{
18304return clock_gettime ();
18305  ;
18306  return 0;
18307}
18308_ACEOF
18309for ac_lib in '' rt; do
18310  if test -z "$ac_lib"; then
18311    ac_res="none required"
18312  else
18313    ac_res=-l$ac_lib
18314    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18315  fi
18316  if ac_fn_c_try_link "$LINENO"; then :
18317  ac_cv_search_clock_gettime=$ac_res
18318fi
18319rm -f core conftest.err conftest.$ac_objext \
18320    conftest$ac_exeext
18321  if ${ac_cv_search_clock_gettime+:} false; then :
18322  break
18323fi
18324done
18325if ${ac_cv_search_clock_gettime+:} false; then :
18326
18327else
18328  ac_cv_search_clock_gettime=no
18329fi
18330rm conftest.$ac_ext
18331LIBS=$ac_func_search_save_LIBS
18332fi
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18334$as_echo "$ac_cv_search_clock_gettime" >&6; }
18335ac_res=$ac_cv_search_clock_gettime
18336if test "$ac_res" != no; then :
18337  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18338
18339fi
18340
18341			;;
18342			Linux|*)
18343				case " $LIBOBJS " in
18344  *" getentropy_linux.$ac_objext "* ) ;;
18345  *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18346 ;;
18347esac
18348
18349				for ac_func in SHA512_Update
18350do :
18351  ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18352if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18353  cat >>confdefs.h <<_ACEOF
18354#define HAVE_SHA512_UPDATE 1
18355_ACEOF
18356
18357else
18358
18359
18360$as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18361
18362					case " $LIBOBJS " in
18363  *" sha512.$ac_objext "* ) ;;
18364  *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18365 ;;
18366esac
18367
18368
18369fi
18370done
18371
18372				for ac_header in sys/sysctl.h
18373do :
18374  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18375"
18376if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18377  cat >>confdefs.h <<_ACEOF
18378#define HAVE_SYS_SYSCTL_H 1
18379_ACEOF
18380
18381fi
18382
18383done
18384
18385				for ac_func in getauxval
18386do :
18387  ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
18388if test "x$ac_cv_func_getauxval" = xyes; then :
18389  cat >>confdefs.h <<_ACEOF
18390#define HAVE_GETAUXVAL 1
18391_ACEOF
18392
18393fi
18394done
18395
18396				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18397$as_echo_n "checking for library containing clock_gettime... " >&6; }
18398if ${ac_cv_search_clock_gettime+:} false; then :
18399  $as_echo_n "(cached) " >&6
18400else
18401  ac_func_search_save_LIBS=$LIBS
18402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403/* end confdefs.h.  */
18404
18405/* Override any GCC internal prototype to avoid an error.
18406   Use char because int might match the return type of a GCC
18407   builtin and then its argument prototype would still apply.  */
18408#ifdef __cplusplus
18409extern "C"
18410#endif
18411char clock_gettime ();
18412int
18413main ()
18414{
18415return clock_gettime ();
18416  ;
18417  return 0;
18418}
18419_ACEOF
18420for ac_lib in '' rt; do
18421  if test -z "$ac_lib"; then
18422    ac_res="none required"
18423  else
18424    ac_res=-l$ac_lib
18425    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18426  fi
18427  if ac_fn_c_try_link "$LINENO"; then :
18428  ac_cv_search_clock_gettime=$ac_res
18429fi
18430rm -f core conftest.err conftest.$ac_objext \
18431    conftest$ac_exeext
18432  if ${ac_cv_search_clock_gettime+:} false; then :
18433  break
18434fi
18435done
18436if ${ac_cv_search_clock_gettime+:} false; then :
18437
18438else
18439  ac_cv_search_clock_gettime=no
18440fi
18441rm conftest.$ac_ext
18442LIBS=$ac_func_search_save_LIBS
18443fi
18444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18445$as_echo "$ac_cv_search_clock_gettime" >&6; }
18446ac_res=$ac_cv_search_clock_gettime
18447if test "$ac_res" != no; then :
18448  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18449
18450fi
18451
18452			;;
18453			esac
18454		    fi
18455
18456fi
18457done
18458
18459	fi
18460fi
18461LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18462
18463ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18464if test "x$ac_cv_func_ctime_r" = xyes; then :
18465  $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18466
18467else
18468  case " $LIBOBJS " in
18469  *" ctime_r.$ac_objext "* ) ;;
18470  *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18471 ;;
18472esac
18473
18474fi
18475
18476
18477
18478# Check whether --enable-allsymbols was given.
18479if test "${enable_allsymbols+set}" = set; then :
18480  enableval=$enable_allsymbols;
18481fi
18482
18483case "$enable_allsymbols" in
18484	yes)
18485	COMMON_OBJ_ALL_SYMBOLS=""
18486	UBSYMS=""
18487	EXTRALINK="-L. -L.libs -lunbound"
18488
18489$as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18490
18491	;;
18492	no|*)
18493	COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18494	UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18495	EXTRALINK=""
18496	;;
18497esac
18498
18499
18500
18501if test x_$enable_lock_checks = x_yes; then
18502	UBSYMS="-export-symbols clubsyms.def"
18503	cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18504	echo lock_protect >> clubsyms.def
18505	echo lock_unprotect >> clubsyms.def
18506	echo lock_get_mem >> clubsyms.def
18507	echo checklock_start >> clubsyms.def
18508	echo checklock_stop >> clubsyms.def
18509	echo checklock_lock >> clubsyms.def
18510	echo checklock_unlock >> clubsyms.def
18511	echo checklock_init >> clubsyms.def
18512	echo checklock_thrcreate >> clubsyms.def
18513	echo checklock_thrjoin >> clubsyms.def
18514fi
18515
18516# check for dnstap if requested
18517
18518  # Check whether --enable-dnstap was given.
18519if test "${enable_dnstap+set}" = set; then :
18520  enableval=$enable_dnstap; opt_dnstap=$enableval
18521else
18522  opt_dnstap=no
18523fi
18524
18525
18526
18527# Check whether --with-dnstap-socket-path was given.
18528if test "${with_dnstap_socket_path+set}" = set; then :
18529  withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18530else
18531  opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18532fi
18533
18534
18535  if test "x$opt_dnstap" != "xno"; then
18536    # Extract the first word of "protoc-c", so it can be a program name with args.
18537set dummy protoc-c; ac_word=$2
18538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18539$as_echo_n "checking for $ac_word... " >&6; }
18540if ${ac_cv_path_PROTOC_C+:} false; then :
18541  $as_echo_n "(cached) " >&6
18542else
18543  case $PROTOC_C in
18544  [\\/]* | ?:[\\/]*)
18545  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18546  ;;
18547  *)
18548  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18549for as_dir in $PATH
18550do
18551  IFS=$as_save_IFS
18552  test -z "$as_dir" && as_dir=.
18553    for ac_exec_ext in '' $ac_executable_extensions; do
18554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18555    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18557    break 2
18558  fi
18559done
18560  done
18561IFS=$as_save_IFS
18562
18563  ;;
18564esac
18565fi
18566PROTOC_C=$ac_cv_path_PROTOC_C
18567if test -n "$PROTOC_C"; then
18568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18569$as_echo "$PROTOC_C" >&6; }
18570else
18571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18572$as_echo "no" >&6; }
18573fi
18574
18575
18576    if test -z "$PROTOC_C"; then
18577      as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18578    fi
18579
18580# Check whether --with-protobuf-c was given.
18581if test "${with_protobuf_c+set}" = set; then :
18582  withval=$with_protobuf_c;
18583	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18584	  if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18585	    CFLAGS="$CFLAGS -I$withval/include/google"
18586	  else
18587	    CFLAGS="$CFLAGS -I$withval/include"
18588	  fi
18589	  LDFLAGS="$LDFLAGS -L$withval/lib"
18590
18591else
18592
18593	  # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18594	  if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18595	    CFLAGS="$CFLAGS -I/usr/include/google"
18596	  else
18597	    if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18598	      CFLAGS="$CFLAGS -I/usr/local/include/google"
18599	      LDFLAGS="$LDFLAGS -L/usr/local/lib"
18600	    fi
18601	  fi
18602
18603fi
18604
18605
18606# Check whether --with-libfstrm was given.
18607if test "${with_libfstrm+set}" = set; then :
18608  withval=$with_libfstrm;
18609	CFLAGS="$CFLAGS -I$withval/include"
18610	LDFLAGS="$LDFLAGS -L$withval/lib"
18611
18612fi
18613
18614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18615$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18616if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18617  $as_echo_n "(cached) " >&6
18618else
18619  ac_func_search_save_LIBS=$LIBS
18620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621/* end confdefs.h.  */
18622
18623/* Override any GCC internal prototype to avoid an error.
18624   Use char because int might match the return type of a GCC
18625   builtin and then its argument prototype would still apply.  */
18626#ifdef __cplusplus
18627extern "C"
18628#endif
18629char fstrm_iothr_init ();
18630int
18631main ()
18632{
18633return fstrm_iothr_init ();
18634  ;
18635  return 0;
18636}
18637_ACEOF
18638for ac_lib in '' fstrm; do
18639  if test -z "$ac_lib"; then
18640    ac_res="none required"
18641  else
18642    ac_res=-l$ac_lib
18643    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18644  fi
18645  if ac_fn_c_try_link "$LINENO"; then :
18646  ac_cv_search_fstrm_iothr_init=$ac_res
18647fi
18648rm -f core conftest.err conftest.$ac_objext \
18649    conftest$ac_exeext
18650  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18651  break
18652fi
18653done
18654if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18655
18656else
18657  ac_cv_search_fstrm_iothr_init=no
18658fi
18659rm conftest.$ac_ext
18660LIBS=$ac_func_search_save_LIBS
18661fi
18662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18663$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18664ac_res=$ac_cv_search_fstrm_iothr_init
18665if test "$ac_res" != no; then :
18666  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18667
18668else
18669  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18670fi
18671
18672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18673$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18674if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18675  $as_echo_n "(cached) " >&6
18676else
18677  ac_func_search_save_LIBS=$LIBS
18678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679/* end confdefs.h.  */
18680
18681/* Override any GCC internal prototype to avoid an error.
18682   Use char because int might match the return type of a GCC
18683   builtin and then its argument prototype would still apply.  */
18684#ifdef __cplusplus
18685extern "C"
18686#endif
18687char protobuf_c_message_pack ();
18688int
18689main ()
18690{
18691return protobuf_c_message_pack ();
18692  ;
18693  return 0;
18694}
18695_ACEOF
18696for ac_lib in '' protobuf-c; do
18697  if test -z "$ac_lib"; then
18698    ac_res="none required"
18699  else
18700    ac_res=-l$ac_lib
18701    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18702  fi
18703  if ac_fn_c_try_link "$LINENO"; then :
18704  ac_cv_search_protobuf_c_message_pack=$ac_res
18705fi
18706rm -f core conftest.err conftest.$ac_objext \
18707    conftest$ac_exeext
18708  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18709  break
18710fi
18711done
18712if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18713
18714else
18715  ac_cv_search_protobuf_c_message_pack=no
18716fi
18717rm conftest.$ac_ext
18718LIBS=$ac_func_search_save_LIBS
18719fi
18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18721$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18722ac_res=$ac_cv_search_protobuf_c_message_pack
18723if test "$ac_res" != no; then :
18724  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18725
18726else
18727  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18728fi
18729
18730
18731
18732$as_echo "#define USE_DNSTAP 1" >>confdefs.h
18733
18734        ENABLE_DNSTAP=1
18735
18736
18737
18738        hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18739
18740
18741cat >>confdefs.h <<_ACEOF
18742#define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18743_ACEOF
18744
18745
18746        DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18747
18748        DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18749
18750
18751  else
18752
18753        ENABLE_DNSTAP=0
18754
18755
18756
18757  fi
18758
18759
18760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18761$as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18762# on openBSD, the implicit rule make $< work.
18763# on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18764# gmake works.
18765cat >conftest.make <<EOF
18766all:	conftest.lo
18767
18768conftest.lo foo.lo bla.lo:
18769	if test -f "\$<"; then touch \$@; fi
18770
18771.SUFFIXES: .lo
18772.c.lo:
18773	if test -f "\$<"; then touch \$@; fi
18774
18775conftest.lo:        conftest.dir/conftest.c
18776EOF
18777mkdir conftest.dir
18778touch conftest.dir/conftest.c
18779rm -f conftest.lo conftest.c
18780${MAKE:-make} -f conftest.make >/dev/null
18781rm -f conftest.make conftest.c conftest.dir/conftest.c
18782rm -rf conftest.dir
18783if test ! -f conftest.lo; then
18784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785$as_echo "no" >&6; }
18786	SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18787	SOURCEFILE='`cat .source`'
18788else
18789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18790$as_echo "yes" >&6; }
18791	SOURCEDETERMINE=':'
18792	SOURCEFILE='$<'
18793fi
18794rm -f conftest.lo
18795
18796
18797
18798# see if we want to build the library or everything
18799ALLTARGET="alltargets"
18800INSTALLTARGET="install-all"
18801
18802# Check whether --with-libunbound-only was given.
18803if test "${with_libunbound_only+set}" = set; then :
18804  withval=$with_libunbound_only;
18805	if test "$withval" = "yes"; then
18806		ALLTARGET="lib"
18807		INSTALLTARGET="install-lib"
18808	fi
18809
18810fi
18811
18812
18813
18814
18815
18816  { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18817$as_echo "$as_me: Stripping extension flags..." >&6;}
18818
18819  if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18820    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18821
18822$as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18823
18824  fi
18825
18826
18827  if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18828    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18829
18830$as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18831
18832  fi
18833
18834
18835  if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18836    CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18837
18838$as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18839
18840  fi
18841
18842
18843  if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18844    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18845
18846$as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18847
18848  fi
18849
18850
18851  if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18852    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18853
18854$as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18855
18856  fi
18857
18858
18859  if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18860    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18861
18862$as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18863
18864  fi
18865
18866
18867  if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18868    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18869
18870$as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18871
18872  fi
18873
18874
18875  if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18876    CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18877
18878$as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18879
18880  fi
18881
18882
18883LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18884
18885
18886cat >>confdefs.h <<_ACEOF
18887#define MAXSYSLOGMSGLEN 10240
18888_ACEOF
18889
18890
18891
18892
18893version=1.5.4
18894
18895date=`date +'%b %e, %Y'`
18896
18897
18898ac_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"
18899
18900ac_config_headers="$ac_config_headers config.h"
18901
18902cat >confcache <<\_ACEOF
18903# This file is a shell script that caches the results of configure
18904# tests run on this system so they can be shared between configure
18905# scripts and configure runs, see configure's option --config-cache.
18906# It is not useful on other systems.  If it contains results you don't
18907# want to keep, you may remove or edit it.
18908#
18909# config.status only pays attention to the cache file if you give it
18910# the --recheck option to rerun configure.
18911#
18912# `ac_cv_env_foo' variables (set or unset) will be overridden when
18913# loading this file, other *unset* `ac_cv_foo' will be assigned the
18914# following values.
18915
18916_ACEOF
18917
18918# The following way of writing the cache mishandles newlines in values,
18919# but we know of no workaround that is simple, portable, and efficient.
18920# So, we kill variables containing newlines.
18921# Ultrix sh set writes to stderr and can't be redirected directly,
18922# and sets the high bit in the cache file unless we assign to the vars.
18923(
18924  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18925    eval ac_val=\$$ac_var
18926    case $ac_val in #(
18927    *${as_nl}*)
18928      case $ac_var in #(
18929      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18930$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18931      esac
18932      case $ac_var in #(
18933      _ | IFS | as_nl) ;; #(
18934      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18935      *) { eval $ac_var=; unset $ac_var;} ;;
18936      esac ;;
18937    esac
18938  done
18939
18940  (set) 2>&1 |
18941    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18942    *${as_nl}ac_space=\ *)
18943      # `set' does not quote correctly, so add quotes: double-quote
18944      # substitution turns \\\\ into \\, and sed turns \\ into \.
18945      sed -n \
18946	"s/'/'\\\\''/g;
18947	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18948      ;; #(
18949    *)
18950      # `set' quotes correctly as required by POSIX, so do not add quotes.
18951      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18952      ;;
18953    esac |
18954    sort
18955) |
18956  sed '
18957     /^ac_cv_env_/b end
18958     t clear
18959     :clear
18960     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18961     t end
18962     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18963     :end' >>confcache
18964if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18965  if test -w "$cache_file"; then
18966    if test "x$cache_file" != "x/dev/null"; then
18967      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18968$as_echo "$as_me: updating cache $cache_file" >&6;}
18969      if test ! -f "$cache_file" || test -h "$cache_file"; then
18970	cat confcache >"$cache_file"
18971      else
18972        case $cache_file in #(
18973        */* | ?:*)
18974	  mv -f confcache "$cache_file"$$ &&
18975	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18976        *)
18977	  mv -f confcache "$cache_file" ;;
18978	esac
18979      fi
18980    fi
18981  else
18982    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18983$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18984  fi
18985fi
18986rm -f confcache
18987
18988test "x$prefix" = xNONE && prefix=$ac_default_prefix
18989# Let make expand exec_prefix.
18990test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18991
18992DEFS=-DHAVE_CONFIG_H
18993
18994ac_libobjs=
18995ac_ltlibobjs=
18996U=
18997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18998  # 1. Remove the extension, and $U if already installed.
18999  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19000  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19001  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19002  #    will be set to the directory where LIBOBJS objects are built.
19003  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19004  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19005done
19006LIBOBJS=$ac_libobjs
19007
19008LTLIBOBJS=$ac_ltlibobjs
19009
19010
19011
19012: "${CONFIG_STATUS=./config.status}"
19013ac_write_fail=0
19014ac_clean_files_save=$ac_clean_files
19015ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19016{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19017$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19018as_write_fail=0
19019cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19020#! $SHELL
19021# Generated by $as_me.
19022# Run this file to recreate the current configuration.
19023# Compiler output produced by configure, useful for debugging
19024# configure, is in config.log if it exists.
19025
19026debug=false
19027ac_cs_recheck=false
19028ac_cs_silent=false
19029
19030SHELL=\${CONFIG_SHELL-$SHELL}
19031export SHELL
19032_ASEOF
19033cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19034## -------------------- ##
19035## M4sh Initialization. ##
19036## -------------------- ##
19037
19038# Be more Bourne compatible
19039DUALCASE=1; export DUALCASE # for MKS sh
19040if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19041  emulate sh
19042  NULLCMD=:
19043  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19044  # is contrary to our usage.  Disable this feature.
19045  alias -g '${1+"$@"}'='"$@"'
19046  setopt NO_GLOB_SUBST
19047else
19048  case `(set -o) 2>/dev/null` in #(
19049  *posix*) :
19050    set -o posix ;; #(
19051  *) :
19052     ;;
19053esac
19054fi
19055
19056
19057as_nl='
19058'
19059export as_nl
19060# Printing a long string crashes Solaris 7 /usr/bin/printf.
19061as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19062as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19063as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19064# Prefer a ksh shell builtin over an external printf program on Solaris,
19065# but without wasting forks for bash or zsh.
19066if test -z "$BASH_VERSION$ZSH_VERSION" \
19067    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19068  as_echo='print -r --'
19069  as_echo_n='print -rn --'
19070elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19071  as_echo='printf %s\n'
19072  as_echo_n='printf %s'
19073else
19074  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19075    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19076    as_echo_n='/usr/ucb/echo -n'
19077  else
19078    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19079    as_echo_n_body='eval
19080      arg=$1;
19081      case $arg in #(
19082      *"$as_nl"*)
19083	expr "X$arg" : "X\\(.*\\)$as_nl";
19084	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19085      esac;
19086      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19087    '
19088    export as_echo_n_body
19089    as_echo_n='sh -c $as_echo_n_body as_echo'
19090  fi
19091  export as_echo_body
19092  as_echo='sh -c $as_echo_body as_echo'
19093fi
19094
19095# The user is always right.
19096if test "${PATH_SEPARATOR+set}" != set; then
19097  PATH_SEPARATOR=:
19098  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19099    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19100      PATH_SEPARATOR=';'
19101  }
19102fi
19103
19104
19105# IFS
19106# We need space, tab and new line, in precisely that order.  Quoting is
19107# there to prevent editors from complaining about space-tab.
19108# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19109# splitting by setting IFS to empty value.)
19110IFS=" ""	$as_nl"
19111
19112# Find who we are.  Look in the path if we contain no directory separator.
19113as_myself=
19114case $0 in #((
19115  *[\\/]* ) as_myself=$0 ;;
19116  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19117for as_dir in $PATH
19118do
19119  IFS=$as_save_IFS
19120  test -z "$as_dir" && as_dir=.
19121    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19122  done
19123IFS=$as_save_IFS
19124
19125     ;;
19126esac
19127# We did not find ourselves, most probably we were run as `sh COMMAND'
19128# in which case we are not to be found in the path.
19129if test "x$as_myself" = x; then
19130  as_myself=$0
19131fi
19132if test ! -f "$as_myself"; then
19133  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19134  exit 1
19135fi
19136
19137# Unset variables that we do not need and which cause bugs (e.g. in
19138# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19139# suppresses any "Segmentation fault" message there.  '((' could
19140# trigger a bug in pdksh 5.2.14.
19141for as_var in BASH_ENV ENV MAIL MAILPATH
19142do eval test x\${$as_var+set} = xset \
19143  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19144done
19145PS1='$ '
19146PS2='> '
19147PS4='+ '
19148
19149# NLS nuisances.
19150LC_ALL=C
19151export LC_ALL
19152LANGUAGE=C
19153export LANGUAGE
19154
19155# CDPATH.
19156(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19157
19158
19159# as_fn_error STATUS ERROR [LINENO LOG_FD]
19160# ----------------------------------------
19161# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19162# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19163# script with STATUS, using 1 if that was 0.
19164as_fn_error ()
19165{
19166  as_status=$1; test $as_status -eq 0 && as_status=1
19167  if test "$4"; then
19168    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19169    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19170  fi
19171  $as_echo "$as_me: error: $2" >&2
19172  as_fn_exit $as_status
19173} # as_fn_error
19174
19175
19176# as_fn_set_status STATUS
19177# -----------------------
19178# Set $? to STATUS, without forking.
19179as_fn_set_status ()
19180{
19181  return $1
19182} # as_fn_set_status
19183
19184# as_fn_exit STATUS
19185# -----------------
19186# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19187as_fn_exit ()
19188{
19189  set +e
19190  as_fn_set_status $1
19191  exit $1
19192} # as_fn_exit
19193
19194# as_fn_unset VAR
19195# ---------------
19196# Portably unset VAR.
19197as_fn_unset ()
19198{
19199  { eval $1=; unset $1;}
19200}
19201as_unset=as_fn_unset
19202# as_fn_append VAR VALUE
19203# ----------------------
19204# Append the text in VALUE to the end of the definition contained in VAR. Take
19205# advantage of any shell optimizations that allow amortized linear growth over
19206# repeated appends, instead of the typical quadratic growth present in naive
19207# implementations.
19208if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19209  eval 'as_fn_append ()
19210  {
19211    eval $1+=\$2
19212  }'
19213else
19214  as_fn_append ()
19215  {
19216    eval $1=\$$1\$2
19217  }
19218fi # as_fn_append
19219
19220# as_fn_arith ARG...
19221# ------------------
19222# Perform arithmetic evaluation on the ARGs, and store the result in the
19223# global $as_val. Take advantage of shells that can avoid forks. The arguments
19224# must be portable across $(()) and expr.
19225if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19226  eval 'as_fn_arith ()
19227  {
19228    as_val=$(( $* ))
19229  }'
19230else
19231  as_fn_arith ()
19232  {
19233    as_val=`expr "$@" || test $? -eq 1`
19234  }
19235fi # as_fn_arith
19236
19237
19238if expr a : '\(a\)' >/dev/null 2>&1 &&
19239   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19240  as_expr=expr
19241else
19242  as_expr=false
19243fi
19244
19245if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19246  as_basename=basename
19247else
19248  as_basename=false
19249fi
19250
19251if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19252  as_dirname=dirname
19253else
19254  as_dirname=false
19255fi
19256
19257as_me=`$as_basename -- "$0" ||
19258$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19259	 X"$0" : 'X\(//\)$' \| \
19260	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19261$as_echo X/"$0" |
19262    sed '/^.*\/\([^/][^/]*\)\/*$/{
19263	    s//\1/
19264	    q
19265	  }
19266	  /^X\/\(\/\/\)$/{
19267	    s//\1/
19268	    q
19269	  }
19270	  /^X\/\(\/\).*/{
19271	    s//\1/
19272	    q
19273	  }
19274	  s/.*/./; q'`
19275
19276# Avoid depending upon Character Ranges.
19277as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19278as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19279as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19280as_cr_digits='0123456789'
19281as_cr_alnum=$as_cr_Letters$as_cr_digits
19282
19283ECHO_C= ECHO_N= ECHO_T=
19284case `echo -n x` in #(((((
19285-n*)
19286  case `echo 'xy\c'` in
19287  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19288  xy)  ECHO_C='\c';;
19289  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19290       ECHO_T='	';;
19291  esac;;
19292*)
19293  ECHO_N='-n';;
19294esac
19295
19296rm -f conf$$ conf$$.exe conf$$.file
19297if test -d conf$$.dir; then
19298  rm -f conf$$.dir/conf$$.file
19299else
19300  rm -f conf$$.dir
19301  mkdir conf$$.dir 2>/dev/null
19302fi
19303if (echo >conf$$.file) 2>/dev/null; then
19304  if ln -s conf$$.file conf$$ 2>/dev/null; then
19305    as_ln_s='ln -s'
19306    # ... but there are two gotchas:
19307    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19308    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19309    # In both cases, we have to default to `cp -pR'.
19310    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19311      as_ln_s='cp -pR'
19312  elif ln conf$$.file conf$$ 2>/dev/null; then
19313    as_ln_s=ln
19314  else
19315    as_ln_s='cp -pR'
19316  fi
19317else
19318  as_ln_s='cp -pR'
19319fi
19320rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19321rmdir conf$$.dir 2>/dev/null
19322
19323
19324# as_fn_mkdir_p
19325# -------------
19326# Create "$as_dir" as a directory, including parents if necessary.
19327as_fn_mkdir_p ()
19328{
19329
19330  case $as_dir in #(
19331  -*) as_dir=./$as_dir;;
19332  esac
19333  test -d "$as_dir" || eval $as_mkdir_p || {
19334    as_dirs=
19335    while :; do
19336      case $as_dir in #(
19337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19338      *) as_qdir=$as_dir;;
19339      esac
19340      as_dirs="'$as_qdir' $as_dirs"
19341      as_dir=`$as_dirname -- "$as_dir" ||
19342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19343	 X"$as_dir" : 'X\(//\)[^/]' \| \
19344	 X"$as_dir" : 'X\(//\)$' \| \
19345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19346$as_echo X"$as_dir" |
19347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19348	    s//\1/
19349	    q
19350	  }
19351	  /^X\(\/\/\)[^/].*/{
19352	    s//\1/
19353	    q
19354	  }
19355	  /^X\(\/\/\)$/{
19356	    s//\1/
19357	    q
19358	  }
19359	  /^X\(\/\).*/{
19360	    s//\1/
19361	    q
19362	  }
19363	  s/.*/./; q'`
19364      test -d "$as_dir" && break
19365    done
19366    test -z "$as_dirs" || eval "mkdir $as_dirs"
19367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19368
19369
19370} # as_fn_mkdir_p
19371if mkdir -p . 2>/dev/null; then
19372  as_mkdir_p='mkdir -p "$as_dir"'
19373else
19374  test -d ./-p && rmdir ./-p
19375  as_mkdir_p=false
19376fi
19377
19378
19379# as_fn_executable_p FILE
19380# -----------------------
19381# Test if FILE is an executable regular file.
19382as_fn_executable_p ()
19383{
19384  test -f "$1" && test -x "$1"
19385} # as_fn_executable_p
19386as_test_x='test -x'
19387as_executable_p=as_fn_executable_p
19388
19389# Sed expression to map a string onto a valid CPP name.
19390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19391
19392# Sed expression to map a string onto a valid variable name.
19393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19394
19395
19396exec 6>&1
19397## ----------------------------------- ##
19398## Main body of $CONFIG_STATUS script. ##
19399## ----------------------------------- ##
19400_ASEOF
19401test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19402
19403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404# Save the log message, to keep $0 and so on meaningful, and to
19405# report actual input values of CONFIG_FILES etc. instead of their
19406# values after options handling.
19407ac_log="
19408This file was extended by unbound $as_me 1.5.4, which was
19409generated by GNU Autoconf 2.69.  Invocation command line was
19410
19411  CONFIG_FILES    = $CONFIG_FILES
19412  CONFIG_HEADERS  = $CONFIG_HEADERS
19413  CONFIG_LINKS    = $CONFIG_LINKS
19414  CONFIG_COMMANDS = $CONFIG_COMMANDS
19415  $ $0 $@
19416
19417on `(hostname || uname -n) 2>/dev/null | sed 1q`
19418"
19419
19420_ACEOF
19421
19422case $ac_config_files in *"
19423"*) set x $ac_config_files; shift; ac_config_files=$*;;
19424esac
19425
19426case $ac_config_headers in *"
19427"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19428esac
19429
19430
19431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19432# Files that config.status was made for.
19433config_files="$ac_config_files"
19434config_headers="$ac_config_headers"
19435config_commands="$ac_config_commands"
19436
19437_ACEOF
19438
19439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19440ac_cs_usage="\
19441\`$as_me' instantiates files and other configuration actions
19442from templates according to the current configuration.  Unless the files
19443and actions are specified as TAGs, all are instantiated by default.
19444
19445Usage: $0 [OPTION]... [TAG]...
19446
19447  -h, --help       print this help, then exit
19448  -V, --version    print version number and configuration settings, then exit
19449      --config     print configuration, then exit
19450  -q, --quiet, --silent
19451                   do not print progress messages
19452  -d, --debug      don't remove temporary files
19453      --recheck    update $as_me by reconfiguring in the same conditions
19454      --file=FILE[:TEMPLATE]
19455                   instantiate the configuration file FILE
19456      --header=FILE[:TEMPLATE]
19457                   instantiate the configuration header FILE
19458
19459Configuration files:
19460$config_files
19461
19462Configuration headers:
19463$config_headers
19464
19465Configuration commands:
19466$config_commands
19467
19468Report bugs to <unbound-bugs@nlnetlabs.nl>."
19469
19470_ACEOF
19471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19472ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19473ac_cs_version="\\
19474unbound config.status 1.5.4
19475configured by $0, generated by GNU Autoconf 2.69,
19476  with options \\"\$ac_cs_config\\"
19477
19478Copyright (C) 2012 Free Software Foundation, Inc.
19479This config.status script is free software; the Free Software Foundation
19480gives unlimited permission to copy, distribute and modify it."
19481
19482ac_pwd='$ac_pwd'
19483srcdir='$srcdir'
19484AWK='$AWK'
19485test -n "\$AWK" || AWK=awk
19486_ACEOF
19487
19488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19489# The default lists apply if the user does not specify any file.
19490ac_need_defaults=:
19491while test $# != 0
19492do
19493  case $1 in
19494  --*=?*)
19495    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19496    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19497    ac_shift=:
19498    ;;
19499  --*=)
19500    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19501    ac_optarg=
19502    ac_shift=:
19503    ;;
19504  *)
19505    ac_option=$1
19506    ac_optarg=$2
19507    ac_shift=shift
19508    ;;
19509  esac
19510
19511  case $ac_option in
19512  # Handling of the options.
19513  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19514    ac_cs_recheck=: ;;
19515  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19516    $as_echo "$ac_cs_version"; exit ;;
19517  --config | --confi | --conf | --con | --co | --c )
19518    $as_echo "$ac_cs_config"; exit ;;
19519  --debug | --debu | --deb | --de | --d | -d )
19520    debug=: ;;
19521  --file | --fil | --fi | --f )
19522    $ac_shift
19523    case $ac_optarg in
19524    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19525    '') as_fn_error $? "missing file argument" ;;
19526    esac
19527    as_fn_append CONFIG_FILES " '$ac_optarg'"
19528    ac_need_defaults=false;;
19529  --header | --heade | --head | --hea )
19530    $ac_shift
19531    case $ac_optarg in
19532    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19533    esac
19534    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19535    ac_need_defaults=false;;
19536  --he | --h)
19537    # Conflict between --help and --header
19538    as_fn_error $? "ambiguous option: \`$1'
19539Try \`$0 --help' for more information.";;
19540  --help | --hel | -h )
19541    $as_echo "$ac_cs_usage"; exit ;;
19542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19543  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19544    ac_cs_silent=: ;;
19545
19546  # This is an error.
19547  -*) as_fn_error $? "unrecognized option: \`$1'
19548Try \`$0 --help' for more information." ;;
19549
19550  *) as_fn_append ac_config_targets " $1"
19551     ac_need_defaults=false ;;
19552
19553  esac
19554  shift
19555done
19556
19557ac_configure_extra_args=
19558
19559if $ac_cs_silent; then
19560  exec 6>/dev/null
19561  ac_configure_extra_args="$ac_configure_extra_args --silent"
19562fi
19563
19564_ACEOF
19565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19566if \$ac_cs_recheck; then
19567  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19568  shift
19569  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19570  CONFIG_SHELL='$SHELL'
19571  export CONFIG_SHELL
19572  exec "\$@"
19573fi
19574
19575_ACEOF
19576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19577exec 5>>config.log
19578{
19579  echo
19580  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19581## Running $as_me. ##
19582_ASBOX
19583  $as_echo "$ac_log"
19584} >&5
19585
19586_ACEOF
19587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19588#
19589# INIT-COMMANDS
19590#
19591
19592
19593# The HP-UX ksh and POSIX shell print the target directory to stdout
19594# if CDPATH is set.
19595(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19596
19597sed_quote_subst='$sed_quote_subst'
19598double_quote_subst='$double_quote_subst'
19599delay_variable_subst='$delay_variable_subst'
19600macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19601macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19602enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19603enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19604pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19605enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19606SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19607ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19608PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19609host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19610host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19611host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19612build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19613build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19614build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19615SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19616Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19617GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19618EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19619FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19620LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19621NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19622LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19623max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19624ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19625exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19626lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19627lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19628lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19629lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19630lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19631reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19632reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19633OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19634deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19635file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19636file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19637want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19638DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19639sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19640AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19641AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19642archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19643STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19644RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19645old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19646old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19647old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19648lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19649CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19650CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19651compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19652GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19653lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19654lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19655lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19656lt_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"`'
19657nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19658lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19659objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19660MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19661lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19662lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19663lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19664lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19665lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19666need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19667MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19668DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19669NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19670LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19671OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19672OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19673libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19674shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19675extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19676archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19677enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19678export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19679whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19680compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19681old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19682old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19683archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19684archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19685module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19686module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19687with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19688allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19689no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19690hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19691hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19692hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19693hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19694hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19695hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19696hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19697inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19698link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19699always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19700export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19701exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19702include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19703prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19704postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19705file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19706variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19707need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19708need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19709version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19710runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19711shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19712shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19713libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19714library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19715soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19716install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19717postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19718postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19719finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19720finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19721hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19722sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19723sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19724hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19725enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19726enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19727enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19728old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19729striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19730
19731LTCC='$LTCC'
19732LTCFLAGS='$LTCFLAGS'
19733compiler='$compiler_DEFAULT'
19734
19735# A function that is used when there is no print builtin or printf.
19736func_fallback_echo ()
19737{
19738  eval 'cat <<_LTECHO_EOF
19739\$1
19740_LTECHO_EOF'
19741}
19742
19743# Quote evaled strings.
19744for var in SHELL \
19745ECHO \
19746PATH_SEPARATOR \
19747SED \
19748GREP \
19749EGREP \
19750FGREP \
19751LD \
19752NM \
19753LN_S \
19754lt_SP2NL \
19755lt_NL2SP \
19756reload_flag \
19757OBJDUMP \
19758deplibs_check_method \
19759file_magic_cmd \
19760file_magic_glob \
19761want_nocaseglob \
19762DLLTOOL \
19763sharedlib_from_linklib_cmd \
19764AR \
19765AR_FLAGS \
19766archiver_list_spec \
19767STRIP \
19768RANLIB \
19769CC \
19770CFLAGS \
19771compiler \
19772lt_cv_sys_global_symbol_pipe \
19773lt_cv_sys_global_symbol_to_cdecl \
19774lt_cv_sys_global_symbol_to_c_name_address \
19775lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19776nm_file_list_spec \
19777lt_prog_compiler_no_builtin_flag \
19778lt_prog_compiler_pic \
19779lt_prog_compiler_wl \
19780lt_prog_compiler_static \
19781lt_cv_prog_compiler_c_o \
19782need_locks \
19783MANIFEST_TOOL \
19784DSYMUTIL \
19785NMEDIT \
19786LIPO \
19787OTOOL \
19788OTOOL64 \
19789shrext_cmds \
19790export_dynamic_flag_spec \
19791whole_archive_flag_spec \
19792compiler_needs_object \
19793with_gnu_ld \
19794allow_undefined_flag \
19795no_undefined_flag \
19796hardcode_libdir_flag_spec \
19797hardcode_libdir_separator \
19798exclude_expsyms \
19799include_expsyms \
19800file_list_spec \
19801variables_saved_for_relink \
19802libname_spec \
19803library_names_spec \
19804soname_spec \
19805install_override_mode \
19806finish_eval \
19807old_striplib \
19808striplib; do
19809    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19810    *[\\\\\\\`\\"\\\$]*)
19811      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19812      ;;
19813    *)
19814      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19815      ;;
19816    esac
19817done
19818
19819# Double-quote double-evaled strings.
19820for var in reload_cmds \
19821old_postinstall_cmds \
19822old_postuninstall_cmds \
19823old_archive_cmds \
19824extract_expsyms_cmds \
19825old_archive_from_new_cmds \
19826old_archive_from_expsyms_cmds \
19827archive_cmds \
19828archive_expsym_cmds \
19829module_cmds \
19830module_expsym_cmds \
19831export_symbols_cmds \
19832prelink_cmds \
19833postlink_cmds \
19834postinstall_cmds \
19835postuninstall_cmds \
19836finish_cmds \
19837sys_lib_search_path_spec \
19838sys_lib_dlsearch_path_spec; do
19839    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19840    *[\\\\\\\`\\"\\\$]*)
19841      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19842      ;;
19843    *)
19844      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19845      ;;
19846    esac
19847done
19848
19849ac_aux_dir='$ac_aux_dir'
19850xsi_shell='$xsi_shell'
19851lt_shell_append='$lt_shell_append'
19852
19853# See if we are running on zsh, and set the options which allow our
19854# commands through without removal of \ escapes INIT.
19855if test -n "\${ZSH_VERSION+set}" ; then
19856   setopt NO_GLOB_SUBST
19857fi
19858
19859
19860    PACKAGE='$PACKAGE'
19861    VERSION='$VERSION'
19862    TIMESTAMP='$TIMESTAMP'
19863    RM='$RM'
19864    ofile='$ofile'
19865
19866
19867
19868
19869_ACEOF
19870
19871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19872
19873# Handling of arguments.
19874for ac_config_target in $ac_config_targets
19875do
19876  case $ac_config_target in
19877    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19878    "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19879    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19880    "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19881    "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19882    "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19883    "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19884    "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19885    "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19886    "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19887    "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
19888    "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19889    "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
19890    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19891
19892  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19893  esac
19894done
19895
19896
19897# If the user did not use the arguments to specify the items to instantiate,
19898# then the envvar interface is used.  Set only those that are not.
19899# We use the long form for the default assignment because of an extremely
19900# bizarre bug on SunOS 4.1.3.
19901if $ac_need_defaults; then
19902  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19903  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19904  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19905fi
19906
19907# Have a temporary directory for convenience.  Make it in the build tree
19908# simply because there is no reason against having it here, and in addition,
19909# creating and moving files from /tmp can sometimes cause problems.
19910# Hook for its removal unless debugging.
19911# Note that there is a small window in which the directory will not be cleaned:
19912# after its creation but before its name has been assigned to `$tmp'.
19913$debug ||
19914{
19915  tmp= ac_tmp=
19916  trap 'exit_status=$?
19917  : "${ac_tmp:=$tmp}"
19918  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19919' 0
19920  trap 'as_fn_exit 1' 1 2 13 15
19921}
19922# Create a (secure) tmp directory for tmp files.
19923
19924{
19925  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19926  test -d "$tmp"
19927}  ||
19928{
19929  tmp=./conf$$-$RANDOM
19930  (umask 077 && mkdir "$tmp")
19931} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19932ac_tmp=$tmp
19933
19934# Set up the scripts for CONFIG_FILES section.
19935# No need to generate them if there are no CONFIG_FILES.
19936# This happens for instance with `./config.status config.h'.
19937if test -n "$CONFIG_FILES"; then
19938
19939
19940ac_cr=`echo X | tr X '\015'`
19941# On cygwin, bash can eat \r inside `` if the user requested igncr.
19942# But we know of no other shell where ac_cr would be empty at this
19943# point, so we can use a bashism as a fallback.
19944if test "x$ac_cr" = x; then
19945  eval ac_cr=\$\'\\r\'
19946fi
19947ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19948if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19949  ac_cs_awk_cr='\\r'
19950else
19951  ac_cs_awk_cr=$ac_cr
19952fi
19953
19954echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19955_ACEOF
19956
19957
19958{
19959  echo "cat >conf$$subs.awk <<_ACEOF" &&
19960  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19961  echo "_ACEOF"
19962} >conf$$subs.sh ||
19963  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19964ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19965ac_delim='%!_!# '
19966for ac_last_try in false false false false false :; do
19967  . ./conf$$subs.sh ||
19968    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19969
19970  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19971  if test $ac_delim_n = $ac_delim_num; then
19972    break
19973  elif $ac_last_try; then
19974    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19975  else
19976    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19977  fi
19978done
19979rm -f conf$$subs.sh
19980
19981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19982cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19983_ACEOF
19984sed -n '
19985h
19986s/^/S["/; s/!.*/"]=/
19987p
19988g
19989s/^[^!]*!//
19990:repl
19991t repl
19992s/'"$ac_delim"'$//
19993t delim
19994:nl
19995h
19996s/\(.\{148\}\)..*/\1/
19997t more1
19998s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19999p
20000n
20001b repl
20002:more1
20003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20004p
20005g
20006s/.\{148\}//
20007t nl
20008:delim
20009h
20010s/\(.\{148\}\)..*/\1/
20011t more2
20012s/["\\]/\\&/g; s/^/"/; s/$/"/
20013p
20014b
20015:more2
20016s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20017p
20018g
20019s/.\{148\}//
20020t delim
20021' <conf$$subs.awk | sed '
20022/^[^""]/{
20023  N
20024  s/\n//
20025}
20026' >>$CONFIG_STATUS || ac_write_fail=1
20027rm -f conf$$subs.awk
20028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20029_ACAWK
20030cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20031  for (key in S) S_is_set[key] = 1
20032  FS = ""
20033
20034}
20035{
20036  line = $ 0
20037  nfields = split(line, field, "@")
20038  substed = 0
20039  len = length(field[1])
20040  for (i = 2; i < nfields; i++) {
20041    key = field[i]
20042    keylen = length(key)
20043    if (S_is_set[key]) {
20044      value = S[key]
20045      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20046      len += length(value) + length(field[++i])
20047      substed = 1
20048    } else
20049      len += 1 + keylen
20050  }
20051
20052  print line
20053}
20054
20055_ACAWK
20056_ACEOF
20057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20058if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20059  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20060else
20061  cat
20062fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20063  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20064_ACEOF
20065
20066# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20067# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20068# trailing colons and then remove the whole line if VPATH becomes empty
20069# (actually we leave an empty line to preserve line numbers).
20070if test "x$srcdir" = x.; then
20071  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20072h
20073s///
20074s/^/:/
20075s/[	 ]*$/:/
20076s/:\$(srcdir):/:/g
20077s/:\${srcdir}:/:/g
20078s/:@srcdir@:/:/g
20079s/^:*//
20080s/:*$//
20081x
20082s/\(=[	 ]*\).*/\1/
20083G
20084s/\n//
20085s/^[^=]*=[	 ]*$//
20086}'
20087fi
20088
20089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20090fi # test -n "$CONFIG_FILES"
20091
20092# Set up the scripts for CONFIG_HEADERS section.
20093# No need to generate them if there are no CONFIG_HEADERS.
20094# This happens for instance with `./config.status Makefile'.
20095if test -n "$CONFIG_HEADERS"; then
20096cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20097BEGIN {
20098_ACEOF
20099
20100# Transform confdefs.h into an awk script `defines.awk', embedded as
20101# here-document in config.status, that substitutes the proper values into
20102# config.h.in to produce config.h.
20103
20104# Create a delimiter string that does not exist in confdefs.h, to ease
20105# handling of long lines.
20106ac_delim='%!_!# '
20107for ac_last_try in false false :; do
20108  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20109  if test -z "$ac_tt"; then
20110    break
20111  elif $ac_last_try; then
20112    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20113  else
20114    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20115  fi
20116done
20117
20118# For the awk script, D is an array of macro values keyed by name,
20119# likewise P contains macro parameters if any.  Preserve backslash
20120# newline sequences.
20121
20122ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20123sed -n '
20124s/.\{148\}/&'"$ac_delim"'/g
20125t rset
20126:rset
20127s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20128t def
20129d
20130:def
20131s/\\$//
20132t bsnl
20133s/["\\]/\\&/g
20134s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20135D["\1"]=" \3"/p
20136s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20137d
20138:bsnl
20139s/["\\]/\\&/g
20140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20141D["\1"]=" \3\\\\\\n"\\/p
20142t cont
20143s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20144t cont
20145d
20146:cont
20147n
20148s/.\{148\}/&'"$ac_delim"'/g
20149t clear
20150:clear
20151s/\\$//
20152t bsnlc
20153s/["\\]/\\&/g; s/^/"/; s/$/"/p
20154d
20155:bsnlc
20156s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20157b cont
20158' <confdefs.h | sed '
20159s/'"$ac_delim"'/"\\\
20160"/g' >>$CONFIG_STATUS || ac_write_fail=1
20161
20162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20163  for (key in D) D_is_set[key] = 1
20164  FS = ""
20165}
20166/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20167  line = \$ 0
20168  split(line, arg, " ")
20169  if (arg[1] == "#") {
20170    defundef = arg[2]
20171    mac1 = arg[3]
20172  } else {
20173    defundef = substr(arg[1], 2)
20174    mac1 = arg[2]
20175  }
20176  split(mac1, mac2, "(") #)
20177  macro = mac2[1]
20178  prefix = substr(line, 1, index(line, defundef) - 1)
20179  if (D_is_set[macro]) {
20180    # Preserve the white space surrounding the "#".
20181    print prefix "define", macro P[macro] D[macro]
20182    next
20183  } else {
20184    # Replace #undef with comments.  This is necessary, for example,
20185    # in the case of _POSIX_SOURCE, which is predefined and required
20186    # on some systems where configure will not decide to define it.
20187    if (defundef == "undef") {
20188      print "/*", prefix defundef, macro, "*/"
20189      next
20190    }
20191  }
20192}
20193{ print }
20194_ACAWK
20195_ACEOF
20196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20197  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20198fi # test -n "$CONFIG_HEADERS"
20199
20200
20201eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20202shift
20203for ac_tag
20204do
20205  case $ac_tag in
20206  :[FHLC]) ac_mode=$ac_tag; continue;;
20207  esac
20208  case $ac_mode$ac_tag in
20209  :[FHL]*:*);;
20210  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20211  :[FH]-) ac_tag=-:-;;
20212  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20213  esac
20214  ac_save_IFS=$IFS
20215  IFS=:
20216  set x $ac_tag
20217  IFS=$ac_save_IFS
20218  shift
20219  ac_file=$1
20220  shift
20221
20222  case $ac_mode in
20223  :L) ac_source=$1;;
20224  :[FH])
20225    ac_file_inputs=
20226    for ac_f
20227    do
20228      case $ac_f in
20229      -) ac_f="$ac_tmp/stdin";;
20230      *) # Look for the file first in the build tree, then in the source tree
20231	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20232	 # because $ac_f cannot contain `:'.
20233	 test -f "$ac_f" ||
20234	   case $ac_f in
20235	   [\\/$]*) false;;
20236	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20237	   esac ||
20238	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20239      esac
20240      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20241      as_fn_append ac_file_inputs " '$ac_f'"
20242    done
20243
20244    # Let's still pretend it is `configure' which instantiates (i.e., don't
20245    # use $as_me), people would be surprised to read:
20246    #    /* config.h.  Generated by config.status.  */
20247    configure_input='Generated from '`
20248	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20249	`' by configure.'
20250    if test x"$ac_file" != x-; then
20251      configure_input="$ac_file.  $configure_input"
20252      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20253$as_echo "$as_me: creating $ac_file" >&6;}
20254    fi
20255    # Neutralize special characters interpreted by sed in replacement strings.
20256    case $configure_input in #(
20257    *\&* | *\|* | *\\* )
20258       ac_sed_conf_input=`$as_echo "$configure_input" |
20259       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20260    *) ac_sed_conf_input=$configure_input;;
20261    esac
20262
20263    case $ac_tag in
20264    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20265      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20266    esac
20267    ;;
20268  esac
20269
20270  ac_dir=`$as_dirname -- "$ac_file" ||
20271$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20272	 X"$ac_file" : 'X\(//\)[^/]' \| \
20273	 X"$ac_file" : 'X\(//\)$' \| \
20274	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20275$as_echo X"$ac_file" |
20276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20277	    s//\1/
20278	    q
20279	  }
20280	  /^X\(\/\/\)[^/].*/{
20281	    s//\1/
20282	    q
20283	  }
20284	  /^X\(\/\/\)$/{
20285	    s//\1/
20286	    q
20287	  }
20288	  /^X\(\/\).*/{
20289	    s//\1/
20290	    q
20291	  }
20292	  s/.*/./; q'`
20293  as_dir="$ac_dir"; as_fn_mkdir_p
20294  ac_builddir=.
20295
20296case "$ac_dir" in
20297.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20298*)
20299  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20300  # A ".." for each directory in $ac_dir_suffix.
20301  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20302  case $ac_top_builddir_sub in
20303  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20304  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20305  esac ;;
20306esac
20307ac_abs_top_builddir=$ac_pwd
20308ac_abs_builddir=$ac_pwd$ac_dir_suffix
20309# for backward compatibility:
20310ac_top_builddir=$ac_top_build_prefix
20311
20312case $srcdir in
20313  .)  # We are building in place.
20314    ac_srcdir=.
20315    ac_top_srcdir=$ac_top_builddir_sub
20316    ac_abs_top_srcdir=$ac_pwd ;;
20317  [\\/]* | ?:[\\/]* )  # Absolute name.
20318    ac_srcdir=$srcdir$ac_dir_suffix;
20319    ac_top_srcdir=$srcdir
20320    ac_abs_top_srcdir=$srcdir ;;
20321  *) # Relative name.
20322    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20323    ac_top_srcdir=$ac_top_build_prefix$srcdir
20324    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20325esac
20326ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20327
20328
20329  case $ac_mode in
20330  :F)
20331  #
20332  # CONFIG_FILE
20333  #
20334
20335_ACEOF
20336
20337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20338# If the template does not know about datarootdir, expand it.
20339# FIXME: This hack should be removed a few years after 2.60.
20340ac_datarootdir_hack=; ac_datarootdir_seen=
20341ac_sed_dataroot='
20342/datarootdir/ {
20343  p
20344  q
20345}
20346/@datadir@/p
20347/@docdir@/p
20348/@infodir@/p
20349/@localedir@/p
20350/@mandir@/p'
20351case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20352*datarootdir*) ac_datarootdir_seen=yes;;
20353*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20354  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20355$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20356_ACEOF
20357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358  ac_datarootdir_hack='
20359  s&@datadir@&$datadir&g
20360  s&@docdir@&$docdir&g
20361  s&@infodir@&$infodir&g
20362  s&@localedir@&$localedir&g
20363  s&@mandir@&$mandir&g
20364  s&\\\${datarootdir}&$datarootdir&g' ;;
20365esac
20366_ACEOF
20367
20368# Neutralize VPATH when `$srcdir' = `.'.
20369# Shell code in configure.ac might set extrasub.
20370# FIXME: do we really want to maintain this feature?
20371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20372ac_sed_extra="$ac_vpsub
20373$extrasub
20374_ACEOF
20375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376:t
20377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20378s|@configure_input@|$ac_sed_conf_input|;t t
20379s&@top_builddir@&$ac_top_builddir_sub&;t t
20380s&@top_build_prefix@&$ac_top_build_prefix&;t t
20381s&@srcdir@&$ac_srcdir&;t t
20382s&@abs_srcdir@&$ac_abs_srcdir&;t t
20383s&@top_srcdir@&$ac_top_srcdir&;t t
20384s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20385s&@builddir@&$ac_builddir&;t t
20386s&@abs_builddir@&$ac_abs_builddir&;t t
20387s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20388$ac_datarootdir_hack
20389"
20390eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20391  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20392
20393test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20394  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20395  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20396      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20397  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20398which seems to be undefined.  Please make sure it is defined" >&5
20399$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20400which seems to be undefined.  Please make sure it is defined" >&2;}
20401
20402  rm -f "$ac_tmp/stdin"
20403  case $ac_file in
20404  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20405  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20406  esac \
20407  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20408 ;;
20409  :H)
20410  #
20411  # CONFIG_HEADER
20412  #
20413  if test x"$ac_file" != x-; then
20414    {
20415      $as_echo "/* $configure_input  */" \
20416      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20417    } >"$ac_tmp/config.h" \
20418      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20419    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20420      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20421$as_echo "$as_me: $ac_file is unchanged" >&6;}
20422    else
20423      rm -f "$ac_file"
20424      mv "$ac_tmp/config.h" "$ac_file" \
20425	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20426    fi
20427  else
20428    $as_echo "/* $configure_input  */" \
20429      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20430      || as_fn_error $? "could not create -" "$LINENO" 5
20431  fi
20432 ;;
20433
20434  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20435$as_echo "$as_me: executing $ac_file commands" >&6;}
20436 ;;
20437  esac
20438
20439
20440  case $ac_file$ac_mode in
20441    "libtool":C)
20442
20443    # See if we are running on zsh, and set the options which allow our
20444    # commands through without removal of \ escapes.
20445    if test -n "${ZSH_VERSION+set}" ; then
20446      setopt NO_GLOB_SUBST
20447    fi
20448
20449    cfgfile="${ofile}T"
20450    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20451    $RM "$cfgfile"
20452
20453    cat <<_LT_EOF >> "$cfgfile"
20454#! $SHELL
20455
20456# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20457# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20459# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20460#
20461#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20462#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20463#                 Foundation, Inc.
20464#   Written by Gordon Matzigkeit, 1996
20465#
20466#   This file is part of GNU Libtool.
20467#
20468# GNU Libtool is free software; you can redistribute it and/or
20469# modify it under the terms of the GNU General Public License as
20470# published by the Free Software Foundation; either version 2 of
20471# the License, or (at your option) any later version.
20472#
20473# As a special exception to the GNU General Public License,
20474# if you distribute this file as part of a program or library that
20475# is built using GNU Libtool, you may include this file under the
20476# same distribution terms that you use for the rest of that program.
20477#
20478# GNU Libtool is distributed in the hope that it will be useful,
20479# but WITHOUT ANY WARRANTY; without even the implied warranty of
20480# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20481# GNU General Public License for more details.
20482#
20483# You should have received a copy of the GNU General Public License
20484# along with GNU Libtool; see the file COPYING.  If not, a copy
20485# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20486# obtained by writing to the Free Software Foundation, Inc.,
20487# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20488
20489
20490# The names of the tagged configurations supported by this script.
20491available_tags=""
20492
20493# ### BEGIN LIBTOOL CONFIG
20494
20495# Which release of libtool.m4 was used?
20496macro_version=$macro_version
20497macro_revision=$macro_revision
20498
20499# Whether or not to build shared libraries.
20500build_libtool_libs=$enable_shared
20501
20502# Whether or not to build static libraries.
20503build_old_libs=$enable_static
20504
20505# What type of objects to build.
20506pic_mode=$pic_mode
20507
20508# Whether or not to optimize for fast installation.
20509fast_install=$enable_fast_install
20510
20511# Shell to use when invoking shell scripts.
20512SHELL=$lt_SHELL
20513
20514# An echo program that protects backslashes.
20515ECHO=$lt_ECHO
20516
20517# The PATH separator for the build system.
20518PATH_SEPARATOR=$lt_PATH_SEPARATOR
20519
20520# The host system.
20521host_alias=$host_alias
20522host=$host
20523host_os=$host_os
20524
20525# The build system.
20526build_alias=$build_alias
20527build=$build
20528build_os=$build_os
20529
20530# A sed program that does not truncate output.
20531SED=$lt_SED
20532
20533# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20534Xsed="\$SED -e 1s/^X//"
20535
20536# A grep program that handles long lines.
20537GREP=$lt_GREP
20538
20539# An ERE matcher.
20540EGREP=$lt_EGREP
20541
20542# A literal string matcher.
20543FGREP=$lt_FGREP
20544
20545# A BSD- or MS-compatible name lister.
20546NM=$lt_NM
20547
20548# Whether we need soft or hard links.
20549LN_S=$lt_LN_S
20550
20551# What is the maximum length of a command?
20552max_cmd_len=$max_cmd_len
20553
20554# Object file suffix (normally "o").
20555objext=$ac_objext
20556
20557# Executable file suffix (normally "").
20558exeext=$exeext
20559
20560# whether the shell understands "unset".
20561lt_unset=$lt_unset
20562
20563# turn spaces into newlines.
20564SP2NL=$lt_lt_SP2NL
20565
20566# turn newlines into spaces.
20567NL2SP=$lt_lt_NL2SP
20568
20569# convert \$build file names to \$host format.
20570to_host_file_cmd=$lt_cv_to_host_file_cmd
20571
20572# convert \$build files to toolchain format.
20573to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20574
20575# An object symbol dumper.
20576OBJDUMP=$lt_OBJDUMP
20577
20578# Method to check whether dependent libraries are shared objects.
20579deplibs_check_method=$lt_deplibs_check_method
20580
20581# Command to use when deplibs_check_method = "file_magic".
20582file_magic_cmd=$lt_file_magic_cmd
20583
20584# How to find potential files when deplibs_check_method = "file_magic".
20585file_magic_glob=$lt_file_magic_glob
20586
20587# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20588want_nocaseglob=$lt_want_nocaseglob
20589
20590# DLL creation program.
20591DLLTOOL=$lt_DLLTOOL
20592
20593# Command to associate shared and link libraries.
20594sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20595
20596# The archiver.
20597AR=$lt_AR
20598
20599# Flags to create an archive.
20600AR_FLAGS=$lt_AR_FLAGS
20601
20602# How to feed a file listing to the archiver.
20603archiver_list_spec=$lt_archiver_list_spec
20604
20605# A symbol stripping program.
20606STRIP=$lt_STRIP
20607
20608# Commands used to install an old-style archive.
20609RANLIB=$lt_RANLIB
20610old_postinstall_cmds=$lt_old_postinstall_cmds
20611old_postuninstall_cmds=$lt_old_postuninstall_cmds
20612
20613# Whether to use a lock for old archive extraction.
20614lock_old_archive_extraction=$lock_old_archive_extraction
20615
20616# A C compiler.
20617LTCC=$lt_CC
20618
20619# LTCC compiler flags.
20620LTCFLAGS=$lt_CFLAGS
20621
20622# Take the output of nm and produce a listing of raw symbols and C names.
20623global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20624
20625# Transform the output of nm in a proper C declaration.
20626global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20627
20628# Transform the output of nm in a C name address pair.
20629global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20630
20631# Transform the output of nm in a C name address pair when lib prefix is needed.
20632global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20633
20634# Specify filename containing input files for \$NM.
20635nm_file_list_spec=$lt_nm_file_list_spec
20636
20637# The root where to search for dependent libraries,and in which our libraries should be installed.
20638lt_sysroot=$lt_sysroot
20639
20640# The name of the directory that contains temporary libtool files.
20641objdir=$objdir
20642
20643# Used to examine libraries when file_magic_cmd begins with "file".
20644MAGIC_CMD=$MAGIC_CMD
20645
20646# Must we lock files when doing compilation?
20647need_locks=$lt_need_locks
20648
20649# Manifest tool.
20650MANIFEST_TOOL=$lt_MANIFEST_TOOL
20651
20652# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20653DSYMUTIL=$lt_DSYMUTIL
20654
20655# Tool to change global to local symbols on Mac OS X.
20656NMEDIT=$lt_NMEDIT
20657
20658# Tool to manipulate fat objects and archives on Mac OS X.
20659LIPO=$lt_LIPO
20660
20661# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20662OTOOL=$lt_OTOOL
20663
20664# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20665OTOOL64=$lt_OTOOL64
20666
20667# Old archive suffix (normally "a").
20668libext=$libext
20669
20670# Shared library suffix (normally ".so").
20671shrext_cmds=$lt_shrext_cmds
20672
20673# The commands to extract the exported symbol list from a shared archive.
20674extract_expsyms_cmds=$lt_extract_expsyms_cmds
20675
20676# Variables whose values should be saved in libtool wrapper scripts and
20677# restored at link time.
20678variables_saved_for_relink=$lt_variables_saved_for_relink
20679
20680# Do we need the "lib" prefix for modules?
20681need_lib_prefix=$need_lib_prefix
20682
20683# Do we need a version for libraries?
20684need_version=$need_version
20685
20686# Library versioning type.
20687version_type=$version_type
20688
20689# Shared library runtime path variable.
20690runpath_var=$runpath_var
20691
20692# Shared library path variable.
20693shlibpath_var=$shlibpath_var
20694
20695# Is shlibpath searched before the hard-coded library search path?
20696shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20697
20698# Format of library name prefix.
20699libname_spec=$lt_libname_spec
20700
20701# List of archive names.  First name is the real one, the rest are links.
20702# The last name is the one that the linker finds with -lNAME
20703library_names_spec=$lt_library_names_spec
20704
20705# The coded name of the library, if different from the real name.
20706soname_spec=$lt_soname_spec
20707
20708# Permission mode override for installation of shared libraries.
20709install_override_mode=$lt_install_override_mode
20710
20711# Command to use after installation of a shared archive.
20712postinstall_cmds=$lt_postinstall_cmds
20713
20714# Command to use after uninstallation of a shared archive.
20715postuninstall_cmds=$lt_postuninstall_cmds
20716
20717# Commands used to finish a libtool library installation in a directory.
20718finish_cmds=$lt_finish_cmds
20719
20720# As "finish_cmds", except a single script fragment to be evaled but
20721# not shown.
20722finish_eval=$lt_finish_eval
20723
20724# Whether we should hardcode library paths into libraries.
20725hardcode_into_libs=$hardcode_into_libs
20726
20727# Compile-time system search path for libraries.
20728sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20729
20730# Run-time system search path for libraries.
20731sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20732
20733# Whether dlopen is supported.
20734dlopen_support=$enable_dlopen
20735
20736# Whether dlopen of programs is supported.
20737dlopen_self=$enable_dlopen_self
20738
20739# Whether dlopen of statically linked programs is supported.
20740dlopen_self_static=$enable_dlopen_self_static
20741
20742# Commands to strip libraries.
20743old_striplib=$lt_old_striplib
20744striplib=$lt_striplib
20745
20746
20747# The linker used to build libraries.
20748LD=$lt_LD
20749
20750# How to create reloadable object files.
20751reload_flag=$lt_reload_flag
20752reload_cmds=$lt_reload_cmds
20753
20754# Commands used to build an old-style archive.
20755old_archive_cmds=$lt_old_archive_cmds
20756
20757# A language specific compiler.
20758CC=$lt_compiler
20759
20760# Is the compiler the GNU compiler?
20761with_gcc=$GCC
20762
20763# Compiler flag to turn off builtin functions.
20764no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20765
20766# Additional compiler flags for building library objects.
20767pic_flag=$lt_lt_prog_compiler_pic
20768
20769# How to pass a linker flag through the compiler.
20770wl=$lt_lt_prog_compiler_wl
20771
20772# Compiler flag to prevent dynamic linking.
20773link_static_flag=$lt_lt_prog_compiler_static
20774
20775# Does compiler simultaneously support -c and -o options?
20776compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20777
20778# Whether or not to add -lc for building shared libraries.
20779build_libtool_need_lc=$archive_cmds_need_lc
20780
20781# Whether or not to disallow shared libs when runtime libs are static.
20782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20783
20784# Compiler flag to allow reflexive dlopens.
20785export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20786
20787# Compiler flag to generate shared objects directly from archives.
20788whole_archive_flag_spec=$lt_whole_archive_flag_spec
20789
20790# Whether the compiler copes with passing no objects directly.
20791compiler_needs_object=$lt_compiler_needs_object
20792
20793# Create an old-style archive from a shared archive.
20794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20795
20796# Create a temporary old-style archive to link instead of a shared archive.
20797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20798
20799# Commands used to build a shared archive.
20800archive_cmds=$lt_archive_cmds
20801archive_expsym_cmds=$lt_archive_expsym_cmds
20802
20803# Commands used to build a loadable module if different from building
20804# a shared archive.
20805module_cmds=$lt_module_cmds
20806module_expsym_cmds=$lt_module_expsym_cmds
20807
20808# Whether we are building with GNU ld or not.
20809with_gnu_ld=$lt_with_gnu_ld
20810
20811# Flag that allows shared libraries with undefined symbols to be built.
20812allow_undefined_flag=$lt_allow_undefined_flag
20813
20814# Flag that enforces no undefined symbols.
20815no_undefined_flag=$lt_no_undefined_flag
20816
20817# Flag to hardcode \$libdir into a binary during linking.
20818# This must work even if \$libdir does not exist
20819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20820
20821# Whether we need a single "-rpath" flag with a separated argument.
20822hardcode_libdir_separator=$lt_hardcode_libdir_separator
20823
20824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20825# DIR into the resulting binary.
20826hardcode_direct=$hardcode_direct
20827
20828# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20829# DIR into the resulting binary and the resulting library dependency is
20830# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20831# library is relocated.
20832hardcode_direct_absolute=$hardcode_direct_absolute
20833
20834# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20835# into the resulting binary.
20836hardcode_minus_L=$hardcode_minus_L
20837
20838# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20839# into the resulting binary.
20840hardcode_shlibpath_var=$hardcode_shlibpath_var
20841
20842# Set to "yes" if building a shared library automatically hardcodes DIR
20843# into the library and all subsequent libraries and executables linked
20844# against it.
20845hardcode_automatic=$hardcode_automatic
20846
20847# Set to yes if linker adds runtime paths of dependent libraries
20848# to runtime path list.
20849inherit_rpath=$inherit_rpath
20850
20851# Whether libtool must link a program against all its dependency libraries.
20852link_all_deplibs=$link_all_deplibs
20853
20854# Set to "yes" if exported symbols are required.
20855always_export_symbols=$always_export_symbols
20856
20857# The commands to list exported symbols.
20858export_symbols_cmds=$lt_export_symbols_cmds
20859
20860# Symbols that should not be listed in the preloaded symbols.
20861exclude_expsyms=$lt_exclude_expsyms
20862
20863# Symbols that must always be exported.
20864include_expsyms=$lt_include_expsyms
20865
20866# Commands necessary for linking programs (against libraries) with templates.
20867prelink_cmds=$lt_prelink_cmds
20868
20869# Commands necessary for finishing linking programs.
20870postlink_cmds=$lt_postlink_cmds
20871
20872# Specify filename containing input files.
20873file_list_spec=$lt_file_list_spec
20874
20875# How to hardcode a shared library path into an executable.
20876hardcode_action=$hardcode_action
20877
20878# ### END LIBTOOL CONFIG
20879
20880_LT_EOF
20881
20882  case $host_os in
20883  aix3*)
20884    cat <<\_LT_EOF >> "$cfgfile"
20885# AIX sometimes has problems with the GCC collect2 program.  For some
20886# reason, if we set the COLLECT_NAMES environment variable, the problems
20887# vanish in a puff of smoke.
20888if test "X${COLLECT_NAMES+set}" != Xset; then
20889  COLLECT_NAMES=
20890  export COLLECT_NAMES
20891fi
20892_LT_EOF
20893    ;;
20894  esac
20895
20896
20897ltmain="$ac_aux_dir/ltmain.sh"
20898
20899
20900  # We use sed instead of cat because bash on DJGPP gets confused if
20901  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20902  # text mode, it properly converts lines to CR/LF.  This bash problem
20903  # is reportedly fixed, but why not run on old versions too?
20904  sed '$q' "$ltmain" >> "$cfgfile" \
20905     || (rm -f "$cfgfile"; exit 1)
20906
20907  if test x"$xsi_shell" = xyes; then
20908  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20909func_dirname ()\
20910{\
20911\    case ${1} in\
20912\      */*) func_dirname_result="${1%/*}${2}" ;;\
20913\      *  ) func_dirname_result="${3}" ;;\
20914\    esac\
20915} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20916  && mv -f "$cfgfile.tmp" "$cfgfile" \
20917    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20918test 0 -eq $? || _lt_function_replace_fail=:
20919
20920
20921  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20922func_basename ()\
20923{\
20924\    func_basename_result="${1##*/}"\
20925} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20926  && mv -f "$cfgfile.tmp" "$cfgfile" \
20927    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20928test 0 -eq $? || _lt_function_replace_fail=:
20929
20930
20931  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20932func_dirname_and_basename ()\
20933{\
20934\    case ${1} in\
20935\      */*) func_dirname_result="${1%/*}${2}" ;;\
20936\      *  ) func_dirname_result="${3}" ;;\
20937\    esac\
20938\    func_basename_result="${1##*/}"\
20939} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20940  && mv -f "$cfgfile.tmp" "$cfgfile" \
20941    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20942test 0 -eq $? || _lt_function_replace_fail=:
20943
20944
20945  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20946func_stripname ()\
20947{\
20948\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20949\    # positional parameters, so assign one to ordinary parameter first.\
20950\    func_stripname_result=${3}\
20951\    func_stripname_result=${func_stripname_result#"${1}"}\
20952\    func_stripname_result=${func_stripname_result%"${2}"}\
20953} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20954  && mv -f "$cfgfile.tmp" "$cfgfile" \
20955    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20956test 0 -eq $? || _lt_function_replace_fail=:
20957
20958
20959  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20960func_split_long_opt ()\
20961{\
20962\    func_split_long_opt_name=${1%%=*}\
20963\    func_split_long_opt_arg=${1#*=}\
20964} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20965  && mv -f "$cfgfile.tmp" "$cfgfile" \
20966    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20967test 0 -eq $? || _lt_function_replace_fail=:
20968
20969
20970  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20971func_split_short_opt ()\
20972{\
20973\    func_split_short_opt_arg=${1#??}\
20974\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20975} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20976  && mv -f "$cfgfile.tmp" "$cfgfile" \
20977    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20978test 0 -eq $? || _lt_function_replace_fail=:
20979
20980
20981  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20982func_lo2o ()\
20983{\
20984\    case ${1} in\
20985\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20986\      *)    func_lo2o_result=${1} ;;\
20987\    esac\
20988} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20989  && mv -f "$cfgfile.tmp" "$cfgfile" \
20990    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20991test 0 -eq $? || _lt_function_replace_fail=:
20992
20993
20994  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20995func_xform ()\
20996{\
20997    func_xform_result=${1%.*}.lo\
20998} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20999  && mv -f "$cfgfile.tmp" "$cfgfile" \
21000    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21001test 0 -eq $? || _lt_function_replace_fail=:
21002
21003
21004  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21005func_arith ()\
21006{\
21007    func_arith_result=$(( $* ))\
21008} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21009  && mv -f "$cfgfile.tmp" "$cfgfile" \
21010    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21011test 0 -eq $? || _lt_function_replace_fail=:
21012
21013
21014  sed -e '/^func_len ()$/,/^} # func_len /c\
21015func_len ()\
21016{\
21017    func_len_result=${#1}\
21018} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21019  && mv -f "$cfgfile.tmp" "$cfgfile" \
21020    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21021test 0 -eq $? || _lt_function_replace_fail=:
21022
21023fi
21024
21025if test x"$lt_shell_append" = xyes; then
21026  sed -e '/^func_append ()$/,/^} # func_append /c\
21027func_append ()\
21028{\
21029    eval "${1}+=\\${2}"\
21030} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21031  && mv -f "$cfgfile.tmp" "$cfgfile" \
21032    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21033test 0 -eq $? || _lt_function_replace_fail=:
21034
21035
21036  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21037func_append_quoted ()\
21038{\
21039\    func_quote_for_eval "${2}"\
21040\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21041} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21042  && mv -f "$cfgfile.tmp" "$cfgfile" \
21043    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21044test 0 -eq $? || _lt_function_replace_fail=:
21045
21046
21047  # Save a `func_append' function call where possible by direct use of '+='
21048  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21049    && mv -f "$cfgfile.tmp" "$cfgfile" \
21050      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21051  test 0 -eq $? || _lt_function_replace_fail=:
21052else
21053  # Save a `func_append' function call even when '+=' is not available
21054  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21055    && mv -f "$cfgfile.tmp" "$cfgfile" \
21056      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21057  test 0 -eq $? || _lt_function_replace_fail=:
21058fi
21059
21060if test x"$_lt_function_replace_fail" = x":"; then
21061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21062$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21063fi
21064
21065
21066   mv -f "$cfgfile" "$ofile" ||
21067    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21068  chmod +x "$ofile"
21069
21070 ;;
21071    "disable-rpath":C)
21072	sed < libtool > libtool-2 \
21073	's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21074	mv libtool-2 libtool
21075	chmod 755 libtool
21076	libtool="./libtool"
21077	 ;;
21078
21079  esac
21080done # for ac_tag
21081
21082
21083as_fn_exit 0
21084_ACEOF
21085ac_clean_files=$ac_clean_files_save
21086
21087test $ac_write_fail = 0 ||
21088  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21089
21090
21091# configure is writing to config.log, and then calls config.status.
21092# config.status does its own redirection, appending to config.log.
21093# Unfortunately, on DOS this fails, as config.log is still kept open
21094# by configure, so config.status won't be able to write to it; its
21095# output is simply discarded.  So we exec the FD to /dev/null,
21096# effectively closing config.log, so it can be properly (re)opened and
21097# appended to by config.status.  When coming back to configure, we
21098# need to make the FD available again.
21099if test "$no_create" != yes; then
21100  ac_cs_success=:
21101  ac_config_status_args=
21102  test "$silent" = yes &&
21103    ac_config_status_args="$ac_config_status_args --quiet"
21104  exec 5>/dev/null
21105  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21106  exec 5>>config.log
21107  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21108  # would make configure fail if this is the last instruction.
21109  $ac_cs_success || as_fn_exit 1
21110fi
21111if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21112  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21113$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21114fi
21115
21116