1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for BIND 9.16.
4#
5# Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
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: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='BIND'
593PACKAGE_TARNAME='bind'
594PACKAGE_VERSION='9.16'
595PACKAGE_STRING='BIND 9.16'
596PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug'
597PACKAGE_URL='https://www.isc.org/downloads/'
598
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='LTLIBOBJS
636LIBOBJS
637BUILD_LIBS
638BUILD_LDFLAGS
639BUILD_CPPFLAGS
640BUILD_CFLAGS
641BUILD_CC
642DLZ_DRIVER_MYSQL_LIBS
643DLZ_DRIVER_MYSQL_INCLUDES
644DLZ_SYSTEM_TEST
645DLZ_DRIVER_OBJS
646DLZ_DRIVER_SRCS
647DLZ_DRIVER_LIBS
648DLZ_DRIVER_INCLUDES
649CONTRIB_DLZ
650MYSQL_CONFIG
651PG_CONFIG
652SO_TARGETS
653SO_STRIP
654SO_LD
655SO_LDFLAGS
656SO_CFLAGS
657SO
658BIND9_CONFIGARGS
659BIND9_SRCID
660BIND9_VERSIONSTRING
661BIND9_MAJOR
662BIND9_VERSION
663BIND9_DESCRIPTION
664BIND9_PRODUCT
665BIND9_IRS_BUILDINCLUDE
666BIND9_BIND9_BUILDINCLUDE
667BIND9_NS_BUILDINCLUDE
668BIND9_DNS_BUILDINCLUDE
669BIND9_ISCCFG_BUILDINCLUDE
670BIND9_ISCCC_BUILDINCLUDE
671BIND9_ISC_BUILDINCLUDE
672BIND9_TOP_BUILDDIR
673LD_WRAP_TESTS
674UNITTESTS
675KYUA
676CMOCKA_LIBS
677CMOCKA_CFLAGS
678LIBIDN2_LDFLAGS
679LIBIDN2_LIBS
680LIBIDN2_CFLAGS
681XSLTPROC
682CURL
683DOXYGEN
684MANSRCS
685PDFTARGET
686HTMLTARGET
687PDFLATEX
688RELEASE_DATE
689HAVE_XELATEX_FALSE
690HAVE_XELATEX_TRUE
691LATEXMK
692XELATEX
693HAVE_SPHINX_BUILD_FALSE
694HAVE_SPHINX_BUILD_TRUE
695SPHINX_BUILD
696FSTRM_LIBS
697FSTRM_CFLAGS
698PROTOBUF_C_LIBS
699PROTOBUF_C_CFLAGS
700DNSTAP_MANS
701DNSTAPTARGETS
702DNSTAPOBJS
703DNSTAPSRCS
704DNSTAP
705FSTRM_CAPTURE
706PROTOC_C
707ISC_PLATFORM_HAVESYSUNH
708LIBCAP_LIBS
709DST_EXTRA_SRCS
710DST_EXTRA_OBJS
711READLINE_LIB
712BIND9_CO_RULE
713LIBTOOL_MODE_UNINSTALL
714LIBTOOL_MODE_LINK
715LIBTOOL_MODE_INSTALL
716LIBTOOL_MODE_COMPILE
717LIBTOOL_MKDEP_SED
718SA
719A
720O
721ALWAYS_MAKE_SYMTABLE
722MKSYMTBL_PROGRAM
723PURIFY
724purify_path
725MKDEPPROG
726MKDEPCFLAGS
727MKDEPCC
728ZLIB_LIBS
729ZLIB_CFLAGS
730JSON_C_LIBS
731JSON_C_CFLAGS
732LIBXML2_LIBS
733LIBXML2_CFLAGS
734NZD_MANS
735NZDTARGETS
736NZDSRCS
737NZD_TOOLS
738LMDB_LIBS
739LMDB_CFLAGS
740DNS_CRYPTO_LIBS
741DNS_GSSAPI_LIBS
742DST_GSSAPI_INC
743USE_GSSAPI
744ISC_PLATFORM_KRB5HEADER
745ISC_PLATFORM_GSSAPI_KRB5_HEADER
746ISC_PLATFORM_GSSAPIHEADER
747KRB5_CONFIG
748CRYPTO
749PKCS11_MANS
750PKCS11_TOOLS
751PKCS11_TEST
752OPENSSL_LIBS
753OPENSSL_CFLAGS
754NO_LIBTOOL_DNSLIBS
755NO_LIBTOOL_ISCLIBS
756INSTALL_LIBRARY
757ALWAYS_DEFINES
758LIBUV_LIBS
759LIBUV_CFLAGS
760PTHREAD_CFLAGS
761PTHREAD_LIBS
762PTHREAD_CC
763ax_pthread_config
764GEOIP2LINKOBJS
765GEOIP2LINKSRCS
766MAXMINDDB_PREFIX
767MAXMINDDB_LIBS
768MAXMINDDB_CFLAGS
769ISC_PLATFORM_NORETURN_POST
770ISC_PLATFORM_NORETURN_PRE
771PYTEST
772expanded_sysconfdir
773PYTHON_INSTALL_LIB
774PYTHON_INSTALL_DIR
775PYTHON_TOOLS
776KEYMGR
777COVERAGE
778CHECKDS
779PYTHON
780PERL
781PANDOC
782W3M
783LN
784ARFLAGS
785XTARGETS
786PKG_CONFIG_LIBDIR
787PKG_CONFIG_PATH
788PKG_CONFIG
789BACKTRACECFLAGS
790CCNOOPT
791CCOPT
792STD_CWARNINGS
793STD_CDEFINES
794STD_CINCLUDES
795MKDIR_P
796INSTALL_DATA
797INSTALL_SCRIPT
798INSTALL_PROGRAM
799LT_SYS_LIBRARY_PATH
800OTOOL64
801OTOOL
802LIPO
803NMEDIT
804DSYMUTIL
805MANIFEST_TOOL
806AWK
807RANLIB
808STRIP
809ac_ct_AR
810AR
811DLLTOOL
812OBJDUMP
813LN_S
814NM
815ac_ct_DUMPBIN
816DUMPBIN
817LD
818FGREP
819SED
820LIBTOOL
821SET_MAKE
822LFS_LIBS
823LFS_LDFLAGS
824LFS_CFLAGS
825EGREP
826GREP
827CPP
828OBJEXT
829EXEEXT
830ac_ct_CC
831CPPFLAGS
832LDFLAGS
833CFLAGS
834CC
835host_os
836host_vendor
837host_cpu
838host
839build_os
840build_vendor
841build_cpu
842build
843MAINT
844MAINTAINER_MODE_FALSE
845MAINTAINER_MODE_TRUE
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
884ac_subst_files='BIND9_MAKE_INCLUDES
885BIND9_MAKE_RULES
886LIBDNS_MAPAPI
887DLZ_DRIVER_RULES'
888ac_user_opts='
889enable_option_checking
890enable_maintainer_mode
891enable_largefile
892enable_shared
893enable_static
894with_pic
895enable_fast_install
896with_aix_soname
897with_gnu_ld
898with_sysroot
899enable_libtool_lock
900enable_buffer_useinline
901enable_warn_shadow
902enable_warn_error
903enable_developer
904enable_fuzzing
905enable_mutex_atomics
906with_python
907with_python_install_dir
908enable_kqueue
909enable_epoll
910enable_devpoll
911with_geoip2
912enable_geoip
913with_maxminddb
914with_locktype
915with_libtool
916enable_pthread_rwlock
917with_openssl
918enable_fips_mode
919enable_native_pkcs11
920with_pkcs11
921with_gssapi
922with_lmdb
923with_libxml2
924with_libjson
925with_json_c
926with_zlib
927with_purify
928with_gperftools_profiler
929enable_backtrace
930enable_symtable
931enable_tcp_fastopen
932with_readline
933enable_chroot
934enable_linux_caps
935enable_fixed_rrset
936enable_dnstap
937with_protobuf_c
938with_libfstrm
939with_libidn2
940with_cmocka
941with_tuning
942enable_querytrace
943enable_auto_validation
944with_dlopen
945enable_dnsrps_dl
946with_dnsrps_libname
947with_dnsrps_dir
948enable_dnsrps
949with_dlz_postgres
950with_dlz_mysql
951with_dlz_bdb
952with_dlz_filesystem
953with_dlz_ldap
954with_dlz_odbc
955with_dlz_stub
956with_make_clean
957enable_full_report
958'
959      ac_precious_vars='build_alias
960host_alias
961target_alias
962CC
963CFLAGS
964LDFLAGS
965LIBS
966CPPFLAGS
967CPP
968LT_SYS_LIBRARY_PATH
969PKG_CONFIG
970PKG_CONFIG_PATH
971PKG_CONFIG_LIBDIR
972PYTHON
973MAXMINDDB_CFLAGS
974MAXMINDDB_LIBS
975MAXMINDDB_PREFIX
976LIBUV_CFLAGS
977LIBUV_LIBS
978OPENSSL_CFLAGS
979OPENSSL_LIBS
980LIBXML2_CFLAGS
981LIBXML2_LIBS
982JSON_C_CFLAGS
983JSON_C_LIBS
984ZLIB_CFLAGS
985ZLIB_LIBS
986SPHINX_BUILD
987LIBIDN2_CFLAGS
988LIBIDN2_LIBS
989CMOCKA_CFLAGS
990CMOCKA_LIBS
991KYUA'
992
993
994# Initialize some variables set by options.
995ac_init_help=
996ac_init_version=false
997ac_unrecognized_opts=
998ac_unrecognized_sep=
999# The variables have the same names as the options, with
1000# dashes changed to underlines.
1001cache_file=/dev/null
1002exec_prefix=NONE
1003no_create=
1004no_recursion=
1005prefix=NONE
1006program_prefix=NONE
1007program_suffix=NONE
1008program_transform_name=s,x,x,
1009silent=
1010site=
1011srcdir=
1012verbose=
1013x_includes=NONE
1014x_libraries=NONE
1015
1016# Installation directory options.
1017# These are left unexpanded so users can "make install exec_prefix=/foo"
1018# and all the variables that are supposed to be based on exec_prefix
1019# by default will actually change.
1020# Use braces instead of parens because sh, perl, etc. also accept them.
1021# (The list follows the same order as the GNU Coding Standards.)
1022bindir='${exec_prefix}/bin'
1023sbindir='${exec_prefix}/sbin'
1024libexecdir='${exec_prefix}/libexec'
1025datarootdir='${prefix}/share'
1026datadir='${datarootdir}'
1027sysconfdir='${prefix}/etc'
1028sharedstatedir='${prefix}/com'
1029localstatedir='${prefix}/var'
1030includedir='${prefix}/include'
1031oldincludedir='/usr/include'
1032docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033infodir='${datarootdir}/info'
1034htmldir='${docdir}'
1035dvidir='${docdir}'
1036pdfdir='${docdir}'
1037psdir='${docdir}'
1038libdir='${exec_prefix}/lib'
1039localedir='${datarootdir}/locale'
1040mandir='${datarootdir}/man'
1041
1042ac_prev=
1043ac_dashdash=
1044for ac_option
1045do
1046  # If the previous option needs an argument, assign it.
1047  if test -n "$ac_prev"; then
1048    eval $ac_prev=\$ac_option
1049    ac_prev=
1050    continue
1051  fi
1052
1053  case $ac_option in
1054  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055  *=)   ac_optarg= ;;
1056  *)    ac_optarg=yes ;;
1057  esac
1058
1059  # Accept the important Cygnus configure options, so we can diagnose typos.
1060
1061  case $ac_dashdash$ac_option in
1062  --)
1063    ac_dashdash=yes ;;
1064
1065  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066    ac_prev=bindir ;;
1067  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068    bindir=$ac_optarg ;;
1069
1070  -build | --build | --buil | --bui | --bu)
1071    ac_prev=build_alias ;;
1072  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073    build_alias=$ac_optarg ;;
1074
1075  -cache-file | --cache-file | --cache-fil | --cache-fi \
1076  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077    ac_prev=cache_file ;;
1078  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080    cache_file=$ac_optarg ;;
1081
1082  --config-cache | -C)
1083    cache_file=config.cache ;;
1084
1085  -datadir | --datadir | --datadi | --datad)
1086    ac_prev=datadir ;;
1087  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088    datadir=$ac_optarg ;;
1089
1090  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091  | --dataroo | --dataro | --datar)
1092    ac_prev=datarootdir ;;
1093  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095    datarootdir=$ac_optarg ;;
1096
1097  -disable-* | --disable-*)
1098    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099    # Reject names that are not valid shell variable names.
1100    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101      as_fn_error $? "invalid feature name: $ac_useropt"
1102    ac_useropt_orig=$ac_useropt
1103    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104    case $ac_user_opts in
1105      *"
1106"enable_$ac_useropt"
1107"*) ;;
1108      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109	 ac_unrecognized_sep=', ';;
1110    esac
1111    eval enable_$ac_useropt=no ;;
1112
1113  -docdir | --docdir | --docdi | --doc | --do)
1114    ac_prev=docdir ;;
1115  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116    docdir=$ac_optarg ;;
1117
1118  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119    ac_prev=dvidir ;;
1120  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121    dvidir=$ac_optarg ;;
1122
1123  -enable-* | --enable-*)
1124    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125    # Reject names that are not valid shell variable names.
1126    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127      as_fn_error $? "invalid feature name: $ac_useropt"
1128    ac_useropt_orig=$ac_useropt
1129    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130    case $ac_user_opts in
1131      *"
1132"enable_$ac_useropt"
1133"*) ;;
1134      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135	 ac_unrecognized_sep=', ';;
1136    esac
1137    eval enable_$ac_useropt=\$ac_optarg ;;
1138
1139  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141  | --exec | --exe | --ex)
1142    ac_prev=exec_prefix ;;
1143  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145  | --exec=* | --exe=* | --ex=*)
1146    exec_prefix=$ac_optarg ;;
1147
1148  -gas | --gas | --ga | --g)
1149    # Obsolete; use --with-gas.
1150    with_gas=yes ;;
1151
1152  -help | --help | --hel | --he | -h)
1153    ac_init_help=long ;;
1154  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155    ac_init_help=recursive ;;
1156  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157    ac_init_help=short ;;
1158
1159  -host | --host | --hos | --ho)
1160    ac_prev=host_alias ;;
1161  -host=* | --host=* | --hos=* | --ho=*)
1162    host_alias=$ac_optarg ;;
1163
1164  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165    ac_prev=htmldir ;;
1166  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167  | --ht=*)
1168    htmldir=$ac_optarg ;;
1169
1170  -includedir | --includedir | --includedi | --included | --include \
1171  | --includ | --inclu | --incl | --inc)
1172    ac_prev=includedir ;;
1173  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174  | --includ=* | --inclu=* | --incl=* | --inc=*)
1175    includedir=$ac_optarg ;;
1176
1177  -infodir | --infodir | --infodi | --infod | --info | --inf)
1178    ac_prev=infodir ;;
1179  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180    infodir=$ac_optarg ;;
1181
1182  -libdir | --libdir | --libdi | --libd)
1183    ac_prev=libdir ;;
1184  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185    libdir=$ac_optarg ;;
1186
1187  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188  | --libexe | --libex | --libe)
1189    ac_prev=libexecdir ;;
1190  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191  | --libexe=* | --libex=* | --libe=*)
1192    libexecdir=$ac_optarg ;;
1193
1194  -localedir | --localedir | --localedi | --localed | --locale)
1195    ac_prev=localedir ;;
1196  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197    localedir=$ac_optarg ;;
1198
1199  -localstatedir | --localstatedir | --localstatedi | --localstated \
1200  | --localstate | --localstat | --localsta | --localst | --locals)
1201    ac_prev=localstatedir ;;
1202  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204    localstatedir=$ac_optarg ;;
1205
1206  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207    ac_prev=mandir ;;
1208  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209    mandir=$ac_optarg ;;
1210
1211  -nfp | --nfp | --nf)
1212    # Obsolete; use --without-fp.
1213    with_fp=no ;;
1214
1215  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216  | --no-cr | --no-c | -n)
1217    no_create=yes ;;
1218
1219  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221    no_recursion=yes ;;
1222
1223  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225  | --oldin | --oldi | --old | --ol | --o)
1226    ac_prev=oldincludedir ;;
1227  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230    oldincludedir=$ac_optarg ;;
1231
1232  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233    ac_prev=prefix ;;
1234  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235    prefix=$ac_optarg ;;
1236
1237  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238  | --program-pre | --program-pr | --program-p)
1239    ac_prev=program_prefix ;;
1240  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242    program_prefix=$ac_optarg ;;
1243
1244  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245  | --program-suf | --program-su | --program-s)
1246    ac_prev=program_suffix ;;
1247  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249    program_suffix=$ac_optarg ;;
1250
1251  -program-transform-name | --program-transform-name \
1252  | --program-transform-nam | --program-transform-na \
1253  | --program-transform-n | --program-transform- \
1254  | --program-transform | --program-transfor \
1255  | --program-transfo | --program-transf \
1256  | --program-trans | --program-tran \
1257  | --progr-tra | --program-tr | --program-t)
1258    ac_prev=program_transform_name ;;
1259  -program-transform-name=* | --program-transform-name=* \
1260  | --program-transform-nam=* | --program-transform-na=* \
1261  | --program-transform-n=* | --program-transform-=* \
1262  | --program-transform=* | --program-transfor=* \
1263  | --program-transfo=* | --program-transf=* \
1264  | --program-trans=* | --program-tran=* \
1265  | --progr-tra=* | --program-tr=* | --program-t=*)
1266    program_transform_name=$ac_optarg ;;
1267
1268  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269    ac_prev=pdfdir ;;
1270  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271    pdfdir=$ac_optarg ;;
1272
1273  -psdir | --psdir | --psdi | --psd | --ps)
1274    ac_prev=psdir ;;
1275  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276    psdir=$ac_optarg ;;
1277
1278  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279  | -silent | --silent | --silen | --sile | --sil)
1280    silent=yes ;;
1281
1282  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283    ac_prev=sbindir ;;
1284  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285  | --sbi=* | --sb=*)
1286    sbindir=$ac_optarg ;;
1287
1288  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290  | --sharedst | --shareds | --shared | --share | --shar \
1291  | --sha | --sh)
1292    ac_prev=sharedstatedir ;;
1293  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296  | --sha=* | --sh=*)
1297    sharedstatedir=$ac_optarg ;;
1298
1299  -site | --site | --sit)
1300    ac_prev=site ;;
1301  -site=* | --site=* | --sit=*)
1302    site=$ac_optarg ;;
1303
1304  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305    ac_prev=srcdir ;;
1306  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307    srcdir=$ac_optarg ;;
1308
1309  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310  | --syscon | --sysco | --sysc | --sys | --sy)
1311    ac_prev=sysconfdir ;;
1312  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314    sysconfdir=$ac_optarg ;;
1315
1316  -target | --target | --targe | --targ | --tar | --ta | --t)
1317    ac_prev=target_alias ;;
1318  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319    target_alias=$ac_optarg ;;
1320
1321  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322    verbose=yes ;;
1323
1324  -version | --version | --versio | --versi | --vers | -V)
1325    ac_init_version=: ;;
1326
1327  -with-* | --with-*)
1328    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329    # Reject names that are not valid shell variable names.
1330    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331      as_fn_error $? "invalid package name: $ac_useropt"
1332    ac_useropt_orig=$ac_useropt
1333    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334    case $ac_user_opts in
1335      *"
1336"with_$ac_useropt"
1337"*) ;;
1338      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339	 ac_unrecognized_sep=', ';;
1340    esac
1341    eval with_$ac_useropt=\$ac_optarg ;;
1342
1343  -without-* | --without-*)
1344    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345    # Reject names that are not valid shell variable names.
1346    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347      as_fn_error $? "invalid package name: $ac_useropt"
1348    ac_useropt_orig=$ac_useropt
1349    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350    case $ac_user_opts in
1351      *"
1352"with_$ac_useropt"
1353"*) ;;
1354      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355	 ac_unrecognized_sep=', ';;
1356    esac
1357    eval with_$ac_useropt=no ;;
1358
1359  --x)
1360    # Obsolete; use --with-x.
1361    with_x=yes ;;
1362
1363  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364  | --x-incl | --x-inc | --x-in | --x-i)
1365    ac_prev=x_includes ;;
1366  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368    x_includes=$ac_optarg ;;
1369
1370  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372    ac_prev=x_libraries ;;
1373  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375    x_libraries=$ac_optarg ;;
1376
1377  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378Try \`$0 --help' for more information"
1379    ;;
1380
1381  *=*)
1382    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383    # Reject names that are not valid shell variable names.
1384    case $ac_envvar in #(
1385      '' | [0-9]* | *[!_$as_cr_alnum]* )
1386      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387    esac
1388    eval $ac_envvar=\$ac_optarg
1389    export $ac_envvar ;;
1390
1391  *)
1392    # FIXME: should be removed in autoconf 3.0.
1393    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397    ;;
1398
1399  esac
1400done
1401
1402if test -n "$ac_prev"; then
1403  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404  as_fn_error $? "missing argument to $ac_option"
1405fi
1406
1407if test -n "$ac_unrecognized_opts"; then
1408  case $enable_option_checking in
1409    no) ;;
1410    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412  esac
1413fi
1414
1415# Check all directory arguments for consistency.
1416for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417		datadir sysconfdir sharedstatedir localstatedir includedir \
1418		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419		libdir localedir mandir
1420do
1421  eval ac_val=\$$ac_var
1422  # Remove trailing slashes.
1423  case $ac_val in
1424    */ )
1425      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426      eval $ac_var=\$ac_val;;
1427  esac
1428  # Be sure to have absolute directory names.
1429  case $ac_val in
1430    [\\/$]* | ?:[\\/]* )  continue;;
1431    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432  esac
1433  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434done
1435
1436# There might be people who depend on the old broken behavior: `$host'
1437# used to hold the argument of --host etc.
1438# FIXME: To remove some day.
1439build=$build_alias
1440host=$host_alias
1441target=$target_alias
1442
1443# FIXME: To remove some day.
1444if test "x$host_alias" != x; then
1445  if test "x$build_alias" = x; then
1446    cross_compiling=maybe
1447  elif test "x$build_alias" != "x$host_alias"; then
1448    cross_compiling=yes
1449  fi
1450fi
1451
1452ac_tool_prefix=
1453test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454
1455test "$silent" = yes && exec 6>/dev/null
1456
1457
1458ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459ac_ls_di=`ls -di .` &&
1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461  as_fn_error $? "working directory cannot be determined"
1462test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463  as_fn_error $? "pwd does not report name of working directory"
1464
1465
1466# Find the source files, if location was not specified.
1467if test -z "$srcdir"; then
1468  ac_srcdir_defaulted=yes
1469  # Try the directory containing this script, then the parent directory.
1470  ac_confdir=`$as_dirname -- "$as_myself" ||
1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472	 X"$as_myself" : 'X\(//\)[^/]' \| \
1473	 X"$as_myself" : 'X\(//\)$' \| \
1474	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475$as_echo X"$as_myself" |
1476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477	    s//\1/
1478	    q
1479	  }
1480	  /^X\(\/\/\)[^/].*/{
1481	    s//\1/
1482	    q
1483	  }
1484	  /^X\(\/\/\)$/{
1485	    s//\1/
1486	    q
1487	  }
1488	  /^X\(\/\).*/{
1489	    s//\1/
1490	    q
1491	  }
1492	  s/.*/./; q'`
1493  srcdir=$ac_confdir
1494  if test ! -r "$srcdir/$ac_unique_file"; then
1495    srcdir=..
1496  fi
1497else
1498  ac_srcdir_defaulted=no
1499fi
1500if test ! -r "$srcdir/$ac_unique_file"; then
1501  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1503fi
1504ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505ac_abs_confdir=`(
1506	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507	pwd)`
1508# When building in place, set srcdir=.
1509if test "$ac_abs_confdir" = "$ac_pwd"; then
1510  srcdir=.
1511fi
1512# Remove unnecessary trailing slashes from srcdir.
1513# Double slashes in file names in object file debugging info
1514# mess up M-x gdb in Emacs.
1515case $srcdir in
1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517esac
1518for ac_var in $ac_precious_vars; do
1519  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520  eval ac_env_${ac_var}_value=\$${ac_var}
1521  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523done
1524
1525#
1526# Report the --help message.
1527#
1528if test "$ac_init_help" = "long"; then
1529  # Omit some internal or obsolete options to make the list less imposing.
1530  # This message is too long to be a string in the A/UX 3.1 sh.
1531  cat <<_ACEOF
1532\`configure' configures BIND 9.16 to adapt to many kinds of systems.
1533
1534Usage: $0 [OPTION]... [VAR=VALUE]...
1535
1536To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537VAR=VALUE.  See below for descriptions of some of the useful variables.
1538
1539Defaults for the options are specified in brackets.
1540
1541Configuration:
1542  -h, --help              display this help and exit
1543      --help=short        display options specific to this package
1544      --help=recursive    display the short help of all the included packages
1545  -V, --version           display version information and exit
1546  -q, --quiet, --silent   do not print \`checking ...' messages
1547      --cache-file=FILE   cache test results in FILE [disabled]
1548  -C, --config-cache      alias for \`--cache-file=config.cache'
1549  -n, --no-create         do not create output files
1550      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1551
1552Installation directories:
1553  --prefix=PREFIX         install architecture-independent files in PREFIX
1554                          [$ac_default_prefix]
1555  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1556                          [PREFIX]
1557
1558By default, \`make install' will install all the files in
1559\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1560an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561for instance \`--prefix=\$HOME'.
1562
1563For better control, use the options below.
1564
1565Fine tuning of the installation directories:
1566  --bindir=DIR            user executables [EPREFIX/bin]
1567  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1568  --libexecdir=DIR        program executables [EPREFIX/libexec]
1569  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1570  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1571  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1572  --libdir=DIR            object code libraries [EPREFIX/lib]
1573  --includedir=DIR        C header files [PREFIX/include]
1574  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1575  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1576  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1577  --infodir=DIR           info documentation [DATAROOTDIR/info]
1578  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1579  --mandir=DIR            man documentation [DATAROOTDIR/man]
1580  --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
1581  --htmldir=DIR           html documentation [DOCDIR]
1582  --dvidir=DIR            dvi documentation [DOCDIR]
1583  --pdfdir=DIR            pdf documentation [DOCDIR]
1584  --psdir=DIR             ps documentation [DOCDIR]
1585_ACEOF
1586
1587  cat <<\_ACEOF
1588
1589System types:
1590  --build=BUILD     configure for building on BUILD [guessed]
1591  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1592_ACEOF
1593fi
1594
1595if test -n "$ac_init_help"; then
1596  case $ac_init_help in
1597     short | recursive ) echo "Configuration of BIND 9.16:";;
1598   esac
1599  cat <<\_ACEOF
1600
1601Optional Features:
1602  --disable-option-checking  ignore unrecognized --enable/--with options
1603  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1604  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1605  --disable-maintainer-mode
1606                          disable make rules and dependencies not useful (and
1607                          sometimes confusing) to the casual installer
1608  --disable-largefile     omit support for large files
1609  --enable-shared[=PKGS]  build shared libraries [default=yes]
1610  --enable-static[=PKGS]  build static libraries [default=yes]
1611  --enable-fast-install[=PKGS]
1612                          optimize for fast installation [default=yes]
1613  --disable-libtool-lock  avoid locking (might break parallel builds)
1614  --enable-buffer-useinline
1615                          define ISC_BUFFER_USEINLINE when compiling
1616                          [default=yes]
1617  --enable-warn-shadow    turn on -Wshadow when compiling
1618  --enable-warn-error     turn on -Werror when compiling
1619  --enable-developer      enable developer build settings
1620  --enable-fuzzing=<afl|libfuzzer>
1621                          Enable fuzzing using American Fuzzy Lop or libFuzzer
1622                          (default=no)
1623  --enable-mutex-atomics  emulate atomics by mutex-locked variables, useful
1624                          for debugging [default=no]
1625  --enable-kqueue         use BSD kqueue when available [default=yes]
1626  --enable-epoll          use Linux epoll when available [default=auto]
1627  --enable-devpoll        use /dev/poll when available [default=yes]
1628  --disable-geoip         support GeoIP2 geolocation ACLs if available
1629                          [default=yes]
1630  --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
1631                          implementation
1632  --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
1633  --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
1634  --enable-backtrace      log stack backtrace on abort [default=yes]
1635  --enable-symtable       use internal symbol table for backtrace
1636                          [all|minimal(default)|none]
1637  --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
1638  --disable-chroot        disable chroot
1639  --disable-linux-caps    disable Linux capabilities
1640  --enable-fixed-rrset    enable fixed rrset ordering [default=no]
1641  --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
1642  --enable-querytrace     enable very verbose query trace logging [default=no]
1643  --enable-auto-validation
1644                          turn on DNSSEC validation by default, using the IANA
1645                          root key [default=yes]
1646  --enable-dnsrps-dl      DNS Response Policy Service delayed link
1647                          [default=$librpz_dl]
1648  --enable-dnsrps         enable DNS Response Policy Service API
1649  --enable-full-report    report values of all configure options
1650
1651Optional Packages:
1652  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1653  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1654  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1655                          both]
1656  --with-aix-soname=aix|svr4|both
1657                          shared library versioning (aka "SONAME") variant to
1658                          provide on AIX, [default=aix].
1659  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1661                          compiler's sysroot if not specified).
1662  --with-python=PATH      specify path to Python interpreter
1663  --with-python-install-dir=PATH
1664                          installation directory for Python modules
1665  --with-geoip2           deprecated, use --with-maxminddb
1666  --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
1667                          [default=auto]
1668  --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
1669  --with-libtool          use GNU libtool
1670  --with-openssl=DIR      root of the OpenSSL directory
1671  --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
1672                          PKCS11 provider)
1673  --with-gssapi=PATH|/path/krb5-config
1674                          Specify path for system-supplied GSSAPI
1675                          [default=auto]
1676  --with-lmdb=PATH        build with LMDB library [yes|no|path]
1677  --with-libxml2          build with libxml2 library [yes|no|auto] (default is
1678                          auto)
1679  --with-libjson          deprecated, use --with-json-c
1680  --with-json-c           build with json-c library [yes|no|detect] (default
1681                          is detect)
1682  --with-zlib             build with zlib for HTTP compression [default=yes]
1683  --with-purify=PATH      use Rational purify
1684  --with-gperftools-profiler
1685                          use gperftools CPU profiler
1686  --with-readline=LIBSPEC specify readline library [default auto]
1687  --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
1688  --with-libfstrm=path    Path where libfstrm is installed, for dnstap
1689  --with-libidn2=PATH     enable IDN support using GNU libidn2
1690                          [yes|no(default)|path]
1691  --with-cmocka=detect    enable CMocka based tests (default is detect)
1692  --with-tuning=ARG       Specify server tuning (default or small)
1693  --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
1694  --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
1695  --with-dnsrps-dir       path to DNSRPS provider library
1696  --with-dlz-postgres=PATH
1697                          Build with Postgres DLZ driver [yes|no|path].
1698                          (Required to use Postgres with DLZ)
1699  --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
1700                          to use MySQL with DLZ)
1701  --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
1702                          (Required to use Berkeley DB with DLZ)
1703  --with-dlz-filesystem=ARG
1704                          Build with filesystem DLZ driver [yes|no]. (Required
1705                          to use file system driver with DLZ)
1706  --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
1707                          to use LDAP with DLZ)
1708  --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
1709                          to use ODBC with DLZ)
1710  --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
1711                          use stub driver with DLZ)
1712  --with-make-clean       run "make clean" at end of configure [yes|no]
1713
1714Some influential environment variables:
1715  CC          C compiler command
1716  CFLAGS      C compiler flags
1717  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1718              nonstandard directory <lib dir>
1719  LIBS        libraries to pass to the linker, e.g. -l<library>
1720  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1721              you have headers in a nonstandard directory <include dir>
1722  CPP         C preprocessor
1723  LT_SYS_LIBRARY_PATH
1724              User-defined run-time library search path.
1725  PKG_CONFIG  path to pkg-config utility
1726  PKG_CONFIG_PATH
1727              directories to add to pkg-config's search path
1728  PKG_CONFIG_LIBDIR
1729              path overriding pkg-config's built-in search path
1730  PYTHON      path to python executable
1731  MAXMINDDB_CFLAGS
1732              C compiler flags for MAXMINDDB, overriding pkg-config
1733  MAXMINDDB_LIBS
1734              linker flags for MAXMINDDB, overriding pkg-config
1735  MAXMINDDB_PREFIX
1736              value of prefix for libmaxminddb, overriding pkg-config
1737  LIBUV_CFLAGS
1738              C compiler flags for LIBUV, overriding pkg-config
1739  LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
1740  OPENSSL_CFLAGS
1741              C compiler flags for OPENSSL, overriding pkg-config
1742  OPENSSL_LIBS
1743              linker flags for OPENSSL, overriding pkg-config
1744  LIBXML2_CFLAGS
1745              C compiler flags for LIBXML2, overriding pkg-config
1746  LIBXML2_LIBS
1747              linker flags for LIBXML2, overriding pkg-config
1748  JSON_C_CFLAGS
1749              C compiler flags for JSON_C, overriding pkg-config
1750  JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1751  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1752  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1753  SPHINX_BUILD
1754              path to sphinx-build binary used to build the documentation
1755  LIBIDN2_CFLAGS
1756              C compiler flags for LIBIDN2, overriding pkg-config
1757  LIBIDN2_LIBS
1758              linker flags for LIBIDN2, overriding pkg-config
1759  CMOCKA_CFLAGS
1760              C compiler flags for CMOCKA, overriding pkg-config
1761  CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1762  KYUA        path to kyua execution engine
1763
1764Use these variables to override the choices made by `configure' or to help
1765it to find libraries and programs with nonstandard names/locations.
1766
1767Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
1768BIND home page: <https://www.isc.org/downloads/>.
1769_ACEOF
1770ac_status=$?
1771fi
1772
1773if test "$ac_init_help" = "recursive"; then
1774  # If there are subdirs, report their specific --help.
1775  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776    test -d "$ac_dir" ||
1777      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778      continue
1779    ac_builddir=.
1780
1781case "$ac_dir" in
1782.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783*)
1784  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785  # A ".." for each directory in $ac_dir_suffix.
1786  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787  case $ac_top_builddir_sub in
1788  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1790  esac ;;
1791esac
1792ac_abs_top_builddir=$ac_pwd
1793ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794# for backward compatibility:
1795ac_top_builddir=$ac_top_build_prefix
1796
1797case $srcdir in
1798  .)  # We are building in place.
1799    ac_srcdir=.
1800    ac_top_srcdir=$ac_top_builddir_sub
1801    ac_abs_top_srcdir=$ac_pwd ;;
1802  [\\/]* | ?:[\\/]* )  # Absolute name.
1803    ac_srcdir=$srcdir$ac_dir_suffix;
1804    ac_top_srcdir=$srcdir
1805    ac_abs_top_srcdir=$srcdir ;;
1806  *) # Relative name.
1807    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808    ac_top_srcdir=$ac_top_build_prefix$srcdir
1809    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810esac
1811ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812
1813    cd "$ac_dir" || { ac_status=$?; continue; }
1814    # Check for guested configure.
1815    if test -f "$ac_srcdir/configure.gnu"; then
1816      echo &&
1817      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818    elif test -f "$ac_srcdir/configure"; then
1819      echo &&
1820      $SHELL "$ac_srcdir/configure" --help=recursive
1821    else
1822      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823    fi || ac_status=$?
1824    cd "$ac_pwd" || { ac_status=$?; break; }
1825  done
1826fi
1827
1828test -n "$ac_init_help" && exit $ac_status
1829if $ac_init_version; then
1830  cat <<\_ACEOF
1831BIND configure 9.16
1832generated by GNU Autoconf 2.69
1833
1834Copyright (C) 2012 Free Software Foundation, Inc.
1835This configure script is free software; the Free Software Foundation
1836gives unlimited permission to copy, distribute and modify it.
1837_ACEOF
1838  exit
1839fi
1840
1841## ------------------------ ##
1842## Autoconf initialization. ##
1843## ------------------------ ##
1844
1845# ac_fn_c_try_compile LINENO
1846# --------------------------
1847# Try to compile conftest.$ac_ext, and return whether this succeeded.
1848ac_fn_c_try_compile ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  rm -f conftest.$ac_objext
1852  if { { ac_try="$ac_compile"
1853case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_compile") 2>conftest.err
1860  ac_status=$?
1861  if test -s conftest.err; then
1862    grep -v '^ *+' conftest.err >conftest.er1
1863    cat conftest.er1 >&5
1864    mv -f conftest.er1 conftest.err
1865  fi
1866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867  test $ac_status = 0; } && {
1868	 test -z "$ac_c_werror_flag" ||
1869	 test ! -s conftest.err
1870       } && test -s conftest.$ac_objext; then :
1871  ac_retval=0
1872else
1873  $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876	ac_retval=1
1877fi
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_compile
1882
1883# ac_fn_c_try_cpp LINENO
1884# ----------------------
1885# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886ac_fn_c_try_cpp ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  if { { ac_try="$ac_cpp conftest.$ac_ext"
1890case "(($ac_try" in
1891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892  *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897  ac_status=$?
1898  if test -s conftest.err; then
1899    grep -v '^ *+' conftest.err >conftest.er1
1900    cat conftest.er1 >&5
1901    mv -f conftest.er1 conftest.err
1902  fi
1903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; } > conftest.i && {
1905	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906	 test ! -s conftest.err
1907       }; then :
1908  ac_retval=0
1909else
1910  $as_echo "$as_me: failed program was:" >&5
1911sed 's/^/| /' conftest.$ac_ext >&5
1912
1913    ac_retval=1
1914fi
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916  as_fn_set_status $ac_retval
1917
1918} # ac_fn_c_try_cpp
1919
1920# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921# -------------------------------------------------------
1922# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923# the include files in INCLUDES and setting the cache variable VAR
1924# accordingly.
1925ac_fn_c_check_header_mongrel ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  if eval \${$3+:} false; then :
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937else
1938  # Is the header compilable?
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940$as_echo_n "checking $2 usability... " >&6; }
1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h.  */
1943$4
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947  ac_header_compiler=yes
1948else
1949  ac_header_compiler=no
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953$as_echo "$ac_header_compiler" >&6; }
1954
1955# Is the header present?
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957$as_echo_n "checking $2 presence... " >&6; }
1958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h.  */
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_cpp "$LINENO"; then :
1963  ac_header_preproc=yes
1964else
1965  ac_header_preproc=no
1966fi
1967rm -f conftest.err conftest.i conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969$as_echo "$ac_header_preproc" >&6; }
1970
1971# So?  What about this header?
1972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973  yes:no: )
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978    ;;
1979  no:yes:* )
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1983$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1987$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990( $as_echo "## ------------------------------------------------------------------------------------------- ##
1991## Report this to https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug ##
1992## ------------------------------------------------------------------------------------------- ##"
1993     ) | sed "s/^/$as_me: WARNING:     /" >&2
1994    ;;
1995esac
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  eval "$3=\$ac_header_compiler"
2002fi
2003eval ac_res=\$$3
2004	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006fi
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_c_check_header_mongrel
2010
2011# ac_fn_c_try_run LINENO
2012# ----------------------
2013# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014# that executables *can* be run.
2015ac_fn_c_try_run ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  if { { ac_try="$ac_link"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_link") 2>&5
2026  ac_status=$?
2027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029  { { case "(($ac_try" in
2030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031  *) ac_try_echo=$ac_try;;
2032esac
2033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034$as_echo "$ac_try_echo"; } >&5
2035  (eval "$ac_try") 2>&5
2036  ac_status=$?
2037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038  test $ac_status = 0; }; }; then :
2039  ac_retval=0
2040else
2041  $as_echo "$as_me: program exited with status $ac_status" >&5
2042       $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045       ac_retval=$ac_status
2046fi
2047  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049  as_fn_set_status $ac_retval
2050
2051} # ac_fn_c_try_run
2052
2053# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054# -------------------------------------------------------
2055# Tests whether HEADER exists and can be compiled using the include files in
2056# INCLUDES, setting the cache variable VAR accordingly.
2057ac_fn_c_check_header_compile ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061$as_echo_n "checking for $2... " >&6; }
2062if eval \${$3+:} false; then :
2063  $as_echo_n "(cached) " >&6
2064else
2065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h.  */
2067$4
2068#include <$2>
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071  eval "$3=yes"
2072else
2073  eval "$3=no"
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077eval ac_res=\$$3
2078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_c_check_header_compile
2083
2084# ac_fn_c_try_link LINENO
2085# -----------------------
2086# Try to link conftest.$ac_ext, and return whether this succeeded.
2087ac_fn_c_try_link ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  rm -f conftest.$ac_objext conftest$ac_exeext
2091  if { { ac_try="$ac_link"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098  (eval "$ac_link") 2>conftest.err
2099  ac_status=$?
2100  if test -s conftest.err; then
2101    grep -v '^ *+' conftest.err >conftest.er1
2102    cat conftest.er1 >&5
2103    mv -f conftest.er1 conftest.err
2104  fi
2105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106  test $ac_status = 0; } && {
2107	 test -z "$ac_c_werror_flag" ||
2108	 test ! -s conftest.err
2109       } && test -s conftest$ac_exeext && {
2110	 test "$cross_compiling" = yes ||
2111	 test -x conftest$ac_exeext
2112       }; then :
2113  ac_retval=0
2114else
2115  $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118	ac_retval=1
2119fi
2120  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2121  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2122  # interfere with the next link command; also delete a directory that is
2123  # left behind by Apple's compiler.  We do this before executing the actions.
2124  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2125  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126  as_fn_set_status $ac_retval
2127
2128} # ac_fn_c_try_link
2129
2130# ac_fn_c_check_func LINENO FUNC VAR
2131# ----------------------------------
2132# Tests whether FUNC exists, setting the cache variable VAR accordingly
2133ac_fn_c_check_func ()
2134{
2135  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137$as_echo_n "checking for $2... " >&6; }
2138if eval \${$3+:} false; then :
2139  $as_echo_n "(cached) " >&6
2140else
2141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h.  */
2143/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2144   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2145#define $2 innocuous_$2
2146
2147/* System header to define __stub macros and hopefully few prototypes,
2148    which can conflict with char $2 (); below.
2149    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2150    <limits.h> exists even on freestanding compilers.  */
2151
2152#ifdef __STDC__
2153# include <limits.h>
2154#else
2155# include <assert.h>
2156#endif
2157
2158#undef $2
2159
2160/* Override any GCC internal prototype to avoid an error.
2161   Use char because int might match the return type of a GCC
2162   builtin and then its argument prototype would still apply.  */
2163#ifdef __cplusplus
2164extern "C"
2165#endif
2166char $2 ();
2167/* The GNU C library defines this for functions which it implements
2168    to always fail with ENOSYS.  Some functions are actually named
2169    something starting with __ and the normal name is an alias.  */
2170#if defined __stub_$2 || defined __stub___$2
2171choke me
2172#endif
2173
2174int
2175main ()
2176{
2177return $2 ();
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_link "$LINENO"; then :
2183  eval "$3=yes"
2184else
2185  eval "$3=no"
2186fi
2187rm -f core conftest.err conftest.$ac_objext \
2188    conftest$ac_exeext conftest.$ac_ext
2189fi
2190eval ac_res=\$$3
2191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192$as_echo "$ac_res" >&6; }
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195} # ac_fn_c_check_func
2196
2197# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2198# -------------------------------------------
2199# Tests whether TYPE exists after having included INCLUDES, setting cache
2200# variable VAR accordingly.
2201ac_fn_c_check_type ()
2202{
2203  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205$as_echo_n "checking for $2... " >&6; }
2206if eval \${$3+:} false; then :
2207  $as_echo_n "(cached) " >&6
2208else
2209  eval "$3=no"
2210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int
2214main ()
2215{
2216if (sizeof ($2))
2217	 return 0;
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222if ac_fn_c_try_compile "$LINENO"; then :
2223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224/* end confdefs.h.  */
2225$4
2226int
2227main ()
2228{
2229if (sizeof (($2)))
2230	    return 0;
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236
2237else
2238  eval "$3=yes"
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244eval ac_res=\$$3
2245	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
2247  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248
2249} # ac_fn_c_check_type
2250
2251# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2252# ---------------------------------------------
2253# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2254# accordingly.
2255ac_fn_c_check_decl ()
2256{
2257  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258  as_decl_name=`echo $2|sed 's/ *(.*//'`
2259  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2261$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2262if eval \${$3+:} false; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h.  */
2267$4
2268int
2269main ()
2270{
2271#ifndef $as_decl_name
2272#ifdef __cplusplus
2273  (void) $as_decl_use;
2274#else
2275  (void) $as_decl_name;
2276#endif
2277#endif
2278
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  eval "$3=yes"
2285else
2286  eval "$3=no"
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290eval ac_res=\$$3
2291	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292$as_echo "$ac_res" >&6; }
2293  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295} # ac_fn_c_check_decl
2296cat >config.log <<_ACEOF
2297This file contains any messages produced by compilers while
2298running configure, to aid debugging if configure makes a mistake.
2299
2300It was created by BIND $as_me 9.16, which was
2301generated by GNU Autoconf 2.69.  Invocation command line was
2302
2303  $ $0 $@
2304
2305_ACEOF
2306exec 5>>config.log
2307{
2308cat <<_ASUNAME
2309## --------- ##
2310## Platform. ##
2311## --------- ##
2312
2313hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318
2319/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2321
2322/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2323/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2324/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2326/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2327/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2328/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2329
2330_ASUNAME
2331
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335  IFS=$as_save_IFS
2336  test -z "$as_dir" && as_dir=.
2337    $as_echo "PATH: $as_dir"
2338  done
2339IFS=$as_save_IFS
2340
2341} >&5
2342
2343cat >&5 <<_ACEOF
2344
2345
2346## ----------- ##
2347## Core tests. ##
2348## ----------- ##
2349
2350_ACEOF
2351
2352
2353# Keep a trace of the command line.
2354# Strip out --no-create and --no-recursion so they do not pile up.
2355# Strip out --silent because we don't want to record it for future runs.
2356# Also quote any args containing shell meta-characters.
2357# Make two passes to allow for proper duplicate-argument suppression.
2358ac_configure_args=
2359ac_configure_args0=
2360ac_configure_args1=
2361ac_must_keep_next=false
2362for ac_pass in 1 2
2363do
2364  for ac_arg
2365  do
2366    case $ac_arg in
2367    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369    | -silent | --silent | --silen | --sile | --sil)
2370      continue ;;
2371    *\'*)
2372      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373    esac
2374    case $ac_pass in
2375    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376    2)
2377      as_fn_append ac_configure_args1 " '$ac_arg'"
2378      if test $ac_must_keep_next = true; then
2379	ac_must_keep_next=false # Got value, back to normal.
2380      else
2381	case $ac_arg in
2382	  *=* | --config-cache | -C | -disable-* | --disable-* \
2383	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385	  | -with-* | --with-* | -without-* | --without-* | --x)
2386	    case "$ac_configure_args0 " in
2387	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388	    esac
2389	    ;;
2390	  -* ) ac_must_keep_next=true ;;
2391	esac
2392      fi
2393      as_fn_append ac_configure_args " '$ac_arg'"
2394      ;;
2395    esac
2396  done
2397done
2398{ ac_configure_args0=; unset ac_configure_args0;}
2399{ ac_configure_args1=; unset ac_configure_args1;}
2400
2401# When interrupted or exit'd, cleanup temporary files, and complete
2402# config.log.  We remove comments because anyway the quotes in there
2403# would cause problems or look ugly.
2404# WARNING: Use '\'' to represent an apostrophe within the trap.
2405# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406trap 'exit_status=$?
2407  # Save into config.log some information that might help in debugging.
2408  {
2409    echo
2410
2411    $as_echo "## ---------------- ##
2412## Cache variables. ##
2413## ---------------- ##"
2414    echo
2415    # The following way of writing the cache mishandles newlines in values,
2416(
2417  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418    eval ac_val=\$$ac_var
2419    case $ac_val in #(
2420    *${as_nl}*)
2421      case $ac_var in #(
2422      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424      esac
2425      case $ac_var in #(
2426      _ | IFS | as_nl) ;; #(
2427      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428      *) { eval $ac_var=; unset $ac_var;} ;;
2429      esac ;;
2430    esac
2431  done
2432  (set) 2>&1 |
2433    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434    *${as_nl}ac_space=\ *)
2435      sed -n \
2436	"s/'\''/'\''\\\\'\'''\''/g;
2437	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438      ;; #(
2439    *)
2440      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441      ;;
2442    esac |
2443    sort
2444)
2445    echo
2446
2447    $as_echo "## ----------------- ##
2448## Output variables. ##
2449## ----------------- ##"
2450    echo
2451    for ac_var in $ac_subst_vars
2452    do
2453      eval ac_val=\$$ac_var
2454      case $ac_val in
2455      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456      esac
2457      $as_echo "$ac_var='\''$ac_val'\''"
2458    done | sort
2459    echo
2460
2461    if test -n "$ac_subst_files"; then
2462      $as_echo "## ------------------- ##
2463## File substitutions. ##
2464## ------------------- ##"
2465      echo
2466      for ac_var in $ac_subst_files
2467      do
2468	eval ac_val=\$$ac_var
2469	case $ac_val in
2470	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471	esac
2472	$as_echo "$ac_var='\''$ac_val'\''"
2473      done | sort
2474      echo
2475    fi
2476
2477    if test -s confdefs.h; then
2478      $as_echo "## ----------- ##
2479## confdefs.h. ##
2480## ----------- ##"
2481      echo
2482      cat confdefs.h
2483      echo
2484    fi
2485    test "$ac_signal" != 0 &&
2486      $as_echo "$as_me: caught signal $ac_signal"
2487    $as_echo "$as_me: exit $exit_status"
2488  } >&5
2489  rm -f core *.core core.conftest.* &&
2490    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491    exit $exit_status
2492' 0
2493for ac_signal in 1 2 13 15; do
2494  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495done
2496ac_signal=0
2497
2498# confdefs.h avoids OS command line length limits that DEFS can exceed.
2499rm -f -r conftest* confdefs.h
2500
2501$as_echo "/* confdefs.h */" > confdefs.h
2502
2503# Predefined preprocessor variables.
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_NAME "$PACKAGE_NAME"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_VERSION "$PACKAGE_VERSION"
2515_ACEOF
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_STRING "$PACKAGE_STRING"
2519_ACEOF
2520
2521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523_ACEOF
2524
2525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_URL "$PACKAGE_URL"
2527_ACEOF
2528
2529
2530# Let the site file select an alternate cache file if it wants to.
2531# Prefer an explicitly selected file to automatically selected ones.
2532ac_site_file1=NONE
2533ac_site_file2=NONE
2534if test -n "$CONFIG_SITE"; then
2535  # We do not want a PATH search for config.site.
2536  case $CONFIG_SITE in #((
2537    -*)  ac_site_file1=./$CONFIG_SITE;;
2538    */*) ac_site_file1=$CONFIG_SITE;;
2539    *)   ac_site_file1=./$CONFIG_SITE;;
2540  esac
2541elif test "x$prefix" != xNONE; then
2542  ac_site_file1=$prefix/share/config.site
2543  ac_site_file2=$prefix/etc/config.site
2544else
2545  ac_site_file1=$ac_default_prefix/share/config.site
2546  ac_site_file2=$ac_default_prefix/etc/config.site
2547fi
2548for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549do
2550  test "x$ac_site_file" = xNONE && continue
2551  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554    sed 's/^/| /' "$ac_site_file" >&5
2555    . "$ac_site_file" \
2556      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558as_fn_error $? "failed to load site script $ac_site_file
2559See \`config.log' for more details" "$LINENO" 5; }
2560  fi
2561done
2562
2563if test -r "$cache_file"; then
2564  # Some versions of bash will fail to source /dev/null (special files
2565  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2566  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568$as_echo "$as_me: loading cache $cache_file" >&6;}
2569    case $cache_file in
2570      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571      *)                      . "./$cache_file";;
2572    esac
2573  fi
2574else
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576$as_echo "$as_me: creating cache $cache_file" >&6;}
2577  >$cache_file
2578fi
2579
2580# Check that the precious variables saved in the cache have kept the same
2581# value.
2582ac_cache_corrupted=false
2583for ac_var in $ac_precious_vars; do
2584  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2585  eval ac_new_set=\$ac_env_${ac_var}_set
2586  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2587  eval ac_new_val=\$ac_env_${ac_var}_value
2588  case $ac_old_set,$ac_new_set in
2589    set,)
2590      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2591$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2592      ac_cache_corrupted=: ;;
2593    ,set)
2594      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2595$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2596      ac_cache_corrupted=: ;;
2597    ,);;
2598    *)
2599      if test "x$ac_old_val" != "x$ac_new_val"; then
2600	# differences in whitespace do not lead to failure.
2601	ac_old_val_w=`echo x $ac_old_val`
2602	ac_new_val_w=`echo x $ac_new_val`
2603	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2604	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2605$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2606	  ac_cache_corrupted=:
2607	else
2608	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2609$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2610	  eval $ac_var=\$ac_old_val
2611	fi
2612	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2613$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2614	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2615$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2616      fi;;
2617  esac
2618  # Pass precious variables to config.status.
2619  if test "$ac_new_set" = set; then
2620    case $ac_new_val in
2621    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2622    *) ac_arg=$ac_var=$ac_new_val ;;
2623    esac
2624    case " $ac_configure_args " in
2625      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2626      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2627    esac
2628  fi
2629done
2630if $ac_cache_corrupted; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2634$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2635  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2636fi
2637## -------------------- ##
2638## Main body of script. ##
2639## -------------------- ##
2640
2641ac_ext=c
2642ac_cpp='$CPP $CPPFLAGS'
2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649
2650#
2651# Enable maintainer mode by default, but allow to disable it in the CI
2652#
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2655$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2656    # Check whether --enable-maintainer-mode was given.
2657if test "${enable_maintainer_mode+set}" = set; then :
2658  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2659else
2660  USE_MAINTAINER_MODE=yes
2661fi
2662
2663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2664$as_echo "$USE_MAINTAINER_MODE" >&6; }
2665   if test $USE_MAINTAINER_MODE = yes; then
2666  MAINTAINER_MODE_TRUE=
2667  MAINTAINER_MODE_FALSE='#'
2668else
2669  MAINTAINER_MODE_TRUE='#'
2670  MAINTAINER_MODE_FALSE=
2671fi
2672
2673  MAINT=$MAINTAINER_MODE_TRUE
2674
2675
2676
2677ac_config_headers="$ac_config_headers config.h"
2678
2679
2680
2681ac_aux_dir=
2682for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2683  if test -f "$ac_dir/install-sh"; then
2684    ac_aux_dir=$ac_dir
2685    ac_install_sh="$ac_aux_dir/install-sh -c"
2686    break
2687  elif test -f "$ac_dir/install.sh"; then
2688    ac_aux_dir=$ac_dir
2689    ac_install_sh="$ac_aux_dir/install.sh -c"
2690    break
2691  elif test -f "$ac_dir/shtool"; then
2692    ac_aux_dir=$ac_dir
2693    ac_install_sh="$ac_aux_dir/shtool install -c"
2694    break
2695  fi
2696done
2697if test -z "$ac_aux_dir"; then
2698  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2699fi
2700
2701# These three variables are undocumented and unsupported,
2702# and are intended to be withdrawn in a future Autoconf release.
2703# They can cause serious problems if a builder's source tree is in a directory
2704# whose full name contains unusual characters.
2705ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2706ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2707ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2708
2709
2710# Make sure we can run config.sub.
2711$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2712  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2713
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2715$as_echo_n "checking build system type... " >&6; }
2716if ${ac_cv_build+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  ac_build_alias=$build_alias
2720test "x$ac_build_alias" = x &&
2721  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2722test "x$ac_build_alias" = x &&
2723  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2724ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2725  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2726
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2729$as_echo "$ac_cv_build" >&6; }
2730case $ac_cv_build in
2731*-*-*) ;;
2732*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2733esac
2734build=$ac_cv_build
2735ac_save_IFS=$IFS; IFS='-'
2736set x $ac_cv_build
2737shift
2738build_cpu=$1
2739build_vendor=$2
2740shift; shift
2741# Remember, the first character of IFS is used to create $*,
2742# except with old shells:
2743build_os=$*
2744IFS=$ac_save_IFS
2745case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2746
2747
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2749$as_echo_n "checking host system type... " >&6; }
2750if ${ac_cv_host+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  if test "x$host_alias" = x; then
2754  ac_cv_host=$ac_cv_build
2755else
2756  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2757    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2758fi
2759
2760fi
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2762$as_echo "$ac_cv_host" >&6; }
2763case $ac_cv_host in
2764*-*-*) ;;
2765*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2766esac
2767host=$ac_cv_host
2768ac_save_IFS=$IFS; IFS='-'
2769set x $ac_cv_host
2770shift
2771host_cpu=$1
2772host_vendor=$2
2773shift; shift
2774# Remember, the first character of IFS is used to create $*,
2775# except with old shells:
2776host_os=$*
2777IFS=$ac_save_IFS
2778case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2779
2780
2781
2782#
2783# Enable system extensions to C and POSIX
2784#
2785ac_ext=c
2786ac_cpp='$CPP $CPPFLAGS'
2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790if test -n "$ac_tool_prefix"; then
2791  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2792set dummy ${ac_tool_prefix}gcc; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if ${ac_cv_prog_CC+:} false; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$CC"; then
2799  ac_cv_prog_CC="$CC" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818CC=$ac_cv_prog_CC
2819if test -n "$CC"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821$as_echo "$CC" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828fi
2829if test -z "$ac_cv_prog_CC"; then
2830  ac_ct_CC=$CC
2831  # Extract the first word of "gcc", so it can be a program name with args.
2832set dummy gcc; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_ac_ct_CC+:} false; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$ac_ct_CC"; then
2839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848    ac_cv_prog_ac_ct_CC="gcc"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859if test -n "$ac_ct_CC"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861$as_echo "$ac_ct_CC" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867  if test "x$ac_ct_CC" = x; then
2868    CC=""
2869  else
2870    case $cross_compiling:$ac_tool_warned in
2871yes:)
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874ac_tool_warned=yes ;;
2875esac
2876    CC=$ac_ct_CC
2877  fi
2878else
2879  CC="$ac_cv_prog_CC"
2880fi
2881
2882if test -z "$CC"; then
2883          if test -n "$ac_tool_prefix"; then
2884    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885set dummy ${ac_tool_prefix}cc; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if ${ac_cv_prog_CC+:} false; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901    ac_cv_prog_CC="${ac_tool_prefix}cc"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920
2921  fi
2922fi
2923if test -z "$CC"; then
2924  # Extract the first word of "cc", so it can be a program name with args.
2925set dummy cc; ac_word=$2
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927$as_echo_n "checking for $ac_word... " >&6; }
2928if ${ac_cv_prog_CC+:} false; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  if test -n "$CC"; then
2932  ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934  ac_prog_rejected=no
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938  IFS=$as_save_IFS
2939  test -z "$as_dir" && as_dir=.
2940    for ac_exec_ext in '' $ac_executable_extensions; do
2941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943       ac_prog_rejected=yes
2944       continue
2945     fi
2946    ac_cv_prog_CC="cc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954if test $ac_prog_rejected = yes; then
2955  # We found a bogon in the path, so make sure we never use it.
2956  set dummy $ac_cv_prog_CC
2957  shift
2958  if test $# != 0; then
2959    # We chose a different compiler from the bogus one.
2960    # However, it has the same basename, so the bogon will be chosen
2961    # first if we set CC to just the basename; use the full file name.
2962    shift
2963    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2964  fi
2965fi
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
2972else
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$CC"; then
2980  if test -n "$ac_tool_prefix"; then
2981  for ac_prog in cl.exe
2982  do
2983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_CC+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$CC"; then
2991  ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020    test -n "$CC" && break
3021  done
3022fi
3023if test -z "$CC"; then
3024  ac_ct_CC=$CC
3025  for ac_prog in cl.exe
3026do
3027  # Extract the first word of "$ac_prog", so it can be a program name with args.
3028set dummy $ac_prog; ac_word=$2
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030$as_echo_n "checking for $ac_word... " >&6; }
3031if ${ac_cv_prog_ac_ct_CC+:} false; then :
3032  $as_echo_n "(cached) " >&6
3033else
3034  if test -n "$ac_ct_CC"; then
3035  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042    for ac_exec_ext in '' $ac_executable_extensions; do
3043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_ac_ct_CC="$ac_prog"
3045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053fi
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057$as_echo "$ac_ct_CC" >&6; }
3058else
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060$as_echo "no" >&6; }
3061fi
3062
3063
3064  test -n "$ac_ct_CC" && break
3065done
3066
3067  if test "x$ac_ct_CC" = x; then
3068    CC=""
3069  else
3070    case $cross_compiling:$ac_tool_warned in
3071yes:)
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074ac_tool_warned=yes ;;
3075esac
3076    CC=$ac_ct_CC
3077  fi
3078fi
3079
3080fi
3081
3082
3083test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085as_fn_error $? "no acceptable C compiler found in \$PATH
3086See \`config.log' for more details" "$LINENO" 5; }
3087
3088# Provide some information about the compiler.
3089$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3090set X $ac_compile
3091ac_compiler=$2
3092for ac_option in --version -v -V -qversion; do
3093  { { ac_try="$ac_compiler $ac_option >&5"
3094case "(($ac_try" in
3095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096  *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3101  ac_status=$?
3102  if test -s conftest.err; then
3103    sed '10a\
3104... rest of stderr output deleted ...
3105         10q' conftest.err >conftest.er1
3106    cat conftest.er1 >&5
3107  fi
3108  rm -f conftest.er1 conftest.err
3109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110  test $ac_status = 0; }
3111done
3112
3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h.  */
3115
3116int
3117main ()
3118{
3119
3120  ;
3121  return 0;
3122}
3123_ACEOF
3124ac_clean_files_save=$ac_clean_files
3125ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3126# Try to create an executable without -o first, disregard a.out.
3127# It will help us diagnose broken compilers, and finding out an intuition
3128# of exeext.
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3130$as_echo_n "checking whether the C compiler works... " >&6; }
3131ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3132
3133# The possible output files:
3134ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3135
3136ac_rmfiles=
3137for ac_file in $ac_files
3138do
3139  case $ac_file in
3140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3142  esac
3143done
3144rm -f $ac_rmfiles
3145
3146if { { ac_try="$ac_link_default"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152$as_echo "$ac_try_echo"; } >&5
3153  (eval "$ac_link_default") 2>&5
3154  ac_status=$?
3155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156  test $ac_status = 0; }; then :
3157  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3158# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3159# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3160# so that the user can short-circuit this test for compilers unknown to
3161# Autoconf.
3162for ac_file in $ac_files ''
3163do
3164  test -f "$ac_file" || continue
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3167	;;
3168    [ab].out )
3169	# We found the default executable, but exeext='' is most
3170	# certainly right.
3171	break;;
3172    *.* )
3173	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3174	then :; else
3175	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176	fi
3177	# We set ac_cv_exeext here because the later test for it is not
3178	# safe: cross compilers may not add the suffix if given an `-o'
3179	# argument, so we may need to know it at that point already.
3180	# Even if this section looks crufty: it has the advantage of
3181	# actually working.
3182	break;;
3183    * )
3184	break;;
3185  esac
3186done
3187test "$ac_cv_exeext" = no && ac_cv_exeext=
3188
3189else
3190  ac_file=''
3191fi
3192if test -z "$ac_file"; then :
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195$as_echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200as_fn_error 77 "C compiler cannot create executables
3201See \`config.log' for more details" "$LINENO" 5; }
3202else
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204$as_echo "yes" >&6; }
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3207$as_echo_n "checking for C compiler default output file name... " >&6; }
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3209$as_echo "$ac_file" >&6; }
3210ac_exeext=$ac_cv_exeext
3211
3212rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3213ac_clean_files=$ac_clean_files_save
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3215$as_echo_n "checking for suffix of executables... " >&6; }
3216if { { ac_try="$ac_link"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223  (eval "$ac_link") 2>&5
3224  ac_status=$?
3225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226  test $ac_status = 0; }; then :
3227  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3229# work properly (i.e., refer to `conftest.exe'), while it won't with
3230# `rm'.
3231for ac_file in conftest.exe conftest conftest.*; do
3232  test -f "$ac_file" || continue
3233  case $ac_file in
3234    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236	  break;;
3237    * ) break;;
3238  esac
3239done
3240else
3241  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3244See \`config.log' for more details" "$LINENO" 5; }
3245fi
3246rm -f conftest conftest$ac_cv_exeext
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248$as_echo "$ac_cv_exeext" >&6; }
3249
3250rm -f conftest.$ac_ext
3251EXEEXT=$ac_cv_exeext
3252ac_exeext=$EXEEXT
3253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255#include <stdio.h>
3256int
3257main ()
3258{
3259FILE *f = fopen ("conftest.out", "w");
3260 return ferror (f) || fclose (f) != 0;
3261
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266ac_clean_files="$ac_clean_files conftest.out"
3267# Check that the compiler produces executables we can run.  If not, either
3268# the compiler is broken, or we cross compile.
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3270$as_echo_n "checking whether we are cross compiling... " >&6; }
3271if test "$cross_compiling" != yes; then
3272  { { ac_try="$ac_link"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_link") 2>&5
3280  ac_status=$?
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283  if { ac_try='./conftest$ac_cv_exeext'
3284  { { case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289$as_echo "$ac_try_echo"; } >&5
3290  (eval "$ac_try") 2>&5
3291  ac_status=$?
3292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293  test $ac_status = 0; }; }; then
3294    cross_compiling=no
3295  else
3296    if test "$cross_compiling" = maybe; then
3297	cross_compiling=yes
3298    else
3299	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301as_fn_error $? "cannot run C compiled programs.
3302If you meant to cross compile, use \`--host'.
3303See \`config.log' for more details" "$LINENO" 5; }
3304    fi
3305  fi
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3308$as_echo "$cross_compiling" >&6; }
3309
3310rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3311ac_clean_files=$ac_clean_files_save
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3313$as_echo_n "checking for suffix of object files... " >&6; }
3314if ${ac_cv_objext+:} false; then :
3315  $as_echo_n "(cached) " >&6
3316else
3317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest.o conftest.obj
3329if { { ac_try="$ac_compile"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_compile") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; then :
3340  for ac_file in conftest.o conftest.obj conftest.*; do
3341  test -f "$ac_file" || continue;
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3345       break;;
3346  esac
3347done
3348else
3349  $as_echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354as_fn_error $? "cannot compute suffix of object files: cannot compile
3355See \`config.log' for more details" "$LINENO" 5; }
3356fi
3357rm -f conftest.$ac_cv_objext conftest.$ac_ext
3358fi
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3360$as_echo "$ac_cv_objext" >&6; }
3361OBJEXT=$ac_cv_objext
3362ac_objext=$OBJEXT
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3364$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3365if ${ac_cv_c_compiler_gnu+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374#ifndef __GNUC__
3375       choke me
3376#endif
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382if ac_fn_c_try_compile "$LINENO"; then :
3383  ac_compiler_gnu=yes
3384else
3385  ac_compiler_gnu=no
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388ac_cv_c_compiler_gnu=$ac_compiler_gnu
3389
3390fi
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3392$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3393if test $ac_compiler_gnu = yes; then
3394  GCC=yes
3395else
3396  GCC=
3397fi
3398ac_test_CFLAGS=${CFLAGS+set}
3399ac_save_CFLAGS=$CFLAGS
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3401$as_echo_n "checking whether $CC accepts -g... " >&6; }
3402if ${ac_cv_prog_cc_g+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  ac_save_c_werror_flag=$ac_c_werror_flag
3406   ac_c_werror_flag=yes
3407   ac_cv_prog_cc_g=no
3408   CFLAGS="-g"
3409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421  ac_cv_prog_cc_g=yes
3422else
3423  CFLAGS=""
3424      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435if ac_fn_c_try_compile "$LINENO"; then :
3436
3437else
3438  ac_c_werror_flag=$ac_save_c_werror_flag
3439	 CFLAGS="-g"
3440	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442
3443int
3444main ()
3445{
3446
3447  ;
3448  return 0;
3449}
3450_ACEOF
3451if ac_fn_c_try_compile "$LINENO"; then :
3452  ac_cv_prog_cc_g=yes
3453fi
3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455fi
3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457fi
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459   ac_c_werror_flag=$ac_save_c_werror_flag
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3462$as_echo "$ac_cv_prog_cc_g" >&6; }
3463if test "$ac_test_CFLAGS" = set; then
3464  CFLAGS=$ac_save_CFLAGS
3465elif test $ac_cv_prog_cc_g = yes; then
3466  if test "$GCC" = yes; then
3467    CFLAGS="-g -O2"
3468  else
3469    CFLAGS="-g"
3470  fi
3471else
3472  if test "$GCC" = yes; then
3473    CFLAGS="-O2"
3474  else
3475    CFLAGS=
3476  fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3479$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3480if ${ac_cv_prog_cc_c89+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_cv_prog_cc_c89=no
3484ac_save_CC=$CC
3485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487#include <stdarg.h>
3488#include <stdio.h>
3489struct stat;
3490/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3491struct buf { int x; };
3492FILE * (*rcsopen) (struct buf *, struct stat *, int);
3493static char *e (p, i)
3494     char **p;
3495     int i;
3496{
3497  return p[i];
3498}
3499static char *f (char * (*g) (char **, int), char **p, ...)
3500{
3501  char *s;
3502  va_list v;
3503  va_start (v,p);
3504  s = g (p, va_arg (v,int));
3505  va_end (v);
3506  return s;
3507}
3508
3509/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3510   function prototypes and stuff, but not '\xHH' hex character constants.
3511   These don't provoke an error unfortunately, instead are silently treated
3512   as 'x'.  The following induces an error, until -std is added to get
3513   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3514   array size at least.  It's necessary to write '\x00'==0 to get something
3515   that's true only with -std.  */
3516int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3517
3518/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3519   inside strings and character constants.  */
3520#define FOO(x) 'x'
3521int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3522
3523int test (int i, double x);
3524struct s1 {int (*f) (int a);};
3525struct s2 {int (*f) (double a);};
3526int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3527int argc;
3528char **argv;
3529int
3530main ()
3531{
3532return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3538	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3539do
3540  CC="$ac_save_CC $ac_arg"
3541  if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_prog_cc_c89=$ac_arg
3543fi
3544rm -f core conftest.err conftest.$ac_objext
3545  test "x$ac_cv_prog_cc_c89" != "xno" && break
3546done
3547rm -f conftest.$ac_ext
3548CC=$ac_save_CC
3549
3550fi
3551# AC_CACHE_VAL
3552case "x$ac_cv_prog_cc_c89" in
3553  x)
3554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3555$as_echo "none needed" >&6; } ;;
3556  xno)
3557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3558$as_echo "unsupported" >&6; } ;;
3559  *)
3560    CC="$CC $ac_cv_prog_cc_c89"
3561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3562$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3563esac
3564if test "x$ac_cv_prog_cc_c89" != xno; then :
3565
3566fi
3567
3568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
3574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3581$as_echo_n "checking how to run the C preprocessor... " >&6; }
3582# On Suns, sometimes $CPP names a directory.
3583if test -n "$CPP" && test -d "$CPP"; then
3584  CPP=
3585fi
3586if test -z "$CPP"; then
3587  if ${ac_cv_prog_CPP+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590      # Double quotes because CPP needs to be expanded
3591    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3592    do
3593      ac_preproc_ok=false
3594for ac_c_preproc_warn_flag in '' yes
3595do
3596  # Use a header file that comes with gcc, so configuring glibc
3597  # with a fresh cross-compiler works.
3598  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599  # <limits.h> exists even on freestanding compilers.
3600  # On the NeXT, cc -E runs the code through the compiler's parser,
3601  # not just through cpp. "Syntax error" is here to catch this case.
3602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604#ifdef __STDC__
3605# include <limits.h>
3606#else
3607# include <assert.h>
3608#endif
3609		     Syntax error
3610_ACEOF
3611if ac_fn_c_try_cpp "$LINENO"; then :
3612
3613else
3614  # Broken: fails on valid input.
3615continue
3616fi
3617rm -f conftest.err conftest.i conftest.$ac_ext
3618
3619  # OK, works on sane cases.  Now check whether nonexistent headers
3620  # can be detected and how.
3621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h.  */
3623#include <ac_nonexistent.h>
3624_ACEOF
3625if ac_fn_c_try_cpp "$LINENO"; then :
3626  # Broken: success on invalid input.
3627continue
3628else
3629  # Passes both tests.
3630ac_preproc_ok=:
3631break
3632fi
3633rm -f conftest.err conftest.i conftest.$ac_ext
3634
3635done
3636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637rm -f conftest.i conftest.err conftest.$ac_ext
3638if $ac_preproc_ok; then :
3639  break
3640fi
3641
3642    done
3643    ac_cv_prog_CPP=$CPP
3644
3645fi
3646  CPP=$ac_cv_prog_CPP
3647else
3648  ac_cv_prog_CPP=$CPP
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3651$as_echo "$CPP" >&6; }
3652ac_preproc_ok=false
3653for ac_c_preproc_warn_flag in '' yes
3654do
3655  # Use a header file that comes with gcc, so configuring glibc
3656  # with a fresh cross-compiler works.
3657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658  # <limits.h> exists even on freestanding compilers.
3659  # On the NeXT, cc -E runs the code through the compiler's parser,
3660  # not just through cpp. "Syntax error" is here to catch this case.
3661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663#ifdef __STDC__
3664# include <limits.h>
3665#else
3666# include <assert.h>
3667#endif
3668		     Syntax error
3669_ACEOF
3670if ac_fn_c_try_cpp "$LINENO"; then :
3671
3672else
3673  # Broken: fails on valid input.
3674continue
3675fi
3676rm -f conftest.err conftest.i conftest.$ac_ext
3677
3678  # OK, works on sane cases.  Now check whether nonexistent headers
3679  # can be detected and how.
3680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682#include <ac_nonexistent.h>
3683_ACEOF
3684if ac_fn_c_try_cpp "$LINENO"; then :
3685  # Broken: success on invalid input.
3686continue
3687else
3688  # Passes both tests.
3689ac_preproc_ok=:
3690break
3691fi
3692rm -f conftest.err conftest.i conftest.$ac_ext
3693
3694done
3695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3696rm -f conftest.i conftest.err conftest.$ac_ext
3697if $ac_preproc_ok; then :
3698
3699else
3700  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3703See \`config.log' for more details" "$LINENO" 5; }
3704fi
3705
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3714$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3715if ${ac_cv_path_GREP+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  if test -z "$GREP"; then
3719  ac_path_GREP_found=false
3720  # Loop through the user's path and test for each of PROGNAME-LIST
3721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3723do
3724  IFS=$as_save_IFS
3725  test -z "$as_dir" && as_dir=.
3726    for ac_prog in grep ggrep; do
3727    for ac_exec_ext in '' $ac_executable_extensions; do
3728      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3729      as_fn_executable_p "$ac_path_GREP" || continue
3730# Check for GNU ac_path_GREP and select it if it is found.
3731  # Check for GNU $ac_path_GREP
3732case `"$ac_path_GREP" --version 2>&1` in
3733*GNU*)
3734  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3735*)
3736  ac_count=0
3737  $as_echo_n 0123456789 >"conftest.in"
3738  while :
3739  do
3740    cat "conftest.in" "conftest.in" >"conftest.tmp"
3741    mv "conftest.tmp" "conftest.in"
3742    cp "conftest.in" "conftest.nl"
3743    $as_echo 'GREP' >> "conftest.nl"
3744    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3745    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3746    as_fn_arith $ac_count + 1 && ac_count=$as_val
3747    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3748      # Best one so far, save it but keep looking for a better one
3749      ac_cv_path_GREP="$ac_path_GREP"
3750      ac_path_GREP_max=$ac_count
3751    fi
3752    # 10*(2^10) chars as input seems more than enough
3753    test $ac_count -gt 10 && break
3754  done
3755  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756esac
3757
3758      $ac_path_GREP_found && break 3
3759    done
3760  done
3761  done
3762IFS=$as_save_IFS
3763  if test -z "$ac_cv_path_GREP"; then
3764    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3765  fi
3766else
3767  ac_cv_path_GREP=$GREP
3768fi
3769
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3772$as_echo "$ac_cv_path_GREP" >&6; }
3773 GREP="$ac_cv_path_GREP"
3774
3775
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3777$as_echo_n "checking for egrep... " >&6; }
3778if ${ac_cv_path_EGREP+:} false; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782   then ac_cv_path_EGREP="$GREP -E"
3783   else
3784     if test -z "$EGREP"; then
3785  ac_path_EGREP_found=false
3786  # Loop through the user's path and test for each of PROGNAME-LIST
3787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789do
3790  IFS=$as_save_IFS
3791  test -z "$as_dir" && as_dir=.
3792    for ac_prog in egrep; do
3793    for ac_exec_ext in '' $ac_executable_extensions; do
3794      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3795      as_fn_executable_p "$ac_path_EGREP" || continue
3796# Check for GNU ac_path_EGREP and select it if it is found.
3797  # Check for GNU $ac_path_EGREP
3798case `"$ac_path_EGREP" --version 2>&1` in
3799*GNU*)
3800  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801*)
3802  ac_count=0
3803  $as_echo_n 0123456789 >"conftest.in"
3804  while :
3805  do
3806    cat "conftest.in" "conftest.in" >"conftest.tmp"
3807    mv "conftest.tmp" "conftest.in"
3808    cp "conftest.in" "conftest.nl"
3809    $as_echo 'EGREP' >> "conftest.nl"
3810    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3811    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3812    as_fn_arith $ac_count + 1 && ac_count=$as_val
3813    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3814      # Best one so far, save it but keep looking for a better one
3815      ac_cv_path_EGREP="$ac_path_EGREP"
3816      ac_path_EGREP_max=$ac_count
3817    fi
3818    # 10*(2^10) chars as input seems more than enough
3819    test $ac_count -gt 10 && break
3820  done
3821  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822esac
3823
3824      $ac_path_EGREP_found && break 3
3825    done
3826  done
3827  done
3828IFS=$as_save_IFS
3829  if test -z "$ac_cv_path_EGREP"; then
3830    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3831  fi
3832else
3833  ac_cv_path_EGREP=$EGREP
3834fi
3835
3836   fi
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3839$as_echo "$ac_cv_path_EGREP" >&6; }
3840 EGREP="$ac_cv_path_EGREP"
3841
3842
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3844$as_echo_n "checking for ANSI C header files... " >&6; }
3845if ${ac_cv_header_stdc+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850#include <stdlib.h>
3851#include <stdarg.h>
3852#include <string.h>
3853#include <float.h>
3854
3855int
3856main ()
3857{
3858
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864  ac_cv_header_stdc=yes
3865else
3866  ac_cv_header_stdc=no
3867fi
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870if test $ac_cv_header_stdc = yes; then
3871  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874#include <string.h>
3875
3876_ACEOF
3877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878  $EGREP "memchr" >/dev/null 2>&1; then :
3879
3880else
3881  ac_cv_header_stdc=no
3882fi
3883rm -f conftest*
3884
3885fi
3886
3887if test $ac_cv_header_stdc = yes; then
3888  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <stdlib.h>
3892
3893_ACEOF
3894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895  $EGREP "free" >/dev/null 2>&1; then :
3896
3897else
3898  ac_cv_header_stdc=no
3899fi
3900rm -f conftest*
3901
3902fi
3903
3904if test $ac_cv_header_stdc = yes; then
3905  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3906  if test "$cross_compiling" = yes; then :
3907  :
3908else
3909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h.  */
3911#include <ctype.h>
3912#include <stdlib.h>
3913#if ((' ' & 0x0FF) == 0x020)
3914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3916#else
3917# define ISLOWER(c) \
3918		   (('a' <= (c) && (c) <= 'i') \
3919		     || ('j' <= (c) && (c) <= 'r') \
3920		     || ('s' <= (c) && (c) <= 'z'))
3921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922#endif
3923
3924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925int
3926main ()
3927{
3928  int i;
3929  for (i = 0; i < 256; i++)
3930    if (XOR (islower (i), ISLOWER (i))
3931	|| toupper (i) != TOUPPER (i))
3932      return 2;
3933  return 0;
3934}
3935_ACEOF
3936if ac_fn_c_try_run "$LINENO"; then :
3937
3938else
3939  ac_cv_header_stdc=no
3940fi
3941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3942  conftest.$ac_objext conftest.beam conftest.$ac_ext
3943fi
3944
3945fi
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3948$as_echo "$ac_cv_header_stdc" >&6; }
3949if test $ac_cv_header_stdc = yes; then
3950
3951$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3952
3953fi
3954
3955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3957		  inttypes.h stdint.h unistd.h
3958do :
3959  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3960ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3961"
3962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3963  cat >>confdefs.h <<_ACEOF
3964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3965_ACEOF
3966
3967fi
3968
3969done
3970
3971
3972
3973  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3974if test "x$ac_cv_header_minix_config_h" = xyes; then :
3975  MINIX=yes
3976else
3977  MINIX=
3978fi
3979
3980
3981  if test "$MINIX" = yes; then
3982
3983$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3984
3985
3986$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3987
3988
3989$as_echo "#define _MINIX 1" >>confdefs.h
3990
3991  fi
3992
3993
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3995$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3996if ${ac_cv_safe_to_define___extensions__+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h.  */
4001
4002#         define __EXTENSIONS__ 1
4003          $ac_includes_default
4004int
4005main ()
4006{
4007
4008  ;
4009  return 0;
4010}
4011_ACEOF
4012if ac_fn_c_try_compile "$LINENO"; then :
4013  ac_cv_safe_to_define___extensions__=yes
4014else
4015  ac_cv_safe_to_define___extensions__=no
4016fi
4017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4020$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4021  test $ac_cv_safe_to_define___extensions__ = yes &&
4022    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4023
4024  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4025
4026  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4027
4028  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4029
4030  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4031
4032
4033
4034#
4035# Enable large file support
4036#
4037# Check whether --enable-largefile was given.
4038if test "${enable_largefile+set}" = set; then :
4039  enableval=$enable_largefile;
4040fi
4041
4042if test "$enable_largefile" != no; then
4043
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4045$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4046if ${ac_cv_sys_largefile_CC+:} false; then :
4047  $as_echo_n "(cached) " >&6
4048else
4049  ac_cv_sys_largefile_CC=no
4050     if test "$GCC" != yes; then
4051       ac_save_CC=$CC
4052       while :; do
4053	 # IRIX 6.2 and later do not support large files by default,
4054	 # so use the C compiler's -n32 option if that helps.
4055	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057#include <sys/types.h>
4058 /* Check that off_t can represent 2**63 - 1 correctly.
4059    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4060    since some C++ compilers masquerading as C compilers
4061    incorrectly reject 9223372036854775807.  */
4062#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4063  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4064		       && LARGE_OFF_T % 2147483647 == 1)
4065		      ? 1 : -1];
4066int
4067main ()
4068{
4069
4070  ;
4071  return 0;
4072}
4073_ACEOF
4074	 if ac_fn_c_try_compile "$LINENO"; then :
4075  break
4076fi
4077rm -f core conftest.err conftest.$ac_objext
4078	 CC="$CC -n32"
4079	 if ac_fn_c_try_compile "$LINENO"; then :
4080  ac_cv_sys_largefile_CC=' -n32'; break
4081fi
4082rm -f core conftest.err conftest.$ac_objext
4083	 break
4084       done
4085       CC=$ac_save_CC
4086       rm -f conftest.$ac_ext
4087    fi
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4090$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4091  if test "$ac_cv_sys_largefile_CC" != no; then
4092    CC=$CC$ac_cv_sys_largefile_CC
4093  fi
4094
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4096$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4097if ${ac_cv_sys_file_offset_bits+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  while :; do
4101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103#include <sys/types.h>
4104 /* Check that off_t can represent 2**63 - 1 correctly.
4105    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4106    since some C++ compilers masquerading as C compilers
4107    incorrectly reject 9223372036854775807.  */
4108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4109  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4110		       && LARGE_OFF_T % 2147483647 == 1)
4111		      ? 1 : -1];
4112int
4113main ()
4114{
4115
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120if ac_fn_c_try_compile "$LINENO"; then :
4121  ac_cv_sys_file_offset_bits=no; break
4122fi
4123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#define _FILE_OFFSET_BITS 64
4127#include <sys/types.h>
4128 /* Check that off_t can represent 2**63 - 1 correctly.
4129    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4130    since some C++ compilers masquerading as C compilers
4131    incorrectly reject 9223372036854775807.  */
4132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4133  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4134		       && LARGE_OFF_T % 2147483647 == 1)
4135		      ? 1 : -1];
4136int
4137main ()
4138{
4139
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144if ac_fn_c_try_compile "$LINENO"; then :
4145  ac_cv_sys_file_offset_bits=64; break
4146fi
4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148  ac_cv_sys_file_offset_bits=unknown
4149  break
4150done
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4153$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4154case $ac_cv_sys_file_offset_bits in #(
4155  no | unknown) ;;
4156  *)
4157cat >>confdefs.h <<_ACEOF
4158#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4159_ACEOF
4160;;
4161esac
4162rm -rf conftest*
4163  if test $ac_cv_sys_file_offset_bits = unknown; then
4164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4165$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4166if ${ac_cv_sys_large_files+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  while :; do
4170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h.  */
4172#include <sys/types.h>
4173 /* Check that off_t can represent 2**63 - 1 correctly.
4174    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4175    since some C++ compilers masquerading as C compilers
4176    incorrectly reject 9223372036854775807.  */
4177#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4178  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4179		       && LARGE_OFF_T % 2147483647 == 1)
4180		      ? 1 : -1];
4181int
4182main ()
4183{
4184
4185  ;
4186  return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190  ac_cv_sys_large_files=no; break
4191fi
4192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195#define _LARGE_FILES 1
4196#include <sys/types.h>
4197 /* Check that off_t can represent 2**63 - 1 correctly.
4198    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199    since some C++ compilers masquerading as C compilers
4200    incorrectly reject 9223372036854775807.  */
4201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203		       && LARGE_OFF_T % 2147483647 == 1)
4204		      ? 1 : -1];
4205int
4206main ()
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213if ac_fn_c_try_compile "$LINENO"; then :
4214  ac_cv_sys_large_files=1; break
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217  ac_cv_sys_large_files=unknown
4218  break
4219done
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4222$as_echo "$ac_cv_sys_large_files" >&6; }
4223case $ac_cv_sys_large_files in #(
4224  no | unknown) ;;
4225  *)
4226cat >>confdefs.h <<_ACEOF
4227#define _LARGE_FILES $ac_cv_sys_large_files
4228_ACEOF
4229;;
4230esac
4231rm -rf conftest*
4232  fi
4233
4234
4235fi
4236
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4238$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
4239if ${ac_cv_sys_largefile_source+:} false; then :
4240  $as_echo_n "(cached) " >&6
4241else
4242  while :; do
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245#include <sys/types.h> /* for off_t */
4246     #include <stdio.h>
4247int
4248main ()
4249{
4250int (*fp) (FILE *, off_t, int) = fseeko;
4251     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256if ac_fn_c_try_link "$LINENO"; then :
4257  ac_cv_sys_largefile_source=no; break
4258fi
4259rm -f core conftest.err conftest.$ac_objext \
4260    conftest$ac_exeext conftest.$ac_ext
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#define _LARGEFILE_SOURCE 1
4264#include <sys/types.h> /* for off_t */
4265     #include <stdio.h>
4266int
4267main ()
4268{
4269int (*fp) (FILE *, off_t, int) = fseeko;
4270     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
4271  ;
4272  return 0;
4273}
4274_ACEOF
4275if ac_fn_c_try_link "$LINENO"; then :
4276  ac_cv_sys_largefile_source=1; break
4277fi
4278rm -f core conftest.err conftest.$ac_objext \
4279    conftest$ac_exeext conftest.$ac_ext
4280  ac_cv_sys_largefile_source=unknown
4281  break
4282done
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
4285$as_echo "$ac_cv_sys_largefile_source" >&6; }
4286case $ac_cv_sys_largefile_source in #(
4287  no | unknown) ;;
4288  *)
4289cat >>confdefs.h <<_ACEOF
4290#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4291_ACEOF
4292;;
4293esac
4294rm -rf conftest*
4295
4296# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4297# in glibc 2.1.3, but that breaks too many other things.
4298# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4299if test $ac_cv_sys_largefile_source != unknown; then
4300
4301$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
4302
4303fi
4304
4305
4306LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
4307LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
4308LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
4309
4310
4311
4312
4313
4314# Enable RFC 3542 APIs on macOS
4315
4316$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
4317
4318
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4320$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4321set x ${MAKE-make}
4322ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4323if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  cat >conftest.make <<\_ACEOF
4327SHELL = /bin/sh
4328all:
4329	@echo '@@@%%%=$(MAKE)=@@@%%%'
4330_ACEOF
4331# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4332case `${MAKE-make} -f conftest.make 2>/dev/null` in
4333  *@@@%%%=?*=@@@%%%*)
4334    eval ac_cv_prog_make_${ac_make}_set=yes;;
4335  *)
4336    eval ac_cv_prog_make_${ac_make}_set=no;;
4337esac
4338rm -f conftest.make
4339fi
4340if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342$as_echo "yes" >&6; }
4343  SET_MAKE=
4344else
4345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346$as_echo "no" >&6; }
4347  SET_MAKE="MAKE=${MAKE-make}"
4348fi
4349
4350
4351case `pwd` in
4352  *\ * | *\	*)
4353    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4354$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4355esac
4356
4357
4358
4359macro_version='2.4.6'
4360macro_revision='2.4.6'
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374ltmain=$ac_aux_dir/ltmain.sh
4375
4376# Backslashify metacharacters that are still active within
4377# double-quoted strings.
4378sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4379
4380# Same as above, but do not quote variable references.
4381double_quote_subst='s/\(["`\\]\)/\\\1/g'
4382
4383# Sed substitution to delay expansion of an escaped shell variable in a
4384# double_quote_subst'ed string.
4385delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4386
4387# Sed substitution to delay expansion of an escaped single quote.
4388delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4389
4390# Sed substitution to avoid accidental globbing in evaled expressions
4391no_glob_subst='s/\*/\\\*/g'
4392
4393ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4394ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4395ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4396
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4398$as_echo_n "checking how to print strings... " >&6; }
4399# Test print first, because it will be a builtin if present.
4400if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4401   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4402  ECHO='print -r --'
4403elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4404  ECHO='printf %s\n'
4405else
4406  # Use this function as a fallback that always works.
4407  func_fallback_echo ()
4408  {
4409    eval 'cat <<_LTECHO_EOF
4410$1
4411_LTECHO_EOF'
4412  }
4413  ECHO='func_fallback_echo'
4414fi
4415
4416# func_echo_all arg...
4417# Invoke $ECHO with all args, space-separated.
4418func_echo_all ()
4419{
4420    $ECHO ""
4421}
4422
4423case $ECHO in
4424  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4425$as_echo "printf" >&6; } ;;
4426  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4427$as_echo "print -r" >&6; } ;;
4428  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4429$as_echo "cat" >&6; } ;;
4430esac
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4446$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4447if ${ac_cv_path_SED+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4451     for ac_i in 1 2 3 4 5 6 7; do
4452       ac_script="$ac_script$as_nl$ac_script"
4453     done
4454     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4455     { ac_script=; unset ac_script;}
4456     if test -z "$SED"; then
4457  ac_path_SED_found=false
4458  # Loop through the user's path and test for each of PROGNAME-LIST
4459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462  IFS=$as_save_IFS
4463  test -z "$as_dir" && as_dir=.
4464    for ac_prog in sed gsed; do
4465    for ac_exec_ext in '' $ac_executable_extensions; do
4466      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4467      as_fn_executable_p "$ac_path_SED" || continue
4468# Check for GNU ac_path_SED and select it if it is found.
4469  # Check for GNU $ac_path_SED
4470case `"$ac_path_SED" --version 2>&1` in
4471*GNU*)
4472  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4473*)
4474  ac_count=0
4475  $as_echo_n 0123456789 >"conftest.in"
4476  while :
4477  do
4478    cat "conftest.in" "conftest.in" >"conftest.tmp"
4479    mv "conftest.tmp" "conftest.in"
4480    cp "conftest.in" "conftest.nl"
4481    $as_echo '' >> "conftest.nl"
4482    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484    as_fn_arith $ac_count + 1 && ac_count=$as_val
4485    if test $ac_count -gt ${ac_path_SED_max-0}; then
4486      # Best one so far, save it but keep looking for a better one
4487      ac_cv_path_SED="$ac_path_SED"
4488      ac_path_SED_max=$ac_count
4489    fi
4490    # 10*(2^10) chars as input seems more than enough
4491    test $ac_count -gt 10 && break
4492  done
4493  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494esac
4495
4496      $ac_path_SED_found && break 3
4497    done
4498  done
4499  done
4500IFS=$as_save_IFS
4501  if test -z "$ac_cv_path_SED"; then
4502    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4503  fi
4504else
4505  ac_cv_path_SED=$SED
4506fi
4507
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4510$as_echo "$ac_cv_path_SED" >&6; }
4511 SED="$ac_cv_path_SED"
4512  rm -f conftest.sed
4513
4514test -z "$SED" && SED=sed
4515Xsed="$SED -e 1s/^X//"
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4528$as_echo_n "checking for fgrep... " >&6; }
4529if ${ac_cv_path_FGREP+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4533   then ac_cv_path_FGREP="$GREP -F"
4534   else
4535     if test -z "$FGREP"; then
4536  ac_path_FGREP_found=false
4537  # Loop through the user's path and test for each of PROGNAME-LIST
4538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543    for ac_prog in fgrep; do
4544    for ac_exec_ext in '' $ac_executable_extensions; do
4545      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4546      as_fn_executable_p "$ac_path_FGREP" || continue
4547# Check for GNU ac_path_FGREP and select it if it is found.
4548  # Check for GNU $ac_path_FGREP
4549case `"$ac_path_FGREP" --version 2>&1` in
4550*GNU*)
4551  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4552*)
4553  ac_count=0
4554  $as_echo_n 0123456789 >"conftest.in"
4555  while :
4556  do
4557    cat "conftest.in" "conftest.in" >"conftest.tmp"
4558    mv "conftest.tmp" "conftest.in"
4559    cp "conftest.in" "conftest.nl"
4560    $as_echo 'FGREP' >> "conftest.nl"
4561    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563    as_fn_arith $ac_count + 1 && ac_count=$as_val
4564    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4565      # Best one so far, save it but keep looking for a better one
4566      ac_cv_path_FGREP="$ac_path_FGREP"
4567      ac_path_FGREP_max=$ac_count
4568    fi
4569    # 10*(2^10) chars as input seems more than enough
4570    test $ac_count -gt 10 && break
4571  done
4572  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4573esac
4574
4575      $ac_path_FGREP_found && break 3
4576    done
4577  done
4578  done
4579IFS=$as_save_IFS
4580  if test -z "$ac_cv_path_FGREP"; then
4581    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4582  fi
4583else
4584  ac_cv_path_FGREP=$FGREP
4585fi
4586
4587   fi
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4590$as_echo "$ac_cv_path_FGREP" >&6; }
4591 FGREP="$ac_cv_path_FGREP"
4592
4593
4594test -z "$GREP" && GREP=grep
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614# Check whether --with-gnu-ld was given.
4615if test "${with_gnu_ld+set}" = set; then :
4616  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4617else
4618  with_gnu_ld=no
4619fi
4620
4621ac_prog=ld
4622if test yes = "$GCC"; then
4623  # Check if gcc -print-prog-name=ld gives a path.
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4625$as_echo_n "checking for ld used by $CC... " >&6; }
4626  case $host in
4627  *-*-mingw*)
4628    # gcc leaves a trailing carriage return, which upsets mingw
4629    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4630  *)
4631    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4632  esac
4633  case $ac_prog in
4634    # Accept absolute paths.
4635    [\\/]* | ?:[\\/]*)
4636      re_direlt='/[^/][^/]*/\.\./'
4637      # Canonicalize the pathname of ld
4638      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4639      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4640	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4641      done
4642      test -z "$LD" && LD=$ac_prog
4643      ;;
4644  "")
4645    # If it fails, then pretend we aren't using GCC.
4646    ac_prog=ld
4647    ;;
4648  *)
4649    # If it is relative, then search for the first ld in PATH.
4650    with_gnu_ld=unknown
4651    ;;
4652  esac
4653elif test yes = "$with_gnu_ld"; then
4654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4655$as_echo_n "checking for GNU ld... " >&6; }
4656else
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4658$as_echo_n "checking for non-GNU ld... " >&6; }
4659fi
4660if ${lt_cv_path_LD+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  if test -z "$LD"; then
4664  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4665  for ac_dir in $PATH; do
4666    IFS=$lt_save_ifs
4667    test -z "$ac_dir" && ac_dir=.
4668    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4669      lt_cv_path_LD=$ac_dir/$ac_prog
4670      # Check to see if the program is GNU ld.  I'd rather use --version,
4671      # but apparently some variants of GNU ld only accept -v.
4672      # Break only if it was the GNU/non-GNU ld that we prefer.
4673      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4674      *GNU* | *'with BFD'*)
4675	test no != "$with_gnu_ld" && break
4676	;;
4677      *)
4678	test yes != "$with_gnu_ld" && break
4679	;;
4680      esac
4681    fi
4682  done
4683  IFS=$lt_save_ifs
4684else
4685  lt_cv_path_LD=$LD # Let the user override the test with a path.
4686fi
4687fi
4688
4689LD=$lt_cv_path_LD
4690if test -n "$LD"; then
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4692$as_echo "$LD" >&6; }
4693else
4694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695$as_echo "no" >&6; }
4696fi
4697test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4699$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4700if ${lt_cv_prog_gnu_ld+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4704case `$LD -v 2>&1 </dev/null` in
4705*GNU* | *'with BFD'*)
4706  lt_cv_prog_gnu_ld=yes
4707  ;;
4708*)
4709  lt_cv_prog_gnu_ld=no
4710  ;;
4711esac
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4714$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4715with_gnu_ld=$lt_cv_prog_gnu_ld
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4726$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4727if ${lt_cv_path_NM+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  if test -n "$NM"; then
4731  # Let the user override the test.
4732  lt_cv_path_NM=$NM
4733else
4734  lt_nm_to_check=${ac_tool_prefix}nm
4735  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4736    lt_nm_to_check="$lt_nm_to_check nm"
4737  fi
4738  for lt_tmp_nm in $lt_nm_to_check; do
4739    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4740    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4741      IFS=$lt_save_ifs
4742      test -z "$ac_dir" && ac_dir=.
4743      tmp_nm=$ac_dir/$lt_tmp_nm
4744      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4745	# Check to see if the nm accepts a BSD-compat flag.
4746	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4747	#   nm: unknown option "B" ignored
4748	# Tru64's nm complains that /dev/null is an invalid object file
4749	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4750	case $build_os in
4751	mingw*) lt_bad_file=conftest.nm/nofile ;;
4752	*) lt_bad_file=/dev/null ;;
4753	esac
4754	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4755	*$lt_bad_file* | *'Invalid file or object type'*)
4756	  lt_cv_path_NM="$tmp_nm -B"
4757	  break 2
4758	  ;;
4759	*)
4760	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4761	  */dev/null*)
4762	    lt_cv_path_NM="$tmp_nm -p"
4763	    break 2
4764	    ;;
4765	  *)
4766	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4767	    continue # so that we can try to find one that supports BSD flags
4768	    ;;
4769	  esac
4770	  ;;
4771	esac
4772      fi
4773    done
4774    IFS=$lt_save_ifs
4775  done
4776  : ${lt_cv_path_NM=no}
4777fi
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4780$as_echo "$lt_cv_path_NM" >&6; }
4781if test no != "$lt_cv_path_NM"; then
4782  NM=$lt_cv_path_NM
4783else
4784  # Didn't find any BSD compatible name lister, look for dumpbin.
4785  if test -n "$DUMPBIN"; then :
4786    # Let the user override the test.
4787  else
4788    if test -n "$ac_tool_prefix"; then
4789  for ac_prog in dumpbin "link -dump"
4790  do
4791    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if ${ac_cv_prog_DUMPBIN+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  if test -n "$DUMPBIN"; then
4799  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812done
4813  done
4814IFS=$as_save_IFS
4815
4816fi
4817fi
4818DUMPBIN=$ac_cv_prog_DUMPBIN
4819if test -n "$DUMPBIN"; then
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4821$as_echo "$DUMPBIN" >&6; }
4822else
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827
4828    test -n "$DUMPBIN" && break
4829  done
4830fi
4831if test -z "$DUMPBIN"; then
4832  ac_ct_DUMPBIN=$DUMPBIN
4833  for ac_prog in dumpbin "link -dump"
4834do
4835  # Extract the first word of "$ac_prog", so it can be a program name with args.
4836set dummy $ac_prog; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  if test -n "$ac_ct_DUMPBIN"; then
4843  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4852    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857  done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4863if test -n "$ac_ct_DUMPBIN"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4865$as_echo "$ac_ct_DUMPBIN" >&6; }
4866else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870
4871
4872  test -n "$ac_ct_DUMPBIN" && break
4873done
4874
4875  if test "x$ac_ct_DUMPBIN" = x; then
4876    DUMPBIN=":"
4877  else
4878    case $cross_compiling:$ac_tool_warned in
4879yes:)
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882ac_tool_warned=yes ;;
4883esac
4884    DUMPBIN=$ac_ct_DUMPBIN
4885  fi
4886fi
4887
4888    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4889    *COFF*)
4890      DUMPBIN="$DUMPBIN -symbols -headers"
4891      ;;
4892    *)
4893      DUMPBIN=:
4894      ;;
4895    esac
4896  fi
4897
4898  if test : != "$DUMPBIN"; then
4899    NM=$DUMPBIN
4900  fi
4901fi
4902test -z "$NM" && NM=nm
4903
4904
4905
4906
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4910$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4911if ${lt_cv_nm_interface+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  lt_cv_nm_interface="BSD nm"
4915  echo "int some_variable = 0;" > conftest.$ac_ext
4916  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4917  (eval "$ac_compile" 2>conftest.err)
4918  cat conftest.err >&5
4919  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4920  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4921  cat conftest.err >&5
4922  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4923  cat conftest.out >&5
4924  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4925    lt_cv_nm_interface="MS dumpbin"
4926  fi
4927  rm -f conftest*
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4930$as_echo "$lt_cv_nm_interface" >&6; }
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4933$as_echo_n "checking whether ln -s works... " >&6; }
4934LN_S=$as_ln_s
4935if test "$LN_S" = "ln -s"; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4937$as_echo "yes" >&6; }
4938else
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4940$as_echo "no, using $LN_S" >&6; }
4941fi
4942
4943# find the maximum length of command line arguments
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4945$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4946if ${lt_cv_sys_max_cmd_len+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949    i=0
4950  teststring=ABCD
4951
4952  case $build_os in
4953  msdosdjgpp*)
4954    # On DJGPP, this test can blow up pretty badly due to problems in libc
4955    # (any single argument exceeding 2000 bytes causes a buffer overrun
4956    # during glob expansion).  Even if it were fixed, the result of this
4957    # check would be larger than it should be.
4958    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4959    ;;
4960
4961  gnu*)
4962    # Under GNU Hurd, this test is not required because there is
4963    # no limit to the length of command line arguments.
4964    # Libtool will interpret -1 as no limit whatsoever
4965    lt_cv_sys_max_cmd_len=-1;
4966    ;;
4967
4968  cygwin* | mingw* | cegcc*)
4969    # On Win9x/ME, this test blows up -- it succeeds, but takes
4970    # about 5 minutes as the teststring grows exponentially.
4971    # Worse, since 9x/ME are not pre-emptively multitasking,
4972    # you end up with a "frozen" computer, even though with patience
4973    # the test eventually succeeds (with a max line length of 256k).
4974    # Instead, let's just punt: use the minimum linelength reported by
4975    # all of the supported platforms: 8192 (on NT/2K/XP).
4976    lt_cv_sys_max_cmd_len=8192;
4977    ;;
4978
4979  mint*)
4980    # On MiNT this can take a long time and run out of memory.
4981    lt_cv_sys_max_cmd_len=8192;
4982    ;;
4983
4984  amigaos*)
4985    # On AmigaOS with pdksh, this test takes hours, literally.
4986    # So we just punt and use a minimum line length of 8192.
4987    lt_cv_sys_max_cmd_len=8192;
4988    ;;
4989
4990  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4991    # This has been around since 386BSD, at least.  Likely further.
4992    if test -x /sbin/sysctl; then
4993      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4994    elif test -x /usr/sbin/sysctl; then
4995      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4996    else
4997      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4998    fi
4999    # And add a safety zone
5000    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5001    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5002    ;;
5003
5004  interix*)
5005    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5006    lt_cv_sys_max_cmd_len=196608
5007    ;;
5008
5009  os2*)
5010    # The test takes a long time on OS/2.
5011    lt_cv_sys_max_cmd_len=8192
5012    ;;
5013
5014  osf*)
5015    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5016    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5017    # nice to cause kernel panics so lets avoid the loop below.
5018    # First set a reasonable default.
5019    lt_cv_sys_max_cmd_len=16384
5020    #
5021    if test -x /sbin/sysconfig; then
5022      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5023        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5024      esac
5025    fi
5026    ;;
5027  sco3.2v5*)
5028    lt_cv_sys_max_cmd_len=102400
5029    ;;
5030  sysv5* | sco5v6* | sysv4.2uw2*)
5031    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5032    if test -n "$kargmax"; then
5033      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5034    else
5035      lt_cv_sys_max_cmd_len=32768
5036    fi
5037    ;;
5038  *)
5039    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5040    if test -n "$lt_cv_sys_max_cmd_len" && \
5041       test undefined != "$lt_cv_sys_max_cmd_len"; then
5042      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5043      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5044    else
5045      # Make teststring a little bigger before we do anything with it.
5046      # a 1K string should be a reasonable start.
5047      for i in 1 2 3 4 5 6 7 8; do
5048        teststring=$teststring$teststring
5049      done
5050      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5051      # If test is not a shell built-in, we'll probably end up computing a
5052      # maximum length that is only half of the actual maximum length, but
5053      # we can't tell.
5054      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5055	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5056	      test 17 != "$i" # 1/2 MB should be enough
5057      do
5058        i=`expr $i + 1`
5059        teststring=$teststring$teststring
5060      done
5061      # Only check the string length outside the loop.
5062      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5063      teststring=
5064      # Add a significant safety factor because C++ compilers can tack on
5065      # massive amounts of additional arguments before passing them to the
5066      # linker.  It appears as though 1/2 is a usable value.
5067      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5068    fi
5069    ;;
5070  esac
5071
5072fi
5073
5074if test -n "$lt_cv_sys_max_cmd_len"; then
5075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5076$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5077else
5078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5079$as_echo "none" >&6; }
5080fi
5081max_cmd_len=$lt_cv_sys_max_cmd_len
5082
5083
5084
5085
5086
5087
5088: ${CP="cp -f"}
5089: ${MV="mv -f"}
5090: ${RM="rm -f"}
5091
5092if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5093  lt_unset=unset
5094else
5095  lt_unset=false
5096fi
5097
5098
5099
5100
5101
5102# test EBCDIC or ASCII
5103case `echo X|tr X '\101'` in
5104 A) # ASCII based system
5105    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5106  lt_SP2NL='tr \040 \012'
5107  lt_NL2SP='tr \015\012 \040\040'
5108  ;;
5109 *) # EBCDIC based system
5110  lt_SP2NL='tr \100 \n'
5111  lt_NL2SP='tr \r\n \100\100'
5112  ;;
5113esac
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5124$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5125if ${lt_cv_to_host_file_cmd+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  case $host in
5129  *-*-mingw* )
5130    case $build in
5131      *-*-mingw* ) # actually msys
5132        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5133        ;;
5134      *-*-cygwin* )
5135        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5136        ;;
5137      * ) # otherwise, assume *nix
5138        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5139        ;;
5140    esac
5141    ;;
5142  *-*-cygwin* )
5143    case $build in
5144      *-*-mingw* ) # actually msys
5145        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5146        ;;
5147      *-*-cygwin* )
5148        lt_cv_to_host_file_cmd=func_convert_file_noop
5149        ;;
5150      * ) # otherwise, assume *nix
5151        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5152        ;;
5153    esac
5154    ;;
5155  * ) # unhandled hosts (and "normal" native builds)
5156    lt_cv_to_host_file_cmd=func_convert_file_noop
5157    ;;
5158esac
5159
5160fi
5161
5162to_host_file_cmd=$lt_cv_to_host_file_cmd
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5164$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5165
5166
5167
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5171$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5172if ${lt_cv_to_tool_file_cmd+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  #assume ordinary cross tools, or native build.
5176lt_cv_to_tool_file_cmd=func_convert_file_noop
5177case $host in
5178  *-*-mingw* )
5179    case $build in
5180      *-*-mingw* ) # actually msys
5181        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5182        ;;
5183    esac
5184    ;;
5185esac
5186
5187fi
5188
5189to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5191$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5198$as_echo_n "checking for $LD option to reload object files... " >&6; }
5199if ${lt_cv_ld_reload_flag+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  lt_cv_ld_reload_flag='-r'
5203fi
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5205$as_echo "$lt_cv_ld_reload_flag" >&6; }
5206reload_flag=$lt_cv_ld_reload_flag
5207case $reload_flag in
5208"" | " "*) ;;
5209*) reload_flag=" $reload_flag" ;;
5210esac
5211reload_cmds='$LD$reload_flag -o $output$reload_objs'
5212case $host_os in
5213  cygwin* | mingw* | pw32* | cegcc*)
5214    if test yes != "$GCC"; then
5215      reload_cmds=false
5216    fi
5217    ;;
5218  darwin*)
5219    if test yes = "$GCC"; then
5220      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5221    else
5222      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5223    fi
5224    ;;
5225esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235if test -n "$ac_tool_prefix"; then
5236  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5237set dummy ${ac_tool_prefix}objdump; ac_word=$2
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
5240if ${ac_cv_prog_OBJDUMP+:} false; then :
5241  $as_echo_n "(cached) " >&6
5242else
5243  if test -n "$OBJDUMP"; then
5244  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5245else
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249  IFS=$as_save_IFS
5250  test -z "$as_dir" && as_dir=.
5251    for ac_exec_ext in '' $ac_executable_extensions; do
5252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255    break 2
5256  fi
5257done
5258  done
5259IFS=$as_save_IFS
5260
5261fi
5262fi
5263OBJDUMP=$ac_cv_prog_OBJDUMP
5264if test -n "$OBJDUMP"; then
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5266$as_echo "$OBJDUMP" >&6; }
5267else
5268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272
5273fi
5274if test -z "$ac_cv_prog_OBJDUMP"; then
5275  ac_ct_OBJDUMP=$OBJDUMP
5276  # Extract the first word of "objdump", so it can be a program name with args.
5277set dummy objdump; ac_word=$2
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
5280if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  if test -n "$ac_ct_OBJDUMP"; then
5284  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5285else
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289  IFS=$as_save_IFS
5290  test -z "$as_dir" && as_dir=.
5291    for ac_exec_ext in '' $ac_executable_extensions; do
5292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295    break 2
5296  fi
5297done
5298  done
5299IFS=$as_save_IFS
5300
5301fi
5302fi
5303ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5304if test -n "$ac_ct_OBJDUMP"; then
5305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5306$as_echo "$ac_ct_OBJDUMP" >&6; }
5307else
5308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
5310fi
5311
5312  if test "x$ac_ct_OBJDUMP" = x; then
5313    OBJDUMP="false"
5314  else
5315    case $cross_compiling:$ac_tool_warned in
5316yes:)
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321    OBJDUMP=$ac_ct_OBJDUMP
5322  fi
5323else
5324  OBJDUMP="$ac_cv_prog_OBJDUMP"
5325fi
5326
5327test -z "$OBJDUMP" && OBJDUMP=objdump
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5338$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5339if ${lt_cv_deplibs_check_method+:} false; then :
5340  $as_echo_n "(cached) " >&6
5341else
5342  lt_cv_file_magic_cmd='$MAGIC_CMD'
5343lt_cv_file_magic_test_file=
5344lt_cv_deplibs_check_method='unknown'
5345# Need to set the preceding variable on all platforms that support
5346# interlibrary dependencies.
5347# 'none' -- dependencies not supported.
5348# 'unknown' -- same as none, but documents that we really don't know.
5349# 'pass_all' -- all dependencies passed with no checks.
5350# 'test_compile' -- check by making test program.
5351# 'file_magic [[regex]]' -- check by looking for files in library path
5352# that responds to the $file_magic_cmd with a given extended regex.
5353# If you have 'file' or equivalent on your system and you're not sure
5354# whether 'pass_all' will *always* work, you probably want this one.
5355
5356case $host_os in
5357aix[4-9]*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361beos*)
5362  lt_cv_deplibs_check_method=pass_all
5363  ;;
5364
5365bsdi[45]*)
5366  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5367  lt_cv_file_magic_cmd='/usr/bin/file -L'
5368  lt_cv_file_magic_test_file=/shlib/libc.so
5369  ;;
5370
5371cygwin*)
5372  # func_win32_libid is a shell function defined in ltmain.sh
5373  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5374  lt_cv_file_magic_cmd='func_win32_libid'
5375  ;;
5376
5377mingw* | pw32*)
5378  # Base MSYS/MinGW do not provide the 'file' command needed by
5379  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5380  # unless we find 'file', for example because we are cross-compiling.
5381  if ( file / ) >/dev/null 2>&1; then
5382    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5383    lt_cv_file_magic_cmd='func_win32_libid'
5384  else
5385    # Keep this pattern in sync with the one in func_win32_libid.
5386    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5387    lt_cv_file_magic_cmd='$OBJDUMP -f'
5388  fi
5389  ;;
5390
5391cegcc*)
5392  # use the weaker test based on 'objdump'. See mingw*.
5393  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5394  lt_cv_file_magic_cmd='$OBJDUMP -f'
5395  ;;
5396
5397darwin* | rhapsody*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401freebsd* | dragonfly*)
5402  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5403    case $host_cpu in
5404    i*86 )
5405      # Not sure whether the presence of OpenBSD here was a mistake.
5406      # Let's accept both of them until this is cleared up.
5407      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5408      lt_cv_file_magic_cmd=/usr/bin/file
5409      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5410      ;;
5411    esac
5412  else
5413    lt_cv_deplibs_check_method=pass_all
5414  fi
5415  ;;
5416
5417haiku*)
5418  lt_cv_deplibs_check_method=pass_all
5419  ;;
5420
5421hpux10.20* | hpux11*)
5422  lt_cv_file_magic_cmd=/usr/bin/file
5423  case $host_cpu in
5424  ia64*)
5425    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5426    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5427    ;;
5428  hppa*64*)
5429    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]'
5430    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5431    ;;
5432  *)
5433    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5434    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5435    ;;
5436  esac
5437  ;;
5438
5439interix[3-9]*)
5440  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5441  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5442  ;;
5443
5444irix5* | irix6* | nonstopux*)
5445  case $LD in
5446  *-32|*"-32 ") libmagic=32-bit;;
5447  *-n32|*"-n32 ") libmagic=N32;;
5448  *-64|*"-64 ") libmagic=64-bit;;
5449  *) libmagic=never-match;;
5450  esac
5451  lt_cv_deplibs_check_method=pass_all
5452  ;;
5453
5454# This must be glibc/ELF.
5455linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5456  lt_cv_deplibs_check_method=pass_all
5457  ;;
5458
5459netbsd*)
5460  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5461    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5462  else
5463    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5464  fi
5465  ;;
5466
5467newos6*)
5468  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5469  lt_cv_file_magic_cmd=/usr/bin/file
5470  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5471  ;;
5472
5473*nto* | *qnx*)
5474  lt_cv_deplibs_check_method=pass_all
5475  ;;
5476
5477openbsd* | bitrig*)
5478  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5479    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5480  else
5481    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5482  fi
5483  ;;
5484
5485osf3* | osf4* | osf5*)
5486  lt_cv_deplibs_check_method=pass_all
5487  ;;
5488
5489rdos*)
5490  lt_cv_deplibs_check_method=pass_all
5491  ;;
5492
5493solaris*)
5494  lt_cv_deplibs_check_method=pass_all
5495  ;;
5496
5497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5498  lt_cv_deplibs_check_method=pass_all
5499  ;;
5500
5501sysv4 | sysv4.3*)
5502  case $host_vendor in
5503  motorola)
5504    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]'
5505    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5506    ;;
5507  ncr)
5508    lt_cv_deplibs_check_method=pass_all
5509    ;;
5510  sequent)
5511    lt_cv_file_magic_cmd='/bin/file'
5512    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5513    ;;
5514  sni)
5515    lt_cv_file_magic_cmd='/bin/file'
5516    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5517    lt_cv_file_magic_test_file=/lib/libc.so
5518    ;;
5519  siemens)
5520    lt_cv_deplibs_check_method=pass_all
5521    ;;
5522  pc)
5523    lt_cv_deplibs_check_method=pass_all
5524    ;;
5525  esac
5526  ;;
5527
5528tpf*)
5529  lt_cv_deplibs_check_method=pass_all
5530  ;;
5531os2*)
5532  lt_cv_deplibs_check_method=pass_all
5533  ;;
5534esac
5535
5536fi
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5538$as_echo "$lt_cv_deplibs_check_method" >&6; }
5539
5540file_magic_glob=
5541want_nocaseglob=no
5542if test "$build" = "$host"; then
5543  case $host_os in
5544  mingw* | pw32*)
5545    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5546      want_nocaseglob=yes
5547    else
5548      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5549    fi
5550    ;;
5551  esac
5552fi
5553
5554file_magic_cmd=$lt_cv_file_magic_cmd
5555deplibs_check_method=$lt_cv_deplibs_check_method
5556test -z "$deplibs_check_method" && deplibs_check_method=unknown
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579if test -n "$ac_tool_prefix"; then
5580  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if ${ac_cv_prog_DLLTOOL+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  if test -n "$DLLTOOL"; then
5588  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593  IFS=$as_save_IFS
5594  test -z "$as_dir" && as_dir=.
5595    for ac_exec_ext in '' $ac_executable_extensions; do
5596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599    break 2
5600  fi
5601done
5602  done
5603IFS=$as_save_IFS
5604
5605fi
5606fi
5607DLLTOOL=$ac_cv_prog_DLLTOOL
5608if test -n "$DLLTOOL"; then
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5610$as_echo "$DLLTOOL" >&6; }
5611else
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
5614fi
5615
5616
5617fi
5618if test -z "$ac_cv_prog_DLLTOOL"; then
5619  ac_ct_DLLTOOL=$DLLTOOL
5620  # Extract the first word of "dlltool", so it can be a program name with args.
5621set dummy dlltool; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  if test -n "$ac_ct_DLLTOOL"; then
5628  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633  IFS=$as_save_IFS
5634  test -z "$as_dir" && as_dir=.
5635    for ac_exec_ext in '' $ac_executable_extensions; do
5636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639    break 2
5640  fi
5641done
5642  done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5648if test -n "$ac_ct_DLLTOOL"; then
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5650$as_echo "$ac_ct_DLLTOOL" >&6; }
5651else
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656  if test "x$ac_ct_DLLTOOL" = x; then
5657    DLLTOOL="false"
5658  else
5659    case $cross_compiling:$ac_tool_warned in
5660yes:)
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5663ac_tool_warned=yes ;;
5664esac
5665    DLLTOOL=$ac_ct_DLLTOOL
5666  fi
5667else
5668  DLLTOOL="$ac_cv_prog_DLLTOOL"
5669fi
5670
5671test -z "$DLLTOOL" && DLLTOOL=dlltool
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5683$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5684if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  lt_cv_sharedlib_from_linklib_cmd='unknown'
5688
5689case $host_os in
5690cygwin* | mingw* | pw32* | cegcc*)
5691  # two different shell functions defined in ltmain.sh;
5692  # decide which one to use based on capabilities of $DLLTOOL
5693  case `$DLLTOOL --help 2>&1` in
5694  *--identify-strict*)
5695    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5696    ;;
5697  *)
5698    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5699    ;;
5700  esac
5701  ;;
5702*)
5703  # fallback: assume linklib IS sharedlib
5704  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5705  ;;
5706esac
5707
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5710$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5711sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5712test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5713
5714
5715
5716
5717
5718
5719
5720if test -n "$ac_tool_prefix"; then
5721  for ac_prog in ar
5722  do
5723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726$as_echo_n "checking for $ac_word... " >&6; }
5727if ${ac_cv_prog_AR+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  if test -n "$AR"; then
5731  ac_cv_prog_AR="$AR" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738    for ac_exec_ext in '' $ac_executable_extensions; do
5739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745  done
5746IFS=$as_save_IFS
5747
5748fi
5749fi
5750AR=$ac_cv_prog_AR
5751if test -n "$AR"; then
5752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5753$as_echo "$AR" >&6; }
5754else
5755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756$as_echo "no" >&6; }
5757fi
5758
5759
5760    test -n "$AR" && break
5761  done
5762fi
5763if test -z "$AR"; then
5764  ac_ct_AR=$AR
5765  for ac_prog in ar
5766do
5767  # Extract the first word of "$ac_prog", so it can be a program name with args.
5768set dummy $ac_prog; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if ${ac_cv_prog_ac_ct_AR+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  if test -n "$ac_ct_AR"; then
5775  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780  IFS=$as_save_IFS
5781  test -z "$as_dir" && as_dir=.
5782    for ac_exec_ext in '' $ac_executable_extensions; do
5783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784    ac_cv_prog_ac_ct_AR="$ac_prog"
5785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786    break 2
5787  fi
5788done
5789  done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794ac_ct_AR=$ac_cv_prog_ac_ct_AR
5795if test -n "$ac_ct_AR"; then
5796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5797$as_echo "$ac_ct_AR" >&6; }
5798else
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804  test -n "$ac_ct_AR" && break
5805done
5806
5807  if test "x$ac_ct_AR" = x; then
5808    AR="false"
5809  else
5810    case $cross_compiling:$ac_tool_warned in
5811yes:)
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5814ac_tool_warned=yes ;;
5815esac
5816    AR=$ac_ct_AR
5817  fi
5818fi
5819
5820: ${AR=ar}
5821: ${AR_FLAGS=cru}
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5834$as_echo_n "checking for archiver @FILE support... " >&6; }
5835if ${lt_cv_ar_at_file+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  lt_cv_ar_at_file=no
5839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851  echo conftest.$ac_objext > conftest.lst
5852      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5853      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5854  (eval $lt_ar_try) 2>&5
5855  ac_status=$?
5856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857  test $ac_status = 0; }
5858      if test 0 -eq "$ac_status"; then
5859	# Ensure the archiver fails upon bogus file names.
5860	rm -f conftest.$ac_objext libconftest.a
5861	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5862  (eval $lt_ar_try) 2>&5
5863  ac_status=$?
5864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865  test $ac_status = 0; }
5866	if test 0 -ne "$ac_status"; then
5867          lt_cv_ar_at_file=@
5868        fi
5869      fi
5870      rm -f conftest.* libconftest.a
5871
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5877$as_echo "$lt_cv_ar_at_file" >&6; }
5878
5879if test no = "$lt_cv_ar_at_file"; then
5880  archiver_list_spec=
5881else
5882  archiver_list_spec=$lt_cv_ar_at_file
5883fi
5884
5885
5886
5887
5888
5889
5890
5891if test -n "$ac_tool_prefix"; then
5892  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5893set dummy ${ac_tool_prefix}strip; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_STRIP+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$STRIP"; then
5900  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  test -z "$as_dir" && as_dir=.
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919STRIP=$ac_cv_prog_STRIP
5920if test -n "$STRIP"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5922$as_echo "$STRIP" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928
5929fi
5930if test -z "$ac_cv_prog_STRIP"; then
5931  ac_ct_STRIP=$STRIP
5932  # Extract the first word of "strip", so it can be a program name with args.
5933set dummy strip; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$ac_ct_STRIP"; then
5940  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_ac_ct_STRIP="strip"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5960if test -n "$ac_ct_STRIP"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5962$as_echo "$ac_ct_STRIP" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968  if test "x$ac_ct_STRIP" = x; then
5969    STRIP=":"
5970  else
5971    case $cross_compiling:$ac_tool_warned in
5972yes:)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975ac_tool_warned=yes ;;
5976esac
5977    STRIP=$ac_ct_STRIP
5978  fi
5979else
5980  STRIP="$ac_cv_prog_STRIP"
5981fi
5982
5983test -z "$STRIP" && STRIP=:
5984
5985
5986
5987
5988
5989
5990if test -n "$ac_tool_prefix"; then
5991  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5992set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994$as_echo_n "checking for $ac_word... " >&6; }
5995if ${ac_cv_prog_RANLIB+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  if test -n "$RANLIB"; then
5999  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6000else
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH
6003do
6004  IFS=$as_save_IFS
6005  test -z "$as_dir" && as_dir=.
6006    for ac_exec_ext in '' $ac_executable_extensions; do
6007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010    break 2
6011  fi
6012done
6013  done
6014IFS=$as_save_IFS
6015
6016fi
6017fi
6018RANLIB=$ac_cv_prog_RANLIB
6019if test -n "$RANLIB"; then
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6021$as_echo "$RANLIB" >&6; }
6022else
6023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024$as_echo "no" >&6; }
6025fi
6026
6027
6028fi
6029if test -z "$ac_cv_prog_RANLIB"; then
6030  ac_ct_RANLIB=$RANLIB
6031  # Extract the first word of "ranlib", so it can be a program name with args.
6032set dummy ranlib; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if test -n "$ac_ct_RANLIB"; then
6039  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046    for ac_exec_ext in '' $ac_executable_extensions; do
6047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048    ac_cv_prog_ac_ct_RANLIB="ranlib"
6049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053  done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6059if test -n "$ac_ct_RANLIB"; then
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6061$as_echo "$ac_ct_RANLIB" >&6; }
6062else
6063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067  if test "x$ac_ct_RANLIB" = x; then
6068    RANLIB=":"
6069  else
6070    case $cross_compiling:$ac_tool_warned in
6071yes:)
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076    RANLIB=$ac_ct_RANLIB
6077  fi
6078else
6079  RANLIB="$ac_cv_prog_RANLIB"
6080fi
6081
6082test -z "$RANLIB" && RANLIB=:
6083
6084
6085
6086
6087
6088
6089# Determine commands to create old-style static archives.
6090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6091old_postinstall_cmds='chmod 644 $oldlib'
6092old_postuninstall_cmds=
6093
6094if test -n "$RANLIB"; then
6095  case $host_os in
6096  bitrig* | openbsd*)
6097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6098    ;;
6099  *)
6100    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6101    ;;
6102  esac
6103  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6104fi
6105
6106case $host_os in
6107  darwin*)
6108    lock_old_archive_extraction=yes ;;
6109  *)
6110    lock_old_archive_extraction=no ;;
6111esac
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133for ac_prog in gawk mawk nawk awk
6134do
6135  # Extract the first word of "$ac_prog", so it can be a program name with args.
6136set dummy $ac_prog; ac_word=$2
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138$as_echo_n "checking for $ac_word... " >&6; }
6139if ${ac_cv_prog_AWK+:} false; then :
6140  $as_echo_n "(cached) " >&6
6141else
6142  if test -n "$AWK"; then
6143  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148  IFS=$as_save_IFS
6149  test -z "$as_dir" && as_dir=.
6150    for ac_exec_ext in '' $ac_executable_extensions; do
6151  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152    ac_cv_prog_AWK="$ac_prog"
6153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154    break 2
6155  fi
6156done
6157  done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162AWK=$ac_cv_prog_AWK
6163if test -n "$AWK"; then
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6165$as_echo "$AWK" >&6; }
6166else
6167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171
6172  test -n "$AWK" && break
6173done
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193# If no C compiler was specified, use CC.
6194LTCC=${LTCC-"$CC"}
6195
6196# If no C compiler flags were specified, use CFLAGS.
6197LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6198
6199# Allow CC to be a program name with arguments.
6200compiler=$CC
6201
6202
6203# Check for command to grab the raw symbol name followed by C symbol from nm.
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6205$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6206if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209
6210# These are sane defaults that work on at least a few old systems.
6211# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6212
6213# Character class describing NM global symbol codes.
6214symcode='[BCDEGRST]'
6215
6216# Regexp to match symbols that can be accessed directly from C.
6217sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6218
6219# Define system-specific variables.
6220case $host_os in
6221aix*)
6222  symcode='[BCDT]'
6223  ;;
6224cygwin* | mingw* | pw32* | cegcc*)
6225  symcode='[ABCDGISTW]'
6226  ;;
6227hpux*)
6228  if test ia64 = "$host_cpu"; then
6229    symcode='[ABCDEGRST]'
6230  fi
6231  ;;
6232irix* | nonstopux*)
6233  symcode='[BCDEGRST]'
6234  ;;
6235osf*)
6236  symcode='[BCDEGQRST]'
6237  ;;
6238solaris*)
6239  symcode='[BDRT]'
6240  ;;
6241sco3.2v5*)
6242  symcode='[DT]'
6243  ;;
6244sysv4.2uw2*)
6245  symcode='[DT]'
6246  ;;
6247sysv5* | sco5v6* | unixware* | OpenUNIX*)
6248  symcode='[ABDT]'
6249  ;;
6250sysv4)
6251  symcode='[DFNSTU]'
6252  ;;
6253esac
6254
6255# If we're using GNU nm, then use its standard symbol codes.
6256case `$NM -V 2>&1` in
6257*GNU* | *'with BFD'*)
6258  symcode='[ABCDGIRSTW]' ;;
6259esac
6260
6261if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6262  # Gets list of data symbols to import.
6263  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6264  # Adjust the below global symbol transforms to fixup imported variables.
6265  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6266  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6267  lt_c_name_lib_hook="\
6268  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6269  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6270else
6271  # Disable hooks by default.
6272  lt_cv_sys_global_symbol_to_import=
6273  lt_cdecl_hook=
6274  lt_c_name_hook=
6275  lt_c_name_lib_hook=
6276fi
6277
6278# Transform an extracted symbol line into a proper C declaration.
6279# Some systems (esp. on ia64) link data and code symbols differently,
6280# so use this general approach.
6281lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6282$lt_cdecl_hook\
6283" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6284" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6285
6286# Transform an extracted symbol line into symbol name and symbol address
6287lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6288$lt_c_name_hook\
6289" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6290" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6291
6292# Transform an extracted symbol line into symbol name with lib prefix and
6293# symbol address.
6294lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6295$lt_c_name_lib_hook\
6296" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6297" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6298" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6299
6300# Handle CRLF in mingw tool chain
6301opt_cr=
6302case $build_os in
6303mingw*)
6304  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6305  ;;
6306esac
6307
6308# Try without a prefix underscore, then with it.
6309for ac_symprfx in "" "_"; do
6310
6311  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6312  symxfrm="\\1 $ac_symprfx\\2 \\2"
6313
6314  # Write the raw and C identifiers.
6315  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6316    # Fake it for dumpbin and say T for any non-static function,
6317    # D for any global variable and I for any imported variable.
6318    # Also find C++ and __fastcall symbols from MSVC++,
6319    # which start with @ or ?.
6320    lt_cv_sys_global_symbol_pipe="$AWK '"\
6321"     {last_section=section; section=\$ 3};"\
6322"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6323"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6324"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6325"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6326"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6327"     \$ 0!~/External *\|/{next};"\
6328"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6329"     {if(hide[section]) next};"\
6330"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6331"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6332"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6333"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6334"     ' prfx=^$ac_symprfx"
6335  else
6336    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6337  fi
6338  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6339
6340  # Check to see that the pipe works correctly.
6341  pipe_works=no
6342
6343  rm -f conftest*
6344  cat > conftest.$ac_ext <<_LT_EOF
6345#ifdef __cplusplus
6346extern "C" {
6347#endif
6348char nm_test_var;
6349void nm_test_func(void);
6350void nm_test_func(void){}
6351#ifdef __cplusplus
6352}
6353#endif
6354int main(){nm_test_var='a';nm_test_func();return(0);}
6355_LT_EOF
6356
6357  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358  (eval $ac_compile) 2>&5
6359  ac_status=$?
6360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361  test $ac_status = 0; }; then
6362    # Now try to grab the symbols.
6363    nlist=conftest.nm
6364    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6365  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6366  ac_status=$?
6367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368  test $ac_status = 0; } && test -s "$nlist"; then
6369      # Try sorting and uniquifying the output.
6370      if sort "$nlist" | uniq > "$nlist"T; then
6371	mv -f "$nlist"T "$nlist"
6372      else
6373	rm -f "$nlist"T
6374      fi
6375
6376      # Make sure that we snagged all the symbols we need.
6377      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6378	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6379	  cat <<_LT_EOF > conftest.$ac_ext
6380/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6381#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6382/* DATA imports from DLLs on WIN32 can't be const, because runtime
6383   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6384# define LT_DLSYM_CONST
6385#elif defined __osf__
6386/* This system does not cope well with relocations in const data.  */
6387# define LT_DLSYM_CONST
6388#else
6389# define LT_DLSYM_CONST const
6390#endif
6391
6392#ifdef __cplusplus
6393extern "C" {
6394#endif
6395
6396_LT_EOF
6397	  # Now generate the symbol file.
6398	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6399
6400	  cat <<_LT_EOF >> conftest.$ac_ext
6401
6402/* The mapping between symbol names and symbols.  */
6403LT_DLSYM_CONST struct {
6404  const char *name;
6405  void       *address;
6406}
6407lt__PROGRAM__LTX_preloaded_symbols[] =
6408{
6409  { "@PROGRAM@", (void *) 0 },
6410_LT_EOF
6411	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6412	  cat <<\_LT_EOF >> conftest.$ac_ext
6413  {0, (void *) 0}
6414};
6415
6416/* This works around a problem in FreeBSD linker */
6417#ifdef FREEBSD_WORKAROUND
6418static const void *lt_preloaded_setup() {
6419  return lt__PROGRAM__LTX_preloaded_symbols;
6420}
6421#endif
6422
6423#ifdef __cplusplus
6424}
6425#endif
6426_LT_EOF
6427	  # Now try linking the two files.
6428	  mv conftest.$ac_objext conftstm.$ac_objext
6429	  lt_globsym_save_LIBS=$LIBS
6430	  lt_globsym_save_CFLAGS=$CFLAGS
6431	  LIBS=conftstm.$ac_objext
6432	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6433	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6434  (eval $ac_link) 2>&5
6435  ac_status=$?
6436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6437  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6438	    pipe_works=yes
6439	  fi
6440	  LIBS=$lt_globsym_save_LIBS
6441	  CFLAGS=$lt_globsym_save_CFLAGS
6442	else
6443	  echo "cannot find nm_test_func in $nlist" >&5
6444	fi
6445      else
6446	echo "cannot find nm_test_var in $nlist" >&5
6447      fi
6448    else
6449      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6450    fi
6451  else
6452    echo "$progname: failed program was:" >&5
6453    cat conftest.$ac_ext >&5
6454  fi
6455  rm -rf conftest* conftst*
6456
6457  # Do not use the global_symbol_pipe unless it works.
6458  if test yes = "$pipe_works"; then
6459    break
6460  else
6461    lt_cv_sys_global_symbol_pipe=
6462  fi
6463done
6464
6465fi
6466
6467if test -z "$lt_cv_sys_global_symbol_pipe"; then
6468  lt_cv_sys_global_symbol_to_cdecl=
6469fi
6470if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6472$as_echo "failed" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6475$as_echo "ok" >&6; }
6476fi
6477
6478# Response file support.
6479if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6480  nm_file_list_spec='@'
6481elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6482  nm_file_list_spec='@'
6483fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6522$as_echo_n "checking for sysroot... " >&6; }
6523
6524# Check whether --with-sysroot was given.
6525if test "${with_sysroot+set}" = set; then :
6526  withval=$with_sysroot;
6527else
6528  with_sysroot=no
6529fi
6530
6531
6532lt_sysroot=
6533case $with_sysroot in #(
6534 yes)
6535   if test yes = "$GCC"; then
6536     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6537   fi
6538   ;; #(
6539 /*)
6540   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6541   ;; #(
6542 no|'')
6543   ;; #(
6544 *)
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6546$as_echo "$with_sysroot" >&6; }
6547   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6548   ;;
6549esac
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6552$as_echo "${lt_sysroot:-no}" >&6; }
6553
6554
6555
6556
6557
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6559$as_echo_n "checking for a working dd... " >&6; }
6560if ${ac_cv_path_lt_DD+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  printf 0123456789abcdef0123456789abcdef >conftest.i
6564cat conftest.i conftest.i >conftest2.i
6565: ${lt_DD:=$DD}
6566if test -z "$lt_DD"; then
6567  ac_path_lt_DD_found=false
6568  # Loop through the user's path and test for each of PROGNAME-LIST
6569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572  IFS=$as_save_IFS
6573  test -z "$as_dir" && as_dir=.
6574    for ac_prog in dd; do
6575    for ac_exec_ext in '' $ac_executable_extensions; do
6576      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6577      as_fn_executable_p "$ac_path_lt_DD" || continue
6578if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6579  cmp -s conftest.i conftest.out \
6580  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6581fi
6582      $ac_path_lt_DD_found && break 3
6583    done
6584  done
6585  done
6586IFS=$as_save_IFS
6587  if test -z "$ac_cv_path_lt_DD"; then
6588    :
6589  fi
6590else
6591  ac_cv_path_lt_DD=$lt_DD
6592fi
6593
6594rm -f conftest.i conftest2.i conftest.out
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6597$as_echo "$ac_cv_path_lt_DD" >&6; }
6598
6599
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6601$as_echo_n "checking how to truncate binary pipes... " >&6; }
6602if ${lt_cv_truncate_bin+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  printf 0123456789abcdef0123456789abcdef >conftest.i
6606cat conftest.i conftest.i >conftest2.i
6607lt_cv_truncate_bin=
6608if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6609  cmp -s conftest.i conftest.out \
6610  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6611fi
6612rm -f conftest.i conftest2.i conftest.out
6613test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6616$as_echo "$lt_cv_truncate_bin" >&6; }
6617
6618
6619
6620
6621
6622
6623
6624# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6625func_cc_basename ()
6626{
6627    for cc_temp in $*""; do
6628      case $cc_temp in
6629        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6630        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6631        \-*) ;;
6632        *) break;;
6633      esac
6634    done
6635    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6636}
6637
6638# Check whether --enable-libtool-lock was given.
6639if test "${enable_libtool_lock+set}" = set; then :
6640  enableval=$enable_libtool_lock;
6641fi
6642
6643test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6644
6645# Some flags need to be propagated to the compiler or linker for good
6646# libtool support.
6647case $host in
6648ia64-*-hpux*)
6649  # Find out what ABI is being produced by ac_compile, and set mode
6650  # options accordingly.
6651  echo 'int i;' > conftest.$ac_ext
6652  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653  (eval $ac_compile) 2>&5
6654  ac_status=$?
6655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656  test $ac_status = 0; }; then
6657    case `/usr/bin/file conftest.$ac_objext` in
6658      *ELF-32*)
6659	HPUX_IA64_MODE=32
6660	;;
6661      *ELF-64*)
6662	HPUX_IA64_MODE=64
6663	;;
6664    esac
6665  fi
6666  rm -rf conftest*
6667  ;;
6668*-*-irix6*)
6669  # Find out what ABI is being produced by ac_compile, and set linker
6670  # options accordingly.
6671  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6672  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673  (eval $ac_compile) 2>&5
6674  ac_status=$?
6675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676  test $ac_status = 0; }; then
6677    if test yes = "$lt_cv_prog_gnu_ld"; then
6678      case `/usr/bin/file conftest.$ac_objext` in
6679	*32-bit*)
6680	  LD="${LD-ld} -melf32bsmip"
6681	  ;;
6682	*N32*)
6683	  LD="${LD-ld} -melf32bmipn32"
6684	  ;;
6685	*64-bit*)
6686	  LD="${LD-ld} -melf64bmip"
6687	;;
6688      esac
6689    else
6690      case `/usr/bin/file conftest.$ac_objext` in
6691	*32-bit*)
6692	  LD="${LD-ld} -32"
6693	  ;;
6694	*N32*)
6695	  LD="${LD-ld} -n32"
6696	  ;;
6697	*64-bit*)
6698	  LD="${LD-ld} -64"
6699	  ;;
6700      esac
6701    fi
6702  fi
6703  rm -rf conftest*
6704  ;;
6705
6706mips64*-*linux*)
6707  # Find out what ABI is being produced by ac_compile, and set linker
6708  # options accordingly.
6709  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6710  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711  (eval $ac_compile) 2>&5
6712  ac_status=$?
6713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714  test $ac_status = 0; }; then
6715    emul=elf
6716    case `/usr/bin/file conftest.$ac_objext` in
6717      *32-bit*)
6718	emul="${emul}32"
6719	;;
6720      *64-bit*)
6721	emul="${emul}64"
6722	;;
6723    esac
6724    case `/usr/bin/file conftest.$ac_objext` in
6725      *MSB*)
6726	emul="${emul}btsmip"
6727	;;
6728      *LSB*)
6729	emul="${emul}ltsmip"
6730	;;
6731    esac
6732    case `/usr/bin/file conftest.$ac_objext` in
6733      *N32*)
6734	emul="${emul}n32"
6735	;;
6736    esac
6737    LD="${LD-ld} -m $emul"
6738  fi
6739  rm -rf conftest*
6740  ;;
6741
6742x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6743s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6744  # Find out what ABI is being produced by ac_compile, and set linker
6745  # options accordingly.  Note that the listed cases only cover the
6746  # situations where additional linker options are needed (such as when
6747  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6748  # vice versa); the common cases where no linker options are needed do
6749  # not appear in the list.
6750  echo 'int i;' > conftest.$ac_ext
6751  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6752  (eval $ac_compile) 2>&5
6753  ac_status=$?
6754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755  test $ac_status = 0; }; then
6756    case `/usr/bin/file conftest.o` in
6757      *32-bit*)
6758	case $host in
6759	  x86_64-*kfreebsd*-gnu)
6760	    LD="${LD-ld} -m elf_i386_fbsd"
6761	    ;;
6762	  x86_64-*linux*)
6763	    case `/usr/bin/file conftest.o` in
6764	      *x86-64*)
6765		LD="${LD-ld} -m elf32_x86_64"
6766		;;
6767	      *)
6768		LD="${LD-ld} -m elf_i386"
6769		;;
6770	    esac
6771	    ;;
6772	  powerpc64le-*linux*)
6773	    LD="${LD-ld} -m elf32lppclinux"
6774	    ;;
6775	  powerpc64-*linux*)
6776	    LD="${LD-ld} -m elf32ppclinux"
6777	    ;;
6778	  s390x-*linux*)
6779	    LD="${LD-ld} -m elf_s390"
6780	    ;;
6781	  sparc64-*linux*)
6782	    LD="${LD-ld} -m elf32_sparc"
6783	    ;;
6784	esac
6785	;;
6786      *64-bit*)
6787	case $host in
6788	  x86_64-*kfreebsd*-gnu)
6789	    LD="${LD-ld} -m elf_x86_64_fbsd"
6790	    ;;
6791	  x86_64-*linux*)
6792	    LD="${LD-ld} -m elf_x86_64"
6793	    ;;
6794	  powerpcle-*linux*)
6795	    LD="${LD-ld} -m elf64lppc"
6796	    ;;
6797	  powerpc-*linux*)
6798	    LD="${LD-ld} -m elf64ppc"
6799	    ;;
6800	  s390*-*linux*|s390*-*tpf*)
6801	    LD="${LD-ld} -m elf64_s390"
6802	    ;;
6803	  sparc*-*linux*)
6804	    LD="${LD-ld} -m elf64_sparc"
6805	    ;;
6806	esac
6807	;;
6808    esac
6809  fi
6810  rm -rf conftest*
6811  ;;
6812
6813*-*-sco3.2v5*)
6814  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6815  SAVE_CFLAGS=$CFLAGS
6816  CFLAGS="$CFLAGS -belf"
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6818$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6819if ${lt_cv_cc_needs_belf+:} false; then :
6820  $as_echo_n "(cached) " >&6
6821else
6822  ac_ext=c
6823ac_cpp='$CPP $CPPFLAGS'
6824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827
6828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830
6831int
6832main ()
6833{
6834
6835  ;
6836  return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_link "$LINENO"; then :
6840  lt_cv_cc_needs_belf=yes
6841else
6842  lt_cv_cc_needs_belf=no
6843fi
6844rm -f core conftest.err conftest.$ac_objext \
6845    conftest$ac_exeext conftest.$ac_ext
6846     ac_ext=c
6847ac_cpp='$CPP $CPPFLAGS'
6848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6850ac_compiler_gnu=$ac_cv_c_compiler_gnu
6851
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6854$as_echo "$lt_cv_cc_needs_belf" >&6; }
6855  if test yes != "$lt_cv_cc_needs_belf"; then
6856    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6857    CFLAGS=$SAVE_CFLAGS
6858  fi
6859  ;;
6860*-*solaris*)
6861  # Find out what ABI is being produced by ac_compile, and set linker
6862  # options accordingly.
6863  echo 'int i;' > conftest.$ac_ext
6864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865  (eval $ac_compile) 2>&5
6866  ac_status=$?
6867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868  test $ac_status = 0; }; then
6869    case `/usr/bin/file conftest.o` in
6870    *64-bit*)
6871      case $lt_cv_prog_gnu_ld in
6872      yes*)
6873        case $host in
6874        i?86-*-solaris*|x86_64-*-solaris*)
6875          LD="${LD-ld} -m elf_x86_64"
6876          ;;
6877        sparc*-*-solaris*)
6878          LD="${LD-ld} -m elf64_sparc"
6879          ;;
6880        esac
6881        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6882        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6883          LD=${LD-ld}_sol2
6884        fi
6885        ;;
6886      *)
6887	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6888	  LD="${LD-ld} -64"
6889	fi
6890	;;
6891      esac
6892      ;;
6893    esac
6894  fi
6895  rm -rf conftest*
6896  ;;
6897esac
6898
6899need_locks=$enable_libtool_lock
6900
6901if test -n "$ac_tool_prefix"; then
6902  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6903set dummy ${ac_tool_prefix}mt; ac_word=$2
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905$as_echo_n "checking for $ac_word... " >&6; }
6906if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6907  $as_echo_n "(cached) " >&6
6908else
6909  if test -n "$MANIFEST_TOOL"; then
6910  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6911else
6912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915  IFS=$as_save_IFS
6916  test -z "$as_dir" && as_dir=.
6917    for ac_exec_ext in '' $ac_executable_extensions; do
6918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921    break 2
6922  fi
6923done
6924  done
6925IFS=$as_save_IFS
6926
6927fi
6928fi
6929MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6930if test -n "$MANIFEST_TOOL"; then
6931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6932$as_echo "$MANIFEST_TOOL" >&6; }
6933else
6934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935$as_echo "no" >&6; }
6936fi
6937
6938
6939fi
6940if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6941  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6942  # Extract the first word of "mt", so it can be a program name with args.
6943set dummy mt; ac_word=$2
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945$as_echo_n "checking for $ac_word... " >&6; }
6946if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6947  $as_echo_n "(cached) " >&6
6948else
6949  if test -n "$ac_ct_MANIFEST_TOOL"; then
6950  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955  IFS=$as_save_IFS
6956  test -z "$as_dir" && as_dir=.
6957    for ac_exec_ext in '' $ac_executable_extensions; do
6958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961    break 2
6962  fi
6963done
6964  done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6970if test -n "$ac_ct_MANIFEST_TOOL"; then
6971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6972$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6973else
6974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975$as_echo "no" >&6; }
6976fi
6977
6978  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6979    MANIFEST_TOOL=":"
6980  else
6981    case $cross_compiling:$ac_tool_warned in
6982yes:)
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985ac_tool_warned=yes ;;
6986esac
6987    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6988  fi
6989else
6990  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6991fi
6992
6993test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6995$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6996if ${lt_cv_path_mainfest_tool+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  lt_cv_path_mainfest_tool=no
7000  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7001  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7002  cat conftest.err >&5
7003  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7004    lt_cv_path_mainfest_tool=yes
7005  fi
7006  rm -f conftest*
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7009$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7010if test yes != "$lt_cv_path_mainfest_tool"; then
7011  MANIFEST_TOOL=:
7012fi
7013
7014
7015
7016
7017
7018
7019  case $host_os in
7020    rhapsody* | darwin*)
7021    if test -n "$ac_tool_prefix"; then
7022  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
7026if ${ac_cv_prog_DSYMUTIL+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  if test -n "$DSYMUTIL"; then
7030  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035  IFS=$as_save_IFS
7036  test -z "$as_dir" && as_dir=.
7037    for ac_exec_ext in '' $ac_executable_extensions; do
7038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041    break 2
7042  fi
7043done
7044  done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050if test -n "$DSYMUTIL"; then
7051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7052$as_echo "$DSYMUTIL" >&6; }
7053else
7054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058
7059fi
7060if test -z "$ac_cv_prog_DSYMUTIL"; then
7061  ac_ct_DSYMUTIL=$DSYMUTIL
7062  # Extract the first word of "dsymutil", so it can be a program name with args.
7063set dummy dsymutil; ac_word=$2
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065$as_echo_n "checking for $ac_word... " >&6; }
7066if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  if test -n "$ac_ct_DSYMUTIL"; then
7070  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075  IFS=$as_save_IFS
7076  test -z "$as_dir" && as_dir=.
7077    for ac_exec_ext in '' $ac_executable_extensions; do
7078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081    break 2
7082  fi
7083done
7084  done
7085IFS=$as_save_IFS
7086
7087fi
7088fi
7089ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090if test -n "$ac_ct_DSYMUTIL"; then
7091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7092$as_echo "$ac_ct_DSYMUTIL" >&6; }
7093else
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095$as_echo "no" >&6; }
7096fi
7097
7098  if test "x$ac_ct_DSYMUTIL" = x; then
7099    DSYMUTIL=":"
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    DSYMUTIL=$ac_ct_DSYMUTIL
7108  fi
7109else
7110  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7111fi
7112
7113    if test -n "$ac_tool_prefix"; then
7114  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7115set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_NMEDIT+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  if test -n "$NMEDIT"; then
7122  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127  IFS=$as_save_IFS
7128  test -z "$as_dir" && as_dir=.
7129    for ac_exec_ext in '' $ac_executable_extensions; do
7130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133    break 2
7134  fi
7135done
7136  done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141NMEDIT=$ac_cv_prog_NMEDIT
7142if test -n "$NMEDIT"; then
7143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7144$as_echo "$NMEDIT" >&6; }
7145else
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150
7151fi
7152if test -z "$ac_cv_prog_NMEDIT"; then
7153  ac_ct_NMEDIT=$NMEDIT
7154  # Extract the first word of "nmedit", so it can be a program name with args.
7155set dummy nmedit; ac_word=$2
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  if test -n "$ac_ct_NMEDIT"; then
7162  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  test -z "$as_dir" && as_dir=.
7169    for ac_exec_ext in '' $ac_executable_extensions; do
7170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173    break 2
7174  fi
7175done
7176  done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7182if test -n "$ac_ct_NMEDIT"; then
7183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7184$as_echo "$ac_ct_NMEDIT" >&6; }
7185else
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190  if test "x$ac_ct_NMEDIT" = x; then
7191    NMEDIT=":"
7192  else
7193    case $cross_compiling:$ac_tool_warned in
7194yes:)
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197ac_tool_warned=yes ;;
7198esac
7199    NMEDIT=$ac_ct_NMEDIT
7200  fi
7201else
7202  NMEDIT="$ac_cv_prog_NMEDIT"
7203fi
7204
7205    if test -n "$ac_tool_prefix"; then
7206  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7207set dummy ${ac_tool_prefix}lipo; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_LIPO+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$LIPO"; then
7214  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233LIPO=$ac_cv_prog_LIPO
7234if test -n "$LIPO"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7236$as_echo "$LIPO" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243fi
7244if test -z "$ac_cv_prog_LIPO"; then
7245  ac_ct_LIPO=$LIPO
7246  # Extract the first word of "lipo", so it can be a program name with args.
7247set dummy lipo; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  if test -n "$ac_ct_LIPO"; then
7254  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259  IFS=$as_save_IFS
7260  test -z "$as_dir" && as_dir=.
7261    for ac_exec_ext in '' $ac_executable_extensions; do
7262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263    ac_cv_prog_ac_ct_LIPO="lipo"
7264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265    break 2
7266  fi
7267done
7268  done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7274if test -n "$ac_ct_LIPO"; then
7275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7276$as_echo "$ac_ct_LIPO" >&6; }
7277else
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
7281
7282  if test "x$ac_ct_LIPO" = x; then
7283    LIPO=":"
7284  else
7285    case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    LIPO=$ac_ct_LIPO
7292  fi
7293else
7294  LIPO="$ac_cv_prog_LIPO"
7295fi
7296
7297    if test -n "$ac_tool_prefix"; then
7298  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7299set dummy ${ac_tool_prefix}otool; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_OTOOL+:} false; then :
7303  $as_echo_n "(cached) " >&6
7304else
7305  if test -n "$OTOOL"; then
7306  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311  IFS=$as_save_IFS
7312  test -z "$as_dir" && as_dir=.
7313    for ac_exec_ext in '' $ac_executable_extensions; do
7314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317    break 2
7318  fi
7319done
7320  done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325OTOOL=$ac_cv_prog_OTOOL
7326if test -n "$OTOOL"; then
7327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7328$as_echo "$OTOOL" >&6; }
7329else
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334
7335fi
7336if test -z "$ac_cv_prog_OTOOL"; then
7337  ac_ct_OTOOL=$OTOOL
7338  # Extract the first word of "otool", so it can be a program name with args.
7339set dummy otool; ac_word=$2
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test -n "$ac_ct_OTOOL"; then
7346  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351  IFS=$as_save_IFS
7352  test -z "$as_dir" && as_dir=.
7353    for ac_exec_ext in '' $ac_executable_extensions; do
7354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355    ac_cv_prog_ac_ct_OTOOL="otool"
7356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357    break 2
7358  fi
7359done
7360  done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7366if test -n "$ac_ct_OTOOL"; then
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7368$as_echo "$ac_ct_OTOOL" >&6; }
7369else
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374  if test "x$ac_ct_OTOOL" = x; then
7375    OTOOL=":"
7376  else
7377    case $cross_compiling:$ac_tool_warned in
7378yes:)
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381ac_tool_warned=yes ;;
7382esac
7383    OTOOL=$ac_ct_OTOOL
7384  fi
7385else
7386  OTOOL="$ac_cv_prog_OTOOL"
7387fi
7388
7389    if test -n "$ac_tool_prefix"; then
7390  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7391set dummy ${ac_tool_prefix}otool64; ac_word=$2
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393$as_echo_n "checking for $ac_word... " >&6; }
7394if ${ac_cv_prog_OTOOL64+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  if test -n "$OTOOL64"; then
7398  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7399else
7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415fi
7416fi
7417OTOOL64=$ac_cv_prog_OTOOL64
7418if test -n "$OTOOL64"; then
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7420$as_echo "$OTOOL64" >&6; }
7421else
7422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427fi
7428if test -z "$ac_cv_prog_OTOOL64"; then
7429  ac_ct_OTOOL64=$OTOOL64
7430  # Extract the first word of "otool64", so it can be a program name with args.
7431set dummy otool64; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  if test -n "$ac_ct_OTOOL64"; then
7438  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443  IFS=$as_save_IFS
7444  test -z "$as_dir" && as_dir=.
7445    for ac_exec_ext in '' $ac_executable_extensions; do
7446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447    ac_cv_prog_ac_ct_OTOOL64="otool64"
7448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449    break 2
7450  fi
7451done
7452  done
7453IFS=$as_save_IFS
7454
7455fi
7456fi
7457ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7458if test -n "$ac_ct_OTOOL64"; then
7459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7460$as_echo "$ac_ct_OTOOL64" >&6; }
7461else
7462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464fi
7465
7466  if test "x$ac_ct_OTOOL64" = x; then
7467    OTOOL64=":"
7468  else
7469    case $cross_compiling:$ac_tool_warned in
7470yes:)
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473ac_tool_warned=yes ;;
7474esac
7475    OTOOL64=$ac_ct_OTOOL64
7476  fi
7477else
7478  OTOOL64="$ac_cv_prog_OTOOL64"
7479fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7508$as_echo_n "checking for -single_module linker flag... " >&6; }
7509if ${lt_cv_apple_cc_single_mod+:} false; then :
7510  $as_echo_n "(cached) " >&6
7511else
7512  lt_cv_apple_cc_single_mod=no
7513      if test -z "$LT_MULTI_MODULE"; then
7514	# By default we will add the -single_module flag. You can override
7515	# by either setting the environment variable LT_MULTI_MODULE
7516	# non-empty at configure time, or by adding -multi_module to the
7517	# link flags.
7518	rm -rf libconftest.dylib*
7519	echo "int foo(void){return 1;}" > conftest.c
7520	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521-dynamiclib -Wl,-single_module conftest.c" >&5
7522	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7523	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7524        _lt_result=$?
7525	# If there is a non-empty error log, and "single_module"
7526	# appears in it, assume the flag caused a linker warning
7527        if test -s conftest.err && $GREP single_module conftest.err; then
7528	  cat conftest.err >&5
7529	# Otherwise, if the output was created with a 0 exit code from
7530	# the compiler, it worked.
7531	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7532	  lt_cv_apple_cc_single_mod=yes
7533	else
7534	  cat conftest.err >&5
7535	fi
7536	rm -rf libconftest.dylib*
7537	rm -f conftest.*
7538      fi
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542
7543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7544$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7545if ${lt_cv_ld_exported_symbols_list+:} false; then :
7546  $as_echo_n "(cached) " >&6
7547else
7548  lt_cv_ld_exported_symbols_list=no
7549      save_LDFLAGS=$LDFLAGS
7550      echo "_main" > conftest.sym
7551      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554
7555int
7556main ()
7557{
7558
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563if ac_fn_c_try_link "$LINENO"; then :
7564  lt_cv_ld_exported_symbols_list=yes
7565else
7566  lt_cv_ld_exported_symbols_list=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext \
7569    conftest$ac_exeext conftest.$ac_ext
7570	LDFLAGS=$save_LDFLAGS
7571
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7574$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7575
7576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7577$as_echo_n "checking for -force_load linker flag... " >&6; }
7578if ${lt_cv_ld_force_load+:} false; then :
7579  $as_echo_n "(cached) " >&6
7580else
7581  lt_cv_ld_force_load=no
7582      cat > conftest.c << _LT_EOF
7583int forced_loaded() { return 2;}
7584_LT_EOF
7585      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7586      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7587      echo "$AR cru libconftest.a conftest.o" >&5
7588      $AR cru libconftest.a conftest.o 2>&5
7589      echo "$RANLIB libconftest.a" >&5
7590      $RANLIB libconftest.a 2>&5
7591      cat > conftest.c << _LT_EOF
7592int main() { return 0;}
7593_LT_EOF
7594      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7595      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7596      _lt_result=$?
7597      if test -s conftest.err && $GREP force_load conftest.err; then
7598	cat conftest.err >&5
7599      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7600	lt_cv_ld_force_load=yes
7601      else
7602	cat conftest.err >&5
7603      fi
7604        rm -f conftest.err libconftest.a conftest conftest.c
7605        rm -rf conftest.dSYM
7606
7607fi
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7609$as_echo "$lt_cv_ld_force_load" >&6; }
7610    case $host_os in
7611    rhapsody* | darwin1.[012])
7612      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7613    darwin1.*)
7614      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7615    darwin*)
7616      case ${MACOSX_DEPLOYMENT_TARGET},$host in
7617	10.[012],*|,*powerpc*)
7618	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7619	*)
7620	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7621      esac
7622    ;;
7623  esac
7624    if test yes = "$lt_cv_apple_cc_single_mod"; then
7625      _lt_dar_single_mod='$single_module'
7626    fi
7627    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7628      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7629    else
7630      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7631    fi
7632    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7633      _lt_dsymutil='~$DSYMUTIL $lib || :'
7634    else
7635      _lt_dsymutil=
7636    fi
7637    ;;
7638  esac
7639
7640# func_munge_path_list VARIABLE PATH
7641# -----------------------------------
7642# VARIABLE is name of variable containing _space_ separated list of
7643# directories to be munged by the contents of PATH, which is string
7644# having a format:
7645# "DIR[:DIR]:"
7646#       string "DIR[ DIR]" will be prepended to VARIABLE
7647# ":DIR[:DIR]"
7648#       string "DIR[ DIR]" will be appended to VARIABLE
7649# "DIRP[:DIRP]::[DIRA:]DIRA"
7650#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7651#       "DIRA[ DIRA]" will be appended to VARIABLE
7652# "DIR[:DIR]"
7653#       VARIABLE will be replaced by "DIR[ DIR]"
7654func_munge_path_list ()
7655{
7656    case x$2 in
7657    x)
7658        ;;
7659    *:)
7660        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7661        ;;
7662    x:*)
7663        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7664        ;;
7665    *::*)
7666        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7667        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7668        ;;
7669    *)
7670        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7671        ;;
7672    esac
7673}
7674
7675for ac_header in dlfcn.h
7676do :
7677  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7678"
7679if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7680  cat >>confdefs.h <<_ACEOF
7681#define HAVE_DLFCN_H 1
7682_ACEOF
7683
7684fi
7685
7686done
7687
7688
7689
7690
7691
7692# Set options
7693
7694
7695
7696        enable_dlopen=no
7697
7698
7699  enable_win32_dll=no
7700
7701
7702            # Check whether --enable-shared was given.
7703if test "${enable_shared+set}" = set; then :
7704  enableval=$enable_shared; p=${PACKAGE-default}
7705    case $enableval in
7706    yes) enable_shared=yes ;;
7707    no) enable_shared=no ;;
7708    *)
7709      enable_shared=no
7710      # Look at the argument we got.  We use all the common list separators.
7711      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7712      for pkg in $enableval; do
7713	IFS=$lt_save_ifs
7714	if test "X$pkg" = "X$p"; then
7715	  enable_shared=yes
7716	fi
7717      done
7718      IFS=$lt_save_ifs
7719      ;;
7720    esac
7721else
7722  enable_shared=yes
7723fi
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733  # Check whether --enable-static was given.
7734if test "${enable_static+set}" = set; then :
7735  enableval=$enable_static; p=${PACKAGE-default}
7736    case $enableval in
7737    yes) enable_static=yes ;;
7738    no) enable_static=no ;;
7739    *)
7740     enable_static=no
7741      # Look at the argument we got.  We use all the common list separators.
7742      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7743      for pkg in $enableval; do
7744	IFS=$lt_save_ifs
7745	if test "X$pkg" = "X$p"; then
7746	  enable_static=yes
7747	fi
7748      done
7749      IFS=$lt_save_ifs
7750      ;;
7751    esac
7752else
7753  enable_static=yes
7754fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765# Check whether --with-pic was given.
7766if test "${with_pic+set}" = set; then :
7767  withval=$with_pic; lt_p=${PACKAGE-default}
7768    case $withval in
7769    yes|no) pic_mode=$withval ;;
7770    *)
7771      pic_mode=default
7772      # Look at the argument we got.  We use all the common list separators.
7773      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7774      for lt_pkg in $withval; do
7775	IFS=$lt_save_ifs
7776	if test "X$lt_pkg" = "X$lt_p"; then
7777	  pic_mode=yes
7778	fi
7779      done
7780      IFS=$lt_save_ifs
7781      ;;
7782    esac
7783else
7784  pic_mode=default
7785fi
7786
7787
7788
7789
7790
7791
7792
7793
7794  # Check whether --enable-fast-install was given.
7795if test "${enable_fast_install+set}" = set; then :
7796  enableval=$enable_fast_install; p=${PACKAGE-default}
7797    case $enableval in
7798    yes) enable_fast_install=yes ;;
7799    no) enable_fast_install=no ;;
7800    *)
7801      enable_fast_install=no
7802      # Look at the argument we got.  We use all the common list separators.
7803      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7804      for pkg in $enableval; do
7805	IFS=$lt_save_ifs
7806	if test "X$pkg" = "X$p"; then
7807	  enable_fast_install=yes
7808	fi
7809      done
7810      IFS=$lt_save_ifs
7811      ;;
7812    esac
7813else
7814  enable_fast_install=yes
7815fi
7816
7817
7818
7819
7820
7821
7822
7823
7824  shared_archive_member_spec=
7825case $host,$enable_shared in
7826power*-*-aix[5-9]*,yes)
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7828$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7829
7830# Check whether --with-aix-soname was given.
7831if test "${with_aix_soname+set}" = set; then :
7832  withval=$with_aix_soname; case $withval in
7833    aix|svr4|both)
7834      ;;
7835    *)
7836      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7837      ;;
7838    esac
7839    lt_cv_with_aix_soname=$with_aix_soname
7840else
7841  if ${lt_cv_with_aix_soname+:} false; then :
7842  $as_echo_n "(cached) " >&6
7843else
7844  lt_cv_with_aix_soname=aix
7845fi
7846
7847    with_aix_soname=$lt_cv_with_aix_soname
7848fi
7849
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7851$as_echo "$with_aix_soname" >&6; }
7852  if test aix != "$with_aix_soname"; then
7853    # For the AIX way of multilib, we name the shared archive member
7854    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7855    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7856    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7857    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7858    if test 64 = "${OBJECT_MODE-32}"; then
7859      shared_archive_member_spec=shr_64
7860    else
7861      shared_archive_member_spec=shr
7862    fi
7863  fi
7864  ;;
7865*)
7866  with_aix_soname=aix
7867  ;;
7868esac
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879# This can be used to rebuild libtool when needed
7880LIBTOOL_DEPS=$ltmain
7881
7882# Always use our own libtool.
7883LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914test -z "$LN_S" && LN_S="ln -s"
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929if test -n "${ZSH_VERSION+set}"; then
7930   setopt NO_GLOB_SUBST
7931fi
7932
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7934$as_echo_n "checking for objdir... " >&6; }
7935if ${lt_cv_objdir+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938  rm -f .libs 2>/dev/null
7939mkdir .libs 2>/dev/null
7940if test -d .libs; then
7941  lt_cv_objdir=.libs
7942else
7943  # MS-DOS does not allow filenames that begin with a dot.
7944  lt_cv_objdir=_libs
7945fi
7946rmdir .libs 2>/dev/null
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7949$as_echo "$lt_cv_objdir" >&6; }
7950objdir=$lt_cv_objdir
7951
7952
7953
7954
7955
7956cat >>confdefs.h <<_ACEOF
7957#define LT_OBJDIR "$lt_cv_objdir/"
7958_ACEOF
7959
7960
7961
7962
7963case $host_os in
7964aix3*)
7965  # AIX sometimes has problems with the GCC collect2 program.  For some
7966  # reason, if we set the COLLECT_NAMES environment variable, the problems
7967  # vanish in a puff of smoke.
7968  if test set != "${COLLECT_NAMES+set}"; then
7969    COLLECT_NAMES=
7970    export COLLECT_NAMES
7971  fi
7972  ;;
7973esac
7974
7975# Global variables:
7976ofile=libtool
7977can_build_shared=yes
7978
7979# All known linkers require a '.a' archive for static linking (except MSVC,
7980# which needs '.lib').
7981libext=a
7982
7983with_gnu_ld=$lt_cv_prog_gnu_ld
7984
7985old_CC=$CC
7986old_CFLAGS=$CFLAGS
7987
7988# Set sane defaults for various variables
7989test -z "$CC" && CC=cc
7990test -z "$LTCC" && LTCC=$CC
7991test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7992test -z "$LD" && LD=ld
7993test -z "$ac_objext" && ac_objext=o
7994
7995func_cc_basename $compiler
7996cc_basename=$func_cc_basename_result
7997
7998
7999# Only perform the check for file, if the check method requires it
8000test -z "$MAGIC_CMD" && MAGIC_CMD=file
8001case $deplibs_check_method in
8002file_magic*)
8003  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8005$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8006if ${lt_cv_path_MAGIC_CMD+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  case $MAGIC_CMD in
8010[\\/*] |  ?:[\\/]*)
8011  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8012  ;;
8013*)
8014  lt_save_MAGIC_CMD=$MAGIC_CMD
8015  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8016  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017  for ac_dir in $ac_dummy; do
8018    IFS=$lt_save_ifs
8019    test -z "$ac_dir" && ac_dir=.
8020    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8021      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8022      if test -n "$file_magic_test_file"; then
8023	case $deplibs_check_method in
8024	"file_magic "*)
8025	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8027	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028	    $EGREP "$file_magic_regex" > /dev/null; then
8029	    :
8030	  else
8031	    cat <<_LT_EOF 1>&2
8032
8033*** Warning: the command libtool uses to detect shared libraries,
8034*** $file_magic_cmd, produces output that libtool cannot recognize.
8035*** The result is that libtool may fail to recognize shared libraries
8036*** as such.  This will affect the creation of libtool libraries that
8037*** depend on shared libraries, but programs linked with such libtool
8038*** libraries will work regardless of this problem.  Nevertheless, you
8039*** may want to report the problem to your system manager and/or to
8040*** bug-libtool@gnu.org
8041
8042_LT_EOF
8043	  fi ;;
8044	esac
8045      fi
8046      break
8047    fi
8048  done
8049  IFS=$lt_save_ifs
8050  MAGIC_CMD=$lt_save_MAGIC_CMD
8051  ;;
8052esac
8053fi
8054
8055MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8056if test -n "$MAGIC_CMD"; then
8057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8058$as_echo "$MAGIC_CMD" >&6; }
8059else
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
8062fi
8063
8064
8065
8066
8067
8068if test -z "$lt_cv_path_MAGIC_CMD"; then
8069  if test -n "$ac_tool_prefix"; then
8070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8071$as_echo_n "checking for file... " >&6; }
8072if ${lt_cv_path_MAGIC_CMD+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  case $MAGIC_CMD in
8076[\\/*] |  ?:[\\/]*)
8077  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8078  ;;
8079*)
8080  lt_save_MAGIC_CMD=$MAGIC_CMD
8081  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8082  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083  for ac_dir in $ac_dummy; do
8084    IFS=$lt_save_ifs
8085    test -z "$ac_dir" && ac_dir=.
8086    if test -f "$ac_dir/file"; then
8087      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8088      if test -n "$file_magic_test_file"; then
8089	case $deplibs_check_method in
8090	"file_magic "*)
8091	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8092	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8093	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094	    $EGREP "$file_magic_regex" > /dev/null; then
8095	    :
8096	  else
8097	    cat <<_LT_EOF 1>&2
8098
8099*** Warning: the command libtool uses to detect shared libraries,
8100*** $file_magic_cmd, produces output that libtool cannot recognize.
8101*** The result is that libtool may fail to recognize shared libraries
8102*** as such.  This will affect the creation of libtool libraries that
8103*** depend on shared libraries, but programs linked with such libtool
8104*** libraries will work regardless of this problem.  Nevertheless, you
8105*** may want to report the problem to your system manager and/or to
8106*** bug-libtool@gnu.org
8107
8108_LT_EOF
8109	  fi ;;
8110	esac
8111      fi
8112      break
8113    fi
8114  done
8115  IFS=$lt_save_ifs
8116  MAGIC_CMD=$lt_save_MAGIC_CMD
8117  ;;
8118esac
8119fi
8120
8121MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8122if test -n "$MAGIC_CMD"; then
8123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8124$as_echo "$MAGIC_CMD" >&6; }
8125else
8126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
8128fi
8129
8130
8131  else
8132    MAGIC_CMD=:
8133  fi
8134fi
8135
8136  fi
8137  ;;
8138esac
8139
8140# Use C for the default configuration in the libtool script
8141
8142lt_save_CC=$CC
8143ac_ext=c
8144ac_cpp='$CPP $CPPFLAGS'
8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148
8149
8150# Source file extension for C test sources.
8151ac_ext=c
8152
8153# Object file extension for compiled C test sources.
8154objext=o
8155objext=$objext
8156
8157# Code to be used in simple compile tests
8158lt_simple_compile_test_code="int some_variable = 0;"
8159
8160# Code to be used in simple link tests
8161lt_simple_link_test_code='int main(){return(0);}'
8162
8163
8164
8165
8166
8167
8168
8169# If no C compiler was specified, use CC.
8170LTCC=${LTCC-"$CC"}
8171
8172# If no C compiler flags were specified, use CFLAGS.
8173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8174
8175# Allow CC to be a program name with arguments.
8176compiler=$CC
8177
8178# Save the default compiler, since it gets overwritten when the other
8179# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8180compiler_DEFAULT=$CC
8181
8182# save warnings/boilerplate of simple test code
8183ac_outfile=conftest.$ac_objext
8184echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186_lt_compiler_boilerplate=`cat conftest.err`
8187$RM conftest*
8188
8189ac_outfile=conftest.$ac_objext
8190echo "$lt_simple_link_test_code" >conftest.$ac_ext
8191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192_lt_linker_boilerplate=`cat conftest.err`
8193$RM -r conftest*
8194
8195
8196## CAVEAT EMPTOR:
8197## There is no encapsulation within the following macros, do not change
8198## the running order or otherwise move them around unless you know exactly
8199## what you are doing...
8200if test -n "$compiler"; then
8201
8202lt_prog_compiler_no_builtin_flag=
8203
8204if test yes = "$GCC"; then
8205  case $cc_basename in
8206  nvcc*)
8207    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8208  *)
8209    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8210  esac
8211
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8214if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  lt_cv_prog_compiler_rtti_exceptions=no
8218   ac_outfile=conftest.$ac_objext
8219   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8221   # Insert the option either (1) after the last *FLAGS variable, or
8222   # (2) before a word containing "conftest.", or (3) at the end.
8223   # Note that $ac_compile itself does not contain backslashes and begins
8224   # with a dollar sign (not a hyphen), so the echo should work correctly.
8225   # The option is referenced via a variable to avoid confusing sed.
8226   lt_compile=`echo "$ac_compile" | $SED \
8227   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229   -e 's:$: $lt_compiler_flag:'`
8230   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8231   (eval "$lt_compile" 2>conftest.err)
8232   ac_status=$?
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   if (exit $ac_status) && test -s "$ac_outfile"; then
8236     # The compiler can only warn and ignore the option if not recognized
8237     # So say no if there are warnings other than the usual output.
8238     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8239     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8240     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8241       lt_cv_prog_compiler_rtti_exceptions=yes
8242     fi
8243   fi
8244   $RM conftest*
8245
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8248$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8249
8250if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8251    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8252else
8253    :
8254fi
8255
8256fi
8257
8258
8259
8260
8261
8262
8263  lt_prog_compiler_wl=
8264lt_prog_compiler_pic=
8265lt_prog_compiler_static=
8266
8267
8268  if test yes = "$GCC"; then
8269    lt_prog_compiler_wl='-Wl,'
8270    lt_prog_compiler_static='-static'
8271
8272    case $host_os in
8273      aix*)
8274      # All AIX code is PIC.
8275      if test ia64 = "$host_cpu"; then
8276	# AIX 5 now supports IA64 processor
8277	lt_prog_compiler_static='-Bstatic'
8278      fi
8279      lt_prog_compiler_pic='-fPIC'
8280      ;;
8281
8282    amigaos*)
8283      case $host_cpu in
8284      powerpc)
8285            # see comment about AmigaOS4 .so support
8286            lt_prog_compiler_pic='-fPIC'
8287        ;;
8288      m68k)
8289            # FIXME: we need at least 68020 code to build shared libraries, but
8290            # adding the '-m68020' flag to GCC prevents building anything better,
8291            # like '-m68040'.
8292            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8293        ;;
8294      esac
8295      ;;
8296
8297    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8298      # PIC is the default for these OSes.
8299      ;;
8300
8301    mingw* | cygwin* | pw32* | os2* | cegcc*)
8302      # This hack is so that the source file can tell whether it is being
8303      # built for inclusion in a dll (and should export symbols for example).
8304      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8305      # (--disable-auto-import) libraries
8306      lt_prog_compiler_pic='-DDLL_EXPORT'
8307      case $host_os in
8308      os2*)
8309	lt_prog_compiler_static='$wl-static'
8310	;;
8311      esac
8312      ;;
8313
8314    darwin* | rhapsody*)
8315      # PIC is the default on this platform
8316      # Common symbols not allowed in MH_DYLIB files
8317      lt_prog_compiler_pic='-fno-common'
8318      ;;
8319
8320    haiku*)
8321      # PIC is the default for Haiku.
8322      # The "-static" flag exists, but is broken.
8323      lt_prog_compiler_static=
8324      ;;
8325
8326    hpux*)
8327      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8328      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8329      # sets the default TLS model and affects inlining.
8330      case $host_cpu in
8331      hppa*64*)
8332	# +Z the default
8333	;;
8334      *)
8335	lt_prog_compiler_pic='-fPIC'
8336	;;
8337      esac
8338      ;;
8339
8340    interix[3-9]*)
8341      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8342      # Instead, we relocate shared libraries at runtime.
8343      ;;
8344
8345    msdosdjgpp*)
8346      # Just because we use GCC doesn't mean we suddenly get shared libraries
8347      # on systems that don't support them.
8348      lt_prog_compiler_can_build_shared=no
8349      enable_shared=no
8350      ;;
8351
8352    *nto* | *qnx*)
8353      # QNX uses GNU C++, but need to define -shared option too, otherwise
8354      # it will coredump.
8355      lt_prog_compiler_pic='-fPIC -shared'
8356      ;;
8357
8358    sysv4*MP*)
8359      if test -d /usr/nec; then
8360	lt_prog_compiler_pic=-Kconform_pic
8361      fi
8362      ;;
8363
8364    *)
8365      lt_prog_compiler_pic='-fPIC'
8366      ;;
8367    esac
8368
8369    case $cc_basename in
8370    nvcc*) # Cuda Compiler Driver 2.2
8371      lt_prog_compiler_wl='-Xlinker '
8372      if test -n "$lt_prog_compiler_pic"; then
8373        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8374      fi
8375      ;;
8376    esac
8377  else
8378    # PORTME Check for flag to pass linker flags through the system compiler.
8379    case $host_os in
8380    aix*)
8381      lt_prog_compiler_wl='-Wl,'
8382      if test ia64 = "$host_cpu"; then
8383	# AIX 5 now supports IA64 processor
8384	lt_prog_compiler_static='-Bstatic'
8385      else
8386	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8387      fi
8388      ;;
8389
8390    darwin* | rhapsody*)
8391      # PIC is the default on this platform
8392      # Common symbols not allowed in MH_DYLIB files
8393      lt_prog_compiler_pic='-fno-common'
8394      case $cc_basename in
8395      nagfor*)
8396        # NAG Fortran compiler
8397        lt_prog_compiler_wl='-Wl,-Wl,,'
8398        lt_prog_compiler_pic='-PIC'
8399        lt_prog_compiler_static='-Bstatic'
8400        ;;
8401      esac
8402      ;;
8403
8404    mingw* | cygwin* | pw32* | os2* | cegcc*)
8405      # This hack is so that the source file can tell whether it is being
8406      # built for inclusion in a dll (and should export symbols for example).
8407      lt_prog_compiler_pic='-DDLL_EXPORT'
8408      case $host_os in
8409      os2*)
8410	lt_prog_compiler_static='$wl-static'
8411	;;
8412      esac
8413      ;;
8414
8415    hpux9* | hpux10* | hpux11*)
8416      lt_prog_compiler_wl='-Wl,'
8417      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8418      # not for PA HP-UX.
8419      case $host_cpu in
8420      hppa*64*|ia64*)
8421	# +Z the default
8422	;;
8423      *)
8424	lt_prog_compiler_pic='+Z'
8425	;;
8426      esac
8427      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8428      lt_prog_compiler_static='$wl-a ${wl}archive'
8429      ;;
8430
8431    irix5* | irix6* | nonstopux*)
8432      lt_prog_compiler_wl='-Wl,'
8433      # PIC (with -KPIC) is the default.
8434      lt_prog_compiler_static='-non_shared'
8435      ;;
8436
8437    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8438      case $cc_basename in
8439      # old Intel for x86_64, which still supported -KPIC.
8440      ecc*)
8441	lt_prog_compiler_wl='-Wl,'
8442	lt_prog_compiler_pic='-KPIC'
8443	lt_prog_compiler_static='-static'
8444        ;;
8445      # icc used to be incompatible with GCC.
8446      # ICC 10 doesn't accept -KPIC any more.
8447      icc* | ifort*)
8448	lt_prog_compiler_wl='-Wl,'
8449	lt_prog_compiler_pic='-fPIC'
8450	lt_prog_compiler_static='-static'
8451        ;;
8452      # Lahey Fortran 8.1.
8453      lf95*)
8454	lt_prog_compiler_wl='-Wl,'
8455	lt_prog_compiler_pic='--shared'
8456	lt_prog_compiler_static='--static'
8457	;;
8458      nagfor*)
8459	# NAG Fortran compiler
8460	lt_prog_compiler_wl='-Wl,-Wl,,'
8461	lt_prog_compiler_pic='-PIC'
8462	lt_prog_compiler_static='-Bstatic'
8463	;;
8464      tcc*)
8465	# Fabrice Bellard et al's Tiny C Compiler
8466	lt_prog_compiler_wl='-Wl,'
8467	lt_prog_compiler_pic='-fPIC'
8468	lt_prog_compiler_static='-static'
8469	;;
8470      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8471        # Portland Group compilers (*not* the Pentium gcc compiler,
8472	# which looks to be a dead project)
8473	lt_prog_compiler_wl='-Wl,'
8474	lt_prog_compiler_pic='-fpic'
8475	lt_prog_compiler_static='-Bstatic'
8476        ;;
8477      ccc*)
8478        lt_prog_compiler_wl='-Wl,'
8479        # All Alpha code is PIC.
8480        lt_prog_compiler_static='-non_shared'
8481        ;;
8482      xl* | bgxl* | bgf* | mpixl*)
8483	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8484	lt_prog_compiler_wl='-Wl,'
8485	lt_prog_compiler_pic='-qpic'
8486	lt_prog_compiler_static='-qstaticlink'
8487	;;
8488      *)
8489	case `$CC -V 2>&1 | sed 5q` in
8490	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8491	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8492	  lt_prog_compiler_pic='-KPIC'
8493	  lt_prog_compiler_static='-Bstatic'
8494	  lt_prog_compiler_wl=''
8495	  ;;
8496	*Sun\ F* | *Sun*Fortran*)
8497	  lt_prog_compiler_pic='-KPIC'
8498	  lt_prog_compiler_static='-Bstatic'
8499	  lt_prog_compiler_wl='-Qoption ld '
8500	  ;;
8501	*Sun\ C*)
8502	  # Sun C 5.9
8503	  lt_prog_compiler_pic='-KPIC'
8504	  lt_prog_compiler_static='-Bstatic'
8505	  lt_prog_compiler_wl='-Wl,'
8506	  ;;
8507        *Intel*\ [CF]*Compiler*)
8508	  lt_prog_compiler_wl='-Wl,'
8509	  lt_prog_compiler_pic='-fPIC'
8510	  lt_prog_compiler_static='-static'
8511	  ;;
8512	*Portland\ Group*)
8513	  lt_prog_compiler_wl='-Wl,'
8514	  lt_prog_compiler_pic='-fpic'
8515	  lt_prog_compiler_static='-Bstatic'
8516	  ;;
8517	esac
8518	;;
8519      esac
8520      ;;
8521
8522    newsos6)
8523      lt_prog_compiler_pic='-KPIC'
8524      lt_prog_compiler_static='-Bstatic'
8525      ;;
8526
8527    *nto* | *qnx*)
8528      # QNX uses GNU C++, but need to define -shared option too, otherwise
8529      # it will coredump.
8530      lt_prog_compiler_pic='-fPIC -shared'
8531      ;;
8532
8533    osf3* | osf4* | osf5*)
8534      lt_prog_compiler_wl='-Wl,'
8535      # All OSF/1 code is PIC.
8536      lt_prog_compiler_static='-non_shared'
8537      ;;
8538
8539    rdos*)
8540      lt_prog_compiler_static='-non_shared'
8541      ;;
8542
8543    solaris*)
8544      lt_prog_compiler_pic='-KPIC'
8545      lt_prog_compiler_static='-Bstatic'
8546      case $cc_basename in
8547      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8548	lt_prog_compiler_wl='-Qoption ld ';;
8549      *)
8550	lt_prog_compiler_wl='-Wl,';;
8551      esac
8552      ;;
8553
8554    sunos4*)
8555      lt_prog_compiler_wl='-Qoption ld '
8556      lt_prog_compiler_pic='-PIC'
8557      lt_prog_compiler_static='-Bstatic'
8558      ;;
8559
8560    sysv4 | sysv4.2uw2* | sysv4.3*)
8561      lt_prog_compiler_wl='-Wl,'
8562      lt_prog_compiler_pic='-KPIC'
8563      lt_prog_compiler_static='-Bstatic'
8564      ;;
8565
8566    sysv4*MP*)
8567      if test -d /usr/nec; then
8568	lt_prog_compiler_pic='-Kconform_pic'
8569	lt_prog_compiler_static='-Bstatic'
8570      fi
8571      ;;
8572
8573    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8574      lt_prog_compiler_wl='-Wl,'
8575      lt_prog_compiler_pic='-KPIC'
8576      lt_prog_compiler_static='-Bstatic'
8577      ;;
8578
8579    unicos*)
8580      lt_prog_compiler_wl='-Wl,'
8581      lt_prog_compiler_can_build_shared=no
8582      ;;
8583
8584    uts4*)
8585      lt_prog_compiler_pic='-pic'
8586      lt_prog_compiler_static='-Bstatic'
8587      ;;
8588
8589    *)
8590      lt_prog_compiler_can_build_shared=no
8591      ;;
8592    esac
8593  fi
8594
8595case $host_os in
8596  # For platforms that do not support PIC, -DPIC is meaningless:
8597  *djgpp*)
8598    lt_prog_compiler_pic=
8599    ;;
8600  *)
8601    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8602    ;;
8603esac
8604
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8606$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8607if ${lt_cv_prog_compiler_pic+:} false; then :
8608  $as_echo_n "(cached) " >&6
8609else
8610  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8613$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8614lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8615
8616#
8617# Check to make sure the PIC flag actually works.
8618#
8619if test -n "$lt_prog_compiler_pic"; then
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8621$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8622if ${lt_cv_prog_compiler_pic_works+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  lt_cv_prog_compiler_pic_works=no
8626   ac_outfile=conftest.$ac_objext
8627   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8629   # Insert the option either (1) after the last *FLAGS variable, or
8630   # (2) before a word containing "conftest.", or (3) at the end.
8631   # Note that $ac_compile itself does not contain backslashes and begins
8632   # with a dollar sign (not a hyphen), so the echo should work correctly.
8633   # The option is referenced via a variable to avoid confusing sed.
8634   lt_compile=`echo "$ac_compile" | $SED \
8635   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637   -e 's:$: $lt_compiler_flag:'`
8638   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639   (eval "$lt_compile" 2>conftest.err)
8640   ac_status=$?
8641   cat conftest.err >&5
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   if (exit $ac_status) && test -s "$ac_outfile"; then
8644     # The compiler can only warn and ignore the option if not recognized
8645     # So say no if there are warnings other than the usual output.
8646     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8647     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8649       lt_cv_prog_compiler_pic_works=yes
8650     fi
8651   fi
8652   $RM conftest*
8653
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8656$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8657
8658if test yes = "$lt_cv_prog_compiler_pic_works"; then
8659    case $lt_prog_compiler_pic in
8660     "" | " "*) ;;
8661     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8662     esac
8663else
8664    lt_prog_compiler_pic=
8665     lt_prog_compiler_can_build_shared=no
8666fi
8667
8668fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680#
8681# Check to make sure the static flag actually works.
8682#
8683wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8685$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8686if ${lt_cv_prog_compiler_static_works+:} false; then :
8687  $as_echo_n "(cached) " >&6
8688else
8689  lt_cv_prog_compiler_static_works=no
8690   save_LDFLAGS=$LDFLAGS
8691   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8692   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8693   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8694     # The linker can only warn and ignore the option if not recognized
8695     # So say no if there are warnings
8696     if test -s conftest.err; then
8697       # Append any errors to the config.log.
8698       cat conftest.err 1>&5
8699       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8700       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701       if diff conftest.exp conftest.er2 >/dev/null; then
8702         lt_cv_prog_compiler_static_works=yes
8703       fi
8704     else
8705       lt_cv_prog_compiler_static_works=yes
8706     fi
8707   fi
8708   $RM -r conftest*
8709   LDFLAGS=$save_LDFLAGS
8710
8711fi
8712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8713$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8714
8715if test yes = "$lt_cv_prog_compiler_static_works"; then
8716    :
8717else
8718    lt_prog_compiler_static=
8719fi
8720
8721
8722
8723
8724
8725
8726
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8728$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8729if ${lt_cv_prog_compiler_c_o+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  lt_cv_prog_compiler_c_o=no
8733   $RM -r conftest 2>/dev/null
8734   mkdir conftest
8735   cd conftest
8736   mkdir out
8737   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738
8739   lt_compiler_flag="-o out/conftest2.$ac_objext"
8740   # Insert the option either (1) after the last *FLAGS variable, or
8741   # (2) before a word containing "conftest.", or (3) at the end.
8742   # Note that $ac_compile itself does not contain backslashes and begins
8743   # with a dollar sign (not a hyphen), so the echo should work correctly.
8744   lt_compile=`echo "$ac_compile" | $SED \
8745   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747   -e 's:$: $lt_compiler_flag:'`
8748   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8749   (eval "$lt_compile" 2>out/conftest.err)
8750   ac_status=$?
8751   cat out/conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8754   then
8755     # The compiler can only warn and ignore the option if not recognized
8756     # So say no if there are warnings
8757     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8758     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8759     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8760       lt_cv_prog_compiler_c_o=yes
8761     fi
8762   fi
8763   chmod u+w . 2>&5
8764   $RM conftest*
8765   # SGI C++ compiler will create directory out/ii_files/ for
8766   # template instantiation
8767   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8768   $RM out/* && rmdir out
8769   cd ..
8770   $RM -r conftest
8771   $RM conftest*
8772
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8775$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8776
8777
8778
8779
8780
8781
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784if ${lt_cv_prog_compiler_c_o+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  lt_cv_prog_compiler_c_o=no
8788   $RM -r conftest 2>/dev/null
8789   mkdir conftest
8790   cd conftest
8791   mkdir out
8792   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8793
8794   lt_compiler_flag="-o out/conftest2.$ac_objext"
8795   # Insert the option either (1) after the last *FLAGS variable, or
8796   # (2) before a word containing "conftest.", or (3) at the end.
8797   # Note that $ac_compile itself does not contain backslashes and begins
8798   # with a dollar sign (not a hyphen), so the echo should work correctly.
8799   lt_compile=`echo "$ac_compile" | $SED \
8800   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802   -e 's:$: $lt_compiler_flag:'`
8803   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8804   (eval "$lt_compile" 2>out/conftest.err)
8805   ac_status=$?
8806   cat out/conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809   then
8810     # The compiler can only warn and ignore the option if not recognized
8811     # So say no if there are warnings
8812     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8813     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815       lt_cv_prog_compiler_c_o=yes
8816     fi
8817   fi
8818   chmod u+w . 2>&5
8819   $RM conftest*
8820   # SGI C++ compiler will create directory out/ii_files/ for
8821   # template instantiation
8822   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823   $RM out/* && rmdir out
8824   cd ..
8825   $RM -r conftest
8826   $RM conftest*
8827
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8831
8832
8833
8834
8835hard_links=nottested
8836if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8837  # do not overwrite the value of need_locks provided by the user
8838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8839$as_echo_n "checking if we can lock with hard links... " >&6; }
8840  hard_links=yes
8841  $RM conftest*
8842  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8843  touch conftest.a
8844  ln conftest.a conftest.b 2>&5 || hard_links=no
8845  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8847$as_echo "$hard_links" >&6; }
8848  if test no = "$hard_links"; then
8849    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8850$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8851    need_locks=warn
8852  fi
8853else
8854  need_locks=no
8855fi
8856
8857
8858
8859
8860
8861
8862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8863$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8864
8865  runpath_var=
8866  allow_undefined_flag=
8867  always_export_symbols=no
8868  archive_cmds=
8869  archive_expsym_cmds=
8870  compiler_needs_object=no
8871  enable_shared_with_static_runtimes=no
8872  export_dynamic_flag_spec=
8873  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8874  hardcode_automatic=no
8875  hardcode_direct=no
8876  hardcode_direct_absolute=no
8877  hardcode_libdir_flag_spec=
8878  hardcode_libdir_separator=
8879  hardcode_minus_L=no
8880  hardcode_shlibpath_var=unsupported
8881  inherit_rpath=no
8882  link_all_deplibs=unknown
8883  module_cmds=
8884  module_expsym_cmds=
8885  old_archive_from_new_cmds=
8886  old_archive_from_expsyms_cmds=
8887  thread_safe_flag_spec=
8888  whole_archive_flag_spec=
8889  # include_expsyms should be a list of space-separated symbols to be *always*
8890  # included in the symbol list
8891  include_expsyms=
8892  # exclude_expsyms can be an extended regexp of symbols to exclude
8893  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8894  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8895  # as well as any symbol that contains 'd'.
8896  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8897  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8898  # platforms (ab)use it in PIC code, but their linkers get confused if
8899  # the symbol is explicitly referenced.  Since portable code cannot
8900  # rely on this symbol name, it's probably fine to never include it in
8901  # preloaded symbol tables.
8902  # Exclude shared library initialization/finalization symbols.
8903  extract_expsyms_cmds=
8904
8905  case $host_os in
8906  cygwin* | mingw* | pw32* | cegcc*)
8907    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8908    # When not using gcc, we currently assume that we are using
8909    # Microsoft Visual C++.
8910    if test yes != "$GCC"; then
8911      with_gnu_ld=no
8912    fi
8913    ;;
8914  interix*)
8915    # we just hope/assume this is gcc and not c89 (= MSVC++)
8916    with_gnu_ld=yes
8917    ;;
8918  openbsd* | bitrig*)
8919    with_gnu_ld=no
8920    ;;
8921  esac
8922
8923  ld_shlibs=yes
8924
8925  # On some targets, GNU ld is compatible enough with the native linker
8926  # that we're better off using the native interface for both.
8927  lt_use_gnu_ld_interface=no
8928  if test yes = "$with_gnu_ld"; then
8929    case $host_os in
8930      aix*)
8931	# The AIX port of GNU ld has always aspired to compatibility
8932	# with the native linker.  However, as the warning in the GNU ld
8933	# block says, versions before 2.19.5* couldn't really create working
8934	# shared libraries, regardless of the interface used.
8935	case `$LD -v 2>&1` in
8936	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8937	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8938	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8939	  *)
8940	    lt_use_gnu_ld_interface=yes
8941	    ;;
8942	esac
8943	;;
8944      *)
8945	lt_use_gnu_ld_interface=yes
8946	;;
8947    esac
8948  fi
8949
8950  if test yes = "$lt_use_gnu_ld_interface"; then
8951    # If archive_cmds runs LD, not CC, wlarc should be empty
8952    wlarc='$wl'
8953
8954    # Set some defaults for GNU ld with shared library support. These
8955    # are reset later if shared libraries are not supported. Putting them
8956    # here allows them to be overridden if necessary.
8957    runpath_var=LD_RUN_PATH
8958    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8959    export_dynamic_flag_spec='$wl--export-dynamic'
8960    # ancient GNU ld didn't support --whole-archive et. al.
8961    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8962      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8963    else
8964      whole_archive_flag_spec=
8965    fi
8966    supports_anon_versioning=no
8967    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8968      *GNU\ gold*) supports_anon_versioning=yes ;;
8969      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8970      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8971      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8972      *\ 2.11.*) ;; # other 2.11 versions
8973      *) supports_anon_versioning=yes ;;
8974    esac
8975
8976    # See if GNU ld supports shared libraries.
8977    case $host_os in
8978    aix[3-9]*)
8979      # On AIX/PPC, the GNU linker is very broken
8980      if test ia64 != "$host_cpu"; then
8981	ld_shlibs=no
8982	cat <<_LT_EOF 1>&2
8983
8984*** Warning: the GNU linker, at least up to release 2.19, is reported
8985*** to be unable to reliably create shared libraries on AIX.
8986*** Therefore, libtool is disabling shared libraries support.  If you
8987*** really care for shared libraries, you may want to install binutils
8988*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8989*** You will then need to restart the configuration process.
8990
8991_LT_EOF
8992      fi
8993      ;;
8994
8995    amigaos*)
8996      case $host_cpu in
8997      powerpc)
8998            # see comment about AmigaOS4 .so support
8999            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9000            archive_expsym_cmds=''
9001        ;;
9002      m68k)
9003            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)'
9004            hardcode_libdir_flag_spec='-L$libdir'
9005            hardcode_minus_L=yes
9006        ;;
9007      esac
9008      ;;
9009
9010    beos*)
9011      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9012	allow_undefined_flag=unsupported
9013	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9014	# support --undefined.  This deserves some investigation.  FIXME
9015	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9016      else
9017	ld_shlibs=no
9018      fi
9019      ;;
9020
9021    cygwin* | mingw* | pw32* | cegcc*)
9022      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9023      # as there is no search path for DLLs.
9024      hardcode_libdir_flag_spec='-L$libdir'
9025      export_dynamic_flag_spec='$wl--export-all-symbols'
9026      allow_undefined_flag=unsupported
9027      always_export_symbols=no
9028      enable_shared_with_static_runtimes=yes
9029      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'
9030      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9031
9032      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9033        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9034	# If the export-symbols file already is a .def file, use it as
9035	# is; otherwise, prepend EXPORTS...
9036	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9037          cp $export_symbols $output_objdir/$soname.def;
9038        else
9039          echo EXPORTS > $output_objdir/$soname.def;
9040          cat $export_symbols >> $output_objdir/$soname.def;
9041        fi~
9042        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9043      else
9044	ld_shlibs=no
9045      fi
9046      ;;
9047
9048    haiku*)
9049      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9050      link_all_deplibs=yes
9051      ;;
9052
9053    os2*)
9054      hardcode_libdir_flag_spec='-L$libdir'
9055      hardcode_minus_L=yes
9056      allow_undefined_flag=unsupported
9057      shrext_cmds=.dll
9058      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9059	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9060	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9061	$ECHO EXPORTS >> $output_objdir/$libname.def~
9062	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9063	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9064	emximp -o $lib $output_objdir/$libname.def'
9065      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9066	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9067	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9068	$ECHO EXPORTS >> $output_objdir/$libname.def~
9069	prefix_cmds="$SED"~
9070	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9071	  prefix_cmds="$prefix_cmds -e 1d";
9072	fi~
9073	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9074	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9075	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9076	emximp -o $lib $output_objdir/$libname.def'
9077      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9078      enable_shared_with_static_runtimes=yes
9079      ;;
9080
9081    interix[3-9]*)
9082      hardcode_direct=no
9083      hardcode_shlibpath_var=no
9084      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9085      export_dynamic_flag_spec='$wl-E'
9086      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9087      # Instead, shared libraries are loaded at an image base (0x10000000 by
9088      # default) and relocated if they conflict, which is a slow very memory
9089      # consuming and fragmenting process.  To avoid this, we pick a random,
9090      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9091      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9092      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9093      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'
9094      ;;
9095
9096    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9097      tmp_diet=no
9098      if test linux-dietlibc = "$host_os"; then
9099	case $cc_basename in
9100	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9101	esac
9102      fi
9103      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9104	 && test no = "$tmp_diet"
9105      then
9106	tmp_addflag=' $pic_flag'
9107	tmp_sharedflag='-shared'
9108	case $cc_basename,$host_cpu in
9109        pgcc*)				# Portland Group C compiler
9110	  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'
9111	  tmp_addflag=' $pic_flag'
9112	  ;;
9113	pgf77* | pgf90* | pgf95* | pgfortran*)
9114					# Portland Group f77 and f90 compilers
9115	  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'
9116	  tmp_addflag=' $pic_flag -Mnomain' ;;
9117	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9118	  tmp_addflag=' -i_dynamic' ;;
9119	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9120	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9121	ifc* | ifort*)			# Intel Fortran compiler
9122	  tmp_addflag=' -nofor_main' ;;
9123	lf95*)				# Lahey Fortran 8.1
9124	  whole_archive_flag_spec=
9125	  tmp_sharedflag='--shared' ;;
9126        nagfor*)                        # NAGFOR 5.3
9127          tmp_sharedflag='-Wl,-shared' ;;
9128	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9129	  tmp_sharedflag='-qmkshrobj'
9130	  tmp_addflag= ;;
9131	nvcc*)	# Cuda Compiler Driver 2.2
9132	  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'
9133	  compiler_needs_object=yes
9134	  ;;
9135	esac
9136	case `$CC -V 2>&1 | sed 5q` in
9137	*Sun\ C*)			# Sun C 5.9
9138	  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'
9139	  compiler_needs_object=yes
9140	  tmp_sharedflag='-G' ;;
9141	*Sun\ F*)			# Sun Fortran 8.3
9142	  tmp_sharedflag='-G' ;;
9143	esac
9144	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9145
9146        if test yes = "$supports_anon_versioning"; then
9147          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9148            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9149            echo "local: *; };" >> $output_objdir/$libname.ver~
9150            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9151        fi
9152
9153	case $cc_basename in
9154	tcc*)
9155	  export_dynamic_flag_spec='-rdynamic'
9156	  ;;
9157	xlf* | bgf* | bgxlf* | mpixlf*)
9158	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9159	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9160	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9161	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9162	  if test yes = "$supports_anon_versioning"; then
9163	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9164              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9165              echo "local: *; };" >> $output_objdir/$libname.ver~
9166              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9167	  fi
9168	  ;;
9169	esac
9170      else
9171        ld_shlibs=no
9172      fi
9173      ;;
9174
9175    netbsd*)
9176      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9177	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9178	wlarc=
9179      else
9180	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9181	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9182      fi
9183      ;;
9184
9185    solaris*)
9186      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9187	ld_shlibs=no
9188	cat <<_LT_EOF 1>&2
9189
9190*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9191*** create shared libraries on Solaris systems.  Therefore, libtool
9192*** is disabling shared libraries support.  We urge you to upgrade GNU
9193*** binutils to release 2.9.1 or newer.  Another option is to modify
9194*** your PATH or compiler configuration so that the native linker is
9195*** used, and then restart.
9196
9197_LT_EOF
9198      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9199	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9200	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9201      else
9202	ld_shlibs=no
9203      fi
9204      ;;
9205
9206    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9207      case `$LD -v 2>&1` in
9208        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9209	ld_shlibs=no
9210	cat <<_LT_EOF 1>&2
9211
9212*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9213*** reliably create shared libraries on SCO systems.  Therefore, libtool
9214*** is disabling shared libraries support.  We urge you to upgrade GNU
9215*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9216*** your PATH or compiler configuration so that the native linker is
9217*** used, and then restart.
9218
9219_LT_EOF
9220	;;
9221	*)
9222	  # For security reasons, it is highly recommended that you always
9223	  # use absolute paths for naming shared libraries, and exclude the
9224	  # DT_RUNPATH tag from executables and libraries.  But doing so
9225	  # requires that you compile everything twice, which is a pain.
9226	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9228	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9229	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9230	  else
9231	    ld_shlibs=no
9232	  fi
9233	;;
9234      esac
9235      ;;
9236
9237    sunos4*)
9238      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239      wlarc=
9240      hardcode_direct=yes
9241      hardcode_shlibpath_var=no
9242      ;;
9243
9244    *)
9245      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9246	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9247	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9248      else
9249	ld_shlibs=no
9250      fi
9251      ;;
9252    esac
9253
9254    if test no = "$ld_shlibs"; then
9255      runpath_var=
9256      hardcode_libdir_flag_spec=
9257      export_dynamic_flag_spec=
9258      whole_archive_flag_spec=
9259    fi
9260  else
9261    # PORTME fill in a description of your system's linker (not GNU ld)
9262    case $host_os in
9263    aix3*)
9264      allow_undefined_flag=unsupported
9265      always_export_symbols=yes
9266      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'
9267      # Note: this linker hardcodes the directories in LIBPATH if there
9268      # are no directories specified by -L.
9269      hardcode_minus_L=yes
9270      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9271	# Neither direct hardcoding nor static linking is supported with a
9272	# broken collect2.
9273	hardcode_direct=unsupported
9274      fi
9275      ;;
9276
9277    aix[4-9]*)
9278      if test ia64 = "$host_cpu"; then
9279	# On IA64, the linker does run time linking by default, so we don't
9280	# have to do anything special.
9281	aix_use_runtimelinking=no
9282	exp_sym_flag='-Bexport'
9283	no_entry_flag=
9284      else
9285	# If we're using GNU nm, then we don't want the "-C" option.
9286	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9287	# Without the "-l" option, or with the "-B" option, AIX nm treats
9288	# weak defined symbols like other global defined symbols, whereas
9289	# GNU nm marks them as "W".
9290	# While the 'weak' keyword is ignored in the Export File, we need
9291	# it in the Import File for the 'aix-soname' feature, so we have
9292	# to replace the "-B" option with "-P" for AIX nm.
9293	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9294	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9295	else
9296	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9297	fi
9298	aix_use_runtimelinking=no
9299
9300	# Test if we are trying to use run time linking or normal
9301	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9302	# have runtime linking enabled, and use it for executables.
9303	# For shared libraries, we enable/disable runtime linking
9304	# depending on the kind of the shared library created -
9305	# when "with_aix_soname,aix_use_runtimelinking" is:
9306	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9307	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9308	#            lib.a           static archive
9309	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9310	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9311	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9312	#            lib.a(lib.so.V) shared, rtl:no
9313	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9314	#            lib.a           static archive
9315	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9316	  for ld_flag in $LDFLAGS; do
9317	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9318	    aix_use_runtimelinking=yes
9319	    break
9320	  fi
9321	  done
9322	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9323	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9324	    # so we don't have lib.a shared libs to link our executables.
9325	    # We have to force runtime linking in this case.
9326	    aix_use_runtimelinking=yes
9327	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9328	  fi
9329	  ;;
9330	esac
9331
9332	exp_sym_flag='-bexport'
9333	no_entry_flag='-bnoentry'
9334      fi
9335
9336      # When large executables or shared objects are built, AIX ld can
9337      # have problems creating the table of contents.  If linking a library
9338      # or program results in "error TOC overflow" add -mminimal-toc to
9339      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9340      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9341
9342      archive_cmds=''
9343      hardcode_direct=yes
9344      hardcode_direct_absolute=yes
9345      hardcode_libdir_separator=':'
9346      link_all_deplibs=yes
9347      file_list_spec='$wl-f,'
9348      case $with_aix_soname,$aix_use_runtimelinking in
9349      aix,*) ;; # traditional, no import file
9350      svr4,* | *,yes) # use import file
9351	# The Import File defines what to hardcode.
9352	hardcode_direct=no
9353	hardcode_direct_absolute=no
9354	;;
9355      esac
9356
9357      if test yes = "$GCC"; then
9358	case $host_os in aix4.[012]|aix4.[012].*)
9359	# We only want to do this on AIX 4.2 and lower, the check
9360	# below for broken collect2 doesn't work under 4.3+
9361	  collect2name=`$CC -print-prog-name=collect2`
9362	  if test -f "$collect2name" &&
9363	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9364	  then
9365	  # We have reworked collect2
9366	  :
9367	  else
9368	  # We have old collect2
9369	  hardcode_direct=unsupported
9370	  # It fails to find uninstalled libraries when the uninstalled
9371	  # path is not listed in the libpath.  Setting hardcode_minus_L
9372	  # to unsupported forces relinking
9373	  hardcode_minus_L=yes
9374	  hardcode_libdir_flag_spec='-L$libdir'
9375	  hardcode_libdir_separator=
9376	  fi
9377	  ;;
9378	esac
9379	shared_flag='-shared'
9380	if test yes = "$aix_use_runtimelinking"; then
9381	  shared_flag="$shared_flag "'$wl-G'
9382	fi
9383	# Need to ensure runtime linking is disabled for the traditional
9384	# shared library, or the linker may eventually find shared libraries
9385	# /with/ Import File - we do not want to mix them.
9386	shared_flag_aix='-shared'
9387	shared_flag_svr4='-shared $wl-G'
9388      else
9389	# not using gcc
9390	if test ia64 = "$host_cpu"; then
9391	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9392	# chokes on -Wl,-G. The following line is correct:
9393	  shared_flag='-G'
9394	else
9395	  if test yes = "$aix_use_runtimelinking"; then
9396	    shared_flag='$wl-G'
9397	  else
9398	    shared_flag='$wl-bM:SRE'
9399	  fi
9400	  shared_flag_aix='$wl-bM:SRE'
9401	  shared_flag_svr4='$wl-G'
9402	fi
9403      fi
9404
9405      export_dynamic_flag_spec='$wl-bexpall'
9406      # It seems that -bexpall does not export symbols beginning with
9407      # underscore (_), so it is better to generate a list of symbols to export.
9408      always_export_symbols=yes
9409      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9410	# Warning - without using the other runtime loading flags (-brtl),
9411	# -berok will link without error, but may produce a broken library.
9412	allow_undefined_flag='-berok'
9413        # Determine the default libpath from the value encoded in an
9414        # empty executable.
9415        if test set = "${lt_cv_aix_libpath+set}"; then
9416  aix_libpath=$lt_cv_aix_libpath
9417else
9418  if ${lt_cv_aix_libpath_+:} false; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423
9424int
9425main ()
9426{
9427
9428  ;
9429  return 0;
9430}
9431_ACEOF
9432if ac_fn_c_try_link "$LINENO"; then :
9433
9434  lt_aix_libpath_sed='
9435      /Import File Strings/,/^$/ {
9436	  /^0/ {
9437	      s/^0  *\([^ ]*\) *$/\1/
9438	      p
9439	  }
9440      }'
9441  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9442  # Check for a 64-bit object if we didn't find anything.
9443  if test -z "$lt_cv_aix_libpath_"; then
9444    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445  fi
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448    conftest$ac_exeext conftest.$ac_ext
9449  if test -z "$lt_cv_aix_libpath_"; then
9450    lt_cv_aix_libpath_=/usr/lib:/lib
9451  fi
9452
9453fi
9454
9455  aix_libpath=$lt_cv_aix_libpath_
9456fi
9457
9458        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9459        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9460      else
9461	if test ia64 = "$host_cpu"; then
9462	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9463	  allow_undefined_flag="-z nodefs"
9464	  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"
9465	else
9466	 # Determine the default libpath from the value encoded in an
9467	 # empty executable.
9468	 if test set = "${lt_cv_aix_libpath+set}"; then
9469  aix_libpath=$lt_cv_aix_libpath
9470else
9471  if ${lt_cv_aix_libpath_+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476
9477int
9478main ()
9479{
9480
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485if ac_fn_c_try_link "$LINENO"; then :
9486
9487  lt_aix_libpath_sed='
9488      /Import File Strings/,/^$/ {
9489	  /^0/ {
9490	      s/^0  *\([^ ]*\) *$/\1/
9491	      p
9492	  }
9493      }'
9494  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495  # Check for a 64-bit object if we didn't find anything.
9496  if test -z "$lt_cv_aix_libpath_"; then
9497    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498  fi
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502  if test -z "$lt_cv_aix_libpath_"; then
9503    lt_cv_aix_libpath_=/usr/lib:/lib
9504  fi
9505
9506fi
9507
9508  aix_libpath=$lt_cv_aix_libpath_
9509fi
9510
9511	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9512	  # Warning - without using the other run time loading flags,
9513	  # -berok will link without error, but may produce a broken library.
9514	  no_undefined_flag=' $wl-bernotok'
9515	  allow_undefined_flag=' $wl-berok'
9516	  if test yes = "$with_gnu_ld"; then
9517	    # We only use this code for GNU lds that support --whole-archive.
9518	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9519	  else
9520	    # Exported symbols can be pulled into shared objects from archives
9521	    whole_archive_flag_spec='$convenience'
9522	  fi
9523	  archive_cmds_need_lc=yes
9524	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9525	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9526	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9527	  if test svr4 != "$with_aix_soname"; then
9528	    # This is similar to how AIX traditionally builds its shared libraries.
9529	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9530	  fi
9531	  if test aix != "$with_aix_soname"; then
9532	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9533	  else
9534	    # used by -dlpreopen to get the symbols
9535	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9536	  fi
9537	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9538	fi
9539      fi
9540      ;;
9541
9542    amigaos*)
9543      case $host_cpu in
9544      powerpc)
9545            # see comment about AmigaOS4 .so support
9546            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9547            archive_expsym_cmds=''
9548        ;;
9549      m68k)
9550            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)'
9551            hardcode_libdir_flag_spec='-L$libdir'
9552            hardcode_minus_L=yes
9553        ;;
9554      esac
9555      ;;
9556
9557    bsdi[45]*)
9558      export_dynamic_flag_spec=-rdynamic
9559      ;;
9560
9561    cygwin* | mingw* | pw32* | cegcc*)
9562      # When not using gcc, we currently assume that we are using
9563      # Microsoft Visual C++.
9564      # hardcode_libdir_flag_spec is actually meaningless, as there is
9565      # no search path for DLLs.
9566      case $cc_basename in
9567      cl*)
9568	# Native MSVC
9569	hardcode_libdir_flag_spec=' '
9570	allow_undefined_flag=unsupported
9571	always_export_symbols=yes
9572	file_list_spec='@'
9573	# Tell ltmain to make .lib files, not .a files.
9574	libext=lib
9575	# Tell ltmain to make .dll files, not .so files.
9576	shrext_cmds=.dll
9577	# FIXME: Setting linknames here is a bad hack.
9578	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9579	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9580            cp "$export_symbols" "$output_objdir/$soname.def";
9581            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9582          else
9583            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9584          fi~
9585          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9586          linknames='
9587	# The linker will not automatically build a static lib if we build a DLL.
9588	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9589	enable_shared_with_static_runtimes=yes
9590	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9591	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9592	# Don't use ranlib
9593	old_postinstall_cmds='chmod 644 $oldlib'
9594	postlink_cmds='lt_outputfile="@OUTPUT@"~
9595          lt_tool_outputfile="@TOOL_OUTPUT@"~
9596          case $lt_outputfile in
9597            *.exe|*.EXE) ;;
9598            *)
9599              lt_outputfile=$lt_outputfile.exe
9600              lt_tool_outputfile=$lt_tool_outputfile.exe
9601              ;;
9602          esac~
9603          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9604            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9605            $RM "$lt_outputfile.manifest";
9606          fi'
9607	;;
9608      *)
9609	# Assume MSVC wrapper
9610	hardcode_libdir_flag_spec=' '
9611	allow_undefined_flag=unsupported
9612	# Tell ltmain to make .lib files, not .a files.
9613	libext=lib
9614	# Tell ltmain to make .dll files, not .so files.
9615	shrext_cmds=.dll
9616	# FIXME: Setting linknames here is a bad hack.
9617	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9618	# The linker will automatically build a .lib file if we build a DLL.
9619	old_archive_from_new_cmds='true'
9620	# FIXME: Should let the user specify the lib program.
9621	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9622	enable_shared_with_static_runtimes=yes
9623	;;
9624      esac
9625      ;;
9626
9627    darwin* | rhapsody*)
9628
9629
9630  archive_cmds_need_lc=no
9631  hardcode_direct=no
9632  hardcode_automatic=yes
9633  hardcode_shlibpath_var=unsupported
9634  if test yes = "$lt_cv_ld_force_load"; then
9635    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\"`'
9636
9637  else
9638    whole_archive_flag_spec=''
9639  fi
9640  link_all_deplibs=yes
9641  allow_undefined_flag=$_lt_dar_allow_undefined
9642  case $cc_basename in
9643     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9644     *) _lt_dar_can_shared=$GCC ;;
9645  esac
9646  if test yes = "$_lt_dar_can_shared"; then
9647    output_verbose_link_cmd=func_echo_all
9648    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9649    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9650    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"
9651    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"
9652
9653  else
9654  ld_shlibs=no
9655  fi
9656
9657      ;;
9658
9659    dgux*)
9660      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661      hardcode_libdir_flag_spec='-L$libdir'
9662      hardcode_shlibpath_var=no
9663      ;;
9664
9665    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9666    # support.  Future versions do this automatically, but an explicit c++rt0.o
9667    # does not break anything, and helps significantly (at the cost of a little
9668    # extra space).
9669    freebsd2.2*)
9670      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9671      hardcode_libdir_flag_spec='-R$libdir'
9672      hardcode_direct=yes
9673      hardcode_shlibpath_var=no
9674      ;;
9675
9676    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9677    freebsd2.*)
9678      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9679      hardcode_direct=yes
9680      hardcode_minus_L=yes
9681      hardcode_shlibpath_var=no
9682      ;;
9683
9684    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9685    freebsd* | dragonfly*)
9686      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9687      hardcode_libdir_flag_spec='-R$libdir'
9688      hardcode_direct=yes
9689      hardcode_shlibpath_var=no
9690      ;;
9691
9692    hpux9*)
9693      if test yes = "$GCC"; then
9694	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9695      else
9696	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9697      fi
9698      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9699      hardcode_libdir_separator=:
9700      hardcode_direct=yes
9701
9702      # hardcode_minus_L: Not really in the search PATH,
9703      # but as the default location of the library.
9704      hardcode_minus_L=yes
9705      export_dynamic_flag_spec='$wl-E'
9706      ;;
9707
9708    hpux10*)
9709      if test yes,no = "$GCC,$with_gnu_ld"; then
9710	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9711      else
9712	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9713      fi
9714      if test no = "$with_gnu_ld"; then
9715	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9716	hardcode_libdir_separator=:
9717	hardcode_direct=yes
9718	hardcode_direct_absolute=yes
9719	export_dynamic_flag_spec='$wl-E'
9720	# hardcode_minus_L: Not really in the search PATH,
9721	# but as the default location of the library.
9722	hardcode_minus_L=yes
9723      fi
9724      ;;
9725
9726    hpux11*)
9727      if test yes,no = "$GCC,$with_gnu_ld"; then
9728	case $host_cpu in
9729	hppa*64*)
9730	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9731	  ;;
9732	ia64*)
9733	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734	  ;;
9735	*)
9736	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9737	  ;;
9738	esac
9739      else
9740	case $host_cpu in
9741	hppa*64*)
9742	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9743	  ;;
9744	ia64*)
9745	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9746	  ;;
9747	*)
9748
9749	  # Older versions of the 11.00 compiler do not understand -b yet
9750	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9751	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9752$as_echo_n "checking if $CC understands -b... " >&6; }
9753if ${lt_cv_prog_compiler__b+:} false; then :
9754  $as_echo_n "(cached) " >&6
9755else
9756  lt_cv_prog_compiler__b=no
9757   save_LDFLAGS=$LDFLAGS
9758   LDFLAGS="$LDFLAGS -b"
9759   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9760   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9761     # The linker can only warn and ignore the option if not recognized
9762     # So say no if there are warnings
9763     if test -s conftest.err; then
9764       # Append any errors to the config.log.
9765       cat conftest.err 1>&5
9766       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9767       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9768       if diff conftest.exp conftest.er2 >/dev/null; then
9769         lt_cv_prog_compiler__b=yes
9770       fi
9771     else
9772       lt_cv_prog_compiler__b=yes
9773     fi
9774   fi
9775   $RM -r conftest*
9776   LDFLAGS=$save_LDFLAGS
9777
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9780$as_echo "$lt_cv_prog_compiler__b" >&6; }
9781
9782if test yes = "$lt_cv_prog_compiler__b"; then
9783    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784else
9785    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9786fi
9787
9788	  ;;
9789	esac
9790      fi
9791      if test no = "$with_gnu_ld"; then
9792	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9793	hardcode_libdir_separator=:
9794
9795	case $host_cpu in
9796	hppa*64*|ia64*)
9797	  hardcode_direct=no
9798	  hardcode_shlibpath_var=no
9799	  ;;
9800	*)
9801	  hardcode_direct=yes
9802	  hardcode_direct_absolute=yes
9803	  export_dynamic_flag_spec='$wl-E'
9804
9805	  # hardcode_minus_L: Not really in the search PATH,
9806	  # but as the default location of the library.
9807	  hardcode_minus_L=yes
9808	  ;;
9809	esac
9810      fi
9811      ;;
9812
9813    irix5* | irix6* | nonstopux*)
9814      if test yes = "$GCC"; then
9815	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'
9816	# Try to use the -exported_symbol ld option, if it does not
9817	# work, assume that -exports_file does not work either and
9818	# implicitly export all symbols.
9819	# This should be the same for all languages, so no per-tag cache variable.
9820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9821$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9822if ${lt_cv_irix_exported_symbol+:} false; then :
9823  $as_echo_n "(cached) " >&6
9824else
9825  save_LDFLAGS=$LDFLAGS
9826	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9827	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828/* end confdefs.h.  */
9829int foo (void) { return 0; }
9830_ACEOF
9831if ac_fn_c_try_link "$LINENO"; then :
9832  lt_cv_irix_exported_symbol=yes
9833else
9834  lt_cv_irix_exported_symbol=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext \
9837    conftest$ac_exeext conftest.$ac_ext
9838           LDFLAGS=$save_LDFLAGS
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9841$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9842	if test yes = "$lt_cv_irix_exported_symbol"; then
9843          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'
9844	fi
9845      else
9846	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'
9847	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'
9848      fi
9849      archive_cmds_need_lc='no'
9850      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9851      hardcode_libdir_separator=:
9852      inherit_rpath=yes
9853      link_all_deplibs=yes
9854      ;;
9855
9856    linux*)
9857      case $cc_basename in
9858      tcc*)
9859	# Fabrice Bellard et al's Tiny C Compiler
9860	ld_shlibs=yes
9861	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862	;;
9863      esac
9864      ;;
9865
9866    netbsd*)
9867      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9868	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9869      else
9870	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9871      fi
9872      hardcode_libdir_flag_spec='-R$libdir'
9873      hardcode_direct=yes
9874      hardcode_shlibpath_var=no
9875      ;;
9876
9877    newsos6)
9878      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879      hardcode_direct=yes
9880      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9881      hardcode_libdir_separator=:
9882      hardcode_shlibpath_var=no
9883      ;;
9884
9885    *nto* | *qnx*)
9886      ;;
9887
9888    openbsd* | bitrig*)
9889      if test -f /usr/libexec/ld.so; then
9890	hardcode_direct=yes
9891	hardcode_shlibpath_var=no
9892	hardcode_direct_absolute=yes
9893	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9894	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9895	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9896	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9897	  export_dynamic_flag_spec='$wl-E'
9898	else
9899	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9900	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9901	fi
9902      else
9903	ld_shlibs=no
9904      fi
9905      ;;
9906
9907    os2*)
9908      hardcode_libdir_flag_spec='-L$libdir'
9909      hardcode_minus_L=yes
9910      allow_undefined_flag=unsupported
9911      shrext_cmds=.dll
9912      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9913	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9914	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9915	$ECHO EXPORTS >> $output_objdir/$libname.def~
9916	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9917	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9918	emximp -o $lib $output_objdir/$libname.def'
9919      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9920	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9921	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9922	$ECHO EXPORTS >> $output_objdir/$libname.def~
9923	prefix_cmds="$SED"~
9924	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9925	  prefix_cmds="$prefix_cmds -e 1d";
9926	fi~
9927	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9928	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9929	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9930	emximp -o $lib $output_objdir/$libname.def'
9931      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9932      enable_shared_with_static_runtimes=yes
9933      ;;
9934
9935    osf3*)
9936      if test yes = "$GCC"; then
9937	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9938	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'
9939      else
9940	allow_undefined_flag=' -expect_unresolved \*'
9941	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'
9942      fi
9943      archive_cmds_need_lc='no'
9944      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9945      hardcode_libdir_separator=:
9946      ;;
9947
9948    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9949      if test yes = "$GCC"; then
9950	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9951	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'
9952	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9953      else
9954	allow_undefined_flag=' -expect_unresolved \*'
9955	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'
9956	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~
9957          $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'
9958
9959	# Both c and cxx compiler support -rpath directly
9960	hardcode_libdir_flag_spec='-rpath $libdir'
9961      fi
9962      archive_cmds_need_lc='no'
9963      hardcode_libdir_separator=:
9964      ;;
9965
9966    solaris*)
9967      no_undefined_flag=' -z defs'
9968      if test yes = "$GCC"; then
9969	wlarc='$wl'
9970	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9971	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972          $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'
9973      else
9974	case `$CC -V 2>&1` in
9975	*"Compilers 5.0"*)
9976	  wlarc=''
9977	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9979            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9980	  ;;
9981	*)
9982	  wlarc='$wl'
9983	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9984	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986	  ;;
9987	esac
9988      fi
9989      hardcode_libdir_flag_spec='-R$libdir'
9990      hardcode_shlibpath_var=no
9991      case $host_os in
9992      solaris2.[0-5] | solaris2.[0-5].*) ;;
9993      *)
9994	# The compiler driver will combine and reorder linker options,
9995	# but understands '-z linker_flag'.  GCC discards it without '$wl',
9996	# but is careful enough not to reorder.
9997	# Supported since Solaris 2.6 (maybe 2.5.1?)
9998	if test yes = "$GCC"; then
9999	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10000	else
10001	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10002	fi
10003	;;
10004      esac
10005      link_all_deplibs=yes
10006      ;;
10007
10008    sunos4*)
10009      if test sequent = "$host_vendor"; then
10010	# Use $CC to link under sequent, because it throws in some extra .o
10011	# files that make .init and .fini sections work.
10012	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013      else
10014	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10015      fi
10016      hardcode_libdir_flag_spec='-L$libdir'
10017      hardcode_direct=yes
10018      hardcode_minus_L=yes
10019      hardcode_shlibpath_var=no
10020      ;;
10021
10022    sysv4)
10023      case $host_vendor in
10024	sni)
10025	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026	  hardcode_direct=yes # is this really true???
10027	;;
10028	siemens)
10029	  ## LD is ld it makes a PLAMLIB
10030	  ## CC just makes a GrossModule.
10031	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10032	  reload_cmds='$CC -r -o $output$reload_objs'
10033	  hardcode_direct=no
10034        ;;
10035	motorola)
10036	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10038	;;
10039      esac
10040      runpath_var='LD_RUN_PATH'
10041      hardcode_shlibpath_var=no
10042      ;;
10043
10044    sysv4.3*)
10045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046      hardcode_shlibpath_var=no
10047      export_dynamic_flag_spec='-Bexport'
10048      ;;
10049
10050    sysv4*MP*)
10051      if test -d /usr/nec; then
10052	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053	hardcode_shlibpath_var=no
10054	runpath_var=LD_RUN_PATH
10055	hardcode_runpath_var=yes
10056	ld_shlibs=yes
10057      fi
10058      ;;
10059
10060    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10061      no_undefined_flag='$wl-z,text'
10062      archive_cmds_need_lc=no
10063      hardcode_shlibpath_var=no
10064      runpath_var='LD_RUN_PATH'
10065
10066      if test yes = "$GCC"; then
10067	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069      else
10070	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072      fi
10073      ;;
10074
10075    sysv5* | sco3.2v5* | sco5v6*)
10076      # Note: We CANNOT use -z defs as we might desire, because we do not
10077      # link with -lc, and that would cause any symbols used from libc to
10078      # always be unresolved, which means just about no library would
10079      # ever link correctly.  If we're not using GNU ld we use -z text
10080      # though, which does catch some bad symbols but isn't as heavy-handed
10081      # as -z defs.
10082      no_undefined_flag='$wl-z,text'
10083      allow_undefined_flag='$wl-z,nodefs'
10084      archive_cmds_need_lc=no
10085      hardcode_shlibpath_var=no
10086      hardcode_libdir_flag_spec='$wl-R,$libdir'
10087      hardcode_libdir_separator=':'
10088      link_all_deplibs=yes
10089      export_dynamic_flag_spec='$wl-Bexport'
10090      runpath_var='LD_RUN_PATH'
10091
10092      if test yes = "$GCC"; then
10093	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095      else
10096	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098      fi
10099      ;;
10100
10101    uts4*)
10102      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103      hardcode_libdir_flag_spec='-L$libdir'
10104      hardcode_shlibpath_var=no
10105      ;;
10106
10107    *)
10108      ld_shlibs=no
10109      ;;
10110    esac
10111
10112    if test sni = "$host_vendor"; then
10113      case $host in
10114      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10115	export_dynamic_flag_spec='$wl-Blargedynsym'
10116	;;
10117      esac
10118    fi
10119  fi
10120
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10122$as_echo "$ld_shlibs" >&6; }
10123test no = "$ld_shlibs" && can_build_shared=no
10124
10125with_gnu_ld=$with_gnu_ld
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141#
10142# Do we need to explicitly link libc?
10143#
10144case "x$archive_cmds_need_lc" in
10145x|xyes)
10146  # Assume -lc should be added
10147  archive_cmds_need_lc=yes
10148
10149  if test yes,yes = "$GCC,$enable_shared"; then
10150    case $archive_cmds in
10151    *'~'*)
10152      # FIXME: we may have to deal with multi-command sequences.
10153      ;;
10154    '$CC '*)
10155      # Test whether the compiler implicitly links with -lc since on some
10156      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10157      # to ld, don't add -lc before -lgcc.
10158      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10159$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10160if ${lt_cv_archive_cmds_need_lc+:} false; then :
10161  $as_echo_n "(cached) " >&6
10162else
10163  $RM conftest*
10164	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165
10166	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10167  (eval $ac_compile) 2>&5
10168  ac_status=$?
10169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170  test $ac_status = 0; } 2>conftest.err; then
10171	  soname=conftest
10172	  lib=conftest
10173	  libobjs=conftest.$ac_objext
10174	  deplibs=
10175	  wl=$lt_prog_compiler_wl
10176	  pic_flag=$lt_prog_compiler_pic
10177	  compiler_flags=-v
10178	  linker_flags=-v
10179	  verstring=
10180	  output_objdir=.
10181	  libname=conftest
10182	  lt_save_allow_undefined_flag=$allow_undefined_flag
10183	  allow_undefined_flag=
10184	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10185  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10186  ac_status=$?
10187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188  test $ac_status = 0; }
10189	  then
10190	    lt_cv_archive_cmds_need_lc=no
10191	  else
10192	    lt_cv_archive_cmds_need_lc=yes
10193	  fi
10194	  allow_undefined_flag=$lt_save_allow_undefined_flag
10195	else
10196	  cat conftest.err 1>&5
10197	fi
10198	$RM conftest*
10199
10200fi
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10202$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10203      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10204      ;;
10205    esac
10206  fi
10207  ;;
10208esac
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10362$as_echo_n "checking dynamic linker characteristics... " >&6; }
10363
10364if test yes = "$GCC"; then
10365  case $host_os in
10366    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10367    *) lt_awk_arg='/^libraries:/' ;;
10368  esac
10369  case $host_os in
10370    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10371    *) lt_sed_strip_eq='s|=/|/|g' ;;
10372  esac
10373  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10374  case $lt_search_path_spec in
10375  *\;*)
10376    # if the path contains ";" then we assume it to be the separator
10377    # otherwise default to the standard path separator (i.e. ":") - it is
10378    # assumed that no part of a normal pathname contains ";" but that should
10379    # okay in the real world where ";" in dirpaths is itself problematic.
10380    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10381    ;;
10382  *)
10383    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10384    ;;
10385  esac
10386  # Ok, now we have the path, separated by spaces, we can step through it
10387  # and add multilib dir if necessary...
10388  lt_tmp_lt_search_path_spec=
10389  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10390  # ...but if some path component already ends with the multilib dir we assume
10391  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10392  case "$lt_multi_os_dir; $lt_search_path_spec " in
10393  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10394    lt_multi_os_dir=
10395    ;;
10396  esac
10397  for lt_sys_path in $lt_search_path_spec; do
10398    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10399      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10400    elif test -n "$lt_multi_os_dir"; then
10401      test -d "$lt_sys_path" && \
10402	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10403    fi
10404  done
10405  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10406BEGIN {RS = " "; FS = "/|\n";} {
10407  lt_foo = "";
10408  lt_count = 0;
10409  for (lt_i = NF; lt_i > 0; lt_i--) {
10410    if ($lt_i != "" && $lt_i != ".") {
10411      if ($lt_i == "..") {
10412        lt_count++;
10413      } else {
10414        if (lt_count == 0) {
10415          lt_foo = "/" $lt_i lt_foo;
10416        } else {
10417          lt_count--;
10418        }
10419      }
10420    }
10421  }
10422  if (lt_foo != "") { lt_freq[lt_foo]++; }
10423  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10424}'`
10425  # AWK program above erroneously prepends '/' to C:/dos/paths
10426  # for these hosts.
10427  case $host_os in
10428    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10429      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10430  esac
10431  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10432else
10433  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10434fi
10435library_names_spec=
10436libname_spec='lib$name'
10437soname_spec=
10438shrext_cmds=.so
10439postinstall_cmds=
10440postuninstall_cmds=
10441finish_cmds=
10442finish_eval=
10443shlibpath_var=
10444shlibpath_overrides_runpath=unknown
10445version_type=none
10446dynamic_linker="$host_os ld.so"
10447sys_lib_dlsearch_path_spec="/lib /usr/lib"
10448need_lib_prefix=unknown
10449hardcode_into_libs=no
10450
10451# when you set need_version to no, make sure it does not cause -set_version
10452# flags to be left without arguments
10453need_version=unknown
10454
10455
10456
10457case $host_os in
10458aix3*)
10459  version_type=linux # correct to gnu/linux during the next big refactor
10460  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10461  shlibpath_var=LIBPATH
10462
10463  # AIX 3 has no versioning support, so we append a major version to the name.
10464  soname_spec='$libname$release$shared_ext$major'
10465  ;;
10466
10467aix[4-9]*)
10468  version_type=linux # correct to gnu/linux during the next big refactor
10469  need_lib_prefix=no
10470  need_version=no
10471  hardcode_into_libs=yes
10472  if test ia64 = "$host_cpu"; then
10473    # AIX 5 supports IA64
10474    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10475    shlibpath_var=LD_LIBRARY_PATH
10476  else
10477    # With GCC up to 2.95.x, collect2 would create an import file
10478    # for dependence libraries.  The import file would start with
10479    # the line '#! .'.  This would cause the generated library to
10480    # depend on '.', always an invalid library.  This was fixed in
10481    # development snapshots of GCC prior to 3.0.
10482    case $host_os in
10483      aix4 | aix4.[01] | aix4.[01].*)
10484      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10485	   echo ' yes '
10486	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10487	:
10488      else
10489	can_build_shared=no
10490      fi
10491      ;;
10492    esac
10493    # Using Import Files as archive members, it is possible to support
10494    # filename-based versioning of shared library archives on AIX. While
10495    # this would work for both with and without runtime linking, it will
10496    # prevent static linking of such archives. So we do filename-based
10497    # shared library versioning with .so extension only, which is used
10498    # when both runtime linking and shared linking is enabled.
10499    # Unfortunately, runtime linking may impact performance, so we do
10500    # not want this to be the default eventually. Also, we use the
10501    # versioned .so libs for executables only if there is the -brtl
10502    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10503    # To allow for filename-based versioning support, we need to create
10504    # libNAME.so.V as an archive file, containing:
10505    # *) an Import File, referring to the versioned filename of the
10506    #    archive as well as the shared archive member, telling the
10507    #    bitwidth (32 or 64) of that shared object, and providing the
10508    #    list of exported symbols of that shared object, eventually
10509    #    decorated with the 'weak' keyword
10510    # *) the shared object with the F_LOADONLY flag set, to really avoid
10511    #    it being seen by the linker.
10512    # At run time we better use the real file rather than another symlink,
10513    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10514
10515    case $with_aix_soname,$aix_use_runtimelinking in
10516    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10517    # soname into executable. Probably we can add versioning support to
10518    # collect2, so additional links can be useful in future.
10519    aix,yes) # traditional libtool
10520      dynamic_linker='AIX unversionable lib.so'
10521      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10522      # instead of lib<name>.a to let people know that these are not
10523      # typical AIX shared libraries.
10524      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10525      ;;
10526    aix,no) # traditional AIX only
10527      dynamic_linker='AIX lib.a(lib.so.V)'
10528      # We preserve .a as extension for shared libraries through AIX4.2
10529      # and later when we are not doing run time linking.
10530      library_names_spec='$libname$release.a $libname.a'
10531      soname_spec='$libname$release$shared_ext$major'
10532      ;;
10533    svr4,*) # full svr4 only
10534      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10535      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10536      # We do not specify a path in Import Files, so LIBPATH fires.
10537      shlibpath_overrides_runpath=yes
10538      ;;
10539    *,yes) # both, prefer svr4
10540      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10541      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10542      # unpreferred sharedlib libNAME.a needs extra handling
10543      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10544      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10545      # We do not specify a path in Import Files, so LIBPATH fires.
10546      shlibpath_overrides_runpath=yes
10547      ;;
10548    *,no) # both, prefer aix
10549      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10550      library_names_spec='$libname$release.a $libname.a'
10551      soname_spec='$libname$release$shared_ext$major'
10552      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10553      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10554      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10555      ;;
10556    esac
10557    shlibpath_var=LIBPATH
10558  fi
10559  ;;
10560
10561amigaos*)
10562  case $host_cpu in
10563  powerpc)
10564    # Since July 2007 AmigaOS4 officially supports .so libraries.
10565    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10566    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10567    ;;
10568  m68k)
10569    library_names_spec='$libname.ixlibrary $libname.a'
10570    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10571    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10572    ;;
10573  esac
10574  ;;
10575
10576beos*)
10577  library_names_spec='$libname$shared_ext'
10578  dynamic_linker="$host_os ld.so"
10579  shlibpath_var=LIBRARY_PATH
10580  ;;
10581
10582bsdi[45]*)
10583  version_type=linux # correct to gnu/linux during the next big refactor
10584  need_version=no
10585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10586  soname_spec='$libname$release$shared_ext$major'
10587  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10588  shlibpath_var=LD_LIBRARY_PATH
10589  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10590  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10591  # the default ld.so.conf also contains /usr/contrib/lib and
10592  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10593  # libtool to hard-code these into programs
10594  ;;
10595
10596cygwin* | mingw* | pw32* | cegcc*)
10597  version_type=windows
10598  shrext_cmds=.dll
10599  need_version=no
10600  need_lib_prefix=no
10601
10602  case $GCC,$cc_basename in
10603  yes,*)
10604    # gcc
10605    library_names_spec='$libname.dll.a'
10606    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10607    postinstall_cmds='base_file=`basename \$file`~
10608      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10609      dldir=$destdir/`dirname \$dlpath`~
10610      test -d \$dldir || mkdir -p \$dldir~
10611      $install_prog $dir/$dlname \$dldir/$dlname~
10612      chmod a+x \$dldir/$dlname~
10613      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10614        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10615      fi'
10616    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10617      dlpath=$dir/\$dldll~
10618       $RM \$dlpath'
10619    shlibpath_overrides_runpath=yes
10620
10621    case $host_os in
10622    cygwin*)
10623      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10624      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10625
10626      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10627      ;;
10628    mingw* | cegcc*)
10629      # MinGW DLLs use traditional 'lib' prefix
10630      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10631      ;;
10632    pw32*)
10633      # pw32 DLLs use 'pw' prefix rather than 'lib'
10634      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10635      ;;
10636    esac
10637    dynamic_linker='Win32 ld.exe'
10638    ;;
10639
10640  *,cl*)
10641    # Native MSVC
10642    libname_spec='$name'
10643    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10644    library_names_spec='$libname.dll.lib'
10645
10646    case $build_os in
10647    mingw*)
10648      sys_lib_search_path_spec=
10649      lt_save_ifs=$IFS
10650      IFS=';'
10651      for lt_path in $LIB
10652      do
10653        IFS=$lt_save_ifs
10654        # Let DOS variable expansion print the short 8.3 style file name.
10655        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10656        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10657      done
10658      IFS=$lt_save_ifs
10659      # Convert to MSYS style.
10660      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10661      ;;
10662    cygwin*)
10663      # Convert to unix form, then to dos form, then back to unix form
10664      # but this time dos style (no spaces!) so that the unix form looks
10665      # like /cygdrive/c/PROGRA~1:/cygdr...
10666      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10667      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10668      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10669      ;;
10670    *)
10671      sys_lib_search_path_spec=$LIB
10672      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10673        # It is most probably a Windows format PATH.
10674        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10675      else
10676        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10677      fi
10678      # FIXME: find the short name or the path components, as spaces are
10679      # common. (e.g. "Program Files" -> "PROGRA~1")
10680      ;;
10681    esac
10682
10683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10684    postinstall_cmds='base_file=`basename \$file`~
10685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10686      dldir=$destdir/`dirname \$dlpath`~
10687      test -d \$dldir || mkdir -p \$dldir~
10688      $install_prog $dir/$dlname \$dldir/$dlname'
10689    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10690      dlpath=$dir/\$dldll~
10691       $RM \$dlpath'
10692    shlibpath_overrides_runpath=yes
10693    dynamic_linker='Win32 link.exe'
10694    ;;
10695
10696  *)
10697    # Assume MSVC wrapper
10698    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10699    dynamic_linker='Win32 ld.exe'
10700    ;;
10701  esac
10702  # FIXME: first we should search . and the directory the executable is in
10703  shlibpath_var=PATH
10704  ;;
10705
10706darwin* | rhapsody*)
10707  dynamic_linker="$host_os dyld"
10708  version_type=darwin
10709  need_lib_prefix=no
10710  need_version=no
10711  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10712  soname_spec='$libname$release$major$shared_ext'
10713  shlibpath_overrides_runpath=yes
10714  shlibpath_var=DYLD_LIBRARY_PATH
10715  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10716
10717  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10718  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10719  ;;
10720
10721dgux*)
10722  version_type=linux # correct to gnu/linux during the next big refactor
10723  need_lib_prefix=no
10724  need_version=no
10725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10726  soname_spec='$libname$release$shared_ext$major'
10727  shlibpath_var=LD_LIBRARY_PATH
10728  ;;
10729
10730freebsd* | dragonfly*)
10731  # DragonFly does not have aout.  When/if they implement a new
10732  # versioning mechanism, adjust this.
10733  if test -x /usr/bin/objformat; then
10734    objformat=`/usr/bin/objformat`
10735  else
10736    case $host_os in
10737    freebsd[23].*) objformat=aout ;;
10738    *) objformat=elf ;;
10739    esac
10740  fi
10741  version_type=freebsd-$objformat
10742  case $version_type in
10743    freebsd-elf*)
10744      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10745      soname_spec='$libname$release$shared_ext$major'
10746      need_version=no
10747      need_lib_prefix=no
10748      ;;
10749    freebsd-*)
10750      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10751      need_version=yes
10752      ;;
10753  esac
10754  shlibpath_var=LD_LIBRARY_PATH
10755  case $host_os in
10756  freebsd2.*)
10757    shlibpath_overrides_runpath=yes
10758    ;;
10759  freebsd3.[01]* | freebsdelf3.[01]*)
10760    shlibpath_overrides_runpath=yes
10761    hardcode_into_libs=yes
10762    ;;
10763  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10764  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10765    shlibpath_overrides_runpath=no
10766    hardcode_into_libs=yes
10767    ;;
10768  *) # from 4.6 on, and DragonFly
10769    shlibpath_overrides_runpath=yes
10770    hardcode_into_libs=yes
10771    ;;
10772  esac
10773  ;;
10774
10775haiku*)
10776  version_type=linux # correct to gnu/linux during the next big refactor
10777  need_lib_prefix=no
10778  need_version=no
10779  dynamic_linker="$host_os runtime_loader"
10780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10781  soname_spec='$libname$release$shared_ext$major'
10782  shlibpath_var=LIBRARY_PATH
10783  shlibpath_overrides_runpath=no
10784  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10785  hardcode_into_libs=yes
10786  ;;
10787
10788hpux9* | hpux10* | hpux11*)
10789  # Give a soname corresponding to the major version so that dld.sl refuses to
10790  # link against other versions.
10791  version_type=sunos
10792  need_lib_prefix=no
10793  need_version=no
10794  case $host_cpu in
10795  ia64*)
10796    shrext_cmds='.so'
10797    hardcode_into_libs=yes
10798    dynamic_linker="$host_os dld.so"
10799    shlibpath_var=LD_LIBRARY_PATH
10800    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10801    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10802    soname_spec='$libname$release$shared_ext$major'
10803    if test 32 = "$HPUX_IA64_MODE"; then
10804      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10805      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10806    else
10807      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10808      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10809    fi
10810    ;;
10811  hppa*64*)
10812    shrext_cmds='.sl'
10813    hardcode_into_libs=yes
10814    dynamic_linker="$host_os dld.sl"
10815    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10816    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10817    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10818    soname_spec='$libname$release$shared_ext$major'
10819    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10821    ;;
10822  *)
10823    shrext_cmds='.sl'
10824    dynamic_linker="$host_os dld.sl"
10825    shlibpath_var=SHLIB_PATH
10826    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10827    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10828    soname_spec='$libname$release$shared_ext$major'
10829    ;;
10830  esac
10831  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10832  postinstall_cmds='chmod 555 $lib'
10833  # or fails outright, so override atomically:
10834  install_override_mode=555
10835  ;;
10836
10837interix[3-9]*)
10838  version_type=linux # correct to gnu/linux during the next big refactor
10839  need_lib_prefix=no
10840  need_version=no
10841  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10842  soname_spec='$libname$release$shared_ext$major'
10843  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10844  shlibpath_var=LD_LIBRARY_PATH
10845  shlibpath_overrides_runpath=no
10846  hardcode_into_libs=yes
10847  ;;
10848
10849irix5* | irix6* | nonstopux*)
10850  case $host_os in
10851    nonstopux*) version_type=nonstopux ;;
10852    *)
10853	if test yes = "$lt_cv_prog_gnu_ld"; then
10854		version_type=linux # correct to gnu/linux during the next big refactor
10855	else
10856		version_type=irix
10857	fi ;;
10858  esac
10859  need_lib_prefix=no
10860  need_version=no
10861  soname_spec='$libname$release$shared_ext$major'
10862  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10863  case $host_os in
10864  irix5* | nonstopux*)
10865    libsuff= shlibsuff=
10866    ;;
10867  *)
10868    case $LD in # libtool.m4 will add one of these switches to LD
10869    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870      libsuff= shlibsuff= libmagic=32-bit;;
10871    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872      libsuff=32 shlibsuff=N32 libmagic=N32;;
10873    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10875    *) libsuff= shlibsuff= libmagic=never-match;;
10876    esac
10877    ;;
10878  esac
10879  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10880  shlibpath_overrides_runpath=no
10881  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10882  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10883  hardcode_into_libs=yes
10884  ;;
10885
10886# No shared lib support for Linux oldld, aout, or coff.
10887linux*oldld* | linux*aout* | linux*coff*)
10888  dynamic_linker=no
10889  ;;
10890
10891linux*android*)
10892  version_type=none # Android doesn't support versioned libraries.
10893  need_lib_prefix=no
10894  need_version=no
10895  library_names_spec='$libname$release$shared_ext'
10896  soname_spec='$libname$release$shared_ext'
10897  finish_cmds=
10898  shlibpath_var=LD_LIBRARY_PATH
10899  shlibpath_overrides_runpath=yes
10900
10901  # This implies no fast_install, which is unacceptable.
10902  # Some rework will be needed to allow for fast_install
10903  # before this can be enabled.
10904  hardcode_into_libs=yes
10905
10906  dynamic_linker='Android linker'
10907  # Don't embed -rpath directories since the linker doesn't support them.
10908  hardcode_libdir_flag_spec='-L$libdir'
10909  ;;
10910
10911# This must be glibc/ELF.
10912linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10913  version_type=linux # correct to gnu/linux during the next big refactor
10914  need_lib_prefix=no
10915  need_version=no
10916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10917  soname_spec='$libname$release$shared_ext$major'
10918  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10919  shlibpath_var=LD_LIBRARY_PATH
10920  shlibpath_overrides_runpath=no
10921
10922  # Some binutils ld are patched to set DT_RUNPATH
10923  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10924  $as_echo_n "(cached) " >&6
10925else
10926  lt_cv_shlibpath_overrides_runpath=no
10927    save_LDFLAGS=$LDFLAGS
10928    save_libdir=$libdir
10929    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10930	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h.  */
10933
10934int
10935main ()
10936{
10937
10938  ;
10939  return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_link "$LINENO"; then :
10943  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10944  lt_cv_shlibpath_overrides_runpath=yes
10945fi
10946fi
10947rm -f core conftest.err conftest.$ac_objext \
10948    conftest$ac_exeext conftest.$ac_ext
10949    LDFLAGS=$save_LDFLAGS
10950    libdir=$save_libdir
10951
10952fi
10953
10954  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10955
10956  # This implies no fast_install, which is unacceptable.
10957  # Some rework will be needed to allow for fast_install
10958  # before this can be enabled.
10959  hardcode_into_libs=yes
10960
10961  # Ideally, we could use ldconfig to report *all* directores which are
10962  # searched for libraries, however this is still not possible.  Aside from not
10963  # being certain /sbin/ldconfig is available, command
10964  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10965  # even though it is searched at run-time.  Try to do the best guess by
10966  # appending ld.so.conf contents (and includes) to the search path.
10967  if test -f /etc/ld.so.conf; then
10968    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' ' '`
10969    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10970  fi
10971
10972  # We used to test for /lib/ld.so.1 and disable shared libraries on
10973  # powerpc, because MkLinux only supported shared libraries with the
10974  # GNU dynamic linker.  Since this was broken with cross compilers,
10975  # most powerpc-linux boxes support dynamic linking these days and
10976  # people can always --disable-shared, the test was removed, and we
10977  # assume the GNU/Linux dynamic linker is in use.
10978  dynamic_linker='GNU/Linux ld.so'
10979  ;;
10980
10981netbsd*)
10982  version_type=sunos
10983  need_lib_prefix=no
10984  need_version=no
10985  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10986    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10987    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10988    dynamic_linker='NetBSD (a.out) ld.so'
10989  else
10990    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10991    soname_spec='$libname$release$shared_ext$major'
10992    dynamic_linker='NetBSD ld.elf_so'
10993  fi
10994  shlibpath_var=LD_LIBRARY_PATH
10995  shlibpath_overrides_runpath=yes
10996  hardcode_into_libs=yes
10997  ;;
10998
10999newsos6)
11000  version_type=linux # correct to gnu/linux during the next big refactor
11001  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002  shlibpath_var=LD_LIBRARY_PATH
11003  shlibpath_overrides_runpath=yes
11004  ;;
11005
11006*nto* | *qnx*)
11007  version_type=qnx
11008  need_lib_prefix=no
11009  need_version=no
11010  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011  soname_spec='$libname$release$shared_ext$major'
11012  shlibpath_var=LD_LIBRARY_PATH
11013  shlibpath_overrides_runpath=no
11014  hardcode_into_libs=yes
11015  dynamic_linker='ldqnx.so'
11016  ;;
11017
11018openbsd* | bitrig*)
11019  version_type=sunos
11020  sys_lib_dlsearch_path_spec=/usr/lib
11021  need_lib_prefix=no
11022  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11023    need_version=no
11024  else
11025    need_version=yes
11026  fi
11027  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11028  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11029  shlibpath_var=LD_LIBRARY_PATH
11030  shlibpath_overrides_runpath=yes
11031  ;;
11032
11033os2*)
11034  libname_spec='$name'
11035  version_type=windows
11036  shrext_cmds=.dll
11037  need_version=no
11038  need_lib_prefix=no
11039  # OS/2 can only load a DLL with a base name of 8 characters or less.
11040  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11041    v=$($ECHO $release$versuffix | tr -d .-);
11042    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11043    $ECHO $n$v`$shared_ext'
11044  library_names_spec='${libname}_dll.$libext'
11045  dynamic_linker='OS/2 ld.exe'
11046  shlibpath_var=BEGINLIBPATH
11047  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11048  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11049  postinstall_cmds='base_file=`basename \$file`~
11050    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11051    dldir=$destdir/`dirname \$dlpath`~
11052    test -d \$dldir || mkdir -p \$dldir~
11053    $install_prog $dir/$dlname \$dldir/$dlname~
11054    chmod a+x \$dldir/$dlname~
11055    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11056      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11057    fi'
11058  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11059    dlpath=$dir/\$dldll~
11060    $RM \$dlpath'
11061  ;;
11062
11063osf3* | osf4* | osf5*)
11064  version_type=osf
11065  need_lib_prefix=no
11066  need_version=no
11067  soname_spec='$libname$release$shared_ext$major'
11068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069  shlibpath_var=LD_LIBRARY_PATH
11070  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11071  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11072  ;;
11073
11074rdos*)
11075  dynamic_linker=no
11076  ;;
11077
11078solaris*)
11079  version_type=linux # correct to gnu/linux during the next big refactor
11080  need_lib_prefix=no
11081  need_version=no
11082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083  soname_spec='$libname$release$shared_ext$major'
11084  shlibpath_var=LD_LIBRARY_PATH
11085  shlibpath_overrides_runpath=yes
11086  hardcode_into_libs=yes
11087  # ldd complains unless libraries are executable
11088  postinstall_cmds='chmod +x $lib'
11089  ;;
11090
11091sunos4*)
11092  version_type=sunos
11093  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11094  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11095  shlibpath_var=LD_LIBRARY_PATH
11096  shlibpath_overrides_runpath=yes
11097  if test yes = "$with_gnu_ld"; then
11098    need_lib_prefix=no
11099  fi
11100  need_version=yes
11101  ;;
11102
11103sysv4 | sysv4.3*)
11104  version_type=linux # correct to gnu/linux during the next big refactor
11105  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106  soname_spec='$libname$release$shared_ext$major'
11107  shlibpath_var=LD_LIBRARY_PATH
11108  case $host_vendor in
11109    sni)
11110      shlibpath_overrides_runpath=no
11111      need_lib_prefix=no
11112      runpath_var=LD_RUN_PATH
11113      ;;
11114    siemens)
11115      need_lib_prefix=no
11116      ;;
11117    motorola)
11118      need_lib_prefix=no
11119      need_version=no
11120      shlibpath_overrides_runpath=no
11121      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11122      ;;
11123  esac
11124  ;;
11125
11126sysv4*MP*)
11127  if test -d /usr/nec; then
11128    version_type=linux # correct to gnu/linux during the next big refactor
11129    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11130    soname_spec='$libname$shared_ext.$major'
11131    shlibpath_var=LD_LIBRARY_PATH
11132  fi
11133  ;;
11134
11135sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11136  version_type=sco
11137  need_lib_prefix=no
11138  need_version=no
11139  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11140  soname_spec='$libname$release$shared_ext$major'
11141  shlibpath_var=LD_LIBRARY_PATH
11142  shlibpath_overrides_runpath=yes
11143  hardcode_into_libs=yes
11144  if test yes = "$with_gnu_ld"; then
11145    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11146  else
11147    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11148    case $host_os in
11149      sco3.2v5*)
11150        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11151	;;
11152    esac
11153  fi
11154  sys_lib_dlsearch_path_spec='/usr/lib'
11155  ;;
11156
11157tpf*)
11158  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11159  version_type=linux # correct to gnu/linux during the next big refactor
11160  need_lib_prefix=no
11161  need_version=no
11162  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163  shlibpath_var=LD_LIBRARY_PATH
11164  shlibpath_overrides_runpath=no
11165  hardcode_into_libs=yes
11166  ;;
11167
11168uts4*)
11169  version_type=linux # correct to gnu/linux during the next big refactor
11170  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171  soname_spec='$libname$release$shared_ext$major'
11172  shlibpath_var=LD_LIBRARY_PATH
11173  ;;
11174
11175*)
11176  dynamic_linker=no
11177  ;;
11178esac
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11180$as_echo "$dynamic_linker" >&6; }
11181test no = "$dynamic_linker" && can_build_shared=no
11182
11183variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11184if test yes = "$GCC"; then
11185  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11186fi
11187
11188if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11189  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11190fi
11191
11192if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11193  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11194fi
11195
11196# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11197configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11198
11199# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11200func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11201
11202# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11203configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11302$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11303hardcode_action=
11304if test -n "$hardcode_libdir_flag_spec" ||
11305   test -n "$runpath_var" ||
11306   test yes = "$hardcode_automatic"; then
11307
11308  # We can hardcode non-existent directories.
11309  if test no != "$hardcode_direct" &&
11310     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11311     # have to relink, otherwise we might link with an installed library
11312     # when we should be linking with a yet-to-be-installed one
11313     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11314     test no != "$hardcode_minus_L"; then
11315    # Linking always hardcodes the temporary library directory.
11316    hardcode_action=relink
11317  else
11318    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11319    hardcode_action=immediate
11320  fi
11321else
11322  # We cannot hardcode anything, or else we can only hardcode existing
11323  # directories.
11324  hardcode_action=unsupported
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11327$as_echo "$hardcode_action" >&6; }
11328
11329if test relink = "$hardcode_action" ||
11330   test yes = "$inherit_rpath"; then
11331  # Fast installation is not supported
11332  enable_fast_install=no
11333elif test yes = "$shlibpath_overrides_runpath" ||
11334     test no = "$enable_shared"; then
11335  # Fast installation is not necessary
11336  enable_fast_install=needless
11337fi
11338
11339
11340
11341
11342
11343
11344  if test yes != "$enable_dlopen"; then
11345  enable_dlopen=unknown
11346  enable_dlopen_self=unknown
11347  enable_dlopen_self_static=unknown
11348else
11349  lt_cv_dlopen=no
11350  lt_cv_dlopen_libs=
11351
11352  case $host_os in
11353  beos*)
11354    lt_cv_dlopen=load_add_on
11355    lt_cv_dlopen_libs=
11356    lt_cv_dlopen_self=yes
11357    ;;
11358
11359  mingw* | pw32* | cegcc*)
11360    lt_cv_dlopen=LoadLibrary
11361    lt_cv_dlopen_libs=
11362    ;;
11363
11364  cygwin*)
11365    lt_cv_dlopen=dlopen
11366    lt_cv_dlopen_libs=
11367    ;;
11368
11369  darwin*)
11370    # if libdl is installed we need to link against it
11371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11372$as_echo_n "checking for dlopen in -ldl... " >&6; }
11373if ${ac_cv_lib_dl_dlopen+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  ac_check_lib_save_LIBS=$LIBS
11377LIBS="-ldl  $LIBS"
11378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380
11381/* Override any GCC internal prototype to avoid an error.
11382   Use char because int might match the return type of a GCC
11383   builtin and then its argument prototype would still apply.  */
11384#ifdef __cplusplus
11385extern "C"
11386#endif
11387char dlopen ();
11388int
11389main ()
11390{
11391return dlopen ();
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_link "$LINENO"; then :
11397  ac_cv_lib_dl_dlopen=yes
11398else
11399  ac_cv_lib_dl_dlopen=no
11400fi
11401rm -f core conftest.err conftest.$ac_objext \
11402    conftest$ac_exeext conftest.$ac_ext
11403LIBS=$ac_check_lib_save_LIBS
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11406$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11407if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11408  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11409else
11410
11411    lt_cv_dlopen=dyld
11412    lt_cv_dlopen_libs=
11413    lt_cv_dlopen_self=yes
11414
11415fi
11416
11417    ;;
11418
11419  tpf*)
11420    # Don't try to run any link tests for TPF.  We know it's impossible
11421    # because TPF is a cross-compiler, and we know how we open DSOs.
11422    lt_cv_dlopen=dlopen
11423    lt_cv_dlopen_libs=
11424    lt_cv_dlopen_self=no
11425    ;;
11426
11427  *)
11428    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11429if test "x$ac_cv_func_shl_load" = xyes; then :
11430  lt_cv_dlopen=shl_load
11431else
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11433$as_echo_n "checking for shl_load in -ldld... " >&6; }
11434if ${ac_cv_lib_dld_shl_load+:} false; then :
11435  $as_echo_n "(cached) " >&6
11436else
11437  ac_check_lib_save_LIBS=$LIBS
11438LIBS="-ldld  $LIBS"
11439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440/* end confdefs.h.  */
11441
11442/* Override any GCC internal prototype to avoid an error.
11443   Use char because int might match the return type of a GCC
11444   builtin and then its argument prototype would still apply.  */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448char shl_load ();
11449int
11450main ()
11451{
11452return shl_load ();
11453  ;
11454  return 0;
11455}
11456_ACEOF
11457if ac_fn_c_try_link "$LINENO"; then :
11458  ac_cv_lib_dld_shl_load=yes
11459else
11460  ac_cv_lib_dld_shl_load=no
11461fi
11462rm -f core conftest.err conftest.$ac_objext \
11463    conftest$ac_exeext conftest.$ac_ext
11464LIBS=$ac_check_lib_save_LIBS
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11467$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11468if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11469  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11470else
11471  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11472if test "x$ac_cv_func_dlopen" = xyes; then :
11473  lt_cv_dlopen=dlopen
11474else
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11476$as_echo_n "checking for dlopen in -ldl... " >&6; }
11477if ${ac_cv_lib_dl_dlopen+:} false; then :
11478  $as_echo_n "(cached) " >&6
11479else
11480  ac_check_lib_save_LIBS=$LIBS
11481LIBS="-ldl  $LIBS"
11482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483/* end confdefs.h.  */
11484
11485/* Override any GCC internal prototype to avoid an error.
11486   Use char because int might match the return type of a GCC
11487   builtin and then its argument prototype would still apply.  */
11488#ifdef __cplusplus
11489extern "C"
11490#endif
11491char dlopen ();
11492int
11493main ()
11494{
11495return dlopen ();
11496  ;
11497  return 0;
11498}
11499_ACEOF
11500if ac_fn_c_try_link "$LINENO"; then :
11501  ac_cv_lib_dl_dlopen=yes
11502else
11503  ac_cv_lib_dl_dlopen=no
11504fi
11505rm -f core conftest.err conftest.$ac_objext \
11506    conftest$ac_exeext conftest.$ac_ext
11507LIBS=$ac_check_lib_save_LIBS
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11510$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11511if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11512  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11515$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11516if ${ac_cv_lib_svld_dlopen+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  ac_check_lib_save_LIBS=$LIBS
11520LIBS="-lsvld  $LIBS"
11521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522/* end confdefs.h.  */
11523
11524/* Override any GCC internal prototype to avoid an error.
11525   Use char because int might match the return type of a GCC
11526   builtin and then its argument prototype would still apply.  */
11527#ifdef __cplusplus
11528extern "C"
11529#endif
11530char dlopen ();
11531int
11532main ()
11533{
11534return dlopen ();
11535  ;
11536  return 0;
11537}
11538_ACEOF
11539if ac_fn_c_try_link "$LINENO"; then :
11540  ac_cv_lib_svld_dlopen=yes
11541else
11542  ac_cv_lib_svld_dlopen=no
11543fi
11544rm -f core conftest.err conftest.$ac_objext \
11545    conftest$ac_exeext conftest.$ac_ext
11546LIBS=$ac_check_lib_save_LIBS
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11549$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11550if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11551  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11552else
11553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11554$as_echo_n "checking for dld_link in -ldld... " >&6; }
11555if ${ac_cv_lib_dld_dld_link+:} false; then :
11556  $as_echo_n "(cached) " >&6
11557else
11558  ac_check_lib_save_LIBS=$LIBS
11559LIBS="-ldld  $LIBS"
11560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h.  */
11562
11563/* Override any GCC internal prototype to avoid an error.
11564   Use char because int might match the return type of a GCC
11565   builtin and then its argument prototype would still apply.  */
11566#ifdef __cplusplus
11567extern "C"
11568#endif
11569char dld_link ();
11570int
11571main ()
11572{
11573return dld_link ();
11574  ;
11575  return 0;
11576}
11577_ACEOF
11578if ac_fn_c_try_link "$LINENO"; then :
11579  ac_cv_lib_dld_dld_link=yes
11580else
11581  ac_cv_lib_dld_dld_link=no
11582fi
11583rm -f core conftest.err conftest.$ac_objext \
11584    conftest$ac_exeext conftest.$ac_ext
11585LIBS=$ac_check_lib_save_LIBS
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11588$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11589if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11590  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11591fi
11592
11593
11594fi
11595
11596
11597fi
11598
11599
11600fi
11601
11602
11603fi
11604
11605
11606fi
11607
11608    ;;
11609  esac
11610
11611  if test no = "$lt_cv_dlopen"; then
11612    enable_dlopen=no
11613  else
11614    enable_dlopen=yes
11615  fi
11616
11617  case $lt_cv_dlopen in
11618  dlopen)
11619    save_CPPFLAGS=$CPPFLAGS
11620    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11621
11622    save_LDFLAGS=$LDFLAGS
11623    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11624
11625    save_LIBS=$LIBS
11626    LIBS="$lt_cv_dlopen_libs $LIBS"
11627
11628    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11629$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11630if ${lt_cv_dlopen_self+:} false; then :
11631  $as_echo_n "(cached) " >&6
11632else
11633  	  if test yes = "$cross_compiling"; then :
11634  lt_cv_dlopen_self=cross
11635else
11636  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11637  lt_status=$lt_dlunknown
11638  cat > conftest.$ac_ext <<_LT_EOF
11639#line $LINENO "configure"
11640#include "confdefs.h"
11641
11642#if HAVE_DLFCN_H
11643#include <dlfcn.h>
11644#endif
11645
11646#include <stdio.h>
11647
11648#ifdef RTLD_GLOBAL
11649#  define LT_DLGLOBAL		RTLD_GLOBAL
11650#else
11651#  ifdef DL_GLOBAL
11652#    define LT_DLGLOBAL		DL_GLOBAL
11653#  else
11654#    define LT_DLGLOBAL		0
11655#  endif
11656#endif
11657
11658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11659   find out it does not work in some platform. */
11660#ifndef LT_DLLAZY_OR_NOW
11661#  ifdef RTLD_LAZY
11662#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11663#  else
11664#    ifdef DL_LAZY
11665#      define LT_DLLAZY_OR_NOW		DL_LAZY
11666#    else
11667#      ifdef RTLD_NOW
11668#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11669#      else
11670#        ifdef DL_NOW
11671#          define LT_DLLAZY_OR_NOW	DL_NOW
11672#        else
11673#          define LT_DLLAZY_OR_NOW	0
11674#        endif
11675#      endif
11676#    endif
11677#  endif
11678#endif
11679
11680/* When -fvisibility=hidden is used, assume the code has been annotated
11681   correspondingly for the symbols needed.  */
11682#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11683int fnord () __attribute__((visibility("default")));
11684#endif
11685
11686int fnord () { return 42; }
11687int main ()
11688{
11689  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11690  int status = $lt_dlunknown;
11691
11692  if (self)
11693    {
11694      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11695      else
11696        {
11697	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11698          else puts (dlerror ());
11699	}
11700      /* dlclose (self); */
11701    }
11702  else
11703    puts (dlerror ());
11704
11705  return status;
11706}
11707_LT_EOF
11708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11709  (eval $ac_link) 2>&5
11710  ac_status=$?
11711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11712  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11713    (./conftest; exit; ) >&5 2>/dev/null
11714    lt_status=$?
11715    case x$lt_status in
11716      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11717      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11718      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11719    esac
11720  else :
11721    # compilation failed
11722    lt_cv_dlopen_self=no
11723  fi
11724fi
11725rm -fr conftest*
11726
11727
11728fi
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11730$as_echo "$lt_cv_dlopen_self" >&6; }
11731
11732    if test yes = "$lt_cv_dlopen_self"; then
11733      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11734      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11735$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11736if ${lt_cv_dlopen_self_static+:} false; then :
11737  $as_echo_n "(cached) " >&6
11738else
11739  	  if test yes = "$cross_compiling"; then :
11740  lt_cv_dlopen_self_static=cross
11741else
11742  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11743  lt_status=$lt_dlunknown
11744  cat > conftest.$ac_ext <<_LT_EOF
11745#line $LINENO "configure"
11746#include "confdefs.h"
11747
11748#if HAVE_DLFCN_H
11749#include <dlfcn.h>
11750#endif
11751
11752#include <stdio.h>
11753
11754#ifdef RTLD_GLOBAL
11755#  define LT_DLGLOBAL		RTLD_GLOBAL
11756#else
11757#  ifdef DL_GLOBAL
11758#    define LT_DLGLOBAL		DL_GLOBAL
11759#  else
11760#    define LT_DLGLOBAL		0
11761#  endif
11762#endif
11763
11764/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11765   find out it does not work in some platform. */
11766#ifndef LT_DLLAZY_OR_NOW
11767#  ifdef RTLD_LAZY
11768#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11769#  else
11770#    ifdef DL_LAZY
11771#      define LT_DLLAZY_OR_NOW		DL_LAZY
11772#    else
11773#      ifdef RTLD_NOW
11774#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11775#      else
11776#        ifdef DL_NOW
11777#          define LT_DLLAZY_OR_NOW	DL_NOW
11778#        else
11779#          define LT_DLLAZY_OR_NOW	0
11780#        endif
11781#      endif
11782#    endif
11783#  endif
11784#endif
11785
11786/* When -fvisibility=hidden is used, assume the code has been annotated
11787   correspondingly for the symbols needed.  */
11788#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11789int fnord () __attribute__((visibility("default")));
11790#endif
11791
11792int fnord () { return 42; }
11793int main ()
11794{
11795  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11796  int status = $lt_dlunknown;
11797
11798  if (self)
11799    {
11800      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11801      else
11802        {
11803	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11804          else puts (dlerror ());
11805	}
11806      /* dlclose (self); */
11807    }
11808  else
11809    puts (dlerror ());
11810
11811  return status;
11812}
11813_LT_EOF
11814  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11815  (eval $ac_link) 2>&5
11816  ac_status=$?
11817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11818  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11819    (./conftest; exit; ) >&5 2>/dev/null
11820    lt_status=$?
11821    case x$lt_status in
11822      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11823      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11824      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11825    esac
11826  else :
11827    # compilation failed
11828    lt_cv_dlopen_self_static=no
11829  fi
11830fi
11831rm -fr conftest*
11832
11833
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11836$as_echo "$lt_cv_dlopen_self_static" >&6; }
11837    fi
11838
11839    CPPFLAGS=$save_CPPFLAGS
11840    LDFLAGS=$save_LDFLAGS
11841    LIBS=$save_LIBS
11842    ;;
11843  esac
11844
11845  case $lt_cv_dlopen_self in
11846  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11847  *) enable_dlopen_self=unknown ;;
11848  esac
11849
11850  case $lt_cv_dlopen_self_static in
11851  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11852  *) enable_dlopen_self_static=unknown ;;
11853  esac
11854fi
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872striplib=
11873old_striplib=
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11875$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11876if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11877  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11878  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11880$as_echo "yes" >&6; }
11881else
11882# FIXME - insert some real tests, host_os isn't really good enough
11883  case $host_os in
11884  darwin*)
11885    if test -n "$STRIP"; then
11886      striplib="$STRIP -x"
11887      old_striplib="$STRIP -S"
11888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889$as_echo "yes" >&6; }
11890    else
11891      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
11893    fi
11894    ;;
11895  *)
11896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898    ;;
11899  esac
11900fi
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913  # Report what library types will actually be built
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11915$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11917$as_echo "$can_build_shared" >&6; }
11918
11919  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11920$as_echo_n "checking whether to build shared libraries... " >&6; }
11921  test no = "$can_build_shared" && enable_shared=no
11922
11923  # On AIX, shared libraries and static libraries use the same namespace, and
11924  # are all built from PIC.
11925  case $host_os in
11926  aix3*)
11927    test yes = "$enable_shared" && enable_static=no
11928    if test -n "$RANLIB"; then
11929      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11930      postinstall_cmds='$RANLIB $lib'
11931    fi
11932    ;;
11933
11934  aix[4-9]*)
11935    if test ia64 != "$host_cpu"; then
11936      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11937      yes,aix,yes) ;;			# shared object as lib.so file only
11938      yes,svr4,*) ;;			# shared object as lib.so archive member only
11939      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
11940      esac
11941    fi
11942    ;;
11943  esac
11944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11945$as_echo "$enable_shared" >&6; }
11946
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11948$as_echo_n "checking whether to build static libraries... " >&6; }
11949  # Make sure either enable_shared or enable_static is yes.
11950  test yes = "$enable_shared" || enable_static=yes
11951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11952$as_echo "$enable_static" >&6; }
11953
11954
11955
11956
11957fi
11958ac_ext=c
11959ac_cpp='$CPP $CPPFLAGS'
11960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964CC=$lt_save_CC
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980        ac_config_commands="$ac_config_commands libtool"
11981
11982
11983
11984
11985# Only expand once:
11986
11987
11988# Find a good install program.  We prefer a C program (faster),
11989# so one script is as good as another.  But avoid the broken or
11990# incompatible versions:
11991# SysV /etc/install, /usr/sbin/install
11992# SunOS /usr/etc/install
11993# IRIX /sbin/install
11994# AIX /bin/install
11995# AmigaOS /C/install, which installs bootblocks on floppy discs
11996# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11997# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11998# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11999# OS/2's system install, which has a completely different semantic
12000# ./install, which can be erroneously created by make from ./install.sh.
12001# Reject install programs that cannot install multiple files.
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12003$as_echo_n "checking for a BSD-compatible install... " >&6; }
12004if test -z "$INSTALL"; then
12005if ${ac_cv_path_install+:} false; then :
12006  $as_echo_n "(cached) " >&6
12007else
12008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011  IFS=$as_save_IFS
12012  test -z "$as_dir" && as_dir=.
12013    # Account for people who put trailing slashes in PATH elements.
12014case $as_dir/ in #((
12015  ./ | .// | /[cC]/* | \
12016  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12017  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12018  /usr/ucb/* ) ;;
12019  *)
12020    # OSF1 and SCO ODT 3.0 have their own names for install.
12021    # Don't use installbsd from OSF since it installs stuff as root
12022    # by default.
12023    for ac_prog in ginstall scoinst install; do
12024      for ac_exec_ext in '' $ac_executable_extensions; do
12025	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12026	  if test $ac_prog = install &&
12027	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12028	    # AIX install.  It has an incompatible calling convention.
12029	    :
12030	  elif test $ac_prog = install &&
12031	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12032	    # program-specific install script used by HP pwplus--don't use.
12033	    :
12034	  else
12035	    rm -rf conftest.one conftest.two conftest.dir
12036	    echo one > conftest.one
12037	    echo two > conftest.two
12038	    mkdir conftest.dir
12039	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12040	      test -s conftest.one && test -s conftest.two &&
12041	      test -s conftest.dir/conftest.one &&
12042	      test -s conftest.dir/conftest.two
12043	    then
12044	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12045	      break 3
12046	    fi
12047	  fi
12048	fi
12049      done
12050    done
12051    ;;
12052esac
12053
12054  done
12055IFS=$as_save_IFS
12056
12057rm -rf conftest.one conftest.two conftest.dir
12058
12059fi
12060  if test "${ac_cv_path_install+set}" = set; then
12061    INSTALL=$ac_cv_path_install
12062  else
12063    # As a last resort, use the slow shell script.  Don't cache a
12064    # value for INSTALL within a source directory, because that will
12065    # break other packages using the cache if that directory is
12066    # removed, or if the value is a relative name.
12067    INSTALL=$ac_install_sh
12068  fi
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12071$as_echo "$INSTALL" >&6; }
12072
12073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12074# It thinks the first close brace ends the variable substitution.
12075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12076
12077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12078
12079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12080
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12082$as_echo_n "checking whether ln -s works... " >&6; }
12083LN_S=$as_ln_s
12084if test "$LN_S" = "ln -s"; then
12085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12086$as_echo "yes" >&6; }
12087else
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12089$as_echo "no, using $LN_S" >&6; }
12090fi
12091
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
12093$as_echo_n "checking for a POSIX-compatible shell... " >&6; }
12094if ${ac_cv_prog_shell+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097  ac_test_shell_script='
12098			  test "$(expr 1 + 1)" = "2" &&
12099			  test "$(( 1 + 1 ))" = "2"
12100			  '
12101
12102			  for ac_cv_prog_shell in \
12103			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
12104			    case $ac_cv_prog_shell in #(
12105  /*) :
12106
12107				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
12108  break
12109fi
12110				     ;; #(
12111  *) :
12112     ;;
12113esac
12114			  done
12115
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
12118$as_echo "$ac_cv_prog_shell" >&6; }
12119	  if test "$ac_cv_prog_shell" = "no"; then :
12120  SHELL=/bin/sh
12121		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
12122$as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
12123
12124else
12125  SHELL="$ac_cv_prog_shell"
12126
12127fi
12128
12129
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
12131$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
12132if test -z "$MKDIR_P"; then
12133  if ${ac_cv_path_mkdir+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12138do
12139  IFS=$as_save_IFS
12140  test -z "$as_dir" && as_dir=.
12141    for ac_prog in mkdir gmkdir; do
12142	 for ac_exec_ext in '' $ac_executable_extensions; do
12143	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
12144	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12145	     'mkdir (GNU coreutils) '* | \
12146	     'mkdir (coreutils) '* | \
12147	     'mkdir (fileutils) '4.1*)
12148	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12149	       break 3;;
12150	   esac
12151	 done
12152       done
12153  done
12154IFS=$as_save_IFS
12155
12156fi
12157
12158  test -d ./--version && rmdir ./--version
12159  if test "${ac_cv_path_mkdir+set}" = set; then
12160    MKDIR_P="$ac_cv_path_mkdir -p"
12161  else
12162    # As a last resort, use the slow shell script.  Don't cache a
12163    # value for MKDIR_P within a source directory, because that will
12164    # break other packages using the cache if that directory is
12165    # removed, or if the value is a relative name.
12166    MKDIR_P="$ac_install_sh -d"
12167  fi
12168fi
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12170$as_echo "$MKDIR_P" >&6; }
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180#
12181# Use pkg-config
12182#
12183
12184
12185
12186
12187
12188
12189
12190
12191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12192	if test -n "$ac_tool_prefix"; then
12193  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12194set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196$as_echo_n "checking for $ac_word... " >&6; }
12197if ${ac_cv_path_PKG_CONFIG+:} false; then :
12198  $as_echo_n "(cached) " >&6
12199else
12200  case $PKG_CONFIG in
12201  [\\/]* | ?:[\\/]*)
12202  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12203  ;;
12204  *)
12205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208  IFS=$as_save_IFS
12209  test -z "$as_dir" && as_dir=.
12210    for ac_exec_ext in '' $ac_executable_extensions; do
12211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214    break 2
12215  fi
12216done
12217  done
12218IFS=$as_save_IFS
12219
12220  ;;
12221esac
12222fi
12223PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12224if test -n "$PKG_CONFIG"; then
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12226$as_echo "$PKG_CONFIG" >&6; }
12227else
12228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233fi
12234if test -z "$ac_cv_path_PKG_CONFIG"; then
12235  ac_pt_PKG_CONFIG=$PKG_CONFIG
12236  # Extract the first word of "pkg-config", so it can be a program name with args.
12237set dummy pkg-config; ac_word=$2
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239$as_echo_n "checking for $ac_word... " >&6; }
12240if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12241  $as_echo_n "(cached) " >&6
12242else
12243  case $ac_pt_PKG_CONFIG in
12244  [\\/]* | ?:[\\/]*)
12245  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12246  ;;
12247  *)
12248  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251  IFS=$as_save_IFS
12252  test -z "$as_dir" && as_dir=.
12253    for ac_exec_ext in '' $ac_executable_extensions; do
12254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257    break 2
12258  fi
12259done
12260  done
12261IFS=$as_save_IFS
12262
12263  ;;
12264esac
12265fi
12266ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12267if test -n "$ac_pt_PKG_CONFIG"; then
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12269$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12270else
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275  if test "x$ac_pt_PKG_CONFIG" = x; then
12276    PKG_CONFIG=""
12277  else
12278    case $cross_compiling:$ac_tool_warned in
12279yes:)
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12282ac_tool_warned=yes ;;
12283esac
12284    PKG_CONFIG=$ac_pt_PKG_CONFIG
12285  fi
12286else
12287  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12288fi
12289
12290fi
12291if test -n "$PKG_CONFIG"; then
12292	_pkg_min_version=0.9.0
12293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12294$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12295	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297$as_echo "yes" >&6; }
12298	else
12299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300$as_echo "no" >&6; }
12301		PKG_CONFIG=""
12302	fi
12303fi
12304if test -z "$PKG_CONFIG"; then :
12305  as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
12306fi
12307
12308# [pairwise: --enable-buffer-useinline, --disable-buffer-useinline]
12309# Check whether --enable-buffer_useinline was given.
12310if test "${enable_buffer_useinline+set}" = set; then :
12311  enableval=$enable_buffer_useinline; if test yes = "${enable}"
12312	      then
12313
12314$as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
12315
12316	      fi
12317else
12318  $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
12319
12320fi
12321
12322
12323# [pairwise: --enable-warn-shadow, --disable-warn-shadow]
12324# Check whether --enable-warn_shadow was given.
12325if test "${enable_warn_shadow+set}" = set; then :
12326  enableval=$enable_warn_shadow;
12327fi
12328
12329
12330# [pairwise: --enable-warn-error, --disable-warn-error]
12331# Check whether --enable-warn_error was given.
12332if test "${enable_warn_error+set}" = set; then :
12333  enableval=$enable_warn_error;
12334fi
12335
12336
12337# [pairwise: --enable-developer, --disable-developer]
12338# Check whether --enable-developer was given.
12339if test "${enable_developer+set}" = set; then :
12340  enableval=$enable_developer;
12341fi
12342
12343
12344XTARGETS=
12345if test "$enable_developer" = "yes"; then :
12346  STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
12347       test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
12348       test "${enable_querytrace+set}" = set || enable_querytrace=yes
12349       test "${with_cmocka+set}" = set || with_cmocka=yes
12350       test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
12351       test "${enable_symtable+set}" = set || enable_symtable=all
12352       test "${enable_warn_error+set}" = set || enable_warn_error=yes
12353       test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
12354       test "${with_zlib+set}" = set || with_zlib=yes
12355       XTARGETS='${XTARGETS}'
12356
12357fi
12358
12359
12360# Fuzzing is not included in pairwise testing as fuzzing tools are
12361# not present in the relevant Docker image.
12362#
12363# [pairwise: skip]
12364# Check whether --enable-fuzzing was given.
12365if test "${enable_fuzzing+set}" = set; then :
12366  enableval=$enable_fuzzing;
12367else
12368  enable_fuzzing=no
12369fi
12370
12371
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
12373$as_echo_n "checking whether to enable fuzzing mode... " >&6; }
12374case $enable_fuzzing in #(
12375  no) :
12376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; } ;; #(
12378  afl) :
12379
12380	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
12381$as_echo "using AFL" >&6; }
12382
12383$as_echo "#define ENABLE_AFL 1" >>confdefs.h
12384
12385	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
12386	  LIBS="$LIBS -lpthread" ;; #(
12387  libfuzzer) :
12388
12389	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
12390$as_echo "using libFuzzer" >&6; }
12391	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
12392	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
12393  *) :
12394    as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
12395  *) :
12396     ;;
12397esac
12398
12399if test "$enable_fuzzing" = "afl"; then :
12400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
12401$as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
12402       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h.  */
12404
12405int
12406main ()
12407{
12408#ifndef __AFL_COMPILER
12409					   #error AFL compiler required
12410					   #endif
12411
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416if ac_fn_c_try_compile "$LINENO"; then :
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418$as_echo "yes" >&6; }
12419else
12420  as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
12421fi
12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423
12424fi
12425
12426# [pairwise: --enable-mutex-atomics, --disable-mutex-atomics]
12427# Check whether --enable-mutex_atomics was given.
12428if test "${enable_mutex_atomics+set}" = set; then :
12429  enableval=$enable_mutex_atomics;
12430else
12431  enable_mutex_atomics=no
12432fi
12433
12434
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to emulate atomics with mutexes" >&5
12436$as_echo_n "checking whether to emulate atomics with mutexes... " >&6; }
12437case "$enable_mutex_atomics" in
12438yes)
12439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12440$as_echo "yes" >&6; }
12441
12442$as_echo "#define ISC_MUTEX_ATOMICS 1" >>confdefs.h
12443
12444        ;;
12445no)
12446        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448        ;;
12449*)
12450        as_fn_error $? "\"--enable-mutex-atomics requires yes or no\"" "$LINENO" 5
12451        ;;
12452esac
12453
12454#
12455# Make very sure that these are the first files processed by
12456# config.status, since we use the processed output as the input for
12457# AC_SUBST_FILE() substitutions in other files.
12458#
12459ac_config_files="$ac_config_files make/rules make/includes"
12460
12461
12462# Extract the first word of "ar", so it can be a program name with args.
12463set dummy ar; ac_word=$2
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
12466if ${ac_cv_path_AR+:} false; then :
12467  $as_echo_n "(cached) " >&6
12468else
12469  case $AR in
12470  [\\/]* | ?:[\\/]*)
12471  ac_cv_path_AR="$AR" # Let the user override the test with a path.
12472  ;;
12473  *)
12474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475for as_dir in $PATH
12476do
12477  IFS=$as_save_IFS
12478  test -z "$as_dir" && as_dir=.
12479    for ac_exec_ext in '' $ac_executable_extensions; do
12480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
12482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483    break 2
12484  fi
12485done
12486  done
12487IFS=$as_save_IFS
12488
12489  ;;
12490esac
12491fi
12492AR=$ac_cv_path_AR
12493if test -n "$AR"; then
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12495$as_echo "$AR" >&6; }
12496else
12497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499fi
12500
12501
12502ARFLAGS="cruv"
12503
12504
12505
12506# The POSIX ln(1) program.  Non-POSIX systems may substitute
12507# "copy" or something.
12508LN=ln
12509
12510
12511case "$AR" in
12512	"")
12513		as_fn_error $? "
12514ar program not found.  Please fix your PATH to include the directory in
12515which ar resides, or set AR in the environment with the full path to ar.
12516" "$LINENO" 5
12517
12518		;;
12519esac
12520
12521#
12522# Look for w3m
12523#
12524for ac_prog in w3m
12525do
12526  # Extract the first word of "$ac_prog", so it can be a program name with args.
12527set dummy $ac_prog; ac_word=$2
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529$as_echo_n "checking for $ac_word... " >&6; }
12530if ${ac_cv_path_W3M+:} false; then :
12531  $as_echo_n "(cached) " >&6
12532else
12533  case $W3M in
12534  [\\/]* | ?:[\\/]*)
12535  ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
12536  ;;
12537  *)
12538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539for as_dir in $PATH
12540do
12541  IFS=$as_save_IFS
12542  test -z "$as_dir" && as_dir=.
12543    for ac_exec_ext in '' $ac_executable_extensions; do
12544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545    ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
12546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547    break 2
12548  fi
12549done
12550  done
12551IFS=$as_save_IFS
12552
12553  ;;
12554esac
12555fi
12556W3M=$ac_cv_path_W3M
12557if test -n "$W3M"; then
12558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
12559$as_echo "$W3M" >&6; }
12560else
12561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562$as_echo "no" >&6; }
12563fi
12564
12565
12566  test -n "$W3M" && break
12567done
12568test -n "$W3M" || W3M="w3m"
12569
12570
12571
12572#
12573# Look for pandoc
12574#
12575# Extract the first word of "pandoc", so it can be a program name with args.
12576set dummy pandoc; ac_word=$2
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
12579if ${ac_cv_path_PANDOC+:} false; then :
12580  $as_echo_n "(cached) " >&6
12581else
12582  case $PANDOC in
12583  [\\/]* | ?:[\\/]*)
12584  ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
12585  ;;
12586  *)
12587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590  IFS=$as_save_IFS
12591  test -z "$as_dir" && as_dir=.
12592    for ac_exec_ext in '' $ac_executable_extensions; do
12593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594    ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
12595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596    break 2
12597  fi
12598done
12599  done
12600IFS=$as_save_IFS
12601
12602  test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
12603  ;;
12604esac
12605fi
12606PANDOC=$ac_cv_path_PANDOC
12607if test -n "$PANDOC"; then
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
12609$as_echo "$PANDOC" >&6; }
12610else
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616
12617
12618#
12619# Perl is optional; it is used only by some of the system test scripts.
12620# Note: the backtrace feature (see below) uses perl to build the symbol table,
12621# but it still compiles without perl, in which case an empty table will be used.
12622#
12623for ac_prog in perl5 perl
12624do
12625  # Extract the first word of "$ac_prog", so it can be a program name with args.
12626set dummy $ac_prog; ac_word=$2
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628$as_echo_n "checking for $ac_word... " >&6; }
12629if ${ac_cv_path_PERL+:} false; then :
12630  $as_echo_n "(cached) " >&6
12631else
12632  case $PERL in
12633  [\\/]* | ?:[\\/]*)
12634  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12635  ;;
12636  *)
12637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640  IFS=$as_save_IFS
12641  test -z "$as_dir" && as_dir=.
12642    for ac_exec_ext in '' $ac_executable_extensions; do
12643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646    break 2
12647  fi
12648done
12649  done
12650IFS=$as_save_IFS
12651
12652  ;;
12653esac
12654fi
12655PERL=$ac_cv_path_PERL
12656if test -n "$PERL"; then
12657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12658$as_echo "$PERL" >&6; }
12659else
12660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
12662fi
12663
12664
12665  test -n "$PERL" && break
12666done
12667
12668
12669
12670#
12671# Python is also optional but required by default so that dnssec-keymgr gets
12672# installed unless explicitly prevented by the user using --without-python.
12673#
12674testminvers='import sys
12675if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
12676   exit(1)'
12677
12678testargparse='try: import argparse
12679except: exit(1)'
12680
12681testply='try: import ply
12682except: exit(1)'
12683
12684testsetup='try: from distutils.core import setup
12685except: exit(1)'
12686
12687default_with_python="python python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
12688
12689
12690
12691# [pairwise: --with-python, --without-python]
12692
12693# Check whether --with-python was given.
12694if test "${with_python+set}" = set; then :
12695  withval=$with_python;
12696else
12697  with_python=$default_with_python
12698fi
12699
12700
12701# [pairwise: skip]
12702
12703# Check whether --with-python-install-dir was given.
12704if test "${with_python_install_dir+set}" = set; then :
12705  withval=$with_python_install_dir;
12706else
12707  with_python_install_dir=""
12708fi
12709
12710
12711if test "$with_python" = "yes"; then :
12712  with_python=$default_with_python
12713fi
12714
12715if test "$with_python" = "no"; then :
12716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12717$as_echo_n "checking for Python support... " >&6; }
12718       unset PYTHON
12719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12720$as_echo "disabled" >&6; }
12721else
12722  for p in $with_python
12723       do
12724	 case $p in #(
12725  /*) :
12726    PYTHON="$p" ;; #(
12727  *) :
12728     ;;
12729esac
12730
12731	 # Extract the first word of "$p", so it can be a program name with args.
12732set dummy $p; ac_word=$2
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
12735if ${ac_cv_path_PYTHON+:} false; then :
12736  $as_echo_n "(cached) " >&6
12737else
12738  case $PYTHON in
12739  [\\/]* | ?:[\\/]*)
12740  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12741  ;;
12742  *)
12743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744for as_dir in $PATH
12745do
12746  IFS=$as_save_IFS
12747  test -z "$as_dir" && as_dir=.
12748    for ac_exec_ext in '' $ac_executable_extensions; do
12749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12750    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752    break 2
12753  fi
12754done
12755  done
12756IFS=$as_save_IFS
12757
12758  ;;
12759esac
12760fi
12761PYTHON=$ac_cv_path_PYTHON
12762if test -n "$PYTHON"; then
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12764$as_echo "$PYTHON" >&6; }
12765else
12766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
12768fi
12769
12770
12771	 # Do not cache the result of the check from the previous line.  If the
12772	 # first found Python interpreter has missing module dependencies and
12773	 # the result of the above check is cached, subsequent module checks
12774	 # will erroneously keep on using the cached path to the first found
12775	 # Python interpreter instead of different ones.
12776	 unset ac_cv_path_PYTHON
12777
12778	 if test -z "$PYTHON"; then :
12779  continue
12780fi
12781
12782	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
12783$as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
12784	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786$as_echo "yes" >&6; }
12787else
12788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
12790		unset PYTHON
12791		continue
12792fi
12793
12794	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
12795$as_echo_n "checking Python module 'argparse'... " >&6; }
12796	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
12797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798$as_echo "yes" >&6; }
12799else
12800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
12802		unset PYTHON
12803		continue
12804fi
12805
12806	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
12807$as_echo_n "checking Python module 'ply'... " >&6; }
12808	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
12809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810$as_echo "yes" >&6; }
12811else
12812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813$as_echo "no" >&6; }
12814		unset PYTHON
12815		continue
12816fi
12817
12818	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
12819$as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
12820	 if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
12821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822$as_echo "yes" >&6; }
12823else
12824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825$as_echo "no" >&6; }
12826		unset PYTHON
12827		continue
12828fi
12829
12830	 # Stop looking any further once we find a Python interpreter
12831	 # satisfying all requirements.
12832	 break
12833       done
12834
12835       if test "X$PYTHON" = "X"; then :
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
12837$as_echo_n "checking for Python support... " >&6; }
12838	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839$as_echo "no" >&6; }
12840	      as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
12841fi
12842fi
12843
12844PYTHON_TOOLS=''
12845CHECKDS=''
12846COVERAGE=''
12847KEYMGR=''
12848if test "X$PYTHON" != "X"; then :
12849  PYTHON_TOOLS=python
12850       CHECKDS=checkdstool
12851       COVERAGE=coverage
12852       KEYMGR=keymgr
12853       PYTHON_INSTALL_DIR="$with_python_install_dir"
12854       if test -n "$with_python_install_dir"; then :
12855  PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
12856fi
12857fi
12858
12859
12860
12861
12862
12863
12864
12865#
12866# expanded_sysconfdir is needed for replacement in the python utilities
12867#
12868expanded_sysconfdir=`eval echo $sysconfdir`
12869
12870
12871#
12872# Make sure INSTALL uses an absolute path, else it will be wrong in all
12873# Makefiles, since they use make/rules.in and INSTALL will be adjusted by
12874# configure based on the location of the file where it is substituted.
12875# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
12876# subdirectory of install-sh, This relative path will be wrong for all
12877# directories more than one level down from install-sh.
12878#
12879case "$INSTALL" in
12880	/*)
12881		;;
12882	*)
12883		#
12884		# Not all systems have dirname.
12885		#
12886
12887		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
12888
12889
12890		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
12891		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
12892		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
12893		INSTALL="$ac_dir/$ac_prog"
12894		;;
12895esac
12896
12897for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy
12898do
12899  # Extract the first word of "$ac_prog", so it can be a program name with args.
12900set dummy $ac_prog; ac_word=$2
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902$as_echo_n "checking for $ac_word... " >&6; }
12903if ${ac_cv_path_PYTEST+:} false; then :
12904  $as_echo_n "(cached) " >&6
12905else
12906  case $PYTEST in
12907  [\\/]* | ?:[\\/]*)
12908  ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
12909  ;;
12910  *)
12911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912for as_dir in $PATH
12913do
12914  IFS=$as_save_IFS
12915  test -z "$as_dir" && as_dir=.
12916    for ac_exec_ext in '' $ac_executable_extensions; do
12917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918    ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
12919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920    break 2
12921  fi
12922done
12923  done
12924IFS=$as_save_IFS
12925
12926  ;;
12927esac
12928fi
12929PYTEST=$ac_cv_path_PYTEST
12930if test -n "$PYTEST"; then
12931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
12932$as_echo "$PYTEST" >&6; }
12933else
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938
12939  test -n "$PYTEST" && break
12940done
12941
12942if test -z "$PYTEST"; then :
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
12944$as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
12945fi
12946
12947
12948
12949ac_ext=c
12950ac_cpp='$CPP $CPPFLAGS'
12951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12953ac_compiler_gnu=$ac_cv_c_compiler_gnu
12954if test -n "$ac_tool_prefix"; then
12955  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12956set dummy ${ac_tool_prefix}gcc; ac_word=$2
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958$as_echo_n "checking for $ac_word... " >&6; }
12959if ${ac_cv_prog_CC+:} false; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  if test -n "$CC"; then
12963  ac_cv_prog_CC="$CC" # Let the user override the test.
12964else
12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968  IFS=$as_save_IFS
12969  test -z "$as_dir" && as_dir=.
12970    for ac_exec_ext in '' $ac_executable_extensions; do
12971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974    break 2
12975  fi
12976done
12977  done
12978IFS=$as_save_IFS
12979
12980fi
12981fi
12982CC=$ac_cv_prog_CC
12983if test -n "$CC"; then
12984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12985$as_echo "$CC" >&6; }
12986else
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
12989fi
12990
12991
12992fi
12993if test -z "$ac_cv_prog_CC"; then
12994  ac_ct_CC=$CC
12995  # Extract the first word of "gcc", so it can be a program name with args.
12996set dummy gcc; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if ${ac_cv_prog_ac_ct_CC+:} false; then :
13000  $as_echo_n "(cached) " >&6
13001else
13002  if test -n "$ac_ct_CC"; then
13003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008  IFS=$as_save_IFS
13009  test -z "$as_dir" && as_dir=.
13010    for ac_exec_ext in '' $ac_executable_extensions; do
13011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012    ac_cv_prog_ac_ct_CC="gcc"
13013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014    break 2
13015  fi
13016done
13017  done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022ac_ct_CC=$ac_cv_prog_ac_ct_CC
13023if test -n "$ac_ct_CC"; then
13024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13025$as_echo "$ac_ct_CC" >&6; }
13026else
13027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031  if test "x$ac_ct_CC" = x; then
13032    CC=""
13033  else
13034    case $cross_compiling:$ac_tool_warned in
13035yes:)
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13038ac_tool_warned=yes ;;
13039esac
13040    CC=$ac_ct_CC
13041  fi
13042else
13043  CC="$ac_cv_prog_CC"
13044fi
13045
13046if test -z "$CC"; then
13047          if test -n "$ac_tool_prefix"; then
13048    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13049set dummy ${ac_tool_prefix}cc; ac_word=$2
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051$as_echo_n "checking for $ac_word... " >&6; }
13052if ${ac_cv_prog_CC+:} false; then :
13053  $as_echo_n "(cached) " >&6
13054else
13055  if test -n "$CC"; then
13056  ac_cv_prog_CC="$CC" # Let the user override the test.
13057else
13058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059for as_dir in $PATH
13060do
13061  IFS=$as_save_IFS
13062  test -z "$as_dir" && as_dir=.
13063    for ac_exec_ext in '' $ac_executable_extensions; do
13064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065    ac_cv_prog_CC="${ac_tool_prefix}cc"
13066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067    break 2
13068  fi
13069done
13070  done
13071IFS=$as_save_IFS
13072
13073fi
13074fi
13075CC=$ac_cv_prog_CC
13076if test -n "$CC"; then
13077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13078$as_echo "$CC" >&6; }
13079else
13080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081$as_echo "no" >&6; }
13082fi
13083
13084
13085  fi
13086fi
13087if test -z "$CC"; then
13088  # Extract the first word of "cc", so it can be a program name with args.
13089set dummy cc; ac_word=$2
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
13092if ${ac_cv_prog_CC+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  if test -n "$CC"; then
13096  ac_cv_prog_CC="$CC" # Let the user override the test.
13097else
13098  ac_prog_rejected=no
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102  IFS=$as_save_IFS
13103  test -z "$as_dir" && as_dir=.
13104    for ac_exec_ext in '' $ac_executable_extensions; do
13105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13106    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13107       ac_prog_rejected=yes
13108       continue
13109     fi
13110    ac_cv_prog_CC="cc"
13111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112    break 2
13113  fi
13114done
13115  done
13116IFS=$as_save_IFS
13117
13118if test $ac_prog_rejected = yes; then
13119  # We found a bogon in the path, so make sure we never use it.
13120  set dummy $ac_cv_prog_CC
13121  shift
13122  if test $# != 0; then
13123    # We chose a different compiler from the bogus one.
13124    # However, it has the same basename, so the bogon will be chosen
13125    # first if we set CC to just the basename; use the full file name.
13126    shift
13127    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13128  fi
13129fi
13130fi
13131fi
13132CC=$ac_cv_prog_CC
13133if test -n "$CC"; then
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13135$as_echo "$CC" >&6; }
13136else
13137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
13139fi
13140
13141
13142fi
13143if test -z "$CC"; then
13144  if test -n "$ac_tool_prefix"; then
13145  for ac_prog in cl.exe
13146  do
13147    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150$as_echo_n "checking for $ac_word... " >&6; }
13151if ${ac_cv_prog_CC+:} false; then :
13152  $as_echo_n "(cached) " >&6
13153else
13154  if test -n "$CC"; then
13155  ac_cv_prog_CC="$CC" # Let the user override the test.
13156else
13157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158for as_dir in $PATH
13159do
13160  IFS=$as_save_IFS
13161  test -z "$as_dir" && as_dir=.
13162    for ac_exec_ext in '' $ac_executable_extensions; do
13163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13164    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166    break 2
13167  fi
13168done
13169  done
13170IFS=$as_save_IFS
13171
13172fi
13173fi
13174CC=$ac_cv_prog_CC
13175if test -n "$CC"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13177$as_echo "$CC" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182
13183
13184    test -n "$CC" && break
13185  done
13186fi
13187if test -z "$CC"; then
13188  ac_ct_CC=$CC
13189  for ac_prog in cl.exe
13190do
13191  # Extract the first word of "$ac_prog", so it can be a program name with args.
13192set dummy $ac_prog; ac_word=$2
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
13195if ${ac_cv_prog_ac_ct_CC+:} false; then :
13196  $as_echo_n "(cached) " >&6
13197else
13198  if test -n "$ac_ct_CC"; then
13199  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13200else
13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202for as_dir in $PATH
13203do
13204  IFS=$as_save_IFS
13205  test -z "$as_dir" && as_dir=.
13206    for ac_exec_ext in '' $ac_executable_extensions; do
13207  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208    ac_cv_prog_ac_ct_CC="$ac_prog"
13209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210    break 2
13211  fi
13212done
13213  done
13214IFS=$as_save_IFS
13215
13216fi
13217fi
13218ac_ct_CC=$ac_cv_prog_ac_ct_CC
13219if test -n "$ac_ct_CC"; then
13220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13221$as_echo "$ac_ct_CC" >&6; }
13222else
13223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
13225fi
13226
13227
13228  test -n "$ac_ct_CC" && break
13229done
13230
13231  if test "x$ac_ct_CC" = x; then
13232    CC=""
13233  else
13234    case $cross_compiling:$ac_tool_warned in
13235yes:)
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13238ac_tool_warned=yes ;;
13239esac
13240    CC=$ac_ct_CC
13241  fi
13242fi
13243
13244fi
13245
13246
13247test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13249as_fn_error $? "no acceptable C compiler found in \$PATH
13250See \`config.log' for more details" "$LINENO" 5; }
13251
13252# Provide some information about the compiler.
13253$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13254set X $ac_compile
13255ac_compiler=$2
13256for ac_option in --version -v -V -qversion; do
13257  { { ac_try="$ac_compiler $ac_option >&5"
13258case "(($ac_try" in
13259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260  *) ac_try_echo=$ac_try;;
13261esac
13262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13263$as_echo "$ac_try_echo"; } >&5
13264  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13265  ac_status=$?
13266  if test -s conftest.err; then
13267    sed '10a\
13268... rest of stderr output deleted ...
13269         10q' conftest.err >conftest.er1
13270    cat conftest.er1 >&5
13271  fi
13272  rm -f conftest.er1 conftest.err
13273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13274  test $ac_status = 0; }
13275done
13276
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13278$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13279if ${ac_cv_c_compiler_gnu+:} false; then :
13280  $as_echo_n "(cached) " >&6
13281else
13282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h.  */
13284
13285int
13286main ()
13287{
13288#ifndef __GNUC__
13289       choke me
13290#endif
13291
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296if ac_fn_c_try_compile "$LINENO"; then :
13297  ac_compiler_gnu=yes
13298else
13299  ac_compiler_gnu=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302ac_cv_c_compiler_gnu=$ac_compiler_gnu
13303
13304fi
13305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13306$as_echo "$ac_cv_c_compiler_gnu" >&6; }
13307if test $ac_compiler_gnu = yes; then
13308  GCC=yes
13309else
13310  GCC=
13311fi
13312ac_test_CFLAGS=${CFLAGS+set}
13313ac_save_CFLAGS=$CFLAGS
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13315$as_echo_n "checking whether $CC accepts -g... " >&6; }
13316if ${ac_cv_prog_cc_g+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  ac_save_c_werror_flag=$ac_c_werror_flag
13320   ac_c_werror_flag=yes
13321   ac_cv_prog_cc_g=no
13322   CFLAGS="-g"
13323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324/* end confdefs.h.  */
13325
13326int
13327main ()
13328{
13329
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_compile "$LINENO"; then :
13335  ac_cv_prog_cc_g=yes
13336else
13337  CFLAGS=""
13338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339/* end confdefs.h.  */
13340
13341int
13342main ()
13343{
13344
13345  ;
13346  return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_compile "$LINENO"; then :
13350
13351else
13352  ac_c_werror_flag=$ac_save_c_werror_flag
13353	 CFLAGS="-g"
13354	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h.  */
13356
13357int
13358main ()
13359{
13360
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_compile "$LINENO"; then :
13366  ac_cv_prog_cc_g=yes
13367fi
13368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369fi
13370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13371fi
13372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373   ac_c_werror_flag=$ac_save_c_werror_flag
13374fi
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13376$as_echo "$ac_cv_prog_cc_g" >&6; }
13377if test "$ac_test_CFLAGS" = set; then
13378  CFLAGS=$ac_save_CFLAGS
13379elif test $ac_cv_prog_cc_g = yes; then
13380  if test "$GCC" = yes; then
13381    CFLAGS="-g -O2"
13382  else
13383    CFLAGS="-g"
13384  fi
13385else
13386  if test "$GCC" = yes; then
13387    CFLAGS="-O2"
13388  else
13389    CFLAGS=
13390  fi
13391fi
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13393$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13394if ${ac_cv_prog_cc_c89+:} false; then :
13395  $as_echo_n "(cached) " >&6
13396else
13397  ac_cv_prog_cc_c89=no
13398ac_save_CC=$CC
13399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401#include <stdarg.h>
13402#include <stdio.h>
13403struct stat;
13404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13405struct buf { int x; };
13406FILE * (*rcsopen) (struct buf *, struct stat *, int);
13407static char *e (p, i)
13408     char **p;
13409     int i;
13410{
13411  return p[i];
13412}
13413static char *f (char * (*g) (char **, int), char **p, ...)
13414{
13415  char *s;
13416  va_list v;
13417  va_start (v,p);
13418  s = g (p, va_arg (v,int));
13419  va_end (v);
13420  return s;
13421}
13422
13423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13424   function prototypes and stuff, but not '\xHH' hex character constants.
13425   These don't provoke an error unfortunately, instead are silently treated
13426   as 'x'.  The following induces an error, until -std is added to get
13427   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13428   array size at least.  It's necessary to write '\x00'==0 to get something
13429   that's true only with -std.  */
13430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13431
13432/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13433   inside strings and character constants.  */
13434#define FOO(x) 'x'
13435int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13436
13437int test (int i, double x);
13438struct s1 {int (*f) (int a);};
13439struct s2 {int (*f) (double a);};
13440int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13441int argc;
13442char **argv;
13443int
13444main ()
13445{
13446return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13447  ;
13448  return 0;
13449}
13450_ACEOF
13451for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13452	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13453do
13454  CC="$ac_save_CC $ac_arg"
13455  if ac_fn_c_try_compile "$LINENO"; then :
13456  ac_cv_prog_cc_c89=$ac_arg
13457fi
13458rm -f core conftest.err conftest.$ac_objext
13459  test "x$ac_cv_prog_cc_c89" != "xno" && break
13460done
13461rm -f conftest.$ac_ext
13462CC=$ac_save_CC
13463
13464fi
13465# AC_CACHE_VAL
13466case "x$ac_cv_prog_cc_c89" in
13467  x)
13468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13469$as_echo "none needed" >&6; } ;;
13470  xno)
13471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13472$as_echo "unsupported" >&6; } ;;
13473  *)
13474    CC="$CC $ac_cv_prog_cc_c89"
13475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13476$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13477esac
13478if test "x$ac_cv_prog_cc_c89" != xno; then :
13479
13480fi
13481
13482ac_ext=c
13483ac_cpp='$CPP $CPPFLAGS'
13484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13486ac_compiler_gnu=$ac_cv_c_compiler_gnu
13487
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13489$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13490if ${ac_cv_prog_cc_c99+:} false; then :
13491  $as_echo_n "(cached) " >&6
13492else
13493  ac_cv_prog_cc_c99=no
13494ac_save_CC=$CC
13495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h.  */
13497#include <stdarg.h>
13498#include <stdbool.h>
13499#include <stdlib.h>
13500#include <wchar.h>
13501#include <stdio.h>
13502
13503// Check varargs macros.  These examples are taken from C99 6.10.3.5.
13504#define debug(...) fprintf (stderr, __VA_ARGS__)
13505#define showlist(...) puts (#__VA_ARGS__)
13506#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13507static void
13508test_varargs_macros (void)
13509{
13510  int x = 1234;
13511  int y = 5678;
13512  debug ("Flag");
13513  debug ("X = %d\n", x);
13514  showlist (The first, second, and third items.);
13515  report (x>y, "x is %d but y is %d", x, y);
13516}
13517
13518// Check long long types.
13519#define BIG64 18446744073709551615ull
13520#define BIG32 4294967295ul
13521#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13522#if !BIG_OK
13523  your preprocessor is broken;
13524#endif
13525#if BIG_OK
13526#else
13527  your preprocessor is broken;
13528#endif
13529static long long int bignum = -9223372036854775807LL;
13530static unsigned long long int ubignum = BIG64;
13531
13532struct incomplete_array
13533{
13534  int datasize;
13535  double data[];
13536};
13537
13538struct named_init {
13539  int number;
13540  const wchar_t *name;
13541  double average;
13542};
13543
13544typedef const char *ccp;
13545
13546static inline int
13547test_restrict (ccp restrict text)
13548{
13549  // See if C++-style comments work.
13550  // Iterate through items via the restricted pointer.
13551  // Also check for declarations in for loops.
13552  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13553    continue;
13554  return 0;
13555}
13556
13557// Check varargs and va_copy.
13558static void
13559test_varargs (const char *format, ...)
13560{
13561  va_list args;
13562  va_start (args, format);
13563  va_list args_copy;
13564  va_copy (args_copy, args);
13565
13566  const char *str;
13567  int number;
13568  float fnumber;
13569
13570  while (*format)
13571    {
13572      switch (*format++)
13573	{
13574	case 's': // string
13575	  str = va_arg (args_copy, const char *);
13576	  break;
13577	case 'd': // int
13578	  number = va_arg (args_copy, int);
13579	  break;
13580	case 'f': // float
13581	  fnumber = va_arg (args_copy, double);
13582	  break;
13583	default:
13584	  break;
13585	}
13586    }
13587  va_end (args_copy);
13588  va_end (args);
13589}
13590
13591int
13592main ()
13593{
13594
13595  // Check bool.
13596  _Bool success = false;
13597
13598  // Check restrict.
13599  if (test_restrict ("String literal") == 0)
13600    success = true;
13601  char *restrict newvar = "Another string";
13602
13603  // Check varargs.
13604  test_varargs ("s, d' f .", "string", 65, 34.234);
13605  test_varargs_macros ();
13606
13607  // Check flexible array members.
13608  struct incomplete_array *ia =
13609    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13610  ia->datasize = 10;
13611  for (int i = 0; i < ia->datasize; ++i)
13612    ia->data[i] = i * 1.234;
13613
13614  // Check named initializers.
13615  struct named_init ni = {
13616    .number = 34,
13617    .name = L"Test wide string",
13618    .average = 543.34343,
13619  };
13620
13621  ni.number = 58;
13622
13623  int dynamic_array[ni.number];
13624  dynamic_array[ni.number - 1] = 543;
13625
13626  // work around unused variable warnings
13627  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13628	  || dynamic_array[ni.number - 1] != 543);
13629
13630  ;
13631  return 0;
13632}
13633_ACEOF
13634for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13635do
13636  CC="$ac_save_CC $ac_arg"
13637  if ac_fn_c_try_compile "$LINENO"; then :
13638  ac_cv_prog_cc_c99=$ac_arg
13639fi
13640rm -f core conftest.err conftest.$ac_objext
13641  test "x$ac_cv_prog_cc_c99" != "xno" && break
13642done
13643rm -f conftest.$ac_ext
13644CC=$ac_save_CC
13645
13646fi
13647# AC_CACHE_VAL
13648case "x$ac_cv_prog_cc_c99" in
13649  x)
13650    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13651$as_echo "none needed" >&6; } ;;
13652  xno)
13653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13654$as_echo "unsupported" >&6; } ;;
13655  *)
13656    CC="$CC $ac_cv_prog_cc_c99"
13657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13658$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13659esac
13660if test "x$ac_cv_prog_cc_c99" != xno; then :
13661
13662fi
13663
13664
13665
13666#
13667# Using Solaris linker with gcc on Solaris breaks Thread Local Storage
13668#
13669case $host in #(
13670  *-solaris*) :
13671
13672	    if test "$GCC" = "yes"; then :
13673  LDFLAGS="$LDFLAGS -zrelax=transtls"
13674		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
13675$as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
13676
13677fi
13678	 ;; #(
13679  *-darwin*) :
13680    LDFLAGS="$LDFLAGS -Wl,-flat_namespace" ;; #(
13681  *) :
13682     ;;
13683esac
13684
13685#
13686# CCNOOPT defaults to -O0 on gcc and disables optimization when is last
13687#
13688if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
13689	CCNOOPT="-O0"
13690fi
13691
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13693$as_echo_n "checking for ANSI C header files... " >&6; }
13694if ${ac_cv_header_stdc+:} false; then :
13695  $as_echo_n "(cached) " >&6
13696else
13697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h.  */
13699#include <stdlib.h>
13700#include <stdarg.h>
13701#include <string.h>
13702#include <float.h>
13703
13704int
13705main ()
13706{
13707
13708  ;
13709  return 0;
13710}
13711_ACEOF
13712if ac_fn_c_try_compile "$LINENO"; then :
13713  ac_cv_header_stdc=yes
13714else
13715  ac_cv_header_stdc=no
13716fi
13717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718
13719if test $ac_cv_header_stdc = yes; then
13720  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722/* end confdefs.h.  */
13723#include <string.h>
13724
13725_ACEOF
13726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13727  $EGREP "memchr" >/dev/null 2>&1; then :
13728
13729else
13730  ac_cv_header_stdc=no
13731fi
13732rm -f conftest*
13733
13734fi
13735
13736if test $ac_cv_header_stdc = yes; then
13737  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h.  */
13740#include <stdlib.h>
13741
13742_ACEOF
13743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13744  $EGREP "free" >/dev/null 2>&1; then :
13745
13746else
13747  ac_cv_header_stdc=no
13748fi
13749rm -f conftest*
13750
13751fi
13752
13753if test $ac_cv_header_stdc = yes; then
13754  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13755  if test "$cross_compiling" = yes; then :
13756  :
13757else
13758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760#include <ctype.h>
13761#include <stdlib.h>
13762#if ((' ' & 0x0FF) == 0x020)
13763# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13764# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13765#else
13766# define ISLOWER(c) \
13767		   (('a' <= (c) && (c) <= 'i') \
13768		     || ('j' <= (c) && (c) <= 'r') \
13769		     || ('s' <= (c) && (c) <= 'z'))
13770# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13771#endif
13772
13773#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13774int
13775main ()
13776{
13777  int i;
13778  for (i = 0; i < 256; i++)
13779    if (XOR (islower (i), ISLOWER (i))
13780	|| toupper (i) != TOUPPER (i))
13781      return 2;
13782  return 0;
13783}
13784_ACEOF
13785if ac_fn_c_try_run "$LINENO"; then :
13786
13787else
13788  ac_cv_header_stdc=no
13789fi
13790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13791  conftest.$ac_objext conftest.beam conftest.$ac_ext
13792fi
13793
13794fi
13795fi
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13797$as_echo "$ac_cv_header_stdc" >&6; }
13798if test $ac_cv_header_stdc = yes; then
13799
13800$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13801
13802fi
13803
13804
13805for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
13806do :
13807  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13809#ifdef HAVE_SYS_PARAM_H
13810# include <sys/param.h>
13811#endif
13812#ifdef HAVE_SYS_SOCKET_H
13813# include <sys/socket.h>
13814#endif
13815
13816"
13817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13818  cat >>confdefs.h <<_ACEOF
13819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13820_ACEOF
13821
13822fi
13823
13824done
13825
13826
13827#
13828# Check for thread local storage
13829#
13830for ac_header in threads.h
13831do :
13832  ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
13833if test "x$ac_cv_header_threads_h" = xyes; then :
13834  cat >>confdefs.h <<_ACEOF
13835#define HAVE_THREADS_H 1
13836_ACEOF
13837
13838		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
13839$as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
13840		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h.  */
13842
13843				  #include <threads.h>
13844
13845int
13846main ()
13847{
13848
13849				  static thread_local int tls = 0;
13850				  return (tls);
13851
13852  ;
13853  return 0;
13854}
13855
13856_ACEOF
13857if ac_fn_c_try_compile "$LINENO"; then :
13858
13859			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13860$as_echo "yes" >&6; }
13861
13862$as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
13863
13864
13865$as_echo "#define HAVE_TLS 1" >>confdefs.h
13866
13867
13868else
13869
13870			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
13871
13872fi
13873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874
13875else
13876
13877		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
13878$as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
13879		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880/* end confdefs.h.  */
13881
13882
13883int
13884main ()
13885{
13886
13887				  static __thread int tls = 0;
13888				  return (tls);
13889
13890  ;
13891  return 0;
13892}
13893
13894_ACEOF
13895if ac_fn_c_try_compile "$LINENO"; then :
13896
13897			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13898$as_echo "yes" >&6; }
13899
13900$as_echo "#define HAVE___THREAD 1" >>confdefs.h
13901
13902
13903$as_echo "#define HAVE_TLS 1" >>confdefs.h
13904
13905
13906else
13907
13908			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
13909
13910fi
13911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912
13913fi
13914
13915done
13916
13917
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13919$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13920if ${ac_cv_c_const+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925
13926int
13927main ()
13928{
13929
13930#ifndef __cplusplus
13931  /* Ultrix mips cc rejects this sort of thing.  */
13932  typedef int charset[2];
13933  const charset cs = { 0, 0 };
13934  /* SunOS 4.1.1 cc rejects this.  */
13935  char const *const *pcpcc;
13936  char **ppc;
13937  /* NEC SVR4.0.2 mips cc rejects this.  */
13938  struct point {int x, y;};
13939  static struct point const zero = {0,0};
13940  /* AIX XL C 1.02.0.0 rejects this.
13941     It does not let you subtract one const X* pointer from another in
13942     an arm of an if-expression whose if-part is not a constant
13943     expression */
13944  const char *g = "string";
13945  pcpcc = &g + (g ? g-g : 0);
13946  /* HPUX 7.0 cc rejects these. */
13947  ++pcpcc;
13948  ppc = (char**) pcpcc;
13949  pcpcc = (char const *const *) ppc;
13950  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13951    char tx;
13952    char *t = &tx;
13953    char const *s = 0 ? (char *) 0 : (char const *) 0;
13954
13955    *t++ = 0;
13956    if (s) return 0;
13957  }
13958  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13959    int x[] = {25, 17};
13960    const int *foo = &x[0];
13961    ++foo;
13962  }
13963  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13964    typedef const int *iptr;
13965    iptr p = 0;
13966    ++p;
13967  }
13968  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13969       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13970    struct s { int j; const int *ap[3]; } bx;
13971    struct s *b = &bx; b->j = 5;
13972  }
13973  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13974    const int foo = 10;
13975    if (!foo) return 0;
13976  }
13977  return !cs[0] && !zero.x;
13978#endif
13979
13980  ;
13981  return 0;
13982}
13983_ACEOF
13984if ac_fn_c_try_compile "$LINENO"; then :
13985  ac_cv_c_const=yes
13986else
13987  ac_cv_c_const=no
13988fi
13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13992$as_echo "$ac_cv_c_const" >&6; }
13993if test $ac_cv_c_const = no; then
13994
13995$as_echo "#define const /**/" >>confdefs.h
13996
13997fi
13998
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14000$as_echo_n "checking for inline... " >&6; }
14001if ${ac_cv_c_inline+:} false; then :
14002  $as_echo_n "(cached) " >&6
14003else
14004  ac_cv_c_inline=no
14005for ac_kw in inline __inline__ __inline; do
14006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007/* end confdefs.h.  */
14008#ifndef __cplusplus
14009typedef int foo_t;
14010static $ac_kw foo_t static_foo () {return 0; }
14011$ac_kw foo_t foo () {return 0; }
14012#endif
14013
14014_ACEOF
14015if ac_fn_c_try_compile "$LINENO"; then :
14016  ac_cv_c_inline=$ac_kw
14017fi
14018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019  test "$ac_cv_c_inline" != no && break
14020done
14021
14022fi
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14024$as_echo "$ac_cv_c_inline" >&6; }
14025
14026case $ac_cv_c_inline in
14027  inline | yes) ;;
14028  *)
14029    case $ac_cv_c_inline in
14030      no) ac_val=;;
14031      *) ac_val=$ac_cv_c_inline;;
14032    esac
14033    cat >>confdefs.h <<_ACEOF
14034#ifndef __cplusplus
14035#define inline $ac_val
14036#endif
14037_ACEOF
14038    ;;
14039esac
14040
14041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14042$as_echo_n "checking for working volatile... " >&6; }
14043if ${ac_cv_c_volatile+:} false; then :
14044  $as_echo_n "(cached) " >&6
14045else
14046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047/* end confdefs.h.  */
14048
14049int
14050main ()
14051{
14052
14053volatile int x;
14054int * volatile y = (int *) 0;
14055return !x && !y;
14056  ;
14057  return 0;
14058}
14059_ACEOF
14060if ac_fn_c_try_compile "$LINENO"; then :
14061  ac_cv_c_volatile=yes
14062else
14063  ac_cv_c_volatile=no
14064fi
14065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066fi
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14068$as_echo "$ac_cv_c_volatile" >&6; }
14069if test $ac_cv_c_volatile = no; then
14070
14071$as_echo "#define volatile /**/" >>confdefs.h
14072
14073fi
14074
14075
14076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14077$as_echo_n "checking for flexible array members... " >&6; }
14078if ${ac_cv_c_flexmember+:} false; then :
14079  $as_echo_n "(cached) " >&6
14080else
14081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082/* end confdefs.h.  */
14083#include <stdlib.h>
14084	    #include <stdio.h>
14085	    #include <stddef.h>
14086	    struct s { int n; double d[]; };
14087int
14088main ()
14089{
14090int m = getchar ();
14091	    struct s *p = malloc (offsetof (struct s, d)
14092				  + m * sizeof (double));
14093	    p->d[0] = 0.0;
14094	    return p->d != (double *) NULL;
14095  ;
14096  return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_compile "$LINENO"; then :
14100  ac_cv_c_flexmember=yes
14101else
14102  ac_cv_c_flexmember=no
14103fi
14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105fi
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14107$as_echo "$ac_cv_c_flexmember" >&6; }
14108  if test $ac_cv_c_flexmember = yes; then
14109
14110$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14111
14112  else
14113    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14114
14115  fi
14116
14117
14118#
14119# Check for yield support on ARM processors
14120#
14121case $host in #(
14122  arm*) :
14123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
14124$as_echo_n "checking for yield instruction support... " >&6; }
14125	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126/* end confdefs.h.  */
14127
14128int
14129main ()
14130{
14131__asm__ __volatile__ ("yield")
14132  ;
14133  return 0;
14134}
14135_ACEOF
14136if ac_fn_c_try_compile "$LINENO"; then :
14137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138$as_echo "yes" >&6; }
14139
14140$as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
14141
14142else
14143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144$as_echo "no" >&6; }
14145fi
14146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
14147  *) :
14148     ;;
14149esac
14150
14151#
14152# Check for pause support on SPARC processors
14153#
14154case $host in #(
14155  sparc*) :
14156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
14157$as_echo_n "checking for pause instruction support... " >&6; }
14158	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h.  */
14160
14161int
14162main ()
14163{
14164__asm__ __volatile__ ("pause")
14165  ;
14166  return 0;
14167}
14168_ACEOF
14169if ac_fn_c_try_compile "$LINENO"; then :
14170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14171$as_echo "yes" >&6; }
14172
14173$as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
14174
14175else
14176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
14178fi
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
14180  *) :
14181     ;;
14182esac
14183
14184for ac_func in sysctlbyname
14185do :
14186  ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
14187if test "x$ac_cv_func_sysctlbyname" = xyes; then :
14188  cat >>confdefs.h <<_ACEOF
14189#define HAVE_SYSCTLBYNAME 1
14190_ACEOF
14191
14192fi
14193done
14194
14195
14196#
14197# Check for the existence of mmap to enable the fast format zones
14198#
14199for ac_func in mmap
14200do :
14201  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14202if test "x$ac_cv_func_mmap" = xyes; then :
14203  cat >>confdefs.h <<_ACEOF
14204#define HAVE_MMAP 1
14205_ACEOF
14206
14207fi
14208done
14209
14210
14211#
14212# Older versions of HP/UX don't define seteuid() and setegid()
14213#
14214for ac_func in seteuid setresuid
14215do :
14216  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14218if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14219  cat >>confdefs.h <<_ACEOF
14220#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14221_ACEOF
14222
14223fi
14224done
14225
14226for ac_func in setegid setresgid
14227do :
14228  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14230if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14231  cat >>confdefs.h <<_ACEOF
14232#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233_ACEOF
14234
14235fi
14236done
14237
14238
14239ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14240if test "x$ac_cv_type_size_t" = xyes; then :
14241
14242else
14243
14244cat >>confdefs.h <<_ACEOF
14245#define size_t unsigned int
14246_ACEOF
14247
14248fi
14249
14250ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14251if test "x$ac_cv_type_ssize_t" = xyes; then :
14252
14253else
14254
14255cat >>confdefs.h <<_ACEOF
14256#define ssize_t int
14257_ACEOF
14258
14259fi
14260
14261
14262  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14263if test "x$ac_cv_type_uintptr_t" = xyes; then :
14264
14265$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14266
14267else
14268  for ac_type in 'unsigned int' 'unsigned long int' \
14269	'unsigned long long int'; do
14270       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h.  */
14272$ac_includes_default
14273int
14274main ()
14275{
14276static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14277test_array [0] = 0;
14278return test_array [0];
14279
14280  ;
14281  return 0;
14282}
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"; then :
14285
14286cat >>confdefs.h <<_ACEOF
14287#define uintptr_t $ac_type
14288_ACEOF
14289
14290	  ac_type=
14291fi
14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293       test -z "$ac_type" && break
14294     done
14295fi
14296
14297
14298
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14300$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14301if ${ac_cv_header_time+:} false; then :
14302  $as_echo_n "(cached) " >&6
14303else
14304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305/* end confdefs.h.  */
14306#include <sys/types.h>
14307#include <sys/time.h>
14308#include <time.h>
14309
14310int
14311main ()
14312{
14313if ((struct tm *) 0)
14314return 0;
14315  ;
14316  return 0;
14317}
14318_ACEOF
14319if ac_fn_c_try_compile "$LINENO"; then :
14320  ac_cv_header_time=yes
14321else
14322  ac_cv_header_time=no
14323fi
14324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325fi
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14327$as_echo "$ac_cv_header_time" >&6; }
14328if test $ac_cv_header_time = yes; then
14329
14330$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14331
14332fi
14333
14334
14335#
14336# check for uname library routine
14337#
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
14339$as_echo_n "checking for uname... " >&6; }
14340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342#include <sys/utsname.h>
14343       #include <stdio.h>
14344
14345int
14346main ()
14347{
14348
14349       struct utsname uts;
14350       uname(&uts);
14351       printf("running on %s %s %s for %s\n",
14352	      uts.sysname, uts.release, uts.version, uts.machine);
14353
14354  ;
14355  return 0;
14356}
14357_ACEOF
14358if ac_fn_c_try_compile "$LINENO"; then :
14359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14360$as_echo "yes" >&6; }
14361
14362$as_echo "#define HAVE_UNAME 1" >>confdefs.h
14363
14364
14365else
14366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367$as_echo "no" >&6; }
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
14369$as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
14370
14371fi
14372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373
14374#
14375# check for GCC noreturn attribute
14376#
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
14378$as_echo_n "checking for GCC noreturn attribute... " >&6; }
14379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381
14382int
14383main ()
14384{
14385void foo() __attribute__((noreturn));
14386  ;
14387  return 0;
14388}
14389_ACEOF
14390if ac_fn_c_try_compile "$LINENO"; then :
14391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392$as_echo "yes" >&6; }
14393		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
14394		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
14395else
14396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397$as_echo "no" >&6; }
14398		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
14399		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402
14403
14404
14405#
14406# check for GCC malloc attribute
14407#
14408
14409
14410
14411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5
14412$as_echo_n "checking for __attribute__((malloc))... " >&6; }
14413if ${ax_cv_have_func_attribute_malloc+:} false; then :
14414  $as_echo_n "(cached) " >&6
14415else
14416
14417        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418/* end confdefs.h.  */
14419
14420
14421                    void *foo( void ) __attribute__((malloc));
14422
14423int
14424main ()
14425{
14426
14427  ;
14428  return 0;
14429}
14430
14431_ACEOF
14432if ac_fn_c_try_link "$LINENO"; then :
14433                                      if test -s conftest.err; then :
14434  ax_cv_have_func_attribute_malloc=no
14435else
14436  ax_cv_have_func_attribute_malloc=yes
14437fi
14438else
14439  ax_cv_have_func_attribute_malloc=no
14440fi
14441rm -f core conftest.err conftest.$ac_objext \
14442    conftest$ac_exeext conftest.$ac_ext
14443
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5
14446$as_echo "$ax_cv_have_func_attribute_malloc" >&6; }
14447
14448    if test yes = $ax_cv_have_func_attribute_malloc; then :
14449
14450cat >>confdefs.h <<_ACEOF
14451#define HAVE_FUNC_ATTRIBUTE_MALLOC 1
14452_ACEOF
14453
14454fi
14455
14456
14457
14458
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5
14460$as_echo_n "checking for extended malloc attributes... " >&6; }
14461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462/* end confdefs.h.  */
14463
14464       #include <stddef.h>
14465       #include <stdlib.h>
14466       __attribute__ ((malloc, malloc (free, 1))
14467       void * xmalloc(size_t sz) { return malloc(sz); }
14468
14469int
14470main ()
14471{
14472
14473       void *p = xmalloc(8);
14474       free(p);
14475
14476  ;
14477  return 0;
14478}
14479_ACEOF
14480if ac_fn_c_try_compile "$LINENO"; then :
14481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14482$as_echo "yes" >&6; }
14483
14484$as_echo "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h
14485
14486
14487else
14488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489$as_echo "no" >&6; }
14490fi
14491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492
14493#
14494# check for GCC returns_nonnull attribute
14495#
14496
14497
14498
14499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5
14500$as_echo_n "checking for __attribute__((returns_nonnull))... " >&6; }
14501if ${ax_cv_have_func_attribute_returns_nonnull+:} false; then :
14502  $as_echo_n "(cached) " >&6
14503else
14504
14505        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506/* end confdefs.h.  */
14507
14508
14509                    void *foo( void ) __attribute__((returns_nonnull));
14510
14511int
14512main ()
14513{
14514
14515  ;
14516  return 0;
14517}
14518
14519_ACEOF
14520if ac_fn_c_try_link "$LINENO"; then :
14521                                      if test -s conftest.err; then :
14522  ax_cv_have_func_attribute_returns_nonnull=no
14523else
14524  ax_cv_have_func_attribute_returns_nonnull=yes
14525fi
14526else
14527  ax_cv_have_func_attribute_returns_nonnull=no
14528fi
14529rm -f core conftest.err conftest.$ac_objext \
14530    conftest$ac_exeext conftest.$ac_ext
14531
14532fi
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5
14534$as_echo "$ax_cv_have_func_attribute_returns_nonnull" >&6; }
14535
14536    if test yes = $ax_cv_have_func_attribute_returns_nonnull; then :
14537
14538cat >>confdefs.h <<_ACEOF
14539#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1
14540_ACEOF
14541
14542fi
14543
14544
14545
14546
14547#
14548# check if we have kqueue
14549#
14550# [pairwise: --enable-kqueue, --disable-kqueue]
14551# Check whether --enable-kqueue was given.
14552if test "${enable_kqueue+set}" = set; then :
14553  enableval=$enable_kqueue;
14554else
14555  enable_kqueue="yes"
14556fi
14557
14558
14559if test "$enable_kqueue" = "yes"; then :
14560  for ac_func in kqueue
14561do :
14562  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14563if test "x$ac_cv_func_kqueue" = xyes; then :
14564  cat >>confdefs.h <<_ACEOF
14565#define HAVE_KQUEUE 1
14566_ACEOF
14567
14568fi
14569done
14570
14571fi
14572
14573#
14574# check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
14575# so we need to try running the code, not just test its existence.
14576#
14577# [pairwise: --enable-epoll, --disable-epoll]
14578# Check whether --enable-epoll was given.
14579if test "${enable_epoll+set}" = set; then :
14580  enableval=$enable_epoll;
14581else
14582  enable_epoll="yes"
14583fi
14584
14585
14586if test "$enable_epoll" = "yes"; then :
14587  for ac_func in epoll_create1
14588do :
14589  ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
14590if test "x$ac_cv_func_epoll_create1" = xyes; then :
14591  cat >>confdefs.h <<_ACEOF
14592#define HAVE_EPOLL_CREATE1 1
14593_ACEOF
14594
14595fi
14596done
14597
14598fi
14599
14600#
14601# check if we support /dev/poll
14602#
14603# [pairwise: --enable-devpoll, --disable-devpoll]
14604# Check whether --enable-devpoll was given.
14605if test "${enable_devpoll+set}" = set; then :
14606  enableval=$enable_devpoll;
14607else
14608  enable_devpoll="yes"
14609fi
14610
14611if test "$enable_devpoll" = "yes"; then :
14612  for ac_header in sys/devpoll.h devpoll.h
14613do :
14614  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14615ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14617  cat >>confdefs.h <<_ACEOF
14618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14619_ACEOF
14620
14621fi
14622
14623done
14624
14625fi
14626
14627#
14628# Find the machine's endian flavor.
14629#
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14631$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14632if ${ac_cv_c_bigendian+:} false; then :
14633  $as_echo_n "(cached) " >&6
14634else
14635  ac_cv_c_bigendian=unknown
14636    # See if we're dealing with a universal compiler.
14637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638/* end confdefs.h.  */
14639#ifndef __APPLE_CC__
14640	       not a universal capable compiler
14641	     #endif
14642	     typedef int dummy;
14643
14644_ACEOF
14645if ac_fn_c_try_compile "$LINENO"; then :
14646
14647	# Check for potential -arch flags.  It is not universal unless
14648	# there are at least two -arch flags with different values.
14649	ac_arch=
14650	ac_prev=
14651	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14652	 if test -n "$ac_prev"; then
14653	   case $ac_word in
14654	     i?86 | x86_64 | ppc | ppc64)
14655	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14656		 ac_arch=$ac_word
14657	       else
14658		 ac_cv_c_bigendian=universal
14659		 break
14660	       fi
14661	       ;;
14662	   esac
14663	   ac_prev=
14664	 elif test "x$ac_word" = "x-arch"; then
14665	   ac_prev=arch
14666	 fi
14667       done
14668fi
14669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670    if test $ac_cv_c_bigendian = unknown; then
14671      # See if sys/param.h defines the BYTE_ORDER macro.
14672      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h.  */
14674#include <sys/types.h>
14675	     #include <sys/param.h>
14676
14677int
14678main ()
14679{
14680#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14681		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14682		     && LITTLE_ENDIAN)
14683	      bogus endian macros
14684	     #endif
14685
14686  ;
14687  return 0;
14688}
14689_ACEOF
14690if ac_fn_c_try_compile "$LINENO"; then :
14691  # It does; now see whether it defined to BIG_ENDIAN or not.
14692	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693/* end confdefs.h.  */
14694#include <sys/types.h>
14695		#include <sys/param.h>
14696
14697int
14698main ()
14699{
14700#if BYTE_ORDER != BIG_ENDIAN
14701		 not big endian
14702		#endif
14703
14704  ;
14705  return 0;
14706}
14707_ACEOF
14708if ac_fn_c_try_compile "$LINENO"; then :
14709  ac_cv_c_bigendian=yes
14710else
14711  ac_cv_c_bigendian=no
14712fi
14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714fi
14715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716    fi
14717    if test $ac_cv_c_bigendian = unknown; then
14718      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h.  */
14721#include <limits.h>
14722
14723int
14724main ()
14725{
14726#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14727	      bogus endian macros
14728	     #endif
14729
14730  ;
14731  return 0;
14732}
14733_ACEOF
14734if ac_fn_c_try_compile "$LINENO"; then :
14735  # It does; now see whether it defined to _BIG_ENDIAN or not.
14736	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737/* end confdefs.h.  */
14738#include <limits.h>
14739
14740int
14741main ()
14742{
14743#ifndef _BIG_ENDIAN
14744		 not big endian
14745		#endif
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_compile "$LINENO"; then :
14752  ac_cv_c_bigendian=yes
14753else
14754  ac_cv_c_bigendian=no
14755fi
14756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757fi
14758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759    fi
14760    if test $ac_cv_c_bigendian = unknown; then
14761      # Compile a test program.
14762      if test "$cross_compiling" = yes; then :
14763  # Try to guess by grepping values from an object file.
14764	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h.  */
14766short int ascii_mm[] =
14767		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14768		short int ascii_ii[] =
14769		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14770		int use_ascii (int i) {
14771		  return ascii_mm[i] + ascii_ii[i];
14772		}
14773		short int ebcdic_ii[] =
14774		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14775		short int ebcdic_mm[] =
14776		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14777		int use_ebcdic (int i) {
14778		  return ebcdic_mm[i] + ebcdic_ii[i];
14779		}
14780		extern int foo;
14781
14782int
14783main ()
14784{
14785return use_ascii (foo) == use_ebcdic (foo);
14786  ;
14787  return 0;
14788}
14789_ACEOF
14790if ac_fn_c_try_compile "$LINENO"; then :
14791  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14792	      ac_cv_c_bigendian=yes
14793	    fi
14794	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14795	      if test "$ac_cv_c_bigendian" = unknown; then
14796		ac_cv_c_bigendian=no
14797	      else
14798		# finding both strings is unlikely to happen, but who knows?
14799		ac_cv_c_bigendian=unknown
14800	      fi
14801	    fi
14802fi
14803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804else
14805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806/* end confdefs.h.  */
14807$ac_includes_default
14808int
14809main ()
14810{
14811
14812	     /* Are we little or big endian?  From Harbison&Steele.  */
14813	     union
14814	     {
14815	       long int l;
14816	       char c[sizeof (long int)];
14817	     } u;
14818	     u.l = 1;
14819	     return u.c[sizeof (long int) - 1] == 1;
14820
14821  ;
14822  return 0;
14823}
14824_ACEOF
14825if ac_fn_c_try_run "$LINENO"; then :
14826  ac_cv_c_bigendian=no
14827else
14828  ac_cv_c_bigendian=yes
14829fi
14830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14831  conftest.$ac_objext conftest.beam conftest.$ac_ext
14832fi
14833
14834    fi
14835fi
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14837$as_echo "$ac_cv_c_bigendian" >&6; }
14838 case $ac_cv_c_bigendian in #(
14839   yes)
14840     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14841;; #(
14842   no)
14843      ;; #(
14844   universal)
14845
14846$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14847
14848     ;; #(
14849   *)
14850     as_fn_error $? "unknown endianness
14851 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14852 esac
14853
14854
14855#
14856# GeoIP support?
14857#
14858# Should be on by default if libmaxminddb exists.
14859#
14860# [pairwise: skip]
14861
14862# Check whether --with-geoip2 was given.
14863if test "${with_geoip2+set}" = set; then :
14864  withval=$with_geoip2; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&5
14865$as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
14866else
14867  with_geoip2="auto"
14868fi
14869
14870
14871# [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
14872# Check whether --enable-geoip was given.
14873if test "${enable_geoip+set}" = set; then :
14874  enableval=$enable_geoip;
14875else
14876  enable_geoip="yes"
14877fi
14878
14879
14880# [pairwise: skip]
14881
14882# Check whether --with-maxminddb was given.
14883if test "${with_maxminddb+set}" = set; then :
14884  withval=$with_maxminddb;
14885else
14886  with_maxminddb="$with_geoip2"
14887fi
14888
14889
14890GEOIP2LINKSRCS=
14891GEOIP2LINKOBJS=
14892if test "$enable_geoip" = "yes"; then :
14893  case $with_maxminddb in #(
14894  no) :
14895    as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
14896  auto) :
14897
14898pkg_failed=no
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
14900$as_echo_n "checking for libmaxminddb... " >&6; }
14901
14902if test -n "$MAXMINDDB_CFLAGS"; then
14903    pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
14904 elif test -n "$PKG_CONFIG"; then
14905    if test -n "$PKG_CONFIG" && \
14906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14907  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14908  ac_status=$?
14909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14910  test $ac_status = 0; }; then
14911  pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
14912		      test "x$?" != "x0" && pkg_failed=yes
14913else
14914  pkg_failed=yes
14915fi
14916 else
14917    pkg_failed=untried
14918fi
14919if test -n "$MAXMINDDB_LIBS"; then
14920    pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
14921 elif test -n "$PKG_CONFIG"; then
14922    if test -n "$PKG_CONFIG" && \
14923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14924  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14925  ac_status=$?
14926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14927  test $ac_status = 0; }; then
14928  pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
14929		      test "x$?" != "x0" && pkg_failed=yes
14930else
14931  pkg_failed=yes
14932fi
14933 else
14934    pkg_failed=untried
14935fi
14936
14937
14938
14939if test $pkg_failed = yes; then
14940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14941$as_echo "no" >&6; }
14942
14943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14944        _pkg_short_errors_supported=yes
14945else
14946        _pkg_short_errors_supported=no
14947fi
14948        if test $_pkg_short_errors_supported = yes; then
14949	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
14950        else
14951	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
14952        fi
14953	# Put the nasty error message in config.log where it belongs
14954	echo "$MAXMINDDB_PKG_ERRORS" >&5
14955
14956	:
14957elif test $pkg_failed = untried; then
14958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14959$as_echo "no" >&6; }
14960	:
14961else
14962	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
14963	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
14964        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14965$as_echo "yes" >&6; }
14966
14967$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
14968
14969
14970if test -n "$MAXMINDDB_PREFIX"; then
14971    pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
14972 elif test -n "$PKG_CONFIG"; then
14973    if test -n "$PKG_CONFIG" && \
14974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
14975  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
14976  ac_status=$?
14977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14978  test $ac_status = 0; }; then
14979  pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
14980		      test "x$?" != "x0" && pkg_failed=yes
14981else
14982  pkg_failed=yes
14983fi
14984 else
14985    pkg_failed=untried
14986fi
14987MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
14988
14989if test "x$MAXMINDDB_PREFIX" = x""; then :
14990  as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
14991fi
14992					  GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
14993					  GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
14994
14995fi ;; #(
14996  yes) :
14997
14998pkg_failed=no
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
15000$as_echo_n "checking for libmaxminddb... " >&6; }
15001
15002if test -n "$MAXMINDDB_CFLAGS"; then
15003    pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
15004 elif test -n "$PKG_CONFIG"; then
15005    if test -n "$PKG_CONFIG" && \
15006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
15007  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
15008  ac_status=$?
15009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010  test $ac_status = 0; }; then
15011  pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
15012		      test "x$?" != "x0" && pkg_failed=yes
15013else
15014  pkg_failed=yes
15015fi
15016 else
15017    pkg_failed=untried
15018fi
15019if test -n "$MAXMINDDB_LIBS"; then
15020    pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
15021 elif test -n "$PKG_CONFIG"; then
15022    if test -n "$PKG_CONFIG" && \
15023    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
15024  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
15025  ac_status=$?
15026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15027  test $ac_status = 0; }; then
15028  pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
15029		      test "x$?" != "x0" && pkg_failed=yes
15030else
15031  pkg_failed=yes
15032fi
15033 else
15034    pkg_failed=untried
15035fi
15036
15037
15038
15039if test $pkg_failed = yes; then
15040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041$as_echo "no" >&6; }
15042
15043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15044        _pkg_short_errors_supported=yes
15045else
15046        _pkg_short_errors_supported=no
15047fi
15048        if test $_pkg_short_errors_supported = yes; then
15049	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
15050        else
15051	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
15052        fi
15053	# Put the nasty error message in config.log where it belongs
15054	echo "$MAXMINDDB_PKG_ERRORS" >&5
15055
15056	as_fn_error $? "Package requirements (libmaxminddb) were not met:
15057
15058$MAXMINDDB_PKG_ERRORS
15059
15060Consider adjusting the PKG_CONFIG_PATH environment variable if you
15061installed software in a non-standard prefix.
15062
15063Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
15064and MAXMINDDB_LIBS to avoid the need to call pkg-config.
15065See the pkg-config man page for more details." "$LINENO" 5
15066elif test $pkg_failed = untried; then
15067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068$as_echo "no" >&6; }
15069	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15071as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15072is in your PATH or set the PKG_CONFIG environment variable to the full
15073path to pkg-config.
15074
15075Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
15076and MAXMINDDB_LIBS to avoid the need to call pkg-config.
15077See the pkg-config man page for more details.
15078
15079To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15080See \`config.log' for more details" "$LINENO" 5; }
15081else
15082	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
15083	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
15084        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15085$as_echo "yes" >&6; }
15086
15087$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
15088
15089
15090if test -n "$MAXMINDDB_PREFIX"; then
15091    pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
15092 elif test -n "$PKG_CONFIG"; then
15093    if test -n "$PKG_CONFIG" && \
15094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
15095  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
15096  ac_status=$?
15097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15098  test $ac_status = 0; }; then
15099  pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
15100		      test "x$?" != "x0" && pkg_failed=yes
15101else
15102  pkg_failed=yes
15103fi
15104 else
15105    pkg_failed=untried
15106fi
15107MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
15108
15109if test "x$MAXMINDDB_PREFIX" = x""; then :
15110  as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
15111fi
15112					 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
15113					 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
15114
15115fi ;; #(
15116  *) :
15117     # default
15118
15119
15120  CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
15121
15122
15123
15124  CFLAGS_maxminddb_ax_save_flags=$CFLAGS
15125
15126
15127
15128  CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
15129
15130
15131
15132  CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
15133
15134
15135
15136  ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
15137
15138
15139
15140  FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
15141
15142
15143
15144  FCLIBS_maxminddb_ax_save_flags=$FCLIBS
15145
15146
15147
15148  FFLAGS_maxminddb_ax_save_flags=$FFLAGS
15149
15150
15151
15152  FLIBS_maxminddb_ax_save_flags=$FLIBS
15153
15154
15155
15156  GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
15157
15158
15159
15160  JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
15161
15162
15163
15164  LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
15165
15166
15167
15168  LIBS_maxminddb_ax_save_flags=$LIBS
15169
15170
15171
15172  OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
15173
15174
15175
15176  OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
15177
15178
15179
15180  UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
15181
15182
15183
15184  VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
15185
15186
15187
15188		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
15189		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
15190		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
15191		   LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
15192		   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
15193$as_echo_n "checking for library containing MMDB_open... " >&6; }
15194if ${ac_cv_search_MMDB_open+:} false; then :
15195  $as_echo_n "(cached) " >&6
15196else
15197  ac_func_search_save_LIBS=$LIBS
15198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199/* end confdefs.h.  */
15200
15201/* Override any GCC internal prototype to avoid an error.
15202   Use char because int might match the return type of a GCC
15203   builtin and then its argument prototype would still apply.  */
15204#ifdef __cplusplus
15205extern "C"
15206#endif
15207char MMDB_open ();
15208int
15209main ()
15210{
15211return MMDB_open ();
15212  ;
15213  return 0;
15214}
15215_ACEOF
15216for ac_lib in '' maxminddb; do
15217  if test -z "$ac_lib"; then
15218    ac_res="none required"
15219  else
15220    ac_res=-l$ac_lib
15221    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15222  fi
15223  if ac_fn_c_try_link "$LINENO"; then :
15224  ac_cv_search_MMDB_open=$ac_res
15225fi
15226rm -f core conftest.err conftest.$ac_objext \
15227    conftest$ac_exeext
15228  if ${ac_cv_search_MMDB_open+:} false; then :
15229  break
15230fi
15231done
15232if ${ac_cv_search_MMDB_open+:} false; then :
15233
15234else
15235  ac_cv_search_MMDB_open=no
15236fi
15237rm conftest.$ac_ext
15238LIBS=$ac_func_search_save_LIBS
15239fi
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
15241$as_echo "$ac_cv_search_MMDB_open" >&6; }
15242ac_res=$ac_cv_search_MMDB_open
15243if test "$ac_res" != no; then :
15244  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15245
15246$as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
15247
15248				   GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
15249				   GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
15250				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
15251				   { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
15252$as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
15253				   eval MAXMINDDB_PREFIX=\$$with_maxminddb
15254
15255else
15256  as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
15257fi
15258
15259
15260  CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
15261
15262
15263  CFLAGS=$CFLAGS_maxminddb_ax_save_flags
15264
15265
15266  CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
15267
15268
15269  CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
15270
15271
15272  ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
15273
15274
15275  FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
15276
15277
15278  FCLIBS=$FCLIBS_maxminddb_ax_save_flags
15279
15280
15281  FFLAGS=$FFLAGS_maxminddb_ax_save_flags
15282
15283
15284  FLIBS=$FLIBS_maxminddb_ax_save_flags
15285
15286
15287  GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
15288
15289
15290  JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
15291
15292
15293  LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
15294
15295
15296  LIBS=$LIBS_maxminddb_ax_save_flags
15297
15298
15299  OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
15300
15301
15302  OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
15303
15304
15305  UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
15306
15307
15308  VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
15309
15310
15311
15312	        ;;
15313esac
15314
15315
15316fi
15317
15318
15319
15320
15321
15322
15323#
15324# Do we have arc4random(), etc ?
15325#
15326for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
15327do :
15328  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15329ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15330if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15331  cat >>confdefs.h <<_ACEOF
15332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15333_ACEOF
15334
15335fi
15336done
15337
15338
15339
15340
15341
15342
15343ac_ext=c
15344ac_cpp='$CPP $CPPFLAGS'
15345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15347ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348
15349ax_pthread_ok=no
15350
15351# We used to check for pthread.h first, but this fails if pthread.h
15352# requires special compiler flags (e.g. on Tru64 or Sequent).
15353# It gets checked for in the link test anyway.
15354
15355# First of all, check if the user has set any of the PTHREAD_LIBS,
15356# etcetera environment variables, and if threads linking works using
15357# them:
15358if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15359        ax_pthread_save_CC="$CC"
15360        ax_pthread_save_CFLAGS="$CFLAGS"
15361        ax_pthread_save_LIBS="$LIBS"
15362        if test "x$PTHREAD_CC" != "x"; then :
15363  CC="$PTHREAD_CC"
15364fi
15365        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15366        LIBS="$PTHREAD_LIBS $LIBS"
15367        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15368$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371
15372/* Override any GCC internal prototype to avoid an error.
15373   Use char because int might match the return type of a GCC
15374   builtin and then its argument prototype would still apply.  */
15375#ifdef __cplusplus
15376extern "C"
15377#endif
15378char pthread_join ();
15379int
15380main ()
15381{
15382return pthread_join ();
15383  ;
15384  return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"; then :
15388  ax_pthread_ok=yes
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391    conftest$ac_exeext conftest.$ac_ext
15392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15393$as_echo "$ax_pthread_ok" >&6; }
15394        if test "x$ax_pthread_ok" = "xno"; then
15395                PTHREAD_LIBS=""
15396                PTHREAD_CFLAGS=""
15397        fi
15398        CC="$ax_pthread_save_CC"
15399        CFLAGS="$ax_pthread_save_CFLAGS"
15400        LIBS="$ax_pthread_save_LIBS"
15401fi
15402
15403# We must check for the threads library under a number of different
15404# names; the ordering is very important because some systems
15405# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15406# libraries is broken (non-POSIX).
15407
15408# Create a list of thread flags to try.  Items starting with a "-" are
15409# C compiler flags, and other items are library names, except for "none"
15410# which indicates that we try without any flags at all, and "pthread-config"
15411# which is a program returning the flags for the Pth emulation library.
15412
15413ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15414
15415# The ordering *is* (sometimes) important.  Some notes on the
15416# individual items follow:
15417
15418# pthreads: AIX (must check this before -lpthread)
15419# none: in case threads are in libc; should be tried before -Kthread and
15420#       other compiler flags to prevent continual compiler warnings
15421# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15422# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15423#           (Note: HP C rejects this with "bad form for `-t' option")
15424# -pthreads: Solaris/gcc (Note: HP C also rejects)
15425# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15426#      doesn't hurt to check since this sometimes defines pthreads and
15427#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
15428#      is present but should not be used directly; and before -mthreads,
15429#      because the compiler interprets this as "-mt" + "-hreads")
15430# -mthreads: Mingw32/gcc, Lynx/gcc
15431# pthread: Linux, etcetera
15432# --thread-safe: KAI C++
15433# pthread-config: use pthread-config program (for GNU Pth library)
15434
15435case $host_os in
15436
15437        freebsd*)
15438
15439        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15440        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15441
15442        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15443        ;;
15444
15445        hpux*)
15446
15447        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15448        # multi-threading and also sets -lpthread."
15449
15450        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15451        ;;
15452
15453        openedition*)
15454
15455        # IBM z/OS requires a feature-test macro to be defined in order to
15456        # enable POSIX threads at all, so give the user a hint if this is
15457        # not set. (We don't define these ourselves, as they can affect
15458        # other portions of the system API in unpredictable ways.)
15459
15460        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461/* end confdefs.h.  */
15462
15463#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15464             AX_PTHREAD_ZOS_MISSING
15465#            endif
15466
15467_ACEOF
15468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15469  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15470  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15471$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15472fi
15473rm -f conftest*
15474
15475        ;;
15476
15477        solaris*)
15478
15479        # On Solaris (at least, for some versions), libc contains stubbed
15480        # (non-functional) versions of the pthreads routines, so link-based
15481        # tests will erroneously succeed. (N.B.: The stubs are missing
15482        # pthread_cleanup_push, or rather a function called by this macro,
15483        # so we could check for that, but who knows whether they'll stub
15484        # that too in a future libc.)  So we'll check first for the
15485        # standard Solaris way of linking pthreads (-mt -lpthread).
15486
15487        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15488        ;;
15489esac
15490
15491# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15492
15493if test "x$GCC" = "xyes"; then :
15494  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15495fi
15496
15497# The presence of a feature test macro requesting re-entrant function
15498# definitions is, on some systems, a strong hint that pthreads support is
15499# correctly enabled
15500
15501case $host_os in
15502        darwin* | hpux* | linux* | osf* | solaris*)
15503        ax_pthread_check_macro="_REENTRANT"
15504        ;;
15505
15506        aix*)
15507        ax_pthread_check_macro="_THREAD_SAFE"
15508        ;;
15509
15510        *)
15511        ax_pthread_check_macro="--"
15512        ;;
15513esac
15514if test "x$ax_pthread_check_macro" = "x--"; then :
15515  ax_pthread_check_cond=0
15516else
15517  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15518fi
15519
15520# Are we compiling with Clang?
15521
15522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15523$as_echo_n "checking whether $CC is Clang... " >&6; }
15524if ${ax_cv_PTHREAD_CLANG+:} false; then :
15525  $as_echo_n "(cached) " >&6
15526else
15527  ax_cv_PTHREAD_CLANG=no
15528     # Note that Autoconf sets GCC=yes for Clang as well as GCC
15529     if test "x$GCC" = "xyes"; then
15530        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531/* end confdefs.h.  */
15532/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15533#            if defined(__clang__) && defined(__llvm__)
15534             AX_PTHREAD_CC_IS_CLANG
15535#            endif
15536
15537_ACEOF
15538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15539  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15540  ax_cv_PTHREAD_CLANG=yes
15541fi
15542rm -f conftest*
15543
15544     fi
15545
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15548$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15549ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15550
15551ax_pthread_clang_warning=no
15552
15553# Clang needs special handling, because older versions handle the -pthread
15554# option in a rather... idiosyncratic way
15555
15556if test "x$ax_pthread_clang" = "xyes"; then
15557
15558        # Clang takes -pthread; it has never supported any other flag
15559
15560        # (Note 1: This will need to be revisited if a system that Clang
15561        # supports has POSIX threads in a separate library.  This tends not
15562        # to be the way of modern systems, but it's conceivable.)
15563
15564        # (Note 2: On some systems, notably Darwin, -pthread is not needed
15565        # to get POSIX threads support; the API is always present and
15566        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
15567        # -pthread does define _REENTRANT, and while the Darwin headers
15568        # ignore this macro, third-party headers might not.)
15569
15570        PTHREAD_CFLAGS="-pthread"
15571        PTHREAD_LIBS=
15572
15573        ax_pthread_ok=yes
15574
15575        # However, older versions of Clang make a point of warning the user
15576        # that, in an invocation where only linking and no compilation is
15577        # taking place, the -pthread option has no effect ("argument unused
15578        # during compilation").  They expect -pthread to be passed in only
15579        # when source code is being compiled.
15580        #
15581        # Problem is, this is at odds with the way Automake and most other
15582        # C build frameworks function, which is that the same flags used in
15583        # compilation (CFLAGS) are also used in linking.  Many systems
15584        # supported by AX_PTHREAD require exactly this for POSIX threads
15585        # support, and in fact it is often not straightforward to specify a
15586        # flag that is used only in the compilation phase and not in
15587        # linking.  Such a scenario is extremely rare in practice.
15588        #
15589        # Even though use of the -pthread flag in linking would only print
15590        # a warning, this can be a nuisance for well-run software projects
15591        # that build with -Werror.  So if the active version of Clang has
15592        # this misfeature, we search for an option to squash it.
15593
15594        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15595$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15596if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15600             # Create an alternate version of $ac_link that compiles and
15601             # links in two steps (.c -> .o, .o -> exe) instead of one
15602             # (.c -> exe), because the warning occurs only in the second
15603             # step
15604             ax_pthread_save_ac_link="$ac_link"
15605             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15606             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
15607             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15608             ax_pthread_save_CFLAGS="$CFLAGS"
15609             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15610                if test "x$ax_pthread_try" = "xunknown"; then :
15611  break
15612fi
15613                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15614                ac_link="$ax_pthread_save_ac_link"
15615                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15616/* end confdefs.h.  */
15617int main(void){return 0;}
15618_ACEOF
15619if ac_fn_c_try_link "$LINENO"; then :
15620  ac_link="$ax_pthread_2step_ac_link"
15621                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622/* end confdefs.h.  */
15623int main(void){return 0;}
15624_ACEOF
15625if ac_fn_c_try_link "$LINENO"; then :
15626  break
15627fi
15628rm -f core conftest.err conftest.$ac_objext \
15629    conftest$ac_exeext conftest.$ac_ext
15630
15631fi
15632rm -f core conftest.err conftest.$ac_objext \
15633    conftest$ac_exeext conftest.$ac_ext
15634             done
15635             ac_link="$ax_pthread_save_ac_link"
15636             CFLAGS="$ax_pthread_save_CFLAGS"
15637             if test "x$ax_pthread_try" = "x"; then :
15638  ax_pthread_try=no
15639fi
15640             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15641
15642fi
15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15644$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15645
15646        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15647                no | unknown) ;;
15648                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15649        esac
15650
15651fi # $ax_pthread_clang = yes
15652
15653if test "x$ax_pthread_ok" = "xno"; then
15654for ax_pthread_try_flag in $ax_pthread_flags; do
15655
15656        case $ax_pthread_try_flag in
15657                none)
15658                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15659$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15660                ;;
15661
15662                -mt,pthread)
15663                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
15664$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
15665                PTHREAD_CFLAGS="-mt"
15666                PTHREAD_LIBS="-lpthread"
15667                ;;
15668
15669                -*)
15670                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15671$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15672                PTHREAD_CFLAGS="$ax_pthread_try_flag"
15673                ;;
15674
15675                pthread-config)
15676                # Extract the first word of "pthread-config", so it can be a program name with args.
15677set dummy pthread-config; ac_word=$2
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15679$as_echo_n "checking for $ac_word... " >&6; }
15680if ${ac_cv_prog_ax_pthread_config+:} false; then :
15681  $as_echo_n "(cached) " >&6
15682else
15683  if test -n "$ax_pthread_config"; then
15684  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15685else
15686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15687for as_dir in $PATH
15688do
15689  IFS=$as_save_IFS
15690  test -z "$as_dir" && as_dir=.
15691    for ac_exec_ext in '' $ac_executable_extensions; do
15692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15693    ac_cv_prog_ax_pthread_config="yes"
15694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15695    break 2
15696  fi
15697done
15698  done
15699IFS=$as_save_IFS
15700
15701  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15702fi
15703fi
15704ax_pthread_config=$ac_cv_prog_ax_pthread_config
15705if test -n "$ax_pthread_config"; then
15706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15707$as_echo "$ax_pthread_config" >&6; }
15708else
15709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710$as_echo "no" >&6; }
15711fi
15712
15713
15714                if test "x$ax_pthread_config" = "xno"; then :
15715  continue
15716fi
15717                PTHREAD_CFLAGS="`pthread-config --cflags`"
15718                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15719                ;;
15720
15721                *)
15722                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15723$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15724                PTHREAD_LIBS="-l$ax_pthread_try_flag"
15725                ;;
15726        esac
15727
15728        ax_pthread_save_CFLAGS="$CFLAGS"
15729        ax_pthread_save_LIBS="$LIBS"
15730        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15731        LIBS="$PTHREAD_LIBS $LIBS"
15732
15733        # Check for various functions.  We must include pthread.h,
15734        # since some functions may be macros.  (On the Sequent, we
15735        # need a special flag -Kthread to make this header compile.)
15736        # We check for pthread_join because it is in -lpthread on IRIX
15737        # while pthread_create is in libc.  We check for pthread_attr_init
15738        # due to DEC craziness with -lpthreads.  We check for
15739        # pthread_cleanup_push because it is one of the few pthread
15740        # functions on Solaris that doesn't have a non-functional libc stub.
15741        # We try pthread_create on general principles.
15742
15743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744/* end confdefs.h.  */
15745#include <pthread.h>
15746#                       if $ax_pthread_check_cond
15747#                        error "$ax_pthread_check_macro must be defined"
15748#                       endif
15749                        static void routine(void *a) { a = 0; }
15750                        static void *start_routine(void *a) { return a; }
15751int
15752main ()
15753{
15754pthread_t th; pthread_attr_t attr;
15755                        pthread_create(&th, 0, start_routine, 0);
15756                        pthread_join(th, 0);
15757                        pthread_attr_init(&attr);
15758                        pthread_cleanup_push(routine, 0);
15759                        pthread_cleanup_pop(0) /* ; */
15760  ;
15761  return 0;
15762}
15763_ACEOF
15764if ac_fn_c_try_link "$LINENO"; then :
15765  ax_pthread_ok=yes
15766fi
15767rm -f core conftest.err conftest.$ac_objext \
15768    conftest$ac_exeext conftest.$ac_ext
15769
15770        CFLAGS="$ax_pthread_save_CFLAGS"
15771        LIBS="$ax_pthread_save_LIBS"
15772
15773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15774$as_echo "$ax_pthread_ok" >&6; }
15775        if test "x$ax_pthread_ok" = "xyes"; then :
15776  break
15777fi
15778
15779        PTHREAD_LIBS=""
15780        PTHREAD_CFLAGS=""
15781done
15782fi
15783
15784# Various other checks:
15785if test "x$ax_pthread_ok" = "xyes"; then
15786        ax_pthread_save_CFLAGS="$CFLAGS"
15787        ax_pthread_save_LIBS="$LIBS"
15788        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15789        LIBS="$PTHREAD_LIBS $LIBS"
15790
15791        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15793$as_echo_n "checking for joinable pthread attribute... " >&6; }
15794if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
15795  $as_echo_n "(cached) " >&6
15796else
15797  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15798             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15799                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h.  */
15801#include <pthread.h>
15802int
15803main ()
15804{
15805int attr = $ax_pthread_attr; return attr /* ; */
15806  ;
15807  return 0;
15808}
15809_ACEOF
15810if ac_fn_c_try_link "$LINENO"; then :
15811  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15812fi
15813rm -f core conftest.err conftest.$ac_objext \
15814    conftest$ac_exeext conftest.$ac_ext
15815             done
15816
15817fi
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15819$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15820        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15821               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15822               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
15823
15824cat >>confdefs.h <<_ACEOF
15825#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
15826_ACEOF
15827
15828               ax_pthread_joinable_attr_defined=yes
15829
15830fi
15831
15832        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15833$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
15834if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
15835  $as_echo_n "(cached) " >&6
15836else
15837  ax_cv_PTHREAD_SPECIAL_FLAGS=no
15838             case $host_os in
15839             solaris*)
15840             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15841             ;;
15842             esac
15843
15844fi
15845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15846$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15847        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15848               test "x$ax_pthread_special_flags_added" != "xyes"; then :
15849  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15850               ax_pthread_special_flags_added=yes
15851fi
15852
15853        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15854$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15855if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15856  $as_echo_n "(cached) " >&6
15857else
15858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859/* end confdefs.h.  */
15860#include <pthread.h>
15861int
15862main ()
15863{
15864int i = PTHREAD_PRIO_INHERIT;
15865  ;
15866  return 0;
15867}
15868_ACEOF
15869if ac_fn_c_try_link "$LINENO"; then :
15870  ax_cv_PTHREAD_PRIO_INHERIT=yes
15871else
15872  ax_cv_PTHREAD_PRIO_INHERIT=no
15873fi
15874rm -f core conftest.err conftest.$ac_objext \
15875    conftest$ac_exeext conftest.$ac_ext
15876
15877fi
15878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15879$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15880        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15881               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
15882
15883$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15884
15885               ax_pthread_prio_inherit_defined=yes
15886
15887fi
15888
15889        CFLAGS="$ax_pthread_save_CFLAGS"
15890        LIBS="$ax_pthread_save_LIBS"
15891
15892        # More AIX lossage: compile with *_r variant
15893        if test "x$GCC" != "xyes"; then
15894            case $host_os in
15895                aix*)
15896                case "x/$CC" in #(
15897  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15898    #handle absolute path differently from PATH based program lookup
15899                     case "x$CC" in #(
15900  x/*) :
15901    if as_fn_executable_p ${CC}_r; then :
15902  PTHREAD_CC="${CC}_r"
15903fi ;; #(
15904  *) :
15905    for ac_prog in ${CC}_r
15906do
15907  # Extract the first word of "$ac_prog", so it can be a program name with args.
15908set dummy $ac_prog; ac_word=$2
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910$as_echo_n "checking for $ac_word... " >&6; }
15911if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15912  $as_echo_n "(cached) " >&6
15913else
15914  if test -n "$PTHREAD_CC"; then
15915  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15916else
15917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918for as_dir in $PATH
15919do
15920  IFS=$as_save_IFS
15921  test -z "$as_dir" && as_dir=.
15922    for ac_exec_ext in '' $ac_executable_extensions; do
15923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924    ac_cv_prog_PTHREAD_CC="$ac_prog"
15925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15926    break 2
15927  fi
15928done
15929  done
15930IFS=$as_save_IFS
15931
15932fi
15933fi
15934PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15935if test -n "$PTHREAD_CC"; then
15936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15937$as_echo "$PTHREAD_CC" >&6; }
15938else
15939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940$as_echo "no" >&6; }
15941fi
15942
15943
15944  test -n "$PTHREAD_CC" && break
15945done
15946test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15947 ;;
15948esac ;; #(
15949  *) :
15950     ;;
15951esac
15952                ;;
15953            esac
15954        fi
15955fi
15956
15957test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15958
15959
15960
15961
15962
15963# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15964if test "x$ax_pthread_ok" = "xyes"; then
15965
15966$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15967
15968        :
15969else
15970        ax_pthread_ok=no
15971
15972fi
15973ac_ext=c
15974ac_cpp='$CPP $CPPFLAGS'
15975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15977ac_compiler_gnu=$ac_cv_c_compiler_gnu
15978
15979
15980
15981LIBS="$PTHREAD_LIBS $LIBS"
15982CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15983CC="$PTHREAD_CC"
15984
15985for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
15986do :
15987  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15990  cat >>confdefs.h <<_ACEOF
15991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15992_ACEOF
15993
15994fi
15995done
15996
15997
15998# [pairwise: --with-locktype=adaptive, --with-locktype=standard]
15999
16000# Check whether --with-locktype was given.
16001if test "${with_locktype+set}" = set; then :
16002  withval=$with_locktype;
16003else
16004  with_locktype="adaptive"
16005fi
16006
16007
16008case $with_locktype in #(
16009  adaptive) :
16010
16011	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
16012$as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
16013	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015
16016		 #ifndef _GNU_SOURCE
16017		 #define _GNU_SOURCE
16018		 #endif
16019		 #include <pthread.h>
16020
16021int
16022main ()
16023{
16024
16025		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
16026
16027
16028  ;
16029  return 0;
16030}
16031_ACEOF
16032if ac_fn_c_try_compile "$LINENO"; then :
16033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
16034$as_echo "using adaptive lock type" >&6; }
16035
16036$as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
16037
16038else
16039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
16040$as_echo "using standard lock type" >&6; }
16041
16042fi
16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
16044  standard) :
16045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
16046$as_echo "using standard lock type" >&6; } ;; #(
16047  *) :
16048    as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
16049        ;;
16050esac
16051
16052for ac_header in sched.h
16053do :
16054  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16055if test "x$ac_cv_header_sched_h" = xyes; then :
16056  cat >>confdefs.h <<_ACEOF
16057#define HAVE_SCHED_H 1
16058_ACEOF
16059
16060fi
16061
16062done
16063
16064
16065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
16066$as_echo_n "checking for library containing sched_yield... " >&6; }
16067if ${ac_cv_search_sched_yield+:} false; then :
16068  $as_echo_n "(cached) " >&6
16069else
16070  ac_func_search_save_LIBS=$LIBS
16071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072/* end confdefs.h.  */
16073
16074/* Override any GCC internal prototype to avoid an error.
16075   Use char because int might match the return type of a GCC
16076   builtin and then its argument prototype would still apply.  */
16077#ifdef __cplusplus
16078extern "C"
16079#endif
16080char sched_yield ();
16081int
16082main ()
16083{
16084return sched_yield ();
16085  ;
16086  return 0;
16087}
16088_ACEOF
16089for ac_lib in '' rt; do
16090  if test -z "$ac_lib"; then
16091    ac_res="none required"
16092  else
16093    ac_res=-l$ac_lib
16094    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16095  fi
16096  if ac_fn_c_try_link "$LINENO"; then :
16097  ac_cv_search_sched_yield=$ac_res
16098fi
16099rm -f core conftest.err conftest.$ac_objext \
16100    conftest$ac_exeext
16101  if ${ac_cv_search_sched_yield+:} false; then :
16102  break
16103fi
16104done
16105if ${ac_cv_search_sched_yield+:} false; then :
16106
16107else
16108  ac_cv_search_sched_yield=no
16109fi
16110rm conftest.$ac_ext
16111LIBS=$ac_func_search_save_LIBS
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16114$as_echo "$ac_cv_search_sched_yield" >&6; }
16115ac_res=$ac_cv_search_sched_yield
16116if test "$ac_res" != no; then :
16117  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16118
16119fi
16120
16121for ac_func in sched_yield pthread_yield pthread_yield_np
16122do :
16123  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16124ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16125if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16126  cat >>confdefs.h <<_ACEOF
16127#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16128_ACEOF
16129
16130fi
16131done
16132
16133
16134# Look for functions relating to thread naming
16135for ac_func in pthread_setname_np pthread_set_name_np
16136do :
16137  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16138ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16139if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16140  cat >>confdefs.h <<_ACEOF
16141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16142_ACEOF
16143
16144fi
16145done
16146
16147for ac_header in pthread_np.h
16148do :
16149  ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
16150"
16151if test "x$ac_cv_header_pthread_np_h" = xyes; then :
16152  cat >>confdefs.h <<_ACEOF
16153#define HAVE_PTHREAD_NP_H 1
16154_ACEOF
16155
16156fi
16157
16158done
16159
16160
16161# libuv
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
16163$as_echo_n "checking for libuv... " >&6; }
16164
16165pkg_failed=no
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
16167$as_echo_n "checking for libuv >= 1.0.0... " >&6; }
16168
16169if test -n "$LIBUV_CFLAGS"; then
16170    pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
16171 elif test -n "$PKG_CONFIG"; then
16172    if test -n "$PKG_CONFIG" && \
16173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
16174  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
16175  ac_status=$?
16176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16177  test $ac_status = 0; }; then
16178  pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
16179		      test "x$?" != "x0" && pkg_failed=yes
16180else
16181  pkg_failed=yes
16182fi
16183 else
16184    pkg_failed=untried
16185fi
16186if test -n "$LIBUV_LIBS"; then
16187    pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
16188 elif test -n "$PKG_CONFIG"; then
16189    if test -n "$PKG_CONFIG" && \
16190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
16191  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
16192  ac_status=$?
16193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194  test $ac_status = 0; }; then
16195  pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
16196		      test "x$?" != "x0" && pkg_failed=yes
16197else
16198  pkg_failed=yes
16199fi
16200 else
16201    pkg_failed=untried
16202fi
16203
16204
16205
16206if test $pkg_failed = yes; then
16207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16208$as_echo "no" >&6; }
16209
16210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16211        _pkg_short_errors_supported=yes
16212else
16213        _pkg_short_errors_supported=no
16214fi
16215        if test $_pkg_short_errors_supported = yes; then
16216	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
16217        else
16218	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
16219        fi
16220	# Put the nasty error message in config.log where it belongs
16221	echo "$LIBUV_PKG_ERRORS" >&5
16222
16223	as_fn_error $? "libuv not found" "$LINENO" 5
16224elif test $pkg_failed = untried; then
16225        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226$as_echo "no" >&6; }
16227	as_fn_error $? "libuv not found" "$LINENO" 5
16228else
16229	LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
16230	LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
16231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16232$as_echo "yes" >&6; }
16233
16234fi
16235
16236# libuv recvmmsg support
16237ac_fn_c_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h>
16238"
16239if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes; then :
16240  ac_have_decl=1
16241else
16242  ac_have_decl=0
16243fi
16244
16245cat >>confdefs.h <<_ACEOF
16246#define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl
16247_ACEOF
16248ac_fn_c_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h>
16249"
16250if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes; then :
16251  ac_have_decl=1
16252else
16253  ac_have_decl=0
16254fi
16255
16256cat >>confdefs.h <<_ACEOF
16257#define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl
16258_ACEOF
16259
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5
16261$as_echo_n "checking whether struct msghdr uses padding for alignment... " >&6; }
16262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263/* end confdefs.h.  */
16264#include <sys/socket.h>
16265int
16266main ()
16267{
16268const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 };
16269  ;
16270  return 0;
16271}
16272_ACEOF
16273if ac_fn_c_try_compile "$LINENO"; then :
16274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275$as_echo "yes" >&6; }
16276
16277$as_echo "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h
16278
16279else
16280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281$as_echo "no" >&6; }
16282		   ac_fn_c_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h>
16283"
16284if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes; then :
16285  ac_have_decl=1
16286else
16287  ac_have_decl=0
16288fi
16289
16290cat >>confdefs.h <<_ACEOF
16291#define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl
16292_ACEOF
16293
16294fi
16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296
16297#
16298# flockfile is usually provided by pthreads
16299#
16300for ac_func in flockfile getc_unlocked
16301do :
16302  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16305  cat >>confdefs.h <<_ACEOF
16306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16307_ACEOF
16308
16309fi
16310done
16311
16312
16313#
16314# Look for sysconf to allow detection of the number of processors.
16315#
16316for ac_func in sysconf
16317do :
16318  ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
16319if test "x$ac_cv_func_sysconf" = xyes; then :
16320  cat >>confdefs.h <<_ACEOF
16321#define HAVE_SYSCONF 1
16322_ACEOF
16323
16324fi
16325done
16326
16327
16328
16329
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
16331$as_echo_n "checking for libtool... " >&6; }
16332
16333# [pairwise: --with-libtool, --without-libtool]
16334
16335# Check whether --with-libtool was given.
16336if test "${with_libtool+set}" = set; then :
16337  withval=$with_libtool; use_libtool="$withval"
16338else
16339  use_libtool="no"
16340fi
16341
16342NO_LIBTOOL_ISCLIBS=
16343NO_LIBTOOL_DNSLIBS=
16344case $use_libtool in
16345	yes)
16346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16347$as_echo "yes" >&6; }
16348
16349		O=lo
16350		A=la
16351		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
16352		LIBTOOL_MODE_COMPILE='--mode=compile'
16353		LIBTOOL_MODE_INSTALL='--mode=install'
16354		LIBTOOL_MODE_LINK='--mode=link'
16355		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
16356		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
16357
16358$as_echo "#define USE_LIBTOOL 1" >>confdefs.h
16359
16360		;;
16361	*)
16362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363$as_echo "no" >&6; }
16364		O=o
16365		A=a
16366		LIBTOOL=
16367
16368		LIBTOOL_MKDEP_SED=
16369		LIBTOOL_MODE_COMPILE=
16370		LIBTOOL_MODE_INSTALL=
16371		LIBTOOL_MODE_LINK=
16372		LIBTOOL_MODE_UNINSTALL=
16373		INSTALL_LIBRARY='${INSTALL_DATA}'
16374		NO_LIBTOOL_ISCLIBS='${NO_LIBTOOL_ISCLIBS}'
16375		NO_LIBTOOL_DNSLIBS='${NO_LIBTOOL_DNSLIBS}'
16376		;;
16377esac
16378
16379
16380
16381
16382#
16383# Do we want to use pthread rwlock?
16384#
16385# [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
16386# Check whether --enable-pthread_rwlock was given.
16387if test "${enable_pthread_rwlock+set}" = set; then :
16388  enableval=$enable_pthread_rwlock;
16389else
16390  enable_pthread_rwlock=no
16391fi
16392
16393
16394if test "$enable_pthread_rwlock" = "yes"; then :
16395  for ac_func in pthread_rwlock_rdlock
16396do :
16397  ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
16398if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
16399  cat >>confdefs.h <<_ACEOF
16400#define HAVE_PTHREAD_RWLOCK_RDLOCK 1
16401_ACEOF
16402
16403else
16404  as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
16405fi
16406done
16407
16408
16409$as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
16410
16411
16412fi
16413
16414CRYPTO=OpenSSL
16415
16416#
16417# OpenSSL/LibreSSL is mandatory
16418#
16419
16420pkg_failed=no
16421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
16422$as_echo_n "checking for libssl libcrypto... " >&6; }
16423
16424if test -n "$OPENSSL_CFLAGS"; then
16425    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16426 elif test -n "$PKG_CONFIG"; then
16427    if test -n "$PKG_CONFIG" && \
16428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
16429  ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
16430  ac_status=$?
16431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16432  test $ac_status = 0; }; then
16433  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
16434		      test "x$?" != "x0" && pkg_failed=yes
16435else
16436  pkg_failed=yes
16437fi
16438 else
16439    pkg_failed=untried
16440fi
16441if test -n "$OPENSSL_LIBS"; then
16442    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16443 elif test -n "$PKG_CONFIG"; then
16444    if test -n "$PKG_CONFIG" && \
16445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
16446  ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
16447  ac_status=$?
16448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16449  test $ac_status = 0; }; then
16450  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
16451		      test "x$?" != "x0" && pkg_failed=yes
16452else
16453  pkg_failed=yes
16454fi
16455 else
16456    pkg_failed=untried
16457fi
16458
16459
16460
16461if test $pkg_failed = yes; then
16462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16463$as_echo "no" >&6; }
16464
16465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16466        _pkg_short_errors_supported=yes
16467else
16468        _pkg_short_errors_supported=no
16469fi
16470        if test $_pkg_short_errors_supported = yes; then
16471	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
16472        else
16473	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
16474        fi
16475	# Put the nasty error message in config.log where it belongs
16476	echo "$OPENSSL_PKG_ERRORS" >&5
16477
16478
16479    found=false
16480    default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
16481
16482# Check whether --with-openssl was given.
16483if test "${with_openssl+set}" = set; then :
16484  withval=$with_openssl;
16485	    case $with_openssl in #(
16486  ""|y|ye|yes) :
16487    ssldirs="$default_ssldirs" ;; #(
16488  n|no) :
16489    as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
16490  *) :
16491    ssldirs="$withval" ;; #(
16492  *) :
16493    ssldirs="$default_ssldirs"
16494	     ;;
16495esac
16496
16497else
16498
16499            # if pkg-config is installed and openssl has installed a .pc file,
16500            # then use that information and don't search ssldirs
16501
16502pkg_failed=no
16503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
16504$as_echo_n "checking for crypto... " >&6; }
16505
16506if test -n "$OPENSSL_CFLAGS"; then
16507    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16508 elif test -n "$PKG_CONFIG"; then
16509    if test -n "$PKG_CONFIG" && \
16510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16511  ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16512  ac_status=$?
16513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514  test $ac_status = 0; }; then
16515  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
16516		      test "x$?" != "x0" && pkg_failed=yes
16517else
16518  pkg_failed=yes
16519fi
16520 else
16521    pkg_failed=untried
16522fi
16523if test -n "$OPENSSL_LIBS"; then
16524    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16525 elif test -n "$PKG_CONFIG"; then
16526    if test -n "$PKG_CONFIG" && \
16527    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16528  ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16529  ac_status=$?
16530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531  test $ac_status = 0; }; then
16532  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
16533		      test "x$?" != "x0" && pkg_failed=yes
16534else
16535  pkg_failed=yes
16536fi
16537 else
16538    pkg_failed=untried
16539fi
16540
16541
16542
16543if test $pkg_failed = yes; then
16544        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545$as_echo "no" >&6; }
16546
16547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16548        _pkg_short_errors_supported=yes
16549else
16550        _pkg_short_errors_supported=no
16551fi
16552        if test $_pkg_short_errors_supported = yes; then
16553	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
16554        else
16555	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
16556        fi
16557	# Put the nasty error message in config.log where it belongs
16558	echo "$OPENSSL_PKG_ERRORS" >&5
16559
16560	ssldirs="$default_ssldirs"
16561elif test $pkg_failed = untried; then
16562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563$as_echo "no" >&6; }
16564	ssldirs="$default_ssldirs"
16565else
16566	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16567	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569$as_echo "yes" >&6; }
16570	found=true
16571fi
16572
16573
16574
16575fi
16576
16577
16578
16579    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
16580    # an 'openssl' subdirectory
16581
16582    if ! $found; then :
16583
16584        OPENSSL_CFLAGS=
16585        for ssldir in $ssldirs; do
16586            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
16587$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
16588	    if test -f "$ssldir/include/openssl/ssl.h"; then :
16589
16590		    OPENSSL_CFLAGS="-I$ssldir/include"
16591                    OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
16592                    found=true
16593                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16594$as_echo "yes" >&6; }
16595                    break
16596
16597else
16598
16599		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600$as_echo "no" >&6; }
16601
16602fi
16603        done
16604
16605        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
16606        # it will just work!
16607
16608fi
16609
16610    # try the preprocessor and linker with our new flags,
16611    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
16612
16613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
16614$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
16615    # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
16616
16617    save_LIBS="$LIBS"
16618    save_CPPFLAGS="$CPPFLAGS"
16619    LIBS="$OPENSSL_LIBS $LIBS"
16620    CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
16621    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622/* end confdefs.h.  */
16623
16624                #include <openssl/crypto.h>
16625
16626int
16627main ()
16628{
16629
16630	        OPENSSL_free(NULL);
16631
16632  ;
16633  return 0;
16634}
16635_ACEOF
16636if ac_fn_c_try_link "$LINENO"; then :
16637
16638            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639$as_echo "yes" >&6; }
16640            :
16641
16642else
16643
16644            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16645$as_echo "no" >&6; }
16646            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16648as_fn_error $? "OpenSSL/LibreSSL not found
16649See \`config.log' for more details" "$LINENO" 5; }
16650
16651fi
16652rm -f core conftest.err conftest.$ac_objext \
16653    conftest$ac_exeext conftest.$ac_ext
16654    CPPFLAGS="$save_CPPFLAGS"
16655    LIBS="$save_LIBS"
16656
16657
16658
16659
16660elif test $pkg_failed = untried; then
16661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16662$as_echo "no" >&6; }
16663
16664    found=false
16665    default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
16666
16667# Check whether --with-openssl was given.
16668if test "${with_openssl+set}" = set; then :
16669  withval=$with_openssl;
16670	    case $with_openssl in #(
16671  ""|y|ye|yes) :
16672    ssldirs="$default_ssldirs" ;; #(
16673  n|no) :
16674    as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
16675  *) :
16676    ssldirs="$withval" ;; #(
16677  *) :
16678    ssldirs="$default_ssldirs"
16679	     ;;
16680esac
16681
16682else
16683
16684            # if pkg-config is installed and openssl has installed a .pc file,
16685            # then use that information and don't search ssldirs
16686
16687pkg_failed=no
16688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
16689$as_echo_n "checking for crypto... " >&6; }
16690
16691if test -n "$OPENSSL_CFLAGS"; then
16692    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16693 elif test -n "$PKG_CONFIG"; then
16694    if test -n "$PKG_CONFIG" && \
16695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16696  ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16697  ac_status=$?
16698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16699  test $ac_status = 0; }; then
16700  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
16701		      test "x$?" != "x0" && pkg_failed=yes
16702else
16703  pkg_failed=yes
16704fi
16705 else
16706    pkg_failed=untried
16707fi
16708if test -n "$OPENSSL_LIBS"; then
16709    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16710 elif test -n "$PKG_CONFIG"; then
16711    if test -n "$PKG_CONFIG" && \
16712    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
16713  ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
16714  ac_status=$?
16715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16716  test $ac_status = 0; }; then
16717  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
16718		      test "x$?" != "x0" && pkg_failed=yes
16719else
16720  pkg_failed=yes
16721fi
16722 else
16723    pkg_failed=untried
16724fi
16725
16726
16727
16728if test $pkg_failed = yes; then
16729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16730$as_echo "no" >&6; }
16731
16732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16733        _pkg_short_errors_supported=yes
16734else
16735        _pkg_short_errors_supported=no
16736fi
16737        if test $_pkg_short_errors_supported = yes; then
16738	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
16739        else
16740	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
16741        fi
16742	# Put the nasty error message in config.log where it belongs
16743	echo "$OPENSSL_PKG_ERRORS" >&5
16744
16745	ssldirs="$default_ssldirs"
16746elif test $pkg_failed = untried; then
16747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748$as_echo "no" >&6; }
16749	ssldirs="$default_ssldirs"
16750else
16751	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16752	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16753        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16754$as_echo "yes" >&6; }
16755	found=true
16756fi
16757
16758
16759
16760fi
16761
16762
16763
16764    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
16765    # an 'openssl' subdirectory
16766
16767    if ! $found; then :
16768
16769        OPENSSL_CFLAGS=
16770        for ssldir in $ssldirs; do
16771            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
16772$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
16773	    if test -f "$ssldir/include/openssl/ssl.h"; then :
16774
16775		    OPENSSL_CFLAGS="-I$ssldir/include"
16776                    OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
16777                    found=true
16778                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16779$as_echo "yes" >&6; }
16780                    break
16781
16782else
16783
16784		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16785$as_echo "no" >&6; }
16786
16787fi
16788        done
16789
16790        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
16791        # it will just work!
16792
16793fi
16794
16795    # try the preprocessor and linker with our new flags,
16796    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
16797
16798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
16799$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
16800    # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
16801
16802    save_LIBS="$LIBS"
16803    save_CPPFLAGS="$CPPFLAGS"
16804    LIBS="$OPENSSL_LIBS $LIBS"
16805    CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
16806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h.  */
16808
16809                #include <openssl/crypto.h>
16810
16811int
16812main ()
16813{
16814
16815	        OPENSSL_free(NULL);
16816
16817  ;
16818  return 0;
16819}
16820_ACEOF
16821if ac_fn_c_try_link "$LINENO"; then :
16822
16823            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824$as_echo "yes" >&6; }
16825            :
16826
16827else
16828
16829            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16830$as_echo "no" >&6; }
16831            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833as_fn_error $? "OpenSSL/LibreSSL not found
16834See \`config.log' for more details" "$LINENO" 5; }
16835
16836fi
16837rm -f core conftest.err conftest.$ac_objext \
16838    conftest$ac_exeext conftest.$ac_ext
16839    CPPFLAGS="$save_CPPFLAGS"
16840    LIBS="$save_LIBS"
16841
16842
16843
16844
16845else
16846	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16847	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849$as_echo "yes" >&6; }
16850
16851fi
16852
16853
16854
16855  CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
16856
16857
16858
16859  CFLAGS_openssl_ax_save_flags=$CFLAGS
16860
16861
16862
16863  CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
16864
16865
16866
16867  CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
16868
16869
16870
16871  ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
16872
16873
16874
16875  FCFLAGS_openssl_ax_save_flags=$FCFLAGS
16876
16877
16878
16879  FCLIBS_openssl_ax_save_flags=$FCLIBS
16880
16881
16882
16883  FFLAGS_openssl_ax_save_flags=$FFLAGS
16884
16885
16886
16887  FLIBS_openssl_ax_save_flags=$FLIBS
16888
16889
16890
16891  GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
16892
16893
16894
16895  JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
16896
16897
16898
16899  LDFLAGS_openssl_ax_save_flags=$LDFLAGS
16900
16901
16902
16903  LIBS_openssl_ax_save_flags=$LIBS
16904
16905
16906
16907  OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
16908
16909
16910
16911  OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
16912
16913
16914
16915  UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
16916
16917
16918
16919  VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
16920
16921
16922
16923
16924#
16925# This maintenance branch of BIND 9 does not support new OpenSSL APIs
16926# introduced in version 3.0.0.  Suppress compiler warnings about using
16927# functions deprecated in newer OpenSSL versions as they will not be
16928# addressed in BIND 9.16.
16929#
16930OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
16931
16932CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
16933LIBS="$LIBS $OPENSSL_LIBS"
16934
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5
16936$as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; }
16937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939#include <openssl/opensslv.h>
16940int
16941main ()
16942{
16943#if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\
16944			   (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL))
16945		       #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required
16946		       #endif
16947
16948  ;
16949  return 0;
16950}
16951_ACEOF
16952if ac_fn_c_try_compile "$LINENO"; then :
16953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16954$as_echo "yes" >&6; }
16955else
16956  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16958as_fn_error $? "not found
16959See \`config.log' for more details" "$LINENO" 5; }
16960fi
16961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962
16963#
16964# Check for functions added in OpenSSL or LibreSSL
16965#
16966
16967for ac_func in OPENSSL_init_ssl OPENSSL_init_crypto OPENSSL_cleanup
16968do :
16969  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16971if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16972  cat >>confdefs.h <<_ACEOF
16973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974_ACEOF
16975
16976fi
16977done
16978
16979for ac_func in CRYPTO_zalloc
16980do :
16981  ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
16982if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
16983  cat >>confdefs.h <<_ACEOF
16984#define HAVE_CRYPTO_ZALLOC 1
16985_ACEOF
16986
16987fi
16988done
16989
16990for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
16991do :
16992  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16993ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16994if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16995  cat >>confdefs.h <<_ACEOF
16996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16997_ACEOF
16998
16999fi
17000done
17001
17002for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
17003do :
17004  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17005ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17006if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17007  cat >>confdefs.h <<_ACEOF
17008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17009_ACEOF
17010
17011fi
17012done
17013
17014for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
17015do :
17016  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17018if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17019  cat >>confdefs.h <<_ACEOF
17020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021_ACEOF
17022
17023fi
17024done
17025
17026for ac_func in SSL_read_ex SSL_peek_ex SSL_write_ex
17027do :
17028  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17031  cat >>confdefs.h <<_ACEOF
17032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17033_ACEOF
17034
17035fi
17036done
17037
17038for ac_func in BIO_read_ex BIO_write_ex
17039do :
17040  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17041ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17042if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17043  cat >>confdefs.h <<_ACEOF
17044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17045_ACEOF
17046
17047fi
17048done
17049
17050for ac_func in BN_GENCB_new
17051do :
17052  ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new"
17053if test "x$ac_cv_func_BN_GENCB_new" = xyes; then :
17054  cat >>confdefs.h <<_ACEOF
17055#define HAVE_BN_GENCB_NEW 1
17056_ACEOF
17057
17058fi
17059done
17060
17061for ac_func in SSL_CTX_up_ref
17062do :
17063  ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
17064if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes; then :
17065  cat >>confdefs.h <<_ACEOF
17066#define HAVE_SSL_CTX_UP_REF 1
17067_ACEOF
17068
17069fi
17070done
17071
17072for ac_func in SSL_CTX_set_min_proto_version
17073do :
17074  ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
17075if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes; then :
17076  cat >>confdefs.h <<_ACEOF
17077#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1
17078_ACEOF
17079
17080fi
17081done
17082
17083
17084#
17085# Check for algorithm support in OpenSSL
17086#
17087
17088for ac_func in ECDSA_sign ECDSA_verify
17089do :
17090  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17092if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17093  cat >>confdefs.h <<_ACEOF
17094#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095_ACEOF
17096 :
17097else
17098  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17100as_fn_error $? "ECDSA support in OpenSSL is mandatory.
17101See \`config.log' for more details" "$LINENO" 5; }
17102fi
17103done
17104
17105
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
17107$as_echo_n "checking for ECDSA P-256 support... " >&6; }
17108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109/* end confdefs.h.  */
17110#include <openssl/evp.h>
17111		       #include <openssl/ec.h>
17112int
17113main ()
17114{
17115EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
17116  ;
17117  return 0;
17118}
17119_ACEOF
17120if ac_fn_c_try_compile "$LINENO"; then :
17121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122$as_echo "yes" >&6; }
17123else
17124  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17126as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
17127See \`config.log' for more details" "$LINENO" 5; }
17128fi
17129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
17132$as_echo_n "checking for ECDSA P-384 support... " >&6; }
17133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134/* end confdefs.h.  */
17135#include <openssl/evp.h>
17136		       #include <openssl/ec.h>
17137int
17138main ()
17139{
17140EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
17141  ;
17142  return 0;
17143}
17144_ACEOF
17145if ac_fn_c_try_compile "$LINENO"; then :
17146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17147$as_echo "yes" >&6; }
17148else
17149  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17151as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
17152See \`config.log' for more details" "$LINENO" 5; }
17153fi
17154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17155
17156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
17157$as_echo_n "checking for Ed25519 support... " >&6; }
17158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159/* end confdefs.h.  */
17160#include <openssl/evp.h>
17161		       #include <openssl/ec.h>
17162int
17163main ()
17164{
17165EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
17166  ;
17167  return 0;
17168}
17169_ACEOF
17170if ac_fn_c_try_compile "$LINENO"; then :
17171
17172$as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
17173
17174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17175$as_echo "yes" >&6; }
17176else
17177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17178$as_echo "no" >&6; }
17179fi
17180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181
17182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
17183$as_echo_n "checking for Ed448 support... " >&6; }
17184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17185/* end confdefs.h.  */
17186#include <openssl/evp.h>
17187		       #include <openssl/ec.h>
17188int
17189main ()
17190{
17191EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_compile "$LINENO"; then :
17197
17198$as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
17199
17200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17201$as_echo "yes" >&6; }
17202else
17203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17204$as_echo "no" >&6; }
17205fi
17206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207
17208#
17209# Check for OpenSSL SHA-1 support
17210#
17211for ac_func in EVP_sha1
17212do :
17213  ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
17214if test "x$ac_cv_func_EVP_sha1" = xyes; then :
17215  cat >>confdefs.h <<_ACEOF
17216#define HAVE_EVP_SHA1 1
17217_ACEOF
17218 :
17219else
17220  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17222as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
17223See \`config.log' for more details" "$LINENO" 5; }
17224fi
17225done
17226
17227
17228#
17229# Check for OpenSSL SHA-2 support
17230#
17231for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
17232do :
17233  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17234ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17235if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17236  cat >>confdefs.h <<_ACEOF
17237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238_ACEOF
17239 :
17240else
17241  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17243as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
17244See \`config.log' for more details" "$LINENO" 5; }
17245fi
17246done
17247
17248
17249#
17250# Check for OpenSSL AES support
17251#
17252for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
17253do :
17254  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17256if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17257  cat >>confdefs.h <<_ACEOF
17258#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17259_ACEOF
17260 :
17261else
17262  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17264as_fn_error $? "AES support in OpenSSL is mandatory.
17265See \`config.log' for more details" "$LINENO" 5; }
17266fi
17267done
17268
17269
17270#
17271# Check for OpenSSL 1.1.x/LibreSSL functions
17272#
17273for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
17274do :
17275  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17278  cat >>confdefs.h <<_ACEOF
17279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280_ACEOF
17281
17282fi
17283done
17284
17285
17286for ac_func in TLS_server_method TLS_client_method
17287do :
17288  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17290if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17291  cat >>confdefs.h <<_ACEOF
17292#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17293_ACEOF
17294
17295fi
17296done
17297
17298
17299#
17300# Check whether FIPS mode is available and whether we should enable it
17301#
17302# FIPS is not included in pairwise testing as the relevant Docker image
17303# does not support FIPS mode.
17304#
17305# [pairwise: skip]
17306# Check whether --enable-fips-mode was given.
17307if test "${enable_fips_mode+set}" = set; then :
17308  enableval=$enable_fips_mode;
17309else
17310  enable_fips_mode="no"
17311fi
17312
17313
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
17315$as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
17316case $enable_fips_mode in #(
17317  yes) :
17318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17319$as_echo "yes" >&6; }
17320		for ac_func in FIPS_mode
17321do :
17322  ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
17323if test "x$ac_cv_func_FIPS_mode" = xyes; then :
17324  cat >>confdefs.h <<_ACEOF
17325#define HAVE_FIPS_MODE 1
17326_ACEOF
17327
17328else
17329  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17331as_fn_error $? "OpenSSL FIPS mode requested but not available.
17332See \`config.log' for more details" "$LINENO" 5; }
17333fi
17334done
17335 ;; #(
17336  no) :
17337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338$as_echo "no" >&6; } ;; #(
17339  *) :
17340     ;;
17341esac
17342
17343
17344  CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
17345
17346
17347  CFLAGS=$CFLAGS_openssl_ax_save_flags
17348
17349
17350  CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
17351
17352
17353  CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
17354
17355
17356  ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
17357
17358
17359  FCFLAGS=$FCFLAGS_openssl_ax_save_flags
17360
17361
17362  FCLIBS=$FCLIBS_openssl_ax_save_flags
17363
17364
17365  FFLAGS=$FFLAGS_openssl_ax_save_flags
17366
17367
17368  FLIBS=$FLIBS_openssl_ax_save_flags
17369
17370
17371  GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
17372
17373
17374  JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
17375
17376
17377  LDFLAGS=$LDFLAGS_openssl_ax_save_flags
17378
17379
17380  LIBS=$LIBS_openssl_ax_save_flags
17381
17382
17383  OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
17384
17385
17386  OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
17387
17388
17389  UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
17390
17391
17392  VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
17393
17394
17395
17396
17397
17398
17399
17400PKCS11_TOOLS=
17401PKCS11_TEST=
17402PKCS11_MANS=
17403#
17404# was --enable-native-pkcs11 specified?
17405#
17406# [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen]
17407# Check whether --enable-native-pkcs11 was given.
17408if test "${enable_native_pkcs11+set}" = set; then :
17409  enableval=$enable_native_pkcs11; :
17410else
17411  enable_native_pkcs11="no"
17412fi
17413
17414
17415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
17416$as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
17417case $enable_native_pkcs11 in #(
17418  no) :
17419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17420$as_echo "no" >&6; } ;; #(
17421  yes) :
17422    PKCS11_TOOLS=pkcs11
17423	       PKCS11_TEST=pkcs11
17424	       PKCS11_MANS='${pkcs11_man8_MANS}'
17425	       CRYPTO=pkcs11
17426	       if $use_threads; then :
17427  :
17428else
17429  as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
17430fi
17431	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17432$as_echo "yes" >&6; }
17433	       for ac_func in getpassphrase
17434do :
17435  ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
17436if test "x$ac_cv_func_getpassphrase" = xyes; then :
17437  cat >>confdefs.h <<_ACEOF
17438#define HAVE_GETPASSPHRASE 1
17439_ACEOF
17440
17441fi
17442done
17443
17444	       ;; #(
17445  *) :
17446     ;;
17447esac
17448
17449
17450
17451
17452
17453case $CRYPTO in #(
17454  pkcs11) :
17455
17456$as_echo "#define USE_PKCS11 1" >>confdefs.h
17457 ;; #(
17458  *) :
17459
17460$as_echo "#define USE_OPENSSL 1" >>confdefs.h
17461 ;;
17462esac
17463
17464# preparation for automake
17465# AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
17466
17467#
17468# was --with-pkcs11 specified?
17469#
17470# [pairwise: skip]
17471
17472# Check whether --with-pkcs11 was given.
17473if test "${with_pkcs11+set}" = set; then :
17474  withval=$with_pkcs11; :
17475else
17476  with_pkcs11="undefined"
17477fi
17478
17479
17480case $with_pkcs11 in #(
17481  yes|auto) :
17482    as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
17483  no|undefined) :
17484    with_pkcs11="undefined" ;; #(
17485  *) :
17486     ;;
17487esac
17488
17489cat >>confdefs.h <<_ACEOF
17490#define PK11_LIB_LOCATION "$with_pkcs11"
17491_ACEOF
17492
17493
17494# for PKCS11 benchmarks
17495
17496have_clock_gt=no
17497ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17498if test "x$ac_cv_func_clock_gettime" = xyes; then :
17499  have_clock_gt=yes
17500fi
17501
17502if test "no" = "$have_clock_gt"; then
17503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17504$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17505if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17506  $as_echo_n "(cached) " >&6
17507else
17508  ac_check_lib_save_LIBS=$LIBS
17509LIBS="-lrt  $LIBS"
17510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511/* end confdefs.h.  */
17512
17513/* Override any GCC internal prototype to avoid an error.
17514   Use char because int might match the return type of a GCC
17515   builtin and then its argument prototype would still apply.  */
17516#ifdef __cplusplus
17517extern "C"
17518#endif
17519char clock_gettime ();
17520int
17521main ()
17522{
17523return clock_gettime ();
17524  ;
17525  return 0;
17526}
17527_ACEOF
17528if ac_fn_c_try_link "$LINENO"; then :
17529  ac_cv_lib_rt_clock_gettime=yes
17530else
17531  ac_cv_lib_rt_clock_gettime=no
17532fi
17533rm -f core conftest.err conftest.$ac_objext \
17534    conftest$ac_exeext conftest.$ac_ext
17535LIBS=$ac_check_lib_save_LIBS
17536fi
17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17538$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17539if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17540  have_clock_gt=rt
17541fi
17542
17543fi
17544
17545if test "no" != "$have_clock_gt"; then
17546
17547$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17548
17549fi
17550
17551if test "rt" = "$have_clock_gt"; then
17552	LIBS="-lrt $LIBS"
17553fi
17554
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
17556$as_echo_n "checking for GSSAPI library... " >&6; }
17557
17558# [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
17559
17560# Check whether --with-gssapi was given.
17561if test "${with_gssapi+set}" = set; then :
17562  withval=$with_gssapi; use_gssapi="$withval"
17563else
17564  use_gssapi="auto"
17565fi
17566
17567
17568# first try using krb5-config, if that does not work then fall back to "yes" method.
17569
17570case "$use_gssapi" in
17571*/krb5-config|krb5-config)
17572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
17573$as_echo "trying $use_gssapi" >&6; }
17574    if test krb5-config = "$use_gssapi"
17575    then
17576	# Extract the first word of "$use_gssapi", so it can be a program name with args.
17577set dummy $use_gssapi; ac_word=$2
17578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17579$as_echo_n "checking for $ac_word... " >&6; }
17580if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17581  $as_echo_n "(cached) " >&6
17582else
17583  case $KRB5_CONFIG in
17584  [\\/]* | ?:[\\/]*)
17585  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17586  ;;
17587  *)
17588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17589for as_dir in $PATH
17590do
17591  IFS=$as_save_IFS
17592  test -z "$as_dir" && as_dir=.
17593    for ac_exec_ext in '' $ac_executable_extensions; do
17594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17595    ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17597    break 2
17598  fi
17599done
17600  done
17601IFS=$as_save_IFS
17602
17603  ;;
17604esac
17605fi
17606KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17607if test -n "$KRB5_CONFIG"; then
17608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17609$as_echo "$KRB5_CONFIG" >&6; }
17610else
17611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612$as_echo "no" >&6; }
17613fi
17614
17615
17616    else
17617	KRB5_CONFIG="$use_gssapi"
17618    fi
17619    gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
17620    gssapi_libs=`$KRB5_CONFIG --libs gssapi`
17621    krb5_cflags=`$KRB5_CONFIG --cflags krb5`
17622    krb5_libs=`$KRB5_CONFIG --libs krb5`
17623    saved_cppflags="$CPPFLAGS"
17624    CPPFLAGS="$gssapi_cflags $krb5_cflags $CPPFLAGS"
17625    for ac_header in gssapi.h gssapi/gssapi.h
17626do :
17627  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17628ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17630  cat >>confdefs.h <<_ACEOF
17631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17632_ACEOF
17633 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
17634fi
17635
17636done
17637
17638    if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
17639	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
17640$as_echo "krb5-config: gssapi.h not found" >&6; }
17641	CPPFLAGS="$saved_cppflags"
17642	use_gssapi="yes"
17643    else
17644	for ac_header in krb5/krb5.h krb5.h
17645do :
17646  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17649  cat >>confdefs.h <<_ACEOF
17650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17651_ACEOF
17652 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
17653fi
17654
17655done
17656
17657	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
17658	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
17659$as_echo "krb5-config: krb5.h not found" >&6; }
17660	    CPPFLAGS="$saved_cppflags"
17661	    use_gssapi="yes"
17662	else
17663	    CPPFLAGS="$saved_cppflags"
17664	    saved_libs="$LIBS"
17665	    LIBS="$gssapi_libs $krb5_libs $LIBS"
17666	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
17667$as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
17668	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h.  */
17670
17671int
17672main ()
17673{
17674gss_acquire_cred();krb5_init_context()
17675  ;
17676  return 0;
17677}
17678_ACEOF
17679if ac_fn_c_try_link "$LINENO"; then :
17680  gssapi_linked=yes
17681else
17682  gssapi_linked=no
17683fi
17684rm -f core conftest.err conftest.$ac_objext \
17685    conftest$ac_exeext conftest.$ac_ext
17686	    case $gssapi_linked in
17687		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
17688$as_echo "krb5-config: linked" >&6; };;
17689		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
17690$as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
17691		    use_gssapi="yes"
17692		    ;;
17693	    esac
17694	    LIBS=$saved_libs
17695	fi
17696    fi
17697    if test "yes" = "$use_gssapi"; then
17698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
17699$as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
17700    fi
17701    ;;
17702esac
17703
17704case "$host" in
17705*darwin*)
17706	if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
17707	then
17708		use_gssapi=framework
17709	fi
17710	;;
17711esac
17712
17713# gssapi is just the framework, we really require kerberos v5, so
17714# look for those headers (the gssapi headers must be there, too)
17715# The problem with this implementation is that it doesn't allow
17716# for the specification of gssapi and krb5 headers in different locations,
17717# which probably ought to be fixed although fixing might raise the issue of
17718# trying to build with incompatible versions of gssapi and krb5.
17719if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
17720then
17721	# first, deal with the obvious
17722	if test \( -f /usr/include/kerberosv5/krb5.h -o \
17723		   -f /usr/include/krb5/krb5.h -o \
17724		   -f /usr/include/krb5.h \)   -a \
17725		\( -f /usr/include/gssapi.h -o \
17726		   -f /usr/include/gssapi/gssapi.h \)
17727	then
17728		use_gssapi=/usr
17729	else
17730	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
17731	    for d in $krb5dirs
17732	    do
17733		if test -f $d/include/gssapi/gssapi_krb5.h -o \
17734			-f $d/include/krb5.h
17735		then
17736			if test -f $d/include/gssapi/gssapi.h -o \
17737				-f $d/include/gssapi.h
17738			then
17739				use_gssapi=$d
17740				break
17741			fi
17742		fi
17743	    done
17744	    if test "auto" = "$use_gssapi"
17745	    then
17746		use_gssapi="no"
17747	    fi
17748	fi
17749fi
17750
17751case "$use_gssapi" in
17752	no)
17753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
17754$as_echo "disabled" >&6; }
17755		USE_GSSAPI=''
17756		;;
17757	yes)
17758		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
17759		;;
17760	*/krb5-config|krb5-config)
17761		USE_GSSAPI='-DGSSAPI'
17762		DST_GSSAPI_INC="$gssapi_cflags $krb5_cflags"
17763		DNS_GSSAPI_LIBS="$gssapi_libs $krb5_libs"
17764		;;
17765	framework)
17766		USE_GSSAPI='-DGSSAPI'
17767		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
17768		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
17769		DNS_GSSAPI_LIBS="-framework Kerberos"
17770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
17771$as_echo "framework" >&6; }
17772		;;
17773
17774	*)
17775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
17776$as_echo "looking in $use_gssapi/lib" >&6; }
17777		USE_GSSAPI='-DGSSAPI'
17778		saved_cppflags="$CPPFLAGS"
17779		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
17780		for ac_header in gssapi.h gssapi/gssapi.h
17781do :
17782  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17783ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17785  cat >>confdefs.h <<_ACEOF
17786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17787_ACEOF
17788 ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
17789		     gssapi_hack="#include <$ac_header>"
17790fi
17791
17792done
17793
17794
17795		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
17796		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
17797		fi
17798
17799		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
17800do :
17801  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17802ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17804  cat >>confdefs.h <<_ACEOF
17805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17806_ACEOF
17807 ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
17808		     gssapi_krb5_hack="#include <$ac_header>"
17809fi
17810
17811done
17812
17813
17814		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
17815do :
17816  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17817ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17818if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17819  cat >>confdefs.h <<_ACEOF
17820#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17821_ACEOF
17822 ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
17823		    krb5_hack="#include <$ac_header>"
17824fi
17825
17826done
17827
17828
17829		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
17830		    as_fn_error $? "krb5.h not found" "$LINENO" 5
17831		fi
17832
17833		#
17834		# XXXDCL This probably doesn't work right on all systems.
17835		# It will need to be worked on as problems become evident.
17836		#
17837		# Essentially the problems here relate to two different
17838		# areas.  The first area is building with either KTH
17839		# or MIT Kerberos, particularly when both are present on
17840		# the machine.  The other is static versus dynamic linking.
17841		#
17842		# On the KTH vs MIT issue, Both have libkrb5 that can mess
17843		# up the works if one implementation ends up trying to
17844		# use the other's krb.  This is unfortunately a situation
17845		# that very easily arises.
17846		#
17847		# Dynamic linking when the dependency information is built
17848		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
17849		# all such problems go away, but when that setup is not
17850		# present, because either the dynamic libraries lack
17851		# dependencies or static linking is being done, then the
17852		# problems start to show up.
17853		saved_libs="$LIBS"
17854		for TRY_LIBS in \
17855		    "$($KRB5CONFIG gssapi --libs)"; \
17856		do
17857		    LIBS="$TRY_LIBS"
17858		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
17859$as_echo_n "checking linking as $TRY_LIBS... " >&6; }
17860		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861/* end confdefs.h.  */
17862
17863#include <sys/types.h>
17864$gssapi_hack
17865$gssapi_krb5_hack
17866$krb5_hack
17867
17868int
17869main ()
17870{
17871gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
17872#if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
17873gsskrb5_register_acceptor_identity(NULL);
17874#endif
17875  ;
17876  return 0;
17877}
17878_ACEOF
17879if ac_fn_c_try_link "$LINENO"; then :
17880  gssapi_linked=yes
17881else
17882  gssapi_linked=no
17883fi
17884rm -f core conftest.err conftest.$ac_objext \
17885    conftest$ac_exeext conftest.$ac_ext
17886		    case $gssapi_linked in
17887		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17888$as_echo "yes" >&6; }; break ;;
17889		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890$as_echo "no" >&6; } ;;
17891		    esac
17892		done
17893
17894		CPPFLAGS="$saved_cppflags"
17895
17896		case $gssapi_linked in
17897		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
17898		esac
17899
17900		DST_GSSAPI_INC="$($KRB5CONFIG gssapi --cflags)"
17901		DNS_GSSAPI_LIBS="$LIBS"
17902
17903		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
17904$as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
17905		LIBS="$saved_libs"
17906		;;
17907esac
17908
17909
17910
17911
17912
17913
17914
17915
17916DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
17917
17918#
17919# Applications linking with libdns also need to link with these libraries.
17920#
17921
17922
17923
17924#
17925# was --with-lmdb specified?
17926#
17927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
17928$as_echo_n "checking for lmdb library... " >&6; }
17929
17930# [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
17931
17932# Check whether --with-lmdb was given.
17933if test "${with_lmdb+set}" = set; then :
17934  withval=$with_lmdb; use_lmdb="$withval"
17935else
17936  use_lmdb="auto"
17937fi
17938
17939
17940have_lmdb=""
17941case "$use_lmdb" in
17942	no)
17943		LMDB_LIBS=""
17944		;;
17945	auto|yes)
17946		for d in /usr /usr/local /opt/local
17947		do
17948			if test -f "${d}/include/lmdb.h"
17949			then
17950				if test ${d} != /usr
17951				then
17952					LMDB_CFLAGS="-I ${d}/include"
17953					LMDB_LIBS="-L${d}/lib"
17954				fi
17955				have_lmdb="yes"
17956			fi
17957		done
17958		;;
17959	*)
17960		if test -f "${use_lmdb}/include/lmdb.h"
17961		then
17962			LMDB_CFLAGS="-I${use_lmdb}/include"
17963			LMDB_LIBS="-L${use_lmdb}/lib"
17964			have_lmdb="yes"
17965		else
17966			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
17967		fi
17968		;;
17969esac
17970
17971if test "X${have_lmdb}" != "X"
17972then
17973	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17974$as_echo "yes" >&6; }
17975
17976
17977  CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
17978
17979
17980
17981  CFLAGS_lmdb_ax_save_flags=$CFLAGS
17982
17983
17984
17985  CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
17986
17987
17988
17989  CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
17990
17991
17992
17993  ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
17994
17995
17996
17997  FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
17998
17999
18000
18001  FCLIBS_lmdb_ax_save_flags=$FCLIBS
18002
18003
18004
18005  FFLAGS_lmdb_ax_save_flags=$FFLAGS
18006
18007
18008
18009  FLIBS_lmdb_ax_save_flags=$FLIBS
18010
18011
18012
18013  GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
18014
18015
18016
18017  JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
18018
18019
18020
18021  LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
18022
18023
18024
18025  LIBS_lmdb_ax_save_flags=$LIBS
18026
18027
18028
18029  OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
18030
18031
18032
18033  OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
18034
18035
18036
18037  UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
18038
18039
18040
18041  VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
18042
18043
18044
18045	CFLAGS="$CFLAGS $LMDB_CFLAGS"
18046	LIBS="$LIBS $LMDB_LIBS"
18047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
18048$as_echo_n "checking for library containing mdb_env_create... " >&6; }
18049if ${ac_cv_search_mdb_env_create+:} false; then :
18050  $as_echo_n "(cached) " >&6
18051else
18052  ac_func_search_save_LIBS=$LIBS
18053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054/* end confdefs.h.  */
18055
18056/* Override any GCC internal prototype to avoid an error.
18057   Use char because int might match the return type of a GCC
18058   builtin and then its argument prototype would still apply.  */
18059#ifdef __cplusplus
18060extern "C"
18061#endif
18062char mdb_env_create ();
18063int
18064main ()
18065{
18066return mdb_env_create ();
18067  ;
18068  return 0;
18069}
18070_ACEOF
18071for ac_lib in '' lmdb; do
18072  if test -z "$ac_lib"; then
18073    ac_res="none required"
18074  else
18075    ac_res=-l$ac_lib
18076    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18077  fi
18078  if ac_fn_c_try_link "$LINENO"; then :
18079  ac_cv_search_mdb_env_create=$ac_res
18080fi
18081rm -f core conftest.err conftest.$ac_objext \
18082    conftest$ac_exeext
18083  if ${ac_cv_search_mdb_env_create+:} false; then :
18084  break
18085fi
18086done
18087if ${ac_cv_search_mdb_env_create+:} false; then :
18088
18089else
18090  ac_cv_search_mdb_env_create=no
18091fi
18092rm conftest.$ac_ext
18093LIBS=$ac_func_search_save_LIBS
18094fi
18095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
18096$as_echo "$ac_cv_search_mdb_env_create" >&6; }
18097ac_res=$ac_cv_search_mdb_env_create
18098if test "$ac_res" != no; then :
18099  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18100
18101else
18102  as_fn_error $? "found lmdb include but not library." "$LINENO" 5
18103			have_lmdb=""
18104fi
18105
18106	LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
18107
18108  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
18109
18110
18111  CFLAGS=$CFLAGS_lmdb_ax_save_flags
18112
18113
18114  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
18115
18116
18117  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
18118
18119
18120  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
18121
18122
18123  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
18124
18125
18126  FCLIBS=$FCLIBS_lmdb_ax_save_flags
18127
18128
18129  FFLAGS=$FFLAGS_lmdb_ax_save_flags
18130
18131
18132  FLIBS=$FLIBS_lmdb_ax_save_flags
18133
18134
18135  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
18136
18137
18138  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
18139
18140
18141  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
18142
18143
18144  LIBS=$LIBS_lmdb_ax_save_flags
18145
18146
18147  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
18148
18149
18150  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
18151
18152
18153  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
18154
18155
18156  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
18157
18158
18159
18160elif test "X$use_lmdb" = Xyes
18161then
18162	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
18163else
18164	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18165$as_echo "no" >&6; }
18166fi
18167
18168
18169
18170NZD_TOOLS=""
18171NZDSRCS=
18172NZDTARGETS=
18173if test "X${have_lmdb}" != "X"
18174then
18175
18176$as_echo "#define HAVE_LMDB 1" >>confdefs.h
18177
18178	NZD_TOOLS="nzd"
18179	NZDSRCS='${NZDSRCS}'
18180	NZDTARGETS='${NZDTARGETS}'
18181	NZD_MANS='${nzd_man8_MANS}'
18182fi
18183
18184
18185
18186
18187
18188#
18189# was --with-libxml2 specified?
18190#
18191# [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
18192
18193# Check whether --with-libxml2 was given.
18194if test "${with_libxml2+set}" = set; then :
18195  withval=$with_libxml2;
18196else
18197  with_libxml2="auto"
18198fi
18199
18200
18201case $with_libxml2 in #(
18202  no) :
18203     ;; #(
18204  auto) :
18205
18206pkg_failed=no
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
18208$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
18209
18210if test -n "$LIBXML2_CFLAGS"; then
18211    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
18212 elif test -n "$PKG_CONFIG"; then
18213    if test -n "$PKG_CONFIG" && \
18214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18215  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18216  ac_status=$?
18217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218  test $ac_status = 0; }; then
18219  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
18220		      test "x$?" != "x0" && pkg_failed=yes
18221else
18222  pkg_failed=yes
18223fi
18224 else
18225    pkg_failed=untried
18226fi
18227if test -n "$LIBXML2_LIBS"; then
18228    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
18229 elif test -n "$PKG_CONFIG"; then
18230    if test -n "$PKG_CONFIG" && \
18231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18232  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18233  ac_status=$?
18234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18235  test $ac_status = 0; }; then
18236  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
18237		      test "x$?" != "x0" && pkg_failed=yes
18238else
18239  pkg_failed=yes
18240fi
18241 else
18242    pkg_failed=untried
18243fi
18244
18245
18246
18247if test $pkg_failed = yes; then
18248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249$as_echo "no" >&6; }
18250
18251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18252        _pkg_short_errors_supported=yes
18253else
18254        _pkg_short_errors_supported=no
18255fi
18256        if test $_pkg_short_errors_supported = yes; then
18257	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18258        else
18259	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18260        fi
18261	# Put the nasty error message in config.log where it belongs
18262	echo "$LIBXML2_PKG_ERRORS" >&5
18263
18264	:
18265elif test $pkg_failed = untried; then
18266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18267$as_echo "no" >&6; }
18268	:
18269else
18270	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
18271	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
18272        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18273$as_echo "yes" >&6; }
18274
18275$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18276
18277fi ;; #(
18278  yes) :
18279
18280pkg_failed=no
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
18282$as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
18283
18284if test -n "$LIBXML2_CFLAGS"; then
18285    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
18286 elif test -n "$PKG_CONFIG"; then
18287    if test -n "$PKG_CONFIG" && \
18288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18289  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18290  ac_status=$?
18291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18292  test $ac_status = 0; }; then
18293  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
18294		      test "x$?" != "x0" && pkg_failed=yes
18295else
18296  pkg_failed=yes
18297fi
18298 else
18299    pkg_failed=untried
18300fi
18301if test -n "$LIBXML2_LIBS"; then
18302    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
18303 elif test -n "$PKG_CONFIG"; then
18304    if test -n "$PKG_CONFIG" && \
18305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
18306  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
18307  ac_status=$?
18308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18309  test $ac_status = 0; }; then
18310  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
18311		      test "x$?" != "x0" && pkg_failed=yes
18312else
18313  pkg_failed=yes
18314fi
18315 else
18316    pkg_failed=untried
18317fi
18318
18319
18320
18321if test $pkg_failed = yes; then
18322        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323$as_echo "no" >&6; }
18324
18325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18326        _pkg_short_errors_supported=yes
18327else
18328        _pkg_short_errors_supported=no
18329fi
18330        if test $_pkg_short_errors_supported = yes; then
18331	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18332        else
18333	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
18334        fi
18335	# Put the nasty error message in config.log where it belongs
18336	echo "$LIBXML2_PKG_ERRORS" >&5
18337
18338	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
18339
18340$LIBXML2_PKG_ERRORS
18341
18342Consider adjusting the PKG_CONFIG_PATH environment variable if you
18343installed software in a non-standard prefix.
18344
18345Alternatively, you may set the environment variables LIBXML2_CFLAGS
18346and LIBXML2_LIBS to avoid the need to call pkg-config.
18347See the pkg-config man page for more details." "$LINENO" 5
18348elif test $pkg_failed = untried; then
18349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350$as_echo "no" >&6; }
18351	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18353as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18354is in your PATH or set the PKG_CONFIG environment variable to the full
18355path to pkg-config.
18356
18357Alternatively, you may set the environment variables LIBXML2_CFLAGS
18358and LIBXML2_LIBS to avoid the need to call pkg-config.
18359See the pkg-config man page for more details.
18360
18361To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18362See \`config.log' for more details" "$LINENO" 5; }
18363else
18364	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
18365	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
18366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367$as_echo "yes" >&6; }
18368
18369$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
18370
18371fi ;; #(
18372  *) :
18373    as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
18374esac
18375
18376#
18377# DEPRECATED
18378#
18379# [pairwise: skip]
18380
18381# Check whether --with-libjson was given.
18382if test "${with_libjson+set}" = set; then :
18383  withval=$with_libjson; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&5
18384$as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
18385else
18386  with_libjson="detect"
18387fi
18388
18389
18390#
18391# was --with-json-c specified?
18392#
18393# [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
18394
18395# Check whether --with-json-c was given.
18396if test "${with_json_c+set}" = set; then :
18397  withval=$with_json_c;
18398else
18399  with_json_c="$with_libjson"
18400fi
18401
18402
18403case $with_json_c in #(
18404  no) :
18405     ;; #(
18406  detect) :
18407
18408pkg_failed=no
18409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
18410$as_echo_n "checking for json-c >= 0.11... " >&6; }
18411
18412if test -n "$JSON_C_CFLAGS"; then
18413    pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18414 elif test -n "$PKG_CONFIG"; then
18415    if test -n "$PKG_CONFIG" && \
18416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18417  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18418  ac_status=$?
18419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420  test $ac_status = 0; }; then
18421  pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
18422		      test "x$?" != "x0" && pkg_failed=yes
18423else
18424  pkg_failed=yes
18425fi
18426 else
18427    pkg_failed=untried
18428fi
18429if test -n "$JSON_C_LIBS"; then
18430    pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18431 elif test -n "$PKG_CONFIG"; then
18432    if test -n "$PKG_CONFIG" && \
18433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18434  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18435  ac_status=$?
18436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18437  test $ac_status = 0; }; then
18438  pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
18439		      test "x$?" != "x0" && pkg_failed=yes
18440else
18441  pkg_failed=yes
18442fi
18443 else
18444    pkg_failed=untried
18445fi
18446
18447
18448
18449if test $pkg_failed = yes; then
18450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451$as_echo "no" >&6; }
18452
18453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18454        _pkg_short_errors_supported=yes
18455else
18456        _pkg_short_errors_supported=no
18457fi
18458        if test $_pkg_short_errors_supported = yes; then
18459	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18460        else
18461	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18462        fi
18463	# Put the nasty error message in config.log where it belongs
18464	echo "$JSON_C_PKG_ERRORS" >&5
18465
18466	:
18467elif test $pkg_failed = untried; then
18468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18469$as_echo "no" >&6; }
18470	:
18471else
18472	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18473	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18475$as_echo "yes" >&6; }
18476
18477$as_echo "#define HAVE_JSON_C 1" >>confdefs.h
18478
18479fi ;; #(
18480  yes) :
18481
18482pkg_failed=no
18483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
18484$as_echo_n "checking for json-c >= 0.11... " >&6; }
18485
18486if test -n "$JSON_C_CFLAGS"; then
18487    pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18488 elif test -n "$PKG_CONFIG"; then
18489    if test -n "$PKG_CONFIG" && \
18490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18491  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18492  ac_status=$?
18493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18494  test $ac_status = 0; }; then
18495  pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
18496		      test "x$?" != "x0" && pkg_failed=yes
18497else
18498  pkg_failed=yes
18499fi
18500 else
18501    pkg_failed=untried
18502fi
18503if test -n "$JSON_C_LIBS"; then
18504    pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18505 elif test -n "$PKG_CONFIG"; then
18506    if test -n "$PKG_CONFIG" && \
18507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
18508  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
18509  ac_status=$?
18510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18511  test $ac_status = 0; }; then
18512  pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
18513		      test "x$?" != "x0" && pkg_failed=yes
18514else
18515  pkg_failed=yes
18516fi
18517 else
18518    pkg_failed=untried
18519fi
18520
18521
18522
18523if test $pkg_failed = yes; then
18524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525$as_echo "no" >&6; }
18526
18527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18528        _pkg_short_errors_supported=yes
18529else
18530        _pkg_short_errors_supported=no
18531fi
18532        if test $_pkg_short_errors_supported = yes; then
18533	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18534        else
18535	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
18536        fi
18537	# Put the nasty error message in config.log where it belongs
18538	echo "$JSON_C_PKG_ERRORS" >&5
18539
18540	as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
18541
18542$JSON_C_PKG_ERRORS
18543
18544Consider adjusting the PKG_CONFIG_PATH environment variable if you
18545installed software in a non-standard prefix.
18546
18547Alternatively, you may set the environment variables JSON_C_CFLAGS
18548and JSON_C_LIBS to avoid the need to call pkg-config.
18549See the pkg-config man page for more details." "$LINENO" 5
18550elif test $pkg_failed = untried; then
18551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18552$as_echo "no" >&6; }
18553	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18555as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18556is in your PATH or set the PKG_CONFIG environment variable to the full
18557path to pkg-config.
18558
18559Alternatively, you may set the environment variables JSON_C_CFLAGS
18560and JSON_C_LIBS to avoid the need to call pkg-config.
18561See the pkg-config man page for more details.
18562
18563To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18564See \`config.log' for more details" "$LINENO" 5; }
18565else
18566	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18567	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18569$as_echo "yes" >&6; }
18570
18571$as_echo "#define HAVE_JSON_C 1" >>confdefs.h
18572
18573fi ;; #(
18574  *) :
18575    as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
18576        ;;
18577esac
18578
18579
18580
18581
18582# [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
18583
18584# Check whether --with-zlib was given.
18585if test "${with_zlib+set}" = set; then :
18586  withval=$with_zlib;
18587else
18588  with_zlib="auto"
18589fi
18590
18591
18592case $with_zlib in #(
18593  no) :
18594     ;; #(
18595  auto) :
18596
18597pkg_failed=no
18598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
18599$as_echo_n "checking for zlib... " >&6; }
18600
18601if test -n "$ZLIB_CFLAGS"; then
18602    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18603 elif test -n "$PKG_CONFIG"; then
18604    if test -n "$PKG_CONFIG" && \
18605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18606  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18607  ac_status=$?
18608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609  test $ac_status = 0; }; then
18610  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18611		      test "x$?" != "x0" && pkg_failed=yes
18612else
18613  pkg_failed=yes
18614fi
18615 else
18616    pkg_failed=untried
18617fi
18618if test -n "$ZLIB_LIBS"; then
18619    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18620 elif test -n "$PKG_CONFIG"; then
18621    if test -n "$PKG_CONFIG" && \
18622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18623  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18624  ac_status=$?
18625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18626  test $ac_status = 0; }; then
18627  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18628		      test "x$?" != "x0" && pkg_failed=yes
18629else
18630  pkg_failed=yes
18631fi
18632 else
18633    pkg_failed=untried
18634fi
18635
18636
18637
18638if test $pkg_failed = yes; then
18639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18640$as_echo "no" >&6; }
18641
18642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18643        _pkg_short_errors_supported=yes
18644else
18645        _pkg_short_errors_supported=no
18646fi
18647        if test $_pkg_short_errors_supported = yes; then
18648	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18649        else
18650	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18651        fi
18652	# Put the nasty error message in config.log where it belongs
18653	echo "$ZLIB_PKG_ERRORS" >&5
18654
18655	:
18656elif test $pkg_failed = untried; then
18657        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18658$as_echo "no" >&6; }
18659	:
18660else
18661	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18662	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18664$as_echo "yes" >&6; }
18665
18666$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18667
18668fi ;; #(
18669  yes) :
18670
18671pkg_failed=no
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
18673$as_echo_n "checking for zlib... " >&6; }
18674
18675if test -n "$ZLIB_CFLAGS"; then
18676    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18677 elif test -n "$PKG_CONFIG"; then
18678    if test -n "$PKG_CONFIG" && \
18679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18680  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18681  ac_status=$?
18682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683  test $ac_status = 0; }; then
18684  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18685		      test "x$?" != "x0" && pkg_failed=yes
18686else
18687  pkg_failed=yes
18688fi
18689 else
18690    pkg_failed=untried
18691fi
18692if test -n "$ZLIB_LIBS"; then
18693    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18694 elif test -n "$PKG_CONFIG"; then
18695    if test -n "$PKG_CONFIG" && \
18696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18697  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18698  ac_status=$?
18699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18700  test $ac_status = 0; }; then
18701  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18702		      test "x$?" != "x0" && pkg_failed=yes
18703else
18704  pkg_failed=yes
18705fi
18706 else
18707    pkg_failed=untried
18708fi
18709
18710
18711
18712if test $pkg_failed = yes; then
18713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714$as_echo "no" >&6; }
18715
18716if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18717        _pkg_short_errors_supported=yes
18718else
18719        _pkg_short_errors_supported=no
18720fi
18721        if test $_pkg_short_errors_supported = yes; then
18722	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18723        else
18724	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18725        fi
18726	# Put the nasty error message in config.log where it belongs
18727	echo "$ZLIB_PKG_ERRORS" >&5
18728
18729	as_fn_error $? "Package requirements (zlib) were not met:
18730
18731$ZLIB_PKG_ERRORS
18732
18733Consider adjusting the PKG_CONFIG_PATH environment variable if you
18734installed software in a non-standard prefix.
18735
18736Alternatively, you may set the environment variables ZLIB_CFLAGS
18737and ZLIB_LIBS to avoid the need to call pkg-config.
18738See the pkg-config man page for more details." "$LINENO" 5
18739elif test $pkg_failed = untried; then
18740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741$as_echo "no" >&6; }
18742	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18743$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18744as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18745is in your PATH or set the PKG_CONFIG environment variable to the full
18746path to pkg-config.
18747
18748Alternatively, you may set the environment variables ZLIB_CFLAGS
18749and ZLIB_LIBS to avoid the need to call pkg-config.
18750See the pkg-config man page for more details.
18751
18752To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18753See \`config.log' for more details" "$LINENO" 5; }
18754else
18755	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18756	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18757        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18758$as_echo "yes" >&6; }
18759
18760$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18761
18762fi ;; #(
18763  *) :
18764    as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
18765esac
18766
18767
18768
18769#
18770# In solaris 10, SMF can manage named service
18771#
18772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
18773$as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
18774if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
18775  $as_echo_n "(cached) " >&6
18776else
18777  ac_check_lib_save_LIBS=$LIBS
18778LIBS="-lscf  $LIBS"
18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780/* end confdefs.h.  */
18781
18782/* Override any GCC internal prototype to avoid an error.
18783   Use char because int might match the return type of a GCC
18784   builtin and then its argument prototype would still apply.  */
18785#ifdef __cplusplus
18786extern "C"
18787#endif
18788char smf_enable_instance ();
18789int
18790main ()
18791{
18792return smf_enable_instance ();
18793  ;
18794  return 0;
18795}
18796_ACEOF
18797if ac_fn_c_try_link "$LINENO"; then :
18798  ac_cv_lib_scf_smf_enable_instance=yes
18799else
18800  ac_cv_lib_scf_smf_enable_instance=no
18801fi
18802rm -f core conftest.err conftest.$ac_objext \
18803    conftest$ac_exeext conftest.$ac_ext
18804LIBS=$ac_check_lib_save_LIBS
18805fi
18806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
18807$as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
18808if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
18809  cat >>confdefs.h <<_ACEOF
18810#define HAVE_LIBSCF 1
18811_ACEOF
18812
18813  LIBS="-lscf $LIBS"
18814
18815fi
18816
18817
18818#
18819# Additional compiler settings.
18820#
18821MKDEPCC="$CC"
18822
18823MKDEPCFLAGS="-M"
18824case $host in #(
18825  *-solaris*) :
18826
18827	    if test "$GCC" != "yes"; then :
18828  MKDEPCFLAGS="-xM"
18829fi ;; #(
18830  *) :
18831     ;;
18832esac
18833
18834if test "$GCC" = "yes"; then :
18835  STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
18836
18837fi
18838
18839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
18840$as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
18841if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
18842  $as_echo_n "(cached) " >&6
18843else
18844
18845  ax_check_save_flags=$CFLAGS
18846  CFLAGS="$CFLAGS  -fno-strict-aliasing"
18847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848/* end confdefs.h.  */
18849
18850int
18851main ()
18852{
18853
18854  ;
18855  return 0;
18856}
18857_ACEOF
18858if ac_fn_c_try_compile "$LINENO"; then :
18859  ax_cv_check_cflags___fno_strict_aliasing=yes
18860else
18861  ax_cv_check_cflags___fno_strict_aliasing=no
18862fi
18863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864  CFLAGS=$ax_check_save_flags
18865fi
18866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
18867$as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
18868if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
18869  STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
18870else
18871  :
18872fi
18873
18874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
18875$as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
18876if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
18877  $as_echo_n "(cached) " >&6
18878else
18879
18880  ax_check_save_flags=$CFLAGS
18881  CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
18882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883/* end confdefs.h.  */
18884
18885int
18886main ()
18887{
18888
18889  ;
18890  return 0;
18891}
18892_ACEOF
18893if ac_fn_c_try_compile "$LINENO"; then :
18894  ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
18895else
18896  ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
18897fi
18898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18899  CFLAGS=$ax_check_save_flags
18900fi
18901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
18902$as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
18903if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
18904  STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
18905else
18906  :
18907fi
18908
18909if test "$enable_warn_shadow" = "yes"; then :
18910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
18911$as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
18912if ${ax_cv_check_cflags___Wshadow+:} false; then :
18913  $as_echo_n "(cached) " >&6
18914else
18915
18916  ax_check_save_flags=$CFLAGS
18917  CFLAGS="$CFLAGS  -Wshadow"
18918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18919/* end confdefs.h.  */
18920
18921int
18922main ()
18923{
18924
18925  ;
18926  return 0;
18927}
18928_ACEOF
18929if ac_fn_c_try_compile "$LINENO"; then :
18930  ax_cv_check_cflags___Wshadow=yes
18931else
18932  ax_cv_check_cflags___Wshadow=no
18933fi
18934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935  CFLAGS=$ax_check_save_flags
18936fi
18937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
18938$as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
18939if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
18940  STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
18941else
18942  :
18943fi
18944
18945fi
18946if test "$enable_warn_error" = "yes"; then :
18947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
18948$as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
18949if ${ax_cv_check_cflags___Werror+:} false; then :
18950  $as_echo_n "(cached) " >&6
18951else
18952
18953  ax_check_save_flags=$CFLAGS
18954  CFLAGS="$CFLAGS  -Werror"
18955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956/* end confdefs.h.  */
18957
18958int
18959main ()
18960{
18961
18962  ;
18963  return 0;
18964}
18965_ACEOF
18966if ac_fn_c_try_compile "$LINENO"; then :
18967  ax_cv_check_cflags___Werror=yes
18968else
18969  ax_cv_check_cflags___Werror=no
18970fi
18971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18972  CFLAGS=$ax_check_save_flags
18973fi
18974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
18975$as_echo "$ax_cv_check_cflags___Werror" >&6; }
18976if test "x$ax_cv_check_cflags___Werror" = xyes; then :
18977  STD_CWARNINGS="$STD_CWARNINGS -Werror"
18978else
18979  :
18980fi
18981
18982fi
18983
18984
18985
18986
18987
18988#
18989# -lxnet buys us one big porting headache...  standards, gotta love 'em.
18990#
18991# AC_CHECK_LIB(xnet, socket, ,
18992#    AC_CHECK_LIB(socket, socket)
18993# )
18994#
18995# Use this for now, instead:
18996#
18997case "$host" in
18998	*-linux*)
18999		;;
19000	*)
19001		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
19002$as_echo_n "checking for socket in -lsocket... " >&6; }
19003if ${ac_cv_lib_socket_socket+:} false; then :
19004  $as_echo_n "(cached) " >&6
19005else
19006  ac_check_lib_save_LIBS=$LIBS
19007LIBS="-lsocket  $LIBS"
19008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009/* end confdefs.h.  */
19010
19011/* Override any GCC internal prototype to avoid an error.
19012   Use char because int might match the return type of a GCC
19013   builtin and then its argument prototype would still apply.  */
19014#ifdef __cplusplus
19015extern "C"
19016#endif
19017char socket ();
19018int
19019main ()
19020{
19021return socket ();
19022  ;
19023  return 0;
19024}
19025_ACEOF
19026if ac_fn_c_try_link "$LINENO"; then :
19027  ac_cv_lib_socket_socket=yes
19028else
19029  ac_cv_lib_socket_socket=no
19030fi
19031rm -f core conftest.err conftest.$ac_objext \
19032    conftest$ac_exeext conftest.$ac_ext
19033LIBS=$ac_check_lib_save_LIBS
19034fi
19035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
19036$as_echo "$ac_cv_lib_socket_socket" >&6; }
19037if test "x$ac_cv_lib_socket_socket" = xyes; then :
19038  cat >>confdefs.h <<_ACEOF
19039#define HAVE_LIBSOCKET 1
19040_ACEOF
19041
19042  LIBS="-lsocket $LIBS"
19043
19044fi
19045
19046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
19047$as_echo_n "checking for inet_addr in -lnsl... " >&6; }
19048if ${ac_cv_lib_nsl_inet_addr+:} false; then :
19049  $as_echo_n "(cached) " >&6
19050else
19051  ac_check_lib_save_LIBS=$LIBS
19052LIBS="-lnsl  $LIBS"
19053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054/* end confdefs.h.  */
19055
19056/* Override any GCC internal prototype to avoid an error.
19057   Use char because int might match the return type of a GCC
19058   builtin and then its argument prototype would still apply.  */
19059#ifdef __cplusplus
19060extern "C"
19061#endif
19062char inet_addr ();
19063int
19064main ()
19065{
19066return inet_addr ();
19067  ;
19068  return 0;
19069}
19070_ACEOF
19071if ac_fn_c_try_link "$LINENO"; then :
19072  ac_cv_lib_nsl_inet_addr=yes
19073else
19074  ac_cv_lib_nsl_inet_addr=no
19075fi
19076rm -f core conftest.err conftest.$ac_objext \
19077    conftest$ac_exeext conftest.$ac_ext
19078LIBS=$ac_check_lib_save_LIBS
19079fi
19080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
19081$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
19082if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
19083  cat >>confdefs.h <<_ACEOF
19084#define HAVE_LIBNSL 1
19085_ACEOF
19086
19087  LIBS="-lnsl $LIBS"
19088
19089fi
19090
19091		;;
19092esac
19093
19094#
19095# Work around Solaris's select() limitations.
19096#
19097case "$host" in
19098	*-solaris2.[89]|*-solaris2.1?)
19099
19100$as_echo "#define FD_SETSIZE 65536" >>confdefs.h
19101
19102	;;
19103esac
19104
19105#
19106# Purify support
19107#
19108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
19109$as_echo_n "checking whether to use purify... " >&6; }
19110
19111# Purify is not included in pairwise testing as that tool is not present
19112# in the relevant Docker image.
19113#
19114# [pairwise: skip]
19115
19116# Check whether --with-purify was given.
19117if test "${with_purify+set}" = set; then :
19118  withval=$with_purify; use_purify="$withval"
19119else
19120  use_purify="no"
19121fi
19122
19123
19124case "$use_purify" in
19125	no)
19126		;;
19127	yes)
19128		# Extract the first word of "purify", so it can be a program name with args.
19129set dummy purify; ac_word=$2
19130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19131$as_echo_n "checking for $ac_word... " >&6; }
19132if ${ac_cv_path_purify_path+:} false; then :
19133  $as_echo_n "(cached) " >&6
19134else
19135  case $purify_path in
19136  [\\/]* | ?:[\\/]*)
19137  ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
19138  ;;
19139  *)
19140  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19141for as_dir in $PATH
19142do
19143  IFS=$as_save_IFS
19144  test -z "$as_dir" && as_dir=.
19145    for ac_exec_ext in '' $ac_executable_extensions; do
19146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19147    ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
19148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19149    break 2
19150  fi
19151done
19152  done
19153IFS=$as_save_IFS
19154
19155  test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
19156  ;;
19157esac
19158fi
19159purify_path=$ac_cv_path_purify_path
19160if test -n "$purify_path"; then
19161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
19162$as_echo "$purify_path" >&6; }
19163else
19164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165$as_echo "no" >&6; }
19166fi
19167
19168
19169		;;
19170	*)
19171		purify_path="$use_purify"
19172		;;
19173esac
19174
19175case "$use_purify" in
19176	no)
19177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178$as_echo "no" >&6; }
19179		PURIFY=""
19180		;;
19181	*)
19182		if test -f "$purify_path" || test purify = "$purify_path"; then
19183			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
19184$as_echo "$purify_path" >&6; }
19185			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
19186			PURIFY="$purify_path $PURIFYFLAGS"
19187		else
19188			as_fn_error $? "$purify_path not found.
19189
19190Please choose the proper path with the following command:
19191
19192    configure --with-purify=PATH
19193" "$LINENO" 5
19194		fi
19195		;;
19196esac
19197
19198
19199
19200#
19201# Google/Great Performance Tools CPU Profiler
19202#
19203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
19204$as_echo_n "checking whether to use gperftools profiler... " >&6; }
19205
19206# Google/Great Performance Tools CPU Profiler is not included in
19207# pairwise testing as that tool is not present in the relevant Docker
19208# image.
19209#
19210# [pairwise: skip]
19211
19212# Check whether --with-gperftools-profiler was given.
19213if test "${with_gperftools_profiler+set}" = set; then :
19214  withval=$with_gperftools_profiler; use_profiler="$withval"
19215else
19216  use_profiler="no"
19217fi
19218
19219
19220case $use_profiler in
19221	yes)
19222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223$as_echo "yes" >&6; }
19224
19225$as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
19226
19227		LIBS="$LIBS -lprofiler"
19228		;;
19229	*)
19230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231$as_echo "no" >&6; }
19232		;;
19233esac
19234
19235#
19236# enable/disable dumping stack backtrace.  Also check if the system supports
19237# glibc-compatible backtrace() function.
19238#
19239# [pairwise: --enable-backtrace, --disable-backtrace]
19240# Check whether --enable-backtrace was given.
19241if test "${enable_backtrace+set}" = set; then :
19242  enableval=$enable_backtrace;
19243else
19244  enable_backtrace="yes"
19245fi
19246
19247
19248if test "$enable_backtrace" = "yes"; then :
19249
19250$as_echo "#define USE_BACKTRACE 1" >>confdefs.h
19251
19252       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
19253$as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
19254if ${ac_cv_lib_execinfo_backtrace+:} false; then :
19255  $as_echo_n "(cached) " >&6
19256else
19257  ac_check_lib_save_LIBS=$LIBS
19258LIBS="-lexecinfo  $LIBS"
19259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260/* end confdefs.h.  */
19261
19262/* Override any GCC internal prototype to avoid an error.
19263   Use char because int might match the return type of a GCC
19264   builtin and then its argument prototype would still apply.  */
19265#ifdef __cplusplus
19266extern "C"
19267#endif
19268char backtrace ();
19269int
19270main ()
19271{
19272return backtrace ();
19273  ;
19274  return 0;
19275}
19276_ACEOF
19277if ac_fn_c_try_link "$LINENO"; then :
19278  ac_cv_lib_execinfo_backtrace=yes
19279else
19280  ac_cv_lib_execinfo_backtrace=no
19281fi
19282rm -f core conftest.err conftest.$ac_objext \
19283    conftest$ac_exeext conftest.$ac_ext
19284LIBS=$ac_check_lib_save_LIBS
19285fi
19286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
19287$as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
19288if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
19289  EXILIBS=-lexecinfo
19290else
19291  EXILIBS=
19292fi
19293
19294       LIBS="$LIBS $EXILIBS"
19295       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296/* end confdefs.h.  */
19297#include <execinfo.h>
19298int
19299main ()
19300{
19301return (backtrace((void **)0, 0));
19302
19303  ;
19304  return 0;
19305}
19306_ACEOF
19307if ac_fn_c_try_link "$LINENO"; then :
19308
19309$as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
19310
19311else
19312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313/* end confdefs.h.  */
19314#include <stddef.h>
19315int
19316main ()
19317{
19318return _Unwind_Backtrace(NULL, NULL);
19319
19320  ;
19321  return 0;
19322}
19323_ACEOF
19324if ac_fn_c_try_link "$LINENO"; then :
19325
19326$as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
19327
19328
19329fi
19330rm -f core conftest.err conftest.$ac_objext \
19331    conftest$ac_exeext conftest.$ac_ext
19332
19333fi
19334rm -f core conftest.err conftest.$ac_objext \
19335    conftest$ac_exeext conftest.$ac_ext
19336fi
19337
19338# [pairwise: --enable-symtable, --disable-symtable]
19339# Check whether --enable-symtable was given.
19340if test "${enable_symtable+set}" = set; then :
19341  enableval=$enable_symtable; want_symtable="$enableval"
19342else
19343  want_symtable="minimal"
19344fi
19345
19346case $want_symtable in
19347yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
19348	if test "" = "$PERL"
19349	then
19350		as_fn_error $? "Internal symbol table requires perl but no perl is found.
19351Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
19352	fi
19353	if test "yes" = "$use_libtool"; then
19354		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
19355$as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
19356	else
19357		# we generate the internal symbol table only for those systems
19358		# known to work to avoid unexpected build failure.  Also, warn
19359		# about unsupported systems when the feature is enabled
19360		#  manually.
19361		case $host_os in
19362		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
19363			MKSYMTBL_PROGRAM="$PERL"
19364			if test "all" = "$want_symtable"; then
19365				ALWAYS_MAKE_SYMTABLE="yes"
19366			fi
19367			;;
19368		*)
19369			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
19370			then
19371				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
19372$as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
19373			fi
19374		esac
19375	fi
19376	;;
19377*)
19378	;;
19379esac
19380
19381
19382
19383#
19384# File name extension for static archive files, for those few places
19385# where they are treated differently from dynamic ones.
19386#
19387SA=a
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398BIND9_CO_RULE=".c.$O:"
19399
19400
19401#
19402# Here begins a very long section to determine the system's networking
19403# capabilities.  The order of the tests is significant.
19404#
19405
19406#
19407# We do the IPv6 compilation checking after libtool so that we can put
19408# the right suffix on the files.
19409#
19410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
19411$as_echo_n "checking for IPv6 structures... " >&6; }
19412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413/* end confdefs.h.  */
19414
19415       #include <sys/types.h>
19416       #include <sys/socket.h>
19417       #include <netinet/in.h>
19418
19419int
19420main ()
19421{
19422
19423       struct sockaddr_in6 sin6;
19424       struct in6_addr in6;
19425       struct in6_pktinfo in6_pi;
19426       struct sockaddr_storage storage;
19427       in6 = in6addr_any;
19428       in6 = in6addr_loopback;
19429       sin6.sin6_scope_id = 0;
19430       return (0);
19431
19432  ;
19433  return 0;
19434}
19435_ACEOF
19436if ac_fn_c_try_compile "$LINENO"; then :
19437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19438$as_echo "yes" >&6; }
19439else
19440  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19442as_fn_error $? "IPv6 support is mandatory
19443See \`config.log' for more details" "$LINENO" 5; }
19444fi
19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446
19447#
19448# Allow forcibly disabling TCP Fast Open support as autodetection might yield
19449# confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
19450# comment in lib/isc/unix/socket.c).
19451#
19452# [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
19453# Check whether --enable-tcp_fastopen was given.
19454if test "${enable_tcp_fastopen+set}" = set; then :
19455  enableval=$enable_tcp_fastopen;
19456else
19457  enable_tcp_fastopen="yes"
19458fi
19459
19460
19461if test "$enable_tcp_fastopen" = "yes"; then :
19462
19463$as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
19464
19465fi
19466
19467#
19468# Check for some other useful functions that are not ever-present.
19469#
19470for ac_func in strlcpy strlcat
19471do :
19472  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19473ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19474if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19475  cat >>confdefs.h <<_ACEOF
19476#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19477_ACEOF
19478
19479fi
19480done
19481
19482
19483
19484
19485# [pairwise: --with-readline=auto, --with-readline=yes, --without-readline]
19486
19487# Check whether --with-readline was given.
19488if test "${with_readline+set}" = set; then :
19489  withval=$with_readline; use_readline="$withval"
19490else
19491  use_readline="auto"
19492fi
19493
19494case "$use_readline" in
19495no)	;;
19496*)
19497	saved_LIBS="$LIBS"
19498	case "$use_readline" in
19499	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
19500	*) try_readline="$use_readline"
19501	esac
19502	for readline in "$try_readline" $or_readline
19503	do
19504		LIBS="$readline"
19505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
19506$as_echo "$as_me: checking for readline with $readline" >&6;}
19507		for ac_func in readline
19508do :
19509  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19510if test "x$ac_cv_func_readline" = xyes; then :
19511  cat >>confdefs.h <<_ACEOF
19512#define HAVE_READLINE 1
19513_ACEOF
19514
19515fi
19516done
19517
19518		if test "yes" = "$ac_cv_func_readline"
19519		then
19520			READLINE_LIB="$readline"
19521			break
19522		fi
19523		for lib in -lterminfo -ltermcap -lncurses -lcurses
19524		do
19525			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
19526$as_echo "$as_me: checking for readline with $readline $lib" >&6;}
19527			unset ac_cv_func_readline
19528			LIBS="$readline $lib"
19529			for ac_func in readline
19530do :
19531  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
19532if test "x$ac_cv_func_readline" = xyes; then :
19533  cat >>confdefs.h <<_ACEOF
19534#define HAVE_READLINE 1
19535_ACEOF
19536
19537fi
19538done
19539
19540			if test "yes" = "$ac_cv_func_readline"
19541			then
19542				READLINE_LIB="$readline $lib"
19543				break
19544			fi
19545		done
19546		if test "yes" = "$ac_cv_func_readline"
19547		then
19548			break
19549		fi
19550	done
19551	if test "auto" != "$use_readline" &&
19552	   test "X$READLINE_LIB" = "X"
19553	then
19554		as_fn_error $? "The readline library was not found." "$LINENO" 5
19555	fi
19556	LIBS="$saved_LIBS"
19557	;;
19558esac
19559if test "yes" = "$ac_cv_func_readline"
19560then
19561	case "$READLINE_LIB" in
19562	*edit*)
19563		for ac_header in editline/readline.h
19564do :
19565  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
19566if test "x$ac_cv_header_editline_readline_h" = xyes; then :
19567  cat >>confdefs.h <<_ACEOF
19568#define HAVE_EDITLINE_READLINE_H 1
19569_ACEOF
19570
19571fi
19572
19573done
19574
19575		for ac_header in edit/readline/readline.h
19576do :
19577  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
19578if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
19579  cat >>confdefs.h <<_ACEOF
19580#define HAVE_EDIT_READLINE_READLINE_H 1
19581_ACEOF
19582
19583fi
19584
19585done
19586
19587		for ac_header in edit/readline/history.h
19588do :
19589  ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
19590if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
19591  cat >>confdefs.h <<_ACEOF
19592#define HAVE_EDIT_READLINE_HISTORY_H 1
19593_ACEOF
19594
19595fi
19596
19597done
19598
19599		;;
19600	esac
19601	for ac_header in readline/readline.h
19602do :
19603  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19604if test "x$ac_cv_header_readline_readline_h" = xyes; then :
19605  cat >>confdefs.h <<_ACEOF
19606#define HAVE_READLINE_READLINE_H 1
19607_ACEOF
19608
19609fi
19610
19611done
19612
19613	for ac_header in readline/history.h
19614do :
19615  ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19616if test "x$ac_cv_header_readline_history_h" = xyes; then :
19617  cat >>confdefs.h <<_ACEOF
19618#define HAVE_READLINE_HISTORY_H 1
19619_ACEOF
19620
19621fi
19622
19623done
19624
19625fi
19626
19627
19628
19629
19630#
19631# Security Stuff
19632#
19633# Note it is very recommended to *not* disable chroot(),
19634# this is only because chroot() was made obsolete by Posix.
19635#
19636# [pairwise: --enable-chroot, --disable-chroot]
19637# Check whether --enable-chroot was given.
19638if test "${enable_chroot+set}" = set; then :
19639  enableval=$enable_chroot;
19640fi
19641
19642case "$enable_chroot" in
19643	yes|'')
19644		for ac_func in chroot
19645do :
19646  ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
19647if test "x$ac_cv_func_chroot" = xyes; then :
19648  cat >>confdefs.h <<_ACEOF
19649#define HAVE_CHROOT 1
19650_ACEOF
19651
19652fi
19653done
19654
19655		;;
19656	no)
19657		;;
19658esac
19659
19660LIBCAP_LIBS=""
19661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
19662$as_echo_n "checking whether to enable Linux capabilities... " >&6; }
19663
19664# [pairwise: --enable-linux-caps, --disable-linux-caps]
19665# Check whether --enable-linux-caps was given.
19666if test "${enable_linux_caps+set}" = set; then :
19667  enableval=$enable_linux_caps;
19668else
19669  case $host in #(
19670  *-linux*) :
19671    enable_linux_caps=yes ;; #(
19672  *) :
19673    enable_linux_caps=no ;;
19674esac
19675fi
19676
19677
19678if test "$enable_linux_caps" = "yes"; then :
19679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19680$as_echo "yes" >&6; }
19681       for ac_header in sys/capability.h
19682do :
19683  ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
19684if test "x$ac_cv_header_sys_capability_h" = xyes; then :
19685  cat >>confdefs.h <<_ACEOF
19686#define HAVE_SYS_CAPABILITY_H 1
19687_ACEOF
19688
19689else
19690  as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
19691fi
19692
19693done
19694
19695
19696
19697  CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
19698
19699
19700
19701  CFLAGS_cap_ax_save_flags=$CFLAGS
19702
19703
19704
19705  CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
19706
19707
19708
19709  CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
19710
19711
19712
19713  ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
19714
19715
19716
19717  FCFLAGS_cap_ax_save_flags=$FCFLAGS
19718
19719
19720
19721  FCLIBS_cap_ax_save_flags=$FCLIBS
19722
19723
19724
19725  FFLAGS_cap_ax_save_flags=$FFLAGS
19726
19727
19728
19729  FLIBS_cap_ax_save_flags=$FLIBS
19730
19731
19732
19733  GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
19734
19735
19736
19737  JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
19738
19739
19740
19741  LDFLAGS_cap_ax_save_flags=$LDFLAGS
19742
19743
19744
19745  LIBS_cap_ax_save_flags=$LIBS
19746
19747
19748
19749  OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
19750
19751
19752
19753  OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
19754
19755
19756
19757  UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
19758
19759
19760
19761  VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
19762
19763
19764
19765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
19766$as_echo_n "checking for library containing cap_set_proc... " >&6; }
19767if ${ac_cv_search_cap_set_proc+:} false; then :
19768  $as_echo_n "(cached) " >&6
19769else
19770  ac_func_search_save_LIBS=$LIBS
19771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19772/* end confdefs.h.  */
19773
19774/* Override any GCC internal prototype to avoid an error.
19775   Use char because int might match the return type of a GCC
19776   builtin and then its argument prototype would still apply.  */
19777#ifdef __cplusplus
19778extern "C"
19779#endif
19780char cap_set_proc ();
19781int
19782main ()
19783{
19784return cap_set_proc ();
19785  ;
19786  return 0;
19787}
19788_ACEOF
19789for ac_lib in '' cap; do
19790  if test -z "$ac_lib"; then
19791    ac_res="none required"
19792  else
19793    ac_res=-l$ac_lib
19794    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19795  fi
19796  if ac_fn_c_try_link "$LINENO"; then :
19797  ac_cv_search_cap_set_proc=$ac_res
19798fi
19799rm -f core conftest.err conftest.$ac_objext \
19800    conftest$ac_exeext
19801  if ${ac_cv_search_cap_set_proc+:} false; then :
19802  break
19803fi
19804done
19805if ${ac_cv_search_cap_set_proc+:} false; then :
19806
19807else
19808  ac_cv_search_cap_set_proc=no
19809fi
19810rm conftest.$ac_ext
19811LIBS=$ac_func_search_save_LIBS
19812fi
19813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
19814$as_echo "$ac_cv_search_cap_set_proc" >&6; }
19815ac_res=$ac_cv_search_cap_set_proc
19816if test "$ac_res" != no; then :
19817  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19818  LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
19819else
19820  as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
19821fi
19822
19823
19824  CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
19825
19826
19827  CFLAGS=$CFLAGS_cap_ax_save_flags
19828
19829
19830  CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
19831
19832
19833  CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
19834
19835
19836  ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
19837
19838
19839  FCFLAGS=$FCFLAGS_cap_ax_save_flags
19840
19841
19842  FCLIBS=$FCLIBS_cap_ax_save_flags
19843
19844
19845  FFLAGS=$FFLAGS_cap_ax_save_flags
19846
19847
19848  FLIBS=$FLIBS_cap_ax_save_flags
19849
19850
19851  GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
19852
19853
19854  JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
19855
19856
19857  LDFLAGS=$LDFLAGS_cap_ax_save_flags
19858
19859
19860  LIBS=$LIBS_cap_ax_save_flags
19861
19862
19863  OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
19864
19865
19866  OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
19867
19868
19869  UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
19870
19871
19872  VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
19873
19874
19875
19876else
19877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19878$as_echo "no" >&6; }
19879fi
19880
19881
19882for ac_header in sys/un.h
19883do :
19884  ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
19885if test "x$ac_cv_header_sys_un_h" = xyes; then :
19886  cat >>confdefs.h <<_ACEOF
19887#define HAVE_SYS_UN_H 1
19888_ACEOF
19889 ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
19890
19891else
19892  ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
19893
19894fi
19895
19896done
19897
19898
19899
19900case "$host" in
19901*-solaris*)
19902
19903$as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
19904
19905	;;
19906esac
19907
19908#
19909# Time Zone Stuff
19910#
19911for ac_func in tzset
19912do :
19913  ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
19914if test "x$ac_cv_func_tzset" = xyes; then :
19915  cat >>confdefs.h <<_ACEOF
19916#define HAVE_TZSET 1
19917_ACEOF
19918
19919fi
19920done
19921
19922
19923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
19924$as_echo_n "checking for optarg declaration... " >&6; }
19925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926/* end confdefs.h.  */
19927
19928#include <unistd.h>
19929
19930int
19931main ()
19932{
19933optarg = 0;
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_compile "$LINENO"; then :
19939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19940$as_echo "yes" >&6; }
19941else
19942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943$as_echo "no" >&6; }
19944GEN_NEED_OPTARG="-DNEED_OPTARG=1"
19945
19946$as_echo "#define NEED_OPTARG 1" >>confdefs.h
19947
19948fi
19949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950
19951#
19952# Check for nanoseconds in file stats
19953#
19954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
19955$as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
19956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957/* end confdefs.h.  */
19958#include <sys/fcntl.h>
19959int
19960main ()
19961{
19962struct stat s;
19963       return(s.st_mtim.tv_nsec);
19964
19965  ;
19966  return 0;
19967}
19968_ACEOF
19969if ac_fn_c_try_compile "$LINENO"; then :
19970
19971$as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
19972
19973fi
19974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19975
19976#
19977# Check for if_nametoindex() for IPv6 scoped addresses support
19978#
19979for ac_func in if_nametoindex
19980do :
19981  ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
19982if test "x$ac_cv_func_if_nametoindex" = xyes; then :
19983  cat >>confdefs.h <<_ACEOF
19984#define HAVE_IF_NAMETOINDEX 1
19985_ACEOF
19986
19987fi
19988done
19989
19990
19991ISC_ATOMIC_LIBS=""
19992for ac_header in stdatomic.h
19993do :
19994  ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
19995if test "x$ac_cv_header_stdatomic_h" = xyes; then :
19996  cat >>confdefs.h <<_ACEOF
19997#define HAVE_STDATOMIC_H 1
19998_ACEOF
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
20000$as_echo_n "checking for memory model aware atomic operations... " >&6; }
20001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002/* end confdefs.h.  */
20003#include <stdatomic.h>
20004int
20005main ()
20006{
20007atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20008
20009  ;
20010  return 0;
20011}
20012_ACEOF
20013if ac_fn_c_try_compile "$LINENO"; then :
20014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
20015$as_echo "stdatomic.h" >&6; }
20016      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
20017$as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
20018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019/* end confdefs.h.  */
20020#include <stdatomic.h>
20021int
20022main ()
20023{
20024atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20025
20026  ;
20027  return 0;
20028}
20029_ACEOF
20030if ac_fn_c_try_link "$LINENO"; then :
20031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20032$as_echo "no" >&6; }
20033else
20034  ISC_ATOMIC_LIBS="-latomic"
20035
20036
20037  CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
20038
20039
20040
20041  CFLAGS_atomic_ax_save_flags=$CFLAGS
20042
20043
20044
20045  CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
20046
20047
20048
20049  CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
20050
20051
20052
20053  ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
20054
20055
20056
20057  FCFLAGS_atomic_ax_save_flags=$FCFLAGS
20058
20059
20060
20061  FCLIBS_atomic_ax_save_flags=$FCLIBS
20062
20063
20064
20065  FFLAGS_atomic_ax_save_flags=$FFLAGS
20066
20067
20068
20069  FLIBS_atomic_ax_save_flags=$FLIBS
20070
20071
20072
20073  GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
20074
20075
20076
20077  JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
20078
20079
20080
20081  LDFLAGS_atomic_ax_save_flags=$LDFLAGS
20082
20083
20084
20085  LIBS_atomic_ax_save_flags=$LIBS
20086
20087
20088
20089  OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
20090
20091
20092
20093  OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
20094
20095
20096
20097  UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
20098
20099
20100
20101  VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
20102
20103
20104
20105	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107/* end confdefs.h.  */
20108#include <stdatomic.h>
20109int
20110main ()
20111{
20112atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
20113
20114  ;
20115  return 0;
20116}
20117_ACEOF
20118if ac_fn_c_try_link "$LINENO"; then :
20119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20120$as_echo "yes" >&6; }
20121else
20122  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20124as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
20125See \`config.log' for more details" "$LINENO" 5; }
20126fi
20127rm -f core conftest.err conftest.$ac_objext \
20128    conftest$ac_exeext conftest.$ac_ext
20129
20130  CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
20131
20132
20133  CFLAGS=$CFLAGS_atomic_ax_save_flags
20134
20135
20136  CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
20137
20138
20139  CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
20140
20141
20142  ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
20143
20144
20145  FCFLAGS=$FCFLAGS_atomic_ax_save_flags
20146
20147
20148  FCLIBS=$FCLIBS_atomic_ax_save_flags
20149
20150
20151  FFLAGS=$FFLAGS_atomic_ax_save_flags
20152
20153
20154  FLIBS=$FLIBS_atomic_ax_save_flags
20155
20156
20157  GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
20158
20159
20160  JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
20161
20162
20163  LDFLAGS=$LDFLAGS_atomic_ax_save_flags
20164
20165
20166  LIBS=$LIBS_atomic_ax_save_flags
20167
20168
20169  OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
20170
20171
20172  OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
20173
20174
20175  UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
20176
20177
20178  VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
20179
20180
20181
20182
20183fi
20184rm -f core conftest.err conftest.$ac_objext \
20185    conftest$ac_exeext conftest.$ac_ext
20186
20187else
20188  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20190as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
20191See \`config.log' for more details" "$LINENO" 5; }
20192
20193fi
20194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195else
20196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
20197$as_echo_n "checking for memory model aware atomic operations... " >&6; }
20198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20199/* end confdefs.h.  */
20200#include <inttypes.h>
20201int
20202main ()
20203{
20204int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20205
20206  ;
20207  return 0;
20208}
20209_ACEOF
20210if ac_fn_c_try_compile "$LINENO"; then :
20211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
20212$as_echo "__atomic builtins" >&6; }
20213
20214$as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
20215
20216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
20217$as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
20218      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219/* end confdefs.h.  */
20220#include <inttypes.h>
20221int
20222main ()
20223{
20224int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20225
20226  ;
20227  return 0;
20228}
20229_ACEOF
20230if ac_fn_c_try_link "$LINENO"; then :
20231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20232$as_echo "no" >&6; }
20233else
20234  ISC_ATOMIC_LIBS="-latomic"
20235
20236
20237  CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
20238
20239
20240
20241  CFLAGS_atomic_ax_save_flags=$CFLAGS
20242
20243
20244
20245  CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
20246
20247
20248
20249  CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
20250
20251
20252
20253  ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
20254
20255
20256
20257  FCFLAGS_atomic_ax_save_flags=$FCFLAGS
20258
20259
20260
20261  FCLIBS_atomic_ax_save_flags=$FCLIBS
20262
20263
20264
20265  FFLAGS_atomic_ax_save_flags=$FFLAGS
20266
20267
20268
20269  FLIBS_atomic_ax_save_flags=$FLIBS
20270
20271
20272
20273  GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
20274
20275
20276
20277  JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
20278
20279
20280
20281  LDFLAGS_atomic_ax_save_flags=$LDFLAGS
20282
20283
20284
20285  LIBS_atomic_ax_save_flags=$LIBS
20286
20287
20288
20289  OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
20290
20291
20292
20293  OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
20294
20295
20296
20297  UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
20298
20299
20300
20301  VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
20302
20303
20304
20305	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
20306	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307/* end confdefs.h.  */
20308#include <inttypes.h>
20309int
20310main ()
20311{
20312int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
20313
20314  ;
20315  return 0;
20316}
20317_ACEOF
20318if ac_fn_c_try_link "$LINENO"; then :
20319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20320$as_echo "yes" >&6; }
20321else
20322  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20324as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
20325See \`config.log' for more details" "$LINENO" 5; }
20326fi
20327rm -f core conftest.err conftest.$ac_objext \
20328    conftest$ac_exeext conftest.$ac_ext
20329
20330  CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
20331
20332
20333  CFLAGS=$CFLAGS_atomic_ax_save_flags
20334
20335
20336  CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
20337
20338
20339  CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
20340
20341
20342  ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
20343
20344
20345  FCFLAGS=$FCFLAGS_atomic_ax_save_flags
20346
20347
20348  FCLIBS=$FCLIBS_atomic_ax_save_flags
20349
20350
20351  FFLAGS=$FFLAGS_atomic_ax_save_flags
20352
20353
20354  FLIBS=$FLIBS_atomic_ax_save_flags
20355
20356
20357  GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
20358
20359
20360  JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
20361
20362
20363  LDFLAGS=$LDFLAGS_atomic_ax_save_flags
20364
20365
20366  LIBS=$LIBS_atomic_ax_save_flags
20367
20368
20369  OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
20370
20371
20372  OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
20373
20374
20375  UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
20376
20377
20378  VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
20379
20380
20381
20382
20383fi
20384rm -f core conftest.err conftest.$ac_objext \
20385    conftest$ac_exeext conftest.$ac_ext
20386
20387else
20388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
20389$as_echo "__sync builtins" >&6; }
20390
20391fi
20392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393
20394fi
20395
20396done
20397
20398LIBS="$LIBS $ISC_ATOMIC_LIBS"
20399
20400for ac_header in stdalign.h
20401do :
20402  ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
20403if test "x$ac_cv_header_stdalign_h" = xyes; then :
20404  cat >>confdefs.h <<_ACEOF
20405#define HAVE_STDALIGN_H 1
20406_ACEOF
20407
20408fi
20409
20410done
20411
20412
20413for ac_header in uchar.h
20414do :
20415  ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
20416if test "x$ac_cv_header_uchar_h" = xyes; then :
20417  cat >>confdefs.h <<_ACEOF
20418#define HAVE_UCHAR_H 1
20419_ACEOF
20420
20421fi
20422
20423done
20424
20425
20426#
20427# Check for __builtin_unreachable
20428#
20429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
20430$as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
20431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432/* end confdefs.h.  */
20433
20434int
20435main ()
20436{
20437__builtin_unreachable();
20438
20439  ;
20440  return 0;
20441}
20442_ACEOF
20443if ac_fn_c_try_link "$LINENO"; then :
20444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20445$as_echo "yes" >&6; }
20446
20447$as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
20448
20449
20450else
20451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452$as_echo "no" >&6; }
20453
20454fi
20455rm -f core conftest.err conftest.$ac_objext \
20456    conftest$ac_exeext conftest.$ac_ext
20457
20458#
20459# Check for __builtin_expect
20460#
20461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
20462$as_echo_n "checking compiler support for __builtin_expect... " >&6; }
20463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464/* end confdefs.h.  */
20465
20466int
20467main ()
20468{
20469
20470	return (__builtin_expect(1, 1) ? 1 : 0);
20471
20472  ;
20473  return 0;
20474}
20475_ACEOF
20476if ac_fn_c_try_link "$LINENO"; then :
20477
20478	have_builtin_expect=yes
20479	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480$as_echo "yes" >&6; }
20481
20482else
20483
20484	have_builtin_expect=no
20485	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20486$as_echo "no" >&6; }
20487
20488fi
20489rm -f core conftest.err conftest.$ac_objext \
20490    conftest$ac_exeext conftest.$ac_ext
20491if test "yes" = "$have_builtin_expect"; then
20492
20493$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
20494
20495fi
20496
20497#
20498# Check for __builtin_clz
20499#
20500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
20501$as_echo_n "checking compiler support for __builtin_clz... " >&6; }
20502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503/* end confdefs.h.  */
20504
20505int
20506main ()
20507{
20508
20509	return (__builtin_clz(0xff) == 24 ? 1 : 0);
20510
20511  ;
20512  return 0;
20513}
20514_ACEOF
20515if ac_fn_c_try_link "$LINENO"; then :
20516
20517	have_builtin_clz=yes
20518	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20519$as_echo "yes" >&6; }
20520
20521else
20522
20523	have_builtin_clz=no
20524	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20525$as_echo "no" >&6; }
20526
20527fi
20528rm -f core conftest.err conftest.$ac_objext \
20529    conftest$ac_exeext conftest.$ac_ext
20530if test "yes" = "$have_builtin_clz"; then
20531
20532$as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
20533
20534fi
20535
20536#
20537# Activate "rrset-order fixed" or not?
20538#
20539# [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
20540# Check whether --enable-fixed-rrset was given.
20541if test "${enable_fixed_rrset+set}" = set; then :
20542  enableval=$enable_fixed_rrset; enable_fixed="$enableval"
20543else
20544  enable_fixed="no"
20545fi
20546
20547case "$enable_fixed" in
20548	yes)
20549
20550$as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
20551
20552		;;
20553	no)
20554		;;
20555	*)
20556		;;
20557esac
20558
20559#
20560# Activate dnstap?
20561#
20562# [pairwise: --enable-dnstap, --disable-dnstap]
20563# Check whether --enable-dnstap was given.
20564if test "${enable_dnstap+set}" = set; then :
20565  enableval=$enable_dnstap; use_dnstap=$enableval
20566else
20567  use_dnstap=no
20568fi
20569
20570
20571DNSTAP=
20572DNSTAPSRCS=
20573DNSTAPOBJS=
20574DNSTAPTARGETS=
20575if test "x$use_dnstap" != "xno"; then
20576
20577	# [pairwise: skip]
20578
20579# Check whether --with-protobuf-c was given.
20580if test "${with_protobuf_c+set}" = set; then :
20581  withval=$with_protobuf_c;
20582	    # workaround for protobuf-c includes at old dir
20583	    # before protobuf-c-1.0.0
20584	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
20585	    then
20586		PROTOBUF_C_CFLAGS="-I$withval/include/google"
20587	    else
20588		PROTOBUF_C_CFLAGS="-I$withval/include"
20589	    fi
20590	    PROTOBUF_C_LIBS="-L$withval/lib"
20591	    # Extract the first word of "protoc-c", so it can be a program name with args.
20592set dummy protoc-c; ac_word=$2
20593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20594$as_echo_n "checking for $ac_word... " >&6; }
20595if ${ac_cv_path_PROTOC_C+:} false; then :
20596  $as_echo_n "(cached) " >&6
20597else
20598  case $PROTOC_C in
20599  [\\/]* | ?:[\\/]*)
20600  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20601  ;;
20602  *)
20603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20604for as_dir in $PATH$PATH_SEPARATOR$withval/bin
20605do
20606  IFS=$as_save_IFS
20607  test -z "$as_dir" && as_dir=.
20608    for ac_exec_ext in '' $ac_executable_extensions; do
20609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20610    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20612    break 2
20613  fi
20614done
20615  done
20616IFS=$as_save_IFS
20617
20618  ;;
20619esac
20620fi
20621PROTOC_C=$ac_cv_path_PROTOC_C
20622if test -n "$PROTOC_C"; then
20623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20624$as_echo "$PROTOC_C" >&6; }
20625else
20626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20627$as_echo "no" >&6; }
20628fi
20629
20630
20631
20632else
20633
20634	    # workaround for protobuf-c includes at old dir
20635	    # before protobuf-c-1.0.0
20636	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
20637	    then
20638		PROTOBUF_C_CFLAGS="-I/usr/include/google"
20639	    else
20640		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
20641		then
20642		    PROTOBUF_C_CFLAGS="-I/usr/local/include/google"
20643		    PROTOBUF_C_LIBS="-L/usr/local/lib"
20644		elif test -f /opt/local/include/google/protobuf-c/protobuf-c.h
20645		then
20646		    PROTOBUF_C_CFLAGS="-I/opt/local/include/google"
20647		    PROTOBUF_C_LIBS="-L/opt/local/lib"
20648		fi
20649	    fi
20650	    # Extract the first word of "protoc-c", so it can be a program name with args.
20651set dummy protoc-c; ac_word=$2
20652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20653$as_echo_n "checking for $ac_word... " >&6; }
20654if ${ac_cv_path_PROTOC_C+:} false; then :
20655  $as_echo_n "(cached) " >&6
20656else
20657  case $PROTOC_C in
20658  [\\/]* | ?:[\\/]*)
20659  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20660  ;;
20661  *)
20662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20663for as_dir in $PATH
20664do
20665  IFS=$as_save_IFS
20666  test -z "$as_dir" && as_dir=.
20667    for ac_exec_ext in '' $ac_executable_extensions; do
20668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20669    ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20671    break 2
20672  fi
20673done
20674  done
20675IFS=$as_save_IFS
20676
20677  ;;
20678esac
20679fi
20680PROTOC_C=$ac_cv_path_PROTOC_C
20681if test -n "$PROTOC_C"; then
20682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20683$as_echo "$PROTOC_C" >&6; }
20684else
20685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20686$as_echo "no" >&6; }
20687fi
20688
20689
20690
20691fi
20692
20693	if test -z "$PROTOC_C"; then
20694		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
20695	fi
20696
20697	# [pairwise: skip]
20698
20699# Check whether --with-libfstrm was given.
20700if test "${with_libfstrm+set}" = set; then :
20701  withval=$with_libfstrm;
20702	    FSTRM_CFLAGS="-I$withval/include"
20703	    FSTRM_LIBS="-L$withval/lib"
20704	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
20705set dummy fstrm_capture; ac_word=$2
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20707$as_echo_n "checking for $ac_word... " >&6; }
20708if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20709  $as_echo_n "(cached) " >&6
20710else
20711  case $FSTRM_CAPTURE in
20712  [\\/]* | ?:[\\/]*)
20713  ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20714  ;;
20715  *)
20716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20717for as_dir in $PATH$PATH_SEPARATOR$withval/bin
20718do
20719  IFS=$as_save_IFS
20720  test -z "$as_dir" && as_dir=.
20721    for ac_exec_ext in '' $ac_executable_extensions; do
20722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723    ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20725    break 2
20726  fi
20727done
20728  done
20729IFS=$as_save_IFS
20730
20731  ;;
20732esac
20733fi
20734FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20735if test -n "$FSTRM_CAPTURE"; then
20736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20737$as_echo "$FSTRM_CAPTURE" >&6; }
20738else
20739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740$as_echo "no" >&6; }
20741fi
20742
20743
20744
20745else
20746
20747	    for d in /usr /usr/local /opt/local
20748	    do
20749		if test -f "${d}/include/fstrm.h"
20750		then
20751		    if test ${d} != /usr
20752		    then
20753			FSTRM_CFLAGS="-I${d}/include"
20754			FSTRM_LIBS="-L${d}/lib"
20755		    fi
20756		    have_fstrm="$d"
20757		    break
20758		fi
20759	    done
20760	    if test -z "$have_fstrm"; then
20761		# Extract the first word of "fstrm_capture", so it can be a program name with args.
20762set dummy fstrm_capture; ac_word=$2
20763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20764$as_echo_n "checking for $ac_word... " >&6; }
20765if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20766  $as_echo_n "(cached) " >&6
20767else
20768  case $FSTRM_CAPTURE in
20769  [\\/]* | ?:[\\/]*)
20770  ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20771  ;;
20772  *)
20773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774for as_dir in $PATH
20775do
20776  IFS=$as_save_IFS
20777  test -z "$as_dir" && as_dir=.
20778    for ac_exec_ext in '' $ac_executable_extensions; do
20779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20780    ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20782    break 2
20783  fi
20784done
20785  done
20786IFS=$as_save_IFS
20787
20788  ;;
20789esac
20790fi
20791FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20792if test -n "$FSTRM_CAPTURE"; then
20793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20794$as_echo "$FSTRM_CAPTURE" >&6; }
20795else
20796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20797$as_echo "no" >&6; }
20798fi
20799
20800
20801	    else
20802		# Extract the first word of "fstrm_capture", so it can be a program name with args.
20803set dummy fstrm_capture; ac_word=$2
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20805$as_echo_n "checking for $ac_word... " >&6; }
20806if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
20807  $as_echo_n "(cached) " >&6
20808else
20809  case $FSTRM_CAPTURE in
20810  [\\/]* | ?:[\\/]*)
20811  ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
20812  ;;
20813  *)
20814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20815for as_dir in $PATH$PATH_SEPARATOR$have_fstrm/bin
20816do
20817  IFS=$as_save_IFS
20818  test -z "$as_dir" && as_dir=.
20819    for ac_exec_ext in '' $ac_executable_extensions; do
20820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20821    ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
20822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20823    break 2
20824  fi
20825done
20826  done
20827IFS=$as_save_IFS
20828
20829  ;;
20830esac
20831fi
20832FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
20833if test -n "$FSTRM_CAPTURE"; then
20834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
20835$as_echo "$FSTRM_CAPTURE" >&6; }
20836else
20837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20838$as_echo "no" >&6; }
20839fi
20840
20841
20842	    fi
20843
20844fi
20845
20846
20847
20848  CCASFLAGS_dnstap_ax_save_flags=$CCASFLAGS
20849
20850
20851
20852  CFLAGS_dnstap_ax_save_flags=$CFLAGS
20853
20854
20855
20856  CPPFLAGS_dnstap_ax_save_flags=$CPPFLAGS
20857
20858
20859
20860  CXXFLAGS_dnstap_ax_save_flags=$CXXFLAGS
20861
20862
20863
20864  ERLCFLAGS_dnstap_ax_save_flags=$ERLCFLAGS
20865
20866
20867
20868  FCFLAGS_dnstap_ax_save_flags=$FCFLAGS
20869
20870
20871
20872  FCLIBS_dnstap_ax_save_flags=$FCLIBS
20873
20874
20875
20876  FFLAGS_dnstap_ax_save_flags=$FFLAGS
20877
20878
20879
20880  FLIBS_dnstap_ax_save_flags=$FLIBS
20881
20882
20883
20884  GCJFLAGS_dnstap_ax_save_flags=$GCJFLAGS
20885
20886
20887
20888  JAVACFLAGS_dnstap_ax_save_flags=$JAVACFLAGS
20889
20890
20891
20892  LDFLAGS_dnstap_ax_save_flags=$LDFLAGS
20893
20894
20895
20896  LIBS_dnstap_ax_save_flags=$LIBS
20897
20898
20899
20900  OBJCFLAGS_dnstap_ax_save_flags=$OBJCFLAGS
20901
20902
20903
20904  OBJCXXFLAGS_dnstap_ax_save_flags=$OBJCXXFLAGS
20905
20906
20907
20908  UPCFLAGS_dnstap_ax_save_flags=$UPCFLAGS
20909
20910
20911
20912  VALAFLAGS_dnstap_ax_save_flags=$VALAFLAGS
20913
20914
20915
20916	CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS $FSTRM_CFLAGS"
20917	LIBS="$LDFLAGS $PROTOBUF_C_LIBS $FSTRM_LIBS"
20918
20919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20920$as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20921if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20922  $as_echo_n "(cached) " >&6
20923else
20924  ac_func_search_save_LIBS=$LIBS
20925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926/* end confdefs.h.  */
20927
20928/* Override any GCC internal prototype to avoid an error.
20929   Use char because int might match the return type of a GCC
20930   builtin and then its argument prototype would still apply.  */
20931#ifdef __cplusplus
20932extern "C"
20933#endif
20934char fstrm_iothr_init ();
20935int
20936main ()
20937{
20938return fstrm_iothr_init ();
20939  ;
20940  return 0;
20941}
20942_ACEOF
20943for ac_lib in '' fstrm; do
20944  if test -z "$ac_lib"; then
20945    ac_res="none required"
20946  else
20947    ac_res=-l$ac_lib
20948    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20949  fi
20950  if ac_fn_c_try_link "$LINENO"; then :
20951  ac_cv_search_fstrm_iothr_init=$ac_res
20952fi
20953rm -f core conftest.err conftest.$ac_objext \
20954    conftest$ac_exeext
20955  if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20956  break
20957fi
20958done
20959if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20960
20961else
20962  ac_cv_search_fstrm_iothr_init=no
20963fi
20964rm conftest.$ac_ext
20965LIBS=$ac_func_search_save_LIBS
20966fi
20967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20968$as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20969ac_res=$ac_cv_search_fstrm_iothr_init
20970if test "$ac_res" != no; then :
20971  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20972
20973else
20974  as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20975fi
20976
20977	FSTRM_LIBS="$FSTRM_LIBS $ac_cv_search_fstrm_iothr_init"
20978
20979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20980$as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20981if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20982  $as_echo_n "(cached) " >&6
20983else
20984  ac_func_search_save_LIBS=$LIBS
20985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20986/* end confdefs.h.  */
20987
20988/* Override any GCC internal prototype to avoid an error.
20989   Use char because int might match the return type of a GCC
20990   builtin and then its argument prototype would still apply.  */
20991#ifdef __cplusplus
20992extern "C"
20993#endif
20994char protobuf_c_message_pack ();
20995int
20996main ()
20997{
20998return protobuf_c_message_pack ();
20999  ;
21000  return 0;
21001}
21002_ACEOF
21003for ac_lib in '' protobuf-c; do
21004  if test -z "$ac_lib"; then
21005    ac_res="none required"
21006  else
21007    ac_res=-l$ac_lib
21008    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21009  fi
21010  if ac_fn_c_try_link "$LINENO"; then :
21011  ac_cv_search_protobuf_c_message_pack=$ac_res
21012fi
21013rm -f core conftest.err conftest.$ac_objext \
21014    conftest$ac_exeext
21015  if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21016  break
21017fi
21018done
21019if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21020
21021else
21022  ac_cv_search_protobuf_c_message_pack=no
21023fi
21024rm conftest.$ac_ext
21025LIBS=$ac_func_search_save_LIBS
21026fi
21027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21028$as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21029ac_res=$ac_cv_search_protobuf_c_message_pack
21030if test "$ac_res" != no; then :
21031  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21032
21033else
21034  as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21035fi
21036
21037	PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS $ac_cv_search_protobuf_c_message_pack"
21038
21039
21040  CCASFLAGS=$CCASFLAGS_dnstap_ax_save_flags
21041
21042
21043  CFLAGS=$CFLAGS_dnstap_ax_save_flags
21044
21045
21046  CPPFLAGS=$CPPFLAGS_dnstap_ax_save_flags
21047
21048
21049  CXXFLAGS=$CXXFLAGS_dnstap_ax_save_flags
21050
21051
21052  ERLCFLAGS=$ERLCFLAGS_dnstap_ax_save_flags
21053
21054
21055  FCFLAGS=$FCFLAGS_dnstap_ax_save_flags
21056
21057
21058  FCLIBS=$FCLIBS_dnstap_ax_save_flags
21059
21060
21061  FFLAGS=$FFLAGS_dnstap_ax_save_flags
21062
21063
21064  FLIBS=$FLIBS_dnstap_ax_save_flags
21065
21066
21067  GCJFLAGS=$GCJFLAGS_dnstap_ax_save_flags
21068
21069
21070  JAVACFLAGS=$JAVACFLAGS_dnstap_ax_save_flags
21071
21072
21073  LDFLAGS=$LDFLAGS_dnstap_ax_save_flags
21074
21075
21076  LIBS=$LIBS_dnstap_ax_save_flags
21077
21078
21079  OBJCFLAGS=$OBJCFLAGS_dnstap_ax_save_flags
21080
21081
21082  OBJCXXFLAGS=$OBJCXXFLAGS_dnstap_ax_save_flags
21083
21084
21085  UPCFLAGS=$UPCFLAGS_dnstap_ax_save_flags
21086
21087
21088  VALAFLAGS=$VALAFLAGS_dnstap_ax_save_flags
21089
21090
21091
21092
21093$as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
21094
21095	DNSTAP=dnstap
21096	DNSTAPSRCS='${DNSTAPSRCS}'
21097	DNSTAPOBJS='${DNSTAPOBJS}'
21098	DNSTAPTARGETS='${DNSTAPTARGETS}'
21099	DNSTAP_MANS='${dnstap_man1_MANS}'
21100fi
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111#
21112#  The following sets up how non-blocking i/o is established.
21113#  cygwin and solaris 2.x (x<5) require special handling.
21114#
21115case "$host" in
21116*-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
21117;;
21118*-solaris2.[01234])
21119	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21120
21121
21122$as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
21123
21124	;;
21125*)
21126$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
21127
21128	;;
21129esac
21130#
21131# Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
21132# This prevents the source address being set.
21133#
21134case "$host" in
21135*-solaris2.[012345]|*-solaris2.5.1)
21136
21137$as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
21138
21139	;;
21140esac
21141#
21142# The following sections deal with tools used for formatting
21143# the documentation.  They are all optional, unless you are
21144# a developer editing the documentation source.
21145#
21146
21147#
21148# The following sections deal with tools used for formatting
21149# the documentation.  They are all optional, unless you are
21150# a developer editing the documentation source.
21151#
21152
21153#
21154# Look for sphinx-build
21155#
21156
21157# Extract the first word of "sphinx-build", so it can be a program name with args.
21158set dummy sphinx-build; ac_word=$2
21159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21160$as_echo_n "checking for $ac_word... " >&6; }
21161if ${ac_cv_path_SPHINX_BUILD+:} false; then :
21162  $as_echo_n "(cached) " >&6
21163else
21164  case $SPHINX_BUILD in
21165  [\\/]* | ?:[\\/]*)
21166  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
21167  ;;
21168  *)
21169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21170for as_dir in $PATH
21171do
21172  IFS=$as_save_IFS
21173  test -z "$as_dir" && as_dir=.
21174    for ac_exec_ext in '' $ac_executable_extensions; do
21175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21176    ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
21177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21178    break 2
21179  fi
21180done
21181  done
21182IFS=$as_save_IFS
21183
21184  test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD=":"
21185  ;;
21186esac
21187fi
21188SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
21189if test -n "$SPHINX_BUILD"; then
21190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
21191$as_echo "$SPHINX_BUILD" >&6; }
21192else
21193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21194$as_echo "no" >&6; }
21195fi
21196
21197
21198 if test "$SPHINX_BUILD" != ":"; then
21199  HAVE_SPHINX_BUILD_TRUE=
21200  HAVE_SPHINX_BUILD_FALSE='#'
21201else
21202  HAVE_SPHINX_BUILD_TRUE='#'
21203  HAVE_SPHINX_BUILD_FALSE=
21204fi
21205
21206
21207# Extract the first word of "xelatex", so it can be a program name with args.
21208set dummy xelatex; ac_word=$2
21209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21210$as_echo_n "checking for $ac_word... " >&6; }
21211if ${ac_cv_path_XELATEX+:} false; then :
21212  $as_echo_n "(cached) " >&6
21213else
21214  case $XELATEX in
21215  [\\/]* | ?:[\\/]*)
21216  ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
21217  ;;
21218  *)
21219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21220for as_dir in $PATH
21221do
21222  IFS=$as_save_IFS
21223  test -z "$as_dir" && as_dir=.
21224    for ac_exec_ext in '' $ac_executable_extensions; do
21225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21226    ac_cv_path_XELATEX="$as_dir/$ac_word$ac_exec_ext"
21227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21228    break 2
21229  fi
21230done
21231  done
21232IFS=$as_save_IFS
21233
21234  test -z "$ac_cv_path_XELATEX" && ac_cv_path_XELATEX=":"
21235  ;;
21236esac
21237fi
21238XELATEX=$ac_cv_path_XELATEX
21239if test -n "$XELATEX"; then
21240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
21241$as_echo "$XELATEX" >&6; }
21242else
21243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21244$as_echo "no" >&6; }
21245fi
21246
21247
21248# Extract the first word of "latexmk", so it can be a program name with args.
21249set dummy latexmk; ac_word=$2
21250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21251$as_echo_n "checking for $ac_word... " >&6; }
21252if ${ac_cv_path_LATEXMK+:} false; then :
21253  $as_echo_n "(cached) " >&6
21254else
21255  case $LATEXMK in
21256  [\\/]* | ?:[\\/]*)
21257  ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
21258  ;;
21259  *)
21260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21261for as_dir in $PATH
21262do
21263  IFS=$as_save_IFS
21264  test -z "$as_dir" && as_dir=.
21265    for ac_exec_ext in '' $ac_executable_extensions; do
21266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21267    ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
21268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21269    break 2
21270  fi
21271done
21272  done
21273IFS=$as_save_IFS
21274
21275  test -z "$ac_cv_path_LATEXMK" && ac_cv_path_LATEXMK=":"
21276  ;;
21277esac
21278fi
21279LATEXMK=$ac_cv_path_LATEXMK
21280if test -n "$LATEXMK"; then
21281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
21282$as_echo "$LATEXMK" >&6; }
21283else
21284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21285$as_echo "no" >&6; }
21286fi
21287
21288
21289 if test "$XELATEX" != ":" && test "$LATEXMK" != ":"; then
21290  HAVE_XELATEX_TRUE=
21291  HAVE_XELATEX_FALSE='#'
21292else
21293  HAVE_XELATEX_TRUE='#'
21294  HAVE_XELATEX_FALSE=
21295fi
21296
21297
21298#
21299# Pull release date from CHANGES file last modification date
21300# for reproducible builds
21301#
21302release_date=`date -u -r CHANGES +%Y-%m-%d`
21303RELEASE_DATE=$release_date
21304
21305
21306# Don't build the documentation if the sphinx-build is not present
21307PDFTARGET=
21308HTMLTARGET=
21309MANSRCS=
21310if test -n "$SPHINX_BUILD"; then :
21311
21312	  MANSRCS='$(MANPAGES_IN)'
21313	  HTMLTARGET='html dirhtml'
21314	  for ac_prog in pdflatex
21315do
21316  # Extract the first word of "$ac_prog", so it can be a program name with args.
21317set dummy $ac_prog; ac_word=$2
21318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21319$as_echo_n "checking for $ac_word... " >&6; }
21320if ${ac_cv_path_PDFLATEX+:} false; then :
21321  $as_echo_n "(cached) " >&6
21322else
21323  case $PDFLATEX in
21324  [\\/]* | ?:[\\/]*)
21325  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
21326  ;;
21327  *)
21328  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329for as_dir in $PATH
21330do
21331  IFS=$as_save_IFS
21332  test -z "$as_dir" && as_dir=.
21333    for ac_exec_ext in '' $ac_executable_extensions; do
21334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21335    ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
21336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21337    break 2
21338  fi
21339done
21340  done
21341IFS=$as_save_IFS
21342
21343  ;;
21344esac
21345fi
21346PDFLATEX=$ac_cv_path_PDFLATEX
21347if test -n "$PDFLATEX"; then
21348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
21349$as_echo "$PDFLATEX" >&6; }
21350else
21351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21352$as_echo "no" >&6; }
21353fi
21354
21355
21356  test -n "$PDFLATEX" && break
21357done
21358
21359	  for ac_prog in latexmk
21360do
21361  # Extract the first word of "$ac_prog", so it can be a program name with args.
21362set dummy $ac_prog; ac_word=$2
21363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21364$as_echo_n "checking for $ac_word... " >&6; }
21365if ${ac_cv_path_LATEXMK+:} false; then :
21366  $as_echo_n "(cached) " >&6
21367else
21368  case $LATEXMK in
21369  [\\/]* | ?:[\\/]*)
21370  ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
21371  ;;
21372  *)
21373  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21374for as_dir in $PATH
21375do
21376  IFS=$as_save_IFS
21377  test -z "$as_dir" && as_dir=.
21378    for ac_exec_ext in '' $ac_executable_extensions; do
21379  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21380    ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
21381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21382    break 2
21383  fi
21384done
21385  done
21386IFS=$as_save_IFS
21387
21388  ;;
21389esac
21390fi
21391LATEXMK=$ac_cv_path_LATEXMK
21392if test -n "$LATEXMK"; then
21393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
21394$as_echo "$LATEXMK" >&6; }
21395else
21396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21397$as_echo "no" >&6; }
21398fi
21399
21400
21401  test -n "$LATEXMK" && break
21402done
21403
21404	  if test -n "$PDFLATEX" && test -n "$LATEXMK"; then :
21405
21406		    PDFTARGET='pdf'
21407
21408fi
21409
21410fi
21411
21412
21413
21414
21415#
21416# Look for Doxygen
21417#
21418for ac_prog in doxygen
21419do
21420  # Extract the first word of "$ac_prog", so it can be a program name with args.
21421set dummy $ac_prog; ac_word=$2
21422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21423$as_echo_n "checking for $ac_word... " >&6; }
21424if ${ac_cv_path_DOXYGEN+:} false; then :
21425  $as_echo_n "(cached) " >&6
21426else
21427  case $DOXYGEN in
21428  [\\/]* | ?:[\\/]*)
21429  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
21430  ;;
21431  *)
21432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21433for as_dir in $PATH
21434do
21435  IFS=$as_save_IFS
21436  test -z "$as_dir" && as_dir=.
21437    for ac_exec_ext in '' $ac_executable_extensions; do
21438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21439    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
21440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21441    break 2
21442  fi
21443done
21444  done
21445IFS=$as_save_IFS
21446
21447  ;;
21448esac
21449fi
21450DOXYGEN=$ac_cv_path_DOXYGEN
21451if test -n "$DOXYGEN"; then
21452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
21453$as_echo "$DOXYGEN" >&6; }
21454else
21455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456$as_echo "no" >&6; }
21457fi
21458
21459
21460  test -n "$DOXYGEN" && break
21461done
21462
21463
21464
21465#
21466# Look for curl
21467#
21468
21469# Extract the first word of "curl", so it can be a program name with args.
21470set dummy curl; ac_word=$2
21471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21472$as_echo_n "checking for $ac_word... " >&6; }
21473if ${ac_cv_path_CURL+:} false; then :
21474  $as_echo_n "(cached) " >&6
21475else
21476  case $CURL in
21477  [\\/]* | ?:[\\/]*)
21478  ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
21479  ;;
21480  *)
21481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21482for as_dir in $PATH
21483do
21484  IFS=$as_save_IFS
21485  test -z "$as_dir" && as_dir=.
21486    for ac_exec_ext in '' $ac_executable_extensions; do
21487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21488    ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
21489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21490    break 2
21491  fi
21492done
21493  done
21494IFS=$as_save_IFS
21495
21496  test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
21497  ;;
21498esac
21499fi
21500CURL=$ac_cv_path_CURL
21501if test -n "$CURL"; then
21502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
21503$as_echo "$CURL" >&6; }
21504else
21505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21506$as_echo "no" >&6; }
21507fi
21508
21509
21510
21511
21512#
21513# Look for xsltproc
21514#
21515
21516# Extract the first word of "xsltproc", so it can be a program name with args.
21517set dummy xsltproc; ac_word=$2
21518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21519$as_echo_n "checking for $ac_word... " >&6; }
21520if ${ac_cv_path_XSLTPROC+:} false; then :
21521  $as_echo_n "(cached) " >&6
21522else
21523  case $XSLTPROC in
21524  [\\/]* | ?:[\\/]*)
21525  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21526  ;;
21527  *)
21528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21529for as_dir in $PATH
21530do
21531  IFS=$as_save_IFS
21532  test -z "$as_dir" && as_dir=.
21533    for ac_exec_ext in '' $ac_executable_extensions; do
21534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21535    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21537    break 2
21538  fi
21539done
21540  done
21541IFS=$as_save_IFS
21542
21543  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
21544  ;;
21545esac
21546fi
21547XSLTPROC=$ac_cv_path_XSLTPROC
21548if test -n "$XSLTPROC"; then
21549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21550$as_echo "$XSLTPROC" >&6; }
21551else
21552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21553$as_echo "no" >&6; }
21554fi
21555
21556
21557
21558
21559#
21560# IDN support using libidn2
21561#
21562
21563LIBIDN2_CFLAGS=
21564LIBIDN2_LDFLAGS=
21565LIBIDN2_LIBS=
21566
21567# [pairwise: --with-libidn2=yes, --without-libidn2]
21568
21569# Check whether --with-libidn2 was given.
21570if test "${with_libidn2+set}" = set; then :
21571  withval=$with_libidn2; with_libidn2="$withval"
21572else
21573  with_libidn2="no"
21574fi
21575
21576case $with_libidn2 in #(
21577  yes) :
21578
21579pkg_failed=no
21580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
21581$as_echo_n "checking for libidn2... " >&6; }
21582
21583if test -n "$LIBIDN2_CFLAGS"; then
21584    pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
21585 elif test -n "$PKG_CONFIG"; then
21586    if test -n "$PKG_CONFIG" && \
21587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
21588  ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
21589  ac_status=$?
21590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21591  test $ac_status = 0; }; then
21592  pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
21593		      test "x$?" != "x0" && pkg_failed=yes
21594else
21595  pkg_failed=yes
21596fi
21597 else
21598    pkg_failed=untried
21599fi
21600if test -n "$LIBIDN2_LIBS"; then
21601    pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
21602 elif test -n "$PKG_CONFIG"; then
21603    if test -n "$PKG_CONFIG" && \
21604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
21605  ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
21606  ac_status=$?
21607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21608  test $ac_status = 0; }; then
21609  pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
21610		      test "x$?" != "x0" && pkg_failed=yes
21611else
21612  pkg_failed=yes
21613fi
21614 else
21615    pkg_failed=untried
21616fi
21617
21618
21619
21620if test $pkg_failed = yes; then
21621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21622$as_echo "no" >&6; }
21623
21624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21625        _pkg_short_errors_supported=yes
21626else
21627        _pkg_short_errors_supported=no
21628fi
21629        if test $_pkg_short_errors_supported = yes; then
21630	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
21631        else
21632	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
21633        fi
21634	# Put the nasty error message in config.log where it belongs
21635	echo "$LIBIDN2_PKG_ERRORS" >&5
21636
21637	as_fn_error $? "Package requirements (libidn2) were not met:
21638
21639$LIBIDN2_PKG_ERRORS
21640
21641Consider adjusting the PKG_CONFIG_PATH environment variable if you
21642installed software in a non-standard prefix.
21643
21644Alternatively, you may set the environment variables LIBIDN2_CFLAGS
21645and LIBIDN2_LIBS to avoid the need to call pkg-config.
21646See the pkg-config man page for more details." "$LINENO" 5
21647elif test $pkg_failed = untried; then
21648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21649$as_echo "no" >&6; }
21650	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21652as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21653is in your PATH or set the PKG_CONFIG environment variable to the full
21654path to pkg-config.
21655
21656Alternatively, you may set the environment variables LIBIDN2_CFLAGS
21657and LIBIDN2_LIBS to avoid the need to call pkg-config.
21658See the pkg-config man page for more details.
21659
21660To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21661See \`config.log' for more details" "$LINENO" 5; }
21662else
21663	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
21664	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
21665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21666$as_echo "yes" >&6; }
21667
21668$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
21669
21670fi ;; #(
21671  no) :
21672     ;; #(
21673  *) :
21674
21675
21676  CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
21677
21678
21679
21680  CFLAGS_libidn2_ax_save_flags=$CFLAGS
21681
21682
21683
21684  CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
21685
21686
21687
21688  CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
21689
21690
21691
21692  ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
21693
21694
21695
21696  FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
21697
21698
21699
21700  FCLIBS_libidn2_ax_save_flags=$FCLIBS
21701
21702
21703
21704  FFLAGS_libidn2_ax_save_flags=$FFLAGS
21705
21706
21707
21708  FLIBS_libidn2_ax_save_flags=$FLIBS
21709
21710
21711
21712  GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
21713
21714
21715
21716  JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
21717
21718
21719
21720  LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
21721
21722
21723
21724  LIBS_libidn2_ax_save_flags=$LIBS
21725
21726
21727
21728  OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
21729
21730
21731
21732  OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
21733
21734
21735
21736  UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
21737
21738
21739
21740  VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
21741
21742
21743
21744		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
21745		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
21746		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
21747		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
21748		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
21749		 for ac_header in idn2.h
21750do :
21751  ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
21752if test "x$ac_cv_header_idn2_h" = xyes; then :
21753  cat >>confdefs.h <<_ACEOF
21754#define HAVE_IDN2_H 1
21755_ACEOF
21756
21757else
21758  as_fn_error $? "idn2.h not found" "$LINENO" 5
21759fi
21760
21761done
21762
21763		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
21764$as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
21765if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21766  $as_echo_n "(cached) " >&6
21767else
21768  ac_func_search_save_LIBS=$LIBS
21769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21770/* end confdefs.h.  */
21771
21772/* Override any GCC internal prototype to avoid an error.
21773   Use char because int might match the return type of a GCC
21774   builtin and then its argument prototype would still apply.  */
21775#ifdef __cplusplus
21776extern "C"
21777#endif
21778char idn2_to_ascii_lz ();
21779int
21780main ()
21781{
21782return idn2_to_ascii_lz ();
21783  ;
21784  return 0;
21785}
21786_ACEOF
21787for ac_lib in '' idn2; do
21788  if test -z "$ac_lib"; then
21789    ac_res="none required"
21790  else
21791    ac_res=-l$ac_lib
21792    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21793  fi
21794  if ac_fn_c_try_link "$LINENO"; then :
21795  ac_cv_search_idn2_to_ascii_lz=$ac_res
21796fi
21797rm -f core conftest.err conftest.$ac_objext \
21798    conftest$ac_exeext
21799  if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21800  break
21801fi
21802done
21803if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
21804
21805else
21806  ac_cv_search_idn2_to_ascii_lz=no
21807fi
21808rm conftest.$ac_ext
21809LIBS=$ac_func_search_save_LIBS
21810fi
21811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
21812$as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
21813ac_res=$ac_cv_search_idn2_to_ascii_lz
21814if test "$ac_res" != no; then :
21815  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21816  LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
21817
21818$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
21819
21820else
21821  as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
21822fi
21823
21824
21825  CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
21826
21827
21828  CFLAGS=$CFLAGS_libidn2_ax_save_flags
21829
21830
21831  CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
21832
21833
21834  CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
21835
21836
21837  ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
21838
21839
21840  FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
21841
21842
21843  FCLIBS=$FCLIBS_libidn2_ax_save_flags
21844
21845
21846  FFLAGS=$FFLAGS_libidn2_ax_save_flags
21847
21848
21849  FLIBS=$FLIBS_libidn2_ax_save_flags
21850
21851
21852  GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
21853
21854
21855  JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
21856
21857
21858  LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
21859
21860
21861  LIBS=$LIBS_libidn2_ax_save_flags
21862
21863
21864  OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
21865
21866
21867  OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
21868
21869
21870  UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
21871
21872
21873  VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
21874
21875
21876 ;; #(
21877  *) :
21878     ;;
21879esac
21880
21881
21882
21883
21884#
21885# Check whether to build with cmocka unit testing framework
21886#
21887# [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
21888
21889# Check whether --with-cmocka was given.
21890if test "${with_cmocka+set}" = set; then :
21891  withval=$with_cmocka;
21892else
21893  with_cmocka=detect
21894fi
21895
21896
21897case $with_cmocka in #(
21898  no) :
21899     ;; #(
21900  detect) :
21901
21902pkg_failed=no
21903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
21904$as_echo_n "checking for cmocka >= 1.1.3... " >&6; }
21905
21906if test -n "$CMOCKA_CFLAGS"; then
21907    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
21908 elif test -n "$PKG_CONFIG"; then
21909    if test -n "$PKG_CONFIG" && \
21910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
21911  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
21912  ac_status=$?
21913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914  test $ac_status = 0; }; then
21915  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
21916		      test "x$?" != "x0" && pkg_failed=yes
21917else
21918  pkg_failed=yes
21919fi
21920 else
21921    pkg_failed=untried
21922fi
21923if test -n "$CMOCKA_LIBS"; then
21924    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
21925 elif test -n "$PKG_CONFIG"; then
21926    if test -n "$PKG_CONFIG" && \
21927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
21928  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
21929  ac_status=$?
21930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931  test $ac_status = 0; }; then
21932  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
21933		      test "x$?" != "x0" && pkg_failed=yes
21934else
21935  pkg_failed=yes
21936fi
21937 else
21938    pkg_failed=untried
21939fi
21940
21941
21942
21943if test $pkg_failed = yes; then
21944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945$as_echo "no" >&6; }
21946
21947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21948        _pkg_short_errors_supported=yes
21949else
21950        _pkg_short_errors_supported=no
21951fi
21952        if test $_pkg_short_errors_supported = yes; then
21953	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
21954        else
21955	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
21956        fi
21957	# Put the nasty error message in config.log where it belongs
21958	echo "$CMOCKA_PKG_ERRORS" >&5
21959
21960	with_cmocka=no
21961elif test $pkg_failed = untried; then
21962        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963$as_echo "no" >&6; }
21964	with_cmocka=no
21965else
21966	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
21967	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
21968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21969$as_echo "yes" >&6; }
21970
21971$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
21972
21973				     with_cmocka=yes
21974fi ;; #(
21975  yes) :
21976
21977pkg_failed=no
21978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
21979$as_echo_n "checking for cmocka >= 1.1.3... " >&6; }
21980
21981if test -n "$CMOCKA_CFLAGS"; then
21982    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
21983 elif test -n "$PKG_CONFIG"; then
21984    if test -n "$PKG_CONFIG" && \
21985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
21986  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
21987  ac_status=$?
21988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989  test $ac_status = 0; }; then
21990  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
21991		      test "x$?" != "x0" && pkg_failed=yes
21992else
21993  pkg_failed=yes
21994fi
21995 else
21996    pkg_failed=untried
21997fi
21998if test -n "$CMOCKA_LIBS"; then
21999    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
22000 elif test -n "$PKG_CONFIG"; then
22001    if test -n "$PKG_CONFIG" && \
22002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
22003  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
22004  ac_status=$?
22005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22006  test $ac_status = 0; }; then
22007  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
22008		      test "x$?" != "x0" && pkg_failed=yes
22009else
22010  pkg_failed=yes
22011fi
22012 else
22013    pkg_failed=untried
22014fi
22015
22016
22017
22018if test $pkg_failed = yes; then
22019        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22020$as_echo "no" >&6; }
22021
22022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22023        _pkg_short_errors_supported=yes
22024else
22025        _pkg_short_errors_supported=no
22026fi
22027        if test $_pkg_short_errors_supported = yes; then
22028	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
22029        else
22030	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
22031        fi
22032	# Put the nasty error message in config.log where it belongs
22033	echo "$CMOCKA_PKG_ERRORS" >&5
22034
22035	as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met:
22036
22037$CMOCKA_PKG_ERRORS
22038
22039Consider adjusting the PKG_CONFIG_PATH environment variable if you
22040installed software in a non-standard prefix.
22041
22042Alternatively, you may set the environment variables CMOCKA_CFLAGS
22043and CMOCKA_LIBS to avoid the need to call pkg-config.
22044See the pkg-config man page for more details." "$LINENO" 5
22045elif test $pkg_failed = untried; then
22046        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22047$as_echo "no" >&6; }
22048	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22050as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22051is in your PATH or set the PKG_CONFIG environment variable to the full
22052path to pkg-config.
22053
22054Alternatively, you may set the environment variables CMOCKA_CFLAGS
22055and CMOCKA_LIBS to avoid the need to call pkg-config.
22056See the pkg-config man page for more details.
22057
22058To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22059See \`config.log' for more details" "$LINENO" 5; }
22060else
22061	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
22062	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
22063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22064$as_echo "yes" >&6; }
22065
22066$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
22067
22068fi ;; #(
22069  *) :
22070    as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
22071        ;;
22072esac
22073
22074
22075
22076
22077$as_echo "#define SKIPPED_TEST_EXIT_CODE 0" >>confdefs.h
22078
22079
22080#
22081# Check for kyua execution engine if CMocka was requested
22082# and bail out if execution engine was not found
22083#
22084
22085if test "$with_cmocka" != "no"; then :
22086  for ac_prog in kyua
22087do
22088  # Extract the first word of "$ac_prog", so it can be a program name with args.
22089set dummy $ac_prog; ac_word=$2
22090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22091$as_echo_n "checking for $ac_word... " >&6; }
22092if ${ac_cv_path_KYUA+:} false; then :
22093  $as_echo_n "(cached) " >&6
22094else
22095  case $KYUA in
22096  [\\/]* | ?:[\\/]*)
22097  ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
22098  ;;
22099  *)
22100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101for as_dir in $PATH
22102do
22103  IFS=$as_save_IFS
22104  test -z "$as_dir" && as_dir=.
22105    for ac_exec_ext in '' $ac_executable_extensions; do
22106  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22107    ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
22108    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22109    break 2
22110  fi
22111done
22112  done
22113IFS=$as_save_IFS
22114
22115  ;;
22116esac
22117fi
22118KYUA=$ac_cv_path_KYUA
22119if test -n "$KYUA"; then
22120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
22121$as_echo "$KYUA" >&6; }
22122else
22123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124$as_echo "no" >&6; }
22125fi
22126
22127
22128  test -n "$KYUA" && break
22129done
22130
22131       if test -z "$KYUA"; then :
22132  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
22133$as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
22134else
22135  UNITTESTS=tests
22136fi
22137fi
22138
22139
22140
22141#
22142# Check for -Wl,--wrap= support
22143#
22144
22145LD_WRAP_TESTS=false
22146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
22147$as_echo_n "checking for linker support for --wrap option... " >&6; }
22148
22149
22150  CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
22151
22152
22153
22154  CFLAGS_wrap_ax_save_flags=$CFLAGS
22155
22156
22157
22158  CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
22159
22160
22161
22162  CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
22163
22164
22165
22166  ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
22167
22168
22169
22170  FCFLAGS_wrap_ax_save_flags=$FCFLAGS
22171
22172
22173
22174  FCLIBS_wrap_ax_save_flags=$FCLIBS
22175
22176
22177
22178  FFLAGS_wrap_ax_save_flags=$FFLAGS
22179
22180
22181
22182  FLIBS_wrap_ax_save_flags=$FLIBS
22183
22184
22185
22186  GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
22187
22188
22189
22190  JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
22191
22192
22193
22194  LDFLAGS_wrap_ax_save_flags=$LDFLAGS
22195
22196
22197
22198  LIBS_wrap_ax_save_flags=$LIBS
22199
22200
22201
22202  OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
22203
22204
22205
22206  OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
22207
22208
22209
22210  UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
22211
22212
22213
22214  VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
22215
22216
22217
22218LDFLAGS="-Wl,--wrap,exit"
22219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220/* end confdefs.h.  */
22221#include <stdlib.h>
22222		       void __real_exit (int status);
22223		       void __wrap_exit (int status) { __real_exit (0); }
22224
22225int
22226main ()
22227{
22228exit (1);
22229  ;
22230  return 0;
22231}
22232_ACEOF
22233if ac_fn_c_try_link "$LINENO"; then :
22234  LD_WRAP_TESTS=true
22235
22236$as_echo "#define LD_WRAP 1" >>confdefs.h
22237
22238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22239$as_echo "yes" >&6; }
22240else
22241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242$as_echo "no" >&6; }
22243fi
22244rm -f core conftest.err conftest.$ac_objext \
22245    conftest$ac_exeext conftest.$ac_ext
22246
22247  CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
22248
22249
22250  CFLAGS=$CFLAGS_wrap_ax_save_flags
22251
22252
22253  CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
22254
22255
22256  CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
22257
22258
22259  ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
22260
22261
22262  FCFLAGS=$FCFLAGS_wrap_ax_save_flags
22263
22264
22265  FCLIBS=$FCLIBS_wrap_ax_save_flags
22266
22267
22268  FFLAGS=$FFLAGS_wrap_ax_save_flags
22269
22270
22271  FLIBS=$FLIBS_wrap_ax_save_flags
22272
22273
22274  GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
22275
22276
22277  JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
22278
22279
22280  LDFLAGS=$LDFLAGS_wrap_ax_save_flags
22281
22282
22283  LIBS=$LIBS_wrap_ax_save_flags
22284
22285
22286  OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
22287
22288
22289  OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
22290
22291
22292  UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
22293
22294
22295  VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
22296
22297
22298
22299
22300
22301
22302#
22303# Check for i18n
22304#
22305for ac_header in locale.h
22306do :
22307  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22308if test "x$ac_cv_header_locale_h" = xyes; then :
22309  cat >>confdefs.h <<_ACEOF
22310#define HAVE_LOCALE_H 1
22311_ACEOF
22312
22313fi
22314
22315done
22316
22317for ac_func in setlocale
22318do :
22319  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22320if test "x$ac_cv_func_setlocale" = xyes; then :
22321  cat >>confdefs.h <<_ACEOF
22322#define HAVE_SETLOCALE 1
22323_ACEOF
22324
22325fi
22326done
22327
22328
22329#
22330# was --with-tuning specified?
22331#
22332# [pairwise: --with-tuning=small, --without-tuning]
22333
22334# Check whether --with-tuning was given.
22335if test "${with_tuning+set}" = set; then :
22336  withval=$with_tuning;
22337else
22338  with_tuning=no
22339fi
22340
22341
22342case $with_tuning in #(
22343  small) :
22344    { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
22345$as_echo "$as_me: using small system tuning" >&6;} ;; #(
22346  *) :
22347
22348$as_echo "#define TUNE_LARGE 1" >>confdefs.h
22349
22350	 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
22351$as_echo "$as_me: using default system tuning" >&6;} ;;
22352esac
22353
22354#
22355# was --enable-querytrace specified?
22356#
22357# [pairwise: --enable-querytrace, --disable-querytrace]
22358# Check whether --enable-querytrace was given.
22359if test "${enable_querytrace+set}" = set; then :
22360  enableval=$enable_querytrace; want_querytrace="$enableval"
22361else
22362  want_querytrace="no"
22363fi
22364
22365
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
22367$as_echo_n "checking whether to enable query trace logging... " >&6; }
22368case "$want_querytrace" in
22369yes)
22370	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22371$as_echo "yes" >&6; }
22372
22373$as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
22374
22375	;;
22376no)
22377	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22378$as_echo "no" >&6; }
22379	;;
22380*)
22381	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
22382	;;
22383esac
22384
22385#
22386# Was --disable-auto-validation specified?
22387#
22388
22389validation_default=auto
22390
22391# [pairwise: --enable-auto-validation, --disable-auto-validation]
22392# Check whether --enable-auto-validation was given.
22393if test "${enable_auto_validation+set}" = set; then :
22394  enableval=$enable_auto_validation; :
22395else
22396  enable_auto_validation=yes
22397fi
22398
22399if test "$enable_auto_validation" = "no"; then :
22400  validation_default=yes
22401fi
22402
22403cat >>confdefs.h <<_ACEOF
22404#define VALIDATION_DEFAULT "$validation_default"
22405_ACEOF
22406
22407
22408#
22409# Substitutions
22410#
22411
22412BIND9_TOP_BUILDDIR=`pwd`
22413
22414
22415
22416
22417
22418
22419
22420
22421if test "X$srcdir" != "X"; then
22422	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
22423	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
22424	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
22425	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
22426	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
22427	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
22428	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
22429else
22430	BIND9_ISC_BUILDINCLUDE=""
22431	BIND9_ISCCC_BUILDINCLUDE=""
22432	BIND9_ISCCFG_BUILDINCLUDE=""
22433	BIND9_DNS_BUILDINCLUDE=""
22434	BIND9_NS_BUILDINCLUDE=""
22435	BIND9_BIND9_BUILDINCLUDE=""
22436	BIND9_IRS_BUILDINCLUDE=""
22437fi
22438
22439
22440BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
22441
22442
22443BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
22444
22445. "$srcdir/version"
22446BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
22447
22448BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
22449
22450BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
22451
22452BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
22453
22454BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
22455
22456
22457BIND9_SRCID="SRCID=unset_id"
22458if test -f "${srcdir}/srcid"; then
22459	. "${srcdir}/srcid"
22460	BIND9_SRCID="SRCID=$SRCID"
22461elif test -d "${srcdir}/.git"; then
22462	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
22463fi
22464
22465
22466
22467if test -z "$ac_configure_args"; then
22468	BIND9_CONFIGARGS="defaults"
22469else
22470	for a in $ac_configure_args
22471	do
22472		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
22473	done
22474fi
22475BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
22476BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
22477
22478
22479
22480LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
22481
22482#
22483# Configure any DLZ drivers.
22484#
22485# If config.dlz.in selects one or more DLZ drivers, it will set
22486# CONTRIB_DLZ to a non-empty value, which will be our clue to
22487# build DLZ drivers in contrib.
22488#
22489# This section has to come after the libtool stuff because it needs to
22490# know how to name the driver object files.
22491#
22492
22493CONTRIB_DLZ=""
22494DLZ_DRIVER_INCLUDES=""
22495DLZ_DRIVER_LIBS=""
22496DLZ_DRIVER_SRCS=""
22497DLZ_DRIVER_OBJS=""
22498DLZ_SYSTEM_TEST=""
22499DLZ_DRIVER_MYSQL_INCLUDES=""
22500DLZ_DRIVER_MYSQL_LIBS=""
22501
22502#
22503# Configure support for building a shared library object
22504#
22505# Even when libtool is available it can't always be relied upon
22506# to build an object that can be dlopen()'ed, but this is necessary
22507# for building the dlzexternal system test, so we'll try it the
22508# old-fashioned way.
22509#
22510SO="so"
22511SO_CFLAGS=""
22512SO_LDFLAGS=""
22513SO_LD=""
22514SO_TARGETS=""
22515SO_STRIP="cat"
22516
22517# [pairwise: skip]
22518
22519# Check whether --with-dlopen was given.
22520if test "${with_dlopen+set}" = set; then :
22521  withval=$with_dlopen;
22522else
22523  with_dlopen="auto"
22524fi
22525
22526
22527
22528#
22529# If PIC is disabled, dlopen must also be
22530#
22531if test "$pic_mode" = "no"; then :
22532  case $with_dlopen in #(
22533  auto) :
22534    with_dlopen="no" ;; #(
22535  yes) :
22536    as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
22537  *) :
22538     ;;
22539esac
22540fi
22541
22542case $with_dlopen in #(
22543  auto|yes) :
22544
22545	  # -fsanitize=thread hijacks dlopen and dlclose so use dlsym.
22546	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
22547$as_echo_n "checking for library containing dlsym... " >&6; }
22548if ${ac_cv_search_dlsym+:} false; then :
22549  $as_echo_n "(cached) " >&6
22550else
22551  ac_func_search_save_LIBS=$LIBS
22552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553/* end confdefs.h.  */
22554
22555/* Override any GCC internal prototype to avoid an error.
22556   Use char because int might match the return type of a GCC
22557   builtin and then its argument prototype would still apply.  */
22558#ifdef __cplusplus
22559extern "C"
22560#endif
22561char dlsym ();
22562int
22563main ()
22564{
22565return dlsym ();
22566  ;
22567  return 0;
22568}
22569_ACEOF
22570for ac_lib in '' dl; do
22571  if test -z "$ac_lib"; then
22572    ac_res="none required"
22573  else
22574    ac_res=-l$ac_lib
22575    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22576  fi
22577  if ac_fn_c_try_link "$LINENO"; then :
22578  ac_cv_search_dlsym=$ac_res
22579fi
22580rm -f core conftest.err conftest.$ac_objext \
22581    conftest$ac_exeext
22582  if ${ac_cv_search_dlsym+:} false; then :
22583  break
22584fi
22585done
22586if ${ac_cv_search_dlsym+:} false; then :
22587
22588else
22589  ac_cv_search_dlsym=no
22590fi
22591rm conftest.$ac_ext
22592LIBS=$ac_func_search_save_LIBS
22593fi
22594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
22595$as_echo "$ac_cv_search_dlsym" >&6; }
22596ac_res=$ac_cv_search_dlsym
22597if test "$ac_res" != no; then :
22598  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22599
22600fi
22601
22602	  for ac_func in dlopen dlclose dlsym
22603do :
22604  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22605ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22606if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22607  cat >>confdefs.h <<_ACEOF
22608#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22609_ACEOF
22610 with_dlopen="yes"
22611else
22612  with_dlopen="no"
22613fi
22614done
22615
22616	 ;; #(
22617  *) :
22618     ;;
22619esac
22620
22621if test "$with_dlopen" = "yes"; then :
22622  case $host in #(
22623  *-linux*|*-gnu*) :
22624
22625		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
22626		 SO_CFLAGS="-fPIC"
22627		 SO_LDFLAGS=""
22628		 if test "$use_libtool" = "yes"; then :
22629
22630			 SO_LDFLAGS="-Xcompiler -shared"
22631			 SO_LD="${CC}"
22632
22633else
22634
22635			 SO_LDFLAGS="-shared"
22636			 SO_LD="${CC}"
22637
22638fi
22639	        ;; #(
22640  *-freebsd*|*-openbsd*|*-netbsd*) :
22641
22642		 LDFLAGS="${LDFLAGS} -Wl,-E"
22643		 SO_CFLAGS="-fpic"
22644		 if test "$use_libtool" = "yes"; then :
22645
22646			 SO_LDFLAGS="-Xcompiler -shared"
22647			 SO_LD="${CC}"
22648
22649else
22650
22651			 SO_LDFLAGS="-shared"
22652			 SO_LD="${CC}"
22653
22654fi
22655	        ;; #(
22656  *-darwin*) :
22657
22658		 SO_CFLAGS="-fPIC"
22659                 SO_LD="${CC}"
22660		 if test "$use_libtool" = "yes"; then :
22661
22662			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
22663
22664else
22665
22666			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
22667
22668fi
22669	        ;; #(
22670  *-solaris*) :
22671
22672		 SO_CFLAGS="-KPIC"
22673		 SO_LDFLAGS="-G -z text"
22674		 SO_LD="ld"
22675	        ;; #(
22676  ia64-hp-hpux*) :
22677
22678		 SO_CFLAGS="+z"
22679	         SO_LDFLAGS="-b"
22680		 SO_LD="${CC}"
22681	        ;; #(
22682  *) :
22683
22684		 SO_CFLAGS="-fPIC"
22685	        ;;
22686esac
22687       if test "$GCC" = "yes"; then :
22688
22689	       SO_CFLAGS="-fPIC"
22690	       if test -z "$SO_LD"; then :
22691  if test "$use_libtool" = "yes"; then :
22692
22693			      SO_LDFLAGS="-Xcompiler -shared"
22694			      SO_LD="${CC}"
22695
22696else
22697
22698			      SO_LDFLAGS="-shared"
22699			      SO_LD="${CC}"
22700
22701fi
22702
22703fi
22704
22705fi
22706       # If we still don't know how to make shared objects, don't make any.
22707       if test -n "$SO_LD"; then :
22708  SO_TARGETS="\${SO_TARGETS}"
22709
22710$as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
22711
22712
22713fi
22714
22715fi
22716
22717if test "$with_dlopen" = "no" -a "$enable_native_pkcs11" = "yes"; then :
22718  as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5
22719fi
22720
22721CFLAGS="$CFLAGS $SO_CFLAGS"
22722
22723
22724
22725
22726
22727
22728
22729
22730#
22731# Response policy rewriting using DNS Response Policy Service (DNSRPS)
22732# interface.
22733#
22734# DNSRPS can be compiled into BIND everywhere with a reasonably
22735# modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
22736#
22737dnsrps_avail=yes
22738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
22739$as_echo_n "checking for librpz __attribute__s... " >&6; }
22740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741/* end confdefs.h.  */
22742
22743int
22744main ()
22745{
22746
22747       extern void f(char *p __attribute__((unused)), ...)
22748       __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
22749
22750  ;
22751  return 0;
22752}
22753_ACEOF
22754if ac_fn_c_try_compile "$LINENO"; then :
22755
22756    librpz_have_attr=yes
22757
22758$as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
22759
22760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22761$as_echo "yes" >&6; }
22762
22763else
22764
22765    librpz_have_attr=no
22766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22767$as_echo "no" >&6; }
22768
22769fi
22770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771
22772# DNSRPS is not included in pairwise testing as the librpz library is not
22773# present in the relevant Docker image.
22774#
22775# [pairwise: skip]
22776# Check whether --enable-dnsrps-dl was given.
22777if test "${enable_dnsrps_dl+set}" = set; then :
22778  enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
22779else
22780  enable_librpz_dl="$with_dlopen"
22781fi
22782
22783
22784if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
22785  as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
22786fi
22787
22788# [pairwise: skip]
22789
22790# Check whether --with-dnsrps-libname was given.
22791if test "${with_dnsrps_libname+set}" = set; then :
22792  withval=$with_dnsrps_libname; librpz_name="$withval"
22793else
22794  librpz_name="librpz.so"
22795fi
22796
22797
22798# [pairwise: skip]
22799
22800# Check whether --with-dnsrps-dir was given.
22801if test "${with_dnsrps_dir+set}" = set; then :
22802  withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
22803else
22804  librpz_path="$librpz_name"
22805fi
22806
22807
22808cat >>confdefs.h <<_ACEOF
22809#define DNSRPS_LIBRPZ_PATH "$librpz_path"
22810_ACEOF
22811
22812if test "$enable_librpz_dl" = "yes"; then :
22813
22814	dnsrps_lib_open=2
22815
22816else
22817
22818	dnsrps_lib_open=1
22819	# Add librpz.so to linked libraries if we are not using dlopen()
22820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
22821$as_echo_n "checking for library containing librpz_client_create... " >&6; }
22822if ${ac_cv_search_librpz_client_create+:} false; then :
22823  $as_echo_n "(cached) " >&6
22824else
22825  ac_func_search_save_LIBS=$LIBS
22826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22827/* end confdefs.h.  */
22828
22829/* Override any GCC internal prototype to avoid an error.
22830   Use char because int might match the return type of a GCC
22831   builtin and then its argument prototype would still apply.  */
22832#ifdef __cplusplus
22833extern "C"
22834#endif
22835char librpz_client_create ();
22836int
22837main ()
22838{
22839return librpz_client_create ();
22840  ;
22841  return 0;
22842}
22843_ACEOF
22844for ac_lib in '' rpz; do
22845  if test -z "$ac_lib"; then
22846    ac_res="none required"
22847  else
22848    ac_res=-l$ac_lib
22849    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22850  fi
22851  if ac_fn_c_try_link "$LINENO"; then :
22852  ac_cv_search_librpz_client_create=$ac_res
22853fi
22854rm -f core conftest.err conftest.$ac_objext \
22855    conftest$ac_exeext
22856  if ${ac_cv_search_librpz_client_create+:} false; then :
22857  break
22858fi
22859done
22860if ${ac_cv_search_librpz_client_create+:} false; then :
22861
22862else
22863  ac_cv_search_librpz_client_create=no
22864fi
22865rm conftest.$ac_ext
22866LIBS=$ac_func_search_save_LIBS
22867fi
22868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
22869$as_echo "$ac_cv_search_librpz_client_create" >&6; }
22870ac_res=$ac_cv_search_librpz_client_create
22871if test "$ac_res" != no; then :
22872  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22873
22874else
22875  dnsrps_lib_open=0
22876		 dnsrps_avail=no
22877fi
22878
22879
22880fi
22881
22882cat >>confdefs.h <<_ACEOF
22883#define DNSRPS_LIB_OPEN $dnsrps_lib_open
22884_ACEOF
22885
22886
22887# [pairwise: skip]
22888# Check whether --enable-dnsrps was given.
22889if test "${enable_dnsrps+set}" = set; then :
22890  enableval=$enable_dnsrps; enable_dnsrps=$enableval
22891else
22892  enable_dnsrps=no
22893fi
22894
22895
22896if test "$enable_dnsrps" != "no"; then :
22897
22898	if test "$dnsrps_avail" != "yes"; then :
22899  as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
22900fi
22901	if test "$dnsrps_lib_open" = "0"; then :
22902  as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
22903fi
22904
22905$as_echo "#define USE_DNSRPS 1" >>confdefs.h
22906
22907
22908fi
22909
22910# Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
22911#
22912# SPDX-License-Identifier: MPL-2.0
22913#
22914# Permission to use, copy, modify, and distribute this software for any
22915# purpose with or without fee is hereby granted, provided that the above
22916# copyright notice and this permission notice appear in all copies.
22917#
22918# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
22919# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22920# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
22921# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
22922# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22923# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22924# PERFORMANCE OF THIS SOFTWARE.
22925
22926#
22927# Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
22928#
22929dlzdir='${DLZ_DRIVER_DIR}'
22930
22931#
22932# Private autoconf macro to simplify configuring drivers:
22933#
22934#   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
22935#
22936# where:
22937#   DEFINE is FOO (to define -DDLZ_FOO)
22938#   DRIVER is dlz_foo_driver (sources without the .c)
22939#   INCLUDES is any necessary include definitions
22940#   LIBS is any necessary library definitions
22941#
22942
22943
22944#
22945# Check for the various DLZ drivers
22946#
22947
22948#
22949# Was --with-dlz-postgres specified?
22950#
22951
22952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
22953$as_echo_n "checking for Postgres DLZ driver... " >&6; }
22954
22955# Check whether --with-dlz_postgres was given.
22956if test "${with_dlz_postgres+set}" = set; then :
22957  withval=$with_dlz_postgres; use_dlz_postgres="$withval"
22958else
22959  use_dlz_postgres="no"
22960fi
22961
22962
22963if test "$use_dlz_postgres" != "no"
22964then
22965	if test "$use_dlz_postgres" != "yes"
22966        then
22967                for ac_prog in pg_config
22968do
22969  # Extract the first word of "$ac_prog", so it can be a program name with args.
22970set dummy $ac_prog; ac_word=$2
22971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22972$as_echo_n "checking for $ac_word... " >&6; }
22973if ${ac_cv_path_PG_CONFIG+:} false; then :
22974  $as_echo_n "(cached) " >&6
22975else
22976  case $PG_CONFIG in
22977  [\\/]* | ?:[\\/]*)
22978  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
22979  ;;
22980  *)
22981  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22982for as_dir in $use_dlz_postgres/bin
22983do
22984  IFS=$as_save_IFS
22985  test -z "$as_dir" && as_dir=.
22986    for ac_exec_ext in '' $ac_executable_extensions; do
22987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22988    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22990    break 2
22991  fi
22992done
22993  done
22994IFS=$as_save_IFS
22995
22996  ;;
22997esac
22998fi
22999PG_CONFIG=$ac_cv_path_PG_CONFIG
23000if test -n "$PG_CONFIG"; then
23001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
23002$as_echo "$PG_CONFIG" >&6; }
23003else
23004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23005$as_echo "no" >&6; }
23006fi
23007
23008
23009  test -n "$PG_CONFIG" && break
23010done
23011test -n "$PG_CONFIG" || PG_CONFIG="not found"
23012
23013	else
23014                for ac_prog in pg_config
23015do
23016  # Extract the first word of "$ac_prog", so it can be a program name with args.
23017set dummy $ac_prog; ac_word=$2
23018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23019$as_echo_n "checking for $ac_word... " >&6; }
23020if ${ac_cv_path_PG_CONFIG+:} false; then :
23021  $as_echo_n "(cached) " >&6
23022else
23023  case $PG_CONFIG in
23024  [\\/]* | ?:[\\/]*)
23025  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23026  ;;
23027  *)
23028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23029for as_dir in $PATH
23030do
23031  IFS=$as_save_IFS
23032  test -z "$as_dir" && as_dir=.
23033    for ac_exec_ext in '' $ac_executable_extensions; do
23034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23035    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23037    break 2
23038  fi
23039done
23040  done
23041IFS=$as_save_IFS
23042
23043  ;;
23044esac
23045fi
23046PG_CONFIG=$ac_cv_path_PG_CONFIG
23047if test -n "$PG_CONFIG"; then
23048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
23049$as_echo "$PG_CONFIG" >&6; }
23050else
23051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052$as_echo "no" >&6; }
23053fi
23054
23055
23056  test -n "$PG_CONFIG" && break
23057done
23058test -n "$PG_CONFIG" || PG_CONFIG="not found"
23059
23060	fi
23061
23062	if test "$PG_CONFIG" != "not found"
23063	then
23064		use_dlz_postgres=`$PG_CONFIG --includedir`
23065		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
23066	else
23067		pgprefix="$use_dlz_postgres"
23068		use_dlz_postgres="$pgprefix/include"
23069		use_dlz_postgres_lib="$pgprefix/lib"
23070	fi
23071fi
23072
23073if test "$use_dlz_postgres" = "yes/include"
23074then
23075	# User did not specify path and Postgres didn't say - guess it
23076	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
23077	for d in $pgdirs
23078	do
23079		if test -f $d/include/libpq-fe.h
23080		then
23081			use_dlz_postgres=$d/include
23082			use_dlz_postgres_lib=$d/lib
23083			break
23084		fi
23085	done
23086fi
23087
23088if test "$use_dlz_postgres" = "yes/include"
23089then
23090	# Still no joy, give up
23091
23092	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23093$as_echo "not found" >&6; }
23094	as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
23095fi
23096
23097case "$use_dlz_postgres" in
23098	no)
23099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23100$as_echo "no" >&6; }
23101		;;
23102	*)
23103
23104	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
23105	for i in dlz_postgres_driver
23106	do
23107		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23108		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23109	done
23110	if test -n "-I$use_dlz_postgres"
23111	then
23112		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
23113		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
23114	fi
23115	if test -n "-L$use_dlz_postgres_lib -lpq"
23116	then
23117		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
23118		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
23119	fi
23120
23121
23122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
23123$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
23124		;;
23125esac
23126
23127
23128#
23129# Was --with-dlz-mysql specified?
23130#
23131
23132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
23133$as_echo_n "checking for MySQL DLZ driver... " >&6; }
23134
23135# Check whether --with-dlz_mysql was given.
23136if test "${with_dlz_mysql+set}" = set; then :
23137  withval=$with_dlz_mysql; use_dlz_mysql="$withval"
23138else
23139  use_dlz_mysql="no"
23140fi
23141
23142
23143mysql_include=""
23144mysql_lib=""
23145if test "$use_dlz_mysql" = "yes"
23146then
23147	for ac_prog in mysql_config
23148do
23149  # Extract the first word of "$ac_prog", so it can be a program name with args.
23150set dummy $ac_prog; ac_word=$2
23151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23152$as_echo_n "checking for $ac_word... " >&6; }
23153if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
23154  $as_echo_n "(cached) " >&6
23155else
23156  if test -n "$MYSQL_CONFIG"; then
23157  ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
23158else
23159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23160for as_dir in $PATH
23161do
23162  IFS=$as_save_IFS
23163  test -z "$as_dir" && as_dir=.
23164    for ac_exec_ext in '' $ac_executable_extensions; do
23165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23166    ac_cv_prog_MYSQL_CONFIG="$ac_prog"
23167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23168    break 2
23169  fi
23170done
23171  done
23172IFS=$as_save_IFS
23173
23174fi
23175fi
23176MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
23177if test -n "$MYSQL_CONFIG"; then
23178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
23179$as_echo "$MYSQL_CONFIG" >&6; }
23180else
23181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23182$as_echo "no" >&6; }
23183fi
23184
23185
23186  test -n "$MYSQL_CONFIG" && break
23187done
23188
23189	if test -n "$MYSQL_CONFIG"
23190	then
23191		mysql_include=`${MYSQL_CONFIG} --include`
23192		mysql_lib=`${MYSQL_CONFIG} --libs`
23193		use_dlz_mysql="config"
23194
23195	else
23196		# User did not specify a path - guess it
23197		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
23198		for d in $mysqldirs
23199		do
23200			if test -f $d/include/mysql/mysql.h
23201			then
23202				use_dlz_mysql=$d
23203				mysql_include=$d/include/mysql
23204				break
23205			elif test -f $d/include/mysql.h
23206			then
23207				use_dlz_mysql=$d
23208				mysql_include=$d/include
23209				break
23210			fi
23211		done
23212	fi
23213elif test "$use_dlz_mysql" != "no"
23214then
23215	d=$use_dlz_mysql
23216	if test -f $d/include/mysql/mysql.h
23217	then
23218		mysql_include=$d/include/mysql
23219	elif test -f $d/include/mysql.h
23220	then
23221		mysql_include=$d/include
23222	fi
23223fi
23224
23225if test "$use_dlz_mysql" = "yes"
23226then
23227	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23228$as_echo "not found" >&6; }
23229	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
23230fi
23231
23232case "$use_dlz_mysql" in
23233	no)
23234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235$as_echo "no" >&6; }
23236		;;
23237	config)
23238
23239	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23240	for i in dlz_mysql_driver
23241	do
23242		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23243		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23244	done
23245	if test -n "${mysql_include}"
23246	then
23247		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
23248		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
23249	fi
23250	if test -n "${mysql_lib}"
23251	then
23252		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
23253		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
23254	fi
23255
23256
23257		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
23258$as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
23259		;;
23260	*)
23261		if test -d "$use_dlz_mysql/lib/mysql"
23262		then
23263			mysql_lib="$use_dlz_mysql/lib/mysql"
23264		else
23265			mysql_lib="$use_dlz_mysql/lib"
23266		fi
23267
23268	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
23269	for i in dlz_mysql_driver
23270	do
23271		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23272		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23273	done
23274	if test -n "-I${mysql_include}"
23275	then
23276		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
23277		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
23278	fi
23279	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23280	then
23281		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23282		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
23283	fi
23284
23285
23286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
23287$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
23288		;;
23289esac
23290
23291
23292#
23293# Was --with-dlz-bdb specified?
23294#
23295
23296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
23297$as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
23298
23299# Check whether --with-dlz_bdb was given.
23300if test "${with_dlz_bdb+set}" = set; then :
23301  withval=$with_dlz_bdb; use_dlz_bdb="$withval"
23302else
23303  use_dlz_bdb="no"
23304fi
23305
23306
23307case "$use_dlz_bdb" in
23308	no)
23309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23310$as_echo "no" >&6; }
23311		;;
23312	*)
23313		if test "$use_dlz_bdb" = "yes"
23314		then
23315			# User did not specify a path - guess directories
23316			bdbdirs="/usr/local /usr/pkg /usr"
23317		elif test -d "$use_dlz_bdb"
23318		then
23319			# User specified directory and it exists
23320			bdbdirs="$use_dlz_bdb"
23321		else
23322			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23323$as_echo "not found" >&6; }
23324			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
23325			bdbdirs=""
23326		fi
23327
23328		# Use path we were given or guessed.  This is insanely
23329		# complicated because we have to search for a bunch of
23330		# platform-specific variations and have to check
23331		# separately for include and library directories.
23332
23333		# Set both to yes, so we can check them later
23334		dlz_bdb_inc="yes"
23335		dlz_bdb_libs="yes"
23336
23337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23338$as_echo "" >&6; }
23339		for dd in $bdbdirs
23340		do
23341			# Skip nonexistent directories
23342			if test ! -d "$dd"
23343			then
23344				continue
23345			fi
23346
23347			# Check other locations for includes.
23348			# Order is important (sigh).
23349
23350			bdb_incdirs="/db6 /db5 /db48"
23351			# include a blank element first
23352			for d in "" $bdb_incdirs
23353			do
23354				if test -f "$dd/include${d}/db.h"
23355				then
23356					dlz_bdb_inc="-I$dd/include${d}"
23357					break
23358				fi
23359			done
23360
23361			# Give up on this directory if we couldn't
23362			# find the include subdir
23363
23364			if test "$dlz_bdb_inc" = "yes"
23365			then
23366				continue
23367			fi
23368
23369			# Look for libname other than libdb.so.
23370			# Order is important (sigh).
23371
23372			bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
23373			for d in $bdb_libnames
23374			do
23375				if test "$dd" = "/usr"
23376				then
23377					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
23378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
23379$as_echo_n "checking for db_create in -l$d... " >&6; }
23380if eval \${$as_ac_Lib+:} false; then :
23381  $as_echo_n "(cached) " >&6
23382else
23383  ac_check_lib_save_LIBS=$LIBS
23384LIBS="-l$d  $LIBS"
23385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23386/* end confdefs.h.  */
23387
23388/* Override any GCC internal prototype to avoid an error.
23389   Use char because int might match the return type of a GCC
23390   builtin and then its argument prototype would still apply.  */
23391#ifdef __cplusplus
23392extern "C"
23393#endif
23394char db_create ();
23395int
23396main ()
23397{
23398return db_create ();
23399  ;
23400  return 0;
23401}
23402_ACEOF
23403if ac_fn_c_try_link "$LINENO"; then :
23404  eval "$as_ac_Lib=yes"
23405else
23406  eval "$as_ac_Lib=no"
23407fi
23408rm -f core conftest.err conftest.$ac_objext \
23409    conftest$ac_exeext conftest.$ac_ext
23410LIBS=$ac_check_lib_save_LIBS
23411fi
23412eval ac_res=\$$as_ac_Lib
23413	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23414$as_echo "$ac_res" >&6; }
23415if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
23416  dlz_bdb_libs="-l${d}"
23417fi
23418
23419					if test $dlz_bdb_libs != "yes"
23420					then
23421						break
23422					fi
23423				elif test -f "$dd/lib/lib${d}.so"
23424				then
23425					dlz_bdb_libs="-L${dd}/lib -l${d}"
23426					break
23427				fi
23428			done
23429
23430			# If we found both incdir and lib, we're done
23431			if test "$dlz_bdb_libs" != "yes"
23432			then
23433				break
23434			fi
23435
23436			# Otherwise, we're starting over
23437
23438			dlz_bdb_inc="yes"
23439			dlz_bdb_libs="yes"
23440		done
23441
23442		# Done searching, now make sure we got everything.
23443
23444		if test "$dlz_bdb_inc" = "yes"
23445		then
23446			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
23447		fi
23448
23449		if test "$dlz_bdb_libs" = "yes"
23450		then
23451			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23452$as_echo "not found" >&6; }
23453			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
23454		fi
23455
23456
23457	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
23458	for i in dlz_bdb_driver dlz_bdbhpt_driver
23459	do
23460		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23461		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23462	done
23463	if test -n "$dlz_bdb_inc"
23464	then
23465		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
23466		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
23467	fi
23468	if test -n "$dlz_bdb_libs"
23469	then
23470		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
23471		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
23472	fi
23473
23474
23475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
23476$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
23477
23478		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
23479
23480		;;
23481esac
23482
23483
23484#
23485# Was --with-dlz-filesystem specified?
23486#
23487
23488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
23489$as_echo_n "checking for file system DLZ driver... " >&6; }
23490
23491# Check whether --with-dlz_filesystem was given.
23492if test "${with_dlz_filesystem+set}" = set; then :
23493  withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
23494else
23495  use_dlz_filesystem="no"
23496fi
23497
23498
23499case "$use_dlz_filesystem" in
23500	no)
23501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502$as_echo "no" >&6; }
23503		;;
23504	*)
23505
23506	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
23507	for i in dlz_filesystem_driver
23508	do
23509		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23510		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23511	done
23512	if test -n ""
23513	then
23514		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
23515		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
23516	fi
23517	if test -n ""
23518	then
23519		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
23520		DLZ_DRIVER_FILESYSTEM_LIBS=""
23521	fi
23522
23523		DLZ_SYSTEM_TEST=filesystem
23524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23525$as_echo "yes" >&6; }
23526		;;
23527esac
23528
23529
23530#
23531# Was --with-dlz-ldap specified?
23532#
23533
23534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
23535$as_echo_n "checking for LDAP DLZ driver... " >&6; }
23536
23537# Check whether --with-dlz_ldap was given.
23538if test "${with_dlz_ldap+set}" = set; then :
23539  withval=$with_dlz_ldap; use_dlz_ldap="$withval"
23540else
23541  use_dlz_ldap="no"
23542fi
23543
23544
23545if test "$use_dlz_ldap" = "yes"
23546then
23547	# User did not specify a path - guess it
23548	ldapdirs="/usr /usr/local /usr/pkg"
23549	for d in $ldapdirs
23550	do
23551		if test -f $d/include/ldap.h
23552		then
23553			use_dlz_ldap=$d
23554			break
23555		fi
23556	done
23557fi
23558
23559if test "$use_dlz_ldap" = "yes"
23560then
23561	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23562$as_echo "not found" >&6; }
23563	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
23564fi
23565
23566case "$use_dlz_ldap" in
23567	no)
23568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23569$as_echo "no" >&6; }
23570		;;
23571	*)
23572
23573	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
23574	for i in dlz_ldap_driver
23575	do
23576		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23577		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23578	done
23579	if test -n "-I$use_dlz_ldap/include"
23580	then
23581		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
23582		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
23583	fi
23584	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
23585	then
23586		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
23587		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
23588	fi
23589
23590
23591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
23592$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
23593		;;
23594esac
23595
23596
23597#
23598# Was --with-dlz-odbc specified?
23599#
23600
23601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
23602$as_echo_n "checking for ODBC DLZ driver... " >&6; }
23603
23604# Check whether --with-dlz_odbc was given.
23605if test "${with_dlz_odbc+set}" = set; then :
23606  withval=$with_dlz_odbc; use_dlz_odbc="$withval"
23607else
23608  use_dlz_odbc="no"
23609fi
23610
23611
23612if test "$use_dlz_odbc" = "yes"
23613then
23614	# User did not specify a path - guess it
23615	libodbc_found=no
23616	sql_h_found=no
23617	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
23618if test "x$ac_cv_header_sql_h" = xyes; then :
23619  sql_h_found=yes
23620fi
23621
23622
23623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
23624$as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
23625if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
23626  $as_echo_n "(cached) " >&6
23627else
23628  ac_check_lib_save_LIBS=$LIBS
23629LIBS="-lodbc  $LIBS"
23630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23631/* end confdefs.h.  */
23632
23633/* Override any GCC internal prototype to avoid an error.
23634   Use char because int might match the return type of a GCC
23635   builtin and then its argument prototype would still apply.  */
23636#ifdef __cplusplus
23637extern "C"
23638#endif
23639char SQLConnect ();
23640int
23641main ()
23642{
23643return SQLConnect ();
23644  ;
23645  return 0;
23646}
23647_ACEOF
23648if ac_fn_c_try_link "$LINENO"; then :
23649  ac_cv_lib_odbc_SQLConnect=yes
23650else
23651  ac_cv_lib_odbc_SQLConnect=no
23652fi
23653rm -f core conftest.err conftest.$ac_objext \
23654    conftest$ac_exeext conftest.$ac_ext
23655LIBS=$ac_check_lib_save_LIBS
23656fi
23657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
23658$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
23659if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
23660  libodbc_found=yes
23661fi
23662
23663
23664	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
23665	then
23666		use_dlz_odbc=system
23667		dlz_odbc_include=""
23668		dlz_odbc_libs="-lodbc"
23669	else
23670		odbcdirs="/usr /usr/local /usr/pkg"
23671		for d in $odbcdirs
23672		do
23673			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
23674			then
23675				use_dlz_odbc=$d
23676				dlz_odbc_include="-I$use_dlz_odbc/include"
23677				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
23678				break
23679			fi
23680		done
23681	fi
23682fi
23683
23684case "$use_dlz_odbc" in
23685	no)
23686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687$as_echo "no" >&6; }
23688		;;
23689	yes)
23690		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23691$as_echo "not found" >&6; }
23692		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
23693		;;
23694	*)
23695
23696	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
23697	for i in dlz_odbc_driver
23698	do
23699		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23700		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23701	done
23702	if test -n "$dlz_odbc_include"
23703	then
23704		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
23705		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
23706	fi
23707	if test -n "$dlz_odbc_libs"
23708	then
23709		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
23710		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
23711	fi
23712
23713
23714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
23715$as_echo "using ODBC from $use_dlz_odbc" >&6; }
23716		;;
23717esac
23718
23719
23720#
23721# Was --with-dlz-stub specified?
23722#
23723
23724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
23725$as_echo_n "checking for stub DLZ driver... " >&6; }
23726
23727# Check whether --with-dlz_stub was given.
23728if test "${with_dlz_stub+set}" = set; then :
23729  withval=$with_dlz_stub; use_dlz_stub="$withval"
23730else
23731  use_dlz_stub="no"
23732fi
23733
23734
23735case "$use_dlz_stub" in
23736	no)
23737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23738$as_echo "no" >&6; }
23739		;;
23740	*)
23741
23742
23743	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
23744	for i in dlz_stub_driver
23745	do
23746		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
23747		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
23748	done
23749	if test -n ""
23750	then
23751		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
23752		DLZ_DRIVER_STUB_INCLUDES=""
23753	fi
23754	if test -n ""
23755	then
23756		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
23757		DLZ_DRIVER_STUB_LIBS=""
23758	fi
23759
23760
23761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23762$as_echo "yes" >&6; }
23763		;;
23764esac
23765
23766# Add any additional DLZ drivers here.
23767
23768#
23769# Finally, some generic stuff that applies to all drivers, assuming
23770# we're compiling contrib DLZ drivers at all.
23771#
23772if test -n "$CONTRIB_DLZ"
23773then
23774	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
23775
23776	#
23777	# Where to find DLZ driver header files.
23778	#
23779	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
23780
23781	#
23782	# Initialization and shutdown wrappers, helper functions.
23783	#
23784	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
23785	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
23786fi
23787
23788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
23789$as_echo_n "checking contributed DLZ drivers... " >&6; }
23790
23791#
23792# Support for constructor and destructor attributes
23793#
23794
23795
23796
23797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
23798$as_echo_n "checking for __attribute__((constructor))... " >&6; }
23799if ${ax_cv_have_func_attribute_constructor+:} false; then :
23800  $as_echo_n "(cached) " >&6
23801else
23802
23803        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804/* end confdefs.h.  */
23805
23806
23807                    int foo( void ) __attribute__((constructor));
23808
23809int
23810main ()
23811{
23812
23813  ;
23814  return 0;
23815}
23816
23817_ACEOF
23818if ac_fn_c_try_link "$LINENO"; then :
23819                                      if test -s conftest.err; then :
23820  ax_cv_have_func_attribute_constructor=no
23821else
23822  ax_cv_have_func_attribute_constructor=yes
23823fi
23824else
23825  ax_cv_have_func_attribute_constructor=no
23826fi
23827rm -f core conftest.err conftest.$ac_objext \
23828    conftest$ac_exeext conftest.$ac_ext
23829
23830fi
23831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
23832$as_echo "$ax_cv_have_func_attribute_constructor" >&6; }
23833
23834    if test yes = $ax_cv_have_func_attribute_constructor; then :
23835
23836cat >>confdefs.h <<_ACEOF
23837#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1
23838_ACEOF
23839
23840fi
23841
23842
23843
23844
23845
23846
23847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
23848$as_echo_n "checking for __attribute__((destructor))... " >&6; }
23849if ${ax_cv_have_func_attribute_destructor+:} false; then :
23850  $as_echo_n "(cached) " >&6
23851else
23852
23853        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23854/* end confdefs.h.  */
23855
23856
23857                    int foo( void ) __attribute__((destructor));
23858
23859int
23860main ()
23861{
23862
23863  ;
23864  return 0;
23865}
23866
23867_ACEOF
23868if ac_fn_c_try_link "$LINENO"; then :
23869                                      if test -s conftest.err; then :
23870  ax_cv_have_func_attribute_destructor=no
23871else
23872  ax_cv_have_func_attribute_destructor=yes
23873fi
23874else
23875  ax_cv_have_func_attribute_destructor=no
23876fi
23877rm -f core conftest.err conftest.$ac_objext \
23878    conftest$ac_exeext conftest.$ac_ext
23879
23880fi
23881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
23882$as_echo "$ax_cv_have_func_attribute_destructor" >&6; }
23883
23884    if test yes = $ax_cv_have_func_attribute_destructor; then :
23885
23886cat >>confdefs.h <<_ACEOF
23887#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1
23888_ACEOF
23889
23890fi
23891
23892
23893
23894
23895if test -n "$CONTRIB_DLZ"
23896then
23897	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23898$as_echo "yes" >&6; }
23899	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
23900	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
23901
23902else
23903	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23904$as_echo "no" >&6; }
23905	DLZ_DRIVER_RULES=/dev/null
23906fi
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918if test "yes" = "$cross_compiling"; then
23919	if test -z "$BUILD_CC"; then
23920		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
23921	fi
23922	BUILD_CFLAGS="$BUILD_CFLAGS"
23923	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
23924	BUILD_LDFLAGS="$BUILD_LDFLAGS"
23925	BUILD_LIBS="$BUILD_LIBS"
23926else
23927	BUILD_CC="$CC"
23928	BUILD_CFLAGS="$CFLAGS"
23929	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
23930	BUILD_LDFLAGS="$LDFLAGS"
23931	BUILD_LIBS="$LIBS"
23932fi
23933
23934NEWFLAGS=""
23935for e in $BUILD_LDFLAGS ; do
23936    case $e in
23937	-L*)
23938	    case $host_os in
23939		netbsd*)
23940		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23941		    NEWFLAGS="$NEWFLAGS $e $ee"
23942		    ;;
23943		freebsd*)
23944		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23945		    NEWFLAGS="$NEWFLAGS $e $ee"
23946		    ;;
23947		solaris*)
23948		    ee=`echo $e | sed -e 's%^-L%-R%'`
23949		    NEWFLAGS="$NEWFLAGS $e $ee"
23950		    ;;
23951		*)
23952		    NEWFLAGS="$NEWFLAGS $e"
23953		    ;;
23954		esac
23955	    ;;
23956	*)
23957	    NEWFLAGS="$NEWFLAGS $e"
23958	    ;;
23959    esac
23960done
23961BUILD_LDFLAGS="$NEWFLAGS"
23962
23963NEWFLAGS=""
23964for e in $DNS_GSSAPI_LIBS ; do
23965    case $e in
23966	-L*)
23967	    case $host_os in
23968		netbsd*)
23969		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23970		    NEWFLAGS="$NEWFLAGS $e $ee"
23971		    ;;
23972		freebsd*)
23973		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23974		    NEWFLAGS="$NEWFLAGS $e $ee"
23975		    ;;
23976		solaris*)
23977		    ee=`echo $e | sed -e 's%^-L%-R%'`
23978		    NEWFLAGS="$NEWFLAGS $e $ee"
23979		    ;;
23980		*)
23981		    NEWFLAGS="$NEWFLAGS $e"
23982		    ;;
23983		esac
23984	    ;;
23985	*)
23986	    NEWFLAGS="$NEWFLAGS $e"
23987	    ;;
23988    esac
23989done
23990DNS_GSSAPI_LIBS="$NEWFLAGS"
23991
23992NEWFLAGS=""
23993for e in $ISC_OPENSSL_LIBS ; do
23994    case $e in
23995	-L*)
23996	    case $host_os in
23997		netbsd*)
23998		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
23999		    NEWFLAGS="$NEWFLAGS $e $ee"
24000		    ;;
24001		freebsd*)
24002		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24003		    NEWFLAGS="$NEWFLAGS $e $ee"
24004		    ;;
24005		solaris*)
24006		    ee=`echo $e | sed -e 's%^-L%-R%'`
24007		    NEWFLAGS="$NEWFLAGS $e $ee"
24008		    ;;
24009		*)
24010		    NEWFLAGS="$NEWFLAGS $e"
24011		    ;;
24012		esac
24013	    ;;
24014	*)
24015	    NEWFLAGS="$NEWFLAGS $e"
24016	    ;;
24017    esac
24018done
24019ISC_OPENSSL_LIBS="$NEWFLAGS"
24020
24021NEWFLAGS=""
24022for e in $DNS_CRYPTO_LIBS ; do
24023    case $e in
24024	-L*)
24025	    case $host_os in
24026		netbsd*)
24027		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24028		    NEWFLAGS="$NEWFLAGS $e $ee"
24029		    ;;
24030		freebsd*)
24031		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
24032		    NEWFLAGS="$NEWFLAGS $e $ee"
24033		    ;;
24034		solaris*)
24035		    ee=`echo $e | sed -e 's%^-L%-R%'`
24036		    NEWFLAGS="$NEWFLAGS $e $ee"
24037		    ;;
24038		*)
24039		    NEWFLAGS="$NEWFLAGS $e"
24040		    ;;
24041		esac
24042	    ;;
24043	*)
24044	    NEWFLAGS="$NEWFLAGS $e"
24045	    ;;
24046    esac
24047done
24048DNS_CRYPTO_LIBS="$NEWFLAGS"
24049
24050
24051
24052
24053
24054
24055
24056#
24057# Commands to run at the end of config.status.
24058# Don't just put these into configure, it won't work right if somebody
24059# runs config.status directly (which autoconf allows).
24060#
24061
24062ac_config_commands="$ac_config_commands chmod"
24063
24064
24065#
24066# Files to configure.  These are listed here because we used to
24067# specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
24068# elsewhere if there's a good reason for doing so.
24069#
24070
24071ac_config_files="$ac_config_files Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/plugins/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/man/Makefile doc/misc/Makefile fuzz/Makefile lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/netmgr/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/Makefile lib/ns/Makefile lib/ns/include/Makefile lib/ns/include/ns/Makefile lib/ns/tests/Makefile make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
24072
24073
24074#
24075# Do it
24076#
24077
24078cat >confcache <<\_ACEOF
24079# This file is a shell script that caches the results of configure
24080# tests run on this system so they can be shared between configure
24081# scripts and configure runs, see configure's option --config-cache.
24082# It is not useful on other systems.  If it contains results you don't
24083# want to keep, you may remove or edit it.
24084#
24085# config.status only pays attention to the cache file if you give it
24086# the --recheck option to rerun configure.
24087#
24088# `ac_cv_env_foo' variables (set or unset) will be overridden when
24089# loading this file, other *unset* `ac_cv_foo' will be assigned the
24090# following values.
24091
24092_ACEOF
24093
24094# The following way of writing the cache mishandles newlines in values,
24095# but we know of no workaround that is simple, portable, and efficient.
24096# So, we kill variables containing newlines.
24097# Ultrix sh set writes to stderr and can't be redirected directly,
24098# and sets the high bit in the cache file unless we assign to the vars.
24099(
24100  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24101    eval ac_val=\$$ac_var
24102    case $ac_val in #(
24103    *${as_nl}*)
24104      case $ac_var in #(
24105      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24107      esac
24108      case $ac_var in #(
24109      _ | IFS | as_nl) ;; #(
24110      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24111      *) { eval $ac_var=; unset $ac_var;} ;;
24112      esac ;;
24113    esac
24114  done
24115
24116  (set) 2>&1 |
24117    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24118    *${as_nl}ac_space=\ *)
24119      # `set' does not quote correctly, so add quotes: double-quote
24120      # substitution turns \\\\ into \\, and sed turns \\ into \.
24121      sed -n \
24122	"s/'/'\\\\''/g;
24123	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24124      ;; #(
24125    *)
24126      # `set' quotes correctly as required by POSIX, so do not add quotes.
24127      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24128      ;;
24129    esac |
24130    sort
24131) |
24132  sed '
24133     /^ac_cv_env_/b end
24134     t clear
24135     :clear
24136     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24137     t end
24138     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24139     :end' >>confcache
24140if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24141  if test -w "$cache_file"; then
24142    if test "x$cache_file" != "x/dev/null"; then
24143      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24144$as_echo "$as_me: updating cache $cache_file" >&6;}
24145      if test ! -f "$cache_file" || test -h "$cache_file"; then
24146	cat confcache >"$cache_file"
24147      else
24148        case $cache_file in #(
24149        */* | ?:*)
24150	  mv -f confcache "$cache_file"$$ &&
24151	  mv -f "$cache_file"$$ "$cache_file" ;; #(
24152        *)
24153	  mv -f confcache "$cache_file" ;;
24154	esac
24155      fi
24156    fi
24157  else
24158    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24160  fi
24161fi
24162rm -f confcache
24163
24164test "x$prefix" = xNONE && prefix=$ac_default_prefix
24165# Let make expand exec_prefix.
24166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24167
24168DEFS=-DHAVE_CONFIG_H
24169
24170ac_libobjs=
24171ac_ltlibobjs=
24172U=
24173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24174  # 1. Remove the extension, and $U if already installed.
24175  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24176  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24177  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24178  #    will be set to the directory where LIBOBJS objects are built.
24179  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24180  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24181done
24182LIBOBJS=$ac_libobjs
24183
24184LTLIBOBJS=$ac_ltlibobjs
24185
24186
24187if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24188  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24189Usually this means the macro was only invoked conditionally." "$LINENO" 5
24190fi
24191
24192if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
24193  as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
24194Usually this means the macro was only invoked conditionally." "$LINENO" 5
24195fi
24196if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
24197  as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
24198Usually this means the macro was only invoked conditionally." "$LINENO" 5
24199fi
24200
24201: "${CONFIG_STATUS=./config.status}"
24202ac_write_fail=0
24203ac_clean_files_save=$ac_clean_files
24204ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24205{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24206$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24207as_write_fail=0
24208cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24209#! $SHELL
24210# Generated by $as_me.
24211# Run this file to recreate the current configuration.
24212# Compiler output produced by configure, useful for debugging
24213# configure, is in config.log if it exists.
24214
24215debug=false
24216ac_cs_recheck=false
24217ac_cs_silent=false
24218
24219SHELL=\${CONFIG_SHELL-$SHELL}
24220export SHELL
24221_ASEOF
24222cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24223## -------------------- ##
24224## M4sh Initialization. ##
24225## -------------------- ##
24226
24227# Be more Bourne compatible
24228DUALCASE=1; export DUALCASE # for MKS sh
24229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24230  emulate sh
24231  NULLCMD=:
24232  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24233  # is contrary to our usage.  Disable this feature.
24234  alias -g '${1+"$@"}'='"$@"'
24235  setopt NO_GLOB_SUBST
24236else
24237  case `(set -o) 2>/dev/null` in #(
24238  *posix*) :
24239    set -o posix ;; #(
24240  *) :
24241     ;;
24242esac
24243fi
24244
24245
24246as_nl='
24247'
24248export as_nl
24249# Printing a long string crashes Solaris 7 /usr/bin/printf.
24250as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24253# Prefer a ksh shell builtin over an external printf program on Solaris,
24254# but without wasting forks for bash or zsh.
24255if test -z "$BASH_VERSION$ZSH_VERSION" \
24256    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24257  as_echo='print -r --'
24258  as_echo_n='print -rn --'
24259elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24260  as_echo='printf %s\n'
24261  as_echo_n='printf %s'
24262else
24263  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24264    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24265    as_echo_n='/usr/ucb/echo -n'
24266  else
24267    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24268    as_echo_n_body='eval
24269      arg=$1;
24270      case $arg in #(
24271      *"$as_nl"*)
24272	expr "X$arg" : "X\\(.*\\)$as_nl";
24273	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24274      esac;
24275      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24276    '
24277    export as_echo_n_body
24278    as_echo_n='sh -c $as_echo_n_body as_echo'
24279  fi
24280  export as_echo_body
24281  as_echo='sh -c $as_echo_body as_echo'
24282fi
24283
24284# The user is always right.
24285if test "${PATH_SEPARATOR+set}" != set; then
24286  PATH_SEPARATOR=:
24287  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24288    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24289      PATH_SEPARATOR=';'
24290  }
24291fi
24292
24293
24294# IFS
24295# We need space, tab and new line, in precisely that order.  Quoting is
24296# there to prevent editors from complaining about space-tab.
24297# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24298# splitting by setting IFS to empty value.)
24299IFS=" ""	$as_nl"
24300
24301# Find who we are.  Look in the path if we contain no directory separator.
24302as_myself=
24303case $0 in #((
24304  *[\\/]* ) as_myself=$0 ;;
24305  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24306for as_dir in $PATH
24307do
24308  IFS=$as_save_IFS
24309  test -z "$as_dir" && as_dir=.
24310    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24311  done
24312IFS=$as_save_IFS
24313
24314     ;;
24315esac
24316# We did not find ourselves, most probably we were run as `sh COMMAND'
24317# in which case we are not to be found in the path.
24318if test "x$as_myself" = x; then
24319  as_myself=$0
24320fi
24321if test ! -f "$as_myself"; then
24322  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24323  exit 1
24324fi
24325
24326# Unset variables that we do not need and which cause bugs (e.g. in
24327# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24328# suppresses any "Segmentation fault" message there.  '((' could
24329# trigger a bug in pdksh 5.2.14.
24330for as_var in BASH_ENV ENV MAIL MAILPATH
24331do eval test x\${$as_var+set} = xset \
24332  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24333done
24334PS1='$ '
24335PS2='> '
24336PS4='+ '
24337
24338# NLS nuisances.
24339LC_ALL=C
24340export LC_ALL
24341LANGUAGE=C
24342export LANGUAGE
24343
24344# CDPATH.
24345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24346
24347
24348# as_fn_error STATUS ERROR [LINENO LOG_FD]
24349# ----------------------------------------
24350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24352# script with STATUS, using 1 if that was 0.
24353as_fn_error ()
24354{
24355  as_status=$1; test $as_status -eq 0 && as_status=1
24356  if test "$4"; then
24357    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24358    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24359  fi
24360  $as_echo "$as_me: error: $2" >&2
24361  as_fn_exit $as_status
24362} # as_fn_error
24363
24364
24365# as_fn_set_status STATUS
24366# -----------------------
24367# Set $? to STATUS, without forking.
24368as_fn_set_status ()
24369{
24370  return $1
24371} # as_fn_set_status
24372
24373# as_fn_exit STATUS
24374# -----------------
24375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24376as_fn_exit ()
24377{
24378  set +e
24379  as_fn_set_status $1
24380  exit $1
24381} # as_fn_exit
24382
24383# as_fn_unset VAR
24384# ---------------
24385# Portably unset VAR.
24386as_fn_unset ()
24387{
24388  { eval $1=; unset $1;}
24389}
24390as_unset=as_fn_unset
24391# as_fn_append VAR VALUE
24392# ----------------------
24393# Append the text in VALUE to the end of the definition contained in VAR. Take
24394# advantage of any shell optimizations that allow amortized linear growth over
24395# repeated appends, instead of the typical quadratic growth present in naive
24396# implementations.
24397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24398  eval 'as_fn_append ()
24399  {
24400    eval $1+=\$2
24401  }'
24402else
24403  as_fn_append ()
24404  {
24405    eval $1=\$$1\$2
24406  }
24407fi # as_fn_append
24408
24409# as_fn_arith ARG...
24410# ------------------
24411# Perform arithmetic evaluation on the ARGs, and store the result in the
24412# global $as_val. Take advantage of shells that can avoid forks. The arguments
24413# must be portable across $(()) and expr.
24414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24415  eval 'as_fn_arith ()
24416  {
24417    as_val=$(( $* ))
24418  }'
24419else
24420  as_fn_arith ()
24421  {
24422    as_val=`expr "$@" || test $? -eq 1`
24423  }
24424fi # as_fn_arith
24425
24426
24427if expr a : '\(a\)' >/dev/null 2>&1 &&
24428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24429  as_expr=expr
24430else
24431  as_expr=false
24432fi
24433
24434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24435  as_basename=basename
24436else
24437  as_basename=false
24438fi
24439
24440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24441  as_dirname=dirname
24442else
24443  as_dirname=false
24444fi
24445
24446as_me=`$as_basename -- "$0" ||
24447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24448	 X"$0" : 'X\(//\)$' \| \
24449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24450$as_echo X/"$0" |
24451    sed '/^.*\/\([^/][^/]*\)\/*$/{
24452	    s//\1/
24453	    q
24454	  }
24455	  /^X\/\(\/\/\)$/{
24456	    s//\1/
24457	    q
24458	  }
24459	  /^X\/\(\/\).*/{
24460	    s//\1/
24461	    q
24462	  }
24463	  s/.*/./; q'`
24464
24465# Avoid depending upon Character Ranges.
24466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24469as_cr_digits='0123456789'
24470as_cr_alnum=$as_cr_Letters$as_cr_digits
24471
24472ECHO_C= ECHO_N= ECHO_T=
24473case `echo -n x` in #(((((
24474-n*)
24475  case `echo 'xy\c'` in
24476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24477  xy)  ECHO_C='\c';;
24478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
24479       ECHO_T='	';;
24480  esac;;
24481*)
24482  ECHO_N='-n';;
24483esac
24484
24485rm -f conf$$ conf$$.exe conf$$.file
24486if test -d conf$$.dir; then
24487  rm -f conf$$.dir/conf$$.file
24488else
24489  rm -f conf$$.dir
24490  mkdir conf$$.dir 2>/dev/null
24491fi
24492if (echo >conf$$.file) 2>/dev/null; then
24493  if ln -s conf$$.file conf$$ 2>/dev/null; then
24494    as_ln_s='ln -s'
24495    # ... but there are two gotchas:
24496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24498    # In both cases, we have to default to `cp -pR'.
24499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24500      as_ln_s='cp -pR'
24501  elif ln conf$$.file conf$$ 2>/dev/null; then
24502    as_ln_s=ln
24503  else
24504    as_ln_s='cp -pR'
24505  fi
24506else
24507  as_ln_s='cp -pR'
24508fi
24509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24510rmdir conf$$.dir 2>/dev/null
24511
24512
24513# as_fn_mkdir_p
24514# -------------
24515# Create "$as_dir" as a directory, including parents if necessary.
24516as_fn_mkdir_p ()
24517{
24518
24519  case $as_dir in #(
24520  -*) as_dir=./$as_dir;;
24521  esac
24522  test -d "$as_dir" || eval $as_mkdir_p || {
24523    as_dirs=
24524    while :; do
24525      case $as_dir in #(
24526      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24527      *) as_qdir=$as_dir;;
24528      esac
24529      as_dirs="'$as_qdir' $as_dirs"
24530      as_dir=`$as_dirname -- "$as_dir" ||
24531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532	 X"$as_dir" : 'X\(//\)[^/]' \| \
24533	 X"$as_dir" : 'X\(//\)$' \| \
24534	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24535$as_echo X"$as_dir" |
24536    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24537	    s//\1/
24538	    q
24539	  }
24540	  /^X\(\/\/\)[^/].*/{
24541	    s//\1/
24542	    q
24543	  }
24544	  /^X\(\/\/\)$/{
24545	    s//\1/
24546	    q
24547	  }
24548	  /^X\(\/\).*/{
24549	    s//\1/
24550	    q
24551	  }
24552	  s/.*/./; q'`
24553      test -d "$as_dir" && break
24554    done
24555    test -z "$as_dirs" || eval "mkdir $as_dirs"
24556  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24557
24558
24559} # as_fn_mkdir_p
24560if mkdir -p . 2>/dev/null; then
24561  as_mkdir_p='mkdir -p "$as_dir"'
24562else
24563  test -d ./-p && rmdir ./-p
24564  as_mkdir_p=false
24565fi
24566
24567
24568# as_fn_executable_p FILE
24569# -----------------------
24570# Test if FILE is an executable regular file.
24571as_fn_executable_p ()
24572{
24573  test -f "$1" && test -x "$1"
24574} # as_fn_executable_p
24575as_test_x='test -x'
24576as_executable_p=as_fn_executable_p
24577
24578# Sed expression to map a string onto a valid CPP name.
24579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24580
24581# Sed expression to map a string onto a valid variable name.
24582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24583
24584
24585exec 6>&1
24586## ----------------------------------- ##
24587## Main body of $CONFIG_STATUS script. ##
24588## ----------------------------------- ##
24589_ASEOF
24590test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24591
24592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24593# Save the log message, to keep $0 and so on meaningful, and to
24594# report actual input values of CONFIG_FILES etc. instead of their
24595# values after options handling.
24596ac_log="
24597This file was extended by BIND $as_me 9.16, which was
24598generated by GNU Autoconf 2.69.  Invocation command line was
24599
24600  CONFIG_FILES    = $CONFIG_FILES
24601  CONFIG_HEADERS  = $CONFIG_HEADERS
24602  CONFIG_LINKS    = $CONFIG_LINKS
24603  CONFIG_COMMANDS = $CONFIG_COMMANDS
24604  $ $0 $@
24605
24606on `(hostname || uname -n) 2>/dev/null | sed 1q`
24607"
24608
24609_ACEOF
24610
24611case $ac_config_files in *"
24612"*) set x $ac_config_files; shift; ac_config_files=$*;;
24613esac
24614
24615case $ac_config_headers in *"
24616"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24617esac
24618
24619
24620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24621# Files that config.status was made for.
24622config_files="$ac_config_files"
24623config_headers="$ac_config_headers"
24624config_commands="$ac_config_commands"
24625
24626_ACEOF
24627
24628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24629ac_cs_usage="\
24630\`$as_me' instantiates files and other configuration actions
24631from templates according to the current configuration.  Unless the files
24632and actions are specified as TAGs, all are instantiated by default.
24633
24634Usage: $0 [OPTION]... [TAG]...
24635
24636  -h, --help       print this help, then exit
24637  -V, --version    print version number and configuration settings, then exit
24638      --config     print configuration, then exit
24639  -q, --quiet, --silent
24640                   do not print progress messages
24641  -d, --debug      don't remove temporary files
24642      --recheck    update $as_me by reconfiguring in the same conditions
24643      --file=FILE[:TEMPLATE]
24644                   instantiate the configuration file FILE
24645      --header=FILE[:TEMPLATE]
24646                   instantiate the configuration header FILE
24647
24648Configuration files:
24649$config_files
24650
24651Configuration headers:
24652$config_headers
24653
24654Configuration commands:
24655$config_commands
24656
24657Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
24658BIND home page: <https://www.isc.org/downloads/>."
24659
24660_ACEOF
24661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24662ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24663ac_cs_version="\\
24664BIND config.status 9.16
24665configured by $0, generated by GNU Autoconf 2.69,
24666  with options \\"\$ac_cs_config\\"
24667
24668Copyright (C) 2012 Free Software Foundation, Inc.
24669This config.status script is free software; the Free Software Foundation
24670gives unlimited permission to copy, distribute and modify it."
24671
24672ac_pwd='$ac_pwd'
24673srcdir='$srcdir'
24674INSTALL='$INSTALL'
24675MKDIR_P='$MKDIR_P'
24676AWK='$AWK'
24677test -n "\$AWK" || AWK=awk
24678_ACEOF
24679
24680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24681# The default lists apply if the user does not specify any file.
24682ac_need_defaults=:
24683while test $# != 0
24684do
24685  case $1 in
24686  --*=?*)
24687    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24688    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24689    ac_shift=:
24690    ;;
24691  --*=)
24692    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24693    ac_optarg=
24694    ac_shift=:
24695    ;;
24696  *)
24697    ac_option=$1
24698    ac_optarg=$2
24699    ac_shift=shift
24700    ;;
24701  esac
24702
24703  case $ac_option in
24704  # Handling of the options.
24705  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24706    ac_cs_recheck=: ;;
24707  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24708    $as_echo "$ac_cs_version"; exit ;;
24709  --config | --confi | --conf | --con | --co | --c )
24710    $as_echo "$ac_cs_config"; exit ;;
24711  --debug | --debu | --deb | --de | --d | -d )
24712    debug=: ;;
24713  --file | --fil | --fi | --f )
24714    $ac_shift
24715    case $ac_optarg in
24716    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24717    '') as_fn_error $? "missing file argument" ;;
24718    esac
24719    as_fn_append CONFIG_FILES " '$ac_optarg'"
24720    ac_need_defaults=false;;
24721  --header | --heade | --head | --hea )
24722    $ac_shift
24723    case $ac_optarg in
24724    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24725    esac
24726    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24727    ac_need_defaults=false;;
24728  --he | --h)
24729    # Conflict between --help and --header
24730    as_fn_error $? "ambiguous option: \`$1'
24731Try \`$0 --help' for more information.";;
24732  --help | --hel | -h )
24733    $as_echo "$ac_cs_usage"; exit ;;
24734  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24735  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24736    ac_cs_silent=: ;;
24737
24738  # This is an error.
24739  -*) as_fn_error $? "unrecognized option: \`$1'
24740Try \`$0 --help' for more information." ;;
24741
24742  *) as_fn_append ac_config_targets " $1"
24743     ac_need_defaults=false ;;
24744
24745  esac
24746  shift
24747done
24748
24749ac_configure_extra_args=
24750
24751if $ac_cs_silent; then
24752  exec 6>/dev/null
24753  ac_configure_extra_args="$ac_configure_extra_args --silent"
24754fi
24755
24756_ACEOF
24757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24758if \$ac_cs_recheck; then
24759  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24760  shift
24761  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24762  CONFIG_SHELL='$SHELL'
24763  export CONFIG_SHELL
24764  exec "\$@"
24765fi
24766
24767_ACEOF
24768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24769exec 5>>config.log
24770{
24771  echo
24772  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24773## Running $as_me. ##
24774_ASBOX
24775  $as_echo "$ac_log"
24776} >&5
24777
24778_ACEOF
24779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24780#
24781# INIT-COMMANDS
24782#
24783
24784
24785# The HP-UX ksh and POSIX shell print the target directory to stdout
24786# if CDPATH is set.
24787(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24788
24789sed_quote_subst='$sed_quote_subst'
24790double_quote_subst='$double_quote_subst'
24791delay_variable_subst='$delay_variable_subst'
24792macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24793macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24794enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24795enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24796pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24797enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24798shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24799SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24800ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24801PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24802host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24803host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24804host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24805build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24806build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24807build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24808SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24809Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24810GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24811EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24812FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24814NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24815LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24816max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24817ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24818exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24819lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24820lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24821lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24822lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24823lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24824reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24825reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24826OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24827deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24828file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24829file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24830want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24831DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24832sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24833AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24834AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24835archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24836STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24837RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24838old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24839old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24840old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24841lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24842CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24843CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24844compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24845GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24846lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24847lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24848lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24849lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24850lt_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"`'
24851lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24852nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24853lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24854lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24855objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24856MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24857lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24858lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24859lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24860lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24861lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24862need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24863MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24864DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24865NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24866LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24867OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24868OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24869libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24870shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24871extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24872archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24873enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24874export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24875whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24876compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24877old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24878old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24879archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24880archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24881module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24882module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24883with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24884allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24885no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24886hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24887hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24888hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24889hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24890hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24891hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24892hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24893inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24894link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24895always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24896export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24897exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24898include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24899prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24900postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24901file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24902variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24903need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24904need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24905version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24906runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24907shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24908shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24909libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24910library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24911soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24912install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24913postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24914postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24915finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24916finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24917hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24918sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24919configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24920configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24921hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24922enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24923enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24924enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24925old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24926striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24927
24928LTCC='$LTCC'
24929LTCFLAGS='$LTCFLAGS'
24930compiler='$compiler_DEFAULT'
24931
24932# A function that is used when there is no print builtin or printf.
24933func_fallback_echo ()
24934{
24935  eval 'cat <<_LTECHO_EOF
24936\$1
24937_LTECHO_EOF'
24938}
24939
24940# Quote evaled strings.
24941for var in SHELL \
24942ECHO \
24943PATH_SEPARATOR \
24944SED \
24945GREP \
24946EGREP \
24947FGREP \
24948LD \
24949NM \
24950LN_S \
24951lt_SP2NL \
24952lt_NL2SP \
24953reload_flag \
24954OBJDUMP \
24955deplibs_check_method \
24956file_magic_cmd \
24957file_magic_glob \
24958want_nocaseglob \
24959DLLTOOL \
24960sharedlib_from_linklib_cmd \
24961AR \
24962AR_FLAGS \
24963archiver_list_spec \
24964STRIP \
24965RANLIB \
24966CC \
24967CFLAGS \
24968compiler \
24969lt_cv_sys_global_symbol_pipe \
24970lt_cv_sys_global_symbol_to_cdecl \
24971lt_cv_sys_global_symbol_to_import \
24972lt_cv_sys_global_symbol_to_c_name_address \
24973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24974lt_cv_nm_interface \
24975nm_file_list_spec \
24976lt_cv_truncate_bin \
24977lt_prog_compiler_no_builtin_flag \
24978lt_prog_compiler_pic \
24979lt_prog_compiler_wl \
24980lt_prog_compiler_static \
24981lt_cv_prog_compiler_c_o \
24982need_locks \
24983MANIFEST_TOOL \
24984DSYMUTIL \
24985NMEDIT \
24986LIPO \
24987OTOOL \
24988OTOOL64 \
24989shrext_cmds \
24990export_dynamic_flag_spec \
24991whole_archive_flag_spec \
24992compiler_needs_object \
24993with_gnu_ld \
24994allow_undefined_flag \
24995no_undefined_flag \
24996hardcode_libdir_flag_spec \
24997hardcode_libdir_separator \
24998exclude_expsyms \
24999include_expsyms \
25000file_list_spec \
25001variables_saved_for_relink \
25002libname_spec \
25003library_names_spec \
25004soname_spec \
25005install_override_mode \
25006finish_eval \
25007old_striplib \
25008striplib; do
25009    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25010    *[\\\\\\\`\\"\\\$]*)
25011      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25012      ;;
25013    *)
25014      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25015      ;;
25016    esac
25017done
25018
25019# Double-quote double-evaled strings.
25020for var in reload_cmds \
25021old_postinstall_cmds \
25022old_postuninstall_cmds \
25023old_archive_cmds \
25024extract_expsyms_cmds \
25025old_archive_from_new_cmds \
25026old_archive_from_expsyms_cmds \
25027archive_cmds \
25028archive_expsym_cmds \
25029module_cmds \
25030module_expsym_cmds \
25031export_symbols_cmds \
25032prelink_cmds \
25033postlink_cmds \
25034postinstall_cmds \
25035postuninstall_cmds \
25036finish_cmds \
25037sys_lib_search_path_spec \
25038configure_time_dlsearch_path \
25039configure_time_lt_sys_library_path; do
25040    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25041    *[\\\\\\\`\\"\\\$]*)
25042      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
25043      ;;
25044    *)
25045      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25046      ;;
25047    esac
25048done
25049
25050ac_aux_dir='$ac_aux_dir'
25051
25052# See if we are running on zsh, and set the options that allow our
25053# commands through without removal of \ escapes INIT.
25054if test -n "\${ZSH_VERSION+set}"; then
25055   setopt NO_GLOB_SUBST
25056fi
25057
25058
25059    PACKAGE='$PACKAGE'
25060    VERSION='$VERSION'
25061    RM='$RM'
25062    ofile='$ofile'
25063
25064
25065
25066
25067_ACEOF
25068
25069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25070
25071# Handling of arguments.
25072for ac_config_target in $ac_config_targets
25073do
25074  case $ac_config_target in
25075    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25076    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25077    "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
25078    "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
25079    "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
25080    "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
25081    "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
25082    "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
25083    "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
25084    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25085    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
25086    "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
25087    "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
25088    "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
25089    "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
25090    "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
25091    "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
25092    "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
25093    "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
25094    "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
25095    "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
25096    "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
25097    "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
25098    "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
25099    "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
25100    "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
25101    "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
25102    "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
25103    "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
25104    "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
25105    "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
25106    "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
25107    "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
25108    "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
25109    "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
25110    "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
25111    "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
25112    "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
25113    "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
25114    "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
25115    "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
25116    "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
25117    "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
25118    "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
25119    "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
25120    "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
25121    "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
25122    "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
25123    "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
25124    "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
25125    "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
25126    "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
25127    "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
25128    "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
25129    "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
25130    "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
25131    "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
25132    "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
25133    "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
25134    "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
25135    "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
25136    "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
25137    "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
25138    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25139    "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
25140    "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
25141    "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
25142    "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
25143    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
25144    "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25145    "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
25146    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25147    "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
25148    "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
25149    "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
25150    "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
25151    "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
25152    "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
25153    "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
25154    "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
25155    "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
25156    "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
25157    "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
25158    "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
25159    "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
25160    "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
25161    "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
25162    "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
25163    "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
25164    "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
25165    "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
25166    "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
25167    "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
25168    "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
25169    "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
25170    "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
25171    "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
25172    "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
25173    "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
25174    "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
25175    "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
25176    "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
25177    "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
25178    "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
25179    "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
25180    "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
25181    "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
25182    "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
25183    "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
25184    "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
25185    "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
25186    "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
25187    "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
25188    "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
25189    "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
25190    "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
25191
25192  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25193  esac
25194done
25195
25196
25197# If the user did not use the arguments to specify the items to instantiate,
25198# then the envvar interface is used.  Set only those that are not.
25199# We use the long form for the default assignment because of an extremely
25200# bizarre bug on SunOS 4.1.3.
25201if $ac_need_defaults; then
25202  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25203  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25204  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25205fi
25206
25207# Have a temporary directory for convenience.  Make it in the build tree
25208# simply because there is no reason against having it here, and in addition,
25209# creating and moving files from /tmp can sometimes cause problems.
25210# Hook for its removal unless debugging.
25211# Note that there is a small window in which the directory will not be cleaned:
25212# after its creation but before its name has been assigned to `$tmp'.
25213$debug ||
25214{
25215  tmp= ac_tmp=
25216  trap 'exit_status=$?
25217  : "${ac_tmp:=$tmp}"
25218  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25219' 0
25220  trap 'as_fn_exit 1' 1 2 13 15
25221}
25222# Create a (secure) tmp directory for tmp files.
25223
25224{
25225  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25226  test -d "$tmp"
25227}  ||
25228{
25229  tmp=./conf$$-$RANDOM
25230  (umask 077 && mkdir "$tmp")
25231} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25232ac_tmp=$tmp
25233
25234# Set up the scripts for CONFIG_FILES section.
25235# No need to generate them if there are no CONFIG_FILES.
25236# This happens for instance with `./config.status config.h'.
25237if test -n "$CONFIG_FILES"; then
25238
25239if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25240  ac_cs_awk_getline=:
25241  ac_cs_awk_pipe_init=
25242  ac_cs_awk_read_file='
25243      while ((getline aline < (F[key])) > 0)
25244	print(aline)
25245      close(F[key])'
25246  ac_cs_awk_pipe_fini=
25247else
25248  ac_cs_awk_getline=false
25249  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25250  ac_cs_awk_read_file='
25251      print "|#_!!_#|"
25252      print "cat " F[key] " &&"
25253      '$ac_cs_awk_pipe_init
25254  # The final `:' finishes the AND list.
25255  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25256fi
25257ac_cr=`echo X | tr X '\015'`
25258# On cygwin, bash can eat \r inside `` if the user requested igncr.
25259# But we know of no other shell where ac_cr would be empty at this
25260# point, so we can use a bashism as a fallback.
25261if test "x$ac_cr" = x; then
25262  eval ac_cr=\$\'\\r\'
25263fi
25264ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25265if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25266  ac_cs_awk_cr='\\r'
25267else
25268  ac_cs_awk_cr=$ac_cr
25269fi
25270
25271echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25272_ACEOF
25273
25274# Create commands to substitute file output variables.
25275{
25276  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25277  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
25278  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25279  echo "_ACAWK" &&
25280  echo "_ACEOF"
25281} >conf$$files.sh &&
25282. ./conf$$files.sh ||
25283  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25284rm -f conf$$files.sh
25285
25286{
25287  echo "cat >conf$$subs.awk <<_ACEOF" &&
25288  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25289  echo "_ACEOF"
25290} >conf$$subs.sh ||
25291  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25292ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25293ac_delim='%!_!# '
25294for ac_last_try in false false false false false :; do
25295  . ./conf$$subs.sh ||
25296    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25297
25298  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25299  if test $ac_delim_n = $ac_delim_num; then
25300    break
25301  elif $ac_last_try; then
25302    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25303  else
25304    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25305  fi
25306done
25307rm -f conf$$subs.sh
25308
25309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25310cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25311_ACEOF
25312sed -n '
25313h
25314s/^/S["/; s/!.*/"]=/
25315p
25316g
25317s/^[^!]*!//
25318:repl
25319t repl
25320s/'"$ac_delim"'$//
25321t delim
25322:nl
25323h
25324s/\(.\{148\}\)..*/\1/
25325t more1
25326s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25327p
25328n
25329b repl
25330:more1
25331s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25332p
25333g
25334s/.\{148\}//
25335t nl
25336:delim
25337h
25338s/\(.\{148\}\)..*/\1/
25339t more2
25340s/["\\]/\\&/g; s/^/"/; s/$/"/
25341p
25342b
25343:more2
25344s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25345p
25346g
25347s/.\{148\}//
25348t delim
25349' <conf$$subs.awk | sed '
25350/^[^""]/{
25351  N
25352  s/\n//
25353}
25354' >>$CONFIG_STATUS || ac_write_fail=1
25355rm -f conf$$subs.awk
25356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25357_ACAWK
25358cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25359  for (key in S) S_is_set[key] = 1
25360  FS = ""
25361  \$ac_cs_awk_pipe_init
25362}
25363{
25364  line = $ 0
25365  nfields = split(line, field, "@")
25366  substed = 0
25367  len = length(field[1])
25368  for (i = 2; i < nfields; i++) {
25369    key = field[i]
25370    keylen = length(key)
25371    if (S_is_set[key]) {
25372      value = S[key]
25373      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25374      len += length(value) + length(field[++i])
25375      substed = 1
25376    } else
25377      len += 1 + keylen
25378  }
25379  if (nfields == 3 && !substed) {
25380    key = field[2]
25381    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
25382      \$ac_cs_awk_read_file
25383      next
25384    }
25385  }
25386  print line
25387}
25388\$ac_cs_awk_pipe_fini
25389_ACAWK
25390_ACEOF
25391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25392if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25393  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25394else
25395  cat
25396fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25397  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25398_ACEOF
25399
25400# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25401# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25402# trailing colons and then remove the whole line if VPATH becomes empty
25403# (actually we leave an empty line to preserve line numbers).
25404if test "x$srcdir" = x.; then
25405  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
25406h
25407s///
25408s/^/:/
25409s/[	 ]*$/:/
25410s/:\$(srcdir):/:/g
25411s/:\${srcdir}:/:/g
25412s/:@srcdir@:/:/g
25413s/^:*//
25414s/:*$//
25415x
25416s/\(=[	 ]*\).*/\1/
25417G
25418s/\n//
25419s/^[^=]*=[	 ]*$//
25420}'
25421fi
25422
25423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25424fi # test -n "$CONFIG_FILES"
25425
25426# Set up the scripts for CONFIG_HEADERS section.
25427# No need to generate them if there are no CONFIG_HEADERS.
25428# This happens for instance with `./config.status Makefile'.
25429if test -n "$CONFIG_HEADERS"; then
25430cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25431BEGIN {
25432_ACEOF
25433
25434# Transform confdefs.h into an awk script `defines.awk', embedded as
25435# here-document in config.status, that substitutes the proper values into
25436# config.h.in to produce config.h.
25437
25438# Create a delimiter string that does not exist in confdefs.h, to ease
25439# handling of long lines.
25440ac_delim='%!_!# '
25441for ac_last_try in false false :; do
25442  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25443  if test -z "$ac_tt"; then
25444    break
25445  elif $ac_last_try; then
25446    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25447  else
25448    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25449  fi
25450done
25451
25452# For the awk script, D is an array of macro values keyed by name,
25453# likewise P contains macro parameters if any.  Preserve backslash
25454# newline sequences.
25455
25456ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25457sed -n '
25458s/.\{148\}/&'"$ac_delim"'/g
25459t rset
25460:rset
25461s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
25462t def
25463d
25464:def
25465s/\\$//
25466t bsnl
25467s/["\\]/\\&/g
25468s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25469D["\1"]=" \3"/p
25470s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
25471d
25472:bsnl
25473s/["\\]/\\&/g
25474s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
25475D["\1"]=" \3\\\\\\n"\\/p
25476t cont
25477s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25478t cont
25479d
25480:cont
25481n
25482s/.\{148\}/&'"$ac_delim"'/g
25483t clear
25484:clear
25485s/\\$//
25486t bsnlc
25487s/["\\]/\\&/g; s/^/"/; s/$/"/p
25488d
25489:bsnlc
25490s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25491b cont
25492' <confdefs.h | sed '
25493s/'"$ac_delim"'/"\\\
25494"/g' >>$CONFIG_STATUS || ac_write_fail=1
25495
25496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25497  for (key in D) D_is_set[key] = 1
25498  FS = ""
25499}
25500/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25501  line = \$ 0
25502  split(line, arg, " ")
25503  if (arg[1] == "#") {
25504    defundef = arg[2]
25505    mac1 = arg[3]
25506  } else {
25507    defundef = substr(arg[1], 2)
25508    mac1 = arg[2]
25509  }
25510  split(mac1, mac2, "(") #)
25511  macro = mac2[1]
25512  prefix = substr(line, 1, index(line, defundef) - 1)
25513  if (D_is_set[macro]) {
25514    # Preserve the white space surrounding the "#".
25515    print prefix "define", macro P[macro] D[macro]
25516    next
25517  } else {
25518    # Replace #undef with comments.  This is necessary, for example,
25519    # in the case of _POSIX_SOURCE, which is predefined and required
25520    # on some systems where configure will not decide to define it.
25521    if (defundef == "undef") {
25522      print "/*", prefix defundef, macro, "*/"
25523      next
25524    }
25525  }
25526}
25527{ print }
25528_ACAWK
25529_ACEOF
25530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25531  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25532fi # test -n "$CONFIG_HEADERS"
25533
25534
25535eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25536shift
25537for ac_tag
25538do
25539  case $ac_tag in
25540  :[FHLC]) ac_mode=$ac_tag; continue;;
25541  esac
25542  case $ac_mode$ac_tag in
25543  :[FHL]*:*);;
25544  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25545  :[FH]-) ac_tag=-:-;;
25546  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25547  esac
25548  ac_save_IFS=$IFS
25549  IFS=:
25550  set x $ac_tag
25551  IFS=$ac_save_IFS
25552  shift
25553  ac_file=$1
25554  shift
25555
25556  case $ac_mode in
25557  :L) ac_source=$1;;
25558  :[FH])
25559    ac_file_inputs=
25560    for ac_f
25561    do
25562      case $ac_f in
25563      -) ac_f="$ac_tmp/stdin";;
25564      *) # Look for the file first in the build tree, then in the source tree
25565	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25566	 # because $ac_f cannot contain `:'.
25567	 test -f "$ac_f" ||
25568	   case $ac_f in
25569	   [\\/$]*) false;;
25570	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25571	   esac ||
25572	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25573      esac
25574      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25575      as_fn_append ac_file_inputs " '$ac_f'"
25576    done
25577
25578    # Let's still pretend it is `configure' which instantiates (i.e., don't
25579    # use $as_me), people would be surprised to read:
25580    #    /* config.h.  Generated by config.status.  */
25581    configure_input='Generated from '`
25582	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25583	`' by configure.'
25584    if test x"$ac_file" != x-; then
25585      configure_input="$ac_file.  $configure_input"
25586      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25587$as_echo "$as_me: creating $ac_file" >&6;}
25588    fi
25589    # Neutralize special characters interpreted by sed in replacement strings.
25590    case $configure_input in #(
25591    *\&* | *\|* | *\\* )
25592       ac_sed_conf_input=`$as_echo "$configure_input" |
25593       sed 's/[\\\\&|]/\\\\&/g'`;; #(
25594    *) ac_sed_conf_input=$configure_input;;
25595    esac
25596
25597    case $ac_tag in
25598    *:-:* | *:-) cat >"$ac_tmp/stdin" \
25599      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25600    esac
25601    ;;
25602  esac
25603
25604  ac_dir=`$as_dirname -- "$ac_file" ||
25605$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25606	 X"$ac_file" : 'X\(//\)[^/]' \| \
25607	 X"$ac_file" : 'X\(//\)$' \| \
25608	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25609$as_echo X"$ac_file" |
25610    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25611	    s//\1/
25612	    q
25613	  }
25614	  /^X\(\/\/\)[^/].*/{
25615	    s//\1/
25616	    q
25617	  }
25618	  /^X\(\/\/\)$/{
25619	    s//\1/
25620	    q
25621	  }
25622	  /^X\(\/\).*/{
25623	    s//\1/
25624	    q
25625	  }
25626	  s/.*/./; q'`
25627  as_dir="$ac_dir"; as_fn_mkdir_p
25628  ac_builddir=.
25629
25630case "$ac_dir" in
25631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25632*)
25633  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25634  # A ".." for each directory in $ac_dir_suffix.
25635  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25636  case $ac_top_builddir_sub in
25637  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25638  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25639  esac ;;
25640esac
25641ac_abs_top_builddir=$ac_pwd
25642ac_abs_builddir=$ac_pwd$ac_dir_suffix
25643# for backward compatibility:
25644ac_top_builddir=$ac_top_build_prefix
25645
25646case $srcdir in
25647  .)  # We are building in place.
25648    ac_srcdir=.
25649    ac_top_srcdir=$ac_top_builddir_sub
25650    ac_abs_top_srcdir=$ac_pwd ;;
25651  [\\/]* | ?:[\\/]* )  # Absolute name.
25652    ac_srcdir=$srcdir$ac_dir_suffix;
25653    ac_top_srcdir=$srcdir
25654    ac_abs_top_srcdir=$srcdir ;;
25655  *) # Relative name.
25656    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25657    ac_top_srcdir=$ac_top_build_prefix$srcdir
25658    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25659esac
25660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25661
25662
25663  case $ac_mode in
25664  :F)
25665  #
25666  # CONFIG_FILE
25667  #
25668
25669  case $INSTALL in
25670  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25671  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25672  esac
25673  ac_MKDIR_P=$MKDIR_P
25674  case $MKDIR_P in
25675  [\\/$]* | ?:[\\/]* ) ;;
25676  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25677  esac
25678_ACEOF
25679
25680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25681# If the template does not know about datarootdir, expand it.
25682# FIXME: This hack should be removed a few years after 2.60.
25683ac_datarootdir_hack=; ac_datarootdir_seen=
25684ac_sed_dataroot='
25685/datarootdir/ {
25686  p
25687  q
25688}
25689/@datadir@/p
25690/@docdir@/p
25691/@infodir@/p
25692/@localedir@/p
25693/@mandir@/p'
25694case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25695*datarootdir*) ac_datarootdir_seen=yes;;
25696*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25697  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25698$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25699_ACEOF
25700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25701  ac_datarootdir_hack='
25702  s&@datadir@&$datadir&g
25703  s&@docdir@&$docdir&g
25704  s&@infodir@&$infodir&g
25705  s&@localedir@&$localedir&g
25706  s&@mandir@&$mandir&g
25707  s&\\\${datarootdir}&$datarootdir&g' ;;
25708esac
25709_ACEOF
25710
25711# Neutralize VPATH when `$srcdir' = `.'.
25712# Shell code in configure.ac might set extrasub.
25713# FIXME: do we really want to maintain this feature?
25714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25715ac_sed_extra="$ac_vpsub
25716$extrasub
25717_ACEOF
25718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25719:t
25720/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25721s|@configure_input@|$ac_sed_conf_input|;t t
25722s&@top_builddir@&$ac_top_builddir_sub&;t t
25723s&@top_build_prefix@&$ac_top_build_prefix&;t t
25724s&@srcdir@&$ac_srcdir&;t t
25725s&@abs_srcdir@&$ac_abs_srcdir&;t t
25726s&@top_srcdir@&$ac_top_srcdir&;t t
25727s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25728s&@builddir@&$ac_builddir&;t t
25729s&@abs_builddir@&$ac_abs_builddir&;t t
25730s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25731s&@INSTALL@&$ac_INSTALL&;t t
25732s&@MKDIR_P@&$ac_MKDIR_P&;t t
25733$ac_datarootdir_hack
25734"
25735eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25736if $ac_cs_awk_getline; then
25737  $AWK -f "$ac_tmp/subs.awk"
25738else
25739  $AWK -f "$ac_tmp/subs.awk" | $SHELL
25740fi \
25741  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25742
25743test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25744  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25745  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
25746      "$ac_tmp/out"`; test -z "$ac_out"; } &&
25747  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25748which seems to be undefined.  Please make sure it is defined" >&5
25749$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25750which seems to be undefined.  Please make sure it is defined" >&2;}
25751
25752  rm -f "$ac_tmp/stdin"
25753  case $ac_file in
25754  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25755  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25756  esac \
25757  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25758 ;;
25759  :H)
25760  #
25761  # CONFIG_HEADER
25762  #
25763  if test x"$ac_file" != x-; then
25764    {
25765      $as_echo "/* $configure_input  */" \
25766      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25767    } >"$ac_tmp/config.h" \
25768      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25769    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25770      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25771$as_echo "$as_me: $ac_file is unchanged" >&6;}
25772    else
25773      rm -f "$ac_file"
25774      mv "$ac_tmp/config.h" "$ac_file" \
25775	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
25776    fi
25777  else
25778    $as_echo "/* $configure_input  */" \
25779      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25780      || as_fn_error $? "could not create -" "$LINENO" 5
25781  fi
25782 ;;
25783
25784  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25785$as_echo "$as_me: executing $ac_file commands" >&6;}
25786 ;;
25787  esac
25788
25789
25790  case $ac_file$ac_mode in
25791    "libtool":C)
25792
25793    # See if we are running on zsh, and set the options that allow our
25794    # commands through without removal of \ escapes.
25795    if test -n "${ZSH_VERSION+set}"; then
25796      setopt NO_GLOB_SUBST
25797    fi
25798
25799    cfgfile=${ofile}T
25800    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25801    $RM "$cfgfile"
25802
25803    cat <<_LT_EOF >> "$cfgfile"
25804#! $SHELL
25805# Generated automatically by $as_me ($PACKAGE) $VERSION
25806# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25807# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25808
25809# Provide generalized library-building support services.
25810# Written by Gordon Matzigkeit, 1996
25811
25812# Copyright (C) 2014 Free Software Foundation, Inc.
25813# This is free software; see the source for copying conditions.  There is NO
25814# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25815
25816# GNU Libtool is free software; you can redistribute it and/or modify
25817# it under the terms of the GNU General Public License as published by
25818# the Free Software Foundation; either version 2 of of the License, or
25819# (at your option) any later version.
25820#
25821# As a special exception to the GNU General Public License, if you
25822# distribute this file as part of a program or library that is built
25823# using GNU Libtool, you may include this file under the  same
25824# distribution terms that you use for the rest of that program.
25825#
25826# GNU Libtool is distributed in the hope that it will be useful, but
25827# WITHOUT ANY WARRANTY; without even the implied warranty of
25828# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25829# GNU General Public License for more details.
25830#
25831# You should have received a copy of the GNU General Public License
25832# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25833
25834
25835# The names of the tagged configurations supported by this script.
25836available_tags=''
25837
25838# Configured defaults for sys_lib_dlsearch_path munging.
25839: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25840
25841# ### BEGIN LIBTOOL CONFIG
25842
25843# Which release of libtool.m4 was used?
25844macro_version=$macro_version
25845macro_revision=$macro_revision
25846
25847# Whether or not to build shared libraries.
25848build_libtool_libs=$enable_shared
25849
25850# Whether or not to build static libraries.
25851build_old_libs=$enable_static
25852
25853# What type of objects to build.
25854pic_mode=$pic_mode
25855
25856# Whether or not to optimize for fast installation.
25857fast_install=$enable_fast_install
25858
25859# Shared archive member basename,for filename based shared library versioning on AIX.
25860shared_archive_member_spec=$shared_archive_member_spec
25861
25862# Shell to use when invoking shell scripts.
25863SHELL=$lt_SHELL
25864
25865# An echo program that protects backslashes.
25866ECHO=$lt_ECHO
25867
25868# The PATH separator for the build system.
25869PATH_SEPARATOR=$lt_PATH_SEPARATOR
25870
25871# The host system.
25872host_alias=$host_alias
25873host=$host
25874host_os=$host_os
25875
25876# The build system.
25877build_alias=$build_alias
25878build=$build
25879build_os=$build_os
25880
25881# A sed program that does not truncate output.
25882SED=$lt_SED
25883
25884# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25885Xsed="\$SED -e 1s/^X//"
25886
25887# A grep program that handles long lines.
25888GREP=$lt_GREP
25889
25890# An ERE matcher.
25891EGREP=$lt_EGREP
25892
25893# A literal string matcher.
25894FGREP=$lt_FGREP
25895
25896# A BSD- or MS-compatible name lister.
25897NM=$lt_NM
25898
25899# Whether we need soft or hard links.
25900LN_S=$lt_LN_S
25901
25902# What is the maximum length of a command?
25903max_cmd_len=$max_cmd_len
25904
25905# Object file suffix (normally "o").
25906objext=$ac_objext
25907
25908# Executable file suffix (normally "").
25909exeext=$exeext
25910
25911# whether the shell understands "unset".
25912lt_unset=$lt_unset
25913
25914# turn spaces into newlines.
25915SP2NL=$lt_lt_SP2NL
25916
25917# turn newlines into spaces.
25918NL2SP=$lt_lt_NL2SP
25919
25920# convert \$build file names to \$host format.
25921to_host_file_cmd=$lt_cv_to_host_file_cmd
25922
25923# convert \$build files to toolchain format.
25924to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25925
25926# An object symbol dumper.
25927OBJDUMP=$lt_OBJDUMP
25928
25929# Method to check whether dependent libraries are shared objects.
25930deplibs_check_method=$lt_deplibs_check_method
25931
25932# Command to use when deplibs_check_method = "file_magic".
25933file_magic_cmd=$lt_file_magic_cmd
25934
25935# How to find potential files when deplibs_check_method = "file_magic".
25936file_magic_glob=$lt_file_magic_glob
25937
25938# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25939want_nocaseglob=$lt_want_nocaseglob
25940
25941# DLL creation program.
25942DLLTOOL=$lt_DLLTOOL
25943
25944# Command to associate shared and link libraries.
25945sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25946
25947# The archiver.
25948AR=$lt_AR
25949
25950# Flags to create an archive.
25951AR_FLAGS=$lt_AR_FLAGS
25952
25953# How to feed a file listing to the archiver.
25954archiver_list_spec=$lt_archiver_list_spec
25955
25956# A symbol stripping program.
25957STRIP=$lt_STRIP
25958
25959# Commands used to install an old-style archive.
25960RANLIB=$lt_RANLIB
25961old_postinstall_cmds=$lt_old_postinstall_cmds
25962old_postuninstall_cmds=$lt_old_postuninstall_cmds
25963
25964# Whether to use a lock for old archive extraction.
25965lock_old_archive_extraction=$lock_old_archive_extraction
25966
25967# A C compiler.
25968LTCC=$lt_CC
25969
25970# LTCC compiler flags.
25971LTCFLAGS=$lt_CFLAGS
25972
25973# Take the output of nm and produce a listing of raw symbols and C names.
25974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25975
25976# Transform the output of nm in a proper C declaration.
25977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25978
25979# Transform the output of nm into a list of symbols to manually relocate.
25980global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25981
25982# Transform the output of nm in a C name address pair.
25983global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25984
25985# Transform the output of nm in a C name address pair when lib prefix is needed.
25986global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25987
25988# The name lister interface.
25989nm_interface=$lt_lt_cv_nm_interface
25990
25991# Specify filename containing input files for \$NM.
25992nm_file_list_spec=$lt_nm_file_list_spec
25993
25994# The root where to search for dependent libraries,and where our libraries should be installed.
25995lt_sysroot=$lt_sysroot
25996
25997# Command to truncate a binary pipe.
25998lt_truncate_bin=$lt_lt_cv_truncate_bin
25999
26000# The name of the directory that contains temporary libtool files.
26001objdir=$objdir
26002
26003# Used to examine libraries when file_magic_cmd begins with "file".
26004MAGIC_CMD=$MAGIC_CMD
26005
26006# Must we lock files when doing compilation?
26007need_locks=$lt_need_locks
26008
26009# Manifest tool.
26010MANIFEST_TOOL=$lt_MANIFEST_TOOL
26011
26012# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26013DSYMUTIL=$lt_DSYMUTIL
26014
26015# Tool to change global to local symbols on Mac OS X.
26016NMEDIT=$lt_NMEDIT
26017
26018# Tool to manipulate fat objects and archives on Mac OS X.
26019LIPO=$lt_LIPO
26020
26021# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26022OTOOL=$lt_OTOOL
26023
26024# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26025OTOOL64=$lt_OTOOL64
26026
26027# Old archive suffix (normally "a").
26028libext=$libext
26029
26030# Shared library suffix (normally ".so").
26031shrext_cmds=$lt_shrext_cmds
26032
26033# The commands to extract the exported symbol list from a shared archive.
26034extract_expsyms_cmds=$lt_extract_expsyms_cmds
26035
26036# Variables whose values should be saved in libtool wrapper scripts and
26037# restored at link time.
26038variables_saved_for_relink=$lt_variables_saved_for_relink
26039
26040# Do we need the "lib" prefix for modules?
26041need_lib_prefix=$need_lib_prefix
26042
26043# Do we need a version for libraries?
26044need_version=$need_version
26045
26046# Library versioning type.
26047version_type=$version_type
26048
26049# Shared library runtime path variable.
26050runpath_var=$runpath_var
26051
26052# Shared library path variable.
26053shlibpath_var=$shlibpath_var
26054
26055# Is shlibpath searched before the hard-coded library search path?
26056shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26057
26058# Format of library name prefix.
26059libname_spec=$lt_libname_spec
26060
26061# List of archive names.  First name is the real one, the rest are links.
26062# The last name is the one that the linker finds with -lNAME
26063library_names_spec=$lt_library_names_spec
26064
26065# The coded name of the library, if different from the real name.
26066soname_spec=$lt_soname_spec
26067
26068# Permission mode override for installation of shared libraries.
26069install_override_mode=$lt_install_override_mode
26070
26071# Command to use after installation of a shared archive.
26072postinstall_cmds=$lt_postinstall_cmds
26073
26074# Command to use after uninstallation of a shared archive.
26075postuninstall_cmds=$lt_postuninstall_cmds
26076
26077# Commands used to finish a libtool library installation in a directory.
26078finish_cmds=$lt_finish_cmds
26079
26080# As "finish_cmds", except a single script fragment to be evaled but
26081# not shown.
26082finish_eval=$lt_finish_eval
26083
26084# Whether we should hardcode library paths into libraries.
26085hardcode_into_libs=$hardcode_into_libs
26086
26087# Compile-time system search path for libraries.
26088sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26089
26090# Detected run-time system search path for libraries.
26091sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
26092
26093# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
26094configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
26095
26096# Whether dlopen is supported.
26097dlopen_support=$enable_dlopen
26098
26099# Whether dlopen of programs is supported.
26100dlopen_self=$enable_dlopen_self
26101
26102# Whether dlopen of statically linked programs is supported.
26103dlopen_self_static=$enable_dlopen_self_static
26104
26105# Commands to strip libraries.
26106old_striplib=$lt_old_striplib
26107striplib=$lt_striplib
26108
26109
26110# The linker used to build libraries.
26111LD=$lt_LD
26112
26113# How to create reloadable object files.
26114reload_flag=$lt_reload_flag
26115reload_cmds=$lt_reload_cmds
26116
26117# Commands used to build an old-style archive.
26118old_archive_cmds=$lt_old_archive_cmds
26119
26120# A language specific compiler.
26121CC=$lt_compiler
26122
26123# Is the compiler the GNU compiler?
26124with_gcc=$GCC
26125
26126# Compiler flag to turn off builtin functions.
26127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26128
26129# Additional compiler flags for building library objects.
26130pic_flag=$lt_lt_prog_compiler_pic
26131
26132# How to pass a linker flag through the compiler.
26133wl=$lt_lt_prog_compiler_wl
26134
26135# Compiler flag to prevent dynamic linking.
26136link_static_flag=$lt_lt_prog_compiler_static
26137
26138# Does compiler simultaneously support -c and -o options?
26139compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26140
26141# Whether or not to add -lc for building shared libraries.
26142build_libtool_need_lc=$archive_cmds_need_lc
26143
26144# Whether or not to disallow shared libs when runtime libs are static.
26145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26146
26147# Compiler flag to allow reflexive dlopens.
26148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26149
26150# Compiler flag to generate shared objects directly from archives.
26151whole_archive_flag_spec=$lt_whole_archive_flag_spec
26152
26153# Whether the compiler copes with passing no objects directly.
26154compiler_needs_object=$lt_compiler_needs_object
26155
26156# Create an old-style archive from a shared archive.
26157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26158
26159# Create a temporary old-style archive to link instead of a shared archive.
26160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26161
26162# Commands used to build a shared archive.
26163archive_cmds=$lt_archive_cmds
26164archive_expsym_cmds=$lt_archive_expsym_cmds
26165
26166# Commands used to build a loadable module if different from building
26167# a shared archive.
26168module_cmds=$lt_module_cmds
26169module_expsym_cmds=$lt_module_expsym_cmds
26170
26171# Whether we are building with GNU ld or not.
26172with_gnu_ld=$lt_with_gnu_ld
26173
26174# Flag that allows shared libraries with undefined symbols to be built.
26175allow_undefined_flag=$lt_allow_undefined_flag
26176
26177# Flag that enforces no undefined symbols.
26178no_undefined_flag=$lt_no_undefined_flag
26179
26180# Flag to hardcode \$libdir into a binary during linking.
26181# This must work even if \$libdir does not exist
26182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26183
26184# Whether we need a single "-rpath" flag with a separated argument.
26185hardcode_libdir_separator=$lt_hardcode_libdir_separator
26186
26187# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26188# DIR into the resulting binary.
26189hardcode_direct=$hardcode_direct
26190
26191# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26192# DIR into the resulting binary and the resulting library dependency is
26193# "absolute",i.e impossible to change by setting \$shlibpath_var if the
26194# library is relocated.
26195hardcode_direct_absolute=$hardcode_direct_absolute
26196
26197# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26198# into the resulting binary.
26199hardcode_minus_L=$hardcode_minus_L
26200
26201# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26202# into the resulting binary.
26203hardcode_shlibpath_var=$hardcode_shlibpath_var
26204
26205# Set to "yes" if building a shared library automatically hardcodes DIR
26206# into the library and all subsequent libraries and executables linked
26207# against it.
26208hardcode_automatic=$hardcode_automatic
26209
26210# Set to yes if linker adds runtime paths of dependent libraries
26211# to runtime path list.
26212inherit_rpath=$inherit_rpath
26213
26214# Whether libtool must link a program against all its dependency libraries.
26215link_all_deplibs=$link_all_deplibs
26216
26217# Set to "yes" if exported symbols are required.
26218always_export_symbols=$always_export_symbols
26219
26220# The commands to list exported symbols.
26221export_symbols_cmds=$lt_export_symbols_cmds
26222
26223# Symbols that should not be listed in the preloaded symbols.
26224exclude_expsyms=$lt_exclude_expsyms
26225
26226# Symbols that must always be exported.
26227include_expsyms=$lt_include_expsyms
26228
26229# Commands necessary for linking programs (against libraries) with templates.
26230prelink_cmds=$lt_prelink_cmds
26231
26232# Commands necessary for finishing linking programs.
26233postlink_cmds=$lt_postlink_cmds
26234
26235# Specify filename containing input files.
26236file_list_spec=$lt_file_list_spec
26237
26238# How to hardcode a shared library path into an executable.
26239hardcode_action=$hardcode_action
26240
26241# ### END LIBTOOL CONFIG
26242
26243_LT_EOF
26244
26245    cat <<'_LT_EOF' >> "$cfgfile"
26246
26247# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26248
26249# func_munge_path_list VARIABLE PATH
26250# -----------------------------------
26251# VARIABLE is name of variable containing _space_ separated list of
26252# directories to be munged by the contents of PATH, which is string
26253# having a format:
26254# "DIR[:DIR]:"
26255#       string "DIR[ DIR]" will be prepended to VARIABLE
26256# ":DIR[:DIR]"
26257#       string "DIR[ DIR]" will be appended to VARIABLE
26258# "DIRP[:DIRP]::[DIRA:]DIRA"
26259#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26260#       "DIRA[ DIRA]" will be appended to VARIABLE
26261# "DIR[:DIR]"
26262#       VARIABLE will be replaced by "DIR[ DIR]"
26263func_munge_path_list ()
26264{
26265    case x$2 in
26266    x)
26267        ;;
26268    *:)
26269        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26270        ;;
26271    x:*)
26272        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26273        ;;
26274    *::*)
26275        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26276        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26277        ;;
26278    *)
26279        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26280        ;;
26281    esac
26282}
26283
26284
26285# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
26286func_cc_basename ()
26287{
26288    for cc_temp in $*""; do
26289      case $cc_temp in
26290        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26291        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26292        \-*) ;;
26293        *) break;;
26294      esac
26295    done
26296    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26297}
26298
26299
26300# ### END FUNCTIONS SHARED WITH CONFIGURE
26301
26302_LT_EOF
26303
26304  case $host_os in
26305  aix3*)
26306    cat <<\_LT_EOF >> "$cfgfile"
26307# AIX sometimes has problems with the GCC collect2 program.  For some
26308# reason, if we set the COLLECT_NAMES environment variable, the problems
26309# vanish in a puff of smoke.
26310if test set != "${COLLECT_NAMES+set}"; then
26311  COLLECT_NAMES=
26312  export COLLECT_NAMES
26313fi
26314_LT_EOF
26315    ;;
26316  esac
26317
26318
26319ltmain=$ac_aux_dir/ltmain.sh
26320
26321
26322  # We use sed instead of cat because bash on DJGPP gets confused if
26323  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26324  # text mode, it properly converts lines to CR/LF.  This bash problem
26325  # is reportedly fixed, but why not run on old versions too?
26326  sed '$q' "$ltmain" >> "$cfgfile" \
26327     || (rm -f "$cfgfile"; exit 1)
26328
26329   mv -f "$cfgfile" "$ofile" ||
26330    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26331  chmod +x "$ofile"
26332
26333 ;;
26334    "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
26335
26336  esac
26337done # for ac_tag
26338
26339
26340as_fn_exit 0
26341_ACEOF
26342ac_clean_files=$ac_clean_files_save
26343
26344test $ac_write_fail = 0 ||
26345  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26346
26347
26348# configure is writing to config.log, and then calls config.status.
26349# config.status does its own redirection, appending to config.log.
26350# Unfortunately, on DOS this fails, as config.log is still kept open
26351# by configure, so config.status won't be able to write to it; its
26352# output is simply discarded.  So we exec the FD to /dev/null,
26353# effectively closing config.log, so it can be properly (re)opened and
26354# appended to by config.status.  When coming back to configure, we
26355# need to make the FD available again.
26356if test "$no_create" != yes; then
26357  ac_cs_success=:
26358  ac_config_status_args=
26359  test "$silent" = yes &&
26360    ac_config_status_args="$ac_config_status_args --quiet"
26361  exec 5>/dev/null
26362  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26363  exec 5>>config.log
26364  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26365  # would make configure fail if this is the last instruction.
26366  $ac_cs_success || as_fn_exit 1
26367fi
26368if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26370$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26371fi
26372
26373
26374#
26375# Now that the Makefiles exist we can ensure that everything is rebuilt.
26376#
26377# [pairwise: --with-make-clean, --without-make-clean]
26378
26379# Check whether --with-make-clean was given.
26380if test "${with_make_clean+set}" = set; then :
26381  withval=$with_make_clean; make_clean="$withval"
26382else
26383  make_clean="yes"
26384fi
26385
26386case "$make_clean" in
26387yes)
26388	if test "yes" != "$no_create"
26389	then
26390		if test "yes" = "$silent"
26391		then
26392			make clean > /dev/null
26393		else
26394			make clean
26395		fi
26396	fi
26397	;;
26398esac
26399
26400# [pairwise: --enable-full-report, --disable-full-report]
26401# Check whether --enable-full-report was given.
26402if test "${enable_full_report+set}" = set; then :
26403  enableval=$enable_full_report;
26404fi
26405
26406
26407report() {
26408    echo "==============================================================================="
26409    echo "Configuration summary:"
26410    echo "-------------------------------------------------------------------------------"
26411    echo "Optional features enabled:"
26412    if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
26413	echo "    Mutex lock type: $with_locktype"
26414    fi
26415    test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
26416    test "no" = "$use_dnstap" || \
26417	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
26418    test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
26419    test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
26420
26421    # these lines are only printed if run with --enable-full-report
26422    if test "yes" = "$enable_full_report"; then
26423	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
26424	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
26425	test "X$LIBXML2_LIBS" = "X" || echo "    XML statistics (--with-libxml2)"
26426	test "X$JSON_C_LIBS" = "X" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
26427	test "X$ZLIB_LIBS" = "X" || echo "    HTTP zlib compression (--with-zlib)"
26428	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26429	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
26430    fi
26431
26432    test "yes" = "$enable_dnsrps" && \
26433	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
26434    test "yes" = "$enable_fixed" && \
26435	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26436    test "yes" = "$enable_backtrace" && \
26437	echo "    Print backtrace on crash (--enable-backtrace)"
26438    test "minimal" = "$want_symtable" && \
26439	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
26440    test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
26441	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
26442    test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
26443    test "yes" = "$want_querytrace" && \
26444	echo "    Very verbose query trace logging (--enable-querytrace)"
26445    test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
26446
26447    test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
26448
26449    test "$CRYPTO" = "pkcs11" && (
26450	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
26451	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
26452	echo "    +--------------------------------------------+"
26453	echo "    |             ==== WARNING ====              |"
26454	echo "    |                                            |"
26455	echo "    | The use of native PKCS#11 for Public-Key   |"
26456	echo "    | Cryptography in BIND 9 has been deprecated |"
26457	echo "    | in favor of OpenSSL engine_pkcs11 from the |"
26458	echo "    | OpenSC project. The --with-native-pkcs11   |"
26459	echo "    | configuration option will be removed from  |"
26460	echo "    | the next major BIND 9 release. The option  |"
26461	echo "    | to use the engine_pkcs11 OpenSSL engine is |"
26462	echo "    | already available in BIND 9; please see    |"
26463	echo "    | the ARM section on PKCS#11 for details.    |"
26464	echo "    +--------------------------------------------+"
26465    )
26466
26467    dlz_enabled=no
26468
26469    echo "    Dynamically loadable zone (DLZ) drivers:"
26470    if test "$use_dlz_bdb" != "no"; then :
26471  $as_echo "        Berkeley DB (--with-dlz-bdb)"
26472	   dlz_enabled=yes
26473fi
26474    if test "$use_dlz_ldap" != "no"; then :
26475  $as_echo "        LDAP (--with-dlz-ldap)"
26476	   dlz_enabled=yes
26477fi
26478    if test "$use_dlz_mysql" != "no"; then :
26479  $as_echo "        MySQL (--with-dlz-mysql)"
26480	   dlz_enabled=yes
26481fi
26482    if test "$use_dlz_odbc" != "no"; then :
26483  $as_echo "        ODBC (--with-dlz-odbc)"
26484	   dlz_enabled=yes
26485fi
26486    if test "$use_dlz_postgres" != "no"; then :
26487  $as_echo "        Postgres (--with-dlz-postgres)"
26488	   dlz_enabled=yes
26489fi
26490    if test "$use_dlz_filesystem" != "no"; then :
26491  $as_echo "        Filesystem (--with-dlz-filesystem)"
26492	   dlz_enabled=yes
26493fi
26494    if test "$use_dlz_stub" != "no"; then :
26495  $as_echo "        Stub (--with-dlz-stub)"
26496	   dlz_enabled=yes
26497fi
26498
26499    if test "$dlz_enabled" = "no"; then :
26500  $as_echo "        None"
26501else
26502  $as_echo "    +--------------------------------------------------------+"
26503	   $as_echo "    |             ==== DEPRECATION WARNING ====              |"
26504	   $as_echo "    +--------------------------------------------------------+"
26505	   $as_echo "    | Old-style DLZ drivers have been deprecated in favor of |"
26506	   $as_echo "    | DLZ modules. The DLZ drivers configuration option will |"
26507	   $as_echo "    | be removed from the next major BIND 9 release.         |"
26508	   $as_echo "    |                                                        |"
26509	   $as_echo "    | The option to use the DLZ modules is already available |"
26510	   $as_echo "    | in BIND 9; please see the ARM section on DLZ modules.  |"
26511	   $as_echo "    +--------------------------------------------------------+"
26512
26513fi
26514
26515    echo "-------------------------------------------------------------------------------"
26516
26517    echo "Features disabled or unavailable on this platform:"
26518    test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
26519    test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
26520
26521    test "no" = "$use_dnstap" && \
26522	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
26523    test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
26524    test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
26525
26526    test "no" = "$enable_dnsrps" && \
26527	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
26528
26529    test "yes" = "$enable_fixed" || \
26530	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
26531
26532    test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enablee-auto-validation)"
26533
26534    test "$CRYPTO" = "pkcs11" || (
26535	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
26536    )
26537
26538    test "yes" = "$enable_backtrace" || \
26539	echo "    Print backtrace on crash (--enable-backtrace)"
26540    test "yes" = "$want_querytrace" || \
26541	echo "    Very verbose query trace logging (--enable-querytrace)"
26542
26543    test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
26544    test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
26545
26546    test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
26547    test "X$LIBXML2_LIBS" = "X" && echo "    XML statistics (--with-libxml2)"
26548    test "X$JSON_C_LIBS" = "X" && echo "    JSON statistics (--with-json-c)"
26549    test "X$ZLIB_LIBS" = "X" && echo "    HTTP zlib compression (--with-zlib)"
26550    test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
26551    test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
26552
26553    echo "-------------------------------------------------------------------------------"
26554    echo "Configured paths:"
26555    echo "    prefix: $prefix"
26556    echo "    sysconfdir: $sysconfdir"
26557    echo "    localstatedir: $localstatedir"
26558    echo "-------------------------------------------------------------------------------"
26559    echo "Compiler: $CC"
26560    if test "$GCC" = "yes"; then :
26561  $CC --version 2>&1 | sed 's/^/    /'
26562else
26563  case $host in #(
26564  *-solaris*) :
26565    $CC -V 2>&1 | sed 's/^/    /' ;; #(
26566  *) :
26567    $CC --version 2>&1 | sed 's/^/    /' ;;
26568esac
26569fi
26570
26571    if test "X$ac_unrecognized_opts" != "X"; then
26572	echo "Unrecognized options:"
26573	echo "    $ac_unrecognized_opts"
26574    fi
26575
26576    if test "yes" != "$enable_full_report"; then
26577	echo "-------------------------------------------------------------------------------"
26578	echo "For more detail, use --enable-full-report."
26579    fi
26580    echo "==============================================================================="
26581}
26582
26583if test "yes" != "$silent"; then
26584	report
26585fi
26586
26587# Tell Emacs to edit this file in shell mode.
26588# Local Variables:
26589# mode: sh
26590# End:
26591