Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.14
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for BIND 9.16.
      4 #
      5 # Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
      6 #
      7 #
      8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      9 #
     10 #
     11 # This configure script is free software; the Free Software Foundation
     12 # gives unlimited permission to copy, distribute and modify it.
     13 ## -------------------- ##
     14 ## M4sh Initialization. ##
     15 ## -------------------- ##
     16 
     17 # Be more Bourne compatible
     18 DUALCASE=1; export DUALCASE # for MKS sh
     19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     20   emulate sh
     21   NULLCMD=:
     22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     23   # is contrary to our usage.  Disable this feature.
     24   alias -g '${1+"$@"}'='"$@"'
     25   setopt NO_GLOB_SUBST
     26 else
     27   case `(set -o) 2>/dev/null` in #(
     28   *posix*) :
     29     set -o posix ;; #(
     30   *) :
     31      ;;
     32 esac
     33 fi
     34 
     35 
     36 as_nl='
     37 '
     38 export as_nl
     39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     43 # Prefer a ksh shell builtin over an external printf program on Solaris,
     44 # but without wasting forks for bash or zsh.
     45 if test -z "$BASH_VERSION$ZSH_VERSION" \
     46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     47   as_echo='print -r --'
     48   as_echo_n='print -rn --'
     49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     50   as_echo='printf %s\n'
     51   as_echo_n='printf %s'
     52 else
     53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     55     as_echo_n='/usr/ucb/echo -n'
     56   else
     57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     58     as_echo_n_body='eval
     59       arg=$1;
     60       case $arg in #(
     61       *"$as_nl"*)
     62 	expr "X$arg" : "X\\(.*\\)$as_nl";
     63 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     64       esac;
     65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     66     '
     67     export as_echo_n_body
     68     as_echo_n='sh -c $as_echo_n_body as_echo'
     69   fi
     70   export as_echo_body
     71   as_echo='sh -c $as_echo_body as_echo'
     72 fi
     73 
     74 # The user is always right.
     75 if test "${PATH_SEPARATOR+set}" != set; then
     76   PATH_SEPARATOR=:
     77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     79       PATH_SEPARATOR=';'
     80   }
     81 fi
     82 
     83 
     84 # IFS
     85 # We need space, tab and new line, in precisely that order.  Quoting is
     86 # there to prevent editors from complaining about space-tab.
     87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     88 # splitting by setting IFS to empty value.)
     89 IFS=" ""	$as_nl"
     90 
     91 # Find who we are.  Look in the path if we contain no directory separator.
     92 as_myself=
     93 case $0 in #((
     94   *[\\/]* ) as_myself=$0 ;;
     95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     96 for as_dir in $PATH
     97 do
     98   IFS=$as_save_IFS
     99   test -z "$as_dir" && as_dir=.
    100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    101   done
    102 IFS=$as_save_IFS
    103 
    104      ;;
    105 esac
    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.
    108 if test "x$as_myself" = x; then
    109   as_myself=$0
    110 fi
    111 if test ! -f "$as_myself"; then
    112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    113   exit 1
    114 fi
    115 
    116 # Unset variables that we do not need and which cause bugs (e.g. in
    117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    118 # suppresses any "Segmentation fault" message there.  '((' could
    119 # trigger a bug in pdksh 5.2.14.
    120 for as_var in BASH_ENV ENV MAIL MAILPATH
    121 do eval test x\${$as_var+set} = xset \
    122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    123 done
    124 PS1='$ '
    125 PS2='> '
    126 PS4='+ '
    127 
    128 # NLS nuisances.
    129 LC_ALL=C
    130 export LC_ALL
    131 LANGUAGE=C
    132 export LANGUAGE
    133 
    134 # CDPATH.
    135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    136 
    137 # Use a proper internal environment variable to ensure we don't fall
    138   # into an infinite loop, continuously re-executing ourselves.
    139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    140     _as_can_reexec=no; export _as_can_reexec;
    141     # We cannot yet assume a decent shell, so we have to provide a
    142 # neutralization value for shells without unset; and this also
    143 # works around shells that cannot unset nonexistent variables.
    144 # Preserve -v and -x to the replacement shell.
    145 BASH_ENV=/dev/null
    146 ENV=/dev/null
    147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    148 case $- in # ((((
    149   *v*x* | *x*v* ) as_opts=-vx ;;
    150   *v* ) as_opts=-v ;;
    151   *x* ) as_opts=-x ;;
    152   * ) as_opts= ;;
    153 esac
    154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    155 # Admittedly, this is quite paranoid, since all the known shells bail
    156 # out after a failed `exec'.
    157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    158 as_fn_exit 255
    159   fi
    160   # We don't want this to propagate to other subprocesses.
    161           { _as_can_reexec=; unset _as_can_reexec;}
    162 if test "x$CONFIG_SHELL" = x; then
    163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    164   emulate sh
    165   NULLCMD=:
    166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    167   # is contrary to our usage.  Disable this feature.
    168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    169   setopt NO_GLOB_SUBST
    170 else
    171   case \`(set -o) 2>/dev/null\` in #(
    172   *posix*) :
    173     set -o posix ;; #(
    174   *) :
    175      ;;
    176 esac
    177 fi
    178 "
    179   as_required="as_fn_return () { (exit \$1); }
    180 as_fn_success () { as_fn_return 0; }
    181 as_fn_failure () { as_fn_return 1; }
    182 as_fn_ret_success () { return 0; }
    183 as_fn_ret_failure () { return 1; }
    184 
    185 exitcode=0
    186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    191 
    192 else
    193   exitcode=1; echo positional parameters were not saved.
    194 fi
    195 test x\$exitcode = x0 || exit 1
    196 test -x / || exit 1"
    197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1
    202 
    203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    207     PATH=/empty FPATH=/empty; export PATH FPATH
    208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
    210   if (eval "$as_required") 2>/dev/null; then :
    211   as_have_required=yes
    212 else
    213   as_have_required=no
    214 fi
    215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    216 
    217 else
    218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    219 as_found=false
    220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    221 do
    222   IFS=$as_save_IFS
    223   test -z "$as_dir" && as_dir=.
    224   as_found=:
    225   case $as_dir in #(
    226 	 /*)
    227 	   for as_base in sh bash ksh sh5; do
    228 	     # Try only shells that exist, to save several forks.
    229 	     as_shell=$as_dir/$as_base
    230 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    231 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    232   CONFIG_SHELL=$as_shell as_have_required=yes
    233 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    234   break 2
    235 fi
    236 fi
    237 	   done;;
    238        esac
    239   as_found=false
    240 done
    241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    242 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    243   CONFIG_SHELL=$SHELL as_have_required=yes
    244 fi; }
    245 IFS=$as_save_IFS
    246 
    247 
    248       if test "x$CONFIG_SHELL" != x; then :
    249   export CONFIG_SHELL
    250              # We cannot yet assume a decent shell, so we have to provide a
    251 # neutralization value for shells without unset; and this also
    252 # works around shells that cannot unset nonexistent variables.
    253 # Preserve -v and -x to the replacement shell.
    254 BASH_ENV=/dev/null
    255 ENV=/dev/null
    256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    257 case $- in # ((((
    258   *v*x* | *x*v* ) as_opts=-vx ;;
    259   *v* ) as_opts=-v ;;
    260   *x* ) as_opts=-x ;;
    261   * ) as_opts= ;;
    262 esac
    263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    264 # Admittedly, this is quite paranoid, since all the known shells bail
    265 # out after a failed `exec'.
    266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    267 exit 255
    268 fi
    269 
    270     if test x$as_have_required = xno; then :
    271   $as_echo "$0: This script requires a shell more modern than all"
    272   $as_echo "$0: the shells that I found on your system."
    273   if test x${ZSH_VERSION+set} = xset ; then
    274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    276   else
    277     $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
    278 $0: https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug
    279 $0: about your system, including any error possibly output
    280 $0: before this message. Then install a modern shell, or
    281 $0: manually run the script under such a shell if you do
    282 $0: have one."
    283   fi
    284   exit 1
    285 fi
    286 fi
    287 fi
    288 SHELL=${CONFIG_SHELL-/bin/sh}
    289 export SHELL
    290 # Unset more variables known to interfere with behavior of common tools.
    291 CLICOLOR_FORCE= GREP_OPTIONS=
    292 unset CLICOLOR_FORCE GREP_OPTIONS
    293 
    294 ## --------------------- ##
    295 ## M4sh Shell Functions. ##
    296 ## --------------------- ##
    297 # as_fn_unset VAR
    298 # ---------------
    299 # Portably unset VAR.
    300 as_fn_unset ()
    301 {
    302   { eval $1=; unset $1;}
    303 }
    304 as_unset=as_fn_unset
    305 
    306 # as_fn_set_status STATUS
    307 # -----------------------
    308 # Set $? to STATUS, without forking.
    309 as_fn_set_status ()
    310 {
    311   return $1
    312 } # as_fn_set_status
    313 
    314 # as_fn_exit STATUS
    315 # -----------------
    316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    317 as_fn_exit ()
    318 {
    319   set +e
    320   as_fn_set_status $1
    321   exit $1
    322 } # as_fn_exit
    323 
    324 # as_fn_mkdir_p
    325 # -------------
    326 # Create "$as_dir" as a directory, including parents if necessary.
    327 as_fn_mkdir_p ()
    328 {
    329 
    330   case $as_dir in #(
    331   -*) as_dir=./$as_dir;;
    332   esac
    333   test -d "$as_dir" || eval $as_mkdir_p || {
    334     as_dirs=
    335     while :; do
    336       case $as_dir in #(
    337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    338       *) as_qdir=$as_dir;;
    339       esac
    340       as_dirs="'$as_qdir' $as_dirs"
    341       as_dir=`$as_dirname -- "$as_dir" ||
    342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    343 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    344 	 X"$as_dir" : 'X\(//\)$' \| \
    345 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    346 $as_echo X"$as_dir" |
    347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  /^X\(\/\/\)[^/].*/{
    352 	    s//\1/
    353 	    q
    354 	  }
    355 	  /^X\(\/\/\)$/{
    356 	    s//\1/
    357 	    q
    358 	  }
    359 	  /^X\(\/\).*/{
    360 	    s//\1/
    361 	    q
    362 	  }
    363 	  s/.*/./; q'`
    364       test -d "$as_dir" && break
    365     done
    366     test -z "$as_dirs" || eval "mkdir $as_dirs"
    367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    368 
    369 
    370 } # as_fn_mkdir_p
    371 
    372 # as_fn_executable_p FILE
    373 # -----------------------
    374 # Test if FILE is an executable regular file.
    375 as_fn_executable_p ()
    376 {
    377   test -f "$1" && test -x "$1"
    378 } # as_fn_executable_p
    379 # as_fn_append VAR VALUE
    380 # ----------------------
    381 # Append the text in VALUE to the end of the definition contained in VAR. Take
    382 # advantage of any shell optimizations that allow amortized linear growth over
    383 # repeated appends, instead of the typical quadratic growth present in naive
    384 # implementations.
    385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    386   eval 'as_fn_append ()
    387   {
    388     eval $1+=\$2
    389   }'
    390 else
    391   as_fn_append ()
    392   {
    393     eval $1=\$$1\$2
    394   }
    395 fi # as_fn_append
    396 
    397 # as_fn_arith ARG...
    398 # ------------------
    399 # Perform arithmetic evaluation on the ARGs, and store the result in the
    400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    401 # must be portable across $(()) and expr.
    402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    403   eval 'as_fn_arith ()
    404   {
    405     as_val=$(( $* ))
    406   }'
    407 else
    408   as_fn_arith ()
    409   {
    410     as_val=`expr "$@" || test $? -eq 1`
    411   }
    412 fi # as_fn_arith
    413 
    414 
    415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    416 # ----------------------------------------
    417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    419 # script with STATUS, using 1 if that was 0.
    420 as_fn_error ()
    421 {
    422   as_status=$1; test $as_status -eq 0 && as_status=1
    423   if test "$4"; then
    424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    426   fi
    427   $as_echo "$as_me: error: $2" >&2
    428   as_fn_exit $as_status
    429 } # as_fn_error
    430 
    431 if expr a : '\(a\)' >/dev/null 2>&1 &&
    432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    433   as_expr=expr
    434 else
    435   as_expr=false
    436 fi
    437 
    438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    439   as_basename=basename
    440 else
    441   as_basename=false
    442 fi
    443 
    444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    445   as_dirname=dirname
    446 else
    447   as_dirname=false
    448 fi
    449 
    450 as_me=`$as_basename -- "$0" ||
    451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    452 	 X"$0" : 'X\(//\)$' \| \
    453 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    454 $as_echo X/"$0" |
    455     sed '/^.*\/\([^/][^/]*\)\/*$/{
    456 	    s//\1/
    457 	    q
    458 	  }
    459 	  /^X\/\(\/\/\)$/{
    460 	    s//\1/
    461 	    q
    462 	  }
    463 	  /^X\/\(\/\).*/{
    464 	    s//\1/
    465 	    q
    466 	  }
    467 	  s/.*/./; q'`
    468 
    469 # Avoid depending upon Character Ranges.
    470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    473 as_cr_digits='0123456789'
    474 as_cr_alnum=$as_cr_Letters$as_cr_digits
    475 
    476 
    477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    482   sed -n '
    483     p
    484     /[$]LINENO/=
    485   ' <$as_myself |
    486     sed '
    487       s/[$]LINENO.*/&-/
    488       t lineno
    489       b
    490       :lineno
    491       N
    492       :loop
    493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    494       t loop
    495       s/-\n.*//
    496     ' >$as_me.lineno &&
    497   chmod +x "$as_me.lineno" ||
    498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    499 
    500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    501   # already done that, so ensure we don't try to do so again and fall
    502   # in an infinite loop.  This has already happened in practice.
    503   _as_can_reexec=no; export _as_can_reexec
    504   # Don't try to exec as it changes $[0], causing all sort of problems
    505   # (the dirname of $[0] is not the place where we might find the
    506   # original and so on.  Autoconf is especially sensitive to this).
    507   . "./$as_me.lineno"
    508   # Exit status is that of the last command.
    509   exit
    510 }
    511 
    512 ECHO_C= ECHO_N= ECHO_T=
    513 case `echo -n x` in #(((((
    514 -n*)
    515   case `echo 'xy\c'` in
    516   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    517   xy)  ECHO_C='\c';;
    518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    519        ECHO_T='	';;
    520   esac;;
    521 *)
    522   ECHO_N='-n';;
    523 esac
    524 
    525 rm -f conf$$ conf$$.exe conf$$.file
    526 if test -d conf$$.dir; then
    527   rm -f conf$$.dir/conf$$.file
    528 else
    529   rm -f conf$$.dir
    530   mkdir conf$$.dir 2>/dev/null
    531 fi
    532 if (echo >conf$$.file) 2>/dev/null; then
    533   if ln -s conf$$.file conf$$ 2>/dev/null; then
    534     as_ln_s='ln -s'
    535     # ... but there are two gotchas:
    536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    538     # In both cases, we have to default to `cp -pR'.
    539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    540       as_ln_s='cp -pR'
    541   elif ln conf$$.file conf$$ 2>/dev/null; then
    542     as_ln_s=ln
    543   else
    544     as_ln_s='cp -pR'
    545   fi
    546 else
    547   as_ln_s='cp -pR'
    548 fi
    549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    550 rmdir conf$$.dir 2>/dev/null
    551 
    552 if mkdir -p . 2>/dev/null; then
    553   as_mkdir_p='mkdir -p "$as_dir"'
    554 else
    555   test -d ./-p && rmdir ./-p
    556   as_mkdir_p=false
    557 fi
    558 
    559 as_test_x='test -x'
    560 as_executable_p=as_fn_executable_p
    561 
    562 # Sed expression to map a string onto a valid CPP name.
    563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    564 
    565 # Sed expression to map a string onto a valid variable name.
    566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    567 
    568 SHELL=${CONFIG_SHELL-/bin/sh}
    569 
    570 
    571 test -n "$DJDIR" || exec 7<&0 </dev/null
    572 exec 6>&1
    573 
    574 # Name of the host.
    575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    576 # so uname gets run too.
    577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    578 
    579 #
    580 # Initializations.
    581 #
    582 ac_default_prefix=/usr/local
    583 ac_clean_files=
    584 ac_config_libobj_dir=.
    585 LIBOBJS=
    586 cross_compiling=no
    587 subdirs=
    588 MFLAGS=
    589 MAKEFLAGS=
    590 
    591 # Identity of this package.
    592 PACKAGE_NAME='BIND'
    593 PACKAGE_TARNAME='bind'
    594 PACKAGE_VERSION='9.16'
    595 PACKAGE_STRING='BIND 9.16'
    596 PACKAGE_BUGREPORT='https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug'
    597 PACKAGE_URL='https://www.isc.org/downloads/'
    598 
    599 # Factoring default headers for most tests.
    600 ac_includes_default="\
    601 #include <stdio.h>
    602 #ifdef HAVE_SYS_TYPES_H
    603 # include <sys/types.h>
    604 #endif
    605 #ifdef HAVE_SYS_STAT_H
    606 # include <sys/stat.h>
    607 #endif
    608 #ifdef STDC_HEADERS
    609 # include <stdlib.h>
    610 # include <stddef.h>
    611 #else
    612 # ifdef HAVE_STDLIB_H
    613 #  include <stdlib.h>
    614 # endif
    615 #endif
    616 #ifdef HAVE_STRING_H
    617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    618 #  include <memory.h>
    619 # endif
    620 # include <string.h>
    621 #endif
    622 #ifdef HAVE_STRINGS_H
    623 # include <strings.h>
    624 #endif
    625 #ifdef HAVE_INTTYPES_H
    626 # include <inttypes.h>
    627 #endif
    628 #ifdef HAVE_STDINT_H
    629 # include <stdint.h>
    630 #endif
    631 #ifdef HAVE_UNISTD_H
    632 # include <unistd.h>
    633 #endif"
    634 
    635 ac_subst_vars='LTLIBOBJS
    636 LIBOBJS
    637 BUILD_LIBS
    638 BUILD_LDFLAGS
    639 BUILD_CPPFLAGS
    640 BUILD_CFLAGS
    641 BUILD_CC
    642 DLZ_DRIVER_MYSQL_LIBS
    643 DLZ_DRIVER_MYSQL_INCLUDES
    644 DLZ_SYSTEM_TEST
    645 DLZ_DRIVER_OBJS
    646 DLZ_DRIVER_SRCS
    647 DLZ_DRIVER_LIBS
    648 DLZ_DRIVER_INCLUDES
    649 CONTRIB_DLZ
    650 MYSQL_CONFIG
    651 PG_CONFIG
    652 SO_TARGETS
    653 SO_STRIP
    654 SO_LD
    655 SO_LDFLAGS
    656 SO_CFLAGS
    657 SO
    658 BIND9_CONFIGARGS
    659 BIND9_SRCID
    660 BIND9_VERSIONSTRING
    661 BIND9_MAJOR
    662 BIND9_VERSION
    663 BIND9_DESCRIPTION
    664 BIND9_PRODUCT
    665 BIND9_IRS_BUILDINCLUDE
    666 BIND9_BIND9_BUILDINCLUDE
    667 BIND9_NS_BUILDINCLUDE
    668 BIND9_DNS_BUILDINCLUDE
    669 BIND9_ISCCFG_BUILDINCLUDE
    670 BIND9_ISCCC_BUILDINCLUDE
    671 BIND9_ISC_BUILDINCLUDE
    672 BIND9_TOP_BUILDDIR
    673 LD_WRAP_TESTS
    674 UNITTESTS
    675 KYUA
    676 CMOCKA_LIBS
    677 CMOCKA_CFLAGS
    678 LIBIDN2_LDFLAGS
    679 LIBIDN2_LIBS
    680 LIBIDN2_CFLAGS
    681 XSLTPROC
    682 CURL
    683 DOXYGEN
    684 MANSRCS
    685 PDFTARGET
    686 HTMLTARGET
    687 PDFLATEX
    688 RELEASE_DATE
    689 HAVE_XELATEX_FALSE
    690 HAVE_XELATEX_TRUE
    691 LATEXMK
    692 XELATEX
    693 HAVE_SPHINX_BUILD_FALSE
    694 HAVE_SPHINX_BUILD_TRUE
    695 SPHINX_BUILD
    696 FSTRM_LIBS
    697 FSTRM_CFLAGS
    698 PROTOBUF_C_LIBS
    699 PROTOBUF_C_CFLAGS
    700 DNSTAP_MANS
    701 DNSTAPTARGETS
    702 DNSTAPOBJS
    703 DNSTAPSRCS
    704 DNSTAP
    705 FSTRM_CAPTURE
    706 PROTOC_C
    707 ISC_PLATFORM_HAVESYSUNH
    708 LIBCAP_LIBS
    709 DST_EXTRA_SRCS
    710 DST_EXTRA_OBJS
    711 READLINE_LIB
    712 BIND9_CO_RULE
    713 LIBTOOL_MODE_UNINSTALL
    714 LIBTOOL_MODE_LINK
    715 LIBTOOL_MODE_INSTALL
    716 LIBTOOL_MODE_COMPILE
    717 LIBTOOL_MKDEP_SED
    718 SA
    719 A
    720 O
    721 ALWAYS_MAKE_SYMTABLE
    722 MKSYMTBL_PROGRAM
    723 PURIFY
    724 purify_path
    725 MKDEPPROG
    726 MKDEPCFLAGS
    727 MKDEPCC
    728 ZLIB_LIBS
    729 ZLIB_CFLAGS
    730 JSON_C_LIBS
    731 JSON_C_CFLAGS
    732 LIBXML2_LIBS
    733 LIBXML2_CFLAGS
    734 NZD_MANS
    735 NZDTARGETS
    736 NZDSRCS
    737 NZD_TOOLS
    738 LMDB_LIBS
    739 LMDB_CFLAGS
    740 DNS_CRYPTO_LIBS
    741 DNS_GSSAPI_LIBS
    742 DST_GSSAPI_INC
    743 USE_GSSAPI
    744 ISC_PLATFORM_KRB5HEADER
    745 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    746 ISC_PLATFORM_GSSAPIHEADER
    747 KRB5_CONFIG
    748 CRYPTO
    749 PKCS11_MANS
    750 PKCS11_TOOLS
    751 PKCS11_TEST
    752 OPENSSL_LIBS
    753 OPENSSL_CFLAGS
    754 NO_LIBTOOL_DNSLIBS
    755 NO_LIBTOOL_ISCLIBS
    756 INSTALL_LIBRARY
    757 ALWAYS_DEFINES
    758 LIBUV_LIBS
    759 LIBUV_CFLAGS
    760 PTHREAD_CFLAGS
    761 PTHREAD_LIBS
    762 PTHREAD_CC
    763 ax_pthread_config
    764 GEOIP2LINKOBJS
    765 GEOIP2LINKSRCS
    766 MAXMINDDB_PREFIX
    767 MAXMINDDB_LIBS
    768 MAXMINDDB_CFLAGS
    769 ISC_PLATFORM_NORETURN_POST
    770 ISC_PLATFORM_NORETURN_PRE
    771 PYTEST
    772 expanded_sysconfdir
    773 PYTHON_INSTALL_LIB
    774 PYTHON_INSTALL_DIR
    775 PYTHON_TOOLS
    776 KEYMGR
    777 COVERAGE
    778 CHECKDS
    779 PYTHON
    780 PERL
    781 PANDOC
    782 W3M
    783 LN
    784 ARFLAGS
    785 XTARGETS
    786 PKG_CONFIG_LIBDIR
    787 PKG_CONFIG_PATH
    788 PKG_CONFIG
    789 BACKTRACECFLAGS
    790 CCNOOPT
    791 CCOPT
    792 STD_CWARNINGS
    793 STD_CDEFINES
    794 STD_CINCLUDES
    795 MKDIR_P
    796 INSTALL_DATA
    797 INSTALL_SCRIPT
    798 INSTALL_PROGRAM
    799 LT_SYS_LIBRARY_PATH
    800 OTOOL64
    801 OTOOL
    802 LIPO
    803 NMEDIT
    804 DSYMUTIL
    805 MANIFEST_TOOL
    806 AWK
    807 RANLIB
    808 STRIP
    809 ac_ct_AR
    810 AR
    811 DLLTOOL
    812 OBJDUMP
    813 LN_S
    814 NM
    815 ac_ct_DUMPBIN
    816 DUMPBIN
    817 LD
    818 FGREP
    819 SED
    820 LIBTOOL
    821 SET_MAKE
    822 LFS_LIBS
    823 LFS_LDFLAGS
    824 LFS_CFLAGS
    825 EGREP
    826 GREP
    827 CPP
    828 OBJEXT
    829 EXEEXT
    830 ac_ct_CC
    831 CPPFLAGS
    832 LDFLAGS
    833 CFLAGS
    834 CC
    835 host_os
    836 host_vendor
    837 host_cpu
    838 host
    839 build_os
    840 build_vendor
    841 build_cpu
    842 build
    843 MAINT
    844 MAINTAINER_MODE_FALSE
    845 MAINTAINER_MODE_TRUE
    846 target_alias
    847 host_alias
    848 build_alias
    849 LIBS
    850 ECHO_T
    851 ECHO_N
    852 ECHO_C
    853 DEFS
    854 mandir
    855 localedir
    856 libdir
    857 psdir
    858 pdfdir
    859 dvidir
    860 htmldir
    861 infodir
    862 docdir
    863 oldincludedir
    864 includedir
    865 localstatedir
    866 sharedstatedir
    867 sysconfdir
    868 datadir
    869 datarootdir
    870 libexecdir
    871 sbindir
    872 bindir
    873 program_transform_name
    874 prefix
    875 exec_prefix
    876 PACKAGE_URL
    877 PACKAGE_BUGREPORT
    878 PACKAGE_STRING
    879 PACKAGE_VERSION
    880 PACKAGE_TARNAME
    881 PACKAGE_NAME
    882 PATH_SEPARATOR
    883 SHELL'
    884 ac_subst_files='BIND9_MAKE_INCLUDES
    885 BIND9_MAKE_RULES
    886 LIBDNS_MAPAPI
    887 DLZ_DRIVER_RULES'
    888 ac_user_opts='
    889 enable_option_checking
    890 enable_maintainer_mode
    891 enable_largefile
    892 enable_shared
    893 enable_static
    894 with_pic
    895 enable_fast_install
    896 with_aix_soname
    897 with_gnu_ld
    898 with_sysroot
    899 enable_libtool_lock
    900 enable_buffer_useinline
    901 enable_warn_shadow
    902 enable_warn_error
    903 enable_developer
    904 enable_fuzzing
    905 with_python
    906 with_python_install_dir
    907 enable_kqueue
    908 enable_epoll
    909 enable_devpoll
    910 with_geoip2
    911 enable_geoip
    912 with_maxminddb
    913 with_locktype
    914 with_libtool
    915 enable_pthread_rwlock
    916 with_openssl
    917 enable_fips_mode
    918 enable_native_pkcs11
    919 with_pkcs11
    920 with_gssapi
    921 with_lmdb
    922 with_libxml2
    923 with_libjson
    924 with_json_c
    925 with_zlib
    926 with_purify
    927 with_gperftools_profiler
    928 enable_backtrace
    929 enable_symtable
    930 enable_tcp_fastopen
    931 with_readline
    932 enable_chroot
    933 enable_linux_caps
    934 enable_fixed_rrset
    935 enable_dnstap
    936 with_protobuf_c
    937 with_libfstrm
    938 with_libidn2
    939 with_cmocka
    940 with_tuning
    941 enable_querytrace
    942 enable_auto_validation
    943 with_dlopen
    944 enable_dnsrps_dl
    945 with_dnsrps_libname
    946 with_dnsrps_dir
    947 enable_dnsrps
    948 with_dlz_postgres
    949 with_dlz_mysql
    950 with_dlz_bdb
    951 with_dlz_filesystem
    952 with_dlz_ldap
    953 with_dlz_odbc
    954 with_dlz_stub
    955 with_make_clean
    956 enable_full_report
    957 '
    958       ac_precious_vars='build_alias
    959 host_alias
    960 target_alias
    961 CC
    962 CFLAGS
    963 LDFLAGS
    964 LIBS
    965 CPPFLAGS
    966 CPP
    967 LT_SYS_LIBRARY_PATH
    968 PKG_CONFIG
    969 PKG_CONFIG_PATH
    970 PKG_CONFIG_LIBDIR
    971 PYTHON
    972 MAXMINDDB_CFLAGS
    973 MAXMINDDB_LIBS
    974 MAXMINDDB_PREFIX
    975 LIBUV_CFLAGS
    976 LIBUV_LIBS
    977 OPENSSL_CFLAGS
    978 OPENSSL_LIBS
    979 LIBXML2_CFLAGS
    980 LIBXML2_LIBS
    981 JSON_C_CFLAGS
    982 JSON_C_LIBS
    983 ZLIB_CFLAGS
    984 ZLIB_LIBS
    985 SPHINX_BUILD
    986 LIBIDN2_CFLAGS
    987 LIBIDN2_LIBS
    988 CMOCKA_CFLAGS
    989 CMOCKA_LIBS
    990 KYUA'
    991 
    992 
    993 # Initialize some variables set by options.
    994 ac_init_help=
    995 ac_init_version=false
    996 ac_unrecognized_opts=
    997 ac_unrecognized_sep=
    998 # The variables have the same names as the options, with
    999 # dashes changed to underlines.
   1000 cache_file=/dev/null
   1001 exec_prefix=NONE
   1002 no_create=
   1003 no_recursion=
   1004 prefix=NONE
   1005 program_prefix=NONE
   1006 program_suffix=NONE
   1007 program_transform_name=s,x,x,
   1008 silent=
   1009 site=
   1010 srcdir=
   1011 verbose=
   1012 x_includes=NONE
   1013 x_libraries=NONE
   1014 
   1015 # Installation directory options.
   1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1017 # and all the variables that are supposed to be based on exec_prefix
   1018 # by default will actually change.
   1019 # Use braces instead of parens because sh, perl, etc. also accept them.
   1020 # (The list follows the same order as the GNU Coding Standards.)
   1021 bindir='${exec_prefix}/bin'
   1022 sbindir='${exec_prefix}/sbin'
   1023 libexecdir='${exec_prefix}/libexec'
   1024 datarootdir='${prefix}/share'
   1025 datadir='${datarootdir}'
   1026 sysconfdir='${prefix}/etc'
   1027 sharedstatedir='${prefix}/com'
   1028 localstatedir='${prefix}/var'
   1029 includedir='${prefix}/include'
   1030 oldincludedir='/usr/include'
   1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1032 infodir='${datarootdir}/info'
   1033 htmldir='${docdir}'
   1034 dvidir='${docdir}'
   1035 pdfdir='${docdir}'
   1036 psdir='${docdir}'
   1037 libdir='${exec_prefix}/lib'
   1038 localedir='${datarootdir}/locale'
   1039 mandir='${datarootdir}/man'
   1040 
   1041 ac_prev=
   1042 ac_dashdash=
   1043 for ac_option
   1044 do
   1045   # If the previous option needs an argument, assign it.
   1046   if test -n "$ac_prev"; then
   1047     eval $ac_prev=\$ac_option
   1048     ac_prev=
   1049     continue
   1050   fi
   1051 
   1052   case $ac_option in
   1053   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1054   *=)   ac_optarg= ;;
   1055   *)    ac_optarg=yes ;;
   1056   esac
   1057 
   1058   # Accept the important Cygnus configure options, so we can diagnose typos.
   1059 
   1060   case $ac_dashdash$ac_option in
   1061   --)
   1062     ac_dashdash=yes ;;
   1063 
   1064   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1065     ac_prev=bindir ;;
   1066   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1067     bindir=$ac_optarg ;;
   1068 
   1069   -build | --build | --buil | --bui | --bu)
   1070     ac_prev=build_alias ;;
   1071   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1072     build_alias=$ac_optarg ;;
   1073 
   1074   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1075   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1076     ac_prev=cache_file ;;
   1077   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1078   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1079     cache_file=$ac_optarg ;;
   1080 
   1081   --config-cache | -C)
   1082     cache_file=config.cache ;;
   1083 
   1084   -datadir | --datadir | --datadi | --datad)
   1085     ac_prev=datadir ;;
   1086   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1087     datadir=$ac_optarg ;;
   1088 
   1089   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1090   | --dataroo | --dataro | --datar)
   1091     ac_prev=datarootdir ;;
   1092   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1093   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1094     datarootdir=$ac_optarg ;;
   1095 
   1096   -disable-* | --disable-*)
   1097     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1098     # Reject names that are not valid shell variable names.
   1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1100       as_fn_error $? "invalid feature name: $ac_useropt"
   1101     ac_useropt_orig=$ac_useropt
   1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1103     case $ac_user_opts in
   1104       *"
   1105 "enable_$ac_useropt"
   1106 "*) ;;
   1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1108 	 ac_unrecognized_sep=', ';;
   1109     esac
   1110     eval enable_$ac_useropt=no ;;
   1111 
   1112   -docdir | --docdir | --docdi | --doc | --do)
   1113     ac_prev=docdir ;;
   1114   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1115     docdir=$ac_optarg ;;
   1116 
   1117   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1118     ac_prev=dvidir ;;
   1119   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1120     dvidir=$ac_optarg ;;
   1121 
   1122   -enable-* | --enable-*)
   1123     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1124     # Reject names that are not valid shell variable names.
   1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1126       as_fn_error $? "invalid feature name: $ac_useropt"
   1127     ac_useropt_orig=$ac_useropt
   1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1129     case $ac_user_opts in
   1130       *"
   1131 "enable_$ac_useropt"
   1132 "*) ;;
   1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1134 	 ac_unrecognized_sep=', ';;
   1135     esac
   1136     eval enable_$ac_useropt=\$ac_optarg ;;
   1137 
   1138   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1139   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1140   | --exec | --exe | --ex)
   1141     ac_prev=exec_prefix ;;
   1142   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1143   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1144   | --exec=* | --exe=* | --ex=*)
   1145     exec_prefix=$ac_optarg ;;
   1146 
   1147   -gas | --gas | --ga | --g)
   1148     # Obsolete; use --with-gas.
   1149     with_gas=yes ;;
   1150 
   1151   -help | --help | --hel | --he | -h)
   1152     ac_init_help=long ;;
   1153   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1154     ac_init_help=recursive ;;
   1155   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1156     ac_init_help=short ;;
   1157 
   1158   -host | --host | --hos | --ho)
   1159     ac_prev=host_alias ;;
   1160   -host=* | --host=* | --hos=* | --ho=*)
   1161     host_alias=$ac_optarg ;;
   1162 
   1163   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1164     ac_prev=htmldir ;;
   1165   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1166   | --ht=*)
   1167     htmldir=$ac_optarg ;;
   1168 
   1169   -includedir | --includedir | --includedi | --included | --include \
   1170   | --includ | --inclu | --incl | --inc)
   1171     ac_prev=includedir ;;
   1172   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1173   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1174     includedir=$ac_optarg ;;
   1175 
   1176   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1177     ac_prev=infodir ;;
   1178   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1179     infodir=$ac_optarg ;;
   1180 
   1181   -libdir | --libdir | --libdi | --libd)
   1182     ac_prev=libdir ;;
   1183   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1184     libdir=$ac_optarg ;;
   1185 
   1186   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1187   | --libexe | --libex | --libe)
   1188     ac_prev=libexecdir ;;
   1189   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1190   | --libexe=* | --libex=* | --libe=*)
   1191     libexecdir=$ac_optarg ;;
   1192 
   1193   -localedir | --localedir | --localedi | --localed | --locale)
   1194     ac_prev=localedir ;;
   1195   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1196     localedir=$ac_optarg ;;
   1197 
   1198   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1199   | --localstate | --localstat | --localsta | --localst | --locals)
   1200     ac_prev=localstatedir ;;
   1201   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1202   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1203     localstatedir=$ac_optarg ;;
   1204 
   1205   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1206     ac_prev=mandir ;;
   1207   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1208     mandir=$ac_optarg ;;
   1209 
   1210   -nfp | --nfp | --nf)
   1211     # Obsolete; use --without-fp.
   1212     with_fp=no ;;
   1213 
   1214   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1215   | --no-cr | --no-c | -n)
   1216     no_create=yes ;;
   1217 
   1218   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1219   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1220     no_recursion=yes ;;
   1221 
   1222   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1223   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1224   | --oldin | --oldi | --old | --ol | --o)
   1225     ac_prev=oldincludedir ;;
   1226   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1227   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1228   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1229     oldincludedir=$ac_optarg ;;
   1230 
   1231   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1232     ac_prev=prefix ;;
   1233   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1234     prefix=$ac_optarg ;;
   1235 
   1236   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1237   | --program-pre | --program-pr | --program-p)
   1238     ac_prev=program_prefix ;;
   1239   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1240   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1241     program_prefix=$ac_optarg ;;
   1242 
   1243   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1244   | --program-suf | --program-su | --program-s)
   1245     ac_prev=program_suffix ;;
   1246   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1247   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1248     program_suffix=$ac_optarg ;;
   1249 
   1250   -program-transform-name | --program-transform-name \
   1251   | --program-transform-nam | --program-transform-na \
   1252   | --program-transform-n | --program-transform- \
   1253   | --program-transform | --program-transfor \
   1254   | --program-transfo | --program-transf \
   1255   | --program-trans | --program-tran \
   1256   | --progr-tra | --program-tr | --program-t)
   1257     ac_prev=program_transform_name ;;
   1258   -program-transform-name=* | --program-transform-name=* \
   1259   | --program-transform-nam=* | --program-transform-na=* \
   1260   | --program-transform-n=* | --program-transform-=* \
   1261   | --program-transform=* | --program-transfor=* \
   1262   | --program-transfo=* | --program-transf=* \
   1263   | --program-trans=* | --program-tran=* \
   1264   | --progr-tra=* | --program-tr=* | --program-t=*)
   1265     program_transform_name=$ac_optarg ;;
   1266 
   1267   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1268     ac_prev=pdfdir ;;
   1269   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1270     pdfdir=$ac_optarg ;;
   1271 
   1272   -psdir | --psdir | --psdi | --psd | --ps)
   1273     ac_prev=psdir ;;
   1274   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1275     psdir=$ac_optarg ;;
   1276 
   1277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1278   | -silent | --silent | --silen | --sile | --sil)
   1279     silent=yes ;;
   1280 
   1281   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1282     ac_prev=sbindir ;;
   1283   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1284   | --sbi=* | --sb=*)
   1285     sbindir=$ac_optarg ;;
   1286 
   1287   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1288   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1289   | --sharedst | --shareds | --shared | --share | --shar \
   1290   | --sha | --sh)
   1291     ac_prev=sharedstatedir ;;
   1292   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1293   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1294   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1295   | --sha=* | --sh=*)
   1296     sharedstatedir=$ac_optarg ;;
   1297 
   1298   -site | --site | --sit)
   1299     ac_prev=site ;;
   1300   -site=* | --site=* | --sit=*)
   1301     site=$ac_optarg ;;
   1302 
   1303   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1304     ac_prev=srcdir ;;
   1305   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1306     srcdir=$ac_optarg ;;
   1307 
   1308   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1309   | --syscon | --sysco | --sysc | --sys | --sy)
   1310     ac_prev=sysconfdir ;;
   1311   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1312   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1313     sysconfdir=$ac_optarg ;;
   1314 
   1315   -target | --target | --targe | --targ | --tar | --ta | --t)
   1316     ac_prev=target_alias ;;
   1317   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1318     target_alias=$ac_optarg ;;
   1319 
   1320   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1321     verbose=yes ;;
   1322 
   1323   -version | --version | --versio | --versi | --vers | -V)
   1324     ac_init_version=: ;;
   1325 
   1326   -with-* | --with-*)
   1327     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1328     # Reject names that are not valid shell variable names.
   1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1330       as_fn_error $? "invalid package name: $ac_useropt"
   1331     ac_useropt_orig=$ac_useropt
   1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1333     case $ac_user_opts in
   1334       *"
   1335 "with_$ac_useropt"
   1336 "*) ;;
   1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1338 	 ac_unrecognized_sep=', ';;
   1339     esac
   1340     eval with_$ac_useropt=\$ac_optarg ;;
   1341 
   1342   -without-* | --without-*)
   1343     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1344     # Reject names that are not valid shell variable names.
   1345     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1346       as_fn_error $? "invalid package name: $ac_useropt"
   1347     ac_useropt_orig=$ac_useropt
   1348     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1349     case $ac_user_opts in
   1350       *"
   1351 "with_$ac_useropt"
   1352 "*) ;;
   1353       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1354 	 ac_unrecognized_sep=', ';;
   1355     esac
   1356     eval with_$ac_useropt=no ;;
   1357 
   1358   --x)
   1359     # Obsolete; use --with-x.
   1360     with_x=yes ;;
   1361 
   1362   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1363   | --x-incl | --x-inc | --x-in | --x-i)
   1364     ac_prev=x_includes ;;
   1365   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1366   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1367     x_includes=$ac_optarg ;;
   1368 
   1369   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1370   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1371     ac_prev=x_libraries ;;
   1372   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1373   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1374     x_libraries=$ac_optarg ;;
   1375 
   1376   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1377 Try \`$0 --help' for more information"
   1378     ;;
   1379 
   1380   *=*)
   1381     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1382     # Reject names that are not valid shell variable names.
   1383     case $ac_envvar in #(
   1384       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1385       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1386     esac
   1387     eval $ac_envvar=\$ac_optarg
   1388     export $ac_envvar ;;
   1389 
   1390   *)
   1391     # FIXME: should be removed in autoconf 3.0.
   1392     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1393     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1394       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1395     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1396     ;;
   1397 
   1398   esac
   1399 done
   1400 
   1401 if test -n "$ac_prev"; then
   1402   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1403   as_fn_error $? "missing argument to $ac_option"
   1404 fi
   1405 
   1406 if test -n "$ac_unrecognized_opts"; then
   1407   case $enable_option_checking in
   1408     no) ;;
   1409     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1410     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1411   esac
   1412 fi
   1413 
   1414 # Check all directory arguments for consistency.
   1415 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1416 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1417 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1418 		libdir localedir mandir
   1419 do
   1420   eval ac_val=\$$ac_var
   1421   # Remove trailing slashes.
   1422   case $ac_val in
   1423     */ )
   1424       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1425       eval $ac_var=\$ac_val;;
   1426   esac
   1427   # Be sure to have absolute directory names.
   1428   case $ac_val in
   1429     [\\/$]* | ?:[\\/]* )  continue;;
   1430     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1431   esac
   1432   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1433 done
   1434 
   1435 # There might be people who depend on the old broken behavior: `$host'
   1436 # used to hold the argument of --host etc.
   1437 # FIXME: To remove some day.
   1438 build=$build_alias
   1439 host=$host_alias
   1440 target=$target_alias
   1441 
   1442 # FIXME: To remove some day.
   1443 if test "x$host_alias" != x; then
   1444   if test "x$build_alias" = x; then
   1445     cross_compiling=maybe
   1446   elif test "x$build_alias" != "x$host_alias"; then
   1447     cross_compiling=yes
   1448   fi
   1449 fi
   1450 
   1451 ac_tool_prefix=
   1452 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1453 
   1454 test "$silent" = yes && exec 6>/dev/null
   1455 
   1456 
   1457 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1458 ac_ls_di=`ls -di .` &&
   1459 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1460   as_fn_error $? "working directory cannot be determined"
   1461 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1462   as_fn_error $? "pwd does not report name of working directory"
   1463 
   1464 
   1465 # Find the source files, if location was not specified.
   1466 if test -z "$srcdir"; then
   1467   ac_srcdir_defaulted=yes
   1468   # Try the directory containing this script, then the parent directory.
   1469   ac_confdir=`$as_dirname -- "$as_myself" ||
   1470 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1471 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1472 	 X"$as_myself" : 'X\(//\)$' \| \
   1473 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1474 $as_echo X"$as_myself" |
   1475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1476 	    s//\1/
   1477 	    q
   1478 	  }
   1479 	  /^X\(\/\/\)[^/].*/{
   1480 	    s//\1/
   1481 	    q
   1482 	  }
   1483 	  /^X\(\/\/\)$/{
   1484 	    s//\1/
   1485 	    q
   1486 	  }
   1487 	  /^X\(\/\).*/{
   1488 	    s//\1/
   1489 	    q
   1490 	  }
   1491 	  s/.*/./; q'`
   1492   srcdir=$ac_confdir
   1493   if test ! -r "$srcdir/$ac_unique_file"; then
   1494     srcdir=..
   1495   fi
   1496 else
   1497   ac_srcdir_defaulted=no
   1498 fi
   1499 if test ! -r "$srcdir/$ac_unique_file"; then
   1500   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1501   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1502 fi
   1503 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1504 ac_abs_confdir=`(
   1505 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1506 	pwd)`
   1507 # When building in place, set srcdir=.
   1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1509   srcdir=.
   1510 fi
   1511 # Remove unnecessary trailing slashes from srcdir.
   1512 # Double slashes in file names in object file debugging info
   1513 # mess up M-x gdb in Emacs.
   1514 case $srcdir in
   1515 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1516 esac
   1517 for ac_var in $ac_precious_vars; do
   1518   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1519   eval ac_env_${ac_var}_value=\$${ac_var}
   1520   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1521   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1522 done
   1523 
   1524 #
   1525 # Report the --help message.
   1526 #
   1527 if test "$ac_init_help" = "long"; then
   1528   # Omit some internal or obsolete options to make the list less imposing.
   1529   # This message is too long to be a string in the A/UX 3.1 sh.
   1530   cat <<_ACEOF
   1531 \`configure' configures BIND 9.16 to adapt to many kinds of systems.
   1532 
   1533 Usage: $0 [OPTION]... [VAR=VALUE]...
   1534 
   1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1536 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1537 
   1538 Defaults for the options are specified in brackets.
   1539 
   1540 Configuration:
   1541   -h, --help              display this help and exit
   1542       --help=short        display options specific to this package
   1543       --help=recursive    display the short help of all the included packages
   1544   -V, --version           display version information and exit
   1545   -q, --quiet, --silent   do not print \`checking ...' messages
   1546       --cache-file=FILE   cache test results in FILE [disabled]
   1547   -C, --config-cache      alias for \`--cache-file=config.cache'
   1548   -n, --no-create         do not create output files
   1549       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1550 
   1551 Installation directories:
   1552   --prefix=PREFIX         install architecture-independent files in PREFIX
   1553                           [$ac_default_prefix]
   1554   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1555                           [PREFIX]
   1556 
   1557 By default, \`make install' will install all the files in
   1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1560 for instance \`--prefix=\$HOME'.
   1561 
   1562 For better control, use the options below.
   1563 
   1564 Fine tuning of the installation directories:
   1565   --bindir=DIR            user executables [EPREFIX/bin]
   1566   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1567   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1568   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1569   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1570   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1571   --libdir=DIR            object code libraries [EPREFIX/lib]
   1572   --includedir=DIR        C header files [PREFIX/include]
   1573   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1574   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1575   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1576   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1577   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1578   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1579   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1580   --htmldir=DIR           html documentation [DOCDIR]
   1581   --dvidir=DIR            dvi documentation [DOCDIR]
   1582   --pdfdir=DIR            pdf documentation [DOCDIR]
   1583   --psdir=DIR             ps documentation [DOCDIR]
   1584 _ACEOF
   1585 
   1586   cat <<\_ACEOF
   1587 
   1588 System types:
   1589   --build=BUILD     configure for building on BUILD [guessed]
   1590   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1591 _ACEOF
   1592 fi
   1593 
   1594 if test -n "$ac_init_help"; then
   1595   case $ac_init_help in
   1596      short | recursive ) echo "Configuration of BIND 9.16:";;
   1597    esac
   1598   cat <<\_ACEOF
   1599 
   1600 Optional Features:
   1601   --disable-option-checking  ignore unrecognized --enable/--with options
   1602   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1603   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1604   --disable-maintainer-mode
   1605                           disable make rules and dependencies not useful (and
   1606                           sometimes confusing) to the casual installer
   1607   --disable-largefile     omit support for large files
   1608   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1609   --enable-static[=PKGS]  build static libraries [default=yes]
   1610   --enable-fast-install[=PKGS]
   1611                           optimize for fast installation [default=yes]
   1612   --disable-libtool-lock  avoid locking (might break parallel builds)
   1613   --enable-buffer-useinline
   1614                           define ISC_BUFFER_USEINLINE when compiling
   1615                           [default=yes]
   1616   --enable-warn-shadow    turn on -Wshadow when compiling
   1617   --enable-warn-error     turn on -Werror when compiling
   1618   --enable-developer      enable developer build settings
   1619   --enable-fuzzing=<afl|libfuzzer>
   1620                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1621                           (default=no)
   1622   --enable-kqueue         use BSD kqueue when available [default=yes]
   1623   --enable-epoll          use Linux epoll when available [default=auto]
   1624   --enable-devpoll        use /dev/poll when available [default=yes]
   1625   --disable-geoip         support GeoIP2 geolocation ACLs if available
   1626                           [default=yes]
   1627   --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
   1628                           implementation
   1629   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1630   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1631   --enable-backtrace      log stack backtrace on abort [default=yes]
   1632   --enable-symtable       use internal symbol table for backtrace
   1633                           [all|minimal(default)|none]
   1634   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1635   --disable-chroot        disable chroot
   1636   --disable-linux-caps    disable Linux capabilities
   1637   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1638   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1639   --enable-querytrace     enable very verbose query trace logging [default=no]
   1640   --enable-auto-validation
   1641                           turn on DNSSEC validation by default, using the IANA
   1642                           root key [default=yes]
   1643   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1644                           [default=$librpz_dl]
   1645   --enable-dnsrps         enable DNS Response Policy Service API
   1646   --enable-full-report    report values of all configure options
   1647 
   1648 Optional Packages:
   1649   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1650   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1651   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1652                           both]
   1653   --with-aix-soname=aix|svr4|both
   1654                           shared library versioning (aka "SONAME") variant to
   1655                           provide on AIX, [default=aix].
   1656   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1657   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1658                           compiler's sysroot if not specified).
   1659   --with-python=PATH      specify path to Python interpreter
   1660   --with-python-install-dir=PATH
   1661                           installation directory for Python modules
   1662   --with-geoip2           deprecated, use --with-maxminddb
   1663   --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
   1664                           [default=auto]
   1665   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1666   --with-libtool          use GNU libtool
   1667   --with-openssl=DIR      root of the OpenSSL directory
   1668   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1669                           PKCS11 provider)
   1670   --with-gssapi=PATH|/path/krb5-config
   1671                           Specify path for system-supplied GSSAPI
   1672                           [default=auto]
   1673   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1674   --with-libxml2          build with libxml2 library [yes|no|auto] (default is
   1675                           auto)
   1676   --with-libjson          deprecated, use --with-json-c
   1677   --with-json-c           build with json-c library [yes|no|detect] (default
   1678                           is detect)
   1679   --with-zlib             build with zlib for HTTP compression [default=yes]
   1680   --with-purify=PATH      use Rational purify
   1681   --with-gperftools-profiler
   1682                           use gperftools CPU profiler
   1683   --with-readline=LIBSPEC specify readline library [default auto]
   1684   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1685   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1686   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1687                           [yes|no(default)|path]
   1688   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1689   --with-tuning=ARG       Specify server tuning (default or small)
   1690   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1691   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1692   --with-dnsrps-dir       path to DNSRPS provider library
   1693   --with-dlz-postgres=PATH
   1694                           Build with Postgres DLZ driver [yes|no|path].
   1695                           (Required to use Postgres with DLZ)
   1696   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1697                           to use MySQL with DLZ)
   1698   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1699                           (Required to use Berkeley DB with DLZ)
   1700   --with-dlz-filesystem=ARG
   1701                           Build with filesystem DLZ driver [yes|no]. (Required
   1702                           to use file system driver with DLZ)
   1703   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1704                           to use LDAP with DLZ)
   1705   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1706                           to use ODBC with DLZ)
   1707   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1708                           use stub driver with DLZ)
   1709   --with-make-clean       run "make clean" at end of configure [yes|no]
   1710 
   1711 Some influential environment variables:
   1712   CC          C compiler command
   1713   CFLAGS      C compiler flags
   1714   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1715               nonstandard directory <lib dir>
   1716   LIBS        libraries to pass to the linker, e.g. -l<library>
   1717   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1718               you have headers in a nonstandard directory <include dir>
   1719   CPP         C preprocessor
   1720   LT_SYS_LIBRARY_PATH
   1721               User-defined run-time library search path.
   1722   PKG_CONFIG  path to pkg-config utility
   1723   PKG_CONFIG_PATH
   1724               directories to add to pkg-config's search path
   1725   PKG_CONFIG_LIBDIR
   1726               path overriding pkg-config's built-in search path
   1727   PYTHON      path to python executable
   1728   MAXMINDDB_CFLAGS
   1729               C compiler flags for MAXMINDDB, overriding pkg-config
   1730   MAXMINDDB_LIBS
   1731               linker flags for MAXMINDDB, overriding pkg-config
   1732   MAXMINDDB_PREFIX
   1733               value of prefix for libmaxminddb, overriding pkg-config
   1734   LIBUV_CFLAGS
   1735               C compiler flags for LIBUV, overriding pkg-config
   1736   LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
   1737   OPENSSL_CFLAGS
   1738               C compiler flags for OPENSSL, overriding pkg-config
   1739   OPENSSL_LIBS
   1740               linker flags for OPENSSL, overriding pkg-config
   1741   LIBXML2_CFLAGS
   1742               C compiler flags for LIBXML2, overriding pkg-config
   1743   LIBXML2_LIBS
   1744               linker flags for LIBXML2, overriding pkg-config
   1745   JSON_C_CFLAGS
   1746               C compiler flags for JSON_C, overriding pkg-config
   1747   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
   1748   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
   1749   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
   1750   SPHINX_BUILD
   1751               path to sphinx-build binary used to build the documentation
   1752   LIBIDN2_CFLAGS
   1753               C compiler flags for LIBIDN2, overriding pkg-config
   1754   LIBIDN2_LIBS
   1755               linker flags for LIBIDN2, overriding pkg-config
   1756   CMOCKA_CFLAGS
   1757               C compiler flags for CMOCKA, overriding pkg-config
   1758   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1759   KYUA        path to kyua execution engine
   1760 
   1761 Use these variables to override the choices made by `configure' or to help
   1762 it to find libraries and programs with nonstandard names/locations.
   1763 
   1764 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
   1765 BIND home page: <https://www.isc.org/downloads/>.
   1766 _ACEOF
   1767 ac_status=$?
   1768 fi
   1769 
   1770 if test "$ac_init_help" = "recursive"; then
   1771   # If there are subdirs, report their specific --help.
   1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1773     test -d "$ac_dir" ||
   1774       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1775       continue
   1776     ac_builddir=.
   1777 
   1778 case "$ac_dir" in
   1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1780 *)
   1781   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1782   # A ".." for each directory in $ac_dir_suffix.
   1783   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1784   case $ac_top_builddir_sub in
   1785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1787   esac ;;
   1788 esac
   1789 ac_abs_top_builddir=$ac_pwd
   1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1791 # for backward compatibility:
   1792 ac_top_builddir=$ac_top_build_prefix
   1793 
   1794 case $srcdir in
   1795   .)  # We are building in place.
   1796     ac_srcdir=.
   1797     ac_top_srcdir=$ac_top_builddir_sub
   1798     ac_abs_top_srcdir=$ac_pwd ;;
   1799   [\\/]* | ?:[\\/]* )  # Absolute name.
   1800     ac_srcdir=$srcdir$ac_dir_suffix;
   1801     ac_top_srcdir=$srcdir
   1802     ac_abs_top_srcdir=$srcdir ;;
   1803   *) # Relative name.
   1804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1805     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1807 esac
   1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1809 
   1810     cd "$ac_dir" || { ac_status=$?; continue; }
   1811     # Check for guested configure.
   1812     if test -f "$ac_srcdir/configure.gnu"; then
   1813       echo &&
   1814       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1815     elif test -f "$ac_srcdir/configure"; then
   1816       echo &&
   1817       $SHELL "$ac_srcdir/configure" --help=recursive
   1818     else
   1819       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1820     fi || ac_status=$?
   1821     cd "$ac_pwd" || { ac_status=$?; break; }
   1822   done
   1823 fi
   1824 
   1825 test -n "$ac_init_help" && exit $ac_status
   1826 if $ac_init_version; then
   1827   cat <<\_ACEOF
   1828 BIND configure 9.16
   1829 generated by GNU Autoconf 2.69
   1830 
   1831 Copyright (C) 2012 Free Software Foundation, Inc.
   1832 This configure script is free software; the Free Software Foundation
   1833 gives unlimited permission to copy, distribute and modify it.
   1834 _ACEOF
   1835   exit
   1836 fi
   1837 
   1838 ## ------------------------ ##
   1839 ## Autoconf initialization. ##
   1840 ## ------------------------ ##
   1841 
   1842 # ac_fn_c_try_compile LINENO
   1843 # --------------------------
   1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1845 ac_fn_c_try_compile ()
   1846 {
   1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1848   rm -f conftest.$ac_objext
   1849   if { { ac_try="$ac_compile"
   1850 case "(($ac_try" in
   1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1852   *) ac_try_echo=$ac_try;;
   1853 esac
   1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1855 $as_echo "$ac_try_echo"; } >&5
   1856   (eval "$ac_compile") 2>conftest.err
   1857   ac_status=$?
   1858   if test -s conftest.err; then
   1859     grep -v '^ *+' conftest.err >conftest.er1
   1860     cat conftest.er1 >&5
   1861     mv -f conftest.er1 conftest.err
   1862   fi
   1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1864   test $ac_status = 0; } && {
   1865 	 test -z "$ac_c_werror_flag" ||
   1866 	 test ! -s conftest.err
   1867        } && test -s conftest.$ac_objext; then :
   1868   ac_retval=0
   1869 else
   1870   $as_echo "$as_me: failed program was:" >&5
   1871 sed 's/^/| /' conftest.$ac_ext >&5
   1872 
   1873 	ac_retval=1
   1874 fi
   1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1876   as_fn_set_status $ac_retval
   1877 
   1878 } # ac_fn_c_try_compile
   1879 
   1880 # ac_fn_c_try_cpp LINENO
   1881 # ----------------------
   1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1883 ac_fn_c_try_cpp ()
   1884 {
   1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1886   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1887 case "(($ac_try" in
   1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1889   *) ac_try_echo=$ac_try;;
   1890 esac
   1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1892 $as_echo "$ac_try_echo"; } >&5
   1893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1894   ac_status=$?
   1895   if test -s conftest.err; then
   1896     grep -v '^ *+' conftest.err >conftest.er1
   1897     cat conftest.er1 >&5
   1898     mv -f conftest.er1 conftest.err
   1899   fi
   1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1901   test $ac_status = 0; } > conftest.i && {
   1902 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1903 	 test ! -s conftest.err
   1904        }; then :
   1905   ac_retval=0
   1906 else
   1907   $as_echo "$as_me: failed program was:" >&5
   1908 sed 's/^/| /' conftest.$ac_ext >&5
   1909 
   1910     ac_retval=1
   1911 fi
   1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1913   as_fn_set_status $ac_retval
   1914 
   1915 } # ac_fn_c_try_cpp
   1916 
   1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1918 # -------------------------------------------------------
   1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1920 # the include files in INCLUDES and setting the cache variable VAR
   1921 # accordingly.
   1922 ac_fn_c_check_header_mongrel ()
   1923 {
   1924   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1925   if eval \${$3+:} false; then :
   1926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1927 $as_echo_n "checking for $2... " >&6; }
   1928 if eval \${$3+:} false; then :
   1929   $as_echo_n "(cached) " >&6
   1930 fi
   1931 eval ac_res=\$$3
   1932 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1933 $as_echo "$ac_res" >&6; }
   1934 else
   1935   # Is the header compilable?
   1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1937 $as_echo_n "checking $2 usability... " >&6; }
   1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1939 /* end confdefs.h.  */
   1940 $4
   1941 #include <$2>
   1942 _ACEOF
   1943 if ac_fn_c_try_compile "$LINENO"; then :
   1944   ac_header_compiler=yes
   1945 else
   1946   ac_header_compiler=no
   1947 fi
   1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1950 $as_echo "$ac_header_compiler" >&6; }
   1951 
   1952 # Is the header present?
   1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1954 $as_echo_n "checking $2 presence... " >&6; }
   1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1956 /* end confdefs.h.  */
   1957 #include <$2>
   1958 _ACEOF
   1959 if ac_fn_c_try_cpp "$LINENO"; then :
   1960   ac_header_preproc=yes
   1961 else
   1962   ac_header_preproc=no
   1963 fi
   1964 rm -f conftest.err conftest.i conftest.$ac_ext
   1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1966 $as_echo "$ac_header_preproc" >&6; }
   1967 
   1968 # So?  What about this header?
   1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1970   yes:no: )
   1971     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1975     ;;
   1976   no:yes:* )
   1977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1980 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1984 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1987 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
   1988 ## Report this to https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug ##
   1989 ## ------------------------------------------------------------------------------------------- ##"
   1990      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1991     ;;
   1992 esac
   1993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1994 $as_echo_n "checking for $2... " >&6; }
   1995 if eval \${$3+:} false; then :
   1996   $as_echo_n "(cached) " >&6
   1997 else
   1998   eval "$3=\$ac_header_compiler"
   1999 fi
   2000 eval ac_res=\$$3
   2001 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2002 $as_echo "$ac_res" >&6; }
   2003 fi
   2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2005 
   2006 } # ac_fn_c_check_header_mongrel
   2007 
   2008 # ac_fn_c_try_run LINENO
   2009 # ----------------------
   2010 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   2011 # that executables *can* be run.
   2012 ac_fn_c_try_run ()
   2013 {
   2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2015   if { { ac_try="$ac_link"
   2016 case "(($ac_try" in
   2017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2018   *) ac_try_echo=$ac_try;;
   2019 esac
   2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2021 $as_echo "$ac_try_echo"; } >&5
   2022   (eval "$ac_link") 2>&5
   2023   ac_status=$?
   2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2025   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2026   { { case "(($ac_try" in
   2027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2028   *) ac_try_echo=$ac_try;;
   2029 esac
   2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2031 $as_echo "$ac_try_echo"; } >&5
   2032   (eval "$ac_try") 2>&5
   2033   ac_status=$?
   2034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2035   test $ac_status = 0; }; }; then :
   2036   ac_retval=0
   2037 else
   2038   $as_echo "$as_me: program exited with status $ac_status" >&5
   2039        $as_echo "$as_me: failed program was:" >&5
   2040 sed 's/^/| /' conftest.$ac_ext >&5
   2041 
   2042        ac_retval=$ac_status
   2043 fi
   2044   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2045   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2046   as_fn_set_status $ac_retval
   2047 
   2048 } # ac_fn_c_try_run
   2049 
   2050 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2051 # -------------------------------------------------------
   2052 # Tests whether HEADER exists and can be compiled using the include files in
   2053 # INCLUDES, setting the cache variable VAR accordingly.
   2054 ac_fn_c_check_header_compile ()
   2055 {
   2056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2058 $as_echo_n "checking for $2... " >&6; }
   2059 if eval \${$3+:} false; then :
   2060   $as_echo_n "(cached) " >&6
   2061 else
   2062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2063 /* end confdefs.h.  */
   2064 $4
   2065 #include <$2>
   2066 _ACEOF
   2067 if ac_fn_c_try_compile "$LINENO"; then :
   2068   eval "$3=yes"
   2069 else
   2070   eval "$3=no"
   2071 fi
   2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2073 fi
   2074 eval ac_res=\$$3
   2075 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2076 $as_echo "$ac_res" >&6; }
   2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2078 
   2079 } # ac_fn_c_check_header_compile
   2080 
   2081 # ac_fn_c_try_link LINENO
   2082 # -----------------------
   2083 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2084 ac_fn_c_try_link ()
   2085 {
   2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2087   rm -f conftest.$ac_objext conftest$ac_exeext
   2088   if { { ac_try="$ac_link"
   2089 case "(($ac_try" in
   2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2091   *) ac_try_echo=$ac_try;;
   2092 esac
   2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2094 $as_echo "$ac_try_echo"; } >&5
   2095   (eval "$ac_link") 2>conftest.err
   2096   ac_status=$?
   2097   if test -s conftest.err; then
   2098     grep -v '^ *+' conftest.err >conftest.er1
   2099     cat conftest.er1 >&5
   2100     mv -f conftest.er1 conftest.err
   2101   fi
   2102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2103   test $ac_status = 0; } && {
   2104 	 test -z "$ac_c_werror_flag" ||
   2105 	 test ! -s conftest.err
   2106        } && test -s conftest$ac_exeext && {
   2107 	 test "$cross_compiling" = yes ||
   2108 	 test -x conftest$ac_exeext
   2109        }; then :
   2110   ac_retval=0
   2111 else
   2112   $as_echo "$as_me: failed program was:" >&5
   2113 sed 's/^/| /' conftest.$ac_ext >&5
   2114 
   2115 	ac_retval=1
   2116 fi
   2117   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2118   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2119   # interfere with the next link command; also delete a directory that is
   2120   # left behind by Apple's compiler.  We do this before executing the actions.
   2121   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2122   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2123   as_fn_set_status $ac_retval
   2124 
   2125 } # ac_fn_c_try_link
   2126 
   2127 # ac_fn_c_check_func LINENO FUNC VAR
   2128 # ----------------------------------
   2129 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2130 ac_fn_c_check_func ()
   2131 {
   2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2134 $as_echo_n "checking for $2... " >&6; }
   2135 if eval \${$3+:} false; then :
   2136   $as_echo_n "(cached) " >&6
   2137 else
   2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2139 /* end confdefs.h.  */
   2140 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2142 #define $2 innocuous_$2
   2143 
   2144 /* System header to define __stub macros and hopefully few prototypes,
   2145     which can conflict with char $2 (); below.
   2146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2147     <limits.h> exists even on freestanding compilers.  */
   2148 
   2149 #ifdef __STDC__
   2150 # include <limits.h>
   2151 #else
   2152 # include <assert.h>
   2153 #endif
   2154 
   2155 #undef $2
   2156 
   2157 /* Override any GCC internal prototype to avoid an error.
   2158    Use char because int might match the return type of a GCC
   2159    builtin and then its argument prototype would still apply.  */
   2160 #ifdef __cplusplus
   2161 extern "C"
   2162 #endif
   2163 char $2 ();
   2164 /* The GNU C library defines this for functions which it implements
   2165     to always fail with ENOSYS.  Some functions are actually named
   2166     something starting with __ and the normal name is an alias.  */
   2167 #if defined __stub_$2 || defined __stub___$2
   2168 choke me
   2169 #endif
   2170 
   2171 int
   2172 main ()
   2173 {
   2174 return $2 ();
   2175   ;
   2176   return 0;
   2177 }
   2178 _ACEOF
   2179 if ac_fn_c_try_link "$LINENO"; then :
   2180   eval "$3=yes"
   2181 else
   2182   eval "$3=no"
   2183 fi
   2184 rm -f core conftest.err conftest.$ac_objext \
   2185     conftest$ac_exeext conftest.$ac_ext
   2186 fi
   2187 eval ac_res=\$$3
   2188 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2189 $as_echo "$ac_res" >&6; }
   2190   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2191 
   2192 } # ac_fn_c_check_func
   2193 
   2194 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2195 # -------------------------------------------
   2196 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2197 # variable VAR accordingly.
   2198 ac_fn_c_check_type ()
   2199 {
   2200   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2202 $as_echo_n "checking for $2... " >&6; }
   2203 if eval \${$3+:} false; then :
   2204   $as_echo_n "(cached) " >&6
   2205 else
   2206   eval "$3=no"
   2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2208 /* end confdefs.h.  */
   2209 $4
   2210 int
   2211 main ()
   2212 {
   2213 if (sizeof ($2))
   2214 	 return 0;
   2215   ;
   2216   return 0;
   2217 }
   2218 _ACEOF
   2219 if ac_fn_c_try_compile "$LINENO"; then :
   2220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2221 /* end confdefs.h.  */
   2222 $4
   2223 int
   2224 main ()
   2225 {
   2226 if (sizeof (($2)))
   2227 	    return 0;
   2228   ;
   2229   return 0;
   2230 }
   2231 _ACEOF
   2232 if ac_fn_c_try_compile "$LINENO"; then :
   2233 
   2234 else
   2235   eval "$3=yes"
   2236 fi
   2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2238 fi
   2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2240 fi
   2241 eval ac_res=\$$3
   2242 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2243 $as_echo "$ac_res" >&6; }
   2244   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2245 
   2246 } # ac_fn_c_check_type
   2247 
   2248 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2249 # ---------------------------------------------
   2250 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2251 # accordingly.
   2252 ac_fn_c_check_decl ()
   2253 {
   2254   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2255   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2256   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2258 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2259 if eval \${$3+:} false; then :
   2260   $as_echo_n "(cached) " >&6
   2261 else
   2262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2263 /* end confdefs.h.  */
   2264 $4
   2265 int
   2266 main ()
   2267 {
   2268 #ifndef $as_decl_name
   2269 #ifdef __cplusplus
   2270   (void) $as_decl_use;
   2271 #else
   2272   (void) $as_decl_name;
   2273 #endif
   2274 #endif
   2275 
   2276   ;
   2277   return 0;
   2278 }
   2279 _ACEOF
   2280 if ac_fn_c_try_compile "$LINENO"; then :
   2281   eval "$3=yes"
   2282 else
   2283   eval "$3=no"
   2284 fi
   2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2286 fi
   2287 eval ac_res=\$$3
   2288 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2289 $as_echo "$ac_res" >&6; }
   2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2291 
   2292 } # ac_fn_c_check_decl
   2293 cat >config.log <<_ACEOF
   2294 This file contains any messages produced by compilers while
   2295 running configure, to aid debugging if configure makes a mistake.
   2296 
   2297 It was created by BIND $as_me 9.16, which was
   2298 generated by GNU Autoconf 2.69.  Invocation command line was
   2299 
   2300   $ $0 $@
   2301 
   2302 _ACEOF
   2303 exec 5>>config.log
   2304 {
   2305 cat <<_ASUNAME
   2306 ## --------- ##
   2307 ## Platform. ##
   2308 ## --------- ##
   2309 
   2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2315 
   2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2317 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2318 
   2319 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2320 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2322 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2323 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2324 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2325 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2326 
   2327 _ASUNAME
   2328 
   2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2330 for as_dir in $PATH
   2331 do
   2332   IFS=$as_save_IFS
   2333   test -z "$as_dir" && as_dir=.
   2334     $as_echo "PATH: $as_dir"
   2335   done
   2336 IFS=$as_save_IFS
   2337 
   2338 } >&5
   2339 
   2340 cat >&5 <<_ACEOF
   2341 
   2342 
   2343 ## ----------- ##
   2344 ## Core tests. ##
   2345 ## ----------- ##
   2346 
   2347 _ACEOF
   2348 
   2349 
   2350 # Keep a trace of the command line.
   2351 # Strip out --no-create and --no-recursion so they do not pile up.
   2352 # Strip out --silent because we don't want to record it for future runs.
   2353 # Also quote any args containing shell meta-characters.
   2354 # Make two passes to allow for proper duplicate-argument suppression.
   2355 ac_configure_args=
   2356 ac_configure_args0=
   2357 ac_configure_args1=
   2358 ac_must_keep_next=false
   2359 for ac_pass in 1 2
   2360 do
   2361   for ac_arg
   2362   do
   2363     case $ac_arg in
   2364     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2365     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2366     | -silent | --silent | --silen | --sile | --sil)
   2367       continue ;;
   2368     *\'*)
   2369       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2370     esac
   2371     case $ac_pass in
   2372     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2373     2)
   2374       as_fn_append ac_configure_args1 " '$ac_arg'"
   2375       if test $ac_must_keep_next = true; then
   2376 	ac_must_keep_next=false # Got value, back to normal.
   2377       else
   2378 	case $ac_arg in
   2379 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2380 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2381 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2382 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2383 	    case "$ac_configure_args0 " in
   2384 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2385 	    esac
   2386 	    ;;
   2387 	  -* ) ac_must_keep_next=true ;;
   2388 	esac
   2389       fi
   2390       as_fn_append ac_configure_args " '$ac_arg'"
   2391       ;;
   2392     esac
   2393   done
   2394 done
   2395 { ac_configure_args0=; unset ac_configure_args0;}
   2396 { ac_configure_args1=; unset ac_configure_args1;}
   2397 
   2398 # When interrupted or exit'd, cleanup temporary files, and complete
   2399 # config.log.  We remove comments because anyway the quotes in there
   2400 # would cause problems or look ugly.
   2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2403 trap 'exit_status=$?
   2404   # Save into config.log some information that might help in debugging.
   2405   {
   2406     echo
   2407 
   2408     $as_echo "## ---------------- ##
   2409 ## Cache variables. ##
   2410 ## ---------------- ##"
   2411     echo
   2412     # The following way of writing the cache mishandles newlines in values,
   2413 (
   2414   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2415     eval ac_val=\$$ac_var
   2416     case $ac_val in #(
   2417     *${as_nl}*)
   2418       case $ac_var in #(
   2419       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2421       esac
   2422       case $ac_var in #(
   2423       _ | IFS | as_nl) ;; #(
   2424       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2425       *) { eval $ac_var=; unset $ac_var;} ;;
   2426       esac ;;
   2427     esac
   2428   done
   2429   (set) 2>&1 |
   2430     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2431     *${as_nl}ac_space=\ *)
   2432       sed -n \
   2433 	"s/'\''/'\''\\\\'\'''\''/g;
   2434 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2435       ;; #(
   2436     *)
   2437       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2438       ;;
   2439     esac |
   2440     sort
   2441 )
   2442     echo
   2443 
   2444     $as_echo "## ----------------- ##
   2445 ## Output variables. ##
   2446 ## ----------------- ##"
   2447     echo
   2448     for ac_var in $ac_subst_vars
   2449     do
   2450       eval ac_val=\$$ac_var
   2451       case $ac_val in
   2452       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2453       esac
   2454       $as_echo "$ac_var='\''$ac_val'\''"
   2455     done | sort
   2456     echo
   2457 
   2458     if test -n "$ac_subst_files"; then
   2459       $as_echo "## ------------------- ##
   2460 ## File substitutions. ##
   2461 ## ------------------- ##"
   2462       echo
   2463       for ac_var in $ac_subst_files
   2464       do
   2465 	eval ac_val=\$$ac_var
   2466 	case $ac_val in
   2467 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2468 	esac
   2469 	$as_echo "$ac_var='\''$ac_val'\''"
   2470       done | sort
   2471       echo
   2472     fi
   2473 
   2474     if test -s confdefs.h; then
   2475       $as_echo "## ----------- ##
   2476 ## confdefs.h. ##
   2477 ## ----------- ##"
   2478       echo
   2479       cat confdefs.h
   2480       echo
   2481     fi
   2482     test "$ac_signal" != 0 &&
   2483       $as_echo "$as_me: caught signal $ac_signal"
   2484     $as_echo "$as_me: exit $exit_status"
   2485   } >&5
   2486   rm -f core *.core core.conftest.* &&
   2487     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2488     exit $exit_status
   2489 ' 0
   2490 for ac_signal in 1 2 13 15; do
   2491   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2492 done
   2493 ac_signal=0
   2494 
   2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2496 rm -f -r conftest* confdefs.h
   2497 
   2498 $as_echo "/* confdefs.h */" > confdefs.h
   2499 
   2500 # Predefined preprocessor variables.
   2501 
   2502 cat >>confdefs.h <<_ACEOF
   2503 #define PACKAGE_NAME "$PACKAGE_NAME"
   2504 _ACEOF
   2505 
   2506 cat >>confdefs.h <<_ACEOF
   2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2508 _ACEOF
   2509 
   2510 cat >>confdefs.h <<_ACEOF
   2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2512 _ACEOF
   2513 
   2514 cat >>confdefs.h <<_ACEOF
   2515 #define PACKAGE_STRING "$PACKAGE_STRING"
   2516 _ACEOF
   2517 
   2518 cat >>confdefs.h <<_ACEOF
   2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2520 _ACEOF
   2521 
   2522 cat >>confdefs.h <<_ACEOF
   2523 #define PACKAGE_URL "$PACKAGE_URL"
   2524 _ACEOF
   2525 
   2526 
   2527 # Let the site file select an alternate cache file if it wants to.
   2528 # Prefer an explicitly selected file to automatically selected ones.
   2529 ac_site_file1=NONE
   2530 ac_site_file2=NONE
   2531 if test -n "$CONFIG_SITE"; then
   2532   # We do not want a PATH search for config.site.
   2533   case $CONFIG_SITE in #((
   2534     -*)  ac_site_file1=./$CONFIG_SITE;;
   2535     */*) ac_site_file1=$CONFIG_SITE;;
   2536     *)   ac_site_file1=./$CONFIG_SITE;;
   2537   esac
   2538 elif test "x$prefix" != xNONE; then
   2539   ac_site_file1=$prefix/share/config.site
   2540   ac_site_file2=$prefix/etc/config.site
   2541 else
   2542   ac_site_file1=$ac_default_prefix/share/config.site
   2543   ac_site_file2=$ac_default_prefix/etc/config.site
   2544 fi
   2545 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2546 do
   2547   test "x$ac_site_file" = xNONE && continue
   2548   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2549     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2551     sed 's/^/| /' "$ac_site_file" >&5
   2552     . "$ac_site_file" \
   2553       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2555 as_fn_error $? "failed to load site script $ac_site_file
   2556 See \`config.log' for more details" "$LINENO" 5; }
   2557   fi
   2558 done
   2559 
   2560 if test -r "$cache_file"; then
   2561   # Some versions of bash will fail to source /dev/null (special files
   2562   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2563   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2564     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2566     case $cache_file in
   2567       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2568       *)                      . "./$cache_file";;
   2569     esac
   2570   fi
   2571 else
   2572   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2574   >$cache_file
   2575 fi
   2576 
   2577 # Check that the precious variables saved in the cache have kept the same
   2578 # value.
   2579 ac_cache_corrupted=false
   2580 for ac_var in $ac_precious_vars; do
   2581   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2582   eval ac_new_set=\$ac_env_${ac_var}_set
   2583   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2584   eval ac_new_val=\$ac_env_${ac_var}_value
   2585   case $ac_old_set,$ac_new_set in
   2586     set,)
   2587       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2589       ac_cache_corrupted=: ;;
   2590     ,set)
   2591       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2593       ac_cache_corrupted=: ;;
   2594     ,);;
   2595     *)
   2596       if test "x$ac_old_val" != "x$ac_new_val"; then
   2597 	# differences in whitespace do not lead to failure.
   2598 	ac_old_val_w=`echo x $ac_old_val`
   2599 	ac_new_val_w=`echo x $ac_new_val`
   2600 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2601 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2603 	  ac_cache_corrupted=:
   2604 	else
   2605 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2607 	  eval $ac_var=\$ac_old_val
   2608 	fi
   2609 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2610 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2611 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2612 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2613       fi;;
   2614   esac
   2615   # Pass precious variables to config.status.
   2616   if test "$ac_new_set" = set; then
   2617     case $ac_new_val in
   2618     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2619     *) ac_arg=$ac_var=$ac_new_val ;;
   2620     esac
   2621     case " $ac_configure_args " in
   2622       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2623       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2624     esac
   2625   fi
   2626 done
   2627 if $ac_cache_corrupted; then
   2628   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2630   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2632   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2633 fi
   2634 ## -------------------- ##
   2635 ## Main body of script. ##
   2636 ## -------------------- ##
   2637 
   2638 ac_ext=c
   2639 ac_cpp='$CPP $CPPFLAGS'
   2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2643 
   2644 
   2645 
   2646 
   2647 #
   2648 # Enable maintainer mode by default, but allow to disable it in the CI
   2649 #
   2650 
   2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2652 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2653     # Check whether --enable-maintainer-mode was given.
   2654 if test "${enable_maintainer_mode+set}" = set; then :
   2655   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2656 else
   2657   USE_MAINTAINER_MODE=yes
   2658 fi
   2659 
   2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2661 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2662    if test $USE_MAINTAINER_MODE = yes; then
   2663   MAINTAINER_MODE_TRUE=
   2664   MAINTAINER_MODE_FALSE='#'
   2665 else
   2666   MAINTAINER_MODE_TRUE='#'
   2667   MAINTAINER_MODE_FALSE=
   2668 fi
   2669 
   2670   MAINT=$MAINTAINER_MODE_TRUE
   2671 
   2672 
   2673 
   2674 ac_config_headers="$ac_config_headers config.h"
   2675 
   2676 
   2677 
   2678 ac_aux_dir=
   2679 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2680   if test -f "$ac_dir/install-sh"; then
   2681     ac_aux_dir=$ac_dir
   2682     ac_install_sh="$ac_aux_dir/install-sh -c"
   2683     break
   2684   elif test -f "$ac_dir/install.sh"; then
   2685     ac_aux_dir=$ac_dir
   2686     ac_install_sh="$ac_aux_dir/install.sh -c"
   2687     break
   2688   elif test -f "$ac_dir/shtool"; then
   2689     ac_aux_dir=$ac_dir
   2690     ac_install_sh="$ac_aux_dir/shtool install -c"
   2691     break
   2692   fi
   2693 done
   2694 if test -z "$ac_aux_dir"; then
   2695   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2696 fi
   2697 
   2698 # These three variables are undocumented and unsupported,
   2699 # and are intended to be withdrawn in a future Autoconf release.
   2700 # They can cause serious problems if a builder's source tree is in a directory
   2701 # whose full name contains unusual characters.
   2702 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2703 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2704 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2705 
   2706 
   2707 # Make sure we can run config.sub.
   2708 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2709   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2710 
   2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2712 $as_echo_n "checking build system type... " >&6; }
   2713 if ${ac_cv_build+:} false; then :
   2714   $as_echo_n "(cached) " >&6
   2715 else
   2716   ac_build_alias=$build_alias
   2717 test "x$ac_build_alias" = x &&
   2718   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2719 test "x$ac_build_alias" = x &&
   2720   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2721 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2722   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2723 
   2724 fi
   2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2726 $as_echo "$ac_cv_build" >&6; }
   2727 case $ac_cv_build in
   2728 *-*-*) ;;
   2729 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2730 esac
   2731 build=$ac_cv_build
   2732 ac_save_IFS=$IFS; IFS='-'
   2733 set x $ac_cv_build
   2734 shift
   2735 build_cpu=$1
   2736 build_vendor=$2
   2737 shift; shift
   2738 # Remember, the first character of IFS is used to create $*,
   2739 # except with old shells:
   2740 build_os=$*
   2741 IFS=$ac_save_IFS
   2742 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2743 
   2744 
   2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2746 $as_echo_n "checking host system type... " >&6; }
   2747 if ${ac_cv_host+:} false; then :
   2748   $as_echo_n "(cached) " >&6
   2749 else
   2750   if test "x$host_alias" = x; then
   2751   ac_cv_host=$ac_cv_build
   2752 else
   2753   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2754     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2755 fi
   2756 
   2757 fi
   2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2759 $as_echo "$ac_cv_host" >&6; }
   2760 case $ac_cv_host in
   2761 *-*-*) ;;
   2762 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2763 esac
   2764 host=$ac_cv_host
   2765 ac_save_IFS=$IFS; IFS='-'
   2766 set x $ac_cv_host
   2767 shift
   2768 host_cpu=$1
   2769 host_vendor=$2
   2770 shift; shift
   2771 # Remember, the first character of IFS is used to create $*,
   2772 # except with old shells:
   2773 host_os=$*
   2774 IFS=$ac_save_IFS
   2775 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2776 
   2777 
   2778 
   2779 #
   2780 # Enable system extensions to C and POSIX
   2781 #
   2782 ac_ext=c
   2783 ac_cpp='$CPP $CPPFLAGS'
   2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2787 if test -n "$ac_tool_prefix"; then
   2788   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2791 $as_echo_n "checking for $ac_word... " >&6; }
   2792 if ${ac_cv_prog_CC+:} false; then :
   2793   $as_echo_n "(cached) " >&6
   2794 else
   2795   if test -n "$CC"; then
   2796   ac_cv_prog_CC="$CC" # Let the user override the test.
   2797 else
   2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2799 for as_dir in $PATH
   2800 do
   2801   IFS=$as_save_IFS
   2802   test -z "$as_dir" && as_dir=.
   2803     for ac_exec_ext in '' $ac_executable_extensions; do
   2804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2805     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2807     break 2
   2808   fi
   2809 done
   2810   done
   2811 IFS=$as_save_IFS
   2812 
   2813 fi
   2814 fi
   2815 CC=$ac_cv_prog_CC
   2816 if test -n "$CC"; then
   2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2818 $as_echo "$CC" >&6; }
   2819 else
   2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2821 $as_echo "no" >&6; }
   2822 fi
   2823 
   2824 
   2825 fi
   2826 if test -z "$ac_cv_prog_CC"; then
   2827   ac_ct_CC=$CC
   2828   # Extract the first word of "gcc", so it can be a program name with args.
   2829 set dummy gcc; ac_word=$2
   2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2831 $as_echo_n "checking for $ac_word... " >&6; }
   2832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2833   $as_echo_n "(cached) " >&6
   2834 else
   2835   if test -n "$ac_ct_CC"; then
   2836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2837 else
   2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2839 for as_dir in $PATH
   2840 do
   2841   IFS=$as_save_IFS
   2842   test -z "$as_dir" && as_dir=.
   2843     for ac_exec_ext in '' $ac_executable_extensions; do
   2844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2845     ac_cv_prog_ac_ct_CC="gcc"
   2846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2847     break 2
   2848   fi
   2849 done
   2850   done
   2851 IFS=$as_save_IFS
   2852 
   2853 fi
   2854 fi
   2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2856 if test -n "$ac_ct_CC"; then
   2857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2858 $as_echo "$ac_ct_CC" >&6; }
   2859 else
   2860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2861 $as_echo "no" >&6; }
   2862 fi
   2863 
   2864   if test "x$ac_ct_CC" = x; then
   2865     CC=""
   2866   else
   2867     case $cross_compiling:$ac_tool_warned in
   2868 yes:)
   2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2871 ac_tool_warned=yes ;;
   2872 esac
   2873     CC=$ac_ct_CC
   2874   fi
   2875 else
   2876   CC="$ac_cv_prog_CC"
   2877 fi
   2878 
   2879 if test -z "$CC"; then
   2880           if test -n "$ac_tool_prefix"; then
   2881     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2882 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2884 $as_echo_n "checking for $ac_word... " >&6; }
   2885 if ${ac_cv_prog_CC+:} false; then :
   2886   $as_echo_n "(cached) " >&6
   2887 else
   2888   if test -n "$CC"; then
   2889   ac_cv_prog_CC="$CC" # Let the user override the test.
   2890 else
   2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2892 for as_dir in $PATH
   2893 do
   2894   IFS=$as_save_IFS
   2895   test -z "$as_dir" && as_dir=.
   2896     for ac_exec_ext in '' $ac_executable_extensions; do
   2897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2898     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2900     break 2
   2901   fi
   2902 done
   2903   done
   2904 IFS=$as_save_IFS
   2905 
   2906 fi
   2907 fi
   2908 CC=$ac_cv_prog_CC
   2909 if test -n "$CC"; then
   2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2911 $as_echo "$CC" >&6; }
   2912 else
   2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2914 $as_echo "no" >&6; }
   2915 fi
   2916 
   2917 
   2918   fi
   2919 fi
   2920 if test -z "$CC"; then
   2921   # Extract the first word of "cc", so it can be a program name with args.
   2922 set dummy cc; ac_word=$2
   2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2924 $as_echo_n "checking for $ac_word... " >&6; }
   2925 if ${ac_cv_prog_CC+:} false; then :
   2926   $as_echo_n "(cached) " >&6
   2927 else
   2928   if test -n "$CC"; then
   2929   ac_cv_prog_CC="$CC" # Let the user override the test.
   2930 else
   2931   ac_prog_rejected=no
   2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2933 for as_dir in $PATH
   2934 do
   2935   IFS=$as_save_IFS
   2936   test -z "$as_dir" && as_dir=.
   2937     for ac_exec_ext in '' $ac_executable_extensions; do
   2938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2939     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2940        ac_prog_rejected=yes
   2941        continue
   2942      fi
   2943     ac_cv_prog_CC="cc"
   2944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2945     break 2
   2946   fi
   2947 done
   2948   done
   2949 IFS=$as_save_IFS
   2950 
   2951 if test $ac_prog_rejected = yes; then
   2952   # We found a bogon in the path, so make sure we never use it.
   2953   set dummy $ac_cv_prog_CC
   2954   shift
   2955   if test $# != 0; then
   2956     # We chose a different compiler from the bogus one.
   2957     # However, it has the same basename, so the bogon will be chosen
   2958     # first if we set CC to just the basename; use the full file name.
   2959     shift
   2960     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2961   fi
   2962 fi
   2963 fi
   2964 fi
   2965 CC=$ac_cv_prog_CC
   2966 if test -n "$CC"; then
   2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2968 $as_echo "$CC" >&6; }
   2969 else
   2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2971 $as_echo "no" >&6; }
   2972 fi
   2973 
   2974 
   2975 fi
   2976 if test -z "$CC"; then
   2977   if test -n "$ac_tool_prefix"; then
   2978   for ac_prog in cl.exe
   2979   do
   2980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2983 $as_echo_n "checking for $ac_word... " >&6; }
   2984 if ${ac_cv_prog_CC+:} false; then :
   2985   $as_echo_n "(cached) " >&6
   2986 else
   2987   if test -n "$CC"; then
   2988   ac_cv_prog_CC="$CC" # Let the user override the test.
   2989 else
   2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2991 for as_dir in $PATH
   2992 do
   2993   IFS=$as_save_IFS
   2994   test -z "$as_dir" && as_dir=.
   2995     for ac_exec_ext in '' $ac_executable_extensions; do
   2996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2997     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2999     break 2
   3000   fi
   3001 done
   3002   done
   3003 IFS=$as_save_IFS
   3004 
   3005 fi
   3006 fi
   3007 CC=$ac_cv_prog_CC
   3008 if test -n "$CC"; then
   3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3010 $as_echo "$CC" >&6; }
   3011 else
   3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3013 $as_echo "no" >&6; }
   3014 fi
   3015 
   3016 
   3017     test -n "$CC" && break
   3018   done
   3019 fi
   3020 if test -z "$CC"; then
   3021   ac_ct_CC=$CC
   3022   for ac_prog in cl.exe
   3023 do
   3024   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3025 set dummy $ac_prog; ac_word=$2
   3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3027 $as_echo_n "checking for $ac_word... " >&6; }
   3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3029   $as_echo_n "(cached) " >&6
   3030 else
   3031   if test -n "$ac_ct_CC"; then
   3032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3033 else
   3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3035 for as_dir in $PATH
   3036 do
   3037   IFS=$as_save_IFS
   3038   test -z "$as_dir" && as_dir=.
   3039     for ac_exec_ext in '' $ac_executable_extensions; do
   3040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3041     ac_cv_prog_ac_ct_CC="$ac_prog"
   3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3043     break 2
   3044   fi
   3045 done
   3046   done
   3047 IFS=$as_save_IFS
   3048 
   3049 fi
   3050 fi
   3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3052 if test -n "$ac_ct_CC"; then
   3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3054 $as_echo "$ac_ct_CC" >&6; }
   3055 else
   3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3057 $as_echo "no" >&6; }
   3058 fi
   3059 
   3060 
   3061   test -n "$ac_ct_CC" && break
   3062 done
   3063 
   3064   if test "x$ac_ct_CC" = x; then
   3065     CC=""
   3066   else
   3067     case $cross_compiling:$ac_tool_warned in
   3068 yes:)
   3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3071 ac_tool_warned=yes ;;
   3072 esac
   3073     CC=$ac_ct_CC
   3074   fi
   3075 fi
   3076 
   3077 fi
   3078 
   3079 
   3080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3082 as_fn_error $? "no acceptable C compiler found in \$PATH
   3083 See \`config.log' for more details" "$LINENO" 5; }
   3084 
   3085 # Provide some information about the compiler.
   3086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3087 set X $ac_compile
   3088 ac_compiler=$2
   3089 for ac_option in --version -v -V -qversion; do
   3090   { { ac_try="$ac_compiler $ac_option >&5"
   3091 case "(($ac_try" in
   3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3093   *) ac_try_echo=$ac_try;;
   3094 esac
   3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3096 $as_echo "$ac_try_echo"; } >&5
   3097   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3098   ac_status=$?
   3099   if test -s conftest.err; then
   3100     sed '10a\
   3101 ... rest of stderr output deleted ...
   3102          10q' conftest.err >conftest.er1
   3103     cat conftest.er1 >&5
   3104   fi
   3105   rm -f conftest.er1 conftest.err
   3106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3107   test $ac_status = 0; }
   3108 done
   3109 
   3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3111 /* end confdefs.h.  */
   3112 
   3113 int
   3114 main ()
   3115 {
   3116 
   3117   ;
   3118   return 0;
   3119 }
   3120 _ACEOF
   3121 ac_clean_files_save=$ac_clean_files
   3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3123 # Try to create an executable without -o first, disregard a.out.
   3124 # It will help us diagnose broken compilers, and finding out an intuition
   3125 # of exeext.
   3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3127 $as_echo_n "checking whether the C compiler works... " >&6; }
   3128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3129 
   3130 # The possible output files:
   3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3132 
   3133 ac_rmfiles=
   3134 for ac_file in $ac_files
   3135 do
   3136   case $ac_file in
   3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3138     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3139   esac
   3140 done
   3141 rm -f $ac_rmfiles
   3142 
   3143 if { { ac_try="$ac_link_default"
   3144 case "(($ac_try" in
   3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3146   *) ac_try_echo=$ac_try;;
   3147 esac
   3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3149 $as_echo "$ac_try_echo"; } >&5
   3150   (eval "$ac_link_default") 2>&5
   3151   ac_status=$?
   3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3153   test $ac_status = 0; }; then :
   3154   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3156 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3157 # so that the user can short-circuit this test for compilers unknown to
   3158 # Autoconf.
   3159 for ac_file in $ac_files ''
   3160 do
   3161   test -f "$ac_file" || continue
   3162   case $ac_file in
   3163     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3164 	;;
   3165     [ab].out )
   3166 	# We found the default executable, but exeext='' is most
   3167 	# certainly right.
   3168 	break;;
   3169     *.* )
   3170 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3171 	then :; else
   3172 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3173 	fi
   3174 	# We set ac_cv_exeext here because the later test for it is not
   3175 	# safe: cross compilers may not add the suffix if given an `-o'
   3176 	# argument, so we may need to know it at that point already.
   3177 	# Even if this section looks crufty: it has the advantage of
   3178 	# actually working.
   3179 	break;;
   3180     * )
   3181 	break;;
   3182   esac
   3183 done
   3184 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3185 
   3186 else
   3187   ac_file=''
   3188 fi
   3189 if test -z "$ac_file"; then :
   3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3191 $as_echo "no" >&6; }
   3192 $as_echo "$as_me: failed program was:" >&5
   3193 sed 's/^/| /' conftest.$ac_ext >&5
   3194 
   3195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3197 as_fn_error 77 "C compiler cannot create executables
   3198 See \`config.log' for more details" "$LINENO" 5; }
   3199 else
   3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3201 $as_echo "yes" >&6; }
   3202 fi
   3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3204 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3206 $as_echo "$ac_file" >&6; }
   3207 ac_exeext=$ac_cv_exeext
   3208 
   3209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3210 ac_clean_files=$ac_clean_files_save
   3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3212 $as_echo_n "checking for suffix of executables... " >&6; }
   3213 if { { ac_try="$ac_link"
   3214 case "(($ac_try" in
   3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3216   *) ac_try_echo=$ac_try;;
   3217 esac
   3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3219 $as_echo "$ac_try_echo"; } >&5
   3220   (eval "$ac_link") 2>&5
   3221   ac_status=$?
   3222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3223   test $ac_status = 0; }; then :
   3224   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3225 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3226 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3227 # `rm'.
   3228 for ac_file in conftest.exe conftest conftest.*; do
   3229   test -f "$ac_file" || continue
   3230   case $ac_file in
   3231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3232     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3233 	  break;;
   3234     * ) break;;
   3235   esac
   3236 done
   3237 else
   3238   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3240 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3241 See \`config.log' for more details" "$LINENO" 5; }
   3242 fi
   3243 rm -f conftest conftest$ac_cv_exeext
   3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3245 $as_echo "$ac_cv_exeext" >&6; }
   3246 
   3247 rm -f conftest.$ac_ext
   3248 EXEEXT=$ac_cv_exeext
   3249 ac_exeext=$EXEEXT
   3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3251 /* end confdefs.h.  */
   3252 #include <stdio.h>
   3253 int
   3254 main ()
   3255 {
   3256 FILE *f = fopen ("conftest.out", "w");
   3257  return ferror (f) || fclose (f) != 0;
   3258 
   3259   ;
   3260   return 0;
   3261 }
   3262 _ACEOF
   3263 ac_clean_files="$ac_clean_files conftest.out"
   3264 # Check that the compiler produces executables we can run.  If not, either
   3265 # the compiler is broken, or we cross compile.
   3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3267 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3268 if test "$cross_compiling" != yes; then
   3269   { { ac_try="$ac_link"
   3270 case "(($ac_try" in
   3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3272   *) ac_try_echo=$ac_try;;
   3273 esac
   3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3275 $as_echo "$ac_try_echo"; } >&5
   3276   (eval "$ac_link") 2>&5
   3277   ac_status=$?
   3278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3279   test $ac_status = 0; }
   3280   if { ac_try='./conftest$ac_cv_exeext'
   3281   { { case "(($ac_try" in
   3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3283   *) ac_try_echo=$ac_try;;
   3284 esac
   3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3286 $as_echo "$ac_try_echo"; } >&5
   3287   (eval "$ac_try") 2>&5
   3288   ac_status=$?
   3289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3290   test $ac_status = 0; }; }; then
   3291     cross_compiling=no
   3292   else
   3293     if test "$cross_compiling" = maybe; then
   3294 	cross_compiling=yes
   3295     else
   3296 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3298 as_fn_error $? "cannot run C compiled programs.
   3299 If you meant to cross compile, use \`--host'.
   3300 See \`config.log' for more details" "$LINENO" 5; }
   3301     fi
   3302   fi
   3303 fi
   3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3305 $as_echo "$cross_compiling" >&6; }
   3306 
   3307 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3308 ac_clean_files=$ac_clean_files_save
   3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3310 $as_echo_n "checking for suffix of object files... " >&6; }
   3311 if ${ac_cv_objext+:} false; then :
   3312   $as_echo_n "(cached) " >&6
   3313 else
   3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3315 /* end confdefs.h.  */
   3316 
   3317 int
   3318 main ()
   3319 {
   3320 
   3321   ;
   3322   return 0;
   3323 }
   3324 _ACEOF
   3325 rm -f conftest.o conftest.obj
   3326 if { { ac_try="$ac_compile"
   3327 case "(($ac_try" in
   3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3329   *) ac_try_echo=$ac_try;;
   3330 esac
   3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3332 $as_echo "$ac_try_echo"; } >&5
   3333   (eval "$ac_compile") 2>&5
   3334   ac_status=$?
   3335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3336   test $ac_status = 0; }; then :
   3337   for ac_file in conftest.o conftest.obj conftest.*; do
   3338   test -f "$ac_file" || continue;
   3339   case $ac_file in
   3340     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3341     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3342        break;;
   3343   esac
   3344 done
   3345 else
   3346   $as_echo "$as_me: failed program was:" >&5
   3347 sed 's/^/| /' conftest.$ac_ext >&5
   3348 
   3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3352 See \`config.log' for more details" "$LINENO" 5; }
   3353 fi
   3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3355 fi
   3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3357 $as_echo "$ac_cv_objext" >&6; }
   3358 OBJEXT=$ac_cv_objext
   3359 ac_objext=$OBJEXT
   3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3362 if ${ac_cv_c_compiler_gnu+:} false; then :
   3363   $as_echo_n "(cached) " >&6
   3364 else
   3365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3366 /* end confdefs.h.  */
   3367 
   3368 int
   3369 main ()
   3370 {
   3371 #ifndef __GNUC__
   3372        choke me
   3373 #endif
   3374 
   3375   ;
   3376   return 0;
   3377 }
   3378 _ACEOF
   3379 if ac_fn_c_try_compile "$LINENO"; then :
   3380   ac_compiler_gnu=yes
   3381 else
   3382   ac_compiler_gnu=no
   3383 fi
   3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3386 
   3387 fi
   3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3390 if test $ac_compiler_gnu = yes; then
   3391   GCC=yes
   3392 else
   3393   GCC=
   3394 fi
   3395 ac_test_CFLAGS=${CFLAGS+set}
   3396 ac_save_CFLAGS=$CFLAGS
   3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3399 if ${ac_cv_prog_cc_g+:} false; then :
   3400   $as_echo_n "(cached) " >&6
   3401 else
   3402   ac_save_c_werror_flag=$ac_c_werror_flag
   3403    ac_c_werror_flag=yes
   3404    ac_cv_prog_cc_g=no
   3405    CFLAGS="-g"
   3406    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3407 /* end confdefs.h.  */
   3408 
   3409 int
   3410 main ()
   3411 {
   3412 
   3413   ;
   3414   return 0;
   3415 }
   3416 _ACEOF
   3417 if ac_fn_c_try_compile "$LINENO"; then :
   3418   ac_cv_prog_cc_g=yes
   3419 else
   3420   CFLAGS=""
   3421       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3422 /* end confdefs.h.  */
   3423 
   3424 int
   3425 main ()
   3426 {
   3427 
   3428   ;
   3429   return 0;
   3430 }
   3431 _ACEOF
   3432 if ac_fn_c_try_compile "$LINENO"; then :
   3433 
   3434 else
   3435   ac_c_werror_flag=$ac_save_c_werror_flag
   3436 	 CFLAGS="-g"
   3437 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3438 /* end confdefs.h.  */
   3439 
   3440 int
   3441 main ()
   3442 {
   3443 
   3444   ;
   3445   return 0;
   3446 }
   3447 _ACEOF
   3448 if ac_fn_c_try_compile "$LINENO"; then :
   3449   ac_cv_prog_cc_g=yes
   3450 fi
   3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3452 fi
   3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3454 fi
   3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3456    ac_c_werror_flag=$ac_save_c_werror_flag
   3457 fi
   3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3460 if test "$ac_test_CFLAGS" = set; then
   3461   CFLAGS=$ac_save_CFLAGS
   3462 elif test $ac_cv_prog_cc_g = yes; then
   3463   if test "$GCC" = yes; then
   3464     CFLAGS="-g -O2"
   3465   else
   3466     CFLAGS="-g"
   3467   fi
   3468 else
   3469   if test "$GCC" = yes; then
   3470     CFLAGS="-O2"
   3471   else
   3472     CFLAGS=
   3473   fi
   3474 fi
   3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3477 if ${ac_cv_prog_cc_c89+:} false; then :
   3478   $as_echo_n "(cached) " >&6
   3479 else
   3480   ac_cv_prog_cc_c89=no
   3481 ac_save_CC=$CC
   3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3483 /* end confdefs.h.  */
   3484 #include <stdarg.h>
   3485 #include <stdio.h>
   3486 struct stat;
   3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3488 struct buf { int x; };
   3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3490 static char *e (p, i)
   3491      char **p;
   3492      int i;
   3493 {
   3494   return p[i];
   3495 }
   3496 static char *f (char * (*g) (char **, int), char **p, ...)
   3497 {
   3498   char *s;
   3499   va_list v;
   3500   va_start (v,p);
   3501   s = g (p, va_arg (v,int));
   3502   va_end (v);
   3503   return s;
   3504 }
   3505 
   3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3507    function prototypes and stuff, but not '\xHH' hex character constants.
   3508    These don't provoke an error unfortunately, instead are silently treated
   3509    as 'x'.  The following induces an error, until -std is added to get
   3510    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3511    array size at least.  It's necessary to write '\x00'==0 to get something
   3512    that's true only with -std.  */
   3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3514 
   3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3516    inside strings and character constants.  */
   3517 #define FOO(x) 'x'
   3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3519 
   3520 int test (int i, double x);
   3521 struct s1 {int (*f) (int a);};
   3522 struct s2 {int (*f) (double a);};
   3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3524 int argc;
   3525 char **argv;
   3526 int
   3527 main ()
   3528 {
   3529 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3530   ;
   3531   return 0;
   3532 }
   3533 _ACEOF
   3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3535 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3536 do
   3537   CC="$ac_save_CC $ac_arg"
   3538   if ac_fn_c_try_compile "$LINENO"; then :
   3539   ac_cv_prog_cc_c89=$ac_arg
   3540 fi
   3541 rm -f core conftest.err conftest.$ac_objext
   3542   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3543 done
   3544 rm -f conftest.$ac_ext
   3545 CC=$ac_save_CC
   3546 
   3547 fi
   3548 # AC_CACHE_VAL
   3549 case "x$ac_cv_prog_cc_c89" in
   3550   x)
   3551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3552 $as_echo "none needed" >&6; } ;;
   3553   xno)
   3554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3555 $as_echo "unsupported" >&6; } ;;
   3556   *)
   3557     CC="$CC $ac_cv_prog_cc_c89"
   3558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3560 esac
   3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3562 
   3563 fi
   3564 
   3565 ac_ext=c
   3566 ac_cpp='$CPP $CPPFLAGS'
   3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3570 
   3571 
   3572 ac_ext=c
   3573 ac_cpp='$CPP $CPPFLAGS'
   3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3578 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3579 # On Suns, sometimes $CPP names a directory.
   3580 if test -n "$CPP" && test -d "$CPP"; then
   3581   CPP=
   3582 fi
   3583 if test -z "$CPP"; then
   3584   if ${ac_cv_prog_CPP+:} false; then :
   3585   $as_echo_n "(cached) " >&6
   3586 else
   3587       # Double quotes because CPP needs to be expanded
   3588     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3589     do
   3590       ac_preproc_ok=false
   3591 for ac_c_preproc_warn_flag in '' yes
   3592 do
   3593   # Use a header file that comes with gcc, so configuring glibc
   3594   # with a fresh cross-compiler works.
   3595   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3596   # <limits.h> exists even on freestanding compilers.
   3597   # On the NeXT, cc -E runs the code through the compiler's parser,
   3598   # not just through cpp. "Syntax error" is here to catch this case.
   3599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3600 /* end confdefs.h.  */
   3601 #ifdef __STDC__
   3602 # include <limits.h>
   3603 #else
   3604 # include <assert.h>
   3605 #endif
   3606 		     Syntax error
   3607 _ACEOF
   3608 if ac_fn_c_try_cpp "$LINENO"; then :
   3609 
   3610 else
   3611   # Broken: fails on valid input.
   3612 continue
   3613 fi
   3614 rm -f conftest.err conftest.i conftest.$ac_ext
   3615 
   3616   # OK, works on sane cases.  Now check whether nonexistent headers
   3617   # can be detected and how.
   3618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3619 /* end confdefs.h.  */
   3620 #include <ac_nonexistent.h>
   3621 _ACEOF
   3622 if ac_fn_c_try_cpp "$LINENO"; then :
   3623   # Broken: success on invalid input.
   3624 continue
   3625 else
   3626   # Passes both tests.
   3627 ac_preproc_ok=:
   3628 break
   3629 fi
   3630 rm -f conftest.err conftest.i conftest.$ac_ext
   3631 
   3632 done
   3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3634 rm -f conftest.i conftest.err conftest.$ac_ext
   3635 if $ac_preproc_ok; then :
   3636   break
   3637 fi
   3638 
   3639     done
   3640     ac_cv_prog_CPP=$CPP
   3641 
   3642 fi
   3643   CPP=$ac_cv_prog_CPP
   3644 else
   3645   ac_cv_prog_CPP=$CPP
   3646 fi
   3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3648 $as_echo "$CPP" >&6; }
   3649 ac_preproc_ok=false
   3650 for ac_c_preproc_warn_flag in '' yes
   3651 do
   3652   # Use a header file that comes with gcc, so configuring glibc
   3653   # with a fresh cross-compiler works.
   3654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3655   # <limits.h> exists even on freestanding compilers.
   3656   # On the NeXT, cc -E runs the code through the compiler's parser,
   3657   # not just through cpp. "Syntax error" is here to catch this case.
   3658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3659 /* end confdefs.h.  */
   3660 #ifdef __STDC__
   3661 # include <limits.h>
   3662 #else
   3663 # include <assert.h>
   3664 #endif
   3665 		     Syntax error
   3666 _ACEOF
   3667 if ac_fn_c_try_cpp "$LINENO"; then :
   3668 
   3669 else
   3670   # Broken: fails on valid input.
   3671 continue
   3672 fi
   3673 rm -f conftest.err conftest.i conftest.$ac_ext
   3674 
   3675   # OK, works on sane cases.  Now check whether nonexistent headers
   3676   # can be detected and how.
   3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3678 /* end confdefs.h.  */
   3679 #include <ac_nonexistent.h>
   3680 _ACEOF
   3681 if ac_fn_c_try_cpp "$LINENO"; then :
   3682   # Broken: success on invalid input.
   3683 continue
   3684 else
   3685   # Passes both tests.
   3686 ac_preproc_ok=:
   3687 break
   3688 fi
   3689 rm -f conftest.err conftest.i conftest.$ac_ext
   3690 
   3691 done
   3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3693 rm -f conftest.i conftest.err conftest.$ac_ext
   3694 if $ac_preproc_ok; then :
   3695 
   3696 else
   3697   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3699 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3700 See \`config.log' for more details" "$LINENO" 5; }
   3701 fi
   3702 
   3703 ac_ext=c
   3704 ac_cpp='$CPP $CPPFLAGS'
   3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3708 
   3709 
   3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3711 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3712 if ${ac_cv_path_GREP+:} false; then :
   3713   $as_echo_n "(cached) " >&6
   3714 else
   3715   if test -z "$GREP"; then
   3716   ac_path_GREP_found=false
   3717   # Loop through the user's path and test for each of PROGNAME-LIST
   3718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3720 do
   3721   IFS=$as_save_IFS
   3722   test -z "$as_dir" && as_dir=.
   3723     for ac_prog in grep ggrep; do
   3724     for ac_exec_ext in '' $ac_executable_extensions; do
   3725       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3726       as_fn_executable_p "$ac_path_GREP" || continue
   3727 # Check for GNU ac_path_GREP and select it if it is found.
   3728   # Check for GNU $ac_path_GREP
   3729 case `"$ac_path_GREP" --version 2>&1` in
   3730 *GNU*)
   3731   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3732 *)
   3733   ac_count=0
   3734   $as_echo_n 0123456789 >"conftest.in"
   3735   while :
   3736   do
   3737     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3738     mv "conftest.tmp" "conftest.in"
   3739     cp "conftest.in" "conftest.nl"
   3740     $as_echo 'GREP' >> "conftest.nl"
   3741     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3743     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3744     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3745       # Best one so far, save it but keep looking for a better one
   3746       ac_cv_path_GREP="$ac_path_GREP"
   3747       ac_path_GREP_max=$ac_count
   3748     fi
   3749     # 10*(2^10) chars as input seems more than enough
   3750     test $ac_count -gt 10 && break
   3751   done
   3752   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3753 esac
   3754 
   3755       $ac_path_GREP_found && break 3
   3756     done
   3757   done
   3758   done
   3759 IFS=$as_save_IFS
   3760   if test -z "$ac_cv_path_GREP"; then
   3761     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3762   fi
   3763 else
   3764   ac_cv_path_GREP=$GREP
   3765 fi
   3766 
   3767 fi
   3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3769 $as_echo "$ac_cv_path_GREP" >&6; }
   3770  GREP="$ac_cv_path_GREP"
   3771 
   3772 
   3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3774 $as_echo_n "checking for egrep... " >&6; }
   3775 if ${ac_cv_path_EGREP+:} false; then :
   3776   $as_echo_n "(cached) " >&6
   3777 else
   3778   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3779    then ac_cv_path_EGREP="$GREP -E"
   3780    else
   3781      if test -z "$EGREP"; then
   3782   ac_path_EGREP_found=false
   3783   # Loop through the user's path and test for each of PROGNAME-LIST
   3784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3786 do
   3787   IFS=$as_save_IFS
   3788   test -z "$as_dir" && as_dir=.
   3789     for ac_prog in egrep; do
   3790     for ac_exec_ext in '' $ac_executable_extensions; do
   3791       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3792       as_fn_executable_p "$ac_path_EGREP" || continue
   3793 # Check for GNU ac_path_EGREP and select it if it is found.
   3794   # Check for GNU $ac_path_EGREP
   3795 case `"$ac_path_EGREP" --version 2>&1` in
   3796 *GNU*)
   3797   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3798 *)
   3799   ac_count=0
   3800   $as_echo_n 0123456789 >"conftest.in"
   3801   while :
   3802   do
   3803     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3804     mv "conftest.tmp" "conftest.in"
   3805     cp "conftest.in" "conftest.nl"
   3806     $as_echo 'EGREP' >> "conftest.nl"
   3807     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3808     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3809     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3810     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3811       # Best one so far, save it but keep looking for a better one
   3812       ac_cv_path_EGREP="$ac_path_EGREP"
   3813       ac_path_EGREP_max=$ac_count
   3814     fi
   3815     # 10*(2^10) chars as input seems more than enough
   3816     test $ac_count -gt 10 && break
   3817   done
   3818   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3819 esac
   3820 
   3821       $ac_path_EGREP_found && break 3
   3822     done
   3823   done
   3824   done
   3825 IFS=$as_save_IFS
   3826   if test -z "$ac_cv_path_EGREP"; then
   3827     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3828   fi
   3829 else
   3830   ac_cv_path_EGREP=$EGREP
   3831 fi
   3832 
   3833    fi
   3834 fi
   3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3836 $as_echo "$ac_cv_path_EGREP" >&6; }
   3837  EGREP="$ac_cv_path_EGREP"
   3838 
   3839 
   3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3841 $as_echo_n "checking for ANSI C header files... " >&6; }
   3842 if ${ac_cv_header_stdc+:} false; then :
   3843   $as_echo_n "(cached) " >&6
   3844 else
   3845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3846 /* end confdefs.h.  */
   3847 #include <stdlib.h>
   3848 #include <stdarg.h>
   3849 #include <string.h>
   3850 #include <float.h>
   3851 
   3852 int
   3853 main ()
   3854 {
   3855 
   3856   ;
   3857   return 0;
   3858 }
   3859 _ACEOF
   3860 if ac_fn_c_try_compile "$LINENO"; then :
   3861   ac_cv_header_stdc=yes
   3862 else
   3863   ac_cv_header_stdc=no
   3864 fi
   3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3866 
   3867 if test $ac_cv_header_stdc = yes; then
   3868   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3870 /* end confdefs.h.  */
   3871 #include <string.h>
   3872 
   3873 _ACEOF
   3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3875   $EGREP "memchr" >/dev/null 2>&1; then :
   3876 
   3877 else
   3878   ac_cv_header_stdc=no
   3879 fi
   3880 rm -f conftest*
   3881 
   3882 fi
   3883 
   3884 if test $ac_cv_header_stdc = yes; then
   3885   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3887 /* end confdefs.h.  */
   3888 #include <stdlib.h>
   3889 
   3890 _ACEOF
   3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3892   $EGREP "free" >/dev/null 2>&1; then :
   3893 
   3894 else
   3895   ac_cv_header_stdc=no
   3896 fi
   3897 rm -f conftest*
   3898 
   3899 fi
   3900 
   3901 if test $ac_cv_header_stdc = yes; then
   3902   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3903   if test "$cross_compiling" = yes; then :
   3904   :
   3905 else
   3906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3907 /* end confdefs.h.  */
   3908 #include <ctype.h>
   3909 #include <stdlib.h>
   3910 #if ((' ' & 0x0FF) == 0x020)
   3911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3913 #else
   3914 # define ISLOWER(c) \
   3915 		   (('a' <= (c) && (c) <= 'i') \
   3916 		     || ('j' <= (c) && (c) <= 'r') \
   3917 		     || ('s' <= (c) && (c) <= 'z'))
   3918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3919 #endif
   3920 
   3921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3922 int
   3923 main ()
   3924 {
   3925   int i;
   3926   for (i = 0; i < 256; i++)
   3927     if (XOR (islower (i), ISLOWER (i))
   3928 	|| toupper (i) != TOUPPER (i))
   3929       return 2;
   3930   return 0;
   3931 }
   3932 _ACEOF
   3933 if ac_fn_c_try_run "$LINENO"; then :
   3934 
   3935 else
   3936   ac_cv_header_stdc=no
   3937 fi
   3938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3939   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3940 fi
   3941 
   3942 fi
   3943 fi
   3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3945 $as_echo "$ac_cv_header_stdc" >&6; }
   3946 if test $ac_cv_header_stdc = yes; then
   3947 
   3948 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3949 
   3950 fi
   3951 
   3952 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3953 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3954 		  inttypes.h stdint.h unistd.h
   3955 do :
   3956   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3958 "
   3959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3960   cat >>confdefs.h <<_ACEOF
   3961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3962 _ACEOF
   3963 
   3964 fi
   3965 
   3966 done
   3967 
   3968 
   3969 
   3970   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3971 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3972   MINIX=yes
   3973 else
   3974   MINIX=
   3975 fi
   3976 
   3977 
   3978   if test "$MINIX" = yes; then
   3979 
   3980 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3981 
   3982 
   3983 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3984 
   3985 
   3986 $as_echo "#define _MINIX 1" >>confdefs.h
   3987 
   3988   fi
   3989 
   3990 
   3991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3992 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3993 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3994   $as_echo_n "(cached) " >&6
   3995 else
   3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3997 /* end confdefs.h.  */
   3998 
   3999 #         define __EXTENSIONS__ 1
   4000           $ac_includes_default
   4001 int
   4002 main ()
   4003 {
   4004 
   4005   ;
   4006   return 0;
   4007 }
   4008 _ACEOF
   4009 if ac_fn_c_try_compile "$LINENO"; then :
   4010   ac_cv_safe_to_define___extensions__=yes
   4011 else
   4012   ac_cv_safe_to_define___extensions__=no
   4013 fi
   4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4015 fi
   4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4017 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4018   test $ac_cv_safe_to_define___extensions__ = yes &&
   4019     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4020 
   4021   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4022 
   4023   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4024 
   4025   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4026 
   4027   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4028 
   4029 
   4030 
   4031 #
   4032 # Enable large file support
   4033 #
   4034 # Check whether --enable-largefile was given.
   4035 if test "${enable_largefile+set}" = set; then :
   4036   enableval=$enable_largefile;
   4037 fi
   4038 
   4039 if test "$enable_largefile" != no; then
   4040 
   4041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4042 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4043 if ${ac_cv_sys_largefile_CC+:} false; then :
   4044   $as_echo_n "(cached) " >&6
   4045 else
   4046   ac_cv_sys_largefile_CC=no
   4047      if test "$GCC" != yes; then
   4048        ac_save_CC=$CC
   4049        while :; do
   4050 	 # IRIX 6.2 and later do not support large files by default,
   4051 	 # so use the C compiler's -n32 option if that helps.
   4052 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4053 /* end confdefs.h.  */
   4054 #include <sys/types.h>
   4055  /* Check that off_t can represent 2**63 - 1 correctly.
   4056     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4057     since some C++ compilers masquerading as C compilers
   4058     incorrectly reject 9223372036854775807.  */
   4059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4060   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4061 		       && LARGE_OFF_T % 2147483647 == 1)
   4062 		      ? 1 : -1];
   4063 int
   4064 main ()
   4065 {
   4066 
   4067   ;
   4068   return 0;
   4069 }
   4070 _ACEOF
   4071 	 if ac_fn_c_try_compile "$LINENO"; then :
   4072   break
   4073 fi
   4074 rm -f core conftest.err conftest.$ac_objext
   4075 	 CC="$CC -n32"
   4076 	 if ac_fn_c_try_compile "$LINENO"; then :
   4077   ac_cv_sys_largefile_CC=' -n32'; break
   4078 fi
   4079 rm -f core conftest.err conftest.$ac_objext
   4080 	 break
   4081        done
   4082        CC=$ac_save_CC
   4083        rm -f conftest.$ac_ext
   4084     fi
   4085 fi
   4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4087 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4088   if test "$ac_cv_sys_largefile_CC" != no; then
   4089     CC=$CC$ac_cv_sys_largefile_CC
   4090   fi
   4091 
   4092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4093 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4094 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4095   $as_echo_n "(cached) " >&6
   4096 else
   4097   while :; do
   4098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4099 /* end confdefs.h.  */
   4100 #include <sys/types.h>
   4101  /* Check that off_t can represent 2**63 - 1 correctly.
   4102     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4103     since some C++ compilers masquerading as C compilers
   4104     incorrectly reject 9223372036854775807.  */
   4105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4106   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4107 		       && LARGE_OFF_T % 2147483647 == 1)
   4108 		      ? 1 : -1];
   4109 int
   4110 main ()
   4111 {
   4112 
   4113   ;
   4114   return 0;
   4115 }
   4116 _ACEOF
   4117 if ac_fn_c_try_compile "$LINENO"; then :
   4118   ac_cv_sys_file_offset_bits=no; break
   4119 fi
   4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4122 /* end confdefs.h.  */
   4123 #define _FILE_OFFSET_BITS 64
   4124 #include <sys/types.h>
   4125  /* Check that off_t can represent 2**63 - 1 correctly.
   4126     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4127     since some C++ compilers masquerading as C compilers
   4128     incorrectly reject 9223372036854775807.  */
   4129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4130   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4131 		       && LARGE_OFF_T % 2147483647 == 1)
   4132 		      ? 1 : -1];
   4133 int
   4134 main ()
   4135 {
   4136 
   4137   ;
   4138   return 0;
   4139 }
   4140 _ACEOF
   4141 if ac_fn_c_try_compile "$LINENO"; then :
   4142   ac_cv_sys_file_offset_bits=64; break
   4143 fi
   4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4145   ac_cv_sys_file_offset_bits=unknown
   4146   break
   4147 done
   4148 fi
   4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4150 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4151 case $ac_cv_sys_file_offset_bits in #(
   4152   no | unknown) ;;
   4153   *)
   4154 cat >>confdefs.h <<_ACEOF
   4155 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4156 _ACEOF
   4157 ;;
   4158 esac
   4159 rm -rf conftest*
   4160   if test $ac_cv_sys_file_offset_bits = unknown; then
   4161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4162 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4163 if ${ac_cv_sys_large_files+:} false; then :
   4164   $as_echo_n "(cached) " >&6
   4165 else
   4166   while :; do
   4167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4168 /* end confdefs.h.  */
   4169 #include <sys/types.h>
   4170  /* Check that off_t can represent 2**63 - 1 correctly.
   4171     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4172     since some C++ compilers masquerading as C compilers
   4173     incorrectly reject 9223372036854775807.  */
   4174 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4175   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4176 		       && LARGE_OFF_T % 2147483647 == 1)
   4177 		      ? 1 : -1];
   4178 int
   4179 main ()
   4180 {
   4181 
   4182   ;
   4183   return 0;
   4184 }
   4185 _ACEOF
   4186 if ac_fn_c_try_compile "$LINENO"; then :
   4187   ac_cv_sys_large_files=no; break
   4188 fi
   4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4191 /* end confdefs.h.  */
   4192 #define _LARGE_FILES 1
   4193 #include <sys/types.h>
   4194  /* Check that off_t can represent 2**63 - 1 correctly.
   4195     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4196     since some C++ compilers masquerading as C compilers
   4197     incorrectly reject 9223372036854775807.  */
   4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4199   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4200 		       && LARGE_OFF_T % 2147483647 == 1)
   4201 		      ? 1 : -1];
   4202 int
   4203 main ()
   4204 {
   4205 
   4206   ;
   4207   return 0;
   4208 }
   4209 _ACEOF
   4210 if ac_fn_c_try_compile "$LINENO"; then :
   4211   ac_cv_sys_large_files=1; break
   4212 fi
   4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4214   ac_cv_sys_large_files=unknown
   4215   break
   4216 done
   4217 fi
   4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4219 $as_echo "$ac_cv_sys_large_files" >&6; }
   4220 case $ac_cv_sys_large_files in #(
   4221   no | unknown) ;;
   4222   *)
   4223 cat >>confdefs.h <<_ACEOF
   4224 #define _LARGE_FILES $ac_cv_sys_large_files
   4225 _ACEOF
   4226 ;;
   4227 esac
   4228 rm -rf conftest*
   4229   fi
   4230 
   4231 
   4232 fi
   4233 
   4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   4235 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   4236 if ${ac_cv_sys_largefile_source+:} false; then :
   4237   $as_echo_n "(cached) " >&6
   4238 else
   4239   while :; do
   4240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4241 /* end confdefs.h.  */
   4242 #include <sys/types.h> /* for off_t */
   4243      #include <stdio.h>
   4244 int
   4245 main ()
   4246 {
   4247 int (*fp) (FILE *, off_t, int) = fseeko;
   4248      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4249   ;
   4250   return 0;
   4251 }
   4252 _ACEOF
   4253 if ac_fn_c_try_link "$LINENO"; then :
   4254   ac_cv_sys_largefile_source=no; break
   4255 fi
   4256 rm -f core conftest.err conftest.$ac_objext \
   4257     conftest$ac_exeext conftest.$ac_ext
   4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4259 /* end confdefs.h.  */
   4260 #define _LARGEFILE_SOURCE 1
   4261 #include <sys/types.h> /* for off_t */
   4262      #include <stdio.h>
   4263 int
   4264 main ()
   4265 {
   4266 int (*fp) (FILE *, off_t, int) = fseeko;
   4267      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4268   ;
   4269   return 0;
   4270 }
   4271 _ACEOF
   4272 if ac_fn_c_try_link "$LINENO"; then :
   4273   ac_cv_sys_largefile_source=1; break
   4274 fi
   4275 rm -f core conftest.err conftest.$ac_objext \
   4276     conftest$ac_exeext conftest.$ac_ext
   4277   ac_cv_sys_largefile_source=unknown
   4278   break
   4279 done
   4280 fi
   4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   4282 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   4283 case $ac_cv_sys_largefile_source in #(
   4284   no | unknown) ;;
   4285   *)
   4286 cat >>confdefs.h <<_ACEOF
   4287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   4288 _ACEOF
   4289 ;;
   4290 esac
   4291 rm -rf conftest*
   4292 
   4293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   4294 # in glibc 2.1.3, but that breaks too many other things.
   4295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   4296 if test $ac_cv_sys_largefile_source != unknown; then
   4297 
   4298 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   4299 
   4300 fi
   4301 
   4302 
   4303 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
   4304 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
   4305 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
   4306 
   4307 
   4308 
   4309 
   4310 
   4311 # Enable RFC 3542 APIs on macOS
   4312 
   4313 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   4314 
   4315 
   4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4318 set x ${MAKE-make}
   4319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4320 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   4321   $as_echo_n "(cached) " >&6
   4322 else
   4323   cat >conftest.make <<\_ACEOF
   4324 SHELL = /bin/sh
   4325 all:
   4326 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4327 _ACEOF
   4328 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4329 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4330   *@@@%%%=?*=@@@%%%*)
   4331     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4332   *)
   4333     eval ac_cv_prog_make_${ac_make}_set=no;;
   4334 esac
   4335 rm -f conftest.make
   4336 fi
   4337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4339 $as_echo "yes" >&6; }
   4340   SET_MAKE=
   4341 else
   4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4343 $as_echo "no" >&6; }
   4344   SET_MAKE="MAKE=${MAKE-make}"
   4345 fi
   4346 
   4347 
   4348 case `pwd` in
   4349   *\ * | *\	*)
   4350     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   4351 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   4352 esac
   4353 
   4354 
   4355 
   4356 macro_version='2.4.6'
   4357 macro_revision='2.4.6'
   4358 
   4359 
   4360 
   4361 
   4362 
   4363 
   4364 
   4365 
   4366 
   4367 
   4368 
   4369 
   4370 
   4371 ltmain=$ac_aux_dir/ltmain.sh
   4372 
   4373 # Backslashify metacharacters that are still active within
   4374 # double-quoted strings.
   4375 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   4376 
   4377 # Same as above, but do not quote variable references.
   4378 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   4379 
   4380 # Sed substitution to delay expansion of an escaped shell variable in a
   4381 # double_quote_subst'ed string.
   4382 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   4383 
   4384 # Sed substitution to delay expansion of an escaped single quote.
   4385 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   4386 
   4387 # Sed substitution to avoid accidental globbing in evaled expressions
   4388 no_glob_subst='s/\*/\\\*/g'
   4389 
   4390 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   4391 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   4392 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   4393 
   4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   4395 $as_echo_n "checking how to print strings... " >&6; }
   4396 # Test print first, because it will be a builtin if present.
   4397 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   4398    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   4399   ECHO='print -r --'
   4400 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   4401   ECHO='printf %s\n'
   4402 else
   4403   # Use this function as a fallback that always works.
   4404   func_fallback_echo ()
   4405   {
   4406     eval 'cat <<_LTECHO_EOF
   4407 $1
   4408 _LTECHO_EOF'
   4409   }
   4410   ECHO='func_fallback_echo'
   4411 fi
   4412 
   4413 # func_echo_all arg...
   4414 # Invoke $ECHO with all args, space-separated.
   4415 func_echo_all ()
   4416 {
   4417     $ECHO ""
   4418 }
   4419 
   4420 case $ECHO in
   4421   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4422 $as_echo "printf" >&6; } ;;
   4423   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4424 $as_echo "print -r" >&6; } ;;
   4425   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4426 $as_echo "cat" >&6; } ;;
   4427 esac
   4428 
   4429 
   4430 
   4431 
   4432 
   4433 
   4434 
   4435 
   4436 
   4437 
   4438 
   4439 
   4440 
   4441 
   4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4443 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4444 if ${ac_cv_path_SED+:} false; then :
   4445   $as_echo_n "(cached) " >&6
   4446 else
   4447             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4448      for ac_i in 1 2 3 4 5 6 7; do
   4449        ac_script="$ac_script$as_nl$ac_script"
   4450      done
   4451      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4452      { ac_script=; unset ac_script;}
   4453      if test -z "$SED"; then
   4454   ac_path_SED_found=false
   4455   # Loop through the user's path and test for each of PROGNAME-LIST
   4456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4457 for as_dir in $PATH
   4458 do
   4459   IFS=$as_save_IFS
   4460   test -z "$as_dir" && as_dir=.
   4461     for ac_prog in sed gsed; do
   4462     for ac_exec_ext in '' $ac_executable_extensions; do
   4463       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4464       as_fn_executable_p "$ac_path_SED" || continue
   4465 # Check for GNU ac_path_SED and select it if it is found.
   4466   # Check for GNU $ac_path_SED
   4467 case `"$ac_path_SED" --version 2>&1` in
   4468 *GNU*)
   4469   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4470 *)
   4471   ac_count=0
   4472   $as_echo_n 0123456789 >"conftest.in"
   4473   while :
   4474   do
   4475     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4476     mv "conftest.tmp" "conftest.in"
   4477     cp "conftest.in" "conftest.nl"
   4478     $as_echo '' >> "conftest.nl"
   4479     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4480     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4481     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4482     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4483       # Best one so far, save it but keep looking for a better one
   4484       ac_cv_path_SED="$ac_path_SED"
   4485       ac_path_SED_max=$ac_count
   4486     fi
   4487     # 10*(2^10) chars as input seems more than enough
   4488     test $ac_count -gt 10 && break
   4489   done
   4490   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4491 esac
   4492 
   4493       $ac_path_SED_found && break 3
   4494     done
   4495   done
   4496   done
   4497 IFS=$as_save_IFS
   4498   if test -z "$ac_cv_path_SED"; then
   4499     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4500   fi
   4501 else
   4502   ac_cv_path_SED=$SED
   4503 fi
   4504 
   4505 fi
   4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4507 $as_echo "$ac_cv_path_SED" >&6; }
   4508  SED="$ac_cv_path_SED"
   4509   rm -f conftest.sed
   4510 
   4511 test -z "$SED" && SED=sed
   4512 Xsed="$SED -e 1s/^X//"
   4513 
   4514 
   4515 
   4516 
   4517 
   4518 
   4519 
   4520 
   4521 
   4522 
   4523 
   4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4525 $as_echo_n "checking for fgrep... " >&6; }
   4526 if ${ac_cv_path_FGREP+:} false; then :
   4527   $as_echo_n "(cached) " >&6
   4528 else
   4529   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4530    then ac_cv_path_FGREP="$GREP -F"
   4531    else
   4532      if test -z "$FGREP"; then
   4533   ac_path_FGREP_found=false
   4534   # Loop through the user's path and test for each of PROGNAME-LIST
   4535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4537 do
   4538   IFS=$as_save_IFS
   4539   test -z "$as_dir" && as_dir=.
   4540     for ac_prog in fgrep; do
   4541     for ac_exec_ext in '' $ac_executable_extensions; do
   4542       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4543       as_fn_executable_p "$ac_path_FGREP" || continue
   4544 # Check for GNU ac_path_FGREP and select it if it is found.
   4545   # Check for GNU $ac_path_FGREP
   4546 case `"$ac_path_FGREP" --version 2>&1` in
   4547 *GNU*)
   4548   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4549 *)
   4550   ac_count=0
   4551   $as_echo_n 0123456789 >"conftest.in"
   4552   while :
   4553   do
   4554     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4555     mv "conftest.tmp" "conftest.in"
   4556     cp "conftest.in" "conftest.nl"
   4557     $as_echo 'FGREP' >> "conftest.nl"
   4558     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4559     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4560     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4561     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4562       # Best one so far, save it but keep looking for a better one
   4563       ac_cv_path_FGREP="$ac_path_FGREP"
   4564       ac_path_FGREP_max=$ac_count
   4565     fi
   4566     # 10*(2^10) chars as input seems more than enough
   4567     test $ac_count -gt 10 && break
   4568   done
   4569   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4570 esac
   4571 
   4572       $ac_path_FGREP_found && break 3
   4573     done
   4574   done
   4575   done
   4576 IFS=$as_save_IFS
   4577   if test -z "$ac_cv_path_FGREP"; then
   4578     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4579   fi
   4580 else
   4581   ac_cv_path_FGREP=$FGREP
   4582 fi
   4583 
   4584    fi
   4585 fi
   4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4587 $as_echo "$ac_cv_path_FGREP" >&6; }
   4588  FGREP="$ac_cv_path_FGREP"
   4589 
   4590 
   4591 test -z "$GREP" && GREP=grep
   4592 
   4593 
   4594 
   4595 
   4596 
   4597 
   4598 
   4599 
   4600 
   4601 
   4602 
   4603 
   4604 
   4605 
   4606 
   4607 
   4608 
   4609 
   4610 
   4611 # Check whether --with-gnu-ld was given.
   4612 if test "${with_gnu_ld+set}" = set; then :
   4613   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4614 else
   4615   with_gnu_ld=no
   4616 fi
   4617 
   4618 ac_prog=ld
   4619 if test yes = "$GCC"; then
   4620   # Check if gcc -print-prog-name=ld gives a path.
   4621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4622 $as_echo_n "checking for ld used by $CC... " >&6; }
   4623   case $host in
   4624   *-*-mingw*)
   4625     # gcc leaves a trailing carriage return, which upsets mingw
   4626     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4627   *)
   4628     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4629   esac
   4630   case $ac_prog in
   4631     # Accept absolute paths.
   4632     [\\/]* | ?:[\\/]*)
   4633       re_direlt='/[^/][^/]*/\.\./'
   4634       # Canonicalize the pathname of ld
   4635       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4636       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4637 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4638       done
   4639       test -z "$LD" && LD=$ac_prog
   4640       ;;
   4641   "")
   4642     # If it fails, then pretend we aren't using GCC.
   4643     ac_prog=ld
   4644     ;;
   4645   *)
   4646     # If it is relative, then search for the first ld in PATH.
   4647     with_gnu_ld=unknown
   4648     ;;
   4649   esac
   4650 elif test yes = "$with_gnu_ld"; then
   4651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4652 $as_echo_n "checking for GNU ld... " >&6; }
   4653 else
   4654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4655 $as_echo_n "checking for non-GNU ld... " >&6; }
   4656 fi
   4657 if ${lt_cv_path_LD+:} false; then :
   4658   $as_echo_n "(cached) " >&6
   4659 else
   4660   if test -z "$LD"; then
   4661   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4662   for ac_dir in $PATH; do
   4663     IFS=$lt_save_ifs
   4664     test -z "$ac_dir" && ac_dir=.
   4665     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4666       lt_cv_path_LD=$ac_dir/$ac_prog
   4667       # Check to see if the program is GNU ld.  I'd rather use --version,
   4668       # but apparently some variants of GNU ld only accept -v.
   4669       # Break only if it was the GNU/non-GNU ld that we prefer.
   4670       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4671       *GNU* | *'with BFD'*)
   4672 	test no != "$with_gnu_ld" && break
   4673 	;;
   4674       *)
   4675 	test yes != "$with_gnu_ld" && break
   4676 	;;
   4677       esac
   4678     fi
   4679   done
   4680   IFS=$lt_save_ifs
   4681 else
   4682   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4683 fi
   4684 fi
   4685 
   4686 LD=$lt_cv_path_LD
   4687 if test -n "$LD"; then
   4688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4689 $as_echo "$LD" >&6; }
   4690 else
   4691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4692 $as_echo "no" >&6; }
   4693 fi
   4694 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4696 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4697 if ${lt_cv_prog_gnu_ld+:} false; then :
   4698   $as_echo_n "(cached) " >&6
   4699 else
   4700   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4701 case `$LD -v 2>&1 </dev/null` in
   4702 *GNU* | *'with BFD'*)
   4703   lt_cv_prog_gnu_ld=yes
   4704   ;;
   4705 *)
   4706   lt_cv_prog_gnu_ld=no
   4707   ;;
   4708 esac
   4709 fi
   4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4711 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4712 with_gnu_ld=$lt_cv_prog_gnu_ld
   4713 
   4714 
   4715 
   4716 
   4717 
   4718 
   4719 
   4720 
   4721 
   4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4723 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4724 if ${lt_cv_path_NM+:} false; then :
   4725   $as_echo_n "(cached) " >&6
   4726 else
   4727   if test -n "$NM"; then
   4728   # Let the user override the test.
   4729   lt_cv_path_NM=$NM
   4730 else
   4731   lt_nm_to_check=${ac_tool_prefix}nm
   4732   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4733     lt_nm_to_check="$lt_nm_to_check nm"
   4734   fi
   4735   for lt_tmp_nm in $lt_nm_to_check; do
   4736     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4737     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4738       IFS=$lt_save_ifs
   4739       test -z "$ac_dir" && ac_dir=.
   4740       tmp_nm=$ac_dir/$lt_tmp_nm
   4741       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4742 	# Check to see if the nm accepts a BSD-compat flag.
   4743 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4744 	#   nm: unknown option "B" ignored
   4745 	# Tru64's nm complains that /dev/null is an invalid object file
   4746 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4747 	case $build_os in
   4748 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4749 	*) lt_bad_file=/dev/null ;;
   4750 	esac
   4751 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4752 	*$lt_bad_file* | *'Invalid file or object type'*)
   4753 	  lt_cv_path_NM="$tmp_nm -B"
   4754 	  break 2
   4755 	  ;;
   4756 	*)
   4757 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4758 	  */dev/null*)
   4759 	    lt_cv_path_NM="$tmp_nm -p"
   4760 	    break 2
   4761 	    ;;
   4762 	  *)
   4763 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4764 	    continue # so that we can try to find one that supports BSD flags
   4765 	    ;;
   4766 	  esac
   4767 	  ;;
   4768 	esac
   4769       fi
   4770     done
   4771     IFS=$lt_save_ifs
   4772   done
   4773   : ${lt_cv_path_NM=no}
   4774 fi
   4775 fi
   4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4777 $as_echo "$lt_cv_path_NM" >&6; }
   4778 if test no != "$lt_cv_path_NM"; then
   4779   NM=$lt_cv_path_NM
   4780 else
   4781   # Didn't find any BSD compatible name lister, look for dumpbin.
   4782   if test -n "$DUMPBIN"; then :
   4783     # Let the user override the test.
   4784   else
   4785     if test -n "$ac_tool_prefix"; then
   4786   for ac_prog in dumpbin "link -dump"
   4787   do
   4788     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4791 $as_echo_n "checking for $ac_word... " >&6; }
   4792 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4793   $as_echo_n "(cached) " >&6
   4794 else
   4795   if test -n "$DUMPBIN"; then
   4796   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4797 else
   4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4799 for as_dir in $PATH
   4800 do
   4801   IFS=$as_save_IFS
   4802   test -z "$as_dir" && as_dir=.
   4803     for ac_exec_ext in '' $ac_executable_extensions; do
   4804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4805     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4807     break 2
   4808   fi
   4809 done
   4810   done
   4811 IFS=$as_save_IFS
   4812 
   4813 fi
   4814 fi
   4815 DUMPBIN=$ac_cv_prog_DUMPBIN
   4816 if test -n "$DUMPBIN"; then
   4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4818 $as_echo "$DUMPBIN" >&6; }
   4819 else
   4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4821 $as_echo "no" >&6; }
   4822 fi
   4823 
   4824 
   4825     test -n "$DUMPBIN" && break
   4826   done
   4827 fi
   4828 if test -z "$DUMPBIN"; then
   4829   ac_ct_DUMPBIN=$DUMPBIN
   4830   for ac_prog in dumpbin "link -dump"
   4831 do
   4832   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4833 set dummy $ac_prog; ac_word=$2
   4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4835 $as_echo_n "checking for $ac_word... " >&6; }
   4836 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4837   $as_echo_n "(cached) " >&6
   4838 else
   4839   if test -n "$ac_ct_DUMPBIN"; then
   4840   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4841 else
   4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4843 for as_dir in $PATH
   4844 do
   4845   IFS=$as_save_IFS
   4846   test -z "$as_dir" && as_dir=.
   4847     for ac_exec_ext in '' $ac_executable_extensions; do
   4848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4849     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4851     break 2
   4852   fi
   4853 done
   4854   done
   4855 IFS=$as_save_IFS
   4856 
   4857 fi
   4858 fi
   4859 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4860 if test -n "$ac_ct_DUMPBIN"; then
   4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4862 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4863 else
   4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4865 $as_echo "no" >&6; }
   4866 fi
   4867 
   4868 
   4869   test -n "$ac_ct_DUMPBIN" && break
   4870 done
   4871 
   4872   if test "x$ac_ct_DUMPBIN" = x; then
   4873     DUMPBIN=":"
   4874   else
   4875     case $cross_compiling:$ac_tool_warned in
   4876 yes:)
   4877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4879 ac_tool_warned=yes ;;
   4880 esac
   4881     DUMPBIN=$ac_ct_DUMPBIN
   4882   fi
   4883 fi
   4884 
   4885     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4886     *COFF*)
   4887       DUMPBIN="$DUMPBIN -symbols -headers"
   4888       ;;
   4889     *)
   4890       DUMPBIN=:
   4891       ;;
   4892     esac
   4893   fi
   4894 
   4895   if test : != "$DUMPBIN"; then
   4896     NM=$DUMPBIN
   4897   fi
   4898 fi
   4899 test -z "$NM" && NM=nm
   4900 
   4901 
   4902 
   4903 
   4904 
   4905 
   4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4907 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4908 if ${lt_cv_nm_interface+:} false; then :
   4909   $as_echo_n "(cached) " >&6
   4910 else
   4911   lt_cv_nm_interface="BSD nm"
   4912   echo "int some_variable = 0;" > conftest.$ac_ext
   4913   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4914   (eval "$ac_compile" 2>conftest.err)
   4915   cat conftest.err >&5
   4916   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4917   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4918   cat conftest.err >&5
   4919   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4920   cat conftest.out >&5
   4921   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4922     lt_cv_nm_interface="MS dumpbin"
   4923   fi
   4924   rm -f conftest*
   4925 fi
   4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4927 $as_echo "$lt_cv_nm_interface" >&6; }
   4928 
   4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4930 $as_echo_n "checking whether ln -s works... " >&6; }
   4931 LN_S=$as_ln_s
   4932 if test "$LN_S" = "ln -s"; then
   4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4934 $as_echo "yes" >&6; }
   4935 else
   4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4937 $as_echo "no, using $LN_S" >&6; }
   4938 fi
   4939 
   4940 # find the maximum length of command line arguments
   4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4942 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4943 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4944   $as_echo_n "(cached) " >&6
   4945 else
   4946     i=0
   4947   teststring=ABCD
   4948 
   4949   case $build_os in
   4950   msdosdjgpp*)
   4951     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4952     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4953     # during glob expansion).  Even if it were fixed, the result of this
   4954     # check would be larger than it should be.
   4955     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4956     ;;
   4957 
   4958   gnu*)
   4959     # Under GNU Hurd, this test is not required because there is
   4960     # no limit to the length of command line arguments.
   4961     # Libtool will interpret -1 as no limit whatsoever
   4962     lt_cv_sys_max_cmd_len=-1;
   4963     ;;
   4964 
   4965   cygwin* | mingw* | cegcc*)
   4966     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4967     # about 5 minutes as the teststring grows exponentially.
   4968     # Worse, since 9x/ME are not pre-emptively multitasking,
   4969     # you end up with a "frozen" computer, even though with patience
   4970     # the test eventually succeeds (with a max line length of 256k).
   4971     # Instead, let's just punt: use the minimum linelength reported by
   4972     # all of the supported platforms: 8192 (on NT/2K/XP).
   4973     lt_cv_sys_max_cmd_len=8192;
   4974     ;;
   4975 
   4976   mint*)
   4977     # On MiNT this can take a long time and run out of memory.
   4978     lt_cv_sys_max_cmd_len=8192;
   4979     ;;
   4980 
   4981   amigaos*)
   4982     # On AmigaOS with pdksh, this test takes hours, literally.
   4983     # So we just punt and use a minimum line length of 8192.
   4984     lt_cv_sys_max_cmd_len=8192;
   4985     ;;
   4986 
   4987   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4988     # This has been around since 386BSD, at least.  Likely further.
   4989     if test -x /sbin/sysctl; then
   4990       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4991     elif test -x /usr/sbin/sysctl; then
   4992       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4993     else
   4994       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4995     fi
   4996     # And add a safety zone
   4997     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4998     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4999     ;;
   5000 
   5001   interix*)
   5002     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   5003     lt_cv_sys_max_cmd_len=196608
   5004     ;;
   5005 
   5006   os2*)
   5007     # The test takes a long time on OS/2.
   5008     lt_cv_sys_max_cmd_len=8192
   5009     ;;
   5010 
   5011   osf*)
   5012     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   5013     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   5014     # nice to cause kernel panics so lets avoid the loop below.
   5015     # First set a reasonable default.
   5016     lt_cv_sys_max_cmd_len=16384
   5017     #
   5018     if test -x /sbin/sysconfig; then
   5019       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   5020         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   5021       esac
   5022     fi
   5023     ;;
   5024   sco3.2v5*)
   5025     lt_cv_sys_max_cmd_len=102400
   5026     ;;
   5027   sysv5* | sco5v6* | sysv4.2uw2*)
   5028     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   5029     if test -n "$kargmax"; then
   5030       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   5031     else
   5032       lt_cv_sys_max_cmd_len=32768
   5033     fi
   5034     ;;
   5035   *)
   5036     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   5037     if test -n "$lt_cv_sys_max_cmd_len" && \
   5038        test undefined != "$lt_cv_sys_max_cmd_len"; then
   5039       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   5040       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   5041     else
   5042       # Make teststring a little bigger before we do anything with it.
   5043       # a 1K string should be a reasonable start.
   5044       for i in 1 2 3 4 5 6 7 8; do
   5045         teststring=$teststring$teststring
   5046       done
   5047       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5048       # If test is not a shell built-in, we'll probably end up computing a
   5049       # maximum length that is only half of the actual maximum length, but
   5050       # we can't tell.
   5051       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   5052 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5053 	      test 17 != "$i" # 1/2 MB should be enough
   5054       do
   5055         i=`expr $i + 1`
   5056         teststring=$teststring$teststring
   5057       done
   5058       # Only check the string length outside the loop.
   5059       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5060       teststring=
   5061       # Add a significant safety factor because C++ compilers can tack on
   5062       # massive amounts of additional arguments before passing them to the
   5063       # linker.  It appears as though 1/2 is a usable value.
   5064       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5065     fi
   5066     ;;
   5067   esac
   5068 
   5069 fi
   5070 
   5071 if test -n "$lt_cv_sys_max_cmd_len"; then
   5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5073 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   5074 else
   5075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5076 $as_echo "none" >&6; }
   5077 fi
   5078 max_cmd_len=$lt_cv_sys_max_cmd_len
   5079 
   5080 
   5081 
   5082 
   5083 
   5084 
   5085 : ${CP="cp -f"}
   5086 : ${MV="mv -f"}
   5087 : ${RM="rm -f"}
   5088 
   5089 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5090   lt_unset=unset
   5091 else
   5092   lt_unset=false
   5093 fi
   5094 
   5095 
   5096 
   5097 
   5098 
   5099 # test EBCDIC or ASCII
   5100 case `echo X|tr X '\101'` in
   5101  A) # ASCII based system
   5102     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5103   lt_SP2NL='tr \040 \012'
   5104   lt_NL2SP='tr \015\012 \040\040'
   5105   ;;
   5106  *) # EBCDIC based system
   5107   lt_SP2NL='tr \100 \n'
   5108   lt_NL2SP='tr \r\n \100\100'
   5109   ;;
   5110 esac
   5111 
   5112 
   5113 
   5114 
   5115 
   5116 
   5117 
   5118 
   5119 
   5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5121 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   5122 if ${lt_cv_to_host_file_cmd+:} false; then :
   5123   $as_echo_n "(cached) " >&6
   5124 else
   5125   case $host in
   5126   *-*-mingw* )
   5127     case $build in
   5128       *-*-mingw* ) # actually msys
   5129         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5130         ;;
   5131       *-*-cygwin* )
   5132         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5133         ;;
   5134       * ) # otherwise, assume *nix
   5135         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5136         ;;
   5137     esac
   5138     ;;
   5139   *-*-cygwin* )
   5140     case $build in
   5141       *-*-mingw* ) # actually msys
   5142         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5143         ;;
   5144       *-*-cygwin* )
   5145         lt_cv_to_host_file_cmd=func_convert_file_noop
   5146         ;;
   5147       * ) # otherwise, assume *nix
   5148         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5149         ;;
   5150     esac
   5151     ;;
   5152   * ) # unhandled hosts (and "normal" native builds)
   5153     lt_cv_to_host_file_cmd=func_convert_file_noop
   5154     ;;
   5155 esac
   5156 
   5157 fi
   5158 
   5159 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5161 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   5162 
   5163 
   5164 
   5165 
   5166 
   5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5168 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   5169 if ${lt_cv_to_tool_file_cmd+:} false; then :
   5170   $as_echo_n "(cached) " >&6
   5171 else
   5172   #assume ordinary cross tools, or native build.
   5173 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5174 case $host in
   5175   *-*-mingw* )
   5176     case $build in
   5177       *-*-mingw* ) # actually msys
   5178         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5179         ;;
   5180     esac
   5181     ;;
   5182 esac
   5183 
   5184 fi
   5185 
   5186 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5188 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   5189 
   5190 
   5191 
   5192 
   5193 
   5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5195 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   5196 if ${lt_cv_ld_reload_flag+:} false; then :
   5197   $as_echo_n "(cached) " >&6
   5198 else
   5199   lt_cv_ld_reload_flag='-r'
   5200 fi
   5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5202 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   5203 reload_flag=$lt_cv_ld_reload_flag
   5204 case $reload_flag in
   5205 "" | " "*) ;;
   5206 *) reload_flag=" $reload_flag" ;;
   5207 esac
   5208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5209 case $host_os in
   5210   cygwin* | mingw* | pw32* | cegcc*)
   5211     if test yes != "$GCC"; then
   5212       reload_cmds=false
   5213     fi
   5214     ;;
   5215   darwin*)
   5216     if test yes = "$GCC"; then
   5217       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   5218     else
   5219       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5220     fi
   5221     ;;
   5222 esac
   5223 
   5224 
   5225 
   5226 
   5227 
   5228 
   5229 
   5230 
   5231 
   5232 if test -n "$ac_tool_prefix"; then
   5233   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   5234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5236 $as_echo_n "checking for $ac_word... " >&6; }
   5237 if ${ac_cv_prog_OBJDUMP+:} false; then :
   5238   $as_echo_n "(cached) " >&6
   5239 else
   5240   if test -n "$OBJDUMP"; then
   5241   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   5242 else
   5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5244 for as_dir in $PATH
   5245 do
   5246   IFS=$as_save_IFS
   5247   test -z "$as_dir" && as_dir=.
   5248     for ac_exec_ext in '' $ac_executable_extensions; do
   5249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5250     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   5251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5252     break 2
   5253   fi
   5254 done
   5255   done
   5256 IFS=$as_save_IFS
   5257 
   5258 fi
   5259 fi
   5260 OBJDUMP=$ac_cv_prog_OBJDUMP
   5261 if test -n "$OBJDUMP"; then
   5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   5263 $as_echo "$OBJDUMP" >&6; }
   5264 else
   5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5266 $as_echo "no" >&6; }
   5267 fi
   5268 
   5269 
   5270 fi
   5271 if test -z "$ac_cv_prog_OBJDUMP"; then
   5272   ac_ct_OBJDUMP=$OBJDUMP
   5273   # Extract the first word of "objdump", so it can be a program name with args.
   5274 set dummy objdump; ac_word=$2
   5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5276 $as_echo_n "checking for $ac_word... " >&6; }
   5277 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   5278   $as_echo_n "(cached) " >&6
   5279 else
   5280   if test -n "$ac_ct_OBJDUMP"; then
   5281   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   5282 else
   5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5284 for as_dir in $PATH
   5285 do
   5286   IFS=$as_save_IFS
   5287   test -z "$as_dir" && as_dir=.
   5288     for ac_exec_ext in '' $ac_executable_extensions; do
   5289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5290     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5292     break 2
   5293   fi
   5294 done
   5295   done
   5296 IFS=$as_save_IFS
   5297 
   5298 fi
   5299 fi
   5300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   5301 if test -n "$ac_ct_OBJDUMP"; then
   5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   5303 $as_echo "$ac_ct_OBJDUMP" >&6; }
   5304 else
   5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5306 $as_echo "no" >&6; }
   5307 fi
   5308 
   5309   if test "x$ac_ct_OBJDUMP" = x; then
   5310     OBJDUMP="false"
   5311   else
   5312     case $cross_compiling:$ac_tool_warned in
   5313 yes:)
   5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5316 ac_tool_warned=yes ;;
   5317 esac
   5318     OBJDUMP=$ac_ct_OBJDUMP
   5319   fi
   5320 else
   5321   OBJDUMP="$ac_cv_prog_OBJDUMP"
   5322 fi
   5323 
   5324 test -z "$OBJDUMP" && OBJDUMP=objdump
   5325 
   5326 
   5327 
   5328 
   5329 
   5330 
   5331 
   5332 
   5333 
   5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   5335 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   5336 if ${lt_cv_deplibs_check_method+:} false; then :
   5337   $as_echo_n "(cached) " >&6
   5338 else
   5339   lt_cv_file_magic_cmd='$MAGIC_CMD'
   5340 lt_cv_file_magic_test_file=
   5341 lt_cv_deplibs_check_method='unknown'
   5342 # Need to set the preceding variable on all platforms that support
   5343 # interlibrary dependencies.
   5344 # 'none' -- dependencies not supported.
   5345 # 'unknown' -- same as none, but documents that we really don't know.
   5346 # 'pass_all' -- all dependencies passed with no checks.
   5347 # 'test_compile' -- check by making test program.
   5348 # 'file_magic [[regex]]' -- check by looking for files in library path
   5349 # that responds to the $file_magic_cmd with a given extended regex.
   5350 # If you have 'file' or equivalent on your system and you're not sure
   5351 # whether 'pass_all' will *always* work, you probably want this one.
   5352 
   5353 case $host_os in
   5354 aix[4-9]*)
   5355   lt_cv_deplibs_check_method=pass_all
   5356   ;;
   5357 
   5358 beos*)
   5359   lt_cv_deplibs_check_method=pass_all
   5360   ;;
   5361 
   5362 bsdi[45]*)
   5363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   5364   lt_cv_file_magic_cmd='/usr/bin/file -L'
   5365   lt_cv_file_magic_test_file=/shlib/libc.so
   5366   ;;
   5367 
   5368 cygwin*)
   5369   # func_win32_libid is a shell function defined in ltmain.sh
   5370   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5371   lt_cv_file_magic_cmd='func_win32_libid'
   5372   ;;
   5373 
   5374 mingw* | pw32*)
   5375   # Base MSYS/MinGW do not provide the 'file' command needed by
   5376   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   5377   # unless we find 'file', for example because we are cross-compiling.
   5378   if ( file / ) >/dev/null 2>&1; then
   5379     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5380     lt_cv_file_magic_cmd='func_win32_libid'
   5381   else
   5382     # Keep this pattern in sync with the one in func_win32_libid.
   5383     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   5384     lt_cv_file_magic_cmd='$OBJDUMP -f'
   5385   fi
   5386   ;;
   5387 
   5388 cegcc*)
   5389   # use the weaker test based on 'objdump'. See mingw*.
   5390   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   5391   lt_cv_file_magic_cmd='$OBJDUMP -f'
   5392   ;;
   5393 
   5394 darwin* | rhapsody*)
   5395   lt_cv_deplibs_check_method=pass_all
   5396   ;;
   5397 
   5398 freebsd* | dragonfly*)
   5399   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5400     case $host_cpu in
   5401     i*86 )
   5402       # Not sure whether the presence of OpenBSD here was a mistake.
   5403       # Let's accept both of them until this is cleared up.
   5404       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   5405       lt_cv_file_magic_cmd=/usr/bin/file
   5406       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   5407       ;;
   5408     esac
   5409   else
   5410     lt_cv_deplibs_check_method=pass_all
   5411   fi
   5412   ;;
   5413 
   5414 haiku*)
   5415   lt_cv_deplibs_check_method=pass_all
   5416   ;;
   5417 
   5418 hpux10.20* | hpux11*)
   5419   lt_cv_file_magic_cmd=/usr/bin/file
   5420   case $host_cpu in
   5421   ia64*)
   5422     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5423     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5424     ;;
   5425   hppa*64*)
   5426     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]'
   5427     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5428     ;;
   5429   *)
   5430     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5432     ;;
   5433   esac
   5434   ;;
   5435 
   5436 interix[3-9]*)
   5437   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5438   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5439   ;;
   5440 
   5441 irix5* | irix6* | nonstopux*)
   5442   case $LD in
   5443   *-32|*"-32 ") libmagic=32-bit;;
   5444   *-n32|*"-n32 ") libmagic=N32;;
   5445   *-64|*"-64 ") libmagic=64-bit;;
   5446   *) libmagic=never-match;;
   5447   esac
   5448   lt_cv_deplibs_check_method=pass_all
   5449   ;;
   5450 
   5451 # This must be glibc/ELF.
   5452 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5453   lt_cv_deplibs_check_method=pass_all
   5454   ;;
   5455 
   5456 netbsd*)
   5457   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5459   else
   5460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5461   fi
   5462   ;;
   5463 
   5464 newos6*)
   5465   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5466   lt_cv_file_magic_cmd=/usr/bin/file
   5467   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5468   ;;
   5469 
   5470 *nto* | *qnx*)
   5471   lt_cv_deplibs_check_method=pass_all
   5472   ;;
   5473 
   5474 openbsd* | bitrig*)
   5475   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5477   else
   5478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5479   fi
   5480   ;;
   5481 
   5482 osf3* | osf4* | osf5*)
   5483   lt_cv_deplibs_check_method=pass_all
   5484   ;;
   5485 
   5486 rdos*)
   5487   lt_cv_deplibs_check_method=pass_all
   5488   ;;
   5489 
   5490 solaris*)
   5491   lt_cv_deplibs_check_method=pass_all
   5492   ;;
   5493 
   5494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5495   lt_cv_deplibs_check_method=pass_all
   5496   ;;
   5497 
   5498 sysv4 | sysv4.3*)
   5499   case $host_vendor in
   5500   motorola)
   5501     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]'
   5502     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5503     ;;
   5504   ncr)
   5505     lt_cv_deplibs_check_method=pass_all
   5506     ;;
   5507   sequent)
   5508     lt_cv_file_magic_cmd='/bin/file'
   5509     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5510     ;;
   5511   sni)
   5512     lt_cv_file_magic_cmd='/bin/file'
   5513     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5514     lt_cv_file_magic_test_file=/lib/libc.so
   5515     ;;
   5516   siemens)
   5517     lt_cv_deplibs_check_method=pass_all
   5518     ;;
   5519   pc)
   5520     lt_cv_deplibs_check_method=pass_all
   5521     ;;
   5522   esac
   5523   ;;
   5524 
   5525 tpf*)
   5526   lt_cv_deplibs_check_method=pass_all
   5527   ;;
   5528 os2*)
   5529   lt_cv_deplibs_check_method=pass_all
   5530   ;;
   5531 esac
   5532 
   5533 fi
   5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5535 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5536 
   5537 file_magic_glob=
   5538 want_nocaseglob=no
   5539 if test "$build" = "$host"; then
   5540   case $host_os in
   5541   mingw* | pw32*)
   5542     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5543       want_nocaseglob=yes
   5544     else
   5545       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5546     fi
   5547     ;;
   5548   esac
   5549 fi
   5550 
   5551 file_magic_cmd=$lt_cv_file_magic_cmd
   5552 deplibs_check_method=$lt_cv_deplibs_check_method
   5553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5554 
   5555 
   5556 
   5557 
   5558 
   5559 
   5560 
   5561 
   5562 
   5563 
   5564 
   5565 
   5566 
   5567 
   5568 
   5569 
   5570 
   5571 
   5572 
   5573 
   5574 
   5575 
   5576 if test -n "$ac_tool_prefix"; then
   5577   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5578 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5580 $as_echo_n "checking for $ac_word... " >&6; }
   5581 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5582   $as_echo_n "(cached) " >&6
   5583 else
   5584   if test -n "$DLLTOOL"; then
   5585   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5586 else
   5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5588 for as_dir in $PATH
   5589 do
   5590   IFS=$as_save_IFS
   5591   test -z "$as_dir" && as_dir=.
   5592     for ac_exec_ext in '' $ac_executable_extensions; do
   5593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5594     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5596     break 2
   5597   fi
   5598 done
   5599   done
   5600 IFS=$as_save_IFS
   5601 
   5602 fi
   5603 fi
   5604 DLLTOOL=$ac_cv_prog_DLLTOOL
   5605 if test -n "$DLLTOOL"; then
   5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5607 $as_echo "$DLLTOOL" >&6; }
   5608 else
   5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5610 $as_echo "no" >&6; }
   5611 fi
   5612 
   5613 
   5614 fi
   5615 if test -z "$ac_cv_prog_DLLTOOL"; then
   5616   ac_ct_DLLTOOL=$DLLTOOL
   5617   # Extract the first word of "dlltool", so it can be a program name with args.
   5618 set dummy dlltool; ac_word=$2
   5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5620 $as_echo_n "checking for $ac_word... " >&6; }
   5621 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5622   $as_echo_n "(cached) " >&6
   5623 else
   5624   if test -n "$ac_ct_DLLTOOL"; then
   5625   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5626 else
   5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5628 for as_dir in $PATH
   5629 do
   5630   IFS=$as_save_IFS
   5631   test -z "$as_dir" && as_dir=.
   5632     for ac_exec_ext in '' $ac_executable_extensions; do
   5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5634     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5636     break 2
   5637   fi
   5638 done
   5639   done
   5640 IFS=$as_save_IFS
   5641 
   5642 fi
   5643 fi
   5644 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5645 if test -n "$ac_ct_DLLTOOL"; then
   5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5647 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5648 else
   5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5650 $as_echo "no" >&6; }
   5651 fi
   5652 
   5653   if test "x$ac_ct_DLLTOOL" = x; then
   5654     DLLTOOL="false"
   5655   else
   5656     case $cross_compiling:$ac_tool_warned in
   5657 yes:)
   5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5660 ac_tool_warned=yes ;;
   5661 esac
   5662     DLLTOOL=$ac_ct_DLLTOOL
   5663   fi
   5664 else
   5665   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5666 fi
   5667 
   5668 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5669 
   5670 
   5671 
   5672 
   5673 
   5674 
   5675 
   5676 
   5677 
   5678 
   5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5680 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5681 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5682   $as_echo_n "(cached) " >&6
   5683 else
   5684   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5685 
   5686 case $host_os in
   5687 cygwin* | mingw* | pw32* | cegcc*)
   5688   # two different shell functions defined in ltmain.sh;
   5689   # decide which one to use based on capabilities of $DLLTOOL
   5690   case `$DLLTOOL --help 2>&1` in
   5691   *--identify-strict*)
   5692     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5693     ;;
   5694   *)
   5695     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5696     ;;
   5697   esac
   5698   ;;
   5699 *)
   5700   # fallback: assume linklib IS sharedlib
   5701   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5702   ;;
   5703 esac
   5704 
   5705 fi
   5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5707 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5708 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5709 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5710 
   5711 
   5712 
   5713 
   5714 
   5715 
   5716 
   5717 if test -n "$ac_tool_prefix"; then
   5718   for ac_prog in ar
   5719   do
   5720     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5723 $as_echo_n "checking for $ac_word... " >&6; }
   5724 if ${ac_cv_prog_AR+:} false; then :
   5725   $as_echo_n "(cached) " >&6
   5726 else
   5727   if test -n "$AR"; then
   5728   ac_cv_prog_AR="$AR" # Let the user override the test.
   5729 else
   5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5731 for as_dir in $PATH
   5732 do
   5733   IFS=$as_save_IFS
   5734   test -z "$as_dir" && as_dir=.
   5735     for ac_exec_ext in '' $ac_executable_extensions; do
   5736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5737     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5739     break 2
   5740   fi
   5741 done
   5742   done
   5743 IFS=$as_save_IFS
   5744 
   5745 fi
   5746 fi
   5747 AR=$ac_cv_prog_AR
   5748 if test -n "$AR"; then
   5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5750 $as_echo "$AR" >&6; }
   5751 else
   5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5753 $as_echo "no" >&6; }
   5754 fi
   5755 
   5756 
   5757     test -n "$AR" && break
   5758   done
   5759 fi
   5760 if test -z "$AR"; then
   5761   ac_ct_AR=$AR
   5762   for ac_prog in ar
   5763 do
   5764   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5765 set dummy $ac_prog; ac_word=$2
   5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5767 $as_echo_n "checking for $ac_word... " >&6; }
   5768 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5769   $as_echo_n "(cached) " >&6
   5770 else
   5771   if test -n "$ac_ct_AR"; then
   5772   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5773 else
   5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5775 for as_dir in $PATH
   5776 do
   5777   IFS=$as_save_IFS
   5778   test -z "$as_dir" && as_dir=.
   5779     for ac_exec_ext in '' $ac_executable_extensions; do
   5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5781     ac_cv_prog_ac_ct_AR="$ac_prog"
   5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5783     break 2
   5784   fi
   5785 done
   5786   done
   5787 IFS=$as_save_IFS
   5788 
   5789 fi
   5790 fi
   5791 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5792 if test -n "$ac_ct_AR"; then
   5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5794 $as_echo "$ac_ct_AR" >&6; }
   5795 else
   5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5797 $as_echo "no" >&6; }
   5798 fi
   5799 
   5800 
   5801   test -n "$ac_ct_AR" && break
   5802 done
   5803 
   5804   if test "x$ac_ct_AR" = x; then
   5805     AR="false"
   5806   else
   5807     case $cross_compiling:$ac_tool_warned in
   5808 yes:)
   5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5811 ac_tool_warned=yes ;;
   5812 esac
   5813     AR=$ac_ct_AR
   5814   fi
   5815 fi
   5816 
   5817 : ${AR=ar}
   5818 : ${AR_FLAGS=cru}
   5819 
   5820 
   5821 
   5822 
   5823 
   5824 
   5825 
   5826 
   5827 
   5828 
   5829 
   5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5831 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5832 if ${lt_cv_ar_at_file+:} false; then :
   5833   $as_echo_n "(cached) " >&6
   5834 else
   5835   lt_cv_ar_at_file=no
   5836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5837 /* end confdefs.h.  */
   5838 
   5839 int
   5840 main ()
   5841 {
   5842 
   5843   ;
   5844   return 0;
   5845 }
   5846 _ACEOF
   5847 if ac_fn_c_try_compile "$LINENO"; then :
   5848   echo conftest.$ac_objext > conftest.lst
   5849       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5850       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5851   (eval $lt_ar_try) 2>&5
   5852   ac_status=$?
   5853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5854   test $ac_status = 0; }
   5855       if test 0 -eq "$ac_status"; then
   5856 	# Ensure the archiver fails upon bogus file names.
   5857 	rm -f conftest.$ac_objext libconftest.a
   5858 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5859   (eval $lt_ar_try) 2>&5
   5860   ac_status=$?
   5861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5862   test $ac_status = 0; }
   5863 	if test 0 -ne "$ac_status"; then
   5864           lt_cv_ar_at_file=@
   5865         fi
   5866       fi
   5867       rm -f conftest.* libconftest.a
   5868 
   5869 fi
   5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5871 
   5872 fi
   5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5874 $as_echo "$lt_cv_ar_at_file" >&6; }
   5875 
   5876 if test no = "$lt_cv_ar_at_file"; then
   5877   archiver_list_spec=
   5878 else
   5879   archiver_list_spec=$lt_cv_ar_at_file
   5880 fi
   5881 
   5882 
   5883 
   5884 
   5885 
   5886 
   5887 
   5888 if test -n "$ac_tool_prefix"; then
   5889   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5890 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5892 $as_echo_n "checking for $ac_word... " >&6; }
   5893 if ${ac_cv_prog_STRIP+:} false; then :
   5894   $as_echo_n "(cached) " >&6
   5895 else
   5896   if test -n "$STRIP"; then
   5897   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5898 else
   5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5900 for as_dir in $PATH
   5901 do
   5902   IFS=$as_save_IFS
   5903   test -z "$as_dir" && as_dir=.
   5904     for ac_exec_ext in '' $ac_executable_extensions; do
   5905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5906     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5908     break 2
   5909   fi
   5910 done
   5911   done
   5912 IFS=$as_save_IFS
   5913 
   5914 fi
   5915 fi
   5916 STRIP=$ac_cv_prog_STRIP
   5917 if test -n "$STRIP"; then
   5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5919 $as_echo "$STRIP" >&6; }
   5920 else
   5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5922 $as_echo "no" >&6; }
   5923 fi
   5924 
   5925 
   5926 fi
   5927 if test -z "$ac_cv_prog_STRIP"; then
   5928   ac_ct_STRIP=$STRIP
   5929   # Extract the first word of "strip", so it can be a program name with args.
   5930 set dummy strip; ac_word=$2
   5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5932 $as_echo_n "checking for $ac_word... " >&6; }
   5933 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5934   $as_echo_n "(cached) " >&6
   5935 else
   5936   if test -n "$ac_ct_STRIP"; then
   5937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5938 else
   5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5940 for as_dir in $PATH
   5941 do
   5942   IFS=$as_save_IFS
   5943   test -z "$as_dir" && as_dir=.
   5944     for ac_exec_ext in '' $ac_executable_extensions; do
   5945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5946     ac_cv_prog_ac_ct_STRIP="strip"
   5947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5948     break 2
   5949   fi
   5950 done
   5951   done
   5952 IFS=$as_save_IFS
   5953 
   5954 fi
   5955 fi
   5956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5957 if test -n "$ac_ct_STRIP"; then
   5958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5959 $as_echo "$ac_ct_STRIP" >&6; }
   5960 else
   5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5962 $as_echo "no" >&6; }
   5963 fi
   5964 
   5965   if test "x$ac_ct_STRIP" = x; then
   5966     STRIP=":"
   5967   else
   5968     case $cross_compiling:$ac_tool_warned in
   5969 yes:)
   5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5972 ac_tool_warned=yes ;;
   5973 esac
   5974     STRIP=$ac_ct_STRIP
   5975   fi
   5976 else
   5977   STRIP="$ac_cv_prog_STRIP"
   5978 fi
   5979 
   5980 test -z "$STRIP" && STRIP=:
   5981 
   5982 
   5983 
   5984 
   5985 
   5986 
   5987 if test -n "$ac_tool_prefix"; then
   5988   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5991 $as_echo_n "checking for $ac_word... " >&6; }
   5992 if ${ac_cv_prog_RANLIB+:} false; then :
   5993   $as_echo_n "(cached) " >&6
   5994 else
   5995   if test -n "$RANLIB"; then
   5996   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5997 else
   5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5999 for as_dir in $PATH
   6000 do
   6001   IFS=$as_save_IFS
   6002   test -z "$as_dir" && as_dir=.
   6003     for ac_exec_ext in '' $ac_executable_extensions; do
   6004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6005     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6007     break 2
   6008   fi
   6009 done
   6010   done
   6011 IFS=$as_save_IFS
   6012 
   6013 fi
   6014 fi
   6015 RANLIB=$ac_cv_prog_RANLIB
   6016 if test -n "$RANLIB"; then
   6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6018 $as_echo "$RANLIB" >&6; }
   6019 else
   6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6021 $as_echo "no" >&6; }
   6022 fi
   6023 
   6024 
   6025 fi
   6026 if test -z "$ac_cv_prog_RANLIB"; then
   6027   ac_ct_RANLIB=$RANLIB
   6028   # Extract the first word of "ranlib", so it can be a program name with args.
   6029 set dummy ranlib; ac_word=$2
   6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6031 $as_echo_n "checking for $ac_word... " >&6; }
   6032 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   6033   $as_echo_n "(cached) " >&6
   6034 else
   6035   if test -n "$ac_ct_RANLIB"; then
   6036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6037 else
   6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6039 for as_dir in $PATH
   6040 do
   6041   IFS=$as_save_IFS
   6042   test -z "$as_dir" && as_dir=.
   6043     for ac_exec_ext in '' $ac_executable_extensions; do
   6044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6045     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6047     break 2
   6048   fi
   6049 done
   6050   done
   6051 IFS=$as_save_IFS
   6052 
   6053 fi
   6054 fi
   6055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6056 if test -n "$ac_ct_RANLIB"; then
   6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6058 $as_echo "$ac_ct_RANLIB" >&6; }
   6059 else
   6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6061 $as_echo "no" >&6; }
   6062 fi
   6063 
   6064   if test "x$ac_ct_RANLIB" = x; then
   6065     RANLIB=":"
   6066   else
   6067     case $cross_compiling:$ac_tool_warned in
   6068 yes:)
   6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6071 ac_tool_warned=yes ;;
   6072 esac
   6073     RANLIB=$ac_ct_RANLIB
   6074   fi
   6075 else
   6076   RANLIB="$ac_cv_prog_RANLIB"
   6077 fi
   6078 
   6079 test -z "$RANLIB" && RANLIB=:
   6080 
   6081 
   6082 
   6083 
   6084 
   6085 
   6086 # Determine commands to create old-style static archives.
   6087 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6088 old_postinstall_cmds='chmod 644 $oldlib'
   6089 old_postuninstall_cmds=
   6090 
   6091 if test -n "$RANLIB"; then
   6092   case $host_os in
   6093   bitrig* | openbsd*)
   6094     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6095     ;;
   6096   *)
   6097     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6098     ;;
   6099   esac
   6100   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6101 fi
   6102 
   6103 case $host_os in
   6104   darwin*)
   6105     lock_old_archive_extraction=yes ;;
   6106   *)
   6107     lock_old_archive_extraction=no ;;
   6108 esac
   6109 
   6110 
   6111 
   6112 
   6113 
   6114 
   6115 
   6116 
   6117 
   6118 
   6119 
   6120 
   6121 
   6122 
   6123 
   6124 
   6125 
   6126 
   6127 
   6128 
   6129 
   6130 for ac_prog in gawk mawk nawk awk
   6131 do
   6132   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6133 set dummy $ac_prog; ac_word=$2
   6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6135 $as_echo_n "checking for $ac_word... " >&6; }
   6136 if ${ac_cv_prog_AWK+:} false; then :
   6137   $as_echo_n "(cached) " >&6
   6138 else
   6139   if test -n "$AWK"; then
   6140   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   6141 else
   6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6143 for as_dir in $PATH
   6144 do
   6145   IFS=$as_save_IFS
   6146   test -z "$as_dir" && as_dir=.
   6147     for ac_exec_ext in '' $ac_executable_extensions; do
   6148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6149     ac_cv_prog_AWK="$ac_prog"
   6150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6151     break 2
   6152   fi
   6153 done
   6154   done
   6155 IFS=$as_save_IFS
   6156 
   6157 fi
   6158 fi
   6159 AWK=$ac_cv_prog_AWK
   6160 if test -n "$AWK"; then
   6161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   6162 $as_echo "$AWK" >&6; }
   6163 else
   6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6165 $as_echo "no" >&6; }
   6166 fi
   6167 
   6168 
   6169   test -n "$AWK" && break
   6170 done
   6171 
   6172 
   6173 
   6174 
   6175 
   6176 
   6177 
   6178 
   6179 
   6180 
   6181 
   6182 
   6183 
   6184 
   6185 
   6186 
   6187 
   6188 
   6189 
   6190 # If no C compiler was specified, use CC.
   6191 LTCC=${LTCC-"$CC"}
   6192 
   6193 # If no C compiler flags were specified, use CFLAGS.
   6194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6195 
   6196 # Allow CC to be a program name with arguments.
   6197 compiler=$CC
   6198 
   6199 
   6200 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6202 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   6203 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   6204   $as_echo_n "(cached) " >&6
   6205 else
   6206 
   6207 # These are sane defaults that work on at least a few old systems.
   6208 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6209 
   6210 # Character class describing NM global symbol codes.
   6211 symcode='[BCDEGRST]'
   6212 
   6213 # Regexp to match symbols that can be accessed directly from C.
   6214 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6215 
   6216 # Define system-specific variables.
   6217 case $host_os in
   6218 aix*)
   6219   symcode='[BCDT]'
   6220   ;;
   6221 cygwin* | mingw* | pw32* | cegcc*)
   6222   symcode='[ABCDGISTW]'
   6223   ;;
   6224 hpux*)
   6225   if test ia64 = "$host_cpu"; then
   6226     symcode='[ABCDEGRST]'
   6227   fi
   6228   ;;
   6229 irix* | nonstopux*)
   6230   symcode='[BCDEGRST]'
   6231   ;;
   6232 osf*)
   6233   symcode='[BCDEGQRST]'
   6234   ;;
   6235 solaris*)
   6236   symcode='[BDRT]'
   6237   ;;
   6238 sco3.2v5*)
   6239   symcode='[DT]'
   6240   ;;
   6241 sysv4.2uw2*)
   6242   symcode='[DT]'
   6243   ;;
   6244 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6245   symcode='[ABDT]'
   6246   ;;
   6247 sysv4)
   6248   symcode='[DFNSTU]'
   6249   ;;
   6250 esac
   6251 
   6252 # If we're using GNU nm, then use its standard symbol codes.
   6253 case `$NM -V 2>&1` in
   6254 *GNU* | *'with BFD'*)
   6255   symcode='[ABCDGIRSTW]' ;;
   6256 esac
   6257 
   6258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6259   # Gets list of data symbols to import.
   6260   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   6261   # Adjust the below global symbol transforms to fixup imported variables.
   6262   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   6263   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   6264   lt_c_name_lib_hook="\
   6265   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   6266   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   6267 else
   6268   # Disable hooks by default.
   6269   lt_cv_sys_global_symbol_to_import=
   6270   lt_cdecl_hook=
   6271   lt_c_name_hook=
   6272   lt_c_name_lib_hook=
   6273 fi
   6274 
   6275 # Transform an extracted symbol line into a proper C declaration.
   6276 # Some systems (esp. on ia64) link data and code symbols differently,
   6277 # so use this general approach.
   6278 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   6279 $lt_cdecl_hook\
   6280 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   6281 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   6282 
   6283 # Transform an extracted symbol line into symbol name and symbol address
   6284 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   6285 $lt_c_name_hook\
   6286 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6287 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   6288 
   6289 # Transform an extracted symbol line into symbol name with lib prefix and
   6290 # symbol address.
   6291 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   6292 $lt_c_name_lib_hook\
   6293 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6294 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   6295 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   6296 
   6297 # Handle CRLF in mingw tool chain
   6298 opt_cr=
   6299 case $build_os in
   6300 mingw*)
   6301   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   6302   ;;
   6303 esac
   6304 
   6305 # Try without a prefix underscore, then with it.
   6306 for ac_symprfx in "" "_"; do
   6307 
   6308   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   6309   symxfrm="\\1 $ac_symprfx\\2 \\2"
   6310 
   6311   # Write the raw and C identifiers.
   6312   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6313     # Fake it for dumpbin and say T for any non-static function,
   6314     # D for any global variable and I for any imported variable.
   6315     # Also find C++ and __fastcall symbols from MSVC++,
   6316     # which start with @ or ?.
   6317     lt_cv_sys_global_symbol_pipe="$AWK '"\
   6318 "     {last_section=section; section=\$ 3};"\
   6319 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   6320 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   6321 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   6322 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   6323 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   6324 "     \$ 0!~/External *\|/{next};"\
   6325 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   6326 "     {if(hide[section]) next};"\
   6327 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   6328 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   6329 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   6330 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   6331 "     ' prfx=^$ac_symprfx"
   6332   else
   6333     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   6334   fi
   6335   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   6336 
   6337   # Check to see that the pipe works correctly.
   6338   pipe_works=no
   6339 
   6340   rm -f conftest*
   6341   cat > conftest.$ac_ext <<_LT_EOF
   6342 #ifdef __cplusplus
   6343 extern "C" {
   6344 #endif
   6345 char nm_test_var;
   6346 void nm_test_func(void);
   6347 void nm_test_func(void){}
   6348 #ifdef __cplusplus
   6349 }
   6350 #endif
   6351 int main(){nm_test_var='a';nm_test_func();return(0);}
   6352 _LT_EOF
   6353 
   6354   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6355   (eval $ac_compile) 2>&5
   6356   ac_status=$?
   6357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6358   test $ac_status = 0; }; then
   6359     # Now try to grab the symbols.
   6360     nlist=conftest.nm
   6361     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   6362   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   6363   ac_status=$?
   6364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6365   test $ac_status = 0; } && test -s "$nlist"; then
   6366       # Try sorting and uniquifying the output.
   6367       if sort "$nlist" | uniq > "$nlist"T; then
   6368 	mv -f "$nlist"T "$nlist"
   6369       else
   6370 	rm -f "$nlist"T
   6371       fi
   6372 
   6373       # Make sure that we snagged all the symbols we need.
   6374       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   6375 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   6376 	  cat <<_LT_EOF > conftest.$ac_ext
   6377 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   6378 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   6379 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   6380    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   6381 # define LT_DLSYM_CONST
   6382 #elif defined __osf__
   6383 /* This system does not cope well with relocations in const data.  */
   6384 # define LT_DLSYM_CONST
   6385 #else
   6386 # define LT_DLSYM_CONST const
   6387 #endif
   6388 
   6389 #ifdef __cplusplus
   6390 extern "C" {
   6391 #endif
   6392 
   6393 _LT_EOF
   6394 	  # Now generate the symbol file.
   6395 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   6396 
   6397 	  cat <<_LT_EOF >> conftest.$ac_ext
   6398 
   6399 /* The mapping between symbol names and symbols.  */
   6400 LT_DLSYM_CONST struct {
   6401   const char *name;
   6402   void       *address;
   6403 }
   6404 lt__PROGRAM__LTX_preloaded_symbols[] =
   6405 {
   6406   { "@PROGRAM@", (void *) 0 },
   6407 _LT_EOF
   6408 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   6409 	  cat <<\_LT_EOF >> conftest.$ac_ext
   6410   {0, (void *) 0}
   6411 };
   6412 
   6413 /* This works around a problem in FreeBSD linker */
   6414 #ifdef FREEBSD_WORKAROUND
   6415 static const void *lt_preloaded_setup() {
   6416   return lt__PROGRAM__LTX_preloaded_symbols;
   6417 }
   6418 #endif
   6419 
   6420 #ifdef __cplusplus
   6421 }
   6422 #endif
   6423 _LT_EOF
   6424 	  # Now try linking the two files.
   6425 	  mv conftest.$ac_objext conftstm.$ac_objext
   6426 	  lt_globsym_save_LIBS=$LIBS
   6427 	  lt_globsym_save_CFLAGS=$CFLAGS
   6428 	  LIBS=conftstm.$ac_objext
   6429 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6430 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6431   (eval $ac_link) 2>&5
   6432   ac_status=$?
   6433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6434   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6435 	    pipe_works=yes
   6436 	  fi
   6437 	  LIBS=$lt_globsym_save_LIBS
   6438 	  CFLAGS=$lt_globsym_save_CFLAGS
   6439 	else
   6440 	  echo "cannot find nm_test_func in $nlist" >&5
   6441 	fi
   6442       else
   6443 	echo "cannot find nm_test_var in $nlist" >&5
   6444       fi
   6445     else
   6446       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6447     fi
   6448   else
   6449     echo "$progname: failed program was:" >&5
   6450     cat conftest.$ac_ext >&5
   6451   fi
   6452   rm -rf conftest* conftst*
   6453 
   6454   # Do not use the global_symbol_pipe unless it works.
   6455   if test yes = "$pipe_works"; then
   6456     break
   6457   else
   6458     lt_cv_sys_global_symbol_pipe=
   6459   fi
   6460 done
   6461 
   6462 fi
   6463 
   6464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6465   lt_cv_sys_global_symbol_to_cdecl=
   6466 fi
   6467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6469 $as_echo "failed" >&6; }
   6470 else
   6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6472 $as_echo "ok" >&6; }
   6473 fi
   6474 
   6475 # Response file support.
   6476 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6477   nm_file_list_spec='@'
   6478 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6479   nm_file_list_spec='@'
   6480 fi
   6481 
   6482 
   6483 
   6484 
   6485 
   6486 
   6487 
   6488 
   6489 
   6490 
   6491 
   6492 
   6493 
   6494 
   6495 
   6496 
   6497 
   6498 
   6499 
   6500 
   6501 
   6502 
   6503 
   6504 
   6505 
   6506 
   6507 
   6508 
   6509 
   6510 
   6511 
   6512 
   6513 
   6514 
   6515 
   6516 
   6517 
   6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6519 $as_echo_n "checking for sysroot... " >&6; }
   6520 
   6521 # Check whether --with-sysroot was given.
   6522 if test "${with_sysroot+set}" = set; then :
   6523   withval=$with_sysroot;
   6524 else
   6525   with_sysroot=no
   6526 fi
   6527 
   6528 
   6529 lt_sysroot=
   6530 case $with_sysroot in #(
   6531  yes)
   6532    if test yes = "$GCC"; then
   6533      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6534    fi
   6535    ;; #(
   6536  /*)
   6537    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6538    ;; #(
   6539  no|'')
   6540    ;; #(
   6541  *)
   6542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6543 $as_echo "$with_sysroot" >&6; }
   6544    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6545    ;;
   6546 esac
   6547 
   6548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6549 $as_echo "${lt_sysroot:-no}" >&6; }
   6550 
   6551 
   6552 
   6553 
   6554 
   6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6556 $as_echo_n "checking for a working dd... " >&6; }
   6557 if ${ac_cv_path_lt_DD+:} false; then :
   6558   $as_echo_n "(cached) " >&6
   6559 else
   6560   printf 0123456789abcdef0123456789abcdef >conftest.i
   6561 cat conftest.i conftest.i >conftest2.i
   6562 : ${lt_DD:=$DD}
   6563 if test -z "$lt_DD"; then
   6564   ac_path_lt_DD_found=false
   6565   # Loop through the user's path and test for each of PROGNAME-LIST
   6566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6567 for as_dir in $PATH
   6568 do
   6569   IFS=$as_save_IFS
   6570   test -z "$as_dir" && as_dir=.
   6571     for ac_prog in dd; do
   6572     for ac_exec_ext in '' $ac_executable_extensions; do
   6573       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6574       as_fn_executable_p "$ac_path_lt_DD" || continue
   6575 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6576   cmp -s conftest.i conftest.out \
   6577   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6578 fi
   6579       $ac_path_lt_DD_found && break 3
   6580     done
   6581   done
   6582   done
   6583 IFS=$as_save_IFS
   6584   if test -z "$ac_cv_path_lt_DD"; then
   6585     :
   6586   fi
   6587 else
   6588   ac_cv_path_lt_DD=$lt_DD
   6589 fi
   6590 
   6591 rm -f conftest.i conftest2.i conftest.out
   6592 fi
   6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6594 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6595 
   6596 
   6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6598 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6599 if ${lt_cv_truncate_bin+:} false; then :
   6600   $as_echo_n "(cached) " >&6
   6601 else
   6602   printf 0123456789abcdef0123456789abcdef >conftest.i
   6603 cat conftest.i conftest.i >conftest2.i
   6604 lt_cv_truncate_bin=
   6605 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6606   cmp -s conftest.i conftest.out \
   6607   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6608 fi
   6609 rm -f conftest.i conftest2.i conftest.out
   6610 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6611 fi
   6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6613 $as_echo "$lt_cv_truncate_bin" >&6; }
   6614 
   6615 
   6616 
   6617 
   6618 
   6619 
   6620 
   6621 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6622 func_cc_basename ()
   6623 {
   6624     for cc_temp in $*""; do
   6625       case $cc_temp in
   6626         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6627         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6628         \-*) ;;
   6629         *) break;;
   6630       esac
   6631     done
   6632     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6633 }
   6634 
   6635 # Check whether --enable-libtool-lock was given.
   6636 if test "${enable_libtool_lock+set}" = set; then :
   6637   enableval=$enable_libtool_lock;
   6638 fi
   6639 
   6640 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6641 
   6642 # Some flags need to be propagated to the compiler or linker for good
   6643 # libtool support.
   6644 case $host in
   6645 ia64-*-hpux*)
   6646   # Find out what ABI is being produced by ac_compile, and set mode
   6647   # options accordingly.
   6648   echo 'int i;' > conftest.$ac_ext
   6649   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6650   (eval $ac_compile) 2>&5
   6651   ac_status=$?
   6652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6653   test $ac_status = 0; }; then
   6654     case `/usr/bin/file conftest.$ac_objext` in
   6655       *ELF-32*)
   6656 	HPUX_IA64_MODE=32
   6657 	;;
   6658       *ELF-64*)
   6659 	HPUX_IA64_MODE=64
   6660 	;;
   6661     esac
   6662   fi
   6663   rm -rf conftest*
   6664   ;;
   6665 *-*-irix6*)
   6666   # Find out what ABI is being produced by ac_compile, and set linker
   6667   # options accordingly.
   6668   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6669   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6670   (eval $ac_compile) 2>&5
   6671   ac_status=$?
   6672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6673   test $ac_status = 0; }; then
   6674     if test yes = "$lt_cv_prog_gnu_ld"; then
   6675       case `/usr/bin/file conftest.$ac_objext` in
   6676 	*32-bit*)
   6677 	  LD="${LD-ld} -melf32bsmip"
   6678 	  ;;
   6679 	*N32*)
   6680 	  LD="${LD-ld} -melf32bmipn32"
   6681 	  ;;
   6682 	*64-bit*)
   6683 	  LD="${LD-ld} -melf64bmip"
   6684 	;;
   6685       esac
   6686     else
   6687       case `/usr/bin/file conftest.$ac_objext` in
   6688 	*32-bit*)
   6689 	  LD="${LD-ld} -32"
   6690 	  ;;
   6691 	*N32*)
   6692 	  LD="${LD-ld} -n32"
   6693 	  ;;
   6694 	*64-bit*)
   6695 	  LD="${LD-ld} -64"
   6696 	  ;;
   6697       esac
   6698     fi
   6699   fi
   6700   rm -rf conftest*
   6701   ;;
   6702 
   6703 mips64*-*linux*)
   6704   # Find out what ABI is being produced by ac_compile, and set linker
   6705   # options accordingly.
   6706   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6708   (eval $ac_compile) 2>&5
   6709   ac_status=$?
   6710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6711   test $ac_status = 0; }; then
   6712     emul=elf
   6713     case `/usr/bin/file conftest.$ac_objext` in
   6714       *32-bit*)
   6715 	emul="${emul}32"
   6716 	;;
   6717       *64-bit*)
   6718 	emul="${emul}64"
   6719 	;;
   6720     esac
   6721     case `/usr/bin/file conftest.$ac_objext` in
   6722       *MSB*)
   6723 	emul="${emul}btsmip"
   6724 	;;
   6725       *LSB*)
   6726 	emul="${emul}ltsmip"
   6727 	;;
   6728     esac
   6729     case `/usr/bin/file conftest.$ac_objext` in
   6730       *N32*)
   6731 	emul="${emul}n32"
   6732 	;;
   6733     esac
   6734     LD="${LD-ld} -m $emul"
   6735   fi
   6736   rm -rf conftest*
   6737   ;;
   6738 
   6739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6741   # Find out what ABI is being produced by ac_compile, and set linker
   6742   # options accordingly.  Note that the listed cases only cover the
   6743   # situations where additional linker options are needed (such as when
   6744   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6745   # vice versa); the common cases where no linker options are needed do
   6746   # not appear in the list.
   6747   echo 'int i;' > conftest.$ac_ext
   6748   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6749   (eval $ac_compile) 2>&5
   6750   ac_status=$?
   6751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6752   test $ac_status = 0; }; then
   6753     case `/usr/bin/file conftest.o` in
   6754       *32-bit*)
   6755 	case $host in
   6756 	  x86_64-*kfreebsd*-gnu)
   6757 	    LD="${LD-ld} -m elf_i386_fbsd"
   6758 	    ;;
   6759 	  x86_64-*linux*)
   6760 	    case `/usr/bin/file conftest.o` in
   6761 	      *x86-64*)
   6762 		LD="${LD-ld} -m elf32_x86_64"
   6763 		;;
   6764 	      *)
   6765 		LD="${LD-ld} -m elf_i386"
   6766 		;;
   6767 	    esac
   6768 	    ;;
   6769 	  powerpc64le-*linux*)
   6770 	    LD="${LD-ld} -m elf32lppclinux"
   6771 	    ;;
   6772 	  powerpc64-*linux*)
   6773 	    LD="${LD-ld} -m elf32ppclinux"
   6774 	    ;;
   6775 	  s390x-*linux*)
   6776 	    LD="${LD-ld} -m elf_s390"
   6777 	    ;;
   6778 	  sparc64-*linux*)
   6779 	    LD="${LD-ld} -m elf32_sparc"
   6780 	    ;;
   6781 	esac
   6782 	;;
   6783       *64-bit*)
   6784 	case $host in
   6785 	  x86_64-*kfreebsd*-gnu)
   6786 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6787 	    ;;
   6788 	  x86_64-*linux*)
   6789 	    LD="${LD-ld} -m elf_x86_64"
   6790 	    ;;
   6791 	  powerpcle-*linux*)
   6792 	    LD="${LD-ld} -m elf64lppc"
   6793 	    ;;
   6794 	  powerpc-*linux*)
   6795 	    LD="${LD-ld} -m elf64ppc"
   6796 	    ;;
   6797 	  s390*-*linux*|s390*-*tpf*)
   6798 	    LD="${LD-ld} -m elf64_s390"
   6799 	    ;;
   6800 	  sparc*-*linux*)
   6801 	    LD="${LD-ld} -m elf64_sparc"
   6802 	    ;;
   6803 	esac
   6804 	;;
   6805     esac
   6806   fi
   6807   rm -rf conftest*
   6808   ;;
   6809 
   6810 *-*-sco3.2v5*)
   6811   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6812   SAVE_CFLAGS=$CFLAGS
   6813   CFLAGS="$CFLAGS -belf"
   6814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6815 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6816 if ${lt_cv_cc_needs_belf+:} false; then :
   6817   $as_echo_n "(cached) " >&6
   6818 else
   6819   ac_ext=c
   6820 ac_cpp='$CPP $CPPFLAGS'
   6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6824 
   6825      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6826 /* end confdefs.h.  */
   6827 
   6828 int
   6829 main ()
   6830 {
   6831 
   6832   ;
   6833   return 0;
   6834 }
   6835 _ACEOF
   6836 if ac_fn_c_try_link "$LINENO"; then :
   6837   lt_cv_cc_needs_belf=yes
   6838 else
   6839   lt_cv_cc_needs_belf=no
   6840 fi
   6841 rm -f core conftest.err conftest.$ac_objext \
   6842     conftest$ac_exeext conftest.$ac_ext
   6843      ac_ext=c
   6844 ac_cpp='$CPP $CPPFLAGS'
   6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6848 
   6849 fi
   6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6851 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6852   if test yes != "$lt_cv_cc_needs_belf"; then
   6853     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6854     CFLAGS=$SAVE_CFLAGS
   6855   fi
   6856   ;;
   6857 *-*solaris*)
   6858   # Find out what ABI is being produced by ac_compile, and set linker
   6859   # options accordingly.
   6860   echo 'int i;' > conftest.$ac_ext
   6861   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6862   (eval $ac_compile) 2>&5
   6863   ac_status=$?
   6864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6865   test $ac_status = 0; }; then
   6866     case `/usr/bin/file conftest.o` in
   6867     *64-bit*)
   6868       case $lt_cv_prog_gnu_ld in
   6869       yes*)
   6870         case $host in
   6871         i?86-*-solaris*|x86_64-*-solaris*)
   6872           LD="${LD-ld} -m elf_x86_64"
   6873           ;;
   6874         sparc*-*-solaris*)
   6875           LD="${LD-ld} -m elf64_sparc"
   6876           ;;
   6877         esac
   6878         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6879         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6880           LD=${LD-ld}_sol2
   6881         fi
   6882         ;;
   6883       *)
   6884 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6885 	  LD="${LD-ld} -64"
   6886 	fi
   6887 	;;
   6888       esac
   6889       ;;
   6890     esac
   6891   fi
   6892   rm -rf conftest*
   6893   ;;
   6894 esac
   6895 
   6896 need_locks=$enable_libtool_lock
   6897 
   6898 if test -n "$ac_tool_prefix"; then
   6899   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6900 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6902 $as_echo_n "checking for $ac_word... " >&6; }
   6903 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6904   $as_echo_n "(cached) " >&6
   6905 else
   6906   if test -n "$MANIFEST_TOOL"; then
   6907   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6908 else
   6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6910 for as_dir in $PATH
   6911 do
   6912   IFS=$as_save_IFS
   6913   test -z "$as_dir" && as_dir=.
   6914     for ac_exec_ext in '' $ac_executable_extensions; do
   6915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6916     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6918     break 2
   6919   fi
   6920 done
   6921   done
   6922 IFS=$as_save_IFS
   6923 
   6924 fi
   6925 fi
   6926 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6927 if test -n "$MANIFEST_TOOL"; then
   6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6929 $as_echo "$MANIFEST_TOOL" >&6; }
   6930 else
   6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6932 $as_echo "no" >&6; }
   6933 fi
   6934 
   6935 
   6936 fi
   6937 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6938   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6939   # Extract the first word of "mt", so it can be a program name with args.
   6940 set dummy mt; ac_word=$2
   6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6942 $as_echo_n "checking for $ac_word... " >&6; }
   6943 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6944   $as_echo_n "(cached) " >&6
   6945 else
   6946   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6947   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6948 else
   6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6950 for as_dir in $PATH
   6951 do
   6952   IFS=$as_save_IFS
   6953   test -z "$as_dir" && as_dir=.
   6954     for ac_exec_ext in '' $ac_executable_extensions; do
   6955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6956     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6958     break 2
   6959   fi
   6960 done
   6961   done
   6962 IFS=$as_save_IFS
   6963 
   6964 fi
   6965 fi
   6966 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6967 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6969 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6970 else
   6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6972 $as_echo "no" >&6; }
   6973 fi
   6974 
   6975   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6976     MANIFEST_TOOL=":"
   6977   else
   6978     case $cross_compiling:$ac_tool_warned in
   6979 yes:)
   6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6982 ac_tool_warned=yes ;;
   6983 esac
   6984     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6985   fi
   6986 else
   6987   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6988 fi
   6989 
   6990 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6992 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6993 if ${lt_cv_path_mainfest_tool+:} false; then :
   6994   $as_echo_n "(cached) " >&6
   6995 else
   6996   lt_cv_path_mainfest_tool=no
   6997   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6998   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6999   cat conftest.err >&5
   7000   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   7001     lt_cv_path_mainfest_tool=yes
   7002   fi
   7003   rm -f conftest*
   7004 fi
   7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   7006 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   7007 if test yes != "$lt_cv_path_mainfest_tool"; then
   7008   MANIFEST_TOOL=:
   7009 fi
   7010 
   7011 
   7012 
   7013 
   7014 
   7015 
   7016   case $host_os in
   7017     rhapsody* | darwin*)
   7018     if test -n "$ac_tool_prefix"; then
   7019   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   7020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7022 $as_echo_n "checking for $ac_word... " >&6; }
   7023 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   7024   $as_echo_n "(cached) " >&6
   7025 else
   7026   if test -n "$DSYMUTIL"; then
   7027   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   7028 else
   7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7030 for as_dir in $PATH
   7031 do
   7032   IFS=$as_save_IFS
   7033   test -z "$as_dir" && as_dir=.
   7034     for ac_exec_ext in '' $ac_executable_extensions; do
   7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7036     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7038     break 2
   7039   fi
   7040 done
   7041   done
   7042 IFS=$as_save_IFS
   7043 
   7044 fi
   7045 fi
   7046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7047 if test -n "$DSYMUTIL"; then
   7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7049 $as_echo "$DSYMUTIL" >&6; }
   7050 else
   7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7052 $as_echo "no" >&6; }
   7053 fi
   7054 
   7055 
   7056 fi
   7057 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7058   ac_ct_DSYMUTIL=$DSYMUTIL
   7059   # Extract the first word of "dsymutil", so it can be a program name with args.
   7060 set dummy dsymutil; ac_word=$2
   7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7062 $as_echo_n "checking for $ac_word... " >&6; }
   7063 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   7064   $as_echo_n "(cached) " >&6
   7065 else
   7066   if test -n "$ac_ct_DSYMUTIL"; then
   7067   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7068 else
   7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7070 for as_dir in $PATH
   7071 do
   7072   IFS=$as_save_IFS
   7073   test -z "$as_dir" && as_dir=.
   7074     for ac_exec_ext in '' $ac_executable_extensions; do
   7075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7076     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7078     break 2
   7079   fi
   7080 done
   7081   done
   7082 IFS=$as_save_IFS
   7083 
   7084 fi
   7085 fi
   7086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7087 if test -n "$ac_ct_DSYMUTIL"; then
   7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7089 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   7090 else
   7091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7092 $as_echo "no" >&6; }
   7093 fi
   7094 
   7095   if test "x$ac_ct_DSYMUTIL" = x; then
   7096     DSYMUTIL=":"
   7097   else
   7098     case $cross_compiling:$ac_tool_warned in
   7099 yes:)
   7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7102 ac_tool_warned=yes ;;
   7103 esac
   7104     DSYMUTIL=$ac_ct_DSYMUTIL
   7105   fi
   7106 else
   7107   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7108 fi
   7109 
   7110     if test -n "$ac_tool_prefix"; then
   7111   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7114 $as_echo_n "checking for $ac_word... " >&6; }
   7115 if ${ac_cv_prog_NMEDIT+:} false; then :
   7116   $as_echo_n "(cached) " >&6
   7117 else
   7118   if test -n "$NMEDIT"; then
   7119   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7120 else
   7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7122 for as_dir in $PATH
   7123 do
   7124   IFS=$as_save_IFS
   7125   test -z "$as_dir" && as_dir=.
   7126     for ac_exec_ext in '' $ac_executable_extensions; do
   7127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7128     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7130     break 2
   7131   fi
   7132 done
   7133   done
   7134 IFS=$as_save_IFS
   7135 
   7136 fi
   7137 fi
   7138 NMEDIT=$ac_cv_prog_NMEDIT
   7139 if test -n "$NMEDIT"; then
   7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7141 $as_echo "$NMEDIT" >&6; }
   7142 else
   7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7144 $as_echo "no" >&6; }
   7145 fi
   7146 
   7147 
   7148 fi
   7149 if test -z "$ac_cv_prog_NMEDIT"; then
   7150   ac_ct_NMEDIT=$NMEDIT
   7151   # Extract the first word of "nmedit", so it can be a program name with args.
   7152 set dummy nmedit; ac_word=$2
   7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7154 $as_echo_n "checking for $ac_word... " >&6; }
   7155 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   7156   $as_echo_n "(cached) " >&6
   7157 else
   7158   if test -n "$ac_ct_NMEDIT"; then
   7159   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7160 else
   7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7162 for as_dir in $PATH
   7163 do
   7164   IFS=$as_save_IFS
   7165   test -z "$as_dir" && as_dir=.
   7166     for ac_exec_ext in '' $ac_executable_extensions; do
   7167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7168     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7170     break 2
   7171   fi
   7172 done
   7173   done
   7174 IFS=$as_save_IFS
   7175 
   7176 fi
   7177 fi
   7178 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7179 if test -n "$ac_ct_NMEDIT"; then
   7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7181 $as_echo "$ac_ct_NMEDIT" >&6; }
   7182 else
   7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7184 $as_echo "no" >&6; }
   7185 fi
   7186 
   7187   if test "x$ac_ct_NMEDIT" = x; then
   7188     NMEDIT=":"
   7189   else
   7190     case $cross_compiling:$ac_tool_warned in
   7191 yes:)
   7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7194 ac_tool_warned=yes ;;
   7195 esac
   7196     NMEDIT=$ac_ct_NMEDIT
   7197   fi
   7198 else
   7199   NMEDIT="$ac_cv_prog_NMEDIT"
   7200 fi
   7201 
   7202     if test -n "$ac_tool_prefix"; then
   7203   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7204 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7206 $as_echo_n "checking for $ac_word... " >&6; }
   7207 if ${ac_cv_prog_LIPO+:} false; then :
   7208   $as_echo_n "(cached) " >&6
   7209 else
   7210   if test -n "$LIPO"; then
   7211   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7212 else
   7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7214 for as_dir in $PATH
   7215 do
   7216   IFS=$as_save_IFS
   7217   test -z "$as_dir" && as_dir=.
   7218     for ac_exec_ext in '' $ac_executable_extensions; do
   7219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7220     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7222     break 2
   7223   fi
   7224 done
   7225   done
   7226 IFS=$as_save_IFS
   7227 
   7228 fi
   7229 fi
   7230 LIPO=$ac_cv_prog_LIPO
   7231 if test -n "$LIPO"; then
   7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7233 $as_echo "$LIPO" >&6; }
   7234 else
   7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7236 $as_echo "no" >&6; }
   7237 fi
   7238 
   7239 
   7240 fi
   7241 if test -z "$ac_cv_prog_LIPO"; then
   7242   ac_ct_LIPO=$LIPO
   7243   # Extract the first word of "lipo", so it can be a program name with args.
   7244 set dummy lipo; ac_word=$2
   7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7246 $as_echo_n "checking for $ac_word... " >&6; }
   7247 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   7248   $as_echo_n "(cached) " >&6
   7249 else
   7250   if test -n "$ac_ct_LIPO"; then
   7251   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   7252 else
   7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7254 for as_dir in $PATH
   7255 do
   7256   IFS=$as_save_IFS
   7257   test -z "$as_dir" && as_dir=.
   7258     for ac_exec_ext in '' $ac_executable_extensions; do
   7259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7260     ac_cv_prog_ac_ct_LIPO="lipo"
   7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7262     break 2
   7263   fi
   7264 done
   7265   done
   7266 IFS=$as_save_IFS
   7267 
   7268 fi
   7269 fi
   7270 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   7271 if test -n "$ac_ct_LIPO"; then
   7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   7273 $as_echo "$ac_ct_LIPO" >&6; }
   7274 else
   7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7276 $as_echo "no" >&6; }
   7277 fi
   7278 
   7279   if test "x$ac_ct_LIPO" = x; then
   7280     LIPO=":"
   7281   else
   7282     case $cross_compiling:$ac_tool_warned in
   7283 yes:)
   7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7286 ac_tool_warned=yes ;;
   7287 esac
   7288     LIPO=$ac_ct_LIPO
   7289   fi
   7290 else
   7291   LIPO="$ac_cv_prog_LIPO"
   7292 fi
   7293 
   7294     if test -n "$ac_tool_prefix"; then
   7295   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   7296 set dummy ${ac_tool_prefix}otool; ac_word=$2
   7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7298 $as_echo_n "checking for $ac_word... " >&6; }
   7299 if ${ac_cv_prog_OTOOL+:} false; then :
   7300   $as_echo_n "(cached) " >&6
   7301 else
   7302   if test -n "$OTOOL"; then
   7303   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   7304 else
   7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7306 for as_dir in $PATH
   7307 do
   7308   IFS=$as_save_IFS
   7309   test -z "$as_dir" && as_dir=.
   7310     for ac_exec_ext in '' $ac_executable_extensions; do
   7311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7312     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7314     break 2
   7315   fi
   7316 done
   7317   done
   7318 IFS=$as_save_IFS
   7319 
   7320 fi
   7321 fi
   7322 OTOOL=$ac_cv_prog_OTOOL
   7323 if test -n "$OTOOL"; then
   7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   7325 $as_echo "$OTOOL" >&6; }
   7326 else
   7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7328 $as_echo "no" >&6; }
   7329 fi
   7330 
   7331 
   7332 fi
   7333 if test -z "$ac_cv_prog_OTOOL"; then
   7334   ac_ct_OTOOL=$OTOOL
   7335   # Extract the first word of "otool", so it can be a program name with args.
   7336 set dummy otool; ac_word=$2
   7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7338 $as_echo_n "checking for $ac_word... " >&6; }
   7339 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   7340   $as_echo_n "(cached) " >&6
   7341 else
   7342   if test -n "$ac_ct_OTOOL"; then
   7343   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   7344 else
   7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7346 for as_dir in $PATH
   7347 do
   7348   IFS=$as_save_IFS
   7349   test -z "$as_dir" && as_dir=.
   7350     for ac_exec_ext in '' $ac_executable_extensions; do
   7351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7352     ac_cv_prog_ac_ct_OTOOL="otool"
   7353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7354     break 2
   7355   fi
   7356 done
   7357   done
   7358 IFS=$as_save_IFS
   7359 
   7360 fi
   7361 fi
   7362 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   7363 if test -n "$ac_ct_OTOOL"; then
   7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   7365 $as_echo "$ac_ct_OTOOL" >&6; }
   7366 else
   7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7368 $as_echo "no" >&6; }
   7369 fi
   7370 
   7371   if test "x$ac_ct_OTOOL" = x; then
   7372     OTOOL=":"
   7373   else
   7374     case $cross_compiling:$ac_tool_warned in
   7375 yes:)
   7376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7378 ac_tool_warned=yes ;;
   7379 esac
   7380     OTOOL=$ac_ct_OTOOL
   7381   fi
   7382 else
   7383   OTOOL="$ac_cv_prog_OTOOL"
   7384 fi
   7385 
   7386     if test -n "$ac_tool_prefix"; then
   7387   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   7388 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7390 $as_echo_n "checking for $ac_word... " >&6; }
   7391 if ${ac_cv_prog_OTOOL64+:} false; then :
   7392   $as_echo_n "(cached) " >&6
   7393 else
   7394   if test -n "$OTOOL64"; then
   7395   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   7396 else
   7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7398 for as_dir in $PATH
   7399 do
   7400   IFS=$as_save_IFS
   7401   test -z "$as_dir" && as_dir=.
   7402     for ac_exec_ext in '' $ac_executable_extensions; do
   7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7404     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7406     break 2
   7407   fi
   7408 done
   7409   done
   7410 IFS=$as_save_IFS
   7411 
   7412 fi
   7413 fi
   7414 OTOOL64=$ac_cv_prog_OTOOL64
   7415 if test -n "$OTOOL64"; then
   7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7417 $as_echo "$OTOOL64" >&6; }
   7418 else
   7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7420 $as_echo "no" >&6; }
   7421 fi
   7422 
   7423 
   7424 fi
   7425 if test -z "$ac_cv_prog_OTOOL64"; then
   7426   ac_ct_OTOOL64=$OTOOL64
   7427   # Extract the first word of "otool64", so it can be a program name with args.
   7428 set dummy otool64; ac_word=$2
   7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7430 $as_echo_n "checking for $ac_word... " >&6; }
   7431 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7432   $as_echo_n "(cached) " >&6
   7433 else
   7434   if test -n "$ac_ct_OTOOL64"; then
   7435   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7436 else
   7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7438 for as_dir in $PATH
   7439 do
   7440   IFS=$as_save_IFS
   7441   test -z "$as_dir" && as_dir=.
   7442     for ac_exec_ext in '' $ac_executable_extensions; do
   7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7444     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7446     break 2
   7447   fi
   7448 done
   7449   done
   7450 IFS=$as_save_IFS
   7451 
   7452 fi
   7453 fi
   7454 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7455 if test -n "$ac_ct_OTOOL64"; then
   7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7457 $as_echo "$ac_ct_OTOOL64" >&6; }
   7458 else
   7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7460 $as_echo "no" >&6; }
   7461 fi
   7462 
   7463   if test "x$ac_ct_OTOOL64" = x; then
   7464     OTOOL64=":"
   7465   else
   7466     case $cross_compiling:$ac_tool_warned in
   7467 yes:)
   7468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7470 ac_tool_warned=yes ;;
   7471 esac
   7472     OTOOL64=$ac_ct_OTOOL64
   7473   fi
   7474 else
   7475   OTOOL64="$ac_cv_prog_OTOOL64"
   7476 fi
   7477 
   7478 
   7479 
   7480 
   7481 
   7482 
   7483 
   7484 
   7485 
   7486 
   7487 
   7488 
   7489 
   7490 
   7491 
   7492 
   7493 
   7494 
   7495 
   7496 
   7497 
   7498 
   7499 
   7500 
   7501 
   7502 
   7503 
   7504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7505 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7506 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7507   $as_echo_n "(cached) " >&6
   7508 else
   7509   lt_cv_apple_cc_single_mod=no
   7510       if test -z "$LT_MULTI_MODULE"; then
   7511 	# By default we will add the -single_module flag. You can override
   7512 	# by either setting the environment variable LT_MULTI_MODULE
   7513 	# non-empty at configure time, or by adding -multi_module to the
   7514 	# link flags.
   7515 	rm -rf libconftest.dylib*
   7516 	echo "int foo(void){return 1;}" > conftest.c
   7517 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7518 -dynamiclib -Wl,-single_module conftest.c" >&5
   7519 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7520 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7521         _lt_result=$?
   7522 	# If there is a non-empty error log, and "single_module"
   7523 	# appears in it, assume the flag caused a linker warning
   7524         if test -s conftest.err && $GREP single_module conftest.err; then
   7525 	  cat conftest.err >&5
   7526 	# Otherwise, if the output was created with a 0 exit code from
   7527 	# the compiler, it worked.
   7528 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7529 	  lt_cv_apple_cc_single_mod=yes
   7530 	else
   7531 	  cat conftest.err >&5
   7532 	fi
   7533 	rm -rf libconftest.dylib*
   7534 	rm -f conftest.*
   7535       fi
   7536 fi
   7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7538 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7539 
   7540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7541 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7542 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7543   $as_echo_n "(cached) " >&6
   7544 else
   7545   lt_cv_ld_exported_symbols_list=no
   7546       save_LDFLAGS=$LDFLAGS
   7547       echo "_main" > conftest.sym
   7548       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7550 /* end confdefs.h.  */
   7551 
   7552 int
   7553 main ()
   7554 {
   7555 
   7556   ;
   7557   return 0;
   7558 }
   7559 _ACEOF
   7560 if ac_fn_c_try_link "$LINENO"; then :
   7561   lt_cv_ld_exported_symbols_list=yes
   7562 else
   7563   lt_cv_ld_exported_symbols_list=no
   7564 fi
   7565 rm -f core conftest.err conftest.$ac_objext \
   7566     conftest$ac_exeext conftest.$ac_ext
   7567 	LDFLAGS=$save_LDFLAGS
   7568 
   7569 fi
   7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7571 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7572 
   7573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7574 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7575 if ${lt_cv_ld_force_load+:} false; then :
   7576   $as_echo_n "(cached) " >&6
   7577 else
   7578   lt_cv_ld_force_load=no
   7579       cat > conftest.c << _LT_EOF
   7580 int forced_loaded() { return 2;}
   7581 _LT_EOF
   7582       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7583       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7584       echo "$AR cru libconftest.a conftest.o" >&5
   7585       $AR cru libconftest.a conftest.o 2>&5
   7586       echo "$RANLIB libconftest.a" >&5
   7587       $RANLIB libconftest.a 2>&5
   7588       cat > conftest.c << _LT_EOF
   7589 int main() { return 0;}
   7590 _LT_EOF
   7591       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7592       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7593       _lt_result=$?
   7594       if test -s conftest.err && $GREP force_load conftest.err; then
   7595 	cat conftest.err >&5
   7596       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7597 	lt_cv_ld_force_load=yes
   7598       else
   7599 	cat conftest.err >&5
   7600       fi
   7601         rm -f conftest.err libconftest.a conftest conftest.c
   7602         rm -rf conftest.dSYM
   7603 
   7604 fi
   7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7606 $as_echo "$lt_cv_ld_force_load" >&6; }
   7607     case $host_os in
   7608     rhapsody* | darwin1.[012])
   7609       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7610     darwin1.*)
   7611       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7612     darwin*)
   7613       case ${MACOSX_DEPLOYMENT_TARGET},$host in
   7614 	10.[012],*|,*powerpc*)
   7615 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7616 	*)
   7617 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7618       esac
   7619     ;;
   7620   esac
   7621     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7622       _lt_dar_single_mod='$single_module'
   7623     fi
   7624     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7625       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7626     else
   7627       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7628     fi
   7629     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7630       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7631     else
   7632       _lt_dsymutil=
   7633     fi
   7634     ;;
   7635   esac
   7636 
   7637 # func_munge_path_list VARIABLE PATH
   7638 # -----------------------------------
   7639 # VARIABLE is name of variable containing _space_ separated list of
   7640 # directories to be munged by the contents of PATH, which is string
   7641 # having a format:
   7642 # "DIR[:DIR]:"
   7643 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7644 # ":DIR[:DIR]"
   7645 #       string "DIR[ DIR]" will be appended to VARIABLE
   7646 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7647 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7648 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7649 # "DIR[:DIR]"
   7650 #       VARIABLE will be replaced by "DIR[ DIR]"
   7651 func_munge_path_list ()
   7652 {
   7653     case x$2 in
   7654     x)
   7655         ;;
   7656     *:)
   7657         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7658         ;;
   7659     x:*)
   7660         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7661         ;;
   7662     *::*)
   7663         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7664         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7665         ;;
   7666     *)
   7667         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7668         ;;
   7669     esac
   7670 }
   7671 
   7672 for ac_header in dlfcn.h
   7673 do :
   7674   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7675 "
   7676 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7677   cat >>confdefs.h <<_ACEOF
   7678 #define HAVE_DLFCN_H 1
   7679 _ACEOF
   7680 
   7681 fi
   7682 
   7683 done
   7684 
   7685 
   7686 
   7687 
   7688 
   7689 # Set options
   7690 
   7691 
   7692 
   7693         enable_dlopen=no
   7694 
   7695 
   7696   enable_win32_dll=no
   7697 
   7698 
   7699             # Check whether --enable-shared was given.
   7700 if test "${enable_shared+set}" = set; then :
   7701   enableval=$enable_shared; p=${PACKAGE-default}
   7702     case $enableval in
   7703     yes) enable_shared=yes ;;
   7704     no) enable_shared=no ;;
   7705     *)
   7706       enable_shared=no
   7707       # Look at the argument we got.  We use all the common list separators.
   7708       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7709       for pkg in $enableval; do
   7710 	IFS=$lt_save_ifs
   7711 	if test "X$pkg" = "X$p"; then
   7712 	  enable_shared=yes
   7713 	fi
   7714       done
   7715       IFS=$lt_save_ifs
   7716       ;;
   7717     esac
   7718 else
   7719   enable_shared=yes
   7720 fi
   7721 
   7722 
   7723 
   7724 
   7725 
   7726 
   7727 
   7728 
   7729 
   7730   # Check whether --enable-static was given.
   7731 if test "${enable_static+set}" = set; then :
   7732   enableval=$enable_static; p=${PACKAGE-default}
   7733     case $enableval in
   7734     yes) enable_static=yes ;;
   7735     no) enable_static=no ;;
   7736     *)
   7737      enable_static=no
   7738       # Look at the argument we got.  We use all the common list separators.
   7739       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7740       for pkg in $enableval; do
   7741 	IFS=$lt_save_ifs
   7742 	if test "X$pkg" = "X$p"; then
   7743 	  enable_static=yes
   7744 	fi
   7745       done
   7746       IFS=$lt_save_ifs
   7747       ;;
   7748     esac
   7749 else
   7750   enable_static=yes
   7751 fi
   7752 
   7753 
   7754 
   7755 
   7756 
   7757 
   7758 
   7759 
   7760 
   7761 
   7762 # Check whether --with-pic was given.
   7763 if test "${with_pic+set}" = set; then :
   7764   withval=$with_pic; lt_p=${PACKAGE-default}
   7765     case $withval in
   7766     yes|no) pic_mode=$withval ;;
   7767     *)
   7768       pic_mode=default
   7769       # Look at the argument we got.  We use all the common list separators.
   7770       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7771       for lt_pkg in $withval; do
   7772 	IFS=$lt_save_ifs
   7773 	if test "X$lt_pkg" = "X$lt_p"; then
   7774 	  pic_mode=yes
   7775 	fi
   7776       done
   7777       IFS=$lt_save_ifs
   7778       ;;
   7779     esac
   7780 else
   7781   pic_mode=default
   7782 fi
   7783 
   7784 
   7785 
   7786 
   7787 
   7788 
   7789 
   7790 
   7791   # Check whether --enable-fast-install was given.
   7792 if test "${enable_fast_install+set}" = set; then :
   7793   enableval=$enable_fast_install; p=${PACKAGE-default}
   7794     case $enableval in
   7795     yes) enable_fast_install=yes ;;
   7796     no) enable_fast_install=no ;;
   7797     *)
   7798       enable_fast_install=no
   7799       # Look at the argument we got.  We use all the common list separators.
   7800       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7801       for pkg in $enableval; do
   7802 	IFS=$lt_save_ifs
   7803 	if test "X$pkg" = "X$p"; then
   7804 	  enable_fast_install=yes
   7805 	fi
   7806       done
   7807       IFS=$lt_save_ifs
   7808       ;;
   7809     esac
   7810 else
   7811   enable_fast_install=yes
   7812 fi
   7813 
   7814 
   7815 
   7816 
   7817 
   7818 
   7819 
   7820 
   7821   shared_archive_member_spec=
   7822 case $host,$enable_shared in
   7823 power*-*-aix[5-9]*,yes)
   7824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7825 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7826 
   7827 # Check whether --with-aix-soname was given.
   7828 if test "${with_aix_soname+set}" = set; then :
   7829   withval=$with_aix_soname; case $withval in
   7830     aix|svr4|both)
   7831       ;;
   7832     *)
   7833       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7834       ;;
   7835     esac
   7836     lt_cv_with_aix_soname=$with_aix_soname
   7837 else
   7838   if ${lt_cv_with_aix_soname+:} false; then :
   7839   $as_echo_n "(cached) " >&6
   7840 else
   7841   lt_cv_with_aix_soname=aix
   7842 fi
   7843 
   7844     with_aix_soname=$lt_cv_with_aix_soname
   7845 fi
   7846 
   7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7848 $as_echo "$with_aix_soname" >&6; }
   7849   if test aix != "$with_aix_soname"; then
   7850     # For the AIX way of multilib, we name the shared archive member
   7851     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7852     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7853     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7854     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7855     if test 64 = "${OBJECT_MODE-32}"; then
   7856       shared_archive_member_spec=shr_64
   7857     else
   7858       shared_archive_member_spec=shr
   7859     fi
   7860   fi
   7861   ;;
   7862 *)
   7863   with_aix_soname=aix
   7864   ;;
   7865 esac
   7866 
   7867 
   7868 
   7869 
   7870 
   7871 
   7872 
   7873 
   7874 
   7875 
   7876 # This can be used to rebuild libtool when needed
   7877 LIBTOOL_DEPS=$ltmain
   7878 
   7879 # Always use our own libtool.
   7880 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7881 
   7882 
   7883 
   7884 
   7885 
   7886 
   7887 
   7888 
   7889 
   7890 
   7891 
   7892 
   7893 
   7894 
   7895 
   7896 
   7897 
   7898 
   7899 
   7900 
   7901 
   7902 
   7903 
   7904 
   7905 
   7906 
   7907 
   7908 
   7909 
   7910 
   7911 test -z "$LN_S" && LN_S="ln -s"
   7912 
   7913 
   7914 
   7915 
   7916 
   7917 
   7918 
   7919 
   7920 
   7921 
   7922 
   7923 
   7924 
   7925 
   7926 if test -n "${ZSH_VERSION+set}"; then
   7927    setopt NO_GLOB_SUBST
   7928 fi
   7929 
   7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7931 $as_echo_n "checking for objdir... " >&6; }
   7932 if ${lt_cv_objdir+:} false; then :
   7933   $as_echo_n "(cached) " >&6
   7934 else
   7935   rm -f .libs 2>/dev/null
   7936 mkdir .libs 2>/dev/null
   7937 if test -d .libs; then
   7938   lt_cv_objdir=.libs
   7939 else
   7940   # MS-DOS does not allow filenames that begin with a dot.
   7941   lt_cv_objdir=_libs
   7942 fi
   7943 rmdir .libs 2>/dev/null
   7944 fi
   7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7946 $as_echo "$lt_cv_objdir" >&6; }
   7947 objdir=$lt_cv_objdir
   7948 
   7949 
   7950 
   7951 
   7952 
   7953 cat >>confdefs.h <<_ACEOF
   7954 #define LT_OBJDIR "$lt_cv_objdir/"
   7955 _ACEOF
   7956 
   7957 
   7958 
   7959 
   7960 case $host_os in
   7961 aix3*)
   7962   # AIX sometimes has problems with the GCC collect2 program.  For some
   7963   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7964   # vanish in a puff of smoke.
   7965   if test set != "${COLLECT_NAMES+set}"; then
   7966     COLLECT_NAMES=
   7967     export COLLECT_NAMES
   7968   fi
   7969   ;;
   7970 esac
   7971 
   7972 # Global variables:
   7973 ofile=libtool
   7974 can_build_shared=yes
   7975 
   7976 # All known linkers require a '.a' archive for static linking (except MSVC,
   7977 # which needs '.lib').
   7978 libext=a
   7979 
   7980 with_gnu_ld=$lt_cv_prog_gnu_ld
   7981 
   7982 old_CC=$CC
   7983 old_CFLAGS=$CFLAGS
   7984 
   7985 # Set sane defaults for various variables
   7986 test -z "$CC" && CC=cc
   7987 test -z "$LTCC" && LTCC=$CC
   7988 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7989 test -z "$LD" && LD=ld
   7990 test -z "$ac_objext" && ac_objext=o
   7991 
   7992 func_cc_basename $compiler
   7993 cc_basename=$func_cc_basename_result
   7994 
   7995 
   7996 # Only perform the check for file, if the check method requires it
   7997 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7998 case $deplibs_check_method in
   7999 file_magic*)
   8000   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   8001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   8002 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   8003 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8004   $as_echo_n "(cached) " >&6
   8005 else
   8006   case $MAGIC_CMD in
   8007 [\\/*] |  ?:[\\/]*)
   8008   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8009   ;;
   8010 *)
   8011   lt_save_MAGIC_CMD=$MAGIC_CMD
   8012   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8013   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8014   for ac_dir in $ac_dummy; do
   8015     IFS=$lt_save_ifs
   8016     test -z "$ac_dir" && ac_dir=.
   8017     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   8018       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   8019       if test -n "$file_magic_test_file"; then
   8020 	case $deplibs_check_method in
   8021 	"file_magic "*)
   8022 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8023 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8024 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8025 	    $EGREP "$file_magic_regex" > /dev/null; then
   8026 	    :
   8027 	  else
   8028 	    cat <<_LT_EOF 1>&2
   8029 
   8030 *** Warning: the command libtool uses to detect shared libraries,
   8031 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8032 *** The result is that libtool may fail to recognize shared libraries
   8033 *** as such.  This will affect the creation of libtool libraries that
   8034 *** depend on shared libraries, but programs linked with such libtool
   8035 *** libraries will work regardless of this problem.  Nevertheless, you
   8036 *** may want to report the problem to your system manager and/or to
   8037 *** bug-libtool (at] gnu.org
   8038 
   8039 _LT_EOF
   8040 	  fi ;;
   8041 	esac
   8042       fi
   8043       break
   8044     fi
   8045   done
   8046   IFS=$lt_save_ifs
   8047   MAGIC_CMD=$lt_save_MAGIC_CMD
   8048   ;;
   8049 esac
   8050 fi
   8051 
   8052 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8053 if test -n "$MAGIC_CMD"; then
   8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8055 $as_echo "$MAGIC_CMD" >&6; }
   8056 else
   8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8058 $as_echo "no" >&6; }
   8059 fi
   8060 
   8061 
   8062 
   8063 
   8064 
   8065 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8066   if test -n "$ac_tool_prefix"; then
   8067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8068 $as_echo_n "checking for file... " >&6; }
   8069 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8070   $as_echo_n "(cached) " >&6
   8071 else
   8072   case $MAGIC_CMD in
   8073 [\\/*] |  ?:[\\/]*)
   8074   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8075   ;;
   8076 *)
   8077   lt_save_MAGIC_CMD=$MAGIC_CMD
   8078   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8079   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8080   for ac_dir in $ac_dummy; do
   8081     IFS=$lt_save_ifs
   8082     test -z "$ac_dir" && ac_dir=.
   8083     if test -f "$ac_dir/file"; then
   8084       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8085       if test -n "$file_magic_test_file"; then
   8086 	case $deplibs_check_method in
   8087 	"file_magic "*)
   8088 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8089 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8090 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8091 	    $EGREP "$file_magic_regex" > /dev/null; then
   8092 	    :
   8093 	  else
   8094 	    cat <<_LT_EOF 1>&2
   8095 
   8096 *** Warning: the command libtool uses to detect shared libraries,
   8097 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8098 *** The result is that libtool may fail to recognize shared libraries
   8099 *** as such.  This will affect the creation of libtool libraries that
   8100 *** depend on shared libraries, but programs linked with such libtool
   8101 *** libraries will work regardless of this problem.  Nevertheless, you
   8102 *** may want to report the problem to your system manager and/or to
   8103 *** bug-libtool (at] gnu.org
   8104 
   8105 _LT_EOF
   8106 	  fi ;;
   8107 	esac
   8108       fi
   8109       break
   8110     fi
   8111   done
   8112   IFS=$lt_save_ifs
   8113   MAGIC_CMD=$lt_save_MAGIC_CMD
   8114   ;;
   8115 esac
   8116 fi
   8117 
   8118 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8119 if test -n "$MAGIC_CMD"; then
   8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8121 $as_echo "$MAGIC_CMD" >&6; }
   8122 else
   8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8124 $as_echo "no" >&6; }
   8125 fi
   8126 
   8127 
   8128   else
   8129     MAGIC_CMD=:
   8130   fi
   8131 fi
   8132 
   8133   fi
   8134   ;;
   8135 esac
   8136 
   8137 # Use C for the default configuration in the libtool script
   8138 
   8139 lt_save_CC=$CC
   8140 ac_ext=c
   8141 ac_cpp='$CPP $CPPFLAGS'
   8142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8145 
   8146 
   8147 # Source file extension for C test sources.
   8148 ac_ext=c
   8149 
   8150 # Object file extension for compiled C test sources.
   8151 objext=o
   8152 objext=$objext
   8153 
   8154 # Code to be used in simple compile tests
   8155 lt_simple_compile_test_code="int some_variable = 0;"
   8156 
   8157 # Code to be used in simple link tests
   8158 lt_simple_link_test_code='int main(){return(0);}'
   8159 
   8160 
   8161 
   8162 
   8163 
   8164 
   8165 
   8166 # If no C compiler was specified, use CC.
   8167 LTCC=${LTCC-"$CC"}
   8168 
   8169 # If no C compiler flags were specified, use CFLAGS.
   8170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8171 
   8172 # Allow CC to be a program name with arguments.
   8173 compiler=$CC
   8174 
   8175 # Save the default compiler, since it gets overwritten when the other
   8176 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8177 compiler_DEFAULT=$CC
   8178 
   8179 # save warnings/boilerplate of simple test code
   8180 ac_outfile=conftest.$ac_objext
   8181 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8182 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8183 _lt_compiler_boilerplate=`cat conftest.err`
   8184 $RM conftest*
   8185 
   8186 ac_outfile=conftest.$ac_objext
   8187 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8188 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8189 _lt_linker_boilerplate=`cat conftest.err`
   8190 $RM -r conftest*
   8191 
   8192 
   8193 ## CAVEAT EMPTOR:
   8194 ## There is no encapsulation within the following macros, do not change
   8195 ## the running order or otherwise move them around unless you know exactly
   8196 ## what you are doing...
   8197 if test -n "$compiler"; then
   8198 
   8199 lt_prog_compiler_no_builtin_flag=
   8200 
   8201 if test yes = "$GCC"; then
   8202   case $cc_basename in
   8203   nvcc*)
   8204     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8205   *)
   8206     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8207   esac
   8208 
   8209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8210 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8211 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8212   $as_echo_n "(cached) " >&6
   8213 else
   8214   lt_cv_prog_compiler_rtti_exceptions=no
   8215    ac_outfile=conftest.$ac_objext
   8216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8217    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   8218    # Insert the option either (1) after the last *FLAGS variable, or
   8219    # (2) before a word containing "conftest.", or (3) at the end.
   8220    # Note that $ac_compile itself does not contain backslashes and begins
   8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8222    # The option is referenced via a variable to avoid confusing sed.
   8223    lt_compile=`echo "$ac_compile" | $SED \
   8224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8226    -e 's:$: $lt_compiler_flag:'`
   8227    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8228    (eval "$lt_compile" 2>conftest.err)
   8229    ac_status=$?
   8230    cat conftest.err >&5
   8231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8232    if (exit $ac_status) && test -s "$ac_outfile"; then
   8233      # The compiler can only warn and ignore the option if not recognized
   8234      # So say no if there are warnings other than the usual output.
   8235      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8236      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8237      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8238        lt_cv_prog_compiler_rtti_exceptions=yes
   8239      fi
   8240    fi
   8241    $RM conftest*
   8242 
   8243 fi
   8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8245 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8246 
   8247 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   8248     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8249 else
   8250     :
   8251 fi
   8252 
   8253 fi
   8254 
   8255 
   8256 
   8257 
   8258 
   8259 
   8260   lt_prog_compiler_wl=
   8261 lt_prog_compiler_pic=
   8262 lt_prog_compiler_static=
   8263 
   8264 
   8265   if test yes = "$GCC"; then
   8266     lt_prog_compiler_wl='-Wl,'
   8267     lt_prog_compiler_static='-static'
   8268 
   8269     case $host_os in
   8270       aix*)
   8271       # All AIX code is PIC.
   8272       if test ia64 = "$host_cpu"; then
   8273 	# AIX 5 now supports IA64 processor
   8274 	lt_prog_compiler_static='-Bstatic'
   8275       fi
   8276       lt_prog_compiler_pic='-fPIC'
   8277       ;;
   8278 
   8279     amigaos*)
   8280       case $host_cpu in
   8281       powerpc)
   8282             # see comment about AmigaOS4 .so support
   8283             lt_prog_compiler_pic='-fPIC'
   8284         ;;
   8285       m68k)
   8286             # FIXME: we need at least 68020 code to build shared libraries, but
   8287             # adding the '-m68020' flag to GCC prevents building anything better,
   8288             # like '-m68040'.
   8289             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   8290         ;;
   8291       esac
   8292       ;;
   8293 
   8294     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   8295       # PIC is the default for these OSes.
   8296       ;;
   8297 
   8298     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8299       # This hack is so that the source file can tell whether it is being
   8300       # built for inclusion in a dll (and should export symbols for example).
   8301       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   8302       # (--disable-auto-import) libraries
   8303       lt_prog_compiler_pic='-DDLL_EXPORT'
   8304       case $host_os in
   8305       os2*)
   8306 	lt_prog_compiler_static='$wl-static'
   8307 	;;
   8308       esac
   8309       ;;
   8310 
   8311     darwin* | rhapsody*)
   8312       # PIC is the default on this platform
   8313       # Common symbols not allowed in MH_DYLIB files
   8314       lt_prog_compiler_pic='-fno-common'
   8315       ;;
   8316 
   8317     haiku*)
   8318       # PIC is the default for Haiku.
   8319       # The "-static" flag exists, but is broken.
   8320       lt_prog_compiler_static=
   8321       ;;
   8322 
   8323     hpux*)
   8324       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   8325       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   8326       # sets the default TLS model and affects inlining.
   8327       case $host_cpu in
   8328       hppa*64*)
   8329 	# +Z the default
   8330 	;;
   8331       *)
   8332 	lt_prog_compiler_pic='-fPIC'
   8333 	;;
   8334       esac
   8335       ;;
   8336 
   8337     interix[3-9]*)
   8338       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8339       # Instead, we relocate shared libraries at runtime.
   8340       ;;
   8341 
   8342     msdosdjgpp*)
   8343       # Just because we use GCC doesn't mean we suddenly get shared libraries
   8344       # on systems that don't support them.
   8345       lt_prog_compiler_can_build_shared=no
   8346       enable_shared=no
   8347       ;;
   8348 
   8349     *nto* | *qnx*)
   8350       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8351       # it will coredump.
   8352       lt_prog_compiler_pic='-fPIC -shared'
   8353       ;;
   8354 
   8355     sysv4*MP*)
   8356       if test -d /usr/nec; then
   8357 	lt_prog_compiler_pic=-Kconform_pic
   8358       fi
   8359       ;;
   8360 
   8361     *)
   8362       lt_prog_compiler_pic='-fPIC'
   8363       ;;
   8364     esac
   8365 
   8366     case $cc_basename in
   8367     nvcc*) # Cuda Compiler Driver 2.2
   8368       lt_prog_compiler_wl='-Xlinker '
   8369       if test -n "$lt_prog_compiler_pic"; then
   8370         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   8371       fi
   8372       ;;
   8373     esac
   8374   else
   8375     # PORTME Check for flag to pass linker flags through the system compiler.
   8376     case $host_os in
   8377     aix*)
   8378       lt_prog_compiler_wl='-Wl,'
   8379       if test ia64 = "$host_cpu"; then
   8380 	# AIX 5 now supports IA64 processor
   8381 	lt_prog_compiler_static='-Bstatic'
   8382       else
   8383 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8384       fi
   8385       ;;
   8386 
   8387     darwin* | rhapsody*)
   8388       # PIC is the default on this platform
   8389       # Common symbols not allowed in MH_DYLIB files
   8390       lt_prog_compiler_pic='-fno-common'
   8391       case $cc_basename in
   8392       nagfor*)
   8393         # NAG Fortran compiler
   8394         lt_prog_compiler_wl='-Wl,-Wl,,'
   8395         lt_prog_compiler_pic='-PIC'
   8396         lt_prog_compiler_static='-Bstatic'
   8397         ;;
   8398       esac
   8399       ;;
   8400 
   8401     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8402       # This hack is so that the source file can tell whether it is being
   8403       # built for inclusion in a dll (and should export symbols for example).
   8404       lt_prog_compiler_pic='-DDLL_EXPORT'
   8405       case $host_os in
   8406       os2*)
   8407 	lt_prog_compiler_static='$wl-static'
   8408 	;;
   8409       esac
   8410       ;;
   8411 
   8412     hpux9* | hpux10* | hpux11*)
   8413       lt_prog_compiler_wl='-Wl,'
   8414       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8415       # not for PA HP-UX.
   8416       case $host_cpu in
   8417       hppa*64*|ia64*)
   8418 	# +Z the default
   8419 	;;
   8420       *)
   8421 	lt_prog_compiler_pic='+Z'
   8422 	;;
   8423       esac
   8424       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8425       lt_prog_compiler_static='$wl-a ${wl}archive'
   8426       ;;
   8427 
   8428     irix5* | irix6* | nonstopux*)
   8429       lt_prog_compiler_wl='-Wl,'
   8430       # PIC (with -KPIC) is the default.
   8431       lt_prog_compiler_static='-non_shared'
   8432       ;;
   8433 
   8434     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8435       case $cc_basename in
   8436       # old Intel for x86_64, which still supported -KPIC.
   8437       ecc*)
   8438 	lt_prog_compiler_wl='-Wl,'
   8439 	lt_prog_compiler_pic='-KPIC'
   8440 	lt_prog_compiler_static='-static'
   8441         ;;
   8442       # icc used to be incompatible with GCC.
   8443       # ICC 10 doesn't accept -KPIC any more.
   8444       icc* | ifort*)
   8445 	lt_prog_compiler_wl='-Wl,'
   8446 	lt_prog_compiler_pic='-fPIC'
   8447 	lt_prog_compiler_static='-static'
   8448         ;;
   8449       # Lahey Fortran 8.1.
   8450       lf95*)
   8451 	lt_prog_compiler_wl='-Wl,'
   8452 	lt_prog_compiler_pic='--shared'
   8453 	lt_prog_compiler_static='--static'
   8454 	;;
   8455       nagfor*)
   8456 	# NAG Fortran compiler
   8457 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8458 	lt_prog_compiler_pic='-PIC'
   8459 	lt_prog_compiler_static='-Bstatic'
   8460 	;;
   8461       tcc*)
   8462 	# Fabrice Bellard et al's Tiny C Compiler
   8463 	lt_prog_compiler_wl='-Wl,'
   8464 	lt_prog_compiler_pic='-fPIC'
   8465 	lt_prog_compiler_static='-static'
   8466 	;;
   8467       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8468         # Portland Group compilers (*not* the Pentium gcc compiler,
   8469 	# which looks to be a dead project)
   8470 	lt_prog_compiler_wl='-Wl,'
   8471 	lt_prog_compiler_pic='-fpic'
   8472 	lt_prog_compiler_static='-Bstatic'
   8473         ;;
   8474       ccc*)
   8475         lt_prog_compiler_wl='-Wl,'
   8476         # All Alpha code is PIC.
   8477         lt_prog_compiler_static='-non_shared'
   8478         ;;
   8479       xl* | bgxl* | bgf* | mpixl*)
   8480 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8481 	lt_prog_compiler_wl='-Wl,'
   8482 	lt_prog_compiler_pic='-qpic'
   8483 	lt_prog_compiler_static='-qstaticlink'
   8484 	;;
   8485       *)
   8486 	case `$CC -V 2>&1 | sed 5q` in
   8487 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8488 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8489 	  lt_prog_compiler_pic='-KPIC'
   8490 	  lt_prog_compiler_static='-Bstatic'
   8491 	  lt_prog_compiler_wl=''
   8492 	  ;;
   8493 	*Sun\ F* | *Sun*Fortran*)
   8494 	  lt_prog_compiler_pic='-KPIC'
   8495 	  lt_prog_compiler_static='-Bstatic'
   8496 	  lt_prog_compiler_wl='-Qoption ld '
   8497 	  ;;
   8498 	*Sun\ C*)
   8499 	  # Sun C 5.9
   8500 	  lt_prog_compiler_pic='-KPIC'
   8501 	  lt_prog_compiler_static='-Bstatic'
   8502 	  lt_prog_compiler_wl='-Wl,'
   8503 	  ;;
   8504         *Intel*\ [CF]*Compiler*)
   8505 	  lt_prog_compiler_wl='-Wl,'
   8506 	  lt_prog_compiler_pic='-fPIC'
   8507 	  lt_prog_compiler_static='-static'
   8508 	  ;;
   8509 	*Portland\ Group*)
   8510 	  lt_prog_compiler_wl='-Wl,'
   8511 	  lt_prog_compiler_pic='-fpic'
   8512 	  lt_prog_compiler_static='-Bstatic'
   8513 	  ;;
   8514 	esac
   8515 	;;
   8516       esac
   8517       ;;
   8518 
   8519     newsos6)
   8520       lt_prog_compiler_pic='-KPIC'
   8521       lt_prog_compiler_static='-Bstatic'
   8522       ;;
   8523 
   8524     *nto* | *qnx*)
   8525       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8526       # it will coredump.
   8527       lt_prog_compiler_pic='-fPIC -shared'
   8528       ;;
   8529 
   8530     osf3* | osf4* | osf5*)
   8531       lt_prog_compiler_wl='-Wl,'
   8532       # All OSF/1 code is PIC.
   8533       lt_prog_compiler_static='-non_shared'
   8534       ;;
   8535 
   8536     rdos*)
   8537       lt_prog_compiler_static='-non_shared'
   8538       ;;
   8539 
   8540     solaris*)
   8541       lt_prog_compiler_pic='-KPIC'
   8542       lt_prog_compiler_static='-Bstatic'
   8543       case $cc_basename in
   8544       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8545 	lt_prog_compiler_wl='-Qoption ld ';;
   8546       *)
   8547 	lt_prog_compiler_wl='-Wl,';;
   8548       esac
   8549       ;;
   8550 
   8551     sunos4*)
   8552       lt_prog_compiler_wl='-Qoption ld '
   8553       lt_prog_compiler_pic='-PIC'
   8554       lt_prog_compiler_static='-Bstatic'
   8555       ;;
   8556 
   8557     sysv4 | sysv4.2uw2* | sysv4.3*)
   8558       lt_prog_compiler_wl='-Wl,'
   8559       lt_prog_compiler_pic='-KPIC'
   8560       lt_prog_compiler_static='-Bstatic'
   8561       ;;
   8562 
   8563     sysv4*MP*)
   8564       if test -d /usr/nec; then
   8565 	lt_prog_compiler_pic='-Kconform_pic'
   8566 	lt_prog_compiler_static='-Bstatic'
   8567       fi
   8568       ;;
   8569 
   8570     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8571       lt_prog_compiler_wl='-Wl,'
   8572       lt_prog_compiler_pic='-KPIC'
   8573       lt_prog_compiler_static='-Bstatic'
   8574       ;;
   8575 
   8576     unicos*)
   8577       lt_prog_compiler_wl='-Wl,'
   8578       lt_prog_compiler_can_build_shared=no
   8579       ;;
   8580 
   8581     uts4*)
   8582       lt_prog_compiler_pic='-pic'
   8583       lt_prog_compiler_static='-Bstatic'
   8584       ;;
   8585 
   8586     *)
   8587       lt_prog_compiler_can_build_shared=no
   8588       ;;
   8589     esac
   8590   fi
   8591 
   8592 case $host_os in
   8593   # For platforms that do not support PIC, -DPIC is meaningless:
   8594   *djgpp*)
   8595     lt_prog_compiler_pic=
   8596     ;;
   8597   *)
   8598     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8599     ;;
   8600 esac
   8601 
   8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8603 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8604 if ${lt_cv_prog_compiler_pic+:} false; then :
   8605   $as_echo_n "(cached) " >&6
   8606 else
   8607   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8608 fi
   8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8610 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8611 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8612 
   8613 #
   8614 # Check to make sure the PIC flag actually works.
   8615 #
   8616 if test -n "$lt_prog_compiler_pic"; then
   8617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8618 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8619 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8620   $as_echo_n "(cached) " >&6
   8621 else
   8622   lt_cv_prog_compiler_pic_works=no
   8623    ac_outfile=conftest.$ac_objext
   8624    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8625    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8626    # Insert the option either (1) after the last *FLAGS variable, or
   8627    # (2) before a word containing "conftest.", or (3) at the end.
   8628    # Note that $ac_compile itself does not contain backslashes and begins
   8629    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8630    # The option is referenced via a variable to avoid confusing sed.
   8631    lt_compile=`echo "$ac_compile" | $SED \
   8632    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8633    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8634    -e 's:$: $lt_compiler_flag:'`
   8635    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8636    (eval "$lt_compile" 2>conftest.err)
   8637    ac_status=$?
   8638    cat conftest.err >&5
   8639    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8640    if (exit $ac_status) && test -s "$ac_outfile"; then
   8641      # The compiler can only warn and ignore the option if not recognized
   8642      # So say no if there are warnings other than the usual output.
   8643      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8644      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8645      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8646        lt_cv_prog_compiler_pic_works=yes
   8647      fi
   8648    fi
   8649    $RM conftest*
   8650 
   8651 fi
   8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8653 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8654 
   8655 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8656     case $lt_prog_compiler_pic in
   8657      "" | " "*) ;;
   8658      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8659      esac
   8660 else
   8661     lt_prog_compiler_pic=
   8662      lt_prog_compiler_can_build_shared=no
   8663 fi
   8664 
   8665 fi
   8666 
   8667 
   8668 
   8669 
   8670 
   8671 
   8672 
   8673 
   8674 
   8675 
   8676 
   8677 #
   8678 # Check to make sure the static flag actually works.
   8679 #
   8680 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8682 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8683 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8684   $as_echo_n "(cached) " >&6
   8685 else
   8686   lt_cv_prog_compiler_static_works=no
   8687    save_LDFLAGS=$LDFLAGS
   8688    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8689    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8690    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8691      # The linker can only warn and ignore the option if not recognized
   8692      # So say no if there are warnings
   8693      if test -s conftest.err; then
   8694        # Append any errors to the config.log.
   8695        cat conftest.err 1>&5
   8696        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8697        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8698        if diff conftest.exp conftest.er2 >/dev/null; then
   8699          lt_cv_prog_compiler_static_works=yes
   8700        fi
   8701      else
   8702        lt_cv_prog_compiler_static_works=yes
   8703      fi
   8704    fi
   8705    $RM -r conftest*
   8706    LDFLAGS=$save_LDFLAGS
   8707 
   8708 fi
   8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8710 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8711 
   8712 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8713     :
   8714 else
   8715     lt_prog_compiler_static=
   8716 fi
   8717 
   8718 
   8719 
   8720 
   8721 
   8722 
   8723 
   8724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8726 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8727   $as_echo_n "(cached) " >&6
   8728 else
   8729   lt_cv_prog_compiler_c_o=no
   8730    $RM -r conftest 2>/dev/null
   8731    mkdir conftest
   8732    cd conftest
   8733    mkdir out
   8734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8735 
   8736    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8737    # Insert the option either (1) after the last *FLAGS variable, or
   8738    # (2) before a word containing "conftest.", or (3) at the end.
   8739    # Note that $ac_compile itself does not contain backslashes and begins
   8740    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8741    lt_compile=`echo "$ac_compile" | $SED \
   8742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8744    -e 's:$: $lt_compiler_flag:'`
   8745    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8746    (eval "$lt_compile" 2>out/conftest.err)
   8747    ac_status=$?
   8748    cat out/conftest.err >&5
   8749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8751    then
   8752      # The compiler can only warn and ignore the option if not recognized
   8753      # So say no if there are warnings
   8754      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8755      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8756      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8757        lt_cv_prog_compiler_c_o=yes
   8758      fi
   8759    fi
   8760    chmod u+w . 2>&5
   8761    $RM conftest*
   8762    # SGI C++ compiler will create directory out/ii_files/ for
   8763    # template instantiation
   8764    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8765    $RM out/* && rmdir out
   8766    cd ..
   8767    $RM -r conftest
   8768    $RM conftest*
   8769 
   8770 fi
   8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8772 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8773 
   8774 
   8775 
   8776 
   8777 
   8778 
   8779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8781 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8782   $as_echo_n "(cached) " >&6
   8783 else
   8784   lt_cv_prog_compiler_c_o=no
   8785    $RM -r conftest 2>/dev/null
   8786    mkdir conftest
   8787    cd conftest
   8788    mkdir out
   8789    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8790 
   8791    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8792    # Insert the option either (1) after the last *FLAGS variable, or
   8793    # (2) before a word containing "conftest.", or (3) at the end.
   8794    # Note that $ac_compile itself does not contain backslashes and begins
   8795    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8796    lt_compile=`echo "$ac_compile" | $SED \
   8797    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8798    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8799    -e 's:$: $lt_compiler_flag:'`
   8800    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8801    (eval "$lt_compile" 2>out/conftest.err)
   8802    ac_status=$?
   8803    cat out/conftest.err >&5
   8804    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8805    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8806    then
   8807      # The compiler can only warn and ignore the option if not recognized
   8808      # So say no if there are warnings
   8809      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8810      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8811      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8812        lt_cv_prog_compiler_c_o=yes
   8813      fi
   8814    fi
   8815    chmod u+w . 2>&5
   8816    $RM conftest*
   8817    # SGI C++ compiler will create directory out/ii_files/ for
   8818    # template instantiation
   8819    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8820    $RM out/* && rmdir out
   8821    cd ..
   8822    $RM -r conftest
   8823    $RM conftest*
   8824 
   8825 fi
   8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8827 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8828 
   8829 
   8830 
   8831 
   8832 hard_links=nottested
   8833 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8834   # do not overwrite the value of need_locks provided by the user
   8835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8836 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8837   hard_links=yes
   8838   $RM conftest*
   8839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8840   touch conftest.a
   8841   ln conftest.a conftest.b 2>&5 || hard_links=no
   8842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8844 $as_echo "$hard_links" >&6; }
   8845   if test no = "$hard_links"; then
   8846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8847 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8848     need_locks=warn
   8849   fi
   8850 else
   8851   need_locks=no
   8852 fi
   8853 
   8854 
   8855 
   8856 
   8857 
   8858 
   8859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8860 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8861 
   8862   runpath_var=
   8863   allow_undefined_flag=
   8864   always_export_symbols=no
   8865   archive_cmds=
   8866   archive_expsym_cmds=
   8867   compiler_needs_object=no
   8868   enable_shared_with_static_runtimes=no
   8869   export_dynamic_flag_spec=
   8870   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8871   hardcode_automatic=no
   8872   hardcode_direct=no
   8873   hardcode_direct_absolute=no
   8874   hardcode_libdir_flag_spec=
   8875   hardcode_libdir_separator=
   8876   hardcode_minus_L=no
   8877   hardcode_shlibpath_var=unsupported
   8878   inherit_rpath=no
   8879   link_all_deplibs=unknown
   8880   module_cmds=
   8881   module_expsym_cmds=
   8882   old_archive_from_new_cmds=
   8883   old_archive_from_expsyms_cmds=
   8884   thread_safe_flag_spec=
   8885   whole_archive_flag_spec=
   8886   # include_expsyms should be a list of space-separated symbols to be *always*
   8887   # included in the symbol list
   8888   include_expsyms=
   8889   # exclude_expsyms can be an extended regexp of symbols to exclude
   8890   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8891   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8892   # as well as any symbol that contains 'd'.
   8893   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8894   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8895   # platforms (ab)use it in PIC code, but their linkers get confused if
   8896   # the symbol is explicitly referenced.  Since portable code cannot
   8897   # rely on this symbol name, it's probably fine to never include it in
   8898   # preloaded symbol tables.
   8899   # Exclude shared library initialization/finalization symbols.
   8900   extract_expsyms_cmds=
   8901 
   8902   case $host_os in
   8903   cygwin* | mingw* | pw32* | cegcc*)
   8904     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8905     # When not using gcc, we currently assume that we are using
   8906     # Microsoft Visual C++.
   8907     if test yes != "$GCC"; then
   8908       with_gnu_ld=no
   8909     fi
   8910     ;;
   8911   interix*)
   8912     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8913     with_gnu_ld=yes
   8914     ;;
   8915   openbsd* | bitrig*)
   8916     with_gnu_ld=no
   8917     ;;
   8918   esac
   8919 
   8920   ld_shlibs=yes
   8921 
   8922   # On some targets, GNU ld is compatible enough with the native linker
   8923   # that we're better off using the native interface for both.
   8924   lt_use_gnu_ld_interface=no
   8925   if test yes = "$with_gnu_ld"; then
   8926     case $host_os in
   8927       aix*)
   8928 	# The AIX port of GNU ld has always aspired to compatibility
   8929 	# with the native linker.  However, as the warning in the GNU ld
   8930 	# block says, versions before 2.19.5* couldn't really create working
   8931 	# shared libraries, regardless of the interface used.
   8932 	case `$LD -v 2>&1` in
   8933 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8934 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8935 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8936 	  *)
   8937 	    lt_use_gnu_ld_interface=yes
   8938 	    ;;
   8939 	esac
   8940 	;;
   8941       *)
   8942 	lt_use_gnu_ld_interface=yes
   8943 	;;
   8944     esac
   8945   fi
   8946 
   8947   if test yes = "$lt_use_gnu_ld_interface"; then
   8948     # If archive_cmds runs LD, not CC, wlarc should be empty
   8949     wlarc='$wl'
   8950 
   8951     # Set some defaults for GNU ld with shared library support. These
   8952     # are reset later if shared libraries are not supported. Putting them
   8953     # here allows them to be overridden if necessary.
   8954     runpath_var=LD_RUN_PATH
   8955     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8956     export_dynamic_flag_spec='$wl--export-dynamic'
   8957     # ancient GNU ld didn't support --whole-archive et. al.
   8958     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8959       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8960     else
   8961       whole_archive_flag_spec=
   8962     fi
   8963     supports_anon_versioning=no
   8964     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8965       *GNU\ gold*) supports_anon_versioning=yes ;;
   8966       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8967       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8968       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8969       *\ 2.11.*) ;; # other 2.11 versions
   8970       *) supports_anon_versioning=yes ;;
   8971     esac
   8972 
   8973     # See if GNU ld supports shared libraries.
   8974     case $host_os in
   8975     aix[3-9]*)
   8976       # On AIX/PPC, the GNU linker is very broken
   8977       if test ia64 != "$host_cpu"; then
   8978 	ld_shlibs=no
   8979 	cat <<_LT_EOF 1>&2
   8980 
   8981 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8982 *** to be unable to reliably create shared libraries on AIX.
   8983 *** Therefore, libtool is disabling shared libraries support.  If you
   8984 *** really care for shared libraries, you may want to install binutils
   8985 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8986 *** You will then need to restart the configuration process.
   8987 
   8988 _LT_EOF
   8989       fi
   8990       ;;
   8991 
   8992     amigaos*)
   8993       case $host_cpu in
   8994       powerpc)
   8995             # see comment about AmigaOS4 .so support
   8996             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8997             archive_expsym_cmds=''
   8998         ;;
   8999       m68k)
   9000             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)'
   9001             hardcode_libdir_flag_spec='-L$libdir'
   9002             hardcode_minus_L=yes
   9003         ;;
   9004       esac
   9005       ;;
   9006 
   9007     beos*)
   9008       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9009 	allow_undefined_flag=unsupported
   9010 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   9011 	# support --undefined.  This deserves some investigation.  FIXME
   9012 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9013       else
   9014 	ld_shlibs=no
   9015       fi
   9016       ;;
   9017 
   9018     cygwin* | mingw* | pw32* | cegcc*)
   9019       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   9020       # as there is no search path for DLLs.
   9021       hardcode_libdir_flag_spec='-L$libdir'
   9022       export_dynamic_flag_spec='$wl--export-all-symbols'
   9023       allow_undefined_flag=unsupported
   9024       always_export_symbols=no
   9025       enable_shared_with_static_runtimes=yes
   9026       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'
   9027       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   9028 
   9029       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   9030         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9031 	# If the export-symbols file already is a .def file, use it as
   9032 	# is; otherwise, prepend EXPORTS...
   9033 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9034           cp $export_symbols $output_objdir/$soname.def;
   9035         else
   9036           echo EXPORTS > $output_objdir/$soname.def;
   9037           cat $export_symbols >> $output_objdir/$soname.def;
   9038         fi~
   9039         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9040       else
   9041 	ld_shlibs=no
   9042       fi
   9043       ;;
   9044 
   9045     haiku*)
   9046       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9047       link_all_deplibs=yes
   9048       ;;
   9049 
   9050     os2*)
   9051       hardcode_libdir_flag_spec='-L$libdir'
   9052       hardcode_minus_L=yes
   9053       allow_undefined_flag=unsupported
   9054       shrext_cmds=.dll
   9055       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9056 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9057 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9058 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9059 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9060 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9061 	emximp -o $lib $output_objdir/$libname.def'
   9062       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9063 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9064 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9065 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9066 	prefix_cmds="$SED"~
   9067 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9068 	  prefix_cmds="$prefix_cmds -e 1d";
   9069 	fi~
   9070 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9071 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9072 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9073 	emximp -o $lib $output_objdir/$libname.def'
   9074       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9075       enable_shared_with_static_runtimes=yes
   9076       ;;
   9077 
   9078     interix[3-9]*)
   9079       hardcode_direct=no
   9080       hardcode_shlibpath_var=no
   9081       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9082       export_dynamic_flag_spec='$wl-E'
   9083       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9084       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9085       # default) and relocated if they conflict, which is a slow very memory
   9086       # consuming and fragmenting process.  To avoid this, we pick a random,
   9087       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9088       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9089       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9090       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'
   9091       ;;
   9092 
   9093     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9094       tmp_diet=no
   9095       if test linux-dietlibc = "$host_os"; then
   9096 	case $cc_basename in
   9097 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9098 	esac
   9099       fi
   9100       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9101 	 && test no = "$tmp_diet"
   9102       then
   9103 	tmp_addflag=' $pic_flag'
   9104 	tmp_sharedflag='-shared'
   9105 	case $cc_basename,$host_cpu in
   9106         pgcc*)				# Portland Group C compiler
   9107 	  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'
   9108 	  tmp_addflag=' $pic_flag'
   9109 	  ;;
   9110 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9111 					# Portland Group f77 and f90 compilers
   9112 	  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'
   9113 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9114 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9115 	  tmp_addflag=' -i_dynamic' ;;
   9116 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9117 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9118 	ifc* | ifort*)			# Intel Fortran compiler
   9119 	  tmp_addflag=' -nofor_main' ;;
   9120 	lf95*)				# Lahey Fortran 8.1
   9121 	  whole_archive_flag_spec=
   9122 	  tmp_sharedflag='--shared' ;;
   9123         nagfor*)                        # NAGFOR 5.3
   9124           tmp_sharedflag='-Wl,-shared' ;;
   9125 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9126 	  tmp_sharedflag='-qmkshrobj'
   9127 	  tmp_addflag= ;;
   9128 	nvcc*)	# Cuda Compiler Driver 2.2
   9129 	  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'
   9130 	  compiler_needs_object=yes
   9131 	  ;;
   9132 	esac
   9133 	case `$CC -V 2>&1 | sed 5q` in
   9134 	*Sun\ C*)			# Sun C 5.9
   9135 	  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'
   9136 	  compiler_needs_object=yes
   9137 	  tmp_sharedflag='-G' ;;
   9138 	*Sun\ F*)			# Sun Fortran 8.3
   9139 	  tmp_sharedflag='-G' ;;
   9140 	esac
   9141 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9142 
   9143         if test yes = "$supports_anon_versioning"; then
   9144           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9145             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9146             echo "local: *; };" >> $output_objdir/$libname.ver~
   9147             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9148         fi
   9149 
   9150 	case $cc_basename in
   9151 	tcc*)
   9152 	  export_dynamic_flag_spec='-rdynamic'
   9153 	  ;;
   9154 	xlf* | bgf* | bgxlf* | mpixlf*)
   9155 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9156 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9157 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9158 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9159 	  if test yes = "$supports_anon_versioning"; then
   9160 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9161               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9162               echo "local: *; };" >> $output_objdir/$libname.ver~
   9163               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9164 	  fi
   9165 	  ;;
   9166 	esac
   9167       else
   9168         ld_shlibs=no
   9169       fi
   9170       ;;
   9171 
   9172     netbsd*)
   9173       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9174 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9175 	wlarc=
   9176       else
   9177 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9178 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9179       fi
   9180       ;;
   9181 
   9182     solaris*)
   9183       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9184 	ld_shlibs=no
   9185 	cat <<_LT_EOF 1>&2
   9186 
   9187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9188 *** create shared libraries on Solaris systems.  Therefore, libtool
   9189 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9190 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9191 *** your PATH or compiler configuration so that the native linker is
   9192 *** used, and then restart.
   9193 
   9194 _LT_EOF
   9195       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9196 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9197 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9198       else
   9199 	ld_shlibs=no
   9200       fi
   9201       ;;
   9202 
   9203     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9204       case `$LD -v 2>&1` in
   9205         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9206 	ld_shlibs=no
   9207 	cat <<_LT_EOF 1>&2
   9208 
   9209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   9210 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9211 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9212 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9213 *** your PATH or compiler configuration so that the native linker is
   9214 *** used, and then restart.
   9215 
   9216 _LT_EOF
   9217 	;;
   9218 	*)
   9219 	  # For security reasons, it is highly recommended that you always
   9220 	  # use absolute paths for naming shared libraries, and exclude the
   9221 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9222 	  # requires that you compile everything twice, which is a pain.
   9223 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9224 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9225 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9226 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9227 	  else
   9228 	    ld_shlibs=no
   9229 	  fi
   9230 	;;
   9231       esac
   9232       ;;
   9233 
   9234     sunos4*)
   9235       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9236       wlarc=
   9237       hardcode_direct=yes
   9238       hardcode_shlibpath_var=no
   9239       ;;
   9240 
   9241     *)
   9242       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9243 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9244 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9245       else
   9246 	ld_shlibs=no
   9247       fi
   9248       ;;
   9249     esac
   9250 
   9251     if test no = "$ld_shlibs"; then
   9252       runpath_var=
   9253       hardcode_libdir_flag_spec=
   9254       export_dynamic_flag_spec=
   9255       whole_archive_flag_spec=
   9256     fi
   9257   else
   9258     # PORTME fill in a description of your system's linker (not GNU ld)
   9259     case $host_os in
   9260     aix3*)
   9261       allow_undefined_flag=unsupported
   9262       always_export_symbols=yes
   9263       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'
   9264       # Note: this linker hardcodes the directories in LIBPATH if there
   9265       # are no directories specified by -L.
   9266       hardcode_minus_L=yes
   9267       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   9268 	# Neither direct hardcoding nor static linking is supported with a
   9269 	# broken collect2.
   9270 	hardcode_direct=unsupported
   9271       fi
   9272       ;;
   9273 
   9274     aix[4-9]*)
   9275       if test ia64 = "$host_cpu"; then
   9276 	# On IA64, the linker does run time linking by default, so we don't
   9277 	# have to do anything special.
   9278 	aix_use_runtimelinking=no
   9279 	exp_sym_flag='-Bexport'
   9280 	no_entry_flag=
   9281       else
   9282 	# If we're using GNU nm, then we don't want the "-C" option.
   9283 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   9284 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   9285 	# weak defined symbols like other global defined symbols, whereas
   9286 	# GNU nm marks them as "W".
   9287 	# While the 'weak' keyword is ignored in the Export File, we need
   9288 	# it in the Import File for the 'aix-soname' feature, so we have
   9289 	# to replace the "-B" option with "-P" for AIX nm.
   9290 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   9291 	  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'
   9292 	else
   9293 	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
   9294 	fi
   9295 	aix_use_runtimelinking=no
   9296 
   9297 	# Test if we are trying to use run time linking or normal
   9298 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   9299 	# have runtime linking enabled, and use it for executables.
   9300 	# For shared libraries, we enable/disable runtime linking
   9301 	# depending on the kind of the shared library created -
   9302 	# when "with_aix_soname,aix_use_runtimelinking" is:
   9303 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   9304 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   9305 	#            lib.a           static archive
   9306 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   9307 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   9308 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   9309 	#            lib.a(lib.so.V) shared, rtl:no
   9310 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   9311 	#            lib.a           static archive
   9312 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   9313 	  for ld_flag in $LDFLAGS; do
   9314 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   9315 	    aix_use_runtimelinking=yes
   9316 	    break
   9317 	  fi
   9318 	  done
   9319 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   9320 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   9321 	    # so we don't have lib.a shared libs to link our executables.
   9322 	    # We have to force runtime linking in this case.
   9323 	    aix_use_runtimelinking=yes
   9324 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   9325 	  fi
   9326 	  ;;
   9327 	esac
   9328 
   9329 	exp_sym_flag='-bexport'
   9330 	no_entry_flag='-bnoentry'
   9331       fi
   9332 
   9333       # When large executables or shared objects are built, AIX ld can
   9334       # have problems creating the table of contents.  If linking a library
   9335       # or program results in "error TOC overflow" add -mminimal-toc to
   9336       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   9337       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   9338 
   9339       archive_cmds=''
   9340       hardcode_direct=yes
   9341       hardcode_direct_absolute=yes
   9342       hardcode_libdir_separator=':'
   9343       link_all_deplibs=yes
   9344       file_list_spec='$wl-f,'
   9345       case $with_aix_soname,$aix_use_runtimelinking in
   9346       aix,*) ;; # traditional, no import file
   9347       svr4,* | *,yes) # use import file
   9348 	# The Import File defines what to hardcode.
   9349 	hardcode_direct=no
   9350 	hardcode_direct_absolute=no
   9351 	;;
   9352       esac
   9353 
   9354       if test yes = "$GCC"; then
   9355 	case $host_os in aix4.[012]|aix4.[012].*)
   9356 	# We only want to do this on AIX 4.2 and lower, the check
   9357 	# below for broken collect2 doesn't work under 4.3+
   9358 	  collect2name=`$CC -print-prog-name=collect2`
   9359 	  if test -f "$collect2name" &&
   9360 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   9361 	  then
   9362 	  # We have reworked collect2
   9363 	  :
   9364 	  else
   9365 	  # We have old collect2
   9366 	  hardcode_direct=unsupported
   9367 	  # It fails to find uninstalled libraries when the uninstalled
   9368 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   9369 	  # to unsupported forces relinking
   9370 	  hardcode_minus_L=yes
   9371 	  hardcode_libdir_flag_spec='-L$libdir'
   9372 	  hardcode_libdir_separator=
   9373 	  fi
   9374 	  ;;
   9375 	esac
   9376 	shared_flag='-shared'
   9377 	if test yes = "$aix_use_runtimelinking"; then
   9378 	  shared_flag="$shared_flag "'$wl-G'
   9379 	fi
   9380 	# Need to ensure runtime linking is disabled for the traditional
   9381 	# shared library, or the linker may eventually find shared libraries
   9382 	# /with/ Import File - we do not want to mix them.
   9383 	shared_flag_aix='-shared'
   9384 	shared_flag_svr4='-shared $wl-G'
   9385       else
   9386 	# not using gcc
   9387 	if test ia64 = "$host_cpu"; then
   9388 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   9389 	# chokes on -Wl,-G. The following line is correct:
   9390 	  shared_flag='-G'
   9391 	else
   9392 	  if test yes = "$aix_use_runtimelinking"; then
   9393 	    shared_flag='$wl-G'
   9394 	  else
   9395 	    shared_flag='$wl-bM:SRE'
   9396 	  fi
   9397 	  shared_flag_aix='$wl-bM:SRE'
   9398 	  shared_flag_svr4='$wl-G'
   9399 	fi
   9400       fi
   9401 
   9402       export_dynamic_flag_spec='$wl-bexpall'
   9403       # It seems that -bexpall does not export symbols beginning with
   9404       # underscore (_), so it is better to generate a list of symbols to export.
   9405       always_export_symbols=yes
   9406       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9407 	# Warning - without using the other runtime loading flags (-brtl),
   9408 	# -berok will link without error, but may produce a broken library.
   9409 	allow_undefined_flag='-berok'
   9410         # Determine the default libpath from the value encoded in an
   9411         # empty executable.
   9412         if test set = "${lt_cv_aix_libpath+set}"; then
   9413   aix_libpath=$lt_cv_aix_libpath
   9414 else
   9415   if ${lt_cv_aix_libpath_+:} false; then :
   9416   $as_echo_n "(cached) " >&6
   9417 else
   9418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9419 /* end confdefs.h.  */
   9420 
   9421 int
   9422 main ()
   9423 {
   9424 
   9425   ;
   9426   return 0;
   9427 }
   9428 _ACEOF
   9429 if ac_fn_c_try_link "$LINENO"; then :
   9430 
   9431   lt_aix_libpath_sed='
   9432       /Import File Strings/,/^$/ {
   9433 	  /^0/ {
   9434 	      s/^0  *\([^ ]*\) *$/\1/
   9435 	      p
   9436 	  }
   9437       }'
   9438   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9439   # Check for a 64-bit object if we didn't find anything.
   9440   if test -z "$lt_cv_aix_libpath_"; then
   9441     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9442   fi
   9443 fi
   9444 rm -f core conftest.err conftest.$ac_objext \
   9445     conftest$ac_exeext conftest.$ac_ext
   9446   if test -z "$lt_cv_aix_libpath_"; then
   9447     lt_cv_aix_libpath_=/usr/lib:/lib
   9448   fi
   9449 
   9450 fi
   9451 
   9452   aix_libpath=$lt_cv_aix_libpath_
   9453 fi
   9454 
   9455         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9456         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
   9457       else
   9458 	if test ia64 = "$host_cpu"; then
   9459 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9460 	  allow_undefined_flag="-z nodefs"
   9461 	  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"
   9462 	else
   9463 	 # Determine the default libpath from the value encoded in an
   9464 	 # empty executable.
   9465 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9466   aix_libpath=$lt_cv_aix_libpath
   9467 else
   9468   if ${lt_cv_aix_libpath_+:} false; then :
   9469   $as_echo_n "(cached) " >&6
   9470 else
   9471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9472 /* end confdefs.h.  */
   9473 
   9474 int
   9475 main ()
   9476 {
   9477 
   9478   ;
   9479   return 0;
   9480 }
   9481 _ACEOF
   9482 if ac_fn_c_try_link "$LINENO"; then :
   9483 
   9484   lt_aix_libpath_sed='
   9485       /Import File Strings/,/^$/ {
   9486 	  /^0/ {
   9487 	      s/^0  *\([^ ]*\) *$/\1/
   9488 	      p
   9489 	  }
   9490       }'
   9491   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9492   # Check for a 64-bit object if we didn't find anything.
   9493   if test -z "$lt_cv_aix_libpath_"; then
   9494     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9495   fi
   9496 fi
   9497 rm -f core conftest.err conftest.$ac_objext \
   9498     conftest$ac_exeext conftest.$ac_ext
   9499   if test -z "$lt_cv_aix_libpath_"; then
   9500     lt_cv_aix_libpath_=/usr/lib:/lib
   9501   fi
   9502 
   9503 fi
   9504 
   9505   aix_libpath=$lt_cv_aix_libpath_
   9506 fi
   9507 
   9508 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9509 	  # Warning - without using the other run time loading flags,
   9510 	  # -berok will link without error, but may produce a broken library.
   9511 	  no_undefined_flag=' $wl-bernotok'
   9512 	  allow_undefined_flag=' $wl-berok'
   9513 	  if test yes = "$with_gnu_ld"; then
   9514 	    # We only use this code for GNU lds that support --whole-archive.
   9515 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9516 	  else
   9517 	    # Exported symbols can be pulled into shared objects from archives
   9518 	    whole_archive_flag_spec='$convenience'
   9519 	  fi
   9520 	  archive_cmds_need_lc=yes
   9521 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9522 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9523 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9524 	  if test svr4 != "$with_aix_soname"; then
   9525 	    # This is similar to how AIX traditionally builds its shared libraries.
   9526 	    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'
   9527 	  fi
   9528 	  if test aix != "$with_aix_soname"; then
   9529 	    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'
   9530 	  else
   9531 	    # used by -dlpreopen to get the symbols
   9532 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9533 	  fi
   9534 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9535 	fi
   9536       fi
   9537       ;;
   9538 
   9539     amigaos*)
   9540       case $host_cpu in
   9541       powerpc)
   9542             # see comment about AmigaOS4 .so support
   9543             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9544             archive_expsym_cmds=''
   9545         ;;
   9546       m68k)
   9547             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)'
   9548             hardcode_libdir_flag_spec='-L$libdir'
   9549             hardcode_minus_L=yes
   9550         ;;
   9551       esac
   9552       ;;
   9553 
   9554     bsdi[45]*)
   9555       export_dynamic_flag_spec=-rdynamic
   9556       ;;
   9557 
   9558     cygwin* | mingw* | pw32* | cegcc*)
   9559       # When not using gcc, we currently assume that we are using
   9560       # Microsoft Visual C++.
   9561       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9562       # no search path for DLLs.
   9563       case $cc_basename in
   9564       cl*)
   9565 	# Native MSVC
   9566 	hardcode_libdir_flag_spec=' '
   9567 	allow_undefined_flag=unsupported
   9568 	always_export_symbols=yes
   9569 	file_list_spec='@'
   9570 	# Tell ltmain to make .lib files, not .a files.
   9571 	libext=lib
   9572 	# Tell ltmain to make .dll files, not .so files.
   9573 	shrext_cmds=.dll
   9574 	# FIXME: Setting linknames here is a bad hack.
   9575 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9576 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9577             cp "$export_symbols" "$output_objdir/$soname.def";
   9578             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9579           else
   9580             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9581           fi~
   9582           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9583           linknames='
   9584 	# The linker will not automatically build a static lib if we build a DLL.
   9585 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9586 	enable_shared_with_static_runtimes=yes
   9587 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9588 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9589 	# Don't use ranlib
   9590 	old_postinstall_cmds='chmod 644 $oldlib'
   9591 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9592           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9593           case $lt_outputfile in
   9594             *.exe|*.EXE) ;;
   9595             *)
   9596               lt_outputfile=$lt_outputfile.exe
   9597               lt_tool_outputfile=$lt_tool_outputfile.exe
   9598               ;;
   9599           esac~
   9600           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9601             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9602             $RM "$lt_outputfile.manifest";
   9603           fi'
   9604 	;;
   9605       *)
   9606 	# Assume MSVC wrapper
   9607 	hardcode_libdir_flag_spec=' '
   9608 	allow_undefined_flag=unsupported
   9609 	# Tell ltmain to make .lib files, not .a files.
   9610 	libext=lib
   9611 	# Tell ltmain to make .dll files, not .so files.
   9612 	shrext_cmds=.dll
   9613 	# FIXME: Setting linknames here is a bad hack.
   9614 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9615 	# The linker will automatically build a .lib file if we build a DLL.
   9616 	old_archive_from_new_cmds='true'
   9617 	# FIXME: Should let the user specify the lib program.
   9618 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9619 	enable_shared_with_static_runtimes=yes
   9620 	;;
   9621       esac
   9622       ;;
   9623 
   9624     darwin* | rhapsody*)
   9625 
   9626 
   9627   archive_cmds_need_lc=no
   9628   hardcode_direct=no
   9629   hardcode_automatic=yes
   9630   hardcode_shlibpath_var=unsupported
   9631   if test yes = "$lt_cv_ld_force_load"; then
   9632     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\"`'
   9633 
   9634   else
   9635     whole_archive_flag_spec=''
   9636   fi
   9637   link_all_deplibs=yes
   9638   allow_undefined_flag=$_lt_dar_allow_undefined
   9639   case $cc_basename in
   9640      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9641      *) _lt_dar_can_shared=$GCC ;;
   9642   esac
   9643   if test yes = "$_lt_dar_can_shared"; then
   9644     output_verbose_link_cmd=func_echo_all
   9645     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9646     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9647     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"
   9648     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"
   9649 
   9650   else
   9651   ld_shlibs=no
   9652   fi
   9653 
   9654       ;;
   9655 
   9656     dgux*)
   9657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9658       hardcode_libdir_flag_spec='-L$libdir'
   9659       hardcode_shlibpath_var=no
   9660       ;;
   9661 
   9662     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9663     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9664     # does not break anything, and helps significantly (at the cost of a little
   9665     # extra space).
   9666     freebsd2.2*)
   9667       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9668       hardcode_libdir_flag_spec='-R$libdir'
   9669       hardcode_direct=yes
   9670       hardcode_shlibpath_var=no
   9671       ;;
   9672 
   9673     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9674     freebsd2.*)
   9675       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9676       hardcode_direct=yes
   9677       hardcode_minus_L=yes
   9678       hardcode_shlibpath_var=no
   9679       ;;
   9680 
   9681     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9682     freebsd* | dragonfly*)
   9683       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9684       hardcode_libdir_flag_spec='-R$libdir'
   9685       hardcode_direct=yes
   9686       hardcode_shlibpath_var=no
   9687       ;;
   9688 
   9689     hpux9*)
   9690       if test yes = "$GCC"; then
   9691 	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'
   9692       else
   9693 	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'
   9694       fi
   9695       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9696       hardcode_libdir_separator=:
   9697       hardcode_direct=yes
   9698 
   9699       # hardcode_minus_L: Not really in the search PATH,
   9700       # but as the default location of the library.
   9701       hardcode_minus_L=yes
   9702       export_dynamic_flag_spec='$wl-E'
   9703       ;;
   9704 
   9705     hpux10*)
   9706       if test yes,no = "$GCC,$with_gnu_ld"; then
   9707 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9708       else
   9709 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9710       fi
   9711       if test no = "$with_gnu_ld"; then
   9712 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9713 	hardcode_libdir_separator=:
   9714 	hardcode_direct=yes
   9715 	hardcode_direct_absolute=yes
   9716 	export_dynamic_flag_spec='$wl-E'
   9717 	# hardcode_minus_L: Not really in the search PATH,
   9718 	# but as the default location of the library.
   9719 	hardcode_minus_L=yes
   9720       fi
   9721       ;;
   9722 
   9723     hpux11*)
   9724       if test yes,no = "$GCC,$with_gnu_ld"; then
   9725 	case $host_cpu in
   9726 	hppa*64*)
   9727 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9728 	  ;;
   9729 	ia64*)
   9730 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9731 	  ;;
   9732 	*)
   9733 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9734 	  ;;
   9735 	esac
   9736       else
   9737 	case $host_cpu in
   9738 	hppa*64*)
   9739 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9740 	  ;;
   9741 	ia64*)
   9742 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9743 	  ;;
   9744 	*)
   9745 
   9746 	  # Older versions of the 11.00 compiler do not understand -b yet
   9747 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9748 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9749 $as_echo_n "checking if $CC understands -b... " >&6; }
   9750 if ${lt_cv_prog_compiler__b+:} false; then :
   9751   $as_echo_n "(cached) " >&6
   9752 else
   9753   lt_cv_prog_compiler__b=no
   9754    save_LDFLAGS=$LDFLAGS
   9755    LDFLAGS="$LDFLAGS -b"
   9756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9758      # The linker can only warn and ignore the option if not recognized
   9759      # So say no if there are warnings
   9760      if test -s conftest.err; then
   9761        # Append any errors to the config.log.
   9762        cat conftest.err 1>&5
   9763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9765        if diff conftest.exp conftest.er2 >/dev/null; then
   9766          lt_cv_prog_compiler__b=yes
   9767        fi
   9768      else
   9769        lt_cv_prog_compiler__b=yes
   9770      fi
   9771    fi
   9772    $RM -r conftest*
   9773    LDFLAGS=$save_LDFLAGS
   9774 
   9775 fi
   9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9777 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9778 
   9779 if test yes = "$lt_cv_prog_compiler__b"; then
   9780     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9781 else
   9782     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9783 fi
   9784 
   9785 	  ;;
   9786 	esac
   9787       fi
   9788       if test no = "$with_gnu_ld"; then
   9789 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9790 	hardcode_libdir_separator=:
   9791 
   9792 	case $host_cpu in
   9793 	hppa*64*|ia64*)
   9794 	  hardcode_direct=no
   9795 	  hardcode_shlibpath_var=no
   9796 	  ;;
   9797 	*)
   9798 	  hardcode_direct=yes
   9799 	  hardcode_direct_absolute=yes
   9800 	  export_dynamic_flag_spec='$wl-E'
   9801 
   9802 	  # hardcode_minus_L: Not really in the search PATH,
   9803 	  # but as the default location of the library.
   9804 	  hardcode_minus_L=yes
   9805 	  ;;
   9806 	esac
   9807       fi
   9808       ;;
   9809 
   9810     irix5* | irix6* | nonstopux*)
   9811       if test yes = "$GCC"; then
   9812 	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'
   9813 	# Try to use the -exported_symbol ld option, if it does not
   9814 	# work, assume that -exports_file does not work either and
   9815 	# implicitly export all symbols.
   9816 	# This should be the same for all languages, so no per-tag cache variable.
   9817 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9818 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9819 if ${lt_cv_irix_exported_symbol+:} false; then :
   9820   $as_echo_n "(cached) " >&6
   9821 else
   9822   save_LDFLAGS=$LDFLAGS
   9823 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9824 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9825 /* end confdefs.h.  */
   9826 int foo (void) { return 0; }
   9827 _ACEOF
   9828 if ac_fn_c_try_link "$LINENO"; then :
   9829   lt_cv_irix_exported_symbol=yes
   9830 else
   9831   lt_cv_irix_exported_symbol=no
   9832 fi
   9833 rm -f core conftest.err conftest.$ac_objext \
   9834     conftest$ac_exeext conftest.$ac_ext
   9835            LDFLAGS=$save_LDFLAGS
   9836 fi
   9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9838 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9839 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9840           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'
   9841 	fi
   9842       else
   9843 	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'
   9844 	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'
   9845       fi
   9846       archive_cmds_need_lc='no'
   9847       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9848       hardcode_libdir_separator=:
   9849       inherit_rpath=yes
   9850       link_all_deplibs=yes
   9851       ;;
   9852 
   9853     linux*)
   9854       case $cc_basename in
   9855       tcc*)
   9856 	# Fabrice Bellard et al's Tiny C Compiler
   9857 	ld_shlibs=yes
   9858 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9859 	;;
   9860       esac
   9861       ;;
   9862 
   9863     netbsd*)
   9864       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9865 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9866       else
   9867 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9868       fi
   9869       hardcode_libdir_flag_spec='-R$libdir'
   9870       hardcode_direct=yes
   9871       hardcode_shlibpath_var=no
   9872       ;;
   9873 
   9874     newsos6)
   9875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9876       hardcode_direct=yes
   9877       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9878       hardcode_libdir_separator=:
   9879       hardcode_shlibpath_var=no
   9880       ;;
   9881 
   9882     *nto* | *qnx*)
   9883       ;;
   9884 
   9885     openbsd* | bitrig*)
   9886       if test -f /usr/libexec/ld.so; then
   9887 	hardcode_direct=yes
   9888 	hardcode_shlibpath_var=no
   9889 	hardcode_direct_absolute=yes
   9890 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9891 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9892 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9893 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9894 	  export_dynamic_flag_spec='$wl-E'
   9895 	else
   9896 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9897 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9898 	fi
   9899       else
   9900 	ld_shlibs=no
   9901       fi
   9902       ;;
   9903 
   9904     os2*)
   9905       hardcode_libdir_flag_spec='-L$libdir'
   9906       hardcode_minus_L=yes
   9907       allow_undefined_flag=unsupported
   9908       shrext_cmds=.dll
   9909       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9910 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9911 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9912 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9913 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9914 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9915 	emximp -o $lib $output_objdir/$libname.def'
   9916       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9917 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9918 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9919 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9920 	prefix_cmds="$SED"~
   9921 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9922 	  prefix_cmds="$prefix_cmds -e 1d";
   9923 	fi~
   9924 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9925 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9926 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9927 	emximp -o $lib $output_objdir/$libname.def'
   9928       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9929       enable_shared_with_static_runtimes=yes
   9930       ;;
   9931 
   9932     osf3*)
   9933       if test yes = "$GCC"; then
   9934 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9935 	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'
   9936       else
   9937 	allow_undefined_flag=' -expect_unresolved \*'
   9938 	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'
   9939       fi
   9940       archive_cmds_need_lc='no'
   9941       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9942       hardcode_libdir_separator=:
   9943       ;;
   9944 
   9945     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9946       if test yes = "$GCC"; then
   9947 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9948 	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'
   9949 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9950       else
   9951 	allow_undefined_flag=' -expect_unresolved \*'
   9952 	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'
   9953 	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~
   9954           $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'
   9955 
   9956 	# Both c and cxx compiler support -rpath directly
   9957 	hardcode_libdir_flag_spec='-rpath $libdir'
   9958       fi
   9959       archive_cmds_need_lc='no'
   9960       hardcode_libdir_separator=:
   9961       ;;
   9962 
   9963     solaris*)
   9964       no_undefined_flag=' -z defs'
   9965       if test yes = "$GCC"; then
   9966 	wlarc='$wl'
   9967 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9968 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9969           $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'
   9970       else
   9971 	case `$CC -V 2>&1` in
   9972 	*"Compilers 5.0"*)
   9973 	  wlarc=''
   9974 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9975 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9976             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9977 	  ;;
   9978 	*)
   9979 	  wlarc='$wl'
   9980 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9981 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9982             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9983 	  ;;
   9984 	esac
   9985       fi
   9986       hardcode_libdir_flag_spec='-R$libdir'
   9987       hardcode_shlibpath_var=no
   9988       case $host_os in
   9989       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9990       *)
   9991 	# The compiler driver will combine and reorder linker options,
   9992 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9993 	# but is careful enough not to reorder.
   9994 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9995 	if test yes = "$GCC"; then
   9996 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9997 	else
   9998 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9999 	fi
   10000 	;;
   10001       esac
   10002       link_all_deplibs=yes
   10003       ;;
   10004 
   10005     sunos4*)
   10006       if test sequent = "$host_vendor"; then
   10007 	# Use $CC to link under sequent, because it throws in some extra .o
   10008 	# files that make .init and .fini sections work.
   10009 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   10010       else
   10011 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   10012       fi
   10013       hardcode_libdir_flag_spec='-L$libdir'
   10014       hardcode_direct=yes
   10015       hardcode_minus_L=yes
   10016       hardcode_shlibpath_var=no
   10017       ;;
   10018 
   10019     sysv4)
   10020       case $host_vendor in
   10021 	sni)
   10022 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10023 	  hardcode_direct=yes # is this really true???
   10024 	;;
   10025 	siemens)
   10026 	  ## LD is ld it makes a PLAMLIB
   10027 	  ## CC just makes a GrossModule.
   10028 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   10029 	  reload_cmds='$CC -r -o $output$reload_objs'
   10030 	  hardcode_direct=no
   10031         ;;
   10032 	motorola)
   10033 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10034 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   10035 	;;
   10036       esac
   10037       runpath_var='LD_RUN_PATH'
   10038       hardcode_shlibpath_var=no
   10039       ;;
   10040 
   10041     sysv4.3*)
   10042       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10043       hardcode_shlibpath_var=no
   10044       export_dynamic_flag_spec='-Bexport'
   10045       ;;
   10046 
   10047     sysv4*MP*)
   10048       if test -d /usr/nec; then
   10049 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10050 	hardcode_shlibpath_var=no
   10051 	runpath_var=LD_RUN_PATH
   10052 	hardcode_runpath_var=yes
   10053 	ld_shlibs=yes
   10054       fi
   10055       ;;
   10056 
   10057     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10058       no_undefined_flag='$wl-z,text'
   10059       archive_cmds_need_lc=no
   10060       hardcode_shlibpath_var=no
   10061       runpath_var='LD_RUN_PATH'
   10062 
   10063       if test yes = "$GCC"; then
   10064 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10065 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10066       else
   10067 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10068 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10069       fi
   10070       ;;
   10071 
   10072     sysv5* | sco3.2v5* | sco5v6*)
   10073       # Note: We CANNOT use -z defs as we might desire, because we do not
   10074       # link with -lc, and that would cause any symbols used from libc to
   10075       # always be unresolved, which means just about no library would
   10076       # ever link correctly.  If we're not using GNU ld we use -z text
   10077       # though, which does catch some bad symbols but isn't as heavy-handed
   10078       # as -z defs.
   10079       no_undefined_flag='$wl-z,text'
   10080       allow_undefined_flag='$wl-z,nodefs'
   10081       archive_cmds_need_lc=no
   10082       hardcode_shlibpath_var=no
   10083       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10084       hardcode_libdir_separator=':'
   10085       link_all_deplibs=yes
   10086       export_dynamic_flag_spec='$wl-Bexport'
   10087       runpath_var='LD_RUN_PATH'
   10088 
   10089       if test yes = "$GCC"; then
   10090 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10091 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10092       else
   10093 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10094 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10095       fi
   10096       ;;
   10097 
   10098     uts4*)
   10099       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10100       hardcode_libdir_flag_spec='-L$libdir'
   10101       hardcode_shlibpath_var=no
   10102       ;;
   10103 
   10104     *)
   10105       ld_shlibs=no
   10106       ;;
   10107     esac
   10108 
   10109     if test sni = "$host_vendor"; then
   10110       case $host in
   10111       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10112 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10113 	;;
   10114       esac
   10115     fi
   10116   fi
   10117 
   10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10119 $as_echo "$ld_shlibs" >&6; }
   10120 test no = "$ld_shlibs" && can_build_shared=no
   10121 
   10122 with_gnu_ld=$with_gnu_ld
   10123 
   10124 
   10125 
   10126 
   10127 
   10128 
   10129 
   10130 
   10131 
   10132 
   10133 
   10134 
   10135 
   10136 
   10137 
   10138 #
   10139 # Do we need to explicitly link libc?
   10140 #
   10141 case "x$archive_cmds_need_lc" in
   10142 x|xyes)
   10143   # Assume -lc should be added
   10144   archive_cmds_need_lc=yes
   10145 
   10146   if test yes,yes = "$GCC,$enable_shared"; then
   10147     case $archive_cmds in
   10148     *'~'*)
   10149       # FIXME: we may have to deal with multi-command sequences.
   10150       ;;
   10151     '$CC '*)
   10152       # Test whether the compiler implicitly links with -lc since on some
   10153       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10154       # to ld, don't add -lc before -lgcc.
   10155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10156 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10157 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10158   $as_echo_n "(cached) " >&6
   10159 else
   10160   $RM conftest*
   10161 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10162 
   10163 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10164   (eval $ac_compile) 2>&5
   10165   ac_status=$?
   10166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10167   test $ac_status = 0; } 2>conftest.err; then
   10168 	  soname=conftest
   10169 	  lib=conftest
   10170 	  libobjs=conftest.$ac_objext
   10171 	  deplibs=
   10172 	  wl=$lt_prog_compiler_wl
   10173 	  pic_flag=$lt_prog_compiler_pic
   10174 	  compiler_flags=-v
   10175 	  linker_flags=-v
   10176 	  verstring=
   10177 	  output_objdir=.
   10178 	  libname=conftest
   10179 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10180 	  allow_undefined_flag=
   10181 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10182   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10183   ac_status=$?
   10184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10185   test $ac_status = 0; }
   10186 	  then
   10187 	    lt_cv_archive_cmds_need_lc=no
   10188 	  else
   10189 	    lt_cv_archive_cmds_need_lc=yes
   10190 	  fi
   10191 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10192 	else
   10193 	  cat conftest.err 1>&5
   10194 	fi
   10195 	$RM conftest*
   10196 
   10197 fi
   10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10199 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10200       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10201       ;;
   10202     esac
   10203   fi
   10204   ;;
   10205 esac
   10206 
   10207 
   10208 
   10209 
   10210 
   10211 
   10212 
   10213 
   10214 
   10215 
   10216 
   10217 
   10218 
   10219 
   10220 
   10221 
   10222 
   10223 
   10224 
   10225 
   10226 
   10227 
   10228 
   10229 
   10230 
   10231 
   10232 
   10233 
   10234 
   10235 
   10236 
   10237 
   10238 
   10239 
   10240 
   10241 
   10242 
   10243 
   10244 
   10245 
   10246 
   10247 
   10248 
   10249 
   10250 
   10251 
   10252 
   10253 
   10254 
   10255 
   10256 
   10257 
   10258 
   10259 
   10260 
   10261 
   10262 
   10263 
   10264 
   10265 
   10266 
   10267 
   10268 
   10269 
   10270 
   10271 
   10272 
   10273 
   10274 
   10275 
   10276 
   10277 
   10278 
   10279 
   10280 
   10281 
   10282 
   10283 
   10284 
   10285 
   10286 
   10287 
   10288 
   10289 
   10290 
   10291 
   10292 
   10293 
   10294 
   10295 
   10296 
   10297 
   10298 
   10299 
   10300 
   10301 
   10302 
   10303 
   10304 
   10305 
   10306 
   10307 
   10308 
   10309 
   10310 
   10311 
   10312 
   10313 
   10314 
   10315 
   10316 
   10317 
   10318 
   10319 
   10320 
   10321 
   10322 
   10323 
   10324 
   10325 
   10326 
   10327 
   10328 
   10329 
   10330 
   10331 
   10332 
   10333 
   10334 
   10335 
   10336 
   10337 
   10338 
   10339 
   10340 
   10341 
   10342 
   10343 
   10344 
   10345 
   10346 
   10347 
   10348 
   10349 
   10350 
   10351 
   10352 
   10353 
   10354 
   10355 
   10356 
   10357 
   10358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   10359 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   10360 
   10361 if test yes = "$GCC"; then
   10362   case $host_os in
   10363     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   10364     *) lt_awk_arg='/^libraries:/' ;;
   10365   esac
   10366   case $host_os in
   10367     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   10368     *) lt_sed_strip_eq='s|=/|/|g' ;;
   10369   esac
   10370   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   10371   case $lt_search_path_spec in
   10372   *\;*)
   10373     # if the path contains ";" then we assume it to be the separator
   10374     # otherwise default to the standard path separator (i.e. ":") - it is
   10375     # assumed that no part of a normal pathname contains ";" but that should
   10376     # okay in the real world where ";" in dirpaths is itself problematic.
   10377     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   10378     ;;
   10379   *)
   10380     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   10381     ;;
   10382   esac
   10383   # Ok, now we have the path, separated by spaces, we can step through it
   10384   # and add multilib dir if necessary...
   10385   lt_tmp_lt_search_path_spec=
   10386   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   10387   # ...but if some path component already ends with the multilib dir we assume
   10388   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   10389   case "$lt_multi_os_dir; $lt_search_path_spec " in
   10390   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   10391     lt_multi_os_dir=
   10392     ;;
   10393   esac
   10394   for lt_sys_path in $lt_search_path_spec; do
   10395     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   10396       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   10397     elif test -n "$lt_multi_os_dir"; then
   10398       test -d "$lt_sys_path" && \
   10399 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   10400     fi
   10401   done
   10402   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10403 BEGIN {RS = " "; FS = "/|\n";} {
   10404   lt_foo = "";
   10405   lt_count = 0;
   10406   for (lt_i = NF; lt_i > 0; lt_i--) {
   10407     if ($lt_i != "" && $lt_i != ".") {
   10408       if ($lt_i == "..") {
   10409         lt_count++;
   10410       } else {
   10411         if (lt_count == 0) {
   10412           lt_foo = "/" $lt_i lt_foo;
   10413         } else {
   10414           lt_count--;
   10415         }
   10416       }
   10417     }
   10418   }
   10419   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10420   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10421 }'`
   10422   # AWK program above erroneously prepends '/' to C:/dos/paths
   10423   # for these hosts.
   10424   case $host_os in
   10425     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10426       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10427   esac
   10428   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10429 else
   10430   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10431 fi
   10432 library_names_spec=
   10433 libname_spec='lib$name'
   10434 soname_spec=
   10435 shrext_cmds=.so
   10436 postinstall_cmds=
   10437 postuninstall_cmds=
   10438 finish_cmds=
   10439 finish_eval=
   10440 shlibpath_var=
   10441 shlibpath_overrides_runpath=unknown
   10442 version_type=none
   10443 dynamic_linker="$host_os ld.so"
   10444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10445 need_lib_prefix=unknown
   10446 hardcode_into_libs=no
   10447 
   10448 # when you set need_version to no, make sure it does not cause -set_version
   10449 # flags to be left without arguments
   10450 need_version=unknown
   10451 
   10452 
   10453 
   10454 case $host_os in
   10455 aix3*)
   10456   version_type=linux # correct to gnu/linux during the next big refactor
   10457   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10458   shlibpath_var=LIBPATH
   10459 
   10460   # AIX 3 has no versioning support, so we append a major version to the name.
   10461   soname_spec='$libname$release$shared_ext$major'
   10462   ;;
   10463 
   10464 aix[4-9]*)
   10465   version_type=linux # correct to gnu/linux during the next big refactor
   10466   need_lib_prefix=no
   10467   need_version=no
   10468   hardcode_into_libs=yes
   10469   if test ia64 = "$host_cpu"; then
   10470     # AIX 5 supports IA64
   10471     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10472     shlibpath_var=LD_LIBRARY_PATH
   10473   else
   10474     # With GCC up to 2.95.x, collect2 would create an import file
   10475     # for dependence libraries.  The import file would start with
   10476     # the line '#! .'.  This would cause the generated library to
   10477     # depend on '.', always an invalid library.  This was fixed in
   10478     # development snapshots of GCC prior to 3.0.
   10479     case $host_os in
   10480       aix4 | aix4.[01] | aix4.[01].*)
   10481       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10482 	   echo ' yes '
   10483 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10484 	:
   10485       else
   10486 	can_build_shared=no
   10487       fi
   10488       ;;
   10489     esac
   10490     # Using Import Files as archive members, it is possible to support
   10491     # filename-based versioning of shared library archives on AIX. While
   10492     # this would work for both with and without runtime linking, it will
   10493     # prevent static linking of such archives. So we do filename-based
   10494     # shared library versioning with .so extension only, which is used
   10495     # when both runtime linking and shared linking is enabled.
   10496     # Unfortunately, runtime linking may impact performance, so we do
   10497     # not want this to be the default eventually. Also, we use the
   10498     # versioned .so libs for executables only if there is the -brtl
   10499     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10500     # To allow for filename-based versioning support, we need to create
   10501     # libNAME.so.V as an archive file, containing:
   10502     # *) an Import File, referring to the versioned filename of the
   10503     #    archive as well as the shared archive member, telling the
   10504     #    bitwidth (32 or 64) of that shared object, and providing the
   10505     #    list of exported symbols of that shared object, eventually
   10506     #    decorated with the 'weak' keyword
   10507     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10508     #    it being seen by the linker.
   10509     # At run time we better use the real file rather than another symlink,
   10510     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10511 
   10512     case $with_aix_soname,$aix_use_runtimelinking in
   10513     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10514     # soname into executable. Probably we can add versioning support to
   10515     # collect2, so additional links can be useful in future.
   10516     aix,yes) # traditional libtool
   10517       dynamic_linker='AIX unversionable lib.so'
   10518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10519       # instead of lib<name>.a to let people know that these are not
   10520       # typical AIX shared libraries.
   10521       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10522       ;;
   10523     aix,no) # traditional AIX only
   10524       dynamic_linker='AIX lib.a(lib.so.V)'
   10525       # We preserve .a as extension for shared libraries through AIX4.2
   10526       # and later when we are not doing run time linking.
   10527       library_names_spec='$libname$release.a $libname.a'
   10528       soname_spec='$libname$release$shared_ext$major'
   10529       ;;
   10530     svr4,*) # full svr4 only
   10531       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10532       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10533       # We do not specify a path in Import Files, so LIBPATH fires.
   10534       shlibpath_overrides_runpath=yes
   10535       ;;
   10536     *,yes) # both, prefer svr4
   10537       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10538       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10539       # unpreferred sharedlib libNAME.a needs extra handling
   10540       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"'
   10541       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"'
   10542       # We do not specify a path in Import Files, so LIBPATH fires.
   10543       shlibpath_overrides_runpath=yes
   10544       ;;
   10545     *,no) # both, prefer aix
   10546       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10547       library_names_spec='$libname$release.a $libname.a'
   10548       soname_spec='$libname$release$shared_ext$major'
   10549       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10550       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)'
   10551       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"'
   10552       ;;
   10553     esac
   10554     shlibpath_var=LIBPATH
   10555   fi
   10556   ;;
   10557 
   10558 amigaos*)
   10559   case $host_cpu in
   10560   powerpc)
   10561     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10562     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10563     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10564     ;;
   10565   m68k)
   10566     library_names_spec='$libname.ixlibrary $libname.a'
   10567     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10568     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'
   10569     ;;
   10570   esac
   10571   ;;
   10572 
   10573 beos*)
   10574   library_names_spec='$libname$shared_ext'
   10575   dynamic_linker="$host_os ld.so"
   10576   shlibpath_var=LIBRARY_PATH
   10577   ;;
   10578 
   10579 bsdi[45]*)
   10580   version_type=linux # correct to gnu/linux during the next big refactor
   10581   need_version=no
   10582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10583   soname_spec='$libname$release$shared_ext$major'
   10584   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10585   shlibpath_var=LD_LIBRARY_PATH
   10586   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10587   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10588   # the default ld.so.conf also contains /usr/contrib/lib and
   10589   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10590   # libtool to hard-code these into programs
   10591   ;;
   10592 
   10593 cygwin* | mingw* | pw32* | cegcc*)
   10594   version_type=windows
   10595   shrext_cmds=.dll
   10596   need_version=no
   10597   need_lib_prefix=no
   10598 
   10599   case $GCC,$cc_basename in
   10600   yes,*)
   10601     # gcc
   10602     library_names_spec='$libname.dll.a'
   10603     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10604     postinstall_cmds='base_file=`basename \$file`~
   10605       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10606       dldir=$destdir/`dirname \$dlpath`~
   10607       test -d \$dldir || mkdir -p \$dldir~
   10608       $install_prog $dir/$dlname \$dldir/$dlname~
   10609       chmod a+x \$dldir/$dlname~
   10610       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10611         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10612       fi'
   10613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10614       dlpath=$dir/\$dldll~
   10615        $RM \$dlpath'
   10616     shlibpath_overrides_runpath=yes
   10617 
   10618     case $host_os in
   10619     cygwin*)
   10620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10621       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10622 
   10623       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10624       ;;
   10625     mingw* | cegcc*)
   10626       # MinGW DLLs use traditional 'lib' prefix
   10627       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10628       ;;
   10629     pw32*)
   10630       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10631       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10632       ;;
   10633     esac
   10634     dynamic_linker='Win32 ld.exe'
   10635     ;;
   10636 
   10637   *,cl*)
   10638     # Native MSVC
   10639     libname_spec='$name'
   10640     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10641     library_names_spec='$libname.dll.lib'
   10642 
   10643     case $build_os in
   10644     mingw*)
   10645       sys_lib_search_path_spec=
   10646       lt_save_ifs=$IFS
   10647       IFS=';'
   10648       for lt_path in $LIB
   10649       do
   10650         IFS=$lt_save_ifs
   10651         # Let DOS variable expansion print the short 8.3 style file name.
   10652         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10653         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10654       done
   10655       IFS=$lt_save_ifs
   10656       # Convert to MSYS style.
   10657       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10658       ;;
   10659     cygwin*)
   10660       # Convert to unix form, then to dos form, then back to unix form
   10661       # but this time dos style (no spaces!) so that the unix form looks
   10662       # like /cygdrive/c/PROGRA~1:/cygdr...
   10663       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10664       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10665       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10666       ;;
   10667     *)
   10668       sys_lib_search_path_spec=$LIB
   10669       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10670         # It is most probably a Windows format PATH.
   10671         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10672       else
   10673         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10674       fi
   10675       # FIXME: find the short name or the path components, as spaces are
   10676       # common. (e.g. "Program Files" -> "PROGRA~1")
   10677       ;;
   10678     esac
   10679 
   10680     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10681     postinstall_cmds='base_file=`basename \$file`~
   10682       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10683       dldir=$destdir/`dirname \$dlpath`~
   10684       test -d \$dldir || mkdir -p \$dldir~
   10685       $install_prog $dir/$dlname \$dldir/$dlname'
   10686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10687       dlpath=$dir/\$dldll~
   10688        $RM \$dlpath'
   10689     shlibpath_overrides_runpath=yes
   10690     dynamic_linker='Win32 link.exe'
   10691     ;;
   10692 
   10693   *)
   10694     # Assume MSVC wrapper
   10695     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10696     dynamic_linker='Win32 ld.exe'
   10697     ;;
   10698   esac
   10699   # FIXME: first we should search . and the directory the executable is in
   10700   shlibpath_var=PATH
   10701   ;;
   10702 
   10703 darwin* | rhapsody*)
   10704   dynamic_linker="$host_os dyld"
   10705   version_type=darwin
   10706   need_lib_prefix=no
   10707   need_version=no
   10708   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10709   soname_spec='$libname$release$major$shared_ext'
   10710   shlibpath_overrides_runpath=yes
   10711   shlibpath_var=DYLD_LIBRARY_PATH
   10712   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10713 
   10714   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10715   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10716   ;;
   10717 
   10718 dgux*)
   10719   version_type=linux # correct to gnu/linux during the next big refactor
   10720   need_lib_prefix=no
   10721   need_version=no
   10722   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10723   soname_spec='$libname$release$shared_ext$major'
   10724   shlibpath_var=LD_LIBRARY_PATH
   10725   ;;
   10726 
   10727 freebsd* | dragonfly*)
   10728   # DragonFly does not have aout.  When/if they implement a new
   10729   # versioning mechanism, adjust this.
   10730   if test -x /usr/bin/objformat; then
   10731     objformat=`/usr/bin/objformat`
   10732   else
   10733     case $host_os in
   10734     freebsd[23].*) objformat=aout ;;
   10735     *) objformat=elf ;;
   10736     esac
   10737   fi
   10738   version_type=freebsd-$objformat
   10739   case $version_type in
   10740     freebsd-elf*)
   10741       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10742       soname_spec='$libname$release$shared_ext$major'
   10743       need_version=no
   10744       need_lib_prefix=no
   10745       ;;
   10746     freebsd-*)
   10747       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10748       need_version=yes
   10749       ;;
   10750   esac
   10751   shlibpath_var=LD_LIBRARY_PATH
   10752   case $host_os in
   10753   freebsd2.*)
   10754     shlibpath_overrides_runpath=yes
   10755     ;;
   10756   freebsd3.[01]* | freebsdelf3.[01]*)
   10757     shlibpath_overrides_runpath=yes
   10758     hardcode_into_libs=yes
   10759     ;;
   10760   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10761   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10762     shlibpath_overrides_runpath=no
   10763     hardcode_into_libs=yes
   10764     ;;
   10765   *) # from 4.6 on, and DragonFly
   10766     shlibpath_overrides_runpath=yes
   10767     hardcode_into_libs=yes
   10768     ;;
   10769   esac
   10770   ;;
   10771 
   10772 haiku*)
   10773   version_type=linux # correct to gnu/linux during the next big refactor
   10774   need_lib_prefix=no
   10775   need_version=no
   10776   dynamic_linker="$host_os runtime_loader"
   10777   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10778   soname_spec='$libname$release$shared_ext$major'
   10779   shlibpath_var=LIBRARY_PATH
   10780   shlibpath_overrides_runpath=no
   10781   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10782   hardcode_into_libs=yes
   10783   ;;
   10784 
   10785 hpux9* | hpux10* | hpux11*)
   10786   # Give a soname corresponding to the major version so that dld.sl refuses to
   10787   # link against other versions.
   10788   version_type=sunos
   10789   need_lib_prefix=no
   10790   need_version=no
   10791   case $host_cpu in
   10792   ia64*)
   10793     shrext_cmds='.so'
   10794     hardcode_into_libs=yes
   10795     dynamic_linker="$host_os dld.so"
   10796     shlibpath_var=LD_LIBRARY_PATH
   10797     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10798     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10799     soname_spec='$libname$release$shared_ext$major'
   10800     if test 32 = "$HPUX_IA64_MODE"; then
   10801       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10802       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10803     else
   10804       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10805       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10806     fi
   10807     ;;
   10808   hppa*64*)
   10809     shrext_cmds='.sl'
   10810     hardcode_into_libs=yes
   10811     dynamic_linker="$host_os dld.sl"
   10812     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10813     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10814     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10815     soname_spec='$libname$release$shared_ext$major'
   10816     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10817     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10818     ;;
   10819   *)
   10820     shrext_cmds='.sl'
   10821     dynamic_linker="$host_os dld.sl"
   10822     shlibpath_var=SHLIB_PATH
   10823     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10824     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10825     soname_spec='$libname$release$shared_ext$major'
   10826     ;;
   10827   esac
   10828   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10829   postinstall_cmds='chmod 555 $lib'
   10830   # or fails outright, so override atomically:
   10831   install_override_mode=555
   10832   ;;
   10833 
   10834 interix[3-9]*)
   10835   version_type=linux # correct to gnu/linux during the next big refactor
   10836   need_lib_prefix=no
   10837   need_version=no
   10838   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10839   soname_spec='$libname$release$shared_ext$major'
   10840   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10841   shlibpath_var=LD_LIBRARY_PATH
   10842   shlibpath_overrides_runpath=no
   10843   hardcode_into_libs=yes
   10844   ;;
   10845 
   10846 irix5* | irix6* | nonstopux*)
   10847   case $host_os in
   10848     nonstopux*) version_type=nonstopux ;;
   10849     *)
   10850 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10851 		version_type=linux # correct to gnu/linux during the next big refactor
   10852 	else
   10853 		version_type=irix
   10854 	fi ;;
   10855   esac
   10856   need_lib_prefix=no
   10857   need_version=no
   10858   soname_spec='$libname$release$shared_ext$major'
   10859   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10860   case $host_os in
   10861   irix5* | nonstopux*)
   10862     libsuff= shlibsuff=
   10863     ;;
   10864   *)
   10865     case $LD in # libtool.m4 will add one of these switches to LD
   10866     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10867       libsuff= shlibsuff= libmagic=32-bit;;
   10868     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10869       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10870     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10871       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10872     *) libsuff= shlibsuff= libmagic=never-match;;
   10873     esac
   10874     ;;
   10875   esac
   10876   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10877   shlibpath_overrides_runpath=no
   10878   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10879   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10880   hardcode_into_libs=yes
   10881   ;;
   10882 
   10883 # No shared lib support for Linux oldld, aout, or coff.
   10884 linux*oldld* | linux*aout* | linux*coff*)
   10885   dynamic_linker=no
   10886   ;;
   10887 
   10888 linux*android*)
   10889   version_type=none # Android doesn't support versioned libraries.
   10890   need_lib_prefix=no
   10891   need_version=no
   10892   library_names_spec='$libname$release$shared_ext'
   10893   soname_spec='$libname$release$shared_ext'
   10894   finish_cmds=
   10895   shlibpath_var=LD_LIBRARY_PATH
   10896   shlibpath_overrides_runpath=yes
   10897 
   10898   # This implies no fast_install, which is unacceptable.
   10899   # Some rework will be needed to allow for fast_install
   10900   # before this can be enabled.
   10901   hardcode_into_libs=yes
   10902 
   10903   dynamic_linker='Android linker'
   10904   # Don't embed -rpath directories since the linker doesn't support them.
   10905   hardcode_libdir_flag_spec='-L$libdir'
   10906   ;;
   10907 
   10908 # This must be glibc/ELF.
   10909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10910   version_type=linux # correct to gnu/linux during the next big refactor
   10911   need_lib_prefix=no
   10912   need_version=no
   10913   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10914   soname_spec='$libname$release$shared_ext$major'
   10915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10916   shlibpath_var=LD_LIBRARY_PATH
   10917   shlibpath_overrides_runpath=no
   10918 
   10919   # Some binutils ld are patched to set DT_RUNPATH
   10920   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10921   $as_echo_n "(cached) " >&6
   10922 else
   10923   lt_cv_shlibpath_overrides_runpath=no
   10924     save_LDFLAGS=$LDFLAGS
   10925     save_libdir=$libdir
   10926     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10927 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10929 /* end confdefs.h.  */
   10930 
   10931 int
   10932 main ()
   10933 {
   10934 
   10935   ;
   10936   return 0;
   10937 }
   10938 _ACEOF
   10939 if ac_fn_c_try_link "$LINENO"; then :
   10940   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10941   lt_cv_shlibpath_overrides_runpath=yes
   10942 fi
   10943 fi
   10944 rm -f core conftest.err conftest.$ac_objext \
   10945     conftest$ac_exeext conftest.$ac_ext
   10946     LDFLAGS=$save_LDFLAGS
   10947     libdir=$save_libdir
   10948 
   10949 fi
   10950 
   10951   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10952 
   10953   # This implies no fast_install, which is unacceptable.
   10954   # Some rework will be needed to allow for fast_install
   10955   # before this can be enabled.
   10956   hardcode_into_libs=yes
   10957 
   10958   # Ideally, we could use ldconfig to report *all* directores which are
   10959   # searched for libraries, however this is still not possible.  Aside from not
   10960   # being certain /sbin/ldconfig is available, command
   10961   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10962   # even though it is searched at run-time.  Try to do the best guess by
   10963   # appending ld.so.conf contents (and includes) to the search path.
   10964   if test -f /etc/ld.so.conf; then
   10965     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' ' '`
   10966     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10967   fi
   10968 
   10969   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10970   # powerpc, because MkLinux only supported shared libraries with the
   10971   # GNU dynamic linker.  Since this was broken with cross compilers,
   10972   # most powerpc-linux boxes support dynamic linking these days and
   10973   # people can always --disable-shared, the test was removed, and we
   10974   # assume the GNU/Linux dynamic linker is in use.
   10975   dynamic_linker='GNU/Linux ld.so'
   10976   ;;
   10977 
   10978 netbsd*)
   10979   version_type=sunos
   10980   need_lib_prefix=no
   10981   need_version=no
   10982   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10983     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10984     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10985     dynamic_linker='NetBSD (a.out) ld.so'
   10986   else
   10987     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10988     soname_spec='$libname$release$shared_ext$major'
   10989     dynamic_linker='NetBSD ld.elf_so'
   10990   fi
   10991   shlibpath_var=LD_LIBRARY_PATH
   10992   shlibpath_overrides_runpath=yes
   10993   hardcode_into_libs=yes
   10994   ;;
   10995 
   10996 newsos6)
   10997   version_type=linux # correct to gnu/linux during the next big refactor
   10998   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10999   shlibpath_var=LD_LIBRARY_PATH
   11000   shlibpath_overrides_runpath=yes
   11001   ;;
   11002 
   11003 *nto* | *qnx*)
   11004   version_type=qnx
   11005   need_lib_prefix=no
   11006   need_version=no
   11007   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11008   soname_spec='$libname$release$shared_ext$major'
   11009   shlibpath_var=LD_LIBRARY_PATH
   11010   shlibpath_overrides_runpath=no
   11011   hardcode_into_libs=yes
   11012   dynamic_linker='ldqnx.so'
   11013   ;;
   11014 
   11015 openbsd* | bitrig*)
   11016   version_type=sunos
   11017   sys_lib_dlsearch_path_spec=/usr/lib
   11018   need_lib_prefix=no
   11019   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   11020     need_version=no
   11021   else
   11022     need_version=yes
   11023   fi
   11024   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11026   shlibpath_var=LD_LIBRARY_PATH
   11027   shlibpath_overrides_runpath=yes
   11028   ;;
   11029 
   11030 os2*)
   11031   libname_spec='$name'
   11032   version_type=windows
   11033   shrext_cmds=.dll
   11034   need_version=no
   11035   need_lib_prefix=no
   11036   # OS/2 can only load a DLL with a base name of 8 characters or less.
   11037   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   11038     v=$($ECHO $release$versuffix | tr -d .-);
   11039     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   11040     $ECHO $n$v`$shared_ext'
   11041   library_names_spec='${libname}_dll.$libext'
   11042   dynamic_linker='OS/2 ld.exe'
   11043   shlibpath_var=BEGINLIBPATH
   11044   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11045   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11046   postinstall_cmds='base_file=`basename \$file`~
   11047     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11048     dldir=$destdir/`dirname \$dlpath`~
   11049     test -d \$dldir || mkdir -p \$dldir~
   11050     $install_prog $dir/$dlname \$dldir/$dlname~
   11051     chmod a+x \$dldir/$dlname~
   11052     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11053       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11054     fi'
   11055   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11056     dlpath=$dir/\$dldll~
   11057     $RM \$dlpath'
   11058   ;;
   11059 
   11060 osf3* | osf4* | osf5*)
   11061   version_type=osf
   11062   need_lib_prefix=no
   11063   need_version=no
   11064   soname_spec='$libname$release$shared_ext$major'
   11065   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11066   shlibpath_var=LD_LIBRARY_PATH
   11067   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11068   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11069   ;;
   11070 
   11071 rdos*)
   11072   dynamic_linker=no
   11073   ;;
   11074 
   11075 solaris*)
   11076   version_type=linux # correct to gnu/linux during the next big refactor
   11077   need_lib_prefix=no
   11078   need_version=no
   11079   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11080   soname_spec='$libname$release$shared_ext$major'
   11081   shlibpath_var=LD_LIBRARY_PATH
   11082   shlibpath_overrides_runpath=yes
   11083   hardcode_into_libs=yes
   11084   # ldd complains unless libraries are executable
   11085   postinstall_cmds='chmod +x $lib'
   11086   ;;
   11087 
   11088 sunos4*)
   11089   version_type=sunos
   11090   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11091   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11092   shlibpath_var=LD_LIBRARY_PATH
   11093   shlibpath_overrides_runpath=yes
   11094   if test yes = "$with_gnu_ld"; then
   11095     need_lib_prefix=no
   11096   fi
   11097   need_version=yes
   11098   ;;
   11099 
   11100 sysv4 | sysv4.3*)
   11101   version_type=linux # correct to gnu/linux during the next big refactor
   11102   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11103   soname_spec='$libname$release$shared_ext$major'
   11104   shlibpath_var=LD_LIBRARY_PATH
   11105   case $host_vendor in
   11106     sni)
   11107       shlibpath_overrides_runpath=no
   11108       need_lib_prefix=no
   11109       runpath_var=LD_RUN_PATH
   11110       ;;
   11111     siemens)
   11112       need_lib_prefix=no
   11113       ;;
   11114     motorola)
   11115       need_lib_prefix=no
   11116       need_version=no
   11117       shlibpath_overrides_runpath=no
   11118       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11119       ;;
   11120   esac
   11121   ;;
   11122 
   11123 sysv4*MP*)
   11124   if test -d /usr/nec; then
   11125     version_type=linux # correct to gnu/linux during the next big refactor
   11126     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11127     soname_spec='$libname$shared_ext.$major'
   11128     shlibpath_var=LD_LIBRARY_PATH
   11129   fi
   11130   ;;
   11131 
   11132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11133   version_type=sco
   11134   need_lib_prefix=no
   11135   need_version=no
   11136   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11137   soname_spec='$libname$release$shared_ext$major'
   11138   shlibpath_var=LD_LIBRARY_PATH
   11139   shlibpath_overrides_runpath=yes
   11140   hardcode_into_libs=yes
   11141   if test yes = "$with_gnu_ld"; then
   11142     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11143   else
   11144     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11145     case $host_os in
   11146       sco3.2v5*)
   11147         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11148 	;;
   11149     esac
   11150   fi
   11151   sys_lib_dlsearch_path_spec='/usr/lib'
   11152   ;;
   11153 
   11154 tpf*)
   11155   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11156   version_type=linux # correct to gnu/linux during the next big refactor
   11157   need_lib_prefix=no
   11158   need_version=no
   11159   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11160   shlibpath_var=LD_LIBRARY_PATH
   11161   shlibpath_overrides_runpath=no
   11162   hardcode_into_libs=yes
   11163   ;;
   11164 
   11165 uts4*)
   11166   version_type=linux # correct to gnu/linux during the next big refactor
   11167   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11168   soname_spec='$libname$release$shared_ext$major'
   11169   shlibpath_var=LD_LIBRARY_PATH
   11170   ;;
   11171 
   11172 *)
   11173   dynamic_linker=no
   11174   ;;
   11175 esac
   11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11177 $as_echo "$dynamic_linker" >&6; }
   11178 test no = "$dynamic_linker" && can_build_shared=no
   11179 
   11180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11181 if test yes = "$GCC"; then
   11182   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11183 fi
   11184 
   11185 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11186   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11187 fi
   11188 
   11189 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11190   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   11191 fi
   11192 
   11193 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   11194 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   11195 
   11196 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   11197 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   11198 
   11199 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   11200 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   11201 
   11202 
   11203 
   11204 
   11205 
   11206 
   11207 
   11208 
   11209 
   11210 
   11211 
   11212 
   11213 
   11214 
   11215 
   11216 
   11217 
   11218 
   11219 
   11220 
   11221 
   11222 
   11223 
   11224 
   11225 
   11226 
   11227 
   11228 
   11229 
   11230 
   11231 
   11232 
   11233 
   11234 
   11235 
   11236 
   11237 
   11238 
   11239 
   11240 
   11241 
   11242 
   11243 
   11244 
   11245 
   11246 
   11247 
   11248 
   11249 
   11250 
   11251 
   11252 
   11253 
   11254 
   11255 
   11256 
   11257 
   11258 
   11259 
   11260 
   11261 
   11262 
   11263 
   11264 
   11265 
   11266 
   11267 
   11268 
   11269 
   11270 
   11271 
   11272 
   11273 
   11274 
   11275 
   11276 
   11277 
   11278 
   11279 
   11280 
   11281 
   11282 
   11283 
   11284 
   11285 
   11286 
   11287 
   11288 
   11289 
   11290 
   11291 
   11292 
   11293 
   11294 
   11295 
   11296 
   11297 
   11298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   11299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   11300 hardcode_action=
   11301 if test -n "$hardcode_libdir_flag_spec" ||
   11302    test -n "$runpath_var" ||
   11303    test yes = "$hardcode_automatic"; then
   11304 
   11305   # We can hardcode non-existent directories.
   11306   if test no != "$hardcode_direct" &&
   11307      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   11308      # have to relink, otherwise we might link with an installed library
   11309      # when we should be linking with a yet-to-be-installed one
   11310      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   11311      test no != "$hardcode_minus_L"; then
   11312     # Linking always hardcodes the temporary library directory.
   11313     hardcode_action=relink
   11314   else
   11315     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   11316     hardcode_action=immediate
   11317   fi
   11318 else
   11319   # We cannot hardcode anything, or else we can only hardcode existing
   11320   # directories.
   11321   hardcode_action=unsupported
   11322 fi
   11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   11324 $as_echo "$hardcode_action" >&6; }
   11325 
   11326 if test relink = "$hardcode_action" ||
   11327    test yes = "$inherit_rpath"; then
   11328   # Fast installation is not supported
   11329   enable_fast_install=no
   11330 elif test yes = "$shlibpath_overrides_runpath" ||
   11331      test no = "$enable_shared"; then
   11332   # Fast installation is not necessary
   11333   enable_fast_install=needless
   11334 fi
   11335 
   11336 
   11337 
   11338 
   11339 
   11340 
   11341   if test yes != "$enable_dlopen"; then
   11342   enable_dlopen=unknown
   11343   enable_dlopen_self=unknown
   11344   enable_dlopen_self_static=unknown
   11345 else
   11346   lt_cv_dlopen=no
   11347   lt_cv_dlopen_libs=
   11348 
   11349   case $host_os in
   11350   beos*)
   11351     lt_cv_dlopen=load_add_on
   11352     lt_cv_dlopen_libs=
   11353     lt_cv_dlopen_self=yes
   11354     ;;
   11355 
   11356   mingw* | pw32* | cegcc*)
   11357     lt_cv_dlopen=LoadLibrary
   11358     lt_cv_dlopen_libs=
   11359     ;;
   11360 
   11361   cygwin*)
   11362     lt_cv_dlopen=dlopen
   11363     lt_cv_dlopen_libs=
   11364     ;;
   11365 
   11366   darwin*)
   11367     # if libdl is installed we need to link against it
   11368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11370 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11371   $as_echo_n "(cached) " >&6
   11372 else
   11373   ac_check_lib_save_LIBS=$LIBS
   11374 LIBS="-ldl  $LIBS"
   11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11376 /* end confdefs.h.  */
   11377 
   11378 /* Override any GCC internal prototype to avoid an error.
   11379    Use char because int might match the return type of a GCC
   11380    builtin and then its argument prototype would still apply.  */
   11381 #ifdef __cplusplus
   11382 extern "C"
   11383 #endif
   11384 char dlopen ();
   11385 int
   11386 main ()
   11387 {
   11388 return dlopen ();
   11389   ;
   11390   return 0;
   11391 }
   11392 _ACEOF
   11393 if ac_fn_c_try_link "$LINENO"; then :
   11394   ac_cv_lib_dl_dlopen=yes
   11395 else
   11396   ac_cv_lib_dl_dlopen=no
   11397 fi
   11398 rm -f core conftest.err conftest.$ac_objext \
   11399     conftest$ac_exeext conftest.$ac_ext
   11400 LIBS=$ac_check_lib_save_LIBS
   11401 fi
   11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11404 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11405   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11406 else
   11407 
   11408     lt_cv_dlopen=dyld
   11409     lt_cv_dlopen_libs=
   11410     lt_cv_dlopen_self=yes
   11411 
   11412 fi
   11413 
   11414     ;;
   11415 
   11416   tpf*)
   11417     # Don't try to run any link tests for TPF.  We know it's impossible
   11418     # because TPF is a cross-compiler, and we know how we open DSOs.
   11419     lt_cv_dlopen=dlopen
   11420     lt_cv_dlopen_libs=
   11421     lt_cv_dlopen_self=no
   11422     ;;
   11423 
   11424   *)
   11425     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11426 if test "x$ac_cv_func_shl_load" = xyes; then :
   11427   lt_cv_dlopen=shl_load
   11428 else
   11429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11430 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11431 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11432   $as_echo_n "(cached) " >&6
   11433 else
   11434   ac_check_lib_save_LIBS=$LIBS
   11435 LIBS="-ldld  $LIBS"
   11436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11437 /* end confdefs.h.  */
   11438 
   11439 /* Override any GCC internal prototype to avoid an error.
   11440    Use char because int might match the return type of a GCC
   11441    builtin and then its argument prototype would still apply.  */
   11442 #ifdef __cplusplus
   11443 extern "C"
   11444 #endif
   11445 char shl_load ();
   11446 int
   11447 main ()
   11448 {
   11449 return shl_load ();
   11450   ;
   11451   return 0;
   11452 }
   11453 _ACEOF
   11454 if ac_fn_c_try_link "$LINENO"; then :
   11455   ac_cv_lib_dld_shl_load=yes
   11456 else
   11457   ac_cv_lib_dld_shl_load=no
   11458 fi
   11459 rm -f core conftest.err conftest.$ac_objext \
   11460     conftest$ac_exeext conftest.$ac_ext
   11461 LIBS=$ac_check_lib_save_LIBS
   11462 fi
   11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11464 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11465 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11466   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11467 else
   11468   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11469 if test "x$ac_cv_func_dlopen" = xyes; then :
   11470   lt_cv_dlopen=dlopen
   11471 else
   11472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11473 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11474 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11475   $as_echo_n "(cached) " >&6
   11476 else
   11477   ac_check_lib_save_LIBS=$LIBS
   11478 LIBS="-ldl  $LIBS"
   11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11480 /* end confdefs.h.  */
   11481 
   11482 /* Override any GCC internal prototype to avoid an error.
   11483    Use char because int might match the return type of a GCC
   11484    builtin and then its argument prototype would still apply.  */
   11485 #ifdef __cplusplus
   11486 extern "C"
   11487 #endif
   11488 char dlopen ();
   11489 int
   11490 main ()
   11491 {
   11492 return dlopen ();
   11493   ;
   11494   return 0;
   11495 }
   11496 _ACEOF
   11497 if ac_fn_c_try_link "$LINENO"; then :
   11498   ac_cv_lib_dl_dlopen=yes
   11499 else
   11500   ac_cv_lib_dl_dlopen=no
   11501 fi
   11502 rm -f core conftest.err conftest.$ac_objext \
   11503     conftest$ac_exeext conftest.$ac_ext
   11504 LIBS=$ac_check_lib_save_LIBS
   11505 fi
   11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11507 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11508 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11509   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11510 else
   11511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11512 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11513 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11514   $as_echo_n "(cached) " >&6
   11515 else
   11516   ac_check_lib_save_LIBS=$LIBS
   11517 LIBS="-lsvld  $LIBS"
   11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11519 /* end confdefs.h.  */
   11520 
   11521 /* Override any GCC internal prototype to avoid an error.
   11522    Use char because int might match the return type of a GCC
   11523    builtin and then its argument prototype would still apply.  */
   11524 #ifdef __cplusplus
   11525 extern "C"
   11526 #endif
   11527 char dlopen ();
   11528 int
   11529 main ()
   11530 {
   11531 return dlopen ();
   11532   ;
   11533   return 0;
   11534 }
   11535 _ACEOF
   11536 if ac_fn_c_try_link "$LINENO"; then :
   11537   ac_cv_lib_svld_dlopen=yes
   11538 else
   11539   ac_cv_lib_svld_dlopen=no
   11540 fi
   11541 rm -f core conftest.err conftest.$ac_objext \
   11542     conftest$ac_exeext conftest.$ac_ext
   11543 LIBS=$ac_check_lib_save_LIBS
   11544 fi
   11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11546 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11547 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11548   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11549 else
   11550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11551 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11552 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11553   $as_echo_n "(cached) " >&6
   11554 else
   11555   ac_check_lib_save_LIBS=$LIBS
   11556 LIBS="-ldld  $LIBS"
   11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11558 /* end confdefs.h.  */
   11559 
   11560 /* Override any GCC internal prototype to avoid an error.
   11561    Use char because int might match the return type of a GCC
   11562    builtin and then its argument prototype would still apply.  */
   11563 #ifdef __cplusplus
   11564 extern "C"
   11565 #endif
   11566 char dld_link ();
   11567 int
   11568 main ()
   11569 {
   11570 return dld_link ();
   11571   ;
   11572   return 0;
   11573 }
   11574 _ACEOF
   11575 if ac_fn_c_try_link "$LINENO"; then :
   11576   ac_cv_lib_dld_dld_link=yes
   11577 else
   11578   ac_cv_lib_dld_dld_link=no
   11579 fi
   11580 rm -f core conftest.err conftest.$ac_objext \
   11581     conftest$ac_exeext conftest.$ac_ext
   11582 LIBS=$ac_check_lib_save_LIBS
   11583 fi
   11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11585 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11586 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11587   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11588 fi
   11589 
   11590 
   11591 fi
   11592 
   11593 
   11594 fi
   11595 
   11596 
   11597 fi
   11598 
   11599 
   11600 fi
   11601 
   11602 
   11603 fi
   11604 
   11605     ;;
   11606   esac
   11607 
   11608   if test no = "$lt_cv_dlopen"; then
   11609     enable_dlopen=no
   11610   else
   11611     enable_dlopen=yes
   11612   fi
   11613 
   11614   case $lt_cv_dlopen in
   11615   dlopen)
   11616     save_CPPFLAGS=$CPPFLAGS
   11617     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11618 
   11619     save_LDFLAGS=$LDFLAGS
   11620     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11621 
   11622     save_LIBS=$LIBS
   11623     LIBS="$lt_cv_dlopen_libs $LIBS"
   11624 
   11625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11626 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11627 if ${lt_cv_dlopen_self+:} false; then :
   11628   $as_echo_n "(cached) " >&6
   11629 else
   11630   	  if test yes = "$cross_compiling"; then :
   11631   lt_cv_dlopen_self=cross
   11632 else
   11633   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11634   lt_status=$lt_dlunknown
   11635   cat > conftest.$ac_ext <<_LT_EOF
   11636 #line $LINENO "configure"
   11637 #include "confdefs.h"
   11638 
   11639 #if HAVE_DLFCN_H
   11640 #include <dlfcn.h>
   11641 #endif
   11642 
   11643 #include <stdio.h>
   11644 
   11645 #ifdef RTLD_GLOBAL
   11646 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11647 #else
   11648 #  ifdef DL_GLOBAL
   11649 #    define LT_DLGLOBAL		DL_GLOBAL
   11650 #  else
   11651 #    define LT_DLGLOBAL		0
   11652 #  endif
   11653 #endif
   11654 
   11655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11656    find out it does not work in some platform. */
   11657 #ifndef LT_DLLAZY_OR_NOW
   11658 #  ifdef RTLD_LAZY
   11659 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11660 #  else
   11661 #    ifdef DL_LAZY
   11662 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11663 #    else
   11664 #      ifdef RTLD_NOW
   11665 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11666 #      else
   11667 #        ifdef DL_NOW
   11668 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11669 #        else
   11670 #          define LT_DLLAZY_OR_NOW	0
   11671 #        endif
   11672 #      endif
   11673 #    endif
   11674 #  endif
   11675 #endif
   11676 
   11677 /* When -fvisibility=hidden is used, assume the code has been annotated
   11678    correspondingly for the symbols needed.  */
   11679 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11680 int fnord () __attribute__((visibility("default")));
   11681 #endif
   11682 
   11683 int fnord () { return 42; }
   11684 int main ()
   11685 {
   11686   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11687   int status = $lt_dlunknown;
   11688 
   11689   if (self)
   11690     {
   11691       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11692       else
   11693         {
   11694 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11695           else puts (dlerror ());
   11696 	}
   11697       /* dlclose (self); */
   11698     }
   11699   else
   11700     puts (dlerror ());
   11701 
   11702   return status;
   11703 }
   11704 _LT_EOF
   11705   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11706   (eval $ac_link) 2>&5
   11707   ac_status=$?
   11708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11709   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11710     (./conftest; exit; ) >&5 2>/dev/null
   11711     lt_status=$?
   11712     case x$lt_status in
   11713       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11714       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11715       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11716     esac
   11717   else :
   11718     # compilation failed
   11719     lt_cv_dlopen_self=no
   11720   fi
   11721 fi
   11722 rm -fr conftest*
   11723 
   11724 
   11725 fi
   11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11727 $as_echo "$lt_cv_dlopen_self" >&6; }
   11728 
   11729     if test yes = "$lt_cv_dlopen_self"; then
   11730       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11731       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11732 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11733 if ${lt_cv_dlopen_self_static+:} false; then :
   11734   $as_echo_n "(cached) " >&6
   11735 else
   11736   	  if test yes = "$cross_compiling"; then :
   11737   lt_cv_dlopen_self_static=cross
   11738 else
   11739   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11740   lt_status=$lt_dlunknown
   11741   cat > conftest.$ac_ext <<_LT_EOF
   11742 #line $LINENO "configure"
   11743 #include "confdefs.h"
   11744 
   11745 #if HAVE_DLFCN_H
   11746 #include <dlfcn.h>
   11747 #endif
   11748 
   11749 #include <stdio.h>
   11750 
   11751 #ifdef RTLD_GLOBAL
   11752 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11753 #else
   11754 #  ifdef DL_GLOBAL
   11755 #    define LT_DLGLOBAL		DL_GLOBAL
   11756 #  else
   11757 #    define LT_DLGLOBAL		0
   11758 #  endif
   11759 #endif
   11760 
   11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11762    find out it does not work in some platform. */
   11763 #ifndef LT_DLLAZY_OR_NOW
   11764 #  ifdef RTLD_LAZY
   11765 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11766 #  else
   11767 #    ifdef DL_LAZY
   11768 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11769 #    else
   11770 #      ifdef RTLD_NOW
   11771 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11772 #      else
   11773 #        ifdef DL_NOW
   11774 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11775 #        else
   11776 #          define LT_DLLAZY_OR_NOW	0
   11777 #        endif
   11778 #      endif
   11779 #    endif
   11780 #  endif
   11781 #endif
   11782 
   11783 /* When -fvisibility=hidden is used, assume the code has been annotated
   11784    correspondingly for the symbols needed.  */
   11785 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11786 int fnord () __attribute__((visibility("default")));
   11787 #endif
   11788 
   11789 int fnord () { return 42; }
   11790 int main ()
   11791 {
   11792   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11793   int status = $lt_dlunknown;
   11794 
   11795   if (self)
   11796     {
   11797       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11798       else
   11799         {
   11800 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11801           else puts (dlerror ());
   11802 	}
   11803       /* dlclose (self); */
   11804     }
   11805   else
   11806     puts (dlerror ());
   11807 
   11808   return status;
   11809 }
   11810 _LT_EOF
   11811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11812   (eval $ac_link) 2>&5
   11813   ac_status=$?
   11814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11815   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11816     (./conftest; exit; ) >&5 2>/dev/null
   11817     lt_status=$?
   11818     case x$lt_status in
   11819       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11820       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11821       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11822     esac
   11823   else :
   11824     # compilation failed
   11825     lt_cv_dlopen_self_static=no
   11826   fi
   11827 fi
   11828 rm -fr conftest*
   11829 
   11830 
   11831 fi
   11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11833 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11834     fi
   11835 
   11836     CPPFLAGS=$save_CPPFLAGS
   11837     LDFLAGS=$save_LDFLAGS
   11838     LIBS=$save_LIBS
   11839     ;;
   11840   esac
   11841 
   11842   case $lt_cv_dlopen_self in
   11843   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11844   *) enable_dlopen_self=unknown ;;
   11845   esac
   11846 
   11847   case $lt_cv_dlopen_self_static in
   11848   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11849   *) enable_dlopen_self_static=unknown ;;
   11850   esac
   11851 fi
   11852 
   11853 
   11854 
   11855 
   11856 
   11857 
   11858 
   11859 
   11860 
   11861 
   11862 
   11863 
   11864 
   11865 
   11866 
   11867 
   11868 
   11869 striplib=
   11870 old_striplib=
   11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11872 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11873 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11874   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11875   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11877 $as_echo "yes" >&6; }
   11878 else
   11879 # FIXME - insert some real tests, host_os isn't really good enough
   11880   case $host_os in
   11881   darwin*)
   11882     if test -n "$STRIP"; then
   11883       striplib="$STRIP -x"
   11884       old_striplib="$STRIP -S"
   11885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11886 $as_echo "yes" >&6; }
   11887     else
   11888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11889 $as_echo "no" >&6; }
   11890     fi
   11891     ;;
   11892   *)
   11893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11894 $as_echo "no" >&6; }
   11895     ;;
   11896   esac
   11897 fi
   11898 
   11899 
   11900 
   11901 
   11902 
   11903 
   11904 
   11905 
   11906 
   11907 
   11908 
   11909 
   11910   # Report what library types will actually be built
   11911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11912 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11914 $as_echo "$can_build_shared" >&6; }
   11915 
   11916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11917 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11918   test no = "$can_build_shared" && enable_shared=no
   11919 
   11920   # On AIX, shared libraries and static libraries use the same namespace, and
   11921   # are all built from PIC.
   11922   case $host_os in
   11923   aix3*)
   11924     test yes = "$enable_shared" && enable_static=no
   11925     if test -n "$RANLIB"; then
   11926       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11927       postinstall_cmds='$RANLIB $lib'
   11928     fi
   11929     ;;
   11930 
   11931   aix[4-9]*)
   11932     if test ia64 != "$host_cpu"; then
   11933       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11934       yes,aix,yes) ;;			# shared object as lib.so file only
   11935       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11936       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11937       esac
   11938     fi
   11939     ;;
   11940   esac
   11941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11942 $as_echo "$enable_shared" >&6; }
   11943 
   11944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11945 $as_echo_n "checking whether to build static libraries... " >&6; }
   11946   # Make sure either enable_shared or enable_static is yes.
   11947   test yes = "$enable_shared" || enable_static=yes
   11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11949 $as_echo "$enable_static" >&6; }
   11950 
   11951 
   11952 
   11953 
   11954 fi
   11955 ac_ext=c
   11956 ac_cpp='$CPP $CPPFLAGS'
   11957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11960 
   11961 CC=$lt_save_CC
   11962 
   11963 
   11964 
   11965 
   11966 
   11967 
   11968 
   11969 
   11970 
   11971 
   11972 
   11973 
   11974 
   11975 
   11976 
   11977         ac_config_commands="$ac_config_commands libtool"
   11978 
   11979 
   11980 
   11981 
   11982 # Only expand once:
   11983 
   11984 
   11985 # Find a good install program.  We prefer a C program (faster),
   11986 # so one script is as good as another.  But avoid the broken or
   11987 # incompatible versions:
   11988 # SysV /etc/install, /usr/sbin/install
   11989 # SunOS /usr/etc/install
   11990 # IRIX /sbin/install
   11991 # AIX /bin/install
   11992 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11996 # OS/2's system install, which has a completely different semantic
   11997 # ./install, which can be erroneously created by make from ./install.sh.
   11998 # Reject install programs that cannot install multiple files.
   11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   12000 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   12001 if test -z "$INSTALL"; then
   12002 if ${ac_cv_path_install+:} false; then :
   12003   $as_echo_n "(cached) " >&6
   12004 else
   12005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12006 for as_dir in $PATH
   12007 do
   12008   IFS=$as_save_IFS
   12009   test -z "$as_dir" && as_dir=.
   12010     # Account for people who put trailing slashes in PATH elements.
   12011 case $as_dir/ in #((
   12012   ./ | .// | /[cC]/* | \
   12013   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   12014   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   12015   /usr/ucb/* ) ;;
   12016   *)
   12017     # OSF1 and SCO ODT 3.0 have their own names for install.
   12018     # Don't use installbsd from OSF since it installs stuff as root
   12019     # by default.
   12020     for ac_prog in ginstall scoinst install; do
   12021       for ac_exec_ext in '' $ac_executable_extensions; do
   12022 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   12023 	  if test $ac_prog = install &&
   12024 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   12025 	    # AIX install.  It has an incompatible calling convention.
   12026 	    :
   12027 	  elif test $ac_prog = install &&
   12028 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   12029 	    # program-specific install script used by HP pwplus--don't use.
   12030 	    :
   12031 	  else
   12032 	    rm -rf conftest.one conftest.two conftest.dir
   12033 	    echo one > conftest.one
   12034 	    echo two > conftest.two
   12035 	    mkdir conftest.dir
   12036 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   12037 	      test -s conftest.one && test -s conftest.two &&
   12038 	      test -s conftest.dir/conftest.one &&
   12039 	      test -s conftest.dir/conftest.two
   12040 	    then
   12041 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   12042 	      break 3
   12043 	    fi
   12044 	  fi
   12045 	fi
   12046       done
   12047     done
   12048     ;;
   12049 esac
   12050 
   12051   done
   12052 IFS=$as_save_IFS
   12053 
   12054 rm -rf conftest.one conftest.two conftest.dir
   12055 
   12056 fi
   12057   if test "${ac_cv_path_install+set}" = set; then
   12058     INSTALL=$ac_cv_path_install
   12059   else
   12060     # As a last resort, use the slow shell script.  Don't cache a
   12061     # value for INSTALL within a source directory, because that will
   12062     # break other packages using the cache if that directory is
   12063     # removed, or if the value is a relative name.
   12064     INSTALL=$ac_install_sh
   12065   fi
   12066 fi
   12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   12068 $as_echo "$INSTALL" >&6; }
   12069 
   12070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   12071 # It thinks the first close brace ends the variable substitution.
   12072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   12073 
   12074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   12075 
   12076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   12077 
   12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   12079 $as_echo_n "checking whether ln -s works... " >&6; }
   12080 LN_S=$as_ln_s
   12081 if test "$LN_S" = "ln -s"; then
   12082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12083 $as_echo "yes" >&6; }
   12084 else
   12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   12086 $as_echo "no, using $LN_S" >&6; }
   12087 fi
   12088 
   12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   12090 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   12091 if ${ac_cv_prog_shell+:} false; then :
   12092   $as_echo_n "(cached) " >&6
   12093 else
   12094   ac_test_shell_script='
   12095 			  test "$(expr 1 + 1)" = "2" &&
   12096 			  test "$(( 1 + 1 ))" = "2"
   12097 			  '
   12098 
   12099 			  for ac_cv_prog_shell in \
   12100 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   12101 			    case $ac_cv_prog_shell in #(
   12102   /*) :
   12103 
   12104 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   12105   break
   12106 fi
   12107 				     ;; #(
   12108   *) :
   12109      ;;
   12110 esac
   12111 			  done
   12112 
   12113 fi
   12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   12115 $as_echo "$ac_cv_prog_shell" >&6; }
   12116 	  if test "$ac_cv_prog_shell" = "no"; then :
   12117   SHELL=/bin/sh
   12118 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   12119 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   12120 
   12121 else
   12122   SHELL="$ac_cv_prog_shell"
   12123 
   12124 fi
   12125 
   12126 
   12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   12128 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   12129 if test -z "$MKDIR_P"; then
   12130   if ${ac_cv_path_mkdir+:} false; then :
   12131   $as_echo_n "(cached) " >&6
   12132 else
   12133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   12135 do
   12136   IFS=$as_save_IFS
   12137   test -z "$as_dir" && as_dir=.
   12138     for ac_prog in mkdir gmkdir; do
   12139 	 for ac_exec_ext in '' $ac_executable_extensions; do
   12140 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   12141 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   12142 	     'mkdir (GNU coreutils) '* | \
   12143 	     'mkdir (coreutils) '* | \
   12144 	     'mkdir (fileutils) '4.1*)
   12145 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   12146 	       break 3;;
   12147 	   esac
   12148 	 done
   12149        done
   12150   done
   12151 IFS=$as_save_IFS
   12152 
   12153 fi
   12154 
   12155   test -d ./--version && rmdir ./--version
   12156   if test "${ac_cv_path_mkdir+set}" = set; then
   12157     MKDIR_P="$ac_cv_path_mkdir -p"
   12158   else
   12159     # As a last resort, use the slow shell script.  Don't cache a
   12160     # value for MKDIR_P within a source directory, because that will
   12161     # break other packages using the cache if that directory is
   12162     # removed, or if the value is a relative name.
   12163     MKDIR_P="$ac_install_sh -d"
   12164   fi
   12165 fi
   12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   12167 $as_echo "$MKDIR_P" >&6; }
   12168 
   12169 
   12170 
   12171 
   12172 
   12173 
   12174 
   12175 
   12176 
   12177 #
   12178 # Use pkg-config
   12179 #
   12180 
   12181 
   12182 
   12183 
   12184 
   12185 
   12186 
   12187 
   12188 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12189 	if test -n "$ac_tool_prefix"; then
   12190   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12193 $as_echo_n "checking for $ac_word... " >&6; }
   12194 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   12195   $as_echo_n "(cached) " >&6
   12196 else
   12197   case $PKG_CONFIG in
   12198   [\\/]* | ?:[\\/]*)
   12199   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12200   ;;
   12201   *)
   12202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12203 for as_dir in $PATH
   12204 do
   12205   IFS=$as_save_IFS
   12206   test -z "$as_dir" && as_dir=.
   12207     for ac_exec_ext in '' $ac_executable_extensions; do
   12208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12209     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12211     break 2
   12212   fi
   12213 done
   12214   done
   12215 IFS=$as_save_IFS
   12216 
   12217   ;;
   12218 esac
   12219 fi
   12220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12221 if test -n "$PKG_CONFIG"; then
   12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12223 $as_echo "$PKG_CONFIG" >&6; }
   12224 else
   12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12226 $as_echo "no" >&6; }
   12227 fi
   12228 
   12229 
   12230 fi
   12231 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12232   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12233   # Extract the first word of "pkg-config", so it can be a program name with args.
   12234 set dummy pkg-config; ac_word=$2
   12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12236 $as_echo_n "checking for $ac_word... " >&6; }
   12237 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   12238   $as_echo_n "(cached) " >&6
   12239 else
   12240   case $ac_pt_PKG_CONFIG in
   12241   [\\/]* | ?:[\\/]*)
   12242   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12243   ;;
   12244   *)
   12245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12246 for as_dir in $PATH
   12247 do
   12248   IFS=$as_save_IFS
   12249   test -z "$as_dir" && as_dir=.
   12250     for ac_exec_ext in '' $ac_executable_extensions; do
   12251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12252     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12254     break 2
   12255   fi
   12256 done
   12257   done
   12258 IFS=$as_save_IFS
   12259 
   12260   ;;
   12261 esac
   12262 fi
   12263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12264 if test -n "$ac_pt_PKG_CONFIG"; then
   12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12266 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   12267 else
   12268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12269 $as_echo "no" >&6; }
   12270 fi
   12271 
   12272   if test "x$ac_pt_PKG_CONFIG" = x; then
   12273     PKG_CONFIG=""
   12274   else
   12275     case $cross_compiling:$ac_tool_warned in
   12276 yes:)
   12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12279 ac_tool_warned=yes ;;
   12280 esac
   12281     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12282   fi
   12283 else
   12284   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12285 fi
   12286 
   12287 fi
   12288 if test -n "$PKG_CONFIG"; then
   12289 	_pkg_min_version=0.9.0
   12290 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   12291 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   12292 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   12293 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12294 $as_echo "yes" >&6; }
   12295 	else
   12296 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12297 $as_echo "no" >&6; }
   12298 		PKG_CONFIG=""
   12299 	fi
   12300 fi
   12301 if test -z "$PKG_CONFIG"; then :
   12302   as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
   12303 fi
   12304 
   12305 # [pairwise: --enable-buffer-useinline, --disable-buffer-useinline]
   12306 # Check whether --enable-buffer_useinline was given.
   12307 if test "${enable_buffer_useinline+set}" = set; then :
   12308   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   12309 	      then
   12310 
   12311 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12312 
   12313 	      fi
   12314 else
   12315   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12316 
   12317 fi
   12318 
   12319 
   12320 # [pairwise: --enable-warn-shadow, --disable-warn-shadow]
   12321 # Check whether --enable-warn_shadow was given.
   12322 if test "${enable_warn_shadow+set}" = set; then :
   12323   enableval=$enable_warn_shadow;
   12324 fi
   12325 
   12326 
   12327 # [pairwise: --enable-warn-error, --disable-warn-error]
   12328 # Check whether --enable-warn_error was given.
   12329 if test "${enable_warn_error+set}" = set; then :
   12330   enableval=$enable_warn_error;
   12331 fi
   12332 
   12333 
   12334 # [pairwise: --enable-developer, --disable-developer]
   12335 # Check whether --enable-developer was given.
   12336 if test "${enable_developer+set}" = set; then :
   12337   enableval=$enable_developer;
   12338 fi
   12339 
   12340 
   12341 XTARGETS=
   12342 if test "$enable_developer" = "yes"; then :
   12343   STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   12344        test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   12345        test "${enable_querytrace+set}" = set || enable_querytrace=yes
   12346        test "${with_cmocka+set}" = set || with_cmocka=yes
   12347        test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   12348        test "${enable_symtable+set}" = set || enable_symtable=all
   12349        test "${enable_warn_error+set}" = set || enable_warn_error=yes
   12350        test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   12351        test "${with_zlib+set}" = set || with_zlib=yes
   12352        XTARGETS='${XTARGETS}'
   12353 
   12354 fi
   12355 
   12356 
   12357 # Fuzzing is not included in pairwise testing as fuzzing tools are
   12358 # not present in the relevant Docker image.
   12359 #
   12360 # [pairwise: skip]
   12361 # Check whether --enable-fuzzing was given.
   12362 if test "${enable_fuzzing+set}" = set; then :
   12363   enableval=$enable_fuzzing;
   12364 else
   12365   enable_fuzzing=no
   12366 fi
   12367 
   12368 
   12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   12370 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   12371 case $enable_fuzzing in #(
   12372   no) :
   12373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12374 $as_echo "no" >&6; } ;; #(
   12375   afl) :
   12376 
   12377 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   12378 $as_echo "using AFL" >&6; }
   12379 
   12380 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   12381 
   12382 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   12383 	  LIBS="$LIBS -lpthread" ;; #(
   12384   libfuzzer) :
   12385 
   12386 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   12387 $as_echo "using libFuzzer" >&6; }
   12388 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   12389 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   12390   *) :
   12391     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   12392   *) :
   12393      ;;
   12394 esac
   12395 
   12396 if test "$enable_fuzzing" = "afl"; then :
   12397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   12398 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   12399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12400 /* end confdefs.h.  */
   12401 
   12402 int
   12403 main ()
   12404 {
   12405 #ifndef __AFL_COMPILER
   12406 					   #error AFL compiler required
   12407 					   #endif
   12408 
   12409   ;
   12410   return 0;
   12411 }
   12412 _ACEOF
   12413 if ac_fn_c_try_compile "$LINENO"; then :
   12414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12415 $as_echo "yes" >&6; }
   12416 else
   12417   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   12418 fi
   12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12420 
   12421 fi
   12422 
   12423 #
   12424 # Make very sure that these are the first files processed by
   12425 # config.status, since we use the processed output as the input for
   12426 # AC_SUBST_FILE() substitutions in other files.
   12427 #
   12428 ac_config_files="$ac_config_files make/rules make/includes"
   12429 
   12430 
   12431 # Extract the first word of "ar", so it can be a program name with args.
   12432 set dummy ar; ac_word=$2
   12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12434 $as_echo_n "checking for $ac_word... " >&6; }
   12435 if ${ac_cv_path_AR+:} false; then :
   12436   $as_echo_n "(cached) " >&6
   12437 else
   12438   case $AR in
   12439   [\\/]* | ?:[\\/]*)
   12440   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12441   ;;
   12442   *)
   12443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12444 for as_dir in $PATH
   12445 do
   12446   IFS=$as_save_IFS
   12447   test -z "$as_dir" && as_dir=.
   12448     for ac_exec_ext in '' $ac_executable_extensions; do
   12449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12450     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12452     break 2
   12453   fi
   12454 done
   12455   done
   12456 IFS=$as_save_IFS
   12457 
   12458   ;;
   12459 esac
   12460 fi
   12461 AR=$ac_cv_path_AR
   12462 if test -n "$AR"; then
   12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12464 $as_echo "$AR" >&6; }
   12465 else
   12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12467 $as_echo "no" >&6; }
   12468 fi
   12469 
   12470 
   12471 ARFLAGS="cruv"
   12472 
   12473 
   12474 
   12475 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12476 # "copy" or something.
   12477 LN=ln
   12478 
   12479 
   12480 case "$AR" in
   12481 	"")
   12482 		as_fn_error $? "
   12483 ar program not found.  Please fix your PATH to include the directory in
   12484 which ar resides, or set AR in the environment with the full path to ar.
   12485 " "$LINENO" 5
   12486 
   12487 		;;
   12488 esac
   12489 
   12490 #
   12491 # Look for w3m
   12492 #
   12493 for ac_prog in w3m
   12494 do
   12495   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12496 set dummy $ac_prog; ac_word=$2
   12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12498 $as_echo_n "checking for $ac_word... " >&6; }
   12499 if ${ac_cv_path_W3M+:} false; then :
   12500   $as_echo_n "(cached) " >&6
   12501 else
   12502   case $W3M in
   12503   [\\/]* | ?:[\\/]*)
   12504   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   12505   ;;
   12506   *)
   12507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12508 for as_dir in $PATH
   12509 do
   12510   IFS=$as_save_IFS
   12511   test -z "$as_dir" && as_dir=.
   12512     for ac_exec_ext in '' $ac_executable_extensions; do
   12513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12514     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   12515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12516     break 2
   12517   fi
   12518 done
   12519   done
   12520 IFS=$as_save_IFS
   12521 
   12522   ;;
   12523 esac
   12524 fi
   12525 W3M=$ac_cv_path_W3M
   12526 if test -n "$W3M"; then
   12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   12528 $as_echo "$W3M" >&6; }
   12529 else
   12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12531 $as_echo "no" >&6; }
   12532 fi
   12533 
   12534 
   12535   test -n "$W3M" && break
   12536 done
   12537 test -n "$W3M" || W3M="w3m"
   12538 
   12539 
   12540 
   12541 #
   12542 # Look for pandoc
   12543 #
   12544 # Extract the first word of "pandoc", so it can be a program name with args.
   12545 set dummy pandoc; ac_word=$2
   12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12547 $as_echo_n "checking for $ac_word... " >&6; }
   12548 if ${ac_cv_path_PANDOC+:} false; then :
   12549   $as_echo_n "(cached) " >&6
   12550 else
   12551   case $PANDOC in
   12552   [\\/]* | ?:[\\/]*)
   12553   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   12554   ;;
   12555   *)
   12556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12557 for as_dir in $PATH
   12558 do
   12559   IFS=$as_save_IFS
   12560   test -z "$as_dir" && as_dir=.
   12561     for ac_exec_ext in '' $ac_executable_extensions; do
   12562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12563     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   12564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12565     break 2
   12566   fi
   12567 done
   12568   done
   12569 IFS=$as_save_IFS
   12570 
   12571   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   12572   ;;
   12573 esac
   12574 fi
   12575 PANDOC=$ac_cv_path_PANDOC
   12576 if test -n "$PANDOC"; then
   12577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   12578 $as_echo "$PANDOC" >&6; }
   12579 else
   12580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12581 $as_echo "no" >&6; }
   12582 fi
   12583 
   12584 
   12585 
   12586 
   12587 #
   12588 # Perl is optional; it is used only by some of the system test scripts.
   12589 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12590 # but it still compiles without perl, in which case an empty table will be used.
   12591 #
   12592 for ac_prog in perl5 perl
   12593 do
   12594   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12595 set dummy $ac_prog; ac_word=$2
   12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12597 $as_echo_n "checking for $ac_word... " >&6; }
   12598 if ${ac_cv_path_PERL+:} false; then :
   12599   $as_echo_n "(cached) " >&6
   12600 else
   12601   case $PERL in
   12602   [\\/]* | ?:[\\/]*)
   12603   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12604   ;;
   12605   *)
   12606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12607 for as_dir in $PATH
   12608 do
   12609   IFS=$as_save_IFS
   12610   test -z "$as_dir" && as_dir=.
   12611     for ac_exec_ext in '' $ac_executable_extensions; do
   12612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12613     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12615     break 2
   12616   fi
   12617 done
   12618   done
   12619 IFS=$as_save_IFS
   12620 
   12621   ;;
   12622 esac
   12623 fi
   12624 PERL=$ac_cv_path_PERL
   12625 if test -n "$PERL"; then
   12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12627 $as_echo "$PERL" >&6; }
   12628 else
   12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12630 $as_echo "no" >&6; }
   12631 fi
   12632 
   12633 
   12634   test -n "$PERL" && break
   12635 done
   12636 
   12637 
   12638 
   12639 #
   12640 # Python is also optional but required by default so that dnssec-keymgr gets
   12641 # installed unless explicitly prevented by the user using --without-python.
   12642 #
   12643 testminvers='import sys
   12644 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12645    exit(1)'
   12646 
   12647 testargparse='try: import argparse
   12648 except: exit(1)'
   12649 
   12650 testply='try: import ply
   12651 except: exit(1)'
   12652 
   12653 testsetuptools='try: from setuptools import setup
   12654 except: exit(1)'
   12655 
   12656 testdistutils='try: from distutils.core import setup
   12657 except: exit(1)'
   12658 
   12659 default_with_python="python python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12660 
   12661 
   12662 
   12663 # [pairwise: --with-python, --without-python]
   12664 
   12665 # Check whether --with-python was given.
   12666 if test "${with_python+set}" = set; then :
   12667   withval=$with_python;
   12668 else
   12669   with_python=$default_with_python
   12670 fi
   12671 
   12672 
   12673 # [pairwise: skip]
   12674 
   12675 # Check whether --with-python-install-dir was given.
   12676 if test "${with_python_install_dir+set}" = set; then :
   12677   withval=$with_python_install_dir;
   12678 else
   12679   with_python_install_dir=""
   12680 fi
   12681 
   12682 
   12683 if test "$with_python" = "yes"; then :
   12684   with_python=$default_with_python
   12685 fi
   12686 
   12687 if test "$with_python" = "no"; then :
   12688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12689 $as_echo_n "checking for Python support... " >&6; }
   12690        unset PYTHON
   12691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12692 $as_echo "disabled" >&6; }
   12693 else
   12694   for p in $with_python
   12695        do
   12696 	 case $p in #(
   12697   /*) :
   12698     PYTHON="$p" ;; #(
   12699   *) :
   12700      ;;
   12701 esac
   12702 
   12703 	 # Extract the first word of "$p", so it can be a program name with args.
   12704 set dummy $p; ac_word=$2
   12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12706 $as_echo_n "checking for $ac_word... " >&6; }
   12707 if ${ac_cv_path_PYTHON+:} false; then :
   12708   $as_echo_n "(cached) " >&6
   12709 else
   12710   case $PYTHON in
   12711   [\\/]* | ?:[\\/]*)
   12712   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12713   ;;
   12714   *)
   12715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12716 for as_dir in $PATH
   12717 do
   12718   IFS=$as_save_IFS
   12719   test -z "$as_dir" && as_dir=.
   12720     for ac_exec_ext in '' $ac_executable_extensions; do
   12721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12722     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12724     break 2
   12725   fi
   12726 done
   12727   done
   12728 IFS=$as_save_IFS
   12729 
   12730   ;;
   12731 esac
   12732 fi
   12733 PYTHON=$ac_cv_path_PYTHON
   12734 if test -n "$PYTHON"; then
   12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12736 $as_echo "$PYTHON" >&6; }
   12737 else
   12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12739 $as_echo "no" >&6; }
   12740 fi
   12741 
   12742 
   12743 	 # Do not cache the result of the check from the previous line.  If the
   12744 	 # first found Python interpreter has missing module dependencies and
   12745 	 # the result of the above check is cached, subsequent module checks
   12746 	 # will erroneously keep on using the cached path to the first found
   12747 	 # Python interpreter instead of different ones.
   12748 	 unset ac_cv_path_PYTHON
   12749 
   12750 	 if test -z "$PYTHON"; then :
   12751   continue
   12752 fi
   12753 
   12754 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12755 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12756 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12758 $as_echo "yes" >&6; }
   12759 else
   12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12761 $as_echo "no" >&6; }
   12762 		unset PYTHON
   12763 		continue
   12764 fi
   12765 
   12766 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12767 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12768 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12770 $as_echo "yes" >&6; }
   12771 else
   12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12773 $as_echo "no" >&6; }
   12774 		unset PYTHON
   12775 		continue
   12776 fi
   12777 
   12778 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12779 $as_echo_n "checking Python module 'ply'... " >&6; }
   12780 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12782 $as_echo "yes" >&6; }
   12783 else
   12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12785 $as_echo "no" >&6; }
   12786 		unset PYTHON
   12787 		continue
   12788 fi
   12789 
   12790 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'setuptools'" >&5
   12791 $as_echo_n "checking Python module 'setuptools'... " >&6; }
   12792 	 if "$PYTHON" -c "$testsetuptools" 2>/dev/null; then :
   12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12794 $as_echo "yes" >&6; }
   12795 else
   12796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12797 $as_echo "no" >&6; }
   12798 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils'" >&5
   12799 $as_echo_n "checking Python module 'distutils'... " >&6; }
   12800 		if "$PYTHON" -c "$testdistutils" 2>/dev/null; then :
   12801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12802 $as_echo "yes" >&6; }
   12803 else
   12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12805 $as_echo "no" >&6; }
   12806 		       unset PYTHON
   12807 		       continue
   12808 fi
   12809 fi
   12810 
   12811 	 # Stop looking any further once we find a Python interpreter
   12812 	 # satisfying all requirements.
   12813 	 break
   12814        done
   12815 
   12816        if test "X$PYTHON" = "X"; then :
   12817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12818 $as_echo_n "checking for Python support... " >&6; }
   12819 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12820 $as_echo "no" >&6; }
   12821 	      as_fn_error $? "Python >= 2.7 or >= 3.2 and the PLY package are required for dnssec-keymgr and other Python-based tools. PLY may be available from your OS package manager as python-ply or python3-ply; it can also be installed via pip. To build without Python/PLY, use --without-python." "$LINENO" 5
   12822 fi
   12823 fi
   12824 
   12825 PYTHON_TOOLS=''
   12826 CHECKDS=''
   12827 COVERAGE=''
   12828 KEYMGR=''
   12829 if test "X$PYTHON" != "X"; then :
   12830   PYTHON_TOOLS=python
   12831        CHECKDS=checkdstool
   12832        COVERAGE=coverage
   12833        KEYMGR=keymgr
   12834        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12835        if test -n "$with_python_install_dir"; then :
   12836   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12837 fi
   12838 fi
   12839 
   12840 
   12841 
   12842 
   12843 
   12844 
   12845 
   12846 #
   12847 # expanded_sysconfdir is needed for replacement in the python utilities
   12848 #
   12849 expanded_sysconfdir=`eval echo $sysconfdir`
   12850 
   12851 
   12852 #
   12853 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12854 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12855 # configure based on the location of the file where it is substituted.
   12856 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12857 # subdirectory of install-sh, This relative path will be wrong for all
   12858 # directories more than one level down from install-sh.
   12859 #
   12860 case "$INSTALL" in
   12861 	/*)
   12862 		;;
   12863 	*)
   12864 		#
   12865 		# Not all systems have dirname.
   12866 		#
   12867 
   12868 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12869 
   12870 
   12871 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12872 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12873 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12874 		INSTALL="$ac_dir/$ac_prog"
   12875 		;;
   12876 esac
   12877 
   12878 for ac_prog in pytest-3 py.test-3 pytest py.test pytest-pypy
   12879 do
   12880   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12881 set dummy $ac_prog; ac_word=$2
   12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12883 $as_echo_n "checking for $ac_word... " >&6; }
   12884 if ${ac_cv_path_PYTEST+:} false; then :
   12885   $as_echo_n "(cached) " >&6
   12886 else
   12887   case $PYTEST in
   12888   [\\/]* | ?:[\\/]*)
   12889   ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
   12890   ;;
   12891   *)
   12892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12893 for as_dir in $PATH
   12894 do
   12895   IFS=$as_save_IFS
   12896   test -z "$as_dir" && as_dir=.
   12897     for ac_exec_ext in '' $ac_executable_extensions; do
   12898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12899     ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
   12900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12901     break 2
   12902   fi
   12903 done
   12904   done
   12905 IFS=$as_save_IFS
   12906 
   12907   ;;
   12908 esac
   12909 fi
   12910 PYTEST=$ac_cv_path_PYTEST
   12911 if test -n "$PYTEST"; then
   12912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
   12913 $as_echo "$PYTEST" >&6; }
   12914 else
   12915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12916 $as_echo "no" >&6; }
   12917 fi
   12918 
   12919 
   12920   test -n "$PYTEST" && break
   12921 done
   12922 
   12923 if test -z "$PYTEST"; then :
   12924   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
   12925 $as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
   12926 fi
   12927 
   12928 
   12929 
   12930 ac_ext=c
   12931 ac_cpp='$CPP $CPPFLAGS'
   12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12935 if test -n "$ac_tool_prefix"; then
   12936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12939 $as_echo_n "checking for $ac_word... " >&6; }
   12940 if ${ac_cv_prog_CC+:} false; then :
   12941   $as_echo_n "(cached) " >&6
   12942 else
   12943   if test -n "$CC"; then
   12944   ac_cv_prog_CC="$CC" # Let the user override the test.
   12945 else
   12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12947 for as_dir in $PATH
   12948 do
   12949   IFS=$as_save_IFS
   12950   test -z "$as_dir" && as_dir=.
   12951     for ac_exec_ext in '' $ac_executable_extensions; do
   12952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12955     break 2
   12956   fi
   12957 done
   12958   done
   12959 IFS=$as_save_IFS
   12960 
   12961 fi
   12962 fi
   12963 CC=$ac_cv_prog_CC
   12964 if test -n "$CC"; then
   12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12966 $as_echo "$CC" >&6; }
   12967 else
   12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12969 $as_echo "no" >&6; }
   12970 fi
   12971 
   12972 
   12973 fi
   12974 if test -z "$ac_cv_prog_CC"; then
   12975   ac_ct_CC=$CC
   12976   # Extract the first word of "gcc", so it can be a program name with args.
   12977 set dummy gcc; ac_word=$2
   12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12979 $as_echo_n "checking for $ac_word... " >&6; }
   12980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12981   $as_echo_n "(cached) " >&6
   12982 else
   12983   if test -n "$ac_ct_CC"; then
   12984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12985 else
   12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12987 for as_dir in $PATH
   12988 do
   12989   IFS=$as_save_IFS
   12990   test -z "$as_dir" && as_dir=.
   12991     for ac_exec_ext in '' $ac_executable_extensions; do
   12992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12993     ac_cv_prog_ac_ct_CC="gcc"
   12994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12995     break 2
   12996   fi
   12997 done
   12998   done
   12999 IFS=$as_save_IFS
   13000 
   13001 fi
   13002 fi
   13003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   13004 if test -n "$ac_ct_CC"; then
   13005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   13006 $as_echo "$ac_ct_CC" >&6; }
   13007 else
   13008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13009 $as_echo "no" >&6; }
   13010 fi
   13011 
   13012   if test "x$ac_ct_CC" = x; then
   13013     CC=""
   13014   else
   13015     case $cross_compiling:$ac_tool_warned in
   13016 yes:)
   13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13019 ac_tool_warned=yes ;;
   13020 esac
   13021     CC=$ac_ct_CC
   13022   fi
   13023 else
   13024   CC="$ac_cv_prog_CC"
   13025 fi
   13026 
   13027 if test -z "$CC"; then
   13028           if test -n "$ac_tool_prefix"; then
   13029     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   13030 set dummy ${ac_tool_prefix}cc; ac_word=$2
   13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13032 $as_echo_n "checking for $ac_word... " >&6; }
   13033 if ${ac_cv_prog_CC+:} false; then :
   13034   $as_echo_n "(cached) " >&6
   13035 else
   13036   if test -n "$CC"; then
   13037   ac_cv_prog_CC="$CC" # Let the user override the test.
   13038 else
   13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13040 for as_dir in $PATH
   13041 do
   13042   IFS=$as_save_IFS
   13043   test -z "$as_dir" && as_dir=.
   13044     for ac_exec_ext in '' $ac_executable_extensions; do
   13045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13046     ac_cv_prog_CC="${ac_tool_prefix}cc"
   13047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13048     break 2
   13049   fi
   13050 done
   13051   done
   13052 IFS=$as_save_IFS
   13053 
   13054 fi
   13055 fi
   13056 CC=$ac_cv_prog_CC
   13057 if test -n "$CC"; then
   13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13059 $as_echo "$CC" >&6; }
   13060 else
   13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13062 $as_echo "no" >&6; }
   13063 fi
   13064 
   13065 
   13066   fi
   13067 fi
   13068 if test -z "$CC"; then
   13069   # Extract the first word of "cc", so it can be a program name with args.
   13070 set dummy cc; ac_word=$2
   13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13072 $as_echo_n "checking for $ac_word... " >&6; }
   13073 if ${ac_cv_prog_CC+:} false; then :
   13074   $as_echo_n "(cached) " >&6
   13075 else
   13076   if test -n "$CC"; then
   13077   ac_cv_prog_CC="$CC" # Let the user override the test.
   13078 else
   13079   ac_prog_rejected=no
   13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13081 for as_dir in $PATH
   13082 do
   13083   IFS=$as_save_IFS
   13084   test -z "$as_dir" && as_dir=.
   13085     for ac_exec_ext in '' $ac_executable_extensions; do
   13086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13087     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   13088        ac_prog_rejected=yes
   13089        continue
   13090      fi
   13091     ac_cv_prog_CC="cc"
   13092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13093     break 2
   13094   fi
   13095 done
   13096   done
   13097 IFS=$as_save_IFS
   13098 
   13099 if test $ac_prog_rejected = yes; then
   13100   # We found a bogon in the path, so make sure we never use it.
   13101   set dummy $ac_cv_prog_CC
   13102   shift
   13103   if test $# != 0; then
   13104     # We chose a different compiler from the bogus one.
   13105     # However, it has the same basename, so the bogon will be chosen
   13106     # first if we set CC to just the basename; use the full file name.
   13107     shift
   13108     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   13109   fi
   13110 fi
   13111 fi
   13112 fi
   13113 CC=$ac_cv_prog_CC
   13114 if test -n "$CC"; then
   13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13116 $as_echo "$CC" >&6; }
   13117 else
   13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13119 $as_echo "no" >&6; }
   13120 fi
   13121 
   13122 
   13123 fi
   13124 if test -z "$CC"; then
   13125   if test -n "$ac_tool_prefix"; then
   13126   for ac_prog in cl.exe
   13127   do
   13128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   13129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13131 $as_echo_n "checking for $ac_word... " >&6; }
   13132 if ${ac_cv_prog_CC+:} false; then :
   13133   $as_echo_n "(cached) " >&6
   13134 else
   13135   if test -n "$CC"; then
   13136   ac_cv_prog_CC="$CC" # Let the user override the test.
   13137 else
   13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13139 for as_dir in $PATH
   13140 do
   13141   IFS=$as_save_IFS
   13142   test -z "$as_dir" && as_dir=.
   13143     for ac_exec_ext in '' $ac_executable_extensions; do
   13144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   13146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13147     break 2
   13148   fi
   13149 done
   13150   done
   13151 IFS=$as_save_IFS
   13152 
   13153 fi
   13154 fi
   13155 CC=$ac_cv_prog_CC
   13156 if test -n "$CC"; then
   13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13158 $as_echo "$CC" >&6; }
   13159 else
   13160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13161 $as_echo "no" >&6; }
   13162 fi
   13163 
   13164 
   13165     test -n "$CC" && break
   13166   done
   13167 fi
   13168 if test -z "$CC"; then
   13169   ac_ct_CC=$CC
   13170   for ac_prog in cl.exe
   13171 do
   13172   # Extract the first word of "$ac_prog", so it can be a program name with args.
   13173 set dummy $ac_prog; ac_word=$2
   13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13175 $as_echo_n "checking for $ac_word... " >&6; }
   13176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   13177   $as_echo_n "(cached) " >&6
   13178 else
   13179   if test -n "$ac_ct_CC"; then
   13180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   13181 else
   13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13183 for as_dir in $PATH
   13184 do
   13185   IFS=$as_save_IFS
   13186   test -z "$as_dir" && as_dir=.
   13187     for ac_exec_ext in '' $ac_executable_extensions; do
   13188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13189     ac_cv_prog_ac_ct_CC="$ac_prog"
   13190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13191     break 2
   13192   fi
   13193 done
   13194   done
   13195 IFS=$as_save_IFS
   13196 
   13197 fi
   13198 fi
   13199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   13200 if test -n "$ac_ct_CC"; then
   13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   13202 $as_echo "$ac_ct_CC" >&6; }
   13203 else
   13204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13205 $as_echo "no" >&6; }
   13206 fi
   13207 
   13208 
   13209   test -n "$ac_ct_CC" && break
   13210 done
   13211 
   13212   if test "x$ac_ct_CC" = x; then
   13213     CC=""
   13214   else
   13215     case $cross_compiling:$ac_tool_warned in
   13216 yes:)
   13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13219 ac_tool_warned=yes ;;
   13220 esac
   13221     CC=$ac_ct_CC
   13222   fi
   13223 fi
   13224 
   13225 fi
   13226 
   13227 
   13228 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13230 as_fn_error $? "no acceptable C compiler found in \$PATH
   13231 See \`config.log' for more details" "$LINENO" 5; }
   13232 
   13233 # Provide some information about the compiler.
   13234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   13235 set X $ac_compile
   13236 ac_compiler=$2
   13237 for ac_option in --version -v -V -qversion; do
   13238   { { ac_try="$ac_compiler $ac_option >&5"
   13239 case "(($ac_try" in
   13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13241   *) ac_try_echo=$ac_try;;
   13242 esac
   13243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   13244 $as_echo "$ac_try_echo"; } >&5
   13245   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   13246   ac_status=$?
   13247   if test -s conftest.err; then
   13248     sed '10a\
   13249 ... rest of stderr output deleted ...
   13250          10q' conftest.err >conftest.er1
   13251     cat conftest.er1 >&5
   13252   fi
   13253   rm -f conftest.er1 conftest.err
   13254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13255   test $ac_status = 0; }
   13256 done
   13257 
   13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   13259 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   13260 if ${ac_cv_c_compiler_gnu+:} false; then :
   13261   $as_echo_n "(cached) " >&6
   13262 else
   13263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13264 /* end confdefs.h.  */
   13265 
   13266 int
   13267 main ()
   13268 {
   13269 #ifndef __GNUC__
   13270        choke me
   13271 #endif
   13272 
   13273   ;
   13274   return 0;
   13275 }
   13276 _ACEOF
   13277 if ac_fn_c_try_compile "$LINENO"; then :
   13278   ac_compiler_gnu=yes
   13279 else
   13280   ac_compiler_gnu=no
   13281 fi
   13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   13284 
   13285 fi
   13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   13287 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   13288 if test $ac_compiler_gnu = yes; then
   13289   GCC=yes
   13290 else
   13291   GCC=
   13292 fi
   13293 ac_test_CFLAGS=${CFLAGS+set}
   13294 ac_save_CFLAGS=$CFLAGS
   13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   13296 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   13297 if ${ac_cv_prog_cc_g+:} false; then :
   13298   $as_echo_n "(cached) " >&6
   13299 else
   13300   ac_save_c_werror_flag=$ac_c_werror_flag
   13301    ac_c_werror_flag=yes
   13302    ac_cv_prog_cc_g=no
   13303    CFLAGS="-g"
   13304    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13305 /* end confdefs.h.  */
   13306 
   13307 int
   13308 main ()
   13309 {
   13310 
   13311   ;
   13312   return 0;
   13313 }
   13314 _ACEOF
   13315 if ac_fn_c_try_compile "$LINENO"; then :
   13316   ac_cv_prog_cc_g=yes
   13317 else
   13318   CFLAGS=""
   13319       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13320 /* end confdefs.h.  */
   13321 
   13322 int
   13323 main ()
   13324 {
   13325 
   13326   ;
   13327   return 0;
   13328 }
   13329 _ACEOF
   13330 if ac_fn_c_try_compile "$LINENO"; then :
   13331 
   13332 else
   13333   ac_c_werror_flag=$ac_save_c_werror_flag
   13334 	 CFLAGS="-g"
   13335 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13336 /* end confdefs.h.  */
   13337 
   13338 int
   13339 main ()
   13340 {
   13341 
   13342   ;
   13343   return 0;
   13344 }
   13345 _ACEOF
   13346 if ac_fn_c_try_compile "$LINENO"; then :
   13347   ac_cv_prog_cc_g=yes
   13348 fi
   13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13350 fi
   13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13352 fi
   13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13354    ac_c_werror_flag=$ac_save_c_werror_flag
   13355 fi
   13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   13357 $as_echo "$ac_cv_prog_cc_g" >&6; }
   13358 if test "$ac_test_CFLAGS" = set; then
   13359   CFLAGS=$ac_save_CFLAGS
   13360 elif test $ac_cv_prog_cc_g = yes; then
   13361   if test "$GCC" = yes; then
   13362     CFLAGS="-g -O2"
   13363   else
   13364     CFLAGS="-g"
   13365   fi
   13366 else
   13367   if test "$GCC" = yes; then
   13368     CFLAGS="-O2"
   13369   else
   13370     CFLAGS=
   13371   fi
   13372 fi
   13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   13374 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   13375 if ${ac_cv_prog_cc_c89+:} false; then :
   13376   $as_echo_n "(cached) " >&6
   13377 else
   13378   ac_cv_prog_cc_c89=no
   13379 ac_save_CC=$CC
   13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13381 /* end confdefs.h.  */
   13382 #include <stdarg.h>
   13383 #include <stdio.h>
   13384 struct stat;
   13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   13386 struct buf { int x; };
   13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   13388 static char *e (p, i)
   13389      char **p;
   13390      int i;
   13391 {
   13392   return p[i];
   13393 }
   13394 static char *f (char * (*g) (char **, int), char **p, ...)
   13395 {
   13396   char *s;
   13397   va_list v;
   13398   va_start (v,p);
   13399   s = g (p, va_arg (v,int));
   13400   va_end (v);
   13401   return s;
   13402 }
   13403 
   13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   13405    function prototypes and stuff, but not '\xHH' hex character constants.
   13406    These don't provoke an error unfortunately, instead are silently treated
   13407    as 'x'.  The following induces an error, until -std is added to get
   13408    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   13409    array size at least.  It's necessary to write '\x00'==0 to get something
   13410    that's true only with -std.  */
   13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   13412 
   13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   13414    inside strings and character constants.  */
   13415 #define FOO(x) 'x'
   13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   13417 
   13418 int test (int i, double x);
   13419 struct s1 {int (*f) (int a);};
   13420 struct s2 {int (*f) (double a);};
   13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   13422 int argc;
   13423 char **argv;
   13424 int
   13425 main ()
   13426 {
   13427 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   13428   ;
   13429   return 0;
   13430 }
   13431 _ACEOF
   13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   13433 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   13434 do
   13435   CC="$ac_save_CC $ac_arg"
   13436   if ac_fn_c_try_compile "$LINENO"; then :
   13437   ac_cv_prog_cc_c89=$ac_arg
   13438 fi
   13439 rm -f core conftest.err conftest.$ac_objext
   13440   test "x$ac_cv_prog_cc_c89" != "xno" && break
   13441 done
   13442 rm -f conftest.$ac_ext
   13443 CC=$ac_save_CC
   13444 
   13445 fi
   13446 # AC_CACHE_VAL
   13447 case "x$ac_cv_prog_cc_c89" in
   13448   x)
   13449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13450 $as_echo "none needed" >&6; } ;;
   13451   xno)
   13452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13453 $as_echo "unsupported" >&6; } ;;
   13454   *)
   13455     CC="$CC $ac_cv_prog_cc_c89"
   13456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   13457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   13458 esac
   13459 if test "x$ac_cv_prog_cc_c89" != xno; then :
   13460 
   13461 fi
   13462 
   13463 ac_ext=c
   13464 ac_cpp='$CPP $CPPFLAGS'
   13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13468 
   13469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   13470 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   13471 if ${ac_cv_prog_cc_c99+:} false; then :
   13472   $as_echo_n "(cached) " >&6
   13473 else
   13474   ac_cv_prog_cc_c99=no
   13475 ac_save_CC=$CC
   13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13477 /* end confdefs.h.  */
   13478 #include <stdarg.h>
   13479 #include <stdbool.h>
   13480 #include <stdlib.h>
   13481 #include <wchar.h>
   13482 #include <stdio.h>
   13483 
   13484 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   13485 #define debug(...) fprintf (stderr, __VA_ARGS__)
   13486 #define showlist(...) puts (#__VA_ARGS__)
   13487 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   13488 static void
   13489 test_varargs_macros (void)
   13490 {
   13491   int x = 1234;
   13492   int y = 5678;
   13493   debug ("Flag");
   13494   debug ("X = %d\n", x);
   13495   showlist (The first, second, and third items.);
   13496   report (x>y, "x is %d but y is %d", x, y);
   13497 }
   13498 
   13499 // Check long long types.
   13500 #define BIG64 18446744073709551615ull
   13501 #define BIG32 4294967295ul
   13502 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   13503 #if !BIG_OK
   13504   your preprocessor is broken;
   13505 #endif
   13506 #if BIG_OK
   13507 #else
   13508   your preprocessor is broken;
   13509 #endif
   13510 static long long int bignum = -9223372036854775807LL;
   13511 static unsigned long long int ubignum = BIG64;
   13512 
   13513 struct incomplete_array
   13514 {
   13515   int datasize;
   13516   double data[];
   13517 };
   13518 
   13519 struct named_init {
   13520   int number;
   13521   const wchar_t *name;
   13522   double average;
   13523 };
   13524 
   13525 typedef const char *ccp;
   13526 
   13527 static inline int
   13528 test_restrict (ccp restrict text)
   13529 {
   13530   // See if C++-style comments work.
   13531   // Iterate through items via the restricted pointer.
   13532   // Also check for declarations in for loops.
   13533   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13534     continue;
   13535   return 0;
   13536 }
   13537 
   13538 // Check varargs and va_copy.
   13539 static void
   13540 test_varargs (const char *format, ...)
   13541 {
   13542   va_list args;
   13543   va_start (args, format);
   13544   va_list args_copy;
   13545   va_copy (args_copy, args);
   13546 
   13547   const char *str;
   13548   int number;
   13549   float fnumber;
   13550 
   13551   while (*format)
   13552     {
   13553       switch (*format++)
   13554 	{
   13555 	case 's': // string
   13556 	  str = va_arg (args_copy, const char *);
   13557 	  break;
   13558 	case 'd': // int
   13559 	  number = va_arg (args_copy, int);
   13560 	  break;
   13561 	case 'f': // float
   13562 	  fnumber = va_arg (args_copy, double);
   13563 	  break;
   13564 	default:
   13565 	  break;
   13566 	}
   13567     }
   13568   va_end (args_copy);
   13569   va_end (args);
   13570 }
   13571 
   13572 int
   13573 main ()
   13574 {
   13575 
   13576   // Check bool.
   13577   _Bool success = false;
   13578 
   13579   // Check restrict.
   13580   if (test_restrict ("String literal") == 0)
   13581     success = true;
   13582   char *restrict newvar = "Another string";
   13583 
   13584   // Check varargs.
   13585   test_varargs ("s, d' f .", "string", 65, 34.234);
   13586   test_varargs_macros ();
   13587 
   13588   // Check flexible array members.
   13589   struct incomplete_array *ia =
   13590     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13591   ia->datasize = 10;
   13592   for (int i = 0; i < ia->datasize; ++i)
   13593     ia->data[i] = i * 1.234;
   13594 
   13595   // Check named initializers.
   13596   struct named_init ni = {
   13597     .number = 34,
   13598     .name = L"Test wide string",
   13599     .average = 543.34343,
   13600   };
   13601 
   13602   ni.number = 58;
   13603 
   13604   int dynamic_array[ni.number];
   13605   dynamic_array[ni.number - 1] = 543;
   13606 
   13607   // work around unused variable warnings
   13608   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13609 	  || dynamic_array[ni.number - 1] != 543);
   13610 
   13611   ;
   13612   return 0;
   13613 }
   13614 _ACEOF
   13615 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13616 do
   13617   CC="$ac_save_CC $ac_arg"
   13618   if ac_fn_c_try_compile "$LINENO"; then :
   13619   ac_cv_prog_cc_c99=$ac_arg
   13620 fi
   13621 rm -f core conftest.err conftest.$ac_objext
   13622   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13623 done
   13624 rm -f conftest.$ac_ext
   13625 CC=$ac_save_CC
   13626 
   13627 fi
   13628 # AC_CACHE_VAL
   13629 case "x$ac_cv_prog_cc_c99" in
   13630   x)
   13631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13632 $as_echo "none needed" >&6; } ;;
   13633   xno)
   13634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13635 $as_echo "unsupported" >&6; } ;;
   13636   *)
   13637     CC="$CC $ac_cv_prog_cc_c99"
   13638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13639 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13640 esac
   13641 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13642 
   13643 fi
   13644 
   13645 
   13646 
   13647 #
   13648 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
   13649 #
   13650 case $host in #(
   13651   *-solaris*) :
   13652 
   13653 	    if test "$GCC" = "yes"; then :
   13654   LDFLAGS="$LDFLAGS -zrelax=transtls"
   13655 		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&5
   13656 $as_echo "$as_me: WARNING: When using GNU C Compiler on Solaris, -zrelax=transtls linker flag is used to fix bug in Thread Local Storage" >&2;}
   13657 
   13658 fi
   13659 	 ;; #(
   13660   *-darwin*) :
   13661     LDFLAGS="$LDFLAGS -Wl,-flat_namespace" ;; #(
   13662   *) :
   13663      ;;
   13664 esac
   13665 
   13666 #
   13667 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13668 #
   13669 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13670 	CCNOOPT="-O0"
   13671 fi
   13672 
   13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13674 $as_echo_n "checking for ANSI C header files... " >&6; }
   13675 if ${ac_cv_header_stdc+:} false; then :
   13676   $as_echo_n "(cached) " >&6
   13677 else
   13678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13679 /* end confdefs.h.  */
   13680 #include <stdlib.h>
   13681 #include <stdarg.h>
   13682 #include <string.h>
   13683 #include <float.h>
   13684 
   13685 int
   13686 main ()
   13687 {
   13688 
   13689   ;
   13690   return 0;
   13691 }
   13692 _ACEOF
   13693 if ac_fn_c_try_compile "$LINENO"; then :
   13694   ac_cv_header_stdc=yes
   13695 else
   13696   ac_cv_header_stdc=no
   13697 fi
   13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13699 
   13700 if test $ac_cv_header_stdc = yes; then
   13701   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13703 /* end confdefs.h.  */
   13704 #include <string.h>
   13705 
   13706 _ACEOF
   13707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13708   $EGREP "memchr" >/dev/null 2>&1; then :
   13709 
   13710 else
   13711   ac_cv_header_stdc=no
   13712 fi
   13713 rm -f conftest*
   13714 
   13715 fi
   13716 
   13717 if test $ac_cv_header_stdc = yes; then
   13718   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13720 /* end confdefs.h.  */
   13721 #include <stdlib.h>
   13722 
   13723 _ACEOF
   13724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13725   $EGREP "free" >/dev/null 2>&1; then :
   13726 
   13727 else
   13728   ac_cv_header_stdc=no
   13729 fi
   13730 rm -f conftest*
   13731 
   13732 fi
   13733 
   13734 if test $ac_cv_header_stdc = yes; then
   13735   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13736   if test "$cross_compiling" = yes; then :
   13737   :
   13738 else
   13739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13740 /* end confdefs.h.  */
   13741 #include <ctype.h>
   13742 #include <stdlib.h>
   13743 #if ((' ' & 0x0FF) == 0x020)
   13744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13746 #else
   13747 # define ISLOWER(c) \
   13748 		   (('a' <= (c) && (c) <= 'i') \
   13749 		     || ('j' <= (c) && (c) <= 'r') \
   13750 		     || ('s' <= (c) && (c) <= 'z'))
   13751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13752 #endif
   13753 
   13754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13755 int
   13756 main ()
   13757 {
   13758   int i;
   13759   for (i = 0; i < 256; i++)
   13760     if (XOR (islower (i), ISLOWER (i))
   13761 	|| toupper (i) != TOUPPER (i))
   13762       return 2;
   13763   return 0;
   13764 }
   13765 _ACEOF
   13766 if ac_fn_c_try_run "$LINENO"; then :
   13767 
   13768 else
   13769   ac_cv_header_stdc=no
   13770 fi
   13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13772   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13773 fi
   13774 
   13775 fi
   13776 fi
   13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13778 $as_echo "$ac_cv_header_stdc" >&6; }
   13779 if test $ac_cv_header_stdc = yes; then
   13780 
   13781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13782 
   13783 fi
   13784 
   13785 
   13786 for ac_header in fcntl.h regex.h sys/time.h unistd.h sys/mman.h sys/sockio.h sys/select.h sys/param.h sys/sysctl.h net/if6.h sys/socket.h net/route.h linux/netlink.h linux/rtnetlink.h
   13787 do :
   13788   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13790 #ifdef HAVE_SYS_PARAM_H
   13791 # include <sys/param.h>
   13792 #endif
   13793 #ifdef HAVE_SYS_SOCKET_H
   13794 # include <sys/socket.h>
   13795 #endif
   13796 
   13797 "
   13798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13799   cat >>confdefs.h <<_ACEOF
   13800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13801 _ACEOF
   13802 
   13803 fi
   13804 
   13805 done
   13806 
   13807 
   13808 #
   13809 # Check for thread local storage
   13810 #
   13811 for ac_header in threads.h
   13812 do :
   13813   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13814 if test "x$ac_cv_header_threads_h" = xyes; then :
   13815   cat >>confdefs.h <<_ACEOF
   13816 #define HAVE_THREADS_H 1
   13817 _ACEOF
   13818 
   13819 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13820 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13821 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13822 /* end confdefs.h.  */
   13823 
   13824 				  #include <threads.h>
   13825 
   13826 int
   13827 main ()
   13828 {
   13829 
   13830 				  static thread_local int tls = 0;
   13831 				  return (tls);
   13832 
   13833   ;
   13834   return 0;
   13835 }
   13836 
   13837 _ACEOF
   13838 if ac_fn_c_try_compile "$LINENO"; then :
   13839 
   13840 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13841 $as_echo "yes" >&6; }
   13842 
   13843 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13844 
   13845 
   13846 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13847 
   13848 
   13849 else
   13850 
   13851 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13852 
   13853 fi
   13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13855 
   13856 else
   13857 
   13858 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13859 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13860 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13861 /* end confdefs.h.  */
   13862 
   13863 
   13864 int
   13865 main ()
   13866 {
   13867 
   13868 				  static __thread int tls = 0;
   13869 				  return (tls);
   13870 
   13871   ;
   13872   return 0;
   13873 }
   13874 
   13875 _ACEOF
   13876 if ac_fn_c_try_compile "$LINENO"; then :
   13877 
   13878 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13879 $as_echo "yes" >&6; }
   13880 
   13881 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13882 
   13883 
   13884 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13885 
   13886 
   13887 else
   13888 
   13889 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13890 
   13891 fi
   13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13893 
   13894 fi
   13895 
   13896 done
   13897 
   13898 
   13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13900 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13901 if ${ac_cv_c_const+:} false; then :
   13902   $as_echo_n "(cached) " >&6
   13903 else
   13904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13905 /* end confdefs.h.  */
   13906 
   13907 int
   13908 main ()
   13909 {
   13910 
   13911 #ifndef __cplusplus
   13912   /* Ultrix mips cc rejects this sort of thing.  */
   13913   typedef int charset[2];
   13914   const charset cs = { 0, 0 };
   13915   /* SunOS 4.1.1 cc rejects this.  */
   13916   char const *const *pcpcc;
   13917   char **ppc;
   13918   /* NEC SVR4.0.2 mips cc rejects this.  */
   13919   struct point {int x, y;};
   13920   static struct point const zero = {0,0};
   13921   /* AIX XL C 1.02.0.0 rejects this.
   13922      It does not let you subtract one const X* pointer from another in
   13923      an arm of an if-expression whose if-part is not a constant
   13924      expression */
   13925   const char *g = "string";
   13926   pcpcc = &g + (g ? g-g : 0);
   13927   /* HPUX 7.0 cc rejects these. */
   13928   ++pcpcc;
   13929   ppc = (char**) pcpcc;
   13930   pcpcc = (char const *const *) ppc;
   13931   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13932     char tx;
   13933     char *t = &tx;
   13934     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13935 
   13936     *t++ = 0;
   13937     if (s) return 0;
   13938   }
   13939   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13940     int x[] = {25, 17};
   13941     const int *foo = &x[0];
   13942     ++foo;
   13943   }
   13944   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13945     typedef const int *iptr;
   13946     iptr p = 0;
   13947     ++p;
   13948   }
   13949   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13950        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13951     struct s { int j; const int *ap[3]; } bx;
   13952     struct s *b = &bx; b->j = 5;
   13953   }
   13954   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13955     const int foo = 10;
   13956     if (!foo) return 0;
   13957   }
   13958   return !cs[0] && !zero.x;
   13959 #endif
   13960 
   13961   ;
   13962   return 0;
   13963 }
   13964 _ACEOF
   13965 if ac_fn_c_try_compile "$LINENO"; then :
   13966   ac_cv_c_const=yes
   13967 else
   13968   ac_cv_c_const=no
   13969 fi
   13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13971 fi
   13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13973 $as_echo "$ac_cv_c_const" >&6; }
   13974 if test $ac_cv_c_const = no; then
   13975 
   13976 $as_echo "#define const /**/" >>confdefs.h
   13977 
   13978 fi
   13979 
   13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13981 $as_echo_n "checking for inline... " >&6; }
   13982 if ${ac_cv_c_inline+:} false; then :
   13983   $as_echo_n "(cached) " >&6
   13984 else
   13985   ac_cv_c_inline=no
   13986 for ac_kw in inline __inline__ __inline; do
   13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13988 /* end confdefs.h.  */
   13989 #ifndef __cplusplus
   13990 typedef int foo_t;
   13991 static $ac_kw foo_t static_foo () {return 0; }
   13992 $ac_kw foo_t foo () {return 0; }
   13993 #endif
   13994 
   13995 _ACEOF
   13996 if ac_fn_c_try_compile "$LINENO"; then :
   13997   ac_cv_c_inline=$ac_kw
   13998 fi
   13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14000   test "$ac_cv_c_inline" != no && break
   14001 done
   14002 
   14003 fi
   14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   14005 $as_echo "$ac_cv_c_inline" >&6; }
   14006 
   14007 case $ac_cv_c_inline in
   14008   inline | yes) ;;
   14009   *)
   14010     case $ac_cv_c_inline in
   14011       no) ac_val=;;
   14012       *) ac_val=$ac_cv_c_inline;;
   14013     esac
   14014     cat >>confdefs.h <<_ACEOF
   14015 #ifndef __cplusplus
   14016 #define inline $ac_val
   14017 #endif
   14018 _ACEOF
   14019     ;;
   14020 esac
   14021 
   14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   14023 $as_echo_n "checking for working volatile... " >&6; }
   14024 if ${ac_cv_c_volatile+:} false; then :
   14025   $as_echo_n "(cached) " >&6
   14026 else
   14027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14028 /* end confdefs.h.  */
   14029 
   14030 int
   14031 main ()
   14032 {
   14033 
   14034 volatile int x;
   14035 int * volatile y = (int *) 0;
   14036 return !x && !y;
   14037   ;
   14038   return 0;
   14039 }
   14040 _ACEOF
   14041 if ac_fn_c_try_compile "$LINENO"; then :
   14042   ac_cv_c_volatile=yes
   14043 else
   14044   ac_cv_c_volatile=no
   14045 fi
   14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14047 fi
   14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   14049 $as_echo "$ac_cv_c_volatile" >&6; }
   14050 if test $ac_cv_c_volatile = no; then
   14051 
   14052 $as_echo "#define volatile /**/" >>confdefs.h
   14053 
   14054 fi
   14055 
   14056 
   14057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   14058 $as_echo_n "checking for flexible array members... " >&6; }
   14059 if ${ac_cv_c_flexmember+:} false; then :
   14060   $as_echo_n "(cached) " >&6
   14061 else
   14062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14063 /* end confdefs.h.  */
   14064 #include <stdlib.h>
   14065 	    #include <stdio.h>
   14066 	    #include <stddef.h>
   14067 	    struct s { int n; double d[]; };
   14068 int
   14069 main ()
   14070 {
   14071 int m = getchar ();
   14072 	    struct s *p = malloc (offsetof (struct s, d)
   14073 				  + m * sizeof (double));
   14074 	    p->d[0] = 0.0;
   14075 	    return p->d != (double *) NULL;
   14076   ;
   14077   return 0;
   14078 }
   14079 _ACEOF
   14080 if ac_fn_c_try_compile "$LINENO"; then :
   14081   ac_cv_c_flexmember=yes
   14082 else
   14083   ac_cv_c_flexmember=no
   14084 fi
   14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14086 fi
   14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   14088 $as_echo "$ac_cv_c_flexmember" >&6; }
   14089   if test $ac_cv_c_flexmember = yes; then
   14090 
   14091 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   14092 
   14093   else
   14094     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   14095 
   14096   fi
   14097 
   14098 
   14099 #
   14100 # Check for yield support on ARM processors
   14101 #
   14102 case $host in #(
   14103   arm*) :
   14104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   14105 $as_echo_n "checking for yield instruction support... " >&6; }
   14106 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14107 /* end confdefs.h.  */
   14108 
   14109 int
   14110 main ()
   14111 {
   14112 __asm__ __volatile__ ("yield")
   14113   ;
   14114   return 0;
   14115 }
   14116 _ACEOF
   14117 if ac_fn_c_try_compile "$LINENO"; then :
   14118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14119 $as_echo "yes" >&6; }
   14120 
   14121 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
   14122 
   14123 else
   14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14125 $as_echo "no" >&6; }
   14126 fi
   14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14128   *) :
   14129      ;;
   14130 esac
   14131 
   14132 #
   14133 # Check for pause support on SPARC processors
   14134 #
   14135 case $host in #(
   14136   sparc*) :
   14137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
   14138 $as_echo_n "checking for pause instruction support... " >&6; }
   14139 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14140 /* end confdefs.h.  */
   14141 
   14142 int
   14143 main ()
   14144 {
   14145 __asm__ __volatile__ ("pause")
   14146   ;
   14147   return 0;
   14148 }
   14149 _ACEOF
   14150 if ac_fn_c_try_compile "$LINENO"; then :
   14151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14152 $as_echo "yes" >&6; }
   14153 
   14154 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
   14155 
   14156 else
   14157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14158 $as_echo "no" >&6; }
   14159 fi
   14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14161   *) :
   14162      ;;
   14163 esac
   14164 
   14165 for ac_func in sysctlbyname
   14166 do :
   14167   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   14168 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   14169   cat >>confdefs.h <<_ACEOF
   14170 #define HAVE_SYSCTLBYNAME 1
   14171 _ACEOF
   14172 
   14173 fi
   14174 done
   14175 
   14176 
   14177 #
   14178 # Check for the existence of mmap to enable the fast format zones
   14179 #
   14180 for ac_func in mmap
   14181 do :
   14182   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   14183 if test "x$ac_cv_func_mmap" = xyes; then :
   14184   cat >>confdefs.h <<_ACEOF
   14185 #define HAVE_MMAP 1
   14186 _ACEOF
   14187 
   14188 fi
   14189 done
   14190 
   14191 
   14192 #
   14193 # Older versions of HP/UX don't define seteuid() and setegid()
   14194 #
   14195 for ac_func in seteuid setresuid
   14196 do :
   14197   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14199 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14200   cat >>confdefs.h <<_ACEOF
   14201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14202 _ACEOF
   14203 
   14204 fi
   14205 done
   14206 
   14207 for ac_func in setegid setresgid
   14208 do :
   14209   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14212   cat >>confdefs.h <<_ACEOF
   14213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14214 _ACEOF
   14215 
   14216 fi
   14217 done
   14218 
   14219 
   14220 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14221 if test "x$ac_cv_type_size_t" = xyes; then :
   14222 
   14223 else
   14224 
   14225 cat >>confdefs.h <<_ACEOF
   14226 #define size_t unsigned int
   14227 _ACEOF
   14228 
   14229 fi
   14230 
   14231 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14232 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14233 
   14234 else
   14235 
   14236 cat >>confdefs.h <<_ACEOF
   14237 #define ssize_t int
   14238 _ACEOF
   14239 
   14240 fi
   14241 
   14242 
   14243   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   14244 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14245 
   14246 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   14247 
   14248 else
   14249   for ac_type in 'unsigned int' 'unsigned long int' \
   14250 	'unsigned long long int'; do
   14251        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14252 /* end confdefs.h.  */
   14253 $ac_includes_default
   14254 int
   14255 main ()
   14256 {
   14257 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   14258 test_array [0] = 0;
   14259 return test_array [0];
   14260 
   14261   ;
   14262   return 0;
   14263 }
   14264 _ACEOF
   14265 if ac_fn_c_try_compile "$LINENO"; then :
   14266 
   14267 cat >>confdefs.h <<_ACEOF
   14268 #define uintptr_t $ac_type
   14269 _ACEOF
   14270 
   14271 	  ac_type=
   14272 fi
   14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14274        test -z "$ac_type" && break
   14275      done
   14276 fi
   14277 
   14278 
   14279 
   14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   14281 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   14282 if ${ac_cv_header_time+:} false; then :
   14283   $as_echo_n "(cached) " >&6
   14284 else
   14285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14286 /* end confdefs.h.  */
   14287 #include <sys/types.h>
   14288 #include <sys/time.h>
   14289 #include <time.h>
   14290 
   14291 int
   14292 main ()
   14293 {
   14294 if ((struct tm *) 0)
   14295 return 0;
   14296   ;
   14297   return 0;
   14298 }
   14299 _ACEOF
   14300 if ac_fn_c_try_compile "$LINENO"; then :
   14301   ac_cv_header_time=yes
   14302 else
   14303   ac_cv_header_time=no
   14304 fi
   14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14306 fi
   14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   14308 $as_echo "$ac_cv_header_time" >&6; }
   14309 if test $ac_cv_header_time = yes; then
   14310 
   14311 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   14312 
   14313 fi
   14314 
   14315 
   14316 #
   14317 # check for uname library routine
   14318 #
   14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   14320 $as_echo_n "checking for uname... " >&6; }
   14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14322 /* end confdefs.h.  */
   14323 #include <sys/utsname.h>
   14324        #include <stdio.h>
   14325 
   14326 int
   14327 main ()
   14328 {
   14329 
   14330        struct utsname uts;
   14331        uname(&uts);
   14332        printf("running on %s %s %s for %s\n",
   14333 	      uts.sysname, uts.release, uts.version, uts.machine);
   14334 
   14335   ;
   14336   return 0;
   14337 }
   14338 _ACEOF
   14339 if ac_fn_c_try_compile "$LINENO"; then :
   14340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14341 $as_echo "yes" >&6; }
   14342 
   14343 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   14344 
   14345 
   14346 else
   14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14348 $as_echo "no" >&6; }
   14349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   14350 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   14351 
   14352 fi
   14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14354 
   14355 #
   14356 # check for GCC noreturn attribute
   14357 #
   14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   14359 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14361 /* end confdefs.h.  */
   14362 
   14363 int
   14364 main ()
   14365 {
   14366 void foo() __attribute__((noreturn));
   14367   ;
   14368   return 0;
   14369 }
   14370 _ACEOF
   14371 if ac_fn_c_try_compile "$LINENO"; then :
   14372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14373 $as_echo "yes" >&6; }
   14374 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14375 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   14376 else
   14377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14378 $as_echo "no" >&6; }
   14379 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14380 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   14381 fi
   14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14383 
   14384 
   14385 
   14386 #
   14387 # check for GCC malloc attribute
   14388 #
   14389 
   14390 
   14391 
   14392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5
   14393 $as_echo_n "checking for __attribute__((malloc))... " >&6; }
   14394 if ${ax_cv_have_func_attribute_malloc+:} false; then :
   14395   $as_echo_n "(cached) " >&6
   14396 else
   14397 
   14398         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14399 /* end confdefs.h.  */
   14400 
   14401 
   14402                     void *foo( void ) __attribute__((malloc));
   14403 
   14404 int
   14405 main ()
   14406 {
   14407 
   14408   ;
   14409   return 0;
   14410 }
   14411 
   14412 _ACEOF
   14413 if ac_fn_c_try_link "$LINENO"; then :
   14414                                       if test -s conftest.err; then :
   14415   ax_cv_have_func_attribute_malloc=no
   14416 else
   14417   ax_cv_have_func_attribute_malloc=yes
   14418 fi
   14419 else
   14420   ax_cv_have_func_attribute_malloc=no
   14421 fi
   14422 rm -f core conftest.err conftest.$ac_objext \
   14423     conftest$ac_exeext conftest.$ac_ext
   14424 
   14425 fi
   14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5
   14427 $as_echo "$ax_cv_have_func_attribute_malloc" >&6; }
   14428 
   14429     if test yes = $ax_cv_have_func_attribute_malloc; then :
   14430 
   14431 cat >>confdefs.h <<_ACEOF
   14432 #define HAVE_FUNC_ATTRIBUTE_MALLOC 1
   14433 _ACEOF
   14434 
   14435 fi
   14436 
   14437 
   14438 
   14439 
   14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended malloc attributes" >&5
   14441 $as_echo_n "checking for extended malloc attributes... " >&6; }
   14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14443 /* end confdefs.h.  */
   14444 
   14445        #include <stddef.h>
   14446        #include <stdlib.h>
   14447        __attribute__ ((malloc, malloc (free, 1))
   14448        void * xmalloc(size_t sz) { return malloc(sz); }
   14449 
   14450 int
   14451 main ()
   14452 {
   14453 
   14454        void *p = xmalloc(8);
   14455        free(p);
   14456 
   14457   ;
   14458   return 0;
   14459 }
   14460 _ACEOF
   14461 if ac_fn_c_try_compile "$LINENO"; then :
   14462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14463 $as_echo "yes" >&6; }
   14464 
   14465 $as_echo "#define HAVE_MALLOC_EXT_ATTR 1" >>confdefs.h
   14466 
   14467 
   14468 else
   14469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14470 $as_echo "no" >&6; }
   14471 fi
   14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14473 
   14474 #
   14475 # check for GCC returns_nonnull attribute
   14476 #
   14477 
   14478 
   14479 
   14480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((returns_nonnull))" >&5
   14481 $as_echo_n "checking for __attribute__((returns_nonnull))... " >&6; }
   14482 if ${ax_cv_have_func_attribute_returns_nonnull+:} false; then :
   14483   $as_echo_n "(cached) " >&6
   14484 else
   14485 
   14486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14487 /* end confdefs.h.  */
   14488 
   14489 
   14490                     void *foo( void ) __attribute__((returns_nonnull));
   14491 
   14492 int
   14493 main ()
   14494 {
   14495 
   14496   ;
   14497   return 0;
   14498 }
   14499 
   14500 _ACEOF
   14501 if ac_fn_c_try_link "$LINENO"; then :
   14502                                       if test -s conftest.err; then :
   14503   ax_cv_have_func_attribute_returns_nonnull=no
   14504 else
   14505   ax_cv_have_func_attribute_returns_nonnull=yes
   14506 fi
   14507 else
   14508   ax_cv_have_func_attribute_returns_nonnull=no
   14509 fi
   14510 rm -f core conftest.err conftest.$ac_objext \
   14511     conftest$ac_exeext conftest.$ac_ext
   14512 
   14513 fi
   14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_returns_nonnull" >&5
   14515 $as_echo "$ax_cv_have_func_attribute_returns_nonnull" >&6; }
   14516 
   14517     if test yes = $ax_cv_have_func_attribute_returns_nonnull; then :
   14518 
   14519 cat >>confdefs.h <<_ACEOF
   14520 #define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1
   14521 _ACEOF
   14522 
   14523 fi
   14524 
   14525 
   14526 
   14527 
   14528 #
   14529 # check if we have kqueue
   14530 #
   14531 # [pairwise: --enable-kqueue, --disable-kqueue]
   14532 # Check whether --enable-kqueue was given.
   14533 if test "${enable_kqueue+set}" = set; then :
   14534   enableval=$enable_kqueue;
   14535 else
   14536   enable_kqueue="yes"
   14537 fi
   14538 
   14539 
   14540 if test "$enable_kqueue" = "yes"; then :
   14541   for ac_func in kqueue
   14542 do :
   14543   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   14544 if test "x$ac_cv_func_kqueue" = xyes; then :
   14545   cat >>confdefs.h <<_ACEOF
   14546 #define HAVE_KQUEUE 1
   14547 _ACEOF
   14548 
   14549 fi
   14550 done
   14551 
   14552 fi
   14553 
   14554 #
   14555 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   14556 # so we need to try running the code, not just test its existence.
   14557 #
   14558 # [pairwise: --enable-epoll, --disable-epoll]
   14559 # Check whether --enable-epoll was given.
   14560 if test "${enable_epoll+set}" = set; then :
   14561   enableval=$enable_epoll;
   14562 else
   14563   enable_epoll="yes"
   14564 fi
   14565 
   14566 
   14567 if test "$enable_epoll" = "yes"; then :
   14568   for ac_func in epoll_create1
   14569 do :
   14570   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   14571 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   14572   cat >>confdefs.h <<_ACEOF
   14573 #define HAVE_EPOLL_CREATE1 1
   14574 _ACEOF
   14575 
   14576 fi
   14577 done
   14578 
   14579 fi
   14580 
   14581 #
   14582 # check if we support /dev/poll
   14583 #
   14584 # [pairwise: --enable-devpoll, --disable-devpoll]
   14585 # Check whether --enable-devpoll was given.
   14586 if test "${enable_devpoll+set}" = set; then :
   14587   enableval=$enable_devpoll;
   14588 else
   14589   enable_devpoll="yes"
   14590 fi
   14591 
   14592 if test "$enable_devpoll" = "yes"; then :
   14593   for ac_header in sys/devpoll.h devpoll.h
   14594 do :
   14595   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14596 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14598   cat >>confdefs.h <<_ACEOF
   14599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14600 _ACEOF
   14601 
   14602 fi
   14603 
   14604 done
   14605 
   14606 fi
   14607 
   14608 #
   14609 # Find the machine's endian flavor.
   14610 #
   14611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   14612 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   14613 if ${ac_cv_c_bigendian+:} false; then :
   14614   $as_echo_n "(cached) " >&6
   14615 else
   14616   ac_cv_c_bigendian=unknown
   14617     # See if we're dealing with a universal compiler.
   14618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14619 /* end confdefs.h.  */
   14620 #ifndef __APPLE_CC__
   14621 	       not a universal capable compiler
   14622 	     #endif
   14623 	     typedef int dummy;
   14624 
   14625 _ACEOF
   14626 if ac_fn_c_try_compile "$LINENO"; then :
   14627 
   14628 	# Check for potential -arch flags.  It is not universal unless
   14629 	# there are at least two -arch flags with different values.
   14630 	ac_arch=
   14631 	ac_prev=
   14632 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   14633 	 if test -n "$ac_prev"; then
   14634 	   case $ac_word in
   14635 	     i?86 | x86_64 | ppc | ppc64)
   14636 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   14637 		 ac_arch=$ac_word
   14638 	       else
   14639 		 ac_cv_c_bigendian=universal
   14640 		 break
   14641 	       fi
   14642 	       ;;
   14643 	   esac
   14644 	   ac_prev=
   14645 	 elif test "x$ac_word" = "x-arch"; then
   14646 	   ac_prev=arch
   14647 	 fi
   14648        done
   14649 fi
   14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14651     if test $ac_cv_c_bigendian = unknown; then
   14652       # See if sys/param.h defines the BYTE_ORDER macro.
   14653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14654 /* end confdefs.h.  */
   14655 #include <sys/types.h>
   14656 	     #include <sys/param.h>
   14657 
   14658 int
   14659 main ()
   14660 {
   14661 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   14662 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   14663 		     && LITTLE_ENDIAN)
   14664 	      bogus endian macros
   14665 	     #endif
   14666 
   14667   ;
   14668   return 0;
   14669 }
   14670 _ACEOF
   14671 if ac_fn_c_try_compile "$LINENO"; then :
   14672   # It does; now see whether it defined to BIG_ENDIAN or not.
   14673 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14674 /* end confdefs.h.  */
   14675 #include <sys/types.h>
   14676 		#include <sys/param.h>
   14677 
   14678 int
   14679 main ()
   14680 {
   14681 #if BYTE_ORDER != BIG_ENDIAN
   14682 		 not big endian
   14683 		#endif
   14684 
   14685   ;
   14686   return 0;
   14687 }
   14688 _ACEOF
   14689 if ac_fn_c_try_compile "$LINENO"; then :
   14690   ac_cv_c_bigendian=yes
   14691 else
   14692   ac_cv_c_bigendian=no
   14693 fi
   14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14695 fi
   14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14697     fi
   14698     if test $ac_cv_c_bigendian = unknown; then
   14699       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   14700       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14701 /* end confdefs.h.  */
   14702 #include <limits.h>
   14703 
   14704 int
   14705 main ()
   14706 {
   14707 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   14708 	      bogus endian macros
   14709 	     #endif
   14710 
   14711   ;
   14712   return 0;
   14713 }
   14714 _ACEOF
   14715 if ac_fn_c_try_compile "$LINENO"; then :
   14716   # It does; now see whether it defined to _BIG_ENDIAN or not.
   14717 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14718 /* end confdefs.h.  */
   14719 #include <limits.h>
   14720 
   14721 int
   14722 main ()
   14723 {
   14724 #ifndef _BIG_ENDIAN
   14725 		 not big endian
   14726 		#endif
   14727 
   14728   ;
   14729   return 0;
   14730 }
   14731 _ACEOF
   14732 if ac_fn_c_try_compile "$LINENO"; then :
   14733   ac_cv_c_bigendian=yes
   14734 else
   14735   ac_cv_c_bigendian=no
   14736 fi
   14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14738 fi
   14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14740     fi
   14741     if test $ac_cv_c_bigendian = unknown; then
   14742       # Compile a test program.
   14743       if test "$cross_compiling" = yes; then :
   14744   # Try to guess by grepping values from an object file.
   14745 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14746 /* end confdefs.h.  */
   14747 short int ascii_mm[] =
   14748 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14749 		short int ascii_ii[] =
   14750 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14751 		int use_ascii (int i) {
   14752 		  return ascii_mm[i] + ascii_ii[i];
   14753 		}
   14754 		short int ebcdic_ii[] =
   14755 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14756 		short int ebcdic_mm[] =
   14757 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14758 		int use_ebcdic (int i) {
   14759 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14760 		}
   14761 		extern int foo;
   14762 
   14763 int
   14764 main ()
   14765 {
   14766 return use_ascii (foo) == use_ebcdic (foo);
   14767   ;
   14768   return 0;
   14769 }
   14770 _ACEOF
   14771 if ac_fn_c_try_compile "$LINENO"; then :
   14772   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14773 	      ac_cv_c_bigendian=yes
   14774 	    fi
   14775 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14776 	      if test "$ac_cv_c_bigendian" = unknown; then
   14777 		ac_cv_c_bigendian=no
   14778 	      else
   14779 		# finding both strings is unlikely to happen, but who knows?
   14780 		ac_cv_c_bigendian=unknown
   14781 	      fi
   14782 	    fi
   14783 fi
   14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14785 else
   14786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14787 /* end confdefs.h.  */
   14788 $ac_includes_default
   14789 int
   14790 main ()
   14791 {
   14792 
   14793 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14794 	     union
   14795 	     {
   14796 	       long int l;
   14797 	       char c[sizeof (long int)];
   14798 	     } u;
   14799 	     u.l = 1;
   14800 	     return u.c[sizeof (long int) - 1] == 1;
   14801 
   14802   ;
   14803   return 0;
   14804 }
   14805 _ACEOF
   14806 if ac_fn_c_try_run "$LINENO"; then :
   14807   ac_cv_c_bigendian=no
   14808 else
   14809   ac_cv_c_bigendian=yes
   14810 fi
   14811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14812   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14813 fi
   14814 
   14815     fi
   14816 fi
   14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14818 $as_echo "$ac_cv_c_bigendian" >&6; }
   14819  case $ac_cv_c_bigendian in #(
   14820    yes)
   14821      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14822 ;; #(
   14823    no)
   14824       ;; #(
   14825    universal)
   14826 
   14827 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14828 
   14829      ;; #(
   14830    *)
   14831      as_fn_error $? "unknown endianness
   14832  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14833  esac
   14834 
   14835 
   14836 #
   14837 # GeoIP support?
   14838 #
   14839 # Should be on by default if libmaxminddb exists.
   14840 #
   14841 # [pairwise: skip]
   14842 
   14843 # Check whether --with-geoip2 was given.
   14844 if test "${with_geoip2+set}" = set; then :
   14845   withval=$with_geoip2; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&5
   14846 $as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
   14847 else
   14848   with_geoip2="auto"
   14849 fi
   14850 
   14851 
   14852 # [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
   14853 # Check whether --enable-geoip was given.
   14854 if test "${enable_geoip+set}" = set; then :
   14855   enableval=$enable_geoip;
   14856 else
   14857   enable_geoip="yes"
   14858 fi
   14859 
   14860 
   14861 # [pairwise: skip]
   14862 
   14863 # Check whether --with-maxminddb was given.
   14864 if test "${with_maxminddb+set}" = set; then :
   14865   withval=$with_maxminddb;
   14866 else
   14867   with_maxminddb="$with_geoip2"
   14868 fi
   14869 
   14870 
   14871 GEOIP2LINKSRCS=
   14872 GEOIP2LINKOBJS=
   14873 if test "$enable_geoip" = "yes"; then :
   14874   case $with_maxminddb in #(
   14875   no) :
   14876     as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
   14877   auto) :
   14878 
   14879 pkg_failed=no
   14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14881 $as_echo_n "checking for libmaxminddb... " >&6; }
   14882 
   14883 if test -n "$MAXMINDDB_CFLAGS"; then
   14884     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14885  elif test -n "$PKG_CONFIG"; then
   14886     if test -n "$PKG_CONFIG" && \
   14887     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14888   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14889   ac_status=$?
   14890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14891   test $ac_status = 0; }; then
   14892   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14893 		      test "x$?" != "x0" && pkg_failed=yes
   14894 else
   14895   pkg_failed=yes
   14896 fi
   14897  else
   14898     pkg_failed=untried
   14899 fi
   14900 if test -n "$MAXMINDDB_LIBS"; then
   14901     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14902  elif test -n "$PKG_CONFIG"; then
   14903     if test -n "$PKG_CONFIG" && \
   14904     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14905   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14906   ac_status=$?
   14907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14908   test $ac_status = 0; }; then
   14909   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14910 		      test "x$?" != "x0" && pkg_failed=yes
   14911 else
   14912   pkg_failed=yes
   14913 fi
   14914  else
   14915     pkg_failed=untried
   14916 fi
   14917 
   14918 
   14919 
   14920 if test $pkg_failed = yes; then
   14921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14922 $as_echo "no" >&6; }
   14923 
   14924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14925         _pkg_short_errors_supported=yes
   14926 else
   14927         _pkg_short_errors_supported=no
   14928 fi
   14929         if test $_pkg_short_errors_supported = yes; then
   14930 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14931         else
   14932 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14933         fi
   14934 	# Put the nasty error message in config.log where it belongs
   14935 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14936 
   14937 	:
   14938 elif test $pkg_failed = untried; then
   14939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14940 $as_echo "no" >&6; }
   14941 	:
   14942 else
   14943 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14944 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14946 $as_echo "yes" >&6; }
   14947 
   14948 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14949 
   14950 
   14951 if test -n "$MAXMINDDB_PREFIX"; then
   14952     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14953  elif test -n "$PKG_CONFIG"; then
   14954     if test -n "$PKG_CONFIG" && \
   14955     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14956   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14957   ac_status=$?
   14958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14959   test $ac_status = 0; }; then
   14960   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14961 		      test "x$?" != "x0" && pkg_failed=yes
   14962 else
   14963   pkg_failed=yes
   14964 fi
   14965  else
   14966     pkg_failed=untried
   14967 fi
   14968 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14969 
   14970 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14971   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14972 fi
   14973 					  GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14974 					  GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14975 
   14976 fi ;; #(
   14977   yes) :
   14978 
   14979 pkg_failed=no
   14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14981 $as_echo_n "checking for libmaxminddb... " >&6; }
   14982 
   14983 if test -n "$MAXMINDDB_CFLAGS"; then
   14984     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14985  elif test -n "$PKG_CONFIG"; then
   14986     if test -n "$PKG_CONFIG" && \
   14987     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14988   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14989   ac_status=$?
   14990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14991   test $ac_status = 0; }; then
   14992   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14993 		      test "x$?" != "x0" && pkg_failed=yes
   14994 else
   14995   pkg_failed=yes
   14996 fi
   14997  else
   14998     pkg_failed=untried
   14999 fi
   15000 if test -n "$MAXMINDDB_LIBS"; then
   15001     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   15002  elif test -n "$PKG_CONFIG"; then
   15003     if test -n "$PKG_CONFIG" && \
   15004     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   15005   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   15006   ac_status=$?
   15007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15008   test $ac_status = 0; }; then
   15009   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   15010 		      test "x$?" != "x0" && pkg_failed=yes
   15011 else
   15012   pkg_failed=yes
   15013 fi
   15014  else
   15015     pkg_failed=untried
   15016 fi
   15017 
   15018 
   15019 
   15020 if test $pkg_failed = yes; then
   15021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15022 $as_echo "no" >&6; }
   15023 
   15024 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15025         _pkg_short_errors_supported=yes
   15026 else
   15027         _pkg_short_errors_supported=no
   15028 fi
   15029         if test $_pkg_short_errors_supported = yes; then
   15030 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   15031         else
   15032 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   15033         fi
   15034 	# Put the nasty error message in config.log where it belongs
   15035 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   15036 
   15037 	as_fn_error $? "Package requirements (libmaxminddb) were not met:
   15038 
   15039 $MAXMINDDB_PKG_ERRORS
   15040 
   15041 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   15042 installed software in a non-standard prefix.
   15043 
   15044 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   15045 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   15046 See the pkg-config man page for more details." "$LINENO" 5
   15047 elif test $pkg_failed = untried; then
   15048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15049 $as_echo "no" >&6; }
   15050 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   15051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   15052 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   15053 is in your PATH or set the PKG_CONFIG environment variable to the full
   15054 path to pkg-config.
   15055 
   15056 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   15057 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   15058 See the pkg-config man page for more details.
   15059 
   15060 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   15061 See \`config.log' for more details" "$LINENO" 5; }
   15062 else
   15063 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   15064 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   15065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15066 $as_echo "yes" >&6; }
   15067 
   15068 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   15069 
   15070 
   15071 if test -n "$MAXMINDDB_PREFIX"; then
   15072     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   15073  elif test -n "$PKG_CONFIG"; then
   15074     if test -n "$PKG_CONFIG" && \
   15075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   15076   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   15077   ac_status=$?
   15078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15079   test $ac_status = 0; }; then
   15080   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   15081 		      test "x$?" != "x0" && pkg_failed=yes
   15082 else
   15083   pkg_failed=yes
   15084 fi
   15085  else
   15086     pkg_failed=untried
   15087 fi
   15088 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   15089 
   15090 if test "x$MAXMINDDB_PREFIX" = x""; then :
   15091   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   15092 fi
   15093 					 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   15094 					 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   15095 
   15096 fi ;; #(
   15097   *) :
   15098      # default
   15099 
   15100 
   15101   CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
   15102 
   15103 
   15104 
   15105   CFLAGS_maxminddb_ax_save_flags=$CFLAGS
   15106 
   15107 
   15108 
   15109   CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
   15110 
   15111 
   15112 
   15113   CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
   15114 
   15115 
   15116 
   15117   ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
   15118 
   15119 
   15120 
   15121   FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
   15122 
   15123 
   15124 
   15125   FCLIBS_maxminddb_ax_save_flags=$FCLIBS
   15126 
   15127 
   15128 
   15129   FFLAGS_maxminddb_ax_save_flags=$FFLAGS
   15130 
   15131 
   15132 
   15133   FLIBS_maxminddb_ax_save_flags=$FLIBS
   15134 
   15135 
   15136 
   15137   GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
   15138 
   15139 
   15140 
   15141   JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
   15142 
   15143 
   15144 
   15145   LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
   15146 
   15147 
   15148 
   15149   LIBS_maxminddb_ax_save_flags=$LIBS
   15150 
   15151 
   15152 
   15153   OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
   15154 
   15155 
   15156 
   15157   OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
   15158 
   15159 
   15160 
   15161   UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
   15162 
   15163 
   15164 
   15165   VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
   15166 
   15167 
   15168 
   15169 		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
   15170 		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
   15171 		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
   15172 		   LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
   15173 		   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
   15174 $as_echo_n "checking for library containing MMDB_open... " >&6; }
   15175 if ${ac_cv_search_MMDB_open+:} false; then :
   15176   $as_echo_n "(cached) " >&6
   15177 else
   15178   ac_func_search_save_LIBS=$LIBS
   15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15180 /* end confdefs.h.  */
   15181 
   15182 /* Override any GCC internal prototype to avoid an error.
   15183    Use char because int might match the return type of a GCC
   15184    builtin and then its argument prototype would still apply.  */
   15185 #ifdef __cplusplus
   15186 extern "C"
   15187 #endif
   15188 char MMDB_open ();
   15189 int
   15190 main ()
   15191 {
   15192 return MMDB_open ();
   15193   ;
   15194   return 0;
   15195 }
   15196 _ACEOF
   15197 for ac_lib in '' maxminddb; do
   15198   if test -z "$ac_lib"; then
   15199     ac_res="none required"
   15200   else
   15201     ac_res=-l$ac_lib
   15202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15203   fi
   15204   if ac_fn_c_try_link "$LINENO"; then :
   15205   ac_cv_search_MMDB_open=$ac_res
   15206 fi
   15207 rm -f core conftest.err conftest.$ac_objext \
   15208     conftest$ac_exeext
   15209   if ${ac_cv_search_MMDB_open+:} false; then :
   15210   break
   15211 fi
   15212 done
   15213 if ${ac_cv_search_MMDB_open+:} false; then :
   15214 
   15215 else
   15216   ac_cv_search_MMDB_open=no
   15217 fi
   15218 rm conftest.$ac_ext
   15219 LIBS=$ac_func_search_save_LIBS
   15220 fi
   15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
   15222 $as_echo "$ac_cv_search_MMDB_open" >&6; }
   15223 ac_res=$ac_cv_search_MMDB_open
   15224 if test "$ac_res" != no; then :
   15225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15226 
   15227 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   15228 
   15229 				   GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   15230 				   GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   15231 				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
   15232 				   { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
   15233 $as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
   15234 				   MAXMINDDB_PREFIX=$with_maxminddb
   15235 
   15236 else
   15237   as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
   15238 fi
   15239 
   15240 
   15241   CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
   15242 
   15243 
   15244   CFLAGS=$CFLAGS_maxminddb_ax_save_flags
   15245 
   15246 
   15247   CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
   15248 
   15249 
   15250   CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
   15251 
   15252 
   15253   ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
   15254 
   15255 
   15256   FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
   15257 
   15258 
   15259   FCLIBS=$FCLIBS_maxminddb_ax_save_flags
   15260 
   15261 
   15262   FFLAGS=$FFLAGS_maxminddb_ax_save_flags
   15263 
   15264 
   15265   FLIBS=$FLIBS_maxminddb_ax_save_flags
   15266 
   15267 
   15268   GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
   15269 
   15270 
   15271   JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
   15272 
   15273 
   15274   LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
   15275 
   15276 
   15277   LIBS=$LIBS_maxminddb_ax_save_flags
   15278 
   15279 
   15280   OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
   15281 
   15282 
   15283   OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
   15284 
   15285 
   15286   UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
   15287 
   15288 
   15289   VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
   15290 
   15291 
   15292 
   15293 	        ;;
   15294 esac
   15295 
   15296 
   15297 fi
   15298 
   15299 
   15300 
   15301 
   15302 
   15303 
   15304 #
   15305 # Do we have arc4random(), etc ?
   15306 #
   15307 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   15308 do :
   15309   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15312   cat >>confdefs.h <<_ACEOF
   15313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15314 _ACEOF
   15315 
   15316 fi
   15317 done
   15318 
   15319 
   15320 
   15321 
   15322 
   15323 
   15324 ac_ext=c
   15325 ac_cpp='$CPP $CPPFLAGS'
   15326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15329 
   15330 ax_pthread_ok=no
   15331 
   15332 # We used to check for pthread.h first, but this fails if pthread.h
   15333 # requires special compiler flags (e.g. on Tru64 or Sequent).
   15334 # It gets checked for in the link test anyway.
   15335 
   15336 # First of all, check if the user has set any of the PTHREAD_LIBS,
   15337 # etcetera environment variables, and if threads linking works using
   15338 # them:
   15339 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   15340         ax_pthread_save_CC="$CC"
   15341         ax_pthread_save_CFLAGS="$CFLAGS"
   15342         ax_pthread_save_LIBS="$LIBS"
   15343         if test "x$PTHREAD_CC" != "x"; then :
   15344   CC="$PTHREAD_CC"
   15345 fi
   15346         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15347         LIBS="$PTHREAD_LIBS $LIBS"
   15348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   15349 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   15350         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15351 /* end confdefs.h.  */
   15352 
   15353 /* Override any GCC internal prototype to avoid an error.
   15354    Use char because int might match the return type of a GCC
   15355    builtin and then its argument prototype would still apply.  */
   15356 #ifdef __cplusplus
   15357 extern "C"
   15358 #endif
   15359 char pthread_join ();
   15360 int
   15361 main ()
   15362 {
   15363 return pthread_join ();
   15364   ;
   15365   return 0;
   15366 }
   15367 _ACEOF
   15368 if ac_fn_c_try_link "$LINENO"; then :
   15369   ax_pthread_ok=yes
   15370 fi
   15371 rm -f core conftest.err conftest.$ac_objext \
   15372     conftest$ac_exeext conftest.$ac_ext
   15373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15374 $as_echo "$ax_pthread_ok" >&6; }
   15375         if test "x$ax_pthread_ok" = "xno"; then
   15376                 PTHREAD_LIBS=""
   15377                 PTHREAD_CFLAGS=""
   15378         fi
   15379         CC="$ax_pthread_save_CC"
   15380         CFLAGS="$ax_pthread_save_CFLAGS"
   15381         LIBS="$ax_pthread_save_LIBS"
   15382 fi
   15383 
   15384 # We must check for the threads library under a number of different
   15385 # names; the ordering is very important because some systems
   15386 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   15387 # libraries is broken (non-POSIX).
   15388 
   15389 # Create a list of thread flags to try.  Items starting with a "-" are
   15390 # C compiler flags, and other items are library names, except for "none"
   15391 # which indicates that we try without any flags at all, and "pthread-config"
   15392 # which is a program returning the flags for the Pth emulation library.
   15393 
   15394 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   15395 
   15396 # The ordering *is* (sometimes) important.  Some notes on the
   15397 # individual items follow:
   15398 
   15399 # pthreads: AIX (must check this before -lpthread)
   15400 # none: in case threads are in libc; should be tried before -Kthread and
   15401 #       other compiler flags to prevent continual compiler warnings
   15402 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   15403 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   15404 #           (Note: HP C rejects this with "bad form for `-t' option")
   15405 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   15406 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   15407 #      doesn't hurt to check since this sometimes defines pthreads and
   15408 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   15409 #      is present but should not be used directly; and before -mthreads,
   15410 #      because the compiler interprets this as "-mt" + "-hreads")
   15411 # -mthreads: Mingw32/gcc, Lynx/gcc
   15412 # pthread: Linux, etcetera
   15413 # --thread-safe: KAI C++
   15414 # pthread-config: use pthread-config program (for GNU Pth library)
   15415 
   15416 case $host_os in
   15417 
   15418         freebsd*)
   15419 
   15420         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   15421         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   15422 
   15423         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   15424         ;;
   15425 
   15426         hpux*)
   15427 
   15428         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   15429         # multi-threading and also sets -lpthread."
   15430 
   15431         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   15432         ;;
   15433 
   15434         openedition*)
   15435 
   15436         # IBM z/OS requires a feature-test macro to be defined in order to
   15437         # enable POSIX threads at all, so give the user a hint if this is
   15438         # not set. (We don't define these ourselves, as they can affect
   15439         # other portions of the system API in unpredictable ways.)
   15440 
   15441         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15442 /* end confdefs.h.  */
   15443 
   15444 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   15445              AX_PTHREAD_ZOS_MISSING
   15446 #            endif
   15447 
   15448 _ACEOF
   15449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15450   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   15451   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   15452 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   15453 fi
   15454 rm -f conftest*
   15455 
   15456         ;;
   15457 
   15458         solaris*)
   15459 
   15460         # On Solaris (at least, for some versions), libc contains stubbed
   15461         # (non-functional) versions of the pthreads routines, so link-based
   15462         # tests will erroneously succeed. (N.B.: The stubs are missing
   15463         # pthread_cleanup_push, or rather a function called by this macro,
   15464         # so we could check for that, but who knows whether they'll stub
   15465         # that too in a future libc.)  So we'll check first for the
   15466         # standard Solaris way of linking pthreads (-mt -lpthread).
   15467 
   15468         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   15469         ;;
   15470 esac
   15471 
   15472 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   15473 
   15474 if test "x$GCC" = "xyes"; then :
   15475   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   15476 fi
   15477 
   15478 # The presence of a feature test macro requesting re-entrant function
   15479 # definitions is, on some systems, a strong hint that pthreads support is
   15480 # correctly enabled
   15481 
   15482 case $host_os in
   15483         darwin* | hpux* | linux* | osf* | solaris*)
   15484         ax_pthread_check_macro="_REENTRANT"
   15485         ;;
   15486 
   15487         aix*)
   15488         ax_pthread_check_macro="_THREAD_SAFE"
   15489         ;;
   15490 
   15491         *)
   15492         ax_pthread_check_macro="--"
   15493         ;;
   15494 esac
   15495 if test "x$ax_pthread_check_macro" = "x--"; then :
   15496   ax_pthread_check_cond=0
   15497 else
   15498   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   15499 fi
   15500 
   15501 # Are we compiling with Clang?
   15502 
   15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   15504 $as_echo_n "checking whether $CC is Clang... " >&6; }
   15505 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   15506   $as_echo_n "(cached) " >&6
   15507 else
   15508   ax_cv_PTHREAD_CLANG=no
   15509      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   15510      if test "x$GCC" = "xyes"; then
   15511         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15512 /* end confdefs.h.  */
   15513 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   15514 #            if defined(__clang__) && defined(__llvm__)
   15515              AX_PTHREAD_CC_IS_CLANG
   15516 #            endif
   15517 
   15518 _ACEOF
   15519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15520   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   15521   ax_cv_PTHREAD_CLANG=yes
   15522 fi
   15523 rm -f conftest*
   15524 
   15525      fi
   15526 
   15527 fi
   15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   15529 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   15530 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   15531 
   15532 ax_pthread_clang_warning=no
   15533 
   15534 # Clang needs special handling, because older versions handle the -pthread
   15535 # option in a rather... idiosyncratic way
   15536 
   15537 if test "x$ax_pthread_clang" = "xyes"; then
   15538 
   15539         # Clang takes -pthread; it has never supported any other flag
   15540 
   15541         # (Note 1: This will need to be revisited if a system that Clang
   15542         # supports has POSIX threads in a separate library.  This tends not
   15543         # to be the way of modern systems, but it's conceivable.)
   15544 
   15545         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   15546         # to get POSIX threads support; the API is always present and
   15547         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   15548         # -pthread does define _REENTRANT, and while the Darwin headers
   15549         # ignore this macro, third-party headers might not.)
   15550 
   15551         PTHREAD_CFLAGS="-pthread"
   15552         PTHREAD_LIBS=
   15553 
   15554         ax_pthread_ok=yes
   15555 
   15556         # However, older versions of Clang make a point of warning the user
   15557         # that, in an invocation where only linking and no compilation is
   15558         # taking place, the -pthread option has no effect ("argument unused
   15559         # during compilation").  They expect -pthread to be passed in only
   15560         # when source code is being compiled.
   15561         #
   15562         # Problem is, this is at odds with the way Automake and most other
   15563         # C build frameworks function, which is that the same flags used in
   15564         # compilation (CFLAGS) are also used in linking.  Many systems
   15565         # supported by AX_PTHREAD require exactly this for POSIX threads
   15566         # support, and in fact it is often not straightforward to specify a
   15567         # flag that is used only in the compilation phase and not in
   15568         # linking.  Such a scenario is extremely rare in practice.
   15569         #
   15570         # Even though use of the -pthread flag in linking would only print
   15571         # a warning, this can be a nuisance for well-run software projects
   15572         # that build with -Werror.  So if the active version of Clang has
   15573         # this misfeature, we search for an option to squash it.
   15574 
   15575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   15576 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   15577 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   15578   $as_echo_n "(cached) " >&6
   15579 else
   15580   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   15581              # Create an alternate version of $ac_link that compiles and
   15582              # links in two steps (.c -> .o, .o -> exe) instead of one
   15583              # (.c -> exe), because the warning occurs only in the second
   15584              # step
   15585              ax_pthread_save_ac_link="$ac_link"
   15586              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   15587              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   15588              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   15589              ax_pthread_save_CFLAGS="$CFLAGS"
   15590              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   15591                 if test "x$ax_pthread_try" = "xunknown"; then :
   15592   break
   15593 fi
   15594                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   15595                 ac_link="$ax_pthread_save_ac_link"
   15596                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15597 /* end confdefs.h.  */
   15598 int main(void){return 0;}
   15599 _ACEOF
   15600 if ac_fn_c_try_link "$LINENO"; then :
   15601   ac_link="$ax_pthread_2step_ac_link"
   15602                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15603 /* end confdefs.h.  */
   15604 int main(void){return 0;}
   15605 _ACEOF
   15606 if ac_fn_c_try_link "$LINENO"; then :
   15607   break
   15608 fi
   15609 rm -f core conftest.err conftest.$ac_objext \
   15610     conftest$ac_exeext conftest.$ac_ext
   15611 
   15612 fi
   15613 rm -f core conftest.err conftest.$ac_objext \
   15614     conftest$ac_exeext conftest.$ac_ext
   15615              done
   15616              ac_link="$ax_pthread_save_ac_link"
   15617              CFLAGS="$ax_pthread_save_CFLAGS"
   15618              if test "x$ax_pthread_try" = "x"; then :
   15619   ax_pthread_try=no
   15620 fi
   15621              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   15622 
   15623 fi
   15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   15625 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   15626 
   15627         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   15628                 no | unknown) ;;
   15629                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   15630         esac
   15631 
   15632 fi # $ax_pthread_clang = yes
   15633 
   15634 if test "x$ax_pthread_ok" = "xno"; then
   15635 for ax_pthread_try_flag in $ax_pthread_flags; do
   15636 
   15637         case $ax_pthread_try_flag in
   15638                 none)
   15639                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   15640 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   15641                 ;;
   15642 
   15643                 -mt,pthread)
   15644                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   15645 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   15646                 PTHREAD_CFLAGS="-mt"
   15647                 PTHREAD_LIBS="-lpthread"
   15648                 ;;
   15649 
   15650                 -*)
   15651                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   15652 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   15653                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   15654                 ;;
   15655 
   15656                 pthread-config)
   15657                 # Extract the first word of "pthread-config", so it can be a program name with args.
   15658 set dummy pthread-config; ac_word=$2
   15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15660 $as_echo_n "checking for $ac_word... " >&6; }
   15661 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   15662   $as_echo_n "(cached) " >&6
   15663 else
   15664   if test -n "$ax_pthread_config"; then
   15665   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   15666 else
   15667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15668 for as_dir in $PATH
   15669 do
   15670   IFS=$as_save_IFS
   15671   test -z "$as_dir" && as_dir=.
   15672     for ac_exec_ext in '' $ac_executable_extensions; do
   15673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15674     ac_cv_prog_ax_pthread_config="yes"
   15675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15676     break 2
   15677   fi
   15678 done
   15679   done
   15680 IFS=$as_save_IFS
   15681 
   15682   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   15683 fi
   15684 fi
   15685 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   15686 if test -n "$ax_pthread_config"; then
   15687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   15688 $as_echo "$ax_pthread_config" >&6; }
   15689 else
   15690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15691 $as_echo "no" >&6; }
   15692 fi
   15693 
   15694 
   15695                 if test "x$ax_pthread_config" = "xno"; then :
   15696   continue
   15697 fi
   15698                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   15699                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   15700                 ;;
   15701 
   15702                 *)
   15703                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   15704 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   15705                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   15706                 ;;
   15707         esac
   15708 
   15709         ax_pthread_save_CFLAGS="$CFLAGS"
   15710         ax_pthread_save_LIBS="$LIBS"
   15711         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15712         LIBS="$PTHREAD_LIBS $LIBS"
   15713 
   15714         # Check for various functions.  We must include pthread.h,
   15715         # since some functions may be macros.  (On the Sequent, we
   15716         # need a special flag -Kthread to make this header compile.)
   15717         # We check for pthread_join because it is in -lpthread on IRIX
   15718         # while pthread_create is in libc.  We check for pthread_attr_init
   15719         # due to DEC craziness with -lpthreads.  We check for
   15720         # pthread_cleanup_push because it is one of the few pthread
   15721         # functions on Solaris that doesn't have a non-functional libc stub.
   15722         # We try pthread_create on general principles.
   15723 
   15724         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15725 /* end confdefs.h.  */
   15726 #include <pthread.h>
   15727 #                       if $ax_pthread_check_cond
   15728 #                        error "$ax_pthread_check_macro must be defined"
   15729 #                       endif
   15730                         static void routine(void *a) { a = 0; }
   15731                         static void *start_routine(void *a) { return a; }
   15732 int
   15733 main ()
   15734 {
   15735 pthread_t th; pthread_attr_t attr;
   15736                         pthread_create(&th, 0, start_routine, 0);
   15737                         pthread_join(th, 0);
   15738                         pthread_attr_init(&attr);
   15739                         pthread_cleanup_push(routine, 0);
   15740                         pthread_cleanup_pop(0) /* ; */
   15741   ;
   15742   return 0;
   15743 }
   15744 _ACEOF
   15745 if ac_fn_c_try_link "$LINENO"; then :
   15746   ax_pthread_ok=yes
   15747 fi
   15748 rm -f core conftest.err conftest.$ac_objext \
   15749     conftest$ac_exeext conftest.$ac_ext
   15750 
   15751         CFLAGS="$ax_pthread_save_CFLAGS"
   15752         LIBS="$ax_pthread_save_LIBS"
   15753 
   15754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15755 $as_echo "$ax_pthread_ok" >&6; }
   15756         if test "x$ax_pthread_ok" = "xyes"; then :
   15757   break
   15758 fi
   15759 
   15760         PTHREAD_LIBS=""
   15761         PTHREAD_CFLAGS=""
   15762 done
   15763 fi
   15764 
   15765 # Various other checks:
   15766 if test "x$ax_pthread_ok" = "xyes"; then
   15767         ax_pthread_save_CFLAGS="$CFLAGS"
   15768         ax_pthread_save_LIBS="$LIBS"
   15769         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15770         LIBS="$PTHREAD_LIBS $LIBS"
   15771 
   15772         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   15773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   15774 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   15775 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   15776   $as_echo_n "(cached) " >&6
   15777 else
   15778   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   15779              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   15780                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15781 /* end confdefs.h.  */
   15782 #include <pthread.h>
   15783 int
   15784 main ()
   15785 {
   15786 int attr = $ax_pthread_attr; return attr /* ; */
   15787   ;
   15788   return 0;
   15789 }
   15790 _ACEOF
   15791 if ac_fn_c_try_link "$LINENO"; then :
   15792   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   15793 fi
   15794 rm -f core conftest.err conftest.$ac_objext \
   15795     conftest$ac_exeext conftest.$ac_ext
   15796              done
   15797 
   15798 fi
   15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   15800 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   15801         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   15802                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   15803                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   15804 
   15805 cat >>confdefs.h <<_ACEOF
   15806 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   15807 _ACEOF
   15808 
   15809                ax_pthread_joinable_attr_defined=yes
   15810 
   15811 fi
   15812 
   15813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   15814 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   15815 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   15816   $as_echo_n "(cached) " >&6
   15817 else
   15818   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   15819              case $host_os in
   15820              solaris*)
   15821              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   15822              ;;
   15823              esac
   15824 
   15825 fi
   15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   15827 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   15828         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   15829                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   15830   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   15831                ax_pthread_special_flags_added=yes
   15832 fi
   15833 
   15834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   15835 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   15836 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   15837   $as_echo_n "(cached) " >&6
   15838 else
   15839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15840 /* end confdefs.h.  */
   15841 #include <pthread.h>
   15842 int
   15843 main ()
   15844 {
   15845 int i = PTHREAD_PRIO_INHERIT;
   15846   ;
   15847   return 0;
   15848 }
   15849 _ACEOF
   15850 if ac_fn_c_try_link "$LINENO"; then :
   15851   ax_cv_PTHREAD_PRIO_INHERIT=yes
   15852 else
   15853   ax_cv_PTHREAD_PRIO_INHERIT=no
   15854 fi
   15855 rm -f core conftest.err conftest.$ac_objext \
   15856     conftest$ac_exeext conftest.$ac_ext
   15857 
   15858 fi
   15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   15860 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   15861         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   15862                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   15863 
   15864 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   15865 
   15866                ax_pthread_prio_inherit_defined=yes
   15867 
   15868 fi
   15869 
   15870         CFLAGS="$ax_pthread_save_CFLAGS"
   15871         LIBS="$ax_pthread_save_LIBS"
   15872 
   15873         # More AIX lossage: compile with *_r variant
   15874         if test "x$GCC" != "xyes"; then
   15875             case $host_os in
   15876                 aix*)
   15877                 case "x/$CC" in #(
   15878   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   15879     #handle absolute path differently from PATH based program lookup
   15880                      case "x$CC" in #(
   15881   x/*) :
   15882     if as_fn_executable_p ${CC}_r; then :
   15883   PTHREAD_CC="${CC}_r"
   15884 fi ;; #(
   15885   *) :
   15886     for ac_prog in ${CC}_r
   15887 do
   15888   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15889 set dummy $ac_prog; ac_word=$2
   15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15891 $as_echo_n "checking for $ac_word... " >&6; }
   15892 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   15893   $as_echo_n "(cached) " >&6
   15894 else
   15895   if test -n "$PTHREAD_CC"; then
   15896   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   15897 else
   15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15899 for as_dir in $PATH
   15900 do
   15901   IFS=$as_save_IFS
   15902   test -z "$as_dir" && as_dir=.
   15903     for ac_exec_ext in '' $ac_executable_extensions; do
   15904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15905     ac_cv_prog_PTHREAD_CC="$ac_prog"
   15906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15907     break 2
   15908   fi
   15909 done
   15910   done
   15911 IFS=$as_save_IFS
   15912 
   15913 fi
   15914 fi
   15915 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   15916 if test -n "$PTHREAD_CC"; then
   15917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   15918 $as_echo "$PTHREAD_CC" >&6; }
   15919 else
   15920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15921 $as_echo "no" >&6; }
   15922 fi
   15923 
   15924 
   15925   test -n "$PTHREAD_CC" && break
   15926 done
   15927 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15928  ;;
   15929 esac ;; #(
   15930   *) :
   15931      ;;
   15932 esac
   15933                 ;;
   15934             esac
   15935         fi
   15936 fi
   15937 
   15938 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15939 
   15940 
   15941 
   15942 
   15943 
   15944 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15945 if test "x$ax_pthread_ok" = "xyes"; then
   15946 
   15947 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15948 
   15949         :
   15950 else
   15951         ax_pthread_ok=no
   15952 
   15953 fi
   15954 ac_ext=c
   15955 ac_cpp='$CPP $CPPFLAGS'
   15956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15959 
   15960 
   15961 
   15962 LIBS="$PTHREAD_LIBS $LIBS"
   15963 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15964 CC="$PTHREAD_CC"
   15965 
   15966 for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
   15967 do :
   15968   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15971   cat >>confdefs.h <<_ACEOF
   15972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15973 _ACEOF
   15974 
   15975 fi
   15976 done
   15977 
   15978 
   15979 # [pairwise: --with-locktype=adaptive, --with-locktype=standard]
   15980 
   15981 # Check whether --with-locktype was given.
   15982 if test "${with_locktype+set}" = set; then :
   15983   withval=$with_locktype;
   15984 else
   15985   with_locktype="adaptive"
   15986 fi
   15987 
   15988 
   15989 case $with_locktype in #(
   15990   adaptive) :
   15991 
   15992 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15993 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15994 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15995 /* end confdefs.h.  */
   15996 
   15997 		 #ifndef _GNU_SOURCE
   15998 		 #define _GNU_SOURCE
   15999 		 #endif
   16000 		 #include <pthread.h>
   16001 
   16002 int
   16003 main ()
   16004 {
   16005 
   16006 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   16007 
   16008 
   16009   ;
   16010   return 0;
   16011 }
   16012 _ACEOF
   16013 if ac_fn_c_try_compile "$LINENO"; then :
   16014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   16015 $as_echo "using adaptive lock type" >&6; }
   16016 
   16017 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   16018 
   16019 else
   16020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   16021 $as_echo "using standard lock type" >&6; }
   16022 
   16023 fi
   16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   16025   standard) :
   16026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   16027 $as_echo "using standard lock type" >&6; } ;; #(
   16028   *) :
   16029     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   16030         ;;
   16031 esac
   16032 
   16033 for ac_header in sched.h
   16034 do :
   16035   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   16036 if test "x$ac_cv_header_sched_h" = xyes; then :
   16037   cat >>confdefs.h <<_ACEOF
   16038 #define HAVE_SCHED_H 1
   16039 _ACEOF
   16040 
   16041 fi
   16042 
   16043 done
   16044 
   16045 
   16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   16047 $as_echo_n "checking for library containing sched_yield... " >&6; }
   16048 if ${ac_cv_search_sched_yield+:} false; then :
   16049   $as_echo_n "(cached) " >&6
   16050 else
   16051   ac_func_search_save_LIBS=$LIBS
   16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16053 /* end confdefs.h.  */
   16054 
   16055 /* Override any GCC internal prototype to avoid an error.
   16056    Use char because int might match the return type of a GCC
   16057    builtin and then its argument prototype would still apply.  */
   16058 #ifdef __cplusplus
   16059 extern "C"
   16060 #endif
   16061 char sched_yield ();
   16062 int
   16063 main ()
   16064 {
   16065 return sched_yield ();
   16066   ;
   16067   return 0;
   16068 }
   16069 _ACEOF
   16070 for ac_lib in '' rt; do
   16071   if test -z "$ac_lib"; then
   16072     ac_res="none required"
   16073   else
   16074     ac_res=-l$ac_lib
   16075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16076   fi
   16077   if ac_fn_c_try_link "$LINENO"; then :
   16078   ac_cv_search_sched_yield=$ac_res
   16079 fi
   16080 rm -f core conftest.err conftest.$ac_objext \
   16081     conftest$ac_exeext
   16082   if ${ac_cv_search_sched_yield+:} false; then :
   16083   break
   16084 fi
   16085 done
   16086 if ${ac_cv_search_sched_yield+:} false; then :
   16087 
   16088 else
   16089   ac_cv_search_sched_yield=no
   16090 fi
   16091 rm conftest.$ac_ext
   16092 LIBS=$ac_func_search_save_LIBS
   16093 fi
   16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   16095 $as_echo "$ac_cv_search_sched_yield" >&6; }
   16096 ac_res=$ac_cv_search_sched_yield
   16097 if test "$ac_res" != no; then :
   16098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16099 
   16100 fi
   16101 
   16102 for ac_func in sched_yield pthread_yield pthread_yield_np
   16103 do :
   16104   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16107   cat >>confdefs.h <<_ACEOF
   16108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16109 _ACEOF
   16110 
   16111 fi
   16112 done
   16113 
   16114 
   16115 # Look for functions relating to thread naming
   16116 for ac_func in pthread_setname_np pthread_set_name_np
   16117 do :
   16118   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16121   cat >>confdefs.h <<_ACEOF
   16122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16123 _ACEOF
   16124 
   16125 fi
   16126 done
   16127 
   16128 for ac_header in pthread_np.h
   16129 do :
   16130   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   16131 "
   16132 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   16133   cat >>confdefs.h <<_ACEOF
   16134 #define HAVE_PTHREAD_NP_H 1
   16135 _ACEOF
   16136 
   16137 fi
   16138 
   16139 done
   16140 
   16141 
   16142 # libuv
   16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
   16144 $as_echo_n "checking for libuv... " >&6; }
   16145 
   16146 pkg_failed=no
   16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
   16148 $as_echo_n "checking for libuv >= 1.0.0... " >&6; }
   16149 
   16150 if test -n "$LIBUV_CFLAGS"; then
   16151     pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
   16152  elif test -n "$PKG_CONFIG"; then
   16153     if test -n "$PKG_CONFIG" && \
   16154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   16155   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   16156   ac_status=$?
   16157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16158   test $ac_status = 0; }; then
   16159   pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
   16160 		      test "x$?" != "x0" && pkg_failed=yes
   16161 else
   16162   pkg_failed=yes
   16163 fi
   16164  else
   16165     pkg_failed=untried
   16166 fi
   16167 if test -n "$LIBUV_LIBS"; then
   16168     pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
   16169  elif test -n "$PKG_CONFIG"; then
   16170     if test -n "$PKG_CONFIG" && \
   16171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   16172   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   16173   ac_status=$?
   16174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16175   test $ac_status = 0; }; then
   16176   pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
   16177 		      test "x$?" != "x0" && pkg_failed=yes
   16178 else
   16179   pkg_failed=yes
   16180 fi
   16181  else
   16182     pkg_failed=untried
   16183 fi
   16184 
   16185 
   16186 
   16187 if test $pkg_failed = yes; then
   16188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16189 $as_echo "no" >&6; }
   16190 
   16191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16192         _pkg_short_errors_supported=yes
   16193 else
   16194         _pkg_short_errors_supported=no
   16195 fi
   16196         if test $_pkg_short_errors_supported = yes; then
   16197 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   16198         else
   16199 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   16200         fi
   16201 	# Put the nasty error message in config.log where it belongs
   16202 	echo "$LIBUV_PKG_ERRORS" >&5
   16203 
   16204 	as_fn_error $? "libuv not found" "$LINENO" 5
   16205 elif test $pkg_failed = untried; then
   16206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16207 $as_echo "no" >&6; }
   16208 	as_fn_error $? "libuv not found" "$LINENO" 5
   16209 else
   16210 	LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
   16211 	LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
   16212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16213 $as_echo "yes" >&6; }
   16214 
   16215 fi
   16216 
   16217 
   16218 
   16219   CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
   16220 
   16221 
   16222 
   16223   CFLAGS_libuv_ax_save_flags=$CFLAGS
   16224 
   16225 
   16226 
   16227   CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
   16228 
   16229 
   16230 
   16231   CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
   16232 
   16233 
   16234 
   16235   ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
   16236 
   16237 
   16238 
   16239   FCFLAGS_libuv_ax_save_flags=$FCFLAGS
   16240 
   16241 
   16242 
   16243   FCLIBS_libuv_ax_save_flags=$FCLIBS
   16244 
   16245 
   16246 
   16247   FFLAGS_libuv_ax_save_flags=$FFLAGS
   16248 
   16249 
   16250 
   16251   FLIBS_libuv_ax_save_flags=$FLIBS
   16252 
   16253 
   16254 
   16255   GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
   16256 
   16257 
   16258 
   16259   JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
   16260 
   16261 
   16262 
   16263   LDFLAGS_libuv_ax_save_flags=$LDFLAGS
   16264 
   16265 
   16266 
   16267   LIBS_libuv_ax_save_flags=$LIBS
   16268 
   16269 
   16270 
   16271   OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
   16272 
   16273 
   16274 
   16275   OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
   16276 
   16277 
   16278 
   16279   UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
   16280 
   16281 
   16282 
   16283   VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
   16284 
   16285 
   16286 
   16287 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
   16288 LIBS="$LIBS $LIBUV_LIBS"
   16289 
   16290 # libuv recvmmsg support
   16291 ac_fn_c_check_decl "$LINENO" "UV_UDP_MMSG_FREE" "ac_cv_have_decl_UV_UDP_MMSG_FREE" "#include <uv.h>
   16292 "
   16293 if test "x$ac_cv_have_decl_UV_UDP_MMSG_FREE" = xyes; then :
   16294   ac_have_decl=1
   16295 else
   16296   ac_have_decl=0
   16297 fi
   16298 
   16299 cat >>confdefs.h <<_ACEOF
   16300 #define HAVE_DECL_UV_UDP_MMSG_FREE $ac_have_decl
   16301 _ACEOF
   16302 ac_fn_c_check_decl "$LINENO" "UV_UDP_MMSG_CHUNK" "ac_cv_have_decl_UV_UDP_MMSG_CHUNK" "#include <uv.h>
   16303 "
   16304 if test "x$ac_cv_have_decl_UV_UDP_MMSG_CHUNK" = xyes; then :
   16305   ac_have_decl=1
   16306 else
   16307   ac_have_decl=0
   16308 fi
   16309 
   16310 cat >>confdefs.h <<_ACEOF
   16311 #define HAVE_DECL_UV_UDP_MMSG_CHUNK $ac_have_decl
   16312 _ACEOF
   16313 
   16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct msghdr uses padding for alignment" >&5
   16315 $as_echo_n "checking whether struct msghdr uses padding for alignment... " >&6; }
   16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16317 /* end confdefs.h.  */
   16318 #include <sys/socket.h>
   16319 int
   16320 main ()
   16321 {
   16322 const struct msghdr h = { .__pad1 = 0, .__pad2 = 0 };
   16323   ;
   16324   return 0;
   16325 }
   16326 _ACEOF
   16327 if ac_fn_c_try_compile "$LINENO"; then :
   16328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16329 $as_echo "yes" >&6; }
   16330 
   16331 $as_echo "#define HAVE_DECL_UV_UDP_RECVMMSG 0" >>confdefs.h
   16332 
   16333 else
   16334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16335 $as_echo "no" >&6; }
   16336 		   ac_fn_c_check_decl "$LINENO" "UV_UDP_RECVMMSG" "ac_cv_have_decl_UV_UDP_RECVMMSG" "#include <uv.h>
   16337 "
   16338 if test "x$ac_cv_have_decl_UV_UDP_RECVMMSG" = xyes; then :
   16339   ac_have_decl=1
   16340 else
   16341   ac_have_decl=0
   16342 fi
   16343 
   16344 cat >>confdefs.h <<_ACEOF
   16345 #define HAVE_DECL_UV_UDP_RECVMMSG $ac_have_decl
   16346 _ACEOF
   16347 
   16348 fi
   16349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16350 
   16351 
   16352   CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
   16353 
   16354 
   16355   CFLAGS=$CFLAGS_libuv_ax_save_flags
   16356 
   16357 
   16358   CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
   16359 
   16360 
   16361   CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
   16362 
   16363 
   16364   ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
   16365 
   16366 
   16367   FCFLAGS=$FCFLAGS_libuv_ax_save_flags
   16368 
   16369 
   16370   FCLIBS=$FCLIBS_libuv_ax_save_flags
   16371 
   16372 
   16373   FFLAGS=$FFLAGS_libuv_ax_save_flags
   16374 
   16375 
   16376   FLIBS=$FLIBS_libuv_ax_save_flags
   16377 
   16378 
   16379   GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
   16380 
   16381 
   16382   JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
   16383 
   16384 
   16385   LDFLAGS=$LDFLAGS_libuv_ax_save_flags
   16386 
   16387 
   16388   LIBS=$LIBS_libuv_ax_save_flags
   16389 
   16390 
   16391   OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
   16392 
   16393 
   16394   OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
   16395 
   16396 
   16397   UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
   16398 
   16399 
   16400   VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
   16401 
   16402 
   16403 
   16404 
   16405 #
   16406 # flockfile is usually provided by pthreads
   16407 #
   16408 for ac_func in flockfile getc_unlocked
   16409 do :
   16410   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16411 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16412 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16413   cat >>confdefs.h <<_ACEOF
   16414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16415 _ACEOF
   16416 
   16417 fi
   16418 done
   16419 
   16420 
   16421 #
   16422 # Look for sysconf to allow detection of the number of processors.
   16423 #
   16424 for ac_func in sysconf
   16425 do :
   16426   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   16427 if test "x$ac_cv_func_sysconf" = xyes; then :
   16428   cat >>confdefs.h <<_ACEOF
   16429 #define HAVE_SYSCONF 1
   16430 _ACEOF
   16431 
   16432 fi
   16433 done
   16434 
   16435 
   16436 
   16437 
   16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   16439 $as_echo_n "checking for libtool... " >&6; }
   16440 
   16441 # [pairwise: --with-libtool, --without-libtool]
   16442 
   16443 # Check whether --with-libtool was given.
   16444 if test "${with_libtool+set}" = set; then :
   16445   withval=$with_libtool; use_libtool="$withval"
   16446 else
   16447   use_libtool="no"
   16448 fi
   16449 
   16450 NO_LIBTOOL_ISCLIBS=
   16451 NO_LIBTOOL_DNSLIBS=
   16452 case $use_libtool in
   16453 	yes)
   16454 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16455 $as_echo "yes" >&6; }
   16456 
   16457 		O=lo
   16458 		A=la
   16459 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   16460 		LIBTOOL_MODE_COMPILE='--mode=compile'
   16461 		LIBTOOL_MODE_INSTALL='--mode=install'
   16462 		LIBTOOL_MODE_LINK='--mode=link'
   16463 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   16464 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   16465 
   16466 $as_echo "#define USE_LIBTOOL 1" >>confdefs.h
   16467 
   16468 		;;
   16469 	*)
   16470 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16471 $as_echo "no" >&6; }
   16472 		O=o
   16473 		A=a
   16474 		LIBTOOL=
   16475 
   16476 		LIBTOOL_MKDEP_SED=
   16477 		LIBTOOL_MODE_COMPILE=
   16478 		LIBTOOL_MODE_INSTALL=
   16479 		LIBTOOL_MODE_LINK=
   16480 		LIBTOOL_MODE_UNINSTALL=
   16481 		INSTALL_LIBRARY='${INSTALL_DATA}'
   16482 		NO_LIBTOOL_ISCLIBS='${NO_LIBTOOL_ISCLIBS}'
   16483 		NO_LIBTOOL_DNSLIBS='${NO_LIBTOOL_DNSLIBS}'
   16484 		;;
   16485 esac
   16486 
   16487 
   16488 
   16489 
   16490 #
   16491 # Do we want to use pthread rwlock?
   16492 #
   16493 # [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
   16494 # Check whether --enable-pthread_rwlock was given.
   16495 if test "${enable_pthread_rwlock+set}" = set; then :
   16496   enableval=$enable_pthread_rwlock;
   16497 else
   16498   enable_pthread_rwlock=no
   16499 fi
   16500 
   16501 
   16502 if test "$enable_pthread_rwlock" = "yes"; then :
   16503   for ac_func in pthread_rwlock_rdlock
   16504 do :
   16505   ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
   16506 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
   16507   cat >>confdefs.h <<_ACEOF
   16508 #define HAVE_PTHREAD_RWLOCK_RDLOCK 1
   16509 _ACEOF
   16510 
   16511 else
   16512   as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
   16513 fi
   16514 done
   16515 
   16516 
   16517 $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
   16518 
   16519 
   16520 fi
   16521 
   16522 CRYPTO=OpenSSL
   16523 
   16524 #
   16525 # OpenSSL/LibreSSL is mandatory
   16526 #
   16527 
   16528 pkg_failed=no
   16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
   16530 $as_echo_n "checking for libssl libcrypto... " >&6; }
   16531 
   16532 if test -n "$OPENSSL_CFLAGS"; then
   16533     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16534  elif test -n "$PKG_CONFIG"; then
   16535     if test -n "$PKG_CONFIG" && \
   16536     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
   16537   ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
   16538   ac_status=$?
   16539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16540   test $ac_status = 0; }; then
   16541   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
   16542 		      test "x$?" != "x0" && pkg_failed=yes
   16543 else
   16544   pkg_failed=yes
   16545 fi
   16546  else
   16547     pkg_failed=untried
   16548 fi
   16549 if test -n "$OPENSSL_LIBS"; then
   16550     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16551  elif test -n "$PKG_CONFIG"; then
   16552     if test -n "$PKG_CONFIG" && \
   16553     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
   16554   ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
   16555   ac_status=$?
   16556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16557   test $ac_status = 0; }; then
   16558   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
   16559 		      test "x$?" != "x0" && pkg_failed=yes
   16560 else
   16561   pkg_failed=yes
   16562 fi
   16563  else
   16564     pkg_failed=untried
   16565 fi
   16566 
   16567 
   16568 
   16569 if test $pkg_failed = yes; then
   16570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16571 $as_echo "no" >&6; }
   16572 
   16573 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16574         _pkg_short_errors_supported=yes
   16575 else
   16576         _pkg_short_errors_supported=no
   16577 fi
   16578         if test $_pkg_short_errors_supported = yes; then
   16579 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
   16580         else
   16581 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
   16582         fi
   16583 	# Put the nasty error message in config.log where it belongs
   16584 	echo "$OPENSSL_PKG_ERRORS" >&5
   16585 
   16586 
   16587     found=false
   16588     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   16589 
   16590 # Check whether --with-openssl was given.
   16591 if test "${with_openssl+set}" = set; then :
   16592   withval=$with_openssl;
   16593 	    case $with_openssl in #(
   16594   ""|y|ye|yes) :
   16595     ssldirs="$default_ssldirs" ;; #(
   16596   n|no) :
   16597     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16598   *) :
   16599     ssldirs="$withval" ;; #(
   16600   *) :
   16601     ssldirs="$default_ssldirs"
   16602 	     ;;
   16603 esac
   16604 
   16605 else
   16606 
   16607             # if pkg-config is installed and openssl has installed a .pc file,
   16608             # then use that information and don't search ssldirs
   16609 
   16610 pkg_failed=no
   16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16612 $as_echo_n "checking for crypto... " >&6; }
   16613 
   16614 if test -n "$OPENSSL_CFLAGS"; then
   16615     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16616  elif test -n "$PKG_CONFIG"; then
   16617     if test -n "$PKG_CONFIG" && \
   16618     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16619   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16620   ac_status=$?
   16621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16622   test $ac_status = 0; }; then
   16623   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16624 		      test "x$?" != "x0" && pkg_failed=yes
   16625 else
   16626   pkg_failed=yes
   16627 fi
   16628  else
   16629     pkg_failed=untried
   16630 fi
   16631 if test -n "$OPENSSL_LIBS"; then
   16632     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16633  elif test -n "$PKG_CONFIG"; then
   16634     if test -n "$PKG_CONFIG" && \
   16635     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16636   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16637   ac_status=$?
   16638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16639   test $ac_status = 0; }; then
   16640   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16641 		      test "x$?" != "x0" && pkg_failed=yes
   16642 else
   16643   pkg_failed=yes
   16644 fi
   16645  else
   16646     pkg_failed=untried
   16647 fi
   16648 
   16649 
   16650 
   16651 if test $pkg_failed = yes; then
   16652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16653 $as_echo "no" >&6; }
   16654 
   16655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16656         _pkg_short_errors_supported=yes
   16657 else
   16658         _pkg_short_errors_supported=no
   16659 fi
   16660         if test $_pkg_short_errors_supported = yes; then
   16661 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16662         else
   16663 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16664         fi
   16665 	# Put the nasty error message in config.log where it belongs
   16666 	echo "$OPENSSL_PKG_ERRORS" >&5
   16667 
   16668 	ssldirs="$default_ssldirs"
   16669 elif test $pkg_failed = untried; then
   16670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16671 $as_echo "no" >&6; }
   16672 	ssldirs="$default_ssldirs"
   16673 else
   16674 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16675 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16677 $as_echo "yes" >&6; }
   16678 	found=true
   16679 fi
   16680 
   16681 
   16682 
   16683 fi
   16684 
   16685 
   16686 
   16687     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16688     # an 'openssl' subdirectory
   16689 
   16690     if ! $found; then :
   16691 
   16692         OPENSSL_CFLAGS=
   16693         for ssldir in $ssldirs; do
   16694             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16695 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16696 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16697 
   16698 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16699                     OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
   16700                     found=true
   16701                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16702 $as_echo "yes" >&6; }
   16703                     break
   16704 
   16705 else
   16706 
   16707 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16708 $as_echo "no" >&6; }
   16709 
   16710 fi
   16711         done
   16712 
   16713         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16714         # it will just work!
   16715 
   16716 fi
   16717 
   16718     # try the preprocessor and linker with our new flags,
   16719     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16720 
   16721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16722 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16723     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16724 
   16725     save_LIBS="$LIBS"
   16726     save_CPPFLAGS="$CPPFLAGS"
   16727     LIBS="$OPENSSL_LIBS $LIBS"
   16728     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16730 /* end confdefs.h.  */
   16731 
   16732                 #include <openssl/crypto.h>
   16733 
   16734 int
   16735 main ()
   16736 {
   16737 
   16738 	        OPENSSL_free(NULL);
   16739 
   16740   ;
   16741   return 0;
   16742 }
   16743 _ACEOF
   16744 if ac_fn_c_try_link "$LINENO"; then :
   16745 
   16746             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16747 $as_echo "yes" >&6; }
   16748             :
   16749 
   16750 else
   16751 
   16752             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16753 $as_echo "no" >&6; }
   16754             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16756 as_fn_error $? "OpenSSL/LibreSSL not found
   16757 See \`config.log' for more details" "$LINENO" 5; }
   16758 
   16759 fi
   16760 rm -f core conftest.err conftest.$ac_objext \
   16761     conftest$ac_exeext conftest.$ac_ext
   16762     CPPFLAGS="$save_CPPFLAGS"
   16763     LIBS="$save_LIBS"
   16764 
   16765 
   16766 
   16767 
   16768 elif test $pkg_failed = untried; then
   16769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16770 $as_echo "no" >&6; }
   16771 
   16772     found=false
   16773     default_ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/local/opt/openssl /usr/local/opt/libressl /usr"
   16774 
   16775 # Check whether --with-openssl was given.
   16776 if test "${with_openssl+set}" = set; then :
   16777   withval=$with_openssl;
   16778 	    case $with_openssl in #(
   16779   ""|y|ye|yes) :
   16780     ssldirs="$default_ssldirs" ;; #(
   16781   n|no) :
   16782     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16783   *) :
   16784     ssldirs="$withval" ;; #(
   16785   *) :
   16786     ssldirs="$default_ssldirs"
   16787 	     ;;
   16788 esac
   16789 
   16790 else
   16791 
   16792             # if pkg-config is installed and openssl has installed a .pc file,
   16793             # then use that information and don't search ssldirs
   16794 
   16795 pkg_failed=no
   16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16797 $as_echo_n "checking for crypto... " >&6; }
   16798 
   16799 if test -n "$OPENSSL_CFLAGS"; then
   16800     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16801  elif test -n "$PKG_CONFIG"; then
   16802     if test -n "$PKG_CONFIG" && \
   16803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16804   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16805   ac_status=$?
   16806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16807   test $ac_status = 0; }; then
   16808   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16809 		      test "x$?" != "x0" && pkg_failed=yes
   16810 else
   16811   pkg_failed=yes
   16812 fi
   16813  else
   16814     pkg_failed=untried
   16815 fi
   16816 if test -n "$OPENSSL_LIBS"; then
   16817     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16818  elif test -n "$PKG_CONFIG"; then
   16819     if test -n "$PKG_CONFIG" && \
   16820     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16821   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16822   ac_status=$?
   16823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16824   test $ac_status = 0; }; then
   16825   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16826 		      test "x$?" != "x0" && pkg_failed=yes
   16827 else
   16828   pkg_failed=yes
   16829 fi
   16830  else
   16831     pkg_failed=untried
   16832 fi
   16833 
   16834 
   16835 
   16836 if test $pkg_failed = yes; then
   16837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16838 $as_echo "no" >&6; }
   16839 
   16840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16841         _pkg_short_errors_supported=yes
   16842 else
   16843         _pkg_short_errors_supported=no
   16844 fi
   16845         if test $_pkg_short_errors_supported = yes; then
   16846 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16847         else
   16848 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16849         fi
   16850 	# Put the nasty error message in config.log where it belongs
   16851 	echo "$OPENSSL_PKG_ERRORS" >&5
   16852 
   16853 	ssldirs="$default_ssldirs"
   16854 elif test $pkg_failed = untried; then
   16855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16856 $as_echo "no" >&6; }
   16857 	ssldirs="$default_ssldirs"
   16858 else
   16859 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16860 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16862 $as_echo "yes" >&6; }
   16863 	found=true
   16864 fi
   16865 
   16866 
   16867 
   16868 fi
   16869 
   16870 
   16871 
   16872     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16873     # an 'openssl' subdirectory
   16874 
   16875     if ! $found; then :
   16876 
   16877         OPENSSL_CFLAGS=
   16878         for ssldir in $ssldirs; do
   16879             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16880 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16881 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16882 
   16883 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16884                     OPENSSL_LIBS="-L$ssldir/lib -lssl -lcrypto"
   16885                     found=true
   16886                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16887 $as_echo "yes" >&6; }
   16888                     break
   16889 
   16890 else
   16891 
   16892 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16893 $as_echo "no" >&6; }
   16894 
   16895 fi
   16896         done
   16897 
   16898         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16899         # it will just work!
   16900 
   16901 fi
   16902 
   16903     # try the preprocessor and linker with our new flags,
   16904     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16905 
   16906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16907 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16908     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16909 
   16910     save_LIBS="$LIBS"
   16911     save_CPPFLAGS="$CPPFLAGS"
   16912     LIBS="$OPENSSL_LIBS $LIBS"
   16913     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16915 /* end confdefs.h.  */
   16916 
   16917                 #include <openssl/crypto.h>
   16918 
   16919 int
   16920 main ()
   16921 {
   16922 
   16923 	        OPENSSL_free(NULL);
   16924 
   16925   ;
   16926   return 0;
   16927 }
   16928 _ACEOF
   16929 if ac_fn_c_try_link "$LINENO"; then :
   16930 
   16931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16932 $as_echo "yes" >&6; }
   16933             :
   16934 
   16935 else
   16936 
   16937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16938 $as_echo "no" >&6; }
   16939             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16941 as_fn_error $? "OpenSSL/LibreSSL not found
   16942 See \`config.log' for more details" "$LINENO" 5; }
   16943 
   16944 fi
   16945 rm -f core conftest.err conftest.$ac_objext \
   16946     conftest$ac_exeext conftest.$ac_ext
   16947     CPPFLAGS="$save_CPPFLAGS"
   16948     LIBS="$save_LIBS"
   16949 
   16950 
   16951 
   16952 
   16953 else
   16954 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16955 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16957 $as_echo "yes" >&6; }
   16958 
   16959 fi
   16960 
   16961 
   16962 
   16963   CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
   16964 
   16965 
   16966 
   16967   CFLAGS_openssl_ax_save_flags=$CFLAGS
   16968 
   16969 
   16970 
   16971   CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
   16972 
   16973 
   16974 
   16975   CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
   16976 
   16977 
   16978 
   16979   ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
   16980 
   16981 
   16982 
   16983   FCFLAGS_openssl_ax_save_flags=$FCFLAGS
   16984 
   16985 
   16986 
   16987   FCLIBS_openssl_ax_save_flags=$FCLIBS
   16988 
   16989 
   16990 
   16991   FFLAGS_openssl_ax_save_flags=$FFLAGS
   16992 
   16993 
   16994 
   16995   FLIBS_openssl_ax_save_flags=$FLIBS
   16996 
   16997 
   16998 
   16999   GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
   17000 
   17001 
   17002 
   17003   JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
   17004 
   17005 
   17006 
   17007   LDFLAGS_openssl_ax_save_flags=$LDFLAGS
   17008 
   17009 
   17010 
   17011   LIBS_openssl_ax_save_flags=$LIBS
   17012 
   17013 
   17014 
   17015   OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
   17016 
   17017 
   17018 
   17019   OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
   17020 
   17021 
   17022 
   17023   UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
   17024 
   17025 
   17026 
   17027   VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
   17028 
   17029 
   17030 
   17031 
   17032 #
   17033 # This maintenance branch of BIND 9 does not support new OpenSSL APIs
   17034 # introduced in version 3.0.0.  Suppress compiler warnings about using
   17035 # functions deprecated in newer OpenSSL versions as they will not be
   17036 # addressed in BIND 9.16.
   17037 #
   17038 OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
   17039 
   17040 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
   17041 LIBS="$LIBS $OPENSSL_LIBS"
   17042 
   17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0" >&5
   17044 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0... " >&6; }
   17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17046 /* end confdefs.h.  */
   17047 #include <openssl/opensslv.h>
   17048 int
   17049 main ()
   17050 {
   17051 #if (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)) || \\
   17052 			   (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x02070000fL))
   17053 		       #error OpenSSL >= 1.0.0 or LibreSSL >= 2.7.0 required
   17054 		       #endif
   17055 
   17056   ;
   17057   return 0;
   17058 }
   17059 _ACEOF
   17060 if ac_fn_c_try_compile "$LINENO"; then :
   17061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17062 $as_echo "yes" >&6; }
   17063 else
   17064   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17066 as_fn_error $? "not found
   17067 See \`config.log' for more details" "$LINENO" 5; }
   17068 fi
   17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17070 
   17071 #
   17072 # Check for functions added in OpenSSL or LibreSSL
   17073 #
   17074 
   17075 for ac_func in OPENSSL_init_ssl OPENSSL_init_crypto OPENSSL_cleanup
   17076 do :
   17077   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17080   cat >>confdefs.h <<_ACEOF
   17081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17082 _ACEOF
   17083 
   17084 fi
   17085 done
   17086 
   17087 for ac_func in CRYPTO_zalloc
   17088 do :
   17089   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   17090 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   17091   cat >>confdefs.h <<_ACEOF
   17092 #define HAVE_CRYPTO_ZALLOC 1
   17093 _ACEOF
   17094 
   17095 fi
   17096 done
   17097 
   17098 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   17099 do :
   17100   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17103   cat >>confdefs.h <<_ACEOF
   17104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17105 _ACEOF
   17106 
   17107 fi
   17108 done
   17109 
   17110 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   17111 do :
   17112   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17115   cat >>confdefs.h <<_ACEOF
   17116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17117 _ACEOF
   17118 
   17119 fi
   17120 done
   17121 
   17122 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   17123 do :
   17124   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17126 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17127   cat >>confdefs.h <<_ACEOF
   17128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17129 _ACEOF
   17130 
   17131 fi
   17132 done
   17133 
   17134 for ac_func in SSL_read_ex SSL_peek_ex SSL_write_ex
   17135 do :
   17136   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17139   cat >>confdefs.h <<_ACEOF
   17140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17141 _ACEOF
   17142 
   17143 fi
   17144 done
   17145 
   17146 for ac_func in BIO_read_ex BIO_write_ex
   17147 do :
   17148   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17151   cat >>confdefs.h <<_ACEOF
   17152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17153 _ACEOF
   17154 
   17155 fi
   17156 done
   17157 
   17158 for ac_func in BN_GENCB_new
   17159 do :
   17160   ac_fn_c_check_func "$LINENO" "BN_GENCB_new" "ac_cv_func_BN_GENCB_new"
   17161 if test "x$ac_cv_func_BN_GENCB_new" = xyes; then :
   17162   cat >>confdefs.h <<_ACEOF
   17163 #define HAVE_BN_GENCB_NEW 1
   17164 _ACEOF
   17165 
   17166 fi
   17167 done
   17168 
   17169 for ac_func in SSL_CTX_up_ref
   17170 do :
   17171   ac_fn_c_check_func "$LINENO" "SSL_CTX_up_ref" "ac_cv_func_SSL_CTX_up_ref"
   17172 if test "x$ac_cv_func_SSL_CTX_up_ref" = xyes; then :
   17173   cat >>confdefs.h <<_ACEOF
   17174 #define HAVE_SSL_CTX_UP_REF 1
   17175 _ACEOF
   17176 
   17177 fi
   17178 done
   17179 
   17180 for ac_func in SSL_CTX_set_min_proto_version
   17181 do :
   17182   ac_fn_c_check_func "$LINENO" "SSL_CTX_set_min_proto_version" "ac_cv_func_SSL_CTX_set_min_proto_version"
   17183 if test "x$ac_cv_func_SSL_CTX_set_min_proto_version" = xyes; then :
   17184   cat >>confdefs.h <<_ACEOF
   17185 #define HAVE_SSL_CTX_SET_MIN_PROTO_VERSION 1
   17186 _ACEOF
   17187 
   17188 fi
   17189 done
   17190 
   17191 
   17192 #
   17193 # Check for algorithm support in OpenSSL
   17194 #
   17195 
   17196 for ac_func in ECDSA_sign ECDSA_verify
   17197 do :
   17198   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17201   cat >>confdefs.h <<_ACEOF
   17202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17203 _ACEOF
   17204  :
   17205 else
   17206   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17208 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   17209 See \`config.log' for more details" "$LINENO" 5; }
   17210 fi
   17211 done
   17212 
   17213 
   17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   17215 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17217 /* end confdefs.h.  */
   17218 #include <openssl/evp.h>
   17219 		       #include <openssl/ec.h>
   17220 int
   17221 main ()
   17222 {
   17223 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   17224   ;
   17225   return 0;
   17226 }
   17227 _ACEOF
   17228 if ac_fn_c_try_compile "$LINENO"; then :
   17229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17230 $as_echo "yes" >&6; }
   17231 else
   17232   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17234 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   17235 See \`config.log' for more details" "$LINENO" 5; }
   17236 fi
   17237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17238 
   17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   17240 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17242 /* end confdefs.h.  */
   17243 #include <openssl/evp.h>
   17244 		       #include <openssl/ec.h>
   17245 int
   17246 main ()
   17247 {
   17248 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   17249   ;
   17250   return 0;
   17251 }
   17252 _ACEOF
   17253 if ac_fn_c_try_compile "$LINENO"; then :
   17254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17255 $as_echo "yes" >&6; }
   17256 else
   17257   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17259 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   17260 See \`config.log' for more details" "$LINENO" 5; }
   17261 fi
   17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17263 
   17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   17265 $as_echo_n "checking for Ed25519 support... " >&6; }
   17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17267 /* end confdefs.h.  */
   17268 #include <openssl/evp.h>
   17269 		       #include <openssl/ec.h>
   17270 int
   17271 main ()
   17272 {
   17273 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   17274   ;
   17275   return 0;
   17276 }
   17277 _ACEOF
   17278 if ac_fn_c_try_compile "$LINENO"; then :
   17279 
   17280 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   17281 
   17282      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17283 $as_echo "yes" >&6; }
   17284 else
   17285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17286 $as_echo "no" >&6; }
   17287 fi
   17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17289 
   17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   17291 $as_echo_n "checking for Ed448 support... " >&6; }
   17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17293 /* end confdefs.h.  */
   17294 #include <openssl/evp.h>
   17295 		       #include <openssl/ec.h>
   17296 int
   17297 main ()
   17298 {
   17299 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
   17300   ;
   17301   return 0;
   17302 }
   17303 _ACEOF
   17304 if ac_fn_c_try_compile "$LINENO"; then :
   17305 
   17306 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
   17307 
   17308      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17309 $as_echo "yes" >&6; }
   17310 else
   17311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17312 $as_echo "no" >&6; }
   17313 fi
   17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17315 
   17316 #
   17317 # Check for OpenSSL SHA-1 support
   17318 #
   17319 for ac_func in EVP_sha1
   17320 do :
   17321   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   17322 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   17323   cat >>confdefs.h <<_ACEOF
   17324 #define HAVE_EVP_SHA1 1
   17325 _ACEOF
   17326  :
   17327 else
   17328   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17330 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   17331 See \`config.log' for more details" "$LINENO" 5; }
   17332 fi
   17333 done
   17334 
   17335 
   17336 #
   17337 # Check for OpenSSL SHA-2 support
   17338 #
   17339 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   17340 do :
   17341   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17344   cat >>confdefs.h <<_ACEOF
   17345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17346 _ACEOF
   17347  :
   17348 else
   17349   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17351 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   17352 See \`config.log' for more details" "$LINENO" 5; }
   17353 fi
   17354 done
   17355 
   17356 
   17357 #
   17358 # Check for OpenSSL AES support
   17359 #
   17360 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   17361 do :
   17362   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17365   cat >>confdefs.h <<_ACEOF
   17366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17367 _ACEOF
   17368  :
   17369 else
   17370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17372 as_fn_error $? "AES support in OpenSSL is mandatory.
   17373 See \`config.log' for more details" "$LINENO" 5; }
   17374 fi
   17375 done
   17376 
   17377 
   17378 #
   17379 # Check for OpenSSL 1.1.x/LibreSSL functions
   17380 #
   17381 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   17382 do :
   17383   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17386   cat >>confdefs.h <<_ACEOF
   17387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17388 _ACEOF
   17389 
   17390 fi
   17391 done
   17392 
   17393 
   17394 for ac_func in TLS_server_method TLS_client_method
   17395 do :
   17396   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17399   cat >>confdefs.h <<_ACEOF
   17400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17401 _ACEOF
   17402 
   17403 fi
   17404 done
   17405 
   17406 
   17407 #
   17408 # Check whether FIPS mode is available and whether we should enable it
   17409 #
   17410 # FIPS is not included in pairwise testing as the relevant Docker image
   17411 # does not support FIPS mode.
   17412 #
   17413 # [pairwise: skip]
   17414 # Check whether --enable-fips-mode was given.
   17415 if test "${enable_fips_mode+set}" = set; then :
   17416   enableval=$enable_fips_mode;
   17417 else
   17418   enable_fips_mode="no"
   17419 fi
   17420 
   17421 
   17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   17423 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   17424 case $enable_fips_mode in #(
   17425   yes) :
   17426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17427 $as_echo "yes" >&6; }
   17428 		for ac_func in FIPS_mode
   17429 do :
   17430   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   17431 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   17432   cat >>confdefs.h <<_ACEOF
   17433 #define HAVE_FIPS_MODE 1
   17434 _ACEOF
   17435 
   17436 else
   17437   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17439 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   17440 See \`config.log' for more details" "$LINENO" 5; }
   17441 fi
   17442 done
   17443  ;; #(
   17444   no) :
   17445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17446 $as_echo "no" >&6; } ;; #(
   17447   *) :
   17448      ;;
   17449 esac
   17450 
   17451 
   17452   CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
   17453 
   17454 
   17455   CFLAGS=$CFLAGS_openssl_ax_save_flags
   17456 
   17457 
   17458   CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
   17459 
   17460 
   17461   CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
   17462 
   17463 
   17464   ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
   17465 
   17466 
   17467   FCFLAGS=$FCFLAGS_openssl_ax_save_flags
   17468 
   17469 
   17470   FCLIBS=$FCLIBS_openssl_ax_save_flags
   17471 
   17472 
   17473   FFLAGS=$FFLAGS_openssl_ax_save_flags
   17474 
   17475 
   17476   FLIBS=$FLIBS_openssl_ax_save_flags
   17477 
   17478 
   17479   GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
   17480 
   17481 
   17482   JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
   17483 
   17484 
   17485   LDFLAGS=$LDFLAGS_openssl_ax_save_flags
   17486 
   17487 
   17488   LIBS=$LIBS_openssl_ax_save_flags
   17489 
   17490 
   17491   OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
   17492 
   17493 
   17494   OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
   17495 
   17496 
   17497   UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
   17498 
   17499 
   17500   VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
   17501 
   17502 
   17503 
   17504 
   17505 
   17506 
   17507 
   17508 PKCS11_TOOLS=
   17509 PKCS11_TEST=
   17510 PKCS11_MANS=
   17511 #
   17512 # was --enable-native-pkcs11 specified?
   17513 #
   17514 # [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen]
   17515 # Check whether --enable-native-pkcs11 was given.
   17516 if test "${enable_native_pkcs11+set}" = set; then :
   17517   enableval=$enable_native_pkcs11; :
   17518 else
   17519   enable_native_pkcs11="no"
   17520 fi
   17521 
   17522 
   17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   17524 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   17525 case $enable_native_pkcs11 in #(
   17526   no) :
   17527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17528 $as_echo "no" >&6; } ;; #(
   17529   yes) :
   17530     PKCS11_TOOLS=pkcs11
   17531 	       PKCS11_TEST=pkcs11
   17532 	       PKCS11_MANS='${pkcs11_man8_MANS}'
   17533 	       CRYPTO=pkcs11
   17534 	       if $use_threads; then :
   17535   :
   17536 else
   17537   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   17538 fi
   17539 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17540 $as_echo "yes" >&6; }
   17541 	       for ac_func in getpassphrase
   17542 do :
   17543   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   17544 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   17545   cat >>confdefs.h <<_ACEOF
   17546 #define HAVE_GETPASSPHRASE 1
   17547 _ACEOF
   17548 
   17549 fi
   17550 done
   17551 
   17552 	       ;; #(
   17553   *) :
   17554      ;;
   17555 esac
   17556 
   17557 
   17558 
   17559 
   17560 
   17561 case $CRYPTO in #(
   17562   pkcs11) :
   17563 
   17564 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   17565  ;; #(
   17566   *) :
   17567 
   17568 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   17569  ;;
   17570 esac
   17571 
   17572 # preparation for automake
   17573 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   17574 
   17575 #
   17576 # was --with-pkcs11 specified?
   17577 #
   17578 # [pairwise: skip]
   17579 
   17580 # Check whether --with-pkcs11 was given.
   17581 if test "${with_pkcs11+set}" = set; then :
   17582   withval=$with_pkcs11; :
   17583 else
   17584   with_pkcs11="undefined"
   17585 fi
   17586 
   17587 
   17588 case $with_pkcs11 in #(
   17589   yes|auto) :
   17590     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   17591   no|undefined) :
   17592     with_pkcs11="undefined" ;; #(
   17593   *) :
   17594      ;;
   17595 esac
   17596 
   17597 cat >>confdefs.h <<_ACEOF
   17598 #define PK11_LIB_LOCATION "$with_pkcs11"
   17599 _ACEOF
   17600 
   17601 
   17602 # for PKCS11 benchmarks
   17603 
   17604 have_clock_gt=no
   17605 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   17606 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   17607   have_clock_gt=yes
   17608 fi
   17609 
   17610 if test "no" = "$have_clock_gt"; then
   17611 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   17612 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   17613 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   17614   $as_echo_n "(cached) " >&6
   17615 else
   17616   ac_check_lib_save_LIBS=$LIBS
   17617 LIBS="-lrt  $LIBS"
   17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17619 /* end confdefs.h.  */
   17620 
   17621 /* Override any GCC internal prototype to avoid an error.
   17622    Use char because int might match the return type of a GCC
   17623    builtin and then its argument prototype would still apply.  */
   17624 #ifdef __cplusplus
   17625 extern "C"
   17626 #endif
   17627 char clock_gettime ();
   17628 int
   17629 main ()
   17630 {
   17631 return clock_gettime ();
   17632   ;
   17633   return 0;
   17634 }
   17635 _ACEOF
   17636 if ac_fn_c_try_link "$LINENO"; then :
   17637   ac_cv_lib_rt_clock_gettime=yes
   17638 else
   17639   ac_cv_lib_rt_clock_gettime=no
   17640 fi
   17641 rm -f core conftest.err conftest.$ac_objext \
   17642     conftest$ac_exeext conftest.$ac_ext
   17643 LIBS=$ac_check_lib_save_LIBS
   17644 fi
   17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   17646 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   17647 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   17648   have_clock_gt=rt
   17649 fi
   17650 
   17651 fi
   17652 
   17653 if test "no" != "$have_clock_gt"; then
   17654 
   17655 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   17656 
   17657 fi
   17658 
   17659 if test "rt" = "$have_clock_gt"; then
   17660 	LIBS="-lrt $LIBS"
   17661 fi
   17662 
   17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   17664 $as_echo_n "checking for GSSAPI library... " >&6; }
   17665 
   17666 # [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
   17667 
   17668 # Check whether --with-gssapi was given.
   17669 if test "${with_gssapi+set}" = set; then :
   17670   withval=$with_gssapi; use_gssapi="$withval"
   17671 else
   17672   use_gssapi="auto"
   17673 fi
   17674 
   17675 
   17676 # first try using krb5-config, if that does not work then fall back to "yes" method.
   17677 
   17678 case "$use_gssapi" in
   17679 */krb5-config|krb5-config)
   17680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   17681 $as_echo "trying $use_gssapi" >&6; }
   17682     if test krb5-config = "$use_gssapi"
   17683     then
   17684 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   17685 set dummy $use_gssapi; ac_word=$2
   17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17687 $as_echo_n "checking for $ac_word... " >&6; }
   17688 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   17689   $as_echo_n "(cached) " >&6
   17690 else
   17691   case $KRB5_CONFIG in
   17692   [\\/]* | ?:[\\/]*)
   17693   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   17694   ;;
   17695   *)
   17696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17697 for as_dir in $PATH
   17698 do
   17699   IFS=$as_save_IFS
   17700   test -z "$as_dir" && as_dir=.
   17701     for ac_exec_ext in '' $ac_executable_extensions; do
   17702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17703     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   17704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17705     break 2
   17706   fi
   17707 done
   17708   done
   17709 IFS=$as_save_IFS
   17710 
   17711   ;;
   17712 esac
   17713 fi
   17714 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   17715 if test -n "$KRB5_CONFIG"; then
   17716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   17717 $as_echo "$KRB5_CONFIG" >&6; }
   17718 else
   17719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17720 $as_echo "no" >&6; }
   17721 fi
   17722 
   17723 
   17724     else
   17725 	KRB5_CONFIG="$use_gssapi"
   17726     fi
   17727     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   17728     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   17729     krb5_cflags=`$KRB5_CONFIG --cflags krb5`
   17730     krb5_libs=`$KRB5_CONFIG --libs krb5`
   17731     saved_cppflags="$CPPFLAGS"
   17732     CPPFLAGS="$gssapi_cflags $krb5_cflags $CPPFLAGS"
   17733     for ac_header in gssapi.h gssapi/gssapi.h
   17734 do :
   17735   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17738   cat >>confdefs.h <<_ACEOF
   17739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17740 _ACEOF
   17741  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17742 fi
   17743 
   17744 done
   17745 
   17746     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17747 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   17748 $as_echo "krb5-config: gssapi.h not found" >&6; }
   17749 	CPPFLAGS="$saved_cppflags"
   17750 	use_gssapi="yes"
   17751     else
   17752 	for ac_header in krb5/krb5.h krb5.h
   17753 do :
   17754   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17755 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17757   cat >>confdefs.h <<_ACEOF
   17758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17759 _ACEOF
   17760  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17761 fi
   17762 
   17763 done
   17764 
   17765 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17766 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   17767 $as_echo "krb5-config: krb5.h not found" >&6; }
   17768 	    CPPFLAGS="$saved_cppflags"
   17769 	    use_gssapi="yes"
   17770 	else
   17771 	    CPPFLAGS="$saved_cppflags"
   17772 	    saved_libs="$LIBS"
   17773 	    LIBS="$gssapi_libs $krb5_libs $LIBS"
   17774 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   17775 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   17776 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17777 /* end confdefs.h.  */
   17778 
   17779 int
   17780 main ()
   17781 {
   17782 gss_acquire_cred();krb5_init_context()
   17783   ;
   17784   return 0;
   17785 }
   17786 _ACEOF
   17787 if ac_fn_c_try_link "$LINENO"; then :
   17788   gssapi_linked=yes
   17789 else
   17790   gssapi_linked=no
   17791 fi
   17792 rm -f core conftest.err conftest.$ac_objext \
   17793     conftest$ac_exeext conftest.$ac_ext
   17794 	    case $gssapi_linked in
   17795 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   17796 $as_echo "krb5-config: linked" >&6; };;
   17797 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   17798 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   17799 		    use_gssapi="yes"
   17800 		    ;;
   17801 	    esac
   17802 	    LIBS=$saved_libs
   17803 	fi
   17804     fi
   17805     if test "yes" = "$use_gssapi"; then
   17806 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   17807 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   17808     fi
   17809     ;;
   17810 esac
   17811 
   17812 case "$host" in
   17813 *darwin*)
   17814 	if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17815 	then
   17816 		use_gssapi=framework
   17817 	fi
   17818 	;;
   17819 esac
   17820 
   17821 # gssapi is just the framework, we really require kerberos v5, so
   17822 # look for those headers (the gssapi headers must be there, too)
   17823 # The problem with this implementation is that it doesn't allow
   17824 # for the specification of gssapi and krb5 headers in different locations,
   17825 # which probably ought to be fixed although fixing might raise the issue of
   17826 # trying to build with incompatible versions of gssapi and krb5.
   17827 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17828 then
   17829 	# first, deal with the obvious
   17830 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   17831 		   -f /usr/include/krb5/krb5.h -o \
   17832 		   -f /usr/include/krb5.h \)   -a \
   17833 		\( -f /usr/include/gssapi.h -o \
   17834 		   -f /usr/include/gssapi/gssapi.h \)
   17835 	then
   17836 		use_gssapi=/usr
   17837 	else
   17838 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   17839 	    for d in $krb5dirs
   17840 	    do
   17841 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   17842 			-f $d/include/krb5.h
   17843 		then
   17844 			if test -f $d/include/gssapi/gssapi.h -o \
   17845 				-f $d/include/gssapi.h
   17846 			then
   17847 				use_gssapi=$d
   17848 				break
   17849 			fi
   17850 		fi
   17851 	    done
   17852 	    if test "auto" = "$use_gssapi"
   17853 	    then
   17854 		use_gssapi="no"
   17855 	    fi
   17856 	fi
   17857 fi
   17858 
   17859 case "$use_gssapi" in
   17860 	no)
   17861 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   17862 $as_echo "disabled" >&6; }
   17863 		USE_GSSAPI=''
   17864 		;;
   17865 	yes)
   17866 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   17867 		;;
   17868 	*/krb5-config|krb5-config)
   17869 		USE_GSSAPI='-DGSSAPI'
   17870 		DST_GSSAPI_INC="$gssapi_cflags $krb5_cflags"
   17871 		DNS_GSSAPI_LIBS="$gssapi_libs $krb5_libs"
   17872 		;;
   17873 	framework)
   17874 		USE_GSSAPI='-DGSSAPI'
   17875 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   17876 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   17877 		DNS_GSSAPI_LIBS="-framework Kerberos"
   17878 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   17879 $as_echo "framework" >&6; }
   17880 		;;
   17881 
   17882 	*)
   17883 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   17884 $as_echo "looking in $use_gssapi/lib" >&6; }
   17885 		USE_GSSAPI='-DGSSAPI'
   17886 		saved_cppflags="$CPPFLAGS"
   17887 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   17888 		for ac_header in gssapi.h gssapi/gssapi.h
   17889 do :
   17890   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17893   cat >>confdefs.h <<_ACEOF
   17894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17895 _ACEOF
   17896  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17897 		     gssapi_hack="#include <$ac_header>"
   17898 fi
   17899 
   17900 done
   17901 
   17902 
   17903 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17904 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   17905 		fi
   17906 
   17907 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   17908 do :
   17909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17912   cat >>confdefs.h <<_ACEOF
   17913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17914 _ACEOF
   17915  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   17916 		     gssapi_krb5_hack="#include <$ac_header>"
   17917 fi
   17918 
   17919 done
   17920 
   17921 
   17922 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   17923 do :
   17924   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17927   cat >>confdefs.h <<_ACEOF
   17928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17929 _ACEOF
   17930  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17931 		    krb5_hack="#include <$ac_header>"
   17932 fi
   17933 
   17934 done
   17935 
   17936 
   17937 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17938 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   17939 		fi
   17940 
   17941 		#
   17942 		# XXXDCL This probably doesn't work right on all systems.
   17943 		# It will need to be worked on as problems become evident.
   17944 		#
   17945 		# Essentially the problems here relate to two different
   17946 		# areas.  The first area is building with either KTH
   17947 		# or MIT Kerberos, particularly when both are present on
   17948 		# the machine.  The other is static versus dynamic linking.
   17949 		#
   17950 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   17951 		# up the works if one implementation ends up trying to
   17952 		# use the other's krb.  This is unfortunately a situation
   17953 		# that very easily arises.
   17954 		#
   17955 		# Dynamic linking when the dependency information is built
   17956 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   17957 		# all such problems go away, but when that setup is not
   17958 		# present, because either the dynamic libraries lack
   17959 		# dependencies or static linking is being done, then the
   17960 		# problems start to show up.
   17961 		saved_libs="$LIBS"
   17962 		for TRY_LIBS in \
   17963 		    "-lgssapi_krb5" \
   17964 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   17965 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   17966 		    "-lgssapi" \
   17967 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   17968 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17969 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17970 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   17971 		    "-lgss -lkrb5"
   17972 		do
   17973 		    # Note that this does not include $saved_libs, because
   17974 		    # on FreeBSD machines this configure script has added
   17975 		    # -L/usr/local/lib to LIBS, which can make the
   17976 		    # -lgssapi_krb5 test succeed with shared libraries even
   17977 		    # when you are trying to build with KTH in /usr/lib.
   17978 		    if test "/usr" = "$use_gssapi"
   17979 		    then
   17980 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   17981 		    else
   17982 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   17983 		    fi
   17984 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   17985 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   17986 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17987 /* end confdefs.h.  */
   17988 
   17989 #include <sys/types.h>
   17990 $gssapi_hack
   17991 $gssapi_krb5_hack
   17992 $krb5_hack
   17993 
   17994 int
   17995 main ()
   17996 {
   17997 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   17998 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   17999 gsskrb5_register_acceptor_identity(NULL);
   18000 #endif
   18001   ;
   18002   return 0;
   18003 }
   18004 _ACEOF
   18005 if ac_fn_c_try_link "$LINENO"; then :
   18006   gssapi_linked=yes
   18007 else
   18008   gssapi_linked=no
   18009 fi
   18010 rm -f core conftest.err conftest.$ac_objext \
   18011     conftest$ac_exeext conftest.$ac_ext
   18012 		    case $gssapi_linked in
   18013 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18014 $as_echo "yes" >&6; }; break ;;
   18015 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18016 $as_echo "no" >&6; } ;;
   18017 		    esac
   18018 		done
   18019 
   18020 		CPPFLAGS="$saved_cppflags"
   18021 
   18022 		case $gssapi_linked in
   18023 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   18024 		esac
   18025 
   18026 		#
   18027 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   18028 		# but MIT in /usr/local/lib and trying to build with KTH.
   18029 		# /usr/local/lib can end up earlier on the link lines.
   18030 		# Like most kludges, this one is not only inelegant it
   18031 		# is also likely to be the wrong thing to do at least as
   18032 		# many times as it is the right thing.  Something better
   18033 		# needs to be done.
   18034 		#
   18035 		if test "/usr" = "$use_gssapi" -a \
   18036 			-f /usr/local/lib/libkrb5.a; then
   18037 		    FIX_KTH_VS_MIT=yes
   18038 		fi
   18039 
   18040 		case "$FIX_KTH_VS_MIT" in
   18041 		yes)
   18042 		    case "$enable_static_linking" in
   18043 		    yes) gssapi_lib_suffix=".a"  ;;
   18044 		    *)   gssapi_lib_suffix=".so" ;;
   18045 		    esac
   18046 
   18047 		    for lib in $LIBS; do
   18048 			case $lib in
   18049 			-L*)
   18050 			    ;;
   18051 			-l*)
   18052 			    new_lib=`echo $lib |
   18053 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   18054 					 -e s%$%$gssapi_lib_suffix%`
   18055 			    NEW_LIBS="$NEW_LIBS $new_lib"
   18056 			    ;;
   18057 			*)
   18058 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   18059 			    ;;
   18060 			esac
   18061 		    done
   18062 		    LIBS="$NEW_LIBS"
   18063 		    ;;
   18064 		esac
   18065 
   18066 		DST_GSSAPI_INC="-I$use_gssapi/include"
   18067 		DNS_GSSAPI_LIBS="$LIBS"
   18068 
   18069 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   18070 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   18071 		LIBS="$saved_libs"
   18072 		;;
   18073 esac
   18074 
   18075 
   18076 
   18077 
   18078 
   18079 
   18080 
   18081 
   18082 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   18083 
   18084 #
   18085 # Applications linking with libdns also need to link with these libraries.
   18086 #
   18087 
   18088 
   18089 
   18090 #
   18091 # was --with-lmdb specified?
   18092 #
   18093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   18094 $as_echo_n "checking for lmdb library... " >&6; }
   18095 
   18096 # [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
   18097 
   18098 # Check whether --with-lmdb was given.
   18099 if test "${with_lmdb+set}" = set; then :
   18100   withval=$with_lmdb; use_lmdb="$withval"
   18101 else
   18102   use_lmdb="auto"
   18103 fi
   18104 
   18105 
   18106 have_lmdb=""
   18107 case "$use_lmdb" in
   18108 	no)
   18109 		LMDB_LIBS=""
   18110 		;;
   18111 	auto|yes)
   18112 		for d in /usr /usr/local /opt/local
   18113 		do
   18114 			if test -f "${d}/include/lmdb.h"
   18115 			then
   18116 				if test ${d} != /usr
   18117 				then
   18118 					LMDB_CFLAGS="-I ${d}/include"
   18119 					LMDB_LIBS="-L${d}/lib"
   18120 				fi
   18121 				have_lmdb="yes"
   18122 			fi
   18123 		done
   18124 		;;
   18125 	*)
   18126 		if test -f "${use_lmdb}/include/lmdb.h"
   18127 		then
   18128 			LMDB_CFLAGS="-I${use_lmdb}/include"
   18129 			LMDB_LIBS="-L${use_lmdb}/lib"
   18130 			have_lmdb="yes"
   18131 		else
   18132 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   18133 		fi
   18134 		;;
   18135 esac
   18136 
   18137 if test "X${have_lmdb}" != "X"
   18138 then
   18139 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18140 $as_echo "yes" >&6; }
   18141 
   18142 
   18143   CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
   18144 
   18145 
   18146 
   18147   CFLAGS_lmdb_ax_save_flags=$CFLAGS
   18148 
   18149 
   18150 
   18151   CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
   18152 
   18153 
   18154 
   18155   CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
   18156 
   18157 
   18158 
   18159   ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
   18160 
   18161 
   18162 
   18163   FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
   18164 
   18165 
   18166 
   18167   FCLIBS_lmdb_ax_save_flags=$FCLIBS
   18168 
   18169 
   18170 
   18171   FFLAGS_lmdb_ax_save_flags=$FFLAGS
   18172 
   18173 
   18174 
   18175   FLIBS_lmdb_ax_save_flags=$FLIBS
   18176 
   18177 
   18178 
   18179   GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
   18180 
   18181 
   18182 
   18183   JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
   18184 
   18185 
   18186 
   18187   LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
   18188 
   18189 
   18190 
   18191   LIBS_lmdb_ax_save_flags=$LIBS
   18192 
   18193 
   18194 
   18195   OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
   18196 
   18197 
   18198 
   18199   OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
   18200 
   18201 
   18202 
   18203   UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
   18204 
   18205 
   18206 
   18207   VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
   18208 
   18209 
   18210 
   18211 	CFLAGS="$CFLAGS $LMDB_CFLAGS"
   18212 	LIBS="$LIBS $LMDB_LIBS"
   18213 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   18214 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   18215 if ${ac_cv_search_mdb_env_create+:} false; then :
   18216   $as_echo_n "(cached) " >&6
   18217 else
   18218   ac_func_search_save_LIBS=$LIBS
   18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18220 /* end confdefs.h.  */
   18221 
   18222 /* Override any GCC internal prototype to avoid an error.
   18223    Use char because int might match the return type of a GCC
   18224    builtin and then its argument prototype would still apply.  */
   18225 #ifdef __cplusplus
   18226 extern "C"
   18227 #endif
   18228 char mdb_env_create ();
   18229 int
   18230 main ()
   18231 {
   18232 return mdb_env_create ();
   18233   ;
   18234   return 0;
   18235 }
   18236 _ACEOF
   18237 for ac_lib in '' lmdb; do
   18238   if test -z "$ac_lib"; then
   18239     ac_res="none required"
   18240   else
   18241     ac_res=-l$ac_lib
   18242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   18243   fi
   18244   if ac_fn_c_try_link "$LINENO"; then :
   18245   ac_cv_search_mdb_env_create=$ac_res
   18246 fi
   18247 rm -f core conftest.err conftest.$ac_objext \
   18248     conftest$ac_exeext
   18249   if ${ac_cv_search_mdb_env_create+:} false; then :
   18250   break
   18251 fi
   18252 done
   18253 if ${ac_cv_search_mdb_env_create+:} false; then :
   18254 
   18255 else
   18256   ac_cv_search_mdb_env_create=no
   18257 fi
   18258 rm conftest.$ac_ext
   18259 LIBS=$ac_func_search_save_LIBS
   18260 fi
   18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   18262 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   18263 ac_res=$ac_cv_search_mdb_env_create
   18264 if test "$ac_res" != no; then :
   18265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18266 
   18267 else
   18268   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   18269 			have_lmdb=""
   18270 fi
   18271 
   18272 	LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
   18273 
   18274   CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
   18275 
   18276 
   18277   CFLAGS=$CFLAGS_lmdb_ax_save_flags
   18278 
   18279 
   18280   CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
   18281 
   18282 
   18283   CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
   18284 
   18285 
   18286   ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
   18287 
   18288 
   18289   FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
   18290 
   18291 
   18292   FCLIBS=$FCLIBS_lmdb_ax_save_flags
   18293 
   18294 
   18295   FFLAGS=$FFLAGS_lmdb_ax_save_flags
   18296 
   18297 
   18298   FLIBS=$FLIBS_lmdb_ax_save_flags
   18299 
   18300 
   18301   GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
   18302 
   18303 
   18304   JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
   18305 
   18306 
   18307   LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
   18308 
   18309 
   18310   LIBS=$LIBS_lmdb_ax_save_flags
   18311 
   18312 
   18313   OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
   18314 
   18315 
   18316   OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
   18317 
   18318 
   18319   UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
   18320 
   18321 
   18322   VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
   18323 
   18324 
   18325 
   18326 elif test "X$use_lmdb" = Xyes
   18327 then
   18328 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   18329 else
   18330 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18331 $as_echo "no" >&6; }
   18332 fi
   18333 
   18334 
   18335 
   18336 NZD_TOOLS=""
   18337 NZDSRCS=
   18338 NZDTARGETS=
   18339 if test "X${have_lmdb}" != "X"
   18340 then
   18341 
   18342 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   18343 
   18344 	NZD_TOOLS="nzd"
   18345 	NZDSRCS='${NZDSRCS}'
   18346 	NZDTARGETS='${NZDTARGETS}'
   18347 	NZD_MANS='${nzd_man8_MANS}'
   18348 fi
   18349 
   18350 
   18351 
   18352 
   18353 
   18354 #
   18355 # was --with-libxml2 specified?
   18356 #
   18357 # [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
   18358 
   18359 # Check whether --with-libxml2 was given.
   18360 if test "${with_libxml2+set}" = set; then :
   18361   withval=$with_libxml2;
   18362 else
   18363   with_libxml2="auto"
   18364 fi
   18365 
   18366 
   18367 case $with_libxml2 in #(
   18368   no) :
   18369      ;; #(
   18370   auto) :
   18371 
   18372 pkg_failed=no
   18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18374 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18375 
   18376 if test -n "$LIBXML2_CFLAGS"; then
   18377     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18378  elif test -n "$PKG_CONFIG"; then
   18379     if test -n "$PKG_CONFIG" && \
   18380     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18381   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18382   ac_status=$?
   18383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18384   test $ac_status = 0; }; then
   18385   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18386 		      test "x$?" != "x0" && pkg_failed=yes
   18387 else
   18388   pkg_failed=yes
   18389 fi
   18390  else
   18391     pkg_failed=untried
   18392 fi
   18393 if test -n "$LIBXML2_LIBS"; then
   18394     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18395  elif test -n "$PKG_CONFIG"; then
   18396     if test -n "$PKG_CONFIG" && \
   18397     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18398   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18399   ac_status=$?
   18400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18401   test $ac_status = 0; }; then
   18402   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18403 		      test "x$?" != "x0" && pkg_failed=yes
   18404 else
   18405   pkg_failed=yes
   18406 fi
   18407  else
   18408     pkg_failed=untried
   18409 fi
   18410 
   18411 
   18412 
   18413 if test $pkg_failed = yes; then
   18414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18415 $as_echo "no" >&6; }
   18416 
   18417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18418         _pkg_short_errors_supported=yes
   18419 else
   18420         _pkg_short_errors_supported=no
   18421 fi
   18422         if test $_pkg_short_errors_supported = yes; then
   18423 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18424         else
   18425 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18426         fi
   18427 	# Put the nasty error message in config.log where it belongs
   18428 	echo "$LIBXML2_PKG_ERRORS" >&5
   18429 
   18430 	:
   18431 elif test $pkg_failed = untried; then
   18432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18433 $as_echo "no" >&6; }
   18434 	:
   18435 else
   18436 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18437 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18439 $as_echo "yes" >&6; }
   18440 
   18441 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18442 
   18443 fi ;; #(
   18444   yes) :
   18445 
   18446 pkg_failed=no
   18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18448 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18449 
   18450 if test -n "$LIBXML2_CFLAGS"; then
   18451     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18452  elif test -n "$PKG_CONFIG"; then
   18453     if test -n "$PKG_CONFIG" && \
   18454     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18455   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18456   ac_status=$?
   18457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18458   test $ac_status = 0; }; then
   18459   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18460 		      test "x$?" != "x0" && pkg_failed=yes
   18461 else
   18462   pkg_failed=yes
   18463 fi
   18464  else
   18465     pkg_failed=untried
   18466 fi
   18467 if test -n "$LIBXML2_LIBS"; then
   18468     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18469  elif test -n "$PKG_CONFIG"; then
   18470     if test -n "$PKG_CONFIG" && \
   18471     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18472   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18473   ac_status=$?
   18474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18475   test $ac_status = 0; }; then
   18476   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18477 		      test "x$?" != "x0" && pkg_failed=yes
   18478 else
   18479   pkg_failed=yes
   18480 fi
   18481  else
   18482     pkg_failed=untried
   18483 fi
   18484 
   18485 
   18486 
   18487 if test $pkg_failed = yes; then
   18488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18489 $as_echo "no" >&6; }
   18490 
   18491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18492         _pkg_short_errors_supported=yes
   18493 else
   18494         _pkg_short_errors_supported=no
   18495 fi
   18496         if test $_pkg_short_errors_supported = yes; then
   18497 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18498         else
   18499 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18500         fi
   18501 	# Put the nasty error message in config.log where it belongs
   18502 	echo "$LIBXML2_PKG_ERRORS" >&5
   18503 
   18504 	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
   18505 
   18506 $LIBXML2_PKG_ERRORS
   18507 
   18508 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18509 installed software in a non-standard prefix.
   18510 
   18511 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18512 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18513 See the pkg-config man page for more details." "$LINENO" 5
   18514 elif test $pkg_failed = untried; then
   18515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18516 $as_echo "no" >&6; }
   18517 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18519 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18520 is in your PATH or set the PKG_CONFIG environment variable to the full
   18521 path to pkg-config.
   18522 
   18523 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18524 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18525 See the pkg-config man page for more details.
   18526 
   18527 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18528 See \`config.log' for more details" "$LINENO" 5; }
   18529 else
   18530 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18531 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18533 $as_echo "yes" >&6; }
   18534 
   18535 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18536 
   18537 fi ;; #(
   18538   *) :
   18539     as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18540 esac
   18541 
   18542 #
   18543 # DEPRECATED
   18544 #
   18545 # [pairwise: skip]
   18546 
   18547 # Check whether --with-libjson was given.
   18548 if test "${with_libjson+set}" = set; then :
   18549   withval=$with_libjson; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&5
   18550 $as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
   18551 else
   18552   with_libjson="detect"
   18553 fi
   18554 
   18555 
   18556 #
   18557 # was --with-json-c specified?
   18558 #
   18559 # [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
   18560 
   18561 # Check whether --with-json-c was given.
   18562 if test "${with_json_c+set}" = set; then :
   18563   withval=$with_json_c;
   18564 else
   18565   with_json_c="$with_libjson"
   18566 fi
   18567 
   18568 
   18569 case $with_json_c in #(
   18570   no) :
   18571      ;; #(
   18572   detect) :
   18573 
   18574 pkg_failed=no
   18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18576 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18577 
   18578 if test -n "$JSON_C_CFLAGS"; then
   18579     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18580  elif test -n "$PKG_CONFIG"; then
   18581     if test -n "$PKG_CONFIG" && \
   18582     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18583   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18584   ac_status=$?
   18585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18586   test $ac_status = 0; }; then
   18587   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18588 		      test "x$?" != "x0" && pkg_failed=yes
   18589 else
   18590   pkg_failed=yes
   18591 fi
   18592  else
   18593     pkg_failed=untried
   18594 fi
   18595 if test -n "$JSON_C_LIBS"; then
   18596     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18597  elif test -n "$PKG_CONFIG"; then
   18598     if test -n "$PKG_CONFIG" && \
   18599     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18600   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18601   ac_status=$?
   18602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18603   test $ac_status = 0; }; then
   18604   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18605 		      test "x$?" != "x0" && pkg_failed=yes
   18606 else
   18607   pkg_failed=yes
   18608 fi
   18609  else
   18610     pkg_failed=untried
   18611 fi
   18612 
   18613 
   18614 
   18615 if test $pkg_failed = yes; then
   18616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18617 $as_echo "no" >&6; }
   18618 
   18619 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18620         _pkg_short_errors_supported=yes
   18621 else
   18622         _pkg_short_errors_supported=no
   18623 fi
   18624         if test $_pkg_short_errors_supported = yes; then
   18625 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18626         else
   18627 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18628         fi
   18629 	# Put the nasty error message in config.log where it belongs
   18630 	echo "$JSON_C_PKG_ERRORS" >&5
   18631 
   18632 	:
   18633 elif test $pkg_failed = untried; then
   18634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18635 $as_echo "no" >&6; }
   18636 	:
   18637 else
   18638 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18639 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18641 $as_echo "yes" >&6; }
   18642 
   18643 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18644 
   18645 fi ;; #(
   18646   yes) :
   18647 
   18648 pkg_failed=no
   18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18650 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18651 
   18652 if test -n "$JSON_C_CFLAGS"; then
   18653     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18654  elif test -n "$PKG_CONFIG"; then
   18655     if test -n "$PKG_CONFIG" && \
   18656     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18657   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18658   ac_status=$?
   18659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18660   test $ac_status = 0; }; then
   18661   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18662 		      test "x$?" != "x0" && pkg_failed=yes
   18663 else
   18664   pkg_failed=yes
   18665 fi
   18666  else
   18667     pkg_failed=untried
   18668 fi
   18669 if test -n "$JSON_C_LIBS"; then
   18670     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18671  elif test -n "$PKG_CONFIG"; then
   18672     if test -n "$PKG_CONFIG" && \
   18673     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18674   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18675   ac_status=$?
   18676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18677   test $ac_status = 0; }; then
   18678   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18679 		      test "x$?" != "x0" && pkg_failed=yes
   18680 else
   18681   pkg_failed=yes
   18682 fi
   18683  else
   18684     pkg_failed=untried
   18685 fi
   18686 
   18687 
   18688 
   18689 if test $pkg_failed = yes; then
   18690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18691 $as_echo "no" >&6; }
   18692 
   18693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18694         _pkg_short_errors_supported=yes
   18695 else
   18696         _pkg_short_errors_supported=no
   18697 fi
   18698         if test $_pkg_short_errors_supported = yes; then
   18699 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18700         else
   18701 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18702         fi
   18703 	# Put the nasty error message in config.log where it belongs
   18704 	echo "$JSON_C_PKG_ERRORS" >&5
   18705 
   18706 	as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
   18707 
   18708 $JSON_C_PKG_ERRORS
   18709 
   18710 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18711 installed software in a non-standard prefix.
   18712 
   18713 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18714 and JSON_C_LIBS to avoid the need to call pkg-config.
   18715 See the pkg-config man page for more details." "$LINENO" 5
   18716 elif test $pkg_failed = untried; then
   18717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18718 $as_echo "no" >&6; }
   18719 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18721 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18722 is in your PATH or set the PKG_CONFIG environment variable to the full
   18723 path to pkg-config.
   18724 
   18725 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18726 and JSON_C_LIBS to avoid the need to call pkg-config.
   18727 See the pkg-config man page for more details.
   18728 
   18729 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18730 See \`config.log' for more details" "$LINENO" 5; }
   18731 else
   18732 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18733 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18735 $as_echo "yes" >&6; }
   18736 
   18737 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18738 
   18739 fi ;; #(
   18740   *) :
   18741     as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
   18742         ;;
   18743 esac
   18744 
   18745 
   18746 
   18747 
   18748 # [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
   18749 
   18750 # Check whether --with-zlib was given.
   18751 if test "${with_zlib+set}" = set; then :
   18752   withval=$with_zlib;
   18753 else
   18754   with_zlib="auto"
   18755 fi
   18756 
   18757 
   18758 case $with_zlib in #(
   18759   no) :
   18760      ;; #(
   18761   auto) :
   18762 
   18763 pkg_failed=no
   18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18765 $as_echo_n "checking for zlib... " >&6; }
   18766 
   18767 if test -n "$ZLIB_CFLAGS"; then
   18768     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18769  elif test -n "$PKG_CONFIG"; then
   18770     if test -n "$PKG_CONFIG" && \
   18771     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18772   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18773   ac_status=$?
   18774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18775   test $ac_status = 0; }; then
   18776   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18777 		      test "x$?" != "x0" && pkg_failed=yes
   18778 else
   18779   pkg_failed=yes
   18780 fi
   18781  else
   18782     pkg_failed=untried
   18783 fi
   18784 if test -n "$ZLIB_LIBS"; then
   18785     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18786  elif test -n "$PKG_CONFIG"; then
   18787     if test -n "$PKG_CONFIG" && \
   18788     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18789   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18790   ac_status=$?
   18791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18792   test $ac_status = 0; }; then
   18793   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18794 		      test "x$?" != "x0" && pkg_failed=yes
   18795 else
   18796   pkg_failed=yes
   18797 fi
   18798  else
   18799     pkg_failed=untried
   18800 fi
   18801 
   18802 
   18803 
   18804 if test $pkg_failed = yes; then
   18805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18806 $as_echo "no" >&6; }
   18807 
   18808 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18809         _pkg_short_errors_supported=yes
   18810 else
   18811         _pkg_short_errors_supported=no
   18812 fi
   18813         if test $_pkg_short_errors_supported = yes; then
   18814 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18815         else
   18816 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18817         fi
   18818 	# Put the nasty error message in config.log where it belongs
   18819 	echo "$ZLIB_PKG_ERRORS" >&5
   18820 
   18821 	:
   18822 elif test $pkg_failed = untried; then
   18823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18824 $as_echo "no" >&6; }
   18825 	:
   18826 else
   18827 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18828 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18830 $as_echo "yes" >&6; }
   18831 
   18832 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18833 
   18834 fi ;; #(
   18835   yes) :
   18836 
   18837 pkg_failed=no
   18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18839 $as_echo_n "checking for zlib... " >&6; }
   18840 
   18841 if test -n "$ZLIB_CFLAGS"; then
   18842     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18843  elif test -n "$PKG_CONFIG"; then
   18844     if test -n "$PKG_CONFIG" && \
   18845     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18846   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18847   ac_status=$?
   18848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18849   test $ac_status = 0; }; then
   18850   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18851 		      test "x$?" != "x0" && pkg_failed=yes
   18852 else
   18853   pkg_failed=yes
   18854 fi
   18855  else
   18856     pkg_failed=untried
   18857 fi
   18858 if test -n "$ZLIB_LIBS"; then
   18859     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18860  elif test -n "$PKG_CONFIG"; then
   18861     if test -n "$PKG_CONFIG" && \
   18862     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18863   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18864   ac_status=$?
   18865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18866   test $ac_status = 0; }; then
   18867   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18868 		      test "x$?" != "x0" && pkg_failed=yes
   18869 else
   18870   pkg_failed=yes
   18871 fi
   18872  else
   18873     pkg_failed=untried
   18874 fi
   18875 
   18876 
   18877 
   18878 if test $pkg_failed = yes; then
   18879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18880 $as_echo "no" >&6; }
   18881 
   18882 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18883         _pkg_short_errors_supported=yes
   18884 else
   18885         _pkg_short_errors_supported=no
   18886 fi
   18887         if test $_pkg_short_errors_supported = yes; then
   18888 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18889         else
   18890 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18891         fi
   18892 	# Put the nasty error message in config.log where it belongs
   18893 	echo "$ZLIB_PKG_ERRORS" >&5
   18894 
   18895 	as_fn_error $? "Package requirements (zlib) were not met:
   18896 
   18897 $ZLIB_PKG_ERRORS
   18898 
   18899 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18900 installed software in a non-standard prefix.
   18901 
   18902 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18903 and ZLIB_LIBS to avoid the need to call pkg-config.
   18904 See the pkg-config man page for more details." "$LINENO" 5
   18905 elif test $pkg_failed = untried; then
   18906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18907 $as_echo "no" >&6; }
   18908 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18910 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18911 is in your PATH or set the PKG_CONFIG environment variable to the full
   18912 path to pkg-config.
   18913 
   18914 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18915 and ZLIB_LIBS to avoid the need to call pkg-config.
   18916 See the pkg-config man page for more details.
   18917 
   18918 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18919 See \`config.log' for more details" "$LINENO" 5; }
   18920 else
   18921 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18922 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18924 $as_echo "yes" >&6; }
   18925 
   18926 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18927 
   18928 fi ;; #(
   18929   *) :
   18930     as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18931 esac
   18932 
   18933 
   18934 
   18935 #
   18936 # In solaris 10, SMF can manage named service
   18937 #
   18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   18939 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   18940 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   18941   $as_echo_n "(cached) " >&6
   18942 else
   18943   ac_check_lib_save_LIBS=$LIBS
   18944 LIBS="-lscf  $LIBS"
   18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18946 /* end confdefs.h.  */
   18947 
   18948 /* Override any GCC internal prototype to avoid an error.
   18949    Use char because int might match the return type of a GCC
   18950    builtin and then its argument prototype would still apply.  */
   18951 #ifdef __cplusplus
   18952 extern "C"
   18953 #endif
   18954 char smf_enable_instance ();
   18955 int
   18956 main ()
   18957 {
   18958 return smf_enable_instance ();
   18959   ;
   18960   return 0;
   18961 }
   18962 _ACEOF
   18963 if ac_fn_c_try_link "$LINENO"; then :
   18964   ac_cv_lib_scf_smf_enable_instance=yes
   18965 else
   18966   ac_cv_lib_scf_smf_enable_instance=no
   18967 fi
   18968 rm -f core conftest.err conftest.$ac_objext \
   18969     conftest$ac_exeext conftest.$ac_ext
   18970 LIBS=$ac_check_lib_save_LIBS
   18971 fi
   18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   18973 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   18974 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   18975   cat >>confdefs.h <<_ACEOF
   18976 #define HAVE_LIBSCF 1
   18977 _ACEOF
   18978 
   18979   LIBS="-lscf $LIBS"
   18980 
   18981 fi
   18982 
   18983 
   18984 #
   18985 # Additional compiler settings.
   18986 #
   18987 MKDEPCC="$CC"
   18988 
   18989 MKDEPCFLAGS="-M"
   18990 case $host in #(
   18991   *-solaris*) :
   18992 
   18993 	    if test "$GCC" != "yes"; then :
   18994   MKDEPCFLAGS="-xM"
   18995 fi ;; #(
   18996   *) :
   18997      ;;
   18998 esac
   18999 
   19000 if test "$GCC" = "yes"; then :
   19001   STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
   19002 
   19003 fi
   19004 
   19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
   19006 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
   19007 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
   19008   $as_echo_n "(cached) " >&6
   19009 else
   19010 
   19011   ax_check_save_flags=$CFLAGS
   19012   CFLAGS="$CFLAGS  -fno-strict-aliasing"
   19013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19014 /* end confdefs.h.  */
   19015 
   19016 int
   19017 main ()
   19018 {
   19019 
   19020   ;
   19021   return 0;
   19022 }
   19023 _ACEOF
   19024 if ac_fn_c_try_compile "$LINENO"; then :
   19025   ax_cv_check_cflags___fno_strict_aliasing=yes
   19026 else
   19027   ax_cv_check_cflags___fno_strict_aliasing=no
   19028 fi
   19029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19030   CFLAGS=$ax_check_save_flags
   19031 fi
   19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
   19033 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
   19034 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
   19035   STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   19036 else
   19037   :
   19038 fi
   19039 
   19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
   19041 $as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
   19042 if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
   19043   $as_echo_n "(cached) " >&6
   19044 else
   19045 
   19046   ax_check_save_flags=$CFLAGS
   19047   CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
   19048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19049 /* end confdefs.h.  */
   19050 
   19051 int
   19052 main ()
   19053 {
   19054 
   19055   ;
   19056   return 0;
   19057 }
   19058 _ACEOF
   19059 if ac_fn_c_try_compile "$LINENO"; then :
   19060   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
   19061 else
   19062   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
   19063 fi
   19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19065   CFLAGS=$ax_check_save_flags
   19066 fi
   19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
   19068 $as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
   19069 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
   19070   STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   19071 else
   19072   :
   19073 fi
   19074 
   19075 if test "$enable_warn_shadow" = "yes"; then :
   19076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
   19077 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
   19078 if ${ax_cv_check_cflags___Wshadow+:} false; then :
   19079   $as_echo_n "(cached) " >&6
   19080 else
   19081 
   19082   ax_check_save_flags=$CFLAGS
   19083   CFLAGS="$CFLAGS  -Wshadow"
   19084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19085 /* end confdefs.h.  */
   19086 
   19087 int
   19088 main ()
   19089 {
   19090 
   19091   ;
   19092   return 0;
   19093 }
   19094 _ACEOF
   19095 if ac_fn_c_try_compile "$LINENO"; then :
   19096   ax_cv_check_cflags___Wshadow=yes
   19097 else
   19098   ax_cv_check_cflags___Wshadow=no
   19099 fi
   19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19101   CFLAGS=$ax_check_save_flags
   19102 fi
   19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
   19104 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
   19105 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
   19106   STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   19107 else
   19108   :
   19109 fi
   19110 
   19111 fi
   19112 if test "$enable_warn_error" = "yes"; then :
   19113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
   19114 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
   19115 if ${ax_cv_check_cflags___Werror+:} false; then :
   19116   $as_echo_n "(cached) " >&6
   19117 else
   19118 
   19119   ax_check_save_flags=$CFLAGS
   19120   CFLAGS="$CFLAGS  -Werror"
   19121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19122 /* end confdefs.h.  */
   19123 
   19124 int
   19125 main ()
   19126 {
   19127 
   19128   ;
   19129   return 0;
   19130 }
   19131 _ACEOF
   19132 if ac_fn_c_try_compile "$LINENO"; then :
   19133   ax_cv_check_cflags___Werror=yes
   19134 else
   19135   ax_cv_check_cflags___Werror=no
   19136 fi
   19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19138   CFLAGS=$ax_check_save_flags
   19139 fi
   19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
   19141 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
   19142 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
   19143   STD_CWARNINGS="$STD_CWARNINGS -Werror"
   19144 else
   19145   :
   19146 fi
   19147 
   19148 fi
   19149 
   19150 
   19151 
   19152 
   19153 
   19154 #
   19155 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   19156 #
   19157 # AC_CHECK_LIB(xnet, socket, ,
   19158 #    AC_CHECK_LIB(socket, socket)
   19159 # )
   19160 #
   19161 # Use this for now, instead:
   19162 #
   19163 case "$host" in
   19164 	*-linux*)
   19165 		;;
   19166 	*)
   19167 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   19168 $as_echo_n "checking for socket in -lsocket... " >&6; }
   19169 if ${ac_cv_lib_socket_socket+:} false; then :
   19170   $as_echo_n "(cached) " >&6
   19171 else
   19172   ac_check_lib_save_LIBS=$LIBS
   19173 LIBS="-lsocket  $LIBS"
   19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19175 /* end confdefs.h.  */
   19176 
   19177 /* Override any GCC internal prototype to avoid an error.
   19178    Use char because int might match the return type of a GCC
   19179    builtin and then its argument prototype would still apply.  */
   19180 #ifdef __cplusplus
   19181 extern "C"
   19182 #endif
   19183 char socket ();
   19184 int
   19185 main ()
   19186 {
   19187 return socket ();
   19188   ;
   19189   return 0;
   19190 }
   19191 _ACEOF
   19192 if ac_fn_c_try_link "$LINENO"; then :
   19193   ac_cv_lib_socket_socket=yes
   19194 else
   19195   ac_cv_lib_socket_socket=no
   19196 fi
   19197 rm -f core conftest.err conftest.$ac_objext \
   19198     conftest$ac_exeext conftest.$ac_ext
   19199 LIBS=$ac_check_lib_save_LIBS
   19200 fi
   19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   19202 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   19203 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   19204   cat >>confdefs.h <<_ACEOF
   19205 #define HAVE_LIBSOCKET 1
   19206 _ACEOF
   19207 
   19208   LIBS="-lsocket $LIBS"
   19209 
   19210 fi
   19211 
   19212 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   19213 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   19214 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   19215   $as_echo_n "(cached) " >&6
   19216 else
   19217   ac_check_lib_save_LIBS=$LIBS
   19218 LIBS="-lnsl  $LIBS"
   19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19220 /* end confdefs.h.  */
   19221 
   19222 /* Override any GCC internal prototype to avoid an error.
   19223    Use char because int might match the return type of a GCC
   19224    builtin and then its argument prototype would still apply.  */
   19225 #ifdef __cplusplus
   19226 extern "C"
   19227 #endif
   19228 char inet_addr ();
   19229 int
   19230 main ()
   19231 {
   19232 return inet_addr ();
   19233   ;
   19234   return 0;
   19235 }
   19236 _ACEOF
   19237 if ac_fn_c_try_link "$LINENO"; then :
   19238   ac_cv_lib_nsl_inet_addr=yes
   19239 else
   19240   ac_cv_lib_nsl_inet_addr=no
   19241 fi
   19242 rm -f core conftest.err conftest.$ac_objext \
   19243     conftest$ac_exeext conftest.$ac_ext
   19244 LIBS=$ac_check_lib_save_LIBS
   19245 fi
   19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   19247 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   19248 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   19249   cat >>confdefs.h <<_ACEOF
   19250 #define HAVE_LIBNSL 1
   19251 _ACEOF
   19252 
   19253   LIBS="-lnsl $LIBS"
   19254 
   19255 fi
   19256 
   19257 		;;
   19258 esac
   19259 
   19260 #
   19261 # Work around Solaris's select() limitations.
   19262 #
   19263 case "$host" in
   19264 	*-solaris2.[89]|*-solaris2.1?)
   19265 
   19266 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   19267 
   19268 	;;
   19269 esac
   19270 
   19271 #
   19272 # Purify support
   19273 #
   19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   19275 $as_echo_n "checking whether to use purify... " >&6; }
   19276 
   19277 # Purify is not included in pairwise testing as that tool is not present
   19278 # in the relevant Docker image.
   19279 #
   19280 # [pairwise: skip]
   19281 
   19282 # Check whether --with-purify was given.
   19283 if test "${with_purify+set}" = set; then :
   19284   withval=$with_purify; use_purify="$withval"
   19285 else
   19286   use_purify="no"
   19287 fi
   19288 
   19289 
   19290 case "$use_purify" in
   19291 	no)
   19292 		;;
   19293 	yes)
   19294 		# Extract the first word of "purify", so it can be a program name with args.
   19295 set dummy purify; ac_word=$2
   19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19297 $as_echo_n "checking for $ac_word... " >&6; }
   19298 if ${ac_cv_path_purify_path+:} false; then :
   19299   $as_echo_n "(cached) " >&6
   19300 else
   19301   case $purify_path in
   19302   [\\/]* | ?:[\\/]*)
   19303   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   19304   ;;
   19305   *)
   19306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19307 for as_dir in $PATH
   19308 do
   19309   IFS=$as_save_IFS
   19310   test -z "$as_dir" && as_dir=.
   19311     for ac_exec_ext in '' $ac_executable_extensions; do
   19312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19313     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   19314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19315     break 2
   19316   fi
   19317 done
   19318   done
   19319 IFS=$as_save_IFS
   19320 
   19321   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   19322   ;;
   19323 esac
   19324 fi
   19325 purify_path=$ac_cv_path_purify_path
   19326 if test -n "$purify_path"; then
   19327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   19328 $as_echo "$purify_path" >&6; }
   19329 else
   19330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19331 $as_echo "no" >&6; }
   19332 fi
   19333 
   19334 
   19335 		;;
   19336 	*)
   19337 		purify_path="$use_purify"
   19338 		;;
   19339 esac
   19340 
   19341 case "$use_purify" in
   19342 	no)
   19343 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19344 $as_echo "no" >&6; }
   19345 		PURIFY=""
   19346 		;;
   19347 	*)
   19348 		if test -f "$purify_path" || test purify = "$purify_path"; then
   19349 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   19350 $as_echo "$purify_path" >&6; }
   19351 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   19352 			PURIFY="$purify_path $PURIFYFLAGS"
   19353 		else
   19354 			as_fn_error $? "$purify_path not found.
   19355 
   19356 Please choose the proper path with the following command:
   19357 
   19358     configure --with-purify=PATH
   19359 " "$LINENO" 5
   19360 		fi
   19361 		;;
   19362 esac
   19363 
   19364 
   19365 
   19366 #
   19367 # Google/Great Performance Tools CPU Profiler
   19368 #
   19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   19370 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   19371 
   19372 # Google/Great Performance Tools CPU Profiler is not included in
   19373 # pairwise testing as that tool is not present in the relevant Docker
   19374 # image.
   19375 #
   19376 # [pairwise: skip]
   19377 
   19378 # Check whether --with-gperftools-profiler was given.
   19379 if test "${with_gperftools_profiler+set}" = set; then :
   19380   withval=$with_gperftools_profiler; use_profiler="$withval"
   19381 else
   19382   use_profiler="no"
   19383 fi
   19384 
   19385 
   19386 case $use_profiler in
   19387 	yes)
   19388 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19389 $as_echo "yes" >&6; }
   19390 
   19391 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   19392 
   19393 		LIBS="$LIBS -lprofiler"
   19394 		;;
   19395 	*)
   19396 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19397 $as_echo "no" >&6; }
   19398 		;;
   19399 esac
   19400 
   19401 #
   19402 # enable/disable dumping stack backtrace.  Also check if the system supports
   19403 # glibc-compatible backtrace() function.
   19404 #
   19405 # [pairwise: --enable-backtrace, --disable-backtrace]
   19406 # Check whether --enable-backtrace was given.
   19407 if test "${enable_backtrace+set}" = set; then :
   19408   enableval=$enable_backtrace;
   19409 else
   19410   enable_backtrace="yes"
   19411 fi
   19412 
   19413 
   19414 if test "$enable_backtrace" = "yes"; then :
   19415 
   19416 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   19417 
   19418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
   19419 $as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
   19420 if ${ac_cv_lib_execinfo_backtrace+:} false; then :
   19421   $as_echo_n "(cached) " >&6
   19422 else
   19423   ac_check_lib_save_LIBS=$LIBS
   19424 LIBS="-lexecinfo  $LIBS"
   19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19426 /* end confdefs.h.  */
   19427 
   19428 /* Override any GCC internal prototype to avoid an error.
   19429    Use char because int might match the return type of a GCC
   19430    builtin and then its argument prototype would still apply.  */
   19431 #ifdef __cplusplus
   19432 extern "C"
   19433 #endif
   19434 char backtrace ();
   19435 int
   19436 main ()
   19437 {
   19438 return backtrace ();
   19439   ;
   19440   return 0;
   19441 }
   19442 _ACEOF
   19443 if ac_fn_c_try_link "$LINENO"; then :
   19444   ac_cv_lib_execinfo_backtrace=yes
   19445 else
   19446   ac_cv_lib_execinfo_backtrace=no
   19447 fi
   19448 rm -f core conftest.err conftest.$ac_objext \
   19449     conftest$ac_exeext conftest.$ac_ext
   19450 LIBS=$ac_check_lib_save_LIBS
   19451 fi
   19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
   19453 $as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
   19454 if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
   19455   EXILIBS=-lexecinfo
   19456 else
   19457   EXILIBS=
   19458 fi
   19459 
   19460        LIBS="$LIBS $EXILIBS"
   19461        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19462 /* end confdefs.h.  */
   19463 #include <execinfo.h>
   19464 int
   19465 main ()
   19466 {
   19467 return (backtrace((void **)0, 0));
   19468 
   19469   ;
   19470   return 0;
   19471 }
   19472 _ACEOF
   19473 if ac_fn_c_try_link "$LINENO"; then :
   19474 
   19475 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   19476 
   19477 else
   19478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19479 /* end confdefs.h.  */
   19480 #include <stddef.h>
   19481 int
   19482 main ()
   19483 {
   19484 return _Unwind_Backtrace(NULL, NULL);
   19485 
   19486   ;
   19487   return 0;
   19488 }
   19489 _ACEOF
   19490 if ac_fn_c_try_link "$LINENO"; then :
   19491 
   19492 $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
   19493 
   19494 
   19495 fi
   19496 rm -f core conftest.err conftest.$ac_objext \
   19497     conftest$ac_exeext conftest.$ac_ext
   19498 
   19499 fi
   19500 rm -f core conftest.err conftest.$ac_objext \
   19501     conftest$ac_exeext conftest.$ac_ext
   19502 fi
   19503 
   19504 # [pairwise: --enable-symtable, --disable-symtable]
   19505 # Check whether --enable-symtable was given.
   19506 if test "${enable_symtable+set}" = set; then :
   19507   enableval=$enable_symtable; want_symtable="$enableval"
   19508 else
   19509   want_symtable="minimal"
   19510 fi
   19511 
   19512 case $want_symtable in
   19513 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   19514 	if test "" = "$PERL"
   19515 	then
   19516 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   19517 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   19518 	fi
   19519 	if test "yes" = "$use_libtool"; then
   19520 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   19521 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   19522 	else
   19523 		# we generate the internal symbol table only for those systems
   19524 		# known to work to avoid unexpected build failure.  Also, warn
   19525 		# about unsupported systems when the feature is enabled
   19526 		#  manually.
   19527 		case $host_os in
   19528 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   19529 			MKSYMTBL_PROGRAM="$PERL"
   19530 			if test "all" = "$want_symtable"; then
   19531 				ALWAYS_MAKE_SYMTABLE="yes"
   19532 			fi
   19533 			;;
   19534 		*)
   19535 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   19536 			then
   19537 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   19538 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   19539 			fi
   19540 		esac
   19541 	fi
   19542 	;;
   19543 *)
   19544 	;;
   19545 esac
   19546 
   19547 
   19548 
   19549 #
   19550 # File name extension for static archive files, for those few places
   19551 # where they are treated differently from dynamic ones.
   19552 #
   19553 SA=a
   19554 
   19555 
   19556 
   19557 
   19558 
   19559 
   19560 
   19561 
   19562 
   19563 
   19564 BIND9_CO_RULE=".c.$O:"
   19565 
   19566 
   19567 #
   19568 # Here begins a very long section to determine the system's networking
   19569 # capabilities.  The order of the tests is significant.
   19570 #
   19571 
   19572 #
   19573 # We do the IPv6 compilation checking after libtool so that we can put
   19574 # the right suffix on the files.
   19575 #
   19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   19577 $as_echo_n "checking for IPv6 structures... " >&6; }
   19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19579 /* end confdefs.h.  */
   19580 
   19581        #include <sys/types.h>
   19582        #include <sys/socket.h>
   19583        #include <netinet/in.h>
   19584 
   19585 int
   19586 main ()
   19587 {
   19588 
   19589        struct sockaddr_in6 sin6;
   19590        struct in6_addr in6;
   19591        struct in6_pktinfo in6_pi;
   19592        struct sockaddr_storage storage;
   19593        in6 = in6addr_any;
   19594        in6 = in6addr_loopback;
   19595        sin6.sin6_scope_id = 0;
   19596        return (0);
   19597 
   19598   ;
   19599   return 0;
   19600 }
   19601 _ACEOF
   19602 if ac_fn_c_try_compile "$LINENO"; then :
   19603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19604 $as_echo "yes" >&6; }
   19605 else
   19606   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19608 as_fn_error $? "IPv6 support is mandatory
   19609 See \`config.log' for more details" "$LINENO" 5; }
   19610 fi
   19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19612 
   19613 #
   19614 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   19615 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   19616 # comment in lib/isc/unix/socket.c).
   19617 #
   19618 # [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
   19619 # Check whether --enable-tcp_fastopen was given.
   19620 if test "${enable_tcp_fastopen+set}" = set; then :
   19621   enableval=$enable_tcp_fastopen;
   19622 else
   19623   enable_tcp_fastopen="yes"
   19624 fi
   19625 
   19626 
   19627 if test "$enable_tcp_fastopen" = "yes"; then :
   19628 
   19629 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   19630 
   19631 fi
   19632 
   19633 #
   19634 # Check for some other useful functions that are not ever-present.
   19635 #
   19636 for ac_func in strlcpy strlcat strnstr
   19637 do :
   19638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19641   cat >>confdefs.h <<_ACEOF
   19642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19643 _ACEOF
   19644 
   19645 fi
   19646 done
   19647 
   19648 
   19649 
   19650 
   19651 # [pairwise: --with-readline=auto, --with-readline=yes, --without-readline]
   19652 
   19653 # Check whether --with-readline was given.
   19654 if test "${with_readline+set}" = set; then :
   19655   withval=$with_readline; use_readline="$withval"
   19656 else
   19657   use_readline="auto"
   19658 fi
   19659 
   19660 case "$use_readline" in
   19661 no)	;;
   19662 *)
   19663 	saved_LIBS="$LIBS"
   19664 	case "$use_readline" in
   19665 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   19666 	*) try_readline="$use_readline"
   19667 	esac
   19668 	for readline in "$try_readline" $or_readline
   19669 	do
   19670 		LIBS="$readline"
   19671 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   19672 $as_echo "$as_me: checking for readline with $readline" >&6;}
   19673 		for ac_func in readline
   19674 do :
   19675   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19676 if test "x$ac_cv_func_readline" = xyes; then :
   19677   cat >>confdefs.h <<_ACEOF
   19678 #define HAVE_READLINE 1
   19679 _ACEOF
   19680 
   19681 fi
   19682 done
   19683 
   19684 		if test "yes" = "$ac_cv_func_readline"
   19685 		then
   19686 			READLINE_LIB="$readline"
   19687 			break
   19688 		fi
   19689 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   19690 		do
   19691 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   19692 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   19693 			unset ac_cv_func_readline
   19694 			LIBS="$readline $lib"
   19695 			for ac_func in readline
   19696 do :
   19697   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19698 if test "x$ac_cv_func_readline" = xyes; then :
   19699   cat >>confdefs.h <<_ACEOF
   19700 #define HAVE_READLINE 1
   19701 _ACEOF
   19702 
   19703 fi
   19704 done
   19705 
   19706 			if test "yes" = "$ac_cv_func_readline"
   19707 			then
   19708 				READLINE_LIB="$readline $lib"
   19709 				break
   19710 			fi
   19711 		done
   19712 		if test "yes" = "$ac_cv_func_readline"
   19713 		then
   19714 			break
   19715 		fi
   19716 	done
   19717 	if test "auto" != "$use_readline" &&
   19718 	   test "X$READLINE_LIB" = "X"
   19719 	then
   19720 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   19721 	fi
   19722 	LIBS="$saved_LIBS"
   19723 	;;
   19724 esac
   19725 if test "yes" = "$ac_cv_func_readline"
   19726 then
   19727 	case "$READLINE_LIB" in
   19728 	*edit*)
   19729 		for ac_header in editline/readline.h
   19730 do :
   19731   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   19732 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   19733   cat >>confdefs.h <<_ACEOF
   19734 #define HAVE_EDITLINE_READLINE_H 1
   19735 _ACEOF
   19736 
   19737 fi
   19738 
   19739 done
   19740 
   19741 		for ac_header in edit/readline/readline.h
   19742 do :
   19743   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   19744 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   19745   cat >>confdefs.h <<_ACEOF
   19746 #define HAVE_EDIT_READLINE_READLINE_H 1
   19747 _ACEOF
   19748 
   19749 fi
   19750 
   19751 done
   19752 
   19753 		for ac_header in edit/readline/history.h
   19754 do :
   19755   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   19756 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   19757   cat >>confdefs.h <<_ACEOF
   19758 #define HAVE_EDIT_READLINE_HISTORY_H 1
   19759 _ACEOF
   19760 
   19761 fi
   19762 
   19763 done
   19764 
   19765 		;;
   19766 	esac
   19767 	for ac_header in readline/readline.h
   19768 do :
   19769   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   19770 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   19771   cat >>confdefs.h <<_ACEOF
   19772 #define HAVE_READLINE_READLINE_H 1
   19773 _ACEOF
   19774 
   19775 fi
   19776 
   19777 done
   19778 
   19779 	for ac_header in readline/history.h
   19780 do :
   19781   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   19782 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   19783   cat >>confdefs.h <<_ACEOF
   19784 #define HAVE_READLINE_HISTORY_H 1
   19785 _ACEOF
   19786 
   19787 fi
   19788 
   19789 done
   19790 
   19791 fi
   19792 
   19793 
   19794 
   19795 
   19796 #
   19797 # Security Stuff
   19798 #
   19799 # Note it is very recommended to *not* disable chroot(),
   19800 # this is only because chroot() was made obsolete by Posix.
   19801 #
   19802 # [pairwise: --enable-chroot, --disable-chroot]
   19803 # Check whether --enable-chroot was given.
   19804 if test "${enable_chroot+set}" = set; then :
   19805   enableval=$enable_chroot;
   19806 fi
   19807 
   19808 case "$enable_chroot" in
   19809 	yes|'')
   19810 		for ac_func in chroot
   19811 do :
   19812   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   19813 if test "x$ac_cv_func_chroot" = xyes; then :
   19814   cat >>confdefs.h <<_ACEOF
   19815 #define HAVE_CHROOT 1
   19816 _ACEOF
   19817 
   19818 fi
   19819 done
   19820 
   19821 		;;
   19822 	no)
   19823 		;;
   19824 esac
   19825 
   19826 LIBCAP_LIBS=""
   19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   19828 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   19829 
   19830 # [pairwise: --enable-linux-caps, --disable-linux-caps]
   19831 # Check whether --enable-linux-caps was given.
   19832 if test "${enable_linux_caps+set}" = set; then :
   19833   enableval=$enable_linux_caps;
   19834 else
   19835   case $host in #(
   19836   *-linux*) :
   19837     enable_linux_caps=yes ;; #(
   19838   *) :
   19839     enable_linux_caps=no ;;
   19840 esac
   19841 fi
   19842 
   19843 
   19844 if test "$enable_linux_caps" = "yes"; then :
   19845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19846 $as_echo "yes" >&6; }
   19847        for ac_header in sys/capability.h
   19848 do :
   19849   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   19850 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   19851   cat >>confdefs.h <<_ACEOF
   19852 #define HAVE_SYS_CAPABILITY_H 1
   19853 _ACEOF
   19854 
   19855 else
   19856   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19857 fi
   19858 
   19859 done
   19860 
   19861 
   19862 
   19863   CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
   19864 
   19865 
   19866 
   19867   CFLAGS_cap_ax_save_flags=$CFLAGS
   19868 
   19869 
   19870 
   19871   CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
   19872 
   19873 
   19874 
   19875   CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
   19876 
   19877 
   19878 
   19879   ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
   19880 
   19881 
   19882 
   19883   FCFLAGS_cap_ax_save_flags=$FCFLAGS
   19884 
   19885 
   19886 
   19887   FCLIBS_cap_ax_save_flags=$FCLIBS
   19888 
   19889 
   19890 
   19891   FFLAGS_cap_ax_save_flags=$FFLAGS
   19892 
   19893 
   19894 
   19895   FLIBS_cap_ax_save_flags=$FLIBS
   19896 
   19897 
   19898 
   19899   GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
   19900 
   19901 
   19902 
   19903   JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
   19904 
   19905 
   19906 
   19907   LDFLAGS_cap_ax_save_flags=$LDFLAGS
   19908 
   19909 
   19910 
   19911   LIBS_cap_ax_save_flags=$LIBS
   19912 
   19913 
   19914 
   19915   OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
   19916 
   19917 
   19918 
   19919   OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
   19920 
   19921 
   19922 
   19923   UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
   19924 
   19925 
   19926 
   19927   VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
   19928 
   19929 
   19930 
   19931        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   19932 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   19933 if ${ac_cv_search_cap_set_proc+:} false; then :
   19934   $as_echo_n "(cached) " >&6
   19935 else
   19936   ac_func_search_save_LIBS=$LIBS
   19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19938 /* end confdefs.h.  */
   19939 
   19940 /* Override any GCC internal prototype to avoid an error.
   19941    Use char because int might match the return type of a GCC
   19942    builtin and then its argument prototype would still apply.  */
   19943 #ifdef __cplusplus
   19944 extern "C"
   19945 #endif
   19946 char cap_set_proc ();
   19947 int
   19948 main ()
   19949 {
   19950 return cap_set_proc ();
   19951   ;
   19952   return 0;
   19953 }
   19954 _ACEOF
   19955 for ac_lib in '' cap; do
   19956   if test -z "$ac_lib"; then
   19957     ac_res="none required"
   19958   else
   19959     ac_res=-l$ac_lib
   19960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19961   fi
   19962   if ac_fn_c_try_link "$LINENO"; then :
   19963   ac_cv_search_cap_set_proc=$ac_res
   19964 fi
   19965 rm -f core conftest.err conftest.$ac_objext \
   19966     conftest$ac_exeext
   19967   if ${ac_cv_search_cap_set_proc+:} false; then :
   19968   break
   19969 fi
   19970 done
   19971 if ${ac_cv_search_cap_set_proc+:} false; then :
   19972 
   19973 else
   19974   ac_cv_search_cap_set_proc=no
   19975 fi
   19976 rm conftest.$ac_ext
   19977 LIBS=$ac_func_search_save_LIBS
   19978 fi
   19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   19980 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   19981 ac_res=$ac_cv_search_cap_set_proc
   19982 if test "$ac_res" != no; then :
   19983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19984   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   19985 else
   19986   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19987 fi
   19988 
   19989 
   19990   CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
   19991 
   19992 
   19993   CFLAGS=$CFLAGS_cap_ax_save_flags
   19994 
   19995 
   19996   CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
   19997 
   19998 
   19999   CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
   20000 
   20001 
   20002   ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
   20003 
   20004 
   20005   FCFLAGS=$FCFLAGS_cap_ax_save_flags
   20006 
   20007 
   20008   FCLIBS=$FCLIBS_cap_ax_save_flags
   20009 
   20010 
   20011   FFLAGS=$FFLAGS_cap_ax_save_flags
   20012 
   20013 
   20014   FLIBS=$FLIBS_cap_ax_save_flags
   20015 
   20016 
   20017   GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
   20018 
   20019 
   20020   JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
   20021 
   20022 
   20023   LDFLAGS=$LDFLAGS_cap_ax_save_flags
   20024 
   20025 
   20026   LIBS=$LIBS_cap_ax_save_flags
   20027 
   20028 
   20029   OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
   20030 
   20031 
   20032   OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
   20033 
   20034 
   20035   UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
   20036 
   20037 
   20038   VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
   20039 
   20040 
   20041 
   20042 else
   20043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20044 $as_echo "no" >&6; }
   20045 fi
   20046 
   20047 
   20048 for ac_header in sys/un.h
   20049 do :
   20050   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   20051 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   20052   cat >>confdefs.h <<_ACEOF
   20053 #define HAVE_SYS_UN_H 1
   20054 _ACEOF
   20055  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   20056 
   20057 else
   20058   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   20059 
   20060 fi
   20061 
   20062 done
   20063 
   20064 
   20065 
   20066 case "$host" in
   20067 *-solaris*)
   20068 
   20069 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   20070 
   20071 	;;
   20072 esac
   20073 
   20074 #
   20075 # Time Zone Stuff
   20076 #
   20077 for ac_func in tzset
   20078 do :
   20079   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   20080 if test "x$ac_cv_func_tzset" = xyes; then :
   20081   cat >>confdefs.h <<_ACEOF
   20082 #define HAVE_TZSET 1
   20083 _ACEOF
   20084 
   20085 fi
   20086 done
   20087 
   20088 
   20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   20090 $as_echo_n "checking for optarg declaration... " >&6; }
   20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20092 /* end confdefs.h.  */
   20093 
   20094 #include <unistd.h>
   20095 
   20096 int
   20097 main ()
   20098 {
   20099 optarg = 0;
   20100   ;
   20101   return 0;
   20102 }
   20103 _ACEOF
   20104 if ac_fn_c_try_compile "$LINENO"; then :
   20105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20106 $as_echo "yes" >&6; }
   20107 else
   20108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20109 $as_echo "no" >&6; }
   20110 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   20111 
   20112 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   20113 
   20114 fi
   20115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20116 
   20117 #
   20118 # Check for nanoseconds in file stats
   20119 #
   20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   20121 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20123 /* end confdefs.h.  */
   20124 #include <sys/fcntl.h>
   20125 int
   20126 main ()
   20127 {
   20128 struct stat s;
   20129        return(s.st_mtim.tv_nsec);
   20130 
   20131   ;
   20132   return 0;
   20133 }
   20134 _ACEOF
   20135 if ac_fn_c_try_compile "$LINENO"; then :
   20136 
   20137 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   20138 
   20139 fi
   20140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20141 
   20142 #
   20143 # Check for if_nametoindex() for IPv6 scoped addresses support
   20144 #
   20145 for ac_func in if_nametoindex
   20146 do :
   20147   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   20148 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   20149   cat >>confdefs.h <<_ACEOF
   20150 #define HAVE_IF_NAMETOINDEX 1
   20151 _ACEOF
   20152 
   20153 fi
   20154 done
   20155 
   20156 
   20157 ISC_ATOMIC_LIBS=""
   20158 for ac_header in stdatomic.h
   20159 do :
   20160   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   20161 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   20162   cat >>confdefs.h <<_ACEOF
   20163 #define HAVE_STDATOMIC_H 1
   20164 _ACEOF
   20165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   20166 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   20167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20168 /* end confdefs.h.  */
   20169 #include <stdatomic.h>
   20170 int
   20171 main ()
   20172 {
   20173 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   20174 
   20175   ;
   20176   return 0;
   20177 }
   20178 _ACEOF
   20179 if ac_fn_c_try_compile "$LINENO"; then :
   20180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   20181 $as_echo "stdatomic.h" >&6; }
   20182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   20183 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   20184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20185 /* end confdefs.h.  */
   20186 #include <stdatomic.h>
   20187 int
   20188 main ()
   20189 {
   20190 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   20191 
   20192   ;
   20193   return 0;
   20194 }
   20195 _ACEOF
   20196 if ac_fn_c_try_link "$LINENO"; then :
   20197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20198 $as_echo "no" >&6; }
   20199 else
   20200   ISC_ATOMIC_LIBS="-latomic"
   20201 
   20202 
   20203   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   20204 
   20205 
   20206 
   20207   CFLAGS_atomic_ax_save_flags=$CFLAGS
   20208 
   20209 
   20210 
   20211   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   20212 
   20213 
   20214 
   20215   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   20216 
   20217 
   20218 
   20219   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   20220 
   20221 
   20222 
   20223   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   20224 
   20225 
   20226 
   20227   FCLIBS_atomic_ax_save_flags=$FCLIBS
   20228 
   20229 
   20230 
   20231   FFLAGS_atomic_ax_save_flags=$FFLAGS
   20232 
   20233 
   20234 
   20235   FLIBS_atomic_ax_save_flags=$FLIBS
   20236 
   20237 
   20238 
   20239   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   20240 
   20241 
   20242 
   20243   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   20244 
   20245 
   20246 
   20247   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   20248 
   20249 
   20250 
   20251   LIBS_atomic_ax_save_flags=$LIBS
   20252 
   20253 
   20254 
   20255   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   20256 
   20257 
   20258 
   20259   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   20260 
   20261 
   20262 
   20263   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   20264 
   20265 
   20266 
   20267   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   20268 
   20269 
   20270 
   20271 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20272 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20273 /* end confdefs.h.  */
   20274 #include <stdatomic.h>
   20275 int
   20276 main ()
   20277 {
   20278 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   20279 
   20280   ;
   20281   return 0;
   20282 }
   20283 _ACEOF
   20284 if ac_fn_c_try_link "$LINENO"; then :
   20285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20286 $as_echo "yes" >&6; }
   20287 else
   20288   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20290 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   20291 See \`config.log' for more details" "$LINENO" 5; }
   20292 fi
   20293 rm -f core conftest.err conftest.$ac_objext \
   20294     conftest$ac_exeext conftest.$ac_ext
   20295 
   20296   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   20297 
   20298 
   20299   CFLAGS=$CFLAGS_atomic_ax_save_flags
   20300 
   20301 
   20302   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   20303 
   20304 
   20305   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   20306 
   20307 
   20308   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   20309 
   20310 
   20311   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   20312 
   20313 
   20314   FCLIBS=$FCLIBS_atomic_ax_save_flags
   20315 
   20316 
   20317   FFLAGS=$FFLAGS_atomic_ax_save_flags
   20318 
   20319 
   20320   FLIBS=$FLIBS_atomic_ax_save_flags
   20321 
   20322 
   20323   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   20324 
   20325 
   20326   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   20327 
   20328 
   20329   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   20330 
   20331 
   20332   LIBS=$LIBS_atomic_ax_save_flags
   20333 
   20334 
   20335   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   20336 
   20337 
   20338   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   20339 
   20340 
   20341   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   20342 
   20343 
   20344   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   20345 
   20346 
   20347 
   20348 
   20349 fi
   20350 rm -f core conftest.err conftest.$ac_objext \
   20351     conftest$ac_exeext conftest.$ac_ext
   20352 
   20353 else
   20354   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20356 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
   20357 See \`config.log' for more details" "$LINENO" 5; }
   20358 
   20359 fi
   20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20361 else
   20362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   20363 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   20364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20365 /* end confdefs.h.  */
   20366 #include <inttypes.h>
   20367 int
   20368 main ()
   20369 {
   20370 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20371 
   20372   ;
   20373   return 0;
   20374 }
   20375 _ACEOF
   20376 if ac_fn_c_try_compile "$LINENO"; then :
   20377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   20378 $as_echo "__atomic builtins" >&6; }
   20379 
   20380 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   20381 
   20382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   20383 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   20384       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20385 /* end confdefs.h.  */
   20386 #include <inttypes.h>
   20387 int
   20388 main ()
   20389 {
   20390 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20391 
   20392   ;
   20393   return 0;
   20394 }
   20395 _ACEOF
   20396 if ac_fn_c_try_link "$LINENO"; then :
   20397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20398 $as_echo "no" >&6; }
   20399 else
   20400   ISC_ATOMIC_LIBS="-latomic"
   20401 
   20402 
   20403   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   20404 
   20405 
   20406 
   20407   CFLAGS_atomic_ax_save_flags=$CFLAGS
   20408 
   20409 
   20410 
   20411   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   20412 
   20413 
   20414 
   20415   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   20416 
   20417 
   20418 
   20419   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   20420 
   20421 
   20422 
   20423   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   20424 
   20425 
   20426 
   20427   FCLIBS_atomic_ax_save_flags=$FCLIBS
   20428 
   20429 
   20430 
   20431   FFLAGS_atomic_ax_save_flags=$FFLAGS
   20432 
   20433 
   20434 
   20435   FLIBS_atomic_ax_save_flags=$FLIBS
   20436 
   20437 
   20438 
   20439   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   20440 
   20441 
   20442 
   20443   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   20444 
   20445 
   20446 
   20447   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   20448 
   20449 
   20450 
   20451   LIBS_atomic_ax_save_flags=$LIBS
   20452 
   20453 
   20454 
   20455   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   20456 
   20457 
   20458 
   20459   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   20460 
   20461 
   20462 
   20463   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   20464 
   20465 
   20466 
   20467   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   20468 
   20469 
   20470 
   20471 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20472 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20473 /* end confdefs.h.  */
   20474 #include <inttypes.h>
   20475 int
   20476 main ()
   20477 {
   20478 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20479 
   20480   ;
   20481   return 0;
   20482 }
   20483 _ACEOF
   20484 if ac_fn_c_try_link "$LINENO"; then :
   20485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20486 $as_echo "yes" >&6; }
   20487 else
   20488   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20490 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   20491 See \`config.log' for more details" "$LINENO" 5; }
   20492 fi
   20493 rm -f core conftest.err conftest.$ac_objext \
   20494     conftest$ac_exeext conftest.$ac_ext
   20495 
   20496   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   20497 
   20498 
   20499   CFLAGS=$CFLAGS_atomic_ax_save_flags
   20500 
   20501 
   20502   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   20503 
   20504 
   20505   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   20506 
   20507 
   20508   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   20509 
   20510 
   20511   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   20512 
   20513 
   20514   FCLIBS=$FCLIBS_atomic_ax_save_flags
   20515 
   20516 
   20517   FFLAGS=$FFLAGS_atomic_ax_save_flags
   20518 
   20519 
   20520   FLIBS=$FLIBS_atomic_ax_save_flags
   20521 
   20522 
   20523   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   20524 
   20525 
   20526   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   20527 
   20528 
   20529   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   20530 
   20531 
   20532   LIBS=$LIBS_atomic_ax_save_flags
   20533 
   20534 
   20535   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   20536 
   20537 
   20538   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   20539 
   20540 
   20541   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   20542 
   20543 
   20544   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   20545 
   20546 
   20547 
   20548 
   20549 fi
   20550 rm -f core conftest.err conftest.$ac_objext \
   20551     conftest$ac_exeext conftest.$ac_ext
   20552 
   20553 else
   20554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   20555 $as_echo "__sync builtins" >&6; }
   20556 
   20557 fi
   20558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20559 
   20560 fi
   20561 
   20562 done
   20563 
   20564 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20565 
   20566 for ac_header in stdalign.h
   20567 do :
   20568   ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
   20569 if test "x$ac_cv_header_stdalign_h" = xyes; then :
   20570   cat >>confdefs.h <<_ACEOF
   20571 #define HAVE_STDALIGN_H 1
   20572 _ACEOF
   20573 
   20574 fi
   20575 
   20576 done
   20577 
   20578 
   20579 for ac_header in uchar.h
   20580 do :
   20581   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   20582 if test "x$ac_cv_header_uchar_h" = xyes; then :
   20583   cat >>confdefs.h <<_ACEOF
   20584 #define HAVE_UCHAR_H 1
   20585 _ACEOF
   20586 
   20587 fi
   20588 
   20589 done
   20590 
   20591 
   20592 #
   20593 # Check for __builtin_unreachable
   20594 #
   20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   20596 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20598 /* end confdefs.h.  */
   20599 
   20600 int
   20601 main ()
   20602 {
   20603 __builtin_unreachable();
   20604 
   20605   ;
   20606   return 0;
   20607 }
   20608 _ACEOF
   20609 if ac_fn_c_try_link "$LINENO"; then :
   20610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20611 $as_echo "yes" >&6; }
   20612 
   20613 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   20614 
   20615 
   20616 else
   20617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20618 $as_echo "no" >&6; }
   20619 
   20620 fi
   20621 rm -f core conftest.err conftest.$ac_objext \
   20622     conftest$ac_exeext conftest.$ac_ext
   20623 
   20624 #
   20625 # Check for __builtin_expect
   20626 #
   20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   20628 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   20629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20630 /* end confdefs.h.  */
   20631 
   20632 int
   20633 main ()
   20634 {
   20635 
   20636 	return (__builtin_expect(1, 1) ? 1 : 0);
   20637 
   20638   ;
   20639   return 0;
   20640 }
   20641 _ACEOF
   20642 if ac_fn_c_try_link "$LINENO"; then :
   20643 
   20644 	have_builtin_expect=yes
   20645 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20646 $as_echo "yes" >&6; }
   20647 
   20648 else
   20649 
   20650 	have_builtin_expect=no
   20651 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20652 $as_echo "no" >&6; }
   20653 
   20654 fi
   20655 rm -f core conftest.err conftest.$ac_objext \
   20656     conftest$ac_exeext conftest.$ac_ext
   20657 if test "yes" = "$have_builtin_expect"; then
   20658 
   20659 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   20660 
   20661 fi
   20662 
   20663 #
   20664 # Check for __builtin_clz
   20665 #
   20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   20667 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   20668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20669 /* end confdefs.h.  */
   20670 
   20671 int
   20672 main ()
   20673 {
   20674 
   20675 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   20676 
   20677   ;
   20678   return 0;
   20679 }
   20680 _ACEOF
   20681 if ac_fn_c_try_link "$LINENO"; then :
   20682 
   20683 	have_builtin_clz=yes
   20684 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20685 $as_echo "yes" >&6; }
   20686 
   20687 else
   20688 
   20689 	have_builtin_clz=no
   20690 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20691 $as_echo "no" >&6; }
   20692 
   20693 fi
   20694 rm -f core conftest.err conftest.$ac_objext \
   20695     conftest$ac_exeext conftest.$ac_ext
   20696 if test "yes" = "$have_builtin_clz"; then
   20697 
   20698 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   20699 
   20700 fi
   20701 
   20702 #
   20703 # Activate "rrset-order fixed" or not?
   20704 #
   20705 # [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
   20706 # Check whether --enable-fixed-rrset was given.
   20707 if test "${enable_fixed_rrset+set}" = set; then :
   20708   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   20709 else
   20710   enable_fixed="no"
   20711 fi
   20712 
   20713 case "$enable_fixed" in
   20714 	yes)
   20715 
   20716 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   20717 
   20718 		;;
   20719 	no)
   20720 		;;
   20721 	*)
   20722 		;;
   20723 esac
   20724 
   20725 #
   20726 # Activate dnstap?
   20727 #
   20728 # [pairwise: --enable-dnstap, --disable-dnstap]
   20729 # Check whether --enable-dnstap was given.
   20730 if test "${enable_dnstap+set}" = set; then :
   20731   enableval=$enable_dnstap; use_dnstap=$enableval
   20732 else
   20733   use_dnstap=no
   20734 fi
   20735 
   20736 
   20737 DNSTAP=
   20738 DNSTAPSRCS=
   20739 DNSTAPOBJS=
   20740 DNSTAPTARGETS=
   20741 if test "x$use_dnstap" != "xno"; then
   20742 
   20743 	# [pairwise: skip]
   20744 
   20745 # Check whether --with-protobuf-c was given.
   20746 if test "${with_protobuf_c+set}" = set; then :
   20747   withval=$with_protobuf_c;
   20748 	    # workaround for protobuf-c includes at old dir
   20749 	    # before protobuf-c-1.0.0
   20750 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   20751 	    then
   20752 		PROTOBUF_C_CFLAGS="-I$withval/include/google"
   20753 	    else
   20754 		PROTOBUF_C_CFLAGS="-I$withval/include"
   20755 	    fi
   20756 	    PROTOBUF_C_LIBS="-L$withval/lib"
   20757 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20758 set dummy protoc-c; ac_word=$2
   20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20760 $as_echo_n "checking for $ac_word... " >&6; }
   20761 if ${ac_cv_path_PROTOC_C+:} false; then :
   20762   $as_echo_n "(cached) " >&6
   20763 else
   20764   case $PROTOC_C in
   20765   [\\/]* | ?:[\\/]*)
   20766   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20767   ;;
   20768   *)
   20769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20770 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20771 do
   20772   IFS=$as_save_IFS
   20773   test -z "$as_dir" && as_dir=.
   20774     for ac_exec_ext in '' $ac_executable_extensions; do
   20775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20776     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20778     break 2
   20779   fi
   20780 done
   20781   done
   20782 IFS=$as_save_IFS
   20783 
   20784   ;;
   20785 esac
   20786 fi
   20787 PROTOC_C=$ac_cv_path_PROTOC_C
   20788 if test -n "$PROTOC_C"; then
   20789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20790 $as_echo "$PROTOC_C" >&6; }
   20791 else
   20792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20793 $as_echo "no" >&6; }
   20794 fi
   20795 
   20796 
   20797 
   20798 else
   20799 
   20800 	    # workaround for protobuf-c includes at old dir
   20801 	    # before protobuf-c-1.0.0
   20802 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   20803 	    then
   20804 		PROTOBUF_C_CFLAGS="-I/usr/include/google"
   20805 	    else
   20806 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   20807 		then
   20808 		    PROTOBUF_C_CFLAGS="-I/usr/local/include/google"
   20809 		    PROTOBUF_C_LIBS="-L/usr/local/lib"
   20810 		elif test -f /opt/local/include/google/protobuf-c/protobuf-c.h
   20811 		then
   20812 		    PROTOBUF_C_CFLAGS="-I/opt/local/include/google"
   20813 		    PROTOBUF_C_LIBS="-L/opt/local/lib"
   20814 		fi
   20815 	    fi
   20816 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20817 set dummy protoc-c; ac_word=$2
   20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20819 $as_echo_n "checking for $ac_word... " >&6; }
   20820 if ${ac_cv_path_PROTOC_C+:} false; then :
   20821   $as_echo_n "(cached) " >&6
   20822 else
   20823   case $PROTOC_C in
   20824   [\\/]* | ?:[\\/]*)
   20825   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20826   ;;
   20827   *)
   20828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20829 for as_dir in $PATH
   20830 do
   20831   IFS=$as_save_IFS
   20832   test -z "$as_dir" && as_dir=.
   20833     for ac_exec_ext in '' $ac_executable_extensions; do
   20834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20835     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20837     break 2
   20838   fi
   20839 done
   20840   done
   20841 IFS=$as_save_IFS
   20842 
   20843   ;;
   20844 esac
   20845 fi
   20846 PROTOC_C=$ac_cv_path_PROTOC_C
   20847 if test -n "$PROTOC_C"; then
   20848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20849 $as_echo "$PROTOC_C" >&6; }
   20850 else
   20851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20852 $as_echo "no" >&6; }
   20853 fi
   20854 
   20855 
   20856 
   20857 fi
   20858 
   20859 	if test -z "$PROTOC_C"; then
   20860 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   20861 	fi
   20862 
   20863 	# [pairwise: skip]
   20864 
   20865 # Check whether --with-libfstrm was given.
   20866 if test "${with_libfstrm+set}" = set; then :
   20867   withval=$with_libfstrm;
   20868 	    FSTRM_CFLAGS="-I$withval/include"
   20869 	    FSTRM_LIBS="-L$withval/lib"
   20870 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   20871 set dummy fstrm_capture; ac_word=$2
   20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20873 $as_echo_n "checking for $ac_word... " >&6; }
   20874 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20875   $as_echo_n "(cached) " >&6
   20876 else
   20877   case $FSTRM_CAPTURE in
   20878   [\\/]* | ?:[\\/]*)
   20879   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20880   ;;
   20881   *)
   20882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20883 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20884 do
   20885   IFS=$as_save_IFS
   20886   test -z "$as_dir" && as_dir=.
   20887     for ac_exec_ext in '' $ac_executable_extensions; do
   20888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20889     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20891     break 2
   20892   fi
   20893 done
   20894   done
   20895 IFS=$as_save_IFS
   20896 
   20897   ;;
   20898 esac
   20899 fi
   20900 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20901 if test -n "$FSTRM_CAPTURE"; then
   20902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20903 $as_echo "$FSTRM_CAPTURE" >&6; }
   20904 else
   20905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20906 $as_echo "no" >&6; }
   20907 fi
   20908 
   20909 
   20910 
   20911 else
   20912 
   20913 	    for d in /usr /usr/local /opt/local
   20914 	    do
   20915 		if test -f "${d}/include/fstrm.h"
   20916 		then
   20917 		    if test ${d} != /usr
   20918 		    then
   20919 			FSTRM_CFLAGS="-I${d}/include"
   20920 			FSTRM_LIBS="-L${d}/lib"
   20921 		    fi
   20922 		    have_fstrm="$d"
   20923 		    break
   20924 		fi
   20925 	    done
   20926 	    if test -z "$have_fstrm"; then
   20927 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20928 set dummy fstrm_capture; ac_word=$2
   20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20930 $as_echo_n "checking for $ac_word... " >&6; }
   20931 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20932   $as_echo_n "(cached) " >&6
   20933 else
   20934   case $FSTRM_CAPTURE in
   20935   [\\/]* | ?:[\\/]*)
   20936   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20937   ;;
   20938   *)
   20939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20940 for as_dir in $PATH
   20941 do
   20942   IFS=$as_save_IFS
   20943   test -z "$as_dir" && as_dir=.
   20944     for ac_exec_ext in '' $ac_executable_extensions; do
   20945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20946     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20948     break 2
   20949   fi
   20950 done
   20951   done
   20952 IFS=$as_save_IFS
   20953 
   20954   ;;
   20955 esac
   20956 fi
   20957 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20958 if test -n "$FSTRM_CAPTURE"; then
   20959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20960 $as_echo "$FSTRM_CAPTURE" >&6; }
   20961 else
   20962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20963 $as_echo "no" >&6; }
   20964 fi
   20965 
   20966 
   20967 	    else
   20968 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20969 set dummy fstrm_capture; ac_word=$2
   20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20971 $as_echo_n "checking for $ac_word... " >&6; }
   20972 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20973   $as_echo_n "(cached) " >&6
   20974 else
   20975   case $FSTRM_CAPTURE in
   20976   [\\/]* | ?:[\\/]*)
   20977   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20978   ;;
   20979   *)
   20980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20981 for as_dir in $PATH$PATH_SEPARATOR$have_fstrm/bin
   20982 do
   20983   IFS=$as_save_IFS
   20984   test -z "$as_dir" && as_dir=.
   20985     for ac_exec_ext in '' $ac_executable_extensions; do
   20986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20987     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20989     break 2
   20990   fi
   20991 done
   20992   done
   20993 IFS=$as_save_IFS
   20994 
   20995   ;;
   20996 esac
   20997 fi
   20998 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20999 if test -n "$FSTRM_CAPTURE"; then
   21000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   21001 $as_echo "$FSTRM_CAPTURE" >&6; }
   21002 else
   21003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21004 $as_echo "no" >&6; }
   21005 fi
   21006 
   21007 
   21008 	    fi
   21009 
   21010 fi
   21011 
   21012 
   21013 
   21014   CCASFLAGS_dnstap_ax_save_flags=$CCASFLAGS
   21015 
   21016 
   21017 
   21018   CFLAGS_dnstap_ax_save_flags=$CFLAGS
   21019 
   21020 
   21021 
   21022   CPPFLAGS_dnstap_ax_save_flags=$CPPFLAGS
   21023 
   21024 
   21025 
   21026   CXXFLAGS_dnstap_ax_save_flags=$CXXFLAGS
   21027 
   21028 
   21029 
   21030   ERLCFLAGS_dnstap_ax_save_flags=$ERLCFLAGS
   21031 
   21032 
   21033 
   21034   FCFLAGS_dnstap_ax_save_flags=$FCFLAGS
   21035 
   21036 
   21037 
   21038   FCLIBS_dnstap_ax_save_flags=$FCLIBS
   21039 
   21040 
   21041 
   21042   FFLAGS_dnstap_ax_save_flags=$FFLAGS
   21043 
   21044 
   21045 
   21046   FLIBS_dnstap_ax_save_flags=$FLIBS
   21047 
   21048 
   21049 
   21050   GCJFLAGS_dnstap_ax_save_flags=$GCJFLAGS
   21051 
   21052 
   21053 
   21054   JAVACFLAGS_dnstap_ax_save_flags=$JAVACFLAGS
   21055 
   21056 
   21057 
   21058   LDFLAGS_dnstap_ax_save_flags=$LDFLAGS
   21059 
   21060 
   21061 
   21062   LIBS_dnstap_ax_save_flags=$LIBS
   21063 
   21064 
   21065 
   21066   OBJCFLAGS_dnstap_ax_save_flags=$OBJCFLAGS
   21067 
   21068 
   21069 
   21070   OBJCXXFLAGS_dnstap_ax_save_flags=$OBJCXXFLAGS
   21071 
   21072 
   21073 
   21074   UPCFLAGS_dnstap_ax_save_flags=$UPCFLAGS
   21075 
   21076 
   21077 
   21078   VALAFLAGS_dnstap_ax_save_flags=$VALAFLAGS
   21079 
   21080 
   21081 
   21082 	CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS $FSTRM_CFLAGS"
   21083 	LIBS="$LDFLAGS $PROTOBUF_C_LIBS $FSTRM_LIBS"
   21084 
   21085 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   21086 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   21087 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   21088   $as_echo_n "(cached) " >&6
   21089 else
   21090   ac_func_search_save_LIBS=$LIBS
   21091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21092 /* end confdefs.h.  */
   21093 
   21094 /* Override any GCC internal prototype to avoid an error.
   21095    Use char because int might match the return type of a GCC
   21096    builtin and then its argument prototype would still apply.  */
   21097 #ifdef __cplusplus
   21098 extern "C"
   21099 #endif
   21100 char fstrm_iothr_init ();
   21101 int
   21102 main ()
   21103 {
   21104 return fstrm_iothr_init ();
   21105   ;
   21106   return 0;
   21107 }
   21108 _ACEOF
   21109 for ac_lib in '' fstrm; do
   21110   if test -z "$ac_lib"; then
   21111     ac_res="none required"
   21112   else
   21113     ac_res=-l$ac_lib
   21114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21115   fi
   21116   if ac_fn_c_try_link "$LINENO"; then :
   21117   ac_cv_search_fstrm_iothr_init=$ac_res
   21118 fi
   21119 rm -f core conftest.err conftest.$ac_objext \
   21120     conftest$ac_exeext
   21121   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   21122   break
   21123 fi
   21124 done
   21125 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   21126 
   21127 else
   21128   ac_cv_search_fstrm_iothr_init=no
   21129 fi
   21130 rm conftest.$ac_ext
   21131 LIBS=$ac_func_search_save_LIBS
   21132 fi
   21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   21134 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   21135 ac_res=$ac_cv_search_fstrm_iothr_init
   21136 if test "$ac_res" != no; then :
   21137   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21138 
   21139 else
   21140   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   21141 fi
   21142 
   21143 	FSTRM_LIBS="$FSTRM_LIBS $ac_cv_search_fstrm_iothr_init"
   21144 
   21145 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   21146 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   21147 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21148   $as_echo_n "(cached) " >&6
   21149 else
   21150   ac_func_search_save_LIBS=$LIBS
   21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21152 /* end confdefs.h.  */
   21153 
   21154 /* Override any GCC internal prototype to avoid an error.
   21155    Use char because int might match the return type of a GCC
   21156    builtin and then its argument prototype would still apply.  */
   21157 #ifdef __cplusplus
   21158 extern "C"
   21159 #endif
   21160 char protobuf_c_message_pack ();
   21161 int
   21162 main ()
   21163 {
   21164 return protobuf_c_message_pack ();
   21165   ;
   21166   return 0;
   21167 }
   21168 _ACEOF
   21169 for ac_lib in '' protobuf-c; do
   21170   if test -z "$ac_lib"; then
   21171     ac_res="none required"
   21172   else
   21173     ac_res=-l$ac_lib
   21174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21175   fi
   21176   if ac_fn_c_try_link "$LINENO"; then :
   21177   ac_cv_search_protobuf_c_message_pack=$ac_res
   21178 fi
   21179 rm -f core conftest.err conftest.$ac_objext \
   21180     conftest$ac_exeext
   21181   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21182   break
   21183 fi
   21184 done
   21185 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   21186 
   21187 else
   21188   ac_cv_search_protobuf_c_message_pack=no
   21189 fi
   21190 rm conftest.$ac_ext
   21191 LIBS=$ac_func_search_save_LIBS
   21192 fi
   21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   21194 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   21195 ac_res=$ac_cv_search_protobuf_c_message_pack
   21196 if test "$ac_res" != no; then :
   21197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21198 
   21199 else
   21200   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   21201 fi
   21202 
   21203 	PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS $ac_cv_search_protobuf_c_message_pack"
   21204 
   21205 
   21206   CCASFLAGS=$CCASFLAGS_dnstap_ax_save_flags
   21207 
   21208 
   21209   CFLAGS=$CFLAGS_dnstap_ax_save_flags
   21210 
   21211 
   21212   CPPFLAGS=$CPPFLAGS_dnstap_ax_save_flags
   21213 
   21214 
   21215   CXXFLAGS=$CXXFLAGS_dnstap_ax_save_flags
   21216 
   21217 
   21218   ERLCFLAGS=$ERLCFLAGS_dnstap_ax_save_flags
   21219 
   21220 
   21221   FCFLAGS=$FCFLAGS_dnstap_ax_save_flags
   21222 
   21223 
   21224   FCLIBS=$FCLIBS_dnstap_ax_save_flags
   21225 
   21226 
   21227   FFLAGS=$FFLAGS_dnstap_ax_save_flags
   21228 
   21229 
   21230   FLIBS=$FLIBS_dnstap_ax_save_flags
   21231 
   21232 
   21233   GCJFLAGS=$GCJFLAGS_dnstap_ax_save_flags
   21234 
   21235 
   21236   JAVACFLAGS=$JAVACFLAGS_dnstap_ax_save_flags
   21237 
   21238 
   21239   LDFLAGS=$LDFLAGS_dnstap_ax_save_flags
   21240 
   21241 
   21242   LIBS=$LIBS_dnstap_ax_save_flags
   21243 
   21244 
   21245   OBJCFLAGS=$OBJCFLAGS_dnstap_ax_save_flags
   21246 
   21247 
   21248   OBJCXXFLAGS=$OBJCXXFLAGS_dnstap_ax_save_flags
   21249 
   21250 
   21251   UPCFLAGS=$UPCFLAGS_dnstap_ax_save_flags
   21252 
   21253 
   21254   VALAFLAGS=$VALAFLAGS_dnstap_ax_save_flags
   21255 
   21256 
   21257 
   21258 
   21259 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   21260 
   21261 	DNSTAP=dnstap
   21262 	DNSTAPSRCS='${DNSTAPSRCS}'
   21263 	DNSTAPOBJS='${DNSTAPOBJS}'
   21264 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   21265 	DNSTAP_MANS='${dnstap_man1_MANS}'
   21266 fi
   21267 
   21268 
   21269 
   21270 
   21271 
   21272 
   21273 
   21274 
   21275 
   21276 
   21277 #
   21278 #  The following sets up how non-blocking i/o is established.
   21279 #  cygwin and solaris 2.x (x<5) require special handling.
   21280 #
   21281 case "$host" in
   21282 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   21283 ;;
   21284 *-solaris2.[01234])
   21285 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   21286 
   21287 
   21288 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   21289 
   21290 	;;
   21291 *)
   21292 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   21293 
   21294 	;;
   21295 esac
   21296 #
   21297 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   21298 # This prevents the source address being set.
   21299 #
   21300 case "$host" in
   21301 *-solaris2.[012345]|*-solaris2.5.1)
   21302 
   21303 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   21304 
   21305 	;;
   21306 esac
   21307 #
   21308 # The following sections deal with tools used for formatting
   21309 # the documentation.  They are all optional, unless you are
   21310 # a developer editing the documentation source.
   21311 #
   21312 
   21313 #
   21314 # The following sections deal with tools used for formatting
   21315 # the documentation.  They are all optional, unless you are
   21316 # a developer editing the documentation source.
   21317 #
   21318 
   21319 #
   21320 # Look for sphinx-build
   21321 #
   21322 
   21323 # Extract the first word of "sphinx-build", so it can be a program name with args.
   21324 set dummy sphinx-build; ac_word=$2
   21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21326 $as_echo_n "checking for $ac_word... " >&6; }
   21327 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
   21328   $as_echo_n "(cached) " >&6
   21329 else
   21330   case $SPHINX_BUILD in
   21331   [\\/]* | ?:[\\/]*)
   21332   ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
   21333   ;;
   21334   *)
   21335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21336 for as_dir in $PATH
   21337 do
   21338   IFS=$as_save_IFS
   21339   test -z "$as_dir" && as_dir=.
   21340     for ac_exec_ext in '' $ac_executable_extensions; do
   21341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21342     ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
   21343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21344     break 2
   21345   fi
   21346 done
   21347   done
   21348 IFS=$as_save_IFS
   21349 
   21350   test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD=":"
   21351   ;;
   21352 esac
   21353 fi
   21354 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
   21355 if test -n "$SPHINX_BUILD"; then
   21356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
   21357 $as_echo "$SPHINX_BUILD" >&6; }
   21358 else
   21359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21360 $as_echo "no" >&6; }
   21361 fi
   21362 
   21363 
   21364  if test "$SPHINX_BUILD" != ":"; then
   21365   HAVE_SPHINX_BUILD_TRUE=
   21366   HAVE_SPHINX_BUILD_FALSE='#'
   21367 else
   21368   HAVE_SPHINX_BUILD_TRUE='#'
   21369   HAVE_SPHINX_BUILD_FALSE=
   21370 fi
   21371 
   21372 
   21373 # Extract the first word of "xelatex", so it can be a program name with args.
   21374 set dummy xelatex; ac_word=$2
   21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21376 $as_echo_n "checking for $ac_word... " >&6; }
   21377 if ${ac_cv_path_XELATEX+:} false; then :
   21378   $as_echo_n "(cached) " >&6
   21379 else
   21380   case $XELATEX in
   21381   [\\/]* | ?:[\\/]*)
   21382   ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
   21383   ;;
   21384   *)
   21385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21386 for as_dir in $PATH
   21387 do
   21388   IFS=$as_save_IFS
   21389   test -z "$as_dir" && as_dir=.
   21390     for ac_exec_ext in '' $ac_executable_extensions; do
   21391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21392     ac_cv_path_XELATEX="$as_dir/$ac_word$ac_exec_ext"
   21393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21394     break 2
   21395   fi
   21396 done
   21397   done
   21398 IFS=$as_save_IFS
   21399 
   21400   test -z "$ac_cv_path_XELATEX" && ac_cv_path_XELATEX=":"
   21401   ;;
   21402 esac
   21403 fi
   21404 XELATEX=$ac_cv_path_XELATEX
   21405 if test -n "$XELATEX"; then
   21406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
   21407 $as_echo "$XELATEX" >&6; }
   21408 else
   21409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21410 $as_echo "no" >&6; }
   21411 fi
   21412 
   21413 
   21414 # Extract the first word of "latexmk", so it can be a program name with args.
   21415 set dummy latexmk; ac_word=$2
   21416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21417 $as_echo_n "checking for $ac_word... " >&6; }
   21418 if ${ac_cv_path_LATEXMK+:} false; then :
   21419   $as_echo_n "(cached) " >&6
   21420 else
   21421   case $LATEXMK in
   21422   [\\/]* | ?:[\\/]*)
   21423   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21424   ;;
   21425   *)
   21426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21427 for as_dir in $PATH
   21428 do
   21429   IFS=$as_save_IFS
   21430   test -z "$as_dir" && as_dir=.
   21431     for ac_exec_ext in '' $ac_executable_extensions; do
   21432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21433     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21435     break 2
   21436   fi
   21437 done
   21438   done
   21439 IFS=$as_save_IFS
   21440 
   21441   test -z "$ac_cv_path_LATEXMK" && ac_cv_path_LATEXMK=":"
   21442   ;;
   21443 esac
   21444 fi
   21445 LATEXMK=$ac_cv_path_LATEXMK
   21446 if test -n "$LATEXMK"; then
   21447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21448 $as_echo "$LATEXMK" >&6; }
   21449 else
   21450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21451 $as_echo "no" >&6; }
   21452 fi
   21453 
   21454 
   21455  if test "$XELATEX" != ":" && test "$LATEXMK" != ":"; then
   21456   HAVE_XELATEX_TRUE=
   21457   HAVE_XELATEX_FALSE='#'
   21458 else
   21459   HAVE_XELATEX_TRUE='#'
   21460   HAVE_XELATEX_FALSE=
   21461 fi
   21462 
   21463 
   21464 #
   21465 # Pull release date from CHANGES file last modification date
   21466 # for reproducible builds
   21467 #
   21468 release_date=`date -u -r CHANGES +%Y-%m-%d`
   21469 RELEASE_DATE=$release_date
   21470 
   21471 
   21472 # Don't build the documentation if the sphinx-build is not present
   21473 PDFTARGET=
   21474 HTMLTARGET=
   21475 MANSRCS=
   21476 if test -n "$SPHINX_BUILD"; then :
   21477 
   21478 	  MANSRCS='$(MANPAGES_IN)'
   21479 	  HTMLTARGET='html dirhtml'
   21480 	  for ac_prog in pdflatex
   21481 do
   21482   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21483 set dummy $ac_prog; ac_word=$2
   21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21485 $as_echo_n "checking for $ac_word... " >&6; }
   21486 if ${ac_cv_path_PDFLATEX+:} false; then :
   21487   $as_echo_n "(cached) " >&6
   21488 else
   21489   case $PDFLATEX in
   21490   [\\/]* | ?:[\\/]*)
   21491   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   21492   ;;
   21493   *)
   21494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21495 for as_dir in $PATH
   21496 do
   21497   IFS=$as_save_IFS
   21498   test -z "$as_dir" && as_dir=.
   21499     for ac_exec_ext in '' $ac_executable_extensions; do
   21500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21501     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   21502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21503     break 2
   21504   fi
   21505 done
   21506   done
   21507 IFS=$as_save_IFS
   21508 
   21509   ;;
   21510 esac
   21511 fi
   21512 PDFLATEX=$ac_cv_path_PDFLATEX
   21513 if test -n "$PDFLATEX"; then
   21514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   21515 $as_echo "$PDFLATEX" >&6; }
   21516 else
   21517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21518 $as_echo "no" >&6; }
   21519 fi
   21520 
   21521 
   21522   test -n "$PDFLATEX" && break
   21523 done
   21524 
   21525 	  for ac_prog in latexmk
   21526 do
   21527   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21528 set dummy $ac_prog; ac_word=$2
   21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21530 $as_echo_n "checking for $ac_word... " >&6; }
   21531 if ${ac_cv_path_LATEXMK+:} false; then :
   21532   $as_echo_n "(cached) " >&6
   21533 else
   21534   case $LATEXMK in
   21535   [\\/]* | ?:[\\/]*)
   21536   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21537   ;;
   21538   *)
   21539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21540 for as_dir in $PATH
   21541 do
   21542   IFS=$as_save_IFS
   21543   test -z "$as_dir" && as_dir=.
   21544     for ac_exec_ext in '' $ac_executable_extensions; do
   21545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21546     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21548     break 2
   21549   fi
   21550 done
   21551   done
   21552 IFS=$as_save_IFS
   21553 
   21554   ;;
   21555 esac
   21556 fi
   21557 LATEXMK=$ac_cv_path_LATEXMK
   21558 if test -n "$LATEXMK"; then
   21559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21560 $as_echo "$LATEXMK" >&6; }
   21561 else
   21562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21563 $as_echo "no" >&6; }
   21564 fi
   21565 
   21566 
   21567   test -n "$LATEXMK" && break
   21568 done
   21569 
   21570 	  if test -n "$PDFLATEX" && test -n "$LATEXMK"; then :
   21571 
   21572 		    PDFTARGET='pdf'
   21573 
   21574 fi
   21575 
   21576 fi
   21577 
   21578 
   21579 
   21580 
   21581 #
   21582 # Look for Doxygen
   21583 #
   21584 for ac_prog in doxygen
   21585 do
   21586   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21587 set dummy $ac_prog; ac_word=$2
   21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21589 $as_echo_n "checking for $ac_word... " >&6; }
   21590 if ${ac_cv_path_DOXYGEN+:} false; then :
   21591   $as_echo_n "(cached) " >&6
   21592 else
   21593   case $DOXYGEN in
   21594   [\\/]* | ?:[\\/]*)
   21595   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   21596   ;;
   21597   *)
   21598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21599 for as_dir in $PATH
   21600 do
   21601   IFS=$as_save_IFS
   21602   test -z "$as_dir" && as_dir=.
   21603     for ac_exec_ext in '' $ac_executable_extensions; do
   21604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21605     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   21606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21607     break 2
   21608   fi
   21609 done
   21610   done
   21611 IFS=$as_save_IFS
   21612 
   21613   ;;
   21614 esac
   21615 fi
   21616 DOXYGEN=$ac_cv_path_DOXYGEN
   21617 if test -n "$DOXYGEN"; then
   21618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   21619 $as_echo "$DOXYGEN" >&6; }
   21620 else
   21621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21622 $as_echo "no" >&6; }
   21623 fi
   21624 
   21625 
   21626   test -n "$DOXYGEN" && break
   21627 done
   21628 
   21629 
   21630 
   21631 #
   21632 # Look for curl
   21633 #
   21634 
   21635 # Extract the first word of "curl", so it can be a program name with args.
   21636 set dummy curl; ac_word=$2
   21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21638 $as_echo_n "checking for $ac_word... " >&6; }
   21639 if ${ac_cv_path_CURL+:} false; then :
   21640   $as_echo_n "(cached) " >&6
   21641 else
   21642   case $CURL in
   21643   [\\/]* | ?:[\\/]*)
   21644   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   21645   ;;
   21646   *)
   21647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21648 for as_dir in $PATH
   21649 do
   21650   IFS=$as_save_IFS
   21651   test -z "$as_dir" && as_dir=.
   21652     for ac_exec_ext in '' $ac_executable_extensions; do
   21653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21654     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   21655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21656     break 2
   21657   fi
   21658 done
   21659   done
   21660 IFS=$as_save_IFS
   21661 
   21662   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   21663   ;;
   21664 esac
   21665 fi
   21666 CURL=$ac_cv_path_CURL
   21667 if test -n "$CURL"; then
   21668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   21669 $as_echo "$CURL" >&6; }
   21670 else
   21671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21672 $as_echo "no" >&6; }
   21673 fi
   21674 
   21675 
   21676 
   21677 
   21678 #
   21679 # Look for xsltproc
   21680 #
   21681 
   21682 # Extract the first word of "xsltproc", so it can be a program name with args.
   21683 set dummy xsltproc; ac_word=$2
   21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21685 $as_echo_n "checking for $ac_word... " >&6; }
   21686 if ${ac_cv_path_XSLTPROC+:} false; then :
   21687   $as_echo_n "(cached) " >&6
   21688 else
   21689   case $XSLTPROC in
   21690   [\\/]* | ?:[\\/]*)
   21691   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   21692   ;;
   21693   *)
   21694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21695 for as_dir in $PATH
   21696 do
   21697   IFS=$as_save_IFS
   21698   test -z "$as_dir" && as_dir=.
   21699     for ac_exec_ext in '' $ac_executable_extensions; do
   21700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21701     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   21702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21703     break 2
   21704   fi
   21705 done
   21706   done
   21707 IFS=$as_save_IFS
   21708 
   21709   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   21710   ;;
   21711 esac
   21712 fi
   21713 XSLTPROC=$ac_cv_path_XSLTPROC
   21714 if test -n "$XSLTPROC"; then
   21715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   21716 $as_echo "$XSLTPROC" >&6; }
   21717 else
   21718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21719 $as_echo "no" >&6; }
   21720 fi
   21721 
   21722 
   21723 
   21724 
   21725 #
   21726 # IDN support using libidn2
   21727 #
   21728 
   21729 LIBIDN2_CFLAGS=
   21730 LIBIDN2_LDFLAGS=
   21731 LIBIDN2_LIBS=
   21732 
   21733 # [pairwise: --with-libidn2=yes, --without-libidn2]
   21734 
   21735 # Check whether --with-libidn2 was given.
   21736 if test "${with_libidn2+set}" = set; then :
   21737   withval=$with_libidn2; with_libidn2="$withval"
   21738 else
   21739   with_libidn2="no"
   21740 fi
   21741 
   21742 case $with_libidn2 in #(
   21743   yes) :
   21744 
   21745 pkg_failed=no
   21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   21747 $as_echo_n "checking for libidn2... " >&6; }
   21748 
   21749 if test -n "$LIBIDN2_CFLAGS"; then
   21750     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   21751  elif test -n "$PKG_CONFIG"; then
   21752     if test -n "$PKG_CONFIG" && \
   21753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21754   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21755   ac_status=$?
   21756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21757   test $ac_status = 0; }; then
   21758   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   21759 		      test "x$?" != "x0" && pkg_failed=yes
   21760 else
   21761   pkg_failed=yes
   21762 fi
   21763  else
   21764     pkg_failed=untried
   21765 fi
   21766 if test -n "$LIBIDN2_LIBS"; then
   21767     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   21768  elif test -n "$PKG_CONFIG"; then
   21769     if test -n "$PKG_CONFIG" && \
   21770     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21771   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21772   ac_status=$?
   21773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21774   test $ac_status = 0; }; then
   21775   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   21776 		      test "x$?" != "x0" && pkg_failed=yes
   21777 else
   21778   pkg_failed=yes
   21779 fi
   21780  else
   21781     pkg_failed=untried
   21782 fi
   21783 
   21784 
   21785 
   21786 if test $pkg_failed = yes; then
   21787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21788 $as_echo "no" >&6; }
   21789 
   21790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21791         _pkg_short_errors_supported=yes
   21792 else
   21793         _pkg_short_errors_supported=no
   21794 fi
   21795         if test $_pkg_short_errors_supported = yes; then
   21796 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   21797         else
   21798 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   21799         fi
   21800 	# Put the nasty error message in config.log where it belongs
   21801 	echo "$LIBIDN2_PKG_ERRORS" >&5
   21802 
   21803 	as_fn_error $? "Package requirements (libidn2) were not met:
   21804 
   21805 $LIBIDN2_PKG_ERRORS
   21806 
   21807 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21808 installed software in a non-standard prefix.
   21809 
   21810 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21811 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21812 See the pkg-config man page for more details." "$LINENO" 5
   21813 elif test $pkg_failed = untried; then
   21814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21815 $as_echo "no" >&6; }
   21816 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21818 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21819 is in your PATH or set the PKG_CONFIG environment variable to the full
   21820 path to pkg-config.
   21821 
   21822 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21823 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21824 See the pkg-config man page for more details.
   21825 
   21826 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21827 See \`config.log' for more details" "$LINENO" 5; }
   21828 else
   21829 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   21830 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   21831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21832 $as_echo "yes" >&6; }
   21833 
   21834 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21835 
   21836 fi ;; #(
   21837   no) :
   21838      ;; #(
   21839   *) :
   21840 
   21841 
   21842   CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
   21843 
   21844 
   21845 
   21846   CFLAGS_libidn2_ax_save_flags=$CFLAGS
   21847 
   21848 
   21849 
   21850   CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
   21851 
   21852 
   21853 
   21854   CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
   21855 
   21856 
   21857 
   21858   ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
   21859 
   21860 
   21861 
   21862   FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
   21863 
   21864 
   21865 
   21866   FCLIBS_libidn2_ax_save_flags=$FCLIBS
   21867 
   21868 
   21869 
   21870   FFLAGS_libidn2_ax_save_flags=$FFLAGS
   21871 
   21872 
   21873 
   21874   FLIBS_libidn2_ax_save_flags=$FLIBS
   21875 
   21876 
   21877 
   21878   GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
   21879 
   21880 
   21881 
   21882   JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
   21883 
   21884 
   21885 
   21886   LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
   21887 
   21888 
   21889 
   21890   LIBS_libidn2_ax_save_flags=$LIBS
   21891 
   21892 
   21893 
   21894   OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
   21895 
   21896 
   21897 
   21898   OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
   21899 
   21900 
   21901 
   21902   UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
   21903 
   21904 
   21905 
   21906   VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
   21907 
   21908 
   21909 
   21910 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   21911 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   21912 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   21913 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   21914 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   21915 		 for ac_header in idn2.h
   21916 do :
   21917   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   21918 if test "x$ac_cv_header_idn2_h" = xyes; then :
   21919   cat >>confdefs.h <<_ACEOF
   21920 #define HAVE_IDN2_H 1
   21921 _ACEOF
   21922 
   21923 else
   21924   as_fn_error $? "idn2.h not found" "$LINENO" 5
   21925 fi
   21926 
   21927 done
   21928 
   21929 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   21930 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   21931 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21932   $as_echo_n "(cached) " >&6
   21933 else
   21934   ac_func_search_save_LIBS=$LIBS
   21935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21936 /* end confdefs.h.  */
   21937 
   21938 /* Override any GCC internal prototype to avoid an error.
   21939    Use char because int might match the return type of a GCC
   21940    builtin and then its argument prototype would still apply.  */
   21941 #ifdef __cplusplus
   21942 extern "C"
   21943 #endif
   21944 char idn2_to_ascii_lz ();
   21945 int
   21946 main ()
   21947 {
   21948 return idn2_to_ascii_lz ();
   21949   ;
   21950   return 0;
   21951 }
   21952 _ACEOF
   21953 for ac_lib in '' idn2; do
   21954   if test -z "$ac_lib"; then
   21955     ac_res="none required"
   21956   else
   21957     ac_res=-l$ac_lib
   21958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21959   fi
   21960   if ac_fn_c_try_link "$LINENO"; then :
   21961   ac_cv_search_idn2_to_ascii_lz=$ac_res
   21962 fi
   21963 rm -f core conftest.err conftest.$ac_objext \
   21964     conftest$ac_exeext
   21965   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21966   break
   21967 fi
   21968 done
   21969 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21970 
   21971 else
   21972   ac_cv_search_idn2_to_ascii_lz=no
   21973 fi
   21974 rm conftest.$ac_ext
   21975 LIBS=$ac_func_search_save_LIBS
   21976 fi
   21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   21978 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   21979 ac_res=$ac_cv_search_idn2_to_ascii_lz
   21980 if test "$ac_res" != no; then :
   21981   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21982   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   21983 
   21984 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21985 
   21986 else
   21987   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   21988 fi
   21989 
   21990 
   21991   CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
   21992 
   21993 
   21994   CFLAGS=$CFLAGS_libidn2_ax_save_flags
   21995 
   21996 
   21997   CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
   21998 
   21999 
   22000   CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
   22001 
   22002 
   22003   ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
   22004 
   22005 
   22006   FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
   22007 
   22008 
   22009   FCLIBS=$FCLIBS_libidn2_ax_save_flags
   22010 
   22011 
   22012   FFLAGS=$FFLAGS_libidn2_ax_save_flags
   22013 
   22014 
   22015   FLIBS=$FLIBS_libidn2_ax_save_flags
   22016 
   22017 
   22018   GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
   22019 
   22020 
   22021   JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
   22022 
   22023 
   22024   LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
   22025 
   22026 
   22027   LIBS=$LIBS_libidn2_ax_save_flags
   22028 
   22029 
   22030   OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
   22031 
   22032 
   22033   OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
   22034 
   22035 
   22036   UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
   22037 
   22038 
   22039   VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
   22040 
   22041 
   22042  ;; #(
   22043   *) :
   22044      ;;
   22045 esac
   22046 
   22047 
   22048 
   22049 
   22050 #
   22051 # Check whether to build with cmocka unit testing framework
   22052 #
   22053 # [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
   22054 
   22055 # Check whether --with-cmocka was given.
   22056 if test "${with_cmocka+set}" = set; then :
   22057   withval=$with_cmocka;
   22058 else
   22059   with_cmocka=detect
   22060 fi
   22061 
   22062 
   22063 case $with_cmocka in #(
   22064   no) :
   22065      ;; #(
   22066   detect) :
   22067 
   22068 pkg_failed=no
   22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
   22070 $as_echo_n "checking for cmocka >= 1.1.3... " >&6; }
   22071 
   22072 if test -n "$CMOCKA_CFLAGS"; then
   22073     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   22074  elif test -n "$PKG_CONFIG"; then
   22075     if test -n "$PKG_CONFIG" && \
   22076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
   22077   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
   22078   ac_status=$?
   22079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22080   test $ac_status = 0; }; then
   22081   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
   22082 		      test "x$?" != "x0" && pkg_failed=yes
   22083 else
   22084   pkg_failed=yes
   22085 fi
   22086  else
   22087     pkg_failed=untried
   22088 fi
   22089 if test -n "$CMOCKA_LIBS"; then
   22090     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   22091  elif test -n "$PKG_CONFIG"; then
   22092     if test -n "$PKG_CONFIG" && \
   22093     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
   22094   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
   22095   ac_status=$?
   22096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22097   test $ac_status = 0; }; then
   22098   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
   22099 		      test "x$?" != "x0" && pkg_failed=yes
   22100 else
   22101   pkg_failed=yes
   22102 fi
   22103  else
   22104     pkg_failed=untried
   22105 fi
   22106 
   22107 
   22108 
   22109 if test $pkg_failed = yes; then
   22110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22111 $as_echo "no" >&6; }
   22112 
   22113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   22114         _pkg_short_errors_supported=yes
   22115 else
   22116         _pkg_short_errors_supported=no
   22117 fi
   22118         if test $_pkg_short_errors_supported = yes; then
   22119 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
   22120         else
   22121 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
   22122         fi
   22123 	# Put the nasty error message in config.log where it belongs
   22124 	echo "$CMOCKA_PKG_ERRORS" >&5
   22125 
   22126 	with_cmocka=no
   22127 elif test $pkg_failed = untried; then
   22128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22129 $as_echo "no" >&6; }
   22130 	with_cmocka=no
   22131 else
   22132 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   22133 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   22134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22135 $as_echo "yes" >&6; }
   22136 
   22137 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   22138 
   22139 				     with_cmocka=yes
   22140 fi ;; #(
   22141   yes) :
   22142 
   22143 pkg_failed=no
   22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.1.3" >&5
   22145 $as_echo_n "checking for cmocka >= 1.1.3... " >&6; }
   22146 
   22147 if test -n "$CMOCKA_CFLAGS"; then
   22148     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   22149  elif test -n "$PKG_CONFIG"; then
   22150     if test -n "$PKG_CONFIG" && \
   22151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
   22152   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
   22153   ac_status=$?
   22154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22155   test $ac_status = 0; }; then
   22156   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.1.3" 2>/dev/null`
   22157 		      test "x$?" != "x0" && pkg_failed=yes
   22158 else
   22159   pkg_failed=yes
   22160 fi
   22161  else
   22162     pkg_failed=untried
   22163 fi
   22164 if test -n "$CMOCKA_LIBS"; then
   22165     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   22166  elif test -n "$PKG_CONFIG"; then
   22167     if test -n "$PKG_CONFIG" && \
   22168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.1.3\""; } >&5
   22169   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.1.3") 2>&5
   22170   ac_status=$?
   22171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   22172   test $ac_status = 0; }; then
   22173   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.1.3" 2>/dev/null`
   22174 		      test "x$?" != "x0" && pkg_failed=yes
   22175 else
   22176   pkg_failed=yes
   22177 fi
   22178  else
   22179     pkg_failed=untried
   22180 fi
   22181 
   22182 
   22183 
   22184 if test $pkg_failed = yes; then
   22185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22186 $as_echo "no" >&6; }
   22187 
   22188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   22189         _pkg_short_errors_supported=yes
   22190 else
   22191         _pkg_short_errors_supported=no
   22192 fi
   22193         if test $_pkg_short_errors_supported = yes; then
   22194 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
   22195         else
   22196 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.1.3" 2>&1`
   22197         fi
   22198 	# Put the nasty error message in config.log where it belongs
   22199 	echo "$CMOCKA_PKG_ERRORS" >&5
   22200 
   22201 	as_fn_error $? "Package requirements (cmocka >= 1.1.3) were not met:
   22202 
   22203 $CMOCKA_PKG_ERRORS
   22204 
   22205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   22206 installed software in a non-standard prefix.
   22207 
   22208 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   22209 and CMOCKA_LIBS to avoid the need to call pkg-config.
   22210 See the pkg-config man page for more details." "$LINENO" 5
   22211 elif test $pkg_failed = untried; then
   22212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22213 $as_echo "no" >&6; }
   22214 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   22215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   22216 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   22217 is in your PATH or set the PKG_CONFIG environment variable to the full
   22218 path to pkg-config.
   22219 
   22220 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   22221 and CMOCKA_LIBS to avoid the need to call pkg-config.
   22222 See the pkg-config man page for more details.
   22223 
   22224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   22225 See \`config.log' for more details" "$LINENO" 5; }
   22226 else
   22227 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   22228 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   22229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22230 $as_echo "yes" >&6; }
   22231 
   22232 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   22233 
   22234 fi ;; #(
   22235   *) :
   22236     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   22237         ;;
   22238 esac
   22239 
   22240 
   22241 
   22242 
   22243 $as_echo "#define SKIPPED_TEST_EXIT_CODE 0" >>confdefs.h
   22244 
   22245 
   22246 #
   22247 # Check for kyua execution engine if CMocka was requested
   22248 # and bail out if execution engine was not found
   22249 #
   22250 
   22251 if test "$with_cmocka" != "no"; then :
   22252   for ac_prog in kyua
   22253 do
   22254   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22255 set dummy $ac_prog; ac_word=$2
   22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22257 $as_echo_n "checking for $ac_word... " >&6; }
   22258 if ${ac_cv_path_KYUA+:} false; then :
   22259   $as_echo_n "(cached) " >&6
   22260 else
   22261   case $KYUA in
   22262   [\\/]* | ?:[\\/]*)
   22263   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   22264   ;;
   22265   *)
   22266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22267 for as_dir in $PATH
   22268 do
   22269   IFS=$as_save_IFS
   22270   test -z "$as_dir" && as_dir=.
   22271     for ac_exec_ext in '' $ac_executable_extensions; do
   22272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22273     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   22274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22275     break 2
   22276   fi
   22277 done
   22278   done
   22279 IFS=$as_save_IFS
   22280 
   22281   ;;
   22282 esac
   22283 fi
   22284 KYUA=$ac_cv_path_KYUA
   22285 if test -n "$KYUA"; then
   22286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   22287 $as_echo "$KYUA" >&6; }
   22288 else
   22289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22290 $as_echo "no" >&6; }
   22291 fi
   22292 
   22293 
   22294   test -n "$KYUA" && break
   22295 done
   22296 
   22297        if test -z "$KYUA"; then :
   22298   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   22299 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   22300 else
   22301   UNITTESTS=tests
   22302 fi
   22303 fi
   22304 
   22305 
   22306 
   22307 #
   22308 # Check for -Wl,--wrap= support
   22309 #
   22310 
   22311 LD_WRAP_TESTS=false
   22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   22313 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   22314 
   22315 
   22316   CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
   22317 
   22318 
   22319 
   22320   CFLAGS_wrap_ax_save_flags=$CFLAGS
   22321 
   22322 
   22323 
   22324   CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
   22325 
   22326 
   22327 
   22328   CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
   22329 
   22330 
   22331 
   22332   ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
   22333 
   22334 
   22335 
   22336   FCFLAGS_wrap_ax_save_flags=$FCFLAGS
   22337 
   22338 
   22339 
   22340   FCLIBS_wrap_ax_save_flags=$FCLIBS
   22341 
   22342 
   22343 
   22344   FFLAGS_wrap_ax_save_flags=$FFLAGS
   22345 
   22346 
   22347 
   22348   FLIBS_wrap_ax_save_flags=$FLIBS
   22349 
   22350 
   22351 
   22352   GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
   22353 
   22354 
   22355 
   22356   JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
   22357 
   22358 
   22359 
   22360   LDFLAGS_wrap_ax_save_flags=$LDFLAGS
   22361 
   22362 
   22363 
   22364   LIBS_wrap_ax_save_flags=$LIBS
   22365 
   22366 
   22367 
   22368   OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
   22369 
   22370 
   22371 
   22372   OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
   22373 
   22374 
   22375 
   22376   UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
   22377 
   22378 
   22379 
   22380   VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
   22381 
   22382 
   22383 
   22384 LDFLAGS="-Wl,--wrap,exit"
   22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22386 /* end confdefs.h.  */
   22387 #include <stdlib.h>
   22388 		       void __real_exit (int status);
   22389 		       void __wrap_exit (int status) { __real_exit (0); }
   22390 
   22391 int
   22392 main ()
   22393 {
   22394 exit (1);
   22395   ;
   22396   return 0;
   22397 }
   22398 _ACEOF
   22399 if ac_fn_c_try_link "$LINENO"; then :
   22400   LD_WRAP_TESTS=true
   22401 
   22402 $as_echo "#define LD_WRAP 1" >>confdefs.h
   22403 
   22404      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22405 $as_echo "yes" >&6; }
   22406 else
   22407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22408 $as_echo "no" >&6; }
   22409 fi
   22410 rm -f core conftest.err conftest.$ac_objext \
   22411     conftest$ac_exeext conftest.$ac_ext
   22412 
   22413   CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
   22414 
   22415 
   22416   CFLAGS=$CFLAGS_wrap_ax_save_flags
   22417 
   22418 
   22419   CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
   22420 
   22421 
   22422   CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
   22423 
   22424 
   22425   ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
   22426 
   22427 
   22428   FCFLAGS=$FCFLAGS_wrap_ax_save_flags
   22429 
   22430 
   22431   FCLIBS=$FCLIBS_wrap_ax_save_flags
   22432 
   22433 
   22434   FFLAGS=$FFLAGS_wrap_ax_save_flags
   22435 
   22436 
   22437   FLIBS=$FLIBS_wrap_ax_save_flags
   22438 
   22439 
   22440   GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
   22441 
   22442 
   22443   JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
   22444 
   22445 
   22446   LDFLAGS=$LDFLAGS_wrap_ax_save_flags
   22447 
   22448 
   22449   LIBS=$LIBS_wrap_ax_save_flags
   22450 
   22451 
   22452   OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
   22453 
   22454 
   22455   OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
   22456 
   22457 
   22458   UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
   22459 
   22460 
   22461   VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
   22462 
   22463 
   22464 
   22465 
   22466 
   22467 
   22468 #
   22469 # Check for i18n
   22470 #
   22471 for ac_header in locale.h
   22472 do :
   22473   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   22474 if test "x$ac_cv_header_locale_h" = xyes; then :
   22475   cat >>confdefs.h <<_ACEOF
   22476 #define HAVE_LOCALE_H 1
   22477 _ACEOF
   22478 
   22479 fi
   22480 
   22481 done
   22482 
   22483 for ac_func in setlocale
   22484 do :
   22485   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   22486 if test "x$ac_cv_func_setlocale" = xyes; then :
   22487   cat >>confdefs.h <<_ACEOF
   22488 #define HAVE_SETLOCALE 1
   22489 _ACEOF
   22490 
   22491 fi
   22492 done
   22493 
   22494 
   22495 #
   22496 # was --with-tuning specified?
   22497 #
   22498 # [pairwise: --with-tuning=small, --without-tuning]
   22499 
   22500 # Check whether --with-tuning was given.
   22501 if test "${with_tuning+set}" = set; then :
   22502   withval=$with_tuning;
   22503 else
   22504   with_tuning=no
   22505 fi
   22506 
   22507 
   22508 case $with_tuning in #(
   22509   small) :
   22510     { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
   22511 $as_echo "$as_me: using small system tuning" >&6;} ;; #(
   22512   *) :
   22513 
   22514 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   22515 
   22516 	 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
   22517 $as_echo "$as_me: using default system tuning" >&6;} ;;
   22518 esac
   22519 
   22520 #
   22521 # was --enable-querytrace specified?
   22522 #
   22523 # [pairwise: --enable-querytrace, --disable-querytrace]
   22524 # Check whether --enable-querytrace was given.
   22525 if test "${enable_querytrace+set}" = set; then :
   22526   enableval=$enable_querytrace; want_querytrace="$enableval"
   22527 else
   22528   want_querytrace="no"
   22529 fi
   22530 
   22531 
   22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   22533 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   22534 case "$want_querytrace" in
   22535 yes)
   22536 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22537 $as_echo "yes" >&6; }
   22538 
   22539 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   22540 
   22541 	;;
   22542 no)
   22543 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22544 $as_echo "no" >&6; }
   22545 	;;
   22546 *)
   22547 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   22548 	;;
   22549 esac
   22550 
   22551 #
   22552 # Was --disable-auto-validation specified?
   22553 #
   22554 
   22555 validation_default=auto
   22556 
   22557 # [pairwise: --enable-auto-validation, --disable-auto-validation]
   22558 # Check whether --enable-auto-validation was given.
   22559 if test "${enable_auto_validation+set}" = set; then :
   22560   enableval=$enable_auto_validation; :
   22561 else
   22562   enable_auto_validation=yes
   22563 fi
   22564 
   22565 if test "$enable_auto_validation" = "no"; then :
   22566   validation_default=yes
   22567 fi
   22568 
   22569 cat >>confdefs.h <<_ACEOF
   22570 #define VALIDATION_DEFAULT "$validation_default"
   22571 _ACEOF
   22572 
   22573 
   22574 #
   22575 # Substitutions
   22576 #
   22577 
   22578 BIND9_TOP_BUILDDIR=`pwd`
   22579 
   22580 
   22581 
   22582 
   22583 
   22584 
   22585 
   22586 
   22587 if test "X$srcdir" != "X"; then
   22588 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   22589 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   22590 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   22591 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   22592 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   22593 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   22594 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   22595 else
   22596 	BIND9_ISC_BUILDINCLUDE=""
   22597 	BIND9_ISCCC_BUILDINCLUDE=""
   22598 	BIND9_ISCCFG_BUILDINCLUDE=""
   22599 	BIND9_DNS_BUILDINCLUDE=""
   22600 	BIND9_NS_BUILDINCLUDE=""
   22601 	BIND9_BIND9_BUILDINCLUDE=""
   22602 	BIND9_IRS_BUILDINCLUDE=""
   22603 fi
   22604 
   22605 
   22606 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   22607 
   22608 
   22609 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   22610 
   22611 . "$srcdir/version"
   22612 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   22613 
   22614 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   22615 
   22616 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22617 
   22618 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   22619 
   22620 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   22621 
   22622 
   22623 BIND9_SRCID="SRCID=unset_id"
   22624 if test -f "${srcdir}/srcid"; then
   22625 	. "${srcdir}/srcid"
   22626 	BIND9_SRCID="SRCID=$SRCID"
   22627 elif test -d "${srcdir}/.git"; then
   22628 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   22629 fi
   22630 
   22631 
   22632 
   22633 if test -z "$ac_configure_args"; then
   22634 	BIND9_CONFIGARGS="defaults"
   22635 else
   22636 	for a in $ac_configure_args
   22637 	do
   22638 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   22639 	done
   22640 fi
   22641 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   22642 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   22643 
   22644 
   22645 
   22646 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   22647 
   22648 #
   22649 # Configure any DLZ drivers.
   22650 #
   22651 # If config.dlz.in selects one or more DLZ drivers, it will set
   22652 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   22653 # build DLZ drivers in contrib.
   22654 #
   22655 # This section has to come after the libtool stuff because it needs to
   22656 # know how to name the driver object files.
   22657 #
   22658 
   22659 CONTRIB_DLZ=""
   22660 DLZ_DRIVER_INCLUDES=""
   22661 DLZ_DRIVER_LIBS=""
   22662 DLZ_DRIVER_SRCS=""
   22663 DLZ_DRIVER_OBJS=""
   22664 DLZ_SYSTEM_TEST=""
   22665 DLZ_DRIVER_MYSQL_INCLUDES=""
   22666 DLZ_DRIVER_MYSQL_LIBS=""
   22667 
   22668 #
   22669 # Configure support for building a shared library object
   22670 #
   22671 # Even when libtool is available it can't always be relied upon
   22672 # to build an object that can be dlopen()'ed, but this is necessary
   22673 # for building the dlzexternal system test, so we'll try it the
   22674 # old-fashioned way.
   22675 #
   22676 SO="so"
   22677 SO_CFLAGS=""
   22678 SO_LDFLAGS=""
   22679 SO_LD=""
   22680 SO_TARGETS=""
   22681 SO_STRIP="cat"
   22682 
   22683 # [pairwise: skip]
   22684 
   22685 # Check whether --with-dlopen was given.
   22686 if test "${with_dlopen+set}" = set; then :
   22687   withval=$with_dlopen;
   22688 else
   22689   with_dlopen="auto"
   22690 fi
   22691 
   22692 
   22693 
   22694 #
   22695 # If PIC is disabled, dlopen must also be
   22696 #
   22697 if test "$pic_mode" = "no"; then :
   22698   case $with_dlopen in #(
   22699   auto) :
   22700     with_dlopen="no" ;; #(
   22701   yes) :
   22702     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   22703   *) :
   22704      ;;
   22705 esac
   22706 fi
   22707 
   22708 case $with_dlopen in #(
   22709   auto|yes) :
   22710 
   22711 	  # -fsanitize=thread hijacks dlopen and dlclose so use dlsym.
   22712 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   22713 $as_echo_n "checking for library containing dlsym... " >&6; }
   22714 if ${ac_cv_search_dlsym+:} false; then :
   22715   $as_echo_n "(cached) " >&6
   22716 else
   22717   ac_func_search_save_LIBS=$LIBS
   22718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22719 /* end confdefs.h.  */
   22720 
   22721 /* Override any GCC internal prototype to avoid an error.
   22722    Use char because int might match the return type of a GCC
   22723    builtin and then its argument prototype would still apply.  */
   22724 #ifdef __cplusplus
   22725 extern "C"
   22726 #endif
   22727 char dlsym ();
   22728 int
   22729 main ()
   22730 {
   22731 return dlsym ();
   22732   ;
   22733   return 0;
   22734 }
   22735 _ACEOF
   22736 for ac_lib in '' dl; do
   22737   if test -z "$ac_lib"; then
   22738     ac_res="none required"
   22739   else
   22740     ac_res=-l$ac_lib
   22741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22742   fi
   22743   if ac_fn_c_try_link "$LINENO"; then :
   22744   ac_cv_search_dlsym=$ac_res
   22745 fi
   22746 rm -f core conftest.err conftest.$ac_objext \
   22747     conftest$ac_exeext
   22748   if ${ac_cv_search_dlsym+:} false; then :
   22749   break
   22750 fi
   22751 done
   22752 if ${ac_cv_search_dlsym+:} false; then :
   22753 
   22754 else
   22755   ac_cv_search_dlsym=no
   22756 fi
   22757 rm conftest.$ac_ext
   22758 LIBS=$ac_func_search_save_LIBS
   22759 fi
   22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   22761 $as_echo "$ac_cv_search_dlsym" >&6; }
   22762 ac_res=$ac_cv_search_dlsym
   22763 if test "$ac_res" != no; then :
   22764   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22765 
   22766 fi
   22767 
   22768 	  for ac_func in dlopen dlclose dlsym
   22769 do :
   22770   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   22772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   22773   cat >>confdefs.h <<_ACEOF
   22774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22775 _ACEOF
   22776  with_dlopen="yes"
   22777 else
   22778   with_dlopen="no"
   22779 fi
   22780 done
   22781 
   22782 	 ;; #(
   22783   *) :
   22784      ;;
   22785 esac
   22786 
   22787 if test "$with_dlopen" = "yes"; then :
   22788   case $host in #(
   22789   *-linux*|*-gnu*) :
   22790 
   22791 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   22792 		 SO_CFLAGS="-fPIC"
   22793 		 SO_LDFLAGS=""
   22794 		 if test "$use_libtool" = "yes"; then :
   22795 
   22796 			 SO_LDFLAGS="-Xcompiler -shared"
   22797 			 SO_LD="${CC}"
   22798 
   22799 else
   22800 
   22801 			 SO_LDFLAGS="-shared"
   22802 			 SO_LD="${CC}"
   22803 
   22804 fi
   22805 	        ;; #(
   22806   *-freebsd*|*-openbsd*|*-netbsd*) :
   22807 
   22808 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   22809 		 SO_CFLAGS="-fpic"
   22810 		 if test "$use_libtool" = "yes"; then :
   22811 
   22812 			 SO_LDFLAGS="-Xcompiler -shared"
   22813 			 SO_LD="${CC}"
   22814 
   22815 else
   22816 
   22817 			 SO_LDFLAGS="-shared"
   22818 			 SO_LD="${CC}"
   22819 
   22820 fi
   22821 	        ;; #(
   22822   *-darwin*) :
   22823 
   22824 		 SO_CFLAGS="-fPIC"
   22825                  SO_LD="${CC}"
   22826 		 if test "$use_libtool" = "yes"; then :
   22827 
   22828 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   22829 
   22830 else
   22831 
   22832 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   22833 
   22834 fi
   22835 	        ;; #(
   22836   *-solaris*) :
   22837 
   22838 		 SO_CFLAGS="-KPIC"
   22839 		 SO_LDFLAGS="-G -z text"
   22840 		 SO_LD="ld"
   22841 	        ;; #(
   22842   ia64-hp-hpux*) :
   22843 
   22844 		 SO_CFLAGS="+z"
   22845 	         SO_LDFLAGS="-b"
   22846 		 SO_LD="${CC}"
   22847 	        ;; #(
   22848   *) :
   22849 
   22850 		 SO_CFLAGS="-fPIC"
   22851 	        ;;
   22852 esac
   22853        if test "$GCC" = "yes"; then :
   22854 
   22855 	       SO_CFLAGS="-fPIC"
   22856 	       if test -z "$SO_LD"; then :
   22857   if test "$use_libtool" = "yes"; then :
   22858 
   22859 			      SO_LDFLAGS="-Xcompiler -shared"
   22860 			      SO_LD="${CC}"
   22861 
   22862 else
   22863 
   22864 			      SO_LDFLAGS="-shared"
   22865 			      SO_LD="${CC}"
   22866 
   22867 fi
   22868 
   22869 fi
   22870 
   22871 fi
   22872        # If we still don't know how to make shared objects, don't make any.
   22873        if test -n "$SO_LD"; then :
   22874   SO_TARGETS="\${SO_TARGETS}"
   22875 
   22876 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   22877 
   22878 
   22879 fi
   22880 
   22881 fi
   22882 
   22883 if test "$with_dlopen" = "no" -a "$enable_native_pkcs11" = "yes"; then :
   22884   as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5
   22885 fi
   22886 
   22887 CFLAGS="$CFLAGS $SO_CFLAGS"
   22888 
   22889 
   22890 
   22891 
   22892 
   22893 
   22894 
   22895 
   22896 #
   22897 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   22898 # interface.
   22899 #
   22900 # DNSRPS can be compiled into BIND everywhere with a reasonably
   22901 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   22902 #
   22903 dnsrps_avail=yes
   22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   22905 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   22906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22907 /* end confdefs.h.  */
   22908 
   22909 int
   22910 main ()
   22911 {
   22912 
   22913        extern void f(char *p __attribute__((unused)), ...)
   22914        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   22915 
   22916   ;
   22917   return 0;
   22918 }
   22919 _ACEOF
   22920 if ac_fn_c_try_compile "$LINENO"; then :
   22921 
   22922     librpz_have_attr=yes
   22923 
   22924 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   22925 
   22926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22927 $as_echo "yes" >&6; }
   22928 
   22929 else
   22930 
   22931     librpz_have_attr=no
   22932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22933 $as_echo "no" >&6; }
   22934 
   22935 fi
   22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22937 
   22938 # DNSRPS is not included in pairwise testing as the librpz library is not
   22939 # present in the relevant Docker image.
   22940 #
   22941 # [pairwise: skip]
   22942 # Check whether --enable-dnsrps-dl was given.
   22943 if test "${enable_dnsrps_dl+set}" = set; then :
   22944   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   22945 else
   22946   enable_librpz_dl="$with_dlopen"
   22947 fi
   22948 
   22949 
   22950 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   22951   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   22952 fi
   22953 
   22954 # [pairwise: skip]
   22955 
   22956 # Check whether --with-dnsrps-libname was given.
   22957 if test "${with_dnsrps_libname+set}" = set; then :
   22958   withval=$with_dnsrps_libname; librpz_name="$withval"
   22959 else
   22960   librpz_name="librpz.so"
   22961 fi
   22962 
   22963 
   22964 # [pairwise: skip]
   22965 
   22966 # Check whether --with-dnsrps-dir was given.
   22967 if test "${with_dnsrps_dir+set}" = set; then :
   22968   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   22969 else
   22970   librpz_path="$librpz_name"
   22971 fi
   22972 
   22973 
   22974 cat >>confdefs.h <<_ACEOF
   22975 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   22976 _ACEOF
   22977 
   22978 if test "$enable_librpz_dl" = "yes"; then :
   22979 
   22980 	dnsrps_lib_open=2
   22981 
   22982 else
   22983 
   22984 	dnsrps_lib_open=1
   22985 	# Add librpz.so to linked libraries if we are not using dlopen()
   22986 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   22987 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   22988 if ${ac_cv_search_librpz_client_create+:} false; then :
   22989   $as_echo_n "(cached) " >&6
   22990 else
   22991   ac_func_search_save_LIBS=$LIBS
   22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22993 /* end confdefs.h.  */
   22994 
   22995 /* Override any GCC internal prototype to avoid an error.
   22996    Use char because int might match the return type of a GCC
   22997    builtin and then its argument prototype would still apply.  */
   22998 #ifdef __cplusplus
   22999 extern "C"
   23000 #endif
   23001 char librpz_client_create ();
   23002 int
   23003 main ()
   23004 {
   23005 return librpz_client_create ();
   23006   ;
   23007   return 0;
   23008 }
   23009 _ACEOF
   23010 for ac_lib in '' rpz; do
   23011   if test -z "$ac_lib"; then
   23012     ac_res="none required"
   23013   else
   23014     ac_res=-l$ac_lib
   23015     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   23016   fi
   23017   if ac_fn_c_try_link "$LINENO"; then :
   23018   ac_cv_search_librpz_client_create=$ac_res
   23019 fi
   23020 rm -f core conftest.err conftest.$ac_objext \
   23021     conftest$ac_exeext
   23022   if ${ac_cv_search_librpz_client_create+:} false; then :
   23023   break
   23024 fi
   23025 done
   23026 if ${ac_cv_search_librpz_client_create+:} false; then :
   23027 
   23028 else
   23029   ac_cv_search_librpz_client_create=no
   23030 fi
   23031 rm conftest.$ac_ext
   23032 LIBS=$ac_func_search_save_LIBS
   23033 fi
   23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   23035 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   23036 ac_res=$ac_cv_search_librpz_client_create
   23037 if test "$ac_res" != no; then :
   23038   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   23039 
   23040 else
   23041   dnsrps_lib_open=0
   23042 		 dnsrps_avail=no
   23043 fi
   23044 
   23045 
   23046 fi
   23047 
   23048 cat >>confdefs.h <<_ACEOF
   23049 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   23050 _ACEOF
   23051 
   23052 
   23053 # [pairwise: skip]
   23054 # Check whether --enable-dnsrps was given.
   23055 if test "${enable_dnsrps+set}" = set; then :
   23056   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   23057 else
   23058   enable_dnsrps=no
   23059 fi
   23060 
   23061 
   23062 if test "$enable_dnsrps" != "no"; then :
   23063 
   23064 	if test "$dnsrps_avail" != "yes"; then :
   23065   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   23066 fi
   23067 	if test "$dnsrps_lib_open" = "0"; then :
   23068   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   23069 fi
   23070 
   23071 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   23072 
   23073 
   23074 fi
   23075 
   23076 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   23077 #
   23078 # SPDX-License-Identifier: MPL-2.0
   23079 #
   23080 # Permission to use, copy, modify, and distribute this software for any
   23081 # purpose with or without fee is hereby granted, provided that the above
   23082 # copyright notice and this permission notice appear in all copies.
   23083 #
   23084 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   23085 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   23086 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   23087 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   23088 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   23089 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   23090 # PERFORMANCE OF THIS SOFTWARE.
   23091 
   23092 #
   23093 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   23094 #
   23095 dlzdir='${DLZ_DRIVER_DIR}'
   23096 
   23097 #
   23098 # Private autoconf macro to simplify configuring drivers:
   23099 #
   23100 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   23101 #
   23102 # where:
   23103 #   DEFINE is FOO (to define -DDLZ_FOO)
   23104 #   DRIVER is dlz_foo_driver (sources without the .c)
   23105 #   INCLUDES is any necessary include definitions
   23106 #   LIBS is any necessary library definitions
   23107 #
   23108 
   23109 
   23110 #
   23111 # Check for the various DLZ drivers
   23112 #
   23113 
   23114 #
   23115 # Was --with-dlz-postgres specified?
   23116 #
   23117 
   23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   23119 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   23120 
   23121 # Check whether --with-dlz_postgres was given.
   23122 if test "${with_dlz_postgres+set}" = set; then :
   23123   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   23124 else
   23125   use_dlz_postgres="no"
   23126 fi
   23127 
   23128 
   23129 if test "$use_dlz_postgres" != "no"
   23130 then
   23131 	if test "$use_dlz_postgres" != "yes"
   23132         then
   23133                 for ac_prog in pg_config
   23134 do
   23135   # Extract the first word of "$ac_prog", so it can be a program name with args.
   23136 set dummy $ac_prog; ac_word=$2
   23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23138 $as_echo_n "checking for $ac_word... " >&6; }
   23139 if ${ac_cv_path_PG_CONFIG+:} false; then :
   23140   $as_echo_n "(cached) " >&6
   23141 else
   23142   case $PG_CONFIG in
   23143   [\\/]* | ?:[\\/]*)
   23144   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   23145   ;;
   23146   *)
   23147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23148 for as_dir in $use_dlz_postgres/bin
   23149 do
   23150   IFS=$as_save_IFS
   23151   test -z "$as_dir" && as_dir=.
   23152     for ac_exec_ext in '' $ac_executable_extensions; do
   23153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23154     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   23155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23156     break 2
   23157   fi
   23158 done
   23159   done
   23160 IFS=$as_save_IFS
   23161 
   23162   ;;
   23163 esac
   23164 fi
   23165 PG_CONFIG=$ac_cv_path_PG_CONFIG
   23166 if test -n "$PG_CONFIG"; then
   23167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   23168 $as_echo "$PG_CONFIG" >&6; }
   23169 else
   23170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23171 $as_echo "no" >&6; }
   23172 fi
   23173 
   23174 
   23175   test -n "$PG_CONFIG" && break
   23176 done
   23177 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   23178 
   23179 	else
   23180                 for ac_prog in pg_config
   23181 do
   23182   # Extract the first word of "$ac_prog", so it can be a program name with args.
   23183 set dummy $ac_prog; ac_word=$2
   23184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23185 $as_echo_n "checking for $ac_word... " >&6; }
   23186 if ${ac_cv_path_PG_CONFIG+:} false; then :
   23187   $as_echo_n "(cached) " >&6
   23188 else
   23189   case $PG_CONFIG in
   23190   [\\/]* | ?:[\\/]*)
   23191   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   23192   ;;
   23193   *)
   23194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23195 for as_dir in $PATH
   23196 do
   23197   IFS=$as_save_IFS
   23198   test -z "$as_dir" && as_dir=.
   23199     for ac_exec_ext in '' $ac_executable_extensions; do
   23200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23201     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   23202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23203     break 2
   23204   fi
   23205 done
   23206   done
   23207 IFS=$as_save_IFS
   23208 
   23209   ;;
   23210 esac
   23211 fi
   23212 PG_CONFIG=$ac_cv_path_PG_CONFIG
   23213 if test -n "$PG_CONFIG"; then
   23214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   23215 $as_echo "$PG_CONFIG" >&6; }
   23216 else
   23217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23218 $as_echo "no" >&6; }
   23219 fi
   23220 
   23221 
   23222   test -n "$PG_CONFIG" && break
   23223 done
   23224 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   23225 
   23226 	fi
   23227 
   23228 	if test "$PG_CONFIG" != "not found"
   23229 	then
   23230 		use_dlz_postgres=`$PG_CONFIG --includedir`
   23231 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   23232 	else
   23233 		pgprefix="$use_dlz_postgres"
   23234 		use_dlz_postgres="$pgprefix/include"
   23235 		use_dlz_postgres_lib="$pgprefix/lib"
   23236 	fi
   23237 fi
   23238 
   23239 if test "$use_dlz_postgres" = "yes/include"
   23240 then
   23241 	# User did not specify path and Postgres didn't say - guess it
   23242 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   23243 	for d in $pgdirs
   23244 	do
   23245 		if test -f $d/include/libpq-fe.h
   23246 		then
   23247 			use_dlz_postgres=$d/include
   23248 			use_dlz_postgres_lib=$d/lib
   23249 			break
   23250 		fi
   23251 	done
   23252 fi
   23253 
   23254 if test "$use_dlz_postgres" = "yes/include"
   23255 then
   23256 	# Still no joy, give up
   23257 
   23258 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23259 $as_echo "not found" >&6; }
   23260 	as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
   23261 fi
   23262 
   23263 case "$use_dlz_postgres" in
   23264 	no)
   23265 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23266 $as_echo "no" >&6; }
   23267 		;;
   23268 	*)
   23269 
   23270 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   23271 	for i in dlz_postgres_driver
   23272 	do
   23273 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23274 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23275 	done
   23276 	if test -n "-I$use_dlz_postgres"
   23277 	then
   23278 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   23279 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   23280 	fi
   23281 	if test -n "-L$use_dlz_postgres_lib -lpq"
   23282 	then
   23283 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   23284 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   23285 	fi
   23286 
   23287 
   23288 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   23289 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   23290 		;;
   23291 esac
   23292 
   23293 
   23294 #
   23295 # Was --with-dlz-mysql specified?
   23296 #
   23297 
   23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   23299 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   23300 
   23301 # Check whether --with-dlz_mysql was given.
   23302 if test "${with_dlz_mysql+set}" = set; then :
   23303   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   23304 else
   23305   use_dlz_mysql="no"
   23306 fi
   23307 
   23308 
   23309 mysql_include=""
   23310 mysql_lib=""
   23311 if test "$use_dlz_mysql" = "yes"
   23312 then
   23313 	for ac_prog in mysql_config
   23314 do
   23315   # Extract the first word of "$ac_prog", so it can be a program name with args.
   23316 set dummy $ac_prog; ac_word=$2
   23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23318 $as_echo_n "checking for $ac_word... " >&6; }
   23319 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   23320   $as_echo_n "(cached) " >&6
   23321 else
   23322   if test -n "$MYSQL_CONFIG"; then
   23323   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   23324 else
   23325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23326 for as_dir in $PATH
   23327 do
   23328   IFS=$as_save_IFS
   23329   test -z "$as_dir" && as_dir=.
   23330     for ac_exec_ext in '' $ac_executable_extensions; do
   23331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23332     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   23333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23334     break 2
   23335   fi
   23336 done
   23337   done
   23338 IFS=$as_save_IFS
   23339 
   23340 fi
   23341 fi
   23342 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   23343 if test -n "$MYSQL_CONFIG"; then
   23344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   23345 $as_echo "$MYSQL_CONFIG" >&6; }
   23346 else
   23347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23348 $as_echo "no" >&6; }
   23349 fi
   23350 
   23351 
   23352   test -n "$MYSQL_CONFIG" && break
   23353 done
   23354 
   23355 	if test -n "$MYSQL_CONFIG"
   23356 	then
   23357 		mysql_include=`${MYSQL_CONFIG} --include`
   23358 		mysql_lib=`${MYSQL_CONFIG} --libs`
   23359 		use_dlz_mysql="config"
   23360 
   23361 	else
   23362 		# User did not specify a path - guess it
   23363 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   23364 		for d in $mysqldirs
   23365 		do
   23366 			if test -f $d/include/mysql/mysql.h
   23367 			then
   23368 				use_dlz_mysql=$d
   23369 				mysql_include=$d/include/mysql
   23370 				break
   23371 			elif test -f $d/include/mysql.h
   23372 			then
   23373 				use_dlz_mysql=$d
   23374 				mysql_include=$d/include
   23375 				break
   23376 			fi
   23377 		done
   23378 	fi
   23379 elif test "$use_dlz_mysql" != "no"
   23380 then
   23381 	d=$use_dlz_mysql
   23382 	if test -f $d/include/mysql/mysql.h
   23383 	then
   23384 		mysql_include=$d/include/mysql
   23385 	elif test -f $d/include/mysql.h
   23386 	then
   23387 		mysql_include=$d/include
   23388 	fi
   23389 fi
   23390 
   23391 if test "$use_dlz_mysql" = "yes"
   23392 then
   23393 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23394 $as_echo "not found" >&6; }
   23395 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   23396 fi
   23397 
   23398 case "$use_dlz_mysql" in
   23399 	no)
   23400 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23401 $as_echo "no" >&6; }
   23402 		;;
   23403 	config)
   23404 
   23405 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23406 	for i in dlz_mysql_driver
   23407 	do
   23408 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23409 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23410 	done
   23411 	if test -n "${mysql_include}"
   23412 	then
   23413 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   23414 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   23415 	fi
   23416 	if test -n "${mysql_lib}"
   23417 	then
   23418 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   23419 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   23420 	fi
   23421 
   23422 
   23423 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   23424 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   23425 		;;
   23426 	*)
   23427 		if test -d "$use_dlz_mysql/lib/mysql"
   23428 		then
   23429 			mysql_lib="$use_dlz_mysql/lib/mysql"
   23430 		else
   23431 			mysql_lib="$use_dlz_mysql/lib"
   23432 		fi
   23433 
   23434 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23435 	for i in dlz_mysql_driver
   23436 	do
   23437 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23438 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23439 	done
   23440 	if test -n "-I${mysql_include}"
   23441 	then
   23442 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   23443 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   23444 	fi
   23445 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23446 	then
   23447 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23448 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23449 	fi
   23450 
   23451 
   23452 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   23453 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   23454 		;;
   23455 esac
   23456 
   23457 
   23458 #
   23459 # Was --with-dlz-bdb specified?
   23460 #
   23461 
   23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   23463 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   23464 
   23465 # Check whether --with-dlz_bdb was given.
   23466 if test "${with_dlz_bdb+set}" = set; then :
   23467   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   23468 else
   23469   use_dlz_bdb="no"
   23470 fi
   23471 
   23472 
   23473 case "$use_dlz_bdb" in
   23474 	no)
   23475 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23476 $as_echo "no" >&6; }
   23477 		;;
   23478 	*)
   23479 		if test "$use_dlz_bdb" = "yes"
   23480 		then
   23481 			# User did not specify a path - guess directories
   23482 			bdbdirs="/usr/local /usr/pkg /usr"
   23483 		elif test -d "$use_dlz_bdb"
   23484 		then
   23485 			# User specified directory and it exists
   23486 			bdbdirs="$use_dlz_bdb"
   23487 		else
   23488 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23489 $as_echo "not found" >&6; }
   23490 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   23491 			bdbdirs=""
   23492 		fi
   23493 
   23494 		# Use path we were given or guessed.  This is insanely
   23495 		# complicated because we have to search for a bunch of
   23496 		# platform-specific variations and have to check
   23497 		# separately for include and library directories.
   23498 
   23499 		# Set both to yes, so we can check them later
   23500 		dlz_bdb_inc="yes"
   23501 		dlz_bdb_libs="yes"
   23502 
   23503                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   23504 $as_echo "" >&6; }
   23505 		for dd in $bdbdirs
   23506 		do
   23507 			# Skip nonexistent directories
   23508 			if test ! -d "$dd"
   23509 			then
   23510 				continue
   23511 			fi
   23512 
   23513 			# Check other locations for includes.
   23514 			# Order is important (sigh).
   23515 
   23516 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   23517 			# include a blank element first
   23518 			for d in "" $bdb_incdirs
   23519 			do
   23520 				if test -f "$dd/include${d}/db.h"
   23521 				then
   23522 					dlz_bdb_inc="-I$dd/include${d}"
   23523 					break
   23524 				fi
   23525 			done
   23526 
   23527 			# Give up on this directory if we couldn't
   23528 			# find the include subdir
   23529 
   23530 			if test "$dlz_bdb_inc" = "yes"
   23531 			then
   23532 				continue
   23533 			fi
   23534 
   23535 			# Look for libname other than libdb.so.
   23536 			# Order is important (sigh).
   23537 
   23538 			bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
   23539 			for d in $bdb_libnames
   23540 			do
   23541 				if test "$dd" = "/usr"
   23542 				then
   23543 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   23545 $as_echo_n "checking for db_create in -l$d... " >&6; }
   23546 if eval \${$as_ac_Lib+:} false; then :
   23547   $as_echo_n "(cached) " >&6
   23548 else
   23549   ac_check_lib_save_LIBS=$LIBS
   23550 LIBS="-l$d  $LIBS"
   23551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23552 /* end confdefs.h.  */
   23553 
   23554 /* Override any GCC internal prototype to avoid an error.
   23555    Use char because int might match the return type of a GCC
   23556    builtin and then its argument prototype would still apply.  */
   23557 #ifdef __cplusplus
   23558 extern "C"
   23559 #endif
   23560 char db_create ();
   23561 int
   23562 main ()
   23563 {
   23564 return db_create ();
   23565   ;
   23566   return 0;
   23567 }
   23568 _ACEOF
   23569 if ac_fn_c_try_link "$LINENO"; then :
   23570   eval "$as_ac_Lib=yes"
   23571 else
   23572   eval "$as_ac_Lib=no"
   23573 fi
   23574 rm -f core conftest.err conftest.$ac_objext \
   23575     conftest$ac_exeext conftest.$ac_ext
   23576 LIBS=$ac_check_lib_save_LIBS
   23577 fi
   23578 eval ac_res=\$$as_ac_Lib
   23579 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   23580 $as_echo "$ac_res" >&6; }
   23581 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   23582   dlz_bdb_libs="-l${d}"
   23583 fi
   23584 
   23585 					if test $dlz_bdb_libs != "yes"
   23586 					then
   23587 						break
   23588 					fi
   23589 				elif test -f "$dd/lib/lib${d}.so"
   23590 				then
   23591 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   23592 					break
   23593 				fi
   23594 			done
   23595 
   23596 			# If we found both incdir and lib, we're done
   23597 			if test "$dlz_bdb_libs" != "yes"
   23598 			then
   23599 				break
   23600 			fi
   23601 
   23602 			# Otherwise, we're starting over
   23603 
   23604 			dlz_bdb_inc="yes"
   23605 			dlz_bdb_libs="yes"
   23606 		done
   23607 
   23608 		# Done searching, now make sure we got everything.
   23609 
   23610 		if test "$dlz_bdb_inc" = "yes"
   23611 		then
   23612 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   23613 		fi
   23614 
   23615 		if test "$dlz_bdb_libs" = "yes"
   23616 		then
   23617 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23618 $as_echo "not found" >&6; }
   23619 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   23620 		fi
   23621 
   23622 
   23623 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   23624 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   23625 	do
   23626 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23627 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23628 	done
   23629 	if test -n "$dlz_bdb_inc"
   23630 	then
   23631 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   23632 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   23633 	fi
   23634 	if test -n "$dlz_bdb_libs"
   23635 	then
   23636 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   23637 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   23638 	fi
   23639 
   23640 
   23641 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   23642 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   23643 
   23644 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   23645 
   23646 		;;
   23647 esac
   23648 
   23649 
   23650 #
   23651 # Was --with-dlz-filesystem specified?
   23652 #
   23653 
   23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   23655 $as_echo_n "checking for file system DLZ driver... " >&6; }
   23656 
   23657 # Check whether --with-dlz_filesystem was given.
   23658 if test "${with_dlz_filesystem+set}" = set; then :
   23659   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   23660 else
   23661   use_dlz_filesystem="no"
   23662 fi
   23663 
   23664 
   23665 case "$use_dlz_filesystem" in
   23666 	no)
   23667 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23668 $as_echo "no" >&6; }
   23669 		;;
   23670 	*)
   23671 
   23672 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   23673 	for i in dlz_filesystem_driver
   23674 	do
   23675 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23676 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23677 	done
   23678 	if test -n ""
   23679 	then
   23680 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23681 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   23682 	fi
   23683 	if test -n ""
   23684 	then
   23685 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23686 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   23687 	fi
   23688 
   23689 		DLZ_SYSTEM_TEST=filesystem
   23690 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23691 $as_echo "yes" >&6; }
   23692 		;;
   23693 esac
   23694 
   23695 
   23696 #
   23697 # Was --with-dlz-ldap specified?
   23698 #
   23699 
   23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   23701 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   23702 
   23703 # Check whether --with-dlz_ldap was given.
   23704 if test "${with_dlz_ldap+set}" = set; then :
   23705   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   23706 else
   23707   use_dlz_ldap="no"
   23708 fi
   23709 
   23710 
   23711 if test "$use_dlz_ldap" = "yes"
   23712 then
   23713 	# User did not specify a path - guess it
   23714 	ldapdirs="/usr /usr/local /usr/pkg"
   23715 	for d in $ldapdirs
   23716 	do
   23717 		if test -f $d/include/ldap.h
   23718 		then
   23719 			use_dlz_ldap=$d
   23720 			break
   23721 		fi
   23722 	done
   23723 fi
   23724 
   23725 if test "$use_dlz_ldap" = "yes"
   23726 then
   23727 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23728 $as_echo "not found" >&6; }
   23729 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   23730 fi
   23731 
   23732 case "$use_dlz_ldap" in
   23733 	no)
   23734 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23735 $as_echo "no" >&6; }
   23736 		;;
   23737 	*)
   23738 
   23739 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   23740 	for i in dlz_ldap_driver
   23741 	do
   23742 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23743 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23744 	done
   23745 	if test -n "-I$use_dlz_ldap/include"
   23746 	then
   23747 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   23748 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   23749 	fi
   23750 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   23751 	then
   23752 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   23753 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   23754 	fi
   23755 
   23756 
   23757 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   23758 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   23759 		;;
   23760 esac
   23761 
   23762 
   23763 #
   23764 # Was --with-dlz-odbc specified?
   23765 #
   23766 
   23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   23768 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   23769 
   23770 # Check whether --with-dlz_odbc was given.
   23771 if test "${with_dlz_odbc+set}" = set; then :
   23772   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   23773 else
   23774   use_dlz_odbc="no"
   23775 fi
   23776 
   23777 
   23778 if test "$use_dlz_odbc" = "yes"
   23779 then
   23780 	# User did not specify a path - guess it
   23781 	libodbc_found=no
   23782 	sql_h_found=no
   23783 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   23784 if test "x$ac_cv_header_sql_h" = xyes; then :
   23785   sql_h_found=yes
   23786 fi
   23787 
   23788 
   23789 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   23790 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   23791 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   23792   $as_echo_n "(cached) " >&6
   23793 else
   23794   ac_check_lib_save_LIBS=$LIBS
   23795 LIBS="-lodbc  $LIBS"
   23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23797 /* end confdefs.h.  */
   23798 
   23799 /* Override any GCC internal prototype to avoid an error.
   23800    Use char because int might match the return type of a GCC
   23801    builtin and then its argument prototype would still apply.  */
   23802 #ifdef __cplusplus
   23803 extern "C"
   23804 #endif
   23805 char SQLConnect ();
   23806 int
   23807 main ()
   23808 {
   23809 return SQLConnect ();
   23810   ;
   23811   return 0;
   23812 }
   23813 _ACEOF
   23814 if ac_fn_c_try_link "$LINENO"; then :
   23815   ac_cv_lib_odbc_SQLConnect=yes
   23816 else
   23817   ac_cv_lib_odbc_SQLConnect=no
   23818 fi
   23819 rm -f core conftest.err conftest.$ac_objext \
   23820     conftest$ac_exeext conftest.$ac_ext
   23821 LIBS=$ac_check_lib_save_LIBS
   23822 fi
   23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   23824 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   23825 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   23826   libodbc_found=yes
   23827 fi
   23828 
   23829 
   23830 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   23831 	then
   23832 		use_dlz_odbc=system
   23833 		dlz_odbc_include=""
   23834 		dlz_odbc_libs="-lodbc"
   23835 	else
   23836 		odbcdirs="/usr /usr/local /usr/pkg"
   23837 		for d in $odbcdirs
   23838 		do
   23839 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   23840 			then
   23841 				use_dlz_odbc=$d
   23842 				dlz_odbc_include="-I$use_dlz_odbc/include"
   23843 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   23844 				break
   23845 			fi
   23846 		done
   23847 	fi
   23848 fi
   23849 
   23850 case "$use_dlz_odbc" in
   23851 	no)
   23852 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23853 $as_echo "no" >&6; }
   23854 		;;
   23855 	yes)
   23856 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23857 $as_echo "not found" >&6; }
   23858 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   23859 		;;
   23860 	*)
   23861 
   23862 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   23863 	for i in dlz_odbc_driver
   23864 	do
   23865 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23866 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23867 	done
   23868 	if test -n "$dlz_odbc_include"
   23869 	then
   23870 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   23871 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   23872 	fi
   23873 	if test -n "$dlz_odbc_libs"
   23874 	then
   23875 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   23876 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   23877 	fi
   23878 
   23879 
   23880 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   23881 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   23882 		;;
   23883 esac
   23884 
   23885 
   23886 #
   23887 # Was --with-dlz-stub specified?
   23888 #
   23889 
   23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   23891 $as_echo_n "checking for stub DLZ driver... " >&6; }
   23892 
   23893 # Check whether --with-dlz_stub was given.
   23894 if test "${with_dlz_stub+set}" = set; then :
   23895   withval=$with_dlz_stub; use_dlz_stub="$withval"
   23896 else
   23897   use_dlz_stub="no"
   23898 fi
   23899 
   23900 
   23901 case "$use_dlz_stub" in
   23902 	no)
   23903 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23904 $as_echo "no" >&6; }
   23905 		;;
   23906 	*)
   23907 
   23908 
   23909 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   23910 	for i in dlz_stub_driver
   23911 	do
   23912 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23913 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23914 	done
   23915 	if test -n ""
   23916 	then
   23917 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23918 		DLZ_DRIVER_STUB_INCLUDES=""
   23919 	fi
   23920 	if test -n ""
   23921 	then
   23922 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23923 		DLZ_DRIVER_STUB_LIBS=""
   23924 	fi
   23925 
   23926 
   23927 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23928 $as_echo "yes" >&6; }
   23929 		;;
   23930 esac
   23931 
   23932 # Add any additional DLZ drivers here.
   23933 
   23934 #
   23935 # Finally, some generic stuff that applies to all drivers, assuming
   23936 # we're compiling contrib DLZ drivers at all.
   23937 #
   23938 if test -n "$CONTRIB_DLZ"
   23939 then
   23940 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   23941 
   23942 	#
   23943 	# Where to find DLZ driver header files.
   23944 	#
   23945 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   23946 
   23947 	#
   23948 	# Initialization and shutdown wrappers, helper functions.
   23949 	#
   23950 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   23951 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   23952 fi
   23953 
   23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   23955 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   23956 
   23957 #
   23958 # Support for constructor and destructor attributes
   23959 #
   23960 
   23961 
   23962 
   23963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
   23964 $as_echo_n "checking for __attribute__((constructor))... " >&6; }
   23965 if ${ax_cv_have_func_attribute_constructor+:} false; then :
   23966   $as_echo_n "(cached) " >&6
   23967 else
   23968 
   23969         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23970 /* end confdefs.h.  */
   23971 
   23972 
   23973                     int foo( void ) __attribute__((constructor));
   23974 
   23975 int
   23976 main ()
   23977 {
   23978 
   23979   ;
   23980   return 0;
   23981 }
   23982 
   23983 _ACEOF
   23984 if ac_fn_c_try_link "$LINENO"; then :
   23985                                       if test -s conftest.err; then :
   23986   ax_cv_have_func_attribute_constructor=no
   23987 else
   23988   ax_cv_have_func_attribute_constructor=yes
   23989 fi
   23990 else
   23991   ax_cv_have_func_attribute_constructor=no
   23992 fi
   23993 rm -f core conftest.err conftest.$ac_objext \
   23994     conftest$ac_exeext conftest.$ac_ext
   23995 
   23996 fi
   23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
   23998 $as_echo "$ax_cv_have_func_attribute_constructor" >&6; }
   23999 
   24000     if test yes = $ax_cv_have_func_attribute_constructor; then :
   24001 
   24002 cat >>confdefs.h <<_ACEOF
   24003 #define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1
   24004 _ACEOF
   24005 
   24006 fi
   24007 
   24008 
   24009 
   24010 
   24011 
   24012 
   24013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
   24014 $as_echo_n "checking for __attribute__((destructor))... " >&6; }
   24015 if ${ax_cv_have_func_attribute_destructor+:} false; then :
   24016   $as_echo_n "(cached) " >&6
   24017 else
   24018 
   24019         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   24020 /* end confdefs.h.  */
   24021 
   24022 
   24023                     int foo( void ) __attribute__((destructor));
   24024 
   24025 int
   24026 main ()
   24027 {
   24028 
   24029   ;
   24030   return 0;
   24031 }
   24032 
   24033 _ACEOF
   24034 if ac_fn_c_try_link "$LINENO"; then :
   24035                                       if test -s conftest.err; then :
   24036   ax_cv_have_func_attribute_destructor=no
   24037 else
   24038   ax_cv_have_func_attribute_destructor=yes
   24039 fi
   24040 else
   24041   ax_cv_have_func_attribute_destructor=no
   24042 fi
   24043 rm -f core conftest.err conftest.$ac_objext \
   24044     conftest$ac_exeext conftest.$ac_ext
   24045 
   24046 fi
   24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
   24048 $as_echo "$ax_cv_have_func_attribute_destructor" >&6; }
   24049 
   24050     if test yes = $ax_cv_have_func_attribute_destructor; then :
   24051 
   24052 cat >>confdefs.h <<_ACEOF
   24053 #define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1
   24054 _ACEOF
   24055 
   24056 fi
   24057 
   24058 
   24059 
   24060 
   24061 if test -n "$CONTRIB_DLZ"
   24062 then
   24063 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   24064 $as_echo "yes" >&6; }
   24065 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   24066 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   24067 
   24068 else
   24069 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   24070 $as_echo "no" >&6; }
   24071 	DLZ_DRIVER_RULES=/dev/null
   24072 fi
   24073 
   24074 
   24075 
   24076 
   24077 
   24078 
   24079 
   24080 
   24081 
   24082 
   24083 
   24084 if test "yes" = "$cross_compiling"; then
   24085 	if test -z "$BUILD_CC"; then
   24086 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   24087 	fi
   24088 	BUILD_CFLAGS="$BUILD_CFLAGS"
   24089 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   24090 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   24091 	BUILD_LIBS="$BUILD_LIBS"
   24092 else
   24093 	BUILD_CC="$CC"
   24094 	BUILD_CFLAGS="$CFLAGS"
   24095 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   24096 	BUILD_LDFLAGS="$LDFLAGS"
   24097 	BUILD_LIBS="$LIBS"
   24098 fi
   24099 
   24100 NEWFLAGS=""
   24101 for e in $BUILD_LDFLAGS ; do
   24102     case $e in
   24103 	-L*)
   24104 	    case $host_os in
   24105 		netbsd*)
   24106 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24107 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24108 		    ;;
   24109 		freebsd*)
   24110 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24111 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24112 		    ;;
   24113 		solaris*)
   24114 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   24115 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24116 		    ;;
   24117 		*)
   24118 		    NEWFLAGS="$NEWFLAGS $e"
   24119 		    ;;
   24120 		esac
   24121 	    ;;
   24122 	*)
   24123 	    NEWFLAGS="$NEWFLAGS $e"
   24124 	    ;;
   24125     esac
   24126 done
   24127 BUILD_LDFLAGS="$NEWFLAGS"
   24128 
   24129 NEWFLAGS=""
   24130 for e in $DNS_GSSAPI_LIBS ; do
   24131     case $e in
   24132 	-L*)
   24133 	    case $host_os in
   24134 		netbsd*)
   24135 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24136 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24137 		    ;;
   24138 		freebsd*)
   24139 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24140 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24141 		    ;;
   24142 		solaris*)
   24143 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   24144 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24145 		    ;;
   24146 		*)
   24147 		    NEWFLAGS="$NEWFLAGS $e"
   24148 		    ;;
   24149 		esac
   24150 	    ;;
   24151 	*)
   24152 	    NEWFLAGS="$NEWFLAGS $e"
   24153 	    ;;
   24154     esac
   24155 done
   24156 DNS_GSSAPI_LIBS="$NEWFLAGS"
   24157 
   24158 NEWFLAGS=""
   24159 for e in $ISC_OPENSSL_LIBS ; do
   24160     case $e in
   24161 	-L*)
   24162 	    case $host_os in
   24163 		netbsd*)
   24164 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24165 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24166 		    ;;
   24167 		freebsd*)
   24168 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24169 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24170 		    ;;
   24171 		solaris*)
   24172 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   24173 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24174 		    ;;
   24175 		*)
   24176 		    NEWFLAGS="$NEWFLAGS $e"
   24177 		    ;;
   24178 		esac
   24179 	    ;;
   24180 	*)
   24181 	    NEWFLAGS="$NEWFLAGS $e"
   24182 	    ;;
   24183     esac
   24184 done
   24185 ISC_OPENSSL_LIBS="$NEWFLAGS"
   24186 
   24187 NEWFLAGS=""
   24188 for e in $DNS_CRYPTO_LIBS ; do
   24189     case $e in
   24190 	-L*)
   24191 	    case $host_os in
   24192 		netbsd*)
   24193 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24194 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24195 		    ;;
   24196 		freebsd*)
   24197 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   24198 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24199 		    ;;
   24200 		solaris*)
   24201 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   24202 		    NEWFLAGS="$NEWFLAGS $e $ee"
   24203 		    ;;
   24204 		*)
   24205 		    NEWFLAGS="$NEWFLAGS $e"
   24206 		    ;;
   24207 		esac
   24208 	    ;;
   24209 	*)
   24210 	    NEWFLAGS="$NEWFLAGS $e"
   24211 	    ;;
   24212     esac
   24213 done
   24214 DNS_CRYPTO_LIBS="$NEWFLAGS"
   24215 
   24216 
   24217 
   24218 
   24219 
   24220 
   24221 
   24222 #
   24223 # Commands to run at the end of config.status.
   24224 # Don't just put these into configure, it won't work right if somebody
   24225 # runs config.status directly (which autoconf allows).
   24226 #
   24227 
   24228 ac_config_commands="$ac_config_commands chmod"
   24229 
   24230 
   24231 #
   24232 # Files to configure.  These are listed here because we used to
   24233 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   24234 # elsewhere if there's a good reason for doing so.
   24235 #
   24236 
   24237 ac_config_files="$ac_config_files Makefile bin/Makefile bin/check/Makefile bin/confgen/Makefile bin/confgen/unix/Makefile bin/delv/Makefile bin/dig/Makefile bin/dnssec/Makefile bin/named/Makefile bin/named/unix/Makefile bin/nsupdate/Makefile bin/pkcs11/Makefile bin/plugins/Makefile bin/python/Makefile bin/python/dnssec-checkds.py bin/python/dnssec-coverage.py bin/python/dnssec-keymgr.py bin/python/isc/Makefile bin/python/isc/__init__.py bin/python/isc/checkds.py bin/python/isc/coverage.py bin/python/isc/dnskey.py bin/python/isc/eventlist.py bin/python/isc/keydict.py bin/python/isc/keyevent.py bin/python/isc/keymgr.py bin/python/isc/keyseries.py bin/python/isc/keyzone.py bin/python/isc/policy.py bin/python/isc/rndc.py bin/python/isc/tests/Makefile bin/python/isc/tests/dnskey_test.py bin/python/isc/tests/policy_test.py bin/python/isc/utils.py bin/rndc/Makefile bin/tests/Makefile bin/tests/headerdep_test.sh bin/tests/optional/Makefile bin/tests/pkcs11/Makefile bin/tests/pkcs11/benchmarks/Makefile bin/tests/system/Makefile bin/tests/system/conf.sh bin/tests/system/dlzexternal/Makefile bin/tests/system/dlzexternal/ns1/dlzs.conf bin/tests/system/dyndb/Makefile bin/tests/system/dyndb/driver/Makefile bin/tests/system/pipelined/Makefile bin/tests/system/rndc/Makefile bin/tests/system/rpz/Makefile bin/tests/system/rsabigexponent/Makefile bin/tests/system/tkey/Makefile bin/tools/Makefile contrib/scripts/check-secure-delegation.pl contrib/scripts/zone-edit.sh doc/Makefile doc/arm/Makefile doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/man/Makefile doc/misc/Makefile fuzz/Makefile lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/netmgr/Makefile lib/isc/pthreads/Makefile lib/isc/pthreads/include/Makefile lib/isc/pthreads/include/isc/Makefile lib/isc/tests/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccc/tests/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/isccfg/tests/Makefile lib/ns/Makefile lib/ns/include/Makefile lib/ns/include/ns/Makefile lib/ns/tests/Makefile make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
   24238 
   24239 
   24240 #
   24241 # Do it
   24242 #
   24243 
   24244 cat >confcache <<\_ACEOF
   24245 # This file is a shell script that caches the results of configure
   24246 # tests run on this system so they can be shared between configure
   24247 # scripts and configure runs, see configure's option --config-cache.
   24248 # It is not useful on other systems.  If it contains results you don't
   24249 # want to keep, you may remove or edit it.
   24250 #
   24251 # config.status only pays attention to the cache file if you give it
   24252 # the --recheck option to rerun configure.
   24253 #
   24254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   24255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   24256 # following values.
   24257 
   24258 _ACEOF
   24259 
   24260 # The following way of writing the cache mishandles newlines in values,
   24261 # but we know of no workaround that is simple, portable, and efficient.
   24262 # So, we kill variables containing newlines.
   24263 # Ultrix sh set writes to stderr and can't be redirected directly,
   24264 # and sets the high bit in the cache file unless we assign to the vars.
   24265 (
   24266   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   24267     eval ac_val=\$$ac_var
   24268     case $ac_val in #(
   24269     *${as_nl}*)
   24270       case $ac_var in #(
   24271       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   24272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   24273       esac
   24274       case $ac_var in #(
   24275       _ | IFS | as_nl) ;; #(
   24276       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   24277       *) { eval $ac_var=; unset $ac_var;} ;;
   24278       esac ;;
   24279     esac
   24280   done
   24281 
   24282   (set) 2>&1 |
   24283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   24284     *${as_nl}ac_space=\ *)
   24285       # `set' does not quote correctly, so add quotes: double-quote
   24286       # substitution turns \\\\ into \\, and sed turns \\ into \.
   24287       sed -n \
   24288 	"s/'/'\\\\''/g;
   24289 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   24290       ;; #(
   24291     *)
   24292       # `set' quotes correctly as required by POSIX, so do not add quotes.
   24293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   24294       ;;
   24295     esac |
   24296     sort
   24297 ) |
   24298   sed '
   24299      /^ac_cv_env_/b end
   24300      t clear
   24301      :clear
   24302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   24303      t end
   24304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   24305      :end' >>confcache
   24306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   24307   if test -w "$cache_file"; then
   24308     if test "x$cache_file" != "x/dev/null"; then
   24309       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   24310 $as_echo "$as_me: updating cache $cache_file" >&6;}
   24311       if test ! -f "$cache_file" || test -h "$cache_file"; then
   24312 	cat confcache >"$cache_file"
   24313       else
   24314         case $cache_file in #(
   24315         */* | ?:*)
   24316 	  mv -f confcache "$cache_file"$$ &&
   24317 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   24318         *)
   24319 	  mv -f confcache "$cache_file" ;;
   24320 	esac
   24321       fi
   24322     fi
   24323   else
   24324     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   24325 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   24326   fi
   24327 fi
   24328 rm -f confcache
   24329 
   24330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   24331 # Let make expand exec_prefix.
   24332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   24333 
   24334 DEFS=-DHAVE_CONFIG_H
   24335 
   24336 ac_libobjs=
   24337 ac_ltlibobjs=
   24338 U=
   24339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   24340   # 1. Remove the extension, and $U if already installed.
   24341   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   24342   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   24343   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   24344   #    will be set to the directory where LIBOBJS objects are built.
   24345   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   24346   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   24347 done
   24348 LIBOBJS=$ac_libobjs
   24349 
   24350 LTLIBOBJS=$ac_ltlibobjs
   24351 
   24352 
   24353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   24354   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   24355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   24356 fi
   24357 
   24358 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
   24359   as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
   24360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   24361 fi
   24362 if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
   24363   as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
   24364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   24365 fi
   24366 
   24367 : "${CONFIG_STATUS=./config.status}"
   24368 ac_write_fail=0
   24369 ac_clean_files_save=$ac_clean_files
   24370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   24371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   24372 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   24373 as_write_fail=0
   24374 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   24375 #! $SHELL
   24376 # Generated by $as_me.
   24377 # Run this file to recreate the current configuration.
   24378 # Compiler output produced by configure, useful for debugging
   24379 # configure, is in config.log if it exists.
   24380 
   24381 debug=false
   24382 ac_cs_recheck=false
   24383 ac_cs_silent=false
   24384 
   24385 SHELL=\${CONFIG_SHELL-$SHELL}
   24386 export SHELL
   24387 _ASEOF
   24388 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   24389 ## -------------------- ##
   24390 ## M4sh Initialization. ##
   24391 ## -------------------- ##
   24392 
   24393 # Be more Bourne compatible
   24394 DUALCASE=1; export DUALCASE # for MKS sh
   24395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   24396   emulate sh
   24397   NULLCMD=:
   24398   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   24399   # is contrary to our usage.  Disable this feature.
   24400   alias -g '${1+"$@"}'='"$@"'
   24401   setopt NO_GLOB_SUBST
   24402 else
   24403   case `(set -o) 2>/dev/null` in #(
   24404   *posix*) :
   24405     set -o posix ;; #(
   24406   *) :
   24407      ;;
   24408 esac
   24409 fi
   24410 
   24411 
   24412 as_nl='
   24413 '
   24414 export as_nl
   24415 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   24416 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   24417 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   24418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   24419 # Prefer a ksh shell builtin over an external printf program on Solaris,
   24420 # but without wasting forks for bash or zsh.
   24421 if test -z "$BASH_VERSION$ZSH_VERSION" \
   24422     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   24423   as_echo='print -r --'
   24424   as_echo_n='print -rn --'
   24425 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   24426   as_echo='printf %s\n'
   24427   as_echo_n='printf %s'
   24428 else
   24429   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   24430     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   24431     as_echo_n='/usr/ucb/echo -n'
   24432   else
   24433     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   24434     as_echo_n_body='eval
   24435       arg=$1;
   24436       case $arg in #(
   24437       *"$as_nl"*)
   24438 	expr "X$arg" : "X\\(.*\\)$as_nl";
   24439 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   24440       esac;
   24441       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   24442     '
   24443     export as_echo_n_body
   24444     as_echo_n='sh -c $as_echo_n_body as_echo'
   24445   fi
   24446   export as_echo_body
   24447   as_echo='sh -c $as_echo_body as_echo'
   24448 fi
   24449 
   24450 # The user is always right.
   24451 if test "${PATH_SEPARATOR+set}" != set; then
   24452   PATH_SEPARATOR=:
   24453   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   24454     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   24455       PATH_SEPARATOR=';'
   24456   }
   24457 fi
   24458 
   24459 
   24460 # IFS
   24461 # We need space, tab and new line, in precisely that order.  Quoting is
   24462 # there to prevent editors from complaining about space-tab.
   24463 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   24464 # splitting by setting IFS to empty value.)
   24465 IFS=" ""	$as_nl"
   24466 
   24467 # Find who we are.  Look in the path if we contain no directory separator.
   24468 as_myself=
   24469 case $0 in #((
   24470   *[\\/]* ) as_myself=$0 ;;
   24471   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   24472 for as_dir in $PATH
   24473 do
   24474   IFS=$as_save_IFS
   24475   test -z "$as_dir" && as_dir=.
   24476     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   24477   done
   24478 IFS=$as_save_IFS
   24479 
   24480      ;;
   24481 esac
   24482 # We did not find ourselves, most probably we were run as `sh COMMAND'
   24483 # in which case we are not to be found in the path.
   24484 if test "x$as_myself" = x; then
   24485   as_myself=$0
   24486 fi
   24487 if test ! -f "$as_myself"; then
   24488   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   24489   exit 1
   24490 fi
   24491 
   24492 # Unset variables that we do not need and which cause bugs (e.g. in
   24493 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   24494 # suppresses any "Segmentation fault" message there.  '((' could
   24495 # trigger a bug in pdksh 5.2.14.
   24496 for as_var in BASH_ENV ENV MAIL MAILPATH
   24497 do eval test x\${$as_var+set} = xset \
   24498   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   24499 done
   24500 PS1='$ '
   24501 PS2='> '
   24502 PS4='+ '
   24503 
   24504 # NLS nuisances.
   24505 LC_ALL=C
   24506 export LC_ALL
   24507 LANGUAGE=C
   24508 export LANGUAGE
   24509 
   24510 # CDPATH.
   24511 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24512 
   24513 
   24514 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   24515 # ----------------------------------------
   24516 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   24517 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   24518 # script with STATUS, using 1 if that was 0.
   24519 as_fn_error ()
   24520 {
   24521   as_status=$1; test $as_status -eq 0 && as_status=1
   24522   if test "$4"; then
   24523     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   24524     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   24525   fi
   24526   $as_echo "$as_me: error: $2" >&2
   24527   as_fn_exit $as_status
   24528 } # as_fn_error
   24529 
   24530 
   24531 # as_fn_set_status STATUS
   24532 # -----------------------
   24533 # Set $? to STATUS, without forking.
   24534 as_fn_set_status ()
   24535 {
   24536   return $1
   24537 } # as_fn_set_status
   24538 
   24539 # as_fn_exit STATUS
   24540 # -----------------
   24541 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   24542 as_fn_exit ()
   24543 {
   24544   set +e
   24545   as_fn_set_status $1
   24546   exit $1
   24547 } # as_fn_exit
   24548 
   24549 # as_fn_unset VAR
   24550 # ---------------
   24551 # Portably unset VAR.
   24552 as_fn_unset ()
   24553 {
   24554   { eval $1=; unset $1;}
   24555 }
   24556 as_unset=as_fn_unset
   24557 # as_fn_append VAR VALUE
   24558 # ----------------------
   24559 # Append the text in VALUE to the end of the definition contained in VAR. Take
   24560 # advantage of any shell optimizations that allow amortized linear growth over
   24561 # repeated appends, instead of the typical quadratic growth present in naive
   24562 # implementations.
   24563 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   24564   eval 'as_fn_append ()
   24565   {
   24566     eval $1+=\$2
   24567   }'
   24568 else
   24569   as_fn_append ()
   24570   {
   24571     eval $1=\$$1\$2
   24572   }
   24573 fi # as_fn_append
   24574 
   24575 # as_fn_arith ARG...
   24576 # ------------------
   24577 # Perform arithmetic evaluation on the ARGs, and store the result in the
   24578 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   24579 # must be portable across $(()) and expr.
   24580 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   24581   eval 'as_fn_arith ()
   24582   {
   24583     as_val=$(( $* ))
   24584   }'
   24585 else
   24586   as_fn_arith ()
   24587   {
   24588     as_val=`expr "$@" || test $? -eq 1`
   24589   }
   24590 fi # as_fn_arith
   24591 
   24592 
   24593 if expr a : '\(a\)' >/dev/null 2>&1 &&
   24594    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   24595   as_expr=expr
   24596 else
   24597   as_expr=false
   24598 fi
   24599 
   24600 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   24601   as_basename=basename
   24602 else
   24603   as_basename=false
   24604 fi
   24605 
   24606 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   24607   as_dirname=dirname
   24608 else
   24609   as_dirname=false
   24610 fi
   24611 
   24612 as_me=`$as_basename -- "$0" ||
   24613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   24614 	 X"$0" : 'X\(//\)$' \| \
   24615 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   24616 $as_echo X/"$0" |
   24617     sed '/^.*\/\([^/][^/]*\)\/*$/{
   24618 	    s//\1/
   24619 	    q
   24620 	  }
   24621 	  /^X\/\(\/\/\)$/{
   24622 	    s//\1/
   24623 	    q
   24624 	  }
   24625 	  /^X\/\(\/\).*/{
   24626 	    s//\1/
   24627 	    q
   24628 	  }
   24629 	  s/.*/./; q'`
   24630 
   24631 # Avoid depending upon Character Ranges.
   24632 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   24633 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   24634 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   24635 as_cr_digits='0123456789'
   24636 as_cr_alnum=$as_cr_Letters$as_cr_digits
   24637 
   24638 ECHO_C= ECHO_N= ECHO_T=
   24639 case `echo -n x` in #(((((
   24640 -n*)
   24641   case `echo 'xy\c'` in
   24642   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   24643   xy)  ECHO_C='\c';;
   24644   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   24645        ECHO_T='	';;
   24646   esac;;
   24647 *)
   24648   ECHO_N='-n';;
   24649 esac
   24650 
   24651 rm -f conf$$ conf$$.exe conf$$.file
   24652 if test -d conf$$.dir; then
   24653   rm -f conf$$.dir/conf$$.file
   24654 else
   24655   rm -f conf$$.dir
   24656   mkdir conf$$.dir 2>/dev/null
   24657 fi
   24658 if (echo >conf$$.file) 2>/dev/null; then
   24659   if ln -s conf$$.file conf$$ 2>/dev/null; then
   24660     as_ln_s='ln -s'
   24661     # ... but there are two gotchas:
   24662     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   24663     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   24664     # In both cases, we have to default to `cp -pR'.
   24665     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   24666       as_ln_s='cp -pR'
   24667   elif ln conf$$.file conf$$ 2>/dev/null; then
   24668     as_ln_s=ln
   24669   else
   24670     as_ln_s='cp -pR'
   24671   fi
   24672 else
   24673   as_ln_s='cp -pR'
   24674 fi
   24675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   24676 rmdir conf$$.dir 2>/dev/null
   24677 
   24678 
   24679 # as_fn_mkdir_p
   24680 # -------------
   24681 # Create "$as_dir" as a directory, including parents if necessary.
   24682 as_fn_mkdir_p ()
   24683 {
   24684 
   24685   case $as_dir in #(
   24686   -*) as_dir=./$as_dir;;
   24687   esac
   24688   test -d "$as_dir" || eval $as_mkdir_p || {
   24689     as_dirs=
   24690     while :; do
   24691       case $as_dir in #(
   24692       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   24693       *) as_qdir=$as_dir;;
   24694       esac
   24695       as_dirs="'$as_qdir' $as_dirs"
   24696       as_dir=`$as_dirname -- "$as_dir" ||
   24697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   24698 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   24699 	 X"$as_dir" : 'X\(//\)$' \| \
   24700 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   24701 $as_echo X"$as_dir" |
   24702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   24703 	    s//\1/
   24704 	    q
   24705 	  }
   24706 	  /^X\(\/\/\)[^/].*/{
   24707 	    s//\1/
   24708 	    q
   24709 	  }
   24710 	  /^X\(\/\/\)$/{
   24711 	    s//\1/
   24712 	    q
   24713 	  }
   24714 	  /^X\(\/\).*/{
   24715 	    s//\1/
   24716 	    q
   24717 	  }
   24718 	  s/.*/./; q'`
   24719       test -d "$as_dir" && break
   24720     done
   24721     test -z "$as_dirs" || eval "mkdir $as_dirs"
   24722   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   24723 
   24724 
   24725 } # as_fn_mkdir_p
   24726 if mkdir -p . 2>/dev/null; then
   24727   as_mkdir_p='mkdir -p "$as_dir"'
   24728 else
   24729   test -d ./-p && rmdir ./-p
   24730   as_mkdir_p=false
   24731 fi
   24732 
   24733 
   24734 # as_fn_executable_p FILE
   24735 # -----------------------
   24736 # Test if FILE is an executable regular file.
   24737 as_fn_executable_p ()
   24738 {
   24739   test -f "$1" && test -x "$1"
   24740 } # as_fn_executable_p
   24741 as_test_x='test -x'
   24742 as_executable_p=as_fn_executable_p
   24743 
   24744 # Sed expression to map a string onto a valid CPP name.
   24745 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   24746 
   24747 # Sed expression to map a string onto a valid variable name.
   24748 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   24749 
   24750 
   24751 exec 6>&1
   24752 ## ----------------------------------- ##
   24753 ## Main body of $CONFIG_STATUS script. ##
   24754 ## ----------------------------------- ##
   24755 _ASEOF
   24756 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   24757 
   24758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24759 # Save the log message, to keep $0 and so on meaningful, and to
   24760 # report actual input values of CONFIG_FILES etc. instead of their
   24761 # values after options handling.
   24762 ac_log="
   24763 This file was extended by BIND $as_me 9.16, which was
   24764 generated by GNU Autoconf 2.69.  Invocation command line was
   24765 
   24766   CONFIG_FILES    = $CONFIG_FILES
   24767   CONFIG_HEADERS  = $CONFIG_HEADERS
   24768   CONFIG_LINKS    = $CONFIG_LINKS
   24769   CONFIG_COMMANDS = $CONFIG_COMMANDS
   24770   $ $0 $@
   24771 
   24772 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   24773 "
   24774 
   24775 _ACEOF
   24776 
   24777 case $ac_config_files in *"
   24778 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   24779 esac
   24780 
   24781 case $ac_config_headers in *"
   24782 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   24783 esac
   24784 
   24785 
   24786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24787 # Files that config.status was made for.
   24788 config_files="$ac_config_files"
   24789 config_headers="$ac_config_headers"
   24790 config_commands="$ac_config_commands"
   24791 
   24792 _ACEOF
   24793 
   24794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24795 ac_cs_usage="\
   24796 \`$as_me' instantiates files and other configuration actions
   24797 from templates according to the current configuration.  Unless the files
   24798 and actions are specified as TAGs, all are instantiated by default.
   24799 
   24800 Usage: $0 [OPTION]... [TAG]...
   24801 
   24802   -h, --help       print this help, then exit
   24803   -V, --version    print version number and configuration settings, then exit
   24804       --config     print configuration, then exit
   24805   -q, --quiet, --silent
   24806                    do not print progress messages
   24807   -d, --debug      don't remove temporary files
   24808       --recheck    update $as_me by reconfiguring in the same conditions
   24809       --file=FILE[:TEMPLATE]
   24810                    instantiate the configuration file FILE
   24811       --header=FILE[:TEMPLATE]
   24812                    instantiate the configuration header FILE
   24813 
   24814 Configuration files:
   24815 $config_files
   24816 
   24817 Configuration headers:
   24818 $config_headers
   24819 
   24820 Configuration commands:
   24821 $config_commands
   24822 
   24823 Report bugs to <https://gitlab.isc.org/isc-projects/bind9/-/issues/new?issuable_template=Bug>.
   24824 BIND home page: <https://www.isc.org/downloads/>."
   24825 
   24826 _ACEOF
   24827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24828 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   24829 ac_cs_version="\\
   24830 BIND config.status 9.16
   24831 configured by $0, generated by GNU Autoconf 2.69,
   24832   with options \\"\$ac_cs_config\\"
   24833 
   24834 Copyright (C) 2012 Free Software Foundation, Inc.
   24835 This config.status script is free software; the Free Software Foundation
   24836 gives unlimited permission to copy, distribute and modify it."
   24837 
   24838 ac_pwd='$ac_pwd'
   24839 srcdir='$srcdir'
   24840 INSTALL='$INSTALL'
   24841 MKDIR_P='$MKDIR_P'
   24842 AWK='$AWK'
   24843 test -n "\$AWK" || AWK=awk
   24844 _ACEOF
   24845 
   24846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24847 # The default lists apply if the user does not specify any file.
   24848 ac_need_defaults=:
   24849 while test $# != 0
   24850 do
   24851   case $1 in
   24852   --*=?*)
   24853     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24854     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   24855     ac_shift=:
   24856     ;;
   24857   --*=)
   24858     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24859     ac_optarg=
   24860     ac_shift=:
   24861     ;;
   24862   *)
   24863     ac_option=$1
   24864     ac_optarg=$2
   24865     ac_shift=shift
   24866     ;;
   24867   esac
   24868 
   24869   case $ac_option in
   24870   # Handling of the options.
   24871   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   24872     ac_cs_recheck=: ;;
   24873   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   24874     $as_echo "$ac_cs_version"; exit ;;
   24875   --config | --confi | --conf | --con | --co | --c )
   24876     $as_echo "$ac_cs_config"; exit ;;
   24877   --debug | --debu | --deb | --de | --d | -d )
   24878     debug=: ;;
   24879   --file | --fil | --fi | --f )
   24880     $ac_shift
   24881     case $ac_optarg in
   24882     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24883     '') as_fn_error $? "missing file argument" ;;
   24884     esac
   24885     as_fn_append CONFIG_FILES " '$ac_optarg'"
   24886     ac_need_defaults=false;;
   24887   --header | --heade | --head | --hea )
   24888     $ac_shift
   24889     case $ac_optarg in
   24890     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24891     esac
   24892     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   24893     ac_need_defaults=false;;
   24894   --he | --h)
   24895     # Conflict between --help and --header
   24896     as_fn_error $? "ambiguous option: \`$1'
   24897 Try \`$0 --help' for more information.";;
   24898   --help | --hel | -h )
   24899     $as_echo "$ac_cs_usage"; exit ;;
   24900   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   24901   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   24902     ac_cs_silent=: ;;
   24903 
   24904   # This is an error.
   24905   -*) as_fn_error $? "unrecognized option: \`$1'
   24906 Try \`$0 --help' for more information." ;;
   24907 
   24908   *) as_fn_append ac_config_targets " $1"
   24909      ac_need_defaults=false ;;
   24910 
   24911   esac
   24912   shift
   24913 done
   24914 
   24915 ac_configure_extra_args=
   24916 
   24917 if $ac_cs_silent; then
   24918   exec 6>/dev/null
   24919   ac_configure_extra_args="$ac_configure_extra_args --silent"
   24920 fi
   24921 
   24922 _ACEOF
   24923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24924 if \$ac_cs_recheck; then
   24925   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   24926   shift
   24927   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   24928   CONFIG_SHELL='$SHELL'
   24929   export CONFIG_SHELL
   24930   exec "\$@"
   24931 fi
   24932 
   24933 _ACEOF
   24934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24935 exec 5>>config.log
   24936 {
   24937   echo
   24938   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   24939 ## Running $as_me. ##
   24940 _ASBOX
   24941   $as_echo "$ac_log"
   24942 } >&5
   24943 
   24944 _ACEOF
   24945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24946 #
   24947 # INIT-COMMANDS
   24948 #
   24949 
   24950 
   24951 # The HP-UX ksh and POSIX shell print the target directory to stdout
   24952 # if CDPATH is set.
   24953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24954 
   24955 sed_quote_subst='$sed_quote_subst'
   24956 double_quote_subst='$double_quote_subst'
   24957 delay_variable_subst='$delay_variable_subst'
   24958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   24959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   24960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   24961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   24962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   24963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   24964 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   24965 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   24966 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   24967 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   24968 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   24969 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   24970 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   24971 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   24972 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   24973 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   24974 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   24975 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   24976 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   24977 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   24978 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   24979 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   24980 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   24981 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   24982 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   24983 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   24984 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   24985 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   24986 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   24987 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   24988 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   24989 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   24990 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   24991 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   24992 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   24993 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   24994 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   24995 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   24996 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   24997 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   24998 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   24999 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   25000 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   25001 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   25002 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   25003 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   25004 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   25005 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   25006 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   25007 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   25008 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   25009 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   25010 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   25011 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   25012 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   25013 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   25014 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   25015 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   25016 lt_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"`'
   25017 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   25018 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   25019 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   25020 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   25021 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   25022 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   25023 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   25024 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   25025 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   25026 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   25027 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   25028 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   25029 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   25030 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   25031 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   25032 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   25033 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   25034 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   25035 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   25036 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   25037 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   25038 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   25039 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   25040 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   25041 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   25042 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   25043 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   25044 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   25045 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   25046 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   25047 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   25048 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   25049 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   25050 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   25051 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   25052 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   25053 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   25054 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   25055 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   25056 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   25057 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   25058 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   25059 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   25060 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   25061 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   25062 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   25063 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   25064 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   25065 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   25066 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   25067 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   25068 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   25069 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   25070 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   25071 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   25072 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   25073 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   25074 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   25075 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   25076 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   25077 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   25078 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   25079 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   25080 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   25081 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   25082 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   25083 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   25084 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   25085 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   25086 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   25087 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   25088 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   25089 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   25090 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   25091 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   25092 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   25093 
   25094 LTCC='$LTCC'
   25095 LTCFLAGS='$LTCFLAGS'
   25096 compiler='$compiler_DEFAULT'
   25097 
   25098 # A function that is used when there is no print builtin or printf.
   25099 func_fallback_echo ()
   25100 {
   25101   eval 'cat <<_LTECHO_EOF
   25102 \$1
   25103 _LTECHO_EOF'
   25104 }
   25105 
   25106 # Quote evaled strings.
   25107 for var in SHELL \
   25108 ECHO \
   25109 PATH_SEPARATOR \
   25110 SED \
   25111 GREP \
   25112 EGREP \
   25113 FGREP \
   25114 LD \
   25115 NM \
   25116 LN_S \
   25117 lt_SP2NL \
   25118 lt_NL2SP \
   25119 reload_flag \
   25120 OBJDUMP \
   25121 deplibs_check_method \
   25122 file_magic_cmd \
   25123 file_magic_glob \
   25124 want_nocaseglob \
   25125 DLLTOOL \
   25126 sharedlib_from_linklib_cmd \
   25127 AR \
   25128 AR_FLAGS \
   25129 archiver_list_spec \
   25130 STRIP \
   25131 RANLIB \
   25132 CC \
   25133 CFLAGS \
   25134 compiler \
   25135 lt_cv_sys_global_symbol_pipe \
   25136 lt_cv_sys_global_symbol_to_cdecl \
   25137 lt_cv_sys_global_symbol_to_import \
   25138 lt_cv_sys_global_symbol_to_c_name_address \
   25139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   25140 lt_cv_nm_interface \
   25141 nm_file_list_spec \
   25142 lt_cv_truncate_bin \
   25143 lt_prog_compiler_no_builtin_flag \
   25144 lt_prog_compiler_pic \
   25145 lt_prog_compiler_wl \
   25146 lt_prog_compiler_static \
   25147 lt_cv_prog_compiler_c_o \
   25148 need_locks \
   25149 MANIFEST_TOOL \
   25150 DSYMUTIL \
   25151 NMEDIT \
   25152 LIPO \
   25153 OTOOL \
   25154 OTOOL64 \
   25155 shrext_cmds \
   25156 export_dynamic_flag_spec \
   25157 whole_archive_flag_spec \
   25158 compiler_needs_object \
   25159 with_gnu_ld \
   25160 allow_undefined_flag \
   25161 no_undefined_flag \
   25162 hardcode_libdir_flag_spec \
   25163 hardcode_libdir_separator \
   25164 exclude_expsyms \
   25165 include_expsyms \
   25166 file_list_spec \
   25167 variables_saved_for_relink \
   25168 libname_spec \
   25169 library_names_spec \
   25170 soname_spec \
   25171 install_override_mode \
   25172 finish_eval \
   25173 old_striplib \
   25174 striplib; do
   25175     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   25176     *[\\\\\\\`\\"\\\$]*)
   25177       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   25178       ;;
   25179     *)
   25180       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   25181       ;;
   25182     esac
   25183 done
   25184 
   25185 # Double-quote double-evaled strings.
   25186 for var in reload_cmds \
   25187 old_postinstall_cmds \
   25188 old_postuninstall_cmds \
   25189 old_archive_cmds \
   25190 extract_expsyms_cmds \
   25191 old_archive_from_new_cmds \
   25192 old_archive_from_expsyms_cmds \
   25193 archive_cmds \
   25194 archive_expsym_cmds \
   25195 module_cmds \
   25196 module_expsym_cmds \
   25197 export_symbols_cmds \
   25198 prelink_cmds \
   25199 postlink_cmds \
   25200 postinstall_cmds \
   25201 postuninstall_cmds \
   25202 finish_cmds \
   25203 sys_lib_search_path_spec \
   25204 configure_time_dlsearch_path \
   25205 configure_time_lt_sys_library_path; do
   25206     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   25207     *[\\\\\\\`\\"\\\$]*)
   25208       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   25209       ;;
   25210     *)
   25211       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   25212       ;;
   25213     esac
   25214 done
   25215 
   25216 ac_aux_dir='$ac_aux_dir'
   25217 
   25218 # See if we are running on zsh, and set the options that allow our
   25219 # commands through without removal of \ escapes INIT.
   25220 if test -n "\${ZSH_VERSION+set}"; then
   25221    setopt NO_GLOB_SUBST
   25222 fi
   25223 
   25224 
   25225     PACKAGE='$PACKAGE'
   25226     VERSION='$VERSION'
   25227     RM='$RM'
   25228     ofile='$ofile'
   25229 
   25230 
   25231 
   25232 
   25233 _ACEOF
   25234 
   25235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25236 
   25237 # Handling of arguments.
   25238 for ac_config_target in $ac_config_targets
   25239 do
   25240   case $ac_config_target in
   25241     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   25242     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   25243     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   25244     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   25245     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   25246     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   25247     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   25248     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   25249     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   25250     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   25251     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   25252     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   25253     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   25254     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   25255     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   25256     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   25257     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   25258     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   25259     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   25260     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   25261     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   25262     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   25263     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   25264     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   25265     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   25266     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   25267     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   25268     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   25269     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   25270     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   25271     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   25272     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   25273     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   25274     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   25275     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   25276     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   25277     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   25278     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   25279     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   25280     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   25281     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   25282     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   25283     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   25284     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   25285     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   25286     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   25287     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   25288     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   25289     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   25290     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   25291     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   25292     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   25293     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   25294     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   25295     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   25296     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   25297     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   25298     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   25299     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   25300     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   25301     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   25302     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   25303     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   25304     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   25305     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   25306     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   25307     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   25308     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   25309     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
   25310     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   25311     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   25312     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   25313     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   25314     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   25315     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   25316     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   25317     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   25318     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   25319     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   25320     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   25321     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   25322     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   25323     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   25324     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   25325     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   25326     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   25327     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   25328     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   25329     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   25330     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   25331     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   25332     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   25333     "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
   25334     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   25335     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   25336     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   25337     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   25338     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   25339     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   25340     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   25341     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   25342     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   25343     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   25344     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   25345     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   25346     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   25347     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   25348     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   25349     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   25350     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   25351     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   25352     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   25353     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   25354     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   25355     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   25356     "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
   25357 
   25358   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   25359   esac
   25360 done
   25361 
   25362 
   25363 # If the user did not use the arguments to specify the items to instantiate,
   25364 # then the envvar interface is used.  Set only those that are not.
   25365 # We use the long form for the default assignment because of an extremely
   25366 # bizarre bug on SunOS 4.1.3.
   25367 if $ac_need_defaults; then
   25368   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   25369   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   25370   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   25371 fi
   25372 
   25373 # Have a temporary directory for convenience.  Make it in the build tree
   25374 # simply because there is no reason against having it here, and in addition,
   25375 # creating and moving files from /tmp can sometimes cause problems.
   25376 # Hook for its removal unless debugging.
   25377 # Note that there is a small window in which the directory will not be cleaned:
   25378 # after its creation but before its name has been assigned to `$tmp'.
   25379 $debug ||
   25380 {
   25381   tmp= ac_tmp=
   25382   trap 'exit_status=$?
   25383   : "${ac_tmp:=$tmp}"
   25384   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   25385 ' 0
   25386   trap 'as_fn_exit 1' 1 2 13 15
   25387 }
   25388 # Create a (secure) tmp directory for tmp files.
   25389 
   25390 {
   25391   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   25392   test -d "$tmp"
   25393 }  ||
   25394 {
   25395   tmp=./conf$$-$RANDOM
   25396   (umask 077 && mkdir "$tmp")
   25397 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   25398 ac_tmp=$tmp
   25399 
   25400 # Set up the scripts for CONFIG_FILES section.
   25401 # No need to generate them if there are no CONFIG_FILES.
   25402 # This happens for instance with `./config.status config.h'.
   25403 if test -n "$CONFIG_FILES"; then
   25404 
   25405 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   25406   ac_cs_awk_getline=:
   25407   ac_cs_awk_pipe_init=
   25408   ac_cs_awk_read_file='
   25409       while ((getline aline < (F[key])) > 0)
   25410 	print(aline)
   25411       close(F[key])'
   25412   ac_cs_awk_pipe_fini=
   25413 else
   25414   ac_cs_awk_getline=false
   25415   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   25416   ac_cs_awk_read_file='
   25417       print "|#_!!_#|"
   25418       print "cat " F[key] " &&"
   25419       '$ac_cs_awk_pipe_init
   25420   # The final `:' finishes the AND list.
   25421   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   25422 fi
   25423 ac_cr=`echo X | tr X '\015'`
   25424 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   25425 # But we know of no other shell where ac_cr would be empty at this
   25426 # point, so we can use a bashism as a fallback.
   25427 if test "x$ac_cr" = x; then
   25428   eval ac_cr=\$\'\\r\'
   25429 fi
   25430 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   25431 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   25432   ac_cs_awk_cr='\\r'
   25433 else
   25434   ac_cs_awk_cr=$ac_cr
   25435 fi
   25436 
   25437 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   25438 _ACEOF
   25439 
   25440 # Create commands to substitute file output variables.
   25441 {
   25442   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   25443   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   25444   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   25445   echo "_ACAWK" &&
   25446   echo "_ACEOF"
   25447 } >conf$$files.sh &&
   25448 . ./conf$$files.sh ||
   25449   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25450 rm -f conf$$files.sh
   25451 
   25452 {
   25453   echo "cat >conf$$subs.awk <<_ACEOF" &&
   25454   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   25455   echo "_ACEOF"
   25456 } >conf$$subs.sh ||
   25457   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   25459 ac_delim='%!_!# '
   25460 for ac_last_try in false false false false false :; do
   25461   . ./conf$$subs.sh ||
   25462     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25463 
   25464   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   25465   if test $ac_delim_n = $ac_delim_num; then
   25466     break
   25467   elif $ac_last_try; then
   25468     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25469   else
   25470     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25471   fi
   25472 done
   25473 rm -f conf$$subs.sh
   25474 
   25475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25476 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   25477 _ACEOF
   25478 sed -n '
   25479 h
   25480 s/^/S["/; s/!.*/"]=/
   25481 p
   25482 g
   25483 s/^[^!]*!//
   25484 :repl
   25485 t repl
   25486 s/'"$ac_delim"'$//
   25487 t delim
   25488 :nl
   25489 h
   25490 s/\(.\{148\}\)..*/\1/
   25491 t more1
   25492 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   25493 p
   25494 n
   25495 b repl
   25496 :more1
   25497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25498 p
   25499 g
   25500 s/.\{148\}//
   25501 t nl
   25502 :delim
   25503 h
   25504 s/\(.\{148\}\)..*/\1/
   25505 t more2
   25506 s/["\\]/\\&/g; s/^/"/; s/$/"/
   25507 p
   25508 b
   25509 :more2
   25510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25511 p
   25512 g
   25513 s/.\{148\}//
   25514 t delim
   25515 ' <conf$$subs.awk | sed '
   25516 /^[^""]/{
   25517   N
   25518   s/\n//
   25519 }
   25520 ' >>$CONFIG_STATUS || ac_write_fail=1
   25521 rm -f conf$$subs.awk
   25522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25523 _ACAWK
   25524 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   25525   for (key in S) S_is_set[key] = 1
   25526   FS = ""
   25527   \$ac_cs_awk_pipe_init
   25528 }
   25529 {
   25530   line = $ 0
   25531   nfields = split(line, field, "@")
   25532   substed = 0
   25533   len = length(field[1])
   25534   for (i = 2; i < nfields; i++) {
   25535     key = field[i]
   25536     keylen = length(key)
   25537     if (S_is_set[key]) {
   25538       value = S[key]
   25539       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   25540       len += length(value) + length(field[++i])
   25541       substed = 1
   25542     } else
   25543       len += 1 + keylen
   25544   }
   25545   if (nfields == 3 && !substed) {
   25546     key = field[2]
   25547     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   25548       \$ac_cs_awk_read_file
   25549       next
   25550     }
   25551   }
   25552   print line
   25553 }
   25554 \$ac_cs_awk_pipe_fini
   25555 _ACAWK
   25556 _ACEOF
   25557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25558 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   25559   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   25560 else
   25561   cat
   25562 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   25563   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   25564 _ACEOF
   25565 
   25566 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   25567 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   25568 # trailing colons and then remove the whole line if VPATH becomes empty
   25569 # (actually we leave an empty line to preserve line numbers).
   25570 if test "x$srcdir" = x.; then
   25571   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   25572 h
   25573 s///
   25574 s/^/:/
   25575 s/[	 ]*$/:/
   25576 s/:\$(srcdir):/:/g
   25577 s/:\${srcdir}:/:/g
   25578 s/:@srcdir@:/:/g
   25579 s/^:*//
   25580 s/:*$//
   25581 x
   25582 s/\(=[	 ]*\).*/\1/
   25583 G
   25584 s/\n//
   25585 s/^[^=]*=[	 ]*$//
   25586 }'
   25587 fi
   25588 
   25589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25590 fi # test -n "$CONFIG_FILES"
   25591 
   25592 # Set up the scripts for CONFIG_HEADERS section.
   25593 # No need to generate them if there are no CONFIG_HEADERS.
   25594 # This happens for instance with `./config.status Makefile'.
   25595 if test -n "$CONFIG_HEADERS"; then
   25596 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   25597 BEGIN {
   25598 _ACEOF
   25599 
   25600 # Transform confdefs.h into an awk script `defines.awk', embedded as
   25601 # here-document in config.status, that substitutes the proper values into
   25602 # config.h.in to produce config.h.
   25603 
   25604 # Create a delimiter string that does not exist in confdefs.h, to ease
   25605 # handling of long lines.
   25606 ac_delim='%!_!# '
   25607 for ac_last_try in false false :; do
   25608   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   25609   if test -z "$ac_tt"; then
   25610     break
   25611   elif $ac_last_try; then
   25612     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   25613   else
   25614     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25615   fi
   25616 done
   25617 
   25618 # For the awk script, D is an array of macro values keyed by name,
   25619 # likewise P contains macro parameters if any.  Preserve backslash
   25620 # newline sequences.
   25621 
   25622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   25623 sed -n '
   25624 s/.\{148\}/&'"$ac_delim"'/g
   25625 t rset
   25626 :rset
   25627 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   25628 t def
   25629 d
   25630 :def
   25631 s/\\$//
   25632 t bsnl
   25633 s/["\\]/\\&/g
   25634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25635 D["\1"]=" \3"/p
   25636 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   25637 d
   25638 :bsnl
   25639 s/["\\]/\\&/g
   25640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25641 D["\1"]=" \3\\\\\\n"\\/p
   25642 t cont
   25643 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   25644 t cont
   25645 d
   25646 :cont
   25647 n
   25648 s/.\{148\}/&'"$ac_delim"'/g
   25649 t clear
   25650 :clear
   25651 s/\\$//
   25652 t bsnlc
   25653 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   25654 d
   25655 :bsnlc
   25656 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   25657 b cont
   25658 ' <confdefs.h | sed '
   25659 s/'"$ac_delim"'/"\\\
   25660 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   25661 
   25662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25663   for (key in D) D_is_set[key] = 1
   25664   FS = ""
   25665 }
   25666 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   25667   line = \$ 0
   25668   split(line, arg, " ")
   25669   if (arg[1] == "#") {
   25670     defundef = arg[2]
   25671     mac1 = arg[3]
   25672   } else {
   25673     defundef = substr(arg[1], 2)
   25674     mac1 = arg[2]
   25675   }
   25676   split(mac1, mac2, "(") #)
   25677   macro = mac2[1]
   25678   prefix = substr(line, 1, index(line, defundef) - 1)
   25679   if (D_is_set[macro]) {
   25680     # Preserve the white space surrounding the "#".
   25681     print prefix "define", macro P[macro] D[macro]
   25682     next
   25683   } else {
   25684     # Replace #undef with comments.  This is necessary, for example,
   25685     # in the case of _POSIX_SOURCE, which is predefined and required
   25686     # on some systems where configure will not decide to define it.
   25687     if (defundef == "undef") {
   25688       print "/*", prefix defundef, macro, "*/"
   25689       next
   25690     }
   25691   }
   25692 }
   25693 { print }
   25694 _ACAWK
   25695 _ACEOF
   25696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25697   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   25698 fi # test -n "$CONFIG_HEADERS"
   25699 
   25700 
   25701 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   25702 shift
   25703 for ac_tag
   25704 do
   25705   case $ac_tag in
   25706   :[FHLC]) ac_mode=$ac_tag; continue;;
   25707   esac
   25708   case $ac_mode$ac_tag in
   25709   :[FHL]*:*);;
   25710   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   25711   :[FH]-) ac_tag=-:-;;
   25712   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   25713   esac
   25714   ac_save_IFS=$IFS
   25715   IFS=:
   25716   set x $ac_tag
   25717   IFS=$ac_save_IFS
   25718   shift
   25719   ac_file=$1
   25720   shift
   25721 
   25722   case $ac_mode in
   25723   :L) ac_source=$1;;
   25724   :[FH])
   25725     ac_file_inputs=
   25726     for ac_f
   25727     do
   25728       case $ac_f in
   25729       -) ac_f="$ac_tmp/stdin";;
   25730       *) # Look for the file first in the build tree, then in the source tree
   25731 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   25732 	 # because $ac_f cannot contain `:'.
   25733 	 test -f "$ac_f" ||
   25734 	   case $ac_f in
   25735 	   [\\/$]*) false;;
   25736 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   25737 	   esac ||
   25738 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   25739       esac
   25740       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   25741       as_fn_append ac_file_inputs " '$ac_f'"
   25742     done
   25743 
   25744     # Let's still pretend it is `configure' which instantiates (i.e., don't
   25745     # use $as_me), people would be surprised to read:
   25746     #    /* config.h.  Generated by config.status.  */
   25747     configure_input='Generated from '`
   25748 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   25749 	`' by configure.'
   25750     if test x"$ac_file" != x-; then
   25751       configure_input="$ac_file.  $configure_input"
   25752       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   25753 $as_echo "$as_me: creating $ac_file" >&6;}
   25754     fi
   25755     # Neutralize special characters interpreted by sed in replacement strings.
   25756     case $configure_input in #(
   25757     *\&* | *\|* | *\\* )
   25758        ac_sed_conf_input=`$as_echo "$configure_input" |
   25759        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   25760     *) ac_sed_conf_input=$configure_input;;
   25761     esac
   25762 
   25763     case $ac_tag in
   25764     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   25765       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   25766     esac
   25767     ;;
   25768   esac
   25769 
   25770   ac_dir=`$as_dirname -- "$ac_file" ||
   25771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25772 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   25773 	 X"$ac_file" : 'X\(//\)$' \| \
   25774 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   25775 $as_echo X"$ac_file" |
   25776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   25777 	    s//\1/
   25778 	    q
   25779 	  }
   25780 	  /^X\(\/\/\)[^/].*/{
   25781 	    s//\1/
   25782 	    q
   25783 	  }
   25784 	  /^X\(\/\/\)$/{
   25785 	    s//\1/
   25786 	    q
   25787 	  }
   25788 	  /^X\(\/\).*/{
   25789 	    s//\1/
   25790 	    q
   25791 	  }
   25792 	  s/.*/./; q'`
   25793   as_dir="$ac_dir"; as_fn_mkdir_p
   25794   ac_builddir=.
   25795 
   25796 case "$ac_dir" in
   25797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25798 *)
   25799   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   25800   # A ".." for each directory in $ac_dir_suffix.
   25801   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   25802   case $ac_top_builddir_sub in
   25803   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25804   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   25805   esac ;;
   25806 esac
   25807 ac_abs_top_builddir=$ac_pwd
   25808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   25809 # for backward compatibility:
   25810 ac_top_builddir=$ac_top_build_prefix
   25811 
   25812 case $srcdir in
   25813   .)  # We are building in place.
   25814     ac_srcdir=.
   25815     ac_top_srcdir=$ac_top_builddir_sub
   25816     ac_abs_top_srcdir=$ac_pwd ;;
   25817   [\\/]* | ?:[\\/]* )  # Absolute name.
   25818     ac_srcdir=$srcdir$ac_dir_suffix;
   25819     ac_top_srcdir=$srcdir
   25820     ac_abs_top_srcdir=$srcdir ;;
   25821   *) # Relative name.
   25822     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   25823     ac_top_srcdir=$ac_top_build_prefix$srcdir
   25824     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   25825 esac
   25826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   25827 
   25828 
   25829   case $ac_mode in
   25830   :F)
   25831   #
   25832   # CONFIG_FILE
   25833   #
   25834 
   25835   case $INSTALL in
   25836   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   25837   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   25838   esac
   25839   ac_MKDIR_P=$MKDIR_P
   25840   case $MKDIR_P in
   25841   [\\/$]* | ?:[\\/]* ) ;;
   25842   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   25843   esac
   25844 _ACEOF
   25845 
   25846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25847 # If the template does not know about datarootdir, expand it.
   25848 # FIXME: This hack should be removed a few years after 2.60.
   25849 ac_datarootdir_hack=; ac_datarootdir_seen=
   25850 ac_sed_dataroot='
   25851 /datarootdir/ {
   25852   p
   25853   q
   25854 }
   25855 /@datadir@/p
   25856 /@docdir@/p
   25857 /@infodir@/p
   25858 /@localedir@/p
   25859 /@mandir@/p'
   25860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   25861 *datarootdir*) ac_datarootdir_seen=yes;;
   25862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   25863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   25864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   25865 _ACEOF
   25866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25867   ac_datarootdir_hack='
   25868   s&@datadir@&$datadir&g
   25869   s&@docdir@&$docdir&g
   25870   s&@infodir@&$infodir&g
   25871   s&@localedir@&$localedir&g
   25872   s&@mandir@&$mandir&g
   25873   s&\\\${datarootdir}&$datarootdir&g' ;;
   25874 esac
   25875 _ACEOF
   25876 
   25877 # Neutralize VPATH when `$srcdir' = `.'.
   25878 # Shell code in configure.ac might set extrasub.
   25879 # FIXME: do we really want to maintain this feature?
   25880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25881 ac_sed_extra="$ac_vpsub
   25882 $extrasub
   25883 _ACEOF
   25884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25885 :t
   25886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   25887 s|@configure_input@|$ac_sed_conf_input|;t t
   25888 s&@top_builddir@&$ac_top_builddir_sub&;t t
   25889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   25890 s&@srcdir@&$ac_srcdir&;t t
   25891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   25892 s&@top_srcdir@&$ac_top_srcdir&;t t
   25893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   25894 s&@builddir@&$ac_builddir&;t t
   25895 s&@abs_builddir@&$ac_abs_builddir&;t t
   25896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   25897 s&@INSTALL@&$ac_INSTALL&;t t
   25898 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   25899 $ac_datarootdir_hack
   25900 "
   25901 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   25902 if $ac_cs_awk_getline; then
   25903   $AWK -f "$ac_tmp/subs.awk"
   25904 else
   25905   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   25906 fi \
   25907   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25908 
   25909 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   25910   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   25911   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   25912       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   25913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25914 which seems to be undefined.  Please make sure it is defined" >&5
   25915 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25916 which seems to be undefined.  Please make sure it is defined" >&2;}
   25917 
   25918   rm -f "$ac_tmp/stdin"
   25919   case $ac_file in
   25920   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   25921   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   25922   esac \
   25923   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25924  ;;
   25925   :H)
   25926   #
   25927   # CONFIG_HEADER
   25928   #
   25929   if test x"$ac_file" != x-; then
   25930     {
   25931       $as_echo "/* $configure_input  */" \
   25932       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   25933     } >"$ac_tmp/config.h" \
   25934       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25935     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   25936       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   25937 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   25938     else
   25939       rm -f "$ac_file"
   25940       mv "$ac_tmp/config.h" "$ac_file" \
   25941 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25942     fi
   25943   else
   25944     $as_echo "/* $configure_input  */" \
   25945       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   25946       || as_fn_error $? "could not create -" "$LINENO" 5
   25947   fi
   25948  ;;
   25949 
   25950   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   25951 $as_echo "$as_me: executing $ac_file commands" >&6;}
   25952  ;;
   25953   esac
   25954 
   25955 
   25956   case $ac_file$ac_mode in
   25957     "libtool":C)
   25958 
   25959     # See if we are running on zsh, and set the options that allow our
   25960     # commands through without removal of \ escapes.
   25961     if test -n "${ZSH_VERSION+set}"; then
   25962       setopt NO_GLOB_SUBST
   25963     fi
   25964 
   25965     cfgfile=${ofile}T
   25966     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   25967     $RM "$cfgfile"
   25968 
   25969     cat <<_LT_EOF >> "$cfgfile"
   25970 #! $SHELL
   25971 # Generated automatically by $as_me ($PACKAGE) $VERSION
   25972 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   25973 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   25974 
   25975 # Provide generalized library-building support services.
   25976 # Written by Gordon Matzigkeit, 1996
   25977 
   25978 # Copyright (C) 2014 Free Software Foundation, Inc.
   25979 # This is free software; see the source for copying conditions.  There is NO
   25980 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   25981 
   25982 # GNU Libtool is free software; you can redistribute it and/or modify
   25983 # it under the terms of the GNU General Public License as published by
   25984 # the Free Software Foundation; either version 2 of of the License, or
   25985 # (at your option) any later version.
   25986 #
   25987 # As a special exception to the GNU General Public License, if you
   25988 # distribute this file as part of a program or library that is built
   25989 # using GNU Libtool, you may include this file under the  same
   25990 # distribution terms that you use for the rest of that program.
   25991 #
   25992 # GNU Libtool is distributed in the hope that it will be useful, but
   25993 # WITHOUT ANY WARRANTY; without even the implied warranty of
   25994 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   25995 # GNU General Public License for more details.
   25996 #
   25997 # You should have received a copy of the GNU General Public License
   25998 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   25999 
   26000 
   26001 # The names of the tagged configurations supported by this script.
   26002 available_tags=''
   26003 
   26004 # Configured defaults for sys_lib_dlsearch_path munging.
   26005 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   26006 
   26007 # ### BEGIN LIBTOOL CONFIG
   26008 
   26009 # Which release of libtool.m4 was used?
   26010 macro_version=$macro_version
   26011 macro_revision=$macro_revision
   26012 
   26013 # Whether or not to build shared libraries.
   26014 build_libtool_libs=$enable_shared
   26015 
   26016 # Whether or not to build static libraries.
   26017 build_old_libs=$enable_static
   26018 
   26019 # What type of objects to build.
   26020 pic_mode=$pic_mode
   26021 
   26022 # Whether or not to optimize for fast installation.
   26023 fast_install=$enable_fast_install
   26024 
   26025 # Shared archive member basename,for filename based shared library versioning on AIX.
   26026 shared_archive_member_spec=$shared_archive_member_spec
   26027 
   26028 # Shell to use when invoking shell scripts.
   26029 SHELL=$lt_SHELL
   26030 
   26031 # An echo program that protects backslashes.
   26032 ECHO=$lt_ECHO
   26033 
   26034 # The PATH separator for the build system.
   26035 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   26036 
   26037 # The host system.
   26038 host_alias=$host_alias
   26039 host=$host
   26040 host_os=$host_os
   26041 
   26042 # The build system.
   26043 build_alias=$build_alias
   26044 build=$build
   26045 build_os=$build_os
   26046 
   26047 # A sed program that does not truncate output.
   26048 SED=$lt_SED
   26049 
   26050 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   26051 Xsed="\$SED -e 1s/^X//"
   26052 
   26053 # A grep program that handles long lines.
   26054 GREP=$lt_GREP
   26055 
   26056 # An ERE matcher.
   26057 EGREP=$lt_EGREP
   26058 
   26059 # A literal string matcher.
   26060 FGREP=$lt_FGREP
   26061 
   26062 # A BSD- or MS-compatible name lister.
   26063 NM=$lt_NM
   26064 
   26065 # Whether we need soft or hard links.
   26066 LN_S=$lt_LN_S
   26067 
   26068 # What is the maximum length of a command?
   26069 max_cmd_len=$max_cmd_len
   26070 
   26071 # Object file suffix (normally "o").
   26072 objext=$ac_objext
   26073 
   26074 # Executable file suffix (normally "").
   26075 exeext=$exeext
   26076 
   26077 # whether the shell understands "unset".
   26078 lt_unset=$lt_unset
   26079 
   26080 # turn spaces into newlines.
   26081 SP2NL=$lt_lt_SP2NL
   26082 
   26083 # turn newlines into spaces.
   26084 NL2SP=$lt_lt_NL2SP
   26085 
   26086 # convert \$build file names to \$host format.
   26087 to_host_file_cmd=$lt_cv_to_host_file_cmd
   26088 
   26089 # convert \$build files to toolchain format.
   26090 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   26091 
   26092 # An object symbol dumper.
   26093 OBJDUMP=$lt_OBJDUMP
   26094 
   26095 # Method to check whether dependent libraries are shared objects.
   26096 deplibs_check_method=$lt_deplibs_check_method
   26097 
   26098 # Command to use when deplibs_check_method = "file_magic".
   26099 file_magic_cmd=$lt_file_magic_cmd
   26100 
   26101 # How to find potential files when deplibs_check_method = "file_magic".
   26102 file_magic_glob=$lt_file_magic_glob
   26103 
   26104 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   26105 want_nocaseglob=$lt_want_nocaseglob
   26106 
   26107 # DLL creation program.
   26108 DLLTOOL=$lt_DLLTOOL
   26109 
   26110 # Command to associate shared and link libraries.
   26111 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   26112 
   26113 # The archiver.
   26114 AR=$lt_AR
   26115 
   26116 # Flags to create an archive.
   26117 AR_FLAGS=$lt_AR_FLAGS
   26118 
   26119 # How to feed a file listing to the archiver.
   26120 archiver_list_spec=$lt_archiver_list_spec
   26121 
   26122 # A symbol stripping program.
   26123 STRIP=$lt_STRIP
   26124 
   26125 # Commands used to install an old-style archive.
   26126 RANLIB=$lt_RANLIB
   26127 old_postinstall_cmds=$lt_old_postinstall_cmds
   26128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   26129 
   26130 # Whether to use a lock for old archive extraction.
   26131 lock_old_archive_extraction=$lock_old_archive_extraction
   26132 
   26133 # A C compiler.
   26134 LTCC=$lt_CC
   26135 
   26136 # LTCC compiler flags.
   26137 LTCFLAGS=$lt_CFLAGS
   26138 
   26139 # Take the output of nm and produce a listing of raw symbols and C names.
   26140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   26141 
   26142 # Transform the output of nm in a proper C declaration.
   26143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   26144 
   26145 # Transform the output of nm into a list of symbols to manually relocate.
   26146 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   26147 
   26148 # Transform the output of nm in a C name address pair.
   26149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   26150 
   26151 # Transform the output of nm in a C name address pair when lib prefix is needed.
   26152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   26153 
   26154 # The name lister interface.
   26155 nm_interface=$lt_lt_cv_nm_interface
   26156 
   26157 # Specify filename containing input files for \$NM.
   26158 nm_file_list_spec=$lt_nm_file_list_spec
   26159 
   26160 # The root where to search for dependent libraries,and where our libraries should be installed.
   26161 lt_sysroot=$lt_sysroot
   26162 
   26163 # Command to truncate a binary pipe.
   26164 lt_truncate_bin=$lt_lt_cv_truncate_bin
   26165 
   26166 # The name of the directory that contains temporary libtool files.
   26167 objdir=$objdir
   26168 
   26169 # Used to examine libraries when file_magic_cmd begins with "file".
   26170 MAGIC_CMD=$MAGIC_CMD
   26171 
   26172 # Must we lock files when doing compilation?
   26173 need_locks=$lt_need_locks
   26174 
   26175 # Manifest tool.
   26176 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   26177 
   26178 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   26179 DSYMUTIL=$lt_DSYMUTIL
   26180 
   26181 # Tool to change global to local symbols on Mac OS X.
   26182 NMEDIT=$lt_NMEDIT
   26183 
   26184 # Tool to manipulate fat objects and archives on Mac OS X.
   26185 LIPO=$lt_LIPO
   26186 
   26187 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   26188 OTOOL=$lt_OTOOL
   26189 
   26190 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   26191 OTOOL64=$lt_OTOOL64
   26192 
   26193 # Old archive suffix (normally "a").
   26194 libext=$libext
   26195 
   26196 # Shared library suffix (normally ".so").
   26197 shrext_cmds=$lt_shrext_cmds
   26198 
   26199 # The commands to extract the exported symbol list from a shared archive.
   26200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   26201 
   26202 # Variables whose values should be saved in libtool wrapper scripts and
   26203 # restored at link time.
   26204 variables_saved_for_relink=$lt_variables_saved_for_relink
   26205 
   26206 # Do we need the "lib" prefix for modules?
   26207 need_lib_prefix=$need_lib_prefix
   26208 
   26209 # Do we need a version for libraries?
   26210 need_version=$need_version
   26211 
   26212 # Library versioning type.
   26213 version_type=$version_type
   26214 
   26215 # Shared library runtime path variable.
   26216 runpath_var=$runpath_var
   26217 
   26218 # Shared library path variable.
   26219 shlibpath_var=$shlibpath_var
   26220 
   26221 # Is shlibpath searched before the hard-coded library search path?
   26222 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   26223 
   26224 # Format of library name prefix.
   26225 libname_spec=$lt_libname_spec
   26226 
   26227 # List of archive names.  First name is the real one, the rest are links.
   26228 # The last name is the one that the linker finds with -lNAME
   26229 library_names_spec=$lt_library_names_spec
   26230 
   26231 # The coded name of the library, if different from the real name.
   26232 soname_spec=$lt_soname_spec
   26233 
   26234 # Permission mode override for installation of shared libraries.
   26235 install_override_mode=$lt_install_override_mode
   26236 
   26237 # Command to use after installation of a shared archive.
   26238 postinstall_cmds=$lt_postinstall_cmds
   26239 
   26240 # Command to use after uninstallation of a shared archive.
   26241 postuninstall_cmds=$lt_postuninstall_cmds
   26242 
   26243 # Commands used to finish a libtool library installation in a directory.
   26244 finish_cmds=$lt_finish_cmds
   26245 
   26246 # As "finish_cmds", except a single script fragment to be evaled but
   26247 # not shown.
   26248 finish_eval=$lt_finish_eval
   26249 
   26250 # Whether we should hardcode library paths into libraries.
   26251 hardcode_into_libs=$hardcode_into_libs
   26252 
   26253 # Compile-time system search path for libraries.
   26254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   26255 
   26256 # Detected run-time system search path for libraries.
   26257 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   26258 
   26259 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   26260 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   26261 
   26262 # Whether dlopen is supported.
   26263 dlopen_support=$enable_dlopen
   26264 
   26265 # Whether dlopen of programs is supported.
   26266 dlopen_self=$enable_dlopen_self
   26267 
   26268 # Whether dlopen of statically linked programs is supported.
   26269 dlopen_self_static=$enable_dlopen_self_static
   26270 
   26271 # Commands to strip libraries.
   26272 old_striplib=$lt_old_striplib
   26273 striplib=$lt_striplib
   26274 
   26275 
   26276 # The linker used to build libraries.
   26277 LD=$lt_LD
   26278 
   26279 # How to create reloadable object files.
   26280 reload_flag=$lt_reload_flag
   26281 reload_cmds=$lt_reload_cmds
   26282 
   26283 # Commands used to build an old-style archive.
   26284 old_archive_cmds=$lt_old_archive_cmds
   26285 
   26286 # A language specific compiler.
   26287 CC=$lt_compiler
   26288 
   26289 # Is the compiler the GNU compiler?
   26290 with_gcc=$GCC
   26291 
   26292 # Compiler flag to turn off builtin functions.
   26293 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   26294 
   26295 # Additional compiler flags for building library objects.
   26296 pic_flag=$lt_lt_prog_compiler_pic
   26297 
   26298 # How to pass a linker flag through the compiler.
   26299 wl=$lt_lt_prog_compiler_wl
   26300 
   26301 # Compiler flag to prevent dynamic linking.
   26302 link_static_flag=$lt_lt_prog_compiler_static
   26303 
   26304 # Does compiler simultaneously support -c and -o options?
   26305 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   26306 
   26307 # Whether or not to add -lc for building shared libraries.
   26308 build_libtool_need_lc=$archive_cmds_need_lc
   26309 
   26310 # Whether or not to disallow shared libs when runtime libs are static.
   26311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   26312 
   26313 # Compiler flag to allow reflexive dlopens.
   26314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   26315 
   26316 # Compiler flag to generate shared objects directly from archives.
   26317 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   26318 
   26319 # Whether the compiler copes with passing no objects directly.
   26320 compiler_needs_object=$lt_compiler_needs_object
   26321 
   26322 # Create an old-style archive from a shared archive.
   26323 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   26324 
   26325 # Create a temporary old-style archive to link instead of a shared archive.
   26326 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   26327 
   26328 # Commands used to build a shared archive.
   26329 archive_cmds=$lt_archive_cmds
   26330 archive_expsym_cmds=$lt_archive_expsym_cmds
   26331 
   26332 # Commands used to build a loadable module if different from building
   26333 # a shared archive.
   26334 module_cmds=$lt_module_cmds
   26335 module_expsym_cmds=$lt_module_expsym_cmds
   26336 
   26337 # Whether we are building with GNU ld or not.
   26338 with_gnu_ld=$lt_with_gnu_ld
   26339 
   26340 # Flag that allows shared libraries with undefined symbols to be built.
   26341 allow_undefined_flag=$lt_allow_undefined_flag
   26342 
   26343 # Flag that enforces no undefined symbols.
   26344 no_undefined_flag=$lt_no_undefined_flag
   26345 
   26346 # Flag to hardcode \$libdir into a binary during linking.
   26347 # This must work even if \$libdir does not exist
   26348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   26349 
   26350 # Whether we need a single "-rpath" flag with a separated argument.
   26351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   26352 
   26353 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   26354 # DIR into the resulting binary.
   26355 hardcode_direct=$hardcode_direct
   26356 
   26357 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   26358 # DIR into the resulting binary and the resulting library dependency is
   26359 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   26360 # library is relocated.
   26361 hardcode_direct_absolute=$hardcode_direct_absolute
   26362 
   26363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   26364 # into the resulting binary.
   26365 hardcode_minus_L=$hardcode_minus_L
   26366 
   26367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   26368 # into the resulting binary.
   26369 hardcode_shlibpath_var=$hardcode_shlibpath_var
   26370 
   26371 # Set to "yes" if building a shared library automatically hardcodes DIR
   26372 # into the library and all subsequent libraries and executables linked
   26373 # against it.
   26374 hardcode_automatic=$hardcode_automatic
   26375 
   26376 # Set to yes if linker adds runtime paths of dependent libraries
   26377 # to runtime path list.
   26378 inherit_rpath=$inherit_rpath
   26379 
   26380 # Whether libtool must link a program against all its dependency libraries.
   26381 link_all_deplibs=$link_all_deplibs
   26382 
   26383 # Set to "yes" if exported symbols are required.
   26384 always_export_symbols=$always_export_symbols
   26385 
   26386 # The commands to list exported symbols.
   26387 export_symbols_cmds=$lt_export_symbols_cmds
   26388 
   26389 # Symbols that should not be listed in the preloaded symbols.
   26390 exclude_expsyms=$lt_exclude_expsyms
   26391 
   26392 # Symbols that must always be exported.
   26393 include_expsyms=$lt_include_expsyms
   26394 
   26395 # Commands necessary for linking programs (against libraries) with templates.
   26396 prelink_cmds=$lt_prelink_cmds
   26397 
   26398 # Commands necessary for finishing linking programs.
   26399 postlink_cmds=$lt_postlink_cmds
   26400 
   26401 # Specify filename containing input files.
   26402 file_list_spec=$lt_file_list_spec
   26403 
   26404 # How to hardcode a shared library path into an executable.
   26405 hardcode_action=$hardcode_action
   26406 
   26407 # ### END LIBTOOL CONFIG
   26408 
   26409 _LT_EOF
   26410 
   26411     cat <<'_LT_EOF' >> "$cfgfile"
   26412 
   26413 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   26414 
   26415 # func_munge_path_list VARIABLE PATH
   26416 # -----------------------------------
   26417 # VARIABLE is name of variable containing _space_ separated list of
   26418 # directories to be munged by the contents of PATH, which is string
   26419 # having a format:
   26420 # "DIR[:DIR]:"
   26421 #       string "DIR[ DIR]" will be prepended to VARIABLE
   26422 # ":DIR[:DIR]"
   26423 #       string "DIR[ DIR]" will be appended to VARIABLE
   26424 # "DIRP[:DIRP]::[DIRA:]DIRA"
   26425 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   26426 #       "DIRA[ DIRA]" will be appended to VARIABLE
   26427 # "DIR[:DIR]"
   26428 #       VARIABLE will be replaced by "DIR[ DIR]"
   26429 func_munge_path_list ()
   26430 {
   26431     case x$2 in
   26432     x)
   26433         ;;
   26434     *:)
   26435         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   26436         ;;
   26437     x:*)
   26438         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   26439         ;;
   26440     *::*)
   26441         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   26442         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   26443         ;;
   26444     *)
   26445         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   26446         ;;
   26447     esac
   26448 }
   26449 
   26450 
   26451 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   26452 func_cc_basename ()
   26453 {
   26454     for cc_temp in $*""; do
   26455       case $cc_temp in
   26456         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   26457         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   26458         \-*) ;;
   26459         *) break;;
   26460       esac
   26461     done
   26462     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   26463 }
   26464 
   26465 
   26466 # ### END FUNCTIONS SHARED WITH CONFIGURE
   26467 
   26468 _LT_EOF
   26469 
   26470   case $host_os in
   26471   aix3*)
   26472     cat <<\_LT_EOF >> "$cfgfile"
   26473 # AIX sometimes has problems with the GCC collect2 program.  For some
   26474 # reason, if we set the COLLECT_NAMES environment variable, the problems
   26475 # vanish in a puff of smoke.
   26476 if test set != "${COLLECT_NAMES+set}"; then
   26477   COLLECT_NAMES=
   26478   export COLLECT_NAMES
   26479 fi
   26480 _LT_EOF
   26481     ;;
   26482   esac
   26483 
   26484 
   26485 ltmain=$ac_aux_dir/ltmain.sh
   26486 
   26487 
   26488   # We use sed instead of cat because bash on DJGPP gets confused if
   26489   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   26490   # text mode, it properly converts lines to CR/LF.  This bash problem
   26491   # is reportedly fixed, but why not run on old versions too?
   26492   sed '$q' "$ltmain" >> "$cfgfile" \
   26493      || (rm -f "$cfgfile"; exit 1)
   26494 
   26495    mv -f "$cfgfile" "$ofile" ||
   26496     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   26497   chmod +x "$ofile"
   26498 
   26499  ;;
   26500     "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
   26501 
   26502   esac
   26503 done # for ac_tag
   26504 
   26505 
   26506 as_fn_exit 0
   26507 _ACEOF
   26508 ac_clean_files=$ac_clean_files_save
   26509 
   26510 test $ac_write_fail = 0 ||
   26511   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   26512 
   26513 
   26514 # configure is writing to config.log, and then calls config.status.
   26515 # config.status does its own redirection, appending to config.log.
   26516 # Unfortunately, on DOS this fails, as config.log is still kept open
   26517 # by configure, so config.status won't be able to write to it; its
   26518 # output is simply discarded.  So we exec the FD to /dev/null,
   26519 # effectively closing config.log, so it can be properly (re)opened and
   26520 # appended to by config.status.  When coming back to configure, we
   26521 # need to make the FD available again.
   26522 if test "$no_create" != yes; then
   26523   ac_cs_success=:
   26524   ac_config_status_args=
   26525   test "$silent" = yes &&
   26526     ac_config_status_args="$ac_config_status_args --quiet"
   26527   exec 5>/dev/null
   26528   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   26529   exec 5>>config.log
   26530   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   26531   # would make configure fail if this is the last instruction.
   26532   $ac_cs_success || as_fn_exit 1
   26533 fi
   26534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   26535   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   26536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   26537 fi
   26538 
   26539 
   26540 #
   26541 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   26542 #
   26543 # [pairwise: --with-make-clean, --without-make-clean]
   26544 
   26545 # Check whether --with-make-clean was given.
   26546 if test "${with_make_clean+set}" = set; then :
   26547   withval=$with_make_clean; make_clean="$withval"
   26548 else
   26549   make_clean="yes"
   26550 fi
   26551 
   26552 case "$make_clean" in
   26553 yes)
   26554 	if test "yes" != "$no_create"
   26555 	then
   26556 		if test "yes" = "$silent"
   26557 		then
   26558 			make clean > /dev/null
   26559 		else
   26560 			make clean
   26561 		fi
   26562 	fi
   26563 	;;
   26564 esac
   26565 
   26566 # [pairwise: --enable-full-report, --disable-full-report]
   26567 # Check whether --enable-full-report was given.
   26568 if test "${enable_full_report+set}" = set; then :
   26569   enableval=$enable_full_report;
   26570 fi
   26571 
   26572 
   26573 report() {
   26574     echo "==============================================================================="
   26575     echo "Configuration summary:"
   26576     echo "-------------------------------------------------------------------------------"
   26577     echo "Optional features enabled:"
   26578     if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
   26579 	echo "    Mutex lock type: $with_locktype"
   26580     fi
   26581     test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
   26582     test "no" = "$use_dnstap" || \
   26583 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26584     test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
   26585     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   26586 
   26587     # these lines are only printed if run with --enable-full-report
   26588     if test "yes" = "$enable_full_report"; then
   26589 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   26590 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   26591 	test "X$LIBXML2_LIBS" = "X" || echo "    XML statistics (--with-libxml2)"
   26592 	test "X$JSON_C_LIBS" = "X" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
   26593 	test "X$ZLIB_LIBS" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   26594 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26595 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   26596     fi
   26597 
   26598     test "yes" = "$enable_dnsrps" && \
   26599 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26600     test "yes" = "$enable_fixed" && \
   26601 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26602     test "yes" = "$enable_backtrace" && \
   26603 	echo "    Print backtrace on crash (--enable-backtrace)"
   26604     test "minimal" = "$want_symtable" && \
   26605 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   26606     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   26607 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   26608     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26609     test "yes" = "$want_querytrace" && \
   26610 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26611     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26612 
   26613     test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
   26614 
   26615     test "$CRYPTO" = "pkcs11" && (
   26616 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26617 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   26618 	echo "    +--------------------------------------------+"
   26619 	echo "    |             ==== WARNING ====              |"
   26620 	echo "    |                                            |"
   26621 	echo "    | The use of native PKCS#11 for Public-Key   |"
   26622 	echo "    | Cryptography in BIND 9 has been deprecated |"
   26623 	echo "    | in favor of OpenSSL engine_pkcs11 from the |"
   26624 	echo "    | OpenSC project. The --with-native-pkcs11   |"
   26625 	echo "    | configuration option will be removed from  |"
   26626 	echo "    | the next major BIND 9 release. The option  |"
   26627 	echo "    | to use the engine_pkcs11 OpenSSL engine is |"
   26628 	echo "    | already available in BIND 9; please see    |"
   26629 	echo "    | the ARM section on PKCS#11 for details.    |"
   26630 	echo "    +--------------------------------------------+"
   26631     )
   26632 
   26633     dlz_enabled=no
   26634 
   26635     echo "    Dynamically loadable zone (DLZ) drivers:"
   26636     if test "$use_dlz_bdb" != "no"; then :
   26637   $as_echo "        Berkeley DB (--with-dlz-bdb)"
   26638 	   dlz_enabled=yes
   26639 fi
   26640     if test "$use_dlz_ldap" != "no"; then :
   26641   $as_echo "        LDAP (--with-dlz-ldap)"
   26642 	   dlz_enabled=yes
   26643 fi
   26644     if test "$use_dlz_mysql" != "no"; then :
   26645   $as_echo "        MySQL (--with-dlz-mysql)"
   26646 	   dlz_enabled=yes
   26647 fi
   26648     if test "$use_dlz_odbc" != "no"; then :
   26649   $as_echo "        ODBC (--with-dlz-odbc)"
   26650 	   dlz_enabled=yes
   26651 fi
   26652     if test "$use_dlz_postgres" != "no"; then :
   26653   $as_echo "        Postgres (--with-dlz-postgres)"
   26654 	   dlz_enabled=yes
   26655 fi
   26656     if test "$use_dlz_filesystem" != "no"; then :
   26657   $as_echo "        Filesystem (--with-dlz-filesystem)"
   26658 	   dlz_enabled=yes
   26659 fi
   26660     if test "$use_dlz_stub" != "no"; then :
   26661   $as_echo "        Stub (--with-dlz-stub)"
   26662 	   dlz_enabled=yes
   26663 fi
   26664 
   26665     if test "$dlz_enabled" = "no"; then :
   26666   $as_echo "        None"
   26667 else
   26668   $as_echo "    +--------------------------------------------------------+"
   26669 	   $as_echo "    |             ==== DEPRECATION WARNING ====              |"
   26670 	   $as_echo "    +--------------------------------------------------------+"
   26671 	   $as_echo "    | Old-style DLZ drivers have been deprecated in favor of |"
   26672 	   $as_echo "    | DLZ modules. The DLZ drivers configuration option will |"
   26673 	   $as_echo "    | be removed from the next major BIND 9 release.         |"
   26674 	   $as_echo "    |                                                        |"
   26675 	   $as_echo "    | The option to use the DLZ modules is already available |"
   26676 	   $as_echo "    | in BIND 9; please see the ARM section on DLZ modules.  |"
   26677 	   $as_echo "    +--------------------------------------------------------+"
   26678 
   26679 fi
   26680 
   26681     echo "-------------------------------------------------------------------------------"
   26682 
   26683     echo "Features disabled or unavailable on this platform:"
   26684     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   26685     test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
   26686 
   26687     test "no" = "$use_dnstap" && \
   26688 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26689     test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
   26690     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   26691 
   26692     test "no" = "$enable_dnsrps" && \
   26693 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26694 
   26695     test "yes" = "$enable_fixed" || \
   26696 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26697 
   26698     test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enablee-auto-validation)"
   26699 
   26700     test "$CRYPTO" = "pkcs11" || (
   26701 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26702     )
   26703 
   26704     test "yes" = "$enable_backtrace" || \
   26705 	echo "    Print backtrace on crash (--enable-backtrace)"
   26706     test "yes" = "$want_querytrace" || \
   26707 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26708 
   26709     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26710     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26711 
   26712     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   26713     test "X$LIBXML2_LIBS" = "X" && echo "    XML statistics (--with-libxml2)"
   26714     test "X$JSON_C_LIBS" = "X" && echo "    JSON statistics (--with-json-c)"
   26715     test "X$ZLIB_LIBS" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   26716     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26717     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   26718 
   26719     echo "-------------------------------------------------------------------------------"
   26720     echo "Configured paths:"
   26721     echo "    prefix: $prefix"
   26722     echo "    sysconfdir: $sysconfdir"
   26723     echo "    localstatedir: $localstatedir"
   26724     echo "-------------------------------------------------------------------------------"
   26725     echo "Compiler: $CC"
   26726     if test "$GCC" = "yes"; then :
   26727   $CC --version 2>&1 | sed 's/^/    /'
   26728 else
   26729   case $host in #(
   26730   *-solaris*) :
   26731     $CC -V 2>&1 | sed 's/^/    /' ;; #(
   26732   *) :
   26733     $CC --version 2>&1 | sed 's/^/    /' ;;
   26734 esac
   26735 fi
   26736 
   26737     if test "X$ac_unrecognized_opts" != "X"; then
   26738 	echo "Unrecognized options:"
   26739 	echo "    $ac_unrecognized_opts"
   26740     fi
   26741 
   26742     if test "yes" != "$enable_full_report"; then
   26743 	echo "-------------------------------------------------------------------------------"
   26744 	echo "For more detail, use --enable-full-report."
   26745     fi
   26746     echo "==============================================================================="
   26747 }
   26748 
   26749 if test "yes" != "$silent"; then
   26750 	report
   26751 fi
   26752 
   26753 # Tell Emacs to edit this file in shell mode.
   26754 # Local Variables:
   26755 # mode: sh
   26756 # End:
   26757