xref: /netbsd-src/external/mpl/bind/dist/configure (revision 8e33eff89e26cf71871ead62f0d5063e1313c33a)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for BIND 9.18.30.
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-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='BIND'
624PACKAGE_TARNAME='bind'
625PACKAGE_VERSION='9.18.30'
626PACKAGE_STRING='BIND 9.18.30'
627PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug'
628PACKAGE_URL='https://www.isc.org/downloads/'
629
630ac_unique_file="bin/named/main.c"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667HAVE_JEMALLOC_FALSE
668HAVE_JEMALLOC_TRUE
669JEMALLOC_LIBS
670JEMALLOC_CFLAGS
671HAVE_CMOCKA_FALSE
672HAVE_CMOCKA_TRUE
673CMOCKA_LIBS
674CMOCKA_CFLAGS
675LIBIDN2_LIBS
676LIBIDN2_CFLAGS
677NC
678CURL
679DOXYGEN
680RELEASE_DATE
681BUILD_MANPAGES_FALSE
682BUILD_MANPAGES_TRUE
683HAVE_XELATEX_FALSE
684HAVE_XELATEX_TRUE
685LATEXMK
686XELATEX
687HAVE_SPHINX_BUILD_FALSE
688HAVE_SPHINX_BUILD_TRUE
689SPHINX_BUILD
690HAVE_DNSTAP_FALSE
691HAVE_DNSTAP_TRUE
692PROTOC_C
693FSTRM_CAPTURE
694DNSTAP_LIBS
695DNSTAP_CFLAGS
696LIBCAP_LIBS
697HAVE_READLINE_FALSE
698HAVE_READLINE_TRUE
699READLINE_LIBS
700READLINE_CFLAGS
701ZLIB_LIBS
702ZLIB_CFLAGS
703HAVE_JSON_C_FALSE
704HAVE_JSON_C_TRUE
705JSON_C_LIBS
706JSON_C_CFLAGS
707HAVE_LIBXML2_FALSE
708HAVE_LIBXML2_TRUE
709LIBXML2_LIBS
710LIBXML2_CFLAGS
711HAVE_LMDB_FALSE
712HAVE_LMDB_TRUE
713LMDB_LIBS
714LMDB_CFLAGS
715KRB5_LIBS
716KRB5_CFLAGS
717GSSAPI_LIBS
718GSSAPI_CFLAGS
719HAVE_GSSAPI_FALSE
720HAVE_GSSAPI_TRUE
721KRB5_CONFIG
722OPENSSL_LDFLAGS
723OPENSSL_LIBS
724OPENSSL_CFLAGS
725HAVE_LIBNGHTTP2_FALSE
726HAVE_LIBNGHTTP2_TRUE
727LIBNGHTTP2_LIBS
728LIBNGHTTP2_CFLAGS
729LIBUV_LIBS
730LIBUV_CFLAGS
731PTHREAD_CFLAGS
732PTHREAD_LIBS
733PTHREAD_CXX
734PTHREAD_CC
735ax_pthread_config
736HAVE_GEOIP2_FALSE
737HAVE_GEOIP2_TRUE
738MAXMINDDB_PREFIX
739MAXMINDDB_LIBS
740MAXMINDDB_CFLAGS
741XSLTPROC
742HAVE_PYTEST_FALSE
743HAVE_PYTEST_TRUE
744PYTEST
745HAVE_PYTHON_FALSE
746HAVE_PYTHON_TRUE
747pkgpyexecdir
748pyexecdir
749pkgpythondir
750pythondir
751PYTHON_EXEC_PREFIX
752PYTHON_PREFIX
753PYTHON_PLATFORM
754PYTHON_VERSION
755PYTHON
756HAVE_PERL_FALSE
757HAVE_PERL_TRUE
758PERL
759FUZZ_LDFLAGS
760FUZZ_LOG_COMPILER
761HAVE_FUZZ_LOG_COMPILER_FALSE
762HAVE_FUZZ_LOG_COMPILER_TRUE
763PKG_CONFIG_LIBDIR
764PKG_CONFIG_PATH
765PKG_CONFIG
766TEST_CFLAGS
767STD_LDFLAGS
768STD_CPPFLAGS
769STD_CFLAGS
770DEVELOPER_MODE
771HOST_MACOS_FALSE
772HOST_MACOS_TRUE
773LT_SYS_LIBRARY_PATH
774OTOOL64
775OTOOL
776LIPO
777NMEDIT
778DSYMUTIL
779MANIFEST_TOOL
780RANLIB
781DLLTOOL
782OBJDUMP
783FILECMD
784NM
785ac_ct_DUMPBIN
786DUMPBIN
787LD
788FGREP
789EGREP
790GREP
791SED
792LIBTOOL
793LN_S
794ac_ct_AR
795AR
796LDFLAGS_FOR_BUILD
797CPPFLAGS_FOR_BUILD
798CFLAGS_FOR_BUILD
799BUILD_OBJEXT
800BUILD_EXEEXT
801CPP_FOR_BUILD
802ac_ct_CC_FOR_BUILD
803CC_FOR_BUILD
804CPP
805am__fastdepCC_FALSE
806am__fastdepCC_TRUE
807CCDEPMODE
808am__nodep
809AMDEPBACKSLASH
810AMDEP_FALSE
811AMDEP_TRUE
812am__include
813DEPDIR
814OBJEXT
815EXEEXT
816ac_ct_CC
817CPPFLAGS
818LDFLAGS
819CFLAGS
820CC
821MAINT
822MAINTAINER_MODE_FALSE
823MAINTAINER_MODE_TRUE
824AM_BACKSLASH
825AM_DEFAULT_VERBOSITY
826AM_DEFAULT_V
827AM_V
828CSCOPE
829ETAGS
830CTAGS
831am__untar
832am__tar
833AMTAR
834am__leading_dot
835SET_MAKE
836AWK
837mkdir_p
838MKDIR_P
839INSTALL_STRIP_PROGRAM
840STRIP
841install_sh
842MAKEINFO
843AUTOHEADER
844AUTOMAKE
845AUTOCONF
846ACLOCAL
847VERSION
848PACKAGE
849CYGPATH_W
850am__isrc
851INSTALL_DATA
852INSTALL_SCRIPT
853INSTALL_PROGRAM
854target_os
855target_vendor
856target_cpu
857target
858host_os
859host_vendor
860host_cpu
861host
862build_os
863build_vendor
864build_cpu
865build
866target_alias
867host_alias
868build_alias
869LIBS
870ECHO_T
871ECHO_N
872ECHO_C
873DEFS
874mandir
875localedir
876libdir
877psdir
878pdfdir
879dvidir
880htmldir
881infodir
882docdir
883oldincludedir
884includedir
885runstatedir
886localstatedir
887sharedstatedir
888sysconfdir
889datadir
890datarootdir
891libexecdir
892sbindir
893bindir
894program_transform_name
895prefix
896exec_prefix
897PACKAGE_URL
898PACKAGE_BUGREPORT
899PACKAGE_STRING
900PACKAGE_VERSION
901PACKAGE_TARNAME
902PACKAGE_NAME
903PATH_SEPARATOR
904SHELL
905am__quote'
906ac_subst_files=''
907ac_user_opts='
908enable_option_checking
909enable_silent_rules
910enable_maintainer_mode
911enable_dependency_tracking
912enable_largefile
913enable_static
914with_pic
915enable_shared
916enable_fast_install
917with_aix_soname
918with_gnu_ld
919with_sysroot
920enable_libtool_lock
921enable_developer
922enable_warn_error
923enable_fuzzing
924with_python_sys_prefix
925with_python_prefix
926with_python_exec_prefix
927enable_geoip
928with_maxminddb
929with_locktype
930enable_doh
931with_libnghttp2
932enable_pthread_rwlock
933with_openssl
934enable_fips_mode
935with_gssapi
936with_lmdb
937with_libxml2
938with_json_c
939with_zlib
940enable_tcp_fastopen
941with_readline
942enable_chroot
943enable_linux_caps
944enable_fixed_rrset
945enable_dnstap
946with_libidn2
947with_cmocka
948with_jemalloc
949with_tuning
950enable_singletrace
951enable_querytrace
952enable_auto_validation
953enable_dnsrps_dl
954with_dnsrps_libname
955with_dnsrps_dir
956enable_dnsrps
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
978LIBNGHTTP2_CFLAGS
979LIBNGHTTP2_LIBS
980OPENSSL_CFLAGS
981OPENSSL_LIBS
982LMDB_CFLAGS
983LMDB_LIBS
984LIBXML2_CFLAGS
985LIBXML2_LIBS
986JSON_C_CFLAGS
987JSON_C_LIBS
988ZLIB_CFLAGS
989ZLIB_LIBS
990READLINE_CFLAGS
991READLINE_LIBS
992DNSTAP_CFLAGS
993DNSTAP_LIBS
994SPHINX_BUILD
995LIBIDN2_CFLAGS
996LIBIDN2_LIBS
997CMOCKA_CFLAGS
998CMOCKA_LIBS
999JEMALLOC_CFLAGS
1000JEMALLOC_LIBS'
1001
1002
1003# Initialize some variables set by options.
1004ac_init_help=
1005ac_init_version=false
1006ac_unrecognized_opts=
1007ac_unrecognized_sep=
1008# The variables have the same names as the options, with
1009# dashes changed to underlines.
1010cache_file=/dev/null
1011exec_prefix=NONE
1012no_create=
1013no_recursion=
1014prefix=NONE
1015program_prefix=NONE
1016program_suffix=NONE
1017program_transform_name=s,x,x,
1018silent=
1019site=
1020srcdir=
1021verbose=
1022x_includes=NONE
1023x_libraries=NONE
1024
1025# Installation directory options.
1026# These are left unexpanded so users can "make install exec_prefix=/foo"
1027# and all the variables that are supposed to be based on exec_prefix
1028# by default will actually change.
1029# Use braces instead of parens because sh, perl, etc. also accept them.
1030# (The list follows the same order as the GNU Coding Standards.)
1031bindir='${exec_prefix}/bin'
1032sbindir='${exec_prefix}/sbin'
1033libexecdir='${exec_prefix}/libexec'
1034datarootdir='${prefix}/share'
1035datadir='${datarootdir}'
1036sysconfdir='${prefix}/etc'
1037sharedstatedir='${prefix}/com'
1038localstatedir='${prefix}/var'
1039runstatedir='${localstatedir}/run'
1040includedir='${prefix}/include'
1041oldincludedir='/usr/include'
1042docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1043infodir='${datarootdir}/info'
1044htmldir='${docdir}'
1045dvidir='${docdir}'
1046pdfdir='${docdir}'
1047psdir='${docdir}'
1048libdir='${exec_prefix}/lib'
1049localedir='${datarootdir}/locale'
1050mandir='${datarootdir}/man'
1051
1052ac_prev=
1053ac_dashdash=
1054for ac_option
1055do
1056  # If the previous option needs an argument, assign it.
1057  if test -n "$ac_prev"; then
1058    eval $ac_prev=\$ac_option
1059    ac_prev=
1060    continue
1061  fi
1062
1063  case $ac_option in
1064  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065  *=)   ac_optarg= ;;
1066  *)    ac_optarg=yes ;;
1067  esac
1068
1069  case $ac_dashdash$ac_option in
1070  --)
1071    ac_dashdash=yes ;;
1072
1073  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1074    ac_prev=bindir ;;
1075  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076    bindir=$ac_optarg ;;
1077
1078  -build | --build | --buil | --bui | --bu)
1079    ac_prev=build_alias ;;
1080  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081    build_alias=$ac_optarg ;;
1082
1083  -cache-file | --cache-file | --cache-fil | --cache-fi \
1084  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085    ac_prev=cache_file ;;
1086  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088    cache_file=$ac_optarg ;;
1089
1090  --config-cache | -C)
1091    cache_file=config.cache ;;
1092
1093  -datadir | --datadir | --datadi | --datad)
1094    ac_prev=datadir ;;
1095  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096    datadir=$ac_optarg ;;
1097
1098  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099  | --dataroo | --dataro | --datar)
1100    ac_prev=datarootdir ;;
1101  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103    datarootdir=$ac_optarg ;;
1104
1105  -disable-* | --disable-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"enable_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval enable_$ac_useropt=no ;;
1120
1121  -docdir | --docdir | --docdi | --doc | --do)
1122    ac_prev=docdir ;;
1123  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1124    docdir=$ac_optarg ;;
1125
1126  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1127    ac_prev=dvidir ;;
1128  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1129    dvidir=$ac_optarg ;;
1130
1131  -enable-* | --enable-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"enable_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval enable_$ac_useropt=\$ac_optarg ;;
1146
1147  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1148  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1149  | --exec | --exe | --ex)
1150    ac_prev=exec_prefix ;;
1151  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1152  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1153  | --exec=* | --exe=* | --ex=*)
1154    exec_prefix=$ac_optarg ;;
1155
1156  -gas | --gas | --ga | --g)
1157    # Obsolete; use --with-gas.
1158    with_gas=yes ;;
1159
1160  -help | --help | --hel | --he | -h)
1161    ac_init_help=long ;;
1162  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1163    ac_init_help=recursive ;;
1164  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1165    ac_init_help=short ;;
1166
1167  -host | --host | --hos | --ho)
1168    ac_prev=host_alias ;;
1169  -host=* | --host=* | --hos=* | --ho=*)
1170    host_alias=$ac_optarg ;;
1171
1172  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173    ac_prev=htmldir ;;
1174  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175  | --ht=*)
1176    htmldir=$ac_optarg ;;
1177
1178  -includedir | --includedir | --includedi | --included | --include \
1179  | --includ | --inclu | --incl | --inc)
1180    ac_prev=includedir ;;
1181  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1182  | --includ=* | --inclu=* | --incl=* | --inc=*)
1183    includedir=$ac_optarg ;;
1184
1185  -infodir | --infodir | --infodi | --infod | --info | --inf)
1186    ac_prev=infodir ;;
1187  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1188    infodir=$ac_optarg ;;
1189
1190  -libdir | --libdir | --libdi | --libd)
1191    ac_prev=libdir ;;
1192  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1193    libdir=$ac_optarg ;;
1194
1195  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1196  | --libexe | --libex | --libe)
1197    ac_prev=libexecdir ;;
1198  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1199  | --libexe=* | --libex=* | --libe=*)
1200    libexecdir=$ac_optarg ;;
1201
1202  -localedir | --localedir | --localedi | --localed | --locale)
1203    ac_prev=localedir ;;
1204  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1205    localedir=$ac_optarg ;;
1206
1207  -localstatedir | --localstatedir | --localstatedi | --localstated \
1208  | --localstate | --localstat | --localsta | --localst | --locals)
1209    ac_prev=localstatedir ;;
1210  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1211  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1212    localstatedir=$ac_optarg ;;
1213
1214  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215    ac_prev=mandir ;;
1216  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1217    mandir=$ac_optarg ;;
1218
1219  -nfp | --nfp | --nf)
1220    # Obsolete; use --without-fp.
1221    with_fp=no ;;
1222
1223  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1224  | --no-cr | --no-c | -n)
1225    no_create=yes ;;
1226
1227  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1228  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229    no_recursion=yes ;;
1230
1231  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1232  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1233  | --oldin | --oldi | --old | --ol | --o)
1234    ac_prev=oldincludedir ;;
1235  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1236  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1237  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1238    oldincludedir=$ac_optarg ;;
1239
1240  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241    ac_prev=prefix ;;
1242  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1243    prefix=$ac_optarg ;;
1244
1245  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1246  | --program-pre | --program-pr | --program-p)
1247    ac_prev=program_prefix ;;
1248  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1249  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1250    program_prefix=$ac_optarg ;;
1251
1252  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1253  | --program-suf | --program-su | --program-s)
1254    ac_prev=program_suffix ;;
1255  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1256  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1257    program_suffix=$ac_optarg ;;
1258
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    ac_prev=program_transform_name ;;
1267  -program-transform-name=* | --program-transform-name=* \
1268  | --program-transform-nam=* | --program-transform-na=* \
1269  | --program-transform-n=* | --program-transform-=* \
1270  | --program-transform=* | --program-transfor=* \
1271  | --program-transfo=* | --program-transf=* \
1272  | --program-trans=* | --program-tran=* \
1273  | --progr-tra=* | --program-tr=* | --program-t=*)
1274    program_transform_name=$ac_optarg ;;
1275
1276  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277    ac_prev=pdfdir ;;
1278  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1279    pdfdir=$ac_optarg ;;
1280
1281  -psdir | --psdir | --psdi | --psd | --ps)
1282    ac_prev=psdir ;;
1283  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284    psdir=$ac_optarg ;;
1285
1286  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287  | -silent | --silent | --silen | --sile | --sil)
1288    silent=yes ;;
1289
1290  -runstatedir | --runstatedir | --runstatedi | --runstated \
1291  | --runstate | --runstat | --runsta | --runst | --runs \
1292  | --run | --ru | --r)
1293    ac_prev=runstatedir ;;
1294  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1295  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1296  | --run=* | --ru=* | --r=*)
1297    runstatedir=$ac_optarg ;;
1298
1299  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300    ac_prev=sbindir ;;
1301  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302  | --sbi=* | --sb=*)
1303    sbindir=$ac_optarg ;;
1304
1305  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307  | --sharedst | --shareds | --shared | --share | --shar \
1308  | --sha | --sh)
1309    ac_prev=sharedstatedir ;;
1310  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313  | --sha=* | --sh=*)
1314    sharedstatedir=$ac_optarg ;;
1315
1316  -site | --site | --sit)
1317    ac_prev=site ;;
1318  -site=* | --site=* | --sit=*)
1319    site=$ac_optarg ;;
1320
1321  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322    ac_prev=srcdir ;;
1323  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324    srcdir=$ac_optarg ;;
1325
1326  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327  | --syscon | --sysco | --sysc | --sys | --sy)
1328    ac_prev=sysconfdir ;;
1329  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331    sysconfdir=$ac_optarg ;;
1332
1333  -target | --target | --targe | --targ | --tar | --ta | --t)
1334    ac_prev=target_alias ;;
1335  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336    target_alias=$ac_optarg ;;
1337
1338  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339    verbose=yes ;;
1340
1341  -version | --version | --versio | --versi | --vers | -V)
1342    ac_init_version=: ;;
1343
1344  -with-* | --with-*)
1345    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346    # Reject names that are not valid shell variable names.
1347    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348      as_fn_error $? "invalid package name: \`$ac_useropt'"
1349    ac_useropt_orig=$ac_useropt
1350    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1351    case $ac_user_opts in
1352      *"
1353"with_$ac_useropt"
1354"*) ;;
1355      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356	 ac_unrecognized_sep=', ';;
1357    esac
1358    eval with_$ac_useropt=\$ac_optarg ;;
1359
1360  -without-* | --without-*)
1361    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362    # Reject names that are not valid shell variable names.
1363    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364      as_fn_error $? "invalid package name: \`$ac_useropt'"
1365    ac_useropt_orig=$ac_useropt
1366    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1367    case $ac_user_opts in
1368      *"
1369"with_$ac_useropt"
1370"*) ;;
1371      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372	 ac_unrecognized_sep=', ';;
1373    esac
1374    eval with_$ac_useropt=no ;;
1375
1376  --x)
1377    # Obsolete; use --with-x.
1378    with_x=yes ;;
1379
1380  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381  | --x-incl | --x-inc | --x-in | --x-i)
1382    ac_prev=x_includes ;;
1383  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385    x_includes=$ac_optarg ;;
1386
1387  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389    ac_prev=x_libraries ;;
1390  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392    x_libraries=$ac_optarg ;;
1393
1394  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1395Try \`$0 --help' for more information"
1396    ;;
1397
1398  *=*)
1399    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400    # Reject names that are not valid shell variable names.
1401    case $ac_envvar in #(
1402      '' | [0-9]* | *[!_$as_cr_alnum]* )
1403      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1404    esac
1405    eval $ac_envvar=\$ac_optarg
1406    export $ac_envvar ;;
1407
1408  *)
1409    # FIXME: should be removed in autoconf 3.0.
1410    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1411    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1413    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1414    ;;
1415
1416  esac
1417done
1418
1419if test -n "$ac_prev"; then
1420  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421  as_fn_error $? "missing argument to $ac_option"
1422fi
1423
1424if test -n "$ac_unrecognized_opts"; then
1425  case $enable_option_checking in
1426    no) ;;
1427    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1428    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429  esac
1430fi
1431
1432# Check all directory arguments for consistency.
1433for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434		datadir sysconfdir sharedstatedir localstatedir includedir \
1435		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436		libdir localedir mandir runstatedir
1437do
1438  eval ac_val=\$$ac_var
1439  # Remove trailing slashes.
1440  case $ac_val in
1441    */ )
1442      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443      eval $ac_var=\$ac_val;;
1444  esac
1445  # Be sure to have absolute directory names.
1446  case $ac_val in
1447    [\\/$]* | ?:[\\/]* )  continue;;
1448    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449  esac
1450  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1451done
1452
1453# There might be people who depend on the old broken behavior: `$host'
1454# used to hold the argument of --host etc.
1455# FIXME: To remove some day.
1456build=$build_alias
1457host=$host_alias
1458target=$target_alias
1459
1460# FIXME: To remove some day.
1461if test "x$host_alias" != x; then
1462  if test "x$build_alias" = x; then
1463    cross_compiling=maybe
1464  elif test "x$build_alias" != "x$host_alias"; then
1465    cross_compiling=yes
1466  fi
1467fi
1468
1469ac_tool_prefix=
1470test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
1472test "$silent" = yes && exec 6>/dev/null
1473
1474
1475ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476ac_ls_di=`ls -di .` &&
1477ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478  as_fn_error $? "working directory cannot be determined"
1479test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480  as_fn_error $? "pwd does not report name of working directory"
1481
1482
1483# Find the source files, if location was not specified.
1484if test -z "$srcdir"; then
1485  ac_srcdir_defaulted=yes
1486  # Try the directory containing this script, then the parent directory.
1487  ac_confdir=`$as_dirname -- "$as_myself" ||
1488$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489	 X"$as_myself" : 'X\(//\)[^/]' \| \
1490	 X"$as_myself" : 'X\(//\)$' \| \
1491	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492printf "%s\n" X"$as_myself" |
1493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494	    s//\1/
1495	    q
1496	  }
1497	  /^X\(\/\/\)[^/].*/{
1498	    s//\1/
1499	    q
1500	  }
1501	  /^X\(\/\/\)$/{
1502	    s//\1/
1503	    q
1504	  }
1505	  /^X\(\/\).*/{
1506	    s//\1/
1507	    q
1508	  }
1509	  s/.*/./; q'`
1510  srcdir=$ac_confdir
1511  if test ! -r "$srcdir/$ac_unique_file"; then
1512    srcdir=..
1513  fi
1514else
1515  ac_srcdir_defaulted=no
1516fi
1517if test ! -r "$srcdir/$ac_unique_file"; then
1518  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1520fi
1521ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522ac_abs_confdir=`(
1523	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1524	pwd)`
1525# When building in place, set srcdir=.
1526if test "$ac_abs_confdir" = "$ac_pwd"; then
1527  srcdir=.
1528fi
1529# Remove unnecessary trailing slashes from srcdir.
1530# Double slashes in file names in object file debugging info
1531# mess up M-x gdb in Emacs.
1532case $srcdir in
1533*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534esac
1535for ac_var in $ac_precious_vars; do
1536  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537  eval ac_env_${ac_var}_value=\$${ac_var}
1538  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540done
1541
1542#
1543# Report the --help message.
1544#
1545if test "$ac_init_help" = "long"; then
1546  # Omit some internal or obsolete options to make the list less imposing.
1547  # This message is too long to be a string in the A/UX 3.1 sh.
1548  cat <<_ACEOF
1549\`configure' configures BIND 9.18.30 to adapt to many kinds of systems.
1550
1551Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556Defaults for the options are specified in brackets.
1557
1558Configuration:
1559  -h, --help              display this help and exit
1560      --help=short        display options specific to this package
1561      --help=recursive    display the short help of all the included packages
1562  -V, --version           display version information and exit
1563  -q, --quiet, --silent   do not print \`checking ...' messages
1564      --cache-file=FILE   cache test results in FILE [disabled]
1565  -C, --config-cache      alias for \`--cache-file=config.cache'
1566  -n, --no-create         do not create output files
1567      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569Installation directories:
1570  --prefix=PREFIX         install architecture-independent files in PREFIX
1571                          [$ac_default_prefix]
1572  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                          [PREFIX]
1574
1575By default, \`make install' will install all the files in
1576\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578for instance \`--prefix=\$HOME'.
1579
1580For better control, use the options below.
1581
1582Fine tuning of the installation directories:
1583  --bindir=DIR            user executables [EPREFIX/bin]
1584  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1585  --libexecdir=DIR        program executables [EPREFIX/libexec]
1586  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1587  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1588  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1589  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1590  --libdir=DIR            object code libraries [EPREFIX/lib]
1591  --includedir=DIR        C header files [PREFIX/include]
1592  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1593  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1594  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1595  --infodir=DIR           info documentation [DATAROOTDIR/info]
1596  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1597  --mandir=DIR            man documentation [DATAROOTDIR/man]
1598  --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
1599  --htmldir=DIR           html documentation [DOCDIR]
1600  --dvidir=DIR            dvi documentation [DOCDIR]
1601  --pdfdir=DIR            pdf documentation [DOCDIR]
1602  --psdir=DIR             ps documentation [DOCDIR]
1603_ACEOF
1604
1605  cat <<\_ACEOF
1606
1607Program names:
1608  --program-prefix=PREFIX            prepend PREFIX to installed program names
1609  --program-suffix=SUFFIX            append SUFFIX to installed program names
1610  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1611
1612System types:
1613  --build=BUILD     configure for building on BUILD [guessed]
1614  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615  --target=TARGET   configure for building compilers for TARGET [HOST]
1616_ACEOF
1617fi
1618
1619if test -n "$ac_init_help"; then
1620  case $ac_init_help in
1621     short | recursive ) echo "Configuration of BIND 9.18.30:";;
1622   esac
1623  cat <<\_ACEOF
1624
1625Optional Features:
1626  --disable-option-checking  ignore unrecognized --enable/--with options
1627  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1628  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1629  --enable-silent-rules   less verbose build output (undo: "make V=1")
1630  --disable-silent-rules  verbose build output (undo: "make V=0")
1631  --disable-maintainer-mode
1632                          disable make rules and dependencies not useful (and
1633                          sometimes confusing) to the casual installer
1634  --enable-dependency-tracking
1635                          do not reject slow dependency extractors
1636  --disable-dependency-tracking
1637                          speeds up one-time build
1638  --disable-largefile     omit support for large files
1639  --enable-static[=PKGS]  build static libraries [default=no]
1640  --enable-shared[=PKGS]  build shared libraries [default=yes]
1641  --enable-fast-install[=PKGS]
1642                          optimize for fast installation [default=yes]
1643  --disable-libtool-lock  avoid locking (might break parallel builds)
1644  --enable-developer      enable developer build settings
1645  --enable-warn-error     turn on -Werror when compiling
1646  --enable-fuzzing=<afl|libfuzzer|ossfuzz>
1647                          Enable fuzzing using American Fuzzy Lop or libFuzzer
1648                          (default=no)
1649  --disable-geoip         support GeoIP2 geolocation ACLs if available
1650                          [default=yes]
1651  --disable-doh           disable DNS over HTTPS, removes dependency on
1652                          libnghttp2 (default is --enable-doh)
1653  --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
1654                          implementation
1655  --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
1656  --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
1657  --disable-chroot        disable chroot
1658  --disable-linux-caps    disable Linux capabilities
1659  --enable-fixed-rrset    enable fixed rrset ordering [default=no]
1660  --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
1661  --enable-singletrace    enable single-query trace logging [default=no]
1662  --enable-querytrace     enable very verbose query trace logging [default=no]
1663  --enable-auto-validation
1664                          turn on DNSSEC validation by default, using the IANA
1665                          root key [default=yes]
1666  --enable-dnsrps-dl      DNS Response Policy Service delayed link
1667                          [default=$librpz_dl]
1668  --enable-dnsrps         enable DNS Response Policy Service API
1669  --enable-full-report    report values of all configure options
1670
1671Optional Packages:
1672  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1673  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1674  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1675                          both]
1676  --with-aix-soname=aix|svr4|both
1677                          shared library versioning (aka "SONAME") variant to
1678                          provide on AIX, [default=aix].
1679  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1680  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1681                          compiler's sysroot if not specified).
1682  --with-python-sys-prefix
1683                          use Python's sys.prefix and sys.exec_prefix values
1684  --with-python_prefix    override the default PYTHON_PREFIX
1685  --with-python_exec_prefix
1686                          override the default PYTHON_EXEC_PREFIX
1687  --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
1688                          [default=auto]
1689  --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
1690  --with-libnghttp2       build with libnghttp2 library [yes|no|auto] (default
1691                          is auto)
1692  --with-openssl=DIR      root of the OpenSSL directory
1693  --with-gssapi=PATH|[/path/]krb5-config
1694                          Specify path for system-supplied GSSAPI
1695                          [default=auto]
1696  --with-lmdb=[PATH]      use LMDB library [default=auto], optionally specify
1697                          the prefix for lmdb library
1698  --with-libxml2          build with libxml2 library [yes|no|auto] (default is
1699                          auto)
1700  --with-json-c           build with json-c library [yes|no|detect] (default
1701                          is detect)
1702  --with-zlib             build with zlib for HTTP compression [default=yes]
1703  --with-readline=yes|no|libedit|readline
1704                          specify readline library [default auto]
1705  --with-libidn2=PATH     enable IDN support using GNU libidn2
1706                          [yes|no(default)|path]
1707  --with-cmocka=detect    enable CMocka based tests (default is detect)
1708  --with-jemalloc=detect  enable jemalloc memory allocator (default is detect)
1709  --with-tuning=ARG       Specify server tuning (default or small)
1710  --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
1711  --with-dnsrps-dir       path to DNSRPS provider library
1712
1713Some influential environment variables:
1714  CC          C compiler command
1715  CFLAGS      C compiler flags
1716  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1717              nonstandard directory <lib dir>
1718  LIBS        libraries to pass to the linker, e.g. -l<library>
1719  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1720              you have headers in a nonstandard directory <include dir>
1721  CPP         C preprocessor
1722  LT_SYS_LIBRARY_PATH
1723              User-defined run-time library search path.
1724  PKG_CONFIG  path to pkg-config utility
1725  PKG_CONFIG_PATH
1726              directories to add to pkg-config's search path
1727  PKG_CONFIG_LIBDIR
1728              path overriding pkg-config's built-in search path
1729  PYTHON      the Python interpreter
1730  MAXMINDDB_CFLAGS
1731              C compiler flags for MAXMINDDB, overriding pkg-config
1732  MAXMINDDB_LIBS
1733              linker flags for MAXMINDDB, overriding pkg-config
1734  MAXMINDDB_PREFIX
1735              value of prefix for libmaxminddb, overriding pkg-config
1736  LIBUV_CFLAGS
1737              C compiler flags for LIBUV, overriding pkg-config
1738  LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
1739  LIBNGHTTP2_CFLAGS
1740              C compiler flags for LIBNGHTTP2, overriding pkg-config
1741  LIBNGHTTP2_LIBS
1742              linker flags for LIBNGHTTP2, overriding pkg-config
1743  OPENSSL_CFLAGS
1744              C compiler flags for OPENSSL, overriding pkg-config
1745  OPENSSL_LIBS
1746              linker flags for OPENSSL, overriding pkg-config
1747  LMDB_CFLAGS C compiler flags for LMDB, overriding pkg-config
1748  LMDB_LIBS   linker flags for LMDB, overriding pkg-config
1749  LIBXML2_CFLAGS
1750              C compiler flags for LIBXML2, overriding pkg-config
1751  LIBXML2_LIBS
1752              linker flags for LIBXML2, overriding pkg-config
1753  JSON_C_CFLAGS
1754              C compiler flags for JSON_C, overriding pkg-config
1755  JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1756  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1757  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1758  READLINE_CFLAGS
1759              C compiler flags for READLINE, overriding pkg-config
1760  READLINE_LIBS
1761              linker flags for READLINE, overriding pkg-config
1762  DNSTAP_CFLAGS
1763              C compiler flags for DNSTAP, overriding pkg-config
1764  DNSTAP_LIBS linker flags for DNSTAP, overriding pkg-config
1765  SPHINX_BUILD
1766              path to sphinx-build binary used to build the documentation
1767  LIBIDN2_CFLAGS
1768              C compiler flags for LIBIDN2, overriding pkg-config
1769  LIBIDN2_LIBS
1770              linker flags for LIBIDN2, overriding pkg-config
1771  CMOCKA_CFLAGS
1772              C compiler flags for CMOCKA, overriding pkg-config
1773  CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
1774  JEMALLOC_CFLAGS
1775              C compiler flags for JEMALLOC, overriding pkg-config
1776  JEMALLOC_LIBS
1777              linker flags for JEMALLOC, overriding pkg-config
1778
1779Use these variables to override the choices made by `configure' or to help
1780it to find libraries and programs with nonstandard names/locations.
1781
1782Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
1783BIND home page: <https://www.isc.org/downloads/>.
1784_ACEOF
1785ac_status=$?
1786fi
1787
1788if test "$ac_init_help" = "recursive"; then
1789  # If there are subdirs, report their specific --help.
1790  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1791    test -d "$ac_dir" ||
1792      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1793      continue
1794    ac_builddir=.
1795
1796case "$ac_dir" in
1797.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798*)
1799  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1800  # A ".." for each directory in $ac_dir_suffix.
1801  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1802  case $ac_top_builddir_sub in
1803  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805  esac ;;
1806esac
1807ac_abs_top_builddir=$ac_pwd
1808ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809# for backward compatibility:
1810ac_top_builddir=$ac_top_build_prefix
1811
1812case $srcdir in
1813  .)  # We are building in place.
1814    ac_srcdir=.
1815    ac_top_srcdir=$ac_top_builddir_sub
1816    ac_abs_top_srcdir=$ac_pwd ;;
1817  [\\/]* | ?:[\\/]* )  # Absolute name.
1818    ac_srcdir=$srcdir$ac_dir_suffix;
1819    ac_top_srcdir=$srcdir
1820    ac_abs_top_srcdir=$srcdir ;;
1821  *) # Relative name.
1822    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823    ac_top_srcdir=$ac_top_build_prefix$srcdir
1824    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1825esac
1826ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1827
1828    cd "$ac_dir" || { ac_status=$?; continue; }
1829    # Check for configure.gnu first; this name is used for a wrapper for
1830    # Metaconfig's "Configure" on case-insensitive file systems.
1831    if test -f "$ac_srcdir/configure.gnu"; then
1832      echo &&
1833      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1834    elif test -f "$ac_srcdir/configure"; then
1835      echo &&
1836      $SHELL "$ac_srcdir/configure" --help=recursive
1837    else
1838      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1839    fi || ac_status=$?
1840    cd "$ac_pwd" || { ac_status=$?; break; }
1841  done
1842fi
1843
1844test -n "$ac_init_help" && exit $ac_status
1845if $ac_init_version; then
1846  cat <<\_ACEOF
1847BIND configure 9.18.30
1848generated by GNU Autoconf 2.71
1849
1850Copyright (C) 2021 Free Software Foundation, Inc.
1851This configure script is free software; the Free Software Foundation
1852gives unlimited permission to copy, distribute and modify it.
1853_ACEOF
1854  exit
1855fi
1856
1857## ------------------------ ##
1858## Autoconf initialization. ##
1859## ------------------------ ##
1860
1861# ac_fn_c_try_compile LINENO
1862# --------------------------
1863# Try to compile conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_c_try_compile ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  rm -f conftest.$ac_objext conftest.beam
1868  if { { ac_try="$ac_compile"
1869case "(($ac_try" in
1870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871  *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874printf "%s\n" "$ac_try_echo"; } >&5
1875  (eval "$ac_compile") 2>conftest.err
1876  ac_status=$?
1877  if test -s conftest.err; then
1878    grep -v '^ *+' conftest.err >conftest.er1
1879    cat conftest.er1 >&5
1880    mv -f conftest.er1 conftest.err
1881  fi
1882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883  test $ac_status = 0; } && {
1884	 test -z "$ac_c_werror_flag" ||
1885	 test ! -s conftest.err
1886       } && test -s conftest.$ac_objext
1887then :
1888  ac_retval=0
1889else $as_nop
1890  printf "%s\n" "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893	ac_retval=1
1894fi
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896  as_fn_set_status $ac_retval
1897
1898} # ac_fn_c_try_compile
1899
1900# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901# -------------------------------------------------------
1902# Tests whether HEADER exists and can be compiled using the include files in
1903# INCLUDES, setting the cache variable VAR accordingly.
1904ac_fn_c_check_header_compile ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908printf %s "checking for $2... " >&6; }
1909if eval test \${$3+y}
1910then :
1911  printf %s "(cached) " >&6
1912else $as_nop
1913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h.  */
1915$4
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"
1919then :
1920  eval "$3=yes"
1921else $as_nop
1922  eval "$3=no"
1923fi
1924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928printf "%s\n" "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_header_compile
1932
1933# ac_fn_c_try_cpp LINENO
1934# ----------------------
1935# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_c_try_cpp ()
1937{
1938  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939  if { { ac_try="$ac_cpp conftest.$ac_ext"
1940case "(($ac_try" in
1941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942  *) ac_try_echo=$ac_try;;
1943esac
1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945printf "%s\n" "$ac_try_echo"; } >&5
1946  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947  ac_status=$?
1948  if test -s conftest.err; then
1949    grep -v '^ *+' conftest.err >conftest.er1
1950    cat conftest.er1 >&5
1951    mv -f conftest.er1 conftest.err
1952  fi
1953  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954  test $ac_status = 0; } > conftest.i && {
1955	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1956	 test ! -s conftest.err
1957       }
1958then :
1959  ac_retval=0
1960else $as_nop
1961  printf "%s\n" "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964    ac_retval=1
1965fi
1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967  as_fn_set_status $ac_retval
1968
1969} # ac_fn_c_try_cpp
1970
1971# ac_fn_c_try_run LINENO
1972# ----------------------
1973# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1974# executables *can* be run.
1975ac_fn_c_try_run ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  if { { ac_try="$ac_link"
1979case "(($ac_try" in
1980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981  *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984printf "%s\n" "$ac_try_echo"; } >&5
1985  (eval "$ac_link") 2>&5
1986  ac_status=$?
1987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989  { { case "(($ac_try" in
1990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991  *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994printf "%s\n" "$ac_try_echo"; } >&5
1995  (eval "$ac_try") 2>&5
1996  ac_status=$?
1997  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998  test $ac_status = 0; }; }
1999then :
2000  ac_retval=0
2001else $as_nop
2002  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2003       printf "%s\n" "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006       ac_retval=$ac_status
2007fi
2008  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010  as_fn_set_status $ac_retval
2011
2012} # ac_fn_c_try_run
2013
2014# ac_fn_c_try_link LINENO
2015# -----------------------
2016# Try to link conftest.$ac_ext, and return whether this succeeded.
2017ac_fn_c_try_link ()
2018{
2019  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2021  if { { ac_try="$ac_link"
2022case "(($ac_try" in
2023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024  *) ac_try_echo=$ac_try;;
2025esac
2026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027printf "%s\n" "$ac_try_echo"; } >&5
2028  (eval "$ac_link") 2>conftest.err
2029  ac_status=$?
2030  if test -s conftest.err; then
2031    grep -v '^ *+' conftest.err >conftest.er1
2032    cat conftest.er1 >&5
2033    mv -f conftest.er1 conftest.err
2034  fi
2035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036  test $ac_status = 0; } && {
2037	 test -z "$ac_c_werror_flag" ||
2038	 test ! -s conftest.err
2039       } && test -s conftest$ac_exeext && {
2040	 test "$cross_compiling" = yes ||
2041	 test -x conftest$ac_exeext
2042       }
2043then :
2044  ac_retval=0
2045else $as_nop
2046  printf "%s\n" "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049	ac_retval=1
2050fi
2051  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053  # interfere with the next link command; also delete a directory that is
2054  # left behind by Apple's compiler.  We do this before executing the actions.
2055  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057  as_fn_set_status $ac_retval
2058
2059} # ac_fn_c_try_link
2060
2061# ac_fn_c_check_func LINENO FUNC VAR
2062# ----------------------------------
2063# Tests whether FUNC exists, setting the cache variable VAR accordingly
2064ac_fn_c_check_func ()
2065{
2066  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068printf %s "checking for $2... " >&6; }
2069if eval test \${$3+y}
2070then :
2071  printf %s "(cached) " >&6
2072else $as_nop
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2077#define $2 innocuous_$2
2078
2079/* System header to define __stub macros and hopefully few prototypes,
2080   which can conflict with char $2 (); below.  */
2081
2082#include <limits.h>
2083#undef $2
2084
2085/* Override any GCC internal prototype to avoid an error.
2086   Use char because int might match the return type of a GCC
2087   builtin and then its argument prototype would still apply.  */
2088#ifdef __cplusplus
2089extern "C"
2090#endif
2091char $2 ();
2092/* The GNU C library defines this for functions which it implements
2093    to always fail with ENOSYS.  Some functions are actually named
2094    something starting with __ and the normal name is an alias.  */
2095#if defined __stub_$2 || defined __stub___$2
2096choke me
2097#endif
2098
2099int
2100main (void)
2101{
2102return $2 ();
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_link "$LINENO"
2108then :
2109  eval "$3=yes"
2110else $as_nop
2111  eval "$3=no"
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.beam \
2114    conftest$ac_exeext conftest.$ac_ext
2115fi
2116eval ac_res=\$$3
2117	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118printf "%s\n" "$ac_res" >&6; }
2119  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120
2121} # ac_fn_c_check_func
2122
2123# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124# -------------------------------------------
2125# Tests whether TYPE exists after having included INCLUDES, setting cache
2126# variable VAR accordingly.
2127ac_fn_c_check_type ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131printf %s "checking for $2... " >&6; }
2132if eval test \${$3+y}
2133then :
2134  printf %s "(cached) " >&6
2135else $as_nop
2136  eval "$3=no"
2137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h.  */
2139$4
2140int
2141main (void)
2142{
2143if (sizeof ($2))
2144	 return 0;
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_compile "$LINENO"
2150then :
2151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152/* end confdefs.h.  */
2153$4
2154int
2155main (void)
2156{
2157if (sizeof (($2)))
2158	    return 0;
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"
2164then :
2165
2166else $as_nop
2167  eval "$3=yes"
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2172fi
2173eval ac_res=\$$3
2174	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175printf "%s\n" "$ac_res" >&6; }
2176  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178} # ac_fn_c_check_type
2179
2180# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2181# ------------------------------------------------------------------
2182# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2183# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2184ac_fn_check_decl ()
2185{
2186  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187  as_decl_name=`echo $2|sed 's/ *(.*//'`
2188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2189printf %s "checking whether $as_decl_name is declared... " >&6; }
2190if eval test \${$3+y}
2191then :
2192  printf %s "(cached) " >&6
2193else $as_nop
2194  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2195  eval ac_save_FLAGS=\$$6
2196  as_fn_append $6 " $5"
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200int
2201main (void)
2202{
2203#ifndef $as_decl_name
2204#ifdef __cplusplus
2205  (void) $as_decl_use;
2206#else
2207  (void) $as_decl_name;
2208#endif
2209#endif
2210
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215if ac_fn_c_try_compile "$LINENO"
2216then :
2217  eval "$3=yes"
2218else $as_nop
2219  eval "$3=no"
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2222  eval $6=\$ac_save_FLAGS
2223
2224fi
2225eval ac_res=\$$3
2226	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227printf "%s\n" "$ac_res" >&6; }
2228  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229
2230} # ac_fn_check_decl
2231ac_configure_args_raw=
2232for ac_arg
2233do
2234  case $ac_arg in
2235  *\'*)
2236    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237  esac
2238  as_fn_append ac_configure_args_raw " '$ac_arg'"
2239done
2240
2241case $ac_configure_args_raw in
2242  *$as_nl*)
2243    ac_safe_unquote= ;;
2244  *)
2245    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2246    ac_unsafe_a="$ac_unsafe_z#~"
2247    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2248    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2249esac
2250
2251cat >config.log <<_ACEOF
2252This file contains any messages produced by compilers while
2253running configure, to aid debugging if configure makes a mistake.
2254
2255It was created by BIND $as_me 9.18.30, which was
2256generated by GNU Autoconf 2.71.  Invocation command line was
2257
2258  $ $0$ac_configure_args_raw
2259
2260_ACEOF
2261exec 5>>config.log
2262{
2263cat <<_ASUNAME
2264## --------- ##
2265## Platform. ##
2266## --------- ##
2267
2268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272uname -v = `(uname -v) 2>/dev/null || echo unknown`
2273
2274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2276
2277/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2278/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2281/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2282/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2283/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2284
2285_ASUNAME
2286
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  case $as_dir in #(((
2292    '') as_dir=./ ;;
2293    */) ;;
2294    *) as_dir=$as_dir/ ;;
2295  esac
2296    printf "%s\n" "PATH: $as_dir"
2297  done
2298IFS=$as_save_IFS
2299
2300} >&5
2301
2302cat >&5 <<_ACEOF
2303
2304
2305## ----------- ##
2306## Core tests. ##
2307## ----------- ##
2308
2309_ACEOF
2310
2311
2312# Keep a trace of the command line.
2313# Strip out --no-create and --no-recursion so they do not pile up.
2314# Strip out --silent because we don't want to record it for future runs.
2315# Also quote any args containing shell meta-characters.
2316# Make two passes to allow for proper duplicate-argument suppression.
2317ac_configure_args=
2318ac_configure_args0=
2319ac_configure_args1=
2320ac_must_keep_next=false
2321for ac_pass in 1 2
2322do
2323  for ac_arg
2324  do
2325    case $ac_arg in
2326    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328    | -silent | --silent | --silen | --sile | --sil)
2329      continue ;;
2330    *\'*)
2331      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332    esac
2333    case $ac_pass in
2334    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2335    2)
2336      as_fn_append ac_configure_args1 " '$ac_arg'"
2337      if test $ac_must_keep_next = true; then
2338	ac_must_keep_next=false # Got value, back to normal.
2339      else
2340	case $ac_arg in
2341	  *=* | --config-cache | -C | -disable-* | --disable-* \
2342	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344	  | -with-* | --with-* | -without-* | --without-* | --x)
2345	    case "$ac_configure_args0 " in
2346	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347	    esac
2348	    ;;
2349	  -* ) ac_must_keep_next=true ;;
2350	esac
2351      fi
2352      as_fn_append ac_configure_args " '$ac_arg'"
2353      ;;
2354    esac
2355  done
2356done
2357{ ac_configure_args0=; unset ac_configure_args0;}
2358{ ac_configure_args1=; unset ac_configure_args1;}
2359
2360# When interrupted or exit'd, cleanup temporary files, and complete
2361# config.log.  We remove comments because anyway the quotes in there
2362# would cause problems or look ugly.
2363# WARNING: Use '\'' to represent an apostrophe within the trap.
2364# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365trap 'exit_status=$?
2366  # Sanitize IFS.
2367  IFS=" ""	$as_nl"
2368  # Save into config.log some information that might help in debugging.
2369  {
2370    echo
2371
2372    printf "%s\n" "## ---------------- ##
2373## Cache variables. ##
2374## ---------------- ##"
2375    echo
2376    # The following way of writing the cache mishandles newlines in values,
2377(
2378  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379    eval ac_val=\$$ac_var
2380    case $ac_val in #(
2381    *${as_nl}*)
2382      case $ac_var in #(
2383      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385      esac
2386      case $ac_var in #(
2387      _ | IFS | as_nl) ;; #(
2388      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389      *) { eval $ac_var=; unset $ac_var;} ;;
2390      esac ;;
2391    esac
2392  done
2393  (set) 2>&1 |
2394    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395    *${as_nl}ac_space=\ *)
2396      sed -n \
2397	"s/'\''/'\''\\\\'\'''\''/g;
2398	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399      ;; #(
2400    *)
2401      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402      ;;
2403    esac |
2404    sort
2405)
2406    echo
2407
2408    printf "%s\n" "## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##"
2411    echo
2412    for ac_var in $ac_subst_vars
2413    do
2414      eval ac_val=\$$ac_var
2415      case $ac_val in
2416      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417      esac
2418      printf "%s\n" "$ac_var='\''$ac_val'\''"
2419    done | sort
2420    echo
2421
2422    if test -n "$ac_subst_files"; then
2423      printf "%s\n" "## ------------------- ##
2424## File substitutions. ##
2425## ------------------- ##"
2426      echo
2427      for ac_var in $ac_subst_files
2428      do
2429	eval ac_val=\$$ac_var
2430	case $ac_val in
2431	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432	esac
2433	printf "%s\n" "$ac_var='\''$ac_val'\''"
2434      done | sort
2435      echo
2436    fi
2437
2438    if test -s confdefs.h; then
2439      printf "%s\n" "## ----------- ##
2440## confdefs.h. ##
2441## ----------- ##"
2442      echo
2443      cat confdefs.h
2444      echo
2445    fi
2446    test "$ac_signal" != 0 &&
2447      printf "%s\n" "$as_me: caught signal $ac_signal"
2448    printf "%s\n" "$as_me: exit $exit_status"
2449  } >&5
2450  rm -f core *.core core.conftest.* &&
2451    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452    exit $exit_status
2453' 0
2454for ac_signal in 1 2 13 15; do
2455  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
2460rm -f -r conftest* confdefs.h
2461
2462printf "%s\n" "/* confdefs.h */" > confdefs.h
2463
2464# Predefined preprocessor variables.
2465
2466printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2467
2468printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2469
2470printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2471
2472printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2473
2474printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2475
2476printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2477
2478
2479# Let the site file select an alternate cache file if it wants to.
2480# Prefer an explicitly selected file to automatically selected ones.
2481if test -n "$CONFIG_SITE"; then
2482  ac_site_files="$CONFIG_SITE"
2483elif test "x$prefix" != xNONE; then
2484  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2485else
2486  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2487fi
2488
2489for ac_site_file in $ac_site_files
2490do
2491  case $ac_site_file in #(
2492  */*) :
2493     ;; #(
2494  *) :
2495    ac_site_file=./$ac_site_file ;;
2496esac
2497  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2499printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2500    sed 's/^/| /' "$ac_site_file" >&5
2501    . "$ac_site_file" \
2502      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2504as_fn_error $? "failed to load site script $ac_site_file
2505See \`config.log' for more details" "$LINENO" 5; }
2506  fi
2507done
2508
2509if test -r "$cache_file"; then
2510  # Some versions of bash will fail to source /dev/null (special files
2511  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2512  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2515    case $cache_file in
2516      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517      *)                      . "./$cache_file";;
2518    esac
2519  fi
2520else
2521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2523  >$cache_file
2524fi
2525
2526as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2527# Test code for whether the C compiler supports C89 (global declarations)
2528ac_c_conftest_c89_globals='
2529/* Does the compiler advertise C89 conformance?
2530   Do not test the value of __STDC__, because some compilers set it to 0
2531   while being otherwise adequately conformant. */
2532#if !defined __STDC__
2533# error "Compiler does not advertise C89 conformance"
2534#endif
2535
2536#include <stddef.h>
2537#include <stdarg.h>
2538struct stat;
2539/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2540struct buf { int x; };
2541struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2542static char *e (p, i)
2543     char **p;
2544     int i;
2545{
2546  return p[i];
2547}
2548static char *f (char * (*g) (char **, int), char **p, ...)
2549{
2550  char *s;
2551  va_list v;
2552  va_start (v,p);
2553  s = g (p, va_arg (v,int));
2554  va_end (v);
2555  return s;
2556}
2557
2558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2559   function prototypes and stuff, but not \xHH hex character constants.
2560   These do not provoke an error unfortunately, instead are silently treated
2561   as an "x".  The following induces an error, until -std is added to get
2562   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2563   array size at least.  It is necessary to write \x00 == 0 to get something
2564   that is true only with -std.  */
2565int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2566
2567/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2568   inside strings and character constants.  */
2569#define FOO(x) '\''x'\''
2570int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2571
2572int test (int i, double x);
2573struct s1 {int (*f) (int a);};
2574struct s2 {int (*f) (double a);};
2575int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2576               int, int);'
2577
2578# Test code for whether the C compiler supports C89 (body of main).
2579ac_c_conftest_c89_main='
2580ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2581'
2582
2583# Test code for whether the C compiler supports C99 (global declarations)
2584ac_c_conftest_c99_globals='
2585// Does the compiler advertise C99 conformance?
2586#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2587# error "Compiler does not advertise C99 conformance"
2588#endif
2589
2590#include <stdbool.h>
2591extern int puts (const char *);
2592extern int printf (const char *, ...);
2593extern int dprintf (int, const char *, ...);
2594extern void *malloc (size_t);
2595
2596// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2597// dprintf is used instead of fprintf to avoid needing to declare
2598// FILE and stderr.
2599#define debug(...) dprintf (2, __VA_ARGS__)
2600#define showlist(...) puts (#__VA_ARGS__)
2601#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2602static void
2603test_varargs_macros (void)
2604{
2605  int x = 1234;
2606  int y = 5678;
2607  debug ("Flag");
2608  debug ("X = %d\n", x);
2609  showlist (The first, second, and third items.);
2610  report (x>y, "x is %d but y is %d", x, y);
2611}
2612
2613// Check long long types.
2614#define BIG64 18446744073709551615ull
2615#define BIG32 4294967295ul
2616#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2617#if !BIG_OK
2618  #error "your preprocessor is broken"
2619#endif
2620#if BIG_OK
2621#else
2622  #error "your preprocessor is broken"
2623#endif
2624static long long int bignum = -9223372036854775807LL;
2625static unsigned long long int ubignum = BIG64;
2626
2627struct incomplete_array
2628{
2629  int datasize;
2630  double data[];
2631};
2632
2633struct named_init {
2634  int number;
2635  const wchar_t *name;
2636  double average;
2637};
2638
2639typedef const char *ccp;
2640
2641static inline int
2642test_restrict (ccp restrict text)
2643{
2644  // See if C++-style comments work.
2645  // Iterate through items via the restricted pointer.
2646  // Also check for declarations in for loops.
2647  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2648    continue;
2649  return 0;
2650}
2651
2652// Check varargs and va_copy.
2653static bool
2654test_varargs (const char *format, ...)
2655{
2656  va_list args;
2657  va_start (args, format);
2658  va_list args_copy;
2659  va_copy (args_copy, args);
2660
2661  const char *str = "";
2662  int number = 0;
2663  float fnumber = 0;
2664
2665  while (*format)
2666    {
2667      switch (*format++)
2668	{
2669	case '\''s'\'': // string
2670	  str = va_arg (args_copy, const char *);
2671	  break;
2672	case '\''d'\'': // int
2673	  number = va_arg (args_copy, int);
2674	  break;
2675	case '\''f'\'': // float
2676	  fnumber = va_arg (args_copy, double);
2677	  break;
2678	default:
2679	  break;
2680	}
2681    }
2682  va_end (args_copy);
2683  va_end (args);
2684
2685  return *str && number && fnumber;
2686}
2687'
2688
2689# Test code for whether the C compiler supports C99 (body of main).
2690ac_c_conftest_c99_main='
2691  // Check bool.
2692  _Bool success = false;
2693  success |= (argc != 0);
2694
2695  // Check restrict.
2696  if (test_restrict ("String literal") == 0)
2697    success = true;
2698  char *restrict newvar = "Another string";
2699
2700  // Check varargs.
2701  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2702  test_varargs_macros ();
2703
2704  // Check flexible array members.
2705  struct incomplete_array *ia =
2706    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2707  ia->datasize = 10;
2708  for (int i = 0; i < ia->datasize; ++i)
2709    ia->data[i] = i * 1.234;
2710
2711  // Check named initializers.
2712  struct named_init ni = {
2713    .number = 34,
2714    .name = L"Test wide string",
2715    .average = 543.34343,
2716  };
2717
2718  ni.number = 58;
2719
2720  int dynamic_array[ni.number];
2721  dynamic_array[0] = argv[0][0];
2722  dynamic_array[ni.number - 1] = 543;
2723
2724  // work around unused variable warnings
2725  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2726	 || dynamic_array[ni.number - 1] != 543);
2727'
2728
2729# Test code for whether the C compiler supports C11 (global declarations)
2730ac_c_conftest_c11_globals='
2731// Does the compiler advertise C11 conformance?
2732#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2733# error "Compiler does not advertise C11 conformance"
2734#endif
2735
2736// Check _Alignas.
2737char _Alignas (double) aligned_as_double;
2738char _Alignas (0) no_special_alignment;
2739extern char aligned_as_int;
2740char _Alignas (0) _Alignas (int) aligned_as_int;
2741
2742// Check _Alignof.
2743enum
2744{
2745  int_alignment = _Alignof (int),
2746  int_array_alignment = _Alignof (int[100]),
2747  char_alignment = _Alignof (char)
2748};
2749_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2750
2751// Check _Noreturn.
2752int _Noreturn does_not_return (void) { for (;;) continue; }
2753
2754// Check _Static_assert.
2755struct test_static_assert
2756{
2757  int x;
2758  _Static_assert (sizeof (int) <= sizeof (long int),
2759                  "_Static_assert does not work in struct");
2760  long int y;
2761};
2762
2763// Check UTF-8 literals.
2764#define u8 syntax error!
2765char const utf8_literal[] = u8"happens to be ASCII" "another string";
2766
2767// Check duplicate typedefs.
2768typedef long *long_ptr;
2769typedef long int *long_ptr;
2770typedef long_ptr long_ptr;
2771
2772// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2773struct anonymous
2774{
2775  union {
2776    struct { int i; int j; };
2777    struct { int k; long int l; } w;
2778  };
2779  int m;
2780} v1;
2781'
2782
2783# Test code for whether the C compiler supports C11 (body of main).
2784ac_c_conftest_c11_main='
2785  _Static_assert ((offsetof (struct anonymous, i)
2786		   == offsetof (struct anonymous, w.k)),
2787		  "Anonymous union alignment botch");
2788  v1.i = 2;
2789  v1.w.k = 5;
2790  ok |= v1.i != 5;
2791'
2792
2793# Test code for whether the C compiler supports C11 (complete).
2794ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2795${ac_c_conftest_c99_globals}
2796${ac_c_conftest_c11_globals}
2797
2798int
2799main (int argc, char **argv)
2800{
2801  int ok = 0;
2802  ${ac_c_conftest_c89_main}
2803  ${ac_c_conftest_c99_main}
2804  ${ac_c_conftest_c11_main}
2805  return ok;
2806}
2807"
2808
2809# Test code for whether the C compiler supports C99 (complete).
2810ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2811${ac_c_conftest_c99_globals}
2812
2813int
2814main (int argc, char **argv)
2815{
2816  int ok = 0;
2817  ${ac_c_conftest_c89_main}
2818  ${ac_c_conftest_c99_main}
2819  return ok;
2820}
2821"
2822
2823# Test code for whether the C compiler supports C89 (complete).
2824ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2825
2826int
2827main (int argc, char **argv)
2828{
2829  int ok = 0;
2830  ${ac_c_conftest_c89_main}
2831  return ok;
2832}
2833"
2834
2835as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2836as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2837as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2838as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2839as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2840as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2841as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2842as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2843as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2844as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2845
2846# Auxiliary files required by this configure script.
2847ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2848
2849# Locations in which to look for auxiliary files.
2850ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2851
2852# Search for a directory containing all of the required auxiliary files,
2853# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2854# If we don't find one directory that contains all the files we need,
2855# we report the set of missing files from the *first* directory in
2856# $ac_aux_dir_candidates and give up.
2857ac_missing_aux_files=""
2858ac_first_candidate=:
2859printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861as_found=false
2862for as_dir in $ac_aux_dir_candidates
2863do
2864  IFS=$as_save_IFS
2865  case $as_dir in #(((
2866    '') as_dir=./ ;;
2867    */) ;;
2868    *) as_dir=$as_dir/ ;;
2869  esac
2870  as_found=:
2871
2872  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2873  ac_aux_dir_found=yes
2874  ac_install_sh=
2875  for ac_aux in $ac_aux_files
2876  do
2877    # As a special case, if "install-sh" is required, that requirement
2878    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2879    # and $ac_install_sh is set appropriately for whichever one is found.
2880    if test x"$ac_aux" = x"install-sh"
2881    then
2882      if test -f "${as_dir}install-sh"; then
2883        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2884        ac_install_sh="${as_dir}install-sh -c"
2885      elif test -f "${as_dir}install.sh"; then
2886        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2887        ac_install_sh="${as_dir}install.sh -c"
2888      elif test -f "${as_dir}shtool"; then
2889        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2890        ac_install_sh="${as_dir}shtool install -c"
2891      else
2892        ac_aux_dir_found=no
2893        if $ac_first_candidate; then
2894          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2895        else
2896          break
2897        fi
2898      fi
2899    else
2900      if test -f "${as_dir}${ac_aux}"; then
2901        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2902      else
2903        ac_aux_dir_found=no
2904        if $ac_first_candidate; then
2905          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2906        else
2907          break
2908        fi
2909      fi
2910    fi
2911  done
2912  if test "$ac_aux_dir_found" = yes; then
2913    ac_aux_dir="$as_dir"
2914    break
2915  fi
2916  ac_first_candidate=false
2917
2918  as_found=false
2919done
2920IFS=$as_save_IFS
2921if $as_found
2922then :
2923
2924else $as_nop
2925  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2926fi
2927
2928
2929# These three variables are undocumented and unsupported,
2930# and are intended to be withdrawn in a future Autoconf release.
2931# They can cause serious problems if a builder's source tree is in a directory
2932# whose full name contains unusual characters.
2933if test -f "${ac_aux_dir}config.guess"; then
2934  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2935fi
2936if test -f "${ac_aux_dir}config.sub"; then
2937  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2938fi
2939if test -f "$ac_aux_dir/configure"; then
2940  ac_configure="$SHELL ${ac_aux_dir}configure"
2941fi
2942
2943# Check that the precious variables saved in the cache have kept the same
2944# value.
2945ac_cache_corrupted=false
2946for ac_var in $ac_precious_vars; do
2947  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2948  eval ac_new_set=\$ac_env_${ac_var}_set
2949  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2950  eval ac_new_val=\$ac_env_${ac_var}_value
2951  case $ac_old_set,$ac_new_set in
2952    set,)
2953      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2954printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2955      ac_cache_corrupted=: ;;
2956    ,set)
2957      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2958printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2959      ac_cache_corrupted=: ;;
2960    ,);;
2961    *)
2962      if test "x$ac_old_val" != "x$ac_new_val"; then
2963	# differences in whitespace do not lead to failure.
2964	ac_old_val_w=`echo x $ac_old_val`
2965	ac_new_val_w=`echo x $ac_new_val`
2966	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2967	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2968printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2969	  ac_cache_corrupted=:
2970	else
2971	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2972printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2973	  eval $ac_var=\$ac_old_val
2974	fi
2975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2976printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2978printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2979      fi;;
2980  esac
2981  # Pass precious variables to config.status.
2982  if test "$ac_new_set" = set; then
2983    case $ac_new_val in
2984    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2985    *) ac_arg=$ac_var=$ac_new_val ;;
2986    esac
2987    case " $ac_configure_args " in
2988      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2989      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990    esac
2991  fi
2992done
2993if $ac_cache_corrupted; then
2994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2996  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2997printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2998  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2999	    and start over" "$LINENO" 5
3000fi
3001## -------------------- ##
3002## Main body of script. ##
3003## -------------------- ##
3004
3005ac_ext=c
3006ac_cpp='$CPP $CPPFLAGS'
3007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011
3012
3013
3014
3015printf "%s\n" "#define PACKAGE_VERSION_MAJOR \"9\"" >>confdefs.h
3016
3017
3018printf "%s\n" "#define PACKAGE_VERSION_MINOR \"18\"" >>confdefs.h
3019
3020
3021printf "%s\n" "#define PACKAGE_VERSION_PATCH \"30\"" >>confdefs.h
3022
3023
3024printf "%s\n" "#define PACKAGE_VERSION_EXTRA \"\"" >>confdefs.h
3025
3026
3027printf "%s\n" "#define PACKAGE_DESCRIPTION \" (Extended Support Version)\"" >>confdefs.h
3028
3029
3030printf "%s\n" "#define PACKAGE_SRCID \"cdc8d69\"" >>confdefs.h
3031
3032
3033bind_CONFIGARGS="${ac_configure_args:-default}"
3034
3035printf "%s\n" "#define PACKAGE_CONFIGARGS \"$bind_CONFIGARGS\"" >>confdefs.h
3036
3037
3038
3039printf "%s\n" "#define PACKAGE_BUILDER \"make\"" >>confdefs.h
3040
3041
3042#
3043# Get the Canonical System Type
3044#
3045
3046
3047
3048  # Make sure we can run config.sub.
3049$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3050  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3051
3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3053printf %s "checking build system type... " >&6; }
3054if test ${ac_cv_build+y}
3055then :
3056  printf %s "(cached) " >&6
3057else $as_nop
3058  ac_build_alias=$build_alias
3059test "x$ac_build_alias" = x &&
3060  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3061test "x$ac_build_alias" = x &&
3062  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3063ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3064  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3065
3066fi
3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3068printf "%s\n" "$ac_cv_build" >&6; }
3069case $ac_cv_build in
3070*-*-*) ;;
3071*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3072esac
3073build=$ac_cv_build
3074ac_save_IFS=$IFS; IFS='-'
3075set x $ac_cv_build
3076shift
3077build_cpu=$1
3078build_vendor=$2
3079shift; shift
3080# Remember, the first character of IFS is used to create $*,
3081# except with old shells:
3082build_os=$*
3083IFS=$ac_save_IFS
3084case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3085
3086
3087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3088printf %s "checking host system type... " >&6; }
3089if test ${ac_cv_host+y}
3090then :
3091  printf %s "(cached) " >&6
3092else $as_nop
3093  if test "x$host_alias" = x; then
3094  ac_cv_host=$ac_cv_build
3095else
3096  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3097    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3098fi
3099
3100fi
3101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3102printf "%s\n" "$ac_cv_host" >&6; }
3103case $ac_cv_host in
3104*-*-*) ;;
3105*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3106esac
3107host=$ac_cv_host
3108ac_save_IFS=$IFS; IFS='-'
3109set x $ac_cv_host
3110shift
3111host_cpu=$1
3112host_vendor=$2
3113shift; shift
3114# Remember, the first character of IFS is used to create $*,
3115# except with old shells:
3116host_os=$*
3117IFS=$ac_save_IFS
3118case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3119
3120
3121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3122printf %s "checking target system type... " >&6; }
3123if test ${ac_cv_target+y}
3124then :
3125  printf %s "(cached) " >&6
3126else $as_nop
3127  if test "x$target_alias" = x; then
3128  ac_cv_target=$ac_cv_host
3129else
3130  ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3131    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3132fi
3133
3134fi
3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3136printf "%s\n" "$ac_cv_target" >&6; }
3137case $ac_cv_target in
3138*-*-*) ;;
3139*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3140esac
3141target=$ac_cv_target
3142ac_save_IFS=$IFS; IFS='-'
3143set x $ac_cv_target
3144shift
3145target_cpu=$1
3146target_vendor=$2
3147shift; shift
3148# Remember, the first character of IFS is used to create $*,
3149# except with old shells:
3150target_os=$*
3151IFS=$ac_save_IFS
3152case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3153
3154
3155# The aliases save the names the user supplied, while $host etc.
3156# will get canonicalized.
3157test -n "$target_alias" &&
3158  test "$program_prefix$program_suffix$program_transform_name" = \
3159    NONENONEs,x,x, &&
3160  program_prefix=${target_alias}-
3161
3162
3163am__api_version='1.16'
3164
3165
3166  # Find a good install program.  We prefer a C program (faster),
3167# so one script is as good as another.  But avoid the broken or
3168# incompatible versions:
3169# SysV /etc/install, /usr/sbin/install
3170# SunOS /usr/etc/install
3171# IRIX /sbin/install
3172# AIX /bin/install
3173# AmigaOS /C/install, which installs bootblocks on floppy discs
3174# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3175# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3176# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3177# OS/2's system install, which has a completely different semantic
3178# ./install, which can be erroneously created by make from ./install.sh.
3179# Reject install programs that cannot install multiple files.
3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3181printf %s "checking for a BSD-compatible install... " >&6; }
3182if test -z "$INSTALL"; then
3183if test ${ac_cv_path_install+y}
3184then :
3185  printf %s "(cached) " >&6
3186else $as_nop
3187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  case $as_dir in #(((
3192    '') as_dir=./ ;;
3193    */) ;;
3194    *) as_dir=$as_dir/ ;;
3195  esac
3196    # Account for fact that we put trailing slashes in our PATH walk.
3197case $as_dir in #((
3198  ./ | /[cC]/* | \
3199  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3200  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3201  /usr/ucb/* ) ;;
3202  *)
3203    # OSF1 and SCO ODT 3.0 have their own names for install.
3204    # Don't use installbsd from OSF since it installs stuff as root
3205    # by default.
3206    for ac_prog in ginstall scoinst install; do
3207      for ac_exec_ext in '' $ac_executable_extensions; do
3208	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3209	  if test $ac_prog = install &&
3210	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3211	    # AIX install.  It has an incompatible calling convention.
3212	    :
3213	  elif test $ac_prog = install &&
3214	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3215	    # program-specific install script used by HP pwplus--don't use.
3216	    :
3217	  else
3218	    rm -rf conftest.one conftest.two conftest.dir
3219	    echo one > conftest.one
3220	    echo two > conftest.two
3221	    mkdir conftest.dir
3222	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3223	      test -s conftest.one && test -s conftest.two &&
3224	      test -s conftest.dir/conftest.one &&
3225	      test -s conftest.dir/conftest.two
3226	    then
3227	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3228	      break 3
3229	    fi
3230	  fi
3231	fi
3232      done
3233    done
3234    ;;
3235esac
3236
3237  done
3238IFS=$as_save_IFS
3239
3240rm -rf conftest.one conftest.two conftest.dir
3241
3242fi
3243  if test ${ac_cv_path_install+y}; then
3244    INSTALL=$ac_cv_path_install
3245  else
3246    # As a last resort, use the slow shell script.  Don't cache a
3247    # value for INSTALL within a source directory, because that will
3248    # break other packages using the cache if that directory is
3249    # removed, or if the value is a relative name.
3250    INSTALL=$ac_install_sh
3251  fi
3252fi
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3254printf "%s\n" "$INSTALL" >&6; }
3255
3256# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3257# It thinks the first close brace ends the variable substitution.
3258test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3259
3260test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3261
3262test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3263
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3265printf %s "checking whether build environment is sane... " >&6; }
3266# Reject unsafe characters in $srcdir or the absolute working directory
3267# name.  Accept space and tab only in the latter.
3268am_lf='
3269'
3270case `pwd` in
3271  *[\\\"\#\$\&\'\`$am_lf]*)
3272    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3273esac
3274case $srcdir in
3275  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3276    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3277esac
3278
3279# Do 'set' in a subshell so we don't clobber the current shell's
3280# arguments.  Must try -L first in case configure is actually a
3281# symlink; some systems play weird games with the mod time of symlinks
3282# (eg FreeBSD returns the mod time of the symlink's containing
3283# directory).
3284if (
3285   am_has_slept=no
3286   for am_try in 1 2; do
3287     echo "timestamp, slept: $am_has_slept" > conftest.file
3288     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3289     if test "$*" = "X"; then
3290	# -L didn't work.
3291	set X `ls -t "$srcdir/configure" conftest.file`
3292     fi
3293     if test "$*" != "X $srcdir/configure conftest.file" \
3294	&& test "$*" != "X conftest.file $srcdir/configure"; then
3295
3296	# If neither matched, then we have a broken ls.  This can happen
3297	# if, for instance, CONFIG_SHELL is bash and it inherits a
3298	# broken ls alias from the environment.  This has actually
3299	# happened.  Such a system could not be considered "sane".
3300	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3301  alias in your environment" "$LINENO" 5
3302     fi
3303     if test "$2" = conftest.file || test $am_try -eq 2; then
3304       break
3305     fi
3306     # Just in case.
3307     sleep 1
3308     am_has_slept=yes
3309   done
3310   test "$2" = conftest.file
3311   )
3312then
3313   # Ok.
3314   :
3315else
3316   as_fn_error $? "newly created file is older than distributed files!
3317Check your system clock" "$LINENO" 5
3318fi
3319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320printf "%s\n" "yes" >&6; }
3321# If we didn't sleep, we still need to ensure time stamps of config.status and
3322# generated files are strictly newer.
3323am_sleep_pid=
3324if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3325  ( sleep 1 ) &
3326  am_sleep_pid=$!
3327fi
3328
3329rm -f conftest.file
3330
3331test "$program_prefix" != NONE &&
3332  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3333# Use a double $ so make ignores it.
3334test "$program_suffix" != NONE &&
3335  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3336# Double any \ or $.
3337# By default was `s,x,x', remove it if useless.
3338ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3339program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3340
3341
3342# Expand $ac_aux_dir to an absolute path.
3343am_aux_dir=`cd "$ac_aux_dir" && pwd`
3344
3345
3346  if test x"${MISSING+set}" != xset; then
3347  MISSING="\${SHELL} '$am_aux_dir/missing'"
3348fi
3349# Use eval to expand $SHELL
3350if eval "$MISSING --is-lightweight"; then
3351  am_missing_run="$MISSING "
3352else
3353  am_missing_run=
3354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3355printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3356fi
3357
3358if test x"${install_sh+set}" != xset; then
3359  case $am_aux_dir in
3360  *\ * | *\	*)
3361    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3362  *)
3363    install_sh="\${SHELL} $am_aux_dir/install-sh"
3364  esac
3365fi
3366
3367# Installed binaries are usually stripped using 'strip' when the user
3368# run "make install-strip".  However 'strip' might not be the right
3369# tool to use in cross-compilation environments, therefore Automake
3370# will honor the 'STRIP' environment variable to overrule this program.
3371if test "$cross_compiling" != no; then
3372  if test -n "$ac_tool_prefix"; then
3373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3374set dummy ${ac_tool_prefix}strip; ac_word=$2
3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376printf %s "checking for $ac_word... " >&6; }
3377if test ${ac_cv_prog_STRIP+y}
3378then :
3379  printf %s "(cached) " >&6
3380else $as_nop
3381  if test -n "$STRIP"; then
3382  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  case $as_dir in #(((
3389    '') as_dir=./ ;;
3390    */) ;;
3391    *) as_dir=$as_dir/ ;;
3392  esac
3393    for ac_exec_ext in '' $ac_executable_extensions; do
3394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3395    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400  done
3401IFS=$as_save_IFS
3402
3403fi
3404fi
3405STRIP=$ac_cv_prog_STRIP
3406if test -n "$STRIP"; then
3407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3408printf "%s\n" "$STRIP" >&6; }
3409else
3410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411printf "%s\n" "no" >&6; }
3412fi
3413
3414
3415fi
3416if test -z "$ac_cv_prog_STRIP"; then
3417  ac_ct_STRIP=$STRIP
3418  # Extract the first word of "strip", so it can be a program name with args.
3419set dummy strip; ac_word=$2
3420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421printf %s "checking for $ac_word... " >&6; }
3422if test ${ac_cv_prog_ac_ct_STRIP+y}
3423then :
3424  printf %s "(cached) " >&6
3425else $as_nop
3426  if test -n "$ac_ct_STRIP"; then
3427  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432  IFS=$as_save_IFS
3433  case $as_dir in #(((
3434    '') as_dir=./ ;;
3435    */) ;;
3436    *) as_dir=$as_dir/ ;;
3437  esac
3438    for ac_exec_ext in '' $ac_executable_extensions; do
3439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3440    ac_cv_prog_ac_ct_STRIP="strip"
3441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3442    break 2
3443  fi
3444done
3445  done
3446IFS=$as_save_IFS
3447
3448fi
3449fi
3450ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3451if test -n "$ac_ct_STRIP"; then
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3453printf "%s\n" "$ac_ct_STRIP" >&6; }
3454else
3455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456printf "%s\n" "no" >&6; }
3457fi
3458
3459  if test "x$ac_ct_STRIP" = x; then
3460    STRIP=":"
3461  else
3462    case $cross_compiling:$ac_tool_warned in
3463yes:)
3464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466ac_tool_warned=yes ;;
3467esac
3468    STRIP=$ac_ct_STRIP
3469  fi
3470else
3471  STRIP="$ac_cv_prog_STRIP"
3472fi
3473
3474fi
3475INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3476
3477
3478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3479printf %s "checking for a race-free mkdir -p... " >&6; }
3480if test -z "$MKDIR_P"; then
3481  if test ${ac_cv_path_mkdir+y}
3482then :
3483  printf %s "(cached) " >&6
3484else $as_nop
3485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3487do
3488  IFS=$as_save_IFS
3489  case $as_dir in #(((
3490    '') as_dir=./ ;;
3491    */) ;;
3492    *) as_dir=$as_dir/ ;;
3493  esac
3494    for ac_prog in mkdir gmkdir; do
3495	 for ac_exec_ext in '' $ac_executable_extensions; do
3496	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3497	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3498	     'mkdir ('*'coreutils) '* | \
3499	     'BusyBox '* | \
3500	     'mkdir (fileutils) '4.1*)
3501	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3502	       break 3;;
3503	   esac
3504	 done
3505       done
3506  done
3507IFS=$as_save_IFS
3508
3509fi
3510
3511  test -d ./--version && rmdir ./--version
3512  if test ${ac_cv_path_mkdir+y}; then
3513    MKDIR_P="$ac_cv_path_mkdir -p"
3514  else
3515    # As a last resort, use the slow shell script.  Don't cache a
3516    # value for MKDIR_P within a source directory, because that will
3517    # break other packages using the cache if that directory is
3518    # removed, or if the value is a relative name.
3519    MKDIR_P="$ac_install_sh -d"
3520  fi
3521fi
3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3523printf "%s\n" "$MKDIR_P" >&6; }
3524
3525for ac_prog in gawk mawk nawk awk
3526do
3527  # Extract the first word of "$ac_prog", so it can be a program name with args.
3528set dummy $ac_prog; ac_word=$2
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530printf %s "checking for $ac_word... " >&6; }
3531if test ${ac_cv_prog_AWK+y}
3532then :
3533  printf %s "(cached) " >&6
3534else $as_nop
3535  if test -n "$AWK"; then
3536  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3537else
3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH
3540do
3541  IFS=$as_save_IFS
3542  case $as_dir in #(((
3543    '') as_dir=./ ;;
3544    */) ;;
3545    *) as_dir=$as_dir/ ;;
3546  esac
3547    for ac_exec_ext in '' $ac_executable_extensions; do
3548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3549    ac_cv_prog_AWK="$ac_prog"
3550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3551    break 2
3552  fi
3553done
3554  done
3555IFS=$as_save_IFS
3556
3557fi
3558fi
3559AWK=$ac_cv_prog_AWK
3560if test -n "$AWK"; then
3561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3562printf "%s\n" "$AWK" >&6; }
3563else
3564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565printf "%s\n" "no" >&6; }
3566fi
3567
3568
3569  test -n "$AWK" && break
3570done
3571
3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3573printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3574set x ${MAKE-make}
3575ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3576if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3577then :
3578  printf %s "(cached) " >&6
3579else $as_nop
3580  cat >conftest.make <<\_ACEOF
3581SHELL = /bin/sh
3582all:
3583	@echo '@@@%%%=$(MAKE)=@@@%%%'
3584_ACEOF
3585# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3586case `${MAKE-make} -f conftest.make 2>/dev/null` in
3587  *@@@%%%=?*=@@@%%%*)
3588    eval ac_cv_prog_make_${ac_make}_set=yes;;
3589  *)
3590    eval ac_cv_prog_make_${ac_make}_set=no;;
3591esac
3592rm -f conftest.make
3593fi
3594if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596printf "%s\n" "yes" >&6; }
3597  SET_MAKE=
3598else
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601  SET_MAKE="MAKE=${MAKE-make}"
3602fi
3603
3604rm -rf .tst 2>/dev/null
3605mkdir .tst 2>/dev/null
3606if test -d .tst; then
3607  am__leading_dot=.
3608else
3609  am__leading_dot=_
3610fi
3611rmdir .tst 2>/dev/null
3612
3613# Check whether --enable-silent-rules was given.
3614if test ${enable_silent_rules+y}
3615then :
3616  enableval=$enable_silent_rules;
3617fi
3618
3619case $enable_silent_rules in # (((
3620  yes) AM_DEFAULT_VERBOSITY=0;;
3621   no) AM_DEFAULT_VERBOSITY=1;;
3622    *) AM_DEFAULT_VERBOSITY=1;;
3623esac
3624am_make=${MAKE-make}
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3626printf %s "checking whether $am_make supports nested variables... " >&6; }
3627if test ${am_cv_make_support_nested_variables+y}
3628then :
3629  printf %s "(cached) " >&6
3630else $as_nop
3631  if printf "%s\n" 'TRUE=$(BAR$(V))
3632BAR0=false
3633BAR1=true
3634V=1
3635am__doit:
3636	@$(TRUE)
3637.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3638  am_cv_make_support_nested_variables=yes
3639else
3640  am_cv_make_support_nested_variables=no
3641fi
3642fi
3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3644printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3645if test $am_cv_make_support_nested_variables = yes; then
3646    AM_V='$(V)'
3647  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3648else
3649  AM_V=$AM_DEFAULT_VERBOSITY
3650  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3651fi
3652AM_BACKSLASH='\'
3653
3654if test "`cd $srcdir && pwd`" != "`pwd`"; then
3655  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3656  # is not polluted with repeated "-I."
3657  am__isrc=' -I$(srcdir)'
3658  # test to see if srcdir already configured
3659  if test -f $srcdir/config.status; then
3660    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3661  fi
3662fi
3663
3664# test whether we have cygpath
3665if test -z "$CYGPATH_W"; then
3666  if (cygpath --version) >/dev/null 2>/dev/null; then
3667    CYGPATH_W='cygpath -w'
3668  else
3669    CYGPATH_W=echo
3670  fi
3671fi
3672
3673
3674# Define the identity of the package.
3675 PACKAGE='bind'
3676 VERSION='9.18.30'
3677
3678
3679printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3680
3681
3682printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3683
3684# Some tools Automake needs.
3685
3686ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3687
3688
3689AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3690
3691
3692AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3693
3694
3695AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3696
3697
3698MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3699
3700# For better backward compatibility.  To be removed once Automake 1.9.x
3701# dies out for good.  For more background, see:
3702# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3703# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3704mkdir_p='$(MKDIR_P)'
3705
3706# We need awk for the "check" target (and possibly the TAP driver).  The
3707# system "awk" is bad on some platforms.
3708# Always define AMTAR for backward compatibility.  Yes, it's still used
3709# in the wild :-(  We should find a proper way to deprecate it ...
3710AMTAR='$${TAR-tar}'
3711
3712
3713# We'll loop over all known methods to create a tar archive until one works.
3714_am_tools='gnutar  pax cpio none'
3715
3716
3717
3718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3719printf %s "checking how to create a pax tar archive... " >&6; }
3720
3721  # Go ahead even if we have the value already cached.  We do so because we
3722  # need to set the values for the 'am__tar' and 'am__untar' variables.
3723  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3724
3725  for _am_tool in $_am_tools; do
3726    case $_am_tool in
3727    gnutar)
3728      for _am_tar in tar gnutar gtar; do
3729        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3730   ($_am_tar --version) >&5 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } && break
3734      done
3735      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3736      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3737      am__untar="$_am_tar -xf -"
3738      ;;
3739    plaintar)
3740      # Must skip GNU tar: if it does not support --format= it doesn't create
3741      # ustar tarball either.
3742      (tar --version) >/dev/null 2>&1 && continue
3743      am__tar='tar chf - "$$tardir"'
3744      am__tar_='tar chf - "$tardir"'
3745      am__untar='tar xf -'
3746      ;;
3747    pax)
3748      am__tar='pax -L -x pax -w "$$tardir"'
3749      am__tar_='pax -L -x pax -w "$tardir"'
3750      am__untar='pax -r'
3751      ;;
3752    cpio)
3753      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3754      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3755      am__untar='cpio -i -H pax -d'
3756      ;;
3757    none)
3758      am__tar=false
3759      am__tar_=false
3760      am__untar=false
3761      ;;
3762    esac
3763
3764    # If the value was cached, stop now.  We just wanted to have am__tar
3765    # and am__untar set.
3766    test -n "${am_cv_prog_tar_pax}" && break
3767
3768    # tar/untar a dummy directory, and stop if the command works.
3769    rm -rf conftest.dir
3770    mkdir conftest.dir
3771    echo GrepMe > conftest.dir/file
3772    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3773   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }
3777    rm -rf conftest.dir
3778    if test -s conftest.tar; then
3779      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3780   ($am__untar <conftest.tar) >&5 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }
3784      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3785   (cat conftest.dir/file) >&5 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }
3789      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3790    fi
3791  done
3792  rm -rf conftest.dir
3793
3794  if test ${am_cv_prog_tar_pax+y}
3795then :
3796  printf %s "(cached) " >&6
3797else $as_nop
3798  am_cv_prog_tar_pax=$_am_tool
3799fi
3800
3801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3802printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3803
3804
3805
3806
3807
3808# Variables for tags utilities; see am/tags.am
3809if test -z "$CTAGS"; then
3810  CTAGS=ctags
3811fi
3812
3813if test -z "$ETAGS"; then
3814  ETAGS=etags
3815fi
3816
3817if test -z "$CSCOPE"; then
3818  CSCOPE=cscope
3819fi
3820
3821
3822
3823# POSIX will say in a future version that running "rm -f" with no argument
3824# is OK; and we want to be able to make that assumption in our Makefile
3825# recipes.  So use an aggressive probe to check that the usage we want is
3826# actually supported "in the wild" to an acceptable degree.
3827# See automake bug#10828.
3828# To make any issue more visible, cause the running configure to be aborted
3829# by default if the 'rm' program in use doesn't match our expectations; the
3830# user can still override this though.
3831if rm -f && rm -fr && rm -rf; then : OK; else
3832  cat >&2 <<'END'
3833Oops!
3834
3835Your 'rm' program seems unable to run without file operands specified
3836on the command line, even when the '-f' option is present.  This is contrary
3837to the behaviour of most rm programs out there, and not conforming with
3838the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3839
3840Please tell bug-automake@gnu.org about your system, including the value
3841of your $PATH and any error possibly output before this message.  This
3842can help us improve future automake versions.
3843
3844END
3845  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3846    echo 'Configuration will proceed anyway, since you have set the' >&2
3847    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3848    echo >&2
3849  else
3850    cat >&2 <<'END'
3851Aborting the configuration process, to ensure you take notice of the issue.
3852
3853You can download and install GNU coreutils to get an 'rm' implementation
3854that behaves properly: <https://www.gnu.org/software/coreutils/>.
3855
3856If you want to complete the configuration process using your problematic
3857'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3858to "yes", and re-run configure.
3859
3860END
3861    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3862  fi
3863fi
3864
3865# Check whether --enable-silent-rules was given.
3866if test ${enable_silent_rules+y}
3867then :
3868  enableval=$enable_silent_rules;
3869fi
3870
3871case $enable_silent_rules in # (((
3872  yes) AM_DEFAULT_VERBOSITY=0;;
3873   no) AM_DEFAULT_VERBOSITY=1;;
3874    *) AM_DEFAULT_VERBOSITY=0;;
3875esac
3876am_make=${MAKE-make}
3877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3878printf %s "checking whether $am_make supports nested variables... " >&6; }
3879if test ${am_cv_make_support_nested_variables+y}
3880then :
3881  printf %s "(cached) " >&6
3882else $as_nop
3883  if printf "%s\n" 'TRUE=$(BAR$(V))
3884BAR0=false
3885BAR1=true
3886V=1
3887am__doit:
3888	@$(TRUE)
3889.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3890  am_cv_make_support_nested_variables=yes
3891else
3892  am_cv_make_support_nested_variables=no
3893fi
3894fi
3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3896printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3897if test $am_cv_make_support_nested_variables = yes; then
3898    AM_V='$(V)'
3899  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3900else
3901  AM_V=$AM_DEFAULT_VERBOSITY
3902  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3903fi
3904AM_BACKSLASH='\'
3905
3906
3907
3908ac_config_headers="$ac_config_headers config.h"
3909
3910
3911
3912#
3913# Enable maintainer mode by default only when building from git repository
3914# and not cross compling
3915#
3916if test "$cross_compiling" = no
3917then :
3918
3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3920printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3921    # Check whether --enable-maintainer-mode was given.
3922if test ${enable_maintainer_mode+y}
3923then :
3924  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3925else $as_nop
3926  USE_MAINTAINER_MODE=yes
3927fi
3928
3929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3930printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3931   if test $USE_MAINTAINER_MODE = yes; then
3932  MAINTAINER_MODE_TRUE=
3933  MAINTAINER_MODE_FALSE='#'
3934else
3935  MAINTAINER_MODE_TRUE='#'
3936  MAINTAINER_MODE_FALSE=
3937fi
3938
3939  MAINT=$MAINTAINER_MODE_TRUE
3940
3941
3942else $as_nop
3943
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3945printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3946    # Check whether --enable-maintainer-mode was given.
3947if test ${enable_maintainer_mode+y}
3948then :
3949  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3950else $as_nop
3951  USE_MAINTAINER_MODE=no
3952fi
3953
3954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3955printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3956   if test $USE_MAINTAINER_MODE = yes; then
3957  MAINTAINER_MODE_TRUE=
3958  MAINTAINER_MODE_FALSE='#'
3959else
3960  MAINTAINER_MODE_TRUE='#'
3961  MAINTAINER_MODE_FALSE=
3962fi
3963
3964  MAINT=$MAINTAINER_MODE_TRUE
3965
3966
3967fi
3968
3969#
3970# Enable system extensions to C and POSIX
3971#
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981DEPDIR="${am__leading_dot}deps"
3982
3983ac_config_commands="$ac_config_commands depfiles"
3984
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3986printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3987cat > confinc.mk << 'END'
3988am__doit:
3989	@echo this is the am__doit target >confinc.out
3990.PHONY: am__doit
3991END
3992am__include="#"
3993am__quote=
3994# BSD make does it like this.
3995echo '.include "confinc.mk" # ignored' > confmf.BSD
3996# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3997echo 'include confinc.mk # ignored' > confmf.GNU
3998_am_result=no
3999for s in GNU BSD; do
4000  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4001   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4002   ac_status=$?
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); }
4005  case $?:`cat confinc.out 2>/dev/null` in #(
4006  '0:this is the am__doit target') :
4007    case $s in #(
4008  BSD) :
4009    am__include='.include' am__quote='"' ;; #(
4010  *) :
4011    am__include='include' am__quote='' ;;
4012esac ;; #(
4013  *) :
4014     ;;
4015esac
4016  if test "$am__include" != "#"; then
4017    _am_result="yes ($s style)"
4018    break
4019  fi
4020done
4021rm -f confinc.* confmf.*
4022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4023printf "%s\n" "${_am_result}" >&6; }
4024
4025# Check whether --enable-dependency-tracking was given.
4026if test ${enable_dependency_tracking+y}
4027then :
4028  enableval=$enable_dependency_tracking;
4029fi
4030
4031if test "x$enable_dependency_tracking" != xno; then
4032  am_depcomp="$ac_aux_dir/depcomp"
4033  AMDEPBACKSLASH='\'
4034  am__nodep='_no'
4035fi
4036 if test "x$enable_dependency_tracking" != xno; then
4037  AMDEP_TRUE=
4038  AMDEP_FALSE='#'
4039else
4040  AMDEP_TRUE='#'
4041  AMDEP_FALSE=
4042fi
4043
4044
4045ac_ext=c
4046ac_cpp='$CPP $CPPFLAGS'
4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050if test -n "$ac_tool_prefix"; then
4051  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4052set dummy ${ac_tool_prefix}gcc; ac_word=$2
4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054printf %s "checking for $ac_word... " >&6; }
4055if test ${ac_cv_prog_CC+y}
4056then :
4057  printf %s "(cached) " >&6
4058else $as_nop
4059  if test -n "$CC"; then
4060  ac_cv_prog_CC="$CC" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065  IFS=$as_save_IFS
4066  case $as_dir in #(((
4067    '') as_dir=./ ;;
4068    */) ;;
4069    *) as_dir=$as_dir/ ;;
4070  esac
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4073    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4074    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4075    break 2
4076  fi
4077done
4078  done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083CC=$ac_cv_prog_CC
4084if test -n "$CC"; then
4085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086printf "%s\n" "$CC" >&6; }
4087else
4088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089printf "%s\n" "no" >&6; }
4090fi
4091
4092
4093fi
4094if test -z "$ac_cv_prog_CC"; then
4095  ac_ct_CC=$CC
4096  # Extract the first word of "gcc", so it can be a program name with args.
4097set dummy gcc; ac_word=$2
4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099printf %s "checking for $ac_word... " >&6; }
4100if test ${ac_cv_prog_ac_ct_CC+y}
4101then :
4102  printf %s "(cached) " >&6
4103else $as_nop
4104  if test -n "$ac_ct_CC"; then
4105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  case $as_dir in #(((
4112    '') as_dir=./ ;;
4113    */) ;;
4114    *) as_dir=$as_dir/ ;;
4115  esac
4116    for ac_exec_ext in '' $ac_executable_extensions; do
4117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4118    ac_cv_prog_ac_ct_CC="gcc"
4119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4120    break 2
4121  fi
4122done
4123  done
4124IFS=$as_save_IFS
4125
4126fi
4127fi
4128ac_ct_CC=$ac_cv_prog_ac_ct_CC
4129if test -n "$ac_ct_CC"; then
4130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4131printf "%s\n" "$ac_ct_CC" >&6; }
4132else
4133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134printf "%s\n" "no" >&6; }
4135fi
4136
4137  if test "x$ac_ct_CC" = x; then
4138    CC=""
4139  else
4140    case $cross_compiling:$ac_tool_warned in
4141yes:)
4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144ac_tool_warned=yes ;;
4145esac
4146    CC=$ac_ct_CC
4147  fi
4148else
4149  CC="$ac_cv_prog_CC"
4150fi
4151
4152if test -z "$CC"; then
4153          if test -n "$ac_tool_prefix"; then
4154    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4155set dummy ${ac_tool_prefix}cc; ac_word=$2
4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157printf %s "checking for $ac_word... " >&6; }
4158if test ${ac_cv_prog_CC+y}
4159then :
4160  printf %s "(cached) " >&6
4161else $as_nop
4162  if test -n "$CC"; then
4163  ac_cv_prog_CC="$CC" # Let the user override the test.
4164else
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168  IFS=$as_save_IFS
4169  case $as_dir in #(((
4170    '') as_dir=./ ;;
4171    */) ;;
4172    *) as_dir=$as_dir/ ;;
4173  esac
4174    for ac_exec_ext in '' $ac_executable_extensions; do
4175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4176    ac_cv_prog_CC="${ac_tool_prefix}cc"
4177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4178    break 2
4179  fi
4180done
4181  done
4182IFS=$as_save_IFS
4183
4184fi
4185fi
4186CC=$ac_cv_prog_CC
4187if test -n "$CC"; then
4188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4189printf "%s\n" "$CC" >&6; }
4190else
4191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192printf "%s\n" "no" >&6; }
4193fi
4194
4195
4196  fi
4197fi
4198if test -z "$CC"; then
4199  # Extract the first word of "cc", so it can be a program name with args.
4200set dummy cc; ac_word=$2
4201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202printf %s "checking for $ac_word... " >&6; }
4203if test ${ac_cv_prog_CC+y}
4204then :
4205  printf %s "(cached) " >&6
4206else $as_nop
4207  if test -n "$CC"; then
4208  ac_cv_prog_CC="$CC" # Let the user override the test.
4209else
4210  ac_prog_rejected=no
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214  IFS=$as_save_IFS
4215  case $as_dir in #(((
4216    '') as_dir=./ ;;
4217    */) ;;
4218    *) as_dir=$as_dir/ ;;
4219  esac
4220    for ac_exec_ext in '' $ac_executable_extensions; do
4221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4222    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223       ac_prog_rejected=yes
4224       continue
4225     fi
4226    ac_cv_prog_CC="cc"
4227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231  done
4232IFS=$as_save_IFS
4233
4234if test $ac_prog_rejected = yes; then
4235  # We found a bogon in the path, so make sure we never use it.
4236  set dummy $ac_cv_prog_CC
4237  shift
4238  if test $# != 0; then
4239    # We chose a different compiler from the bogus one.
4240    # However, it has the same basename, so the bogon will be chosen
4241    # first if we set CC to just the basename; use the full file name.
4242    shift
4243    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4244  fi
4245fi
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251printf "%s\n" "$CC" >&6; }
4252else
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254printf "%s\n" "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$CC"; then
4260  if test -n "$ac_tool_prefix"; then
4261  for ac_prog in cl.exe
4262  do
4263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266printf %s "checking for $ac_word... " >&6; }
4267if test ${ac_cv_prog_CC+y}
4268then :
4269  printf %s "(cached) " >&6
4270else $as_nop
4271  if test -n "$CC"; then
4272  ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  case $as_dir in #(((
4279    '') as_dir=./ ;;
4280    */) ;;
4281    *) as_dir=$as_dir/ ;;
4282  esac
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4285    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290  done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295CC=$ac_cv_prog_CC
4296if test -n "$CC"; then
4297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298printf "%s\n" "$CC" >&6; }
4299else
4300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301printf "%s\n" "no" >&6; }
4302fi
4303
4304
4305    test -n "$CC" && break
4306  done
4307fi
4308if test -z "$CC"; then
4309  ac_ct_CC=$CC
4310  for ac_prog in cl.exe
4311do
4312  # Extract the first word of "$ac_prog", so it can be a program name with args.
4313set dummy $ac_prog; ac_word=$2
4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315printf %s "checking for $ac_word... " >&6; }
4316if test ${ac_cv_prog_ac_ct_CC+y}
4317then :
4318  printf %s "(cached) " >&6
4319else $as_nop
4320  if test -n "$ac_ct_CC"; then
4321  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326  IFS=$as_save_IFS
4327  case $as_dir in #(((
4328    '') as_dir=./ ;;
4329    */) ;;
4330    *) as_dir=$as_dir/ ;;
4331  esac
4332    for ac_exec_ext in '' $ac_executable_extensions; do
4333  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4334    ac_cv_prog_ac_ct_CC="$ac_prog"
4335    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4336    break 2
4337  fi
4338done
4339  done
4340IFS=$as_save_IFS
4341
4342fi
4343fi
4344ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345if test -n "$ac_ct_CC"; then
4346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4347printf "%s\n" "$ac_ct_CC" >&6; }
4348else
4349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350printf "%s\n" "no" >&6; }
4351fi
4352
4353
4354  test -n "$ac_ct_CC" && break
4355done
4356
4357  if test "x$ac_ct_CC" = x; then
4358    CC=""
4359  else
4360    case $cross_compiling:$ac_tool_warned in
4361yes:)
4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366    CC=$ac_ct_CC
4367  fi
4368fi
4369
4370fi
4371if test -z "$CC"; then
4372  if test -n "$ac_tool_prefix"; then
4373  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4374set dummy ${ac_tool_prefix}clang; ac_word=$2
4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376printf %s "checking for $ac_word... " >&6; }
4377if test ${ac_cv_prog_CC+y}
4378then :
4379  printf %s "(cached) " >&6
4380else $as_nop
4381  if test -n "$CC"; then
4382  ac_cv_prog_CC="$CC" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387  IFS=$as_save_IFS
4388  case $as_dir in #(((
4389    '') as_dir=./ ;;
4390    */) ;;
4391    *) as_dir=$as_dir/ ;;
4392  esac
4393    for ac_exec_ext in '' $ac_executable_extensions; do
4394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4395    ac_cv_prog_CC="${ac_tool_prefix}clang"
4396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4397    break 2
4398  fi
4399done
4400  done
4401IFS=$as_save_IFS
4402
4403fi
4404fi
4405CC=$ac_cv_prog_CC
4406if test -n "$CC"; then
4407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4408printf "%s\n" "$CC" >&6; }
4409else
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411printf "%s\n" "no" >&6; }
4412fi
4413
4414
4415fi
4416if test -z "$ac_cv_prog_CC"; then
4417  ac_ct_CC=$CC
4418  # Extract the first word of "clang", so it can be a program name with args.
4419set dummy clang; ac_word=$2
4420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421printf %s "checking for $ac_word... " >&6; }
4422if test ${ac_cv_prog_ac_ct_CC+y}
4423then :
4424  printf %s "(cached) " >&6
4425else $as_nop
4426  if test -n "$ac_ct_CC"; then
4427  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432  IFS=$as_save_IFS
4433  case $as_dir in #(((
4434    '') as_dir=./ ;;
4435    */) ;;
4436    *) as_dir=$as_dir/ ;;
4437  esac
4438    for ac_exec_ext in '' $ac_executable_extensions; do
4439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4440    ac_cv_prog_ac_ct_CC="clang"
4441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4442    break 2
4443  fi
4444done
4445  done
4446IFS=$as_save_IFS
4447
4448fi
4449fi
4450ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451if test -n "$ac_ct_CC"; then
4452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4453printf "%s\n" "$ac_ct_CC" >&6; }
4454else
4455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456printf "%s\n" "no" >&6; }
4457fi
4458
4459  if test "x$ac_ct_CC" = x; then
4460    CC=""
4461  else
4462    case $cross_compiling:$ac_tool_warned in
4463yes:)
4464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466ac_tool_warned=yes ;;
4467esac
4468    CC=$ac_ct_CC
4469  fi
4470else
4471  CC="$ac_cv_prog_CC"
4472fi
4473
4474fi
4475
4476
4477test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4479as_fn_error $? "no acceptable C compiler found in \$PATH
4480See \`config.log' for more details" "$LINENO" 5; }
4481
4482# Provide some information about the compiler.
4483printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4484set X $ac_compile
4485ac_compiler=$2
4486for ac_option in --version -v -V -qversion -version; do
4487  { { ac_try="$ac_compiler $ac_option >&5"
4488case "(($ac_try" in
4489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490  *) ac_try_echo=$ac_try;;
4491esac
4492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493printf "%s\n" "$ac_try_echo"; } >&5
4494  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4495  ac_status=$?
4496  if test -s conftest.err; then
4497    sed '10a\
4498... rest of stderr output deleted ...
4499         10q' conftest.err >conftest.er1
4500    cat conftest.er1 >&5
4501  fi
4502  rm -f conftest.er1 conftest.err
4503  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504  test $ac_status = 0; }
4505done
4506
4507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509
4510int
4511main (void)
4512{
4513
4514  ;
4515  return 0;
4516}
4517_ACEOF
4518ac_clean_files_save=$ac_clean_files
4519ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4520# Try to create an executable without -o first, disregard a.out.
4521# It will help us diagnose broken compilers, and finding out an intuition
4522# of exeext.
4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4524printf %s "checking whether the C compiler works... " >&6; }
4525ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4526
4527# The possible output files:
4528ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4529
4530ac_rmfiles=
4531for ac_file in $ac_files
4532do
4533  case $ac_file in
4534    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4535    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4536  esac
4537done
4538rm -f $ac_rmfiles
4539
4540if { { ac_try="$ac_link_default"
4541case "(($ac_try" in
4542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543  *) ac_try_echo=$ac_try;;
4544esac
4545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546printf "%s\n" "$ac_try_echo"; } >&5
4547  (eval "$ac_link_default") 2>&5
4548  ac_status=$?
4549  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550  test $ac_status = 0; }
4551then :
4552  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4553# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4554# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4555# so that the user can short-circuit this test for compilers unknown to
4556# Autoconf.
4557for ac_file in $ac_files ''
4558do
4559  test -f "$ac_file" || continue
4560  case $ac_file in
4561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4562	;;
4563    [ab].out )
4564	# We found the default executable, but exeext='' is most
4565	# certainly right.
4566	break;;
4567    *.* )
4568	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4569	then :; else
4570	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4571	fi
4572	# We set ac_cv_exeext here because the later test for it is not
4573	# safe: cross compilers may not add the suffix if given an `-o'
4574	# argument, so we may need to know it at that point already.
4575	# Even if this section looks crufty: it has the advantage of
4576	# actually working.
4577	break;;
4578    * )
4579	break;;
4580  esac
4581done
4582test "$ac_cv_exeext" = no && ac_cv_exeext=
4583
4584else $as_nop
4585  ac_file=''
4586fi
4587if test -z "$ac_file"
4588then :
4589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590printf "%s\n" "no" >&6; }
4591printf "%s\n" "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4596as_fn_error 77 "C compiler cannot create executables
4597See \`config.log' for more details" "$LINENO" 5; }
4598else $as_nop
4599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600printf "%s\n" "yes" >&6; }
4601fi
4602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4603printf %s "checking for C compiler default output file name... " >&6; }
4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4605printf "%s\n" "$ac_file" >&6; }
4606ac_exeext=$ac_cv_exeext
4607
4608rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4609ac_clean_files=$ac_clean_files_save
4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4611printf %s "checking for suffix of executables... " >&6; }
4612if { { ac_try="$ac_link"
4613case "(($ac_try" in
4614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615  *) ac_try_echo=$ac_try;;
4616esac
4617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618printf "%s\n" "$ac_try_echo"; } >&5
4619  (eval "$ac_link") 2>&5
4620  ac_status=$?
4621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622  test $ac_status = 0; }
4623then :
4624  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4625# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4626# work properly (i.e., refer to `conftest.exe'), while it won't with
4627# `rm'.
4628for ac_file in conftest.exe conftest conftest.*; do
4629  test -f "$ac_file" || continue
4630  case $ac_file in
4631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4632    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4633	  break;;
4634    * ) break;;
4635  esac
4636done
4637else $as_nop
4638  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4640as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4641See \`config.log' for more details" "$LINENO" 5; }
4642fi
4643rm -f conftest conftest$ac_cv_exeext
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4645printf "%s\n" "$ac_cv_exeext" >&6; }
4646
4647rm -f conftest.$ac_ext
4648EXEEXT=$ac_cv_exeext
4649ac_exeext=$EXEEXT
4650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h.  */
4652#include <stdio.h>
4653int
4654main (void)
4655{
4656FILE *f = fopen ("conftest.out", "w");
4657 return ferror (f) || fclose (f) != 0;
4658
4659  ;
4660  return 0;
4661}
4662_ACEOF
4663ac_clean_files="$ac_clean_files conftest.out"
4664# Check that the compiler produces executables we can run.  If not, either
4665# the compiler is broken, or we cross compile.
4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4667printf %s "checking whether we are cross compiling... " >&6; }
4668if test "$cross_compiling" != yes; then
4669  { { ac_try="$ac_link"
4670case "(($ac_try" in
4671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672  *) ac_try_echo=$ac_try;;
4673esac
4674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675printf "%s\n" "$ac_try_echo"; } >&5
4676  (eval "$ac_link") 2>&5
4677  ac_status=$?
4678  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679  test $ac_status = 0; }
4680  if { ac_try='./conftest$ac_cv_exeext'
4681  { { case "(($ac_try" in
4682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683  *) ac_try_echo=$ac_try;;
4684esac
4685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686printf "%s\n" "$ac_try_echo"; } >&5
4687  (eval "$ac_try") 2>&5
4688  ac_status=$?
4689  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690  test $ac_status = 0; }; }; then
4691    cross_compiling=no
4692  else
4693    if test "$cross_compiling" = maybe; then
4694	cross_compiling=yes
4695    else
4696	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4698as_fn_error 77 "cannot run C compiled programs.
4699If you meant to cross compile, use \`--host'.
4700See \`config.log' for more details" "$LINENO" 5; }
4701    fi
4702  fi
4703fi
4704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4705printf "%s\n" "$cross_compiling" >&6; }
4706
4707rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4708ac_clean_files=$ac_clean_files_save
4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4710printf %s "checking for suffix of object files... " >&6; }
4711if test ${ac_cv_objext+y}
4712then :
4713  printf %s "(cached) " >&6
4714else $as_nop
4715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h.  */
4717
4718int
4719main (void)
4720{
4721
4722  ;
4723  return 0;
4724}
4725_ACEOF
4726rm -f conftest.o conftest.obj
4727if { { ac_try="$ac_compile"
4728case "(($ac_try" in
4729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730  *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733printf "%s\n" "$ac_try_echo"; } >&5
4734  (eval "$ac_compile") 2>&5
4735  ac_status=$?
4736  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737  test $ac_status = 0; }
4738then :
4739  for ac_file in conftest.o conftest.obj conftest.*; do
4740  test -f "$ac_file" || continue;
4741  case $ac_file in
4742    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4743    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4744       break;;
4745  esac
4746done
4747else $as_nop
4748  printf "%s\n" "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4753as_fn_error $? "cannot compute suffix of object files: cannot compile
4754See \`config.log' for more details" "$LINENO" 5; }
4755fi
4756rm -f conftest.$ac_cv_objext conftest.$ac_ext
4757fi
4758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4759printf "%s\n" "$ac_cv_objext" >&6; }
4760OBJEXT=$ac_cv_objext
4761ac_objext=$OBJEXT
4762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4763printf %s "checking whether the compiler supports GNU C... " >&6; }
4764if test ${ac_cv_c_compiler_gnu+y}
4765then :
4766  printf %s "(cached) " >&6
4767else $as_nop
4768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770
4771int
4772main (void)
4773{
4774#ifndef __GNUC__
4775       choke me
4776#endif
4777
4778  ;
4779  return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"
4783then :
4784  ac_compiler_gnu=yes
4785else $as_nop
4786  ac_compiler_gnu=no
4787fi
4788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4789ac_cv_c_compiler_gnu=$ac_compiler_gnu
4790
4791fi
4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4793printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796if test $ac_compiler_gnu = yes; then
4797  GCC=yes
4798else
4799  GCC=
4800fi
4801ac_test_CFLAGS=${CFLAGS+y}
4802ac_save_CFLAGS=$CFLAGS
4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804printf %s "checking whether $CC accepts -g... " >&6; }
4805if test ${ac_cv_prog_cc_g+y}
4806then :
4807  printf %s "(cached) " >&6
4808else $as_nop
4809  ac_save_c_werror_flag=$ac_c_werror_flag
4810   ac_c_werror_flag=yes
4811   ac_cv_prog_cc_g=no
4812   CFLAGS="-g"
4813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815
4816int
4817main (void)
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"
4825then :
4826  ac_cv_prog_cc_g=yes
4827else $as_nop
4828  CFLAGS=""
4829      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830/* end confdefs.h.  */
4831
4832int
4833main (void)
4834{
4835
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840if ac_fn_c_try_compile "$LINENO"
4841then :
4842
4843else $as_nop
4844  ac_c_werror_flag=$ac_save_c_werror_flag
4845	 CFLAGS="-g"
4846	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847/* end confdefs.h.  */
4848
4849int
4850main (void)
4851{
4852
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857if ac_fn_c_try_compile "$LINENO"
4858then :
4859  ac_cv_prog_cc_g=yes
4860fi
4861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4862fi
4863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866   ac_c_werror_flag=$ac_save_c_werror_flag
4867fi
4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4870if test $ac_test_CFLAGS; then
4871  CFLAGS=$ac_save_CFLAGS
4872elif test $ac_cv_prog_cc_g = yes; then
4873  if test "$GCC" = yes; then
4874    CFLAGS="-g -O2"
4875  else
4876    CFLAGS="-g"
4877  fi
4878else
4879  if test "$GCC" = yes; then
4880    CFLAGS="-O2"
4881  else
4882    CFLAGS=
4883  fi
4884fi
4885ac_prog_cc_stdc=no
4886if test x$ac_prog_cc_stdc = xno
4887then :
4888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4889printf %s "checking for $CC option to enable C11 features... " >&6; }
4890if test ${ac_cv_prog_cc_c11+y}
4891then :
4892  printf %s "(cached) " >&6
4893else $as_nop
4894  ac_cv_prog_cc_c11=no
4895ac_save_CC=$CC
4896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897/* end confdefs.h.  */
4898$ac_c_conftest_c11_program
4899_ACEOF
4900for ac_arg in '' -std=gnu11
4901do
4902  CC="$ac_save_CC $ac_arg"
4903  if ac_fn_c_try_compile "$LINENO"
4904then :
4905  ac_cv_prog_cc_c11=$ac_arg
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.beam
4908  test "x$ac_cv_prog_cc_c11" != "xno" && break
4909done
4910rm -f conftest.$ac_ext
4911CC=$ac_save_CC
4912fi
4913
4914if test "x$ac_cv_prog_cc_c11" = xno
4915then :
4916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4917printf "%s\n" "unsupported" >&6; }
4918else $as_nop
4919  if test "x$ac_cv_prog_cc_c11" = x
4920then :
4921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4922printf "%s\n" "none needed" >&6; }
4923else $as_nop
4924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4925printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4926     CC="$CC $ac_cv_prog_cc_c11"
4927fi
4928  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4929  ac_prog_cc_stdc=c11
4930fi
4931fi
4932if test x$ac_prog_cc_stdc = xno
4933then :
4934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4935printf %s "checking for $CC option to enable C99 features... " >&6; }
4936if test ${ac_cv_prog_cc_c99+y}
4937then :
4938  printf %s "(cached) " >&6
4939else $as_nop
4940  ac_cv_prog_cc_c99=no
4941ac_save_CC=$CC
4942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944$ac_c_conftest_c99_program
4945_ACEOF
4946for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4947do
4948  CC="$ac_save_CC $ac_arg"
4949  if ac_fn_c_try_compile "$LINENO"
4950then :
4951  ac_cv_prog_cc_c99=$ac_arg
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.beam
4954  test "x$ac_cv_prog_cc_c99" != "xno" && break
4955done
4956rm -f conftest.$ac_ext
4957CC=$ac_save_CC
4958fi
4959
4960if test "x$ac_cv_prog_cc_c99" = xno
4961then :
4962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4963printf "%s\n" "unsupported" >&6; }
4964else $as_nop
4965  if test "x$ac_cv_prog_cc_c99" = x
4966then :
4967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968printf "%s\n" "none needed" >&6; }
4969else $as_nop
4970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4971printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4972     CC="$CC $ac_cv_prog_cc_c99"
4973fi
4974  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4975  ac_prog_cc_stdc=c99
4976fi
4977fi
4978if test x$ac_prog_cc_stdc = xno
4979then :
4980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4981printf %s "checking for $CC option to enable C89 features... " >&6; }
4982if test ${ac_cv_prog_cc_c89+y}
4983then :
4984  printf %s "(cached) " >&6
4985else $as_nop
4986  ac_cv_prog_cc_c89=no
4987ac_save_CC=$CC
4988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989/* end confdefs.h.  */
4990$ac_c_conftest_c89_program
4991_ACEOF
4992for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4993do
4994  CC="$ac_save_CC $ac_arg"
4995  if ac_fn_c_try_compile "$LINENO"
4996then :
4997  ac_cv_prog_cc_c89=$ac_arg
4998fi
4999rm -f core conftest.err conftest.$ac_objext conftest.beam
5000  test "x$ac_cv_prog_cc_c89" != "xno" && break
5001done
5002rm -f conftest.$ac_ext
5003CC=$ac_save_CC
5004fi
5005
5006if test "x$ac_cv_prog_cc_c89" = xno
5007then :
5008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5009printf "%s\n" "unsupported" >&6; }
5010else $as_nop
5011  if test "x$ac_cv_prog_cc_c89" = x
5012then :
5013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014printf "%s\n" "none needed" >&6; }
5015else $as_nop
5016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5017printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5018     CC="$CC $ac_cv_prog_cc_c89"
5019fi
5020  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5021  ac_prog_cc_stdc=c89
5022fi
5023fi
5024
5025ac_ext=c
5026ac_cpp='$CPP $CPPFLAGS'
5027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
5031
5032  ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5038printf %s "checking whether $CC understands -c and -o together... " >&6; }
5039if test ${am_cv_prog_cc_c_o+y}
5040then :
5041  printf %s "(cached) " >&6
5042else $as_nop
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045
5046int
5047main (void)
5048{
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054  # Make sure it works both with $CC and with simple cc.
5055  # Following AC_PROG_CC_C_O, we do the test twice because some
5056  # compilers refuse to overwrite an existing .o file with -o,
5057  # though they will create one.
5058  am_cv_prog_cc_c_o=yes
5059  for am_i in 1 2; do
5060    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5061   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } \
5065         && test -f conftest2.$ac_objext; then
5066      : OK
5067    else
5068      am_cv_prog_cc_c_o=no
5069      break
5070    fi
5071  done
5072  rm -f core conftest*
5073  unset am_i
5074fi
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5076printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5077if test "$am_cv_prog_cc_c_o" != yes; then
5078   # Losing compiler, so override with the script.
5079   # FIXME: It is wrong to rewrite CC.
5080   # But if we don't then we get into trouble of one sort or another.
5081   # A longer-term fix would be to have automake use am__CC in this case,
5082   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5083   CC="$am_aux_dir/compile $CC"
5084fi
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092depcc="$CC"   am_compiler_list=
5093
5094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5095printf %s "checking dependency style of $depcc... " >&6; }
5096if test ${am_cv_CC_dependencies_compiler_type+y}
5097then :
5098  printf %s "(cached) " >&6
5099else $as_nop
5100  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101  # We make a subdir and do the tests there.  Otherwise we can end up
5102  # making bogus files that we don't know about and never remove.  For
5103  # instance it was reported that on HP-UX the gcc test will end up
5104  # making a dummy file named 'D' -- because '-MD' means "put the output
5105  # in D".
5106  rm -rf conftest.dir
5107  mkdir conftest.dir
5108  # Copy depcomp to subdir because otherwise we won't find it if we're
5109  # using a relative directory.
5110  cp "$am_depcomp" conftest.dir
5111  cd conftest.dir
5112  # We will build objects and dependencies in a subdirectory because
5113  # it helps to detect inapplicable dependency modes.  For instance
5114  # both Tru64's cc and ICC support -MD to output dependencies as a
5115  # side effect of compilation, but ICC will put the dependencies in
5116  # the current directory while Tru64 will put them in the object
5117  # directory.
5118  mkdir sub
5119
5120  am_cv_CC_dependencies_compiler_type=none
5121  if test "$am_compiler_list" = ""; then
5122     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5123  fi
5124  am__universal=false
5125  case " $depcc " in #(
5126     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5127     esac
5128
5129  for depmode in $am_compiler_list; do
5130    # Setup a source with many dependencies, because some compilers
5131    # like to wrap large dependency lists on column 80 (with \), and
5132    # we should not choose a depcomp mode which is confused by this.
5133    #
5134    # We need to recreate these files for each test, as the compiler may
5135    # overwrite some of them when testing with obscure command lines.
5136    # This happens at least with the AIX C compiler.
5137    : > sub/conftest.c
5138    for i in 1 2 3 4 5 6; do
5139      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5141      # Solaris 10 /bin/sh.
5142      echo '/* dummy */' > sub/conftst$i.h
5143    done
5144    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145
5146    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5147    # mode.  It turns out that the SunPro C++ compiler does not properly
5148    # handle '-M -o', and we need to detect this.  Also, some Intel
5149    # versions had trouble with output in subdirs.
5150    am__obj=sub/conftest.${OBJEXT-o}
5151    am__minus_obj="-o $am__obj"
5152    case $depmode in
5153    gcc)
5154      # This depmode causes a compiler race in universal mode.
5155      test "$am__universal" = false || continue
5156      ;;
5157    nosideeffect)
5158      # After this tag, mechanisms are not by side-effect, so they'll
5159      # only be used when explicitly requested.
5160      if test "x$enable_dependency_tracking" = xyes; then
5161	continue
5162      else
5163	break
5164      fi
5165      ;;
5166    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5167      # This compiler won't grok '-c -o', but also, the minuso test has
5168      # not run yet.  These depmodes are late enough in the game, and
5169      # so weak that their functioning should not be impacted.
5170      am__obj=conftest.${OBJEXT-o}
5171      am__minus_obj=
5172      ;;
5173    none) break ;;
5174    esac
5175    if depmode=$depmode \
5176       source=sub/conftest.c object=$am__obj \
5177       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5179         >/dev/null 2>conftest.err &&
5180       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5181       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5183       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184      # icc doesn't choke on unknown options, it will just issue warnings
5185      # or remarks (even with -Werror).  So we grep stderr for any message
5186      # that says an option was ignored or not supported.
5187      # When given -MP, icc 7.0 and 7.1 complain thusly:
5188      #   icc: Command line warning: ignoring option '-M'; no argument required
5189      # The diagnosis changed in icc 8.0:
5190      #   icc: Command line remark: option '-MP' not supported
5191      if (grep 'ignoring option' conftest.err ||
5192          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193        am_cv_CC_dependencies_compiler_type=$depmode
5194        break
5195      fi
5196    fi
5197  done
5198
5199  cd ..
5200  rm -rf conftest.dir
5201else
5202  am_cv_CC_dependencies_compiler_type=none
5203fi
5204
5205fi
5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5207printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5208CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5209
5210 if
5211  test "x$enable_dependency_tracking" != xno \
5212  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5213  am__fastdepCC_TRUE=
5214  am__fastdepCC_FALSE='#'
5215else
5216  am__fastdepCC_TRUE='#'
5217  am__fastdepCC_FALSE=
5218fi
5219
5220
5221
5222ac_header= ac_cache=
5223for ac_item in $ac_header_c_list
5224do
5225  if test $ac_cache; then
5226    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5227    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5228      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5229    fi
5230    ac_header= ac_cache=
5231  elif test $ac_header; then
5232    ac_cache=$ac_item
5233  else
5234    ac_header=$ac_item
5235  fi
5236done
5237
5238
5239
5240
5241
5242
5243
5244
5245if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5246then :
5247
5248printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5249
5250fi
5251
5252
5253
5254
5255
5256
5257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259if test ${ac_cv_safe_to_define___extensions__+y}
5260then :
5261  printf %s "(cached) " >&6
5262else $as_nop
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265
5266#         define __EXTENSIONS__ 1
5267          $ac_includes_default
5268int
5269main (void)
5270{
5271
5272  ;
5273  return 0;
5274}
5275_ACEOF
5276if ac_fn_c_try_compile "$LINENO"
5277then :
5278  ac_cv_safe_to_define___extensions__=yes
5279else $as_nop
5280  ac_cv_safe_to_define___extensions__=no
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5283fi
5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5285printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5286
5287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5288printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5289if test ${ac_cv_should_define__xopen_source+y}
5290then :
5291  printf %s "(cached) " >&6
5292else $as_nop
5293  ac_cv_should_define__xopen_source=no
5294    if test $ac_cv_header_wchar_h = yes
5295then :
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298
5299          #include <wchar.h>
5300          mbstate_t x;
5301int
5302main (void)
5303{
5304
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"
5310then :
5311
5312else $as_nop
5313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315
5316            #define _XOPEN_SOURCE 500
5317            #include <wchar.h>
5318            mbstate_t x;
5319int
5320main (void)
5321{
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"
5328then :
5329  ac_cv_should_define__xopen_source=yes
5330fi
5331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5332fi
5333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5334fi
5335fi
5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5337printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5338
5339  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5340
5341  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5342
5343  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5344
5345  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5346
5347  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5348
5349  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5350
5351  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5352
5353  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5354
5355  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5356
5357  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5358
5359  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5360
5361  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5362
5363  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5364
5365  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5366
5367  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5368
5369  if test $ac_cv_header_minix_config_h = yes
5370then :
5371  MINIX=yes
5372    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5373
5374    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5375
5376    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5377
5378else $as_nop
5379  MINIX=
5380fi
5381  if test $ac_cv_safe_to_define___extensions__ = yes
5382then :
5383  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5384
5385fi
5386  if test $ac_cv_should_define__xopen_source = yes
5387then :
5388  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5389
5390fi
5391
5392
5393#
5394# Compiler compatibility flags
5395#
5396ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401if test -n "$ac_tool_prefix"; then
5402  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5403set dummy ${ac_tool_prefix}gcc; ac_word=$2
5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405printf %s "checking for $ac_word... " >&6; }
5406if test ${ac_cv_prog_CC+y}
5407then :
5408  printf %s "(cached) " >&6
5409else $as_nop
5410  if test -n "$CC"; then
5411  ac_cv_prog_CC="$CC" # Let the user override the test.
5412else
5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416  IFS=$as_save_IFS
5417  case $as_dir in #(((
5418    '') as_dir=./ ;;
5419    */) ;;
5420    *) as_dir=$as_dir/ ;;
5421  esac
5422    for ac_exec_ext in '' $ac_executable_extensions; do
5423  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5424    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5425    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5426    break 2
5427  fi
5428done
5429  done
5430IFS=$as_save_IFS
5431
5432fi
5433fi
5434CC=$ac_cv_prog_CC
5435if test -n "$CC"; then
5436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5437printf "%s\n" "$CC" >&6; }
5438else
5439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440printf "%s\n" "no" >&6; }
5441fi
5442
5443
5444fi
5445if test -z "$ac_cv_prog_CC"; then
5446  ac_ct_CC=$CC
5447  # Extract the first word of "gcc", so it can be a program name with args.
5448set dummy gcc; ac_word=$2
5449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450printf %s "checking for $ac_word... " >&6; }
5451if test ${ac_cv_prog_ac_ct_CC+y}
5452then :
5453  printf %s "(cached) " >&6
5454else $as_nop
5455  if test -n "$ac_ct_CC"; then
5456  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461  IFS=$as_save_IFS
5462  case $as_dir in #(((
5463    '') as_dir=./ ;;
5464    */) ;;
5465    *) as_dir=$as_dir/ ;;
5466  esac
5467    for ac_exec_ext in '' $ac_executable_extensions; do
5468  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5469    ac_cv_prog_ac_ct_CC="gcc"
5470    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5471    break 2
5472  fi
5473done
5474  done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479ac_ct_CC=$ac_cv_prog_ac_ct_CC
5480if test -n "$ac_ct_CC"; then
5481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5482printf "%s\n" "$ac_ct_CC" >&6; }
5483else
5484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485printf "%s\n" "no" >&6; }
5486fi
5487
5488  if test "x$ac_ct_CC" = x; then
5489    CC=""
5490  else
5491    case $cross_compiling:$ac_tool_warned in
5492yes:)
5493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495ac_tool_warned=yes ;;
5496esac
5497    CC=$ac_ct_CC
5498  fi
5499else
5500  CC="$ac_cv_prog_CC"
5501fi
5502
5503if test -z "$CC"; then
5504          if test -n "$ac_tool_prefix"; then
5505    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5506set dummy ${ac_tool_prefix}cc; ac_word=$2
5507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508printf %s "checking for $ac_word... " >&6; }
5509if test ${ac_cv_prog_CC+y}
5510then :
5511  printf %s "(cached) " >&6
5512else $as_nop
5513  if test -n "$CC"; then
5514  ac_cv_prog_CC="$CC" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519  IFS=$as_save_IFS
5520  case $as_dir in #(((
5521    '') as_dir=./ ;;
5522    */) ;;
5523    *) as_dir=$as_dir/ ;;
5524  esac
5525    for ac_exec_ext in '' $ac_executable_extensions; do
5526  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5527    ac_cv_prog_CC="${ac_tool_prefix}cc"
5528    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532  done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537CC=$ac_cv_prog_CC
5538if test -n "$CC"; then
5539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5540printf "%s\n" "$CC" >&6; }
5541else
5542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543printf "%s\n" "no" >&6; }
5544fi
5545
5546
5547  fi
5548fi
5549if test -z "$CC"; then
5550  # Extract the first word of "cc", so it can be a program name with args.
5551set dummy cc; ac_word=$2
5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553printf %s "checking for $ac_word... " >&6; }
5554if test ${ac_cv_prog_CC+y}
5555then :
5556  printf %s "(cached) " >&6
5557else $as_nop
5558  if test -n "$CC"; then
5559  ac_cv_prog_CC="$CC" # Let the user override the test.
5560else
5561  ac_prog_rejected=no
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  case $as_dir in #(((
5567    '') as_dir=./ ;;
5568    */) ;;
5569    *) as_dir=$as_dir/ ;;
5570  esac
5571    for ac_exec_ext in '' $ac_executable_extensions; do
5572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5573    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5574       ac_prog_rejected=yes
5575       continue
5576     fi
5577    ac_cv_prog_CC="cc"
5578    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582  done
5583IFS=$as_save_IFS
5584
5585if test $ac_prog_rejected = yes; then
5586  # We found a bogon in the path, so make sure we never use it.
5587  set dummy $ac_cv_prog_CC
5588  shift
5589  if test $# != 0; then
5590    # We chose a different compiler from the bogus one.
5591    # However, it has the same basename, so the bogon will be chosen
5592    # first if we set CC to just the basename; use the full file name.
5593    shift
5594    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5595  fi
5596fi
5597fi
5598fi
5599CC=$ac_cv_prog_CC
5600if test -n "$CC"; then
5601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5602printf "%s\n" "$CC" >&6; }
5603else
5604  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605printf "%s\n" "no" >&6; }
5606fi
5607
5608
5609fi
5610if test -z "$CC"; then
5611  if test -n "$ac_tool_prefix"; then
5612  for ac_prog in cl.exe
5613  do
5614    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617printf %s "checking for $ac_word... " >&6; }
5618if test ${ac_cv_prog_CC+y}
5619then :
5620  printf %s "(cached) " >&6
5621else $as_nop
5622  if test -n "$CC"; then
5623  ac_cv_prog_CC="$CC" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  case $as_dir in #(((
5630    '') as_dir=./ ;;
5631    */) ;;
5632    *) as_dir=$as_dir/ ;;
5633  esac
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5636    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5637    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646CC=$ac_cv_prog_CC
5647if test -n "$CC"; then
5648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5649printf "%s\n" "$CC" >&6; }
5650else
5651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652printf "%s\n" "no" >&6; }
5653fi
5654
5655
5656    test -n "$CC" && break
5657  done
5658fi
5659if test -z "$CC"; then
5660  ac_ct_CC=$CC
5661  for ac_prog in cl.exe
5662do
5663  # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666printf %s "checking for $ac_word... " >&6; }
5667if test ${ac_cv_prog_ac_ct_CC+y}
5668then :
5669  printf %s "(cached) " >&6
5670else $as_nop
5671  if test -n "$ac_ct_CC"; then
5672  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  case $as_dir in #(((
5679    '') as_dir=./ ;;
5680    */) ;;
5681    *) as_dir=$as_dir/ ;;
5682  esac
5683    for ac_exec_ext in '' $ac_executable_extensions; do
5684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5685    ac_cv_prog_ac_ct_CC="$ac_prog"
5686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5687    break 2
5688  fi
5689done
5690  done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695ac_ct_CC=$ac_cv_prog_ac_ct_CC
5696if test -n "$ac_ct_CC"; then
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5698printf "%s\n" "$ac_ct_CC" >&6; }
5699else
5700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701printf "%s\n" "no" >&6; }
5702fi
5703
5704
5705  test -n "$ac_ct_CC" && break
5706done
5707
5708  if test "x$ac_ct_CC" = x; then
5709    CC=""
5710  else
5711    case $cross_compiling:$ac_tool_warned in
5712yes:)
5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5714printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5715ac_tool_warned=yes ;;
5716esac
5717    CC=$ac_ct_CC
5718  fi
5719fi
5720
5721fi
5722if test -z "$CC"; then
5723  if test -n "$ac_tool_prefix"; then
5724  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}clang; ac_word=$2
5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727printf %s "checking for $ac_word... " >&6; }
5728if test ${ac_cv_prog_CC+y}
5729then :
5730  printf %s "(cached) " >&6
5731else $as_nop
5732  if test -n "$CC"; then
5733  ac_cv_prog_CC="$CC" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738  IFS=$as_save_IFS
5739  case $as_dir in #(((
5740    '') as_dir=./ ;;
5741    */) ;;
5742    *) as_dir=$as_dir/ ;;
5743  esac
5744    for ac_exec_ext in '' $ac_executable_extensions; do
5745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746    ac_cv_prog_CC="${ac_tool_prefix}clang"
5747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748    break 2
5749  fi
5750done
5751  done
5752IFS=$as_save_IFS
5753
5754fi
5755fi
5756CC=$ac_cv_prog_CC
5757if test -n "$CC"; then
5758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5759printf "%s\n" "$CC" >&6; }
5760else
5761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762printf "%s\n" "no" >&6; }
5763fi
5764
5765
5766fi
5767if test -z "$ac_cv_prog_CC"; then
5768  ac_ct_CC=$CC
5769  # Extract the first word of "clang", so it can be a program name with args.
5770set dummy clang; ac_word=$2
5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772printf %s "checking for $ac_word... " >&6; }
5773if test ${ac_cv_prog_ac_ct_CC+y}
5774then :
5775  printf %s "(cached) " >&6
5776else $as_nop
5777  if test -n "$ac_ct_CC"; then
5778  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783  IFS=$as_save_IFS
5784  case $as_dir in #(((
5785    '') as_dir=./ ;;
5786    */) ;;
5787    *) as_dir=$as_dir/ ;;
5788  esac
5789    for ac_exec_ext in '' $ac_executable_extensions; do
5790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_ac_ct_CC="clang"
5792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796  done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_CC=$ac_cv_prog_ac_ct_CC
5802if test -n "$ac_ct_CC"; then
5803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5804printf "%s\n" "$ac_ct_CC" >&6; }
5805else
5806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807printf "%s\n" "no" >&6; }
5808fi
5809
5810  if test "x$ac_ct_CC" = x; then
5811    CC=""
5812  else
5813    case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819    CC=$ac_ct_CC
5820  fi
5821else
5822  CC="$ac_cv_prog_CC"
5823fi
5824
5825fi
5826
5827
5828test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5829printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5830as_fn_error $? "no acceptable C compiler found in \$PATH
5831See \`config.log' for more details" "$LINENO" 5; }
5832
5833# Provide some information about the compiler.
5834printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5835set X $ac_compile
5836ac_compiler=$2
5837for ac_option in --version -v -V -qversion -version; do
5838  { { ac_try="$ac_compiler $ac_option >&5"
5839case "(($ac_try" in
5840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841  *) ac_try_echo=$ac_try;;
5842esac
5843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5844printf "%s\n" "$ac_try_echo"; } >&5
5845  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5846  ac_status=$?
5847  if test -s conftest.err; then
5848    sed '10a\
5849... rest of stderr output deleted ...
5850         10q' conftest.err >conftest.er1
5851    cat conftest.er1 >&5
5852  fi
5853  rm -f conftest.er1 conftest.err
5854  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855  test $ac_status = 0; }
5856done
5857
5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5859printf %s "checking whether the compiler supports GNU C... " >&6; }
5860if test ${ac_cv_c_compiler_gnu+y}
5861then :
5862  printf %s "(cached) " >&6
5863else $as_nop
5864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865/* end confdefs.h.  */
5866
5867int
5868main (void)
5869{
5870#ifndef __GNUC__
5871       choke me
5872#endif
5873
5874  ;
5875  return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_compile "$LINENO"
5879then :
5880  ac_compiler_gnu=yes
5881else $as_nop
5882  ac_compiler_gnu=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5885ac_cv_c_compiler_gnu=$ac_compiler_gnu
5886
5887fi
5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5889printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5890ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
5892if test $ac_compiler_gnu = yes; then
5893  GCC=yes
5894else
5895  GCC=
5896fi
5897ac_test_CFLAGS=${CFLAGS+y}
5898ac_save_CFLAGS=$CFLAGS
5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5900printf %s "checking whether $CC accepts -g... " >&6; }
5901if test ${ac_cv_prog_cc_g+y}
5902then :
5903  printf %s "(cached) " >&6
5904else $as_nop
5905  ac_save_c_werror_flag=$ac_c_werror_flag
5906   ac_c_werror_flag=yes
5907   ac_cv_prog_cc_g=no
5908   CFLAGS="-g"
5909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911
5912int
5913main (void)
5914{
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"
5921then :
5922  ac_cv_prog_cc_g=yes
5923else $as_nop
5924  CFLAGS=""
5925      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927
5928int
5929main (void)
5930{
5931
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_compile "$LINENO"
5937then :
5938
5939else $as_nop
5940  ac_c_werror_flag=$ac_save_c_werror_flag
5941	 CFLAGS="-g"
5942	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944
5945int
5946main (void)
5947{
5948
5949  ;
5950  return 0;
5951}
5952_ACEOF
5953if ac_fn_c_try_compile "$LINENO"
5954then :
5955  ac_cv_prog_cc_g=yes
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5962   ac_c_werror_flag=$ac_save_c_werror_flag
5963fi
5964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5965printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5966if test $ac_test_CFLAGS; then
5967  CFLAGS=$ac_save_CFLAGS
5968elif test $ac_cv_prog_cc_g = yes; then
5969  if test "$GCC" = yes; then
5970    CFLAGS="-g -O2"
5971  else
5972    CFLAGS="-g"
5973  fi
5974else
5975  if test "$GCC" = yes; then
5976    CFLAGS="-O2"
5977  else
5978    CFLAGS=
5979  fi
5980fi
5981ac_prog_cc_stdc=no
5982if test x$ac_prog_cc_stdc = xno
5983then :
5984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5985printf %s "checking for $CC option to enable C11 features... " >&6; }
5986if test ${ac_cv_prog_cc_c11+y}
5987then :
5988  printf %s "(cached) " >&6
5989else $as_nop
5990  ac_cv_prog_cc_c11=no
5991ac_save_CC=$CC
5992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994$ac_c_conftest_c11_program
5995_ACEOF
5996for ac_arg in '' -std=gnu11
5997do
5998  CC="$ac_save_CC $ac_arg"
5999  if ac_fn_c_try_compile "$LINENO"
6000then :
6001  ac_cv_prog_cc_c11=$ac_arg
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.beam
6004  test "x$ac_cv_prog_cc_c11" != "xno" && break
6005done
6006rm -f conftest.$ac_ext
6007CC=$ac_save_CC
6008fi
6009
6010if test "x$ac_cv_prog_cc_c11" = xno
6011then :
6012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6013printf "%s\n" "unsupported" >&6; }
6014else $as_nop
6015  if test "x$ac_cv_prog_cc_c11" = x
6016then :
6017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6018printf "%s\n" "none needed" >&6; }
6019else $as_nop
6020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6021printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6022     CC="$CC $ac_cv_prog_cc_c11"
6023fi
6024  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6025  ac_prog_cc_stdc=c11
6026fi
6027fi
6028if test x$ac_prog_cc_stdc = xno
6029then :
6030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6031printf %s "checking for $CC option to enable C99 features... " >&6; }
6032if test ${ac_cv_prog_cc_c99+y}
6033then :
6034  printf %s "(cached) " >&6
6035else $as_nop
6036  ac_cv_prog_cc_c99=no
6037ac_save_CC=$CC
6038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040$ac_c_conftest_c99_program
6041_ACEOF
6042for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6043do
6044  CC="$ac_save_CC $ac_arg"
6045  if ac_fn_c_try_compile "$LINENO"
6046then :
6047  ac_cv_prog_cc_c99=$ac_arg
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.beam
6050  test "x$ac_cv_prog_cc_c99" != "xno" && break
6051done
6052rm -f conftest.$ac_ext
6053CC=$ac_save_CC
6054fi
6055
6056if test "x$ac_cv_prog_cc_c99" = xno
6057then :
6058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6059printf "%s\n" "unsupported" >&6; }
6060else $as_nop
6061  if test "x$ac_cv_prog_cc_c99" = x
6062then :
6063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6064printf "%s\n" "none needed" >&6; }
6065else $as_nop
6066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6067printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6068     CC="$CC $ac_cv_prog_cc_c99"
6069fi
6070  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6071  ac_prog_cc_stdc=c99
6072fi
6073fi
6074if test x$ac_prog_cc_stdc = xno
6075then :
6076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6077printf %s "checking for $CC option to enable C89 features... " >&6; }
6078if test ${ac_cv_prog_cc_c89+y}
6079then :
6080  printf %s "(cached) " >&6
6081else $as_nop
6082  ac_cv_prog_cc_c89=no
6083ac_save_CC=$CC
6084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086$ac_c_conftest_c89_program
6087_ACEOF
6088for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6089do
6090  CC="$ac_save_CC $ac_arg"
6091  if ac_fn_c_try_compile "$LINENO"
6092then :
6093  ac_cv_prog_cc_c89=$ac_arg
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.beam
6096  test "x$ac_cv_prog_cc_c89" != "xno" && break
6097done
6098rm -f conftest.$ac_ext
6099CC=$ac_save_CC
6100fi
6101
6102if test "x$ac_cv_prog_cc_c89" = xno
6103then :
6104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6105printf "%s\n" "unsupported" >&6; }
6106else $as_nop
6107  if test "x$ac_cv_prog_cc_c89" = x
6108then :
6109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6110printf "%s\n" "none needed" >&6; }
6111else $as_nop
6112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6113printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6114     CC="$CC $ac_cv_prog_cc_c89"
6115fi
6116  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6117  ac_prog_cc_stdc=c89
6118fi
6119fi
6120
6121ac_ext=c
6122ac_cpp='$CPP $CPPFLAGS'
6123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
6127
6128  ac_ext=c
6129ac_cpp='$CPP $CPPFLAGS'
6130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6134printf %s "checking whether $CC understands -c and -o together... " >&6; }
6135if test ${am_cv_prog_cc_c_o+y}
6136then :
6137  printf %s "(cached) " >&6
6138else $as_nop
6139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h.  */
6141
6142int
6143main (void)
6144{
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150  # Make sure it works both with $CC and with simple cc.
6151  # Following AC_PROG_CC_C_O, we do the test twice because some
6152  # compilers refuse to overwrite an existing .o file with -o,
6153  # though they will create one.
6154  am_cv_prog_cc_c_o=yes
6155  for am_i in 1 2; do
6156    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6157   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } \
6161         && test -f conftest2.$ac_objext; then
6162      : OK
6163    else
6164      am_cv_prog_cc_c_o=no
6165      break
6166    fi
6167  done
6168  rm -f core conftest*
6169  unset am_i
6170fi
6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6172printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6173if test "$am_cv_prog_cc_c_o" != yes; then
6174   # Losing compiler, so override with the script.
6175   # FIXME: It is wrong to rewrite CC.
6176   # But if we don't then we get into trouble of one sort or another.
6177   # A longer-term fix would be to have automake use am__CC in this case,
6178   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6179   CC="$am_aux_dir/compile $CC"
6180fi
6181ac_ext=c
6182ac_cpp='$CPP $CPPFLAGS'
6183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186
6187
6188depcc="$CC"   am_compiler_list=
6189
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6191printf %s "checking dependency style of $depcc... " >&6; }
6192if test ${am_cv_CC_dependencies_compiler_type+y}
6193then :
6194  printf %s "(cached) " >&6
6195else $as_nop
6196  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6197  # We make a subdir and do the tests there.  Otherwise we can end up
6198  # making bogus files that we don't know about and never remove.  For
6199  # instance it was reported that on HP-UX the gcc test will end up
6200  # making a dummy file named 'D' -- because '-MD' means "put the output
6201  # in D".
6202  rm -rf conftest.dir
6203  mkdir conftest.dir
6204  # Copy depcomp to subdir because otherwise we won't find it if we're
6205  # using a relative directory.
6206  cp "$am_depcomp" conftest.dir
6207  cd conftest.dir
6208  # We will build objects and dependencies in a subdirectory because
6209  # it helps to detect inapplicable dependency modes.  For instance
6210  # both Tru64's cc and ICC support -MD to output dependencies as a
6211  # side effect of compilation, but ICC will put the dependencies in
6212  # the current directory while Tru64 will put them in the object
6213  # directory.
6214  mkdir sub
6215
6216  am_cv_CC_dependencies_compiler_type=none
6217  if test "$am_compiler_list" = ""; then
6218     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6219  fi
6220  am__universal=false
6221  case " $depcc " in #(
6222     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6223     esac
6224
6225  for depmode in $am_compiler_list; do
6226    # Setup a source with many dependencies, because some compilers
6227    # like to wrap large dependency lists on column 80 (with \), and
6228    # we should not choose a depcomp mode which is confused by this.
6229    #
6230    # We need to recreate these files for each test, as the compiler may
6231    # overwrite some of them when testing with obscure command lines.
6232    # This happens at least with the AIX C compiler.
6233    : > sub/conftest.c
6234    for i in 1 2 3 4 5 6; do
6235      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6236      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6237      # Solaris 10 /bin/sh.
6238      echo '/* dummy */' > sub/conftst$i.h
6239    done
6240    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6241
6242    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6243    # mode.  It turns out that the SunPro C++ compiler does not properly
6244    # handle '-M -o', and we need to detect this.  Also, some Intel
6245    # versions had trouble with output in subdirs.
6246    am__obj=sub/conftest.${OBJEXT-o}
6247    am__minus_obj="-o $am__obj"
6248    case $depmode in
6249    gcc)
6250      # This depmode causes a compiler race in universal mode.
6251      test "$am__universal" = false || continue
6252      ;;
6253    nosideeffect)
6254      # After this tag, mechanisms are not by side-effect, so they'll
6255      # only be used when explicitly requested.
6256      if test "x$enable_dependency_tracking" = xyes; then
6257	continue
6258      else
6259	break
6260      fi
6261      ;;
6262    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6263      # This compiler won't grok '-c -o', but also, the minuso test has
6264      # not run yet.  These depmodes are late enough in the game, and
6265      # so weak that their functioning should not be impacted.
6266      am__obj=conftest.${OBJEXT-o}
6267      am__minus_obj=
6268      ;;
6269    none) break ;;
6270    esac
6271    if depmode=$depmode \
6272       source=sub/conftest.c object=$am__obj \
6273       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6274       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6275         >/dev/null 2>conftest.err &&
6276       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6277       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6278       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6279       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6280      # icc doesn't choke on unknown options, it will just issue warnings
6281      # or remarks (even with -Werror).  So we grep stderr for any message
6282      # that says an option was ignored or not supported.
6283      # When given -MP, icc 7.0 and 7.1 complain thusly:
6284      #   icc: Command line warning: ignoring option '-M'; no argument required
6285      # The diagnosis changed in icc 8.0:
6286      #   icc: Command line remark: option '-MP' not supported
6287      if (grep 'ignoring option' conftest.err ||
6288          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6289        am_cv_CC_dependencies_compiler_type=$depmode
6290        break
6291      fi
6292    fi
6293  done
6294
6295  cd ..
6296  rm -rf conftest.dir
6297else
6298  am_cv_CC_dependencies_compiler_type=none
6299fi
6300
6301fi
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6303printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6305
6306 if
6307  test "x$enable_dependency_tracking" != xno \
6308  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6309  am__fastdepCC_TRUE=
6310  am__fastdepCC_FALSE='#'
6311else
6312  am__fastdepCC_TRUE='#'
6313  am__fastdepCC_FALSE=
6314fi
6315
6316
6317ac_ext=c
6318ac_cpp='$CPP $CPPFLAGS'
6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6323printf %s "checking how to run the C preprocessor... " >&6; }
6324# On Suns, sometimes $CPP names a directory.
6325if test -n "$CPP" && test -d "$CPP"; then
6326  CPP=
6327fi
6328if test -z "$CPP"; then
6329  if test ${ac_cv_prog_CPP+y}
6330then :
6331  printf %s "(cached) " >&6
6332else $as_nop
6333      # Double quotes because $CC needs to be expanded
6334    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6335    do
6336      ac_preproc_ok=false
6337for ac_c_preproc_warn_flag in '' yes
6338do
6339  # Use a header file that comes with gcc, so configuring glibc
6340  # with a fresh cross-compiler works.
6341  # On the NeXT, cc -E runs the code through the compiler's parser,
6342  # not just through cpp. "Syntax error" is here to catch this case.
6343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345#include <limits.h>
6346		     Syntax error
6347_ACEOF
6348if ac_fn_c_try_cpp "$LINENO"
6349then :
6350
6351else $as_nop
6352  # Broken: fails on valid input.
6353continue
6354fi
6355rm -f conftest.err conftest.i conftest.$ac_ext
6356
6357  # OK, works on sane cases.  Now check whether nonexistent headers
6358  # can be detected and how.
6359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360/* end confdefs.h.  */
6361#include <ac_nonexistent.h>
6362_ACEOF
6363if ac_fn_c_try_cpp "$LINENO"
6364then :
6365  # Broken: success on invalid input.
6366continue
6367else $as_nop
6368  # Passes both tests.
6369ac_preproc_ok=:
6370break
6371fi
6372rm -f conftest.err conftest.i conftest.$ac_ext
6373
6374done
6375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6376rm -f conftest.i conftest.err conftest.$ac_ext
6377if $ac_preproc_ok
6378then :
6379  break
6380fi
6381
6382    done
6383    ac_cv_prog_CPP=$CPP
6384
6385fi
6386  CPP=$ac_cv_prog_CPP
6387else
6388  ac_cv_prog_CPP=$CPP
6389fi
6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6391printf "%s\n" "$CPP" >&6; }
6392ac_preproc_ok=false
6393for ac_c_preproc_warn_flag in '' yes
6394do
6395  # Use a header file that comes with gcc, so configuring glibc
6396  # with a fresh cross-compiler works.
6397  # On the NeXT, cc -E runs the code through the compiler's parser,
6398  # not just through cpp. "Syntax error" is here to catch this case.
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401#include <limits.h>
6402		     Syntax error
6403_ACEOF
6404if ac_fn_c_try_cpp "$LINENO"
6405then :
6406
6407else $as_nop
6408  # Broken: fails on valid input.
6409continue
6410fi
6411rm -f conftest.err conftest.i conftest.$ac_ext
6412
6413  # OK, works on sane cases.  Now check whether nonexistent headers
6414  # can be detected and how.
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417#include <ac_nonexistent.h>
6418_ACEOF
6419if ac_fn_c_try_cpp "$LINENO"
6420then :
6421  # Broken: success on invalid input.
6422continue
6423else $as_nop
6424  # Passes both tests.
6425ac_preproc_ok=:
6426break
6427fi
6428rm -f conftest.err conftest.i conftest.$ac_ext
6429
6430done
6431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6432rm -f conftest.i conftest.err conftest.$ac_ext
6433if $ac_preproc_ok
6434then :
6435
6436else $as_nop
6437  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6438printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6439as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6440See \`config.log' for more details" "$LINENO" 5; }
6441fi
6442
6443ac_ext=c
6444ac_cpp='$CPP $CPPFLAGS'
6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
6449ac_c_preproc_warn_flag=yes
6450
6451#
6452# Find build compiler when cross compiling
6453#
6454
6455
6456cross_compiling_build=no
6457
6458ac_build_tool_prefix=
6459if test -n "$build"
6460then :
6461  ac_build_tool_prefix="$build-"
6462elif test -n "$build_alias"
6463then :
6464  ac_build_tool_prefix="$build_alias-"
6465fi
6466
6467ac_ext=c
6468ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6469ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6470ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6472
6473
6474was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
6475if test ${was_set_c_compiler_gnu}
6476then :
6477  saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
6478    { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
6479fi
6480
6481ac_ext=c
6482ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6483ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6484ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
6486if test -n "$ac_build_tool_prefix"; then
6487  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6488set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490printf %s "checking for $ac_word... " >&6; }
6491if test ${ac_cv_prog_CC_FOR_BUILD+y}
6492then :
6493  printf %s "(cached) " >&6
6494else $as_nop
6495  if test -n "$CC_FOR_BUILD"; then
6496  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  case $as_dir in #(((
6503    '') as_dir=./ ;;
6504    */) ;;
6505    *) as_dir=$as_dir/ ;;
6506  esac
6507    for ac_exec_ext in '' $ac_executable_extensions; do
6508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6509    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
6510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6511    break 2
6512  fi
6513done
6514  done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6520if test -n "$CC_FOR_BUILD"; then
6521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6522printf "%s\n" "$CC_FOR_BUILD" >&6; }
6523else
6524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525printf "%s\n" "no" >&6; }
6526fi
6527
6528
6529fi
6530if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6531  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6532  # Extract the first word of "gcc", so it can be a program name with args.
6533set dummy gcc; ac_word=$2
6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535printf %s "checking for $ac_word... " >&6; }
6536if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6537then :
6538  printf %s "(cached) " >&6
6539else $as_nop
6540  if test -n "$ac_ct_CC_FOR_BUILD"; then
6541  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  case $as_dir in #(((
6548    '') as_dir=./ ;;
6549    */) ;;
6550    *) as_dir=$as_dir/ ;;
6551  esac
6552    for ac_exec_ext in '' $ac_executable_extensions; do
6553  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6554    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
6555    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6556    break 2
6557  fi
6558done
6559  done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6565if test -n "$ac_ct_CC_FOR_BUILD"; then
6566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6567printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6568else
6569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570printf "%s\n" "no" >&6; }
6571fi
6572
6573  if test "x$ac_ct_CC_FOR_BUILD" = x; then
6574    CC_FOR_BUILD=""
6575  else
6576    case $cross_compiling_build:$ac_tool_warned in
6577yes:)
6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6579printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6583  fi
6584else
6585  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6586fi
6587
6588if test -z "$CC_FOR_BUILD"; then
6589          if test -n "$ac_build_tool_prefix"; then
6590    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6591set dummy ${ac_build_tool_prefix}cc; ac_word=$2
6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593printf %s "checking for $ac_word... " >&6; }
6594if test ${ac_cv_prog_CC_FOR_BUILD+y}
6595then :
6596  printf %s "(cached) " >&6
6597else $as_nop
6598  if test -n "$CC_FOR_BUILD"; then
6599  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604  IFS=$as_save_IFS
6605  case $as_dir in #(((
6606    '') as_dir=./ ;;
6607    */) ;;
6608    *) as_dir=$as_dir/ ;;
6609  esac
6610    for ac_exec_ext in '' $ac_executable_extensions; do
6611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6612    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
6613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6614    break 2
6615  fi
6616done
6617  done
6618IFS=$as_save_IFS
6619
6620fi
6621fi
6622CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6623if test -n "$CC_FOR_BUILD"; then
6624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6625printf "%s\n" "$CC_FOR_BUILD" >&6; }
6626else
6627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628printf "%s\n" "no" >&6; }
6629fi
6630
6631
6632  fi
6633fi
6634if test -z "$CC_FOR_BUILD"; then
6635  # Extract the first word of "cc", so it can be a program name with args.
6636set dummy cc; ac_word=$2
6637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638printf %s "checking for $ac_word... " >&6; }
6639if test ${ac_cv_prog_CC_FOR_BUILD+y}
6640then :
6641  printf %s "(cached) " >&6
6642else $as_nop
6643  if test -n "$CC_FOR_BUILD"; then
6644  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6645else
6646  ac_prog_rejected=no
6647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650  IFS=$as_save_IFS
6651  case $as_dir in #(((
6652    '') as_dir=./ ;;
6653    */) ;;
6654    *) as_dir=$as_dir/ ;;
6655  esac
6656    for ac_exec_ext in '' $ac_executable_extensions; do
6657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6658    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6659       ac_prog_rejected=yes
6660       continue
6661     fi
6662    ac_cv_prog_CC_FOR_BUILD="cc"
6663    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670if test $ac_prog_rejected = yes; then
6671  # We found a bogon in the path, so make sure we never use it.
6672  set dummy $ac_cv_prog_CC_FOR_BUILD
6673  shift
6674  if test $# != 0; then
6675    # We chose a different compiler from the bogus one.
6676    # However, it has the same basename, so the bogon will be chosen
6677    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
6678    shift
6679    ac_cv_prog_CC_FOR_BUILD="$as_dir$ac_word${1+' '}$@"
6680  fi
6681fi
6682fi
6683fi
6684CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6685if test -n "$CC_FOR_BUILD"; then
6686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6687printf "%s\n" "$CC_FOR_BUILD" >&6; }
6688else
6689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690printf "%s\n" "no" >&6; }
6691fi
6692
6693
6694fi
6695if test -z "$CC_FOR_BUILD"; then
6696  if test -n "$ac_build_tool_prefix"; then
6697  for ac_prog in cl.exe
6698  do
6699    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6700set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702printf %s "checking for $ac_word... " >&6; }
6703if test ${ac_cv_prog_CC_FOR_BUILD+y}
6704then :
6705  printf %s "(cached) " >&6
6706else $as_nop
6707  if test -n "$CC_FOR_BUILD"; then
6708  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713  IFS=$as_save_IFS
6714  case $as_dir in #(((
6715    '') as_dir=./ ;;
6716    */) ;;
6717    *) as_dir=$as_dir/ ;;
6718  esac
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6721    ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
6722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6732if test -n "$CC_FOR_BUILD"; then
6733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6734printf "%s\n" "$CC_FOR_BUILD" >&6; }
6735else
6736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737printf "%s\n" "no" >&6; }
6738fi
6739
6740
6741    test -n "$CC_FOR_BUILD" && break
6742  done
6743fi
6744if test -z "$CC_FOR_BUILD"; then
6745  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6746  for ac_prog in cl.exe
6747do
6748  # Extract the first word of "$ac_prog", so it can be a program name with args.
6749set dummy $ac_prog; ac_word=$2
6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751printf %s "checking for $ac_word... " >&6; }
6752if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  if test -n "$ac_ct_CC_FOR_BUILD"; then
6757  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6758else
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  case $as_dir in #(((
6764    '') as_dir=./ ;;
6765    */) ;;
6766    *) as_dir=$as_dir/ ;;
6767  esac
6768    for ac_exec_ext in '' $ac_executable_extensions; do
6769  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6770    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775  done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6781if test -n "$ac_ct_CC_FOR_BUILD"; then
6782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6783printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6784else
6785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786printf "%s\n" "no" >&6; }
6787fi
6788
6789
6790  test -n "$ac_ct_CC_FOR_BUILD" && break
6791done
6792
6793  if test "x$ac_ct_CC_FOR_BUILD" = x; then
6794    CC_FOR_BUILD=""
6795  else
6796    case $cross_compiling_build:$ac_tool_warned in
6797yes:)
6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6803  fi
6804fi
6805
6806fi
6807if test -z "$CC_FOR_BUILD"; then
6808  if test -n "$ac_build_tool_prefix"; then
6809  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6810set dummy ${ac_build_tool_prefix}clang; ac_word=$2
6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812printf %s "checking for $ac_word... " >&6; }
6813if test ${ac_cv_prog_CC_FOR_BUILD+y}
6814then :
6815  printf %s "(cached) " >&6
6816else $as_nop
6817  if test -n "$CC_FOR_BUILD"; then
6818  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823  IFS=$as_save_IFS
6824  case $as_dir in #(((
6825    '') as_dir=./ ;;
6826    */) ;;
6827    *) as_dir=$as_dir/ ;;
6828  esac
6829    for ac_exec_ext in '' $ac_executable_extensions; do
6830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6831    ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}clang"
6832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6833    break 2
6834  fi
6835done
6836  done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6842if test -n "$CC_FOR_BUILD"; then
6843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6844printf "%s\n" "$CC_FOR_BUILD" >&6; }
6845else
6846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847printf "%s\n" "no" >&6; }
6848fi
6849
6850
6851fi
6852if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6853  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6854  # Extract the first word of "clang", so it can be a program name with args.
6855set dummy clang; ac_word=$2
6856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857printf %s "checking for $ac_word... " >&6; }
6858if test ${ac_cv_prog_ac_ct_CC_FOR_BUILD+y}
6859then :
6860  printf %s "(cached) " >&6
6861else $as_nop
6862  if test -n "$ac_ct_CC_FOR_BUILD"; then
6863  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  case $as_dir in #(((
6870    '') as_dir=./ ;;
6871    */) ;;
6872    *) as_dir=$as_dir/ ;;
6873  esac
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6876    ac_cv_prog_ac_ct_CC_FOR_BUILD="clang"
6877    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6878    break 2
6879  fi
6880done
6881  done
6882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6887if test -n "$ac_ct_CC_FOR_BUILD"; then
6888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6889printf "%s\n" "$ac_ct_CC_FOR_BUILD" >&6; }
6890else
6891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892printf "%s\n" "no" >&6; }
6893fi
6894
6895  if test "x$ac_ct_CC_FOR_BUILD" = x; then
6896    CC_FOR_BUILD=""
6897  else
6898    case $cross_compiling_build:$ac_tool_warned in
6899yes:)
6900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6901printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6905  fi
6906else
6907  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6908fi
6909
6910fi
6911
6912
6913test -z "$CC_FOR_BUILD" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6914printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6915as_fn_error $? "no acceptable C compiler found in \$PATH
6916See \`config.log' for more details" "$LINENO" 5; }
6917
6918# Provide some information about the compiler.
6919printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6920set X $ac_compile
6921ac_compiler=$2
6922for ac_option in --version -v -V -qversion -version; do
6923  { { ac_try="$ac_compiler $ac_option >&5"
6924case "(($ac_try" in
6925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926  *) ac_try_echo=$ac_try;;
6927esac
6928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6929printf "%s\n" "$ac_try_echo"; } >&5
6930  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6931  ac_status=$?
6932  if test -s conftest.err; then
6933    sed '10a\
6934... rest of stderr output deleted ...
6935         10q' conftest.err >conftest.er1
6936    cat conftest.er1 >&5
6937  fi
6938  rm -f conftest.er1 conftest.err
6939  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; }
6941done
6942
6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6944printf %s "checking whether the compiler supports GNU C... " >&6; }
6945if test ${ac_cv_c_compiler_gnu+y}
6946then :
6947  printf %s "(cached) " >&6
6948else $as_nop
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951
6952int
6953main (void)
6954{
6955#ifndef __GNUC__
6956       choke me
6957#endif
6958
6959  ;
6960  return 0;
6961}
6962_ACEOF
6963if ac_fn_c_try_compile "$LINENO"
6964then :
6965  ac_compiler_gnu=yes
6966else $as_nop
6967  ac_compiler_gnu=no
6968fi
6969rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
6970ac_cv_c_compiler_gnu=$ac_compiler_gnu
6971
6972fi
6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6974printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6975ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977if test $ac_compiler_gnu = yes; then
6978  GCC_FOR_BUILD=yes
6979else
6980  GCC_FOR_BUILD=
6981fi
6982ac_test_CFLAGS=${CFLAGS_FOR_BUILD+y}
6983ac_save_CFLAGS=$CFLAGS_FOR_BUILD
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
6985printf %s "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
6986if test ${ac_cv_build_prog_cc_g+y}
6987then :
6988  printf %s "(cached) " >&6
6989else $as_nop
6990  ac_save_c_werror_flag=$ac_c_werror_flag
6991   ac_c_werror_flag=yes
6992   ac_cv_build_prog_cc_g=no
6993   CFLAGS_FOR_BUILD="-g"
6994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996
6997int
6998main (void)
6999{
7000
7001  ;
7002  return 0;
7003}
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"
7006then :
7007  ac_cv_build_prog_cc_g=yes
7008else $as_nop
7009  CFLAGS_FOR_BUILD=""
7010      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012
7013int
7014main (void)
7015{
7016
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"
7022then :
7023
7024else $as_nop
7025  ac_c_werror_flag=$ac_save_c_werror_flag
7026	 CFLAGS_FOR_BUILD="-g"
7027	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h.  */
7029
7030int
7031main (void)
7032{
7033
7034  ;
7035  return 0;
7036}
7037_ACEOF
7038if ac_fn_c_try_compile "$LINENO"
7039then :
7040  ac_cv_build_prog_cc_g=yes
7041fi
7042rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7043fi
7044rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7045fi
7046rm -f core conftest.err conftest.$ac_build_objext conftest.beam conftest.$ac_ext
7047   ac_c_werror_flag=$ac_save_c_werror_flag
7048fi
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
7050printf "%s\n" "$ac_cv_build_prog_cc_g" >&6; }
7051if test $ac_test_CFLAGS; then
7052  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
7053elif test $ac_cv_build_prog_cc_g = yes; then
7054  if test "$GCC_FOR_BUILD" = yes; then
7055    CFLAGS_FOR_BUILD="-g -O2"
7056  else
7057    CFLAGS_FOR_BUILD="-g"
7058  fi
7059else
7060  if test "$GCC_FOR_BUILD" = yes; then
7061    CFLAGS_FOR_BUILD="-O2"
7062  else
7063    CFLAGS_FOR_BUILD=
7064  fi
7065fi
7066ac_prog_cc_stdc=no
7067if test x$ac_prog_cc_stdc = xno
7068then :
7069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C11 features" >&5
7070printf %s "checking for $CC_FOR_BUILD option to enable C11 features... " >&6; }
7071if test ${ac_cv_build_prog_cc_c11+y}
7072then :
7073  printf %s "(cached) " >&6
7074else $as_nop
7075  ac_cv_build_prog_cc_c11=no
7076ac_save_CC=$CC_FOR_BUILD
7077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079$ac_c_conftest_c11_program
7080_ACEOF
7081for ac_arg in '' -std=gnu11
7082do
7083  CC_FOR_BUILD="$ac_save_CC $ac_arg"
7084  if ac_fn_c_try_compile "$LINENO"
7085then :
7086  ac_cv_build_prog_cc_c11=$ac_arg
7087fi
7088rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7089  test "x$ac_cv_build_prog_cc_c11" != "xno" && break
7090done
7091rm -f conftest.$ac_ext
7092CC_FOR_BUILD=$ac_save_CC
7093fi
7094
7095if test "x$ac_cv_build_prog_cc_c11" = xno
7096then :
7097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7098printf "%s\n" "unsupported" >&6; }
7099else $as_nop
7100  if test "x$ac_cv_build_prog_cc_c11" = x
7101then :
7102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7103printf "%s\n" "none needed" >&6; }
7104else $as_nop
7105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c11" >&5
7106printf "%s\n" "$ac_cv_build_prog_cc_c11" >&6; }
7107     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c11"
7108fi
7109  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c11
7110  ac_prog_cc_stdc=c11
7111fi
7112fi
7113if test x$ac_prog_cc_stdc = xno
7114then :
7115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C99 features" >&5
7116printf %s "checking for $CC_FOR_BUILD option to enable C99 features... " >&6; }
7117if test ${ac_cv_build_prog_cc_c99+y}
7118then :
7119  printf %s "(cached) " >&6
7120else $as_nop
7121  ac_cv_build_prog_cc_c99=no
7122ac_save_CC=$CC_FOR_BUILD
7123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125$ac_c_conftest_c99_program
7126_ACEOF
7127for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7128do
7129  CC_FOR_BUILD="$ac_save_CC $ac_arg"
7130  if ac_fn_c_try_compile "$LINENO"
7131then :
7132  ac_cv_build_prog_cc_c99=$ac_arg
7133fi
7134rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7135  test "x$ac_cv_build_prog_cc_c99" != "xno" && break
7136done
7137rm -f conftest.$ac_ext
7138CC_FOR_BUILD=$ac_save_CC
7139fi
7140
7141if test "x$ac_cv_build_prog_cc_c99" = xno
7142then :
7143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7144printf "%s\n" "unsupported" >&6; }
7145else $as_nop
7146  if test "x$ac_cv_build_prog_cc_c99" = x
7147then :
7148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7149printf "%s\n" "none needed" >&6; }
7150else $as_nop
7151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c99" >&5
7152printf "%s\n" "$ac_cv_build_prog_cc_c99" >&6; }
7153     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c99"
7154fi
7155  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c99
7156  ac_prog_cc_stdc=c99
7157fi
7158fi
7159if test x$ac_prog_cc_stdc = xno
7160then :
7161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to enable C89 features" >&5
7162printf %s "checking for $CC_FOR_BUILD option to enable C89 features... " >&6; }
7163if test ${ac_cv_build_prog_cc_c89+y}
7164then :
7165  printf %s "(cached) " >&6
7166else $as_nop
7167  ac_cv_build_prog_cc_c89=no
7168ac_save_CC=$CC_FOR_BUILD
7169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170/* end confdefs.h.  */
7171$ac_c_conftest_c89_program
7172_ACEOF
7173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7174do
7175  CC_FOR_BUILD="$ac_save_CC $ac_arg"
7176  if ac_fn_c_try_compile "$LINENO"
7177then :
7178  ac_cv_build_prog_cc_c89=$ac_arg
7179fi
7180rm -f core conftest.err conftest.$ac_build_objext conftest.beam
7181  test "x$ac_cv_build_prog_cc_c89" != "xno" && break
7182done
7183rm -f conftest.$ac_ext
7184CC_FOR_BUILD=$ac_save_CC
7185fi
7186
7187if test "x$ac_cv_build_prog_cc_c89" = xno
7188then :
7189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7190printf "%s\n" "unsupported" >&6; }
7191else $as_nop
7192  if test "x$ac_cv_build_prog_cc_c89" = x
7193then :
7194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7195printf "%s\n" "none needed" >&6; }
7196else $as_nop
7197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5
7198printf "%s\n" "$ac_cv_build_prog_cc_c89" >&6; }
7199     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89"
7200fi
7201  ac_cv_prog_cc_stdc=$ac_cv_build_prog_cc_c89
7202  ac_prog_cc_stdc=c89
7203fi
7204fi
7205
7206ac_ext=c
7207ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7208ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7209ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7210ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7211
7212
7213  ac_ext=c
7214ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7215ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7216ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7217ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
7219printf %s "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
7220if test ${am_cv_build_prog_cc_c_o+y}
7221then :
7222  printf %s "(cached) " >&6
7223else $as_nop
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226
7227int
7228main (void)
7229{
7230
7231  ;
7232  return 0;
7233}
7234_ACEOF
7235  # Make sure it works both with $CC and with simple cc.
7236  # Following AC_PROG_CC_C_O, we do the test twice because some
7237  # compilers refuse to overwrite an existing .o file with -o,
7238  # though they will create one.
7239  am_cv_build_prog_cc_c_o=yes
7240  for am_i in 1 2; do
7241    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
7242   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } \
7246         && test -f conftest2.$ac_build_objext; then
7247      : OK
7248    else
7249      am_cv_build_prog_cc_c_o=no
7250      break
7251    fi
7252  done
7253  rm -f core conftest*
7254  unset am_i
7255fi
7256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5
7257printf "%s\n" "$am_cv_build_prog_cc_c_o" >&6; }
7258if test "$am_cv_build_prog_cc_c_o" != yes; then
7259   # Losing compiler, so override with the script.
7260   # FIXME: It is wrong to rewrite CC.
7261   # But if we don't then we get into trouble of one sort or another.
7262   # A longer-term fix would be to have automake use am__CC in this case,
7263   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7264   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
7265fi
7266ac_ext=c
7267ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7268ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7269ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7270ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7271
7272
7273depcc="$CC_FOR_BUILD"   am_compiler_list=
7274
7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7276printf %s "checking dependency style of $depcc... " >&6; }
7277if test ${am_cv_build_CC_dependencies_compiler_type+y}
7278then :
7279  printf %s "(cached) " >&6
7280else $as_nop
7281  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7282  # We make a subdir and do the tests there.  Otherwise we can end up
7283  # making bogus files that we don't know about and never remove.  For
7284  # instance it was reported that on HP-UX the gcc test will end up
7285  # making a dummy file named 'D' -- because '-MD' means "put the output
7286  # in D".
7287  rm -rf conftest.dir
7288  mkdir conftest.dir
7289  # Copy depcomp to subdir because otherwise we won't find it if we're
7290  # using a relative directory.
7291  cp "$am_depcomp" conftest.dir
7292  cd conftest.dir
7293  # We will build objects and dependencies in a subdirectory because
7294  # it helps to detect inapplicable dependency modes.  For instance
7295  # both Tru64's cc and ICC support -MD to output dependencies as a
7296  # side effect of compilation, but ICC will put the dependencies in
7297  # the current directory while Tru64 will put them in the object
7298  # directory.
7299  mkdir sub
7300
7301  am_cv_build_CC_dependencies_compiler_type=none
7302  if test "$am_compiler_list" = ""; then
7303     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7304  fi
7305  am__universal=false
7306  case " $depcc " in #(
7307     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7308     esac
7309
7310  for depmode in $am_compiler_list; do
7311    # Setup a source with many dependencies, because some compilers
7312    # like to wrap large dependency lists on column 80 (with \), and
7313    # we should not choose a depcomp mode which is confused by this.
7314    #
7315    # We need to recreate these files for each test, as the compiler may
7316    # overwrite some of them when testing with obscure command lines.
7317    # This happens at least with the AIX C compiler.
7318    : > sub/conftest.c
7319    for i in 1 2 3 4 5 6; do
7320      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7321      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7322      # Solaris 10 /bin/sh.
7323      echo '/* dummy */' > sub/conftst$i.h
7324    done
7325    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7326
7327    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7328    # mode.  It turns out that the SunPro C++ compiler does not properly
7329    # handle '-M -o', and we need to detect this.  Also, some Intel
7330    # versions had trouble with output in subdirs.
7331    am__obj=sub/conftest.${BUILD_OBJEXT-o}
7332    am__minus_obj="-o $am__obj"
7333    case $depmode in
7334    gcc)
7335      # This depmode causes a compiler race in universal mode.
7336      test "$am__universal" = false || continue
7337      ;;
7338    nosideeffect)
7339      # After this tag, mechanisms are not by side-effect, so they'll
7340      # only be used when explicitly requested.
7341      if test "x$enable_dependency_tracking" = xyes; then
7342	continue
7343      else
7344	break
7345      fi
7346      ;;
7347    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7348      # This compiler won't grok '-c -o', but also, the minuso test has
7349      # not run yet.  These depmodes are late enough in the game, and
7350      # so weak that their functioning should not be impacted.
7351      am__obj=conftest.${BUILD_OBJEXT-o}
7352      am__minus_obj=
7353      ;;
7354    none) break ;;
7355    esac
7356    if depmode=$depmode \
7357       source=sub/conftest.c object=$am__obj \
7358       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7359       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7360         >/dev/null 2>conftest.err &&
7361       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7362       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7363       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7364       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7365      # icc doesn't choke on unknown options, it will just issue warnings
7366      # or remarks (even with -Werror).  So we grep stderr for any message
7367      # that says an option was ignored or not supported.
7368      # When given -MP, icc 7.0 and 7.1 complain thusly:
7369      #   icc: Command line warning: ignoring option '-M'; no argument required
7370      # The diagnosis changed in icc 8.0:
7371      #   icc: Command line remark: option '-MP' not supported
7372      if (grep 'ignoring option' conftest.err ||
7373          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7374        am_cv_build_CC_dependencies_compiler_type=$depmode
7375        break
7376      fi
7377    fi
7378  done
7379
7380  cd ..
7381  rm -rf conftest.dir
7382else
7383  am_cv_build_CC_dependencies_compiler_type=none
7384fi
7385
7386fi
7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5
7388printf "%s\n" "$am_cv_build_CC_dependencies_compiler_type" >&6; }
7389CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type
7390
7391 if
7392  test "x$enable_dependency_tracking" != xno \
7393  && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then
7394  am__fastdepCC_TRUE=
7395  am__fastdepCC_FALSE='#'
7396else
7397  am__fastdepCC_TRUE='#'
7398  am__fastdepCC_FALSE=
7399fi
7400
7401
7402
7403if test ${was_set_c_compiler_gnu}
7404then :
7405  ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
7406fi
7407
7408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410
7411int
7412main (void)
7413{
7414
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419ac_clean_files_save=$ac_clean_files
7420ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7421# Try to create an executable without -o first, disregard a.out.
7422# It will help us diagnose broken compilers, and finding out an intuition
7423# of exeext.
7424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7425printf %s "checking whether the C compiler works... " >&6; }
7426ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7427
7428# The possible output files:
7429ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7430
7431ac_rmfiles=
7432for ac_file in $ac_files
7433do
7434  case $ac_file in
7435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7436    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7437  esac
7438done
7439rm -f $ac_rmfiles
7440
7441if { { ac_try="$ac_link_default"
7442case "(($ac_try" in
7443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444  *) ac_try_echo=$ac_try;;
7445esac
7446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7447printf "%s\n" "$ac_try_echo"; } >&5
7448  (eval "$ac_link_default") 2>&5
7449  ac_status=$?
7450  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451  test $ac_status = 0; }
7452then :
7453  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
7454# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
7455# in a Makefile.  We should not override ac_cv_exeext if it was cached,
7456# so that the user can short-circuit this test for compilers unknown to
7457# Autoconf.
7458for ac_file in $ac_files ''
7459do
7460  test -f "$ac_file" || continue
7461  case $ac_file in
7462    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7463	;;
7464    [ab].out )
7465	# We found the default executable, but exeext='' is most
7466	# certainly right.
7467	break;;
7468    *.* )
7469	if test ${ac_cv_build_exeext+y} && test "$ac_cv_build_exeext" != no;
7470	then :; else
7471	   ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7472	fi
7473	# We set ac_cv_exeext here because the later test for it is not
7474	# safe: cross compilers may not add the suffix if given an `-o'
7475	# argument, so we may need to know it at that point already.
7476	# Even if this section looks crufty: it has the advantage of
7477	# actually working.
7478	break;;
7479    * )
7480	break;;
7481  esac
7482done
7483test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
7484
7485else $as_nop
7486  ac_file=''
7487fi
7488if test -z "$ac_file"
7489then :
7490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491printf "%s\n" "no" >&6; }
7492printf "%s\n" "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7496printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7497as_fn_error 77 "C compiler cannot create executables
7498See \`config.log' for more details" "$LINENO" 5; }
7499else $as_nop
7500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501printf "%s\n" "yes" >&6; }
7502fi
7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7504printf %s "checking for C compiler default output file name... " >&6; }
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7506printf "%s\n" "$ac_file" >&6; }
7507ac_build_exeext=$ac_cv_build_exeext
7508
7509rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
7510ac_clean_files=$ac_clean_files_save
7511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7512printf %s "checking for suffix of executables... " >&6; }
7513if { { ac_try="$ac_link"
7514case "(($ac_try" in
7515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516  *) ac_try_echo=$ac_try;;
7517esac
7518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7519printf "%s\n" "$ac_try_echo"; } >&5
7520  (eval "$ac_link") 2>&5
7521  ac_status=$?
7522  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523  test $ac_status = 0; }
7524then :
7525  # If both `conftest.exe' and `conftest' are `present' (well, observable)
7526# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
7527# work properly (i.e., refer to `conftest.exe'), while it won't with
7528# `rm'.
7529for ac_file in conftest.exe conftest conftest.*; do
7530  test -f "$ac_file" || continue
7531  case $ac_file in
7532    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7533    *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7534	  break;;
7535    * ) break;;
7536  esac
7537done
7538else $as_nop
7539  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7540printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7541as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7542See \`config.log' for more details" "$LINENO" 5; }
7543fi
7544rm -f conftest conftest$ac_cv_build_exeext
7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
7546printf "%s\n" "$ac_cv_build_exeext" >&6; }
7547
7548rm -f conftest.$ac_ext
7549EXEEXT=$ac_cv_build_exeext
7550ac_build_exeext=$BUILD_EXEEXT
7551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553#include <stdio.h>
7554int
7555main (void)
7556{
7557FILE *f = fopen ("conftest.out", "w");
7558 return ferror (f) || fclose (f) != 0;
7559
7560  ;
7561  return 0;
7562}
7563_ACEOF
7564ac_clean_files="$ac_clean_files conftest.out"
7565# Check that the compiler produces executables we can run.  If not, either
7566# the compiler is broken, or we cross compile.
7567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7568printf %s "checking whether we are cross compiling... " >&6; }
7569if test "$cross_compiling_build" != yes; then
7570  { { ac_try="$ac_link"
7571case "(($ac_try" in
7572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573  *) ac_try_echo=$ac_try;;
7574esac
7575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7576printf "%s\n" "$ac_try_echo"; } >&5
7577  (eval "$ac_link") 2>&5
7578  ac_status=$?
7579  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580  test $ac_status = 0; }
7581  if { ac_try='./conftest$ac_cv_build_exeext'
7582  { { case "(($ac_try" in
7583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584  *) ac_try_echo=$ac_try;;
7585esac
7586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7587printf "%s\n" "$ac_try_echo"; } >&5
7588  (eval "$ac_try") 2>&5
7589  ac_status=$?
7590  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591  test $ac_status = 0; }; }; then
7592    cross_compiling_build=no
7593  else
7594    if test "$cross_compiling_build" = maybe; then
7595	cross_compiling_build=yes
7596    else
7597	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7598printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7599as_fn_error 77 "cannot run C compiled programs.
7600If you meant to cross compile, use \`--build'.
7601See \`config.log' for more details" "$LINENO" 5; }
7602    fi
7603  fi
7604fi
7605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling_build" >&5
7606printf "%s\n" "$cross_compiling_build" >&6; }
7607
7608rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
7609ac_clean_files=$ac_clean_files_save
7610
7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7612printf %s "checking for suffix of object files... " >&6; }
7613if test ${ac_cv_build_objext+y}
7614then :
7615  printf %s "(cached) " >&6
7616else $as_nop
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619
7620int
7621main (void)
7622{
7623
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628rm -f conftest.o conftest.obj
7629if { { ac_try="$ac_compile"
7630case "(($ac_try" in
7631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632  *) ac_try_echo=$ac_try;;
7633esac
7634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7635printf "%s\n" "$ac_try_echo"; } >&5
7636  (eval "$ac_compile") 2>&5
7637  ac_status=$?
7638  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639  test $ac_status = 0; }
7640then :
7641  for ac_file in conftest.o conftest.obj conftest.*; do
7642  test -f "$ac_file" || continue;
7643  case $ac_file in
7644    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7645    *) ac_cv_build_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7646       break;;
7647  esac
7648done
7649else $as_nop
7650  printf "%s\n" "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7654printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7655as_fn_error $? "cannot compute suffix of object files: cannot compile
7656See \`config.log' for more details" "$LINENO" 5; }
7657fi
7658rm -f conftest.$ac_cv_build_objext conftest.$ac_ext
7659fi
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_objext" >&5
7661printf "%s\n" "$ac_cv_build_objext" >&6; }
7662OBJEXT=$ac_cv_build_objext
7663ac_build_objext=$BUILD_OBJEXT
7664
7665ac_ext=c
7666ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7667ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7668ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7669ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7671printf %s "checking how to run the C preprocessor... " >&6; }
7672# On Suns, sometimes $CPP names a directory.
7673if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
7674  CPP_FOR_BUILD=
7675fi
7676if test -z "$CPP_FOR_BUILD"; then
7677  if test ${ac_cv_build_prog_CPP+y}
7678then :
7679  printf %s "(cached) " >&6
7680else $as_nop
7681      # Double quotes because $CC needs to be expanded
7682    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" cpp /lib/cpp
7683    do
7684      ac_preproc_ok=false
7685for ac_c_preproc_warn_flag in '' yes
7686do
7687  # Use a header file that comes with gcc, so configuring glibc
7688  # with a fresh cross-compiler works.
7689  # On the NeXT, cc -E runs the code through the compiler's parser,
7690  # not just through cpp. "Syntax error" is here to catch this case.
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693#include <limits.h>
7694		     Syntax error
7695_ACEOF
7696if ac_fn_c_try_cpp "$LINENO"
7697then :
7698
7699else $as_nop
7700  # Broken: fails on valid input.
7701continue
7702fi
7703rm -f conftest.err conftest.i conftest.$ac_ext
7704
7705  # OK, works on sane cases.  Now check whether nonexistent headers
7706  # can be detected and how.
7707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h.  */
7709#include <ac_nonexistent.h>
7710_ACEOF
7711if ac_fn_c_try_cpp "$LINENO"
7712then :
7713  # Broken: success on invalid input.
7714continue
7715else $as_nop
7716  # Passes both tests.
7717ac_preproc_ok=:
7718break
7719fi
7720rm -f conftest.err conftest.i conftest.$ac_ext
7721
7722done
7723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7724rm -f conftest.i conftest.err conftest.$ac_ext
7725if $ac_preproc_ok
7726then :
7727  break
7728fi
7729
7730    done
7731    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7732
7733fi
7734  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7735else
7736  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7737fi
7738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
7739printf "%s\n" "$CPP_FOR_BUILD" >&6; }
7740ac_preproc_ok=false
7741for ac_c_preproc_warn_flag in '' yes
7742do
7743  # Use a header file that comes with gcc, so configuring glibc
7744  # with a fresh cross-compiler works.
7745  # On the NeXT, cc -E runs the code through the compiler's parser,
7746  # not just through cpp. "Syntax error" is here to catch this case.
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749#include <limits.h>
7750		     Syntax error
7751_ACEOF
7752if ac_fn_c_try_cpp "$LINENO"
7753then :
7754
7755else $as_nop
7756  # Broken: fails on valid input.
7757continue
7758fi
7759rm -f conftest.err conftest.i conftest.$ac_ext
7760
7761  # OK, works on sane cases.  Now check whether nonexistent headers
7762  # can be detected and how.
7763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765#include <ac_nonexistent.h>
7766_ACEOF
7767if ac_fn_c_try_cpp "$LINENO"
7768then :
7769  # Broken: success on invalid input.
7770continue
7771else $as_nop
7772  # Passes both tests.
7773ac_preproc_ok=:
7774break
7775fi
7776rm -f conftest.err conftest.i conftest.$ac_ext
7777
7778done
7779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7780rm -f conftest.i conftest.err conftest.$ac_ext
7781if $ac_preproc_ok
7782then :
7783
7784else $as_nop
7785  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7786printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7787as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7788See \`config.log' for more details" "$LINENO" 5; }
7789fi
7790
7791ac_ext=c
7792ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7793ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7794ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7795ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
7796
7797
7798
7799ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805
7806
7807
7808#
7809# Find the machine's endian flavor.
7810#
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7812printf %s "checking whether byte ordering is bigendian... " >&6; }
7813if test ${ac_cv_c_bigendian+y}
7814then :
7815  printf %s "(cached) " >&6
7816else $as_nop
7817  ac_cv_c_bigendian=unknown
7818    # See if we're dealing with a universal compiler.
7819    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821#ifndef __APPLE_CC__
7822	       not a universal capable compiler
7823	     #endif
7824	     typedef int dummy;
7825
7826_ACEOF
7827if ac_fn_c_try_compile "$LINENO"
7828then :
7829
7830	# Check for potential -arch flags.  It is not universal unless
7831	# there are at least two -arch flags with different values.
7832	ac_arch=
7833	ac_prev=
7834	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7835	 if test -n "$ac_prev"; then
7836	   case $ac_word in
7837	     i?86 | x86_64 | ppc | ppc64)
7838	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7839		 ac_arch=$ac_word
7840	       else
7841		 ac_cv_c_bigendian=universal
7842		 break
7843	       fi
7844	       ;;
7845	   esac
7846	   ac_prev=
7847	 elif test "x$ac_word" = "x-arch"; then
7848	   ac_prev=arch
7849	 fi
7850       done
7851fi
7852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7853    if test $ac_cv_c_bigendian = unknown; then
7854      # See if sys/param.h defines the BYTE_ORDER macro.
7855      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857#include <sys/types.h>
7858	     #include <sys/param.h>
7859
7860int
7861main (void)
7862{
7863#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7864		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7865		     && LITTLE_ENDIAN)
7866	      bogus endian macros
7867	     #endif
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_compile "$LINENO"
7874then :
7875  # It does; now see whether it defined to BIG_ENDIAN or not.
7876	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878#include <sys/types.h>
7879		#include <sys/param.h>
7880
7881int
7882main (void)
7883{
7884#if BYTE_ORDER != BIG_ENDIAN
7885		 not big endian
7886		#endif
7887
7888  ;
7889  return 0;
7890}
7891_ACEOF
7892if ac_fn_c_try_compile "$LINENO"
7893then :
7894  ac_cv_c_bigendian=yes
7895else $as_nop
7896  ac_cv_c_bigendian=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7901    fi
7902    if test $ac_cv_c_bigendian = unknown; then
7903      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906#include <limits.h>
7907
7908int
7909main (void)
7910{
7911#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7912	      bogus endian macros
7913	     #endif
7914
7915  ;
7916  return 0;
7917}
7918_ACEOF
7919if ac_fn_c_try_compile "$LINENO"
7920then :
7921  # It does; now see whether it defined to _BIG_ENDIAN or not.
7922	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924#include <limits.h>
7925
7926int
7927main (void)
7928{
7929#ifndef _BIG_ENDIAN
7930		 not big endian
7931		#endif
7932
7933  ;
7934  return 0;
7935}
7936_ACEOF
7937if ac_fn_c_try_compile "$LINENO"
7938then :
7939  ac_cv_c_bigendian=yes
7940else $as_nop
7941  ac_cv_c_bigendian=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7946    fi
7947    if test $ac_cv_c_bigendian = unknown; then
7948      # Compile a test program.
7949      if test "$cross_compiling" = yes
7950then :
7951  # Try to guess by grepping values from an object file.
7952	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954unsigned short int ascii_mm[] =
7955		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7956		unsigned short int ascii_ii[] =
7957		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7958		int use_ascii (int i) {
7959		  return ascii_mm[i] + ascii_ii[i];
7960		}
7961		unsigned short int ebcdic_ii[] =
7962		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7963		unsigned short int ebcdic_mm[] =
7964		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7965		int use_ebcdic (int i) {
7966		  return ebcdic_mm[i] + ebcdic_ii[i];
7967		}
7968		extern int foo;
7969
7970int
7971main (void)
7972{
7973return use_ascii (foo) == use_ebcdic (foo);
7974  ;
7975  return 0;
7976}
7977_ACEOF
7978if ac_fn_c_try_compile "$LINENO"
7979then :
7980  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7981	      ac_cv_c_bigendian=yes
7982	    fi
7983	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7984	      if test "$ac_cv_c_bigendian" = unknown; then
7985		ac_cv_c_bigendian=no
7986	      else
7987		# finding both strings is unlikely to happen, but who knows?
7988		ac_cv_c_bigendian=unknown
7989	      fi
7990	    fi
7991fi
7992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7993else $as_nop
7994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995/* end confdefs.h.  */
7996$ac_includes_default
7997int
7998main (void)
7999{
8000
8001	     /* Are we little or big endian?  From Harbison&Steele.  */
8002	     union
8003	     {
8004	       long int l;
8005	       char c[sizeof (long int)];
8006	     } u;
8007	     u.l = 1;
8008	     return u.c[sizeof (long int) - 1] == 1;
8009
8010  ;
8011  return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_run "$LINENO"
8015then :
8016  ac_cv_c_bigendian=no
8017else $as_nop
8018  ac_cv_c_bigendian=yes
8019fi
8020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8021  conftest.$ac_objext conftest.beam conftest.$ac_ext
8022fi
8023
8024    fi
8025fi
8026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8027printf "%s\n" "$ac_cv_c_bigendian" >&6; }
8028 case $ac_cv_c_bigendian in #(
8029   yes)
8030     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
8031;; #(
8032   no)
8033      ;; #(
8034   universal)
8035
8036printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8037
8038     ;; #(
8039   *)
8040     as_fn_error $? "unknown endianness
8041 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8042 esac
8043
8044
8045#
8046# Enable large file support
8047#
8048# Check whether --enable-largefile was given.
8049if test ${enable_largefile+y}
8050then :
8051  enableval=$enable_largefile;
8052fi
8053
8054if test "$enable_largefile" != no; then
8055
8056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8057printf %s "checking for special C compiler options needed for large files... " >&6; }
8058if test ${ac_cv_sys_largefile_CC+y}
8059then :
8060  printf %s "(cached) " >&6
8061else $as_nop
8062  ac_cv_sys_largefile_CC=no
8063     if test "$GCC" != yes; then
8064       ac_save_CC=$CC
8065       while :; do
8066	 # IRIX 6.2 and later do not support large files by default,
8067	 # so use the C compiler's -n32 option if that helps.
8068	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069/* end confdefs.h.  */
8070#include <sys/types.h>
8071 /* Check that off_t can represent 2**63 - 1 correctly.
8072    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8073    since some C++ compilers masquerading as C compilers
8074    incorrectly reject 9223372036854775807.  */
8075#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8076  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8077		       && LARGE_OFF_T % 2147483647 == 1)
8078		      ? 1 : -1];
8079int
8080main (void)
8081{
8082
8083  ;
8084  return 0;
8085}
8086_ACEOF
8087	 if ac_fn_c_try_compile "$LINENO"
8088then :
8089  break
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.beam
8092	 CC="$CC -n32"
8093	 if ac_fn_c_try_compile "$LINENO"
8094then :
8095  ac_cv_sys_largefile_CC=' -n32'; break
8096fi
8097rm -f core conftest.err conftest.$ac_objext conftest.beam
8098	 break
8099       done
8100       CC=$ac_save_CC
8101       rm -f conftest.$ac_ext
8102    fi
8103fi
8104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8105printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8106  if test "$ac_cv_sys_largefile_CC" != no; then
8107    CC=$CC$ac_cv_sys_largefile_CC
8108  fi
8109
8110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8111printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8112if test ${ac_cv_sys_file_offset_bits+y}
8113then :
8114  printf %s "(cached) " >&6
8115else $as_nop
8116  while :; do
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119#include <sys/types.h>
8120 /* Check that off_t can represent 2**63 - 1 correctly.
8121    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8122    since some C++ compilers masquerading as C compilers
8123    incorrectly reject 9223372036854775807.  */
8124#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8125  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8126		       && LARGE_OFF_T % 2147483647 == 1)
8127		      ? 1 : -1];
8128int
8129main (void)
8130{
8131
8132  ;
8133  return 0;
8134}
8135_ACEOF
8136if ac_fn_c_try_compile "$LINENO"
8137then :
8138  ac_cv_sys_file_offset_bits=no; break
8139fi
8140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143#define _FILE_OFFSET_BITS 64
8144#include <sys/types.h>
8145 /* Check that off_t can represent 2**63 - 1 correctly.
8146    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8147    since some C++ compilers masquerading as C compilers
8148    incorrectly reject 9223372036854775807.  */
8149#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8150  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8151		       && LARGE_OFF_T % 2147483647 == 1)
8152		      ? 1 : -1];
8153int
8154main (void)
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_compile "$LINENO"
8162then :
8163  ac_cv_sys_file_offset_bits=64; break
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8166  ac_cv_sys_file_offset_bits=unknown
8167  break
8168done
8169fi
8170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8171printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8172case $ac_cv_sys_file_offset_bits in #(
8173  no | unknown) ;;
8174  *)
8175printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8176;;
8177esac
8178rm -rf conftest*
8179  if test $ac_cv_sys_file_offset_bits = unknown; then
8180    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8181printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8182if test ${ac_cv_sys_large_files+y}
8183then :
8184  printf %s "(cached) " >&6
8185else $as_nop
8186  while :; do
8187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188/* end confdefs.h.  */
8189#include <sys/types.h>
8190 /* Check that off_t can represent 2**63 - 1 correctly.
8191    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8192    since some C++ compilers masquerading as C compilers
8193    incorrectly reject 9223372036854775807.  */
8194#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8195  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8196		       && LARGE_OFF_T % 2147483647 == 1)
8197		      ? 1 : -1];
8198int
8199main (void)
8200{
8201
8202  ;
8203  return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  ac_cv_sys_large_files=no; break
8209fi
8210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h.  */
8213#define _LARGE_FILES 1
8214#include <sys/types.h>
8215 /* Check that off_t can represent 2**63 - 1 correctly.
8216    We can't simply define LARGE_OFF_T to be 9223372036854775807,
8217    since some C++ compilers masquerading as C compilers
8218    incorrectly reject 9223372036854775807.  */
8219#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8220  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8221		       && LARGE_OFF_T % 2147483647 == 1)
8222		      ? 1 : -1];
8223int
8224main (void)
8225{
8226
8227  ;
8228  return 0;
8229}
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"
8232then :
8233  ac_cv_sys_large_files=1; break
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8236  ac_cv_sys_large_files=unknown
8237  break
8238done
8239fi
8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8241printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8242case $ac_cv_sys_large_files in #(
8243  no | unknown) ;;
8244  *)
8245printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8246;;
8247esac
8248rm -rf conftest*
8249  fi
8250fi
8251
8252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8253printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8254if test ${ac_cv_sys_largefile_source+y}
8255then :
8256  printf %s "(cached) " >&6
8257else $as_nop
8258  while :; do
8259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261#include <sys/types.h> /* for off_t */
8262     #include <stdio.h>
8263int
8264main (void)
8265{
8266int (*fp) (FILE *, off_t, int) = fseeko;
8267     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"
8273then :
8274  ac_cv_sys_largefile_source=no; break
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.beam \
8277    conftest$ac_exeext conftest.$ac_ext
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280#define _LARGEFILE_SOURCE 1
8281#include <sys/types.h> /* for off_t */
8282     #include <stdio.h>
8283int
8284main (void)
8285{
8286int (*fp) (FILE *, off_t, int) = fseeko;
8287     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_link "$LINENO"
8293then :
8294  ac_cv_sys_largefile_source=1; break
8295fi
8296rm -f core conftest.err conftest.$ac_objext conftest.beam \
8297    conftest$ac_exeext conftest.$ac_ext
8298  ac_cv_sys_largefile_source=unknown
8299  break
8300done
8301fi
8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8303printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
8304case $ac_cv_sys_largefile_source in #(
8305  no | unknown) ;;
8306  *)
8307printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
8308;;
8309esac
8310rm -rf conftest*
8311
8312# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8313# in glibc 2.1.3, but that breaks too many other things.
8314# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8315if test $ac_cv_sys_largefile_source != unknown; then
8316
8317printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
8318
8319fi
8320
8321
8322# Enable RFC 3542 APIs on macOS
8323
8324printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
8325
8326
8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8328printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8329set x ${MAKE-make}
8330ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8331if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8332then :
8333  printf %s "(cached) " >&6
8334else $as_nop
8335  cat >conftest.make <<\_ACEOF
8336SHELL = /bin/sh
8337all:
8338	@echo '@@@%%%=$(MAKE)=@@@%%%'
8339_ACEOF
8340# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8341case `${MAKE-make} -f conftest.make 2>/dev/null` in
8342  *@@@%%%=?*=@@@%%%*)
8343    eval ac_cv_prog_make_${ac_make}_set=yes;;
8344  *)
8345    eval ac_cv_prog_make_${ac_make}_set=no;;
8346esac
8347rm -f conftest.make
8348fi
8349if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8351printf "%s\n" "yes" >&6; }
8352  SET_MAKE=
8353else
8354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355printf "%s\n" "no" >&6; }
8356  SET_MAKE="MAKE=${MAKE-make}"
8357fi
8358
8359
8360# Checks for programs.
8361
8362  if test -n "$ac_tool_prefix"; then
8363  for ac_prog in ar lib "link -lib"
8364  do
8365    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8366set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368printf %s "checking for $ac_word... " >&6; }
8369if test ${ac_cv_prog_AR+y}
8370then :
8371  printf %s "(cached) " >&6
8372else $as_nop
8373  if test -n "$AR"; then
8374  ac_cv_prog_AR="$AR" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379  IFS=$as_save_IFS
8380  case $as_dir in #(((
8381    '') as_dir=./ ;;
8382    */) ;;
8383    *) as_dir=$as_dir/ ;;
8384  esac
8385    for ac_exec_ext in '' $ac_executable_extensions; do
8386  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8388    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389    break 2
8390  fi
8391done
8392  done
8393IFS=$as_save_IFS
8394
8395fi
8396fi
8397AR=$ac_cv_prog_AR
8398if test -n "$AR"; then
8399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8400printf "%s\n" "$AR" >&6; }
8401else
8402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403printf "%s\n" "no" >&6; }
8404fi
8405
8406
8407    test -n "$AR" && break
8408  done
8409fi
8410if test -z "$AR"; then
8411  ac_ct_AR=$AR
8412  for ac_prog in ar lib "link -lib"
8413do
8414  # Extract the first word of "$ac_prog", so it can be a program name with args.
8415set dummy $ac_prog; ac_word=$2
8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417printf %s "checking for $ac_word... " >&6; }
8418if test ${ac_cv_prog_ac_ct_AR+y}
8419then :
8420  printf %s "(cached) " >&6
8421else $as_nop
8422  if test -n "$ac_ct_AR"; then
8423  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8424else
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428  IFS=$as_save_IFS
8429  case $as_dir in #(((
8430    '') as_dir=./ ;;
8431    */) ;;
8432    *) as_dir=$as_dir/ ;;
8433  esac
8434    for ac_exec_ext in '' $ac_executable_extensions; do
8435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8436    ac_cv_prog_ac_ct_AR="$ac_prog"
8437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441  done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446ac_ct_AR=$ac_cv_prog_ac_ct_AR
8447if test -n "$ac_ct_AR"; then
8448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8449printf "%s\n" "$ac_ct_AR" >&6; }
8450else
8451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452printf "%s\n" "no" >&6; }
8453fi
8454
8455
8456  test -n "$ac_ct_AR" && break
8457done
8458
8459  if test "x$ac_ct_AR" = x; then
8460    AR="false"
8461  else
8462    case $cross_compiling:$ac_tool_warned in
8463yes:)
8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8465printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8466ac_tool_warned=yes ;;
8467esac
8468    AR=$ac_ct_AR
8469  fi
8470fi
8471
8472: ${AR=ar}
8473
8474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8475printf %s "checking the archiver ($AR) interface... " >&6; }
8476if test ${am_cv_ar_interface+y}
8477then :
8478  printf %s "(cached) " >&6
8479else $as_nop
8480  ac_ext=c
8481ac_cpp='$CPP $CPPFLAGS'
8482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8484ac_compiler_gnu=$ac_cv_c_compiler_gnu
8485
8486   am_cv_ar_interface=ar
8487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488/* end confdefs.h.  */
8489int some_variable = 0;
8490_ACEOF
8491if ac_fn_c_try_compile "$LINENO"
8492then :
8493  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8494      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8495  (eval $am_ar_try) 2>&5
8496  ac_status=$?
8497  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498  test $ac_status = 0; }
8499      if test "$ac_status" -eq 0; then
8500        am_cv_ar_interface=ar
8501      else
8502        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8503        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8504  (eval $am_ar_try) 2>&5
8505  ac_status=$?
8506  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8507  test $ac_status = 0; }
8508        if test "$ac_status" -eq 0; then
8509          am_cv_ar_interface=lib
8510        else
8511          am_cv_ar_interface=unknown
8512        fi
8513      fi
8514      rm -f conftest.lib libconftest.a
8515
8516fi
8517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8518   ac_ext=c
8519ac_cpp='$CPP $CPPFLAGS'
8520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524fi
8525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8526printf "%s\n" "$am_cv_ar_interface" >&6; }
8527
8528case $am_cv_ar_interface in
8529ar)
8530  ;;
8531lib)
8532  # Microsoft lib, so override with the ar-lib wrapper script.
8533  # FIXME: It is wrong to rewrite AR.
8534  # But if we don't then we get into trouble of one sort or another.
8535  # A longer-term fix would be to have automake use am__AR in this case,
8536  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8537  # similar.
8538  AR="$am_aux_dir/ar-lib $AR"
8539  ;;
8540unknown)
8541  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8542  ;;
8543esac
8544 # call AM_PROG_AR only if available
8545
8546
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8548printf %s "checking whether ln -s works... " >&6; }
8549LN_S=$as_ln_s
8550if test "$LN_S" = "ln -s"; then
8551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552printf "%s\n" "yes" >&6; }
8553else
8554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8555printf "%s\n" "no, using $LN_S" >&6; }
8556fi
8557
8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
8559printf %s "checking for a POSIX-compatible shell... " >&6; }
8560if test ${ac_cv_prog_shell+y}
8561then :
8562  printf %s "(cached) " >&6
8563else $as_nop
8564  ac_test_shell_script='
8565			  test "$(expr 1 + 1)" = "2" &&
8566			  test "$(( 1 + 1 ))" = "2"
8567			  '
8568
8569			  for ac_cv_prog_shell in \
8570			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
8571			    case $ac_cv_prog_shell in #(
8572  /*) :
8573
8574				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null
8575then :
8576  break
8577fi
8578				     ;; #(
8579  *) :
8580     ;;
8581esac
8582			  done
8583
8584fi
8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
8586printf "%s\n" "$ac_cv_prog_shell" >&6; }
8587	  if test "$ac_cv_prog_shell" = "no"
8588then :
8589  SHELL=/bin/sh
8590		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
8591printf "%s\n" "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
8592
8593else $as_nop
8594  SHELL="$ac_cv_prog_shell"
8595
8596fi
8597
8598
8599
8600
8601# Initialize libtool
8602case `pwd` in
8603  *\ * | *\	*)
8604    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8605printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8606esac
8607
8608
8609
8610macro_version='2.4.7'
8611macro_revision='2.4.7'
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626ltmain=$ac_aux_dir/ltmain.sh
8627
8628# Backslashify metacharacters that are still active within
8629# double-quoted strings.
8630sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8631
8632# Same as above, but do not quote variable references.
8633double_quote_subst='s/\(["`\\]\)/\\\1/g'
8634
8635# Sed substitution to delay expansion of an escaped shell variable in a
8636# double_quote_subst'ed string.
8637delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8638
8639# Sed substitution to delay expansion of an escaped single quote.
8640delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8641
8642# Sed substitution to avoid accidental globbing in evaled expressions
8643no_glob_subst='s/\*/\\\*/g'
8644
8645ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8646ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8647ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8648
8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8650printf %s "checking how to print strings... " >&6; }
8651# Test print first, because it will be a builtin if present.
8652if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8653   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8654  ECHO='print -r --'
8655elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8656  ECHO='printf %s\n'
8657else
8658  # Use this function as a fallback that always works.
8659  func_fallback_echo ()
8660  {
8661    eval 'cat <<_LTECHO_EOF
8662$1
8663_LTECHO_EOF'
8664  }
8665  ECHO='func_fallback_echo'
8666fi
8667
8668# func_echo_all arg...
8669# Invoke $ECHO with all args, space-separated.
8670func_echo_all ()
8671{
8672    $ECHO ""
8673}
8674
8675case $ECHO in
8676  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8677printf "%s\n" "printf" >&6; } ;;
8678  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8679printf "%s\n" "print -r" >&6; } ;;
8680  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8681printf "%s\n" "cat" >&6; } ;;
8682esac
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8698printf %s "checking for a sed that does not truncate output... " >&6; }
8699if test ${ac_cv_path_SED+y}
8700then :
8701  printf %s "(cached) " >&6
8702else $as_nop
8703            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8704     for ac_i in 1 2 3 4 5 6 7; do
8705       ac_script="$ac_script$as_nl$ac_script"
8706     done
8707     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8708     { ac_script=; unset ac_script;}
8709     if test -z "$SED"; then
8710  ac_path_SED_found=false
8711  # Loop through the user's path and test for each of PROGNAME-LIST
8712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  case $as_dir in #(((
8717    '') as_dir=./ ;;
8718    */) ;;
8719    *) as_dir=$as_dir/ ;;
8720  esac
8721    for ac_prog in sed gsed
8722   do
8723    for ac_exec_ext in '' $ac_executable_extensions; do
8724      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8725      as_fn_executable_p "$ac_path_SED" || continue
8726# Check for GNU ac_path_SED and select it if it is found.
8727  # Check for GNU $ac_path_SED
8728case `"$ac_path_SED" --version 2>&1` in
8729*GNU*)
8730  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8731*)
8732  ac_count=0
8733  printf %s 0123456789 >"conftest.in"
8734  while :
8735  do
8736    cat "conftest.in" "conftest.in" >"conftest.tmp"
8737    mv "conftest.tmp" "conftest.in"
8738    cp "conftest.in" "conftest.nl"
8739    printf "%s\n" '' >> "conftest.nl"
8740    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8742    as_fn_arith $ac_count + 1 && ac_count=$as_val
8743    if test $ac_count -gt ${ac_path_SED_max-0}; then
8744      # Best one so far, save it but keep looking for a better one
8745      ac_cv_path_SED="$ac_path_SED"
8746      ac_path_SED_max=$ac_count
8747    fi
8748    # 10*(2^10) chars as input seems more than enough
8749    test $ac_count -gt 10 && break
8750  done
8751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8752esac
8753
8754      $ac_path_SED_found && break 3
8755    done
8756  done
8757  done
8758IFS=$as_save_IFS
8759  if test -z "$ac_cv_path_SED"; then
8760    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8761  fi
8762else
8763  ac_cv_path_SED=$SED
8764fi
8765
8766fi
8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8768printf "%s\n" "$ac_cv_path_SED" >&6; }
8769 SED="$ac_cv_path_SED"
8770  rm -f conftest.sed
8771
8772test -z "$SED" && SED=sed
8773Xsed="$SED -e 1s/^X//"
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8786printf %s "checking for grep that handles long lines and -e... " >&6; }
8787if test ${ac_cv_path_GREP+y}
8788then :
8789  printf %s "(cached) " >&6
8790else $as_nop
8791  if test -z "$GREP"; then
8792  ac_path_GREP_found=false
8793  # Loop through the user's path and test for each of PROGNAME-LIST
8794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8796do
8797  IFS=$as_save_IFS
8798  case $as_dir in #(((
8799    '') as_dir=./ ;;
8800    */) ;;
8801    *) as_dir=$as_dir/ ;;
8802  esac
8803    for ac_prog in grep ggrep
8804   do
8805    for ac_exec_ext in '' $ac_executable_extensions; do
8806      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8807      as_fn_executable_p "$ac_path_GREP" || continue
8808# Check for GNU ac_path_GREP and select it if it is found.
8809  # Check for GNU $ac_path_GREP
8810case `"$ac_path_GREP" --version 2>&1` in
8811*GNU*)
8812  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8813*)
8814  ac_count=0
8815  printf %s 0123456789 >"conftest.in"
8816  while :
8817  do
8818    cat "conftest.in" "conftest.in" >"conftest.tmp"
8819    mv "conftest.tmp" "conftest.in"
8820    cp "conftest.in" "conftest.nl"
8821    printf "%s\n" 'GREP' >> "conftest.nl"
8822    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8824    as_fn_arith $ac_count + 1 && ac_count=$as_val
8825    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8826      # Best one so far, save it but keep looking for a better one
8827      ac_cv_path_GREP="$ac_path_GREP"
8828      ac_path_GREP_max=$ac_count
8829    fi
8830    # 10*(2^10) chars as input seems more than enough
8831    test $ac_count -gt 10 && break
8832  done
8833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8834esac
8835
8836      $ac_path_GREP_found && break 3
8837    done
8838  done
8839  done
8840IFS=$as_save_IFS
8841  if test -z "$ac_cv_path_GREP"; then
8842    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8843  fi
8844else
8845  ac_cv_path_GREP=$GREP
8846fi
8847
8848fi
8849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8850printf "%s\n" "$ac_cv_path_GREP" >&6; }
8851 GREP="$ac_cv_path_GREP"
8852
8853
8854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8855printf %s "checking for egrep... " >&6; }
8856if test ${ac_cv_path_EGREP+y}
8857then :
8858  printf %s "(cached) " >&6
8859else $as_nop
8860  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8861   then ac_cv_path_EGREP="$GREP -E"
8862   else
8863     if test -z "$EGREP"; then
8864  ac_path_EGREP_found=false
8865  # Loop through the user's path and test for each of PROGNAME-LIST
8866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8868do
8869  IFS=$as_save_IFS
8870  case $as_dir in #(((
8871    '') as_dir=./ ;;
8872    */) ;;
8873    *) as_dir=$as_dir/ ;;
8874  esac
8875    for ac_prog in egrep
8876   do
8877    for ac_exec_ext in '' $ac_executable_extensions; do
8878      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8879      as_fn_executable_p "$ac_path_EGREP" || continue
8880# Check for GNU ac_path_EGREP and select it if it is found.
8881  # Check for GNU $ac_path_EGREP
8882case `"$ac_path_EGREP" --version 2>&1` in
8883*GNU*)
8884  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8885*)
8886  ac_count=0
8887  printf %s 0123456789 >"conftest.in"
8888  while :
8889  do
8890    cat "conftest.in" "conftest.in" >"conftest.tmp"
8891    mv "conftest.tmp" "conftest.in"
8892    cp "conftest.in" "conftest.nl"
8893    printf "%s\n" 'EGREP' >> "conftest.nl"
8894    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8895    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8896    as_fn_arith $ac_count + 1 && ac_count=$as_val
8897    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8898      # Best one so far, save it but keep looking for a better one
8899      ac_cv_path_EGREP="$ac_path_EGREP"
8900      ac_path_EGREP_max=$ac_count
8901    fi
8902    # 10*(2^10) chars as input seems more than enough
8903    test $ac_count -gt 10 && break
8904  done
8905  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8906esac
8907
8908      $ac_path_EGREP_found && break 3
8909    done
8910  done
8911  done
8912IFS=$as_save_IFS
8913  if test -z "$ac_cv_path_EGREP"; then
8914    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8915  fi
8916else
8917  ac_cv_path_EGREP=$EGREP
8918fi
8919
8920   fi
8921fi
8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8923printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8924 EGREP="$ac_cv_path_EGREP"
8925
8926
8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8928printf %s "checking for fgrep... " >&6; }
8929if test ${ac_cv_path_FGREP+y}
8930then :
8931  printf %s "(cached) " >&6
8932else $as_nop
8933  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8934   then ac_cv_path_FGREP="$GREP -F"
8935   else
8936     if test -z "$FGREP"; then
8937  ac_path_FGREP_found=false
8938  # Loop through the user's path and test for each of PROGNAME-LIST
8939  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8941do
8942  IFS=$as_save_IFS
8943  case $as_dir in #(((
8944    '') as_dir=./ ;;
8945    */) ;;
8946    *) as_dir=$as_dir/ ;;
8947  esac
8948    for ac_prog in fgrep
8949   do
8950    for ac_exec_ext in '' $ac_executable_extensions; do
8951      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8952      as_fn_executable_p "$ac_path_FGREP" || continue
8953# Check for GNU ac_path_FGREP and select it if it is found.
8954  # Check for GNU $ac_path_FGREP
8955case `"$ac_path_FGREP" --version 2>&1` in
8956*GNU*)
8957  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8958*)
8959  ac_count=0
8960  printf %s 0123456789 >"conftest.in"
8961  while :
8962  do
8963    cat "conftest.in" "conftest.in" >"conftest.tmp"
8964    mv "conftest.tmp" "conftest.in"
8965    cp "conftest.in" "conftest.nl"
8966    printf "%s\n" 'FGREP' >> "conftest.nl"
8967    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8968    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8969    as_fn_arith $ac_count + 1 && ac_count=$as_val
8970    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8971      # Best one so far, save it but keep looking for a better one
8972      ac_cv_path_FGREP="$ac_path_FGREP"
8973      ac_path_FGREP_max=$ac_count
8974    fi
8975    # 10*(2^10) chars as input seems more than enough
8976    test $ac_count -gt 10 && break
8977  done
8978  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8979esac
8980
8981      $ac_path_FGREP_found && break 3
8982    done
8983  done
8984  done
8985IFS=$as_save_IFS
8986  if test -z "$ac_cv_path_FGREP"; then
8987    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8988  fi
8989else
8990  ac_cv_path_FGREP=$FGREP
8991fi
8992
8993   fi
8994fi
8995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8996printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8997 FGREP="$ac_cv_path_FGREP"
8998
8999
9000test -z "$GREP" && GREP=grep
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020# Check whether --with-gnu-ld was given.
9021if test ${with_gnu_ld+y}
9022then :
9023  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9024else $as_nop
9025  with_gnu_ld=no
9026fi
9027
9028ac_prog=ld
9029if test yes = "$GCC"; then
9030  # Check if gcc -print-prog-name=ld gives a path.
9031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9032printf %s "checking for ld used by $CC... " >&6; }
9033  case $host in
9034  *-*-mingw*)
9035    # gcc leaves a trailing carriage return, which upsets mingw
9036    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9037  *)
9038    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9039  esac
9040  case $ac_prog in
9041    # Accept absolute paths.
9042    [\\/]* | ?:[\\/]*)
9043      re_direlt='/[^/][^/]*/\.\./'
9044      # Canonicalize the pathname of ld
9045      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9046      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9047	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9048      done
9049      test -z "$LD" && LD=$ac_prog
9050      ;;
9051  "")
9052    # If it fails, then pretend we aren't using GCC.
9053    ac_prog=ld
9054    ;;
9055  *)
9056    # If it is relative, then search for the first ld in PATH.
9057    with_gnu_ld=unknown
9058    ;;
9059  esac
9060elif test yes = "$with_gnu_ld"; then
9061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9062printf %s "checking for GNU ld... " >&6; }
9063else
9064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9065printf %s "checking for non-GNU ld... " >&6; }
9066fi
9067if test ${lt_cv_path_LD+y}
9068then :
9069  printf %s "(cached) " >&6
9070else $as_nop
9071  if test -z "$LD"; then
9072  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9073  for ac_dir in $PATH; do
9074    IFS=$lt_save_ifs
9075    test -z "$ac_dir" && ac_dir=.
9076    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9077      lt_cv_path_LD=$ac_dir/$ac_prog
9078      # Check to see if the program is GNU ld.  I'd rather use --version,
9079      # but apparently some variants of GNU ld only accept -v.
9080      # Break only if it was the GNU/non-GNU ld that we prefer.
9081      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9082      *GNU* | *'with BFD'*)
9083	test no != "$with_gnu_ld" && break
9084	;;
9085      *)
9086	test yes != "$with_gnu_ld" && break
9087	;;
9088      esac
9089    fi
9090  done
9091  IFS=$lt_save_ifs
9092else
9093  lt_cv_path_LD=$LD # Let the user override the test with a path.
9094fi
9095fi
9096
9097LD=$lt_cv_path_LD
9098if test -n "$LD"; then
9099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9100printf "%s\n" "$LD" >&6; }
9101else
9102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103printf "%s\n" "no" >&6; }
9104fi
9105test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9107printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9108if test ${lt_cv_prog_gnu_ld+y}
9109then :
9110  printf %s "(cached) " >&6
9111else $as_nop
9112  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9113case `$LD -v 2>&1 </dev/null` in
9114*GNU* | *'with BFD'*)
9115  lt_cv_prog_gnu_ld=yes
9116  ;;
9117*)
9118  lt_cv_prog_gnu_ld=no
9119  ;;
9120esac
9121fi
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9123printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9124with_gnu_ld=$lt_cv_prog_gnu_ld
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9135printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9136if test ${lt_cv_path_NM+y}
9137then :
9138  printf %s "(cached) " >&6
9139else $as_nop
9140  if test -n "$NM"; then
9141  # Let the user override the test.
9142  lt_cv_path_NM=$NM
9143else
9144  lt_nm_to_check=${ac_tool_prefix}nm
9145  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9146    lt_nm_to_check="$lt_nm_to_check nm"
9147  fi
9148  for lt_tmp_nm in $lt_nm_to_check; do
9149    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9150    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9151      IFS=$lt_save_ifs
9152      test -z "$ac_dir" && ac_dir=.
9153      tmp_nm=$ac_dir/$lt_tmp_nm
9154      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9155	# Check to see if the nm accepts a BSD-compat flag.
9156	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9157	#   nm: unknown option "B" ignored
9158	# Tru64's nm complains that /dev/null is an invalid object file
9159	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9160	case $build_os in
9161	mingw*) lt_bad_file=conftest.nm/nofile ;;
9162	*) lt_bad_file=/dev/null ;;
9163	esac
9164	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9165	*$lt_bad_file* | *'Invalid file or object type'*)
9166	  lt_cv_path_NM="$tmp_nm -B"
9167	  break 2
9168	  ;;
9169	*)
9170	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9171	  */dev/null*)
9172	    lt_cv_path_NM="$tmp_nm -p"
9173	    break 2
9174	    ;;
9175	  *)
9176	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9177	    continue # so that we can try to find one that supports BSD flags
9178	    ;;
9179	  esac
9180	  ;;
9181	esac
9182      fi
9183    done
9184    IFS=$lt_save_ifs
9185  done
9186  : ${lt_cv_path_NM=no}
9187fi
9188fi
9189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9190printf "%s\n" "$lt_cv_path_NM" >&6; }
9191if test no != "$lt_cv_path_NM"; then
9192  NM=$lt_cv_path_NM
9193else
9194  # Didn't find any BSD compatible name lister, look for dumpbin.
9195  if test -n "$DUMPBIN"; then :
9196    # Let the user override the test.
9197  else
9198    if test -n "$ac_tool_prefix"; then
9199  for ac_prog in dumpbin "link -dump"
9200  do
9201    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9202set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204printf %s "checking for $ac_word... " >&6; }
9205if test ${ac_cv_prog_DUMPBIN+y}
9206then :
9207  printf %s "(cached) " >&6
9208else $as_nop
9209  if test -n "$DUMPBIN"; then
9210  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9211else
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215  IFS=$as_save_IFS
9216  case $as_dir in #(((
9217    '') as_dir=./ ;;
9218    */) ;;
9219    *) as_dir=$as_dir/ ;;
9220  esac
9221    for ac_exec_ext in '' $ac_executable_extensions; do
9222  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9223    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9224    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9225    break 2
9226  fi
9227done
9228  done
9229IFS=$as_save_IFS
9230
9231fi
9232fi
9233DUMPBIN=$ac_cv_prog_DUMPBIN
9234if test -n "$DUMPBIN"; then
9235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9236printf "%s\n" "$DUMPBIN" >&6; }
9237else
9238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239printf "%s\n" "no" >&6; }
9240fi
9241
9242
9243    test -n "$DUMPBIN" && break
9244  done
9245fi
9246if test -z "$DUMPBIN"; then
9247  ac_ct_DUMPBIN=$DUMPBIN
9248  for ac_prog in dumpbin "link -dump"
9249do
9250  # Extract the first word of "$ac_prog", so it can be a program name with args.
9251set dummy $ac_prog; ac_word=$2
9252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253printf %s "checking for $ac_word... " >&6; }
9254if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9255then :
9256  printf %s "(cached) " >&6
9257else $as_nop
9258  if test -n "$ac_ct_DUMPBIN"; then
9259  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9260else
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264  IFS=$as_save_IFS
9265  case $as_dir in #(((
9266    '') as_dir=./ ;;
9267    */) ;;
9268    *) as_dir=$as_dir/ ;;
9269  esac
9270    for ac_exec_ext in '' $ac_executable_extensions; do
9271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9272    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9274    break 2
9275  fi
9276done
9277  done
9278IFS=$as_save_IFS
9279
9280fi
9281fi
9282ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9283if test -n "$ac_ct_DUMPBIN"; then
9284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9285printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9286else
9287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288printf "%s\n" "no" >&6; }
9289fi
9290
9291
9292  test -n "$ac_ct_DUMPBIN" && break
9293done
9294
9295  if test "x$ac_ct_DUMPBIN" = x; then
9296    DUMPBIN=":"
9297  else
9298    case $cross_compiling:$ac_tool_warned in
9299yes:)
9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9302ac_tool_warned=yes ;;
9303esac
9304    DUMPBIN=$ac_ct_DUMPBIN
9305  fi
9306fi
9307
9308    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9309    *COFF*)
9310      DUMPBIN="$DUMPBIN -symbols -headers"
9311      ;;
9312    *)
9313      DUMPBIN=:
9314      ;;
9315    esac
9316  fi
9317
9318  if test : != "$DUMPBIN"; then
9319    NM=$DUMPBIN
9320  fi
9321fi
9322test -z "$NM" && NM=nm
9323
9324
9325
9326
9327
9328
9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9330printf %s "checking the name lister ($NM) interface... " >&6; }
9331if test ${lt_cv_nm_interface+y}
9332then :
9333  printf %s "(cached) " >&6
9334else $as_nop
9335  lt_cv_nm_interface="BSD nm"
9336  echo "int some_variable = 0;" > conftest.$ac_ext
9337  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9338  (eval "$ac_compile" 2>conftest.err)
9339  cat conftest.err >&5
9340  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9341  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9342  cat conftest.err >&5
9343  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9344  cat conftest.out >&5
9345  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9346    lt_cv_nm_interface="MS dumpbin"
9347  fi
9348  rm -f conftest*
9349fi
9350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9351printf "%s\n" "$lt_cv_nm_interface" >&6; }
9352
9353# find the maximum length of command line arguments
9354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9355printf %s "checking the maximum length of command line arguments... " >&6; }
9356if test ${lt_cv_sys_max_cmd_len+y}
9357then :
9358  printf %s "(cached) " >&6
9359else $as_nop
9360    i=0
9361  teststring=ABCD
9362
9363  case $build_os in
9364  msdosdjgpp*)
9365    # On DJGPP, this test can blow up pretty badly due to problems in libc
9366    # (any single argument exceeding 2000 bytes causes a buffer overrun
9367    # during glob expansion).  Even if it were fixed, the result of this
9368    # check would be larger than it should be.
9369    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9370    ;;
9371
9372  gnu*)
9373    # Under GNU Hurd, this test is not required because there is
9374    # no limit to the length of command line arguments.
9375    # Libtool will interpret -1 as no limit whatsoever
9376    lt_cv_sys_max_cmd_len=-1;
9377    ;;
9378
9379  cygwin* | mingw* | cegcc*)
9380    # On Win9x/ME, this test blows up -- it succeeds, but takes
9381    # about 5 minutes as the teststring grows exponentially.
9382    # Worse, since 9x/ME are not pre-emptively multitasking,
9383    # you end up with a "frozen" computer, even though with patience
9384    # the test eventually succeeds (with a max line length of 256k).
9385    # Instead, let's just punt: use the minimum linelength reported by
9386    # all of the supported platforms: 8192 (on NT/2K/XP).
9387    lt_cv_sys_max_cmd_len=8192;
9388    ;;
9389
9390  mint*)
9391    # On MiNT this can take a long time and run out of memory.
9392    lt_cv_sys_max_cmd_len=8192;
9393    ;;
9394
9395  amigaos*)
9396    # On AmigaOS with pdksh, this test takes hours, literally.
9397    # So we just punt and use a minimum line length of 8192.
9398    lt_cv_sys_max_cmd_len=8192;
9399    ;;
9400
9401  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9402    # This has been around since 386BSD, at least.  Likely further.
9403    if test -x /sbin/sysctl; then
9404      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9405    elif test -x /usr/sbin/sysctl; then
9406      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9407    else
9408      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9409    fi
9410    # And add a safety zone
9411    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9412    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9413    ;;
9414
9415  interix*)
9416    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9417    lt_cv_sys_max_cmd_len=196608
9418    ;;
9419
9420  os2*)
9421    # The test takes a long time on OS/2.
9422    lt_cv_sys_max_cmd_len=8192
9423    ;;
9424
9425  osf*)
9426    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9427    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9428    # nice to cause kernel panics so lets avoid the loop below.
9429    # First set a reasonable default.
9430    lt_cv_sys_max_cmd_len=16384
9431    #
9432    if test -x /sbin/sysconfig; then
9433      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9434        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9435      esac
9436    fi
9437    ;;
9438  sco3.2v5*)
9439    lt_cv_sys_max_cmd_len=102400
9440    ;;
9441  sysv5* | sco5v6* | sysv4.2uw2*)
9442    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9443    if test -n "$kargmax"; then
9444      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
9445    else
9446      lt_cv_sys_max_cmd_len=32768
9447    fi
9448    ;;
9449  *)
9450    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9451    if test -n "$lt_cv_sys_max_cmd_len" && \
9452       test undefined != "$lt_cv_sys_max_cmd_len"; then
9453      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9454      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9455    else
9456      # Make teststring a little bigger before we do anything with it.
9457      # a 1K string should be a reasonable start.
9458      for i in 1 2 3 4 5 6 7 8; do
9459        teststring=$teststring$teststring
9460      done
9461      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9462      # If test is not a shell built-in, we'll probably end up computing a
9463      # maximum length that is only half of the actual maximum length, but
9464      # we can't tell.
9465      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9466	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9467	      test 17 != "$i" # 1/2 MB should be enough
9468      do
9469        i=`expr $i + 1`
9470        teststring=$teststring$teststring
9471      done
9472      # Only check the string length outside the loop.
9473      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9474      teststring=
9475      # Add a significant safety factor because C++ compilers can tack on
9476      # massive amounts of additional arguments before passing them to the
9477      # linker.  It appears as though 1/2 is a usable value.
9478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9479    fi
9480    ;;
9481  esac
9482
9483fi
9484
9485if test -n "$lt_cv_sys_max_cmd_len"; then
9486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9487printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9488else
9489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9490printf "%s\n" "none" >&6; }
9491fi
9492max_cmd_len=$lt_cv_sys_max_cmd_len
9493
9494
9495
9496
9497
9498
9499: ${CP="cp -f"}
9500: ${MV="mv -f"}
9501: ${RM="rm -f"}
9502
9503if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9504  lt_unset=unset
9505else
9506  lt_unset=false
9507fi
9508
9509
9510
9511
9512
9513# test EBCDIC or ASCII
9514case `echo X|tr X '\101'` in
9515 A) # ASCII based system
9516    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9517  lt_SP2NL='tr \040 \012'
9518  lt_NL2SP='tr \015\012 \040\040'
9519  ;;
9520 *) # EBCDIC based system
9521  lt_SP2NL='tr \100 \n'
9522  lt_NL2SP='tr \r\n \100\100'
9523  ;;
9524esac
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9535printf %s "checking how to convert $build file names to $host format... " >&6; }
9536if test ${lt_cv_to_host_file_cmd+y}
9537then :
9538  printf %s "(cached) " >&6
9539else $as_nop
9540  case $host in
9541  *-*-mingw* )
9542    case $build in
9543      *-*-mingw* ) # actually msys
9544        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9545        ;;
9546      *-*-cygwin* )
9547        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9548        ;;
9549      * ) # otherwise, assume *nix
9550        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9551        ;;
9552    esac
9553    ;;
9554  *-*-cygwin* )
9555    case $build in
9556      *-*-mingw* ) # actually msys
9557        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9558        ;;
9559      *-*-cygwin* )
9560        lt_cv_to_host_file_cmd=func_convert_file_noop
9561        ;;
9562      * ) # otherwise, assume *nix
9563        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9564        ;;
9565    esac
9566    ;;
9567  * ) # unhandled hosts (and "normal" native builds)
9568    lt_cv_to_host_file_cmd=func_convert_file_noop
9569    ;;
9570esac
9571
9572fi
9573
9574to_host_file_cmd=$lt_cv_to_host_file_cmd
9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9576printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9577
9578
9579
9580
9581
9582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9583printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9584if test ${lt_cv_to_tool_file_cmd+y}
9585then :
9586  printf %s "(cached) " >&6
9587else $as_nop
9588  #assume ordinary cross tools, or native build.
9589lt_cv_to_tool_file_cmd=func_convert_file_noop
9590case $host in
9591  *-*-mingw* )
9592    case $build in
9593      *-*-mingw* ) # actually msys
9594        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9595        ;;
9596    esac
9597    ;;
9598esac
9599
9600fi
9601
9602to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9604printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9605
9606
9607
9608
9609
9610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9611printf %s "checking for $LD option to reload object files... " >&6; }
9612if test ${lt_cv_ld_reload_flag+y}
9613then :
9614  printf %s "(cached) " >&6
9615else $as_nop
9616  lt_cv_ld_reload_flag='-r'
9617fi
9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9619printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9620reload_flag=$lt_cv_ld_reload_flag
9621case $reload_flag in
9622"" | " "*) ;;
9623*) reload_flag=" $reload_flag" ;;
9624esac
9625reload_cmds='$LD$reload_flag -o $output$reload_objs'
9626case $host_os in
9627  cygwin* | mingw* | pw32* | cegcc*)
9628    if test yes != "$GCC"; then
9629      reload_cmds=false
9630    fi
9631    ;;
9632  darwin*)
9633    if test yes = "$GCC"; then
9634      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9635    else
9636      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9637    fi
9638    ;;
9639esac
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649if test -n "$ac_tool_prefix"; then
9650  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9651set dummy ${ac_tool_prefix}file; ac_word=$2
9652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653printf %s "checking for $ac_word... " >&6; }
9654if test ${ac_cv_prog_FILECMD+y}
9655then :
9656  printf %s "(cached) " >&6
9657else $as_nop
9658  if test -n "$FILECMD"; then
9659  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9660else
9661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $PATH
9663do
9664  IFS=$as_save_IFS
9665  case $as_dir in #(((
9666    '') as_dir=./ ;;
9667    */) ;;
9668    *) as_dir=$as_dir/ ;;
9669  esac
9670    for ac_exec_ext in '' $ac_executable_extensions; do
9671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9672    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9674    break 2
9675  fi
9676done
9677  done
9678IFS=$as_save_IFS
9679
9680fi
9681fi
9682FILECMD=$ac_cv_prog_FILECMD
9683if test -n "$FILECMD"; then
9684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9685printf "%s\n" "$FILECMD" >&6; }
9686else
9687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688printf "%s\n" "no" >&6; }
9689fi
9690
9691
9692fi
9693if test -z "$ac_cv_prog_FILECMD"; then
9694  ac_ct_FILECMD=$FILECMD
9695  # Extract the first word of "file", so it can be a program name with args.
9696set dummy file; ac_word=$2
9697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698printf %s "checking for $ac_word... " >&6; }
9699if test ${ac_cv_prog_ac_ct_FILECMD+y}
9700then :
9701  printf %s "(cached) " >&6
9702else $as_nop
9703  if test -n "$ac_ct_FILECMD"; then
9704  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9705else
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709  IFS=$as_save_IFS
9710  case $as_dir in #(((
9711    '') as_dir=./ ;;
9712    */) ;;
9713    *) as_dir=$as_dir/ ;;
9714  esac
9715    for ac_exec_ext in '' $ac_executable_extensions; do
9716  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9717    ac_cv_prog_ac_ct_FILECMD="file"
9718    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9719    break 2
9720  fi
9721done
9722  done
9723IFS=$as_save_IFS
9724
9725fi
9726fi
9727ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9728if test -n "$ac_ct_FILECMD"; then
9729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9730printf "%s\n" "$ac_ct_FILECMD" >&6; }
9731else
9732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733printf "%s\n" "no" >&6; }
9734fi
9735
9736  if test "x$ac_ct_FILECMD" = x; then
9737    FILECMD=":"
9738  else
9739    case $cross_compiling:$ac_tool_warned in
9740yes:)
9741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9742printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9743ac_tool_warned=yes ;;
9744esac
9745    FILECMD=$ac_ct_FILECMD
9746  fi
9747else
9748  FILECMD="$ac_cv_prog_FILECMD"
9749fi
9750
9751
9752
9753
9754
9755
9756
9757if test -n "$ac_tool_prefix"; then
9758  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9759set dummy ${ac_tool_prefix}objdump; ac_word=$2
9760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761printf %s "checking for $ac_word... " >&6; }
9762if test ${ac_cv_prog_OBJDUMP+y}
9763then :
9764  printf %s "(cached) " >&6
9765else $as_nop
9766  if test -n "$OBJDUMP"; then
9767  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9768else
9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770for as_dir in $PATH
9771do
9772  IFS=$as_save_IFS
9773  case $as_dir in #(((
9774    '') as_dir=./ ;;
9775    */) ;;
9776    *) as_dir=$as_dir/ ;;
9777  esac
9778    for ac_exec_ext in '' $ac_executable_extensions; do
9779  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9780    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9781    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9782    break 2
9783  fi
9784done
9785  done
9786IFS=$as_save_IFS
9787
9788fi
9789fi
9790OBJDUMP=$ac_cv_prog_OBJDUMP
9791if test -n "$OBJDUMP"; then
9792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9793printf "%s\n" "$OBJDUMP" >&6; }
9794else
9795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796printf "%s\n" "no" >&6; }
9797fi
9798
9799
9800fi
9801if test -z "$ac_cv_prog_OBJDUMP"; then
9802  ac_ct_OBJDUMP=$OBJDUMP
9803  # Extract the first word of "objdump", so it can be a program name with args.
9804set dummy objdump; ac_word=$2
9805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806printf %s "checking for $ac_word... " >&6; }
9807if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9808then :
9809  printf %s "(cached) " >&6
9810else $as_nop
9811  if test -n "$ac_ct_OBJDUMP"; then
9812  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9813else
9814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817  IFS=$as_save_IFS
9818  case $as_dir in #(((
9819    '') as_dir=./ ;;
9820    */) ;;
9821    *) as_dir=$as_dir/ ;;
9822  esac
9823    for ac_exec_ext in '' $ac_executable_extensions; do
9824  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9825    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9826    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9827    break 2
9828  fi
9829done
9830  done
9831IFS=$as_save_IFS
9832
9833fi
9834fi
9835ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9836if test -n "$ac_ct_OBJDUMP"; then
9837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9838printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9839else
9840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841printf "%s\n" "no" >&6; }
9842fi
9843
9844  if test "x$ac_ct_OBJDUMP" = x; then
9845    OBJDUMP="false"
9846  else
9847    case $cross_compiling:$ac_tool_warned in
9848yes:)
9849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9850printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9851ac_tool_warned=yes ;;
9852esac
9853    OBJDUMP=$ac_ct_OBJDUMP
9854  fi
9855else
9856  OBJDUMP="$ac_cv_prog_OBJDUMP"
9857fi
9858
9859test -z "$OBJDUMP" && OBJDUMP=objdump
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9870printf %s "checking how to recognize dependent libraries... " >&6; }
9871if test ${lt_cv_deplibs_check_method+y}
9872then :
9873  printf %s "(cached) " >&6
9874else $as_nop
9875  lt_cv_file_magic_cmd='$MAGIC_CMD'
9876lt_cv_file_magic_test_file=
9877lt_cv_deplibs_check_method='unknown'
9878# Need to set the preceding variable on all platforms that support
9879# interlibrary dependencies.
9880# 'none' -- dependencies not supported.
9881# 'unknown' -- same as none, but documents that we really don't know.
9882# 'pass_all' -- all dependencies passed with no checks.
9883# 'test_compile' -- check by making test program.
9884# 'file_magic [[regex]]' -- check by looking for files in library path
9885# that responds to the $file_magic_cmd with a given extended regex.
9886# If you have 'file' or equivalent on your system and you're not sure
9887# whether 'pass_all' will *always* work, you probably want this one.
9888
9889case $host_os in
9890aix[4-9]*)
9891  lt_cv_deplibs_check_method=pass_all
9892  ;;
9893
9894beos*)
9895  lt_cv_deplibs_check_method=pass_all
9896  ;;
9897
9898bsdi[45]*)
9899  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9900  lt_cv_file_magic_cmd='$FILECMD -L'
9901  lt_cv_file_magic_test_file=/shlib/libc.so
9902  ;;
9903
9904cygwin*)
9905  # func_win32_libid is a shell function defined in ltmain.sh
9906  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9907  lt_cv_file_magic_cmd='func_win32_libid'
9908  ;;
9909
9910mingw* | pw32*)
9911  # Base MSYS/MinGW do not provide the 'file' command needed by
9912  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9913  # unless we find 'file', for example because we are cross-compiling.
9914  if ( file / ) >/dev/null 2>&1; then
9915    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9916    lt_cv_file_magic_cmd='func_win32_libid'
9917  else
9918    # Keep this pattern in sync with the one in func_win32_libid.
9919    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9920    lt_cv_file_magic_cmd='$OBJDUMP -f'
9921  fi
9922  ;;
9923
9924cegcc*)
9925  # use the weaker test based on 'objdump'. See mingw*.
9926  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9927  lt_cv_file_magic_cmd='$OBJDUMP -f'
9928  ;;
9929
9930darwin* | rhapsody*)
9931  lt_cv_deplibs_check_method=pass_all
9932  ;;
9933
9934freebsd* | dragonfly* | midnightbsd*)
9935  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9936    case $host_cpu in
9937    i*86 )
9938      # Not sure whether the presence of OpenBSD here was a mistake.
9939      # Let's accept both of them until this is cleared up.
9940      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9941      lt_cv_file_magic_cmd=$FILECMD
9942      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9943      ;;
9944    esac
9945  else
9946    lt_cv_deplibs_check_method=pass_all
9947  fi
9948  ;;
9949
9950haiku*)
9951  lt_cv_deplibs_check_method=pass_all
9952  ;;
9953
9954hpux10.20* | hpux11*)
9955  lt_cv_file_magic_cmd=$FILECMD
9956  case $host_cpu in
9957  ia64*)
9958    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9959    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9960    ;;
9961  hppa*64*)
9962    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]'
9963    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9964    ;;
9965  *)
9966    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9967    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9968    ;;
9969  esac
9970  ;;
9971
9972interix[3-9]*)
9973  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9974  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9975  ;;
9976
9977irix5* | irix6* | nonstopux*)
9978  case $LD in
9979  *-32|*"-32 ") libmagic=32-bit;;
9980  *-n32|*"-n32 ") libmagic=N32;;
9981  *-64|*"-64 ") libmagic=64-bit;;
9982  *) libmagic=never-match;;
9983  esac
9984  lt_cv_deplibs_check_method=pass_all
9985  ;;
9986
9987# This must be glibc/ELF.
9988linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9989  lt_cv_deplibs_check_method=pass_all
9990  ;;
9991
9992netbsd* | netbsdelf*-gnu)
9993  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9994    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9995  else
9996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9997  fi
9998  ;;
9999
10000newos6*)
10001  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10002  lt_cv_file_magic_cmd=$FILECMD
10003  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10004  ;;
10005
10006*nto* | *qnx*)
10007  lt_cv_deplibs_check_method=pass_all
10008  ;;
10009
10010openbsd* | bitrig*)
10011  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10012    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10013  else
10014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10015  fi
10016  ;;
10017
10018osf3* | osf4* | osf5*)
10019  lt_cv_deplibs_check_method=pass_all
10020  ;;
10021
10022rdos*)
10023  lt_cv_deplibs_check_method=pass_all
10024  ;;
10025
10026solaris*)
10027  lt_cv_deplibs_check_method=pass_all
10028  ;;
10029
10030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10031  lt_cv_deplibs_check_method=pass_all
10032  ;;
10033
10034sysv4 | sysv4.3*)
10035  case $host_vendor in
10036  motorola)
10037    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]'
10038    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10039    ;;
10040  ncr)
10041    lt_cv_deplibs_check_method=pass_all
10042    ;;
10043  sequent)
10044    lt_cv_file_magic_cmd='/bin/file'
10045    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10046    ;;
10047  sni)
10048    lt_cv_file_magic_cmd='/bin/file'
10049    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10050    lt_cv_file_magic_test_file=/lib/libc.so
10051    ;;
10052  siemens)
10053    lt_cv_deplibs_check_method=pass_all
10054    ;;
10055  pc)
10056    lt_cv_deplibs_check_method=pass_all
10057    ;;
10058  esac
10059  ;;
10060
10061tpf*)
10062  lt_cv_deplibs_check_method=pass_all
10063  ;;
10064os2*)
10065  lt_cv_deplibs_check_method=pass_all
10066  ;;
10067esac
10068
10069fi
10070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10071printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10072
10073file_magic_glob=
10074want_nocaseglob=no
10075if test "$build" = "$host"; then
10076  case $host_os in
10077  mingw* | pw32*)
10078    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10079      want_nocaseglob=yes
10080    else
10081      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10082    fi
10083    ;;
10084  esac
10085fi
10086
10087file_magic_cmd=$lt_cv_file_magic_cmd
10088deplibs_check_method=$lt_cv_deplibs_check_method
10089test -z "$deplibs_check_method" && deplibs_check_method=unknown
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112if test -n "$ac_tool_prefix"; then
10113  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10114set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116printf %s "checking for $ac_word... " >&6; }
10117if test ${ac_cv_prog_DLLTOOL+y}
10118then :
10119  printf %s "(cached) " >&6
10120else $as_nop
10121  if test -n "$DLLTOOL"; then
10122  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10123else
10124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125for as_dir in $PATH
10126do
10127  IFS=$as_save_IFS
10128  case $as_dir in #(((
10129    '') as_dir=./ ;;
10130    */) ;;
10131    *) as_dir=$as_dir/ ;;
10132  esac
10133    for ac_exec_ext in '' $ac_executable_extensions; do
10134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10135    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10137    break 2
10138  fi
10139done
10140  done
10141IFS=$as_save_IFS
10142
10143fi
10144fi
10145DLLTOOL=$ac_cv_prog_DLLTOOL
10146if test -n "$DLLTOOL"; then
10147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10148printf "%s\n" "$DLLTOOL" >&6; }
10149else
10150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151printf "%s\n" "no" >&6; }
10152fi
10153
10154
10155fi
10156if test -z "$ac_cv_prog_DLLTOOL"; then
10157  ac_ct_DLLTOOL=$DLLTOOL
10158  # Extract the first word of "dlltool", so it can be a program name with args.
10159set dummy dlltool; ac_word=$2
10160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10161printf %s "checking for $ac_word... " >&6; }
10162if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10163then :
10164  printf %s "(cached) " >&6
10165else $as_nop
10166  if test -n "$ac_ct_DLLTOOL"; then
10167  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10168else
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172  IFS=$as_save_IFS
10173  case $as_dir in #(((
10174    '') as_dir=./ ;;
10175    */) ;;
10176    *) as_dir=$as_dir/ ;;
10177  esac
10178    for ac_exec_ext in '' $ac_executable_extensions; do
10179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10180    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10182    break 2
10183  fi
10184done
10185  done
10186IFS=$as_save_IFS
10187
10188fi
10189fi
10190ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10191if test -n "$ac_ct_DLLTOOL"; then
10192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10193printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10194else
10195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196printf "%s\n" "no" >&6; }
10197fi
10198
10199  if test "x$ac_ct_DLLTOOL" = x; then
10200    DLLTOOL="false"
10201  else
10202    case $cross_compiling:$ac_tool_warned in
10203yes:)
10204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10206ac_tool_warned=yes ;;
10207esac
10208    DLLTOOL=$ac_ct_DLLTOOL
10209  fi
10210else
10211  DLLTOOL="$ac_cv_prog_DLLTOOL"
10212fi
10213
10214test -z "$DLLTOOL" && DLLTOOL=dlltool
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10226printf %s "checking how to associate runtime and link libraries... " >&6; }
10227if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10228then :
10229  printf %s "(cached) " >&6
10230else $as_nop
10231  lt_cv_sharedlib_from_linklib_cmd='unknown'
10232
10233case $host_os in
10234cygwin* | mingw* | pw32* | cegcc*)
10235  # two different shell functions defined in ltmain.sh;
10236  # decide which one to use based on capabilities of $DLLTOOL
10237  case `$DLLTOOL --help 2>&1` in
10238  *--identify-strict*)
10239    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10240    ;;
10241  *)
10242    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10243    ;;
10244  esac
10245  ;;
10246*)
10247  # fallback: assume linklib IS sharedlib
10248  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10249  ;;
10250esac
10251
10252fi
10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10254printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10255sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10256test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10257
10258
10259
10260
10261
10262
10263
10264if test -n "$ac_tool_prefix"; then
10265  for ac_prog in ar
10266  do
10267    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270printf %s "checking for $ac_word... " >&6; }
10271if test ${ac_cv_prog_AR+y}
10272then :
10273  printf %s "(cached) " >&6
10274else $as_nop
10275  if test -n "$AR"; then
10276  ac_cv_prog_AR="$AR" # Let the user override the test.
10277else
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281  IFS=$as_save_IFS
10282  case $as_dir in #(((
10283    '') as_dir=./ ;;
10284    */) ;;
10285    *) as_dir=$as_dir/ ;;
10286  esac
10287    for ac_exec_ext in '' $ac_executable_extensions; do
10288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10289    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10291    break 2
10292  fi
10293done
10294  done
10295IFS=$as_save_IFS
10296
10297fi
10298fi
10299AR=$ac_cv_prog_AR
10300if test -n "$AR"; then
10301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10302printf "%s\n" "$AR" >&6; }
10303else
10304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305printf "%s\n" "no" >&6; }
10306fi
10307
10308
10309    test -n "$AR" && break
10310  done
10311fi
10312if test -z "$AR"; then
10313  ac_ct_AR=$AR
10314  for ac_prog in ar
10315do
10316  # Extract the first word of "$ac_prog", so it can be a program name with args.
10317set dummy $ac_prog; ac_word=$2
10318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319printf %s "checking for $ac_word... " >&6; }
10320if test ${ac_cv_prog_ac_ct_AR+y}
10321then :
10322  printf %s "(cached) " >&6
10323else $as_nop
10324  if test -n "$ac_ct_AR"; then
10325  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10326else
10327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330  IFS=$as_save_IFS
10331  case $as_dir in #(((
10332    '') as_dir=./ ;;
10333    */) ;;
10334    *) as_dir=$as_dir/ ;;
10335  esac
10336    for ac_exec_ext in '' $ac_executable_extensions; do
10337  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10338    ac_cv_prog_ac_ct_AR="$ac_prog"
10339    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10340    break 2
10341  fi
10342done
10343  done
10344IFS=$as_save_IFS
10345
10346fi
10347fi
10348ac_ct_AR=$ac_cv_prog_ac_ct_AR
10349if test -n "$ac_ct_AR"; then
10350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10351printf "%s\n" "$ac_ct_AR" >&6; }
10352else
10353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354printf "%s\n" "no" >&6; }
10355fi
10356
10357
10358  test -n "$ac_ct_AR" && break
10359done
10360
10361  if test "x$ac_ct_AR" = x; then
10362    AR="false"
10363  else
10364    case $cross_compiling:$ac_tool_warned in
10365yes:)
10366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10367printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10368ac_tool_warned=yes ;;
10369esac
10370    AR=$ac_ct_AR
10371  fi
10372fi
10373
10374: ${AR=ar}
10375
10376
10377
10378
10379
10380
10381# Use ARFLAGS variable as AR's operation code to sync the variable naming with
10382# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10383# higher priority because thats what people were doing historically (setting
10384# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
10385# variable obsoleted/removed.
10386
10387test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10388lt_ar_flags=$AR_FLAGS
10389
10390
10391
10392
10393
10394
10395# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
10396# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10397
10398
10399
10400
10401
10402
10403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10404printf %s "checking for archiver @FILE support... " >&6; }
10405if test ${lt_cv_ar_at_file+y}
10406then :
10407  printf %s "(cached) " >&6
10408else $as_nop
10409  lt_cv_ar_at_file=no
10410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411/* end confdefs.h.  */
10412
10413int
10414main (void)
10415{
10416
10417  ;
10418  return 0;
10419}
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"
10422then :
10423  echo conftest.$ac_objext > conftest.lst
10424      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10425      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10426  (eval $lt_ar_try) 2>&5
10427  ac_status=$?
10428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10429  test $ac_status = 0; }
10430      if test 0 -eq "$ac_status"; then
10431	# Ensure the archiver fails upon bogus file names.
10432	rm -f conftest.$ac_objext libconftest.a
10433	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10434  (eval $lt_ar_try) 2>&5
10435  ac_status=$?
10436  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437  test $ac_status = 0; }
10438	if test 0 -ne "$ac_status"; then
10439          lt_cv_ar_at_file=@
10440        fi
10441      fi
10442      rm -f conftest.* libconftest.a
10443
10444fi
10445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10446
10447fi
10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10449printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10450
10451if test no = "$lt_cv_ar_at_file"; then
10452  archiver_list_spec=
10453else
10454  archiver_list_spec=$lt_cv_ar_at_file
10455fi
10456
10457
10458
10459
10460
10461
10462
10463if test -n "$ac_tool_prefix"; then
10464  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10465set dummy ${ac_tool_prefix}strip; ac_word=$2
10466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467printf %s "checking for $ac_word... " >&6; }
10468if test ${ac_cv_prog_STRIP+y}
10469then :
10470  printf %s "(cached) " >&6
10471else $as_nop
10472  if test -n "$STRIP"; then
10473  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10474else
10475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476for as_dir in $PATH
10477do
10478  IFS=$as_save_IFS
10479  case $as_dir in #(((
10480    '') as_dir=./ ;;
10481    */) ;;
10482    *) as_dir=$as_dir/ ;;
10483  esac
10484    for ac_exec_ext in '' $ac_executable_extensions; do
10485  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10486    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10487    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10488    break 2
10489  fi
10490done
10491  done
10492IFS=$as_save_IFS
10493
10494fi
10495fi
10496STRIP=$ac_cv_prog_STRIP
10497if test -n "$STRIP"; then
10498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10499printf "%s\n" "$STRIP" >&6; }
10500else
10501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502printf "%s\n" "no" >&6; }
10503fi
10504
10505
10506fi
10507if test -z "$ac_cv_prog_STRIP"; then
10508  ac_ct_STRIP=$STRIP
10509  # Extract the first word of "strip", so it can be a program name with args.
10510set dummy strip; ac_word=$2
10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512printf %s "checking for $ac_word... " >&6; }
10513if test ${ac_cv_prog_ac_ct_STRIP+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  if test -n "$ac_ct_STRIP"; then
10518  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10519else
10520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $PATH
10522do
10523  IFS=$as_save_IFS
10524  case $as_dir in #(((
10525    '') as_dir=./ ;;
10526    */) ;;
10527    *) as_dir=$as_dir/ ;;
10528  esac
10529    for ac_exec_ext in '' $ac_executable_extensions; do
10530  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10531    ac_cv_prog_ac_ct_STRIP="strip"
10532    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10533    break 2
10534  fi
10535done
10536  done
10537IFS=$as_save_IFS
10538
10539fi
10540fi
10541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10542if test -n "$ac_ct_STRIP"; then
10543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10544printf "%s\n" "$ac_ct_STRIP" >&6; }
10545else
10546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547printf "%s\n" "no" >&6; }
10548fi
10549
10550  if test "x$ac_ct_STRIP" = x; then
10551    STRIP=":"
10552  else
10553    case $cross_compiling:$ac_tool_warned in
10554yes:)
10555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10557ac_tool_warned=yes ;;
10558esac
10559    STRIP=$ac_ct_STRIP
10560  fi
10561else
10562  STRIP="$ac_cv_prog_STRIP"
10563fi
10564
10565test -z "$STRIP" && STRIP=:
10566
10567
10568
10569
10570
10571
10572if test -n "$ac_tool_prefix"; then
10573  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10574set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576printf %s "checking for $ac_word... " >&6; }
10577if test ${ac_cv_prog_RANLIB+y}
10578then :
10579  printf %s "(cached) " >&6
10580else $as_nop
10581  if test -n "$RANLIB"; then
10582  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10583else
10584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $PATH
10586do
10587  IFS=$as_save_IFS
10588  case $as_dir in #(((
10589    '') as_dir=./ ;;
10590    */) ;;
10591    *) as_dir=$as_dir/ ;;
10592  esac
10593    for ac_exec_ext in '' $ac_executable_extensions; do
10594  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10595    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10596    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10597    break 2
10598  fi
10599done
10600  done
10601IFS=$as_save_IFS
10602
10603fi
10604fi
10605RANLIB=$ac_cv_prog_RANLIB
10606if test -n "$RANLIB"; then
10607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10608printf "%s\n" "$RANLIB" >&6; }
10609else
10610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611printf "%s\n" "no" >&6; }
10612fi
10613
10614
10615fi
10616if test -z "$ac_cv_prog_RANLIB"; then
10617  ac_ct_RANLIB=$RANLIB
10618  # Extract the first word of "ranlib", so it can be a program name with args.
10619set dummy ranlib; ac_word=$2
10620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10621printf %s "checking for $ac_word... " >&6; }
10622if test ${ac_cv_prog_ac_ct_RANLIB+y}
10623then :
10624  printf %s "(cached) " >&6
10625else $as_nop
10626  if test -n "$ac_ct_RANLIB"; then
10627  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632  IFS=$as_save_IFS
10633  case $as_dir in #(((
10634    '') as_dir=./ ;;
10635    */) ;;
10636    *) as_dir=$as_dir/ ;;
10637  esac
10638    for ac_exec_ext in '' $ac_executable_extensions; do
10639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10640    ac_cv_prog_ac_ct_RANLIB="ranlib"
10641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10642    break 2
10643  fi
10644done
10645  done
10646IFS=$as_save_IFS
10647
10648fi
10649fi
10650ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10651if test -n "$ac_ct_RANLIB"; then
10652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10653printf "%s\n" "$ac_ct_RANLIB" >&6; }
10654else
10655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656printf "%s\n" "no" >&6; }
10657fi
10658
10659  if test "x$ac_ct_RANLIB" = x; then
10660    RANLIB=":"
10661  else
10662    case $cross_compiling:$ac_tool_warned in
10663yes:)
10664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10666ac_tool_warned=yes ;;
10667esac
10668    RANLIB=$ac_ct_RANLIB
10669  fi
10670else
10671  RANLIB="$ac_cv_prog_RANLIB"
10672fi
10673
10674test -z "$RANLIB" && RANLIB=:
10675
10676
10677
10678
10679
10680
10681# Determine commands to create old-style static archives.
10682old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10683old_postinstall_cmds='chmod 644 $oldlib'
10684old_postuninstall_cmds=
10685
10686if test -n "$RANLIB"; then
10687  case $host_os in
10688  bitrig* | openbsd*)
10689    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10690    ;;
10691  *)
10692    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10693    ;;
10694  esac
10695  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10696fi
10697
10698case $host_os in
10699  darwin*)
10700    lock_old_archive_extraction=yes ;;
10701  *)
10702    lock_old_archive_extraction=no ;;
10703esac
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743# If no C compiler was specified, use CC.
10744LTCC=${LTCC-"$CC"}
10745
10746# If no C compiler flags were specified, use CFLAGS.
10747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10748
10749# Allow CC to be a program name with arguments.
10750compiler=$CC
10751
10752
10753# Check for command to grab the raw symbol name followed by C symbol from nm.
10754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10755printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10756if test ${lt_cv_sys_global_symbol_pipe+y}
10757then :
10758  printf %s "(cached) " >&6
10759else $as_nop
10760
10761# These are sane defaults that work on at least a few old systems.
10762# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10763
10764# Character class describing NM global symbol codes.
10765symcode='[BCDEGRST]'
10766
10767# Regexp to match symbols that can be accessed directly from C.
10768sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10769
10770# Define system-specific variables.
10771case $host_os in
10772aix*)
10773  symcode='[BCDT]'
10774  ;;
10775cygwin* | mingw* | pw32* | cegcc*)
10776  symcode='[ABCDGISTW]'
10777  ;;
10778hpux*)
10779  if test ia64 = "$host_cpu"; then
10780    symcode='[ABCDEGRST]'
10781  fi
10782  ;;
10783irix* | nonstopux*)
10784  symcode='[BCDEGRST]'
10785  ;;
10786osf*)
10787  symcode='[BCDEGQRST]'
10788  ;;
10789solaris*)
10790  symcode='[BDRT]'
10791  ;;
10792sco3.2v5*)
10793  symcode='[DT]'
10794  ;;
10795sysv4.2uw2*)
10796  symcode='[DT]'
10797  ;;
10798sysv5* | sco5v6* | unixware* | OpenUNIX*)
10799  symcode='[ABDT]'
10800  ;;
10801sysv4)
10802  symcode='[DFNSTU]'
10803  ;;
10804esac
10805
10806# If we're using GNU nm, then use its standard symbol codes.
10807case `$NM -V 2>&1` in
10808*GNU* | *'with BFD'*)
10809  symcode='[ABCDGIRSTW]' ;;
10810esac
10811
10812if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10813  # Gets list of data symbols to import.
10814  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10815  # Adjust the below global symbol transforms to fixup imported variables.
10816  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10817  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10818  lt_c_name_lib_hook="\
10819  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10820  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10821else
10822  # Disable hooks by default.
10823  lt_cv_sys_global_symbol_to_import=
10824  lt_cdecl_hook=
10825  lt_c_name_hook=
10826  lt_c_name_lib_hook=
10827fi
10828
10829# Transform an extracted symbol line into a proper C declaration.
10830# Some systems (esp. on ia64) link data and code symbols differently,
10831# so use this general approach.
10832lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10833$lt_cdecl_hook\
10834" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10835" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10836
10837# Transform an extracted symbol line into symbol name and symbol address
10838lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10839$lt_c_name_hook\
10840" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10841" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10842
10843# Transform an extracted symbol line into symbol name with lib prefix and
10844# symbol address.
10845lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10846$lt_c_name_lib_hook\
10847" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10848" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10849" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10850
10851# Handle CRLF in mingw tool chain
10852opt_cr=
10853case $build_os in
10854mingw*)
10855  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10856  ;;
10857esac
10858
10859# Try without a prefix underscore, then with it.
10860for ac_symprfx in "" "_"; do
10861
10862  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10863  symxfrm="\\1 $ac_symprfx\\2 \\2"
10864
10865  # Write the raw and C identifiers.
10866  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10867    # Fake it for dumpbin and say T for any non-static function,
10868    # D for any global variable and I for any imported variable.
10869    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10870    # which start with @ or ?.
10871    lt_cv_sys_global_symbol_pipe="$AWK '"\
10872"     {last_section=section; section=\$ 3};"\
10873"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10874"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10875"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10876"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10877"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10878"     \$ 0!~/External *\|/{next};"\
10879"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10880"     {if(hide[section]) next};"\
10881"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10882"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10883"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10884"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10885"     ' prfx=^$ac_symprfx"
10886  else
10887    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10888  fi
10889  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10890
10891  # Check to see that the pipe works correctly.
10892  pipe_works=no
10893
10894  rm -f conftest*
10895  cat > conftest.$ac_ext <<_LT_EOF
10896#ifdef __cplusplus
10897extern "C" {
10898#endif
10899char nm_test_var;
10900void nm_test_func(void);
10901void nm_test_func(void){}
10902#ifdef __cplusplus
10903}
10904#endif
10905int main(){nm_test_var='a';nm_test_func();return(0);}
10906_LT_EOF
10907
10908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10909  (eval $ac_compile) 2>&5
10910  ac_status=$?
10911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10912  test $ac_status = 0; }; then
10913    # Now try to grab the symbols.
10914    nlist=conftest.nm
10915    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10916    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10917      # Try sorting and uniquifying the output.
10918      if sort "$nlist" | uniq > "$nlist"T; then
10919	mv -f "$nlist"T "$nlist"
10920      else
10921	rm -f "$nlist"T
10922      fi
10923
10924      # Make sure that we snagged all the symbols we need.
10925      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10926	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10927	  cat <<_LT_EOF > conftest.$ac_ext
10928/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10929#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10930/* DATA imports from DLLs on WIN32 can't be const, because runtime
10931   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10932# define LT_DLSYM_CONST
10933#elif defined __osf__
10934/* This system does not cope well with relocations in const data.  */
10935# define LT_DLSYM_CONST
10936#else
10937# define LT_DLSYM_CONST const
10938#endif
10939
10940#ifdef __cplusplus
10941extern "C" {
10942#endif
10943
10944_LT_EOF
10945	  # Now generate the symbol file.
10946	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10947
10948	  cat <<_LT_EOF >> conftest.$ac_ext
10949
10950/* The mapping between symbol names and symbols.  */
10951LT_DLSYM_CONST struct {
10952  const char *name;
10953  void       *address;
10954}
10955lt__PROGRAM__LTX_preloaded_symbols[] =
10956{
10957  { "@PROGRAM@", (void *) 0 },
10958_LT_EOF
10959	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10960	  cat <<\_LT_EOF >> conftest.$ac_ext
10961  {0, (void *) 0}
10962};
10963
10964/* This works around a problem in FreeBSD linker */
10965#ifdef FREEBSD_WORKAROUND
10966static const void *lt_preloaded_setup() {
10967  return lt__PROGRAM__LTX_preloaded_symbols;
10968}
10969#endif
10970
10971#ifdef __cplusplus
10972}
10973#endif
10974_LT_EOF
10975	  # Now try linking the two files.
10976	  mv conftest.$ac_objext conftstm.$ac_objext
10977	  lt_globsym_save_LIBS=$LIBS
10978	  lt_globsym_save_CFLAGS=$CFLAGS
10979	  LIBS=conftstm.$ac_objext
10980	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10981	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10982  (eval $ac_link) 2>&5
10983  ac_status=$?
10984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10985  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10986	    pipe_works=yes
10987	  fi
10988	  LIBS=$lt_globsym_save_LIBS
10989	  CFLAGS=$lt_globsym_save_CFLAGS
10990	else
10991	  echo "cannot find nm_test_func in $nlist" >&5
10992	fi
10993      else
10994	echo "cannot find nm_test_var in $nlist" >&5
10995      fi
10996    else
10997      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10998    fi
10999  else
11000    echo "$progname: failed program was:" >&5
11001    cat conftest.$ac_ext >&5
11002  fi
11003  rm -rf conftest* conftst*
11004
11005  # Do not use the global_symbol_pipe unless it works.
11006  if test yes = "$pipe_works"; then
11007    break
11008  else
11009    lt_cv_sys_global_symbol_pipe=
11010  fi
11011done
11012
11013fi
11014
11015if test -z "$lt_cv_sys_global_symbol_pipe"; then
11016  lt_cv_sys_global_symbol_to_cdecl=
11017fi
11018if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11020printf "%s\n" "failed" >&6; }
11021else
11022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11023printf "%s\n" "ok" >&6; }
11024fi
11025
11026# Response file support.
11027if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11028  nm_file_list_spec='@'
11029elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11030  nm_file_list_spec='@'
11031fi
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11070printf %s "checking for sysroot... " >&6; }
11071
11072# Check whether --with-sysroot was given.
11073if test ${with_sysroot+y}
11074then :
11075  withval=$with_sysroot;
11076else $as_nop
11077  with_sysroot=no
11078fi
11079
11080
11081lt_sysroot=
11082case $with_sysroot in #(
11083 yes)
11084   if test yes = "$GCC"; then
11085     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11086   fi
11087   ;; #(
11088 /*)
11089   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11090   ;; #(
11091 no|'')
11092   ;; #(
11093 *)
11094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11095printf "%s\n" "$with_sysroot" >&6; }
11096   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11097   ;;
11098esac
11099
11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11101printf "%s\n" "${lt_sysroot:-no}" >&6; }
11102
11103
11104
11105
11106
11107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11108printf %s "checking for a working dd... " >&6; }
11109if test ${ac_cv_path_lt_DD+y}
11110then :
11111  printf %s "(cached) " >&6
11112else $as_nop
11113  printf 0123456789abcdef0123456789abcdef >conftest.i
11114cat conftest.i conftest.i >conftest2.i
11115: ${lt_DD:=$DD}
11116if test -z "$lt_DD"; then
11117  ac_path_lt_DD_found=false
11118  # Loop through the user's path and test for each of PROGNAME-LIST
11119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122  IFS=$as_save_IFS
11123  case $as_dir in #(((
11124    '') as_dir=./ ;;
11125    */) ;;
11126    *) as_dir=$as_dir/ ;;
11127  esac
11128    for ac_prog in dd
11129   do
11130    for ac_exec_ext in '' $ac_executable_extensions; do
11131      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11132      as_fn_executable_p "$ac_path_lt_DD" || continue
11133if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11134  cmp -s conftest.i conftest.out \
11135  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11136fi
11137      $ac_path_lt_DD_found && break 3
11138    done
11139  done
11140  done
11141IFS=$as_save_IFS
11142  if test -z "$ac_cv_path_lt_DD"; then
11143    :
11144  fi
11145else
11146  ac_cv_path_lt_DD=$lt_DD
11147fi
11148
11149rm -f conftest.i conftest2.i conftest.out
11150fi
11151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11152printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11153
11154
11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11156printf %s "checking how to truncate binary pipes... " >&6; }
11157if test ${lt_cv_truncate_bin+y}
11158then :
11159  printf %s "(cached) " >&6
11160else $as_nop
11161  printf 0123456789abcdef0123456789abcdef >conftest.i
11162cat conftest.i conftest.i >conftest2.i
11163lt_cv_truncate_bin=
11164if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11165  cmp -s conftest.i conftest.out \
11166  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11167fi
11168rm -f conftest.i conftest2.i conftest.out
11169test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11170fi
11171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11172printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11173
11174
11175
11176
11177
11178
11179
11180# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11181func_cc_basename ()
11182{
11183    for cc_temp in $*""; do
11184      case $cc_temp in
11185        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11186        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11187        \-*) ;;
11188        *) break;;
11189      esac
11190    done
11191    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11192}
11193
11194# Check whether --enable-libtool-lock was given.
11195if test ${enable_libtool_lock+y}
11196then :
11197  enableval=$enable_libtool_lock;
11198fi
11199
11200test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11201
11202# Some flags need to be propagated to the compiler or linker for good
11203# libtool support.
11204case $host in
11205ia64-*-hpux*)
11206  # Find out what ABI is being produced by ac_compile, and set mode
11207  # options accordingly.
11208  echo 'int i;' > conftest.$ac_ext
11209  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11210  (eval $ac_compile) 2>&5
11211  ac_status=$?
11212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11213  test $ac_status = 0; }; then
11214    case `$FILECMD conftest.$ac_objext` in
11215      *ELF-32*)
11216	HPUX_IA64_MODE=32
11217	;;
11218      *ELF-64*)
11219	HPUX_IA64_MODE=64
11220	;;
11221    esac
11222  fi
11223  rm -rf conftest*
11224  ;;
11225*-*-irix6*)
11226  # Find out what ABI is being produced by ac_compile, and set linker
11227  # options accordingly.
11228  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11229  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11230  (eval $ac_compile) 2>&5
11231  ac_status=$?
11232  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233  test $ac_status = 0; }; then
11234    if test yes = "$lt_cv_prog_gnu_ld"; then
11235      case `$FILECMD conftest.$ac_objext` in
11236	*32-bit*)
11237	  LD="${LD-ld} -melf32bsmip"
11238	  ;;
11239	*N32*)
11240	  LD="${LD-ld} -melf32bmipn32"
11241	  ;;
11242	*64-bit*)
11243	  LD="${LD-ld} -melf64bmip"
11244	;;
11245      esac
11246    else
11247      case `$FILECMD conftest.$ac_objext` in
11248	*32-bit*)
11249	  LD="${LD-ld} -32"
11250	  ;;
11251	*N32*)
11252	  LD="${LD-ld} -n32"
11253	  ;;
11254	*64-bit*)
11255	  LD="${LD-ld} -64"
11256	  ;;
11257      esac
11258    fi
11259  fi
11260  rm -rf conftest*
11261  ;;
11262
11263mips64*-*linux*)
11264  # Find out what ABI is being produced by ac_compile, and set linker
11265  # options accordingly.
11266  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11267  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11268  (eval $ac_compile) 2>&5
11269  ac_status=$?
11270  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11271  test $ac_status = 0; }; then
11272    emul=elf
11273    case `$FILECMD conftest.$ac_objext` in
11274      *32-bit*)
11275	emul="${emul}32"
11276	;;
11277      *64-bit*)
11278	emul="${emul}64"
11279	;;
11280    esac
11281    case `$FILECMD conftest.$ac_objext` in
11282      *MSB*)
11283	emul="${emul}btsmip"
11284	;;
11285      *LSB*)
11286	emul="${emul}ltsmip"
11287	;;
11288    esac
11289    case `$FILECMD conftest.$ac_objext` in
11290      *N32*)
11291	emul="${emul}n32"
11292	;;
11293    esac
11294    LD="${LD-ld} -m $emul"
11295  fi
11296  rm -rf conftest*
11297  ;;
11298
11299x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11300s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11301  # Find out what ABI is being produced by ac_compile, and set linker
11302  # options accordingly.  Note that the listed cases only cover the
11303  # situations where additional linker options are needed (such as when
11304  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11305  # vice versa); the common cases where no linker options are needed do
11306  # not appear in the list.
11307  echo 'int i;' > conftest.$ac_ext
11308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11309  (eval $ac_compile) 2>&5
11310  ac_status=$?
11311  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312  test $ac_status = 0; }; then
11313    case `$FILECMD conftest.o` in
11314      *32-bit*)
11315	case $host in
11316	  x86_64-*kfreebsd*-gnu)
11317	    LD="${LD-ld} -m elf_i386_fbsd"
11318	    ;;
11319	  x86_64-*linux*)
11320	    case `$FILECMD conftest.o` in
11321	      *x86-64*)
11322		LD="${LD-ld} -m elf32_x86_64"
11323		;;
11324	      *)
11325		LD="${LD-ld} -m elf_i386"
11326		;;
11327	    esac
11328	    ;;
11329	  powerpc64le-*linux*)
11330	    LD="${LD-ld} -m elf32lppclinux"
11331	    ;;
11332	  powerpc64-*linux*)
11333	    LD="${LD-ld} -m elf32ppclinux"
11334	    ;;
11335	  s390x-*linux*)
11336	    LD="${LD-ld} -m elf_s390"
11337	    ;;
11338	  sparc64-*linux*)
11339	    LD="${LD-ld} -m elf32_sparc"
11340	    ;;
11341	esac
11342	;;
11343      *64-bit*)
11344	case $host in
11345	  x86_64-*kfreebsd*-gnu)
11346	    LD="${LD-ld} -m elf_x86_64_fbsd"
11347	    ;;
11348	  x86_64-*linux*)
11349	    LD="${LD-ld} -m elf_x86_64"
11350	    ;;
11351	  powerpcle-*linux*)
11352	    LD="${LD-ld} -m elf64lppc"
11353	    ;;
11354	  powerpc-*linux*)
11355	    LD="${LD-ld} -m elf64ppc"
11356	    ;;
11357	  s390*-*linux*|s390*-*tpf*)
11358	    LD="${LD-ld} -m elf64_s390"
11359	    ;;
11360	  sparc*-*linux*)
11361	    LD="${LD-ld} -m elf64_sparc"
11362	    ;;
11363	esac
11364	;;
11365    esac
11366  fi
11367  rm -rf conftest*
11368  ;;
11369
11370*-*-sco3.2v5*)
11371  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11372  SAVE_CFLAGS=$CFLAGS
11373  CFLAGS="$CFLAGS -belf"
11374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11375printf %s "checking whether the C compiler needs -belf... " >&6; }
11376if test ${lt_cv_cc_needs_belf+y}
11377then :
11378  printf %s "(cached) " >&6
11379else $as_nop
11380  ac_ext=c
11381ac_cpp='$CPP $CPPFLAGS'
11382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11384ac_compiler_gnu=$ac_cv_c_compiler_gnu
11385
11386     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387/* end confdefs.h.  */
11388
11389int
11390main (void)
11391{
11392
11393  ;
11394  return 0;
11395}
11396_ACEOF
11397if ac_fn_c_try_link "$LINENO"
11398then :
11399  lt_cv_cc_needs_belf=yes
11400else $as_nop
11401  lt_cv_cc_needs_belf=no
11402fi
11403rm -f core conftest.err conftest.$ac_objext conftest.beam \
11404    conftest$ac_exeext conftest.$ac_ext
11405     ac_ext=c
11406ac_cpp='$CPP $CPPFLAGS'
11407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11409ac_compiler_gnu=$ac_cv_c_compiler_gnu
11410
11411fi
11412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11413printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11414  if test yes != "$lt_cv_cc_needs_belf"; then
11415    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11416    CFLAGS=$SAVE_CFLAGS
11417  fi
11418  ;;
11419*-*solaris*)
11420  # Find out what ABI is being produced by ac_compile, and set linker
11421  # options accordingly.
11422  echo 'int i;' > conftest.$ac_ext
11423  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11424  (eval $ac_compile) 2>&5
11425  ac_status=$?
11426  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427  test $ac_status = 0; }; then
11428    case `$FILECMD conftest.o` in
11429    *64-bit*)
11430      case $lt_cv_prog_gnu_ld in
11431      yes*)
11432        case $host in
11433        i?86-*-solaris*|x86_64-*-solaris*)
11434          LD="${LD-ld} -m elf_x86_64"
11435          ;;
11436        sparc*-*-solaris*)
11437          LD="${LD-ld} -m elf64_sparc"
11438          ;;
11439        esac
11440        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11441        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11442          LD=${LD-ld}_sol2
11443        fi
11444        ;;
11445      *)
11446	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11447	  LD="${LD-ld} -64"
11448	fi
11449	;;
11450      esac
11451      ;;
11452    esac
11453  fi
11454  rm -rf conftest*
11455  ;;
11456esac
11457
11458need_locks=$enable_libtool_lock
11459
11460if test -n "$ac_tool_prefix"; then
11461  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11462set dummy ${ac_tool_prefix}mt; ac_word=$2
11463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464printf %s "checking for $ac_word... " >&6; }
11465if test ${ac_cv_prog_MANIFEST_TOOL+y}
11466then :
11467  printf %s "(cached) " >&6
11468else $as_nop
11469  if test -n "$MANIFEST_TOOL"; then
11470  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475  IFS=$as_save_IFS
11476  case $as_dir in #(((
11477    '') as_dir=./ ;;
11478    */) ;;
11479    *) as_dir=$as_dir/ ;;
11480  esac
11481    for ac_exec_ext in '' $ac_executable_extensions; do
11482  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11483    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11484    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11485    break 2
11486  fi
11487done
11488  done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11494if test -n "$MANIFEST_TOOL"; then
11495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11496printf "%s\n" "$MANIFEST_TOOL" >&6; }
11497else
11498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499printf "%s\n" "no" >&6; }
11500fi
11501
11502
11503fi
11504if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11505  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11506  # Extract the first word of "mt", so it can be a program name with args.
11507set dummy mt; ac_word=$2
11508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509printf %s "checking for $ac_word... " >&6; }
11510if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11511then :
11512  printf %s "(cached) " >&6
11513else $as_nop
11514  if test -n "$ac_ct_MANIFEST_TOOL"; then
11515  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11516else
11517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH
11519do
11520  IFS=$as_save_IFS
11521  case $as_dir in #(((
11522    '') as_dir=./ ;;
11523    */) ;;
11524    *) as_dir=$as_dir/ ;;
11525  esac
11526    for ac_exec_ext in '' $ac_executable_extensions; do
11527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11528    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11530    break 2
11531  fi
11532done
11533  done
11534IFS=$as_save_IFS
11535
11536fi
11537fi
11538ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11539if test -n "$ac_ct_MANIFEST_TOOL"; then
11540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11541printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11542else
11543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544printf "%s\n" "no" >&6; }
11545fi
11546
11547  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11548    MANIFEST_TOOL=":"
11549  else
11550    case $cross_compiling:$ac_tool_warned in
11551yes:)
11552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11553printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11554ac_tool_warned=yes ;;
11555esac
11556    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11557  fi
11558else
11559  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11560fi
11561
11562test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11564printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11565if test ${lt_cv_path_mainfest_tool+y}
11566then :
11567  printf %s "(cached) " >&6
11568else $as_nop
11569  lt_cv_path_mainfest_tool=no
11570  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11571  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11572  cat conftest.err >&5
11573  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11574    lt_cv_path_mainfest_tool=yes
11575  fi
11576  rm -f conftest*
11577fi
11578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11579printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11580if test yes != "$lt_cv_path_mainfest_tool"; then
11581  MANIFEST_TOOL=:
11582fi
11583
11584
11585
11586
11587
11588
11589  case $host_os in
11590    rhapsody* | darwin*)
11591    if test -n "$ac_tool_prefix"; then
11592  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11593set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595printf %s "checking for $ac_word... " >&6; }
11596if test ${ac_cv_prog_DSYMUTIL+y}
11597then :
11598  printf %s "(cached) " >&6
11599else $as_nop
11600  if test -n "$DSYMUTIL"; then
11601  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11602else
11603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604for as_dir in $PATH
11605do
11606  IFS=$as_save_IFS
11607  case $as_dir in #(((
11608    '') as_dir=./ ;;
11609    */) ;;
11610    *) as_dir=$as_dir/ ;;
11611  esac
11612    for ac_exec_ext in '' $ac_executable_extensions; do
11613  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11614    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11615    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11616    break 2
11617  fi
11618done
11619  done
11620IFS=$as_save_IFS
11621
11622fi
11623fi
11624DSYMUTIL=$ac_cv_prog_DSYMUTIL
11625if test -n "$DSYMUTIL"; then
11626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11627printf "%s\n" "$DSYMUTIL" >&6; }
11628else
11629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630printf "%s\n" "no" >&6; }
11631fi
11632
11633
11634fi
11635if test -z "$ac_cv_prog_DSYMUTIL"; then
11636  ac_ct_DSYMUTIL=$DSYMUTIL
11637  # Extract the first word of "dsymutil", so it can be a program name with args.
11638set dummy dsymutil; ac_word=$2
11639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640printf %s "checking for $ac_word... " >&6; }
11641if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11642then :
11643  printf %s "(cached) " >&6
11644else $as_nop
11645  if test -n "$ac_ct_DSYMUTIL"; then
11646  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651  IFS=$as_save_IFS
11652  case $as_dir in #(((
11653    '') as_dir=./ ;;
11654    */) ;;
11655    *) as_dir=$as_dir/ ;;
11656  esac
11657    for ac_exec_ext in '' $ac_executable_extensions; do
11658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11659    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11661    break 2
11662  fi
11663done
11664  done
11665IFS=$as_save_IFS
11666
11667fi
11668fi
11669ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11670if test -n "$ac_ct_DSYMUTIL"; then
11671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11672printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11673else
11674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675printf "%s\n" "no" >&6; }
11676fi
11677
11678  if test "x$ac_ct_DSYMUTIL" = x; then
11679    DSYMUTIL=":"
11680  else
11681    case $cross_compiling:$ac_tool_warned in
11682yes:)
11683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11685ac_tool_warned=yes ;;
11686esac
11687    DSYMUTIL=$ac_ct_DSYMUTIL
11688  fi
11689else
11690  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11691fi
11692
11693    if test -n "$ac_tool_prefix"; then
11694  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11695set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697printf %s "checking for $ac_word... " >&6; }
11698if test ${ac_cv_prog_NMEDIT+y}
11699then :
11700  printf %s "(cached) " >&6
11701else $as_nop
11702  if test -n "$NMEDIT"; then
11703  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11704else
11705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706for as_dir in $PATH
11707do
11708  IFS=$as_save_IFS
11709  case $as_dir in #(((
11710    '') as_dir=./ ;;
11711    */) ;;
11712    *) as_dir=$as_dir/ ;;
11713  esac
11714    for ac_exec_ext in '' $ac_executable_extensions; do
11715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11716    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11718    break 2
11719  fi
11720done
11721  done
11722IFS=$as_save_IFS
11723
11724fi
11725fi
11726NMEDIT=$ac_cv_prog_NMEDIT
11727if test -n "$NMEDIT"; then
11728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11729printf "%s\n" "$NMEDIT" >&6; }
11730else
11731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732printf "%s\n" "no" >&6; }
11733fi
11734
11735
11736fi
11737if test -z "$ac_cv_prog_NMEDIT"; then
11738  ac_ct_NMEDIT=$NMEDIT
11739  # Extract the first word of "nmedit", so it can be a program name with args.
11740set dummy nmedit; ac_word=$2
11741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742printf %s "checking for $ac_word... " >&6; }
11743if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11744then :
11745  printf %s "(cached) " >&6
11746else $as_nop
11747  if test -n "$ac_ct_NMEDIT"; then
11748  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11749else
11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751for as_dir in $PATH
11752do
11753  IFS=$as_save_IFS
11754  case $as_dir in #(((
11755    '') as_dir=./ ;;
11756    */) ;;
11757    *) as_dir=$as_dir/ ;;
11758  esac
11759    for ac_exec_ext in '' $ac_executable_extensions; do
11760  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11761    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11762    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11763    break 2
11764  fi
11765done
11766  done
11767IFS=$as_save_IFS
11768
11769fi
11770fi
11771ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11772if test -n "$ac_ct_NMEDIT"; then
11773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11774printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11775else
11776  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777printf "%s\n" "no" >&6; }
11778fi
11779
11780  if test "x$ac_ct_NMEDIT" = x; then
11781    NMEDIT=":"
11782  else
11783    case $cross_compiling:$ac_tool_warned in
11784yes:)
11785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11787ac_tool_warned=yes ;;
11788esac
11789    NMEDIT=$ac_ct_NMEDIT
11790  fi
11791else
11792  NMEDIT="$ac_cv_prog_NMEDIT"
11793fi
11794
11795    if test -n "$ac_tool_prefix"; then
11796  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11797set dummy ${ac_tool_prefix}lipo; ac_word=$2
11798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799printf %s "checking for $ac_word... " >&6; }
11800if test ${ac_cv_prog_LIPO+y}
11801then :
11802  printf %s "(cached) " >&6
11803else $as_nop
11804  if test -n "$LIPO"; then
11805  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810  IFS=$as_save_IFS
11811  case $as_dir in #(((
11812    '') as_dir=./ ;;
11813    */) ;;
11814    *) as_dir=$as_dir/ ;;
11815  esac
11816    for ac_exec_ext in '' $ac_executable_extensions; do
11817  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11818    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11819    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11820    break 2
11821  fi
11822done
11823  done
11824IFS=$as_save_IFS
11825
11826fi
11827fi
11828LIPO=$ac_cv_prog_LIPO
11829if test -n "$LIPO"; then
11830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11831printf "%s\n" "$LIPO" >&6; }
11832else
11833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834printf "%s\n" "no" >&6; }
11835fi
11836
11837
11838fi
11839if test -z "$ac_cv_prog_LIPO"; then
11840  ac_ct_LIPO=$LIPO
11841  # Extract the first word of "lipo", so it can be a program name with args.
11842set dummy lipo; ac_word=$2
11843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844printf %s "checking for $ac_word... " >&6; }
11845if test ${ac_cv_prog_ac_ct_LIPO+y}
11846then :
11847  printf %s "(cached) " >&6
11848else $as_nop
11849  if test -n "$ac_ct_LIPO"; then
11850  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11851else
11852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853for as_dir in $PATH
11854do
11855  IFS=$as_save_IFS
11856  case $as_dir in #(((
11857    '') as_dir=./ ;;
11858    */) ;;
11859    *) as_dir=$as_dir/ ;;
11860  esac
11861    for ac_exec_ext in '' $ac_executable_extensions; do
11862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11863    ac_cv_prog_ac_ct_LIPO="lipo"
11864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11865    break 2
11866  fi
11867done
11868  done
11869IFS=$as_save_IFS
11870
11871fi
11872fi
11873ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11874if test -n "$ac_ct_LIPO"; then
11875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11876printf "%s\n" "$ac_ct_LIPO" >&6; }
11877else
11878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879printf "%s\n" "no" >&6; }
11880fi
11881
11882  if test "x$ac_ct_LIPO" = x; then
11883    LIPO=":"
11884  else
11885    case $cross_compiling:$ac_tool_warned in
11886yes:)
11887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11888printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11889ac_tool_warned=yes ;;
11890esac
11891    LIPO=$ac_ct_LIPO
11892  fi
11893else
11894  LIPO="$ac_cv_prog_LIPO"
11895fi
11896
11897    if test -n "$ac_tool_prefix"; then
11898  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11899set dummy ${ac_tool_prefix}otool; ac_word=$2
11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901printf %s "checking for $ac_word... " >&6; }
11902if test ${ac_cv_prog_OTOOL+y}
11903then :
11904  printf %s "(cached) " >&6
11905else $as_nop
11906  if test -n "$OTOOL"; then
11907  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912  IFS=$as_save_IFS
11913  case $as_dir in #(((
11914    '') as_dir=./ ;;
11915    */) ;;
11916    *) as_dir=$as_dir/ ;;
11917  esac
11918    for ac_exec_ext in '' $ac_executable_extensions; do
11919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11920    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11922    break 2
11923  fi
11924done
11925  done
11926IFS=$as_save_IFS
11927
11928fi
11929fi
11930OTOOL=$ac_cv_prog_OTOOL
11931if test -n "$OTOOL"; then
11932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11933printf "%s\n" "$OTOOL" >&6; }
11934else
11935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936printf "%s\n" "no" >&6; }
11937fi
11938
11939
11940fi
11941if test -z "$ac_cv_prog_OTOOL"; then
11942  ac_ct_OTOOL=$OTOOL
11943  # Extract the first word of "otool", so it can be a program name with args.
11944set dummy otool; ac_word=$2
11945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946printf %s "checking for $ac_word... " >&6; }
11947if test ${ac_cv_prog_ac_ct_OTOOL+y}
11948then :
11949  printf %s "(cached) " >&6
11950else $as_nop
11951  if test -n "$ac_ct_OTOOL"; then
11952  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11953else
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957  IFS=$as_save_IFS
11958  case $as_dir in #(((
11959    '') as_dir=./ ;;
11960    */) ;;
11961    *) as_dir=$as_dir/ ;;
11962  esac
11963    for ac_exec_ext in '' $ac_executable_extensions; do
11964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11965    ac_cv_prog_ac_ct_OTOOL="otool"
11966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11967    break 2
11968  fi
11969done
11970  done
11971IFS=$as_save_IFS
11972
11973fi
11974fi
11975ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11976if test -n "$ac_ct_OTOOL"; then
11977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11978printf "%s\n" "$ac_ct_OTOOL" >&6; }
11979else
11980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981printf "%s\n" "no" >&6; }
11982fi
11983
11984  if test "x$ac_ct_OTOOL" = x; then
11985    OTOOL=":"
11986  else
11987    case $cross_compiling:$ac_tool_warned in
11988yes:)
11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11990printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11991ac_tool_warned=yes ;;
11992esac
11993    OTOOL=$ac_ct_OTOOL
11994  fi
11995else
11996  OTOOL="$ac_cv_prog_OTOOL"
11997fi
11998
11999    if test -n "$ac_tool_prefix"; then
12000  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12001set dummy ${ac_tool_prefix}otool64; ac_word=$2
12002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003printf %s "checking for $ac_word... " >&6; }
12004if test ${ac_cv_prog_OTOOL64+y}
12005then :
12006  printf %s "(cached) " >&6
12007else $as_nop
12008  if test -n "$OTOOL64"; then
12009  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12010else
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014  IFS=$as_save_IFS
12015  case $as_dir in #(((
12016    '') as_dir=./ ;;
12017    */) ;;
12018    *) as_dir=$as_dir/ ;;
12019  esac
12020    for ac_exec_ext in '' $ac_executable_extensions; do
12021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12022    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12024    break 2
12025  fi
12026done
12027  done
12028IFS=$as_save_IFS
12029
12030fi
12031fi
12032OTOOL64=$ac_cv_prog_OTOOL64
12033if test -n "$OTOOL64"; then
12034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12035printf "%s\n" "$OTOOL64" >&6; }
12036else
12037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038printf "%s\n" "no" >&6; }
12039fi
12040
12041
12042fi
12043if test -z "$ac_cv_prog_OTOOL64"; then
12044  ac_ct_OTOOL64=$OTOOL64
12045  # Extract the first word of "otool64", so it can be a program name with args.
12046set dummy otool64; ac_word=$2
12047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048printf %s "checking for $ac_word... " >&6; }
12049if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12050then :
12051  printf %s "(cached) " >&6
12052else $as_nop
12053  if test -n "$ac_ct_OTOOL64"; then
12054  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12055else
12056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057for as_dir in $PATH
12058do
12059  IFS=$as_save_IFS
12060  case $as_dir in #(((
12061    '') as_dir=./ ;;
12062    */) ;;
12063    *) as_dir=$as_dir/ ;;
12064  esac
12065    for ac_exec_ext in '' $ac_executable_extensions; do
12066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12067    ac_cv_prog_ac_ct_OTOOL64="otool64"
12068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12069    break 2
12070  fi
12071done
12072  done
12073IFS=$as_save_IFS
12074
12075fi
12076fi
12077ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12078if test -n "$ac_ct_OTOOL64"; then
12079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12080printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12081else
12082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083printf "%s\n" "no" >&6; }
12084fi
12085
12086  if test "x$ac_ct_OTOOL64" = x; then
12087    OTOOL64=":"
12088  else
12089    case $cross_compiling:$ac_tool_warned in
12090yes:)
12091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12092printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12093ac_tool_warned=yes ;;
12094esac
12095    OTOOL64=$ac_ct_OTOOL64
12096  fi
12097else
12098  OTOOL64="$ac_cv_prog_OTOOL64"
12099fi
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12128printf %s "checking for -single_module linker flag... " >&6; }
12129if test ${lt_cv_apple_cc_single_mod+y}
12130then :
12131  printf %s "(cached) " >&6
12132else $as_nop
12133  lt_cv_apple_cc_single_mod=no
12134      if test -z "$LT_MULTI_MODULE"; then
12135	# By default we will add the -single_module flag. You can override
12136	# by either setting the environment variable LT_MULTI_MODULE
12137	# non-empty at configure time, or by adding -multi_module to the
12138	# link flags.
12139	rm -rf libconftest.dylib*
12140	echo "int foo(void){return 1;}" > conftest.c
12141	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12142-dynamiclib -Wl,-single_module conftest.c" >&5
12143	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12144	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12145        _lt_result=$?
12146	# If there is a non-empty error log, and "single_module"
12147	# appears in it, assume the flag caused a linker warning
12148        if test -s conftest.err && $GREP single_module conftest.err; then
12149	  cat conftest.err >&5
12150	# Otherwise, if the output was created with a 0 exit code from
12151	# the compiler, it worked.
12152	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12153	  lt_cv_apple_cc_single_mod=yes
12154	else
12155	  cat conftest.err >&5
12156	fi
12157	rm -rf libconftest.dylib*
12158	rm -f conftest.*
12159      fi
12160fi
12161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12162printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12163
12164    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12165printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12166if test ${lt_cv_ld_exported_symbols_list+y}
12167then :
12168  printf %s "(cached) " >&6
12169else $as_nop
12170  lt_cv_ld_exported_symbols_list=no
12171      save_LDFLAGS=$LDFLAGS
12172      echo "_main" > conftest.sym
12173      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12174      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175/* end confdefs.h.  */
12176
12177int
12178main (void)
12179{
12180
12181  ;
12182  return 0;
12183}
12184_ACEOF
12185if ac_fn_c_try_link "$LINENO"
12186then :
12187  lt_cv_ld_exported_symbols_list=yes
12188else $as_nop
12189  lt_cv_ld_exported_symbols_list=no
12190fi
12191rm -f core conftest.err conftest.$ac_objext conftest.beam \
12192    conftest$ac_exeext conftest.$ac_ext
12193	LDFLAGS=$save_LDFLAGS
12194
12195fi
12196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12197printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12198
12199    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12200printf %s "checking for -force_load linker flag... " >&6; }
12201if test ${lt_cv_ld_force_load+y}
12202then :
12203  printf %s "(cached) " >&6
12204else $as_nop
12205  lt_cv_ld_force_load=no
12206      cat > conftest.c << _LT_EOF
12207int forced_loaded() { return 2;}
12208_LT_EOF
12209      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12210      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12211      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12212      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12213      echo "$RANLIB libconftest.a" >&5
12214      $RANLIB libconftest.a 2>&5
12215      cat > conftest.c << _LT_EOF
12216int main() { return 0;}
12217_LT_EOF
12218      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12219      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12220      _lt_result=$?
12221      if test -s conftest.err && $GREP force_load conftest.err; then
12222	cat conftest.err >&5
12223      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12224	lt_cv_ld_force_load=yes
12225      else
12226	cat conftest.err >&5
12227      fi
12228        rm -f conftest.err libconftest.a conftest conftest.c
12229        rm -rf conftest.dSYM
12230
12231fi
12232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12233printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12234    case $host_os in
12235    rhapsody* | darwin1.[012])
12236      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12237    darwin1.*)
12238      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12239    darwin*)
12240      case $MACOSX_DEPLOYMENT_TARGET,$host in
12241        10.[012],*|,*powerpc*-darwin[5-8]*)
12242          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12243        *)
12244          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12245      esac
12246    ;;
12247  esac
12248    if test yes = "$lt_cv_apple_cc_single_mod"; then
12249      _lt_dar_single_mod='$single_module'
12250    fi
12251    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12252      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12253    else
12254      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12255    fi
12256    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12257      _lt_dsymutil='~$DSYMUTIL $lib || :'
12258    else
12259      _lt_dsymutil=
12260    fi
12261    ;;
12262  esac
12263
12264# func_munge_path_list VARIABLE PATH
12265# -----------------------------------
12266# VARIABLE is name of variable containing _space_ separated list of
12267# directories to be munged by the contents of PATH, which is string
12268# having a format:
12269# "DIR[:DIR]:"
12270#       string "DIR[ DIR]" will be prepended to VARIABLE
12271# ":DIR[:DIR]"
12272#       string "DIR[ DIR]" will be appended to VARIABLE
12273# "DIRP[:DIRP]::[DIRA:]DIRA"
12274#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12275#       "DIRA[ DIRA]" will be appended to VARIABLE
12276# "DIR[:DIR]"
12277#       VARIABLE will be replaced by "DIR[ DIR]"
12278func_munge_path_list ()
12279{
12280    case x$2 in
12281    x)
12282        ;;
12283    *:)
12284        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12285        ;;
12286    x:*)
12287        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12288        ;;
12289    *::*)
12290        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12291        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12292        ;;
12293    *)
12294        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12295        ;;
12296    esac
12297}
12298
12299ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12300"
12301if test "x$ac_cv_header_dlfcn_h" = xyes
12302then :
12303  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12304
12305fi
12306
12307
12308
12309
12310
12311# Set options
12312# Check whether --enable-static was given.
12313if test ${enable_static+y}
12314then :
12315  enableval=$enable_static; p=${PACKAGE-default}
12316    case $enableval in
12317    yes) enable_static=yes ;;
12318    no) enable_static=no ;;
12319    *)
12320     enable_static=no
12321      # Look at the argument we got.  We use all the common list separators.
12322      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12323      for pkg in $enableval; do
12324	IFS=$lt_save_ifs
12325	if test "X$pkg" = "X$p"; then
12326	  enable_static=yes
12327	fi
12328      done
12329      IFS=$lt_save_ifs
12330      ;;
12331    esac
12332else $as_nop
12333  enable_static=no
12334fi
12335
12336
12337
12338
12339
12340
12341
12342enable_dlopen=yes
12343
12344# Check whether --with-pic was given.
12345if test ${with_pic+y}
12346then :
12347  withval=$with_pic; lt_p=${PACKAGE-default}
12348    case $withval in
12349    yes|no) pic_mode=$withval ;;
12350    *)
12351      pic_mode=default
12352      # Look at the argument we got.  We use all the common list separators.
12353      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12354      for lt_pkg in $withval; do
12355	IFS=$lt_save_ifs
12356	if test "X$lt_pkg" = "X$lt_p"; then
12357	  pic_mode=yes
12358	fi
12359      done
12360      IFS=$lt_save_ifs
12361      ;;
12362    esac
12363else $as_nop
12364  pic_mode=yes
12365fi
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376  enable_win32_dll=no
12377
12378
12379            # Check whether --enable-shared was given.
12380if test ${enable_shared+y}
12381then :
12382  enableval=$enable_shared; p=${PACKAGE-default}
12383    case $enableval in
12384    yes) enable_shared=yes ;;
12385    no) enable_shared=no ;;
12386    *)
12387      enable_shared=no
12388      # Look at the argument we got.  We use all the common list separators.
12389      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12390      for pkg in $enableval; do
12391	IFS=$lt_save_ifs
12392	if test "X$pkg" = "X$p"; then
12393	  enable_shared=yes
12394	fi
12395      done
12396      IFS=$lt_save_ifs
12397      ;;
12398    esac
12399else $as_nop
12400  enable_shared=yes
12401fi
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413  # Check whether --enable-fast-install was given.
12414if test ${enable_fast_install+y}
12415then :
12416  enableval=$enable_fast_install; p=${PACKAGE-default}
12417    case $enableval in
12418    yes) enable_fast_install=yes ;;
12419    no) enable_fast_install=no ;;
12420    *)
12421      enable_fast_install=no
12422      # Look at the argument we got.  We use all the common list separators.
12423      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12424      for pkg in $enableval; do
12425	IFS=$lt_save_ifs
12426	if test "X$pkg" = "X$p"; then
12427	  enable_fast_install=yes
12428	fi
12429      done
12430      IFS=$lt_save_ifs
12431      ;;
12432    esac
12433else $as_nop
12434  enable_fast_install=yes
12435fi
12436
12437
12438
12439
12440
12441
12442
12443
12444  shared_archive_member_spec=
12445case $host,$enable_shared in
12446power*-*-aix[5-9]*,yes)
12447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12448printf %s "checking which variant of shared library versioning to provide... " >&6; }
12449
12450# Check whether --with-aix-soname was given.
12451if test ${with_aix_soname+y}
12452then :
12453  withval=$with_aix_soname; case $withval in
12454    aix|svr4|both)
12455      ;;
12456    *)
12457      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12458      ;;
12459    esac
12460    lt_cv_with_aix_soname=$with_aix_soname
12461else $as_nop
12462  if test ${lt_cv_with_aix_soname+y}
12463then :
12464  printf %s "(cached) " >&6
12465else $as_nop
12466  lt_cv_with_aix_soname=aix
12467fi
12468
12469    with_aix_soname=$lt_cv_with_aix_soname
12470fi
12471
12472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12473printf "%s\n" "$with_aix_soname" >&6; }
12474  if test aix != "$with_aix_soname"; then
12475    # For the AIX way of multilib, we name the shared archive member
12476    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12477    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12478    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12479    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12480    if test 64 = "${OBJECT_MODE-32}"; then
12481      shared_archive_member_spec=shr_64
12482    else
12483      shared_archive_member_spec=shr
12484    fi
12485  fi
12486  ;;
12487*)
12488  with_aix_soname=aix
12489  ;;
12490esac
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501# This can be used to rebuild libtool when needed
12502LIBTOOL_DEPS=$ltmain
12503
12504# Always use our own libtool.
12505LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536test -z "$LN_S" && LN_S="ln -s"
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551if test -n "${ZSH_VERSION+set}"; then
12552   setopt NO_GLOB_SUBST
12553fi
12554
12555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12556printf %s "checking for objdir... " >&6; }
12557if test ${lt_cv_objdir+y}
12558then :
12559  printf %s "(cached) " >&6
12560else $as_nop
12561  rm -f .libs 2>/dev/null
12562mkdir .libs 2>/dev/null
12563if test -d .libs; then
12564  lt_cv_objdir=.libs
12565else
12566  # MS-DOS does not allow filenames that begin with a dot.
12567  lt_cv_objdir=_libs
12568fi
12569rmdir .libs 2>/dev/null
12570fi
12571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12572printf "%s\n" "$lt_cv_objdir" >&6; }
12573objdir=$lt_cv_objdir
12574
12575
12576
12577
12578
12579printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12580
12581
12582
12583
12584case $host_os in
12585aix3*)
12586  # AIX sometimes has problems with the GCC collect2 program.  For some
12587  # reason, if we set the COLLECT_NAMES environment variable, the problems
12588  # vanish in a puff of smoke.
12589  if test set != "${COLLECT_NAMES+set}"; then
12590    COLLECT_NAMES=
12591    export COLLECT_NAMES
12592  fi
12593  ;;
12594esac
12595
12596# Global variables:
12597ofile=libtool
12598can_build_shared=yes
12599
12600# All known linkers require a '.a' archive for static linking (except MSVC and
12601# ICC, which need '.lib').
12602libext=a
12603
12604with_gnu_ld=$lt_cv_prog_gnu_ld
12605
12606old_CC=$CC
12607old_CFLAGS=$CFLAGS
12608
12609# Set sane defaults for various variables
12610test -z "$CC" && CC=cc
12611test -z "$LTCC" && LTCC=$CC
12612test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12613test -z "$LD" && LD=ld
12614test -z "$ac_objext" && ac_objext=o
12615
12616func_cc_basename $compiler
12617cc_basename=$func_cc_basename_result
12618
12619
12620# Only perform the check for file, if the check method requires it
12621test -z "$MAGIC_CMD" && MAGIC_CMD=file
12622case $deplibs_check_method in
12623file_magic*)
12624  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12625    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12626printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12627if test ${lt_cv_path_MAGIC_CMD+y}
12628then :
12629  printf %s "(cached) " >&6
12630else $as_nop
12631  case $MAGIC_CMD in
12632[\\/*] |  ?:[\\/]*)
12633  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12634  ;;
12635*)
12636  lt_save_MAGIC_CMD=$MAGIC_CMD
12637  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12638  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12639  for ac_dir in $ac_dummy; do
12640    IFS=$lt_save_ifs
12641    test -z "$ac_dir" && ac_dir=.
12642    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12643      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12644      if test -n "$file_magic_test_file"; then
12645	case $deplibs_check_method in
12646	"file_magic "*)
12647	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12648	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12649	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12650	    $EGREP "$file_magic_regex" > /dev/null; then
12651	    :
12652	  else
12653	    cat <<_LT_EOF 1>&2
12654
12655*** Warning: the command libtool uses to detect shared libraries,
12656*** $file_magic_cmd, produces output that libtool cannot recognize.
12657*** The result is that libtool may fail to recognize shared libraries
12658*** as such.  This will affect the creation of libtool libraries that
12659*** depend on shared libraries, but programs linked with such libtool
12660*** libraries will work regardless of this problem.  Nevertheless, you
12661*** may want to report the problem to your system manager and/or to
12662*** bug-libtool@gnu.org
12663
12664_LT_EOF
12665	  fi ;;
12666	esac
12667      fi
12668      break
12669    fi
12670  done
12671  IFS=$lt_save_ifs
12672  MAGIC_CMD=$lt_save_MAGIC_CMD
12673  ;;
12674esac
12675fi
12676
12677MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12678if test -n "$MAGIC_CMD"; then
12679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12680printf "%s\n" "$MAGIC_CMD" >&6; }
12681else
12682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683printf "%s\n" "no" >&6; }
12684fi
12685
12686
12687
12688
12689
12690if test -z "$lt_cv_path_MAGIC_CMD"; then
12691  if test -n "$ac_tool_prefix"; then
12692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12693printf %s "checking for file... " >&6; }
12694if test ${lt_cv_path_MAGIC_CMD+y}
12695then :
12696  printf %s "(cached) " >&6
12697else $as_nop
12698  case $MAGIC_CMD in
12699[\\/*] |  ?:[\\/]*)
12700  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12701  ;;
12702*)
12703  lt_save_MAGIC_CMD=$MAGIC_CMD
12704  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12705  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12706  for ac_dir in $ac_dummy; do
12707    IFS=$lt_save_ifs
12708    test -z "$ac_dir" && ac_dir=.
12709    if test -f "$ac_dir/file"; then
12710      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12711      if test -n "$file_magic_test_file"; then
12712	case $deplibs_check_method in
12713	"file_magic "*)
12714	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12715	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12716	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12717	    $EGREP "$file_magic_regex" > /dev/null; then
12718	    :
12719	  else
12720	    cat <<_LT_EOF 1>&2
12721
12722*** Warning: the command libtool uses to detect shared libraries,
12723*** $file_magic_cmd, produces output that libtool cannot recognize.
12724*** The result is that libtool may fail to recognize shared libraries
12725*** as such.  This will affect the creation of libtool libraries that
12726*** depend on shared libraries, but programs linked with such libtool
12727*** libraries will work regardless of this problem.  Nevertheless, you
12728*** may want to report the problem to your system manager and/or to
12729*** bug-libtool@gnu.org
12730
12731_LT_EOF
12732	  fi ;;
12733	esac
12734      fi
12735      break
12736    fi
12737  done
12738  IFS=$lt_save_ifs
12739  MAGIC_CMD=$lt_save_MAGIC_CMD
12740  ;;
12741esac
12742fi
12743
12744MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12745if test -n "$MAGIC_CMD"; then
12746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12747printf "%s\n" "$MAGIC_CMD" >&6; }
12748else
12749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750printf "%s\n" "no" >&6; }
12751fi
12752
12753
12754  else
12755    MAGIC_CMD=:
12756  fi
12757fi
12758
12759  fi
12760  ;;
12761esac
12762
12763# Use C for the default configuration in the libtool script
12764
12765lt_save_CC=$CC
12766ac_ext=c
12767ac_cpp='$CPP $CPPFLAGS'
12768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12770ac_compiler_gnu=$ac_cv_c_compiler_gnu
12771
12772
12773# Source file extension for C test sources.
12774ac_ext=c
12775
12776# Object file extension for compiled C test sources.
12777objext=o
12778objext=$objext
12779
12780# Code to be used in simple compile tests
12781lt_simple_compile_test_code="int some_variable = 0;"
12782
12783# Code to be used in simple link tests
12784lt_simple_link_test_code='int main(){return(0);}'
12785
12786
12787
12788
12789
12790
12791
12792# If no C compiler was specified, use CC.
12793LTCC=${LTCC-"$CC"}
12794
12795# If no C compiler flags were specified, use CFLAGS.
12796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12797
12798# Allow CC to be a program name with arguments.
12799compiler=$CC
12800
12801# Save the default compiler, since it gets overwritten when the other
12802# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12803compiler_DEFAULT=$CC
12804
12805# save warnings/boilerplate of simple test code
12806ac_outfile=conftest.$ac_objext
12807echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12809_lt_compiler_boilerplate=`cat conftest.err`
12810$RM conftest*
12811
12812ac_outfile=conftest.$ac_objext
12813echo "$lt_simple_link_test_code" >conftest.$ac_ext
12814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12815_lt_linker_boilerplate=`cat conftest.err`
12816$RM -r conftest*
12817
12818
12819## CAVEAT EMPTOR:
12820## There is no encapsulation within the following macros, do not change
12821## the running order or otherwise move them around unless you know exactly
12822## what you are doing...
12823if test -n "$compiler"; then
12824
12825lt_prog_compiler_no_builtin_flag=
12826
12827if test yes = "$GCC"; then
12828  case $cc_basename in
12829  nvcc*)
12830    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12831  *)
12832    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12833  esac
12834
12835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12836printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12837if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12838then :
12839  printf %s "(cached) " >&6
12840else $as_nop
12841  lt_cv_prog_compiler_rtti_exceptions=no
12842   ac_outfile=conftest.$ac_objext
12843   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12844   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12845   # Insert the option either (1) after the last *FLAGS variable, or
12846   # (2) before a word containing "conftest.", or (3) at the end.
12847   # Note that $ac_compile itself does not contain backslashes and begins
12848   # with a dollar sign (not a hyphen), so the echo should work correctly.
12849   # The option is referenced via a variable to avoid confusing sed.
12850   lt_compile=`echo "$ac_compile" | $SED \
12851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12853   -e 's:$: $lt_compiler_flag:'`
12854   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12855   (eval "$lt_compile" 2>conftest.err)
12856   ac_status=$?
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   if (exit $ac_status) && test -s "$ac_outfile"; then
12860     # The compiler can only warn and ignore the option if not recognized
12861     # So say no if there are warnings other than the usual output.
12862     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12863     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12864     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12865       lt_cv_prog_compiler_rtti_exceptions=yes
12866     fi
12867   fi
12868   $RM conftest*
12869
12870fi
12871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12872printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12873
12874if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12875    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12876else
12877    :
12878fi
12879
12880fi
12881
12882
12883
12884
12885
12886
12887  lt_prog_compiler_wl=
12888lt_prog_compiler_pic=
12889lt_prog_compiler_static=
12890
12891
12892  if test yes = "$GCC"; then
12893    lt_prog_compiler_wl='-Wl,'
12894    lt_prog_compiler_static='-static'
12895
12896    case $host_os in
12897      aix*)
12898      # All AIX code is PIC.
12899      if test ia64 = "$host_cpu"; then
12900	# AIX 5 now supports IA64 processor
12901	lt_prog_compiler_static='-Bstatic'
12902      fi
12903      lt_prog_compiler_pic='-fPIC'
12904      ;;
12905
12906    amigaos*)
12907      case $host_cpu in
12908      powerpc)
12909            # see comment about AmigaOS4 .so support
12910            lt_prog_compiler_pic='-fPIC'
12911        ;;
12912      m68k)
12913            # FIXME: we need at least 68020 code to build shared libraries, but
12914            # adding the '-m68020' flag to GCC prevents building anything better,
12915            # like '-m68040'.
12916            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12917        ;;
12918      esac
12919      ;;
12920
12921    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12922      # PIC is the default for these OSes.
12923      ;;
12924
12925    mingw* | cygwin* | pw32* | os2* | cegcc*)
12926      # This hack is so that the source file can tell whether it is being
12927      # built for inclusion in a dll (and should export symbols for example).
12928      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12929      # (--disable-auto-import) libraries
12930      lt_prog_compiler_pic='-DDLL_EXPORT'
12931      case $host_os in
12932      os2*)
12933	lt_prog_compiler_static='$wl-static'
12934	;;
12935      esac
12936      ;;
12937
12938    darwin* | rhapsody*)
12939      # PIC is the default on this platform
12940      # Common symbols not allowed in MH_DYLIB files
12941      lt_prog_compiler_pic='-fno-common'
12942      ;;
12943
12944    haiku*)
12945      # PIC is the default for Haiku.
12946      # The "-static" flag exists, but is broken.
12947      lt_prog_compiler_static=
12948      ;;
12949
12950    hpux*)
12951      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12952      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12953      # sets the default TLS model and affects inlining.
12954      case $host_cpu in
12955      hppa*64*)
12956	# +Z the default
12957	;;
12958      *)
12959	lt_prog_compiler_pic='-fPIC'
12960	;;
12961      esac
12962      ;;
12963
12964    interix[3-9]*)
12965      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12966      # Instead, we relocate shared libraries at runtime.
12967      ;;
12968
12969    msdosdjgpp*)
12970      # Just because we use GCC doesn't mean we suddenly get shared libraries
12971      # on systems that don't support them.
12972      lt_prog_compiler_can_build_shared=no
12973      enable_shared=no
12974      ;;
12975
12976    *nto* | *qnx*)
12977      # QNX uses GNU C++, but need to define -shared option too, otherwise
12978      # it will coredump.
12979      lt_prog_compiler_pic='-fPIC -shared'
12980      ;;
12981
12982    sysv4*MP*)
12983      if test -d /usr/nec; then
12984	lt_prog_compiler_pic=-Kconform_pic
12985      fi
12986      ;;
12987
12988    *)
12989      lt_prog_compiler_pic='-fPIC'
12990      ;;
12991    esac
12992
12993    case $cc_basename in
12994    nvcc*) # Cuda Compiler Driver 2.2
12995      lt_prog_compiler_wl='-Xlinker '
12996      if test -n "$lt_prog_compiler_pic"; then
12997        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12998      fi
12999      ;;
13000    esac
13001  else
13002    # PORTME Check for flag to pass linker flags through the system compiler.
13003    case $host_os in
13004    aix*)
13005      lt_prog_compiler_wl='-Wl,'
13006      if test ia64 = "$host_cpu"; then
13007	# AIX 5 now supports IA64 processor
13008	lt_prog_compiler_static='-Bstatic'
13009      else
13010	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13011      fi
13012      ;;
13013
13014    darwin* | rhapsody*)
13015      # PIC is the default on this platform
13016      # Common symbols not allowed in MH_DYLIB files
13017      lt_prog_compiler_pic='-fno-common'
13018      case $cc_basename in
13019      nagfor*)
13020        # NAG Fortran compiler
13021        lt_prog_compiler_wl='-Wl,-Wl,,'
13022        lt_prog_compiler_pic='-PIC'
13023        lt_prog_compiler_static='-Bstatic'
13024        ;;
13025      esac
13026      ;;
13027
13028    mingw* | cygwin* | pw32* | os2* | cegcc*)
13029      # This hack is so that the source file can tell whether it is being
13030      # built for inclusion in a dll (and should export symbols for example).
13031      lt_prog_compiler_pic='-DDLL_EXPORT'
13032      case $host_os in
13033      os2*)
13034	lt_prog_compiler_static='$wl-static'
13035	;;
13036      esac
13037      ;;
13038
13039    hpux9* | hpux10* | hpux11*)
13040      lt_prog_compiler_wl='-Wl,'
13041      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13042      # not for PA HP-UX.
13043      case $host_cpu in
13044      hppa*64*|ia64*)
13045	# +Z the default
13046	;;
13047      *)
13048	lt_prog_compiler_pic='+Z'
13049	;;
13050      esac
13051      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13052      lt_prog_compiler_static='$wl-a ${wl}archive'
13053      ;;
13054
13055    irix5* | irix6* | nonstopux*)
13056      lt_prog_compiler_wl='-Wl,'
13057      # PIC (with -KPIC) is the default.
13058      lt_prog_compiler_static='-non_shared'
13059      ;;
13060
13061    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13062      case $cc_basename in
13063      # old Intel for x86_64, which still supported -KPIC.
13064      ecc*)
13065	lt_prog_compiler_wl='-Wl,'
13066	lt_prog_compiler_pic='-KPIC'
13067	lt_prog_compiler_static='-static'
13068        ;;
13069      # flang / f18. f95 an alias for gfortran or flang on Debian
13070      flang* | f18* | f95*)
13071	lt_prog_compiler_wl='-Wl,'
13072	lt_prog_compiler_pic='-fPIC'
13073	lt_prog_compiler_static='-static'
13074        ;;
13075      # icc used to be incompatible with GCC.
13076      # ICC 10 doesn't accept -KPIC any more.
13077      icc* | ifort*)
13078	lt_prog_compiler_wl='-Wl,'
13079	lt_prog_compiler_pic='-fPIC'
13080	lt_prog_compiler_static='-static'
13081        ;;
13082      # Lahey Fortran 8.1.
13083      lf95*)
13084	lt_prog_compiler_wl='-Wl,'
13085	lt_prog_compiler_pic='--shared'
13086	lt_prog_compiler_static='--static'
13087	;;
13088      nagfor*)
13089	# NAG Fortran compiler
13090	lt_prog_compiler_wl='-Wl,-Wl,,'
13091	lt_prog_compiler_pic='-PIC'
13092	lt_prog_compiler_static='-Bstatic'
13093	;;
13094      tcc*)
13095	# Fabrice Bellard et al's Tiny C Compiler
13096	lt_prog_compiler_wl='-Wl,'
13097	lt_prog_compiler_pic='-fPIC'
13098	lt_prog_compiler_static='-static'
13099	;;
13100      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13101        # Portland Group compilers (*not* the Pentium gcc compiler,
13102	# which looks to be a dead project)
13103	lt_prog_compiler_wl='-Wl,'
13104	lt_prog_compiler_pic='-fpic'
13105	lt_prog_compiler_static='-Bstatic'
13106        ;;
13107      ccc*)
13108        lt_prog_compiler_wl='-Wl,'
13109        # All Alpha code is PIC.
13110        lt_prog_compiler_static='-non_shared'
13111        ;;
13112      xl* | bgxl* | bgf* | mpixl*)
13113	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13114	lt_prog_compiler_wl='-Wl,'
13115	lt_prog_compiler_pic='-qpic'
13116	lt_prog_compiler_static='-qstaticlink'
13117	;;
13118      *)
13119	case `$CC -V 2>&1 | $SED 5q` in
13120	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13121	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13122	  lt_prog_compiler_pic='-KPIC'
13123	  lt_prog_compiler_static='-Bstatic'
13124	  lt_prog_compiler_wl=''
13125	  ;;
13126	*Sun\ F* | *Sun*Fortran*)
13127	  lt_prog_compiler_pic='-KPIC'
13128	  lt_prog_compiler_static='-Bstatic'
13129	  lt_prog_compiler_wl='-Qoption ld '
13130	  ;;
13131	*Sun\ C*)
13132	  # Sun C 5.9
13133	  lt_prog_compiler_pic='-KPIC'
13134	  lt_prog_compiler_static='-Bstatic'
13135	  lt_prog_compiler_wl='-Wl,'
13136	  ;;
13137        *Intel*\ [CF]*Compiler*)
13138	  lt_prog_compiler_wl='-Wl,'
13139	  lt_prog_compiler_pic='-fPIC'
13140	  lt_prog_compiler_static='-static'
13141	  ;;
13142	*Portland\ Group*)
13143	  lt_prog_compiler_wl='-Wl,'
13144	  lt_prog_compiler_pic='-fpic'
13145	  lt_prog_compiler_static='-Bstatic'
13146	  ;;
13147	esac
13148	;;
13149      esac
13150      ;;
13151
13152    newsos6)
13153      lt_prog_compiler_pic='-KPIC'
13154      lt_prog_compiler_static='-Bstatic'
13155      ;;
13156
13157    *nto* | *qnx*)
13158      # QNX uses GNU C++, but need to define -shared option too, otherwise
13159      # it will coredump.
13160      lt_prog_compiler_pic='-fPIC -shared'
13161      ;;
13162
13163    osf3* | osf4* | osf5*)
13164      lt_prog_compiler_wl='-Wl,'
13165      # All OSF/1 code is PIC.
13166      lt_prog_compiler_static='-non_shared'
13167      ;;
13168
13169    rdos*)
13170      lt_prog_compiler_static='-non_shared'
13171      ;;
13172
13173    solaris*)
13174      lt_prog_compiler_pic='-KPIC'
13175      lt_prog_compiler_static='-Bstatic'
13176      case $cc_basename in
13177      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13178	lt_prog_compiler_wl='-Qoption ld ';;
13179      *)
13180	lt_prog_compiler_wl='-Wl,';;
13181      esac
13182      ;;
13183
13184    sunos4*)
13185      lt_prog_compiler_wl='-Qoption ld '
13186      lt_prog_compiler_pic='-PIC'
13187      lt_prog_compiler_static='-Bstatic'
13188      ;;
13189
13190    sysv4 | sysv4.2uw2* | sysv4.3*)
13191      lt_prog_compiler_wl='-Wl,'
13192      lt_prog_compiler_pic='-KPIC'
13193      lt_prog_compiler_static='-Bstatic'
13194      ;;
13195
13196    sysv4*MP*)
13197      if test -d /usr/nec; then
13198	lt_prog_compiler_pic='-Kconform_pic'
13199	lt_prog_compiler_static='-Bstatic'
13200      fi
13201      ;;
13202
13203    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13204      lt_prog_compiler_wl='-Wl,'
13205      lt_prog_compiler_pic='-KPIC'
13206      lt_prog_compiler_static='-Bstatic'
13207      ;;
13208
13209    unicos*)
13210      lt_prog_compiler_wl='-Wl,'
13211      lt_prog_compiler_can_build_shared=no
13212      ;;
13213
13214    uts4*)
13215      lt_prog_compiler_pic='-pic'
13216      lt_prog_compiler_static='-Bstatic'
13217      ;;
13218
13219    *)
13220      lt_prog_compiler_can_build_shared=no
13221      ;;
13222    esac
13223  fi
13224
13225case $host_os in
13226  # For platforms that do not support PIC, -DPIC is meaningless:
13227  *djgpp*)
13228    lt_prog_compiler_pic=
13229    ;;
13230  *)
13231    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13232    ;;
13233esac
13234
13235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13236printf %s "checking for $compiler option to produce PIC... " >&6; }
13237if test ${lt_cv_prog_compiler_pic+y}
13238then :
13239  printf %s "(cached) " >&6
13240else $as_nop
13241  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13242fi
13243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13244printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13245lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13246
13247#
13248# Check to make sure the PIC flag actually works.
13249#
13250if test -n "$lt_prog_compiler_pic"; then
13251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13252printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13253if test ${lt_cv_prog_compiler_pic_works+y}
13254then :
13255  printf %s "(cached) " >&6
13256else $as_nop
13257  lt_cv_prog_compiler_pic_works=no
13258   ac_outfile=conftest.$ac_objext
13259   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13260   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13261   # Insert the option either (1) after the last *FLAGS variable, or
13262   # (2) before a word containing "conftest.", or (3) at the end.
13263   # Note that $ac_compile itself does not contain backslashes and begins
13264   # with a dollar sign (not a hyphen), so the echo should work correctly.
13265   # The option is referenced via a variable to avoid confusing sed.
13266   lt_compile=`echo "$ac_compile" | $SED \
13267   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13269   -e 's:$: $lt_compiler_flag:'`
13270   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13271   (eval "$lt_compile" 2>conftest.err)
13272   ac_status=$?
13273   cat conftest.err >&5
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   if (exit $ac_status) && test -s "$ac_outfile"; then
13276     # The compiler can only warn and ignore the option if not recognized
13277     # So say no if there are warnings other than the usual output.
13278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13279     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13280     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13281       lt_cv_prog_compiler_pic_works=yes
13282     fi
13283   fi
13284   $RM conftest*
13285
13286fi
13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13288printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13289
13290if test yes = "$lt_cv_prog_compiler_pic_works"; then
13291    case $lt_prog_compiler_pic in
13292     "" | " "*) ;;
13293     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13294     esac
13295else
13296    lt_prog_compiler_pic=
13297     lt_prog_compiler_can_build_shared=no
13298fi
13299
13300fi
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312#
13313# Check to make sure the static flag actually works.
13314#
13315wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13317printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13318if test ${lt_cv_prog_compiler_static_works+y}
13319then :
13320  printf %s "(cached) " >&6
13321else $as_nop
13322  lt_cv_prog_compiler_static_works=no
13323   save_LDFLAGS=$LDFLAGS
13324   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13325   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13326   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13327     # The linker can only warn and ignore the option if not recognized
13328     # So say no if there are warnings
13329     if test -s conftest.err; then
13330       # Append any errors to the config.log.
13331       cat conftest.err 1>&5
13332       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13333       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13334       if diff conftest.exp conftest.er2 >/dev/null; then
13335         lt_cv_prog_compiler_static_works=yes
13336       fi
13337     else
13338       lt_cv_prog_compiler_static_works=yes
13339     fi
13340   fi
13341   $RM -r conftest*
13342   LDFLAGS=$save_LDFLAGS
13343
13344fi
13345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13346printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13347
13348if test yes = "$lt_cv_prog_compiler_static_works"; then
13349    :
13350else
13351    lt_prog_compiler_static=
13352fi
13353
13354
13355
13356
13357
13358
13359
13360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13361printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13362if test ${lt_cv_prog_compiler_c_o+y}
13363then :
13364  printf %s "(cached) " >&6
13365else $as_nop
13366  lt_cv_prog_compiler_c_o=no
13367   $RM -r conftest 2>/dev/null
13368   mkdir conftest
13369   cd conftest
13370   mkdir out
13371   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13372
13373   lt_compiler_flag="-o out/conftest2.$ac_objext"
13374   # Insert the option either (1) after the last *FLAGS variable, or
13375   # (2) before a word containing "conftest.", or (3) at the end.
13376   # Note that $ac_compile itself does not contain backslashes and begins
13377   # with a dollar sign (not a hyphen), so the echo should work correctly.
13378   lt_compile=`echo "$ac_compile" | $SED \
13379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13381   -e 's:$: $lt_compiler_flag:'`
13382   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13383   (eval "$lt_compile" 2>out/conftest.err)
13384   ac_status=$?
13385   cat out/conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13388   then
13389     # The compiler can only warn and ignore the option if not recognized
13390     # So say no if there are warnings
13391     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13392     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13393     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13394       lt_cv_prog_compiler_c_o=yes
13395     fi
13396   fi
13397   chmod u+w . 2>&5
13398   $RM conftest*
13399   # SGI C++ compiler will create directory out/ii_files/ for
13400   # template instantiation
13401   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13402   $RM out/* && rmdir out
13403   cd ..
13404   $RM -r conftest
13405   $RM conftest*
13406
13407fi
13408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13409printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13410
13411
13412
13413
13414
13415
13416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13417printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13418if test ${lt_cv_prog_compiler_c_o+y}
13419then :
13420  printf %s "(cached) " >&6
13421else $as_nop
13422  lt_cv_prog_compiler_c_o=no
13423   $RM -r conftest 2>/dev/null
13424   mkdir conftest
13425   cd conftest
13426   mkdir out
13427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13428
13429   lt_compiler_flag="-o out/conftest2.$ac_objext"
13430   # Insert the option either (1) after the last *FLAGS variable, or
13431   # (2) before a word containing "conftest.", or (3) at the end.
13432   # Note that $ac_compile itself does not contain backslashes and begins
13433   # with a dollar sign (not a hyphen), so the echo should work correctly.
13434   lt_compile=`echo "$ac_compile" | $SED \
13435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13437   -e 's:$: $lt_compiler_flag:'`
13438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13439   (eval "$lt_compile" 2>out/conftest.err)
13440   ac_status=$?
13441   cat out/conftest.err >&5
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13444   then
13445     # The compiler can only warn and ignore the option if not recognized
13446     # So say no if there are warnings
13447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13450       lt_cv_prog_compiler_c_o=yes
13451     fi
13452   fi
13453   chmod u+w . 2>&5
13454   $RM conftest*
13455   # SGI C++ compiler will create directory out/ii_files/ for
13456   # template instantiation
13457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13458   $RM out/* && rmdir out
13459   cd ..
13460   $RM -r conftest
13461   $RM conftest*
13462
13463fi
13464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13465printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13466
13467
13468
13469
13470hard_links=nottested
13471if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13472  # do not overwrite the value of need_locks provided by the user
13473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13474printf %s "checking if we can lock with hard links... " >&6; }
13475  hard_links=yes
13476  $RM conftest*
13477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13478  touch conftest.a
13479  ln conftest.a conftest.b 2>&5 || hard_links=no
13480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13482printf "%s\n" "$hard_links" >&6; }
13483  if test no = "$hard_links"; then
13484    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13485printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13486    need_locks=warn
13487  fi
13488else
13489  need_locks=no
13490fi
13491
13492
13493
13494
13495
13496
13497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13498printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13499
13500  runpath_var=
13501  allow_undefined_flag=
13502  always_export_symbols=no
13503  archive_cmds=
13504  archive_expsym_cmds=
13505  compiler_needs_object=no
13506  enable_shared_with_static_runtimes=no
13507  export_dynamic_flag_spec=
13508  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13509  hardcode_automatic=no
13510  hardcode_direct=no
13511  hardcode_direct_absolute=no
13512  hardcode_libdir_flag_spec=
13513  hardcode_libdir_separator=
13514  hardcode_minus_L=no
13515  hardcode_shlibpath_var=unsupported
13516  inherit_rpath=no
13517  link_all_deplibs=unknown
13518  module_cmds=
13519  module_expsym_cmds=
13520  old_archive_from_new_cmds=
13521  old_archive_from_expsyms_cmds=
13522  thread_safe_flag_spec=
13523  whole_archive_flag_spec=
13524  # include_expsyms should be a list of space-separated symbols to be *always*
13525  # included in the symbol list
13526  include_expsyms=
13527  # exclude_expsyms can be an extended regexp of symbols to exclude
13528  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13529  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13530  # as well as any symbol that contains 'd'.
13531  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13532  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13533  # platforms (ab)use it in PIC code, but their linkers get confused if
13534  # the symbol is explicitly referenced.  Since portable code cannot
13535  # rely on this symbol name, it's probably fine to never include it in
13536  # preloaded symbol tables.
13537  # Exclude shared library initialization/finalization symbols.
13538  extract_expsyms_cmds=
13539
13540  case $host_os in
13541  cygwin* | mingw* | pw32* | cegcc*)
13542    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13543    # When not using gcc, we currently assume that we are using
13544    # Microsoft Visual C++ or Intel C++ Compiler.
13545    if test yes != "$GCC"; then
13546      with_gnu_ld=no
13547    fi
13548    ;;
13549  interix*)
13550    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13551    with_gnu_ld=yes
13552    ;;
13553  openbsd* | bitrig*)
13554    with_gnu_ld=no
13555    ;;
13556  linux* | k*bsd*-gnu | gnu*)
13557    link_all_deplibs=no
13558    ;;
13559  esac
13560
13561  ld_shlibs=yes
13562
13563  # On some targets, GNU ld is compatible enough with the native linker
13564  # that we're better off using the native interface for both.
13565  lt_use_gnu_ld_interface=no
13566  if test yes = "$with_gnu_ld"; then
13567    case $host_os in
13568      aix*)
13569	# The AIX port of GNU ld has always aspired to compatibility
13570	# with the native linker.  However, as the warning in the GNU ld
13571	# block says, versions before 2.19.5* couldn't really create working
13572	# shared libraries, regardless of the interface used.
13573	case `$LD -v 2>&1` in
13574	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13575	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13576	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13577	  *)
13578	    lt_use_gnu_ld_interface=yes
13579	    ;;
13580	esac
13581	;;
13582      *)
13583	lt_use_gnu_ld_interface=yes
13584	;;
13585    esac
13586  fi
13587
13588  if test yes = "$lt_use_gnu_ld_interface"; then
13589    # If archive_cmds runs LD, not CC, wlarc should be empty
13590    wlarc='$wl'
13591
13592    # Set some defaults for GNU ld with shared library support. These
13593    # are reset later if shared libraries are not supported. Putting them
13594    # here allows them to be overridden if necessary.
13595    runpath_var=LD_RUN_PATH
13596    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13597    export_dynamic_flag_spec='$wl--export-dynamic'
13598    # ancient GNU ld didn't support --whole-archive et. al.
13599    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13600      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13601    else
13602      whole_archive_flag_spec=
13603    fi
13604    supports_anon_versioning=no
13605    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13606      *GNU\ gold*) supports_anon_versioning=yes ;;
13607      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13608      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13609      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13610      *\ 2.11.*) ;; # other 2.11 versions
13611      *) supports_anon_versioning=yes ;;
13612    esac
13613
13614    # See if GNU ld supports shared libraries.
13615    case $host_os in
13616    aix[3-9]*)
13617      # On AIX/PPC, the GNU linker is very broken
13618      if test ia64 != "$host_cpu"; then
13619	ld_shlibs=no
13620	cat <<_LT_EOF 1>&2
13621
13622*** Warning: the GNU linker, at least up to release 2.19, is reported
13623*** to be unable to reliably create shared libraries on AIX.
13624*** Therefore, libtool is disabling shared libraries support.  If you
13625*** really care for shared libraries, you may want to install binutils
13626*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13627*** You will then need to restart the configuration process.
13628
13629_LT_EOF
13630      fi
13631      ;;
13632
13633    amigaos*)
13634      case $host_cpu in
13635      powerpc)
13636            # see comment about AmigaOS4 .so support
13637            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13638            archive_expsym_cmds=''
13639        ;;
13640      m68k)
13641            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)'
13642            hardcode_libdir_flag_spec='-L$libdir'
13643            hardcode_minus_L=yes
13644        ;;
13645      esac
13646      ;;
13647
13648    beos*)
13649      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13650	allow_undefined_flag=unsupported
13651	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13652	# support --undefined.  This deserves some investigation.  FIXME
13653	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13654      else
13655	ld_shlibs=no
13656      fi
13657      ;;
13658
13659    cygwin* | mingw* | pw32* | cegcc*)
13660      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13661      # as there is no search path for DLLs.
13662      hardcode_libdir_flag_spec='-L$libdir'
13663      export_dynamic_flag_spec='$wl--export-all-symbols'
13664      allow_undefined_flag=unsupported
13665      always_export_symbols=no
13666      enable_shared_with_static_runtimes=yes
13667      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'
13668      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13669
13670      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13671        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13672	# If the export-symbols file already is a .def file, use it as
13673	# is; otherwise, prepend EXPORTS...
13674	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13675          cp $export_symbols $output_objdir/$soname.def;
13676        else
13677          echo EXPORTS > $output_objdir/$soname.def;
13678          cat $export_symbols >> $output_objdir/$soname.def;
13679        fi~
13680        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13681      else
13682	ld_shlibs=no
13683      fi
13684      ;;
13685
13686    haiku*)
13687      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13688      link_all_deplibs=yes
13689      ;;
13690
13691    os2*)
13692      hardcode_libdir_flag_spec='-L$libdir'
13693      hardcode_minus_L=yes
13694      allow_undefined_flag=unsupported
13695      shrext_cmds=.dll
13696      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13697	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13698	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13699	$ECHO EXPORTS >> $output_objdir/$libname.def~
13700	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13701	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13702	emximp -o $lib $output_objdir/$libname.def'
13703      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13704	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13705	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13706	$ECHO EXPORTS >> $output_objdir/$libname.def~
13707	prefix_cmds="$SED"~
13708	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13709	  prefix_cmds="$prefix_cmds -e 1d";
13710	fi~
13711	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13712	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13713	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13714	emximp -o $lib $output_objdir/$libname.def'
13715      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13716      enable_shared_with_static_runtimes=yes
13717      file_list_spec='@'
13718      ;;
13719
13720    interix[3-9]*)
13721      hardcode_direct=no
13722      hardcode_shlibpath_var=no
13723      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13724      export_dynamic_flag_spec='$wl-E'
13725      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13726      # Instead, shared libraries are loaded at an image base (0x10000000 by
13727      # default) and relocated if they conflict, which is a slow very memory
13728      # consuming and fragmenting process.  To avoid this, we pick a random,
13729      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13730      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13731      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13732      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'
13733      ;;
13734
13735    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13736      tmp_diet=no
13737      if test linux-dietlibc = "$host_os"; then
13738	case $cc_basename in
13739	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13740	esac
13741      fi
13742      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13743	 && test no = "$tmp_diet"
13744      then
13745	tmp_addflag=' $pic_flag'
13746	tmp_sharedflag='-shared'
13747	case $cc_basename,$host_cpu in
13748        pgcc*)				# Portland Group C compiler
13749	  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'
13750	  tmp_addflag=' $pic_flag'
13751	  ;;
13752	pgf77* | pgf90* | pgf95* | pgfortran*)
13753					# Portland Group f77 and f90 compilers
13754	  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'
13755	  tmp_addflag=' $pic_flag -Mnomain' ;;
13756	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13757	  tmp_addflag=' -i_dynamic' ;;
13758	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13759	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13760	ifc* | ifort*)			# Intel Fortran compiler
13761	  tmp_addflag=' -nofor_main' ;;
13762	lf95*)				# Lahey Fortran 8.1
13763	  whole_archive_flag_spec=
13764	  tmp_sharedflag='--shared' ;;
13765        nagfor*)                        # NAGFOR 5.3
13766          tmp_sharedflag='-Wl,-shared' ;;
13767	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13768	  tmp_sharedflag='-qmkshrobj'
13769	  tmp_addflag= ;;
13770	nvcc*)	# Cuda Compiler Driver 2.2
13771	  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'
13772	  compiler_needs_object=yes
13773	  ;;
13774	esac
13775	case `$CC -V 2>&1 | $SED 5q` in
13776	*Sun\ C*)			# Sun C 5.9
13777	  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'
13778	  compiler_needs_object=yes
13779	  tmp_sharedflag='-G' ;;
13780	*Sun\ F*)			# Sun Fortran 8.3
13781	  tmp_sharedflag='-G' ;;
13782	esac
13783	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13784
13785        if test yes = "$supports_anon_versioning"; then
13786          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13787            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13788            echo "local: *; };" >> $output_objdir/$libname.ver~
13789            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13790        fi
13791
13792	case $cc_basename in
13793	tcc*)
13794	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13795	  export_dynamic_flag_spec='-rdynamic'
13796	  ;;
13797	xlf* | bgf* | bgxlf* | mpixlf*)
13798	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13799	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13800	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13801	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13802	  if test yes = "$supports_anon_versioning"; then
13803	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13804              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13805              echo "local: *; };" >> $output_objdir/$libname.ver~
13806              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13807	  fi
13808	  ;;
13809	esac
13810      else
13811        ld_shlibs=no
13812      fi
13813      ;;
13814
13815    netbsd* | netbsdelf*-gnu)
13816      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13817	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13818	wlarc=
13819      else
13820	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13821	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13822      fi
13823      ;;
13824
13825    solaris*)
13826      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13827	ld_shlibs=no
13828	cat <<_LT_EOF 1>&2
13829
13830*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13831*** create shared libraries on Solaris systems.  Therefore, libtool
13832*** is disabling shared libraries support.  We urge you to upgrade GNU
13833*** binutils to release 2.9.1 or newer.  Another option is to modify
13834*** your PATH or compiler configuration so that the native linker is
13835*** used, and then restart.
13836
13837_LT_EOF
13838      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13839	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13840	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13841      else
13842	ld_shlibs=no
13843      fi
13844      ;;
13845
13846    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13847      case `$LD -v 2>&1` in
13848        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13849	ld_shlibs=no
13850	cat <<_LT_EOF 1>&2
13851
13852*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13853*** reliably create shared libraries on SCO systems.  Therefore, libtool
13854*** is disabling shared libraries support.  We urge you to upgrade GNU
13855*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13856*** your PATH or compiler configuration so that the native linker is
13857*** used, and then restart.
13858
13859_LT_EOF
13860	;;
13861	*)
13862	  # For security reasons, it is highly recommended that you always
13863	  # use absolute paths for naming shared libraries, and exclude the
13864	  # DT_RUNPATH tag from executables and libraries.  But doing so
13865	  # requires that you compile everything twice, which is a pain.
13866	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13867	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13868	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13869	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13870	  else
13871	    ld_shlibs=no
13872	  fi
13873	;;
13874      esac
13875      ;;
13876
13877    sunos4*)
13878      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13879      wlarc=
13880      hardcode_direct=yes
13881      hardcode_shlibpath_var=no
13882      ;;
13883
13884    *)
13885      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13886	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13887	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13888      else
13889	ld_shlibs=no
13890      fi
13891      ;;
13892    esac
13893
13894    if test no = "$ld_shlibs"; then
13895      runpath_var=
13896      hardcode_libdir_flag_spec=
13897      export_dynamic_flag_spec=
13898      whole_archive_flag_spec=
13899    fi
13900  else
13901    # PORTME fill in a description of your system's linker (not GNU ld)
13902    case $host_os in
13903    aix3*)
13904      allow_undefined_flag=unsupported
13905      always_export_symbols=yes
13906      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'
13907      # Note: this linker hardcodes the directories in LIBPATH if there
13908      # are no directories specified by -L.
13909      hardcode_minus_L=yes
13910      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13911	# Neither direct hardcoding nor static linking is supported with a
13912	# broken collect2.
13913	hardcode_direct=unsupported
13914      fi
13915      ;;
13916
13917    aix[4-9]*)
13918      if test ia64 = "$host_cpu"; then
13919	# On IA64, the linker does run time linking by default, so we don't
13920	# have to do anything special.
13921	aix_use_runtimelinking=no
13922	exp_sym_flag='-Bexport'
13923	no_entry_flag=
13924      else
13925	# If we're using GNU nm, then we don't want the "-C" option.
13926	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13927	# Without the "-l" option, or with the "-B" option, AIX nm treats
13928	# weak defined symbols like other global defined symbols, whereas
13929	# GNU nm marks them as "W".
13930	# While the 'weak' keyword is ignored in the Export File, we need
13931	# it in the Import File for the 'aix-soname' feature, so we have
13932	# to replace the "-B" option with "-P" for AIX nm.
13933	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13934	  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'
13935	else
13936	  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 == "L") || (\$ 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'
13937	fi
13938	aix_use_runtimelinking=no
13939
13940	# Test if we are trying to use run time linking or normal
13941	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13942	# have runtime linking enabled, and use it for executables.
13943	# For shared libraries, we enable/disable runtime linking
13944	# depending on the kind of the shared library created -
13945	# when "with_aix_soname,aix_use_runtimelinking" is:
13946	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13947	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13948	#            lib.a           static archive
13949	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13950	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13951	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13952	#            lib.a(lib.so.V) shared, rtl:no
13953	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13954	#            lib.a           static archive
13955	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13956	  for ld_flag in $LDFLAGS; do
13957	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13958	    aix_use_runtimelinking=yes
13959	    break
13960	  fi
13961	  done
13962	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13963	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13964	    # so we don't have lib.a shared libs to link our executables.
13965	    # We have to force runtime linking in this case.
13966	    aix_use_runtimelinking=yes
13967	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13968	  fi
13969	  ;;
13970	esac
13971
13972	exp_sym_flag='-bexport'
13973	no_entry_flag='-bnoentry'
13974      fi
13975
13976      # When large executables or shared objects are built, AIX ld can
13977      # have problems creating the table of contents.  If linking a library
13978      # or program results in "error TOC overflow" add -mminimal-toc to
13979      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13980      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13981
13982      archive_cmds=''
13983      hardcode_direct=yes
13984      hardcode_direct_absolute=yes
13985      hardcode_libdir_separator=':'
13986      link_all_deplibs=yes
13987      file_list_spec='$wl-f,'
13988      case $with_aix_soname,$aix_use_runtimelinking in
13989      aix,*) ;; # traditional, no import file
13990      svr4,* | *,yes) # use import file
13991	# The Import File defines what to hardcode.
13992	hardcode_direct=no
13993	hardcode_direct_absolute=no
13994	;;
13995      esac
13996
13997      if test yes = "$GCC"; then
13998	case $host_os in aix4.[012]|aix4.[012].*)
13999	# We only want to do this on AIX 4.2 and lower, the check
14000	# below for broken collect2 doesn't work under 4.3+
14001	  collect2name=`$CC -print-prog-name=collect2`
14002	  if test -f "$collect2name" &&
14003	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14004	  then
14005	  # We have reworked collect2
14006	  :
14007	  else
14008	  # We have old collect2
14009	  hardcode_direct=unsupported
14010	  # It fails to find uninstalled libraries when the uninstalled
14011	  # path is not listed in the libpath.  Setting hardcode_minus_L
14012	  # to unsupported forces relinking
14013	  hardcode_minus_L=yes
14014	  hardcode_libdir_flag_spec='-L$libdir'
14015	  hardcode_libdir_separator=
14016	  fi
14017	  ;;
14018	esac
14019	shared_flag='-shared'
14020	if test yes = "$aix_use_runtimelinking"; then
14021	  shared_flag="$shared_flag "'$wl-G'
14022	fi
14023	# Need to ensure runtime linking is disabled for the traditional
14024	# shared library, or the linker may eventually find shared libraries
14025	# /with/ Import File - we do not want to mix them.
14026	shared_flag_aix='-shared'
14027	shared_flag_svr4='-shared $wl-G'
14028      else
14029	# not using gcc
14030	if test ia64 = "$host_cpu"; then
14031	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14032	# chokes on -Wl,-G. The following line is correct:
14033	  shared_flag='-G'
14034	else
14035	  if test yes = "$aix_use_runtimelinking"; then
14036	    shared_flag='$wl-G'
14037	  else
14038	    shared_flag='$wl-bM:SRE'
14039	  fi
14040	  shared_flag_aix='$wl-bM:SRE'
14041	  shared_flag_svr4='$wl-G'
14042	fi
14043      fi
14044
14045      export_dynamic_flag_spec='$wl-bexpall'
14046      # It seems that -bexpall does not export symbols beginning with
14047      # underscore (_), so it is better to generate a list of symbols to export.
14048      always_export_symbols=yes
14049      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14050	# Warning - without using the other runtime loading flags (-brtl),
14051	# -berok will link without error, but may produce a broken library.
14052	allow_undefined_flag='-berok'
14053        # Determine the default libpath from the value encoded in an
14054        # empty executable.
14055        if test set = "${lt_cv_aix_libpath+set}"; then
14056  aix_libpath=$lt_cv_aix_libpath
14057else
14058  if test ${lt_cv_aix_libpath_+y}
14059then :
14060  printf %s "(cached) " >&6
14061else $as_nop
14062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064
14065int
14066main (void)
14067{
14068
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_link "$LINENO"
14074then :
14075
14076  lt_aix_libpath_sed='
14077      /Import File Strings/,/^$/ {
14078	  /^0/ {
14079	      s/^0  *\([^ ]*\) *$/\1/
14080	      p
14081	  }
14082      }'
14083  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14084  # Check for a 64-bit object if we didn't find anything.
14085  if test -z "$lt_cv_aix_libpath_"; then
14086    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14087  fi
14088fi
14089rm -f core conftest.err conftest.$ac_objext conftest.beam \
14090    conftest$ac_exeext conftest.$ac_ext
14091  if test -z "$lt_cv_aix_libpath_"; then
14092    lt_cv_aix_libpath_=/usr/lib:/lib
14093  fi
14094
14095fi
14096
14097  aix_libpath=$lt_cv_aix_libpath_
14098fi
14099
14100        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14101        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
14102      else
14103	if test ia64 = "$host_cpu"; then
14104	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14105	  allow_undefined_flag="-z nodefs"
14106	  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"
14107	else
14108	 # Determine the default libpath from the value encoded in an
14109	 # empty executable.
14110	 if test set = "${lt_cv_aix_libpath+set}"; then
14111  aix_libpath=$lt_cv_aix_libpath
14112else
14113  if test ${lt_cv_aix_libpath_+y}
14114then :
14115  printf %s "(cached) " >&6
14116else $as_nop
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119
14120int
14121main (void)
14122{
14123
14124  ;
14125  return 0;
14126}
14127_ACEOF
14128if ac_fn_c_try_link "$LINENO"
14129then :
14130
14131  lt_aix_libpath_sed='
14132      /Import File Strings/,/^$/ {
14133	  /^0/ {
14134	      s/^0  *\([^ ]*\) *$/\1/
14135	      p
14136	  }
14137      }'
14138  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14139  # Check for a 64-bit object if we didn't find anything.
14140  if test -z "$lt_cv_aix_libpath_"; then
14141    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14142  fi
14143fi
14144rm -f core conftest.err conftest.$ac_objext conftest.beam \
14145    conftest$ac_exeext conftest.$ac_ext
14146  if test -z "$lt_cv_aix_libpath_"; then
14147    lt_cv_aix_libpath_=/usr/lib:/lib
14148  fi
14149
14150fi
14151
14152  aix_libpath=$lt_cv_aix_libpath_
14153fi
14154
14155	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14156	  # Warning - without using the other run time loading flags,
14157	  # -berok will link without error, but may produce a broken library.
14158	  no_undefined_flag=' $wl-bernotok'
14159	  allow_undefined_flag=' $wl-berok'
14160	  if test yes = "$with_gnu_ld"; then
14161	    # We only use this code for GNU lds that support --whole-archive.
14162	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14163	  else
14164	    # Exported symbols can be pulled into shared objects from archives
14165	    whole_archive_flag_spec='$convenience'
14166	  fi
14167	  archive_cmds_need_lc=yes
14168	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14169	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14170	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14171	  if test svr4 != "$with_aix_soname"; then
14172	    # This is similar to how AIX traditionally builds its shared libraries.
14173	    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'
14174	  fi
14175	  if test aix != "$with_aix_soname"; then
14176	    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'
14177	  else
14178	    # used by -dlpreopen to get the symbols
14179	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14180	  fi
14181	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14182	fi
14183      fi
14184      ;;
14185
14186    amigaos*)
14187      case $host_cpu in
14188      powerpc)
14189            # see comment about AmigaOS4 .so support
14190            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14191            archive_expsym_cmds=''
14192        ;;
14193      m68k)
14194            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)'
14195            hardcode_libdir_flag_spec='-L$libdir'
14196            hardcode_minus_L=yes
14197        ;;
14198      esac
14199      ;;
14200
14201    bsdi[45]*)
14202      export_dynamic_flag_spec=-rdynamic
14203      ;;
14204
14205    cygwin* | mingw* | pw32* | cegcc*)
14206      # When not using gcc, we currently assume that we are using
14207      # Microsoft Visual C++ or Intel C++ Compiler.
14208      # hardcode_libdir_flag_spec is actually meaningless, as there is
14209      # no search path for DLLs.
14210      case $cc_basename in
14211      cl* | icl*)
14212	# Native MSVC or ICC
14213	hardcode_libdir_flag_spec=' '
14214	allow_undefined_flag=unsupported
14215	always_export_symbols=yes
14216	file_list_spec='@'
14217	# Tell ltmain to make .lib files, not .a files.
14218	libext=lib
14219	# Tell ltmain to make .dll files, not .so files.
14220	shrext_cmds=.dll
14221	# FIXME: Setting linknames here is a bad hack.
14222	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14223	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14224            cp "$export_symbols" "$output_objdir/$soname.def";
14225            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14226          else
14227            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14228          fi~
14229          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14230          linknames='
14231	# The linker will not automatically build a static lib if we build a DLL.
14232	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14233	enable_shared_with_static_runtimes=yes
14234	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14235	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14236	# Don't use ranlib
14237	old_postinstall_cmds='chmod 644 $oldlib'
14238	postlink_cmds='lt_outputfile="@OUTPUT@"~
14239          lt_tool_outputfile="@TOOL_OUTPUT@"~
14240          case $lt_outputfile in
14241            *.exe|*.EXE) ;;
14242            *)
14243              lt_outputfile=$lt_outputfile.exe
14244              lt_tool_outputfile=$lt_tool_outputfile.exe
14245              ;;
14246          esac~
14247          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14248            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14249            $RM "$lt_outputfile.manifest";
14250          fi'
14251	;;
14252      *)
14253	# Assume MSVC and ICC wrapper
14254	hardcode_libdir_flag_spec=' '
14255	allow_undefined_flag=unsupported
14256	# Tell ltmain to make .lib files, not .a files.
14257	libext=lib
14258	# Tell ltmain to make .dll files, not .so files.
14259	shrext_cmds=.dll
14260	# FIXME: Setting linknames here is a bad hack.
14261	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14262	# The linker will automatically build a .lib file if we build a DLL.
14263	old_archive_from_new_cmds='true'
14264	# FIXME: Should let the user specify the lib program.
14265	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14266	enable_shared_with_static_runtimes=yes
14267	;;
14268      esac
14269      ;;
14270
14271    darwin* | rhapsody*)
14272
14273
14274  archive_cmds_need_lc=no
14275  hardcode_direct=no
14276  hardcode_automatic=yes
14277  hardcode_shlibpath_var=unsupported
14278  if test yes = "$lt_cv_ld_force_load"; then
14279    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\"`'
14280
14281  else
14282    whole_archive_flag_spec=''
14283  fi
14284  link_all_deplibs=yes
14285  allow_undefined_flag=$_lt_dar_allow_undefined
14286  case $cc_basename in
14287     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14288     *) _lt_dar_can_shared=$GCC ;;
14289  esac
14290  if test yes = "$_lt_dar_can_shared"; then
14291    output_verbose_link_cmd=func_echo_all
14292    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14293    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14294    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"
14295    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"
14296
14297  else
14298  ld_shlibs=no
14299  fi
14300
14301      ;;
14302
14303    dgux*)
14304      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305      hardcode_libdir_flag_spec='-L$libdir'
14306      hardcode_shlibpath_var=no
14307      ;;
14308
14309    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14310    # support.  Future versions do this automatically, but an explicit c++rt0.o
14311    # does not break anything, and helps significantly (at the cost of a little
14312    # extra space).
14313    freebsd2.2*)
14314      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14315      hardcode_libdir_flag_spec='-R$libdir'
14316      hardcode_direct=yes
14317      hardcode_shlibpath_var=no
14318      ;;
14319
14320    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14321    freebsd2.*)
14322      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14323      hardcode_direct=yes
14324      hardcode_minus_L=yes
14325      hardcode_shlibpath_var=no
14326      ;;
14327
14328    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14329    freebsd* | dragonfly* | midnightbsd*)
14330      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14331      hardcode_libdir_flag_spec='-R$libdir'
14332      hardcode_direct=yes
14333      hardcode_shlibpath_var=no
14334      ;;
14335
14336    hpux9*)
14337      if test yes = "$GCC"; then
14338	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'
14339      else
14340	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'
14341      fi
14342      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14343      hardcode_libdir_separator=:
14344      hardcode_direct=yes
14345
14346      # hardcode_minus_L: Not really in the search PATH,
14347      # but as the default location of the library.
14348      hardcode_minus_L=yes
14349      export_dynamic_flag_spec='$wl-E'
14350      ;;
14351
14352    hpux10*)
14353      if test yes,no = "$GCC,$with_gnu_ld"; then
14354	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14355      else
14356	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14357      fi
14358      if test no = "$with_gnu_ld"; then
14359	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14360	hardcode_libdir_separator=:
14361	hardcode_direct=yes
14362	hardcode_direct_absolute=yes
14363	export_dynamic_flag_spec='$wl-E'
14364	# hardcode_minus_L: Not really in the search PATH,
14365	# but as the default location of the library.
14366	hardcode_minus_L=yes
14367      fi
14368      ;;
14369
14370    hpux11*)
14371      if test yes,no = "$GCC,$with_gnu_ld"; then
14372	case $host_cpu in
14373	hppa*64*)
14374	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14375	  ;;
14376	ia64*)
14377	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14378	  ;;
14379	*)
14380	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14381	  ;;
14382	esac
14383      else
14384	case $host_cpu in
14385	hppa*64*)
14386	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14387	  ;;
14388	ia64*)
14389	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14390	  ;;
14391	*)
14392
14393	  # Older versions of the 11.00 compiler do not understand -b yet
14394	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14395	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14396printf %s "checking if $CC understands -b... " >&6; }
14397if test ${lt_cv_prog_compiler__b+y}
14398then :
14399  printf %s "(cached) " >&6
14400else $as_nop
14401  lt_cv_prog_compiler__b=no
14402   save_LDFLAGS=$LDFLAGS
14403   LDFLAGS="$LDFLAGS -b"
14404   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14405   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14406     # The linker can only warn and ignore the option if not recognized
14407     # So say no if there are warnings
14408     if test -s conftest.err; then
14409       # Append any errors to the config.log.
14410       cat conftest.err 1>&5
14411       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14412       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14413       if diff conftest.exp conftest.er2 >/dev/null; then
14414         lt_cv_prog_compiler__b=yes
14415       fi
14416     else
14417       lt_cv_prog_compiler__b=yes
14418     fi
14419   fi
14420   $RM -r conftest*
14421   LDFLAGS=$save_LDFLAGS
14422
14423fi
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14425printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14426
14427if test yes = "$lt_cv_prog_compiler__b"; then
14428    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14429else
14430    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14431fi
14432
14433	  ;;
14434	esac
14435      fi
14436      if test no = "$with_gnu_ld"; then
14437	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14438	hardcode_libdir_separator=:
14439
14440	case $host_cpu in
14441	hppa*64*|ia64*)
14442	  hardcode_direct=no
14443	  hardcode_shlibpath_var=no
14444	  ;;
14445	*)
14446	  hardcode_direct=yes
14447	  hardcode_direct_absolute=yes
14448	  export_dynamic_flag_spec='$wl-E'
14449
14450	  # hardcode_minus_L: Not really in the search PATH,
14451	  # but as the default location of the library.
14452	  hardcode_minus_L=yes
14453	  ;;
14454	esac
14455      fi
14456      ;;
14457
14458    irix5* | irix6* | nonstopux*)
14459      if test yes = "$GCC"; then
14460	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'
14461	# Try to use the -exported_symbol ld option, if it does not
14462	# work, assume that -exports_file does not work either and
14463	# implicitly export all symbols.
14464	# This should be the same for all languages, so no per-tag cache variable.
14465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14466printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14467if test ${lt_cv_irix_exported_symbol+y}
14468then :
14469  printf %s "(cached) " >&6
14470else $as_nop
14471  save_LDFLAGS=$LDFLAGS
14472	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14473	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474/* end confdefs.h.  */
14475int foo (void) { return 0; }
14476_ACEOF
14477if ac_fn_c_try_link "$LINENO"
14478then :
14479  lt_cv_irix_exported_symbol=yes
14480else $as_nop
14481  lt_cv_irix_exported_symbol=no
14482fi
14483rm -f core conftest.err conftest.$ac_objext conftest.beam \
14484    conftest$ac_exeext conftest.$ac_ext
14485           LDFLAGS=$save_LDFLAGS
14486fi
14487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14488printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14489	if test yes = "$lt_cv_irix_exported_symbol"; then
14490          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'
14491	fi
14492	link_all_deplibs=no
14493      else
14494	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'
14495	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'
14496      fi
14497      archive_cmds_need_lc='no'
14498      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14499      hardcode_libdir_separator=:
14500      inherit_rpath=yes
14501      link_all_deplibs=yes
14502      ;;
14503
14504    linux*)
14505      case $cc_basename in
14506      tcc*)
14507	# Fabrice Bellard et al's Tiny C Compiler
14508	ld_shlibs=yes
14509	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14510	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14511	;;
14512      esac
14513      ;;
14514
14515    netbsd* | netbsdelf*-gnu)
14516      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14517	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14518      else
14519	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14520      fi
14521      hardcode_libdir_flag_spec='-R$libdir'
14522      hardcode_direct=yes
14523      hardcode_shlibpath_var=no
14524      ;;
14525
14526    newsos6)
14527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14528      hardcode_direct=yes
14529      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14530      hardcode_libdir_separator=:
14531      hardcode_shlibpath_var=no
14532      ;;
14533
14534    *nto* | *qnx*)
14535      ;;
14536
14537    openbsd* | bitrig*)
14538      if test -f /usr/libexec/ld.so; then
14539	hardcode_direct=yes
14540	hardcode_shlibpath_var=no
14541	hardcode_direct_absolute=yes
14542	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14543	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14544	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14545	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14546	  export_dynamic_flag_spec='$wl-E'
14547	else
14548	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14549	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14550	fi
14551      else
14552	ld_shlibs=no
14553      fi
14554      ;;
14555
14556    os2*)
14557      hardcode_libdir_flag_spec='-L$libdir'
14558      hardcode_minus_L=yes
14559      allow_undefined_flag=unsupported
14560      shrext_cmds=.dll
14561      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14562	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14563	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14564	$ECHO EXPORTS >> $output_objdir/$libname.def~
14565	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14566	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14567	emximp -o $lib $output_objdir/$libname.def'
14568      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14569	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14570	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14571	$ECHO EXPORTS >> $output_objdir/$libname.def~
14572	prefix_cmds="$SED"~
14573	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14574	  prefix_cmds="$prefix_cmds -e 1d";
14575	fi~
14576	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14577	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14578	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14579	emximp -o $lib $output_objdir/$libname.def'
14580      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14581      enable_shared_with_static_runtimes=yes
14582      file_list_spec='@'
14583      ;;
14584
14585    osf3*)
14586      if test yes = "$GCC"; then
14587	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14588	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'
14589      else
14590	allow_undefined_flag=' -expect_unresolved \*'
14591	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'
14592      fi
14593      archive_cmds_need_lc='no'
14594      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14595      hardcode_libdir_separator=:
14596      ;;
14597
14598    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14599      if test yes = "$GCC"; then
14600	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14601	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'
14602	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14603      else
14604	allow_undefined_flag=' -expect_unresolved \*'
14605	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'
14606	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~
14607          $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'
14608
14609	# Both c and cxx compiler support -rpath directly
14610	hardcode_libdir_flag_spec='-rpath $libdir'
14611      fi
14612      archive_cmds_need_lc='no'
14613      hardcode_libdir_separator=:
14614      ;;
14615
14616    solaris*)
14617      no_undefined_flag=' -z defs'
14618      if test yes = "$GCC"; then
14619	wlarc='$wl'
14620	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14621	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14622          $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'
14623      else
14624	case `$CC -V 2>&1` in
14625	*"Compilers 5.0"*)
14626	  wlarc=''
14627	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14629            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14630	  ;;
14631	*)
14632	  wlarc='$wl'
14633	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14634	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14635            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14636	  ;;
14637	esac
14638      fi
14639      hardcode_libdir_flag_spec='-R$libdir'
14640      hardcode_shlibpath_var=no
14641      case $host_os in
14642      solaris2.[0-5] | solaris2.[0-5].*) ;;
14643      *)
14644	# The compiler driver will combine and reorder linker options,
14645	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14646	# but is careful enough not to reorder.
14647	# Supported since Solaris 2.6 (maybe 2.5.1?)
14648	if test yes = "$GCC"; then
14649	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14650	else
14651	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14652	fi
14653	;;
14654      esac
14655      link_all_deplibs=yes
14656      ;;
14657
14658    sunos4*)
14659      if test sequent = "$host_vendor"; then
14660	# Use $CC to link under sequent, because it throws in some extra .o
14661	# files that make .init and .fini sections work.
14662	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14663      else
14664	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14665      fi
14666      hardcode_libdir_flag_spec='-L$libdir'
14667      hardcode_direct=yes
14668      hardcode_minus_L=yes
14669      hardcode_shlibpath_var=no
14670      ;;
14671
14672    sysv4)
14673      case $host_vendor in
14674	sni)
14675	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14676	  hardcode_direct=yes # is this really true???
14677	;;
14678	siemens)
14679	  ## LD is ld it makes a PLAMLIB
14680	  ## CC just makes a GrossModule.
14681	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14682	  reload_cmds='$CC -r -o $output$reload_objs'
14683	  hardcode_direct=no
14684        ;;
14685	motorola)
14686	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14687	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14688	;;
14689      esac
14690      runpath_var='LD_RUN_PATH'
14691      hardcode_shlibpath_var=no
14692      ;;
14693
14694    sysv4.3*)
14695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14696      hardcode_shlibpath_var=no
14697      export_dynamic_flag_spec='-Bexport'
14698      ;;
14699
14700    sysv4*MP*)
14701      if test -d /usr/nec; then
14702	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703	hardcode_shlibpath_var=no
14704	runpath_var=LD_RUN_PATH
14705	hardcode_runpath_var=yes
14706	ld_shlibs=yes
14707      fi
14708      ;;
14709
14710    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14711      no_undefined_flag='$wl-z,text'
14712      archive_cmds_need_lc=no
14713      hardcode_shlibpath_var=no
14714      runpath_var='LD_RUN_PATH'
14715
14716      if test yes = "$GCC"; then
14717	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14718	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719      else
14720	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14721	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722      fi
14723      ;;
14724
14725    sysv5* | sco3.2v5* | sco5v6*)
14726      # Note: We CANNOT use -z defs as we might desire, because we do not
14727      # link with -lc, and that would cause any symbols used from libc to
14728      # always be unresolved, which means just about no library would
14729      # ever link correctly.  If we're not using GNU ld we use -z text
14730      # though, which does catch some bad symbols but isn't as heavy-handed
14731      # as -z defs.
14732      no_undefined_flag='$wl-z,text'
14733      allow_undefined_flag='$wl-z,nodefs'
14734      archive_cmds_need_lc=no
14735      hardcode_shlibpath_var=no
14736      hardcode_libdir_flag_spec='$wl-R,$libdir'
14737      hardcode_libdir_separator=':'
14738      link_all_deplibs=yes
14739      export_dynamic_flag_spec='$wl-Bexport'
14740      runpath_var='LD_RUN_PATH'
14741
14742      if test yes = "$GCC"; then
14743	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14744	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745      else
14746	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14747	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14748      fi
14749      ;;
14750
14751    uts4*)
14752      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753      hardcode_libdir_flag_spec='-L$libdir'
14754      hardcode_shlibpath_var=no
14755      ;;
14756
14757    *)
14758      ld_shlibs=no
14759      ;;
14760    esac
14761
14762    if test sni = "$host_vendor"; then
14763      case $host in
14764      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14765	export_dynamic_flag_spec='$wl-Blargedynsym'
14766	;;
14767      esac
14768    fi
14769  fi
14770
14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14772printf "%s\n" "$ld_shlibs" >&6; }
14773test no = "$ld_shlibs" && can_build_shared=no
14774
14775with_gnu_ld=$with_gnu_ld
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791#
14792# Do we need to explicitly link libc?
14793#
14794case "x$archive_cmds_need_lc" in
14795x|xyes)
14796  # Assume -lc should be added
14797  archive_cmds_need_lc=yes
14798
14799  if test yes,yes = "$GCC,$enable_shared"; then
14800    case $archive_cmds in
14801    *'~'*)
14802      # FIXME: we may have to deal with multi-command sequences.
14803      ;;
14804    '$CC '*)
14805      # Test whether the compiler implicitly links with -lc since on some
14806      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14807      # to ld, don't add -lc before -lgcc.
14808      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14809printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14810if test ${lt_cv_archive_cmds_need_lc+y}
14811then :
14812  printf %s "(cached) " >&6
14813else $as_nop
14814  $RM conftest*
14815	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14816
14817	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14818  (eval $ac_compile) 2>&5
14819  ac_status=$?
14820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14821  test $ac_status = 0; } 2>conftest.err; then
14822	  soname=conftest
14823	  lib=conftest
14824	  libobjs=conftest.$ac_objext
14825	  deplibs=
14826	  wl=$lt_prog_compiler_wl
14827	  pic_flag=$lt_prog_compiler_pic
14828	  compiler_flags=-v
14829	  linker_flags=-v
14830	  verstring=
14831	  output_objdir=.
14832	  libname=conftest
14833	  lt_save_allow_undefined_flag=$allow_undefined_flag
14834	  allow_undefined_flag=
14835	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14836  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14837  ac_status=$?
14838  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14839  test $ac_status = 0; }
14840	  then
14841	    lt_cv_archive_cmds_need_lc=no
14842	  else
14843	    lt_cv_archive_cmds_need_lc=yes
14844	  fi
14845	  allow_undefined_flag=$lt_save_allow_undefined_flag
14846	else
14847	  cat conftest.err 1>&5
14848	fi
14849	$RM conftest*
14850
14851fi
14852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14853printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14854      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14855      ;;
14856    esac
14857  fi
14858  ;;
14859esac
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15013printf %s "checking dynamic linker characteristics... " >&6; }
15014
15015if test yes = "$GCC"; then
15016  case $host_os in
15017    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15018    *) lt_awk_arg='/^libraries:/' ;;
15019  esac
15020  case $host_os in
15021    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15022    *) lt_sed_strip_eq='s|=/|/|g' ;;
15023  esac
15024  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15025  case $lt_search_path_spec in
15026  *\;*)
15027    # if the path contains ";" then we assume it to be the separator
15028    # otherwise default to the standard path separator (i.e. ":") - it is
15029    # assumed that no part of a normal pathname contains ";" but that should
15030    # okay in the real world where ";" in dirpaths is itself problematic.
15031    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15032    ;;
15033  *)
15034    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15035    ;;
15036  esac
15037  # Ok, now we have the path, separated by spaces, we can step through it
15038  # and add multilib dir if necessary...
15039  lt_tmp_lt_search_path_spec=
15040  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15041  # ...but if some path component already ends with the multilib dir we assume
15042  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15043  case "$lt_multi_os_dir; $lt_search_path_spec " in
15044  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15045    lt_multi_os_dir=
15046    ;;
15047  esac
15048  for lt_sys_path in $lt_search_path_spec; do
15049    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15050      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15051    elif test -n "$lt_multi_os_dir"; then
15052      test -d "$lt_sys_path" && \
15053	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15054    fi
15055  done
15056  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15057BEGIN {RS = " "; FS = "/|\n";} {
15058  lt_foo = "";
15059  lt_count = 0;
15060  for (lt_i = NF; lt_i > 0; lt_i--) {
15061    if ($lt_i != "" && $lt_i != ".") {
15062      if ($lt_i == "..") {
15063        lt_count++;
15064      } else {
15065        if (lt_count == 0) {
15066          lt_foo = "/" $lt_i lt_foo;
15067        } else {
15068          lt_count--;
15069        }
15070      }
15071    }
15072  }
15073  if (lt_foo != "") { lt_freq[lt_foo]++; }
15074  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15075}'`
15076  # AWK program above erroneously prepends '/' to C:/dos/paths
15077  # for these hosts.
15078  case $host_os in
15079    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15080      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15081  esac
15082  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15083else
15084  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15085fi
15086library_names_spec=
15087libname_spec='lib$name'
15088soname_spec=
15089shrext_cmds=.so
15090postinstall_cmds=
15091postuninstall_cmds=
15092finish_cmds=
15093finish_eval=
15094shlibpath_var=
15095shlibpath_overrides_runpath=unknown
15096version_type=none
15097dynamic_linker="$host_os ld.so"
15098sys_lib_dlsearch_path_spec="/lib /usr/lib"
15099need_lib_prefix=unknown
15100hardcode_into_libs=no
15101
15102# when you set need_version to no, make sure it does not cause -set_version
15103# flags to be left without arguments
15104need_version=unknown
15105
15106
15107
15108case $host_os in
15109aix3*)
15110  version_type=linux # correct to gnu/linux during the next big refactor
15111  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15112  shlibpath_var=LIBPATH
15113
15114  # AIX 3 has no versioning support, so we append a major version to the name.
15115  soname_spec='$libname$release$shared_ext$major'
15116  ;;
15117
15118aix[4-9]*)
15119  version_type=linux # correct to gnu/linux during the next big refactor
15120  need_lib_prefix=no
15121  need_version=no
15122  hardcode_into_libs=yes
15123  if test ia64 = "$host_cpu"; then
15124    # AIX 5 supports IA64
15125    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15126    shlibpath_var=LD_LIBRARY_PATH
15127  else
15128    # With GCC up to 2.95.x, collect2 would create an import file
15129    # for dependence libraries.  The import file would start with
15130    # the line '#! .'.  This would cause the generated library to
15131    # depend on '.', always an invalid library.  This was fixed in
15132    # development snapshots of GCC prior to 3.0.
15133    case $host_os in
15134      aix4 | aix4.[01] | aix4.[01].*)
15135      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15136	   echo ' yes '
15137	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15138	:
15139      else
15140	can_build_shared=no
15141      fi
15142      ;;
15143    esac
15144    # Using Import Files as archive members, it is possible to support
15145    # filename-based versioning of shared library archives on AIX. While
15146    # this would work for both with and without runtime linking, it will
15147    # prevent static linking of such archives. So we do filename-based
15148    # shared library versioning with .so extension only, which is used
15149    # when both runtime linking and shared linking is enabled.
15150    # Unfortunately, runtime linking may impact performance, so we do
15151    # not want this to be the default eventually. Also, we use the
15152    # versioned .so libs for executables only if there is the -brtl
15153    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15154    # To allow for filename-based versioning support, we need to create
15155    # libNAME.so.V as an archive file, containing:
15156    # *) an Import File, referring to the versioned filename of the
15157    #    archive as well as the shared archive member, telling the
15158    #    bitwidth (32 or 64) of that shared object, and providing the
15159    #    list of exported symbols of that shared object, eventually
15160    #    decorated with the 'weak' keyword
15161    # *) the shared object with the F_LOADONLY flag set, to really avoid
15162    #    it being seen by the linker.
15163    # At run time we better use the real file rather than another symlink,
15164    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15165
15166    case $with_aix_soname,$aix_use_runtimelinking in
15167    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15168    # soname into executable. Probably we can add versioning support to
15169    # collect2, so additional links can be useful in future.
15170    aix,yes) # traditional libtool
15171      dynamic_linker='AIX unversionable lib.so'
15172      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15173      # instead of lib<name>.a to let people know that these are not
15174      # typical AIX shared libraries.
15175      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15176      ;;
15177    aix,no) # traditional AIX only
15178      dynamic_linker='AIX lib.a(lib.so.V)'
15179      # We preserve .a as extension for shared libraries through AIX4.2
15180      # and later when we are not doing run time linking.
15181      library_names_spec='$libname$release.a $libname.a'
15182      soname_spec='$libname$release$shared_ext$major'
15183      ;;
15184    svr4,*) # full svr4 only
15185      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15186      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15187      # We do not specify a path in Import Files, so LIBPATH fires.
15188      shlibpath_overrides_runpath=yes
15189      ;;
15190    *,yes) # both, prefer svr4
15191      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15192      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15193      # unpreferred sharedlib libNAME.a needs extra handling
15194      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"'
15195      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"'
15196      # We do not specify a path in Import Files, so LIBPATH fires.
15197      shlibpath_overrides_runpath=yes
15198      ;;
15199    *,no) # both, prefer aix
15200      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15201      library_names_spec='$libname$release.a $libname.a'
15202      soname_spec='$libname$release$shared_ext$major'
15203      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15204      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)'
15205      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"'
15206      ;;
15207    esac
15208    shlibpath_var=LIBPATH
15209  fi
15210  ;;
15211
15212amigaos*)
15213  case $host_cpu in
15214  powerpc)
15215    # Since July 2007 AmigaOS4 officially supports .so libraries.
15216    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15217    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15218    ;;
15219  m68k)
15220    library_names_spec='$libname.ixlibrary $libname.a'
15221    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15222    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'
15223    ;;
15224  esac
15225  ;;
15226
15227beos*)
15228  library_names_spec='$libname$shared_ext'
15229  dynamic_linker="$host_os ld.so"
15230  shlibpath_var=LIBRARY_PATH
15231  ;;
15232
15233bsdi[45]*)
15234  version_type=linux # correct to gnu/linux during the next big refactor
15235  need_version=no
15236  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15237  soname_spec='$libname$release$shared_ext$major'
15238  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15239  shlibpath_var=LD_LIBRARY_PATH
15240  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15241  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15242  # the default ld.so.conf also contains /usr/contrib/lib and
15243  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15244  # libtool to hard-code these into programs
15245  ;;
15246
15247cygwin* | mingw* | pw32* | cegcc*)
15248  version_type=windows
15249  shrext_cmds=.dll
15250  need_version=no
15251  need_lib_prefix=no
15252
15253  case $GCC,$cc_basename in
15254  yes,*)
15255    # gcc
15256    library_names_spec='$libname.dll.a'
15257    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15258    postinstall_cmds='base_file=`basename \$file`~
15259      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15260      dldir=$destdir/`dirname \$dlpath`~
15261      test -d \$dldir || mkdir -p \$dldir~
15262      $install_prog $dir/$dlname \$dldir/$dlname~
15263      chmod a+x \$dldir/$dlname~
15264      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15265        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15266      fi'
15267    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15268      dlpath=$dir/\$dldll~
15269       $RM \$dlpath'
15270    shlibpath_overrides_runpath=yes
15271
15272    case $host_os in
15273    cygwin*)
15274      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15275      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15276
15277      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15278      ;;
15279    mingw* | cegcc*)
15280      # MinGW DLLs use traditional 'lib' prefix
15281      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15282      ;;
15283    pw32*)
15284      # pw32 DLLs use 'pw' prefix rather than 'lib'
15285      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15286      ;;
15287    esac
15288    dynamic_linker='Win32 ld.exe'
15289    ;;
15290
15291  *,cl* | *,icl*)
15292    # Native MSVC or ICC
15293    libname_spec='$name'
15294    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15295    library_names_spec='$libname.dll.lib'
15296
15297    case $build_os in
15298    mingw*)
15299      sys_lib_search_path_spec=
15300      lt_save_ifs=$IFS
15301      IFS=';'
15302      for lt_path in $LIB
15303      do
15304        IFS=$lt_save_ifs
15305        # Let DOS variable expansion print the short 8.3 style file name.
15306        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15307        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15308      done
15309      IFS=$lt_save_ifs
15310      # Convert to MSYS style.
15311      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15312      ;;
15313    cygwin*)
15314      # Convert to unix form, then to dos form, then back to unix form
15315      # but this time dos style (no spaces!) so that the unix form looks
15316      # like /cygdrive/c/PROGRA~1:/cygdr...
15317      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15318      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15319      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15320      ;;
15321    *)
15322      sys_lib_search_path_spec=$LIB
15323      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15324        # It is most probably a Windows format PATH.
15325        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15326      else
15327        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15328      fi
15329      # FIXME: find the short name or the path components, as spaces are
15330      # common. (e.g. "Program Files" -> "PROGRA~1")
15331      ;;
15332    esac
15333
15334    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15335    postinstall_cmds='base_file=`basename \$file`~
15336      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15337      dldir=$destdir/`dirname \$dlpath`~
15338      test -d \$dldir || mkdir -p \$dldir~
15339      $install_prog $dir/$dlname \$dldir/$dlname'
15340    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15341      dlpath=$dir/\$dldll~
15342       $RM \$dlpath'
15343    shlibpath_overrides_runpath=yes
15344    dynamic_linker='Win32 link.exe'
15345    ;;
15346
15347  *)
15348    # Assume MSVC and ICC wrapper
15349    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15350    dynamic_linker='Win32 ld.exe'
15351    ;;
15352  esac
15353  # FIXME: first we should search . and the directory the executable is in
15354  shlibpath_var=PATH
15355  ;;
15356
15357darwin* | rhapsody*)
15358  dynamic_linker="$host_os dyld"
15359  version_type=darwin
15360  need_lib_prefix=no
15361  need_version=no
15362  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15363  soname_spec='$libname$release$major$shared_ext'
15364  shlibpath_overrides_runpath=yes
15365  shlibpath_var=DYLD_LIBRARY_PATH
15366  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15367
15368  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15369  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15370  ;;
15371
15372dgux*)
15373  version_type=linux # correct to gnu/linux during the next big refactor
15374  need_lib_prefix=no
15375  need_version=no
15376  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15377  soname_spec='$libname$release$shared_ext$major'
15378  shlibpath_var=LD_LIBRARY_PATH
15379  ;;
15380
15381freebsd* | dragonfly* | midnightbsd*)
15382  # DragonFly does not have aout.  When/if they implement a new
15383  # versioning mechanism, adjust this.
15384  if test -x /usr/bin/objformat; then
15385    objformat=`/usr/bin/objformat`
15386  else
15387    case $host_os in
15388    freebsd[23].*) objformat=aout ;;
15389    *) objformat=elf ;;
15390    esac
15391  fi
15392  version_type=freebsd-$objformat
15393  case $version_type in
15394    freebsd-elf*)
15395      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15396      soname_spec='$libname$release$shared_ext$major'
15397      need_version=no
15398      need_lib_prefix=no
15399      ;;
15400    freebsd-*)
15401      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15402      need_version=yes
15403      ;;
15404  esac
15405  shlibpath_var=LD_LIBRARY_PATH
15406  case $host_os in
15407  freebsd2.*)
15408    shlibpath_overrides_runpath=yes
15409    ;;
15410  freebsd3.[01]* | freebsdelf3.[01]*)
15411    shlibpath_overrides_runpath=yes
15412    hardcode_into_libs=yes
15413    ;;
15414  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15415  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15416    shlibpath_overrides_runpath=no
15417    hardcode_into_libs=yes
15418    ;;
15419  *) # from 4.6 on, and DragonFly
15420    shlibpath_overrides_runpath=yes
15421    hardcode_into_libs=yes
15422    ;;
15423  esac
15424  ;;
15425
15426haiku*)
15427  version_type=linux # correct to gnu/linux during the next big refactor
15428  need_lib_prefix=no
15429  need_version=no
15430  dynamic_linker="$host_os runtime_loader"
15431  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15432  soname_spec='$libname$release$shared_ext$major'
15433  shlibpath_var=LIBRARY_PATH
15434  shlibpath_overrides_runpath=no
15435  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15436  hardcode_into_libs=yes
15437  ;;
15438
15439hpux9* | hpux10* | hpux11*)
15440  # Give a soname corresponding to the major version so that dld.sl refuses to
15441  # link against other versions.
15442  version_type=sunos
15443  need_lib_prefix=no
15444  need_version=no
15445  case $host_cpu in
15446  ia64*)
15447    shrext_cmds='.so'
15448    hardcode_into_libs=yes
15449    dynamic_linker="$host_os dld.so"
15450    shlibpath_var=LD_LIBRARY_PATH
15451    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15453    soname_spec='$libname$release$shared_ext$major'
15454    if test 32 = "$HPUX_IA64_MODE"; then
15455      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15456      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15457    else
15458      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15459      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15460    fi
15461    ;;
15462  hppa*64*)
15463    shrext_cmds='.sl'
15464    hardcode_into_libs=yes
15465    dynamic_linker="$host_os dld.sl"
15466    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15467    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15468    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15469    soname_spec='$libname$release$shared_ext$major'
15470    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15471    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15472    ;;
15473  *)
15474    shrext_cmds='.sl'
15475    dynamic_linker="$host_os dld.sl"
15476    shlibpath_var=SHLIB_PATH
15477    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15478    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15479    soname_spec='$libname$release$shared_ext$major'
15480    ;;
15481  esac
15482  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15483  postinstall_cmds='chmod 555 $lib'
15484  # or fails outright, so override atomically:
15485  install_override_mode=555
15486  ;;
15487
15488interix[3-9]*)
15489  version_type=linux # correct to gnu/linux during the next big refactor
15490  need_lib_prefix=no
15491  need_version=no
15492  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15493  soname_spec='$libname$release$shared_ext$major'
15494  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15495  shlibpath_var=LD_LIBRARY_PATH
15496  shlibpath_overrides_runpath=no
15497  hardcode_into_libs=yes
15498  ;;
15499
15500irix5* | irix6* | nonstopux*)
15501  case $host_os in
15502    nonstopux*) version_type=nonstopux ;;
15503    *)
15504	if test yes = "$lt_cv_prog_gnu_ld"; then
15505		version_type=linux # correct to gnu/linux during the next big refactor
15506	else
15507		version_type=irix
15508	fi ;;
15509  esac
15510  need_lib_prefix=no
15511  need_version=no
15512  soname_spec='$libname$release$shared_ext$major'
15513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15514  case $host_os in
15515  irix5* | nonstopux*)
15516    libsuff= shlibsuff=
15517    ;;
15518  *)
15519    case $LD in # libtool.m4 will add one of these switches to LD
15520    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15521      libsuff= shlibsuff= libmagic=32-bit;;
15522    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15523      libsuff=32 shlibsuff=N32 libmagic=N32;;
15524    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15525      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15526    *) libsuff= shlibsuff= libmagic=never-match;;
15527    esac
15528    ;;
15529  esac
15530  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15531  shlibpath_overrides_runpath=no
15532  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15533  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15534  hardcode_into_libs=yes
15535  ;;
15536
15537# No shared lib support for Linux oldld, aout, or coff.
15538linux*oldld* | linux*aout* | linux*coff*)
15539  dynamic_linker=no
15540  ;;
15541
15542linux*android*)
15543  version_type=none # Android doesn't support versioned libraries.
15544  need_lib_prefix=no
15545  need_version=no
15546  library_names_spec='$libname$release$shared_ext'
15547  soname_spec='$libname$release$shared_ext'
15548  finish_cmds=
15549  shlibpath_var=LD_LIBRARY_PATH
15550  shlibpath_overrides_runpath=yes
15551
15552  # This implies no fast_install, which is unacceptable.
15553  # Some rework will be needed to allow for fast_install
15554  # before this can be enabled.
15555  hardcode_into_libs=yes
15556
15557  dynamic_linker='Android linker'
15558  # Don't embed -rpath directories since the linker doesn't support them.
15559  hardcode_libdir_flag_spec='-L$libdir'
15560  ;;
15561
15562# This must be glibc/ELF.
15563linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15564  version_type=linux # correct to gnu/linux during the next big refactor
15565  need_lib_prefix=no
15566  need_version=no
15567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568  soname_spec='$libname$release$shared_ext$major'
15569  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  shlibpath_overrides_runpath=no
15572
15573  # Some binutils ld are patched to set DT_RUNPATH
15574  if test ${lt_cv_shlibpath_overrides_runpath+y}
15575then :
15576  printf %s "(cached) " >&6
15577else $as_nop
15578  lt_cv_shlibpath_overrides_runpath=no
15579    save_LDFLAGS=$LDFLAGS
15580    save_libdir=$libdir
15581    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15582	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15583    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585
15586int
15587main (void)
15588{
15589
15590  ;
15591  return 0;
15592}
15593_ACEOF
15594if ac_fn_c_try_link "$LINENO"
15595then :
15596  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15597then :
15598  lt_cv_shlibpath_overrides_runpath=yes
15599fi
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.beam \
15602    conftest$ac_exeext conftest.$ac_ext
15603    LDFLAGS=$save_LDFLAGS
15604    libdir=$save_libdir
15605
15606fi
15607
15608  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15609
15610  # This implies no fast_install, which is unacceptable.
15611  # Some rework will be needed to allow for fast_install
15612  # before this can be enabled.
15613  hardcode_into_libs=yes
15614
15615  # Ideally, we could use ldconfig to report *all* directores which are
15616  # searched for libraries, however this is still not possible.  Aside from not
15617  # being certain /sbin/ldconfig is available, command
15618  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15619  # even though it is searched at run-time.  Try to do the best guess by
15620  # appending ld.so.conf contents (and includes) to the search path.
15621  if test -f /etc/ld.so.conf; then
15622    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' ' '`
15623    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15624  fi
15625
15626  # We used to test for /lib/ld.so.1 and disable shared libraries on
15627  # powerpc, because MkLinux only supported shared libraries with the
15628  # GNU dynamic linker.  Since this was broken with cross compilers,
15629  # most powerpc-linux boxes support dynamic linking these days and
15630  # people can always --disable-shared, the test was removed, and we
15631  # assume the GNU/Linux dynamic linker is in use.
15632  dynamic_linker='GNU/Linux ld.so'
15633  ;;
15634
15635netbsdelf*-gnu)
15636  version_type=linux
15637  need_lib_prefix=no
15638  need_version=no
15639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15640  soname_spec='${libname}${release}${shared_ext}$major'
15641  shlibpath_var=LD_LIBRARY_PATH
15642  shlibpath_overrides_runpath=no
15643  hardcode_into_libs=yes
15644  dynamic_linker='NetBSD ld.elf_so'
15645  ;;
15646
15647netbsd*)
15648  version_type=sunos
15649  need_lib_prefix=no
15650  need_version=no
15651  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15652    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15653    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15654    dynamic_linker='NetBSD (a.out) ld.so'
15655  else
15656    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15657    soname_spec='$libname$release$shared_ext$major'
15658    dynamic_linker='NetBSD ld.elf_so'
15659  fi
15660  shlibpath_var=LD_LIBRARY_PATH
15661  shlibpath_overrides_runpath=yes
15662  hardcode_into_libs=yes
15663  ;;
15664
15665newsos6)
15666  version_type=linux # correct to gnu/linux during the next big refactor
15667  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15668  shlibpath_var=LD_LIBRARY_PATH
15669  shlibpath_overrides_runpath=yes
15670  ;;
15671
15672*nto* | *qnx*)
15673  version_type=qnx
15674  need_lib_prefix=no
15675  need_version=no
15676  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15677  soname_spec='$libname$release$shared_ext$major'
15678  shlibpath_var=LD_LIBRARY_PATH
15679  shlibpath_overrides_runpath=no
15680  hardcode_into_libs=yes
15681  dynamic_linker='ldqnx.so'
15682  ;;
15683
15684openbsd* | bitrig*)
15685  version_type=sunos
15686  sys_lib_dlsearch_path_spec=/usr/lib
15687  need_lib_prefix=no
15688  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15689    need_version=no
15690  else
15691    need_version=yes
15692  fi
15693  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15694  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15695  shlibpath_var=LD_LIBRARY_PATH
15696  shlibpath_overrides_runpath=yes
15697  ;;
15698
15699os2*)
15700  libname_spec='$name'
15701  version_type=windows
15702  shrext_cmds=.dll
15703  need_version=no
15704  need_lib_prefix=no
15705  # OS/2 can only load a DLL with a base name of 8 characters or less.
15706  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15707    v=$($ECHO $release$versuffix | tr -d .-);
15708    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15709    $ECHO $n$v`$shared_ext'
15710  library_names_spec='${libname}_dll.$libext'
15711  dynamic_linker='OS/2 ld.exe'
15712  shlibpath_var=BEGINLIBPATH
15713  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15714  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15715  postinstall_cmds='base_file=`basename \$file`~
15716    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15717    dldir=$destdir/`dirname \$dlpath`~
15718    test -d \$dldir || mkdir -p \$dldir~
15719    $install_prog $dir/$dlname \$dldir/$dlname~
15720    chmod a+x \$dldir/$dlname~
15721    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15722      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15723    fi'
15724  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15725    dlpath=$dir/\$dldll~
15726    $RM \$dlpath'
15727  ;;
15728
15729osf3* | osf4* | osf5*)
15730  version_type=osf
15731  need_lib_prefix=no
15732  need_version=no
15733  soname_spec='$libname$release$shared_ext$major'
15734  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15735  shlibpath_var=LD_LIBRARY_PATH
15736  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15737  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15738  ;;
15739
15740rdos*)
15741  dynamic_linker=no
15742  ;;
15743
15744solaris*)
15745  version_type=linux # correct to gnu/linux during the next big refactor
15746  need_lib_prefix=no
15747  need_version=no
15748  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15749  soname_spec='$libname$release$shared_ext$major'
15750  shlibpath_var=LD_LIBRARY_PATH
15751  shlibpath_overrides_runpath=yes
15752  hardcode_into_libs=yes
15753  # ldd complains unless libraries are executable
15754  postinstall_cmds='chmod +x $lib'
15755  ;;
15756
15757sunos4*)
15758  version_type=sunos
15759  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15760  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15761  shlibpath_var=LD_LIBRARY_PATH
15762  shlibpath_overrides_runpath=yes
15763  if test yes = "$with_gnu_ld"; then
15764    need_lib_prefix=no
15765  fi
15766  need_version=yes
15767  ;;
15768
15769sysv4 | sysv4.3*)
15770  version_type=linux # correct to gnu/linux during the next big refactor
15771  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15772  soname_spec='$libname$release$shared_ext$major'
15773  shlibpath_var=LD_LIBRARY_PATH
15774  case $host_vendor in
15775    sni)
15776      shlibpath_overrides_runpath=no
15777      need_lib_prefix=no
15778      runpath_var=LD_RUN_PATH
15779      ;;
15780    siemens)
15781      need_lib_prefix=no
15782      ;;
15783    motorola)
15784      need_lib_prefix=no
15785      need_version=no
15786      shlibpath_overrides_runpath=no
15787      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15788      ;;
15789  esac
15790  ;;
15791
15792sysv4*MP*)
15793  if test -d /usr/nec; then
15794    version_type=linux # correct to gnu/linux during the next big refactor
15795    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15796    soname_spec='$libname$shared_ext.$major'
15797    shlibpath_var=LD_LIBRARY_PATH
15798  fi
15799  ;;
15800
15801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15802  version_type=sco
15803  need_lib_prefix=no
15804  need_version=no
15805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15806  soname_spec='$libname$release$shared_ext$major'
15807  shlibpath_var=LD_LIBRARY_PATH
15808  shlibpath_overrides_runpath=yes
15809  hardcode_into_libs=yes
15810  if test yes = "$with_gnu_ld"; then
15811    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15812  else
15813    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15814    case $host_os in
15815      sco3.2v5*)
15816        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15817	;;
15818    esac
15819  fi
15820  sys_lib_dlsearch_path_spec='/usr/lib'
15821  ;;
15822
15823tpf*)
15824  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15825  version_type=linux # correct to gnu/linux during the next big refactor
15826  need_lib_prefix=no
15827  need_version=no
15828  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15829  shlibpath_var=LD_LIBRARY_PATH
15830  shlibpath_overrides_runpath=no
15831  hardcode_into_libs=yes
15832  ;;
15833
15834uts4*)
15835  version_type=linux # correct to gnu/linux during the next big refactor
15836  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15837  soname_spec='$libname$release$shared_ext$major'
15838  shlibpath_var=LD_LIBRARY_PATH
15839  ;;
15840
15841*)
15842  dynamic_linker=no
15843  ;;
15844esac
15845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15846printf "%s\n" "$dynamic_linker" >&6; }
15847test no = "$dynamic_linker" && can_build_shared=no
15848
15849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15850if test yes = "$GCC"; then
15851  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15852fi
15853
15854if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15855  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15856fi
15857
15858if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15859  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15860fi
15861
15862# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15863configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15864
15865# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15866func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15867
15868# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15869configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15968printf %s "checking how to hardcode library paths into programs... " >&6; }
15969hardcode_action=
15970if test -n "$hardcode_libdir_flag_spec" ||
15971   test -n "$runpath_var" ||
15972   test yes = "$hardcode_automatic"; then
15973
15974  # We can hardcode non-existent directories.
15975  if test no != "$hardcode_direct" &&
15976     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15977     # have to relink, otherwise we might link with an installed library
15978     # when we should be linking with a yet-to-be-installed one
15979     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15980     test no != "$hardcode_minus_L"; then
15981    # Linking always hardcodes the temporary library directory.
15982    hardcode_action=relink
15983  else
15984    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15985    hardcode_action=immediate
15986  fi
15987else
15988  # We cannot hardcode anything, or else we can only hardcode existing
15989  # directories.
15990  hardcode_action=unsupported
15991fi
15992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15993printf "%s\n" "$hardcode_action" >&6; }
15994
15995if test relink = "$hardcode_action" ||
15996   test yes = "$inherit_rpath"; then
15997  # Fast installation is not supported
15998  enable_fast_install=no
15999elif test yes = "$shlibpath_overrides_runpath" ||
16000     test no = "$enable_shared"; then
16001  # Fast installation is not necessary
16002  enable_fast_install=needless
16003fi
16004
16005
16006
16007
16008
16009
16010  if test yes != "$enable_dlopen"; then
16011  enable_dlopen=unknown
16012  enable_dlopen_self=unknown
16013  enable_dlopen_self_static=unknown
16014else
16015  lt_cv_dlopen=no
16016  lt_cv_dlopen_libs=
16017
16018  case $host_os in
16019  beos*)
16020    lt_cv_dlopen=load_add_on
16021    lt_cv_dlopen_libs=
16022    lt_cv_dlopen_self=yes
16023    ;;
16024
16025  mingw* | pw32* | cegcc*)
16026    lt_cv_dlopen=LoadLibrary
16027    lt_cv_dlopen_libs=
16028    ;;
16029
16030  cygwin*)
16031    lt_cv_dlopen=dlopen
16032    lt_cv_dlopen_libs=
16033    ;;
16034
16035  darwin*)
16036    # if libdl is installed we need to link against it
16037    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16038printf %s "checking for dlopen in -ldl... " >&6; }
16039if test ${ac_cv_lib_dl_dlopen+y}
16040then :
16041  printf %s "(cached) " >&6
16042else $as_nop
16043  ac_check_lib_save_LIBS=$LIBS
16044LIBS="-ldl  $LIBS"
16045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046/* end confdefs.h.  */
16047
16048/* Override any GCC internal prototype to avoid an error.
16049   Use char because int might match the return type of a GCC
16050   builtin and then its argument prototype would still apply.  */
16051char dlopen ();
16052int
16053main (void)
16054{
16055return dlopen ();
16056  ;
16057  return 0;
16058}
16059_ACEOF
16060if ac_fn_c_try_link "$LINENO"
16061then :
16062  ac_cv_lib_dl_dlopen=yes
16063else $as_nop
16064  ac_cv_lib_dl_dlopen=no
16065fi
16066rm -f core conftest.err conftest.$ac_objext conftest.beam \
16067    conftest$ac_exeext conftest.$ac_ext
16068LIBS=$ac_check_lib_save_LIBS
16069fi
16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16071printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16072if test "x$ac_cv_lib_dl_dlopen" = xyes
16073then :
16074  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16075else $as_nop
16076
16077    lt_cv_dlopen=dyld
16078    lt_cv_dlopen_libs=
16079    lt_cv_dlopen_self=yes
16080
16081fi
16082
16083    ;;
16084
16085  tpf*)
16086    # Don't try to run any link tests for TPF.  We know it's impossible
16087    # because TPF is a cross-compiler, and we know how we open DSOs.
16088    lt_cv_dlopen=dlopen
16089    lt_cv_dlopen_libs=
16090    lt_cv_dlopen_self=no
16091    ;;
16092
16093  *)
16094    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16095if test "x$ac_cv_func_shl_load" = xyes
16096then :
16097  lt_cv_dlopen=shl_load
16098else $as_nop
16099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16100printf %s "checking for shl_load in -ldld... " >&6; }
16101if test ${ac_cv_lib_dld_shl_load+y}
16102then :
16103  printf %s "(cached) " >&6
16104else $as_nop
16105  ac_check_lib_save_LIBS=$LIBS
16106LIBS="-ldld  $LIBS"
16107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108/* end confdefs.h.  */
16109
16110/* Override any GCC internal prototype to avoid an error.
16111   Use char because int might match the return type of a GCC
16112   builtin and then its argument prototype would still apply.  */
16113char shl_load ();
16114int
16115main (void)
16116{
16117return shl_load ();
16118  ;
16119  return 0;
16120}
16121_ACEOF
16122if ac_fn_c_try_link "$LINENO"
16123then :
16124  ac_cv_lib_dld_shl_load=yes
16125else $as_nop
16126  ac_cv_lib_dld_shl_load=no
16127fi
16128rm -f core conftest.err conftest.$ac_objext conftest.beam \
16129    conftest$ac_exeext conftest.$ac_ext
16130LIBS=$ac_check_lib_save_LIBS
16131fi
16132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16133printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16134if test "x$ac_cv_lib_dld_shl_load" = xyes
16135then :
16136  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16137else $as_nop
16138  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16139if test "x$ac_cv_func_dlopen" = xyes
16140then :
16141  lt_cv_dlopen=dlopen
16142else $as_nop
16143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16144printf %s "checking for dlopen in -ldl... " >&6; }
16145if test ${ac_cv_lib_dl_dlopen+y}
16146then :
16147  printf %s "(cached) " >&6
16148else $as_nop
16149  ac_check_lib_save_LIBS=$LIBS
16150LIBS="-ldl  $LIBS"
16151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152/* end confdefs.h.  */
16153
16154/* Override any GCC internal prototype to avoid an error.
16155   Use char because int might match the return type of a GCC
16156   builtin and then its argument prototype would still apply.  */
16157char dlopen ();
16158int
16159main (void)
16160{
16161return dlopen ();
16162  ;
16163  return 0;
16164}
16165_ACEOF
16166if ac_fn_c_try_link "$LINENO"
16167then :
16168  ac_cv_lib_dl_dlopen=yes
16169else $as_nop
16170  ac_cv_lib_dl_dlopen=no
16171fi
16172rm -f core conftest.err conftest.$ac_objext conftest.beam \
16173    conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16177printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16178if test "x$ac_cv_lib_dl_dlopen" = xyes
16179then :
16180  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16181else $as_nop
16182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16183printf %s "checking for dlopen in -lsvld... " >&6; }
16184if test ${ac_cv_lib_svld_dlopen+y}
16185then :
16186  printf %s "(cached) " >&6
16187else $as_nop
16188  ac_check_lib_save_LIBS=$LIBS
16189LIBS="-lsvld  $LIBS"
16190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191/* end confdefs.h.  */
16192
16193/* Override any GCC internal prototype to avoid an error.
16194   Use char because int might match the return type of a GCC
16195   builtin and then its argument prototype would still apply.  */
16196char dlopen ();
16197int
16198main (void)
16199{
16200return dlopen ();
16201  ;
16202  return 0;
16203}
16204_ACEOF
16205if ac_fn_c_try_link "$LINENO"
16206then :
16207  ac_cv_lib_svld_dlopen=yes
16208else $as_nop
16209  ac_cv_lib_svld_dlopen=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext conftest.beam \
16212    conftest$ac_exeext conftest.$ac_ext
16213LIBS=$ac_check_lib_save_LIBS
16214fi
16215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16216printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16217if test "x$ac_cv_lib_svld_dlopen" = xyes
16218then :
16219  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16220else $as_nop
16221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16222printf %s "checking for dld_link in -ldld... " >&6; }
16223if test ${ac_cv_lib_dld_dld_link+y}
16224then :
16225  printf %s "(cached) " >&6
16226else $as_nop
16227  ac_check_lib_save_LIBS=$LIBS
16228LIBS="-ldld  $LIBS"
16229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231
16232/* Override any GCC internal prototype to avoid an error.
16233   Use char because int might match the return type of a GCC
16234   builtin and then its argument prototype would still apply.  */
16235char dld_link ();
16236int
16237main (void)
16238{
16239return dld_link ();
16240  ;
16241  return 0;
16242}
16243_ACEOF
16244if ac_fn_c_try_link "$LINENO"
16245then :
16246  ac_cv_lib_dld_dld_link=yes
16247else $as_nop
16248  ac_cv_lib_dld_dld_link=no
16249fi
16250rm -f core conftest.err conftest.$ac_objext conftest.beam \
16251    conftest$ac_exeext conftest.$ac_ext
16252LIBS=$ac_check_lib_save_LIBS
16253fi
16254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16255printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16256if test "x$ac_cv_lib_dld_dld_link" = xyes
16257then :
16258  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16259fi
16260
16261
16262fi
16263
16264
16265fi
16266
16267
16268fi
16269
16270
16271fi
16272
16273
16274fi
16275
16276    ;;
16277  esac
16278
16279  if test no = "$lt_cv_dlopen"; then
16280    enable_dlopen=no
16281  else
16282    enable_dlopen=yes
16283  fi
16284
16285  case $lt_cv_dlopen in
16286  dlopen)
16287    save_CPPFLAGS=$CPPFLAGS
16288    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16289
16290    save_LDFLAGS=$LDFLAGS
16291    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16292
16293    save_LIBS=$LIBS
16294    LIBS="$lt_cv_dlopen_libs $LIBS"
16295
16296    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16297printf %s "checking whether a program can dlopen itself... " >&6; }
16298if test ${lt_cv_dlopen_self+y}
16299then :
16300  printf %s "(cached) " >&6
16301else $as_nop
16302  	  if test yes = "$cross_compiling"; then :
16303  lt_cv_dlopen_self=cross
16304else
16305  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16306  lt_status=$lt_dlunknown
16307  cat > conftest.$ac_ext <<_LT_EOF
16308#line $LINENO "configure"
16309#include "confdefs.h"
16310
16311#if HAVE_DLFCN_H
16312#include <dlfcn.h>
16313#endif
16314
16315#include <stdio.h>
16316
16317#ifdef RTLD_GLOBAL
16318#  define LT_DLGLOBAL		RTLD_GLOBAL
16319#else
16320#  ifdef DL_GLOBAL
16321#    define LT_DLGLOBAL		DL_GLOBAL
16322#  else
16323#    define LT_DLGLOBAL		0
16324#  endif
16325#endif
16326
16327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16328   find out it does not work in some platform. */
16329#ifndef LT_DLLAZY_OR_NOW
16330#  ifdef RTLD_LAZY
16331#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16332#  else
16333#    ifdef DL_LAZY
16334#      define LT_DLLAZY_OR_NOW		DL_LAZY
16335#    else
16336#      ifdef RTLD_NOW
16337#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16338#      else
16339#        ifdef DL_NOW
16340#          define LT_DLLAZY_OR_NOW	DL_NOW
16341#        else
16342#          define LT_DLLAZY_OR_NOW	0
16343#        endif
16344#      endif
16345#    endif
16346#  endif
16347#endif
16348
16349/* When -fvisibility=hidden is used, assume the code has been annotated
16350   correspondingly for the symbols needed.  */
16351#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16352int fnord () __attribute__((visibility("default")));
16353#endif
16354
16355int fnord () { return 42; }
16356int main ()
16357{
16358  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16359  int status = $lt_dlunknown;
16360
16361  if (self)
16362    {
16363      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16364      else
16365        {
16366	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16367          else puts (dlerror ());
16368	}
16369      /* dlclose (self); */
16370    }
16371  else
16372    puts (dlerror ());
16373
16374  return status;
16375}
16376_LT_EOF
16377  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16378  (eval $ac_link) 2>&5
16379  ac_status=$?
16380  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16381  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16382    (./conftest; exit; ) >&5 2>/dev/null
16383    lt_status=$?
16384    case x$lt_status in
16385      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16386      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16387      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16388    esac
16389  else :
16390    # compilation failed
16391    lt_cv_dlopen_self=no
16392  fi
16393fi
16394rm -fr conftest*
16395
16396
16397fi
16398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16399printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16400
16401    if test yes = "$lt_cv_dlopen_self"; then
16402      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16403      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16404printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16405if test ${lt_cv_dlopen_self_static+y}
16406then :
16407  printf %s "(cached) " >&6
16408else $as_nop
16409  	  if test yes = "$cross_compiling"; then :
16410  lt_cv_dlopen_self_static=cross
16411else
16412  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16413  lt_status=$lt_dlunknown
16414  cat > conftest.$ac_ext <<_LT_EOF
16415#line $LINENO "configure"
16416#include "confdefs.h"
16417
16418#if HAVE_DLFCN_H
16419#include <dlfcn.h>
16420#endif
16421
16422#include <stdio.h>
16423
16424#ifdef RTLD_GLOBAL
16425#  define LT_DLGLOBAL		RTLD_GLOBAL
16426#else
16427#  ifdef DL_GLOBAL
16428#    define LT_DLGLOBAL		DL_GLOBAL
16429#  else
16430#    define LT_DLGLOBAL		0
16431#  endif
16432#endif
16433
16434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16435   find out it does not work in some platform. */
16436#ifndef LT_DLLAZY_OR_NOW
16437#  ifdef RTLD_LAZY
16438#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16439#  else
16440#    ifdef DL_LAZY
16441#      define LT_DLLAZY_OR_NOW		DL_LAZY
16442#    else
16443#      ifdef RTLD_NOW
16444#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16445#      else
16446#        ifdef DL_NOW
16447#          define LT_DLLAZY_OR_NOW	DL_NOW
16448#        else
16449#          define LT_DLLAZY_OR_NOW	0
16450#        endif
16451#      endif
16452#    endif
16453#  endif
16454#endif
16455
16456/* When -fvisibility=hidden is used, assume the code has been annotated
16457   correspondingly for the symbols needed.  */
16458#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16459int fnord () __attribute__((visibility("default")));
16460#endif
16461
16462int fnord () { return 42; }
16463int main ()
16464{
16465  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16466  int status = $lt_dlunknown;
16467
16468  if (self)
16469    {
16470      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16471      else
16472        {
16473	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16474          else puts (dlerror ());
16475	}
16476      /* dlclose (self); */
16477    }
16478  else
16479    puts (dlerror ());
16480
16481  return status;
16482}
16483_LT_EOF
16484  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16485  (eval $ac_link) 2>&5
16486  ac_status=$?
16487  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16488  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16489    (./conftest; exit; ) >&5 2>/dev/null
16490    lt_status=$?
16491    case x$lt_status in
16492      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16493      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16494      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16495    esac
16496  else :
16497    # compilation failed
16498    lt_cv_dlopen_self_static=no
16499  fi
16500fi
16501rm -fr conftest*
16502
16503
16504fi
16505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16506printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16507    fi
16508
16509    CPPFLAGS=$save_CPPFLAGS
16510    LDFLAGS=$save_LDFLAGS
16511    LIBS=$save_LIBS
16512    ;;
16513  esac
16514
16515  case $lt_cv_dlopen_self in
16516  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16517  *) enable_dlopen_self=unknown ;;
16518  esac
16519
16520  case $lt_cv_dlopen_self_static in
16521  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16522  *) enable_dlopen_self_static=unknown ;;
16523  esac
16524fi
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542striplib=
16543old_striplib=
16544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16545printf %s "checking whether stripping libraries is possible... " >&6; }
16546if test -z "$STRIP"; then
16547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548printf "%s\n" "no" >&6; }
16549else
16550  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16551    old_striplib="$STRIP --strip-debug"
16552    striplib="$STRIP --strip-unneeded"
16553    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16554printf "%s\n" "yes" >&6; }
16555  else
16556    case $host_os in
16557    darwin*)
16558      # FIXME - insert some real tests, host_os isn't really good enough
16559      striplib="$STRIP -x"
16560      old_striplib="$STRIP -S"
16561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562printf "%s\n" "yes" >&6; }
16563      ;;
16564    freebsd*)
16565      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16566        old_striplib="$STRIP --strip-debug"
16567        striplib="$STRIP --strip-unneeded"
16568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569printf "%s\n" "yes" >&6; }
16570      else
16571        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572printf "%s\n" "no" >&6; }
16573      fi
16574      ;;
16575    *)
16576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16577printf "%s\n" "no" >&6; }
16578      ;;
16579    esac
16580  fi
16581fi
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594  # Report what library types will actually be built
16595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16596printf %s "checking if libtool supports shared libraries... " >&6; }
16597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16598printf "%s\n" "$can_build_shared" >&6; }
16599
16600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16601printf %s "checking whether to build shared libraries... " >&6; }
16602  test no = "$can_build_shared" && enable_shared=no
16603
16604  # On AIX, shared libraries and static libraries use the same namespace, and
16605  # are all built from PIC.
16606  case $host_os in
16607  aix3*)
16608    test yes = "$enable_shared" && enable_static=no
16609    if test -n "$RANLIB"; then
16610      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16611      postinstall_cmds='$RANLIB $lib'
16612    fi
16613    ;;
16614
16615  aix[4-9]*)
16616    if test ia64 != "$host_cpu"; then
16617      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16618      yes,aix,yes) ;;			# shared object as lib.so file only
16619      yes,svr4,*) ;;			# shared object as lib.so archive member only
16620      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16621      esac
16622    fi
16623    ;;
16624  esac
16625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16626printf "%s\n" "$enable_shared" >&6; }
16627
16628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16629printf %s "checking whether to build static libraries... " >&6; }
16630  # Make sure either enable_shared or enable_static is yes.
16631  test yes = "$enable_shared" || enable_static=yes
16632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16633printf "%s\n" "$enable_static" >&6; }
16634
16635
16636
16637
16638fi
16639ac_ext=c
16640ac_cpp='$CPP $CPPFLAGS'
16641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16643ac_compiler_gnu=$ac_cv_c_compiler_gnu
16644
16645CC=$lt_save_CC
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661        ac_config_commands="$ac_config_commands libtool"
16662
16663
16664
16665
16666# Only expand once:
16667
16668
16669
16670if test "$enable_static" != "no" && test "$enable_developer" != "yes"
16671then :
16672  as_fn_error $? "Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)" "$LINENO" 5
16673fi
16674
16675#
16676# Set the default CFLAGS, CPPFLAGS, and LDFLAGS
16677#
16678STD_CFLAGS="-Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow"
16679
16680# These should be always errors
16681STD_CFLAGS="$STD_CFLAGS -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla"
16682
16683STD_LDFLAGS=""
16684
16685# ... except in test code
16686TEST_CFLAGS="-Wno-vla"
16687
16688# Fortify the sources by default
16689STD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
16690
16691#
16692# Additional compiler settings.
16693#
16694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
16695printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
16696if test ${ax_cv_check_cflags___fno_strict_aliasing+y}
16697then :
16698  printf %s "(cached) " >&6
16699else $as_nop
16700
16701  ax_check_save_flags=$CFLAGS
16702  CFLAGS="$CFLAGS  -fno-strict-aliasing"
16703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704/* end confdefs.h.  */
16705
16706int
16707main (void)
16708{
16709
16710  ;
16711  return 0;
16712}
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"
16715then :
16716  ax_cv_check_cflags___fno_strict_aliasing=yes
16717else $as_nop
16718  ax_cv_check_cflags___fno_strict_aliasing=no
16719fi
16720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16721  CFLAGS=$ax_check_save_flags
16722fi
16723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
16724printf "%s\n" "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
16725if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes
16726then :
16727  STD_CFLAGS="$STD_CFLAGS -fno-strict-aliasing"
16728else $as_nop
16729  :
16730fi
16731
16732# Clang only issues a warning so use -Werror to force a error.
16733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
16734printf %s "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
16735if test ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+y}
16736then :
16737  printf %s "(cached) " >&6
16738else $as_nop
16739
16740  ax_check_save_flags=$CFLAGS
16741  CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
16742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h.  */
16744
16745int
16746main (void)
16747{
16748
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753if ac_fn_c_try_compile "$LINENO"
16754then :
16755  ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
16756else $as_nop
16757  ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
16758fi
16759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16760  CFLAGS=$ax_check_save_flags
16761fi
16762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
16763printf "%s\n" "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
16764if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes
16765then :
16766  STD_CFLAGS="$STD_CFLAGS -fno-delete-null-pointer-checks"
16767else $as_nop
16768  :
16769fi
16770
16771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdiagnostics-show-option" >&5
16772printf %s "checking whether C compiler accepts -fdiagnostics-show-option... " >&6; }
16773if test ${ax_cv_check_cflags___fdiagnostics_show_option+y}
16774then :
16775  printf %s "(cached) " >&6
16776else $as_nop
16777
16778  ax_check_save_flags=$CFLAGS
16779  CFLAGS="$CFLAGS  -fdiagnostics-show-option"
16780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781/* end confdefs.h.  */
16782
16783int
16784main (void)
16785{
16786
16787  ;
16788  return 0;
16789}
16790_ACEOF
16791if ac_fn_c_try_compile "$LINENO"
16792then :
16793  ax_cv_check_cflags___fdiagnostics_show_option=yes
16794else $as_nop
16795  ax_cv_check_cflags___fdiagnostics_show_option=no
16796fi
16797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16798  CFLAGS=$ax_check_save_flags
16799fi
16800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdiagnostics_show_option" >&5
16801printf "%s\n" "$ax_cv_check_cflags___fdiagnostics_show_option" >&6; }
16802if test "x$ax_cv_check_cflags___fdiagnostics_show_option" = xyes
16803then :
16804  STD_CFLAGS="$STD_CFLAGS -fdiagnostics-show-option"
16805else $as_nop
16806  :
16807fi
16808
16809
16810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--export-dynamic" >&5
16811printf %s "checking whether the linker accepts -Wl,--export-dynamic... " >&6; }
16812if test ${ax_cv_check_ldflags___Wl___export_dynamic+y}
16813then :
16814  printf %s "(cached) " >&6
16815else $as_nop
16816
16817  ax_check_save_flags=$LDFLAGS
16818  LDFLAGS="$LDFLAGS  -Wl,--export-dynamic"
16819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16820/* end confdefs.h.  */
16821
16822int
16823main (void)
16824{
16825
16826  ;
16827  return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"
16831then :
16832  ax_cv_check_ldflags___Wl___export_dynamic=yes
16833else $as_nop
16834  ax_cv_check_ldflags___Wl___export_dynamic=no
16835fi
16836rm -f core conftest.err conftest.$ac_objext conftest.beam \
16837    conftest$ac_exeext conftest.$ac_ext
16838  LDFLAGS=$ax_check_save_flags
16839fi
16840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___export_dynamic" >&5
16841printf "%s\n" "$ax_cv_check_ldflags___Wl___export_dynamic" >&6; }
16842if test "x$ax_cv_check_ldflags___Wl___export_dynamic" = xyes
16843then :
16844  STD_LDFLAGS="$STD_LDFLAGS -Wl,--export-dynamic"
16845else $as_nop
16846  :
16847fi
16848
16849
16850host_macos=no
16851case $host in #(
16852  *-darwin*) :
16853    host_macos=yes ;; #(
16854  *) :
16855     ;;
16856esac
16857 if test "$host_macos" = "yes"; then
16858  HOST_MACOS_TRUE=
16859  HOST_MACOS_FALSE='#'
16860else
16861  HOST_MACOS_TRUE='#'
16862  HOST_MACOS_FALSE=
16863fi
16864
16865
16866#
16867# Change defaults for developers if not explicity set.
16868# Needs to be before the option is tested.
16869#
16870# [pairwise: --enable-developer, --disable-developer]
16871# Check whether --enable-developer was given.
16872if test ${enable_developer+y}
16873then :
16874  enableval=$enable_developer;
16875fi
16876
16877
16878if test "$enable_developer" = "yes"
16879then :
16880  DEVELOPER_MODE=yes
16881       STD_CPPFLAGS="$STD_CPPFLAGS -DISC_MEM_DEFAULTFILL=1 -DISC_MEM_TRACKLINES=1 -DISC_LIST_CHECKINIT=1"
16882       test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
16883       test "${enable_querytrace+set}" = set || enable_querytrace=yes
16884       test "${with_cmocka+set}" = set || with_cmocka=yes
16885       test "${with_zlib+set}" = set || with_zlib=yes
16886       test "${enable_warn_error+set}" = set || enable_warn_error=yes
16887
16888fi
16889
16890
16891
16892
16893
16894
16895
16896# [pairwise: --enable-warn-error, --disable-warn-error]
16897# Check whether --enable-warn_error was given.
16898if test ${enable_warn_error+y}
16899then :
16900  enableval=$enable_warn_error;
16901else $as_nop
16902  enable_warn_error=no
16903fi
16904
16905if test "$enable_warn_error" = "yes"
16906then :
16907  STD_CFLAGS="$STD_CFLAGS -Werror"
16908fi
16909
16910#
16911# Use pkg-config
16912#
16913
16914
16915
16916
16917
16918
16919
16920
16921if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16922	if test -n "$ac_tool_prefix"; then
16923  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16924set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16926printf %s "checking for $ac_word... " >&6; }
16927if test ${ac_cv_path_PKG_CONFIG+y}
16928then :
16929  printf %s "(cached) " >&6
16930else $as_nop
16931  case $PKG_CONFIG in
16932  [\\/]* | ?:[\\/]*)
16933  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16934  ;;
16935  *)
16936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937for as_dir in $PATH
16938do
16939  IFS=$as_save_IFS
16940  case $as_dir in #(((
16941    '') as_dir=./ ;;
16942    */) ;;
16943    *) as_dir=$as_dir/ ;;
16944  esac
16945    for ac_exec_ext in '' $ac_executable_extensions; do
16946  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16947    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16948    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16949    break 2
16950  fi
16951done
16952  done
16953IFS=$as_save_IFS
16954
16955  ;;
16956esac
16957fi
16958PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16959if test -n "$PKG_CONFIG"; then
16960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16961printf "%s\n" "$PKG_CONFIG" >&6; }
16962else
16963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964printf "%s\n" "no" >&6; }
16965fi
16966
16967
16968fi
16969if test -z "$ac_cv_path_PKG_CONFIG"; then
16970  ac_pt_PKG_CONFIG=$PKG_CONFIG
16971  # Extract the first word of "pkg-config", so it can be a program name with args.
16972set dummy pkg-config; ac_word=$2
16973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16974printf %s "checking for $ac_word... " >&6; }
16975if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16976then :
16977  printf %s "(cached) " >&6
16978else $as_nop
16979  case $ac_pt_PKG_CONFIG in
16980  [\\/]* | ?:[\\/]*)
16981  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16982  ;;
16983  *)
16984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16985for as_dir in $PATH
16986do
16987  IFS=$as_save_IFS
16988  case $as_dir in #(((
16989    '') as_dir=./ ;;
16990    */) ;;
16991    *) as_dir=$as_dir/ ;;
16992  esac
16993    for ac_exec_ext in '' $ac_executable_extensions; do
16994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16995    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16997    break 2
16998  fi
16999done
17000  done
17001IFS=$as_save_IFS
17002
17003  ;;
17004esac
17005fi
17006ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17007if test -n "$ac_pt_PKG_CONFIG"; then
17008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17009printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17010else
17011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17012printf "%s\n" "no" >&6; }
17013fi
17014
17015  if test "x$ac_pt_PKG_CONFIG" = x; then
17016    PKG_CONFIG=""
17017  else
17018    case $cross_compiling:$ac_tool_warned in
17019yes:)
17020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17022ac_tool_warned=yes ;;
17023esac
17024    PKG_CONFIG=$ac_pt_PKG_CONFIG
17025  fi
17026else
17027  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17028fi
17029
17030fi
17031if test -n "$PKG_CONFIG"; then
17032	_pkg_min_version=0.9.0
17033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17034printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17035	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17037printf "%s\n" "yes" >&6; }
17038	else
17039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040printf "%s\n" "no" >&6; }
17041		PKG_CONFIG=""
17042	fi
17043fi
17044if test -z "$PKG_CONFIG"
17045then :
17046  as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
17047fi
17048
17049# Fuzzing is not included in pairwise testing as fuzzing tools are
17050# not present in the relevant Docker image.
17051#
17052# [pairwise: skip]
17053# Check whether --enable-fuzzing was given.
17054if test ${enable_fuzzing+y}
17055then :
17056  enableval=$enable_fuzzing;
17057else $as_nop
17058  enable_fuzzing=no
17059fi
17060
17061
17062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
17063printf %s "checking whether to enable fuzzing mode... " >&6; }
17064case $enable_fuzzing in #(
17065  no) :
17066    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17067printf "%s\n" "no" >&6; } ;; #(
17068  afl) :
17069
17070	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
17071printf "%s\n" "using AFL" >&6; }
17072
17073printf "%s\n" "#define ENABLE_AFL 1" >>confdefs.h
17074
17075	  STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
17076	  FUZZ_LOG_COMPILER="afl.sh" ;; #(
17077  libfuzzer) :
17078
17079	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
17080printf "%s\n" "using libFuzzer" >&6; }
17081	  STD_CFLAGS="$STD_CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer-no-link,address,undefined"
17082	  LDFLAGS="$LDFLAGS -fsanitize=address,undefined"
17083	  FUZZ_LDFLAGS="-fsanitize=fuzzer,address,undefined"
17084	  FUZZ_LOG_COMPILER="libfuzzer.sh" ;; #(
17085  ossfuzz) :
17086
17087	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using OSS-Fuzz" >&5
17088printf "%s\n" "using OSS-Fuzz" >&6; }
17089	    FUZZ_LDFLAGS="$LIB_FUZZING_ENGINE" ;; #(
17090  *) :
17091    as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
17092  *) :
17093     ;;
17094esac
17095 if test -n "$FUZZ_LOG_COMPILER"; then
17096  HAVE_FUZZ_LOG_COMPILER_TRUE=
17097  HAVE_FUZZ_LOG_COMPILER_FALSE='#'
17098else
17099  HAVE_FUZZ_LOG_COMPILER_TRUE='#'
17100  HAVE_FUZZ_LOG_COMPILER_FALSE=
17101fi
17102
17103
17104
17105
17106if test "$enable_fuzzing" = "afl"
17107then :
17108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
17109printf %s "checking \"for AFL enabled compiler\"... " >&6; }
17110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h.  */
17112
17113int
17114main (void)
17115{
17116#ifndef __AFL_COMPILER
17117					   #error AFL compiler required
17118					   #endif
17119
17120  ;
17121  return 0;
17122}
17123_ACEOF
17124if ac_fn_c_try_compile "$LINENO"
17125then :
17126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17127printf "%s\n" "yes" >&6; }
17128else $as_nop
17129  as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17132
17133fi
17134
17135#
17136# Perl is optional; it is used only by some of the system test scripts.
17137#
17138for ac_prog in perl5 perl
17139do
17140  # Extract the first word of "$ac_prog", so it can be a program name with args.
17141set dummy $ac_prog; ac_word=$2
17142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17143printf %s "checking for $ac_word... " >&6; }
17144if test ${ac_cv_path_PERL+y}
17145then :
17146  printf %s "(cached) " >&6
17147else $as_nop
17148  case $PERL in
17149  [\\/]* | ?:[\\/]*)
17150  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17151  ;;
17152  *)
17153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154for as_dir in $PATH
17155do
17156  IFS=$as_save_IFS
17157  case $as_dir in #(((
17158    '') as_dir=./ ;;
17159    */) ;;
17160    *) as_dir=$as_dir/ ;;
17161  esac
17162    for ac_exec_ext in '' $ac_executable_extensions; do
17163  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17164    ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
17165    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17166    break 2
17167  fi
17168done
17169  done
17170IFS=$as_save_IFS
17171
17172  ;;
17173esac
17174fi
17175PERL=$ac_cv_path_PERL
17176if test -n "$PERL"; then
17177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17178printf "%s\n" "$PERL" >&6; }
17179else
17180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17181printf "%s\n" "no" >&6; }
17182fi
17183
17184
17185  test -n "$PERL" && break
17186done
17187
17188
17189 if test -n "$PERL"; then
17190  HAVE_PERL_TRUE=
17191  HAVE_PERL_FALSE='#'
17192else
17193  HAVE_PERL_TRUE='#'
17194  HAVE_PERL_FALSE=
17195fi
17196
17197
17198#
17199# Python is optional, it is used only by some of the system test scripts.
17200#
17201
17202
17203
17204
17205
17206
17207        if test -n "$PYTHON"; then
17208      # If the user set $PYTHON, use it and don't search something else.
17209      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
17210printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
17211      prog="import sys
17212# split strings by '.' and convert to numeric.  Append some zeros
17213# because we need at least 4 digits for the hex conversion.
17214# map returns an iterator in Python 3.0 and a list in 2.x
17215minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
17216minverhex = 0
17217# xrange is not present in Python 3.0 and range returns an iterator
17218for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17219sys.exit(sys.hexversion < minverhex)"
17220  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17221   ($PYTHON -c "$prog") >&5 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }
17225then :
17226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17227printf "%s\n" "yes" >&6; }
17228else $as_nop
17229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17230printf "%s\n" "no" >&6; }
17231			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17232fi
17233      am_display_PYTHON=$PYTHON
17234    else
17235      # Otherwise, try each interpreter until we find one that satisfies
17236      # VERSION.
17237      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
17238printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
17239if test ${am_cv_pathless_PYTHON+y}
17240then :
17241  printf %s "(cached) " >&6
17242else $as_nop
17243
17244	for am_cv_pathless_PYTHON in python python2 python3  python3.11 python3.10  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
17245	  test "$am_cv_pathless_PYTHON" = none && break
17246	  prog="import sys
17247# split strings by '.' and convert to numeric.  Append some zeros
17248# because we need at least 4 digits for the hex conversion.
17249# map returns an iterator in Python 3.0 and a list in 2.x
17250minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
17251minverhex = 0
17252# xrange is not present in Python 3.0 and range returns an iterator
17253for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17254sys.exit(sys.hexversion < minverhex)"
17255  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17256   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }
17260then :
17261  break
17262fi
17263	done
17264fi
17265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17266printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
17267      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17268      if test "$am_cv_pathless_PYTHON" = none; then
17269	PYTHON=:
17270      else
17271        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17272set dummy $am_cv_pathless_PYTHON; ac_word=$2
17273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274printf %s "checking for $ac_word... " >&6; }
17275if test ${ac_cv_path_PYTHON+y}
17276then :
17277  printf %s "(cached) " >&6
17278else $as_nop
17279  case $PYTHON in
17280  [\\/]* | ?:[\\/]*)
17281  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17282  ;;
17283  *)
17284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285for as_dir in $PATH
17286do
17287  IFS=$as_save_IFS
17288  case $as_dir in #(((
17289    '') as_dir=./ ;;
17290    */) ;;
17291    *) as_dir=$as_dir/ ;;
17292  esac
17293    for ac_exec_ext in '' $ac_executable_extensions; do
17294  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17295    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
17296    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17297    break 2
17298  fi
17299done
17300  done
17301IFS=$as_save_IFS
17302
17303  ;;
17304esac
17305fi
17306PYTHON=$ac_cv_path_PYTHON
17307if test -n "$PYTHON"; then
17308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17309printf "%s\n" "$PYTHON" >&6; }
17310else
17311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312printf "%s\n" "no" >&6; }
17313fi
17314
17315
17316      fi
17317      am_display_PYTHON=$am_cv_pathless_PYTHON
17318    fi
17319
17320
17321  if test "$PYTHON" = :; then
17322        :
17323  else
17324
17325              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17326printf %s "checking for $am_display_PYTHON version... " >&6; }
17327if test ${am_cv_python_version+y}
17328then :
17329  printf %s "(cached) " >&6
17330else $as_nop
17331  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
17332fi
17333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17334printf "%s\n" "$am_cv_python_version" >&6; }
17335  PYTHON_VERSION=$am_cv_python_version
17336
17337
17338        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17339printf %s "checking for $am_display_PYTHON platform... " >&6; }
17340if test ${am_cv_python_platform+y}
17341then :
17342  printf %s "(cached) " >&6
17343else $as_nop
17344  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17345fi
17346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17347printf "%s\n" "$am_cv_python_platform" >&6; }
17348  PYTHON_PLATFORM=$am_cv_python_platform
17349
17350
17351                            if test "x$prefix" = xNONE; then
17352    am__usable_prefix=$ac_default_prefix
17353  else
17354    am__usable_prefix=$prefix
17355  fi
17356
17357  # Allow user to request using sys.* values from Python,
17358  # instead of the GNU $prefix values.
17359
17360# Check whether --with-python-sys-prefix was given.
17361if test ${with_python_sys_prefix+y}
17362then :
17363  withval=$with_python_sys_prefix; am_use_python_sys=:
17364else $as_nop
17365  am_use_python_sys=false
17366fi
17367
17368
17369  # Allow user to override whatever the default Python prefix is.
17370
17371# Check whether --with-python_prefix was given.
17372if test ${with_python_prefix+y}
17373then :
17374  withval=$with_python_prefix; am_python_prefix_subst=$withval
17375   am_cv_python_prefix=$withval
17376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
17377printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
17378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
17379printf "%s\n" "$am_cv_python_prefix" >&6; }
17380else $as_nop
17381
17382   if $am_use_python_sys; then
17383     # using python sys.prefix value, not GNU
17384     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
17385printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
17386if test ${am_cv_python_prefix+y}
17387then :
17388  printf %s "(cached) " >&6
17389else $as_nop
17390  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
17391fi
17392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
17393printf "%s\n" "$am_cv_python_prefix" >&6; }
17394
17395               case $am_cv_python_prefix in
17396     $am__usable_prefix*)
17397       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
17398       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
17399       ;;
17400     *)
17401       am_python_prefix_subst=$am_cv_python_prefix
17402       ;;
17403     esac
17404   else # using GNU prefix value, not python sys.prefix
17405     am_python_prefix_subst='${prefix}'
17406     am_python_prefix=$am_python_prefix_subst
17407     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
17408printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
17409     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
17410printf "%s\n" "$am_python_prefix" >&6; }
17411   fi
17412fi
17413
17414  # Substituting python_prefix_subst value.
17415  PYTHON_PREFIX=$am_python_prefix_subst
17416
17417
17418  # emacs-page Now do it all over again for Python exec_prefix, but with yet
17419  # another conditional: fall back to regular prefix if that was specified.
17420
17421# Check whether --with-python_exec_prefix was given.
17422if test ${with_python_exec_prefix+y}
17423then :
17424  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
17425   am_cv_python_exec_prefix=$withval
17426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
17427printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
17428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17429printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17430else $as_nop
17431
17432   # no explicit --with-python_exec_prefix, but if
17433   # --with-python_prefix was given, use its value for python_exec_prefix too.
17434   if test -n "$with_python_prefix"
17435then :
17436  am_python_exec_prefix_subst=$with_python_prefix
17437    am_cv_python_exec_prefix=$with_python_prefix
17438    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
17439printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
17440    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17441printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17442else $as_nop
17443
17444    # Set am__usable_exec_prefix whether using GNU or Python values,
17445    # since we use that variable for pyexecdir.
17446    if test "x$exec_prefix" = xNONE; then
17447      am__usable_exec_prefix=$am__usable_prefix
17448    else
17449      am__usable_exec_prefix=$exec_prefix
17450    fi
17451    #
17452    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
17453      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
17454printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
17455if test ${am_cv_python_exec_prefix+y}
17456then :
17457  printf %s "(cached) " >&6
17458else $as_nop
17459  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
17460fi
17461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
17462printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
17463                        case $am_cv_python_exec_prefix in
17464      $am__usable_exec_prefix*)
17465        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
17466        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
17467        ;;
17468      *)
17469        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
17470        ;;
17471     esac
17472   else # using GNU $exec_prefix, not python sys.exec_prefix
17473     am_python_exec_prefix_subst='${exec_prefix}'
17474     am_python_exec_prefix=$am_python_exec_prefix_subst
17475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
17476printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
17477     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
17478printf "%s\n" "$am_python_exec_prefix" >&6; }
17479   fi
17480fi
17481fi
17482
17483  # Substituting python_exec_prefix_subst.
17484  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
17485
17486
17487  # Factor out some code duplication into this shell variable.
17488  am_python_setup_sysconfig="\
17489import sys
17490# Prefer sysconfig over distutils.sysconfig, for better compatibility
17491# with python 3.x.  See automake bug#10227.
17492try:
17493    import sysconfig
17494except ImportError:
17495    can_use_sysconfig = 0
17496else:
17497    can_use_sysconfig = 1
17498# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17499# <https://github.com/pypa/virtualenv/issues/118>
17500try:
17501    from platform import python_implementation
17502    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17503        can_use_sysconfig = 0
17504except ImportError:
17505    pass"
17506
17507
17508              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
17509printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
17510if test ${am_cv_python_pythondir+y}
17511then :
17512  printf %s "(cached) " >&6
17513else $as_nop
17514  if test "x$am_cv_python_prefix" = x; then
17515     am_py_prefix=$am__usable_prefix
17516   else
17517     am_py_prefix=$am_cv_python_prefix
17518   fi
17519   am_cv_python_pythondir=`$PYTHON -c "
17520$am_python_setup_sysconfig
17521if can_use_sysconfig:
17522  if hasattr(sysconfig, 'get_default_scheme'):
17523    scheme = sysconfig.get_default_scheme()
17524  else:
17525    scheme = sysconfig._get_default_scheme()
17526  if scheme == 'posix_local':
17527    # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
17528    scheme = 'posix_prefix'
17529  sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
17530else:
17531  from distutils import sysconfig
17532  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17533sys.stdout.write(sitedir)"`
17534   #
17535   case $am_cv_python_pythondir in
17536   $am_py_prefix*)
17537     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17538     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
17539     ;;
17540   *)
17541     case $am_py_prefix in
17542       /usr|/System*) ;;
17543       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
17544          ;;
17545     esac
17546     ;;
17547   esac
17548
17549fi
17550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17551printf "%s\n" "$am_cv_python_pythondir" >&6; }
17552  pythondir=$am_cv_python_pythondir
17553
17554
17555          pkgpythondir=\${pythondir}/$PACKAGE
17556
17557
17558          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
17559printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
17560if test ${am_cv_python_pyexecdir+y}
17561then :
17562  printf %s "(cached) " >&6
17563else $as_nop
17564  if test "x$am_cv_python_exec_prefix" = x; then
17565     am_py_exec_prefix=$am__usable_exec_prefix
17566   else
17567     am_py_exec_prefix=$am_cv_python_exec_prefix
17568   fi
17569   am_cv_python_pyexecdir=`$PYTHON -c "
17570$am_python_setup_sysconfig
17571if can_use_sysconfig:
17572  if hasattr(sysconfig, 'get_default_scheme'):
17573    scheme = sysconfig.get_default_scheme()
17574  else:
17575    scheme = sysconfig._get_default_scheme()
17576  if scheme == 'posix_local':
17577    # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
17578    scheme = 'posix_prefix'
17579  sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
17580else:
17581  from distutils import sysconfig
17582  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
17583sys.stdout.write(sitedir)"`
17584   #
17585   case $am_cv_python_pyexecdir in
17586   $am_py_exec_prefix*)
17587     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17588     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
17589     ;;
17590   *)
17591     case $am_py_exec_prefix in
17592       /usr|/System*) ;;
17593       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
17594          ;;
17595     esac
17596     ;;
17597   esac
17598
17599fi
17600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17601printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
17602  pyexecdir=$am_cv_python_pyexecdir
17603
17604
17605      pkgpyexecdir=\${pyexecdir}/$PACKAGE
17606
17607
17608
17609  fi
17610
17611 if test "$PYTHON" != ":"; then
17612  HAVE_PYTHON_TRUE=
17613  HAVE_PYTHON_FALSE='#'
17614else
17615  HAVE_PYTHON_TRUE='#'
17616  HAVE_PYTHON_FALSE=
17617fi
17618
17619
17620for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy
17621do
17622  # Extract the first word of "$ac_prog", so it can be a program name with args.
17623set dummy $ac_prog; ac_word=$2
17624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17625printf %s "checking for $ac_word... " >&6; }
17626if test ${ac_cv_path_PYTEST+y}
17627then :
17628  printf %s "(cached) " >&6
17629else $as_nop
17630  case $PYTEST in
17631  [\\/]* | ?:[\\/]*)
17632  ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
17633  ;;
17634  *)
17635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17636for as_dir in $PATH
17637do
17638  IFS=$as_save_IFS
17639  case $as_dir in #(((
17640    '') as_dir=./ ;;
17641    */) ;;
17642    *) as_dir=$as_dir/ ;;
17643  esac
17644    for ac_exec_ext in '' $ac_executable_extensions; do
17645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17646    ac_cv_path_PYTEST="$as_dir$ac_word$ac_exec_ext"
17647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17648    break 2
17649  fi
17650done
17651  done
17652IFS=$as_save_IFS
17653
17654  ;;
17655esac
17656fi
17657PYTEST=$ac_cv_path_PYTEST
17658if test -n "$PYTEST"; then
17659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
17660printf "%s\n" "$PYTEST" >&6; }
17661else
17662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17663printf "%s\n" "no" >&6; }
17664fi
17665
17666
17667  test -n "$PYTEST" && break
17668done
17669
17670if test -z "$PYTEST"
17671then :
17672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
17673printf "%s\n" "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
17674fi
17675
17676 if test -n "$PYTEST"; then
17677  HAVE_PYTEST_TRUE=
17678  HAVE_PYTEST_FALSE='#'
17679else
17680  HAVE_PYTEST_TRUE='#'
17681  HAVE_PYTEST_FALSE=
17682fi
17683
17684
17685#
17686# xsltproc is optional, it is used only by system test scripts.
17687#
17688# Extract the first word of "xsltproc", so it can be a program name with args.
17689set dummy xsltproc; ac_word=$2
17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17691printf %s "checking for $ac_word... " >&6; }
17692if test ${ac_cv_path_XSLTPROC+y}
17693then :
17694  printf %s "(cached) " >&6
17695else $as_nop
17696  case $XSLTPROC in
17697  [\\/]* | ?:[\\/]*)
17698  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17699  ;;
17700  *)
17701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17702for as_dir in $PATH
17703do
17704  IFS=$as_save_IFS
17705  case $as_dir in #(((
17706    '') as_dir=./ ;;
17707    */) ;;
17708    *) as_dir=$as_dir/ ;;
17709  esac
17710    for ac_exec_ext in '' $ac_executable_extensions; do
17711  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17712    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
17713    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17714    break 2
17715  fi
17716done
17717  done
17718IFS=$as_save_IFS
17719
17720  ;;
17721esac
17722fi
17723XSLTPROC=$ac_cv_path_XSLTPROC
17724if test -n "$XSLTPROC"; then
17725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17726printf "%s\n" "$XSLTPROC" >&6; }
17727else
17728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729printf "%s\n" "no" >&6; }
17730fi
17731
17732
17733
17734#
17735# Using Solaris linker with gcc on Solaris breaks Thread Local Storage
17736#
17737case $host in #(
17738  *-solaris*) :
17739
17740	    if test "$GCC" = "yes"
17741then :
17742  LDFLAGS="$LDFLAGS -zrelax=transtls"
17743		   { printf "%s\n" "$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
17744printf "%s\n" "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
17745
17746fi
17747	 ;; #(
17748  *) :
17749     ;;
17750esac
17751
17752ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17753if test "x$ac_cv_header_sys_param_h" = xyes
17754then :
17755  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17756
17757fi
17758ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17759if test "x$ac_cv_header_sys_socket_h" = xyes
17760then :
17761  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
17762
17763fi
17764
17765ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default
17766		  #ifdef HAVE_SYS_PARAM_H
17767		  # include <sys/param.h>
17768		  #endif
17769		  #ifdef HAVE_SYS_SOCKET_H
17770		  # include <sys/socket.h>
17771		  #endif
17772
17773"
17774if test "x$ac_cv_header_fcntl_h" = xyes
17775then :
17776  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17777
17778fi
17779ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
17780		  #ifdef HAVE_SYS_PARAM_H
17781		  # include <sys/param.h>
17782		  #endif
17783		  #ifdef HAVE_SYS_SOCKET_H
17784		  # include <sys/socket.h>
17785		  #endif
17786
17787"
17788if test "x$ac_cv_header_regex_h" = xyes
17789then :
17790  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
17791
17792fi
17793ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default
17794		  #ifdef HAVE_SYS_PARAM_H
17795		  # include <sys/param.h>
17796		  #endif
17797		  #ifdef HAVE_SYS_SOCKET_H
17798		  # include <sys/socket.h>
17799		  #endif
17800
17801"
17802if test "x$ac_cv_header_sys_time_h" = xyes
17803then :
17804  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
17805
17806fi
17807ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
17808		  #ifdef HAVE_SYS_PARAM_H
17809		  # include <sys/param.h>
17810		  #endif
17811		  #ifdef HAVE_SYS_SOCKET_H
17812		  # include <sys/socket.h>
17813		  #endif
17814
17815"
17816if test "x$ac_cv_header_unistd_h" = xyes
17817then :
17818  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17819
17820fi
17821ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default
17822		  #ifdef HAVE_SYS_PARAM_H
17823		  # include <sys/param.h>
17824		  #endif
17825		  #ifdef HAVE_SYS_SOCKET_H
17826		  # include <sys/socket.h>
17827		  #endif
17828
17829"
17830if test "x$ac_cv_header_sys_mman_h" = xyes
17831then :
17832  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
17833
17834fi
17835ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default
17836		  #ifdef HAVE_SYS_PARAM_H
17837		  # include <sys/param.h>
17838		  #endif
17839		  #ifdef HAVE_SYS_SOCKET_H
17840		  # include <sys/socket.h>
17841		  #endif
17842
17843"
17844if test "x$ac_cv_header_sys_sockio_h" = xyes
17845then :
17846  printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
17847
17848fi
17849ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default
17850		  #ifdef HAVE_SYS_PARAM_H
17851		  # include <sys/param.h>
17852		  #endif
17853		  #ifdef HAVE_SYS_SOCKET_H
17854		  # include <sys/socket.h>
17855		  #endif
17856
17857"
17858if test "x$ac_cv_header_sys_select_h" = xyes
17859then :
17860  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
17861
17862fi
17863ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
17864		  #ifdef HAVE_SYS_PARAM_H
17865		  # include <sys/param.h>
17866		  #endif
17867		  #ifdef HAVE_SYS_SOCKET_H
17868		  # include <sys/socket.h>
17869		  #endif
17870
17871"
17872if test "x$ac_cv_header_sys_sysctl_h" = xyes
17873then :
17874  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
17875
17876fi
17877ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default
17878		  #ifdef HAVE_SYS_PARAM_H
17879		  # include <sys/param.h>
17880		  #endif
17881		  #ifdef HAVE_SYS_SOCKET_H
17882		  # include <sys/socket.h>
17883		  #endif
17884
17885"
17886if test "x$ac_cv_header_net_if6_h" = xyes
17887then :
17888  printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h
17889
17890fi
17891ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "$ac_includes_default
17892		  #ifdef HAVE_SYS_PARAM_H
17893		  # include <sys/param.h>
17894		  #endif
17895		  #ifdef HAVE_SYS_SOCKET_H
17896		  # include <sys/socket.h>
17897		  #endif
17898
17899"
17900if test "x$ac_cv_header_net_route_h" = xyes
17901then :
17902  printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
17903
17904fi
17905ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "$ac_includes_default
17906		  #ifdef HAVE_SYS_PARAM_H
17907		  # include <sys/param.h>
17908		  #endif
17909		  #ifdef HAVE_SYS_SOCKET_H
17910		  # include <sys/socket.h>
17911		  #endif
17912
17913"
17914if test "x$ac_cv_header_linux_netlink_h" = xyes
17915then :
17916  printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
17917
17918fi
17919ac_fn_c_check_header_compile "$LINENO" "linux/rtnetlink.h" "ac_cv_header_linux_rtnetlink_h" "$ac_includes_default
17920		  #ifdef HAVE_SYS_PARAM_H
17921		  # include <sys/param.h>
17922		  #endif
17923		  #ifdef HAVE_SYS_SOCKET_H
17924		  # include <sys/socket.h>
17925		  #endif
17926
17927"
17928if test "x$ac_cv_header_linux_rtnetlink_h" = xyes
17929then :
17930  printf "%s\n" "#define HAVE_LINUX_RTNETLINK_H 1" >>confdefs.h
17931
17932fi
17933
17934
17935#
17936# Check for thread local storage
17937#
17938ac_fn_c_check_header_compile "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
17939if test "x$ac_cv_header_threads_h" = xyes
17940then :
17941  printf "%s\n" "#define HAVE_THREADS_H 1" >>confdefs.h
17942
17943fi
17944
17945
17946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
17947printf %s "checking for thread local storage (TLS) class... " >&6; }
17948  if test ${ac_cv_tls+y}
17949then :
17950  printf %s "(cached) " >&6
17951else $as_nop
17952  for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
17953       case $ax_tls_keyword in #(
17954  none) :
17955    ac_cv_tls=none ; break ;; #(
17956  *) :
17957    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h.  */
17959#include <stdlib.h>
17960int
17961main (void)
17962{
17963static  $ax_tls_keyword  int bar;
17964
17965  ;
17966  return 0;
17967}
17968_ACEOF
17969if ac_fn_c_try_compile "$LINENO"
17970then :
17971  ac_cv_tls=$ax_tls_keyword ; break
17972else $as_nop
17973  ac_cv_tls=none
17974
17975fi
17976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17977         ;;
17978esac
17979    done
17980
17981fi
17982
17983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
17984printf "%s\n" "$ac_cv_tls" >&6; }
17985
17986  if test "$ac_cv_tls" != "none"
17987then :
17988
17989printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
17990
17991     if test "$ac_cv_tls" != "thread_local"
17992then :
17993
17994printf "%s\n" "#define thread_local $ac_cv_tls" >>confdefs.h
17995
17996fi
17997else $as_nop
17998  as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
17999fi
18000
18001
18002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18003printf %s "checking for an ANSI C-conforming const... " >&6; }
18004if test ${ac_cv_c_const+y}
18005then :
18006  printf %s "(cached) " >&6
18007else $as_nop
18008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h.  */
18010
18011int
18012main (void)
18013{
18014
18015#ifndef __cplusplus
18016  /* Ultrix mips cc rejects this sort of thing.  */
18017  typedef int charset[2];
18018  const charset cs = { 0, 0 };
18019  /* SunOS 4.1.1 cc rejects this.  */
18020  char const *const *pcpcc;
18021  char **ppc;
18022  /* NEC SVR4.0.2 mips cc rejects this.  */
18023  struct point {int x, y;};
18024  static struct point const zero = {0,0};
18025  /* IBM XL C 1.02.0.0 rejects this.
18026     It does not let you subtract one const X* pointer from another in
18027     an arm of an if-expression whose if-part is not a constant
18028     expression */
18029  const char *g = "string";
18030  pcpcc = &g + (g ? g-g : 0);
18031  /* HPUX 7.0 cc rejects these. */
18032  ++pcpcc;
18033  ppc = (char**) pcpcc;
18034  pcpcc = (char const *const *) ppc;
18035  { /* SCO 3.2v4 cc rejects this sort of thing.  */
18036    char tx;
18037    char *t = &tx;
18038    char const *s = 0 ? (char *) 0 : (char const *) 0;
18039
18040    *t++ = 0;
18041    if (s) return 0;
18042  }
18043  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18044    int x[] = {25, 17};
18045    const int *foo = &x[0];
18046    ++foo;
18047  }
18048  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18049    typedef const int *iptr;
18050    iptr p = 0;
18051    ++p;
18052  }
18053  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
18054       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18055    struct s { int j; const int *ap[3]; } bx;
18056    struct s *b = &bx; b->j = 5;
18057  }
18058  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18059    const int foo = 10;
18060    if (!foo) return 0;
18061  }
18062  return !cs[0] && !zero.x;
18063#endif
18064
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069if ac_fn_c_try_compile "$LINENO"
18070then :
18071  ac_cv_c_const=yes
18072else $as_nop
18073  ac_cv_c_const=no
18074fi
18075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18076fi
18077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18078printf "%s\n" "$ac_cv_c_const" >&6; }
18079if test $ac_cv_c_const = no; then
18080
18081printf "%s\n" "#define const /**/" >>confdefs.h
18082
18083fi
18084
18085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18086printf %s "checking for inline... " >&6; }
18087if test ${ac_cv_c_inline+y}
18088then :
18089  printf %s "(cached) " >&6
18090else $as_nop
18091  ac_cv_c_inline=no
18092for ac_kw in inline __inline__ __inline; do
18093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094/* end confdefs.h.  */
18095#ifndef __cplusplus
18096typedef int foo_t;
18097static $ac_kw foo_t static_foo (void) {return 0; }
18098$ac_kw foo_t foo (void) {return 0; }
18099#endif
18100
18101_ACEOF
18102if ac_fn_c_try_compile "$LINENO"
18103then :
18104  ac_cv_c_inline=$ac_kw
18105fi
18106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18107  test "$ac_cv_c_inline" != no && break
18108done
18109
18110fi
18111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18112printf "%s\n" "$ac_cv_c_inline" >&6; }
18113
18114case $ac_cv_c_inline in
18115  inline | yes) ;;
18116  *)
18117    case $ac_cv_c_inline in
18118      no) ac_val=;;
18119      *) ac_val=$ac_cv_c_inline;;
18120    esac
18121    cat >>confdefs.h <<_ACEOF
18122#ifndef __cplusplus
18123#define inline $ac_val
18124#endif
18125_ACEOF
18126    ;;
18127esac
18128
18129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
18130printf %s "checking for working volatile... " >&6; }
18131if test ${ac_cv_c_volatile+y}
18132then :
18133  printf %s "(cached) " >&6
18134else $as_nop
18135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136/* end confdefs.h.  */
18137
18138int
18139main (void)
18140{
18141
18142volatile int x;
18143int * volatile y = (int *) 0;
18144return !x && !y;
18145  ;
18146  return 0;
18147}
18148_ACEOF
18149if ac_fn_c_try_compile "$LINENO"
18150then :
18151  ac_cv_c_volatile=yes
18152else $as_nop
18153  ac_cv_c_volatile=no
18154fi
18155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18156fi
18157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
18158printf "%s\n" "$ac_cv_c_volatile" >&6; }
18159if test $ac_cv_c_volatile = no; then
18160
18161printf "%s\n" "#define volatile /**/" >>confdefs.h
18162
18163fi
18164
18165
18166#
18167# Check for yield support on ARM processors
18168#
18169case $host in #(
18170  arm*) :
18171    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
18172printf %s "checking for yield instruction support... " >&6; }
18173	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174/* end confdefs.h.  */
18175
18176int
18177main (void)
18178{
18179__asm__ __volatile__ ("yield")
18180  ;
18181  return 0;
18182}
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"
18185then :
18186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18187printf "%s\n" "yes" >&6; }
18188
18189printf "%s\n" "#define HAVE_ARM_YIELD 1" >>confdefs.h
18190
18191else $as_nop
18192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193printf "%s\n" "no" >&6; }
18194fi
18195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
18196  *) :
18197     ;;
18198esac
18199
18200#
18201# Check for pause support on SPARC processors
18202#
18203case $host in #(
18204  sparc*) :
18205    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
18206printf %s "checking for pause instruction support... " >&6; }
18207	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208/* end confdefs.h.  */
18209
18210int
18211main (void)
18212{
18213__asm__ __volatile__ ("pause")
18214  ;
18215  return 0;
18216}
18217_ACEOF
18218if ac_fn_c_try_compile "$LINENO"
18219then :
18220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18221printf "%s\n" "yes" >&6; }
18222
18223printf "%s\n" "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
18224
18225else $as_nop
18226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18227printf "%s\n" "no" >&6; }
18228fi
18229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
18230  *) :
18231     ;;
18232esac
18233
18234ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
18235if test "x$ac_cv_func_sysctlbyname" = xyes
18236then :
18237  printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
18238
18239fi
18240
18241
18242#
18243# Older versions of HP/UX don't define seteuid() and setegid()
18244#
18245ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
18246if test "x$ac_cv_func_seteuid" = xyes
18247then :
18248  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
18249
18250fi
18251ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18252if test "x$ac_cv_func_setresuid" = xyes
18253then :
18254  printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
18255
18256fi
18257
18258ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
18259if test "x$ac_cv_func_setegid" = xyes
18260then :
18261  printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
18262
18263fi
18264ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18265if test "x$ac_cv_func_setresgid" = xyes
18266then :
18267  printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
18268
18269fi
18270
18271
18272ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18273if test "x$ac_cv_type_size_t" = xyes
18274then :
18275
18276else $as_nop
18277
18278printf "%s\n" "#define size_t unsigned int" >>confdefs.h
18279
18280fi
18281
18282ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
18283if test "x$ac_cv_type_ssize_t" = xyes
18284then :
18285
18286else $as_nop
18287
18288printf "%s\n" "#define ssize_t int" >>confdefs.h
18289
18290fi
18291
18292
18293  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
18294if test "x$ac_cv_type_uintptr_t" = xyes
18295then :
18296
18297printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
18298
18299else $as_nop
18300  for ac_type in 'unsigned int' 'unsigned long int' \
18301	'unsigned long long int'; do
18302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303/* end confdefs.h.  */
18304$ac_includes_default
18305int
18306main (void)
18307{
18308static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
18309test_array [0] = 0;
18310return test_array [0];
18311
18312  ;
18313  return 0;
18314}
18315_ACEOF
18316if ac_fn_c_try_compile "$LINENO"
18317then :
18318
18319printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
18320
18321	  ac_type=
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18324       test -z "$ac_type" && break
18325     done
18326fi
18327
18328
18329
18330#
18331# check for uname library routine
18332#
18333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
18334printf %s "checking for uname... " >&6; }
18335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336/* end confdefs.h.  */
18337#include <sys/utsname.h>
18338       #include <stdio.h>
18339
18340int
18341main (void)
18342{
18343
18344       struct utsname uts;
18345       uname(&uts);
18346       printf("running on %s %s %s for %s\n",
18347	      uts.sysname, uts.release, uts.version, uts.machine);
18348
18349  ;
18350  return 0;
18351}
18352_ACEOF
18353if ac_fn_c_try_compile "$LINENO"
18354then :
18355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356printf "%s\n" "yes" >&6; }
18357
18358printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
18359
18360
18361else $as_nop
18362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18363printf "%s\n" "no" >&6; }
18364   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
18365printf "%s\n" "$as_me: WARNING: uname is not correctly supported" >&2;}
18366
18367fi
18368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18369
18370#
18371# check for GCC noreturn attribute
18372#
18373
18374
18375
18376    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((noreturn))" >&5
18377printf %s "checking for __attribute__((noreturn))... " >&6; }
18378if test ${ax_cv_have_func_attribute_noreturn+y}
18379then :
18380  printf %s "(cached) " >&6
18381else $as_nop
18382
18383        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384/* end confdefs.h.  */
18385
18386
18387                    void foo( void ) __attribute__((noreturn));
18388
18389int
18390main (void)
18391{
18392
18393  ;
18394  return 0;
18395}
18396
18397_ACEOF
18398if ac_fn_c_try_link "$LINENO"
18399then :
18400                                      if grep -- -Wattributes conftest.err
18401then :
18402  ax_cv_have_func_attribute_noreturn=no
18403else $as_nop
18404  ax_cv_have_func_attribute_noreturn=yes
18405fi
18406else $as_nop
18407  ax_cv_have_func_attribute_noreturn=no
18408fi
18409rm -f core conftest.err conftest.$ac_objext conftest.beam \
18410    conftest$ac_exeext conftest.$ac_ext
18411
18412fi
18413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_noreturn" >&5
18414printf "%s\n" "$ax_cv_have_func_attribute_noreturn" >&6; }
18415
18416    if test yes = $ax_cv_have_func_attribute_noreturn
18417then :
18418
18419printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
18420
18421fi
18422
18423
18424
18425
18426#
18427# check for GCC malloc attribute
18428#
18429
18430
18431
18432    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5
18433printf %s "checking for __attribute__((malloc))... " >&6; }
18434if test ${ax_cv_have_func_attribute_malloc+y}
18435then :
18436  printf %s "(cached) " >&6
18437else $as_nop
18438
18439        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440/* end confdefs.h.  */
18441
18442
18443                    void *foo( void ) __attribute__((malloc));
18444
18445int
18446main (void)
18447{
18448
18449  ;
18450  return 0;
18451}
18452
18453_ACEOF
18454if ac_fn_c_try_link "$LINENO"
18455then :
18456                                      if grep -- -Wattributes conftest.err
18457then :
18458  ax_cv_have_func_attribute_malloc=no
18459else $as_nop
18460  ax_cv_have_func_attribute_malloc=yes
18461fi
18462else $as_nop
18463  ax_cv_have_func_attribute_malloc=no
18464fi
18465rm -f core conftest.err conftest.$ac_objext conftest.beam \
18466    conftest$ac_exeext conftest.$ac_ext
18467
18468fi
18469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5
18470printf "%s\n" "$ax_cv_have_func_attribute_malloc" >&6; }
18471
18472    if test yes = $ax_cv_have_func_attribute_malloc
18473then :
18474
18475printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
18476
18477fi
18478
18479
18480
18481
18482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5
18483printf %s "checking for extended malloc attributes... " >&6; }
18484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485/* end confdefs.h.  */
18486
18487       #include <stddef.h>
18488       #include <stdlib.h>
18489	   __attribute__ ((malloc, malloc (free, 1))
18490	   void * xmalloc(size_t sz) { return malloc(sz); }
18491
18492int
18493main (void)
18494{
18495
18496       void *p = xmalloc(8);
18497	   free(p);
18498
18499  ;
18500  return 0;
18501}
18502_ACEOF
18503if ac_fn_c_try_compile "$LINENO"
18504then :
18505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18506printf "%s\n" "yes" >&6; }
18507
18508printf "%s\n" "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h
18509
18510
18511else $as_nop
18512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513printf "%s\n" "no" >&6; }
18514fi
18515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18516
18517#
18518# check for GCC returns_nonnull attribute
18519#
18520
18521
18522
18523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5
18524printf %s "checking for __attribute__((returns_nonnull))... " >&6; }
18525if test ${ax_cv_have_func_attribute_returns_nonnull+y}
18526then :
18527  printf %s "(cached) " >&6
18528else $as_nop
18529
18530        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531/* end confdefs.h.  */
18532
18533
18534                    void *foo( void ) __attribute__((returns_nonnull));
18535
18536int
18537main (void)
18538{
18539
18540  ;
18541  return 0;
18542}
18543
18544_ACEOF
18545if ac_fn_c_try_link "$LINENO"
18546then :
18547                                      if grep -- -Wattributes conftest.err
18548then :
18549  ax_cv_have_func_attribute_returns_nonnull=no
18550else $as_nop
18551  ax_cv_have_func_attribute_returns_nonnull=yes
18552fi
18553else $as_nop
18554  ax_cv_have_func_attribute_returns_nonnull=no
18555fi
18556rm -f core conftest.err conftest.$ac_objext conftest.beam \
18557    conftest$ac_exeext conftest.$ac_ext
18558
18559fi
18560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5
18561printf "%s\n" "$ax_cv_have_func_attribute_returns_nonnull" >&6; }
18562
18563    if test yes = $ax_cv_have_func_attribute_returns_nonnull
18564then :
18565
18566printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
18567
18568fi
18569
18570
18571
18572
18573#
18574# GeoIP support?
18575#
18576# Should be on by default if libmaxminddb exists.
18577#
18578# [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
18579# Check whether --enable-geoip was given.
18580if test ${enable_geoip+y}
18581then :
18582  enableval=$enable_geoip;
18583else $as_nop
18584  enable_geoip="yes"
18585fi
18586
18587
18588# [pairwise: skip]
18589
18590# Check whether --with-maxminddb was given.
18591if test ${with_maxminddb+y}
18592then :
18593  withval=$with_maxminddb;
18594else $as_nop
18595  with_maxminddb="auto"
18596fi
18597
18598
18599if test "$enable_geoip" = "yes"
18600then :
18601  case $with_maxminddb in #(
18602  no) :
18603    as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
18604  auto) :
18605
18606pkg_failed=no
18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
18608printf %s "checking for libmaxminddb... " >&6; }
18609
18610if test -n "$MAXMINDDB_CFLAGS"; then
18611    pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
18612 elif test -n "$PKG_CONFIG"; then
18613    if test -n "$PKG_CONFIG" && \
18614    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18615  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18616  ac_status=$?
18617  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18618  test $ac_status = 0; }; then
18619  pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
18620		      test "x$?" != "x0" && pkg_failed=yes
18621else
18622  pkg_failed=yes
18623fi
18624 else
18625    pkg_failed=untried
18626fi
18627if test -n "$MAXMINDDB_LIBS"; then
18628    pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
18629 elif test -n "$PKG_CONFIG"; then
18630    if test -n "$PKG_CONFIG" && \
18631    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18632  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18633  ac_status=$?
18634  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18635  test $ac_status = 0; }; then
18636  pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
18637		      test "x$?" != "x0" && pkg_failed=yes
18638else
18639  pkg_failed=yes
18640fi
18641 else
18642    pkg_failed=untried
18643fi
18644
18645
18646
18647if test $pkg_failed = yes; then
18648        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649printf "%s\n" "no" >&6; }
18650
18651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18652        _pkg_short_errors_supported=yes
18653else
18654        _pkg_short_errors_supported=no
18655fi
18656        if test $_pkg_short_errors_supported = yes; then
18657                MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
18658        else
18659                MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
18660        fi
18661        # Put the nasty error message in config.log where it belongs
18662        echo "$MAXMINDDB_PKG_ERRORS" >&5
18663
18664        :
18665elif test $pkg_failed = untried; then
18666        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667printf "%s\n" "no" >&6; }
18668        :
18669else
18670        MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
18671        MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
18672        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673printf "%s\n" "yes" >&6; }
18674
18675printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
18676
18677
18678if test -n "$MAXMINDDB_PREFIX"; then
18679    pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
18680 elif test -n "$PKG_CONFIG"; then
18681    if test -n "$PKG_CONFIG" && \
18682    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18683  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18684  ac_status=$?
18685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18686  test $ac_status = 0; }; then
18687  pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
18688		      test "x$?" != "x0" && pkg_failed=yes
18689else
18690  pkg_failed=yes
18691fi
18692 else
18693    pkg_failed=untried
18694fi
18695MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
18696
18697if test "x$MAXMINDDB_PREFIX" = x""
18698then :
18699  as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
18700fi
18701
18702fi ;; #(
18703  yes) :
18704
18705pkg_failed=no
18706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
18707printf %s "checking for libmaxminddb... " >&6; }
18708
18709if test -n "$MAXMINDDB_CFLAGS"; then
18710    pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
18711 elif test -n "$PKG_CONFIG"; then
18712    if test -n "$PKG_CONFIG" && \
18713    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18714  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18715  ac_status=$?
18716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18717  test $ac_status = 0; }; then
18718  pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
18719		      test "x$?" != "x0" && pkg_failed=yes
18720else
18721  pkg_failed=yes
18722fi
18723 else
18724    pkg_failed=untried
18725fi
18726if test -n "$MAXMINDDB_LIBS"; then
18727    pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
18728 elif test -n "$PKG_CONFIG"; then
18729    if test -n "$PKG_CONFIG" && \
18730    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18731  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18732  ac_status=$?
18733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734  test $ac_status = 0; }; then
18735  pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
18736		      test "x$?" != "x0" && pkg_failed=yes
18737else
18738  pkg_failed=yes
18739fi
18740 else
18741    pkg_failed=untried
18742fi
18743
18744
18745
18746if test $pkg_failed = yes; then
18747        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18748printf "%s\n" "no" >&6; }
18749
18750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18751        _pkg_short_errors_supported=yes
18752else
18753        _pkg_short_errors_supported=no
18754fi
18755        if test $_pkg_short_errors_supported = yes; then
18756                MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
18757        else
18758                MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
18759        fi
18760        # Put the nasty error message in config.log where it belongs
18761        echo "$MAXMINDDB_PKG_ERRORS" >&5
18762
18763        as_fn_error $? "Package requirements (libmaxminddb) were not met:
18764
18765$MAXMINDDB_PKG_ERRORS
18766
18767Consider adjusting the PKG_CONFIG_PATH environment variable if you
18768installed software in a non-standard prefix.
18769
18770Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
18771and MAXMINDDB_LIBS to avoid the need to call pkg-config.
18772See the pkg-config man page for more details." "$LINENO" 5
18773elif test $pkg_failed = untried; then
18774        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18775printf "%s\n" "no" >&6; }
18776        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18777printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18778as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18779is in your PATH or set the PKG_CONFIG environment variable to the full
18780path to pkg-config.
18781
18782Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
18783and MAXMINDDB_LIBS to avoid the need to call pkg-config.
18784See the pkg-config man page for more details.
18785
18786To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18787See \`config.log' for more details" "$LINENO" 5; }
18788else
18789        MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
18790        MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
18791        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18792printf "%s\n" "yes" >&6; }
18793
18794printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
18795
18796
18797if test -n "$MAXMINDDB_PREFIX"; then
18798    pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
18799 elif test -n "$PKG_CONFIG"; then
18800    if test -n "$PKG_CONFIG" && \
18801    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
18802  ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
18803  ac_status=$?
18804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18805  test $ac_status = 0; }; then
18806  pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
18807		      test "x$?" != "x0" && pkg_failed=yes
18808else
18809  pkg_failed=yes
18810fi
18811 else
18812    pkg_failed=untried
18813fi
18814MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
18815
18816if test "x$MAXMINDDB_PREFIX" = x""
18817then :
18818  as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
18819fi
18820
18821fi ;; #(
18822  *) :
18823     # default
18824
18825
18826  CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
18827
18828
18829
18830  CFLAGS_maxminddb_ax_save_flags=$CFLAGS
18831
18832
18833
18834  CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
18835
18836
18837
18838  CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
18839
18840
18841
18842  ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
18843
18844
18845
18846  FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
18847
18848
18849
18850  FCLIBS_maxminddb_ax_save_flags=$FCLIBS
18851
18852
18853
18854  FFLAGS_maxminddb_ax_save_flags=$FFLAGS
18855
18856
18857
18858  FLIBS_maxminddb_ax_save_flags=$FLIBS
18859
18860
18861
18862  GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
18863
18864
18865
18866  JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
18867
18868
18869
18870  LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
18871
18872
18873
18874  LIBS_maxminddb_ax_save_flags=$LIBS
18875
18876
18877
18878  OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
18879
18880
18881
18882  OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
18883
18884
18885
18886  UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
18887
18888
18889
18890  VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
18891
18892
18893
18894		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
18895		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
18896		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
18897		   LIBS="$LIBS $MAXMINDDB_LIBS"
18898		   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
18899printf %s "checking for library containing MMDB_open... " >&6; }
18900if test ${ac_cv_search_MMDB_open+y}
18901then :
18902  printf %s "(cached) " >&6
18903else $as_nop
18904  ac_func_search_save_LIBS=$LIBS
18905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906/* end confdefs.h.  */
18907
18908/* Override any GCC internal prototype to avoid an error.
18909   Use char because int might match the return type of a GCC
18910   builtin and then its argument prototype would still apply.  */
18911char MMDB_open ();
18912int
18913main (void)
18914{
18915return MMDB_open ();
18916  ;
18917  return 0;
18918}
18919_ACEOF
18920for ac_lib in '' maxminddb
18921do
18922  if test -z "$ac_lib"; then
18923    ac_res="none required"
18924  else
18925    ac_res=-l$ac_lib
18926    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18927  fi
18928  if ac_fn_c_try_link "$LINENO"
18929then :
18930  ac_cv_search_MMDB_open=$ac_res
18931fi
18932rm -f core conftest.err conftest.$ac_objext conftest.beam \
18933    conftest$ac_exeext
18934  if test ${ac_cv_search_MMDB_open+y}
18935then :
18936  break
18937fi
18938done
18939if test ${ac_cv_search_MMDB_open+y}
18940then :
18941
18942else $as_nop
18943  ac_cv_search_MMDB_open=no
18944fi
18945rm conftest.$ac_ext
18946LIBS=$ac_func_search_save_LIBS
18947fi
18948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
18949printf "%s\n" "$ac_cv_search_MMDB_open" >&6; }
18950ac_res=$ac_cv_search_MMDB_open
18951if test "$ac_res" != no
18952then :
18953  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18954
18955printf "%s\n" "#define HAVE_GEOIP2 1" >>confdefs.h
18956
18957				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
18958				   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
18959printf "%s\n" "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
18960				   MAXMINDDB_PREFIX=$with_maxminddb
18961
18962else $as_nop
18963  as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
18964fi
18965
18966
18967  CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
18968
18969
18970  CFLAGS=$CFLAGS_maxminddb_ax_save_flags
18971
18972
18973  CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
18974
18975
18976  CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
18977
18978
18979  ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
18980
18981
18982  FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
18983
18984
18985  FCLIBS=$FCLIBS_maxminddb_ax_save_flags
18986
18987
18988  FFLAGS=$FFLAGS_maxminddb_ax_save_flags
18989
18990
18991  FLIBS=$FLIBS_maxminddb_ax_save_flags
18992
18993
18994  GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
18995
18996
18997  JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
18998
18999
19000  LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
19001
19002
19003  LIBS=$LIBS_maxminddb_ax_save_flags
19004
19005
19006  OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
19007
19008
19009  OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
19010
19011
19012  UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
19013
19014
19015  VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
19016
19017
19018
19019	        ;;
19020esac
19021
19022
19023fi
19024
19025 if test -n "$MAXMINDDB_LIBS"; then
19026  HAVE_GEOIP2_TRUE=
19027  HAVE_GEOIP2_FALSE='#'
19028else
19029  HAVE_GEOIP2_TRUE='#'
19030  HAVE_GEOIP2_FALSE=
19031fi
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042ac_ext=c
19043ac_cpp='$CPP $CPPFLAGS'
19044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19046ac_compiler_gnu=$ac_cv_c_compiler_gnu
19047
19048ax_pthread_ok=no
19049
19050# We used to check for pthread.h first, but this fails if pthread.h
19051# requires special compiler flags (e.g. on Tru64 or Sequent).
19052# It gets checked for in the link test anyway.
19053
19054# First of all, check if the user has set any of the PTHREAD_LIBS,
19055# etcetera environment variables, and if threads linking works using
19056# them:
19057if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19058        ax_pthread_save_CC="$CC"
19059        ax_pthread_save_CFLAGS="$CFLAGS"
19060        ax_pthread_save_LIBS="$LIBS"
19061        if test "x$PTHREAD_CC" != "x"
19062then :
19063  CC="$PTHREAD_CC"
19064fi
19065        if test "x$PTHREAD_CXX" != "x"
19066then :
19067  CXX="$PTHREAD_CXX"
19068fi
19069        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19070        LIBS="$PTHREAD_LIBS $LIBS"
19071        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19072printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19073        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074/* end confdefs.h.  */
19075
19076/* Override any GCC internal prototype to avoid an error.
19077   Use char because int might match the return type of a GCC
19078   builtin and then its argument prototype would still apply.  */
19079char pthread_join ();
19080int
19081main (void)
19082{
19083return pthread_join ();
19084  ;
19085  return 0;
19086}
19087_ACEOF
19088if ac_fn_c_try_link "$LINENO"
19089then :
19090  ax_pthread_ok=yes
19091fi
19092rm -f core conftest.err conftest.$ac_objext conftest.beam \
19093    conftest$ac_exeext conftest.$ac_ext
19094        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19095printf "%s\n" "$ax_pthread_ok" >&6; }
19096        if test "x$ax_pthread_ok" = "xno"; then
19097                PTHREAD_LIBS=""
19098                PTHREAD_CFLAGS=""
19099        fi
19100        CC="$ax_pthread_save_CC"
19101        CFLAGS="$ax_pthread_save_CFLAGS"
19102        LIBS="$ax_pthread_save_LIBS"
19103fi
19104
19105# We must check for the threads library under a number of different
19106# names; the ordering is very important because some systems
19107# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19108# libraries is broken (non-POSIX).
19109
19110# Create a list of thread flags to try. Items with a "," contain both
19111# C compiler flags (before ",") and linker flags (after ","). Other items
19112# starting with a "-" are C compiler flags, and remaining items are
19113# library names, except for "none" which indicates that we try without
19114# any flags at all, and "pthread-config" which is a program returning
19115# the flags for the Pth emulation library.
19116
19117ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19118
19119# The ordering *is* (sometimes) important.  Some notes on the
19120# individual items follow:
19121
19122# pthreads: AIX (must check this before -lpthread)
19123# none: in case threads are in libc; should be tried before -Kthread and
19124#       other compiler flags to prevent continual compiler warnings
19125# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19126# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19127#           (Note: HP C rejects this with "bad form for `-t' option")
19128# -pthreads: Solaris/gcc (Note: HP C also rejects)
19129# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19130#      doesn't hurt to check since this sometimes defines pthreads and
19131#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
19132#      is present but should not be used directly; and before -mthreads,
19133#      because the compiler interprets this as "-mt" + "-hreads")
19134# -mthreads: Mingw32/gcc, Lynx/gcc
19135# pthread: Linux, etcetera
19136# --thread-safe: KAI C++
19137# pthread-config: use pthread-config program (for GNU Pth library)
19138
19139case $target_os in
19140
19141        freebsd*)
19142
19143        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19144        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19145
19146        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19147        ;;
19148
19149        hpux*)
19150
19151        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19152        # multi-threading and also sets -lpthread."
19153
19154        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19155        ;;
19156
19157        openedition*)
19158
19159        # IBM z/OS requires a feature-test macro to be defined in order to
19160        # enable POSIX threads at all, so give the user a hint if this is
19161        # not set. (We don't define these ourselves, as they can affect
19162        # other portions of the system API in unpredictable ways.)
19163
19164        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165/* end confdefs.h.  */
19166
19167#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19168             AX_PTHREAD_ZOS_MISSING
19169#            endif
19170
19171_ACEOF
19172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19173  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
19174then :
19175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19176printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19177fi
19178rm -rf conftest*
19179
19180        ;;
19181
19182        solaris*)
19183
19184        # On Solaris (at least, for some versions), libc contains stubbed
19185        # (non-functional) versions of the pthreads routines, so link-based
19186        # tests will erroneously succeed. (N.B.: The stubs are missing
19187        # pthread_cleanup_push, or rather a function called by this macro,
19188        # so we could check for that, but who knows whether they'll stub
19189        # that too in a future libc.)  So we'll check first for the
19190        # standard Solaris way of linking pthreads (-mt -lpthread).
19191
19192        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
19193        ;;
19194esac
19195
19196# Are we compiling with Clang?
19197
19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19199printf %s "checking whether $CC is Clang... " >&6; }
19200if test ${ax_cv_PTHREAD_CLANG+y}
19201then :
19202  printf %s "(cached) " >&6
19203else $as_nop
19204  ax_cv_PTHREAD_CLANG=no
19205     # Note that Autoconf sets GCC=yes for Clang as well as GCC
19206     if test "x$GCC" = "xyes"; then
19207        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208/* end confdefs.h.  */
19209/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19210#            if defined(__clang__) && defined(__llvm__)
19211             AX_PTHREAD_CC_IS_CLANG
19212#            endif
19213
19214_ACEOF
19215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19216  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
19217then :
19218  ax_cv_PTHREAD_CLANG=yes
19219fi
19220rm -rf conftest*
19221
19222     fi
19223
19224fi
19225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19226printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
19227ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19228
19229
19230# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19231
19232# Note that for GCC and Clang -pthread generally implies -lpthread,
19233# except when -nostdlib is passed.
19234# This is problematic using libtool to build C++ shared libraries with pthread:
19235# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
19236# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
19237# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
19238# To solve this, first try -pthread together with -lpthread for GCC
19239
19240if test "x$GCC" = "xyes"
19241then :
19242  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
19243fi
19244
19245# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
19246
19247if test "x$ax_pthread_clang" = "xyes"
19248then :
19249  ax_pthread_flags="-pthread,-lpthread -pthread"
19250fi
19251
19252
19253# The presence of a feature test macro requesting re-entrant function
19254# definitions is, on some systems, a strong hint that pthreads support is
19255# correctly enabled
19256
19257case $target_os in
19258        darwin* | hpux* | linux* | osf* | solaris*)
19259        ax_pthread_check_macro="_REENTRANT"
19260        ;;
19261
19262        aix*)
19263        ax_pthread_check_macro="_THREAD_SAFE"
19264        ;;
19265
19266        *)
19267        ax_pthread_check_macro="--"
19268        ;;
19269esac
19270if test "x$ax_pthread_check_macro" = "x--"
19271then :
19272  ax_pthread_check_cond=0
19273else $as_nop
19274  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19275fi
19276
19277
19278if test "x$ax_pthread_ok" = "xno"; then
19279for ax_pthread_try_flag in $ax_pthread_flags; do
19280
19281        case $ax_pthread_try_flag in
19282                none)
19283                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19284printf %s "checking whether pthreads work without any flags... " >&6; }
19285                ;;
19286
19287                *,*)
19288                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
19289                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
19290                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
19291printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
19292                ;;
19293
19294                -*)
19295                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19296printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19297                PTHREAD_CFLAGS="$ax_pthread_try_flag"
19298                ;;
19299
19300                pthread-config)
19301                # Extract the first word of "pthread-config", so it can be a program name with args.
19302set dummy pthread-config; ac_word=$2
19303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19304printf %s "checking for $ac_word... " >&6; }
19305if test ${ac_cv_prog_ax_pthread_config+y}
19306then :
19307  printf %s "(cached) " >&6
19308else $as_nop
19309  if test -n "$ax_pthread_config"; then
19310  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19311else
19312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19313for as_dir in $PATH
19314do
19315  IFS=$as_save_IFS
19316  case $as_dir in #(((
19317    '') as_dir=./ ;;
19318    */) ;;
19319    *) as_dir=$as_dir/ ;;
19320  esac
19321    for ac_exec_ext in '' $ac_executable_extensions; do
19322  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19323    ac_cv_prog_ax_pthread_config="yes"
19324    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19325    break 2
19326  fi
19327done
19328  done
19329IFS=$as_save_IFS
19330
19331  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19332fi
19333fi
19334ax_pthread_config=$ac_cv_prog_ax_pthread_config
19335if test -n "$ax_pthread_config"; then
19336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19337printf "%s\n" "$ax_pthread_config" >&6; }
19338else
19339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19340printf "%s\n" "no" >&6; }
19341fi
19342
19343
19344                if test "x$ax_pthread_config" = "xno"
19345then :
19346  continue
19347fi
19348                PTHREAD_CFLAGS="`pthread-config --cflags`"
19349                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19350                ;;
19351
19352                *)
19353                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19354printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19355                PTHREAD_LIBS="-l$ax_pthread_try_flag"
19356                ;;
19357        esac
19358
19359        ax_pthread_save_CFLAGS="$CFLAGS"
19360        ax_pthread_save_LIBS="$LIBS"
19361        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19362        LIBS="$PTHREAD_LIBS $LIBS"
19363
19364        # Check for various functions.  We must include pthread.h,
19365        # since some functions may be macros.  (On the Sequent, we
19366        # need a special flag -Kthread to make this header compile.)
19367        # We check for pthread_join because it is in -lpthread on IRIX
19368        # while pthread_create is in libc.  We check for pthread_attr_init
19369        # due to DEC craziness with -lpthreads.  We check for
19370        # pthread_cleanup_push because it is one of the few pthread
19371        # functions on Solaris that doesn't have a non-functional libc stub.
19372        # We try pthread_create on general principles.
19373
19374        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375/* end confdefs.h.  */
19376#include <pthread.h>
19377#                       if $ax_pthread_check_cond
19378#                        error "$ax_pthread_check_macro must be defined"
19379#                       endif
19380                        static void *some_global = NULL;
19381                        static void routine(void *a)
19382                          {
19383                             /* To avoid any unused-parameter or
19384                                unused-but-set-parameter warning.  */
19385                             some_global = a;
19386                          }
19387                        static void *start_routine(void *a) { return a; }
19388int
19389main (void)
19390{
19391pthread_t th; pthread_attr_t attr;
19392                        pthread_create(&th, 0, start_routine, 0);
19393                        pthread_join(th, 0);
19394                        pthread_attr_init(&attr);
19395                        pthread_cleanup_push(routine, 0);
19396                        pthread_cleanup_pop(0) /* ; */
19397  ;
19398  return 0;
19399}
19400_ACEOF
19401if ac_fn_c_try_link "$LINENO"
19402then :
19403  ax_pthread_ok=yes
19404fi
19405rm -f core conftest.err conftest.$ac_objext conftest.beam \
19406    conftest$ac_exeext conftest.$ac_ext
19407
19408        CFLAGS="$ax_pthread_save_CFLAGS"
19409        LIBS="$ax_pthread_save_LIBS"
19410
19411        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19412printf "%s\n" "$ax_pthread_ok" >&6; }
19413        if test "x$ax_pthread_ok" = "xyes"
19414then :
19415  break
19416fi
19417
19418        PTHREAD_LIBS=""
19419        PTHREAD_CFLAGS=""
19420done
19421fi
19422
19423
19424# Clang needs special handling, because older versions handle the -pthread
19425# option in a rather... idiosyncratic way
19426
19427if test "x$ax_pthread_clang" = "xyes"; then
19428
19429        # Clang takes -pthread; it has never supported any other flag
19430
19431        # (Note 1: This will need to be revisited if a system that Clang
19432        # supports has POSIX threads in a separate library.  This tends not
19433        # to be the way of modern systems, but it's conceivable.)
19434
19435        # (Note 2: On some systems, notably Darwin, -pthread is not needed
19436        # to get POSIX threads support; the API is always present and
19437        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
19438        # -pthread does define _REENTRANT, and while the Darwin headers
19439        # ignore this macro, third-party headers might not.)
19440
19441        # However, older versions of Clang make a point of warning the user
19442        # that, in an invocation where only linking and no compilation is
19443        # taking place, the -pthread option has no effect ("argument unused
19444        # during compilation").  They expect -pthread to be passed in only
19445        # when source code is being compiled.
19446        #
19447        # Problem is, this is at odds with the way Automake and most other
19448        # C build frameworks function, which is that the same flags used in
19449        # compilation (CFLAGS) are also used in linking.  Many systems
19450        # supported by AX_PTHREAD require exactly this for POSIX threads
19451        # support, and in fact it is often not straightforward to specify a
19452        # flag that is used only in the compilation phase and not in
19453        # linking.  Such a scenario is extremely rare in practice.
19454        #
19455        # Even though use of the -pthread flag in linking would only print
19456        # a warning, this can be a nuisance for well-run software projects
19457        # that build with -Werror.  So if the active version of Clang has
19458        # this misfeature, we search for an option to squash it.
19459
19460        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19461printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19462if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
19463then :
19464  printf %s "(cached) " >&6
19465else $as_nop
19466  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19467             # Create an alternate version of $ac_link that compiles and
19468             # links in two steps (.c -> .o, .o -> exe) instead of one
19469             # (.c -> exe), because the warning occurs only in the second
19470             # step
19471             ax_pthread_save_ac_link="$ac_link"
19472             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19473             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
19474             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19475             ax_pthread_save_CFLAGS="$CFLAGS"
19476             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19477                if test "x$ax_pthread_try" = "xunknown"
19478then :
19479  break
19480fi
19481                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19482                ac_link="$ax_pthread_save_ac_link"
19483                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h.  */
19485int main(void){return 0;}
19486_ACEOF
19487if ac_fn_c_try_link "$LINENO"
19488then :
19489  ac_link="$ax_pthread_2step_ac_link"
19490                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491/* end confdefs.h.  */
19492int main(void){return 0;}
19493_ACEOF
19494if ac_fn_c_try_link "$LINENO"
19495then :
19496  break
19497fi
19498rm -f core conftest.err conftest.$ac_objext conftest.beam \
19499    conftest$ac_exeext conftest.$ac_ext
19500
19501fi
19502rm -f core conftest.err conftest.$ac_objext conftest.beam \
19503    conftest$ac_exeext conftest.$ac_ext
19504             done
19505             ac_link="$ax_pthread_save_ac_link"
19506             CFLAGS="$ax_pthread_save_CFLAGS"
19507             if test "x$ax_pthread_try" = "x"
19508then :
19509  ax_pthread_try=no
19510fi
19511             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19512
19513fi
19514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19515printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19516
19517        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19518                no | unknown) ;;
19519                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19520        esac
19521
19522fi # $ax_pthread_clang = yes
19523
19524
19525
19526# Various other checks:
19527if test "x$ax_pthread_ok" = "xyes"; then
19528        ax_pthread_save_CFLAGS="$CFLAGS"
19529        ax_pthread_save_LIBS="$LIBS"
19530        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19531        LIBS="$PTHREAD_LIBS $LIBS"
19532
19533        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19534        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19535printf %s "checking for joinable pthread attribute... " >&6; }
19536if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
19537then :
19538  printf %s "(cached) " >&6
19539else $as_nop
19540  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19541             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19542                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543/* end confdefs.h.  */
19544#include <pthread.h>
19545int
19546main (void)
19547{
19548int attr = $ax_pthread_attr; return attr /* ; */
19549  ;
19550  return 0;
19551}
19552_ACEOF
19553if ac_fn_c_try_link "$LINENO"
19554then :
19555  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19556fi
19557rm -f core conftest.err conftest.$ac_objext conftest.beam \
19558    conftest$ac_exeext conftest.$ac_ext
19559             done
19560
19561fi
19562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19563printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19564        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19565               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19566               test "x$ax_pthread_joinable_attr_defined" != "xyes"
19567then :
19568
19569printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
19570
19571               ax_pthread_joinable_attr_defined=yes
19572
19573fi
19574
19575        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19576printf %s "checking whether more special flags are required for pthreads... " >&6; }
19577if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
19578then :
19579  printf %s "(cached) " >&6
19580else $as_nop
19581  ax_cv_PTHREAD_SPECIAL_FLAGS=no
19582             case $target_os in
19583             solaris*)
19584             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19585             ;;
19586             esac
19587
19588fi
19589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19590printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19591        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19592               test "x$ax_pthread_special_flags_added" != "xyes"
19593then :
19594  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19595               ax_pthread_special_flags_added=yes
19596fi
19597
19598        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19599printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19600if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
19601then :
19602  printf %s "(cached) " >&6
19603else $as_nop
19604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605/* end confdefs.h.  */
19606#include <pthread.h>
19607int
19608main (void)
19609{
19610int i = PTHREAD_PRIO_INHERIT;
19611                                               return i;
19612  ;
19613  return 0;
19614}
19615_ACEOF
19616if ac_fn_c_try_link "$LINENO"
19617then :
19618  ax_cv_PTHREAD_PRIO_INHERIT=yes
19619else $as_nop
19620  ax_cv_PTHREAD_PRIO_INHERIT=no
19621fi
19622rm -f core conftest.err conftest.$ac_objext conftest.beam \
19623    conftest$ac_exeext conftest.$ac_ext
19624
19625fi
19626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19627printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19628        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19629               test "x$ax_pthread_prio_inherit_defined" != "xyes"
19630then :
19631
19632printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19633
19634               ax_pthread_prio_inherit_defined=yes
19635
19636fi
19637
19638        CFLAGS="$ax_pthread_save_CFLAGS"
19639        LIBS="$ax_pthread_save_LIBS"
19640
19641        # More AIX lossage: compile with *_r variant
19642        if test "x$GCC" != "xyes"; then
19643            case $target_os in
19644                aix*)
19645                case "x/$CC" in #(
19646  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19647    #handle absolute path differently from PATH based program lookup
19648                     case "x$CC" in #(
19649  x/*) :
19650
19651			   if as_fn_executable_p ${CC}_r
19652then :
19653  PTHREAD_CC="${CC}_r"
19654fi
19655			   if test "x${CXX}" != "x"
19656then :
19657  if as_fn_executable_p ${CXX}_r
19658then :
19659  PTHREAD_CXX="${CXX}_r"
19660fi
19661fi
19662			  ;; #(
19663  *) :
19664
19665			   for ac_prog in ${CC}_r
19666do
19667  # Extract the first word of "$ac_prog", so it can be a program name with args.
19668set dummy $ac_prog; ac_word=$2
19669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19670printf %s "checking for $ac_word... " >&6; }
19671if test ${ac_cv_prog_PTHREAD_CC+y}
19672then :
19673  printf %s "(cached) " >&6
19674else $as_nop
19675  if test -n "$PTHREAD_CC"; then
19676  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19677else
19678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679for as_dir in $PATH
19680do
19681  IFS=$as_save_IFS
19682  case $as_dir in #(((
19683    '') as_dir=./ ;;
19684    */) ;;
19685    *) as_dir=$as_dir/ ;;
19686  esac
19687    for ac_exec_ext in '' $ac_executable_extensions; do
19688  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19689    ac_cv_prog_PTHREAD_CC="$ac_prog"
19690    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19691    break 2
19692  fi
19693done
19694  done
19695IFS=$as_save_IFS
19696
19697fi
19698fi
19699PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19700if test -n "$PTHREAD_CC"; then
19701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19702printf "%s\n" "$PTHREAD_CC" >&6; }
19703else
19704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19705printf "%s\n" "no" >&6; }
19706fi
19707
19708
19709  test -n "$PTHREAD_CC" && break
19710done
19711test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19712
19713			   if test "x${CXX}" != "x"
19714then :
19715  for ac_prog in ${CXX}_r
19716do
19717  # Extract the first word of "$ac_prog", so it can be a program name with args.
19718set dummy $ac_prog; ac_word=$2
19719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19720printf %s "checking for $ac_word... " >&6; }
19721if test ${ac_cv_prog_PTHREAD_CXX+y}
19722then :
19723  printf %s "(cached) " >&6
19724else $as_nop
19725  if test -n "$PTHREAD_CXX"; then
19726  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
19727else
19728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19729for as_dir in $PATH
19730do
19731  IFS=$as_save_IFS
19732  case $as_dir in #(((
19733    '') as_dir=./ ;;
19734    */) ;;
19735    *) as_dir=$as_dir/ ;;
19736  esac
19737    for ac_exec_ext in '' $ac_executable_extensions; do
19738  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19739    ac_cv_prog_PTHREAD_CXX="$ac_prog"
19740    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19741    break 2
19742  fi
19743done
19744  done
19745IFS=$as_save_IFS
19746
19747fi
19748fi
19749PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
19750if test -n "$PTHREAD_CXX"; then
19751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
19752printf "%s\n" "$PTHREAD_CXX" >&6; }
19753else
19754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755printf "%s\n" "no" >&6; }
19756fi
19757
19758
19759  test -n "$PTHREAD_CXX" && break
19760done
19761test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
19762
19763fi
19764
19765                      ;;
19766esac
19767                     ;; #(
19768  *) :
19769     ;;
19770esac
19771                ;;
19772            esac
19773        fi
19774fi
19775
19776test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19777test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
19778
19779
19780
19781
19782
19783
19784# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19785if test "x$ax_pthread_ok" = "xyes"; then
19786
19787printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
19788
19789        :
19790else
19791        ax_pthread_ok=no
19792
19793fi
19794ac_ext=c
19795ac_cpp='$CPP $CPPFLAGS'
19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798ac_compiler_gnu=$ac_cv_c_compiler_gnu
19799
19800
19801
19802LIBS="$PTHREAD_LIBS $LIBS"
19803CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19804CC="$PTHREAD_CC"
19805
19806ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
19807if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
19808then :
19809  printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
19810
19811fi
19812ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
19813if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
19814then :
19815  printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
19816
19817fi
19818ac_fn_c_check_func "$LINENO" "pthread_barrier_init" "ac_cv_func_pthread_barrier_init"
19819if test "x$ac_cv_func_pthread_barrier_init" = xyes
19820then :
19821  printf "%s\n" "#define HAVE_PTHREAD_BARRIER_INIT 1" >>confdefs.h
19822
19823fi
19824
19825
19826# [pairwise: --with-locktype=adaptive, --with-locktype=standard]
19827
19828# Check whether --with-locktype was given.
19829if test ${with_locktype+y}
19830then :
19831  withval=$with_locktype;
19832else $as_nop
19833  with_locktype="adaptive"
19834fi
19835
19836
19837case $with_locktype in #(
19838  adaptive) :
19839
19840	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
19841printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
19842	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843/* end confdefs.h.  */
19844
19845		 #ifndef _GNU_SOURCE
19846		 #define _GNU_SOURCE
19847		 #endif
19848		 #include <pthread.h>
19849
19850int
19851main (void)
19852{
19853
19854		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
19855
19856
19857  ;
19858  return 0;
19859}
19860_ACEOF
19861if ac_fn_c_try_compile "$LINENO"
19862then :
19863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
19864printf "%s\n" "using adaptive lock type" >&6; }
19865
19866printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
19867
19868else $as_nop
19869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
19870printf "%s\n" "using standard lock type" >&6; }
19871
19872fi
19873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
19874  standard) :
19875    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
19876printf "%s\n" "using standard lock type" >&6; } ;; #(
19877  *) :
19878    as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
19879        ;;
19880esac
19881
19882ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19883if test "x$ac_cv_header_sched_h" = xyes
19884then :
19885  printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19886
19887fi
19888
19889
19890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19891printf %s "checking for library containing sched_yield... " >&6; }
19892if test ${ac_cv_search_sched_yield+y}
19893then :
19894  printf %s "(cached) " >&6
19895else $as_nop
19896  ac_func_search_save_LIBS=$LIBS
19897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898/* end confdefs.h.  */
19899
19900/* Override any GCC internal prototype to avoid an error.
19901   Use char because int might match the return type of a GCC
19902   builtin and then its argument prototype would still apply.  */
19903char sched_yield ();
19904int
19905main (void)
19906{
19907return sched_yield ();
19908  ;
19909  return 0;
19910}
19911_ACEOF
19912for ac_lib in '' rt
19913do
19914  if test -z "$ac_lib"; then
19915    ac_res="none required"
19916  else
19917    ac_res=-l$ac_lib
19918    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19919  fi
19920  if ac_fn_c_try_link "$LINENO"
19921then :
19922  ac_cv_search_sched_yield=$ac_res
19923fi
19924rm -f core conftest.err conftest.$ac_objext conftest.beam \
19925    conftest$ac_exeext
19926  if test ${ac_cv_search_sched_yield+y}
19927then :
19928  break
19929fi
19930done
19931if test ${ac_cv_search_sched_yield+y}
19932then :
19933
19934else $as_nop
19935  ac_cv_search_sched_yield=no
19936fi
19937rm conftest.$ac_ext
19938LIBS=$ac_func_search_save_LIBS
19939fi
19940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19941printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19942ac_res=$ac_cv_search_sched_yield
19943if test "$ac_res" != no
19944then :
19945  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19946
19947fi
19948
19949ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19950if test "x$ac_cv_func_sched_yield" = xyes
19951then :
19952  printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19953
19954fi
19955ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
19956if test "x$ac_cv_func_pthread_yield" = xyes
19957then :
19958  printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
19959
19960fi
19961ac_fn_c_check_func "$LINENO" "pthread_yield_np" "ac_cv_func_pthread_yield_np"
19962if test "x$ac_cv_func_pthread_yield_np" = xyes
19963then :
19964  printf "%s\n" "#define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h
19965
19966fi
19967
19968
19969# Look for functions relating to thread naming
19970ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
19971if test "x$ac_cv_func_pthread_setname_np" = xyes
19972then :
19973  printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
19974
19975fi
19976ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
19977if test "x$ac_cv_func_pthread_set_name_np" = xyes
19978then :
19979  printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
19980
19981fi
19982
19983ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
19984"
19985if test "x$ac_cv_header_pthread_np_h" = xyes
19986then :
19987  printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
19988
19989fi
19990
19991
19992# libuv
19993
19994pkg_failed=no
19995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.37.0" >&5
19996printf %s "checking for libuv >= 1.37.0... " >&6; }
19997
19998if test -n "$LIBUV_CFLAGS"; then
19999    pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20000 elif test -n "$PKG_CONFIG"; then
20001    if test -n "$PKG_CONFIG" && \
20002    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5
20003  ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5
20004  ac_status=$?
20005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20006  test $ac_status = 0; }; then
20007  pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.37.0" 2>/dev/null`
20008		      test "x$?" != "x0" && pkg_failed=yes
20009else
20010  pkg_failed=yes
20011fi
20012 else
20013    pkg_failed=untried
20014fi
20015if test -n "$LIBUV_LIBS"; then
20016    pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20017 elif test -n "$PKG_CONFIG"; then
20018    if test -n "$PKG_CONFIG" && \
20019    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.37.0\""; } >&5
20020  ($PKG_CONFIG --exists --print-errors "libuv >= 1.37.0") 2>&5
20021  ac_status=$?
20022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20023  test $ac_status = 0; }; then
20024  pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.37.0" 2>/dev/null`
20025		      test "x$?" != "x0" && pkg_failed=yes
20026else
20027  pkg_failed=yes
20028fi
20029 else
20030    pkg_failed=untried
20031fi
20032
20033
20034
20035if test $pkg_failed = yes; then
20036        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20037printf "%s\n" "no" >&6; }
20038
20039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20040        _pkg_short_errors_supported=yes
20041else
20042        _pkg_short_errors_supported=no
20043fi
20044        if test $_pkg_short_errors_supported = yes; then
20045                LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1`
20046        else
20047                LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.37.0" 2>&1`
20048        fi
20049        # Put the nasty error message in config.log where it belongs
20050        echo "$LIBUV_PKG_ERRORS" >&5
20051
20052
20053pkg_failed=no
20054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0 libuv < 1.35.0" >&5
20055printf %s "checking for libuv >= 1.0.0 libuv < 1.35.0... " >&6; }
20056
20057if test -n "$LIBUV_CFLAGS"; then
20058    pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20059 elif test -n "$PKG_CONFIG"; then
20060    if test -n "$PKG_CONFIG" && \
20061    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0 libuv < 1.35.0\""; } >&5
20062  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0 libuv < 1.35.0") 2>&5
20063  ac_status=$?
20064  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20065  test $ac_status = 0; }; then
20066  pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0 libuv < 1.35.0" 2>/dev/null`
20067		      test "x$?" != "x0" && pkg_failed=yes
20068else
20069  pkg_failed=yes
20070fi
20071 else
20072    pkg_failed=untried
20073fi
20074if test -n "$LIBUV_LIBS"; then
20075    pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20076 elif test -n "$PKG_CONFIG"; then
20077    if test -n "$PKG_CONFIG" && \
20078    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0 libuv < 1.35.0\""; } >&5
20079  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0 libuv < 1.35.0") 2>&5
20080  ac_status=$?
20081  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20082  test $ac_status = 0; }; then
20083  pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>/dev/null`
20084		      test "x$?" != "x0" && pkg_failed=yes
20085else
20086  pkg_failed=yes
20087fi
20088 else
20089    pkg_failed=untried
20090fi
20091
20092
20093
20094if test $pkg_failed = yes; then
20095        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20096printf "%s\n" "no" >&6; }
20097
20098if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20099        _pkg_short_errors_supported=yes
20100else
20101        _pkg_short_errors_supported=no
20102fi
20103        if test $_pkg_short_errors_supported = yes; then
20104                LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>&1`
20105        else
20106                LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>&1`
20107        fi
20108        # Put the nasty error message in config.log where it belongs
20109        echo "$LIBUV_PKG_ERRORS" >&5
20110
20111        as_fn_error $? "libuv >= 1.0.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20112elif test $pkg_failed = untried; then
20113        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20114printf "%s\n" "no" >&6; }
20115        as_fn_error $? "libuv >= 1.0.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20116else
20117        LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20118        LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20119        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20120printf "%s\n" "yes" >&6; }
20121
20122fi
20123elif test $pkg_failed = untried; then
20124        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20125printf "%s\n" "no" >&6; }
20126
20127pkg_failed=no
20128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0 libuv < 1.35.0" >&5
20129printf %s "checking for libuv >= 1.0.0 libuv < 1.35.0... " >&6; }
20130
20131if test -n "$LIBUV_CFLAGS"; then
20132    pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
20133 elif test -n "$PKG_CONFIG"; then
20134    if test -n "$PKG_CONFIG" && \
20135    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0 libuv < 1.35.0\""; } >&5
20136  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0 libuv < 1.35.0") 2>&5
20137  ac_status=$?
20138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20139  test $ac_status = 0; }; then
20140  pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0 libuv < 1.35.0" 2>/dev/null`
20141		      test "x$?" != "x0" && pkg_failed=yes
20142else
20143  pkg_failed=yes
20144fi
20145 else
20146    pkg_failed=untried
20147fi
20148if test -n "$LIBUV_LIBS"; then
20149    pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
20150 elif test -n "$PKG_CONFIG"; then
20151    if test -n "$PKG_CONFIG" && \
20152    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0 libuv < 1.35.0\""; } >&5
20153  ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0 libuv < 1.35.0") 2>&5
20154  ac_status=$?
20155  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156  test $ac_status = 0; }; then
20157  pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>/dev/null`
20158		      test "x$?" != "x0" && pkg_failed=yes
20159else
20160  pkg_failed=yes
20161fi
20162 else
20163    pkg_failed=untried
20164fi
20165
20166
20167
20168if test $pkg_failed = yes; then
20169        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20170printf "%s\n" "no" >&6; }
20171
20172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20173        _pkg_short_errors_supported=yes
20174else
20175        _pkg_short_errors_supported=no
20176fi
20177        if test $_pkg_short_errors_supported = yes; then
20178                LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>&1`
20179        else
20180                LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0 libuv < 1.35.0" 2>&1`
20181        fi
20182        # Put the nasty error message in config.log where it belongs
20183        echo "$LIBUV_PKG_ERRORS" >&5
20184
20185        as_fn_error $? "libuv >= 1.0.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20186elif test $pkg_failed = untried; then
20187        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188printf "%s\n" "no" >&6; }
20189        as_fn_error $? "libuv >= 1.0.0 (except 1.35.0 and 1.36.0) not found" "$LINENO" 5
20190else
20191        LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20192        LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20193        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194printf "%s\n" "yes" >&6; }
20195
20196fi
20197else
20198        LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
20199        LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
20200        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20201printf "%s\n" "yes" >&6; }
20202
20203fi
20204
20205
20206
20207  CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
20208
20209
20210
20211  CFLAGS_libuv_ax_save_flags=$CFLAGS
20212
20213
20214
20215  CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
20216
20217
20218
20219  CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
20220
20221
20222
20223  ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
20224
20225
20226
20227  FCFLAGS_libuv_ax_save_flags=$FCFLAGS
20228
20229
20230
20231  FCLIBS_libuv_ax_save_flags=$FCLIBS
20232
20233
20234
20235  FFLAGS_libuv_ax_save_flags=$FFLAGS
20236
20237
20238
20239  FLIBS_libuv_ax_save_flags=$FLIBS
20240
20241
20242
20243  GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
20244
20245
20246
20247  JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
20248
20249
20250
20251  LDFLAGS_libuv_ax_save_flags=$LDFLAGS
20252
20253
20254
20255  LIBS_libuv_ax_save_flags=$LIBS
20256
20257
20258
20259  OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
20260
20261
20262
20263  OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
20264
20265
20266
20267  UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
20268
20269
20270
20271  VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
20272
20273
20274
20275CFLAGS="$CFLAGS $LIBUV_CFLAGS"
20276LIBS="$LIBS $LIBUV_LIBS"
20277
20278# libuv recvmmsg support
20279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20280printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20281if test ${ac_cv_c_undeclared_builtin_options+y}
20282then :
20283  printf %s "(cached) " >&6
20284else $as_nop
20285  ac_save_CFLAGS=$CFLAGS
20286   ac_cv_c_undeclared_builtin_options='cannot detect'
20287   for ac_arg in '' -fno-builtin; do
20288     CFLAGS="$ac_save_CFLAGS $ac_arg"
20289     # This test program should *not* compile successfully.
20290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291/* end confdefs.h.  */
20292
20293int
20294main (void)
20295{
20296(void) strchr;
20297  ;
20298  return 0;
20299}
20300_ACEOF
20301if ac_fn_c_try_compile "$LINENO"
20302then :
20303
20304else $as_nop
20305  # This test program should compile successfully.
20306        # No library function is consistently available on
20307        # freestanding implementations, so test against a dummy
20308        # declaration.  Include always-available headers on the
20309        # off chance that they somehow elicit warnings.
20310        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311/* end confdefs.h.  */
20312#include <float.h>
20313#include <limits.h>
20314#include <stdarg.h>
20315#include <stddef.h>
20316extern void ac_decl (int, char *);
20317
20318int
20319main (void)
20320{
20321(void) ac_decl (0, (char *) 0);
20322  (void) ac_decl;
20323
20324  ;
20325  return 0;
20326}
20327_ACEOF
20328if ac_fn_c_try_compile "$LINENO"
20329then :
20330  if test x"$ac_arg" = x
20331then :
20332  ac_cv_c_undeclared_builtin_options='none needed'
20333else $as_nop
20334  ac_cv_c_undeclared_builtin_options=$ac_arg
20335fi
20336          break
20337fi
20338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20339fi
20340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20341    done
20342    CFLAGS=$ac_save_CFLAGS
20343
20344fi
20345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20346printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20347  case $ac_cv_c_undeclared_builtin_options in #(
20348  'cannot detect') :
20349    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20350printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20351as_fn_error $? "cannot make $CC report undeclared builtins
20352See \`config.log' for more details" "$LINENO" 5; } ;; #(
20353  'none needed') :
20354    ac_c_undeclared_builtin_options='' ;; #(
20355  *) :
20356    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20357esac
20358
20359ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h>
20360" "$ac_c_undeclared_builtin_options" "CFLAGS"
20361if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes
20362then :
20363  ac_have_decl=1
20364else $as_nop
20365  ac_have_decl=0
20366fi
20367printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl" >>confdefs.h
20368ac_fn_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h>
20369" "$ac_c_undeclared_builtin_options" "CFLAGS"
20370if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes
20371then :
20372  ac_have_decl=1
20373else $as_nop
20374  ac_have_decl=0
20375fi
20376printf "%s\n" "#define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl" >>confdefs.h
20377
20378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5
20379printf %s "checking whether struct msghdr uses padding for alignment... " >&6; }
20380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h.  */
20382#include <sys/socket.h>
20383int
20384main (void)
20385{
20386const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 };
20387  ;
20388  return 0;
20389}
20390_ACEOF
20391if ac_fn_c_try_compile "$LINENO"
20392then :
20393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20394printf "%s\n" "yes" >&6; }
20395
20396printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h
20397
20398else $as_nop
20399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20400printf "%s\n" "no" >&6; }
20401		   ac_fn_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h>
20402" "$ac_c_undeclared_builtin_options" "CFLAGS"
20403if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes
20404then :
20405  ac_have_decl=1
20406else $as_nop
20407  ac_have_decl=0
20408fi
20409printf "%s\n" "#define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl" >>confdefs.h
20410
20411fi
20412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20413
20414
20415  CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
20416
20417
20418  CFLAGS=$CFLAGS_libuv_ax_save_flags
20419
20420
20421  CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
20422
20423
20424  CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
20425
20426
20427  ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
20428
20429
20430  FCFLAGS=$FCFLAGS_libuv_ax_save_flags
20431
20432
20433  FCLIBS=$FCLIBS_libuv_ax_save_flags
20434
20435
20436  FFLAGS=$FFLAGS_libuv_ax_save_flags
20437
20438
20439  FLIBS=$FLIBS_libuv_ax_save_flags
20440
20441
20442  GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
20443
20444
20445  JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
20446
20447
20448  LDFLAGS=$LDFLAGS_libuv_ax_save_flags
20449
20450
20451  LIBS=$LIBS_libuv_ax_save_flags
20452
20453
20454  OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
20455
20456
20457  OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
20458
20459
20460  UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
20461
20462
20463  VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
20464
20465
20466
20467
20468# [pairwise: --enable-doh --with-libnghttp2=auto, --enable-doh --with-libnghttp2=yes, --disable-doh]
20469# Check whether --enable-doh was given.
20470if test ${enable_doh+y}
20471then :
20472  enableval=$enable_doh;
20473else $as_nop
20474  enable_doh=yes
20475fi
20476
20477
20478# [pairwise: skip]
20479
20480# Check whether --with-libnghttp2 was given.
20481if test ${with_libnghttp2+y}
20482then :
20483  withval=$with_libnghttp2;
20484else $as_nop
20485  with_libnghttp2="auto"
20486fi
20487
20488
20489if test "$enable_doh" = "yes"
20490then :
20491  case $with_libnghttp2 in #(
20492  no) :
20493    as_fn_error $? "Use '--disable-doh' to disable DNS-over-HTTPS support" "$LINENO" 5 ;; #(
20494  auto|yes) :
20495
20496pkg_failed=no
20497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 >= 1.6.0" >&5
20498printf %s "checking for libnghttp2 >= 1.6.0... " >&6; }
20499
20500if test -n "$LIBNGHTTP2_CFLAGS"; then
20501    pkg_cv_LIBNGHTTP2_CFLAGS="$LIBNGHTTP2_CFLAGS"
20502 elif test -n "$PKG_CONFIG"; then
20503    if test -n "$PKG_CONFIG" && \
20504    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5
20505  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5
20506  ac_status=$?
20507  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508  test $ac_status = 0; }; then
20509  pkg_cv_LIBNGHTTP2_CFLAGS=`$PKG_CONFIG --cflags "libnghttp2 >= 1.6.0" 2>/dev/null`
20510		      test "x$?" != "x0" && pkg_failed=yes
20511else
20512  pkg_failed=yes
20513fi
20514 else
20515    pkg_failed=untried
20516fi
20517if test -n "$LIBNGHTTP2_LIBS"; then
20518    pkg_cv_LIBNGHTTP2_LIBS="$LIBNGHTTP2_LIBS"
20519 elif test -n "$PKG_CONFIG"; then
20520    if test -n "$PKG_CONFIG" && \
20521    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnghttp2 >= 1.6.0\""; } >&5
20522  ($PKG_CONFIG --exists --print-errors "libnghttp2 >= 1.6.0") 2>&5
20523  ac_status=$?
20524  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20525  test $ac_status = 0; }; then
20526  pkg_cv_LIBNGHTTP2_LIBS=`$PKG_CONFIG --libs "libnghttp2 >= 1.6.0" 2>/dev/null`
20527		      test "x$?" != "x0" && pkg_failed=yes
20528else
20529  pkg_failed=yes
20530fi
20531 else
20532    pkg_failed=untried
20533fi
20534
20535
20536
20537if test $pkg_failed = yes; then
20538        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20539printf "%s\n" "no" >&6; }
20540
20541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20542        _pkg_short_errors_supported=yes
20543else
20544        _pkg_short_errors_supported=no
20545fi
20546        if test $_pkg_short_errors_supported = yes; then
20547                LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1`
20548        else
20549                LIBNGHTTP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnghttp2 >= 1.6.0" 2>&1`
20550        fi
20551        # Put the nasty error message in config.log where it belongs
20552        echo "$LIBNGHTTP2_PKG_ERRORS" >&5
20553
20554        as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5
20555elif test $pkg_failed = untried; then
20556        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557printf "%s\n" "no" >&6; }
20558        as_fn_error $? "DNS-over-HTTPS support requested, but libnghttp2 not found. Either install libnghttp2 or use --disable-doh." "$LINENO" 5
20559else
20560        LIBNGHTTP2_CFLAGS=$pkg_cv_LIBNGHTTP2_CFLAGS
20561        LIBNGHTTP2_LIBS=$pkg_cv_LIBNGHTTP2_LIBS
20562        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20563printf "%s\n" "yes" >&6; }
20564
20565printf "%s\n" "#define HAVE_LIBNGHTTP2 1" >>confdefs.h
20566
20567fi ;; #(
20568  *) :
20569    as_fn_error $? "Specifying libnghttp2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
20570esac
20571fi
20572
20573 if test -n "$LIBNGHTTP2_LIBS"; then
20574  HAVE_LIBNGHTTP2_TRUE=
20575  HAVE_LIBNGHTTP2_FALSE='#'
20576else
20577  HAVE_LIBNGHTTP2_TRUE='#'
20578  HAVE_LIBNGHTTP2_FALSE=
20579fi
20580
20581
20582
20583#
20584# flockfile is usually provided by pthreads
20585#
20586ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
20587if test "x$ac_cv_func_flockfile" = xyes
20588then :
20589  printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
20590
20591fi
20592ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
20593if test "x$ac_cv_func_getc_unlocked" = xyes
20594then :
20595  printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
20596
20597fi
20598
20599
20600#
20601# Look for sysconf or other ways to allow detection of the number of processors.
20602#
20603ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20604if test "x$ac_cv_func_sysconf" = xyes
20605then :
20606  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20607
20608fi
20609
20610ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
20611if test "x$ac_cv_func_sysconf" = xyes
20612then :
20613  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
20614
20615fi
20616ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity"
20617if test "x$ac_cv_func_sched_getaffinity" = xyes
20618then :
20619  printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h
20620
20621fi
20622ac_fn_c_check_func "$LINENO" "cpuset_getaffinity" "ac_cv_func_cpuset_getaffinity"
20623if test "x$ac_cv_func_cpuset_getaffinity" = xyes
20624then :
20625  printf "%s\n" "#define HAVE_CPUSET_GETAFFINITY 1" >>confdefs.h
20626
20627fi
20628
20629ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default
20630		  #ifdef HAVE_SYS_PARAM_H
20631		  # include <sys/param.h>
20632		  #endif
20633
20634"
20635if test "x$ac_cv_header_sys_cpuset_h" = xyes
20636then :
20637  printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
20638
20639fi
20640
20641
20642#
20643# Do we want to use pthread rwlock?
20644#
20645# [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
20646# Check whether --enable-pthread_rwlock was given.
20647if test ${enable_pthread_rwlock+y}
20648then :
20649  enableval=$enable_pthread_rwlock;
20650else $as_nop
20651  enable_pthread_rwlock=no
20652fi
20653
20654
20655if test "$enable_pthread_rwlock" = "yes"
20656then :
20657
20658  for ac_func in pthread_rwlock_rdlock
20659do :
20660  ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
20661if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes
20662then :
20663  printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK 1" >>confdefs.h
20664
20665else $as_nop
20666  as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
20667fi
20668
20669done
20670
20671printf "%s\n" "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
20672
20673
20674fi
20675
20676CRYPTO=OpenSSL
20677
20678#
20679# OpenSSL/LibreSSL is mandatory
20680#
20681
20682pkg_failed=no
20683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
20684printf %s "checking for libssl libcrypto... " >&6; }
20685
20686if test -n "$OPENSSL_CFLAGS"; then
20687    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
20688 elif test -n "$PKG_CONFIG"; then
20689    if test -n "$PKG_CONFIG" && \
20690    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
20691  ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
20692  ac_status=$?
20693  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20694  test $ac_status = 0; }; then
20695  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
20696		      test "x$?" != "x0" && pkg_failed=yes
20697else
20698  pkg_failed=yes
20699fi
20700 else
20701    pkg_failed=untried
20702fi
20703if test -n "$OPENSSL_LIBS"; then
20704    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
20705 elif test -n "$PKG_CONFIG"; then
20706    if test -n "$PKG_CONFIG" && \
20707    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
20708  ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
20709  ac_status=$?
20710  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20711  test $ac_status = 0; }; then
20712  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
20713		      test "x$?" != "x0" && pkg_failed=yes
20714else
20715  pkg_failed=yes
20716fi
20717 else
20718    pkg_failed=untried
20719fi
20720
20721
20722
20723if test $pkg_failed = yes; then
20724        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725printf "%s\n" "no" >&6; }
20726
20727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20728        _pkg_short_errors_supported=yes
20729else
20730        _pkg_short_errors_supported=no
20731fi
20732        if test $_pkg_short_errors_supported = yes; then
20733                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
20734        else
20735                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
20736        fi
20737        # Put the nasty error message in config.log where it belongs
20738        echo "$OPENSSL_PKG_ERRORS" >&5
20739
20740
20741    found=false
20742
20743# Check whether --with-openssl was given.
20744if test ${with_openssl+y}
20745then :
20746  withval=$with_openssl;
20747            case "$withval" in
20748            "" | y | ye | yes | n | no)
20749            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
20750              ;;
20751            *) ssldirs="$withval"
20752              ;;
20753            esac
20754
20755else $as_nop
20756
20757            # if pkg-config is installed and openssl has installed a .pc file,
20758            # then use that information and don't search ssldirs
20759            if test -n "$ac_tool_prefix"; then
20760  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20763printf %s "checking for $ac_word... " >&6; }
20764if test ${ac_cv_prog_PKG_CONFIG+y}
20765then :
20766  printf %s "(cached) " >&6
20767else $as_nop
20768  if test -n "$PKG_CONFIG"; then
20769  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20770else
20771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20772for as_dir in $PATH
20773do
20774  IFS=$as_save_IFS
20775  case $as_dir in #(((
20776    '') as_dir=./ ;;
20777    */) ;;
20778    *) as_dir=$as_dir/ ;;
20779  esac
20780    for ac_exec_ext in '' $ac_executable_extensions; do
20781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20782    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20784    break 2
20785  fi
20786done
20787  done
20788IFS=$as_save_IFS
20789
20790fi
20791fi
20792PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20793if test -n "$PKG_CONFIG"; then
20794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20795printf "%s\n" "$PKG_CONFIG" >&6; }
20796else
20797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798printf "%s\n" "no" >&6; }
20799fi
20800
20801
20802fi
20803if test -z "$ac_cv_prog_PKG_CONFIG"; then
20804  ac_ct_PKG_CONFIG=$PKG_CONFIG
20805  # Extract the first word of "pkg-config", so it can be a program name with args.
20806set dummy pkg-config; ac_word=$2
20807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20808printf %s "checking for $ac_word... " >&6; }
20809if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
20810then :
20811  printf %s "(cached) " >&6
20812else $as_nop
20813  if test -n "$ac_ct_PKG_CONFIG"; then
20814  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20815else
20816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20817for as_dir in $PATH
20818do
20819  IFS=$as_save_IFS
20820  case $as_dir in #(((
20821    '') as_dir=./ ;;
20822    */) ;;
20823    *) as_dir=$as_dir/ ;;
20824  esac
20825    for ac_exec_ext in '' $ac_executable_extensions; do
20826  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20827    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20828    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20829    break 2
20830  fi
20831done
20832  done
20833IFS=$as_save_IFS
20834
20835fi
20836fi
20837ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20838if test -n "$ac_ct_PKG_CONFIG"; then
20839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
20840printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
20841else
20842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20843printf "%s\n" "no" >&6; }
20844fi
20845
20846  if test "x$ac_ct_PKG_CONFIG" = x; then
20847    PKG_CONFIG=""
20848  else
20849    case $cross_compiling:$ac_tool_warned in
20850yes:)
20851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20853ac_tool_warned=yes ;;
20854esac
20855    PKG_CONFIG=$ac_ct_PKG_CONFIG
20856  fi
20857else
20858  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20859fi
20860
20861            if test x"$PKG_CONFIG" != x""; then
20862                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
20863                if test $? = 0; then
20864                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
20865                    OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
20866                    found=true
20867                fi
20868            fi
20869
20870            # no such luck; use some default ssldirs
20871            if ! $found; then
20872                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
20873            fi
20874
20875
20876fi
20877
20878
20879
20880    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
20881    # an 'openssl' subdirectory
20882
20883    if ! $found; then
20884        OPENSSL_CFLAGS=
20885        for ssldir in $ssldirs; do
20886            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
20887printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
20888            if test -f "$ssldir/include/openssl/ssl.h"; then
20889                OPENSSL_CFLAGS="-I$ssldir/include"
20890                OPENSSL_LDFLAGS="-L$ssldir/lib"
20891                OPENSSL_LIBS="-lssl -lcrypto"
20892                found=true
20893                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20894printf "%s\n" "yes" >&6; }
20895                break
20896            else
20897                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20898printf "%s\n" "no" >&6; }
20899            fi
20900        done
20901
20902        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
20903        # it will just work!
20904    fi
20905
20906    # try the preprocessor and linker with our new flags,
20907    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
20908
20909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
20910printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
20911    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
20912        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5
20913
20914    save_LIBS="$LIBS"
20915    save_LDFLAGS="$LDFLAGS"
20916    save_CPPFLAGS="$CPPFLAGS"
20917    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
20918    LIBS="$OPENSSL_LIBS $LIBS"
20919    CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
20920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921/* end confdefs.h.  */
20922#include <openssl/ssl.h>
20923int
20924main (void)
20925{
20926SSL_new(NULL)
20927  ;
20928  return 0;
20929}
20930_ACEOF
20931if ac_fn_c_try_link "$LINENO"
20932then :
20933
20934            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20935printf "%s\n" "yes" >&6; }
20936            :
20937
20938else $as_nop
20939
20940            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941printf "%s\n" "no" >&6; }
20942            { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20944as_fn_error $? "OpenSSL/LibreSSL not found
20945See \`config.log' for more details" "$LINENO" 5; }
20946
20947fi
20948rm -f core conftest.err conftest.$ac_objext conftest.beam \
20949    conftest$ac_exeext conftest.$ac_ext
20950    CPPFLAGS="$save_CPPFLAGS"
20951    LDFLAGS="$save_LDFLAGS"
20952    LIBS="$save_LIBS"
20953
20954
20955
20956
20957
20958elif test $pkg_failed = untried; then
20959        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960printf "%s\n" "no" >&6; }
20961
20962    found=false
20963
20964# Check whether --with-openssl was given.
20965if test ${with_openssl+y}
20966then :
20967  withval=$with_openssl;
20968            case "$withval" in
20969            "" | y | ye | yes | n | no)
20970            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
20971              ;;
20972            *) ssldirs="$withval"
20973              ;;
20974            esac
20975
20976else $as_nop
20977
20978            # if pkg-config is installed and openssl has installed a .pc file,
20979            # then use that information and don't search ssldirs
20980            if test -n "$ac_tool_prefix"; then
20981  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20984printf %s "checking for $ac_word... " >&6; }
20985if test ${ac_cv_prog_PKG_CONFIG+y}
20986then :
20987  printf %s "(cached) " >&6
20988else $as_nop
20989  if test -n "$PKG_CONFIG"; then
20990  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20991else
20992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20993for as_dir in $PATH
20994do
20995  IFS=$as_save_IFS
20996  case $as_dir in #(((
20997    '') as_dir=./ ;;
20998    */) ;;
20999    *) as_dir=$as_dir/ ;;
21000  esac
21001    for ac_exec_ext in '' $ac_executable_extensions; do
21002  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21003    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
21004    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21005    break 2
21006  fi
21007done
21008  done
21009IFS=$as_save_IFS
21010
21011fi
21012fi
21013PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
21014if test -n "$PKG_CONFIG"; then
21015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21016printf "%s\n" "$PKG_CONFIG" >&6; }
21017else
21018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21019printf "%s\n" "no" >&6; }
21020fi
21021
21022
21023fi
21024if test -z "$ac_cv_prog_PKG_CONFIG"; then
21025  ac_ct_PKG_CONFIG=$PKG_CONFIG
21026  # Extract the first word of "pkg-config", so it can be a program name with args.
21027set dummy pkg-config; ac_word=$2
21028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21029printf %s "checking for $ac_word... " >&6; }
21030if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
21031then :
21032  printf %s "(cached) " >&6
21033else $as_nop
21034  if test -n "$ac_ct_PKG_CONFIG"; then
21035  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
21036else
21037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038for as_dir in $PATH
21039do
21040  IFS=$as_save_IFS
21041  case $as_dir in #(((
21042    '') as_dir=./ ;;
21043    */) ;;
21044    *) as_dir=$as_dir/ ;;
21045  esac
21046    for ac_exec_ext in '' $ac_executable_extensions; do
21047  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21048    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
21049    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21050    break 2
21051  fi
21052done
21053  done
21054IFS=$as_save_IFS
21055
21056fi
21057fi
21058ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
21059if test -n "$ac_ct_PKG_CONFIG"; then
21060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
21061printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
21062else
21063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21064printf "%s\n" "no" >&6; }
21065fi
21066
21067  if test "x$ac_ct_PKG_CONFIG" = x; then
21068    PKG_CONFIG=""
21069  else
21070    case $cross_compiling:$ac_tool_warned in
21071yes:)
21072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21073printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21074ac_tool_warned=yes ;;
21075esac
21076    PKG_CONFIG=$ac_ct_PKG_CONFIG
21077  fi
21078else
21079  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
21080fi
21081
21082            if test x"$PKG_CONFIG" != x""; then
21083                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
21084                if test $? = 0; then
21085                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
21086                    OPENSSL_CFLAGS=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
21087                    found=true
21088                fi
21089            fi
21090
21091            # no such luck; use some default ssldirs
21092            if ! $found; then
21093                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
21094            fi
21095
21096
21097fi
21098
21099
21100
21101    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
21102    # an 'openssl' subdirectory
21103
21104    if ! $found; then
21105        OPENSSL_CFLAGS=
21106        for ssldir in $ssldirs; do
21107            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
21108printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; }
21109            if test -f "$ssldir/include/openssl/ssl.h"; then
21110                OPENSSL_CFLAGS="-I$ssldir/include"
21111                OPENSSL_LDFLAGS="-L$ssldir/lib"
21112                OPENSSL_LIBS="-lssl -lcrypto"
21113                found=true
21114                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21115printf "%s\n" "yes" >&6; }
21116                break
21117            else
21118                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119printf "%s\n" "no" >&6; }
21120            fi
21121        done
21122
21123        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
21124        # it will just work!
21125    fi
21126
21127    # try the preprocessor and linker with our new flags,
21128    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
21129
21130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
21131printf %s "checking whether compiling and linking against OpenSSL works... " >&6; }
21132    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
21133        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS" >&5
21134
21135    save_LIBS="$LIBS"
21136    save_LDFLAGS="$LDFLAGS"
21137    save_CPPFLAGS="$CPPFLAGS"
21138    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
21139    LIBS="$OPENSSL_LIBS $LIBS"
21140    CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
21141    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142/* end confdefs.h.  */
21143#include <openssl/ssl.h>
21144int
21145main (void)
21146{
21147SSL_new(NULL)
21148  ;
21149  return 0;
21150}
21151_ACEOF
21152if ac_fn_c_try_link "$LINENO"
21153then :
21154
21155            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156printf "%s\n" "yes" >&6; }
21157            :
21158
21159else $as_nop
21160
21161            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21162printf "%s\n" "no" >&6; }
21163            { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21164printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21165as_fn_error $? "OpenSSL/LibreSSL not found
21166See \`config.log' for more details" "$LINENO" 5; }
21167
21168fi
21169rm -f core conftest.err conftest.$ac_objext conftest.beam \
21170    conftest$ac_exeext conftest.$ac_ext
21171    CPPFLAGS="$save_CPPFLAGS"
21172    LDFLAGS="$save_LDFLAGS"
21173    LIBS="$save_LIBS"
21174
21175
21176
21177
21178
21179else
21180        OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
21181        OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
21182        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183printf "%s\n" "yes" >&6; }
21184
21185fi
21186
21187
21188
21189  CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
21190
21191
21192
21193  CFLAGS_openssl_ax_save_flags=$CFLAGS
21194
21195
21196
21197  CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
21198
21199
21200
21201  CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
21202
21203
21204
21205  ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
21206
21207
21208
21209  FCFLAGS_openssl_ax_save_flags=$FCFLAGS
21210
21211
21212
21213  FCLIBS_openssl_ax_save_flags=$FCLIBS
21214
21215
21216
21217  FFLAGS_openssl_ax_save_flags=$FFLAGS
21218
21219
21220
21221  FLIBS_openssl_ax_save_flags=$FLIBS
21222
21223
21224
21225  GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
21226
21227
21228
21229  JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
21230
21231
21232
21233  LDFLAGS_openssl_ax_save_flags=$LDFLAGS
21234
21235
21236
21237  LIBS_openssl_ax_save_flags=$LIBS
21238
21239
21240
21241  OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
21242
21243
21244
21245  OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
21246
21247
21248
21249  UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
21250
21251
21252
21253  VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
21254
21255
21256
21257
21258CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
21259LIBS="$LIBS $OPENSSL_LIBS"
21260
21261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5
21262printf %s "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; }
21263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21264/* end confdefs.h.  */
21265#include <openssl/opensslv.h>
21266int
21267main (void)
21268{
21269#if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\
21270			   (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL))
21271		       #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required
21272		       #endif
21273
21274  ;
21275  return 0;
21276}
21277_ACEOF
21278if ac_fn_c_try_compile "$LINENO"
21279then :
21280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21281printf "%s\n" "yes" >&6; }
21282else $as_nop
21283  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21284printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21285as_fn_error $? "not found
21286See \`config.log' for more details" "$LINENO" 5; }
21287fi
21288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21289
21290#
21291# Check for functions added in OpenSSL or LibreSSL
21292#
21293
21294ac_fn_c_check_func "$LINENO" "BIO_read_ex" "ac_cv_func_BIO_read_ex"
21295if test "x$ac_cv_func_BIO_read_ex" = xyes
21296then :
21297  printf "%s\n" "#define HAVE_BIO_READ_EX 1" >>confdefs.h
21298
21299fi
21300ac_fn_c_check_func "$LINENO" "BIO_write_ex" "ac_cv_func_BIO_write_ex"
21301if test "x$ac_cv_func_BIO_write_ex" = xyes
21302then :
21303  printf "%s\n" "#define HAVE_BIO_WRITE_EX 1" >>confdefs.h
21304
21305fi
21306
21307ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new"
21308if test "x$ac_cv_func_BN_GENCB_new" = xyes
21309then :
21310  printf "%s\n" "#define HAVE_BN_GENCB_NEW 1" >>confdefs.h
21311
21312fi
21313
21314ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
21315if test "x$ac_cv_func_CRYPTO_zalloc" = xyes
21316then :
21317  printf "%s\n" "#define HAVE_CRYPTO_ZALLOC 1" >>confdefs.h
21318
21319fi
21320
21321ac_fn_c_check_func "$LINENO" "ERR_get_error_all" "ac_cv_func_ERR_get_error_all"
21322if test "x$ac_cv_func_ERR_get_error_all" = xyes
21323then :
21324  printf "%s\n" "#define HAVE_ERR_GET_ERROR_ALL 1" >>confdefs.h
21325
21326fi
21327
21328ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new"
21329if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes
21330then :
21331  printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h
21332
21333fi
21334ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_free" "ac_cv_func_EVP_CIPHER_CTX_free"
21335if test "x$ac_cv_func_EVP_CIPHER_CTX_free" = xyes
21336then :
21337  printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_FREE 1" >>confdefs.h
21338
21339fi
21340
21341ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_new" "ac_cv_func_EVP_MD_CTX_new"
21342if test "x$ac_cv_func_EVP_MD_CTX_new" = xyes
21343then :
21344  printf "%s\n" "#define HAVE_EVP_MD_CTX_NEW 1" >>confdefs.h
21345
21346fi
21347ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_free" "ac_cv_func_EVP_MD_CTX_free"
21348if test "x$ac_cv_func_EVP_MD_CTX_free" = xyes
21349then :
21350  printf "%s\n" "#define HAVE_EVP_MD_CTX_FREE 1" >>confdefs.h
21351
21352fi
21353ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_reset" "ac_cv_func_EVP_MD_CTX_reset"
21354if test "x$ac_cv_func_EVP_MD_CTX_reset" = xyes
21355then :
21356  printf "%s\n" "#define HAVE_EVP_MD_CTX_RESET 1" >>confdefs.h
21357
21358fi
21359ac_fn_c_check_func "$LINENO" "EVP_MD_CTX_get0_md" "ac_cv_func_EVP_MD_CTX_get0_md"
21360if test "x$ac_cv_func_EVP_MD_CTX_get0_md" = xyes
21361then :
21362  printf "%s\n" "#define HAVE_EVP_MD_CTX_GET0_MD 1" >>confdefs.h
21363
21364fi
21365
21366ac_fn_c_check_func "$LINENO" "EVP_PKEY_new_raw_private_key" "ac_cv_func_EVP_PKEY_new_raw_private_key"
21367if test "x$ac_cv_func_EVP_PKEY_new_raw_private_key" = xyes
21368then :
21369  printf "%s\n" "#define HAVE_EVP_PKEY_NEW_RAW_PRIVATE_KEY 1" >>confdefs.h
21370
21371fi
21372ac_fn_c_check_func "$LINENO" "EVP_PKEY_eq" "ac_cv_func_EVP_PKEY_eq"
21373if test "x$ac_cv_func_EVP_PKEY_eq" = xyes
21374then :
21375  printf "%s\n" "#define HAVE_EVP_PKEY_EQ 1" >>confdefs.h
21376
21377fi
21378
21379ac_fn_c_check_func "$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
21380if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
21381then :
21382  printf "%s\n" "#define HAVE_OPENSSL_INIT_SSL 1" >>confdefs.h
21383
21384fi
21385ac_fn_c_check_func "$LINENO" "OPENSSL_init_crypto" "ac_cv_func_OPENSSL_init_crypto"
21386if test "x$ac_cv_func_OPENSSL_init_crypto" = xyes
21387then :
21388  printf "%s\n" "#define HAVE_OPENSSL_INIT_CRYPTO 1" >>confdefs.h
21389
21390fi
21391ac_fn_c_check_func "$LINENO" "OPENSSL_cleanup" "ac_cv_func_OPENSSL_cleanup"
21392if test "x$ac_cv_func_OPENSSL_cleanup" = xyes
21393then :
21394  printf "%s\n" "#define HAVE_OPENSSL_CLEANUP 1" >>confdefs.h
21395
21396fi
21397
21398ac_fn_c_check_func "$LINENO" "SSL_CTX_set_keylog_callback" "ac_cv_func_SSL_CTX_set_keylog_callback"
21399if test "x$ac_cv_func_SSL_CTX_set_keylog_callback" = xyes
21400then :
21401  printf "%s\n" "#define HAVE_SSL_CTX_SET_KEYLOG_CALLBACK 1" >>confdefs.h
21402
21403fi
21404
21405ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
21406if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes
21407then :
21408  printf "%s\n" "#define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1" >>confdefs.h
21409
21410fi
21411
21412ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
21413if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes
21414then :
21415  printf "%s\n" "#define HAVE_SSL_CTX_UP_REF 1" >>confdefs.h
21416
21417fi
21418
21419ac_fn_c_check_func "$LINENO" "SSL_read_ex" "ac_cv_func_SSL_read_ex"
21420if test "x$ac_cv_func_SSL_read_ex" = xyes
21421then :
21422  printf "%s\n" "#define HAVE_SSL_READ_EX 1" >>confdefs.h
21423
21424fi
21425ac_fn_c_check_func "$LINENO" "SSL_peek_ex" "ac_cv_func_SSL_peek_ex"
21426if test "x$ac_cv_func_SSL_peek_ex" = xyes
21427then :
21428  printf "%s\n" "#define HAVE_SSL_PEEK_EX 1" >>confdefs.h
21429
21430fi
21431ac_fn_c_check_func "$LINENO" "SSL_write_ex" "ac_cv_func_SSL_write_ex"
21432if test "x$ac_cv_func_SSL_write_ex" = xyes
21433then :
21434  printf "%s\n" "#define HAVE_SSL_WRITE_EX 1" >>confdefs.h
21435
21436fi
21437
21438ac_fn_c_check_func "$LINENO" "SSL_CTX_set1_cert_store" "ac_cv_func_SSL_CTX_set1_cert_store"
21439if test "x$ac_cv_func_SSL_CTX_set1_cert_store" = xyes
21440then :
21441  printf "%s\n" "#define HAVE_SSL_CTX_SET1_CERT_STORE 1" >>confdefs.h
21442
21443fi
21444ac_fn_c_check_func "$LINENO" "X509_STORE_up_ref" "ac_cv_func_X509_STORE_up_ref"
21445if test "x$ac_cv_func_X509_STORE_up_ref" = xyes
21446then :
21447  printf "%s\n" "#define HAVE_X509_STORE_UP_REF 1" >>confdefs.h
21448
21449fi
21450
21451ac_fn_c_check_func "$LINENO" "SSL_SESSION_is_resumable" "ac_cv_func_SSL_SESSION_is_resumable"
21452if test "x$ac_cv_func_SSL_SESSION_is_resumable" = xyes
21453then :
21454  printf "%s\n" "#define HAVE_SSL_SESSION_IS_RESUMABLE 1" >>confdefs.h
21455
21456fi
21457
21458
21459#
21460# Check for algorithm support in OpenSSL
21461#
21462
21463
21464  for ac_func in EVP_DigestSignInit EVP_DigestVerifyInit
21465do :
21466  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
21467ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21468if eval test \"x\$"$as_ac_var"\" = x"yes"
21469then :
21470  cat >>confdefs.h <<_ACEOF
21471#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
21472_ACEOF
21473 :
21474else $as_nop
21475  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21476printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21477as_fn_error $? "EVP_DigestSignInit/EVP_DigestVerifyInit support in OpenSSL is mandatory.
21478See \`config.log' for more details" "$LINENO" 5; }
21479fi
21480
21481done
21482
21483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
21484printf %s "checking for ECDSA P-256 support... " >&6; }
21485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486/* end confdefs.h.  */
21487#include <openssl/evp.h>
21488int
21489main (void)
21490{
21491EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_X9_62_prime256v1, NULL);
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496if ac_fn_c_try_compile "$LINENO"
21497then :
21498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21499printf "%s\n" "yes" >&6; }
21500else $as_nop
21501  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21503as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
21504See \`config.log' for more details" "$LINENO" 5; }
21505fi
21506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21507
21508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
21509printf %s "checking for ECDSA P-384 support... " >&6; }
21510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511/* end confdefs.h.  */
21512#include <openssl/evp.h>
21513int
21514main (void)
21515{
21516EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_secp384r1, NULL);
21517  ;
21518  return 0;
21519}
21520_ACEOF
21521if ac_fn_c_try_compile "$LINENO"
21522then :
21523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21524printf "%s\n" "yes" >&6; }
21525else $as_nop
21526  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21527printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21528as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
21529See \`config.log' for more details" "$LINENO" 5; }
21530fi
21531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21532
21533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
21534printf %s "checking for Ed25519 support... " >&6; }
21535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21536/* end confdefs.h.  */
21537#include <openssl/evp.h>
21538int
21539main (void)
21540{
21541EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
21542  ;
21543  return 0;
21544}
21545_ACEOF
21546if ac_fn_c_try_compile "$LINENO"
21547then :
21548
21549printf "%s\n" "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
21550
21551     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21552printf "%s\n" "yes" >&6; }
21553else $as_nop
21554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555printf "%s\n" "no" >&6; }
21556fi
21557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21558
21559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
21560printf %s "checking for Ed448 support... " >&6; }
21561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21562/* end confdefs.h.  */
21563#include <openssl/evp.h>
21564int
21565main (void)
21566{
21567EVP_PKEY_CTX *kctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
21568  ;
21569  return 0;
21570}
21571_ACEOF
21572if ac_fn_c_try_compile "$LINENO"
21573then :
21574
21575printf "%s\n" "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
21576
21577     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21578printf "%s\n" "yes" >&6; }
21579else $as_nop
21580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21581printf "%s\n" "no" >&6; }
21582fi
21583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21584
21585#
21586# Check for OpenSSL SHA-1 support
21587#
21588
21589  for ac_func in EVP_sha1
21590do :
21591  ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
21592if test "x$ac_cv_func_EVP_sha1" = xyes
21593then :
21594  printf "%s\n" "#define HAVE_EVP_SHA1 1" >>confdefs.h
21595 :
21596else $as_nop
21597  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21598printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21599as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
21600See \`config.log' for more details" "$LINENO" 5; }
21601fi
21602
21603done
21604
21605#
21606# Check for OpenSSL SHA-2 support
21607#
21608
21609  for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
21610do :
21611  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
21612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21613if eval test \"x\$"$as_ac_var"\" = x"yes"
21614then :
21615  cat >>confdefs.h <<_ACEOF
21616#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
21617_ACEOF
21618 :
21619else $as_nop
21620  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21621printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21622as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
21623See \`config.log' for more details" "$LINENO" 5; }
21624fi
21625
21626done
21627
21628#
21629# Check for OpenSSL AES support
21630#
21631
21632  for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
21633do :
21634  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
21635ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21636if eval test \"x\$"$as_ac_var"\" = x"yes"
21637then :
21638  cat >>confdefs.h <<_ACEOF
21639#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
21640_ACEOF
21641 :
21642else $as_nop
21643  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21644printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21645as_fn_error $? "AES support in OpenSSL is mandatory.
21646See \`config.log' for more details" "$LINENO" 5; }
21647fi
21648
21649done
21650
21651#
21652# Check for OpenSSL 1.1.x/LibreSSL functions
21653#
21654ac_fn_c_check_func "$LINENO" "DH_get0_key" "ac_cv_func_DH_get0_key"
21655if test "x$ac_cv_func_DH_get0_key" = xyes
21656then :
21657  printf "%s\n" "#define HAVE_DH_GET0_KEY 1" >>confdefs.h
21658
21659fi
21660ac_fn_c_check_func "$LINENO" "ECDSA_SIG_get0" "ac_cv_func_ECDSA_SIG_get0"
21661if test "x$ac_cv_func_ECDSA_SIG_get0" = xyes
21662then :
21663  printf "%s\n" "#define HAVE_ECDSA_SIG_GET0 1" >>confdefs.h
21664
21665fi
21666ac_fn_c_check_func "$LINENO" "RSA_set0_key" "ac_cv_func_RSA_set0_key"
21667if test "x$ac_cv_func_RSA_set0_key" = xyes
21668then :
21669  printf "%s\n" "#define HAVE_RSA_SET0_KEY 1" >>confdefs.h
21670
21671fi
21672ac_fn_c_check_func "$LINENO" "EVP_PKEY_get0_EC_KEY" "ac_cv_func_EVP_PKEY_get0_EC_KEY"
21673if test "x$ac_cv_func_EVP_PKEY_get0_EC_KEY" = xyes
21674then :
21675  printf "%s\n" "#define HAVE_EVP_PKEY_GET0_EC_KEY 1" >>confdefs.h
21676
21677fi
21678
21679
21680ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method"
21681if test "x$ac_cv_func_TLS_server_method" = xyes
21682then :
21683  printf "%s\n" "#define HAVE_TLS_SERVER_METHOD 1" >>confdefs.h
21684
21685fi
21686ac_fn_c_check_func "$LINENO" "TLS_client_method" "ac_cv_func_TLS_client_method"
21687if test "x$ac_cv_func_TLS_client_method" = xyes
21688then :
21689  printf "%s\n" "#define HAVE_TLS_CLIENT_METHOD 1" >>confdefs.h
21690
21691fi
21692
21693
21694#
21695# Check whether FIPS mode is available and whether we should enable it
21696#
21697# FIPS is not included in pairwise testing as the relevant Docker image
21698# does not support FIPS mode.
21699#
21700# [pairwise: skip]
21701# Check whether --enable-fips-mode was given.
21702if test ${enable_fips_mode+y}
21703then :
21704  enableval=$enable_fips_mode;
21705else $as_nop
21706  enable_fips_mode="no"
21707fi
21708
21709
21710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
21711printf %s "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
21712case $enable_fips_mode in #(
21713  yes) :
21714    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21715printf "%s\n" "yes" >&6; }
21716
21717  for ac_func in FIPS_mode
21718do :
21719  ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
21720if test "x$ac_cv_func_FIPS_mode" = xyes
21721then :
21722  printf "%s\n" "#define HAVE_FIPS_MODE 1" >>confdefs.h
21723
21724else $as_nop
21725  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21726printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21727as_fn_error $? "OpenSSL FIPS mode requested but not available.
21728See \`config.log' for more details" "$LINENO" 5; }
21729fi
21730
21731done ;; #(
21732  no) :
21733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734printf "%s\n" "no" >&6; } ;; #(
21735  *) :
21736     ;;
21737esac
21738
21739
21740  CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
21741
21742
21743  CFLAGS=$CFLAGS_openssl_ax_save_flags
21744
21745
21746  CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
21747
21748
21749  CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
21750
21751
21752  ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
21753
21754
21755  FCFLAGS=$FCFLAGS_openssl_ax_save_flags
21756
21757
21758  FCLIBS=$FCLIBS_openssl_ax_save_flags
21759
21760
21761  FFLAGS=$FFLAGS_openssl_ax_save_flags
21762
21763
21764  FLIBS=$FLIBS_openssl_ax_save_flags
21765
21766
21767  GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
21768
21769
21770  JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
21771
21772
21773  LDFLAGS=$LDFLAGS_openssl_ax_save_flags
21774
21775
21776  LIBS=$LIBS_openssl_ax_save_flags
21777
21778
21779  OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
21780
21781
21782  OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
21783
21784
21785  UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
21786
21787
21788  VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
21789
21790
21791
21792
21793
21794
21795
21796ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
21797if test "x$ac_cv_func_clock_gettime" = xyes
21798then :
21799  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21800
21801fi
21802
21803
21804# [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
21805
21806# Check whether --with-gssapi was given.
21807if test ${with_gssapi+y}
21808then :
21809  withval=$with_gssapi;
21810else $as_nop
21811  with_gssapi="auto"
21812fi
21813
21814
21815KRB5_CONFIG=
21816case $with_gssapi in #(
21817  no) :
21818    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSSAPI support" >&5
21819printf %s "checking for GSSAPI support... " >&6; }
21820	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21821printf "%s\n" "no" >&6; } ;; #(
21822  yes) :
21823    # Extract the first word of "krb5-config", so it can be a program name with args.
21824set dummy krb5-config; ac_word=$2
21825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826printf %s "checking for $ac_word... " >&6; }
21827if test ${ac_cv_path_KRB5_CONFIG+y}
21828then :
21829  printf %s "(cached) " >&6
21830else $as_nop
21831  case $KRB5_CONFIG in
21832  [\\/]* | ?:[\\/]*)
21833  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
21834  ;;
21835  *)
21836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21837for as_dir in $PATH
21838do
21839  IFS=$as_save_IFS
21840  case $as_dir in #(((
21841    '') as_dir=./ ;;
21842    */) ;;
21843    *) as_dir=$as_dir/ ;;
21844  esac
21845    for ac_exec_ext in '' $ac_executable_extensions; do
21846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21847    ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
21848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21849    break 2
21850  fi
21851done
21852  done
21853IFS=$as_save_IFS
21854
21855  ;;
21856esac
21857fi
21858KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
21859if test -n "$KRB5_CONFIG"; then
21860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
21861printf "%s\n" "$KRB5_CONFIG" >&6; }
21862else
21863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864printf "%s\n" "no" >&6; }
21865fi
21866
21867
21868	       if test -z "$KRB5_CONFIG"
21869then :
21870  as_fn_error $? "krb5-config required but not found" "$LINENO" 5
21871fi ;; #(
21872  auto) :
21873    # Extract the first word of "krb5-config", so it can be a program name with args.
21874set dummy krb5-config; ac_word=$2
21875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21876printf %s "checking for $ac_word... " >&6; }
21877if test ${ac_cv_path_KRB5_CONFIG+y}
21878then :
21879  printf %s "(cached) " >&6
21880else $as_nop
21881  case $KRB5_CONFIG in
21882  [\\/]* | ?:[\\/]*)
21883  ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
21884  ;;
21885  *)
21886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21887for as_dir in $PATH
21888do
21889  IFS=$as_save_IFS
21890  case $as_dir in #(((
21891    '') as_dir=./ ;;
21892    */) ;;
21893    *) as_dir=$as_dir/ ;;
21894  esac
21895    for ac_exec_ext in '' $ac_executable_extensions; do
21896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21897    ac_cv_path_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
21898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21899    break 2
21900  fi
21901done
21902  done
21903IFS=$as_save_IFS
21904
21905  ;;
21906esac
21907fi
21908KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
21909if test -n "$KRB5_CONFIG"; then
21910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
21911printf "%s\n" "$KRB5_CONFIG" >&6; }
21912else
21913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21914printf "%s\n" "no" >&6; }
21915fi
21916
21917 ;; #(
21918  *krb5-config*) :
21919    KRB5_CONFIG="$with_gssapi" ;; #(
21920  *) :
21921    as_fn_error $? "--with-gssapi requires yes|no|auto|/path/to/krb5-config" "$LINENO" 5 ;;
21922esac
21923
21924GSSAPI_CFLAGS=
21925GSSAPI_LIBS=
21926KRB5_CFLAGS=
21927KRB5_LIBS=
21928if test -n "$KRB5_CONFIG"
21929then :
21930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gssapi libraries" >&5
21931printf %s "checking for gssapi libraries... " >&6; }
21932
21933
21934  CCASFLAGS_gssapi_ax_save_flags=$CCASFLAGS
21935
21936
21937
21938  CFLAGS_gssapi_ax_save_flags=$CFLAGS
21939
21940
21941
21942  CPPFLAGS_gssapi_ax_save_flags=$CPPFLAGS
21943
21944
21945
21946  CXXFLAGS_gssapi_ax_save_flags=$CXXFLAGS
21947
21948
21949
21950  ERLCFLAGS_gssapi_ax_save_flags=$ERLCFLAGS
21951
21952
21953
21954  FCFLAGS_gssapi_ax_save_flags=$FCFLAGS
21955
21956
21957
21958  FCLIBS_gssapi_ax_save_flags=$FCLIBS
21959
21960
21961
21962  FFLAGS_gssapi_ax_save_flags=$FFLAGS
21963
21964
21965
21966  FLIBS_gssapi_ax_save_flags=$FLIBS
21967
21968
21969
21970  GCJFLAGS_gssapi_ax_save_flags=$GCJFLAGS
21971
21972
21973
21974  JAVACFLAGS_gssapi_ax_save_flags=$JAVACFLAGS
21975
21976
21977
21978  LDFLAGS_gssapi_ax_save_flags=$LDFLAGS
21979
21980
21981
21982  LIBS_gssapi_ax_save_flags=$LIBS
21983
21984
21985
21986  OBJCFLAGS_gssapi_ax_save_flags=$OBJCFLAGS
21987
21988
21989
21990  OBJCXXFLAGS_gssapi_ax_save_flags=$OBJCXXFLAGS
21991
21992
21993
21994  UPCFLAGS_gssapi_ax_save_flags=$UPCFLAGS
21995
21996
21997
21998  VALAFLAGS_gssapi_ax_save_flags=$VALAFLAGS
21999
22000
22001
22002       GSSAPI_CFLAGS=`"$KRB5_CONFIG" --cflags gssapi`
22003       GSSAPI_LIBS=`"$KRB5_CONFIG" --libs gssapi`
22004       CFLAGS="$CFLAGS $GSSAPI_CFLAGS"
22005       LIBS="$LIBS $GSSAPI_LIBS"
22006       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GSSAPI_CFLAGS $GSSAPI_LIBS" >&5
22007printf "%s\n" "$GSSAPI_CFLAGS $GSSAPI_LIBS" >&6; }
22008              for ac_header in gssapi/gssapi.h
22009do :
22010  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22011if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
22012then :
22013  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
22014
22015else $as_nop
22016         for ac_header in gssapi.h
22017do :
22018  ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22019if test "x$ac_cv_header_gssapi_h" = xyes
22020then :
22021  printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h
22022
22023else $as_nop
22024  as_fn_error $? "neither gssapi/gssapi.h nor gssapi.h found" "$LINENO" 5
22025fi
22026
22027done
22028fi
22029
22030done
22031              for ac_header in gssapi/gssapi_krb5.h
22032do :
22033  ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
22034if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes
22035then :
22036  printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_KRB5_H 1" >>confdefs.h
22037        for ac_header in gssapi_krb5.h
22038do :
22039  ac_fn_c_check_header_compile "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
22040if test "x$ac_cv_header_gssapi_krb5_h" = xyes
22041then :
22042  printf "%s\n" "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
22043
22044					  as_fn_error $? "neither gssapi/gssapi_krb5.h nor gssapi_krb5.h found" "$LINENO" 5
22045fi
22046
22047done
22048fi
22049
22050done
22051
22052  for ac_func in gss_acquire_cred
22053do :
22054  ac_fn_c_check_func "$LINENO" "gss_acquire_cred" "ac_cv_func_gss_acquire_cred"
22055if test "x$ac_cv_func_gss_acquire_cred" = xyes
22056then :
22057  printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED 1" >>confdefs.h
22058
22059else $as_nop
22060  as_fn_error $? "linking with $GSSAPI_LIBS does not work" "$LINENO" 5
22061fi
22062
22063done
22064
22065  CCASFLAGS=$CCASFLAGS_gssapi_ax_save_flags
22066
22067
22068  CFLAGS=$CFLAGS_gssapi_ax_save_flags
22069
22070
22071  CPPFLAGS=$CPPFLAGS_gssapi_ax_save_flags
22072
22073
22074  CXXFLAGS=$CXXFLAGS_gssapi_ax_save_flags
22075
22076
22077  ERLCFLAGS=$ERLCFLAGS_gssapi_ax_save_flags
22078
22079
22080  FCFLAGS=$FCFLAGS_gssapi_ax_save_flags
22081
22082
22083  FCLIBS=$FCLIBS_gssapi_ax_save_flags
22084
22085
22086  FFLAGS=$FFLAGS_gssapi_ax_save_flags
22087
22088
22089  FLIBS=$FLIBS_gssapi_ax_save_flags
22090
22091
22092  GCJFLAGS=$GCJFLAGS_gssapi_ax_save_flags
22093
22094
22095  JAVACFLAGS=$JAVACFLAGS_gssapi_ax_save_flags
22096
22097
22098  LDFLAGS=$LDFLAGS_gssapi_ax_save_flags
22099
22100
22101  LIBS=$LIBS_gssapi_ax_save_flags
22102
22103
22104  OBJCFLAGS=$OBJCFLAGS_gssapi_ax_save_flags
22105
22106
22107  OBJCXXFLAGS=$OBJCXXFLAGS_gssapi_ax_save_flags
22108
22109
22110  UPCFLAGS=$UPCFLAGS_gssapi_ax_save_flags
22111
22112
22113  VALAFLAGS=$VALAFLAGS_gssapi_ax_save_flags
22114
22115
22116
22117
22118       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 libraries" >&5
22119printf %s "checking for krb5 libraries... " >&6; }
22120
22121
22122  CCASFLAGS_krb5_ax_save_flags=$CCASFLAGS
22123
22124
22125
22126  CFLAGS_krb5_ax_save_flags=$CFLAGS
22127
22128
22129
22130  CPPFLAGS_krb5_ax_save_flags=$CPPFLAGS
22131
22132
22133
22134  CXXFLAGS_krb5_ax_save_flags=$CXXFLAGS
22135
22136
22137
22138  ERLCFLAGS_krb5_ax_save_flags=$ERLCFLAGS
22139
22140
22141
22142  FCFLAGS_krb5_ax_save_flags=$FCFLAGS
22143
22144
22145
22146  FCLIBS_krb5_ax_save_flags=$FCLIBS
22147
22148
22149
22150  FFLAGS_krb5_ax_save_flags=$FFLAGS
22151
22152
22153
22154  FLIBS_krb5_ax_save_flags=$FLIBS
22155
22156
22157
22158  GCJFLAGS_krb5_ax_save_flags=$GCJFLAGS
22159
22160
22161
22162  JAVACFLAGS_krb5_ax_save_flags=$JAVACFLAGS
22163
22164
22165
22166  LDFLAGS_krb5_ax_save_flags=$LDFLAGS
22167
22168
22169
22170  LIBS_krb5_ax_save_flags=$LIBS
22171
22172
22173
22174  OBJCFLAGS_krb5_ax_save_flags=$OBJCFLAGS
22175
22176
22177
22178  OBJCXXFLAGS_krb5_ax_save_flags=$OBJCXXFLAGS
22179
22180
22181
22182  UPCFLAGS_krb5_ax_save_flags=$UPCFLAGS
22183
22184
22185
22186  VALAFLAGS_krb5_ax_save_flags=$VALAFLAGS
22187
22188
22189
22190       KRB5_CFLAGS=`"$KRB5_CONFIG" --cflags krb5`
22191       KRB5_LIBS=`$KRB5_CONFIG --libs krb5`
22192       CFLAGS="$CFLAGS $KRB5_CFLAGS"
22193       LIBS="$CFLAGS $KRB5_LIBS"
22194       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5_CFLAGS $KRB5_LIBS" >&5
22195printf "%s\n" "$KRB5_CFLAGS $KRB5_LIBS" >&6; }
22196              for ac_header in krb5/krb5.h
22197do :
22198  ac_fn_c_check_header_compile "$LINENO" "krb5/krb5.h" "ac_cv_header_krb5_krb5_h" "$ac_includes_default"
22199if test "x$ac_cv_header_krb5_krb5_h" = xyes
22200then :
22201  printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
22202
22203else $as_nop
22204         for ac_header in krb5.h
22205do :
22206  ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22207if test "x$ac_cv_header_krb5_h" = xyes
22208then :
22209  printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
22210
22211else $as_nop
22212  as_fn_error $? "neither krb5/krb5.h nor krb5 found" "$LINENO" 5
22213fi
22214
22215done
22216fi
22217
22218done
22219
22220  for ac_func in krb5_init_context
22221do :
22222  ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
22223if test "x$ac_cv_func_krb5_init_context" = xyes
22224then :
22225  printf "%s\n" "#define HAVE_KRB5_INIT_CONTEXT 1" >>confdefs.h
22226
22227else $as_nop
22228  as_fn_error $? "linking with $KRB5_LIBS failed" "$LINENO" 5
22229fi
22230
22231done
22232
22233  CCASFLAGS=$CCASFLAGS_krb5_ax_save_flags
22234
22235
22236  CFLAGS=$CFLAGS_krb5_ax_save_flags
22237
22238
22239  CPPFLAGS=$CPPFLAGS_krb5_ax_save_flags
22240
22241
22242  CXXFLAGS=$CXXFLAGS_krb5_ax_save_flags
22243
22244
22245  ERLCFLAGS=$ERLCFLAGS_krb5_ax_save_flags
22246
22247
22248  FCFLAGS=$FCFLAGS_krb5_ax_save_flags
22249
22250
22251  FCLIBS=$FCLIBS_krb5_ax_save_flags
22252
22253
22254  FFLAGS=$FFLAGS_krb5_ax_save_flags
22255
22256
22257  FLIBS=$FLIBS_krb5_ax_save_flags
22258
22259
22260  GCJFLAGS=$GCJFLAGS_krb5_ax_save_flags
22261
22262
22263  JAVACFLAGS=$JAVACFLAGS_krb5_ax_save_flags
22264
22265
22266  LDFLAGS=$LDFLAGS_krb5_ax_save_flags
22267
22268
22269  LIBS=$LIBS_krb5_ax_save_flags
22270
22271
22272  OBJCFLAGS=$OBJCFLAGS_krb5_ax_save_flags
22273
22274
22275  OBJCXXFLAGS=$OBJCXXFLAGS_krb5_ax_save_flags
22276
22277
22278  UPCFLAGS=$UPCFLAGS_krb5_ax_save_flags
22279
22280
22281  VALAFLAGS=$VALAFLAGS_krb5_ax_save_flags
22282
22283
22284
22285
22286
22287printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
22288
22289       # kludge to silence compiler warnings which recommend use of GSS.framework on macOS
22290       case $host in #(
22291  *-darwin*) :
22292    CFLAGS="$CFLAGS -Wno-deprecated-declarations" ;; #(
22293  *) :
22294     ;;
22295esac
22296fi
22297 if test -n "$GSSAPI_LIBS"; then
22298  HAVE_GSSAPI_TRUE=
22299  HAVE_GSSAPI_FALSE='#'
22300else
22301  HAVE_GSSAPI_TRUE='#'
22302  HAVE_GSSAPI_FALSE=
22303fi
22304
22305
22306
22307
22308
22309
22310#
22311# was --with-lmdb specified?
22312#
22313
22314# [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
22315
22316# Check whether --with-lmdb was given.
22317if test ${with_lmdb+y}
22318then :
22319  withval=$with_lmdb; :
22320else $as_nop
22321  with_lmdb="auto"
22322fi
22323
22324
22325ac_lib_lmdb_found=no
22326case $with_lmdb in #(
22327  no) :
22328     ;; #(
22329  auto|yes) :
22330
22331pkg_failed=no
22332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb" >&5
22333printf %s "checking for lmdb... " >&6; }
22334
22335if test -n "$LMDB_CFLAGS"; then
22336    pkg_cv_LMDB_CFLAGS="$LMDB_CFLAGS"
22337 elif test -n "$PKG_CONFIG"; then
22338    if test -n "$PKG_CONFIG" && \
22339    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
22340  ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
22341  ac_status=$?
22342  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22343  test $ac_status = 0; }; then
22344  pkg_cv_LMDB_CFLAGS=`$PKG_CONFIG --cflags "lmdb" 2>/dev/null`
22345		      test "x$?" != "x0" && pkg_failed=yes
22346else
22347  pkg_failed=yes
22348fi
22349 else
22350    pkg_failed=untried
22351fi
22352if test -n "$LMDB_LIBS"; then
22353    pkg_cv_LMDB_LIBS="$LMDB_LIBS"
22354 elif test -n "$PKG_CONFIG"; then
22355    if test -n "$PKG_CONFIG" && \
22356    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lmdb\""; } >&5
22357  ($PKG_CONFIG --exists --print-errors "lmdb") 2>&5
22358  ac_status=$?
22359  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22360  test $ac_status = 0; }; then
22361  pkg_cv_LMDB_LIBS=`$PKG_CONFIG --libs "lmdb" 2>/dev/null`
22362		      test "x$?" != "x0" && pkg_failed=yes
22363else
22364  pkg_failed=yes
22365fi
22366 else
22367    pkg_failed=untried
22368fi
22369
22370
22371
22372if test $pkg_failed = yes; then
22373        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22374printf "%s\n" "no" >&6; }
22375
22376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22377        _pkg_short_errors_supported=yes
22378else
22379        _pkg_short_errors_supported=no
22380fi
22381        if test $_pkg_short_errors_supported = yes; then
22382                LMDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lmdb" 2>&1`
22383        else
22384                LMDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lmdb" 2>&1`
22385        fi
22386        # Put the nasty error message in config.log where it belongs
22387        echo "$LMDB_PKG_ERRORS" >&5
22388
22389        for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
22390						if test -z "$ac_lib_lmdb_path"
22391then :
22392  as_fn_error $? "Path cannot be empty" "$LINENO" 5
22393fi
22394	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5
22395printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; }
22396	  if test -r "$ac_lib_lmdb_path/include/lmdb.h"
22397then :
22398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22399printf "%s\n" "yes" >&6; }
22400		 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include"
22401		 LMDB_LIBS="-L$ac_lib_lmdb_path/lib"
22402
22403
22404  CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
22405
22406
22407
22408  CFLAGS_lmdb_ax_save_flags=$CFLAGS
22409
22410
22411
22412  CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
22413
22414
22415
22416  CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
22417
22418
22419
22420  ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
22421
22422
22423
22424  FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
22425
22426
22427
22428  FCLIBS_lmdb_ax_save_flags=$FCLIBS
22429
22430
22431
22432  FFLAGS_lmdb_ax_save_flags=$FFLAGS
22433
22434
22435
22436  FLIBS_lmdb_ax_save_flags=$FLIBS
22437
22438
22439
22440  GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
22441
22442
22443
22444  JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
22445
22446
22447
22448  LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
22449
22450
22451
22452  LIBS_lmdb_ax_save_flags=$LIBS
22453
22454
22455
22456  OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
22457
22458
22459
22460  OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
22461
22462
22463
22464  UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
22465
22466
22467
22468  VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
22469
22470
22471
22472		 CFLAGS="$CFLAGS $LMDB_CFLAGS"
22473		 LIBS="$LIBS $LMDB_LIBS"
22474		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
22475printf %s "checking for library containing mdb_env_create... " >&6; }
22476if test ${ac_cv_search_mdb_env_create+y}
22477then :
22478  printf %s "(cached) " >&6
22479else $as_nop
22480  ac_func_search_save_LIBS=$LIBS
22481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482/* end confdefs.h.  */
22483
22484/* Override any GCC internal prototype to avoid an error.
22485   Use char because int might match the return type of a GCC
22486   builtin and then its argument prototype would still apply.  */
22487char mdb_env_create ();
22488int
22489main (void)
22490{
22491return mdb_env_create ();
22492  ;
22493  return 0;
22494}
22495_ACEOF
22496for ac_lib in '' lmdb
22497do
22498  if test -z "$ac_lib"; then
22499    ac_res="none required"
22500  else
22501    ac_res=-l$ac_lib
22502    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22503  fi
22504  if ac_fn_c_try_link "$LINENO"
22505then :
22506  ac_cv_search_mdb_env_create=$ac_res
22507fi
22508rm -f core conftest.err conftest.$ac_objext conftest.beam \
22509    conftest$ac_exeext
22510  if test ${ac_cv_search_mdb_env_create+y}
22511then :
22512  break
22513fi
22514done
22515if test ${ac_cv_search_mdb_env_create+y}
22516then :
22517
22518else $as_nop
22519  ac_cv_search_mdb_env_create=no
22520fi
22521rm conftest.$ac_ext
22522LIBS=$ac_func_search_save_LIBS
22523fi
22524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
22525printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
22526ac_res=$ac_cv_search_mdb_env_create
22527if test "$ac_res" != no
22528then :
22529  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22530  LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
22531
22532  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
22533
22534
22535  CFLAGS=$CFLAGS_lmdb_ax_save_flags
22536
22537
22538  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
22539
22540
22541  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
22542
22543
22544  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
22545
22546
22547  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
22548
22549
22550  FCLIBS=$FCLIBS_lmdb_ax_save_flags
22551
22552
22553  FFLAGS=$FFLAGS_lmdb_ax_save_flags
22554
22555
22556  FLIBS=$FLIBS_lmdb_ax_save_flags
22557
22558
22559  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
22560
22561
22562  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
22563
22564
22565  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
22566
22567
22568  LIBS=$LIBS_lmdb_ax_save_flags
22569
22570
22571  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
22572
22573
22574  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
22575
22576
22577  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
22578
22579
22580  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
22581
22582
22583
22584				 ac_lib_lmdb_found=yes
22585							     break
22586
22587else $as_nop
22588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22589printf "%s\n" "no" >&6; }
22590				 LMDB_CFLAGS=""
22591				 LMDB_LIBS=""
22592
22593  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
22594
22595
22596  CFLAGS=$CFLAGS_lmdb_ax_save_flags
22597
22598
22599  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
22600
22601
22602  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
22603
22604
22605  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
22606
22607
22608  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
22609
22610
22611  FCLIBS=$FCLIBS_lmdb_ax_save_flags
22612
22613
22614  FFLAGS=$FFLAGS_lmdb_ax_save_flags
22615
22616
22617  FLIBS=$FLIBS_lmdb_ax_save_flags
22618
22619
22620  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
22621
22622
22623  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
22624
22625
22626  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
22627
22628
22629  LIBS=$LIBS_lmdb_ax_save_flags
22630
22631
22632  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
22633
22634
22635  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
22636
22637
22638  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
22639
22640
22641  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
22642
22643
22644
22645
22646
22647fi
22648
22649
22650else $as_nop
22651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22652printf "%s\n" "no" >&6; }
22653fi
22654					done
22655
22656elif test $pkg_failed = untried; then
22657        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22658printf "%s\n" "no" >&6; }
22659        for ac_lib_lmdb_path in /usr /usr/local /opt /opt/local; do
22660						if test -z "$ac_lib_lmdb_path"
22661then :
22662  as_fn_error $? "Path cannot be empty" "$LINENO" 5
22663fi
22664	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $ac_lib_lmdb_path" >&5
22665printf %s "checking for lmdb header in $ac_lib_lmdb_path... " >&6; }
22666	  if test -r "$ac_lib_lmdb_path/include/lmdb.h"
22667then :
22668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22669printf "%s\n" "yes" >&6; }
22670		 LMDB_CFLAGS="-I$ac_lib_lmdb_path/include"
22671		 LMDB_LIBS="-L$ac_lib_lmdb_path/lib"
22672
22673
22674  CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
22675
22676
22677
22678  CFLAGS_lmdb_ax_save_flags=$CFLAGS
22679
22680
22681
22682  CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
22683
22684
22685
22686  CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
22687
22688
22689
22690  ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
22691
22692
22693
22694  FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
22695
22696
22697
22698  FCLIBS_lmdb_ax_save_flags=$FCLIBS
22699
22700
22701
22702  FFLAGS_lmdb_ax_save_flags=$FFLAGS
22703
22704
22705
22706  FLIBS_lmdb_ax_save_flags=$FLIBS
22707
22708
22709
22710  GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
22711
22712
22713
22714  JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
22715
22716
22717
22718  LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
22719
22720
22721
22722  LIBS_lmdb_ax_save_flags=$LIBS
22723
22724
22725
22726  OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
22727
22728
22729
22730  OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
22731
22732
22733
22734  UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
22735
22736
22737
22738  VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
22739
22740
22741
22742		 CFLAGS="$CFLAGS $LMDB_CFLAGS"
22743		 LIBS="$LIBS $LMDB_LIBS"
22744		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
22745printf %s "checking for library containing mdb_env_create... " >&6; }
22746if test ${ac_cv_search_mdb_env_create+y}
22747then :
22748  printf %s "(cached) " >&6
22749else $as_nop
22750  ac_func_search_save_LIBS=$LIBS
22751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752/* end confdefs.h.  */
22753
22754/* Override any GCC internal prototype to avoid an error.
22755   Use char because int might match the return type of a GCC
22756   builtin and then its argument prototype would still apply.  */
22757char mdb_env_create ();
22758int
22759main (void)
22760{
22761return mdb_env_create ();
22762  ;
22763  return 0;
22764}
22765_ACEOF
22766for ac_lib in '' lmdb
22767do
22768  if test -z "$ac_lib"; then
22769    ac_res="none required"
22770  else
22771    ac_res=-l$ac_lib
22772    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22773  fi
22774  if ac_fn_c_try_link "$LINENO"
22775then :
22776  ac_cv_search_mdb_env_create=$ac_res
22777fi
22778rm -f core conftest.err conftest.$ac_objext conftest.beam \
22779    conftest$ac_exeext
22780  if test ${ac_cv_search_mdb_env_create+y}
22781then :
22782  break
22783fi
22784done
22785if test ${ac_cv_search_mdb_env_create+y}
22786then :
22787
22788else $as_nop
22789  ac_cv_search_mdb_env_create=no
22790fi
22791rm conftest.$ac_ext
22792LIBS=$ac_func_search_save_LIBS
22793fi
22794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
22795printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
22796ac_res=$ac_cv_search_mdb_env_create
22797if test "$ac_res" != no
22798then :
22799  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22800  LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
22801
22802  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
22803
22804
22805  CFLAGS=$CFLAGS_lmdb_ax_save_flags
22806
22807
22808  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
22809
22810
22811  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
22812
22813
22814  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
22815
22816
22817  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
22818
22819
22820  FCLIBS=$FCLIBS_lmdb_ax_save_flags
22821
22822
22823  FFLAGS=$FFLAGS_lmdb_ax_save_flags
22824
22825
22826  FLIBS=$FLIBS_lmdb_ax_save_flags
22827
22828
22829  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
22830
22831
22832  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
22833
22834
22835  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
22836
22837
22838  LIBS=$LIBS_lmdb_ax_save_flags
22839
22840
22841  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
22842
22843
22844  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
22845
22846
22847  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
22848
22849
22850  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
22851
22852
22853
22854				 ac_lib_lmdb_found=yes
22855							     break
22856
22857else $as_nop
22858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22859printf "%s\n" "no" >&6; }
22860				 LMDB_CFLAGS=""
22861				 LMDB_LIBS=""
22862
22863  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
22864
22865
22866  CFLAGS=$CFLAGS_lmdb_ax_save_flags
22867
22868
22869  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
22870
22871
22872  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
22873
22874
22875  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
22876
22877
22878  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
22879
22880
22881  FCLIBS=$FCLIBS_lmdb_ax_save_flags
22882
22883
22884  FFLAGS=$FFLAGS_lmdb_ax_save_flags
22885
22886
22887  FLIBS=$FLIBS_lmdb_ax_save_flags
22888
22889
22890  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
22891
22892
22893  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
22894
22895
22896  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
22897
22898
22899  LIBS=$LIBS_lmdb_ax_save_flags
22900
22901
22902  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
22903
22904
22905  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
22906
22907
22908  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
22909
22910
22911  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
22912
22913
22914
22915
22916
22917fi
22918
22919
22920else $as_nop
22921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922printf "%s\n" "no" >&6; }
22923fi
22924					done
22925
22926else
22927        LMDB_CFLAGS=$pkg_cv_LMDB_CFLAGS
22928        LMDB_LIBS=$pkg_cv_LMDB_LIBS
22929        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22930printf "%s\n" "yes" >&6; }
22931        ac_lib_lmdb_found=yes
22932fi ;; #(
22933  *) :
22934    if test -z "$with_lmdb"
22935then :
22936  as_fn_error $? "Path cannot be empty" "$LINENO" 5
22937fi
22938	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lmdb header in $with_lmdb" >&5
22939printf %s "checking for lmdb header in $with_lmdb... " >&6; }
22940	  if test -r "$with_lmdb/include/lmdb.h"
22941then :
22942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943printf "%s\n" "yes" >&6; }
22944		 LMDB_CFLAGS="-I$with_lmdb/include"
22945		 LMDB_LIBS="-L$with_lmdb/lib"
22946
22947
22948  CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
22949
22950
22951
22952  CFLAGS_lmdb_ax_save_flags=$CFLAGS
22953
22954
22955
22956  CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
22957
22958
22959
22960  CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
22961
22962
22963
22964  ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
22965
22966
22967
22968  FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
22969
22970
22971
22972  FCLIBS_lmdb_ax_save_flags=$FCLIBS
22973
22974
22975
22976  FFLAGS_lmdb_ax_save_flags=$FFLAGS
22977
22978
22979
22980  FLIBS_lmdb_ax_save_flags=$FLIBS
22981
22982
22983
22984  GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
22985
22986
22987
22988  JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
22989
22990
22991
22992  LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
22993
22994
22995
22996  LIBS_lmdb_ax_save_flags=$LIBS
22997
22998
22999
23000  OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
23001
23002
23003
23004  OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
23005
23006
23007
23008  UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
23009
23010
23011
23012  VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
23013
23014
23015
23016		 CFLAGS="$CFLAGS $LMDB_CFLAGS"
23017		 LIBS="$LIBS $LMDB_LIBS"
23018		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
23019printf %s "checking for library containing mdb_env_create... " >&6; }
23020if test ${ac_cv_search_mdb_env_create+y}
23021then :
23022  printf %s "(cached) " >&6
23023else $as_nop
23024  ac_func_search_save_LIBS=$LIBS
23025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026/* end confdefs.h.  */
23027
23028/* Override any GCC internal prototype to avoid an error.
23029   Use char because int might match the return type of a GCC
23030   builtin and then its argument prototype would still apply.  */
23031char mdb_env_create ();
23032int
23033main (void)
23034{
23035return mdb_env_create ();
23036  ;
23037  return 0;
23038}
23039_ACEOF
23040for ac_lib in '' lmdb
23041do
23042  if test -z "$ac_lib"; then
23043    ac_res="none required"
23044  else
23045    ac_res=-l$ac_lib
23046    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23047  fi
23048  if ac_fn_c_try_link "$LINENO"
23049then :
23050  ac_cv_search_mdb_env_create=$ac_res
23051fi
23052rm -f core conftest.err conftest.$ac_objext conftest.beam \
23053    conftest$ac_exeext
23054  if test ${ac_cv_search_mdb_env_create+y}
23055then :
23056  break
23057fi
23058done
23059if test ${ac_cv_search_mdb_env_create+y}
23060then :
23061
23062else $as_nop
23063  ac_cv_search_mdb_env_create=no
23064fi
23065rm conftest.$ac_ext
23066LIBS=$ac_func_search_save_LIBS
23067fi
23068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
23069printf "%s\n" "$ac_cv_search_mdb_env_create" >&6; }
23070ac_res=$ac_cv_search_mdb_env_create
23071if test "$ac_res" != no
23072then :
23073  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23074  LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
23075
23076  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23077
23078
23079  CFLAGS=$CFLAGS_lmdb_ax_save_flags
23080
23081
23082  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23083
23084
23085  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23086
23087
23088  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23089
23090
23091  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23092
23093
23094  FCLIBS=$FCLIBS_lmdb_ax_save_flags
23095
23096
23097  FFLAGS=$FFLAGS_lmdb_ax_save_flags
23098
23099
23100  FLIBS=$FLIBS_lmdb_ax_save_flags
23101
23102
23103  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23104
23105
23106  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23107
23108
23109  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23110
23111
23112  LIBS=$LIBS_lmdb_ax_save_flags
23113
23114
23115  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23116
23117
23118  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23119
23120
23121  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23122
23123
23124  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23125
23126
23127
23128				 ac_lib_lmdb_found=yes
23129
23130else $as_nop
23131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132printf "%s\n" "no" >&6; }
23133				 LMDB_CFLAGS=""
23134				 LMDB_LIBS=""
23135
23136  CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
23137
23138
23139  CFLAGS=$CFLAGS_lmdb_ax_save_flags
23140
23141
23142  CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
23143
23144
23145  CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
23146
23147
23148  ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
23149
23150
23151  FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
23152
23153
23154  FCLIBS=$FCLIBS_lmdb_ax_save_flags
23155
23156
23157  FFLAGS=$FFLAGS_lmdb_ax_save_flags
23158
23159
23160  FLIBS=$FLIBS_lmdb_ax_save_flags
23161
23162
23163  GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
23164
23165
23166  JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
23167
23168
23169  LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
23170
23171
23172  LIBS=$LIBS_lmdb_ax_save_flags
23173
23174
23175  OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
23176
23177
23178  OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
23179
23180
23181  UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
23182
23183
23184  VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
23185
23186
23187
23188
23189
23190fi
23191
23192
23193else $as_nop
23194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23195printf "%s\n" "no" >&6; }
23196fi ;;
23197esac
23198
23199# don't fail when in automatic mode
23200if test "$with_lmdb" = "auto" && test "$ac_lib_lmdb_found" = "no"
23201then :
23202  with_lmdb=no
23203fi
23204
23205# hard fail when LMDB requested, but not found
23206if test "$with_lmdb" != "no" && test "$ac_lib_lmdb_found" != "yes"
23207then :
23208  as_fn_error $? "LMDB requested, but not found" "$LINENO" 5
23209fi
23210
23211if test "$ac_lib_lmdb_found" = "yes"
23212then :
23213
23214printf "%s\n" "#define HAVE_LMDB 1" >>confdefs.h
23215
23216fi
23217
23218
23219
23220 if test -n "$LMDB_LIBS"; then
23221  HAVE_LMDB_TRUE=
23222  HAVE_LMDB_FALSE='#'
23223else
23224  HAVE_LMDB_TRUE='#'
23225  HAVE_LMDB_FALSE=
23226fi
23227
23228
23229#
23230# was --with-libxml2 specified?
23231#
23232# [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
23233
23234# Check whether --with-libxml2 was given.
23235if test ${with_libxml2+y}
23236then :
23237  withval=$with_libxml2;
23238else $as_nop
23239  with_libxml2="auto"
23240fi
23241
23242
23243case $with_libxml2 in #(
23244  no) :
23245     ;; #(
23246  auto) :
23247
23248pkg_failed=no
23249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
23250printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; }
23251
23252if test -n "$LIBXML2_CFLAGS"; then
23253    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
23254 elif test -n "$PKG_CONFIG"; then
23255    if test -n "$PKG_CONFIG" && \
23256    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
23257  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
23258  ac_status=$?
23259  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23260  test $ac_status = 0; }; then
23261  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
23262		      test "x$?" != "x0" && pkg_failed=yes
23263else
23264  pkg_failed=yes
23265fi
23266 else
23267    pkg_failed=untried
23268fi
23269if test -n "$LIBXML2_LIBS"; then
23270    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
23271 elif test -n "$PKG_CONFIG"; then
23272    if test -n "$PKG_CONFIG" && \
23273    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
23274  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
23275  ac_status=$?
23276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277  test $ac_status = 0; }; then
23278  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
23279		      test "x$?" != "x0" && pkg_failed=yes
23280else
23281  pkg_failed=yes
23282fi
23283 else
23284    pkg_failed=untried
23285fi
23286
23287
23288
23289if test $pkg_failed = yes; then
23290        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23291printf "%s\n" "no" >&6; }
23292
23293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23294        _pkg_short_errors_supported=yes
23295else
23296        _pkg_short_errors_supported=no
23297fi
23298        if test $_pkg_short_errors_supported = yes; then
23299                LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
23300        else
23301                LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
23302        fi
23303        # Put the nasty error message in config.log where it belongs
23304        echo "$LIBXML2_PKG_ERRORS" >&5
23305
23306        :
23307elif test $pkg_failed = untried; then
23308        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23309printf "%s\n" "no" >&6; }
23310        :
23311else
23312        LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
23313        LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
23314        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23315printf "%s\n" "yes" >&6; }
23316
23317printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
23318
23319fi ;; #(
23320  yes) :
23321
23322pkg_failed=no
23323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
23324printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; }
23325
23326if test -n "$LIBXML2_CFLAGS"; then
23327    pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
23328 elif test -n "$PKG_CONFIG"; then
23329    if test -n "$PKG_CONFIG" && \
23330    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
23331  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
23332  ac_status=$?
23333  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334  test $ac_status = 0; }; then
23335  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
23336		      test "x$?" != "x0" && pkg_failed=yes
23337else
23338  pkg_failed=yes
23339fi
23340 else
23341    pkg_failed=untried
23342fi
23343if test -n "$LIBXML2_LIBS"; then
23344    pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
23345 elif test -n "$PKG_CONFIG"; then
23346    if test -n "$PKG_CONFIG" && \
23347    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
23348  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
23349  ac_status=$?
23350  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351  test $ac_status = 0; }; then
23352  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
23353		      test "x$?" != "x0" && pkg_failed=yes
23354else
23355  pkg_failed=yes
23356fi
23357 else
23358    pkg_failed=untried
23359fi
23360
23361
23362
23363if test $pkg_failed = yes; then
23364        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365printf "%s\n" "no" >&6; }
23366
23367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23368        _pkg_short_errors_supported=yes
23369else
23370        _pkg_short_errors_supported=no
23371fi
23372        if test $_pkg_short_errors_supported = yes; then
23373                LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
23374        else
23375                LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
23376        fi
23377        # Put the nasty error message in config.log where it belongs
23378        echo "$LIBXML2_PKG_ERRORS" >&5
23379
23380        as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
23381
23382$LIBXML2_PKG_ERRORS
23383
23384Consider adjusting the PKG_CONFIG_PATH environment variable if you
23385installed software in a non-standard prefix.
23386
23387Alternatively, you may set the environment variables LIBXML2_CFLAGS
23388and LIBXML2_LIBS to avoid the need to call pkg-config.
23389See the pkg-config man page for more details." "$LINENO" 5
23390elif test $pkg_failed = untried; then
23391        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23392printf "%s\n" "no" >&6; }
23393        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23394printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23395as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23396is in your PATH or set the PKG_CONFIG environment variable to the full
23397path to pkg-config.
23398
23399Alternatively, you may set the environment variables LIBXML2_CFLAGS
23400and LIBXML2_LIBS to avoid the need to call pkg-config.
23401See the pkg-config man page for more details.
23402
23403To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23404See \`config.log' for more details" "$LINENO" 5; }
23405else
23406        LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
23407        LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
23408        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23409printf "%s\n" "yes" >&6; }
23410
23411printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
23412
23413fi ;; #(
23414  *) :
23415    as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
23416esac
23417
23418 if test -n "$LIBXML2_LIBS"; then
23419  HAVE_LIBXML2_TRUE=
23420  HAVE_LIBXML2_FALSE='#'
23421else
23422  HAVE_LIBXML2_TRUE='#'
23423  HAVE_LIBXML2_FALSE=
23424fi
23425
23426
23427#
23428# was --with-json-c specified?
23429#
23430# [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
23431
23432# Check whether --with-json-c was given.
23433if test ${with_json_c+y}
23434then :
23435  withval=$with_json_c;
23436else $as_nop
23437  with_json_c="detect"
23438fi
23439
23440
23441case $with_json_c in #(
23442  no) :
23443     ;; #(
23444  detect) :
23445
23446pkg_failed=no
23447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
23448printf %s "checking for json-c >= 0.11... " >&6; }
23449
23450if test -n "$JSON_C_CFLAGS"; then
23451    pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
23452 elif test -n "$PKG_CONFIG"; then
23453    if test -n "$PKG_CONFIG" && \
23454    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
23455  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
23456  ac_status=$?
23457  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458  test $ac_status = 0; }; then
23459  pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
23460		      test "x$?" != "x0" && pkg_failed=yes
23461else
23462  pkg_failed=yes
23463fi
23464 else
23465    pkg_failed=untried
23466fi
23467if test -n "$JSON_C_LIBS"; then
23468    pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
23469 elif test -n "$PKG_CONFIG"; then
23470    if test -n "$PKG_CONFIG" && \
23471    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
23472  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
23473  ac_status=$?
23474  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23475  test $ac_status = 0; }; then
23476  pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
23477		      test "x$?" != "x0" && pkg_failed=yes
23478else
23479  pkg_failed=yes
23480fi
23481 else
23482    pkg_failed=untried
23483fi
23484
23485
23486
23487if test $pkg_failed = yes; then
23488        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23489printf "%s\n" "no" >&6; }
23490
23491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23492        _pkg_short_errors_supported=yes
23493else
23494        _pkg_short_errors_supported=no
23495fi
23496        if test $_pkg_short_errors_supported = yes; then
23497                JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
23498        else
23499                JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
23500        fi
23501        # Put the nasty error message in config.log where it belongs
23502        echo "$JSON_C_PKG_ERRORS" >&5
23503
23504        :
23505elif test $pkg_failed = untried; then
23506        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23507printf "%s\n" "no" >&6; }
23508        :
23509else
23510        JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
23511        JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
23512        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23513printf "%s\n" "yes" >&6; }
23514
23515printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
23516
23517fi ;; #(
23518  yes) :
23519
23520pkg_failed=no
23521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
23522printf %s "checking for json-c >= 0.11... " >&6; }
23523
23524if test -n "$JSON_C_CFLAGS"; then
23525    pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
23526 elif test -n "$PKG_CONFIG"; then
23527    if test -n "$PKG_CONFIG" && \
23528    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
23529  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
23530  ac_status=$?
23531  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23532  test $ac_status = 0; }; then
23533  pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
23534		      test "x$?" != "x0" && pkg_failed=yes
23535else
23536  pkg_failed=yes
23537fi
23538 else
23539    pkg_failed=untried
23540fi
23541if test -n "$JSON_C_LIBS"; then
23542    pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
23543 elif test -n "$PKG_CONFIG"; then
23544    if test -n "$PKG_CONFIG" && \
23545    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
23546  ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
23547  ac_status=$?
23548  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549  test $ac_status = 0; }; then
23550  pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
23551		      test "x$?" != "x0" && pkg_failed=yes
23552else
23553  pkg_failed=yes
23554fi
23555 else
23556    pkg_failed=untried
23557fi
23558
23559
23560
23561if test $pkg_failed = yes; then
23562        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563printf "%s\n" "no" >&6; }
23564
23565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23566        _pkg_short_errors_supported=yes
23567else
23568        _pkg_short_errors_supported=no
23569fi
23570        if test $_pkg_short_errors_supported = yes; then
23571                JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
23572        else
23573                JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
23574        fi
23575        # Put the nasty error message in config.log where it belongs
23576        echo "$JSON_C_PKG_ERRORS" >&5
23577
23578        as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
23579
23580$JSON_C_PKG_ERRORS
23581
23582Consider adjusting the PKG_CONFIG_PATH environment variable if you
23583installed software in a non-standard prefix.
23584
23585Alternatively, you may set the environment variables JSON_C_CFLAGS
23586and JSON_C_LIBS to avoid the need to call pkg-config.
23587See the pkg-config man page for more details." "$LINENO" 5
23588elif test $pkg_failed = untried; then
23589        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23590printf "%s\n" "no" >&6; }
23591        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23592printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23593as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23594is in your PATH or set the PKG_CONFIG environment variable to the full
23595path to pkg-config.
23596
23597Alternatively, you may set the environment variables JSON_C_CFLAGS
23598and JSON_C_LIBS to avoid the need to call pkg-config.
23599See the pkg-config man page for more details.
23600
23601To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23602See \`config.log' for more details" "$LINENO" 5; }
23603else
23604        JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
23605        JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
23606        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23607printf "%s\n" "yes" >&6; }
23608
23609printf "%s\n" "#define HAVE_JSON_C 1" >>confdefs.h
23610
23611fi ;; #(
23612  *) :
23613    as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
23614        ;;
23615esac
23616
23617 if test -n "$JSON_C_LIBS"; then
23618  HAVE_JSON_C_TRUE=
23619  HAVE_JSON_C_FALSE='#'
23620else
23621  HAVE_JSON_C_TRUE='#'
23622  HAVE_JSON_C_FALSE=
23623fi
23624
23625
23626
23627
23628
23629#
23630# was --with-zlib specified?
23631#
23632# [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
23633
23634# Check whether --with-zlib was given.
23635if test ${with_zlib+y}
23636then :
23637  withval=$with_zlib;
23638else $as_nop
23639  with_zlib="auto"
23640fi
23641
23642
23643case $with_zlib in #(
23644  no) :
23645     ;; #(
23646  auto) :
23647
23648pkg_failed=no
23649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
23650printf %s "checking for zlib... " >&6; }
23651
23652if test -n "$ZLIB_CFLAGS"; then
23653    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
23654 elif test -n "$PKG_CONFIG"; then
23655    if test -n "$PKG_CONFIG" && \
23656    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23657  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23658  ac_status=$?
23659  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660  test $ac_status = 0; }; then
23661  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
23662		      test "x$?" != "x0" && pkg_failed=yes
23663else
23664  pkg_failed=yes
23665fi
23666 else
23667    pkg_failed=untried
23668fi
23669if test -n "$ZLIB_LIBS"; then
23670    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
23671 elif test -n "$PKG_CONFIG"; then
23672    if test -n "$PKG_CONFIG" && \
23673    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23674  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23675  ac_status=$?
23676  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23677  test $ac_status = 0; }; then
23678  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
23679		      test "x$?" != "x0" && pkg_failed=yes
23680else
23681  pkg_failed=yes
23682fi
23683 else
23684    pkg_failed=untried
23685fi
23686
23687
23688
23689if test $pkg_failed = yes; then
23690        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23691printf "%s\n" "no" >&6; }
23692
23693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23694        _pkg_short_errors_supported=yes
23695else
23696        _pkg_short_errors_supported=no
23697fi
23698        if test $_pkg_short_errors_supported = yes; then
23699                ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
23700        else
23701                ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
23702        fi
23703        # Put the nasty error message in config.log where it belongs
23704        echo "$ZLIB_PKG_ERRORS" >&5
23705
23706        :
23707elif test $pkg_failed = untried; then
23708        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709printf "%s\n" "no" >&6; }
23710        :
23711else
23712        ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
23713        ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
23714        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23715printf "%s\n" "yes" >&6; }
23716
23717printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
23718
23719fi ;; #(
23720  yes) :
23721
23722pkg_failed=no
23723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
23724printf %s "checking for zlib... " >&6; }
23725
23726if test -n "$ZLIB_CFLAGS"; then
23727    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
23728 elif test -n "$PKG_CONFIG"; then
23729    if test -n "$PKG_CONFIG" && \
23730    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23731  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23732  ac_status=$?
23733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23734  test $ac_status = 0; }; then
23735  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
23736		      test "x$?" != "x0" && pkg_failed=yes
23737else
23738  pkg_failed=yes
23739fi
23740 else
23741    pkg_failed=untried
23742fi
23743if test -n "$ZLIB_LIBS"; then
23744    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
23745 elif test -n "$PKG_CONFIG"; then
23746    if test -n "$PKG_CONFIG" && \
23747    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
23748  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
23749  ac_status=$?
23750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23751  test $ac_status = 0; }; then
23752  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
23753		      test "x$?" != "x0" && pkg_failed=yes
23754else
23755  pkg_failed=yes
23756fi
23757 else
23758    pkg_failed=untried
23759fi
23760
23761
23762
23763if test $pkg_failed = yes; then
23764        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23765printf "%s\n" "no" >&6; }
23766
23767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23768        _pkg_short_errors_supported=yes
23769else
23770        _pkg_short_errors_supported=no
23771fi
23772        if test $_pkg_short_errors_supported = yes; then
23773                ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
23774        else
23775                ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
23776        fi
23777        # Put the nasty error message in config.log where it belongs
23778        echo "$ZLIB_PKG_ERRORS" >&5
23779
23780        as_fn_error $? "Package requirements (zlib) were not met:
23781
23782$ZLIB_PKG_ERRORS
23783
23784Consider adjusting the PKG_CONFIG_PATH environment variable if you
23785installed software in a non-standard prefix.
23786
23787Alternatively, you may set the environment variables ZLIB_CFLAGS
23788and ZLIB_LIBS to avoid the need to call pkg-config.
23789See the pkg-config man page for more details." "$LINENO" 5
23790elif test $pkg_failed = untried; then
23791        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23792printf "%s\n" "no" >&6; }
23793        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23794printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23795as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
23796is in your PATH or set the PKG_CONFIG environment variable to the full
23797path to pkg-config.
23798
23799Alternatively, you may set the environment variables ZLIB_CFLAGS
23800and ZLIB_LIBS to avoid the need to call pkg-config.
23801See the pkg-config man page for more details.
23802
23803To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23804See \`config.log' for more details" "$LINENO" 5; }
23805else
23806        ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
23807        ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
23808        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23809printf "%s\n" "yes" >&6; }
23810
23811printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h
23812
23813fi ;; #(
23814  *) :
23815    as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
23816esac
23817
23818
23819
23820#
23821# Check if the system supports glibc-compatible backtrace() function.
23822#
23823       for ac_header in execinfo.h
23824do :
23825  ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
23826if test "x$ac_cv_header_execinfo_h" = xyes
23827then :
23828  printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
23829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
23830printf %s "checking for library containing backtrace_symbols... " >&6; }
23831if test ${ac_cv_search_backtrace_symbols+y}
23832then :
23833  printf %s "(cached) " >&6
23834else $as_nop
23835  ac_func_search_save_LIBS=$LIBS
23836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837/* end confdefs.h.  */
23838
23839/* Override any GCC internal prototype to avoid an error.
23840   Use char because int might match the return type of a GCC
23841   builtin and then its argument prototype would still apply.  */
23842char backtrace_symbols ();
23843int
23844main (void)
23845{
23846return backtrace_symbols ();
23847  ;
23848  return 0;
23849}
23850_ACEOF
23851for ac_lib in '' execinfo
23852do
23853  if test -z "$ac_lib"; then
23854    ac_res="none required"
23855  else
23856    ac_res=-l$ac_lib
23857    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23858  fi
23859  if ac_fn_c_try_link "$LINENO"
23860then :
23861  ac_cv_search_backtrace_symbols=$ac_res
23862fi
23863rm -f core conftest.err conftest.$ac_objext conftest.beam \
23864    conftest$ac_exeext
23865  if test ${ac_cv_search_backtrace_symbols+y}
23866then :
23867  break
23868fi
23869done
23870if test ${ac_cv_search_backtrace_symbols+y}
23871then :
23872
23873else $as_nop
23874  ac_cv_search_backtrace_symbols=no
23875fi
23876rm conftest.$ac_ext
23877LIBS=$ac_func_search_save_LIBS
23878fi
23879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
23880printf "%s\n" "$ac_cv_search_backtrace_symbols" >&6; }
23881ac_res=$ac_cv_search_backtrace_symbols
23882if test "$ac_res" != no
23883then :
23884  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23885  ac_fn_c_check_func "$LINENO" "backtrace_symbols" "ac_cv_func_backtrace_symbols"
23886if test "x$ac_cv_func_backtrace_symbols" = xyes
23887then :
23888  printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
23889
23890fi
23891
23892fi
23893
23894fi
23895
23896done
23897
23898#
23899# We do the IPv6 compilation checking after libtool so that we can put
23900# the right suffix on the files.
23901#
23902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
23903printf %s "checking for IPv6 structures... " >&6; }
23904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905/* end confdefs.h.  */
23906
23907       #include <sys/types.h>
23908       #include <sys/socket.h>
23909       #include <netinet/in.h>
23910
23911int
23912main (void)
23913{
23914
23915       struct sockaddr_in6 sin6;
23916       struct in6_addr in6;
23917       struct in6_pktinfo in6_pi;
23918       struct sockaddr_storage storage;
23919       in6 = in6addr_any;
23920       in6 = in6addr_loopback;
23921       sin6.sin6_scope_id = 0;
23922       return (0);
23923
23924  ;
23925  return 0;
23926}
23927_ACEOF
23928if ac_fn_c_try_compile "$LINENO"
23929then :
23930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23931printf "%s\n" "yes" >&6; }
23932else $as_nop
23933  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23934printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23935as_fn_error $? "IPv6 support is mandatory
23936See \`config.log' for more details" "$LINENO" 5; }
23937fi
23938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23939
23940#
23941# Allow forcibly disabling TCP Fast Open support as autodetection might yield
23942# confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
23943# comment in lib/isc/socket.c).
23944#
23945# [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
23946# Check whether --enable-tcp_fastopen was given.
23947if test ${enable_tcp_fastopen+y}
23948then :
23949  enableval=$enable_tcp_fastopen;
23950else $as_nop
23951  enable_tcp_fastopen="yes"
23952fi
23953
23954
23955if test "$enable_tcp_fastopen" = "yes"
23956then :
23957
23958printf "%s\n" "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
23959
23960fi
23961
23962#
23963# Check for some other useful functions that are not ever-present.
23964#
23965ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
23966if test "x$ac_cv_func_strlcpy" = xyes
23967then :
23968  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
23969
23970fi
23971ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
23972if test "x$ac_cv_func_strlcat" = xyes
23973then :
23974  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
23975
23976fi
23977ac_fn_c_check_func "$LINENO" "strnstr" "ac_cv_func_strnstr"
23978if test "x$ac_cv_func_strnstr" = xyes
23979then :
23980  printf "%s\n" "#define HAVE_STRNSTR 1" >>confdefs.h
23981
23982fi
23983
23984
23985#
23986# Check for readline support
23987#
23988
23989# editline is not included in pairwise testing as the library
23990# is not present in the relevant Docker image.
23991#
23992# GNU Readline is not included in pairwise testing as the library
23993# in the relevant Docker image does not support pkg-config.
23994#
23995# [pairwise: --with-readline=auto, --with-readline=yes, --with-readline=libedit, --without-readline]
23996
23997# Check whether --with-readline was given.
23998if test ${with_readline+y}
23999then :
24000  withval=$with_readline;
24001else $as_nop
24002  with_readline="auto"
24003fi
24004
24005
24006case $with_readline in #(
24007  no) :
24008     ;; #(
24009  auto|yes) :
24010
24011pkg_failed=no
24012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
24013printf %s "checking for libedit... " >&6; }
24014
24015if test -n "$READLINE_CFLAGS"; then
24016    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24017 elif test -n "$PKG_CONFIG"; then
24018    if test -n "$PKG_CONFIG" && \
24019    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24020  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24021  ac_status=$?
24022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24023  test $ac_status = 0; }; then
24024  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
24025		      test "x$?" != "x0" && pkg_failed=yes
24026else
24027  pkg_failed=yes
24028fi
24029 else
24030    pkg_failed=untried
24031fi
24032if test -n "$READLINE_LIBS"; then
24033    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24034 elif test -n "$PKG_CONFIG"; then
24035    if test -n "$PKG_CONFIG" && \
24036    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24037  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24038  ac_status=$?
24039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24040  test $ac_status = 0; }; then
24041  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
24042		      test "x$?" != "x0" && pkg_failed=yes
24043else
24044  pkg_failed=yes
24045fi
24046 else
24047    pkg_failed=untried
24048fi
24049
24050
24051
24052if test $pkg_failed = yes; then
24053        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054printf "%s\n" "no" >&6; }
24055
24056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24057        _pkg_short_errors_supported=yes
24058else
24059        _pkg_short_errors_supported=no
24060fi
24061        if test $_pkg_short_errors_supported = yes; then
24062                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
24063        else
24064                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
24065        fi
24066        # Put the nasty error message in config.log where it belongs
24067        echo "$READLINE_PKG_ERRORS" >&5
24068
24069
24070pkg_failed=no
24071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
24072printf %s "checking for libeditline... " >&6; }
24073
24074if test -n "$READLINE_CFLAGS"; then
24075    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24076 elif test -n "$PKG_CONFIG"; then
24077    if test -n "$PKG_CONFIG" && \
24078    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24079  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24080  ac_status=$?
24081  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24082  test $ac_status = 0; }; then
24083  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
24084		      test "x$?" != "x0" && pkg_failed=yes
24085else
24086  pkg_failed=yes
24087fi
24088 else
24089    pkg_failed=untried
24090fi
24091if test -n "$READLINE_LIBS"; then
24092    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24093 elif test -n "$PKG_CONFIG"; then
24094    if test -n "$PKG_CONFIG" && \
24095    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24096  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24097  ac_status=$?
24098  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24099  test $ac_status = 0; }; then
24100  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
24101		      test "x$?" != "x0" && pkg_failed=yes
24102else
24103  pkg_failed=yes
24104fi
24105 else
24106    pkg_failed=untried
24107fi
24108
24109
24110
24111if test $pkg_failed = yes; then
24112        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24113printf "%s\n" "no" >&6; }
24114
24115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24116        _pkg_short_errors_supported=yes
24117else
24118        _pkg_short_errors_supported=no
24119fi
24120        if test $_pkg_short_errors_supported = yes; then
24121                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
24122        else
24123                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
24124        fi
24125        # Put the nasty error message in config.log where it belongs
24126        echo "$READLINE_PKG_ERRORS" >&5
24127
24128
24129pkg_failed=no
24130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24131printf %s "checking for readline... " >&6; }
24132
24133if test -n "$READLINE_CFLAGS"; then
24134    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24135 elif test -n "$PKG_CONFIG"; then
24136    if test -n "$PKG_CONFIG" && \
24137    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24138  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24139  ac_status=$?
24140  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141  test $ac_status = 0; }; then
24142  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24143		      test "x$?" != "x0" && pkg_failed=yes
24144else
24145  pkg_failed=yes
24146fi
24147 else
24148    pkg_failed=untried
24149fi
24150if test -n "$READLINE_LIBS"; then
24151    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24152 elif test -n "$PKG_CONFIG"; then
24153    if test -n "$PKG_CONFIG" && \
24154    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24155  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24156  ac_status=$?
24157  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24158  test $ac_status = 0; }; then
24159  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24160		      test "x$?" != "x0" && pkg_failed=yes
24161else
24162  pkg_failed=yes
24163fi
24164 else
24165    pkg_failed=untried
24166fi
24167
24168
24169
24170if test $pkg_failed = yes; then
24171        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24172printf "%s\n" "no" >&6; }
24173
24174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24175        _pkg_short_errors_supported=yes
24176else
24177        _pkg_short_errors_supported=no
24178fi
24179        if test $_pkg_short_errors_supported = yes; then
24180                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24181        else
24182                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24183        fi
24184        # Put the nasty error message in config.log where it belongs
24185        echo "$READLINE_PKG_ERRORS" >&5
24186
24187        if test "$with_readline" = "yes"
24188then :
24189  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24190fi
24191elif test $pkg_failed = untried; then
24192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24193printf "%s\n" "no" >&6; }
24194        if test "$with_readline" = "yes"
24195then :
24196  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24197fi
24198else
24199        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24200        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24201        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24202printf "%s\n" "yes" >&6; }
24203
24204printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
24205
24206fi
24207elif test $pkg_failed = untried; then
24208        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209printf "%s\n" "no" >&6; }
24210
24211pkg_failed=no
24212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24213printf %s "checking for readline... " >&6; }
24214
24215if test -n "$READLINE_CFLAGS"; then
24216    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24217 elif test -n "$PKG_CONFIG"; then
24218    if test -n "$PKG_CONFIG" && \
24219    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24220  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24221  ac_status=$?
24222  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24223  test $ac_status = 0; }; then
24224  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24225		      test "x$?" != "x0" && pkg_failed=yes
24226else
24227  pkg_failed=yes
24228fi
24229 else
24230    pkg_failed=untried
24231fi
24232if test -n "$READLINE_LIBS"; then
24233    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24234 elif test -n "$PKG_CONFIG"; then
24235    if test -n "$PKG_CONFIG" && \
24236    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24237  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24238  ac_status=$?
24239  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240  test $ac_status = 0; }; then
24241  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24242		      test "x$?" != "x0" && pkg_failed=yes
24243else
24244  pkg_failed=yes
24245fi
24246 else
24247    pkg_failed=untried
24248fi
24249
24250
24251
24252if test $pkg_failed = yes; then
24253        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254printf "%s\n" "no" >&6; }
24255
24256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24257        _pkg_short_errors_supported=yes
24258else
24259        _pkg_short_errors_supported=no
24260fi
24261        if test $_pkg_short_errors_supported = yes; then
24262                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24263        else
24264                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24265        fi
24266        # Put the nasty error message in config.log where it belongs
24267        echo "$READLINE_PKG_ERRORS" >&5
24268
24269        if test "$with_readline" = "yes"
24270then :
24271  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24272fi
24273elif test $pkg_failed = untried; then
24274        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24275printf "%s\n" "no" >&6; }
24276        if test "$with_readline" = "yes"
24277then :
24278  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24279fi
24280else
24281        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24282        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24283        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24284printf "%s\n" "yes" >&6; }
24285
24286printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
24287
24288fi
24289else
24290        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24291        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24292        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24293printf "%s\n" "yes" >&6; }
24294
24295printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
24296
24297fi
24298elif test $pkg_failed = untried; then
24299        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24300printf "%s\n" "no" >&6; }
24301
24302pkg_failed=no
24303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
24304printf %s "checking for libeditline... " >&6; }
24305
24306if test -n "$READLINE_CFLAGS"; then
24307    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24308 elif test -n "$PKG_CONFIG"; then
24309    if test -n "$PKG_CONFIG" && \
24310    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24311  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24312  ac_status=$?
24313  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24314  test $ac_status = 0; }; then
24315  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
24316		      test "x$?" != "x0" && pkg_failed=yes
24317else
24318  pkg_failed=yes
24319fi
24320 else
24321    pkg_failed=untried
24322fi
24323if test -n "$READLINE_LIBS"; then
24324    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24325 elif test -n "$PKG_CONFIG"; then
24326    if test -n "$PKG_CONFIG" && \
24327    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24328  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24329  ac_status=$?
24330  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331  test $ac_status = 0; }; then
24332  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
24333		      test "x$?" != "x0" && pkg_failed=yes
24334else
24335  pkg_failed=yes
24336fi
24337 else
24338    pkg_failed=untried
24339fi
24340
24341
24342
24343if test $pkg_failed = yes; then
24344        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24345printf "%s\n" "no" >&6; }
24346
24347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24348        _pkg_short_errors_supported=yes
24349else
24350        _pkg_short_errors_supported=no
24351fi
24352        if test $_pkg_short_errors_supported = yes; then
24353                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
24354        else
24355                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
24356        fi
24357        # Put the nasty error message in config.log where it belongs
24358        echo "$READLINE_PKG_ERRORS" >&5
24359
24360
24361pkg_failed=no
24362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24363printf %s "checking for readline... " >&6; }
24364
24365if test -n "$READLINE_CFLAGS"; then
24366    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24367 elif test -n "$PKG_CONFIG"; then
24368    if test -n "$PKG_CONFIG" && \
24369    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24370  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24371  ac_status=$?
24372  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24373  test $ac_status = 0; }; then
24374  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24375		      test "x$?" != "x0" && pkg_failed=yes
24376else
24377  pkg_failed=yes
24378fi
24379 else
24380    pkg_failed=untried
24381fi
24382if test -n "$READLINE_LIBS"; then
24383    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24384 elif test -n "$PKG_CONFIG"; then
24385    if test -n "$PKG_CONFIG" && \
24386    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24387  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24388  ac_status=$?
24389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390  test $ac_status = 0; }; then
24391  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24392		      test "x$?" != "x0" && pkg_failed=yes
24393else
24394  pkg_failed=yes
24395fi
24396 else
24397    pkg_failed=untried
24398fi
24399
24400
24401
24402if test $pkg_failed = yes; then
24403        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24404printf "%s\n" "no" >&6; }
24405
24406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24407        _pkg_short_errors_supported=yes
24408else
24409        _pkg_short_errors_supported=no
24410fi
24411        if test $_pkg_short_errors_supported = yes; then
24412                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24413        else
24414                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24415        fi
24416        # Put the nasty error message in config.log where it belongs
24417        echo "$READLINE_PKG_ERRORS" >&5
24418
24419        if test "$with_readline" = "yes"
24420then :
24421  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24422fi
24423elif test $pkg_failed = untried; then
24424        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24425printf "%s\n" "no" >&6; }
24426        if test "$with_readline" = "yes"
24427then :
24428  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24429fi
24430else
24431        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24432        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24433        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434printf "%s\n" "yes" >&6; }
24435
24436printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
24437
24438fi
24439elif test $pkg_failed = untried; then
24440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441printf "%s\n" "no" >&6; }
24442
24443pkg_failed=no
24444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24445printf %s "checking for readline... " >&6; }
24446
24447if test -n "$READLINE_CFLAGS"; then
24448    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24449 elif test -n "$PKG_CONFIG"; then
24450    if test -n "$PKG_CONFIG" && \
24451    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24452  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24453  ac_status=$?
24454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455  test $ac_status = 0; }; then
24456  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24457		      test "x$?" != "x0" && pkg_failed=yes
24458else
24459  pkg_failed=yes
24460fi
24461 else
24462    pkg_failed=untried
24463fi
24464if test -n "$READLINE_LIBS"; then
24465    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24466 elif test -n "$PKG_CONFIG"; then
24467    if test -n "$PKG_CONFIG" && \
24468    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24469  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24470  ac_status=$?
24471  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472  test $ac_status = 0; }; then
24473  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24474		      test "x$?" != "x0" && pkg_failed=yes
24475else
24476  pkg_failed=yes
24477fi
24478 else
24479    pkg_failed=untried
24480fi
24481
24482
24483
24484if test $pkg_failed = yes; then
24485        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486printf "%s\n" "no" >&6; }
24487
24488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24489        _pkg_short_errors_supported=yes
24490else
24491        _pkg_short_errors_supported=no
24492fi
24493        if test $_pkg_short_errors_supported = yes; then
24494                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24495        else
24496                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24497        fi
24498        # Put the nasty error message in config.log where it belongs
24499        echo "$READLINE_PKG_ERRORS" >&5
24500
24501        if test "$with_readline" = "yes"
24502then :
24503  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24504fi
24505elif test $pkg_failed = untried; then
24506        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507printf "%s\n" "no" >&6; }
24508        if test "$with_readline" = "yes"
24509then :
24510  as_fn_error $? "readline support requested, but none of the libraries have been found." "$LINENO" 5
24511fi
24512else
24513        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24514        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24515        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24516printf "%s\n" "yes" >&6; }
24517
24518printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
24519
24520fi
24521else
24522        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24523        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24525printf "%s\n" "yes" >&6; }
24526
24527printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
24528
24529fi
24530else
24531        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24532        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24533        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24534printf "%s\n" "yes" >&6; }
24535
24536printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h
24537
24538fi ;; #(
24539  libedit) :
24540
24541pkg_failed=no
24542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
24543printf %s "checking for libedit... " >&6; }
24544
24545if test -n "$READLINE_CFLAGS"; then
24546    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24547 elif test -n "$PKG_CONFIG"; then
24548    if test -n "$PKG_CONFIG" && \
24549    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24550  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24551  ac_status=$?
24552  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553  test $ac_status = 0; }; then
24554  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
24555		      test "x$?" != "x0" && pkg_failed=yes
24556else
24557  pkg_failed=yes
24558fi
24559 else
24560    pkg_failed=untried
24561fi
24562if test -n "$READLINE_LIBS"; then
24563    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24564 elif test -n "$PKG_CONFIG"; then
24565    if test -n "$PKG_CONFIG" && \
24566    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24567  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24568  ac_status=$?
24569  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570  test $ac_status = 0; }; then
24571  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
24572		      test "x$?" != "x0" && pkg_failed=yes
24573else
24574  pkg_failed=yes
24575fi
24576 else
24577    pkg_failed=untried
24578fi
24579
24580
24581
24582if test $pkg_failed = yes; then
24583        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24584printf "%s\n" "no" >&6; }
24585
24586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24587        _pkg_short_errors_supported=yes
24588else
24589        _pkg_short_errors_supported=no
24590fi
24591        if test $_pkg_short_errors_supported = yes; then
24592                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
24593        else
24594                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
24595        fi
24596        # Put the nasty error message in config.log where it belongs
24597        echo "$READLINE_PKG_ERRORS" >&5
24598
24599        as_fn_error $? "Package requirements (libedit) were not met:
24600
24601$READLINE_PKG_ERRORS
24602
24603Consider adjusting the PKG_CONFIG_PATH environment variable if you
24604installed software in a non-standard prefix.
24605
24606Alternatively, you may set the environment variables READLINE_CFLAGS
24607and READLINE_LIBS to avoid the need to call pkg-config.
24608See the pkg-config man page for more details." "$LINENO" 5
24609elif test $pkg_failed = untried; then
24610        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611printf "%s\n" "no" >&6; }
24612        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24613printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24614as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24615is in your PATH or set the PKG_CONFIG environment variable to the full
24616path to pkg-config.
24617
24618Alternatively, you may set the environment variables READLINE_CFLAGS
24619and READLINE_LIBS to avoid the need to call pkg-config.
24620See the pkg-config man page for more details.
24621
24622To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24623See \`config.log' for more details" "$LINENO" 5; }
24624else
24625        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24626        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24627        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24628printf "%s\n" "yes" >&6; }
24629
24630printf "%s\n" "#define HAVE_READLINE_LIBEDIT 1" >>confdefs.h
24631
24632fi ;; #(
24633  editline) :
24634
24635pkg_failed=no
24636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libeditline" >&5
24637printf %s "checking for libeditline... " >&6; }
24638
24639if test -n "$READLINE_CFLAGS"; then
24640    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24641 elif test -n "$PKG_CONFIG"; then
24642    if test -n "$PKG_CONFIG" && \
24643    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24644  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24645  ac_status=$?
24646  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647  test $ac_status = 0; }; then
24648  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "libeditline" 2>/dev/null`
24649		      test "x$?" != "x0" && pkg_failed=yes
24650else
24651  pkg_failed=yes
24652fi
24653 else
24654    pkg_failed=untried
24655fi
24656if test -n "$READLINE_LIBS"; then
24657    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24658 elif test -n "$PKG_CONFIG"; then
24659    if test -n "$PKG_CONFIG" && \
24660    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeditline\""; } >&5
24661  ($PKG_CONFIG --exists --print-errors "libeditline") 2>&5
24662  ac_status=$?
24663  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664  test $ac_status = 0; }; then
24665  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "libeditline" 2>/dev/null`
24666		      test "x$?" != "x0" && pkg_failed=yes
24667else
24668  pkg_failed=yes
24669fi
24670 else
24671    pkg_failed=untried
24672fi
24673
24674
24675
24676if test $pkg_failed = yes; then
24677        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24678printf "%s\n" "no" >&6; }
24679
24680if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24681        _pkg_short_errors_supported=yes
24682else
24683        _pkg_short_errors_supported=no
24684fi
24685        if test $_pkg_short_errors_supported = yes; then
24686                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeditline" 2>&1`
24687        else
24688                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeditline" 2>&1`
24689        fi
24690        # Put the nasty error message in config.log where it belongs
24691        echo "$READLINE_PKG_ERRORS" >&5
24692
24693        as_fn_error $? "Package requirements (libeditline) were not met:
24694
24695$READLINE_PKG_ERRORS
24696
24697Consider adjusting the PKG_CONFIG_PATH environment variable if you
24698installed software in a non-standard prefix.
24699
24700Alternatively, you may set the environment variables READLINE_CFLAGS
24701and READLINE_LIBS to avoid the need to call pkg-config.
24702See the pkg-config man page for more details." "$LINENO" 5
24703elif test $pkg_failed = untried; then
24704        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24705printf "%s\n" "no" >&6; }
24706        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24707printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24708as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24709is in your PATH or set the PKG_CONFIG environment variable to the full
24710path to pkg-config.
24711
24712Alternatively, you may set the environment variables READLINE_CFLAGS
24713and READLINE_LIBS to avoid the need to call pkg-config.
24714See the pkg-config man page for more details.
24715
24716To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24717See \`config.log' for more details" "$LINENO" 5; }
24718else
24719        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24720        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24721        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24722printf "%s\n" "yes" >&6; }
24723
24724printf "%s\n" "#define HAVE_READLINE_EDITLINE 1" >>confdefs.h
24725
24726fi ;; #(
24727  readline) :
24728
24729pkg_failed=no
24730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24731printf %s "checking for readline... " >&6; }
24732
24733if test -n "$READLINE_CFLAGS"; then
24734    pkg_cv_READLINE_CFLAGS="$READLINE_CFLAGS"
24735 elif test -n "$PKG_CONFIG"; then
24736    if test -n "$PKG_CONFIG" && \
24737    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24738  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24739  ac_status=$?
24740  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24741  test $ac_status = 0; }; then
24742  pkg_cv_READLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24743		      test "x$?" != "x0" && pkg_failed=yes
24744else
24745  pkg_failed=yes
24746fi
24747 else
24748    pkg_failed=untried
24749fi
24750if test -n "$READLINE_LIBS"; then
24751    pkg_cv_READLINE_LIBS="$READLINE_LIBS"
24752 elif test -n "$PKG_CONFIG"; then
24753    if test -n "$PKG_CONFIG" && \
24754    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24755  ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24756  ac_status=$?
24757  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758  test $ac_status = 0; }; then
24759  pkg_cv_READLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24760		      test "x$?" != "x0" && pkg_failed=yes
24761else
24762  pkg_failed=yes
24763fi
24764 else
24765    pkg_failed=untried
24766fi
24767
24768
24769
24770if test $pkg_failed = yes; then
24771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24772printf "%s\n" "no" >&6; }
24773
24774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24775        _pkg_short_errors_supported=yes
24776else
24777        _pkg_short_errors_supported=no
24778fi
24779        if test $_pkg_short_errors_supported = yes; then
24780                READLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24781        else
24782                READLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24783        fi
24784        # Put the nasty error message in config.log where it belongs
24785        echo "$READLINE_PKG_ERRORS" >&5
24786
24787        as_fn_error $? "Package requirements (readline) were not met:
24788
24789$READLINE_PKG_ERRORS
24790
24791Consider adjusting the PKG_CONFIG_PATH environment variable if you
24792installed software in a non-standard prefix.
24793
24794Alternatively, you may set the environment variables READLINE_CFLAGS
24795and READLINE_LIBS to avoid the need to call pkg-config.
24796See the pkg-config man page for more details." "$LINENO" 5
24797elif test $pkg_failed = untried; then
24798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24799printf "%s\n" "no" >&6; }
24800        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24801printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24802as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24803is in your PATH or set the PKG_CONFIG environment variable to the full
24804path to pkg-config.
24805
24806Alternatively, you may set the environment variables READLINE_CFLAGS
24807and READLINE_LIBS to avoid the need to call pkg-config.
24808See the pkg-config man page for more details.
24809
24810To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24811See \`config.log' for more details" "$LINENO" 5; }
24812else
24813        READLINE_CFLAGS=$pkg_cv_READLINE_CFLAGS
24814        READLINE_LIBS=$pkg_cv_READLINE_LIBS
24815        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24816printf "%s\n" "yes" >&6; }
24817
24818printf "%s\n" "#define HAVE_READLINE_READLINE 1" >>confdefs.h
24819
24820fi ;; #(
24821  *) :
24822    as_fn_error $? "Unknown readline '$with_readline' library requested." "$LINENO" 5 ;;
24823esac
24824 if test -n "$READLINE_LIBS"; then
24825  HAVE_READLINE_TRUE=
24826  HAVE_READLINE_FALSE='#'
24827else
24828  HAVE_READLINE_TRUE='#'
24829  HAVE_READLINE_FALSE=
24830fi
24831
24832
24833
24834
24835#
24836# Security Stuff
24837#
24838# Note it is very recommended to *not* disable chroot(),
24839# this is only because chroot() was made obsolete by Posix.
24840#
24841# [pairwise: --enable-chroot, --disable-chroot]
24842# Check whether --enable-chroot was given.
24843if test ${enable_chroot+y}
24844then :
24845  enableval=$enable_chroot;
24846fi
24847
24848case "$enable_chroot" in
24849	yes|'')
24850		ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
24851if test "x$ac_cv_func_chroot" = xyes
24852then :
24853  printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
24854
24855fi
24856
24857		;;
24858	no)
24859		;;
24860esac
24861
24862LIBCAP_LIBS=""
24863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
24864printf %s "checking whether to enable Linux capabilities... " >&6; }
24865
24866# [pairwise: --enable-linux-caps, --disable-linux-caps]
24867# Check whether --enable-linux-caps was given.
24868if test ${enable_linux_caps+y}
24869then :
24870  enableval=$enable_linux_caps;
24871else $as_nop
24872  case $host in #(
24873  *-linux*) :
24874    enable_linux_caps=yes ;; #(
24875  *) :
24876    enable_linux_caps=no ;;
24877esac
24878fi
24879
24880
24881if test "$enable_linux_caps" = "yes"
24882then :
24883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884printf "%s\n" "yes" >&6; }
24885              for ac_header in sys/capability.h
24886do :
24887  ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
24888if test "x$ac_cv_header_sys_capability_h" = xyes
24889then :
24890  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
24891
24892else $as_nop
24893  as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
24894fi
24895
24896done
24897
24898
24899  CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
24900
24901
24902
24903  CFLAGS_cap_ax_save_flags=$CFLAGS
24904
24905
24906
24907  CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
24908
24909
24910
24911  CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
24912
24913
24914
24915  ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
24916
24917
24918
24919  FCFLAGS_cap_ax_save_flags=$FCFLAGS
24920
24921
24922
24923  FCLIBS_cap_ax_save_flags=$FCLIBS
24924
24925
24926
24927  FFLAGS_cap_ax_save_flags=$FFLAGS
24928
24929
24930
24931  FLIBS_cap_ax_save_flags=$FLIBS
24932
24933
24934
24935  GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
24936
24937
24938
24939  JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
24940
24941
24942
24943  LDFLAGS_cap_ax_save_flags=$LDFLAGS
24944
24945
24946
24947  LIBS_cap_ax_save_flags=$LIBS
24948
24949
24950
24951  OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
24952
24953
24954
24955  OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
24956
24957
24958
24959  UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
24960
24961
24962
24963  VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
24964
24965
24966
24967       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
24968printf %s "checking for library containing cap_set_proc... " >&6; }
24969if test ${ac_cv_search_cap_set_proc+y}
24970then :
24971  printf %s "(cached) " >&6
24972else $as_nop
24973  ac_func_search_save_LIBS=$LIBS
24974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24975/* end confdefs.h.  */
24976
24977/* Override any GCC internal prototype to avoid an error.
24978   Use char because int might match the return type of a GCC
24979   builtin and then its argument prototype would still apply.  */
24980char cap_set_proc ();
24981int
24982main (void)
24983{
24984return cap_set_proc ();
24985  ;
24986  return 0;
24987}
24988_ACEOF
24989for ac_lib in '' cap
24990do
24991  if test -z "$ac_lib"; then
24992    ac_res="none required"
24993  else
24994    ac_res=-l$ac_lib
24995    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24996  fi
24997  if ac_fn_c_try_link "$LINENO"
24998then :
24999  ac_cv_search_cap_set_proc=$ac_res
25000fi
25001rm -f core conftest.err conftest.$ac_objext conftest.beam \
25002    conftest$ac_exeext
25003  if test ${ac_cv_search_cap_set_proc+y}
25004then :
25005  break
25006fi
25007done
25008if test ${ac_cv_search_cap_set_proc+y}
25009then :
25010
25011else $as_nop
25012  ac_cv_search_cap_set_proc=no
25013fi
25014rm conftest.$ac_ext
25015LIBS=$ac_func_search_save_LIBS
25016fi
25017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
25018printf "%s\n" "$ac_cv_search_cap_set_proc" >&6; }
25019ac_res=$ac_cv_search_cap_set_proc
25020if test "$ac_res" != no
25021then :
25022  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25023  LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
25024else $as_nop
25025  as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
25026fi
25027
25028
25029  CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
25030
25031
25032  CFLAGS=$CFLAGS_cap_ax_save_flags
25033
25034
25035  CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
25036
25037
25038  CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
25039
25040
25041  ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
25042
25043
25044  FCFLAGS=$FCFLAGS_cap_ax_save_flags
25045
25046
25047  FCLIBS=$FCLIBS_cap_ax_save_flags
25048
25049
25050  FFLAGS=$FFLAGS_cap_ax_save_flags
25051
25052
25053  FLIBS=$FLIBS_cap_ax_save_flags
25054
25055
25056  GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
25057
25058
25059  JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
25060
25061
25062  LDFLAGS=$LDFLAGS_cap_ax_save_flags
25063
25064
25065  LIBS=$LIBS_cap_ax_save_flags
25066
25067
25068  OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
25069
25070
25071  OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
25072
25073
25074  UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
25075
25076
25077  VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
25078
25079
25080
25081else $as_nop
25082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25083printf "%s\n" "no" >&6; }
25084fi
25085
25086
25087case "$host" in
25088*-solaris*)
25089
25090printf "%s\n" "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
25091
25092	;;
25093esac
25094
25095#
25096# Time Zone Stuff
25097#
25098ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
25099if test "x$ac_cv_func_tzset" = xyes
25100then :
25101  printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
25102
25103fi
25104
25105
25106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
25107printf %s "checking for optarg declaration... " >&6; }
25108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109/* end confdefs.h.  */
25110#include <unistd.h>
25111int
25112main (void)
25113{
25114optarg = 0;
25115
25116  ;
25117  return 0;
25118}
25119_ACEOF
25120if ac_fn_c_try_compile "$LINENO"
25121then :
25122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25123printf "%s\n" "yes" >&6; }
25124else $as_nop
25125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25126printf "%s\n" "no" >&6; }
25127   GEN_NEED_OPTARG="-DNEED_OPTARG=1"
25128
25129printf "%s\n" "#define NEED_OPTARG 1" >>confdefs.h
25130
25131
25132fi
25133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25134
25135#
25136# Check for nanoseconds in file stats
25137#
25138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
25139printf %s "checking for st_mtim.tv_nsec... " >&6; }
25140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141/* end confdefs.h.  */
25142#include <sys/stat.h>
25143int
25144main (void)
25145{
25146struct stat s;
25147       return(s.st_mtim.tv_nsec);
25148
25149  ;
25150  return 0;
25151}
25152_ACEOF
25153if ac_fn_c_try_compile "$LINENO"
25154then :
25155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25156printf "%s\n" "yes" >&6; }
25157
25158printf "%s\n" "#define HAVE_STAT_NSEC 1" >>confdefs.h
25159
25160else $as_nop
25161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25162printf "%s\n" "no" >&6; }
25163fi
25164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25165
25166#
25167# Check for if_nametoindex() for IPv6 scoped addresses support
25168#
25169ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
25170if test "x$ac_cv_func_if_nametoindex" = xyes
25171then :
25172  printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
25173
25174fi
25175
25176
25177ISC_ATOMIC_LIBS=""
25178       for ac_header in stdatomic.h
25179do :
25180  ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
25181if test "x$ac_cv_header_stdatomic_h" = xyes
25182then :
25183  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
25184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
25185printf %s "checking for memory model aware atomic operations... " >&6; }
25186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25187/* end confdefs.h.  */
25188#include <stdatomic.h>
25189int
25190main (void)
25191{
25192atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
25193
25194  ;
25195  return 0;
25196}
25197_ACEOF
25198if ac_fn_c_try_compile "$LINENO"
25199then :
25200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
25201printf "%s\n" "stdatomic.h" >&6; }
25202      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
25203printf %s "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
25204      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205/* end confdefs.h.  */
25206#include <stdatomic.h>
25207int
25208main (void)
25209{
25210atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
25211
25212  ;
25213  return 0;
25214}
25215_ACEOF
25216if ac_fn_c_try_link "$LINENO"
25217then :
25218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25219printf "%s\n" "no" >&6; }
25220else $as_nop
25221  ISC_ATOMIC_LIBS="-latomic"
25222
25223
25224  CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
25225
25226
25227
25228  CFLAGS_atomic_ax_save_flags=$CFLAGS
25229
25230
25231
25232  CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
25233
25234
25235
25236  CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
25237
25238
25239
25240  ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
25241
25242
25243
25244  FCFLAGS_atomic_ax_save_flags=$FCFLAGS
25245
25246
25247
25248  FCLIBS_atomic_ax_save_flags=$FCLIBS
25249
25250
25251
25252  FFLAGS_atomic_ax_save_flags=$FFLAGS
25253
25254
25255
25256  FLIBS_atomic_ax_save_flags=$FLIBS
25257
25258
25259
25260  GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
25261
25262
25263
25264  JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
25265
25266
25267
25268  LDFLAGS_atomic_ax_save_flags=$LDFLAGS
25269
25270
25271
25272  LIBS_atomic_ax_save_flags=$LIBS
25273
25274
25275
25276  OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
25277
25278
25279
25280  OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
25281
25282
25283
25284  UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
25285
25286
25287
25288  VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
25289
25290
25291
25292	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
25293	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294/* end confdefs.h.  */
25295#include <stdatomic.h>
25296int
25297main (void)
25298{
25299atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
25300
25301  ;
25302  return 0;
25303}
25304_ACEOF
25305if ac_fn_c_try_link "$LINENO"
25306then :
25307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25308printf "%s\n" "yes" >&6; }
25309else $as_nop
25310  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25311printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25312as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
25313See \`config.log' for more details" "$LINENO" 5; }
25314fi
25315rm -f core conftest.err conftest.$ac_objext conftest.beam \
25316    conftest$ac_exeext conftest.$ac_ext
25317
25318  CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
25319
25320
25321  CFLAGS=$CFLAGS_atomic_ax_save_flags
25322
25323
25324  CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
25325
25326
25327  CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
25328
25329
25330  ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
25331
25332
25333  FCFLAGS=$FCFLAGS_atomic_ax_save_flags
25334
25335
25336  FCLIBS=$FCLIBS_atomic_ax_save_flags
25337
25338
25339  FFLAGS=$FFLAGS_atomic_ax_save_flags
25340
25341
25342  FLIBS=$FLIBS_atomic_ax_save_flags
25343
25344
25345  GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
25346
25347
25348  JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
25349
25350
25351  LDFLAGS=$LDFLAGS_atomic_ax_save_flags
25352
25353
25354  LIBS=$LIBS_atomic_ax_save_flags
25355
25356
25357  OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
25358
25359
25360  OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
25361
25362
25363  UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
25364
25365
25366  VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
25367
25368
25369
25370
25371fi
25372rm -f core conftest.err conftest.$ac_objext conftest.beam \
25373    conftest$ac_exeext conftest.$ac_ext
25374
25375else $as_nop
25376  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25377printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25378as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
25379See \`config.log' for more details" "$LINENO" 5; }
25380
25381fi
25382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25383else $as_nop
25384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
25385printf %s "checking for memory model aware atomic operations... " >&6; }
25386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25387/* end confdefs.h.  */
25388#include <inttypes.h>
25389int
25390main (void)
25391{
25392int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
25393
25394  ;
25395  return 0;
25396}
25397_ACEOF
25398if ac_fn_c_try_compile "$LINENO"
25399then :
25400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
25401printf "%s\n" "__atomic builtins" >&6; }
25402
25403printf "%s\n" "#define HAVE___ATOMIC 1" >>confdefs.h
25404
25405      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
25406printf %s "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
25407      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408/* end confdefs.h.  */
25409#include <inttypes.h>
25410int
25411main (void)
25412{
25413int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
25414
25415  ;
25416  return 0;
25417}
25418_ACEOF
25419if ac_fn_c_try_link "$LINENO"
25420then :
25421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25422printf "%s\n" "no" >&6; }
25423else $as_nop
25424  ISC_ATOMIC_LIBS="-latomic"
25425
25426
25427  CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
25428
25429
25430
25431  CFLAGS_atomic_ax_save_flags=$CFLAGS
25432
25433
25434
25435  CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
25436
25437
25438
25439  CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
25440
25441
25442
25443  ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
25444
25445
25446
25447  FCFLAGS_atomic_ax_save_flags=$FCFLAGS
25448
25449
25450
25451  FCLIBS_atomic_ax_save_flags=$FCLIBS
25452
25453
25454
25455  FFLAGS_atomic_ax_save_flags=$FFLAGS
25456
25457
25458
25459  FLIBS_atomic_ax_save_flags=$FLIBS
25460
25461
25462
25463  GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
25464
25465
25466
25467  JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
25468
25469
25470
25471  LDFLAGS_atomic_ax_save_flags=$LDFLAGS
25472
25473
25474
25475  LIBS_atomic_ax_save_flags=$LIBS
25476
25477
25478
25479  OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
25480
25481
25482
25483  OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
25484
25485
25486
25487  UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
25488
25489
25490
25491  VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
25492
25493
25494
25495	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
25496	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25497/* end confdefs.h.  */
25498#include <inttypes.h>
25499int
25500main (void)
25501{
25502int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
25503
25504  ;
25505  return 0;
25506}
25507_ACEOF
25508if ac_fn_c_try_link "$LINENO"
25509then :
25510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25511printf "%s\n" "yes" >&6; }
25512else $as_nop
25513  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25515as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
25516See \`config.log' for more details" "$LINENO" 5; }
25517fi
25518rm -f core conftest.err conftest.$ac_objext conftest.beam \
25519    conftest$ac_exeext conftest.$ac_ext
25520
25521  CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
25522
25523
25524  CFLAGS=$CFLAGS_atomic_ax_save_flags
25525
25526
25527  CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
25528
25529
25530  CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
25531
25532
25533  ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
25534
25535
25536  FCFLAGS=$FCFLAGS_atomic_ax_save_flags
25537
25538
25539  FCLIBS=$FCLIBS_atomic_ax_save_flags
25540
25541
25542  FFLAGS=$FFLAGS_atomic_ax_save_flags
25543
25544
25545  FLIBS=$FLIBS_atomic_ax_save_flags
25546
25547
25548  GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
25549
25550
25551  JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
25552
25553
25554  LDFLAGS=$LDFLAGS_atomic_ax_save_flags
25555
25556
25557  LIBS=$LIBS_atomic_ax_save_flags
25558
25559
25560  OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
25561
25562
25563  OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
25564
25565
25566  UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
25567
25568
25569  VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
25570
25571
25572
25573
25574fi
25575rm -f core conftest.err conftest.$ac_objext conftest.beam \
25576    conftest$ac_exeext conftest.$ac_ext
25577
25578else $as_nop
25579  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25580printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25581as_fn_error $? "not found
25582See \`config.log' for more details" "$LINENO" 5; }
25583
25584fi
25585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25586
25587fi
25588
25589done
25590LIBS="$LIBS $ISC_ATOMIC_LIBS"
25591
25592ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
25593if test "x$ac_cv_header_stdalign_h" = xyes
25594then :
25595  printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h
25596
25597fi
25598ac_fn_c_check_header_compile "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
25599if test "x$ac_cv_header_stdnoreturn_h" = xyes
25600then :
25601  printf "%s\n" "#define HAVE_STDNORETURN_H 1" >>confdefs.h
25602
25603fi
25604
25605
25606ac_fn_c_check_header_compile "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
25607if test "x$ac_cv_header_uchar_h" = xyes
25608then :
25609  printf "%s\n" "#define HAVE_UCHAR_H 1" >>confdefs.h
25610
25611fi
25612
25613
25614#
25615# Check for __builtin_unreachable
25616#
25617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
25618printf %s "checking compiler support for __builtin_unreachable()... " >&6; }
25619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620/* end confdefs.h.  */
25621
25622int
25623main (void)
25624{
25625__builtin_unreachable();
25626
25627  ;
25628  return 0;
25629}
25630_ACEOF
25631if ac_fn_c_try_link "$LINENO"
25632then :
25633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25634printf "%s\n" "yes" >&6; }
25635
25636printf "%s\n" "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
25637
25638
25639else $as_nop
25640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25641printf "%s\n" "no" >&6; }
25642
25643fi
25644rm -f core conftest.err conftest.$ac_objext conftest.beam \
25645    conftest$ac_exeext conftest.$ac_ext
25646
25647#
25648# Check for __builtin_clz
25649#
25650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
25651printf %s "checking compiler support for __builtin_clz... " >&6; }
25652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25653/* end confdefs.h.  */
25654
25655int
25656main (void)
25657{
25658return (__builtin_clz(0xff) == 24 ? 1 : 0);
25659
25660  ;
25661  return 0;
25662}
25663_ACEOF
25664if ac_fn_c_try_link "$LINENO"
25665then :
25666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25667printf "%s\n" "yes" >&6; }
25668
25669printf "%s\n" "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
25670
25671
25672else $as_nop
25673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25674printf "%s\n" "no" >&6; }
25675
25676fi
25677rm -f core conftest.err conftest.$ac_objext conftest.beam \
25678    conftest$ac_exeext conftest.$ac_ext
25679
25680#
25681# Check for __builtin_uadd_overflow
25682#
25683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_*_overflow()" >&5
25684printf %s "checking compiler support for __builtin_*_overflow()... " >&6; }
25685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686/* end confdefs.h.  */
25687#include <limits.h>
25688int
25689main (void)
25690{
25691return (__builtin_uadd_overflow(UINT_MAX, UINT_MAX, &(unsigned int){ 0 }));
25692
25693  ;
25694  return 0;
25695}
25696_ACEOF
25697if ac_fn_c_try_link "$LINENO"
25698then :
25699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25700printf "%s\n" "yes" >&6; }
25701
25702printf "%s\n" "#define HAVE_BUILTIN_OVERFLOW 1" >>confdefs.h
25703
25704
25705else $as_nop
25706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25707printf "%s\n" "no" >&6; }
25708
25709fi
25710rm -f core conftest.err conftest.$ac_objext conftest.beam \
25711    conftest$ac_exeext conftest.$ac_ext
25712
25713#
25714# Activate "rrset-order fixed" or not?
25715#
25716# [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
25717# Check whether --enable-fixed-rrset was given.
25718if test ${enable_fixed_rrset+y}
25719then :
25720  enableval=$enable_fixed_rrset;
25721else $as_nop
25722  enable_fixed_rrset="no"
25723fi
25724
25725if test "$enable_fixed_rrset" = "yes"
25726then :
25727
25728printf "%s\n" "#define DNS_RDATASET_FIXED 1" >>confdefs.h
25729
25730fi
25731
25732#
25733# Activate dnstap?
25734#
25735# [pairwise: --enable-dnstap, --disable-dnstap]
25736# Check whether --enable-dnstap was given.
25737if test ${enable_dnstap+y}
25738then :
25739  enableval=$enable_dnstap;
25740else $as_nop
25741  enable_dnstap=no
25742fi
25743
25744
25745if test "$enable_dnstap" != "no"
25746then :
25747
25748pkg_failed=no
25749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfstrm libprotobuf-c" >&5
25750printf %s "checking for libfstrm libprotobuf-c... " >&6; }
25751
25752if test -n "$DNSTAP_CFLAGS"; then
25753    pkg_cv_DNSTAP_CFLAGS="$DNSTAP_CFLAGS"
25754 elif test -n "$PKG_CONFIG"; then
25755    if test -n "$PKG_CONFIG" && \
25756    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5
25757  ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5
25758  ac_status=$?
25759  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760  test $ac_status = 0; }; then
25761  pkg_cv_DNSTAP_CFLAGS=`$PKG_CONFIG --cflags "libfstrm libprotobuf-c" 2>/dev/null`
25762		      test "x$?" != "x0" && pkg_failed=yes
25763else
25764  pkg_failed=yes
25765fi
25766 else
25767    pkg_failed=untried
25768fi
25769if test -n "$DNSTAP_LIBS"; then
25770    pkg_cv_DNSTAP_LIBS="$DNSTAP_LIBS"
25771 elif test -n "$PKG_CONFIG"; then
25772    if test -n "$PKG_CONFIG" && \
25773    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfstrm libprotobuf-c\""; } >&5
25774  ($PKG_CONFIG --exists --print-errors "libfstrm libprotobuf-c") 2>&5
25775  ac_status=$?
25776  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25777  test $ac_status = 0; }; then
25778  pkg_cv_DNSTAP_LIBS=`$PKG_CONFIG --libs "libfstrm libprotobuf-c" 2>/dev/null`
25779		      test "x$?" != "x0" && pkg_failed=yes
25780else
25781  pkg_failed=yes
25782fi
25783 else
25784    pkg_failed=untried
25785fi
25786
25787
25788
25789if test $pkg_failed = yes; then
25790        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25791printf "%s\n" "no" >&6; }
25792
25793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25794        _pkg_short_errors_supported=yes
25795else
25796        _pkg_short_errors_supported=no
25797fi
25798        if test $_pkg_short_errors_supported = yes; then
25799                DNSTAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1`
25800        else
25801                DNSTAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfstrm libprotobuf-c" 2>&1`
25802        fi
25803        # Put the nasty error message in config.log where it belongs
25804        echo "$DNSTAP_PKG_ERRORS" >&5
25805
25806        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25807printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25808as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them.
25809See \`config.log' for more details" "$LINENO" 5; }
25810elif test $pkg_failed = untried; then
25811        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25812printf "%s\n" "no" >&6; }
25813        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25814printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25815as_fn_error $? "Required libraries (fstrm, protobuf-c) were not found, please install them.
25816See \`config.log' for more details" "$LINENO" 5; }
25817else
25818        DNSTAP_CFLAGS=$pkg_cv_DNSTAP_CFLAGS
25819        DNSTAP_LIBS=$pkg_cv_DNSTAP_LIBS
25820        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25821printf "%s\n" "yes" >&6; }
25822
25823fi
25824       # Extract the first word of "fstrm_capture", so it can be a program name with args.
25825set dummy fstrm_capture; ac_word=$2
25826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25827printf %s "checking for $ac_word... " >&6; }
25828if test ${ac_cv_path_FSTRM_CAPTURE+y}
25829then :
25830  printf %s "(cached) " >&6
25831else $as_nop
25832  case $FSTRM_CAPTURE in
25833  [\\/]* | ?:[\\/]*)
25834  ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
25835  ;;
25836  *)
25837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25838for as_dir in $PATH
25839do
25840  IFS=$as_save_IFS
25841  case $as_dir in #(((
25842    '') as_dir=./ ;;
25843    */) ;;
25844    *) as_dir=$as_dir/ ;;
25845  esac
25846    for ac_exec_ext in '' $ac_executable_extensions; do
25847  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25848    ac_cv_path_FSTRM_CAPTURE="$as_dir$ac_word$ac_exec_ext"
25849    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25850    break 2
25851  fi
25852done
25853  done
25854IFS=$as_save_IFS
25855
25856  ;;
25857esac
25858fi
25859FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
25860if test -n "$FSTRM_CAPTURE"; then
25861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
25862printf "%s\n" "$FSTRM_CAPTURE" >&6; }
25863else
25864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25865printf "%s\n" "no" >&6; }
25866fi
25867
25868
25869       # Extract the first word of "protoc-c", so it can be a program name with args.
25870set dummy protoc-c; ac_word=$2
25871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25872printf %s "checking for $ac_word... " >&6; }
25873if test ${ac_cv_path_PROTOC_C+y}
25874then :
25875  printf %s "(cached) " >&6
25876else $as_nop
25877  case $PROTOC_C in
25878  [\\/]* | ?:[\\/]*)
25879  ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
25880  ;;
25881  *)
25882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25883for as_dir in $PATH
25884do
25885  IFS=$as_save_IFS
25886  case $as_dir in #(((
25887    '') as_dir=./ ;;
25888    */) ;;
25889    *) as_dir=$as_dir/ ;;
25890  esac
25891    for ac_exec_ext in '' $ac_executable_extensions; do
25892  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25893    ac_cv_path_PROTOC_C="$as_dir$ac_word$ac_exec_ext"
25894    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25895    break 2
25896  fi
25897done
25898  done
25899IFS=$as_save_IFS
25900
25901  ;;
25902esac
25903fi
25904PROTOC_C=$ac_cv_path_PROTOC_C
25905if test -n "$PROTOC_C"; then
25906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
25907printf "%s\n" "$PROTOC_C" >&6; }
25908else
25909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25910printf "%s\n" "no" >&6; }
25911fi
25912
25913
25914       if test -z "$PROTOC_C"
25915then :
25916  as_fn_error $? "protoc-c compiler not found" "$LINENO" 5
25917fi
25918
25919printf "%s\n" "#define HAVE_DNSTAP 1" >>confdefs.h
25920
25921
25922fi
25923
25924
25925
25926 if test "$enable_dnstap" != "no"; then
25927  HAVE_DNSTAP_TRUE=
25928  HAVE_DNSTAP_FALSE='#'
25929else
25930  HAVE_DNSTAP_TRUE='#'
25931  HAVE_DNSTAP_FALSE=
25932fi
25933
25934#
25935# The following sections deal with tools used for formatting
25936# the documentation.  They are all optional, unless you are
25937# a developer editing the documentation source.
25938#
25939
25940#
25941# Look for sphinx-build
25942#
25943
25944# Extract the first word of "sphinx-build", so it can be a program name with args.
25945set dummy sphinx-build; ac_word=$2
25946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25947printf %s "checking for $ac_word... " >&6; }
25948if test ${ac_cv_path_SPHINX_BUILD+y}
25949then :
25950  printf %s "(cached) " >&6
25951else $as_nop
25952  case $SPHINX_BUILD in
25953  [\\/]* | ?:[\\/]*)
25954  ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
25955  ;;
25956  *)
25957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25958for as_dir in $PATH
25959do
25960  IFS=$as_save_IFS
25961  case $as_dir in #(((
25962    '') as_dir=./ ;;
25963    */) ;;
25964    *) as_dir=$as_dir/ ;;
25965  esac
25966    for ac_exec_ext in '' $ac_executable_extensions; do
25967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25968    ac_cv_path_SPHINX_BUILD="$as_dir$ac_word$ac_exec_ext"
25969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25970    break 2
25971  fi
25972done
25973  done
25974IFS=$as_save_IFS
25975
25976  ;;
25977esac
25978fi
25979SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
25980if test -n "$SPHINX_BUILD"; then
25981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
25982printf "%s\n" "$SPHINX_BUILD" >&6; }
25983else
25984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25985printf "%s\n" "no" >&6; }
25986fi
25987
25988
25989 if test -n "$SPHINX_BUILD"; then
25990  HAVE_SPHINX_BUILD_TRUE=
25991  HAVE_SPHINX_BUILD_FALSE='#'
25992else
25993  HAVE_SPHINX_BUILD_TRUE='#'
25994  HAVE_SPHINX_BUILD_FALSE=
25995fi
25996
25997
25998# Extract the first word of "xelatex", so it can be a program name with args.
25999set dummy xelatex; ac_word=$2
26000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26001printf %s "checking for $ac_word... " >&6; }
26002if test ${ac_cv_path_XELATEX+y}
26003then :
26004  printf %s "(cached) " >&6
26005else $as_nop
26006  case $XELATEX in
26007  [\\/]* | ?:[\\/]*)
26008  ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
26009  ;;
26010  *)
26011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26012for as_dir in $PATH
26013do
26014  IFS=$as_save_IFS
26015  case $as_dir in #(((
26016    '') as_dir=./ ;;
26017    */) ;;
26018    *) as_dir=$as_dir/ ;;
26019  esac
26020    for ac_exec_ext in '' $ac_executable_extensions; do
26021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26022    ac_cv_path_XELATEX="$as_dir$ac_word$ac_exec_ext"
26023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26024    break 2
26025  fi
26026done
26027  done
26028IFS=$as_save_IFS
26029
26030  ;;
26031esac
26032fi
26033XELATEX=$ac_cv_path_XELATEX
26034if test -n "$XELATEX"; then
26035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
26036printf "%s\n" "$XELATEX" >&6; }
26037else
26038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26039printf "%s\n" "no" >&6; }
26040fi
26041
26042
26043# Extract the first word of "latexmk", so it can be a program name with args.
26044set dummy latexmk; ac_word=$2
26045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26046printf %s "checking for $ac_word... " >&6; }
26047if test ${ac_cv_path_LATEXMK+y}
26048then :
26049  printf %s "(cached) " >&6
26050else $as_nop
26051  case $LATEXMK in
26052  [\\/]* | ?:[\\/]*)
26053  ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
26054  ;;
26055  *)
26056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26057for as_dir in $PATH
26058do
26059  IFS=$as_save_IFS
26060  case $as_dir in #(((
26061    '') as_dir=./ ;;
26062    */) ;;
26063    *) as_dir=$as_dir/ ;;
26064  esac
26065    for ac_exec_ext in '' $ac_executable_extensions; do
26066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26067    ac_cv_path_LATEXMK="$as_dir$ac_word$ac_exec_ext"
26068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26069    break 2
26070  fi
26071done
26072  done
26073IFS=$as_save_IFS
26074
26075  ;;
26076esac
26077fi
26078LATEXMK=$ac_cv_path_LATEXMK
26079if test -n "$LATEXMK"; then
26080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
26081printf "%s\n" "$LATEXMK" >&6; }
26082else
26083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26084printf "%s\n" "no" >&6; }
26085fi
26086
26087
26088 if test -n "$XELATEX" && test -n "$LATEXMK"; then
26089  HAVE_XELATEX_TRUE=
26090  HAVE_XELATEX_FALSE='#'
26091else
26092  HAVE_XELATEX_TRUE='#'
26093  HAVE_XELATEX_FALSE=
26094fi
26095
26096
26097#
26098# Build the man pages only if we have prebuilt manpages or we can build them from RST sources
26099#
26100 if test -e doc/man/named.conf.5in || test -n "$SPHINX_BUILD"; then
26101  BUILD_MANPAGES_TRUE=
26102  BUILD_MANPAGES_FALSE='#'
26103else
26104  BUILD_MANPAGES_TRUE='#'
26105  BUILD_MANPAGES_FALSE=
26106fi
26107
26108
26109#
26110# Pull release date from changelog.rst file last modification date
26111# for reproducible builds
26112#
26113release_date=`date -u -r doc/arm/changelog.rst +%Y-%m-%d`
26114RELEASE_DATE=$release_date
26115
26116
26117#
26118# Look for Doxygen
26119#
26120for ac_prog in doxygen
26121do
26122  # Extract the first word of "$ac_prog", so it can be a program name with args.
26123set dummy $ac_prog; ac_word=$2
26124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26125printf %s "checking for $ac_word... " >&6; }
26126if test ${ac_cv_path_DOXYGEN+y}
26127then :
26128  printf %s "(cached) " >&6
26129else $as_nop
26130  case $DOXYGEN in
26131  [\\/]* | ?:[\\/]*)
26132  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26133  ;;
26134  *)
26135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26136for as_dir in $PATH
26137do
26138  IFS=$as_save_IFS
26139  case $as_dir in #(((
26140    '') as_dir=./ ;;
26141    */) ;;
26142    *) as_dir=$as_dir/ ;;
26143  esac
26144    for ac_exec_ext in '' $ac_executable_extensions; do
26145  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26146    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
26147    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26148    break 2
26149  fi
26150done
26151  done
26152IFS=$as_save_IFS
26153
26154  ;;
26155esac
26156fi
26157DOXYGEN=$ac_cv_path_DOXYGEN
26158if test -n "$DOXYGEN"; then
26159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
26160printf "%s\n" "$DOXYGEN" >&6; }
26161else
26162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26163printf "%s\n" "no" >&6; }
26164fi
26165
26166
26167  test -n "$DOXYGEN" && break
26168done
26169
26170
26171ac_config_files="$ac_config_files doc/doxygen/doxygen-input-filter"
26172
26173
26174#
26175# Look for curl
26176#
26177
26178# Extract the first word of "curl", so it can be a program name with args.
26179set dummy curl; ac_word=$2
26180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26181printf %s "checking for $ac_word... " >&6; }
26182if test ${ac_cv_path_CURL+y}
26183then :
26184  printf %s "(cached) " >&6
26185else $as_nop
26186  case $CURL in
26187  [\\/]* | ?:[\\/]*)
26188  ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
26189  ;;
26190  *)
26191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26192for as_dir in $PATH
26193do
26194  IFS=$as_save_IFS
26195  case $as_dir in #(((
26196    '') as_dir=./ ;;
26197    */) ;;
26198    *) as_dir=$as_dir/ ;;
26199  esac
26200    for ac_exec_ext in '' $ac_executable_extensions; do
26201  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26202    ac_cv_path_CURL="$as_dir$ac_word$ac_exec_ext"
26203    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26204    break 2
26205  fi
26206done
26207  done
26208IFS=$as_save_IFS
26209
26210  test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
26211  ;;
26212esac
26213fi
26214CURL=$ac_cv_path_CURL
26215if test -n "$CURL"; then
26216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
26217printf "%s\n" "$CURL" >&6; }
26218else
26219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220printf "%s\n" "no" >&6; }
26221fi
26222
26223
26224
26225
26226#
26227# Look for nc
26228#
26229
26230for ac_prog in nc
26231do
26232  # Extract the first word of "$ac_prog", so it can be a program name with args.
26233set dummy $ac_prog; ac_word=$2
26234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26235printf %s "checking for $ac_word... " >&6; }
26236if test ${ac_cv_path_NC+y}
26237then :
26238  printf %s "(cached) " >&6
26239else $as_nop
26240  case $NC in
26241  [\\/]* | ?:[\\/]*)
26242  ac_cv_path_NC="$NC" # Let the user override the test with a path.
26243  ;;
26244  *)
26245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26246for as_dir in $PATH
26247do
26248  IFS=$as_save_IFS
26249  case $as_dir in #(((
26250    '') as_dir=./ ;;
26251    */) ;;
26252    *) as_dir=$as_dir/ ;;
26253  esac
26254    for ac_exec_ext in '' $ac_executable_extensions; do
26255  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26256    ac_cv_path_NC="$as_dir$ac_word$ac_exec_ext"
26257    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26258    break 2
26259  fi
26260done
26261  done
26262IFS=$as_save_IFS
26263
26264  ;;
26265esac
26266fi
26267NC=$ac_cv_path_NC
26268if test -n "$NC"; then
26269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
26270printf "%s\n" "$NC" >&6; }
26271else
26272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26273printf "%s\n" "no" >&6; }
26274fi
26275
26276
26277  test -n "$NC" && break
26278done
26279test -n "$NC" || NC="nc"
26280
26281
26282
26283#
26284# IDN support using libidn2
26285#
26286
26287LIBIDN2_CFLAGS=
26288LIBIDN2_LIBS=
26289
26290# [pairwise: --with-libidn2=yes, --without-libidn2]
26291
26292# Check whether --with-libidn2 was given.
26293if test ${with_libidn2+y}
26294then :
26295  withval=$with_libidn2; with_libidn2="$withval"
26296else $as_nop
26297  with_libidn2="no"
26298fi
26299
26300case $with_libidn2 in #(
26301  yes) :
26302
26303pkg_failed=no
26304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
26305printf %s "checking for libidn2... " >&6; }
26306
26307if test -n "$LIBIDN2_CFLAGS"; then
26308    pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
26309 elif test -n "$PKG_CONFIG"; then
26310    if test -n "$PKG_CONFIG" && \
26311    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
26312  ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
26313  ac_status=$?
26314  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315  test $ac_status = 0; }; then
26316  pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
26317		      test "x$?" != "x0" && pkg_failed=yes
26318else
26319  pkg_failed=yes
26320fi
26321 else
26322    pkg_failed=untried
26323fi
26324if test -n "$LIBIDN2_LIBS"; then
26325    pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
26326 elif test -n "$PKG_CONFIG"; then
26327    if test -n "$PKG_CONFIG" && \
26328    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
26329  ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
26330  ac_status=$?
26331  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332  test $ac_status = 0; }; then
26333  pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
26334		      test "x$?" != "x0" && pkg_failed=yes
26335else
26336  pkg_failed=yes
26337fi
26338 else
26339    pkg_failed=untried
26340fi
26341
26342
26343
26344if test $pkg_failed = yes; then
26345        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26346printf "%s\n" "no" >&6; }
26347
26348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26349        _pkg_short_errors_supported=yes
26350else
26351        _pkg_short_errors_supported=no
26352fi
26353        if test $_pkg_short_errors_supported = yes; then
26354                LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
26355        else
26356                LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
26357        fi
26358        # Put the nasty error message in config.log where it belongs
26359        echo "$LIBIDN2_PKG_ERRORS" >&5
26360
26361        as_fn_error $? "Package requirements (libidn2) were not met:
26362
26363$LIBIDN2_PKG_ERRORS
26364
26365Consider adjusting the PKG_CONFIG_PATH environment variable if you
26366installed software in a non-standard prefix.
26367
26368Alternatively, you may set the environment variables LIBIDN2_CFLAGS
26369and LIBIDN2_LIBS to avoid the need to call pkg-config.
26370See the pkg-config man page for more details." "$LINENO" 5
26371elif test $pkg_failed = untried; then
26372        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26373printf "%s\n" "no" >&6; }
26374        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26375printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26376as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26377is in your PATH or set the PKG_CONFIG environment variable to the full
26378path to pkg-config.
26379
26380Alternatively, you may set the environment variables LIBIDN2_CFLAGS
26381and LIBIDN2_LIBS to avoid the need to call pkg-config.
26382See the pkg-config man page for more details.
26383
26384To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26385See \`config.log' for more details" "$LINENO" 5; }
26386else
26387        LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
26388        LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
26389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26390printf "%s\n" "yes" >&6; }
26391
26392printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
26393
26394fi ;; #(
26395  no) :
26396     ;; #(
26397  *) :
26398
26399
26400  CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
26401
26402
26403
26404  CFLAGS_libidn2_ax_save_flags=$CFLAGS
26405
26406
26407
26408  CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
26409
26410
26411
26412  CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
26413
26414
26415
26416  ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
26417
26418
26419
26420  FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
26421
26422
26423
26424  FCLIBS_libidn2_ax_save_flags=$FCLIBS
26425
26426
26427
26428  FFLAGS_libidn2_ax_save_flags=$FFLAGS
26429
26430
26431
26432  FLIBS_libidn2_ax_save_flags=$FLIBS
26433
26434
26435
26436  GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
26437
26438
26439
26440  JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
26441
26442
26443
26444  LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
26445
26446
26447
26448  LIBS_libidn2_ax_save_flags=$LIBS
26449
26450
26451
26452  OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
26453
26454
26455
26456  OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
26457
26458
26459
26460  UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
26461
26462
26463
26464  VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
26465
26466
26467
26468		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
26469		 LIBIDN2_LIBS="-L$with_libidn2/lib"
26470		 CFLAGS="$CFLAGS $LIBIDN2_CFLAGS"
26471		 LIBS="$LIBS $LIBIDN2_LIBS"
26472		        for ac_header in idn2.h
26473do :
26474  ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
26475if test "x$ac_cv_header_idn2_h" = xyes
26476then :
26477  printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
26478
26479else $as_nop
26480  as_fn_error $? "idn2.h not found" "$LINENO" 5
26481fi
26482
26483done
26484		 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
26485printf %s "checking for library containing idn2_to_ascii_lz... " >&6; }
26486if test ${ac_cv_search_idn2_to_ascii_lz+y}
26487then :
26488  printf %s "(cached) " >&6
26489else $as_nop
26490  ac_func_search_save_LIBS=$LIBS
26491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492/* end confdefs.h.  */
26493
26494/* Override any GCC internal prototype to avoid an error.
26495   Use char because int might match the return type of a GCC
26496   builtin and then its argument prototype would still apply.  */
26497char idn2_to_ascii_lz ();
26498int
26499main (void)
26500{
26501return idn2_to_ascii_lz ();
26502  ;
26503  return 0;
26504}
26505_ACEOF
26506for ac_lib in '' idn2
26507do
26508  if test -z "$ac_lib"; then
26509    ac_res="none required"
26510  else
26511    ac_res=-l$ac_lib
26512    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26513  fi
26514  if ac_fn_c_try_link "$LINENO"
26515then :
26516  ac_cv_search_idn2_to_ascii_lz=$ac_res
26517fi
26518rm -f core conftest.err conftest.$ac_objext conftest.beam \
26519    conftest$ac_exeext
26520  if test ${ac_cv_search_idn2_to_ascii_lz+y}
26521then :
26522  break
26523fi
26524done
26525if test ${ac_cv_search_idn2_to_ascii_lz+y}
26526then :
26527
26528else $as_nop
26529  ac_cv_search_idn2_to_ascii_lz=no
26530fi
26531rm conftest.$ac_ext
26532LIBS=$ac_func_search_save_LIBS
26533fi
26534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
26535printf "%s\n" "$ac_cv_search_idn2_to_ascii_lz" >&6; }
26536ac_res=$ac_cv_search_idn2_to_ascii_lz
26537if test "$ac_res" != no
26538then :
26539  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26540  LIBIDN2_LIBS="$LIBIDN2_LIBS $ac_cv_search_idn2_to_ascii_lz"
26541
26542printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
26543
26544else $as_nop
26545  as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
26546fi
26547
26548
26549  CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
26550
26551
26552  CFLAGS=$CFLAGS_libidn2_ax_save_flags
26553
26554
26555  CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
26556
26557
26558  CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
26559
26560
26561  ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
26562
26563
26564  FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
26565
26566
26567  FCLIBS=$FCLIBS_libidn2_ax_save_flags
26568
26569
26570  FFLAGS=$FFLAGS_libidn2_ax_save_flags
26571
26572
26573  FLIBS=$FLIBS_libidn2_ax_save_flags
26574
26575
26576  GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
26577
26578
26579  JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
26580
26581
26582  LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
26583
26584
26585  LIBS=$LIBS_libidn2_ax_save_flags
26586
26587
26588  OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
26589
26590
26591  OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
26592
26593
26594  UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
26595
26596
26597  VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
26598
26599
26600 ;; #(
26601  *) :
26602     ;;
26603esac
26604
26605
26606
26607#
26608# Check whether to build with cmocka unit testing framework
26609#
26610# [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
26611
26612# Check whether --with-cmocka was given.
26613if test ${with_cmocka+y}
26614then :
26615  withval=$with_cmocka;
26616else $as_nop
26617  with_cmocka=detect
26618fi
26619
26620
26621case $with_cmocka in #(
26622  no) :
26623     ;; #(
26624  detect) :
26625
26626pkg_failed=no
26627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
26628printf %s "checking for cmocka >= 1.1.3... " >&6; }
26629
26630if test -n "$CMOCKA_CFLAGS"; then
26631    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
26632 elif test -n "$PKG_CONFIG"; then
26633    if test -n "$PKG_CONFIG" && \
26634    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
26635  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
26636  ac_status=$?
26637  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638  test $ac_status = 0; }; then
26639  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
26640		      test "x$?" != "x0" && pkg_failed=yes
26641else
26642  pkg_failed=yes
26643fi
26644 else
26645    pkg_failed=untried
26646fi
26647if test -n "$CMOCKA_LIBS"; then
26648    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
26649 elif test -n "$PKG_CONFIG"; then
26650    if test -n "$PKG_CONFIG" && \
26651    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
26652  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
26653  ac_status=$?
26654  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655  test $ac_status = 0; }; then
26656  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
26657		      test "x$?" != "x0" && pkg_failed=yes
26658else
26659  pkg_failed=yes
26660fi
26661 else
26662    pkg_failed=untried
26663fi
26664
26665
26666
26667if test $pkg_failed = yes; then
26668        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26669printf "%s\n" "no" >&6; }
26670
26671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26672        _pkg_short_errors_supported=yes
26673else
26674        _pkg_short_errors_supported=no
26675fi
26676        if test $_pkg_short_errors_supported = yes; then
26677                CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
26678        else
26679                CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
26680        fi
26681        # Put the nasty error message in config.log where it belongs
26682        echo "$CMOCKA_PKG_ERRORS" >&5
26683
26684        with_cmocka=no
26685elif test $pkg_failed = untried; then
26686        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26687printf "%s\n" "no" >&6; }
26688        with_cmocka=no
26689else
26690        CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
26691        CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
26692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26693printf "%s\n" "yes" >&6; }
26694
26695printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
26696
26697				     with_cmocka=yes
26698fi ;; #(
26699  yes) :
26700
26701pkg_failed=no
26702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
26703printf %s "checking for cmocka >= 1.1.3... " >&6; }
26704
26705if test -n "$CMOCKA_CFLAGS"; then
26706    pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
26707 elif test -n "$PKG_CONFIG"; then
26708    if test -n "$PKG_CONFIG" && \
26709    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
26710  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
26711  ac_status=$?
26712  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26713  test $ac_status = 0; }; then
26714  pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
26715		      test "x$?" != "x0" && pkg_failed=yes
26716else
26717  pkg_failed=yes
26718fi
26719 else
26720    pkg_failed=untried
26721fi
26722if test -n "$CMOCKA_LIBS"; then
26723    pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
26724 elif test -n "$PKG_CONFIG"; then
26725    if test -n "$PKG_CONFIG" && \
26726    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
26727  ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
26728  ac_status=$?
26729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730  test $ac_status = 0; }; then
26731  pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
26732		      test "x$?" != "x0" && pkg_failed=yes
26733else
26734  pkg_failed=yes
26735fi
26736 else
26737    pkg_failed=untried
26738fi
26739
26740
26741
26742if test $pkg_failed = yes; then
26743        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26744printf "%s\n" "no" >&6; }
26745
26746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26747        _pkg_short_errors_supported=yes
26748else
26749        _pkg_short_errors_supported=no
26750fi
26751        if test $_pkg_short_errors_supported = yes; then
26752                CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
26753        else
26754                CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
26755        fi
26756        # Put the nasty error message in config.log where it belongs
26757        echo "$CMOCKA_PKG_ERRORS" >&5
26758
26759        as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met:
26760
26761$CMOCKA_PKG_ERRORS
26762
26763Consider adjusting the PKG_CONFIG_PATH environment variable if you
26764installed software in a non-standard prefix.
26765
26766Alternatively, you may set the environment variables CMOCKA_CFLAGS
26767and CMOCKA_LIBS to avoid the need to call pkg-config.
26768See the pkg-config man page for more details." "$LINENO" 5
26769elif test $pkg_failed = untried; then
26770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26771printf "%s\n" "no" >&6; }
26772        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26773printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26774as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26775is in your PATH or set the PKG_CONFIG environment variable to the full
26776path to pkg-config.
26777
26778Alternatively, you may set the environment variables CMOCKA_CFLAGS
26779and CMOCKA_LIBS to avoid the need to call pkg-config.
26780See the pkg-config man page for more details.
26781
26782To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26783See \`config.log' for more details" "$LINENO" 5; }
26784else
26785        CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
26786        CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
26787        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26788printf "%s\n" "yes" >&6; }
26789
26790printf "%s\n" "#define HAVE_CMOCKA 1" >>confdefs.h
26791
26792fi ;; #(
26793  *) :
26794    as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
26795        ;;
26796esac
26797
26798
26799
26800 if test "$with_cmocka" = "yes"; then
26801  HAVE_CMOCKA_TRUE=
26802  HAVE_CMOCKA_FALSE='#'
26803else
26804  HAVE_CMOCKA_TRUE='#'
26805  HAVE_CMOCKA_FALSE=
26806fi
26807
26808
26809#
26810# Compile with jemalloc (either provided as package or wired in the system on FreeBSD)
26811#
26812# [pairwise: --with-jemalloc=detect, --with-jemalloc=yes, --without-jemalloc]
26813
26814# Check whether --with-jemalloc was given.
26815if test ${with_jemalloc+y}
26816then :
26817  withval=$with_jemalloc;
26818else $as_nop
26819  with_jemalloc=detect
26820fi
26821
26822
26823case $with_jemalloc in #(
26824  no) :
26825     ;; #(
26826  yes) :
26827
26828     found=false
26829
26830pkg_failed=no
26831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5
26832printf %s "checking for jemalloc... " >&6; }
26833
26834if test -n "$JEMALLOC_CFLAGS"; then
26835    pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS"
26836 elif test -n "$PKG_CONFIG"; then
26837    if test -n "$PKG_CONFIG" && \
26838    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
26839  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
26840  ac_status=$?
26841  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842  test $ac_status = 0; }; then
26843  pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null`
26844		      test "x$?" != "x0" && pkg_failed=yes
26845else
26846  pkg_failed=yes
26847fi
26848 else
26849    pkg_failed=untried
26850fi
26851if test -n "$JEMALLOC_LIBS"; then
26852    pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS"
26853 elif test -n "$PKG_CONFIG"; then
26854    if test -n "$PKG_CONFIG" && \
26855    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
26856  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
26857  ac_status=$?
26858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859  test $ac_status = 0; }; then
26860  pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null`
26861		      test "x$?" != "x0" && pkg_failed=yes
26862else
26863  pkg_failed=yes
26864fi
26865 else
26866    pkg_failed=untried
26867fi
26868
26869
26870
26871if test $pkg_failed = yes; then
26872        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26873printf "%s\n" "no" >&6; }
26874
26875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26876        _pkg_short_errors_supported=yes
26877else
26878        _pkg_short_errors_supported=no
26879fi
26880        if test $_pkg_short_errors_supported = yes; then
26881                JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1`
26882        else
26883                JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1`
26884        fi
26885        # Put the nasty error message in config.log where it belongs
26886        echo "$JEMALLOC_PKG_ERRORS" >&5
26887
26888
26889	           for ac_header in malloc_np.h jemalloc/jemalloc.h
26890do :
26891  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26892ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26893if eval test \"x\$"$as_ac_Header"\" = x"yes"
26894then :
26895  cat >>confdefs.h <<_ACEOF
26896#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26897_ACEOF
26898
26899		    save_LIBS="$LIBS"
26900		    save_LDFLAGS="$LDFLAGS"
26901		    save_CPPFLAGS="$CPPFLAGS"
26902		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallocx" >&5
26903printf %s "checking for library containing mallocx... " >&6; }
26904if test ${ac_cv_search_mallocx+y}
26905then :
26906  printf %s "(cached) " >&6
26907else $as_nop
26908  ac_func_search_save_LIBS=$LIBS
26909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910/* end confdefs.h.  */
26911
26912/* Override any GCC internal prototype to avoid an error.
26913   Use char because int might match the return type of a GCC
26914   builtin and then its argument prototype would still apply.  */
26915char mallocx ();
26916int
26917main (void)
26918{
26919return mallocx ();
26920  ;
26921  return 0;
26922}
26923_ACEOF
26924for ac_lib in '' jemalloc
26925do
26926  if test -z "$ac_lib"; then
26927    ac_res="none required"
26928  else
26929    ac_res=-l$ac_lib
26930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26931  fi
26932  if ac_fn_c_try_link "$LINENO"
26933then :
26934  ac_cv_search_mallocx=$ac_res
26935fi
26936rm -f core conftest.err conftest.$ac_objext conftest.beam \
26937    conftest$ac_exeext
26938  if test ${ac_cv_search_mallocx+y}
26939then :
26940  break
26941fi
26942done
26943if test ${ac_cv_search_mallocx+y}
26944then :
26945
26946else $as_nop
26947  ac_cv_search_mallocx=no
26948fi
26949rm conftest.$ac_ext
26950LIBS=$ac_func_search_save_LIBS
26951fi
26952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallocx" >&5
26953printf "%s\n" "$ac_cv_search_mallocx" >&6; }
26954ac_res=$ac_cv_search_mallocx
26955if test "$ac_res" != no
26956then :
26957  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26958
26959			    found=true
26960			    if test "$ac_cv_search_mallocx" != "none required"
26961then :
26962  JEMALLOC_LIBS="$ac_cv_search_mallocx"
26963fi
26964
26965fi
26966
26967		    CPPFLAGS="$save_CPPFLAGS"
26968		    LDFLAGS="$save_LDFLAGS"
26969		    LIBS="$save_LIBS"
26970
26971fi
26972
26973done
26974
26975elif test $pkg_failed = untried; then
26976        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26977printf "%s\n" "no" >&6; }
26978
26979	           for ac_header in malloc_np.h jemalloc/jemalloc.h
26980do :
26981  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26983if eval test \"x\$"$as_ac_Header"\" = x"yes"
26984then :
26985  cat >>confdefs.h <<_ACEOF
26986#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26987_ACEOF
26988
26989		    save_LIBS="$LIBS"
26990		    save_LDFLAGS="$LDFLAGS"
26991		    save_CPPFLAGS="$CPPFLAGS"
26992		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallocx" >&5
26993printf %s "checking for library containing mallocx... " >&6; }
26994if test ${ac_cv_search_mallocx+y}
26995then :
26996  printf %s "(cached) " >&6
26997else $as_nop
26998  ac_func_search_save_LIBS=$LIBS
26999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000/* end confdefs.h.  */
27001
27002/* Override any GCC internal prototype to avoid an error.
27003   Use char because int might match the return type of a GCC
27004   builtin and then its argument prototype would still apply.  */
27005char mallocx ();
27006int
27007main (void)
27008{
27009return mallocx ();
27010  ;
27011  return 0;
27012}
27013_ACEOF
27014for ac_lib in '' jemalloc
27015do
27016  if test -z "$ac_lib"; then
27017    ac_res="none required"
27018  else
27019    ac_res=-l$ac_lib
27020    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27021  fi
27022  if ac_fn_c_try_link "$LINENO"
27023then :
27024  ac_cv_search_mallocx=$ac_res
27025fi
27026rm -f core conftest.err conftest.$ac_objext conftest.beam \
27027    conftest$ac_exeext
27028  if test ${ac_cv_search_mallocx+y}
27029then :
27030  break
27031fi
27032done
27033if test ${ac_cv_search_mallocx+y}
27034then :
27035
27036else $as_nop
27037  ac_cv_search_mallocx=no
27038fi
27039rm conftest.$ac_ext
27040LIBS=$ac_func_search_save_LIBS
27041fi
27042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallocx" >&5
27043printf "%s\n" "$ac_cv_search_mallocx" >&6; }
27044ac_res=$ac_cv_search_mallocx
27045if test "$ac_res" != no
27046then :
27047  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27048
27049			    found=true
27050			    if test "$ac_cv_search_mallocx" != "none required"
27051then :
27052  JEMALLOC_LIBS="$ac_cv_search_mallocx"
27053fi
27054
27055fi
27056
27057		    CPPFLAGS="$save_CPPFLAGS"
27058		    LDFLAGS="$save_LDFLAGS"
27059		    LIBS="$save_LIBS"
27060
27061fi
27062
27063done
27064
27065else
27066        JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
27067        JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
27068        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27069printf "%s\n" "yes" >&6; }
27070
27071	    found=true
27072
27073fi
27074
27075    if $found
27076then :
27077
27078printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
27079
27080else $as_nop
27081  as_fn_error $? "jemalloc not found" "$LINENO" 5
27082fi
27083
27084
27085
27086 ;; #(
27087  *) :
27088
27089     found=false
27090
27091pkg_failed=no
27092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc" >&5
27093printf %s "checking for jemalloc... " >&6; }
27094
27095if test -n "$JEMALLOC_CFLAGS"; then
27096    pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS"
27097 elif test -n "$PKG_CONFIG"; then
27098    if test -n "$PKG_CONFIG" && \
27099    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27100  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27101  ac_status=$?
27102  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27103  test $ac_status = 0; }; then
27104  pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null`
27105		      test "x$?" != "x0" && pkg_failed=yes
27106else
27107  pkg_failed=yes
27108fi
27109 else
27110    pkg_failed=untried
27111fi
27112if test -n "$JEMALLOC_LIBS"; then
27113    pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS"
27114 elif test -n "$PKG_CONFIG"; then
27115    if test -n "$PKG_CONFIG" && \
27116    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
27117  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
27118  ac_status=$?
27119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120  test $ac_status = 0; }; then
27121  pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null`
27122		      test "x$?" != "x0" && pkg_failed=yes
27123else
27124  pkg_failed=yes
27125fi
27126 else
27127    pkg_failed=untried
27128fi
27129
27130
27131
27132if test $pkg_failed = yes; then
27133        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27134printf "%s\n" "no" >&6; }
27135
27136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27137        _pkg_short_errors_supported=yes
27138else
27139        _pkg_short_errors_supported=no
27140fi
27141        if test $_pkg_short_errors_supported = yes; then
27142                JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1`
27143        else
27144                JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1`
27145        fi
27146        # Put the nasty error message in config.log where it belongs
27147        echo "$JEMALLOC_PKG_ERRORS" >&5
27148
27149
27150	           for ac_header in malloc_np.h jemalloc/jemalloc.h
27151do :
27152  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27153ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27154if eval test \"x\$"$as_ac_Header"\" = x"yes"
27155then :
27156  cat >>confdefs.h <<_ACEOF
27157#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27158_ACEOF
27159
27160		    save_LIBS="$LIBS"
27161		    save_LDFLAGS="$LDFLAGS"
27162		    save_CPPFLAGS="$CPPFLAGS"
27163		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallocx" >&5
27164printf %s "checking for library containing mallocx... " >&6; }
27165if test ${ac_cv_search_mallocx+y}
27166then :
27167  printf %s "(cached) " >&6
27168else $as_nop
27169  ac_func_search_save_LIBS=$LIBS
27170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171/* end confdefs.h.  */
27172
27173/* Override any GCC internal prototype to avoid an error.
27174   Use char because int might match the return type of a GCC
27175   builtin and then its argument prototype would still apply.  */
27176char mallocx ();
27177int
27178main (void)
27179{
27180return mallocx ();
27181  ;
27182  return 0;
27183}
27184_ACEOF
27185for ac_lib in '' jemalloc
27186do
27187  if test -z "$ac_lib"; then
27188    ac_res="none required"
27189  else
27190    ac_res=-l$ac_lib
27191    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27192  fi
27193  if ac_fn_c_try_link "$LINENO"
27194then :
27195  ac_cv_search_mallocx=$ac_res
27196fi
27197rm -f core conftest.err conftest.$ac_objext conftest.beam \
27198    conftest$ac_exeext
27199  if test ${ac_cv_search_mallocx+y}
27200then :
27201  break
27202fi
27203done
27204if test ${ac_cv_search_mallocx+y}
27205then :
27206
27207else $as_nop
27208  ac_cv_search_mallocx=no
27209fi
27210rm conftest.$ac_ext
27211LIBS=$ac_func_search_save_LIBS
27212fi
27213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallocx" >&5
27214printf "%s\n" "$ac_cv_search_mallocx" >&6; }
27215ac_res=$ac_cv_search_mallocx
27216if test "$ac_res" != no
27217then :
27218  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27219
27220			    found=true
27221			    if test "$ac_cv_search_mallocx" != "none required"
27222then :
27223  JEMALLOC_LIBS="$ac_cv_search_mallocx"
27224fi
27225
27226fi
27227
27228		    CPPFLAGS="$save_CPPFLAGS"
27229		    LDFLAGS="$save_LDFLAGS"
27230		    LIBS="$save_LIBS"
27231
27232fi
27233
27234done
27235
27236elif test $pkg_failed = untried; then
27237        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27238printf "%s\n" "no" >&6; }
27239
27240	           for ac_header in malloc_np.h jemalloc/jemalloc.h
27241do :
27242  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27244if eval test \"x\$"$as_ac_Header"\" = x"yes"
27245then :
27246  cat >>confdefs.h <<_ACEOF
27247#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27248_ACEOF
27249
27250		    save_LIBS="$LIBS"
27251		    save_LDFLAGS="$LDFLAGS"
27252		    save_CPPFLAGS="$CPPFLAGS"
27253		    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallocx" >&5
27254printf %s "checking for library containing mallocx... " >&6; }
27255if test ${ac_cv_search_mallocx+y}
27256then :
27257  printf %s "(cached) " >&6
27258else $as_nop
27259  ac_func_search_save_LIBS=$LIBS
27260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261/* end confdefs.h.  */
27262
27263/* Override any GCC internal prototype to avoid an error.
27264   Use char because int might match the return type of a GCC
27265   builtin and then its argument prototype would still apply.  */
27266char mallocx ();
27267int
27268main (void)
27269{
27270return mallocx ();
27271  ;
27272  return 0;
27273}
27274_ACEOF
27275for ac_lib in '' jemalloc
27276do
27277  if test -z "$ac_lib"; then
27278    ac_res="none required"
27279  else
27280    ac_res=-l$ac_lib
27281    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27282  fi
27283  if ac_fn_c_try_link "$LINENO"
27284then :
27285  ac_cv_search_mallocx=$ac_res
27286fi
27287rm -f core conftest.err conftest.$ac_objext conftest.beam \
27288    conftest$ac_exeext
27289  if test ${ac_cv_search_mallocx+y}
27290then :
27291  break
27292fi
27293done
27294if test ${ac_cv_search_mallocx+y}
27295then :
27296
27297else $as_nop
27298  ac_cv_search_mallocx=no
27299fi
27300rm conftest.$ac_ext
27301LIBS=$ac_func_search_save_LIBS
27302fi
27303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallocx" >&5
27304printf "%s\n" "$ac_cv_search_mallocx" >&6; }
27305ac_res=$ac_cv_search_mallocx
27306if test "$ac_res" != no
27307then :
27308  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27309
27310			    found=true
27311			    if test "$ac_cv_search_mallocx" != "none required"
27312then :
27313  JEMALLOC_LIBS="$ac_cv_search_mallocx"
27314fi
27315
27316fi
27317
27318		    CPPFLAGS="$save_CPPFLAGS"
27319		    LDFLAGS="$save_LDFLAGS"
27320		    LIBS="$save_LIBS"
27321
27322fi
27323
27324done
27325
27326else
27327        JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
27328        JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
27329        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27330printf "%s\n" "yes" >&6; }
27331
27332	    found=true
27333
27334fi
27335
27336    if $found
27337then :
27338
27339printf "%s\n" "#define HAVE_JEMALLOC 1" >>confdefs.h
27340
27341	    with_jemalloc=yes
27342else $as_nop
27343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: jemalloc not found; performance will be reduced" >&5
27344printf "%s\n" "$as_me: WARNING: jemalloc not found; performance will be reduced" >&2;}
27345	    with_jemalloc=no
27346fi
27347
27348
27349
27350 ;;
27351esac
27352
27353if test "$with_jemalloc" = "no"
27354then :
27355  case $host in #(
27356  *-freebsd*) :
27357    as_fn_error $? "You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD" "$LINENO" 5 ;; #(
27358  *) :
27359     ;;
27360esac
27361fi
27362
27363 if test "$with_jemalloc" = "yes"; then
27364  HAVE_JEMALLOC_TRUE=
27365  HAVE_JEMALLOC_FALSE='#'
27366else
27367  HAVE_JEMALLOC_TRUE='#'
27368  HAVE_JEMALLOC_FALSE=
27369fi
27370
27371
27372#
27373# was --with-tuning specified?
27374#
27375# [pairwise: --with-tuning=small, --without-tuning]
27376
27377# Check whether --with-tuning was given.
27378if test ${with_tuning+y}
27379then :
27380  withval=$with_tuning;
27381else $as_nop
27382  with_tuning=no
27383fi
27384
27385
27386case $with_tuning in #(
27387  small) :
27388    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
27389printf "%s\n" "$as_me: using small system tuning" >&6;} ;; #(
27390  *) :
27391
27392printf "%s\n" "#define TUNE_LARGE 1" >>confdefs.h
27393
27394	 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
27395printf "%s\n" "$as_me: using default system tuning" >&6;} ;;
27396esac
27397
27398#
27399# was --enable-querytrace or --enable-singletrace specified?
27400#
27401# [pairwise: --enable-singletrace --enable-querytrace, --disable-singletrace --enable-querytrace, --disable-singletrace --disable-querytrace]
27402# Check whether --enable-singletrace was given.
27403if test ${enable_singletrace+y}
27404then :
27405  enableval=$enable_singletrace; enable_singletrace="$enableval"
27406else $as_nop
27407  enable_singletrace="no"
27408fi
27409
27410
27411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable single-query trace logging" >&5
27412printf %s "checking whether to enable single-query trace logging... " >&6; }
27413case "$enable_singletrace" in
27414yes)
27415	enable_querytrace=yes
27416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27417printf "%s\n" "yes" >&6; }
27418
27419printf "%s\n" "#define WANT_SINGLETRACE 1" >>confdefs.h
27420
27421	;;
27422no)
27423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27424printf "%s\n" "no" >&6; }
27425	;;
27426*)
27427	as_fn_error $? "\"--enable-singletrace requires yes or no\"" "$LINENO" 5
27428	;;
27429esac
27430
27431# [pairwise: skip]
27432# Check whether --enable-querytrace was given.
27433if test ${enable_querytrace+y}
27434then :
27435  enableval=$enable_querytrace; enable_querytrace="$enableval"
27436else $as_nop
27437  enable_querytrace="$enable_singletrace"
27438fi
27439
27440
27441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
27442printf %s "checking whether to enable query trace logging... " >&6; }
27443case "$enable_querytrace" in
27444yes)
27445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27446printf "%s\n" "yes" >&6; }
27447
27448printf "%s\n" "#define WANT_QUERYTRACE 1" >>confdefs.h
27449
27450	;;
27451no)
27452       if test "$enable_singletrace" = "yes"
27453then :
27454  as_fn_error $? "--enable-singletrace requires --enable-querytrace" "$LINENO" 5
27455fi
27456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27457printf "%s\n" "no" >&6; }
27458	;;
27459*)
27460	as_fn_error $? "\"--enable-querytrace requires yes or no (not $enable_querytrace)\"" "$LINENO" 5
27461	;;
27462esac
27463
27464#
27465# Was --disable-auto-validation specified?
27466#
27467
27468validation_default=auto
27469
27470# [pairwise: --enable-auto-validation, --disable-auto-validation]
27471# Check whether --enable-auto-validation was given.
27472if test ${enable_auto_validation+y}
27473then :
27474  enableval=$enable_auto_validation; :
27475else $as_nop
27476  enable_auto_validation=yes
27477fi
27478
27479if test "$enable_auto_validation" = "no"
27480then :
27481  validation_default=yes
27482fi
27483
27484printf "%s\n" "#define VALIDATION_DEFAULT \"$validation_default\"" >>confdefs.h
27485
27486
27487#
27488#
27489# Response policy rewriting using DNS Response Policy Service (DNSRPS)
27490# interface.
27491#
27492# DNSRPS can be compiled into BIND everywhere with a reasonably
27493# modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
27494#
27495dnsrps_avail=yes
27496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
27497printf %s "checking for librpz __attribute__s... " >&6; }
27498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27499/* end confdefs.h.  */
27500
27501int
27502main (void)
27503{
27504
27505       extern void f(char *p __attribute__((unused)), ...)
27506       __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
27507
27508  ;
27509  return 0;
27510}
27511_ACEOF
27512if ac_fn_c_try_compile "$LINENO"
27513then :
27514
27515    librpz_have_attr=yes
27516
27517printf "%s\n" "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
27518
27519    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27520printf "%s\n" "yes" >&6; }
27521
27522else $as_nop
27523
27524    librpz_have_attr=no
27525    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27526printf "%s\n" "no" >&6; }
27527
27528fi
27529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27530
27531# [pairwise: --enable-dnsrps --enable-dnsrps-dl, --disable-dnsrps]
27532# Check whether --enable-dnsrps-dl was given.
27533if test ${enable_dnsrps_dl+y}
27534then :
27535  enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
27536else $as_nop
27537  enable_librpz_dl="$with_dlopen"
27538fi
27539
27540
27541if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"
27542then :
27543  as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
27544fi
27545
27546# [pairwise: skip]
27547
27548# Check whether --with-dnsrps-libname was given.
27549if test ${with_dnsrps_libname+y}
27550then :
27551  withval=$with_dnsrps_libname; librpz_name="$withval"
27552else $as_nop
27553  librpz_name="librpz.so"
27554fi
27555
27556
27557# [pairwise: skip]
27558
27559# Check whether --with-dnsrps-dir was given.
27560if test ${with_dnsrps_dir+y}
27561then :
27562  withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
27563else $as_nop
27564  librpz_path="$librpz_name"
27565fi
27566
27567
27568printf "%s\n" "#define DNSRPS_LIBRPZ_PATH \"$librpz_path\"" >>confdefs.h
27569
27570if test "$enable_librpz_dl" = "yes"
27571then :
27572
27573	dnsrps_lib_open=2
27574
27575else $as_nop
27576
27577	dnsrps_lib_open=1
27578	# Add librpz.so to linked libraries if we are not using dlopen()
27579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
27580printf %s "checking for library containing librpz_client_create... " >&6; }
27581if test ${ac_cv_search_librpz_client_create+y}
27582then :
27583  printf %s "(cached) " >&6
27584else $as_nop
27585  ac_func_search_save_LIBS=$LIBS
27586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27587/* end confdefs.h.  */
27588
27589/* Override any GCC internal prototype to avoid an error.
27590   Use char because int might match the return type of a GCC
27591   builtin and then its argument prototype would still apply.  */
27592char librpz_client_create ();
27593int
27594main (void)
27595{
27596return librpz_client_create ();
27597  ;
27598  return 0;
27599}
27600_ACEOF
27601for ac_lib in '' rpz
27602do
27603  if test -z "$ac_lib"; then
27604    ac_res="none required"
27605  else
27606    ac_res=-l$ac_lib
27607    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27608  fi
27609  if ac_fn_c_try_link "$LINENO"
27610then :
27611  ac_cv_search_librpz_client_create=$ac_res
27612fi
27613rm -f core conftest.err conftest.$ac_objext conftest.beam \
27614    conftest$ac_exeext
27615  if test ${ac_cv_search_librpz_client_create+y}
27616then :
27617  break
27618fi
27619done
27620if test ${ac_cv_search_librpz_client_create+y}
27621then :
27622
27623else $as_nop
27624  ac_cv_search_librpz_client_create=no
27625fi
27626rm conftest.$ac_ext
27627LIBS=$ac_func_search_save_LIBS
27628fi
27629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
27630printf "%s\n" "$ac_cv_search_librpz_client_create" >&6; }
27631ac_res=$ac_cv_search_librpz_client_create
27632if test "$ac_res" != no
27633then :
27634  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27635
27636else $as_nop
27637  dnsrps_lib_open=0
27638		 dnsrps_avail=no
27639fi
27640
27641
27642fi
27643
27644printf "%s\n" "#define DNSRPS_LIB_OPEN $dnsrps_lib_open" >>confdefs.h
27645
27646
27647# [pairwise: skip]
27648# Check whether --enable-dnsrps was given.
27649if test ${enable_dnsrps+y}
27650then :
27651  enableval=$enable_dnsrps; enable_dnsrps=$enableval
27652else $as_nop
27653  enable_dnsrps=no
27654fi
27655
27656
27657if test "$enable_dnsrps" != "no"
27658then :
27659
27660	if test "$dnsrps_avail" != "yes"
27661then :
27662  as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
27663fi
27664	if test "$dnsrps_lib_open" = "0"
27665then :
27666  as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
27667fi
27668
27669printf "%s\n" "#define USE_DNSRPS 1" >>confdefs.h
27670
27671
27672fi
27673
27674ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
27675if test "x$ac_cv_header_glob_h" = xyes
27676then :
27677  printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h
27678
27679fi
27680
27681
27682#
27683# Support for constructor and destructor attributes
27684#
27685
27686
27687
27688    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
27689printf %s "checking for __attribute__((constructor))... " >&6; }
27690if test ${ax_cv_have_func_attribute_constructor+y}
27691then :
27692  printf %s "(cached) " >&6
27693else $as_nop
27694
27695        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27696/* end confdefs.h.  */
27697
27698
27699                    int foo( void ) __attribute__((constructor));
27700
27701int
27702main (void)
27703{
27704
27705  ;
27706  return 0;
27707}
27708
27709_ACEOF
27710if ac_fn_c_try_link "$LINENO"
27711then :
27712                                      if grep -- -Wattributes conftest.err
27713then :
27714  ax_cv_have_func_attribute_constructor=no
27715else $as_nop
27716  ax_cv_have_func_attribute_constructor=yes
27717fi
27718else $as_nop
27719  ax_cv_have_func_attribute_constructor=no
27720fi
27721rm -f core conftest.err conftest.$ac_objext conftest.beam \
27722    conftest$ac_exeext conftest.$ac_ext
27723
27724fi
27725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
27726printf "%s\n" "$ax_cv_have_func_attribute_constructor" >&6; }
27727
27728    if test yes = $ax_cv_have_func_attribute_constructor
27729then :
27730
27731printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1" >>confdefs.h
27732
27733fi
27734
27735
27736
27737
27738
27739
27740    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
27741printf %s "checking for __attribute__((destructor))... " >&6; }
27742if test ${ax_cv_have_func_attribute_destructor+y}
27743then :
27744  printf %s "(cached) " >&6
27745else $as_nop
27746
27747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748/* end confdefs.h.  */
27749
27750
27751                    int foo( void ) __attribute__((destructor));
27752
27753int
27754main (void)
27755{
27756
27757  ;
27758  return 0;
27759}
27760
27761_ACEOF
27762if ac_fn_c_try_link "$LINENO"
27763then :
27764                                      if grep -- -Wattributes conftest.err
27765then :
27766  ax_cv_have_func_attribute_destructor=no
27767else $as_nop
27768  ax_cv_have_func_attribute_destructor=yes
27769fi
27770else $as_nop
27771  ax_cv_have_func_attribute_destructor=no
27772fi
27773rm -f core conftest.err conftest.$ac_objext conftest.beam \
27774    conftest$ac_exeext conftest.$ac_ext
27775
27776fi
27777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
27778printf "%s\n" "$ax_cv_have_func_attribute_destructor" >&6; }
27779
27780    if test yes = $ax_cv_have_func_attribute_destructor
27781then :
27782
27783printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h
27784
27785fi
27786
27787
27788
27789
27790#
27791# Files to configure.  These are listed here because we used to
27792# specify them as arguments to AC_OUTPUT.
27793#
27794
27795# Top
27796
27797ac_config_files="$ac_config_files Makefile"
27798
27799
27800# Binaries
27801
27802ac_config_files="$ac_config_files bin/Makefile bin/named/Makefile bin/rndc/Makefile bin/dig/Makefile bin/delv/Makefile bin/dnssec/Makefile bin/tools/Makefile bin/nsupdate/Makefile bin/check/Makefile bin/confgen/Makefile bin/plugins/Makefile"
27803
27804
27805# Libraries
27806
27807ac_config_files="$ac_config_files lib/Makefile lib/isc/Makefile lib/dns/Makefile lib/ns/Makefile lib/irs/Makefile lib/isccfg/Makefile lib/isccc/Makefile lib/bind9/Makefile"
27808
27809
27810# Documentation
27811
27812ac_config_files="$ac_config_files doc/Makefile doc/arm/Makefile doc/man/Makefile doc/misc/Makefile"
27813
27814
27815# Unit Tests
27816
27817ac_config_files="$ac_config_files tests/Makefile tests/isc/Makefile tests/dns/Makefile tests/ns/Makefile tests/irs/Makefile tests/isccfg/Makefile tests/libtest/Makefile"
27818
27819
27820ac_config_files="$ac_config_files tests/unit-test-driver.sh"
27821
27822
27823# System Tests
27824
27825ac_config_files="$ac_config_files bin/tests/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dyndb/driver/Makefile bin/tests/system/dlzexternal/driver/Makefile bin/tests/system/hooks/driver/Makefile"
27826
27827
27828ac_config_files="$ac_config_files bin/tests/system/ifconfig.sh"
27829
27830ac_config_files="$ac_config_files bin/tests/system/legacy.run.sh"
27831
27832ac_config_files="$ac_config_files bin/tests/system/start.sh"
27833
27834ac_config_files="$ac_config_files bin/tests/system/stop.sh"
27835
27836
27837# Fuzz Tests
27838
27839ac_config_files="$ac_config_files fuzz/Makefile"
27840
27841
27842# Misc
27843
27844ac_config_files="$ac_config_files util/check-make-install"
27845
27846
27847#
27848# Do it
27849#
27850
27851cat >confcache <<\_ACEOF
27852# This file is a shell script that caches the results of configure
27853# tests run on this system so they can be shared between configure
27854# scripts and configure runs, see configure's option --config-cache.
27855# It is not useful on other systems.  If it contains results you don't
27856# want to keep, you may remove or edit it.
27857#
27858# config.status only pays attention to the cache file if you give it
27859# the --recheck option to rerun configure.
27860#
27861# `ac_cv_env_foo' variables (set or unset) will be overridden when
27862# loading this file, other *unset* `ac_cv_foo' will be assigned the
27863# following values.
27864
27865_ACEOF
27866
27867# The following way of writing the cache mishandles newlines in values,
27868# but we know of no workaround that is simple, portable, and efficient.
27869# So, we kill variables containing newlines.
27870# Ultrix sh set writes to stderr and can't be redirected directly,
27871# and sets the high bit in the cache file unless we assign to the vars.
27872(
27873  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27874    eval ac_val=\$$ac_var
27875    case $ac_val in #(
27876    *${as_nl}*)
27877      case $ac_var in #(
27878      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27879printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27880      esac
27881      case $ac_var in #(
27882      _ | IFS | as_nl) ;; #(
27883      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27884      *) { eval $ac_var=; unset $ac_var;} ;;
27885      esac ;;
27886    esac
27887  done
27888
27889  (set) 2>&1 |
27890    case $as_nl`(ac_space=' '; set) 2>&1` in #(
27891    *${as_nl}ac_space=\ *)
27892      # `set' does not quote correctly, so add quotes: double-quote
27893      # substitution turns \\\\ into \\, and sed turns \\ into \.
27894      sed -n \
27895	"s/'/'\\\\''/g;
27896	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27897      ;; #(
27898    *)
27899      # `set' quotes correctly as required by POSIX, so do not add quotes.
27900      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27901      ;;
27902    esac |
27903    sort
27904) |
27905  sed '
27906     /^ac_cv_env_/b end
27907     t clear
27908     :clear
27909     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
27910     t end
27911     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27912     :end' >>confcache
27913if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27914  if test -w "$cache_file"; then
27915    if test "x$cache_file" != "x/dev/null"; then
27916      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27917printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
27918      if test ! -f "$cache_file" || test -h "$cache_file"; then
27919	cat confcache >"$cache_file"
27920      else
27921        case $cache_file in #(
27922        */* | ?:*)
27923	  mv -f confcache "$cache_file"$$ &&
27924	  mv -f "$cache_file"$$ "$cache_file" ;; #(
27925        *)
27926	  mv -f confcache "$cache_file" ;;
27927	esac
27928      fi
27929    fi
27930  else
27931    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27932printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
27933  fi
27934fi
27935rm -f confcache
27936
27937test "x$prefix" = xNONE && prefix=$ac_default_prefix
27938# Let make expand exec_prefix.
27939test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27940
27941DEFS=-DHAVE_CONFIG_H
27942
27943ac_libobjs=
27944ac_ltlibobjs=
27945U=
27946for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27947  # 1. Remove the extension, and $U if already installed.
27948  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27949  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
27950  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27951  #    will be set to the directory where LIBOBJS objects are built.
27952  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27953  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27954done
27955LIBOBJS=$ac_libobjs
27956
27957LTLIBOBJS=$ac_ltlibobjs
27958
27959
27960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27961printf %s "checking that generated files are newer than configure... " >&6; }
27962   if test -n "$am_sleep_pid"; then
27963     # Hide warnings about reused PIDs.
27964     wait $am_sleep_pid 2>/dev/null
27965   fi
27966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27967printf "%s\n" "done" >&6; }
27968 if test -n "$EXEEXT"; then
27969  am__EXEEXT_TRUE=
27970  am__EXEEXT_FALSE='#'
27971else
27972  am__EXEEXT_TRUE='#'
27973  am__EXEEXT_FALSE=
27974fi
27975
27976if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27977  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27978Usually this means the macro was only invoked conditionally." "$LINENO" 5
27979fi
27980if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27981  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
27982Usually this means the macro was only invoked conditionally." "$LINENO" 5
27983fi
27984if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27985  as_fn_error $? "conditional \"AMDEP\" was never defined.
27986Usually this means the macro was only invoked conditionally." "$LINENO" 5
27987fi
27988if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27989  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27990Usually this means the macro was only invoked conditionally." "$LINENO" 5
27991fi
27992if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27993  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27994Usually this means the macro was only invoked conditionally." "$LINENO" 5
27995fi
27996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27997  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27998Usually this means the macro was only invoked conditionally." "$LINENO" 5
27999fi
28000
28001if test -z "${HOST_MACOS_TRUE}" && test -z "${HOST_MACOS_FALSE}"; then
28002  as_fn_error $? "conditional \"HOST_MACOS\" was never defined.
28003Usually this means the macro was only invoked conditionally." "$LINENO" 5
28004fi
28005if test -z "${HAVE_FUZZ_LOG_COMPILER_TRUE}" && test -z "${HAVE_FUZZ_LOG_COMPILER_FALSE}"; then
28006  as_fn_error $? "conditional \"HAVE_FUZZ_LOG_COMPILER\" was never defined.
28007Usually this means the macro was only invoked conditionally." "$LINENO" 5
28008fi
28009if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
28010  as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
28011Usually this means the macro was only invoked conditionally." "$LINENO" 5
28012fi
28013if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
28014  as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
28015Usually this means the macro was only invoked conditionally." "$LINENO" 5
28016fi
28017if test -z "${HAVE_PYTEST_TRUE}" && test -z "${HAVE_PYTEST_FALSE}"; then
28018  as_fn_error $? "conditional \"HAVE_PYTEST\" was never defined.
28019Usually this means the macro was only invoked conditionally." "$LINENO" 5
28020fi
28021if test -z "${HAVE_GEOIP2_TRUE}" && test -z "${HAVE_GEOIP2_FALSE}"; then
28022  as_fn_error $? "conditional \"HAVE_GEOIP2\" was never defined.
28023Usually this means the macro was only invoked conditionally." "$LINENO" 5
28024fi
28025if test -z "${HAVE_LIBNGHTTP2_TRUE}" && test -z "${HAVE_LIBNGHTTP2_FALSE}"; then
28026  as_fn_error $? "conditional \"HAVE_LIBNGHTTP2\" was never defined.
28027Usually this means the macro was only invoked conditionally." "$LINENO" 5
28028fi
28029if test -z "${HAVE_GSSAPI_TRUE}" && test -z "${HAVE_GSSAPI_FALSE}"; then
28030  as_fn_error $? "conditional \"HAVE_GSSAPI\" was never defined.
28031Usually this means the macro was only invoked conditionally." "$LINENO" 5
28032fi
28033if test -z "${HAVE_LMDB_TRUE}" && test -z "${HAVE_LMDB_FALSE}"; then
28034  as_fn_error $? "conditional \"HAVE_LMDB\" was never defined.
28035Usually this means the macro was only invoked conditionally." "$LINENO" 5
28036fi
28037if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
28038  as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined.
28039Usually this means the macro was only invoked conditionally." "$LINENO" 5
28040fi
28041if test -z "${HAVE_JSON_C_TRUE}" && test -z "${HAVE_JSON_C_FALSE}"; then
28042  as_fn_error $? "conditional \"HAVE_JSON_C\" was never defined.
28043Usually this means the macro was only invoked conditionally." "$LINENO" 5
28044fi
28045if test -z "${HAVE_READLINE_TRUE}" && test -z "${HAVE_READLINE_FALSE}"; then
28046  as_fn_error $? "conditional \"HAVE_READLINE\" was never defined.
28047Usually this means the macro was only invoked conditionally." "$LINENO" 5
28048fi
28049if test -z "${HAVE_DNSTAP_TRUE}" && test -z "${HAVE_DNSTAP_FALSE}"; then
28050  as_fn_error $? "conditional \"HAVE_DNSTAP\" was never defined.
28051Usually this means the macro was only invoked conditionally." "$LINENO" 5
28052fi
28053if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
28054  as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
28055Usually this means the macro was only invoked conditionally." "$LINENO" 5
28056fi
28057if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
28058  as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
28059Usually this means the macro was only invoked conditionally." "$LINENO" 5
28060fi
28061if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then
28062  as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined.
28063Usually this means the macro was only invoked conditionally." "$LINENO" 5
28064fi
28065if test -z "${HAVE_CMOCKA_TRUE}" && test -z "${HAVE_CMOCKA_FALSE}"; then
28066  as_fn_error $? "conditional \"HAVE_CMOCKA\" was never defined.
28067Usually this means the macro was only invoked conditionally." "$LINENO" 5
28068fi
28069if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then
28070  as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined.
28071Usually this means the macro was only invoked conditionally." "$LINENO" 5
28072fi
28073
28074: "${CONFIG_STATUS=./config.status}"
28075ac_write_fail=0
28076ac_clean_files_save=$ac_clean_files
28077ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28079printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
28080as_write_fail=0
28081cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28082#! $SHELL
28083# Generated by $as_me.
28084# Run this file to recreate the current configuration.
28085# Compiler output produced by configure, useful for debugging
28086# configure, is in config.log if it exists.
28087
28088debug=false
28089ac_cs_recheck=false
28090ac_cs_silent=false
28091
28092SHELL=\${CONFIG_SHELL-$SHELL}
28093export SHELL
28094_ASEOF
28095cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28096## -------------------- ##
28097## M4sh Initialization. ##
28098## -------------------- ##
28099
28100# Be more Bourne compatible
28101DUALCASE=1; export DUALCASE # for MKS sh
28102as_nop=:
28103if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
28104then :
28105  emulate sh
28106  NULLCMD=:
28107  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28108  # is contrary to our usage.  Disable this feature.
28109  alias -g '${1+"$@"}'='"$@"'
28110  setopt NO_GLOB_SUBST
28111else $as_nop
28112  case `(set -o) 2>/dev/null` in #(
28113  *posix*) :
28114    set -o posix ;; #(
28115  *) :
28116     ;;
28117esac
28118fi
28119
28120
28121
28122# Reset variables that may have inherited troublesome values from
28123# the environment.
28124
28125# IFS needs to be set, to space, tab, and newline, in precisely that order.
28126# (If _AS_PATH_WALK were called with IFS unset, it would have the
28127# side effect of setting IFS to empty, thus disabling word splitting.)
28128# Quoting is to prevent editors from complaining about space-tab.
28129as_nl='
28130'
28131export as_nl
28132IFS=" ""	$as_nl"
28133
28134PS1='$ '
28135PS2='> '
28136PS4='+ '
28137
28138# Ensure predictable behavior from utilities with locale-dependent output.
28139LC_ALL=C
28140export LC_ALL
28141LANGUAGE=C
28142export LANGUAGE
28143
28144# We cannot yet rely on "unset" to work, but we need these variables
28145# to be unset--not just set to an empty or harmless value--now, to
28146# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
28147# also avoids known problems related to "unset" and subshell syntax
28148# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
28149for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
28150do eval test \${$as_var+y} \
28151  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28152done
28153
28154# Ensure that fds 0, 1, and 2 are open.
28155if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
28156if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
28157if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
28158
28159# The user is always right.
28160if ${PATH_SEPARATOR+false} :; then
28161  PATH_SEPARATOR=:
28162  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28163    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28164      PATH_SEPARATOR=';'
28165  }
28166fi
28167
28168
28169# Find who we are.  Look in the path if we contain no directory separator.
28170as_myself=
28171case $0 in #((
28172  *[\\/]* ) as_myself=$0 ;;
28173  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28174for as_dir in $PATH
28175do
28176  IFS=$as_save_IFS
28177  case $as_dir in #(((
28178    '') as_dir=./ ;;
28179    */) ;;
28180    *) as_dir=$as_dir/ ;;
28181  esac
28182    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
28183  done
28184IFS=$as_save_IFS
28185
28186     ;;
28187esac
28188# We did not find ourselves, most probably we were run as `sh COMMAND'
28189# in which case we are not to be found in the path.
28190if test "x$as_myself" = x; then
28191  as_myself=$0
28192fi
28193if test ! -f "$as_myself"; then
28194  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28195  exit 1
28196fi
28197
28198
28199
28200# as_fn_error STATUS ERROR [LINENO LOG_FD]
28201# ----------------------------------------
28202# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28203# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28204# script with STATUS, using 1 if that was 0.
28205as_fn_error ()
28206{
28207  as_status=$1; test $as_status -eq 0 && as_status=1
28208  if test "$4"; then
28209    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28210    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28211  fi
28212  printf "%s\n" "$as_me: error: $2" >&2
28213  as_fn_exit $as_status
28214} # as_fn_error
28215
28216
28217
28218# as_fn_set_status STATUS
28219# -----------------------
28220# Set $? to STATUS, without forking.
28221as_fn_set_status ()
28222{
28223  return $1
28224} # as_fn_set_status
28225
28226# as_fn_exit STATUS
28227# -----------------
28228# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28229as_fn_exit ()
28230{
28231  set +e
28232  as_fn_set_status $1
28233  exit $1
28234} # as_fn_exit
28235
28236# as_fn_unset VAR
28237# ---------------
28238# Portably unset VAR.
28239as_fn_unset ()
28240{
28241  { eval $1=; unset $1;}
28242}
28243as_unset=as_fn_unset
28244
28245# as_fn_append VAR VALUE
28246# ----------------------
28247# Append the text in VALUE to the end of the definition contained in VAR. Take
28248# advantage of any shell optimizations that allow amortized linear growth over
28249# repeated appends, instead of the typical quadratic growth present in naive
28250# implementations.
28251if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
28252then :
28253  eval 'as_fn_append ()
28254  {
28255    eval $1+=\$2
28256  }'
28257else $as_nop
28258  as_fn_append ()
28259  {
28260    eval $1=\$$1\$2
28261  }
28262fi # as_fn_append
28263
28264# as_fn_arith ARG...
28265# ------------------
28266# Perform arithmetic evaluation on the ARGs, and store the result in the
28267# global $as_val. Take advantage of shells that can avoid forks. The arguments
28268# must be portable across $(()) and expr.
28269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
28270then :
28271  eval 'as_fn_arith ()
28272  {
28273    as_val=$(( $* ))
28274  }'
28275else $as_nop
28276  as_fn_arith ()
28277  {
28278    as_val=`expr "$@" || test $? -eq 1`
28279  }
28280fi # as_fn_arith
28281
28282
28283if expr a : '\(a\)' >/dev/null 2>&1 &&
28284   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28285  as_expr=expr
28286else
28287  as_expr=false
28288fi
28289
28290if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28291  as_basename=basename
28292else
28293  as_basename=false
28294fi
28295
28296if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28297  as_dirname=dirname
28298else
28299  as_dirname=false
28300fi
28301
28302as_me=`$as_basename -- "$0" ||
28303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28304	 X"$0" : 'X\(//\)$' \| \
28305	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28306printf "%s\n" X/"$0" |
28307    sed '/^.*\/\([^/][^/]*\)\/*$/{
28308	    s//\1/
28309	    q
28310	  }
28311	  /^X\/\(\/\/\)$/{
28312	    s//\1/
28313	    q
28314	  }
28315	  /^X\/\(\/\).*/{
28316	    s//\1/
28317	    q
28318	  }
28319	  s/.*/./; q'`
28320
28321# Avoid depending upon Character Ranges.
28322as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28323as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28324as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28325as_cr_digits='0123456789'
28326as_cr_alnum=$as_cr_Letters$as_cr_digits
28327
28328
28329# Determine whether it's possible to make 'echo' print without a newline.
28330# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
28331# for compatibility with existing Makefiles.
28332ECHO_C= ECHO_N= ECHO_T=
28333case `echo -n x` in #(((((
28334-n*)
28335  case `echo 'xy\c'` in
28336  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28337  xy)  ECHO_C='\c';;
28338  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
28339       ECHO_T='	';;
28340  esac;;
28341*)
28342  ECHO_N='-n';;
28343esac
28344
28345# For backward compatibility with old third-party macros, we provide
28346# the shell variables $as_echo and $as_echo_n.  New code should use
28347# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
28348as_echo='printf %s\n'
28349as_echo_n='printf %s'
28350
28351rm -f conf$$ conf$$.exe conf$$.file
28352if test -d conf$$.dir; then
28353  rm -f conf$$.dir/conf$$.file
28354else
28355  rm -f conf$$.dir
28356  mkdir conf$$.dir 2>/dev/null
28357fi
28358if (echo >conf$$.file) 2>/dev/null; then
28359  if ln -s conf$$.file conf$$ 2>/dev/null; then
28360    as_ln_s='ln -s'
28361    # ... but there are two gotchas:
28362    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28363    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28364    # In both cases, we have to default to `cp -pR'.
28365    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28366      as_ln_s='cp -pR'
28367  elif ln conf$$.file conf$$ 2>/dev/null; then
28368    as_ln_s=ln
28369  else
28370    as_ln_s='cp -pR'
28371  fi
28372else
28373  as_ln_s='cp -pR'
28374fi
28375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28376rmdir conf$$.dir 2>/dev/null
28377
28378
28379# as_fn_mkdir_p
28380# -------------
28381# Create "$as_dir" as a directory, including parents if necessary.
28382as_fn_mkdir_p ()
28383{
28384
28385  case $as_dir in #(
28386  -*) as_dir=./$as_dir;;
28387  esac
28388  test -d "$as_dir" || eval $as_mkdir_p || {
28389    as_dirs=
28390    while :; do
28391      case $as_dir in #(
28392      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28393      *) as_qdir=$as_dir;;
28394      esac
28395      as_dirs="'$as_qdir' $as_dirs"
28396      as_dir=`$as_dirname -- "$as_dir" ||
28397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28398	 X"$as_dir" : 'X\(//\)[^/]' \| \
28399	 X"$as_dir" : 'X\(//\)$' \| \
28400	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28401printf "%s\n" X"$as_dir" |
28402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28403	    s//\1/
28404	    q
28405	  }
28406	  /^X\(\/\/\)[^/].*/{
28407	    s//\1/
28408	    q
28409	  }
28410	  /^X\(\/\/\)$/{
28411	    s//\1/
28412	    q
28413	  }
28414	  /^X\(\/\).*/{
28415	    s//\1/
28416	    q
28417	  }
28418	  s/.*/./; q'`
28419      test -d "$as_dir" && break
28420    done
28421    test -z "$as_dirs" || eval "mkdir $as_dirs"
28422  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28423
28424
28425} # as_fn_mkdir_p
28426if mkdir -p . 2>/dev/null; then
28427  as_mkdir_p='mkdir -p "$as_dir"'
28428else
28429  test -d ./-p && rmdir ./-p
28430  as_mkdir_p=false
28431fi
28432
28433
28434# as_fn_executable_p FILE
28435# -----------------------
28436# Test if FILE is an executable regular file.
28437as_fn_executable_p ()
28438{
28439  test -f "$1" && test -x "$1"
28440} # as_fn_executable_p
28441as_test_x='test -x'
28442as_executable_p=as_fn_executable_p
28443
28444# Sed expression to map a string onto a valid CPP name.
28445as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28446
28447# Sed expression to map a string onto a valid variable name.
28448as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28449
28450
28451exec 6>&1
28452## ----------------------------------- ##
28453## Main body of $CONFIG_STATUS script. ##
28454## ----------------------------------- ##
28455_ASEOF
28456test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28457
28458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28459# Save the log message, to keep $0 and so on meaningful, and to
28460# report actual input values of CONFIG_FILES etc. instead of their
28461# values after options handling.
28462ac_log="
28463This file was extended by BIND $as_me 9.18.30, which was
28464generated by GNU Autoconf 2.71.  Invocation command line was
28465
28466  CONFIG_FILES    = $CONFIG_FILES
28467  CONFIG_HEADERS  = $CONFIG_HEADERS
28468  CONFIG_LINKS    = $CONFIG_LINKS
28469  CONFIG_COMMANDS = $CONFIG_COMMANDS
28470  $ $0 $@
28471
28472on `(hostname || uname -n) 2>/dev/null | sed 1q`
28473"
28474
28475_ACEOF
28476
28477case $ac_config_files in *"
28478"*) set x $ac_config_files; shift; ac_config_files=$*;;
28479esac
28480
28481case $ac_config_headers in *"
28482"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28483esac
28484
28485
28486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28487# Files that config.status was made for.
28488config_files="$ac_config_files"
28489config_headers="$ac_config_headers"
28490config_commands="$ac_config_commands"
28491
28492_ACEOF
28493
28494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28495ac_cs_usage="\
28496\`$as_me' instantiates files and other configuration actions
28497from templates according to the current configuration.  Unless the files
28498and actions are specified as TAGs, all are instantiated by default.
28499
28500Usage: $0 [OPTION]... [TAG]...
28501
28502  -h, --help       print this help, then exit
28503  -V, --version    print version number and configuration settings, then exit
28504      --config     print configuration, then exit
28505  -q, --quiet, --silent
28506                   do not print progress messages
28507  -d, --debug      don't remove temporary files
28508      --recheck    update $as_me by reconfiguring in the same conditions
28509      --file=FILE[:TEMPLATE]
28510                   instantiate the configuration file FILE
28511      --header=FILE[:TEMPLATE]
28512                   instantiate the configuration header FILE
28513
28514Configuration files:
28515$config_files
28516
28517Configuration headers:
28518$config_headers
28519
28520Configuration commands:
28521$config_commands
28522
28523Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
28524BIND home page: <https://www.isc.org/downloads/>."
28525
28526_ACEOF
28527ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
28528ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
28529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28530ac_cs_config='$ac_cs_config_escaped'
28531ac_cs_version="\\
28532BIND config.status 9.18.30
28533configured by $0, generated by GNU Autoconf 2.71,
28534  with options \\"\$ac_cs_config\\"
28535
28536Copyright (C) 2021 Free Software Foundation, Inc.
28537This config.status script is free software; the Free Software Foundation
28538gives unlimited permission to copy, distribute and modify it."
28539
28540ac_pwd='$ac_pwd'
28541srcdir='$srcdir'
28542INSTALL='$INSTALL'
28543MKDIR_P='$MKDIR_P'
28544AWK='$AWK'
28545test -n "\$AWK" || AWK=awk
28546_ACEOF
28547
28548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28549# The default lists apply if the user does not specify any file.
28550ac_need_defaults=:
28551while test $# != 0
28552do
28553  case $1 in
28554  --*=?*)
28555    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28556    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28557    ac_shift=:
28558    ;;
28559  --*=)
28560    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28561    ac_optarg=
28562    ac_shift=:
28563    ;;
28564  *)
28565    ac_option=$1
28566    ac_optarg=$2
28567    ac_shift=shift
28568    ;;
28569  esac
28570
28571  case $ac_option in
28572  # Handling of the options.
28573  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28574    ac_cs_recheck=: ;;
28575  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28576    printf "%s\n" "$ac_cs_version"; exit ;;
28577  --config | --confi | --conf | --con | --co | --c )
28578    printf "%s\n" "$ac_cs_config"; exit ;;
28579  --debug | --debu | --deb | --de | --d | -d )
28580    debug=: ;;
28581  --file | --fil | --fi | --f )
28582    $ac_shift
28583    case $ac_optarg in
28584    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28585    '') as_fn_error $? "missing file argument" ;;
28586    esac
28587    as_fn_append CONFIG_FILES " '$ac_optarg'"
28588    ac_need_defaults=false;;
28589  --header | --heade | --head | --hea )
28590    $ac_shift
28591    case $ac_optarg in
28592    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28593    esac
28594    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28595    ac_need_defaults=false;;
28596  --he | --h)
28597    # Conflict between --help and --header
28598    as_fn_error $? "ambiguous option: \`$1'
28599Try \`$0 --help' for more information.";;
28600  --help | --hel | -h )
28601    printf "%s\n" "$ac_cs_usage"; exit ;;
28602  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28603  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28604    ac_cs_silent=: ;;
28605
28606  # This is an error.
28607  -*) as_fn_error $? "unrecognized option: \`$1'
28608Try \`$0 --help' for more information." ;;
28609
28610  *) as_fn_append ac_config_targets " $1"
28611     ac_need_defaults=false ;;
28612
28613  esac
28614  shift
28615done
28616
28617ac_configure_extra_args=
28618
28619if $ac_cs_silent; then
28620  exec 6>/dev/null
28621  ac_configure_extra_args="$ac_configure_extra_args --silent"
28622fi
28623
28624_ACEOF
28625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28626if \$ac_cs_recheck; then
28627  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28628  shift
28629  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
28630  CONFIG_SHELL='$SHELL'
28631  export CONFIG_SHELL
28632  exec "\$@"
28633fi
28634
28635_ACEOF
28636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28637exec 5>>config.log
28638{
28639  echo
28640  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28641## Running $as_me. ##
28642_ASBOX
28643  printf "%s\n" "$ac_log"
28644} >&5
28645
28646_ACEOF
28647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28648#
28649# INIT-COMMANDS
28650#
28651AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28652
28653
28654# The HP-UX ksh and POSIX shell print the target directory to stdout
28655# if CDPATH is set.
28656(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28657
28658sed_quote_subst='$sed_quote_subst'
28659double_quote_subst='$double_quote_subst'
28660delay_variable_subst='$delay_variable_subst'
28661macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28662macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28663enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28664pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28665enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28666enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28667shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28668SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28669ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28670PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28671host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28672host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28673host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28674build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28675build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28676build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28677SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28678Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28679GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28680EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28681FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28682LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28683NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28684LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28685max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28686ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28687exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28688lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28689lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28690lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28691lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28692lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28693reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28694reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28695FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
28696OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28697deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28698file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28699file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28700want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28701DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28702sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28703AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28704lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
28705AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28706archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28707STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28708RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28709old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28710old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28711old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28712lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28713CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28714CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28715compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28716GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28717lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28718lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28719lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28721lt_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"`'
28722lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28723nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28724lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28725lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28726objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28727MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28728lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28729lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28730lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28731lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28732lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28733need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28734MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28735DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28736NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28737LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28738OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28739OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28740libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28741shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28742extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28743archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28744enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28745export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28746whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28747compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28748old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28749old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28750archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28751archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28752module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28753module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28754with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28755allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28756no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28757hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28758hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28759hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28760hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28761hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28762hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28763hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28764inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28765link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28766always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28767export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28768exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28769include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28770prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28771postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28772file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28773variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28774need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28775need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28776version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28777runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28778shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28779shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28780libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28781library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28782soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28783install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28784postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28785postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28786finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28787finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28788hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28789sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28790configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28791configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28792hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28793enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28794enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28795enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28796old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28797striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28798
28799LTCC='$LTCC'
28800LTCFLAGS='$LTCFLAGS'
28801compiler='$compiler_DEFAULT'
28802
28803# A function that is used when there is no print builtin or printf.
28804func_fallback_echo ()
28805{
28806  eval 'cat <<_LTECHO_EOF
28807\$1
28808_LTECHO_EOF'
28809}
28810
28811# Quote evaled strings.
28812for var in SHELL \
28813ECHO \
28814PATH_SEPARATOR \
28815SED \
28816GREP \
28817EGREP \
28818FGREP \
28819LD \
28820NM \
28821LN_S \
28822lt_SP2NL \
28823lt_NL2SP \
28824reload_flag \
28825FILECMD \
28826OBJDUMP \
28827deplibs_check_method \
28828file_magic_cmd \
28829file_magic_glob \
28830want_nocaseglob \
28831DLLTOOL \
28832sharedlib_from_linklib_cmd \
28833AR \
28834archiver_list_spec \
28835STRIP \
28836RANLIB \
28837CC \
28838CFLAGS \
28839compiler \
28840lt_cv_sys_global_symbol_pipe \
28841lt_cv_sys_global_symbol_to_cdecl \
28842lt_cv_sys_global_symbol_to_import \
28843lt_cv_sys_global_symbol_to_c_name_address \
28844lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28845lt_cv_nm_interface \
28846nm_file_list_spec \
28847lt_cv_truncate_bin \
28848lt_prog_compiler_no_builtin_flag \
28849lt_prog_compiler_pic \
28850lt_prog_compiler_wl \
28851lt_prog_compiler_static \
28852lt_cv_prog_compiler_c_o \
28853need_locks \
28854MANIFEST_TOOL \
28855DSYMUTIL \
28856NMEDIT \
28857LIPO \
28858OTOOL \
28859OTOOL64 \
28860shrext_cmds \
28861export_dynamic_flag_spec \
28862whole_archive_flag_spec \
28863compiler_needs_object \
28864with_gnu_ld \
28865allow_undefined_flag \
28866no_undefined_flag \
28867hardcode_libdir_flag_spec \
28868hardcode_libdir_separator \
28869exclude_expsyms \
28870include_expsyms \
28871file_list_spec \
28872variables_saved_for_relink \
28873libname_spec \
28874library_names_spec \
28875soname_spec \
28876install_override_mode \
28877finish_eval \
28878old_striplib \
28879striplib; do
28880    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28881    *[\\\\\\\`\\"\\\$]*)
28882      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28883      ;;
28884    *)
28885      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28886      ;;
28887    esac
28888done
28889
28890# Double-quote double-evaled strings.
28891for var in reload_cmds \
28892old_postinstall_cmds \
28893old_postuninstall_cmds \
28894old_archive_cmds \
28895extract_expsyms_cmds \
28896old_archive_from_new_cmds \
28897old_archive_from_expsyms_cmds \
28898archive_cmds \
28899archive_expsym_cmds \
28900module_cmds \
28901module_expsym_cmds \
28902export_symbols_cmds \
28903prelink_cmds \
28904postlink_cmds \
28905postinstall_cmds \
28906postuninstall_cmds \
28907finish_cmds \
28908sys_lib_search_path_spec \
28909configure_time_dlsearch_path \
28910configure_time_lt_sys_library_path; do
28911    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28912    *[\\\\\\\`\\"\\\$]*)
28913      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
28914      ;;
28915    *)
28916      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28917      ;;
28918    esac
28919done
28920
28921ac_aux_dir='$ac_aux_dir'
28922
28923# See if we are running on zsh, and set the options that allow our
28924# commands through without removal of \ escapes INIT.
28925if test -n "\${ZSH_VERSION+set}"; then
28926   setopt NO_GLOB_SUBST
28927fi
28928
28929
28930    PACKAGE='$PACKAGE'
28931    VERSION='$VERSION'
28932    RM='$RM'
28933    ofile='$ofile'
28934
28935
28936
28937
28938_ACEOF
28939
28940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28941
28942# Handling of arguments.
28943for ac_config_target in $ac_config_targets
28944do
28945  case $ac_config_target in
28946    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28947    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28948    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28949    "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
28950    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28951    "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
28952    "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
28953    "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
28954    "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
28955    "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
28956    "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
28957    "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
28958    "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
28959    "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
28960    "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
28961    "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
28962    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28963    "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
28964    "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
28965    "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
28966    "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
28967    "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
28968    "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
28969    "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
28970    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28971    "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
28972    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
28973    "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
28974    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28975    "tests/isc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isc/Makefile" ;;
28976    "tests/dns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dns/Makefile" ;;
28977    "tests/ns/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ns/Makefile" ;;
28978    "tests/irs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/irs/Makefile" ;;
28979    "tests/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/isccfg/Makefile" ;;
28980    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
28981    "tests/unit-test-driver.sh") CONFIG_FILES="$CONFIG_FILES tests/unit-test-driver.sh" ;;
28982    "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
28983    "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
28984    "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
28985    "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
28986    "bin/tests/system/dlzexternal/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/driver/Makefile" ;;
28987    "bin/tests/system/hooks/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/hooks/driver/Makefile" ;;
28988    "bin/tests/system/ifconfig.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/ifconfig.sh" ;;
28989    "bin/tests/system/legacy.run.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/legacy.run.sh" ;;
28990    "bin/tests/system/start.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/start.sh" ;;
28991    "bin/tests/system/stop.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/stop.sh" ;;
28992    "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
28993    "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
28994
28995  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28996  esac
28997done
28998
28999
29000# If the user did not use the arguments to specify the items to instantiate,
29001# then the envvar interface is used.  Set only those that are not.
29002# We use the long form for the default assignment because of an extremely
29003# bizarre bug on SunOS 4.1.3.
29004if $ac_need_defaults; then
29005  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
29006  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
29007  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
29008fi
29009
29010# Have a temporary directory for convenience.  Make it in the build tree
29011# simply because there is no reason against having it here, and in addition,
29012# creating and moving files from /tmp can sometimes cause problems.
29013# Hook for its removal unless debugging.
29014# Note that there is a small window in which the directory will not be cleaned:
29015# after its creation but before its name has been assigned to `$tmp'.
29016$debug ||
29017{
29018  tmp= ac_tmp=
29019  trap 'exit_status=$?
29020  : "${ac_tmp:=$tmp}"
29021  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29022' 0
29023  trap 'as_fn_exit 1' 1 2 13 15
29024}
29025# Create a (secure) tmp directory for tmp files.
29026
29027{
29028  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29029  test -d "$tmp"
29030}  ||
29031{
29032  tmp=./conf$$-$RANDOM
29033  (umask 077 && mkdir "$tmp")
29034} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29035ac_tmp=$tmp
29036
29037# Set up the scripts for CONFIG_FILES section.
29038# No need to generate them if there are no CONFIG_FILES.
29039# This happens for instance with `./config.status config.h'.
29040if test -n "$CONFIG_FILES"; then
29041
29042
29043ac_cr=`echo X | tr X '\015'`
29044# On cygwin, bash can eat \r inside `` if the user requested igncr.
29045# But we know of no other shell where ac_cr would be empty at this
29046# point, so we can use a bashism as a fallback.
29047if test "x$ac_cr" = x; then
29048  eval ac_cr=\$\'\\r\'
29049fi
29050ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29051if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29052  ac_cs_awk_cr='\\r'
29053else
29054  ac_cs_awk_cr=$ac_cr
29055fi
29056
29057echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29058_ACEOF
29059
29060
29061{
29062  echo "cat >conf$$subs.awk <<_ACEOF" &&
29063  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29064  echo "_ACEOF"
29065} >conf$$subs.sh ||
29066  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29067ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29068ac_delim='%!_!# '
29069for ac_last_try in false false false false false :; do
29070  . ./conf$$subs.sh ||
29071    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29072
29073  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29074  if test $ac_delim_n = $ac_delim_num; then
29075    break
29076  elif $ac_last_try; then
29077    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29078  else
29079    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29080  fi
29081done
29082rm -f conf$$subs.sh
29083
29084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29085cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29086_ACEOF
29087sed -n '
29088h
29089s/^/S["/; s/!.*/"]=/
29090p
29091g
29092s/^[^!]*!//
29093:repl
29094t repl
29095s/'"$ac_delim"'$//
29096t delim
29097:nl
29098h
29099s/\(.\{148\}\)..*/\1/
29100t more1
29101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29102p
29103n
29104b repl
29105:more1
29106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29107p
29108g
29109s/.\{148\}//
29110t nl
29111:delim
29112h
29113s/\(.\{148\}\)..*/\1/
29114t more2
29115s/["\\]/\\&/g; s/^/"/; s/$/"/
29116p
29117b
29118:more2
29119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29120p
29121g
29122s/.\{148\}//
29123t delim
29124' <conf$$subs.awk | sed '
29125/^[^""]/{
29126  N
29127  s/\n//
29128}
29129' >>$CONFIG_STATUS || ac_write_fail=1
29130rm -f conf$$subs.awk
29131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29132_ACAWK
29133cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29134  for (key in S) S_is_set[key] = 1
29135  FS = ""
29136
29137}
29138{
29139  line = $ 0
29140  nfields = split(line, field, "@")
29141  substed = 0
29142  len = length(field[1])
29143  for (i = 2; i < nfields; i++) {
29144    key = field[i]
29145    keylen = length(key)
29146    if (S_is_set[key]) {
29147      value = S[key]
29148      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29149      len += length(value) + length(field[++i])
29150      substed = 1
29151    } else
29152      len += 1 + keylen
29153  }
29154
29155  print line
29156}
29157
29158_ACAWK
29159_ACEOF
29160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29162  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29163else
29164  cat
29165fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29166  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29167_ACEOF
29168
29169# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29170# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29171# trailing colons and then remove the whole line if VPATH becomes empty
29172# (actually we leave an empty line to preserve line numbers).
29173if test "x$srcdir" = x.; then
29174  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
29175h
29176s///
29177s/^/:/
29178s/[	 ]*$/:/
29179s/:\$(srcdir):/:/g
29180s/:\${srcdir}:/:/g
29181s/:@srcdir@:/:/g
29182s/^:*//
29183s/:*$//
29184x
29185s/\(=[	 ]*\).*/\1/
29186G
29187s/\n//
29188s/^[^=]*=[	 ]*$//
29189}'
29190fi
29191
29192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29193fi # test -n "$CONFIG_FILES"
29194
29195# Set up the scripts for CONFIG_HEADERS section.
29196# No need to generate them if there are no CONFIG_HEADERS.
29197# This happens for instance with `./config.status Makefile'.
29198if test -n "$CONFIG_HEADERS"; then
29199cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29200BEGIN {
29201_ACEOF
29202
29203# Transform confdefs.h into an awk script `defines.awk', embedded as
29204# here-document in config.status, that substitutes the proper values into
29205# config.h.in to produce config.h.
29206
29207# Create a delimiter string that does not exist in confdefs.h, to ease
29208# handling of long lines.
29209ac_delim='%!_!# '
29210for ac_last_try in false false :; do
29211  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29212  if test -z "$ac_tt"; then
29213    break
29214  elif $ac_last_try; then
29215    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29216  else
29217    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29218  fi
29219done
29220
29221# For the awk script, D is an array of macro values keyed by name,
29222# likewise P contains macro parameters if any.  Preserve backslash
29223# newline sequences.
29224
29225ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29226sed -n '
29227s/.\{148\}/&'"$ac_delim"'/g
29228t rset
29229:rset
29230s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
29231t def
29232d
29233:def
29234s/\\$//
29235t bsnl
29236s/["\\]/\\&/g
29237s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29238D["\1"]=" \3"/p
29239s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
29240d
29241:bsnl
29242s/["\\]/\\&/g
29243s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
29244D["\1"]=" \3\\\\\\n"\\/p
29245t cont
29246s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29247t cont
29248d
29249:cont
29250n
29251s/.\{148\}/&'"$ac_delim"'/g
29252t clear
29253:clear
29254s/\\$//
29255t bsnlc
29256s/["\\]/\\&/g; s/^/"/; s/$/"/p
29257d
29258:bsnlc
29259s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29260b cont
29261' <confdefs.h | sed '
29262s/'"$ac_delim"'/"\\\
29263"/g' >>$CONFIG_STATUS || ac_write_fail=1
29264
29265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29266  for (key in D) D_is_set[key] = 1
29267  FS = ""
29268}
29269/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29270  line = \$ 0
29271  split(line, arg, " ")
29272  if (arg[1] == "#") {
29273    defundef = arg[2]
29274    mac1 = arg[3]
29275  } else {
29276    defundef = substr(arg[1], 2)
29277    mac1 = arg[2]
29278  }
29279  split(mac1, mac2, "(") #)
29280  macro = mac2[1]
29281  prefix = substr(line, 1, index(line, defundef) - 1)
29282  if (D_is_set[macro]) {
29283    # Preserve the white space surrounding the "#".
29284    print prefix "define", macro P[macro] D[macro]
29285    next
29286  } else {
29287    # Replace #undef with comments.  This is necessary, for example,
29288    # in the case of _POSIX_SOURCE, which is predefined and required
29289    # on some systems where configure will not decide to define it.
29290    if (defundef == "undef") {
29291      print "/*", prefix defundef, macro, "*/"
29292      next
29293    }
29294  }
29295}
29296{ print }
29297_ACAWK
29298_ACEOF
29299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29300  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29301fi # test -n "$CONFIG_HEADERS"
29302
29303
29304eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
29305shift
29306for ac_tag
29307do
29308  case $ac_tag in
29309  :[FHLC]) ac_mode=$ac_tag; continue;;
29310  esac
29311  case $ac_mode$ac_tag in
29312  :[FHL]*:*);;
29313  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29314  :[FH]-) ac_tag=-:-;;
29315  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29316  esac
29317  ac_save_IFS=$IFS
29318  IFS=:
29319  set x $ac_tag
29320  IFS=$ac_save_IFS
29321  shift
29322  ac_file=$1
29323  shift
29324
29325  case $ac_mode in
29326  :L) ac_source=$1;;
29327  :[FH])
29328    ac_file_inputs=
29329    for ac_f
29330    do
29331      case $ac_f in
29332      -) ac_f="$ac_tmp/stdin";;
29333      *) # Look for the file first in the build tree, then in the source tree
29334	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29335	 # because $ac_f cannot contain `:'.
29336	 test -f "$ac_f" ||
29337	   case $ac_f in
29338	   [\\/$]*) false;;
29339	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29340	   esac ||
29341	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29342      esac
29343      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29344      as_fn_append ac_file_inputs " '$ac_f'"
29345    done
29346
29347    # Let's still pretend it is `configure' which instantiates (i.e., don't
29348    # use $as_me), people would be surprised to read:
29349    #    /* config.h.  Generated by config.status.  */
29350    configure_input='Generated from '`
29351	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29352	`' by configure.'
29353    if test x"$ac_file" != x-; then
29354      configure_input="$ac_file.  $configure_input"
29355      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29356printf "%s\n" "$as_me: creating $ac_file" >&6;}
29357    fi
29358    # Neutralize special characters interpreted by sed in replacement strings.
29359    case $configure_input in #(
29360    *\&* | *\|* | *\\* )
29361       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
29362       sed 's/[\\\\&|]/\\\\&/g'`;; #(
29363    *) ac_sed_conf_input=$configure_input;;
29364    esac
29365
29366    case $ac_tag in
29367    *:-:* | *:-) cat >"$ac_tmp/stdin" \
29368      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29369    esac
29370    ;;
29371  esac
29372
29373  ac_dir=`$as_dirname -- "$ac_file" ||
29374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29375	 X"$ac_file" : 'X\(//\)[^/]' \| \
29376	 X"$ac_file" : 'X\(//\)$' \| \
29377	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29378printf "%s\n" X"$ac_file" |
29379    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29380	    s//\1/
29381	    q
29382	  }
29383	  /^X\(\/\/\)[^/].*/{
29384	    s//\1/
29385	    q
29386	  }
29387	  /^X\(\/\/\)$/{
29388	    s//\1/
29389	    q
29390	  }
29391	  /^X\(\/\).*/{
29392	    s//\1/
29393	    q
29394	  }
29395	  s/.*/./; q'`
29396  as_dir="$ac_dir"; as_fn_mkdir_p
29397  ac_builddir=.
29398
29399case "$ac_dir" in
29400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29401*)
29402  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
29403  # A ".." for each directory in $ac_dir_suffix.
29404  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29405  case $ac_top_builddir_sub in
29406  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29407  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29408  esac ;;
29409esac
29410ac_abs_top_builddir=$ac_pwd
29411ac_abs_builddir=$ac_pwd$ac_dir_suffix
29412# for backward compatibility:
29413ac_top_builddir=$ac_top_build_prefix
29414
29415case $srcdir in
29416  .)  # We are building in place.
29417    ac_srcdir=.
29418    ac_top_srcdir=$ac_top_builddir_sub
29419    ac_abs_top_srcdir=$ac_pwd ;;
29420  [\\/]* | ?:[\\/]* )  # Absolute name.
29421    ac_srcdir=$srcdir$ac_dir_suffix;
29422    ac_top_srcdir=$srcdir
29423    ac_abs_top_srcdir=$srcdir ;;
29424  *) # Relative name.
29425    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29426    ac_top_srcdir=$ac_top_build_prefix$srcdir
29427    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29428esac
29429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29430
29431
29432  case $ac_mode in
29433  :F)
29434  #
29435  # CONFIG_FILE
29436  #
29437
29438  case $INSTALL in
29439  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29440  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29441  esac
29442  ac_MKDIR_P=$MKDIR_P
29443  case $MKDIR_P in
29444  [\\/$]* | ?:[\\/]* ) ;;
29445  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29446  esac
29447_ACEOF
29448
29449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29450# If the template does not know about datarootdir, expand it.
29451# FIXME: This hack should be removed a few years after 2.60.
29452ac_datarootdir_hack=; ac_datarootdir_seen=
29453ac_sed_dataroot='
29454/datarootdir/ {
29455  p
29456  q
29457}
29458/@datadir@/p
29459/@docdir@/p
29460/@infodir@/p
29461/@localedir@/p
29462/@mandir@/p'
29463case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29464*datarootdir*) ac_datarootdir_seen=yes;;
29465*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29467printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29468_ACEOF
29469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29470  ac_datarootdir_hack='
29471  s&@datadir@&$datadir&g
29472  s&@docdir@&$docdir&g
29473  s&@infodir@&$infodir&g
29474  s&@localedir@&$localedir&g
29475  s&@mandir@&$mandir&g
29476  s&\\\${datarootdir}&$datarootdir&g' ;;
29477esac
29478_ACEOF
29479
29480# Neutralize VPATH when `$srcdir' = `.'.
29481# Shell code in configure.ac might set extrasub.
29482# FIXME: do we really want to maintain this feature?
29483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29484ac_sed_extra="$ac_vpsub
29485$extrasub
29486_ACEOF
29487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29488:t
29489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29490s|@configure_input@|$ac_sed_conf_input|;t t
29491s&@top_builddir@&$ac_top_builddir_sub&;t t
29492s&@top_build_prefix@&$ac_top_build_prefix&;t t
29493s&@srcdir@&$ac_srcdir&;t t
29494s&@abs_srcdir@&$ac_abs_srcdir&;t t
29495s&@top_srcdir@&$ac_top_srcdir&;t t
29496s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29497s&@builddir@&$ac_builddir&;t t
29498s&@abs_builddir@&$ac_abs_builddir&;t t
29499s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29500s&@INSTALL@&$ac_INSTALL&;t t
29501s&@MKDIR_P@&$ac_MKDIR_P&;t t
29502$ac_datarootdir_hack
29503"
29504eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29505  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29506
29507test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29508  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29509  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
29510      "$ac_tmp/out"`; test -z "$ac_out"; } &&
29511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29512which seems to be undefined.  Please make sure it is defined" >&5
29513printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29514which seems to be undefined.  Please make sure it is defined" >&2;}
29515
29516  rm -f "$ac_tmp/stdin"
29517  case $ac_file in
29518  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29519  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29520  esac \
29521  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29522 ;;
29523  :H)
29524  #
29525  # CONFIG_HEADER
29526  #
29527  if test x"$ac_file" != x-; then
29528    {
29529      printf "%s\n" "/* $configure_input  */" >&1 \
29530      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29531    } >"$ac_tmp/config.h" \
29532      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29533    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29534      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29535printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
29536    else
29537      rm -f "$ac_file"
29538      mv "$ac_tmp/config.h" "$ac_file" \
29539	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
29540    fi
29541  else
29542    printf "%s\n" "/* $configure_input  */" >&1 \
29543      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29544      || as_fn_error $? "could not create -" "$LINENO" 5
29545  fi
29546# Compute "$ac_file"'s index in $config_headers.
29547_am_arg="$ac_file"
29548_am_stamp_count=1
29549for _am_header in $config_headers :; do
29550  case $_am_header in
29551    $_am_arg | $_am_arg:* )
29552      break ;;
29553    * )
29554      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29555  esac
29556done
29557echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29558$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29559	 X"$_am_arg" : 'X\(//\)[^/]' \| \
29560	 X"$_am_arg" : 'X\(//\)$' \| \
29561	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29562printf "%s\n" X"$_am_arg" |
29563    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29564	    s//\1/
29565	    q
29566	  }
29567	  /^X\(\/\/\)[^/].*/{
29568	    s//\1/
29569	    q
29570	  }
29571	  /^X\(\/\/\)$/{
29572	    s//\1/
29573	    q
29574	  }
29575	  /^X\(\/\).*/{
29576	    s//\1/
29577	    q
29578	  }
29579	  s/.*/./; q'`/stamp-h$_am_stamp_count
29580 ;;
29581
29582  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29583printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
29584 ;;
29585  esac
29586
29587
29588  case $ac_file$ac_mode in
29589    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29590  # Older Autoconf quotes --file arguments for eval, but not when files
29591  # are listed without --file.  Let's play safe and only enable the eval
29592  # if we detect the quoting.
29593  # TODO: see whether this extra hack can be removed once we start
29594  # requiring Autoconf 2.70 or later.
29595  case $CONFIG_FILES in #(
29596  *\'*) :
29597    eval set x "$CONFIG_FILES" ;; #(
29598  *) :
29599    set x $CONFIG_FILES ;; #(
29600  *) :
29601     ;;
29602esac
29603  shift
29604  # Used to flag and report bootstrapping failures.
29605  am_rc=0
29606  for am_mf
29607  do
29608    # Strip MF so we end up with the name of the file.
29609    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
29610    # Check whether this is an Automake generated Makefile which includes
29611    # dependency-tracking related rules and includes.
29612    # Grep'ing the whole file directly is not great: AIX grep has a line
29613    # limit of 2048, but all sed's we know have understand at least 4000.
29614    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29615      || continue
29616    am_dirpart=`$as_dirname -- "$am_mf" ||
29617$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29618	 X"$am_mf" : 'X\(//\)[^/]' \| \
29619	 X"$am_mf" : 'X\(//\)$' \| \
29620	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29621printf "%s\n" X"$am_mf" |
29622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29623	    s//\1/
29624	    q
29625	  }
29626	  /^X\(\/\/\)[^/].*/{
29627	    s//\1/
29628	    q
29629	  }
29630	  /^X\(\/\/\)$/{
29631	    s//\1/
29632	    q
29633	  }
29634	  /^X\(\/\).*/{
29635	    s//\1/
29636	    q
29637	  }
29638	  s/.*/./; q'`
29639    am_filepart=`$as_basename -- "$am_mf" ||
29640$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29641	 X"$am_mf" : 'X\(//\)$' \| \
29642	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29643printf "%s\n" X/"$am_mf" |
29644    sed '/^.*\/\([^/][^/]*\)\/*$/{
29645	    s//\1/
29646	    q
29647	  }
29648	  /^X\/\(\/\/\)$/{
29649	    s//\1/
29650	    q
29651	  }
29652	  /^X\/\(\/\).*/{
29653	    s//\1/
29654	    q
29655	  }
29656	  s/.*/./; q'`
29657    { echo "$as_me:$LINENO: cd "$am_dirpart" \
29658      && sed -e '/# am--include-marker/d' "$am_filepart" \
29659        | $MAKE -f - am--depfiles" >&5
29660   (cd "$am_dirpart" \
29661      && sed -e '/# am--include-marker/d' "$am_filepart" \
29662        | $MAKE -f - am--depfiles) >&5 2>&5
29663   ac_status=$?
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); } || am_rc=$?
29666  done
29667  if test $am_rc -ne 0; then
29668    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29669printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
29670as_fn_error $? "Something went wrong bootstrapping makefile fragments
29671    for automatic dependency tracking.  If GNU make was not used, consider
29672    re-running the configure script with MAKE=\"gmake\" (or whatever is
29673    necessary).  You can also try re-running configure with the
29674    '--disable-dependency-tracking' option to at least be able to build
29675    the package (albeit without support for automatic dependency tracking).
29676See \`config.log' for more details" "$LINENO" 5; }
29677  fi
29678  { am_dirpart=; unset am_dirpart;}
29679  { am_filepart=; unset am_filepart;}
29680  { am_mf=; unset am_mf;}
29681  { am_rc=; unset am_rc;}
29682  rm -f conftest-deps.mk
29683}
29684 ;;
29685    "libtool":C)
29686
29687    # See if we are running on zsh, and set the options that allow our
29688    # commands through without removal of \ escapes.
29689    if test -n "${ZSH_VERSION+set}"; then
29690      setopt NO_GLOB_SUBST
29691    fi
29692
29693    cfgfile=${ofile}T
29694    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29695    $RM "$cfgfile"
29696
29697    cat <<_LT_EOF >> "$cfgfile"
29698#! $SHELL
29699# Generated automatically by $as_me ($PACKAGE) $VERSION
29700# NOTE: Changes made to this file will be lost: look at ltmain.sh.
29701
29702# Provide generalized library-building support services.
29703# Written by Gordon Matzigkeit, 1996
29704
29705# Copyright (C) 2014 Free Software Foundation, Inc.
29706# This is free software; see the source for copying conditions.  There is NO
29707# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29708
29709# GNU Libtool is free software; you can redistribute it and/or modify
29710# it under the terms of the GNU General Public License as published by
29711# the Free Software Foundation; either version 2 of of the License, or
29712# (at your option) any later version.
29713#
29714# As a special exception to the GNU General Public License, if you
29715# distribute this file as part of a program or library that is built
29716# using GNU Libtool, you may include this file under the  same
29717# distribution terms that you use for the rest of that program.
29718#
29719# GNU Libtool is distributed in the hope that it will be useful, but
29720# WITHOUT ANY WARRANTY; without even the implied warranty of
29721# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29722# GNU General Public License for more details.
29723#
29724# You should have received a copy of the GNU General Public License
29725# along with this program.  If not, see <http://www.gnu.org/licenses/>.
29726
29727
29728# The names of the tagged configurations supported by this script.
29729available_tags=''
29730
29731# Configured defaults for sys_lib_dlsearch_path munging.
29732: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29733
29734# ### BEGIN LIBTOOL CONFIG
29735
29736# Which release of libtool.m4 was used?
29737macro_version=$macro_version
29738macro_revision=$macro_revision
29739
29740# Whether or not to build static libraries.
29741build_old_libs=$enable_static
29742
29743# What type of objects to build.
29744pic_mode=$pic_mode
29745
29746# Whether or not to build shared libraries.
29747build_libtool_libs=$enable_shared
29748
29749# Whether or not to optimize for fast installation.
29750fast_install=$enable_fast_install
29751
29752# Shared archive member basename,for filename based shared library versioning on AIX.
29753shared_archive_member_spec=$shared_archive_member_spec
29754
29755# Shell to use when invoking shell scripts.
29756SHELL=$lt_SHELL
29757
29758# An echo program that protects backslashes.
29759ECHO=$lt_ECHO
29760
29761# The PATH separator for the build system.
29762PATH_SEPARATOR=$lt_PATH_SEPARATOR
29763
29764# The host system.
29765host_alias=$host_alias
29766host=$host
29767host_os=$host_os
29768
29769# The build system.
29770build_alias=$build_alias
29771build=$build
29772build_os=$build_os
29773
29774# A sed program that does not truncate output.
29775SED=$lt_SED
29776
29777# Sed that helps us avoid accidentally triggering echo(1) options like -n.
29778Xsed="\$SED -e 1s/^X//"
29779
29780# A grep program that handles long lines.
29781GREP=$lt_GREP
29782
29783# An ERE matcher.
29784EGREP=$lt_EGREP
29785
29786# A literal string matcher.
29787FGREP=$lt_FGREP
29788
29789# A BSD- or MS-compatible name lister.
29790NM=$lt_NM
29791
29792# Whether we need soft or hard links.
29793LN_S=$lt_LN_S
29794
29795# What is the maximum length of a command?
29796max_cmd_len=$max_cmd_len
29797
29798# Object file suffix (normally "o").
29799objext=$ac_objext
29800
29801# Executable file suffix (normally "").
29802exeext=$exeext
29803
29804# whether the shell understands "unset".
29805lt_unset=$lt_unset
29806
29807# turn spaces into newlines.
29808SP2NL=$lt_lt_SP2NL
29809
29810# turn newlines into spaces.
29811NL2SP=$lt_lt_NL2SP
29812
29813# convert \$build file names to \$host format.
29814to_host_file_cmd=$lt_cv_to_host_file_cmd
29815
29816# convert \$build files to toolchain format.
29817to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29818
29819# A file(cmd) program that detects file types.
29820FILECMD=$lt_FILECMD
29821
29822# An object symbol dumper.
29823OBJDUMP=$lt_OBJDUMP
29824
29825# Method to check whether dependent libraries are shared objects.
29826deplibs_check_method=$lt_deplibs_check_method
29827
29828# Command to use when deplibs_check_method = "file_magic".
29829file_magic_cmd=$lt_file_magic_cmd
29830
29831# How to find potential files when deplibs_check_method = "file_magic".
29832file_magic_glob=$lt_file_magic_glob
29833
29834# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29835want_nocaseglob=$lt_want_nocaseglob
29836
29837# DLL creation program.
29838DLLTOOL=$lt_DLLTOOL
29839
29840# Command to associate shared and link libraries.
29841sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29842
29843# The archiver.
29844AR=$lt_AR
29845
29846# Flags to create an archive (by configure).
29847lt_ar_flags=$lt_ar_flags
29848
29849# Flags to create an archive.
29850AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
29851
29852# How to feed a file listing to the archiver.
29853archiver_list_spec=$lt_archiver_list_spec
29854
29855# A symbol stripping program.
29856STRIP=$lt_STRIP
29857
29858# Commands used to install an old-style archive.
29859RANLIB=$lt_RANLIB
29860old_postinstall_cmds=$lt_old_postinstall_cmds
29861old_postuninstall_cmds=$lt_old_postuninstall_cmds
29862
29863# Whether to use a lock for old archive extraction.
29864lock_old_archive_extraction=$lock_old_archive_extraction
29865
29866# A C compiler.
29867LTCC=$lt_CC
29868
29869# LTCC compiler flags.
29870LTCFLAGS=$lt_CFLAGS
29871
29872# Take the output of nm and produce a listing of raw symbols and C names.
29873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29874
29875# Transform the output of nm in a proper C declaration.
29876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29877
29878# Transform the output of nm into a list of symbols to manually relocate.
29879global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
29880
29881# Transform the output of nm in a C name address pair.
29882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29883
29884# Transform the output of nm in a C name address pair when lib prefix is needed.
29885global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29886
29887# The name lister interface.
29888nm_interface=$lt_lt_cv_nm_interface
29889
29890# Specify filename containing input files for \$NM.
29891nm_file_list_spec=$lt_nm_file_list_spec
29892
29893# The root where to search for dependent libraries,and where our libraries should be installed.
29894lt_sysroot=$lt_sysroot
29895
29896# Command to truncate a binary pipe.
29897lt_truncate_bin=$lt_lt_cv_truncate_bin
29898
29899# The name of the directory that contains temporary libtool files.
29900objdir=$objdir
29901
29902# Used to examine libraries when file_magic_cmd begins with "file".
29903MAGIC_CMD=$MAGIC_CMD
29904
29905# Must we lock files when doing compilation?
29906need_locks=$lt_need_locks
29907
29908# Manifest tool.
29909MANIFEST_TOOL=$lt_MANIFEST_TOOL
29910
29911# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29912DSYMUTIL=$lt_DSYMUTIL
29913
29914# Tool to change global to local symbols on Mac OS X.
29915NMEDIT=$lt_NMEDIT
29916
29917# Tool to manipulate fat objects and archives on Mac OS X.
29918LIPO=$lt_LIPO
29919
29920# ldd/readelf like tool for Mach-O binaries on Mac OS X.
29921OTOOL=$lt_OTOOL
29922
29923# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29924OTOOL64=$lt_OTOOL64
29925
29926# Old archive suffix (normally "a").
29927libext=$libext
29928
29929# Shared library suffix (normally ".so").
29930shrext_cmds=$lt_shrext_cmds
29931
29932# The commands to extract the exported symbol list from a shared archive.
29933extract_expsyms_cmds=$lt_extract_expsyms_cmds
29934
29935# Variables whose values should be saved in libtool wrapper scripts and
29936# restored at link time.
29937variables_saved_for_relink=$lt_variables_saved_for_relink
29938
29939# Do we need the "lib" prefix for modules?
29940need_lib_prefix=$need_lib_prefix
29941
29942# Do we need a version for libraries?
29943need_version=$need_version
29944
29945# Library versioning type.
29946version_type=$version_type
29947
29948# Shared library runtime path variable.
29949runpath_var=$runpath_var
29950
29951# Shared library path variable.
29952shlibpath_var=$shlibpath_var
29953
29954# Is shlibpath searched before the hard-coded library search path?
29955shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29956
29957# Format of library name prefix.
29958libname_spec=$lt_libname_spec
29959
29960# List of archive names.  First name is the real one, the rest are links.
29961# The last name is the one that the linker finds with -lNAME
29962library_names_spec=$lt_library_names_spec
29963
29964# The coded name of the library, if different from the real name.
29965soname_spec=$lt_soname_spec
29966
29967# Permission mode override for installation of shared libraries.
29968install_override_mode=$lt_install_override_mode
29969
29970# Command to use after installation of a shared archive.
29971postinstall_cmds=$lt_postinstall_cmds
29972
29973# Command to use after uninstallation of a shared archive.
29974postuninstall_cmds=$lt_postuninstall_cmds
29975
29976# Commands used to finish a libtool library installation in a directory.
29977finish_cmds=$lt_finish_cmds
29978
29979# As "finish_cmds", except a single script fragment to be evaled but
29980# not shown.
29981finish_eval=$lt_finish_eval
29982
29983# Whether we should hardcode library paths into libraries.
29984hardcode_into_libs=$hardcode_into_libs
29985
29986# Compile-time system search path for libraries.
29987sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29988
29989# Detected run-time system search path for libraries.
29990sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
29991
29992# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
29993configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
29994
29995# Whether dlopen is supported.
29996dlopen_support=$enable_dlopen
29997
29998# Whether dlopen of programs is supported.
29999dlopen_self=$enable_dlopen_self
30000
30001# Whether dlopen of statically linked programs is supported.
30002dlopen_self_static=$enable_dlopen_self_static
30003
30004# Commands to strip libraries.
30005old_striplib=$lt_old_striplib
30006striplib=$lt_striplib
30007
30008
30009# The linker used to build libraries.
30010LD=$lt_LD
30011
30012# How to create reloadable object files.
30013reload_flag=$lt_reload_flag
30014reload_cmds=$lt_reload_cmds
30015
30016# Commands used to build an old-style archive.
30017old_archive_cmds=$lt_old_archive_cmds
30018
30019# A language specific compiler.
30020CC=$lt_compiler
30021
30022# Is the compiler the GNU compiler?
30023with_gcc=$GCC
30024
30025# Compiler flag to turn off builtin functions.
30026no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30027
30028# Additional compiler flags for building library objects.
30029pic_flag=$lt_lt_prog_compiler_pic
30030
30031# How to pass a linker flag through the compiler.
30032wl=$lt_lt_prog_compiler_wl
30033
30034# Compiler flag to prevent dynamic linking.
30035link_static_flag=$lt_lt_prog_compiler_static
30036
30037# Does compiler simultaneously support -c and -o options?
30038compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30039
30040# Whether or not to add -lc for building shared libraries.
30041build_libtool_need_lc=$archive_cmds_need_lc
30042
30043# Whether or not to disallow shared libs when runtime libs are static.
30044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30045
30046# Compiler flag to allow reflexive dlopens.
30047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30048
30049# Compiler flag to generate shared objects directly from archives.
30050whole_archive_flag_spec=$lt_whole_archive_flag_spec
30051
30052# Whether the compiler copes with passing no objects directly.
30053compiler_needs_object=$lt_compiler_needs_object
30054
30055# Create an old-style archive from a shared archive.
30056old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30057
30058# Create a temporary old-style archive to link instead of a shared archive.
30059old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30060
30061# Commands used to build a shared archive.
30062archive_cmds=$lt_archive_cmds
30063archive_expsym_cmds=$lt_archive_expsym_cmds
30064
30065# Commands used to build a loadable module if different from building
30066# a shared archive.
30067module_cmds=$lt_module_cmds
30068module_expsym_cmds=$lt_module_expsym_cmds
30069
30070# Whether we are building with GNU ld or not.
30071with_gnu_ld=$lt_with_gnu_ld
30072
30073# Flag that allows shared libraries with undefined symbols to be built.
30074allow_undefined_flag=$lt_allow_undefined_flag
30075
30076# Flag that enforces no undefined symbols.
30077no_undefined_flag=$lt_no_undefined_flag
30078
30079# Flag to hardcode \$libdir into a binary during linking.
30080# This must work even if \$libdir does not exist
30081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30082
30083# Whether we need a single "-rpath" flag with a separated argument.
30084hardcode_libdir_separator=$lt_hardcode_libdir_separator
30085
30086# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30087# DIR into the resulting binary.
30088hardcode_direct=$hardcode_direct
30089
30090# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30091# DIR into the resulting binary and the resulting library dependency is
30092# "absolute",i.e impossible to change by setting \$shlibpath_var if the
30093# library is relocated.
30094hardcode_direct_absolute=$hardcode_direct_absolute
30095
30096# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30097# into the resulting binary.
30098hardcode_minus_L=$hardcode_minus_L
30099
30100# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30101# into the resulting binary.
30102hardcode_shlibpath_var=$hardcode_shlibpath_var
30103
30104# Set to "yes" if building a shared library automatically hardcodes DIR
30105# into the library and all subsequent libraries and executables linked
30106# against it.
30107hardcode_automatic=$hardcode_automatic
30108
30109# Set to yes if linker adds runtime paths of dependent libraries
30110# to runtime path list.
30111inherit_rpath=$inherit_rpath
30112
30113# Whether libtool must link a program against all its dependency libraries.
30114link_all_deplibs=$link_all_deplibs
30115
30116# Set to "yes" if exported symbols are required.
30117always_export_symbols=$always_export_symbols
30118
30119# The commands to list exported symbols.
30120export_symbols_cmds=$lt_export_symbols_cmds
30121
30122# Symbols that should not be listed in the preloaded symbols.
30123exclude_expsyms=$lt_exclude_expsyms
30124
30125# Symbols that must always be exported.
30126include_expsyms=$lt_include_expsyms
30127
30128# Commands necessary for linking programs (against libraries) with templates.
30129prelink_cmds=$lt_prelink_cmds
30130
30131# Commands necessary for finishing linking programs.
30132postlink_cmds=$lt_postlink_cmds
30133
30134# Specify filename containing input files.
30135file_list_spec=$lt_file_list_spec
30136
30137# How to hardcode a shared library path into an executable.
30138hardcode_action=$hardcode_action
30139
30140# ### END LIBTOOL CONFIG
30141
30142_LT_EOF
30143
30144    cat <<'_LT_EOF' >> "$cfgfile"
30145
30146# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30147
30148# func_munge_path_list VARIABLE PATH
30149# -----------------------------------
30150# VARIABLE is name of variable containing _space_ separated list of
30151# directories to be munged by the contents of PATH, which is string
30152# having a format:
30153# "DIR[:DIR]:"
30154#       string "DIR[ DIR]" will be prepended to VARIABLE
30155# ":DIR[:DIR]"
30156#       string "DIR[ DIR]" will be appended to VARIABLE
30157# "DIRP[:DIRP]::[DIRA:]DIRA"
30158#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30159#       "DIRA[ DIRA]" will be appended to VARIABLE
30160# "DIR[:DIR]"
30161#       VARIABLE will be replaced by "DIR[ DIR]"
30162func_munge_path_list ()
30163{
30164    case x$2 in
30165    x)
30166        ;;
30167    *:)
30168        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30169        ;;
30170    x:*)
30171        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30172        ;;
30173    *::*)
30174        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30175        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30176        ;;
30177    *)
30178        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30179        ;;
30180    esac
30181}
30182
30183
30184# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
30185func_cc_basename ()
30186{
30187    for cc_temp in $*""; do
30188      case $cc_temp in
30189        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30190        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30191        \-*) ;;
30192        *) break;;
30193      esac
30194    done
30195    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30196}
30197
30198
30199# ### END FUNCTIONS SHARED WITH CONFIGURE
30200
30201_LT_EOF
30202
30203  case $host_os in
30204  aix3*)
30205    cat <<\_LT_EOF >> "$cfgfile"
30206# AIX sometimes has problems with the GCC collect2 program.  For some
30207# reason, if we set the COLLECT_NAMES environment variable, the problems
30208# vanish in a puff of smoke.
30209if test set != "${COLLECT_NAMES+set}"; then
30210  COLLECT_NAMES=
30211  export COLLECT_NAMES
30212fi
30213_LT_EOF
30214    ;;
30215  esac
30216
30217
30218
30219ltmain=$ac_aux_dir/ltmain.sh
30220
30221
30222  # We use sed instead of cat because bash on DJGPP gets confused if
30223  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30224  # text mode, it properly converts lines to CR/LF.  This bash problem
30225  # is reportedly fixed, but why not run on old versions too?
30226  $SED '$q' "$ltmain" >> "$cfgfile" \
30227     || (rm -f "$cfgfile"; exit 1)
30228
30229   mv -f "$cfgfile" "$ofile" ||
30230    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30231  chmod +x "$ofile"
30232
30233 ;;
30234    "doc/doxygen/doxygen-input-filter":F) chmod +x doc/doxygen/doxygen-input-filter ;;
30235    "tests/unit-test-driver.sh":F) chmod +x tests/unit-test-driver.sh ;;
30236    "bin/tests/system/ifconfig.sh":F) chmod +x bin/tests/system/ifconfig.sh ;;
30237    "bin/tests/system/legacy.run.sh":F) chmod +x bin/tests/system/legacy.run.sh ;;
30238    "bin/tests/system/start.sh":F) chmod +x bin/tests/system/start.sh ;;
30239    "bin/tests/system/stop.sh":F) chmod +x bin/tests/system/stop.sh ;;
30240
30241  esac
30242done # for ac_tag
30243
30244
30245as_fn_exit 0
30246_ACEOF
30247ac_clean_files=$ac_clean_files_save
30248
30249test $ac_write_fail = 0 ||
30250  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30251
30252
30253# configure is writing to config.log, and then calls config.status.
30254# config.status does its own redirection, appending to config.log.
30255# Unfortunately, on DOS this fails, as config.log is still kept open
30256# by configure, so config.status won't be able to write to it; its
30257# output is simply discarded.  So we exec the FD to /dev/null,
30258# effectively closing config.log, so it can be properly (re)opened and
30259# appended to by config.status.  When coming back to configure, we
30260# need to make the FD available again.
30261if test "$no_create" != yes; then
30262  ac_cs_success=:
30263  ac_config_status_args=
30264  test "$silent" = yes &&
30265    ac_config_status_args="$ac_config_status_args --quiet"
30266  exec 5>/dev/null
30267  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30268  exec 5>>config.log
30269  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30270  # would make configure fail if this is the last instruction.
30271  $ac_cs_success || as_fn_exit 1
30272fi
30273if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30275printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30276fi
30277
30278
30279# [pairwise: --enable-full-report, --disable-full-report]
30280# Check whether --enable-full-report was given.
30281if test ${enable_full_report+y}
30282then :
30283  enableval=$enable_full_report;
30284fi
30285
30286
30287report() {
30288    echo "==============================================================================="
30289    echo "Configuration summary:"
30290    echo "-------------------------------------------------------------------------------"
30291    echo "Optional features enabled:"
30292    if test "yes" = "$with_jemalloc"; then
30293	echo "    Memory allocator: jemalloc"
30294    fi
30295    if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
30296	echo "    Mutex lock type: $with_locktype"
30297    fi
30298    test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
30299    test "no" = "$enable_dnstap" || \
30300	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
30301    test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
30302    test -z "$GSSAPI_LIBS" || echo "    GSS-API (--with-gssapi)"
30303
30304    # these lines are only printed if run with --enable-full-report
30305    if test "yes" = "$enable_full_report"; then
30306	test -z "$LIBXML2_LIBS" || echo "    XML statistics (--with-libxml2)"
30307	test -z "$JSON_C_LIBS" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
30308	test -z "$ZLIB_LIBS" || echo "    HTTP zlib compression (--with-zlib)"
30309	test -z "$LMDB_LIBS" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
30310	test -z "$LIBIDN2_LIBS" || echo "    IDN support (--with-libidn2)"
30311    fi
30312
30313    test "yes" = "$enable_dnsrps" && \
30314	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
30315    test "yes" = "$enable_fixed_rrset" && \
30316	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
30317    test "yes" = "$enable_querytrace" && \
30318	echo "    Very verbose query trace logging (--enable-querytrace)"
30319    test "yes" = "$enable_singletrace" && \
30320	echo "    Single-query trace logging (--enable-singletrace)"
30321    test -z "$HAVE_CMOCKA" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
30322
30323    test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
30324
30325    echo "-------------------------------------------------------------------------------"
30326
30327    echo "Features disabled or unavailable on this platform:"
30328    if test "no" = "$with_jemalloc"; then
30329      echo "    Memory allocator: system"
30330      echo
30331      echo "    +------------------------------------------+"
30332      echo "    |             ==== WARNING ====            |"
30333      echo "    |                                          |"
30334      echo "    | This is NOT a recommended configuration. |"
30335      echo "    | Using the system memory allocator causes |"
30336      echo "    | reduced performance and increased memory |"
30337      echo "    | fragmentation. Installing the jemalloc   |"
30338      echo "    | memory allocator (version >= 4.0.0) is   |"
30339      echo "    | strongly recommended.                    |"
30340      echo "    +------------------------------------------+"
30341      echo
30342    fi
30343    test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
30344
30345    test "no" = "$enable_dnstap" && \
30346	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
30347    test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
30348    test -z "$GSSAPI_LIBS" && echo "    GSS-API (--with-gssapi)"
30349
30350    test "no" = "$enable_dnsrps" && \
30351	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
30352
30353    test "yes" = "$enable_fixed_rrset" || \
30354	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
30355
30356    test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enable-auto-validation)"
30357
30358    test "yes" = "$enable_querytrace" || \
30359	echo "    Very verbose query trace logging (--enable-querytrace)"
30360    test "yes" = "$enable_singletrace" || \
30361	echo "    Single-query trace logging (--enable-singletrace)"
30362
30363    test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
30364
30365    test -z "$LIBXML2_LIBS" && echo "    XML statistics (--with-libxml2)"
30366    test -z "$JSON_C_LIBS" && echo "    JSON statistics (--with-json-c)"
30367    test -z "$ZLIB_LIBS" && echo "    HTTP zlib compression (--with-zlib)"
30368    test -z "$LMDB_LIBS" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
30369    test -z "$LIBIDN2_LIBS" && echo "    IDN support (--with-libidn2)"
30370
30371    echo "-------------------------------------------------------------------------------"
30372    echo "Configured paths:"
30373    echo "    prefix: $prefix"
30374    echo "    sysconfdir: $sysconfdir"
30375    echo "    localstatedir: $localstatedir"
30376    echo "-------------------------------------------------------------------------------"
30377    echo "Compiler: $CC"
30378    if test "$GCC" = "yes"
30379then :
30380  $CC --version 2>&1 | sed 's/^/    /'
30381else $as_nop
30382  case $host in #(
30383  *-solaris*) :
30384    $CC -V 2>&1 | sed 's/^/    /' ;; #(
30385  *) :
30386    $CC --version 2>&1 | sed 's/^/    /' ;;
30387esac
30388fi
30389    echo "CFLAGS: $STD_CFLAGS $CFLAGS"
30390    echo "CPPFLAGS: $STD_CPPFLAGS $CPPFLAGS"
30391    echo "LDFLAGS: $LDFLAGS"
30392
30393    if test "X$ac_unrecognized_opts" != "X"; then
30394	echo "-------------------------------------------------------------------------------"
30395	echo "Unrecognized options:"
30396	echo "    $ac_unrecognized_opts"
30397    fi
30398
30399    if test "yes" != "$enable_full_report"; then
30400	echo "-------------------------------------------------------------------------------"
30401	echo "For more detail, use --enable-full-report."
30402    fi
30403    echo "==============================================================================="
30404}
30405
30406if test "yes" != "$silent"; then
30407	report
30408fi
30409
30410# Tell Emacs to edit this file in shell mode.
30411# Local Variables:
30412# mode: sh
30413# End:
30414
30415