Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1.1.10
      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 <info (at] isc.org>.
      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 info (at] isc.org about
    278 $0: your system, including any error possibly output before
    279 $0: this message. Then install a modern shell, or manually
    280 $0: run the script under such a shell if you do have one."
    281   fi
    282   exit 1
    283 fi
    284 fi
    285 fi
    286 SHELL=${CONFIG_SHELL-/bin/sh}
    287 export SHELL
    288 # Unset more variables known to interfere with behavior of common tools.
    289 CLICOLOR_FORCE= GREP_OPTIONS=
    290 unset CLICOLOR_FORCE GREP_OPTIONS
    291 
    292 ## --------------------- ##
    293 ## M4sh Shell Functions. ##
    294 ## --------------------- ##
    295 # as_fn_unset VAR
    296 # ---------------
    297 # Portably unset VAR.
    298 as_fn_unset ()
    299 {
    300   { eval $1=; unset $1;}
    301 }
    302 as_unset=as_fn_unset
    303 
    304 # as_fn_set_status STATUS
    305 # -----------------------
    306 # Set $? to STATUS, without forking.
    307 as_fn_set_status ()
    308 {
    309   return $1
    310 } # as_fn_set_status
    311 
    312 # as_fn_exit STATUS
    313 # -----------------
    314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    315 as_fn_exit ()
    316 {
    317   set +e
    318   as_fn_set_status $1
    319   exit $1
    320 } # as_fn_exit
    321 
    322 # as_fn_mkdir_p
    323 # -------------
    324 # Create "$as_dir" as a directory, including parents if necessary.
    325 as_fn_mkdir_p ()
    326 {
    327 
    328   case $as_dir in #(
    329   -*) as_dir=./$as_dir;;
    330   esac
    331   test -d "$as_dir" || eval $as_mkdir_p || {
    332     as_dirs=
    333     while :; do
    334       case $as_dir in #(
    335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    336       *) as_qdir=$as_dir;;
    337       esac
    338       as_dirs="'$as_qdir' $as_dirs"
    339       as_dir=`$as_dirname -- "$as_dir" ||
    340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    341 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    342 	 X"$as_dir" : 'X\(//\)$' \| \
    343 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    344 $as_echo X"$as_dir" |
    345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    346 	    s//\1/
    347 	    q
    348 	  }
    349 	  /^X\(\/\/\)[^/].*/{
    350 	    s//\1/
    351 	    q
    352 	  }
    353 	  /^X\(\/\/\)$/{
    354 	    s//\1/
    355 	    q
    356 	  }
    357 	  /^X\(\/\).*/{
    358 	    s//\1/
    359 	    q
    360 	  }
    361 	  s/.*/./; q'`
    362       test -d "$as_dir" && break
    363     done
    364     test -z "$as_dirs" || eval "mkdir $as_dirs"
    365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    366 
    367 
    368 } # as_fn_mkdir_p
    369 
    370 # as_fn_executable_p FILE
    371 # -----------------------
    372 # Test if FILE is an executable regular file.
    373 as_fn_executable_p ()
    374 {
    375   test -f "$1" && test -x "$1"
    376 } # as_fn_executable_p
    377 # as_fn_append VAR VALUE
    378 # ----------------------
    379 # Append the text in VALUE to the end of the definition contained in VAR. Take
    380 # advantage of any shell optimizations that allow amortized linear growth over
    381 # repeated appends, instead of the typical quadratic growth present in naive
    382 # implementations.
    383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    384   eval 'as_fn_append ()
    385   {
    386     eval $1+=\$2
    387   }'
    388 else
    389   as_fn_append ()
    390   {
    391     eval $1=\$$1\$2
    392   }
    393 fi # as_fn_append
    394 
    395 # as_fn_arith ARG...
    396 # ------------------
    397 # Perform arithmetic evaluation on the ARGs, and store the result in the
    398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    399 # must be portable across $(()) and expr.
    400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    401   eval 'as_fn_arith ()
    402   {
    403     as_val=$(( $* ))
    404   }'
    405 else
    406   as_fn_arith ()
    407   {
    408     as_val=`expr "$@" || test $? -eq 1`
    409   }
    410 fi # as_fn_arith
    411 
    412 
    413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    414 # ----------------------------------------
    415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    417 # script with STATUS, using 1 if that was 0.
    418 as_fn_error ()
    419 {
    420   as_status=$1; test $as_status -eq 0 && as_status=1
    421   if test "$4"; then
    422     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    423     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    424   fi
    425   $as_echo "$as_me: error: $2" >&2
    426   as_fn_exit $as_status
    427 } # as_fn_error
    428 
    429 if expr a : '\(a\)' >/dev/null 2>&1 &&
    430    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    431   as_expr=expr
    432 else
    433   as_expr=false
    434 fi
    435 
    436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    437   as_basename=basename
    438 else
    439   as_basename=false
    440 fi
    441 
    442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    443   as_dirname=dirname
    444 else
    445   as_dirname=false
    446 fi
    447 
    448 as_me=`$as_basename -- "$0" ||
    449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    450 	 X"$0" : 'X\(//\)$' \| \
    451 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    452 $as_echo X/"$0" |
    453     sed '/^.*\/\([^/][^/]*\)\/*$/{
    454 	    s//\1/
    455 	    q
    456 	  }
    457 	  /^X\/\(\/\/\)$/{
    458 	    s//\1/
    459 	    q
    460 	  }
    461 	  /^X\/\(\/\).*/{
    462 	    s//\1/
    463 	    q
    464 	  }
    465 	  s/.*/./; q'`
    466 
    467 # Avoid depending upon Character Ranges.
    468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    471 as_cr_digits='0123456789'
    472 as_cr_alnum=$as_cr_Letters$as_cr_digits
    473 
    474 
    475   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    476   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    477   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    478   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    479   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    480   sed -n '
    481     p
    482     /[$]LINENO/=
    483   ' <$as_myself |
    484     sed '
    485       s/[$]LINENO.*/&-/
    486       t lineno
    487       b
    488       :lineno
    489       N
    490       :loop
    491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    492       t loop
    493       s/-\n.*//
    494     ' >$as_me.lineno &&
    495   chmod +x "$as_me.lineno" ||
    496     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    497 
    498   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    499   # already done that, so ensure we don't try to do so again and fall
    500   # in an infinite loop.  This has already happened in practice.
    501   _as_can_reexec=no; export _as_can_reexec
    502   # Don't try to exec as it changes $[0], causing all sort of problems
    503   # (the dirname of $[0] is not the place where we might find the
    504   # original and so on.  Autoconf is especially sensitive to this).
    505   . "./$as_me.lineno"
    506   # Exit status is that of the last command.
    507   exit
    508 }
    509 
    510 ECHO_C= ECHO_N= ECHO_T=
    511 case `echo -n x` in #(((((
    512 -n*)
    513   case `echo 'xy\c'` in
    514   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    515   xy)  ECHO_C='\c';;
    516   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    517        ECHO_T='	';;
    518   esac;;
    519 *)
    520   ECHO_N='-n';;
    521 esac
    522 
    523 rm -f conf$$ conf$$.exe conf$$.file
    524 if test -d conf$$.dir; then
    525   rm -f conf$$.dir/conf$$.file
    526 else
    527   rm -f conf$$.dir
    528   mkdir conf$$.dir 2>/dev/null
    529 fi
    530 if (echo >conf$$.file) 2>/dev/null; then
    531   if ln -s conf$$.file conf$$ 2>/dev/null; then
    532     as_ln_s='ln -s'
    533     # ... but there are two gotchas:
    534     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    535     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    536     # In both cases, we have to default to `cp -pR'.
    537     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    538       as_ln_s='cp -pR'
    539   elif ln conf$$.file conf$$ 2>/dev/null; then
    540     as_ln_s=ln
    541   else
    542     as_ln_s='cp -pR'
    543   fi
    544 else
    545   as_ln_s='cp -pR'
    546 fi
    547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    548 rmdir conf$$.dir 2>/dev/null
    549 
    550 if mkdir -p . 2>/dev/null; then
    551   as_mkdir_p='mkdir -p "$as_dir"'
    552 else
    553   test -d ./-p && rmdir ./-p
    554   as_mkdir_p=false
    555 fi
    556 
    557 as_test_x='test -x'
    558 as_executable_p=as_fn_executable_p
    559 
    560 # Sed expression to map a string onto a valid CPP name.
    561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    562 
    563 # Sed expression to map a string onto a valid variable name.
    564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    565 
    566 SHELL=${CONFIG_SHELL-/bin/sh}
    567 
    568 
    569 test -n "$DJDIR" || exec 7<&0 </dev/null
    570 exec 6>&1
    571 
    572 # Name of the host.
    573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    574 # so uname gets run too.
    575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    576 
    577 #
    578 # Initializations.
    579 #
    580 ac_default_prefix=/usr/local
    581 ac_clean_files=
    582 ac_config_libobj_dir=.
    583 LIBOBJS=
    584 cross_compiling=no
    585 subdirs=
    586 MFLAGS=
    587 MAKEFLAGS=
    588 
    589 # Identity of this package.
    590 PACKAGE_NAME='BIND'
    591 PACKAGE_TARNAME='bind'
    592 PACKAGE_VERSION='9.16'
    593 PACKAGE_STRING='BIND 9.16'
    594 PACKAGE_BUGREPORT='info (at] isc.org'
    595 PACKAGE_URL='https://www.isc.org/downloads/'
    596 
    597 # Factoring default headers for most tests.
    598 ac_includes_default="\
    599 #include <stdio.h>
    600 #ifdef HAVE_SYS_TYPES_H
    601 # include <sys/types.h>
    602 #endif
    603 #ifdef HAVE_SYS_STAT_H
    604 # include <sys/stat.h>
    605 #endif
    606 #ifdef STDC_HEADERS
    607 # include <stdlib.h>
    608 # include <stddef.h>
    609 #else
    610 # ifdef HAVE_STDLIB_H
    611 #  include <stdlib.h>
    612 # endif
    613 #endif
    614 #ifdef HAVE_STRING_H
    615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    616 #  include <memory.h>
    617 # endif
    618 # include <string.h>
    619 #endif
    620 #ifdef HAVE_STRINGS_H
    621 # include <strings.h>
    622 #endif
    623 #ifdef HAVE_INTTYPES_H
    624 # include <inttypes.h>
    625 #endif
    626 #ifdef HAVE_STDINT_H
    627 # include <stdint.h>
    628 #endif
    629 #ifdef HAVE_UNISTD_H
    630 # include <unistd.h>
    631 #endif"
    632 
    633 ac_subst_vars='LTLIBOBJS
    634 LIBOBJS
    635 BUILD_LIBS
    636 BUILD_LDFLAGS
    637 BUILD_CPPFLAGS
    638 BUILD_CFLAGS
    639 BUILD_CC
    640 DLZ_DRIVER_MYSQL_LIBS
    641 DLZ_DRIVER_MYSQL_INCLUDES
    642 DLZ_SYSTEM_TEST
    643 DLZ_DRIVER_OBJS
    644 DLZ_DRIVER_SRCS
    645 DLZ_DRIVER_LIBS
    646 DLZ_DRIVER_INCLUDES
    647 CONTRIB_DLZ
    648 MYSQL_CONFIG
    649 PG_CONFIG
    650 SO_TARGETS
    651 SO_STRIP
    652 SO_LD
    653 SO_LDFLAGS
    654 SO_CFLAGS
    655 SO
    656 BIND9_CONFIGARGS
    657 BIND9_SRCID
    658 BIND9_VERSIONSTRING
    659 BIND9_MAJOR
    660 BIND9_VERSION
    661 BIND9_DESCRIPTION
    662 BIND9_PRODUCT
    663 BIND9_IRS_BUILDINCLUDE
    664 BIND9_BIND9_BUILDINCLUDE
    665 BIND9_NS_BUILDINCLUDE
    666 BIND9_DNS_BUILDINCLUDE
    667 BIND9_ISCCFG_BUILDINCLUDE
    668 BIND9_ISCCC_BUILDINCLUDE
    669 BIND9_ISC_BUILDINCLUDE
    670 BIND9_TOP_BUILDDIR
    671 LD_WRAP_TESTS
    672 UNITTESTS
    673 KYUA
    674 CMOCKA_LIBS
    675 CMOCKA_CFLAGS
    676 LIBIDN2_LDFLAGS
    677 LIBIDN2_LIBS
    678 LIBIDN2_CFLAGS
    679 CURL
    680 DOXYGEN
    681 MANSRCS
    682 PDFTARGET
    683 HTMLTARGET
    684 PDFLATEX
    685 RELEASE_DATE
    686 HAVE_XELATEX_FALSE
    687 HAVE_XELATEX_TRUE
    688 LATEXMK
    689 XELATEX
    690 HAVE_SPHINX_BUILD_FALSE
    691 HAVE_SPHINX_BUILD_TRUE
    692 SPHINX_BUILD
    693 FSTRM_LIBS
    694 FSTRM_CFLAGS
    695 PROTOBUF_C_LIBS
    696 PROTOBUF_C_CFLAGS
    697 DNSTAP_MANS
    698 DNSTAPTARGETS
    699 DNSTAPOBJS
    700 DNSTAPSRCS
    701 DNSTAP
    702 FSTRM_CAPTURE
    703 PROTOC_C
    704 ISC_PLATFORM_HAVESYSUNH
    705 LIBCAP_LIBS
    706 DST_EXTRA_SRCS
    707 DST_EXTRA_OBJS
    708 USE_ISC_SPNEGO
    709 READLINE_LIB
    710 BIND9_CO_RULE
    711 LIBTOOL_MODE_UNINSTALL
    712 LIBTOOL_MODE_LINK
    713 LIBTOOL_MODE_INSTALL
    714 LIBTOOL_MODE_COMPILE
    715 LIBTOOL_MKDEP_SED
    716 SA
    717 A
    718 O
    719 ALWAYS_MAKE_SYMTABLE
    720 MKSYMTBL_PROGRAM
    721 PURIFY
    722 purify_path
    723 MKDEPPROG
    724 MKDEPCFLAGS
    725 MKDEPCC
    726 ZLIB_LIBS
    727 ZLIB_CFLAGS
    728 JSON_C_LIBS
    729 JSON_C_CFLAGS
    730 LIBXML2_LIBS
    731 LIBXML2_CFLAGS
    732 NZD_MANS
    733 NZDTARGETS
    734 NZDSRCS
    735 NZD_TOOLS
    736 LMDB_LIBS
    737 LMDB_CFLAGS
    738 DNS_CRYPTO_LIBS
    739 DNS_GSSAPI_LIBS
    740 DST_GSSAPI_INC
    741 USE_GSSAPI
    742 ISC_PLATFORM_KRB5HEADER
    743 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    744 ISC_PLATFORM_GSSAPIHEADER
    745 KRB5_CONFIG
    746 CRYPTO
    747 PKCS11_MANS
    748 PKCS11_TOOLS
    749 PKCS11_TEST
    750 OPENSSL_LIBS
    751 OPENSSL_CFLAGS
    752 NO_LIBTOOL_DNSLIBS
    753 NO_LIBTOOL_ISCLIBS
    754 INSTALL_LIBRARY
    755 ALWAYS_DEFINES
    756 LIBUV_LIBS
    757 LIBUV_CFLAGS
    758 PTHREAD_CFLAGS
    759 PTHREAD_LIBS
    760 PTHREAD_CC
    761 ax_pthread_config
    762 GEOIP2LINKOBJS
    763 GEOIP2LINKSRCS
    764 MAXMINDDB_PREFIX
    765 MAXMINDDB_LIBS
    766 MAXMINDDB_CFLAGS
    767 ISC_PLATFORM_NORETURN_POST
    768 ISC_PLATFORM_NORETURN_PRE
    769 PYTEST
    770 expanded_sysconfdir
    771 PYTHON_INSTALL_LIB
    772 PYTHON_INSTALL_DIR
    773 PYTHON_TOOLS
    774 KEYMGR
    775 COVERAGE
    776 CHECKDS
    777 PYTHON
    778 PERL
    779 PANDOC
    780 W3M
    781 LN
    782 ARFLAGS
    783 XTARGETS
    784 PKG_CONFIG_LIBDIR
    785 PKG_CONFIG_PATH
    786 PKG_CONFIG
    787 BACKTRACECFLAGS
    788 CCNOOPT
    789 CCOPT
    790 STD_CWARNINGS
    791 STD_CDEFINES
    792 STD_CINCLUDES
    793 MKDIR_P
    794 INSTALL_DATA
    795 INSTALL_SCRIPT
    796 INSTALL_PROGRAM
    797 LT_SYS_LIBRARY_PATH
    798 OTOOL64
    799 OTOOL
    800 LIPO
    801 NMEDIT
    802 DSYMUTIL
    803 MANIFEST_TOOL
    804 AWK
    805 RANLIB
    806 STRIP
    807 ac_ct_AR
    808 AR
    809 DLLTOOL
    810 OBJDUMP
    811 LN_S
    812 NM
    813 ac_ct_DUMPBIN
    814 DUMPBIN
    815 LD
    816 FGREP
    817 SED
    818 LIBTOOL
    819 SET_MAKE
    820 LFS_LIBS
    821 LFS_LDFLAGS
    822 LFS_CFLAGS
    823 EGREP
    824 GREP
    825 CPP
    826 OBJEXT
    827 EXEEXT
    828 ac_ct_CC
    829 CPPFLAGS
    830 LDFLAGS
    831 CFLAGS
    832 CC
    833 host_os
    834 host_vendor
    835 host_cpu
    836 host
    837 build_os
    838 build_vendor
    839 build_cpu
    840 build
    841 MAINT
    842 MAINTAINER_MODE_FALSE
    843 MAINTAINER_MODE_TRUE
    844 target_alias
    845 host_alias
    846 build_alias
    847 LIBS
    848 ECHO_T
    849 ECHO_N
    850 ECHO_C
    851 DEFS
    852 mandir
    853 localedir
    854 libdir
    855 psdir
    856 pdfdir
    857 dvidir
    858 htmldir
    859 infodir
    860 docdir
    861 oldincludedir
    862 includedir
    863 localstatedir
    864 sharedstatedir
    865 sysconfdir
    866 datadir
    867 datarootdir
    868 libexecdir
    869 sbindir
    870 bindir
    871 program_transform_name
    872 prefix
    873 exec_prefix
    874 PACKAGE_URL
    875 PACKAGE_BUGREPORT
    876 PACKAGE_STRING
    877 PACKAGE_VERSION
    878 PACKAGE_TARNAME
    879 PACKAGE_NAME
    880 PATH_SEPARATOR
    881 SHELL'
    882 ac_subst_files='BIND9_MAKE_INCLUDES
    883 BIND9_MAKE_RULES
    884 LIBDNS_MAPAPI
    885 DLZ_DRIVER_RULES'
    886 ac_user_opts='
    887 enable_option_checking
    888 enable_maintainer_mode
    889 enable_largefile
    890 enable_shared
    891 enable_static
    892 with_pic
    893 enable_fast_install
    894 with_aix_soname
    895 with_gnu_ld
    896 with_sysroot
    897 enable_libtool_lock
    898 enable_buffer_useinline
    899 enable_warn_shadow
    900 enable_warn_error
    901 enable_developer
    902 enable_fuzzing
    903 enable_mutex_atomics
    904 with_python
    905 with_python_install_dir
    906 enable_kqueue
    907 enable_epoll
    908 enable_devpoll
    909 with_geoip2
    910 enable_geoip
    911 with_maxminddb
    912 with_locktype
    913 with_libtool
    914 enable_pthread_rwlock
    915 with_openssl
    916 enable_fips_mode
    917 enable_native_pkcs11
    918 with_pkcs11
    919 with_gssapi
    920 with_lmdb
    921 with_libxml2
    922 with_libjson
    923 with_json_c
    924 with_zlib
    925 with_purify
    926 with_gperftools_profiler
    927 enable_backtrace
    928 enable_symtable
    929 enable_tcp_fastopen
    930 with_readline
    931 enable_isc_spnego
    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-mutex-atomics  emulate atomics by mutex-locked variables, useful
   1623                           for debugging [default=no]
   1624   --enable-kqueue         use BSD kqueue when available [default=yes]
   1625   --enable-epoll          use Linux epoll when available [default=auto]
   1626   --enable-devpoll        use /dev/poll when available [default=yes]
   1627   --disable-geoip         support GeoIP2 geolocation ACLs if available
   1628                           [default=yes]
   1629   --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
   1630                           implementation
   1631   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1632   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1633   --enable-backtrace      log stack backtrace on abort [default=yes]
   1634   --enable-symtable       use internal symbol table for backtrace
   1635                           [all|minimal(default)|none]
   1636   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1637   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1638   --disable-chroot        disable chroot
   1639   --disable-linux-caps    disable Linux capabilities
   1640   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1641   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1642   --enable-querytrace     enable very verbose query trace logging [default=no]
   1643   --enable-auto-validation
   1644                           turn on DNSSEC validation by default, using the IANA
   1645                           root key [default=yes]
   1646   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1647                           [default=$librpz_dl]
   1648   --enable-dnsrps         enable DNS Response Policy Service API
   1649   --enable-full-report    report values of all configure options
   1650 
   1651 Optional Packages:
   1652   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1653   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1654   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1655                           both]
   1656   --with-aix-soname=aix|svr4|both
   1657                           shared library versioning (aka "SONAME") variant to
   1658                           provide on AIX, [default=aix].
   1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1660   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1661                           compiler's sysroot if not specified).
   1662   --with-python=PATH      specify path to Python interpreter
   1663   --with-python-install-dir=PATH
   1664                           installation directory for Python modules
   1665   --with-geoip2           deprecated, use --with-maxminddb
   1666   --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
   1667                           [default=auto]
   1668   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1669   --with-libtool          use GNU libtool
   1670   --with-openssl=DIR      root of the OpenSSL directory
   1671   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1672                           PKCS11 provider)
   1673   --with-gssapi=PATH|/path/krb5-config
   1674                           Specify path for system-supplied GSSAPI
   1675                           [default=auto]
   1676   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1677   --with-libxml2          build with libxml2 library [yes|no|auto] (default is
   1678                           auto)
   1679   --with-libjson          deprecated, use --with-json-c
   1680   --with-json-c           build with json-c library [yes|no|detect] (default
   1681                           is detect)
   1682   --with-zlib             build with zlib for HTTP compression [default=yes]
   1683   --with-purify=PATH      use Rational purify
   1684   --with-gperftools-profiler
   1685                           use gperftools CPU profiler
   1686   --with-readline=LIBSPEC specify readline library [default auto]
   1687   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1688   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1689   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1690                           [yes|no(default)|path]
   1691   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1692   --with-tuning=ARG       Specify server tuning (default or small)
   1693   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1694   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1695   --with-dnsrps-dir       path to DNSRPS provider library
   1696   --with-dlz-postgres=PATH
   1697                           Build with Postgres DLZ driver [yes|no|path].
   1698                           (Required to use Postgres with DLZ)
   1699   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1700                           to use MySQL with DLZ)
   1701   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1702                           (Required to use Berkeley DB with DLZ)
   1703   --with-dlz-filesystem=ARG
   1704                           Build with filesystem DLZ driver [yes|no]. (Required
   1705                           to use file system driver with DLZ)
   1706   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1707                           to use LDAP with DLZ)
   1708   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1709                           to use ODBC with DLZ)
   1710   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1711                           use stub driver with DLZ)
   1712   --with-make-clean       run "make clean" at end of configure [yes|no]
   1713 
   1714 Some influential environment variables:
   1715   CC          C compiler command
   1716   CFLAGS      C compiler flags
   1717   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1718               nonstandard directory <lib dir>
   1719   LIBS        libraries to pass to the linker, e.g. -l<library>
   1720   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1721               you have headers in a nonstandard directory <include dir>
   1722   CPP         C preprocessor
   1723   LT_SYS_LIBRARY_PATH
   1724               User-defined run-time library search path.
   1725   PKG_CONFIG  path to pkg-config utility
   1726   PKG_CONFIG_PATH
   1727               directories to add to pkg-config's search path
   1728   PKG_CONFIG_LIBDIR
   1729               path overriding pkg-config's built-in search path
   1730   PYTHON      path to python executable
   1731   MAXMINDDB_CFLAGS
   1732               C compiler flags for MAXMINDDB, overriding pkg-config
   1733   MAXMINDDB_LIBS
   1734               linker flags for MAXMINDDB, overriding pkg-config
   1735   MAXMINDDB_PREFIX
   1736               value of prefix for libmaxminddb, overriding pkg-config
   1737   LIBUV_CFLAGS
   1738               C compiler flags for LIBUV, overriding pkg-config
   1739   LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
   1740   OPENSSL_CFLAGS
   1741               C compiler flags for OPENSSL, overriding pkg-config
   1742   OPENSSL_LIBS
   1743               linker flags for OPENSSL, overriding pkg-config
   1744   LIBXML2_CFLAGS
   1745               C compiler flags for LIBXML2, overriding pkg-config
   1746   LIBXML2_LIBS
   1747               linker flags for LIBXML2, overriding pkg-config
   1748   JSON_C_CFLAGS
   1749               C compiler flags for JSON_C, overriding pkg-config
   1750   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
   1751   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
   1752   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
   1753   SPHINX_BUILD
   1754               path to sphinx-build binary used to build the documentation
   1755   LIBIDN2_CFLAGS
   1756               C compiler flags for LIBIDN2, overriding pkg-config
   1757   LIBIDN2_LIBS
   1758               linker flags for LIBIDN2, overriding pkg-config
   1759   CMOCKA_CFLAGS
   1760               C compiler flags for CMOCKA, overriding pkg-config
   1761   CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
   1762   KYUA        path to kyua execution engine
   1763 
   1764 Use these variables to override the choices made by `configure' or to help
   1765 it to find libraries and programs with nonstandard names/locations.
   1766 
   1767 Report bugs to <info (at] isc.org>.
   1768 BIND home page: <https://www.isc.org/downloads/>.
   1769 _ACEOF
   1770 ac_status=$?
   1771 fi
   1772 
   1773 if test "$ac_init_help" = "recursive"; then
   1774   # If there are subdirs, report their specific --help.
   1775   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1776     test -d "$ac_dir" ||
   1777       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1778       continue
   1779     ac_builddir=.
   1780 
   1781 case "$ac_dir" in
   1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1783 *)
   1784   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1785   # A ".." for each directory in $ac_dir_suffix.
   1786   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1787   case $ac_top_builddir_sub in
   1788   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1789   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1790   esac ;;
   1791 esac
   1792 ac_abs_top_builddir=$ac_pwd
   1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1794 # for backward compatibility:
   1795 ac_top_builddir=$ac_top_build_prefix
   1796 
   1797 case $srcdir in
   1798   .)  # We are building in place.
   1799     ac_srcdir=.
   1800     ac_top_srcdir=$ac_top_builddir_sub
   1801     ac_abs_top_srcdir=$ac_pwd ;;
   1802   [\\/]* | ?:[\\/]* )  # Absolute name.
   1803     ac_srcdir=$srcdir$ac_dir_suffix;
   1804     ac_top_srcdir=$srcdir
   1805     ac_abs_top_srcdir=$srcdir ;;
   1806   *) # Relative name.
   1807     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1808     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1809     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1810 esac
   1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1812 
   1813     cd "$ac_dir" || { ac_status=$?; continue; }
   1814     # Check for guested configure.
   1815     if test -f "$ac_srcdir/configure.gnu"; then
   1816       echo &&
   1817       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1818     elif test -f "$ac_srcdir/configure"; then
   1819       echo &&
   1820       $SHELL "$ac_srcdir/configure" --help=recursive
   1821     else
   1822       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1823     fi || ac_status=$?
   1824     cd "$ac_pwd" || { ac_status=$?; break; }
   1825   done
   1826 fi
   1827 
   1828 test -n "$ac_init_help" && exit $ac_status
   1829 if $ac_init_version; then
   1830   cat <<\_ACEOF
   1831 BIND configure 9.16
   1832 generated by GNU Autoconf 2.69
   1833 
   1834 Copyright (C) 2012 Free Software Foundation, Inc.
   1835 This configure script is free software; the Free Software Foundation
   1836 gives unlimited permission to copy, distribute and modify it.
   1837 _ACEOF
   1838   exit
   1839 fi
   1840 
   1841 ## ------------------------ ##
   1842 ## Autoconf initialization. ##
   1843 ## ------------------------ ##
   1844 
   1845 # ac_fn_c_try_compile LINENO
   1846 # --------------------------
   1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1848 ac_fn_c_try_compile ()
   1849 {
   1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1851   rm -f conftest.$ac_objext
   1852   if { { ac_try="$ac_compile"
   1853 case "(($ac_try" in
   1854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1855   *) ac_try_echo=$ac_try;;
   1856 esac
   1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1858 $as_echo "$ac_try_echo"; } >&5
   1859   (eval "$ac_compile") 2>conftest.err
   1860   ac_status=$?
   1861   if test -s conftest.err; then
   1862     grep -v '^ *+' conftest.err >conftest.er1
   1863     cat conftest.er1 >&5
   1864     mv -f conftest.er1 conftest.err
   1865   fi
   1866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1867   test $ac_status = 0; } && {
   1868 	 test -z "$ac_c_werror_flag" ||
   1869 	 test ! -s conftest.err
   1870        } && test -s conftest.$ac_objext; then :
   1871   ac_retval=0
   1872 else
   1873   $as_echo "$as_me: failed program was:" >&5
   1874 sed 's/^/| /' conftest.$ac_ext >&5
   1875 
   1876 	ac_retval=1
   1877 fi
   1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1879   as_fn_set_status $ac_retval
   1880 
   1881 } # ac_fn_c_try_compile
   1882 
   1883 # ac_fn_c_try_cpp LINENO
   1884 # ----------------------
   1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1886 ac_fn_c_try_cpp ()
   1887 {
   1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1889   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1890 case "(($ac_try" in
   1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1892   *) ac_try_echo=$ac_try;;
   1893 esac
   1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1895 $as_echo "$ac_try_echo"; } >&5
   1896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1897   ac_status=$?
   1898   if test -s conftest.err; then
   1899     grep -v '^ *+' conftest.err >conftest.er1
   1900     cat conftest.er1 >&5
   1901     mv -f conftest.er1 conftest.err
   1902   fi
   1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1904   test $ac_status = 0; } > conftest.i && {
   1905 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1906 	 test ! -s conftest.err
   1907        }; then :
   1908   ac_retval=0
   1909 else
   1910   $as_echo "$as_me: failed program was:" >&5
   1911 sed 's/^/| /' conftest.$ac_ext >&5
   1912 
   1913     ac_retval=1
   1914 fi
   1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1916   as_fn_set_status $ac_retval
   1917 
   1918 } # ac_fn_c_try_cpp
   1919 
   1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1921 # -------------------------------------------------------
   1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1923 # the include files in INCLUDES and setting the cache variable VAR
   1924 # accordingly.
   1925 ac_fn_c_check_header_mongrel ()
   1926 {
   1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1928   if eval \${$3+:} false; then :
   1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1930 $as_echo_n "checking for $2... " >&6; }
   1931 if eval \${$3+:} false; then :
   1932   $as_echo_n "(cached) " >&6
   1933 fi
   1934 eval ac_res=\$$3
   1935 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1936 $as_echo "$ac_res" >&6; }
   1937 else
   1938   # Is the header compilable?
   1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1940 $as_echo_n "checking $2 usability... " >&6; }
   1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1942 /* end confdefs.h.  */
   1943 $4
   1944 #include <$2>
   1945 _ACEOF
   1946 if ac_fn_c_try_compile "$LINENO"; then :
   1947   ac_header_compiler=yes
   1948 else
   1949   ac_header_compiler=no
   1950 fi
   1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1953 $as_echo "$ac_header_compiler" >&6; }
   1954 
   1955 # Is the header present?
   1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1957 $as_echo_n "checking $2 presence... " >&6; }
   1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1959 /* end confdefs.h.  */
   1960 #include <$2>
   1961 _ACEOF
   1962 if ac_fn_c_try_cpp "$LINENO"; then :
   1963   ac_header_preproc=yes
   1964 else
   1965   ac_header_preproc=no
   1966 fi
   1967 rm -f conftest.err conftest.i conftest.$ac_ext
   1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1969 $as_echo "$ac_header_preproc" >&6; }
   1970 
   1971 # So?  What about this header?
   1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1973   yes:no: )
   1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1978     ;;
   1979   no:yes:* )
   1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1983 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1984     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1986     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1987 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1988     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1990 ( $as_echo "## --------------------------- ##
   1991 ## Report this to info (at] isc.org ##
   1992 ## --------------------------- ##"
   1993      ) | sed "s/^/$as_me: WARNING:     /" >&2
   1994     ;;
   1995 esac
   1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1997 $as_echo_n "checking for $2... " >&6; }
   1998 if eval \${$3+:} false; then :
   1999   $as_echo_n "(cached) " >&6
   2000 else
   2001   eval "$3=\$ac_header_compiler"
   2002 fi
   2003 eval ac_res=\$$3
   2004 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2005 $as_echo "$ac_res" >&6; }
   2006 fi
   2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2008 
   2009 } # ac_fn_c_check_header_mongrel
   2010 
   2011 # ac_fn_c_try_run LINENO
   2012 # ----------------------
   2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   2014 # that executables *can* be run.
   2015 ac_fn_c_try_run ()
   2016 {
   2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2018   if { { ac_try="$ac_link"
   2019 case "(($ac_try" in
   2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2021   *) ac_try_echo=$ac_try;;
   2022 esac
   2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2024 $as_echo "$ac_try_echo"; } >&5
   2025   (eval "$ac_link") 2>&5
   2026   ac_status=$?
   2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2028   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2029   { { case "(($ac_try" in
   2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2031   *) ac_try_echo=$ac_try;;
   2032 esac
   2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2034 $as_echo "$ac_try_echo"; } >&5
   2035   (eval "$ac_try") 2>&5
   2036   ac_status=$?
   2037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2038   test $ac_status = 0; }; }; then :
   2039   ac_retval=0
   2040 else
   2041   $as_echo "$as_me: program exited with status $ac_status" >&5
   2042        $as_echo "$as_me: failed program was:" >&5
   2043 sed 's/^/| /' conftest.$ac_ext >&5
   2044 
   2045        ac_retval=$ac_status
   2046 fi
   2047   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2049   as_fn_set_status $ac_retval
   2050 
   2051 } # ac_fn_c_try_run
   2052 
   2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2054 # -------------------------------------------------------
   2055 # Tests whether HEADER exists and can be compiled using the include files in
   2056 # INCLUDES, setting the cache variable VAR accordingly.
   2057 ac_fn_c_check_header_compile ()
   2058 {
   2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2061 $as_echo_n "checking for $2... " >&6; }
   2062 if eval \${$3+:} false; then :
   2063   $as_echo_n "(cached) " >&6
   2064 else
   2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2066 /* end confdefs.h.  */
   2067 $4
   2068 #include <$2>
   2069 _ACEOF
   2070 if ac_fn_c_try_compile "$LINENO"; then :
   2071   eval "$3=yes"
   2072 else
   2073   eval "$3=no"
   2074 fi
   2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2076 fi
   2077 eval ac_res=\$$3
   2078 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2079 $as_echo "$ac_res" >&6; }
   2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2081 
   2082 } # ac_fn_c_check_header_compile
   2083 
   2084 # ac_fn_c_try_link LINENO
   2085 # -----------------------
   2086 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2087 ac_fn_c_try_link ()
   2088 {
   2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2090   rm -f conftest.$ac_objext conftest$ac_exeext
   2091   if { { ac_try="$ac_link"
   2092 case "(($ac_try" in
   2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2094   *) ac_try_echo=$ac_try;;
   2095 esac
   2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2097 $as_echo "$ac_try_echo"; } >&5
   2098   (eval "$ac_link") 2>conftest.err
   2099   ac_status=$?
   2100   if test -s conftest.err; then
   2101     grep -v '^ *+' conftest.err >conftest.er1
   2102     cat conftest.er1 >&5
   2103     mv -f conftest.er1 conftest.err
   2104   fi
   2105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2106   test $ac_status = 0; } && {
   2107 	 test -z "$ac_c_werror_flag" ||
   2108 	 test ! -s conftest.err
   2109        } && test -s conftest$ac_exeext && {
   2110 	 test "$cross_compiling" = yes ||
   2111 	 test -x conftest$ac_exeext
   2112        }; then :
   2113   ac_retval=0
   2114 else
   2115   $as_echo "$as_me: failed program was:" >&5
   2116 sed 's/^/| /' conftest.$ac_ext >&5
   2117 
   2118 	ac_retval=1
   2119 fi
   2120   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2121   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2122   # interfere with the next link command; also delete a directory that is
   2123   # left behind by Apple's compiler.  We do this before executing the actions.
   2124   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2125   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2126   as_fn_set_status $ac_retval
   2127 
   2128 } # ac_fn_c_try_link
   2129 
   2130 # ac_fn_c_check_func LINENO FUNC VAR
   2131 # ----------------------------------
   2132 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2133 ac_fn_c_check_func ()
   2134 {
   2135   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2137 $as_echo_n "checking for $2... " >&6; }
   2138 if eval \${$3+:} false; then :
   2139   $as_echo_n "(cached) " >&6
   2140 else
   2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2142 /* end confdefs.h.  */
   2143 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2145 #define $2 innocuous_$2
   2146 
   2147 /* System header to define __stub macros and hopefully few prototypes,
   2148     which can conflict with char $2 (); below.
   2149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2150     <limits.h> exists even on freestanding compilers.  */
   2151 
   2152 #ifdef __STDC__
   2153 # include <limits.h>
   2154 #else
   2155 # include <assert.h>
   2156 #endif
   2157 
   2158 #undef $2
   2159 
   2160 /* Override any GCC internal prototype to avoid an error.
   2161    Use char because int might match the return type of a GCC
   2162    builtin and then its argument prototype would still apply.  */
   2163 #ifdef __cplusplus
   2164 extern "C"
   2165 #endif
   2166 char $2 ();
   2167 /* The GNU C library defines this for functions which it implements
   2168     to always fail with ENOSYS.  Some functions are actually named
   2169     something starting with __ and the normal name is an alias.  */
   2170 #if defined __stub_$2 || defined __stub___$2
   2171 choke me
   2172 #endif
   2173 
   2174 int
   2175 main ()
   2176 {
   2177 return $2 ();
   2178   ;
   2179   return 0;
   2180 }
   2181 _ACEOF
   2182 if ac_fn_c_try_link "$LINENO"; then :
   2183   eval "$3=yes"
   2184 else
   2185   eval "$3=no"
   2186 fi
   2187 rm -f core conftest.err conftest.$ac_objext \
   2188     conftest$ac_exeext conftest.$ac_ext
   2189 fi
   2190 eval ac_res=\$$3
   2191 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2192 $as_echo "$ac_res" >&6; }
   2193   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2194 
   2195 } # ac_fn_c_check_func
   2196 
   2197 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2198 # -------------------------------------------
   2199 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2200 # variable VAR accordingly.
   2201 ac_fn_c_check_type ()
   2202 {
   2203   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2205 $as_echo_n "checking for $2... " >&6; }
   2206 if eval \${$3+:} false; then :
   2207   $as_echo_n "(cached) " >&6
   2208 else
   2209   eval "$3=no"
   2210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2211 /* end confdefs.h.  */
   2212 $4
   2213 int
   2214 main ()
   2215 {
   2216 if (sizeof ($2))
   2217 	 return 0;
   2218   ;
   2219   return 0;
   2220 }
   2221 _ACEOF
   2222 if ac_fn_c_try_compile "$LINENO"; then :
   2223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2224 /* end confdefs.h.  */
   2225 $4
   2226 int
   2227 main ()
   2228 {
   2229 if (sizeof (($2)))
   2230 	    return 0;
   2231   ;
   2232   return 0;
   2233 }
   2234 _ACEOF
   2235 if ac_fn_c_try_compile "$LINENO"; then :
   2236 
   2237 else
   2238   eval "$3=yes"
   2239 fi
   2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2241 fi
   2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2243 fi
   2244 eval ac_res=\$$3
   2245 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2246 $as_echo "$ac_res" >&6; }
   2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2248 
   2249 } # ac_fn_c_check_type
   2250 cat >config.log <<_ACEOF
   2251 This file contains any messages produced by compilers while
   2252 running configure, to aid debugging if configure makes a mistake.
   2253 
   2254 It was created by BIND $as_me 9.16, which was
   2255 generated by GNU Autoconf 2.69.  Invocation command line was
   2256 
   2257   $ $0 $@
   2258 
   2259 _ACEOF
   2260 exec 5>>config.log
   2261 {
   2262 cat <<_ASUNAME
   2263 ## --------- ##
   2264 ## Platform. ##
   2265 ## --------- ##
   2266 
   2267 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2268 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2269 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2270 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2271 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2272 
   2273 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2274 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2275 
   2276 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2277 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2278 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2279 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2280 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2281 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2282 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2283 
   2284 _ASUNAME
   2285 
   2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2287 for as_dir in $PATH
   2288 do
   2289   IFS=$as_save_IFS
   2290   test -z "$as_dir" && as_dir=.
   2291     $as_echo "PATH: $as_dir"
   2292   done
   2293 IFS=$as_save_IFS
   2294 
   2295 } >&5
   2296 
   2297 cat >&5 <<_ACEOF
   2298 
   2299 
   2300 ## ----------- ##
   2301 ## Core tests. ##
   2302 ## ----------- ##
   2303 
   2304 _ACEOF
   2305 
   2306 
   2307 # Keep a trace of the command line.
   2308 # Strip out --no-create and --no-recursion so they do not pile up.
   2309 # Strip out --silent because we don't want to record it for future runs.
   2310 # Also quote any args containing shell meta-characters.
   2311 # Make two passes to allow for proper duplicate-argument suppression.
   2312 ac_configure_args=
   2313 ac_configure_args0=
   2314 ac_configure_args1=
   2315 ac_must_keep_next=false
   2316 for ac_pass in 1 2
   2317 do
   2318   for ac_arg
   2319   do
   2320     case $ac_arg in
   2321     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2322     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2323     | -silent | --silent | --silen | --sile | --sil)
   2324       continue ;;
   2325     *\'*)
   2326       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2327     esac
   2328     case $ac_pass in
   2329     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2330     2)
   2331       as_fn_append ac_configure_args1 " '$ac_arg'"
   2332       if test $ac_must_keep_next = true; then
   2333 	ac_must_keep_next=false # Got value, back to normal.
   2334       else
   2335 	case $ac_arg in
   2336 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2337 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2338 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2339 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2340 	    case "$ac_configure_args0 " in
   2341 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2342 	    esac
   2343 	    ;;
   2344 	  -* ) ac_must_keep_next=true ;;
   2345 	esac
   2346       fi
   2347       as_fn_append ac_configure_args " '$ac_arg'"
   2348       ;;
   2349     esac
   2350   done
   2351 done
   2352 { ac_configure_args0=; unset ac_configure_args0;}
   2353 { ac_configure_args1=; unset ac_configure_args1;}
   2354 
   2355 # When interrupted or exit'd, cleanup temporary files, and complete
   2356 # config.log.  We remove comments because anyway the quotes in there
   2357 # would cause problems or look ugly.
   2358 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2359 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2360 trap 'exit_status=$?
   2361   # Save into config.log some information that might help in debugging.
   2362   {
   2363     echo
   2364 
   2365     $as_echo "## ---------------- ##
   2366 ## Cache variables. ##
   2367 ## ---------------- ##"
   2368     echo
   2369     # The following way of writing the cache mishandles newlines in values,
   2370 (
   2371   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2372     eval ac_val=\$$ac_var
   2373     case $ac_val in #(
   2374     *${as_nl}*)
   2375       case $ac_var in #(
   2376       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2378       esac
   2379       case $ac_var in #(
   2380       _ | IFS | as_nl) ;; #(
   2381       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2382       *) { eval $ac_var=; unset $ac_var;} ;;
   2383       esac ;;
   2384     esac
   2385   done
   2386   (set) 2>&1 |
   2387     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2388     *${as_nl}ac_space=\ *)
   2389       sed -n \
   2390 	"s/'\''/'\''\\\\'\'''\''/g;
   2391 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2392       ;; #(
   2393     *)
   2394       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2395       ;;
   2396     esac |
   2397     sort
   2398 )
   2399     echo
   2400 
   2401     $as_echo "## ----------------- ##
   2402 ## Output variables. ##
   2403 ## ----------------- ##"
   2404     echo
   2405     for ac_var in $ac_subst_vars
   2406     do
   2407       eval ac_val=\$$ac_var
   2408       case $ac_val in
   2409       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2410       esac
   2411       $as_echo "$ac_var='\''$ac_val'\''"
   2412     done | sort
   2413     echo
   2414 
   2415     if test -n "$ac_subst_files"; then
   2416       $as_echo "## ------------------- ##
   2417 ## File substitutions. ##
   2418 ## ------------------- ##"
   2419       echo
   2420       for ac_var in $ac_subst_files
   2421       do
   2422 	eval ac_val=\$$ac_var
   2423 	case $ac_val in
   2424 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2425 	esac
   2426 	$as_echo "$ac_var='\''$ac_val'\''"
   2427       done | sort
   2428       echo
   2429     fi
   2430 
   2431     if test -s confdefs.h; then
   2432       $as_echo "## ----------- ##
   2433 ## confdefs.h. ##
   2434 ## ----------- ##"
   2435       echo
   2436       cat confdefs.h
   2437       echo
   2438     fi
   2439     test "$ac_signal" != 0 &&
   2440       $as_echo "$as_me: caught signal $ac_signal"
   2441     $as_echo "$as_me: exit $exit_status"
   2442   } >&5
   2443   rm -f core *.core core.conftest.* &&
   2444     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2445     exit $exit_status
   2446 ' 0
   2447 for ac_signal in 1 2 13 15; do
   2448   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2449 done
   2450 ac_signal=0
   2451 
   2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2453 rm -f -r conftest* confdefs.h
   2454 
   2455 $as_echo "/* confdefs.h */" > confdefs.h
   2456 
   2457 # Predefined preprocessor variables.
   2458 
   2459 cat >>confdefs.h <<_ACEOF
   2460 #define PACKAGE_NAME "$PACKAGE_NAME"
   2461 _ACEOF
   2462 
   2463 cat >>confdefs.h <<_ACEOF
   2464 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2465 _ACEOF
   2466 
   2467 cat >>confdefs.h <<_ACEOF
   2468 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2469 _ACEOF
   2470 
   2471 cat >>confdefs.h <<_ACEOF
   2472 #define PACKAGE_STRING "$PACKAGE_STRING"
   2473 _ACEOF
   2474 
   2475 cat >>confdefs.h <<_ACEOF
   2476 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2477 _ACEOF
   2478 
   2479 cat >>confdefs.h <<_ACEOF
   2480 #define PACKAGE_URL "$PACKAGE_URL"
   2481 _ACEOF
   2482 
   2483 
   2484 # Let the site file select an alternate cache file if it wants to.
   2485 # Prefer an explicitly selected file to automatically selected ones.
   2486 ac_site_file1=NONE
   2487 ac_site_file2=NONE
   2488 if test -n "$CONFIG_SITE"; then
   2489   # We do not want a PATH search for config.site.
   2490   case $CONFIG_SITE in #((
   2491     -*)  ac_site_file1=./$CONFIG_SITE;;
   2492     */*) ac_site_file1=$CONFIG_SITE;;
   2493     *)   ac_site_file1=./$CONFIG_SITE;;
   2494   esac
   2495 elif test "x$prefix" != xNONE; then
   2496   ac_site_file1=$prefix/share/config.site
   2497   ac_site_file2=$prefix/etc/config.site
   2498 else
   2499   ac_site_file1=$ac_default_prefix/share/config.site
   2500   ac_site_file2=$ac_default_prefix/etc/config.site
   2501 fi
   2502 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2503 do
   2504   test "x$ac_site_file" = xNONE && continue
   2505   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2506     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2507 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2508     sed 's/^/| /' "$ac_site_file" >&5
   2509     . "$ac_site_file" \
   2510       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2512 as_fn_error $? "failed to load site script $ac_site_file
   2513 See \`config.log' for more details" "$LINENO" 5; }
   2514   fi
   2515 done
   2516 
   2517 if test -r "$cache_file"; then
   2518   # Some versions of bash will fail to source /dev/null (special files
   2519   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2520   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2521     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2523     case $cache_file in
   2524       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2525       *)                      . "./$cache_file";;
   2526     esac
   2527   fi
   2528 else
   2529   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2531   >$cache_file
   2532 fi
   2533 
   2534 # Check that the precious variables saved in the cache have kept the same
   2535 # value.
   2536 ac_cache_corrupted=false
   2537 for ac_var in $ac_precious_vars; do
   2538   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2539   eval ac_new_set=\$ac_env_${ac_var}_set
   2540   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2541   eval ac_new_val=\$ac_env_${ac_var}_value
   2542   case $ac_old_set,$ac_new_set in
   2543     set,)
   2544       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2546       ac_cache_corrupted=: ;;
   2547     ,set)
   2548       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2550       ac_cache_corrupted=: ;;
   2551     ,);;
   2552     *)
   2553       if test "x$ac_old_val" != "x$ac_new_val"; then
   2554 	# differences in whitespace do not lead to failure.
   2555 	ac_old_val_w=`echo x $ac_old_val`
   2556 	ac_new_val_w=`echo x $ac_new_val`
   2557 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2558 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2560 	  ac_cache_corrupted=:
   2561 	else
   2562 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2564 	  eval $ac_var=\$ac_old_val
   2565 	fi
   2566 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2567 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2568 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2569 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2570       fi;;
   2571   esac
   2572   # Pass precious variables to config.status.
   2573   if test "$ac_new_set" = set; then
   2574     case $ac_new_val in
   2575     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2576     *) ac_arg=$ac_var=$ac_new_val ;;
   2577     esac
   2578     case " $ac_configure_args " in
   2579       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2580       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2581     esac
   2582   fi
   2583 done
   2584 if $ac_cache_corrupted; then
   2585   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2587   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2589   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2590 fi
   2591 ## -------------------- ##
   2592 ## Main body of script. ##
   2593 ## -------------------- ##
   2594 
   2595 ac_ext=c
   2596 ac_cpp='$CPP $CPPFLAGS'
   2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2600 
   2601 
   2602 
   2603 
   2604 #
   2605 # Enable maintainer mode by default, but allow to disable it in the CI
   2606 #
   2607 
   2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2609 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2610     # Check whether --enable-maintainer-mode was given.
   2611 if test "${enable_maintainer_mode+set}" = set; then :
   2612   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2613 else
   2614   USE_MAINTAINER_MODE=yes
   2615 fi
   2616 
   2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2618 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2619    if test $USE_MAINTAINER_MODE = yes; then
   2620   MAINTAINER_MODE_TRUE=
   2621   MAINTAINER_MODE_FALSE='#'
   2622 else
   2623   MAINTAINER_MODE_TRUE='#'
   2624   MAINTAINER_MODE_FALSE=
   2625 fi
   2626 
   2627   MAINT=$MAINTAINER_MODE_TRUE
   2628 
   2629 
   2630 
   2631 ac_config_headers="$ac_config_headers config.h"
   2632 
   2633 
   2634 
   2635 ac_aux_dir=
   2636 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2637   if test -f "$ac_dir/install-sh"; then
   2638     ac_aux_dir=$ac_dir
   2639     ac_install_sh="$ac_aux_dir/install-sh -c"
   2640     break
   2641   elif test -f "$ac_dir/install.sh"; then
   2642     ac_aux_dir=$ac_dir
   2643     ac_install_sh="$ac_aux_dir/install.sh -c"
   2644     break
   2645   elif test -f "$ac_dir/shtool"; then
   2646     ac_aux_dir=$ac_dir
   2647     ac_install_sh="$ac_aux_dir/shtool install -c"
   2648     break
   2649   fi
   2650 done
   2651 if test -z "$ac_aux_dir"; then
   2652   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2653 fi
   2654 
   2655 # These three variables are undocumented and unsupported,
   2656 # and are intended to be withdrawn in a future Autoconf release.
   2657 # They can cause serious problems if a builder's source tree is in a directory
   2658 # whose full name contains unusual characters.
   2659 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2660 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2661 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2662 
   2663 
   2664 # Make sure we can run config.sub.
   2665 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2666   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2667 
   2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2669 $as_echo_n "checking build system type... " >&6; }
   2670 if ${ac_cv_build+:} false; then :
   2671   $as_echo_n "(cached) " >&6
   2672 else
   2673   ac_build_alias=$build_alias
   2674 test "x$ac_build_alias" = x &&
   2675   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2676 test "x$ac_build_alias" = x &&
   2677   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2679   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2680 
   2681 fi
   2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2683 $as_echo "$ac_cv_build" >&6; }
   2684 case $ac_cv_build in
   2685 *-*-*) ;;
   2686 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2687 esac
   2688 build=$ac_cv_build
   2689 ac_save_IFS=$IFS; IFS='-'
   2690 set x $ac_cv_build
   2691 shift
   2692 build_cpu=$1
   2693 build_vendor=$2
   2694 shift; shift
   2695 # Remember, the first character of IFS is used to create $*,
   2696 # except with old shells:
   2697 build_os=$*
   2698 IFS=$ac_save_IFS
   2699 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2700 
   2701 
   2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2703 $as_echo_n "checking host system type... " >&6; }
   2704 if ${ac_cv_host+:} false; then :
   2705   $as_echo_n "(cached) " >&6
   2706 else
   2707   if test "x$host_alias" = x; then
   2708   ac_cv_host=$ac_cv_build
   2709 else
   2710   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2711     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2712 fi
   2713 
   2714 fi
   2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2716 $as_echo "$ac_cv_host" >&6; }
   2717 case $ac_cv_host in
   2718 *-*-*) ;;
   2719 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2720 esac
   2721 host=$ac_cv_host
   2722 ac_save_IFS=$IFS; IFS='-'
   2723 set x $ac_cv_host
   2724 shift
   2725 host_cpu=$1
   2726 host_vendor=$2
   2727 shift; shift
   2728 # Remember, the first character of IFS is used to create $*,
   2729 # except with old shells:
   2730 host_os=$*
   2731 IFS=$ac_save_IFS
   2732 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2733 
   2734 
   2735 
   2736 #
   2737 # Enable system extensions to C and POSIX
   2738 #
   2739 ac_ext=c
   2740 ac_cpp='$CPP $CPPFLAGS'
   2741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2744 if test -n "$ac_tool_prefix"; then
   2745   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2746 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2748 $as_echo_n "checking for $ac_word... " >&6; }
   2749 if ${ac_cv_prog_CC+:} false; then :
   2750   $as_echo_n "(cached) " >&6
   2751 else
   2752   if test -n "$CC"; then
   2753   ac_cv_prog_CC="$CC" # Let the user override the test.
   2754 else
   2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2756 for as_dir in $PATH
   2757 do
   2758   IFS=$as_save_IFS
   2759   test -z "$as_dir" && as_dir=.
   2760     for ac_exec_ext in '' $ac_executable_extensions; do
   2761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2762     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2764     break 2
   2765   fi
   2766 done
   2767   done
   2768 IFS=$as_save_IFS
   2769 
   2770 fi
   2771 fi
   2772 CC=$ac_cv_prog_CC
   2773 if test -n "$CC"; then
   2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2775 $as_echo "$CC" >&6; }
   2776 else
   2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2778 $as_echo "no" >&6; }
   2779 fi
   2780 
   2781 
   2782 fi
   2783 if test -z "$ac_cv_prog_CC"; then
   2784   ac_ct_CC=$CC
   2785   # Extract the first word of "gcc", so it can be a program name with args.
   2786 set dummy gcc; ac_word=$2
   2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2788 $as_echo_n "checking for $ac_word... " >&6; }
   2789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2790   $as_echo_n "(cached) " >&6
   2791 else
   2792   if test -n "$ac_ct_CC"; then
   2793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2794 else
   2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2796 for as_dir in $PATH
   2797 do
   2798   IFS=$as_save_IFS
   2799   test -z "$as_dir" && as_dir=.
   2800     for ac_exec_ext in '' $ac_executable_extensions; do
   2801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2802     ac_cv_prog_ac_ct_CC="gcc"
   2803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2804     break 2
   2805   fi
   2806 done
   2807   done
   2808 IFS=$as_save_IFS
   2809 
   2810 fi
   2811 fi
   2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2813 if test -n "$ac_ct_CC"; then
   2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2815 $as_echo "$ac_ct_CC" >&6; }
   2816 else
   2817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2818 $as_echo "no" >&6; }
   2819 fi
   2820 
   2821   if test "x$ac_ct_CC" = x; then
   2822     CC=""
   2823   else
   2824     case $cross_compiling:$ac_tool_warned in
   2825 yes:)
   2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2828 ac_tool_warned=yes ;;
   2829 esac
   2830     CC=$ac_ct_CC
   2831   fi
   2832 else
   2833   CC="$ac_cv_prog_CC"
   2834 fi
   2835 
   2836 if test -z "$CC"; then
   2837           if test -n "$ac_tool_prefix"; then
   2838     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2839 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2841 $as_echo_n "checking for $ac_word... " >&6; }
   2842 if ${ac_cv_prog_CC+:} false; then :
   2843   $as_echo_n "(cached) " >&6
   2844 else
   2845   if test -n "$CC"; then
   2846   ac_cv_prog_CC="$CC" # Let the user override the test.
   2847 else
   2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2849 for as_dir in $PATH
   2850 do
   2851   IFS=$as_save_IFS
   2852   test -z "$as_dir" && as_dir=.
   2853     for ac_exec_ext in '' $ac_executable_extensions; do
   2854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2855     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2857     break 2
   2858   fi
   2859 done
   2860   done
   2861 IFS=$as_save_IFS
   2862 
   2863 fi
   2864 fi
   2865 CC=$ac_cv_prog_CC
   2866 if test -n "$CC"; then
   2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2868 $as_echo "$CC" >&6; }
   2869 else
   2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2871 $as_echo "no" >&6; }
   2872 fi
   2873 
   2874 
   2875   fi
   2876 fi
   2877 if test -z "$CC"; then
   2878   # Extract the first word of "cc", so it can be a program name with args.
   2879 set dummy cc; ac_word=$2
   2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2881 $as_echo_n "checking for $ac_word... " >&6; }
   2882 if ${ac_cv_prog_CC+:} false; then :
   2883   $as_echo_n "(cached) " >&6
   2884 else
   2885   if test -n "$CC"; then
   2886   ac_cv_prog_CC="$CC" # Let the user override the test.
   2887 else
   2888   ac_prog_rejected=no
   2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2890 for as_dir in $PATH
   2891 do
   2892   IFS=$as_save_IFS
   2893   test -z "$as_dir" && as_dir=.
   2894     for ac_exec_ext in '' $ac_executable_extensions; do
   2895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2896     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2897        ac_prog_rejected=yes
   2898        continue
   2899      fi
   2900     ac_cv_prog_CC="cc"
   2901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2902     break 2
   2903   fi
   2904 done
   2905   done
   2906 IFS=$as_save_IFS
   2907 
   2908 if test $ac_prog_rejected = yes; then
   2909   # We found a bogon in the path, so make sure we never use it.
   2910   set dummy $ac_cv_prog_CC
   2911   shift
   2912   if test $# != 0; then
   2913     # We chose a different compiler from the bogus one.
   2914     # However, it has the same basename, so the bogon will be chosen
   2915     # first if we set CC to just the basename; use the full file name.
   2916     shift
   2917     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2918   fi
   2919 fi
   2920 fi
   2921 fi
   2922 CC=$ac_cv_prog_CC
   2923 if test -n "$CC"; then
   2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2925 $as_echo "$CC" >&6; }
   2926 else
   2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2928 $as_echo "no" >&6; }
   2929 fi
   2930 
   2931 
   2932 fi
   2933 if test -z "$CC"; then
   2934   if test -n "$ac_tool_prefix"; then
   2935   for ac_prog in cl.exe
   2936   do
   2937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2940 $as_echo_n "checking for $ac_word... " >&6; }
   2941 if ${ac_cv_prog_CC+:} false; then :
   2942   $as_echo_n "(cached) " >&6
   2943 else
   2944   if test -n "$CC"; then
   2945   ac_cv_prog_CC="$CC" # Let the user override the test.
   2946 else
   2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2948 for as_dir in $PATH
   2949 do
   2950   IFS=$as_save_IFS
   2951   test -z "$as_dir" && as_dir=.
   2952     for ac_exec_ext in '' $ac_executable_extensions; do
   2953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2956     break 2
   2957   fi
   2958 done
   2959   done
   2960 IFS=$as_save_IFS
   2961 
   2962 fi
   2963 fi
   2964 CC=$ac_cv_prog_CC
   2965 if test -n "$CC"; then
   2966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2967 $as_echo "$CC" >&6; }
   2968 else
   2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2970 $as_echo "no" >&6; }
   2971 fi
   2972 
   2973 
   2974     test -n "$CC" && break
   2975   done
   2976 fi
   2977 if test -z "$CC"; then
   2978   ac_ct_CC=$CC
   2979   for ac_prog in cl.exe
   2980 do
   2981   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2982 set dummy $ac_prog; ac_word=$2
   2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2984 $as_echo_n "checking for $ac_word... " >&6; }
   2985 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2986   $as_echo_n "(cached) " >&6
   2987 else
   2988   if test -n "$ac_ct_CC"; then
   2989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2990 else
   2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2992 for as_dir in $PATH
   2993 do
   2994   IFS=$as_save_IFS
   2995   test -z "$as_dir" && as_dir=.
   2996     for ac_exec_ext in '' $ac_executable_extensions; do
   2997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2998     ac_cv_prog_ac_ct_CC="$ac_prog"
   2999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3000     break 2
   3001   fi
   3002 done
   3003   done
   3004 IFS=$as_save_IFS
   3005 
   3006 fi
   3007 fi
   3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3009 if test -n "$ac_ct_CC"; then
   3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3011 $as_echo "$ac_ct_CC" >&6; }
   3012 else
   3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3014 $as_echo "no" >&6; }
   3015 fi
   3016 
   3017 
   3018   test -n "$ac_ct_CC" && break
   3019 done
   3020 
   3021   if test "x$ac_ct_CC" = x; then
   3022     CC=""
   3023   else
   3024     case $cross_compiling:$ac_tool_warned in
   3025 yes:)
   3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3028 ac_tool_warned=yes ;;
   3029 esac
   3030     CC=$ac_ct_CC
   3031   fi
   3032 fi
   3033 
   3034 fi
   3035 
   3036 
   3037 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3039 as_fn_error $? "no acceptable C compiler found in \$PATH
   3040 See \`config.log' for more details" "$LINENO" 5; }
   3041 
   3042 # Provide some information about the compiler.
   3043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3044 set X $ac_compile
   3045 ac_compiler=$2
   3046 for ac_option in --version -v -V -qversion; do
   3047   { { ac_try="$ac_compiler $ac_option >&5"
   3048 case "(($ac_try" in
   3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3050   *) ac_try_echo=$ac_try;;
   3051 esac
   3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3053 $as_echo "$ac_try_echo"; } >&5
   3054   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3055   ac_status=$?
   3056   if test -s conftest.err; then
   3057     sed '10a\
   3058 ... rest of stderr output deleted ...
   3059          10q' conftest.err >conftest.er1
   3060     cat conftest.er1 >&5
   3061   fi
   3062   rm -f conftest.er1 conftest.err
   3063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3064   test $ac_status = 0; }
   3065 done
   3066 
   3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3068 /* end confdefs.h.  */
   3069 
   3070 int
   3071 main ()
   3072 {
   3073 
   3074   ;
   3075   return 0;
   3076 }
   3077 _ACEOF
   3078 ac_clean_files_save=$ac_clean_files
   3079 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3080 # Try to create an executable without -o first, disregard a.out.
   3081 # It will help us diagnose broken compilers, and finding out an intuition
   3082 # of exeext.
   3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3084 $as_echo_n "checking whether the C compiler works... " >&6; }
   3085 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3086 
   3087 # The possible output files:
   3088 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3089 
   3090 ac_rmfiles=
   3091 for ac_file in $ac_files
   3092 do
   3093   case $ac_file in
   3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3095     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3096   esac
   3097 done
   3098 rm -f $ac_rmfiles
   3099 
   3100 if { { ac_try="$ac_link_default"
   3101 case "(($ac_try" in
   3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3103   *) ac_try_echo=$ac_try;;
   3104 esac
   3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3106 $as_echo "$ac_try_echo"; } >&5
   3107   (eval "$ac_link_default") 2>&5
   3108   ac_status=$?
   3109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3110   test $ac_status = 0; }; then :
   3111   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3112 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3113 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3114 # so that the user can short-circuit this test for compilers unknown to
   3115 # Autoconf.
   3116 for ac_file in $ac_files ''
   3117 do
   3118   test -f "$ac_file" || continue
   3119   case $ac_file in
   3120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3121 	;;
   3122     [ab].out )
   3123 	# We found the default executable, but exeext='' is most
   3124 	# certainly right.
   3125 	break;;
   3126     *.* )
   3127 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3128 	then :; else
   3129 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3130 	fi
   3131 	# We set ac_cv_exeext here because the later test for it is not
   3132 	# safe: cross compilers may not add the suffix if given an `-o'
   3133 	# argument, so we may need to know it at that point already.
   3134 	# Even if this section looks crufty: it has the advantage of
   3135 	# actually working.
   3136 	break;;
   3137     * )
   3138 	break;;
   3139   esac
   3140 done
   3141 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3142 
   3143 else
   3144   ac_file=''
   3145 fi
   3146 if test -z "$ac_file"; then :
   3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3148 $as_echo "no" >&6; }
   3149 $as_echo "$as_me: failed program was:" >&5
   3150 sed 's/^/| /' conftest.$ac_ext >&5
   3151 
   3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3154 as_fn_error 77 "C compiler cannot create executables
   3155 See \`config.log' for more details" "$LINENO" 5; }
   3156 else
   3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3158 $as_echo "yes" >&6; }
   3159 fi
   3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3161 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3163 $as_echo "$ac_file" >&6; }
   3164 ac_exeext=$ac_cv_exeext
   3165 
   3166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3167 ac_clean_files=$ac_clean_files_save
   3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3169 $as_echo_n "checking for suffix of executables... " >&6; }
   3170 if { { ac_try="$ac_link"
   3171 case "(($ac_try" in
   3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3173   *) ac_try_echo=$ac_try;;
   3174 esac
   3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3176 $as_echo "$ac_try_echo"; } >&5
   3177   (eval "$ac_link") 2>&5
   3178   ac_status=$?
   3179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3180   test $ac_status = 0; }; then :
   3181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3183 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3184 # `rm'.
   3185 for ac_file in conftest.exe conftest conftest.*; do
   3186   test -f "$ac_file" || continue
   3187   case $ac_file in
   3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3190 	  break;;
   3191     * ) break;;
   3192   esac
   3193 done
   3194 else
   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 $? "cannot compute suffix of executables: cannot compile and link
   3198 See \`config.log' for more details" "$LINENO" 5; }
   3199 fi
   3200 rm -f conftest conftest$ac_cv_exeext
   3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3202 $as_echo "$ac_cv_exeext" >&6; }
   3203 
   3204 rm -f conftest.$ac_ext
   3205 EXEEXT=$ac_cv_exeext
   3206 ac_exeext=$EXEEXT
   3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3208 /* end confdefs.h.  */
   3209 #include <stdio.h>
   3210 int
   3211 main ()
   3212 {
   3213 FILE *f = fopen ("conftest.out", "w");
   3214  return ferror (f) || fclose (f) != 0;
   3215 
   3216   ;
   3217   return 0;
   3218 }
   3219 _ACEOF
   3220 ac_clean_files="$ac_clean_files conftest.out"
   3221 # Check that the compiler produces executables we can run.  If not, either
   3222 # the compiler is broken, or we cross compile.
   3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3225 if test "$cross_compiling" != yes; then
   3226   { { ac_try="$ac_link"
   3227 case "(($ac_try" in
   3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3229   *) ac_try_echo=$ac_try;;
   3230 esac
   3231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3232 $as_echo "$ac_try_echo"; } >&5
   3233   (eval "$ac_link") 2>&5
   3234   ac_status=$?
   3235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3236   test $ac_status = 0; }
   3237   if { ac_try='./conftest$ac_cv_exeext'
   3238   { { case "(($ac_try" in
   3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3240   *) ac_try_echo=$ac_try;;
   3241 esac
   3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3243 $as_echo "$ac_try_echo"; } >&5
   3244   (eval "$ac_try") 2>&5
   3245   ac_status=$?
   3246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3247   test $ac_status = 0; }; }; then
   3248     cross_compiling=no
   3249   else
   3250     if test "$cross_compiling" = maybe; then
   3251 	cross_compiling=yes
   3252     else
   3253 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3255 as_fn_error $? "cannot run C compiled programs.
   3256 If you meant to cross compile, use \`--host'.
   3257 See \`config.log' for more details" "$LINENO" 5; }
   3258     fi
   3259   fi
   3260 fi
   3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3262 $as_echo "$cross_compiling" >&6; }
   3263 
   3264 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3265 ac_clean_files=$ac_clean_files_save
   3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3267 $as_echo_n "checking for suffix of object files... " >&6; }
   3268 if ${ac_cv_objext+:} false; then :
   3269   $as_echo_n "(cached) " >&6
   3270 else
   3271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3272 /* end confdefs.h.  */
   3273 
   3274 int
   3275 main ()
   3276 {
   3277 
   3278   ;
   3279   return 0;
   3280 }
   3281 _ACEOF
   3282 rm -f conftest.o conftest.obj
   3283 if { { ac_try="$ac_compile"
   3284 case "(($ac_try" in
   3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3286   *) ac_try_echo=$ac_try;;
   3287 esac
   3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3289 $as_echo "$ac_try_echo"; } >&5
   3290   (eval "$ac_compile") 2>&5
   3291   ac_status=$?
   3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3293   test $ac_status = 0; }; then :
   3294   for ac_file in conftest.o conftest.obj conftest.*; do
   3295   test -f "$ac_file" || continue;
   3296   case $ac_file in
   3297     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3298     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3299        break;;
   3300   esac
   3301 done
   3302 else
   3303   $as_echo "$as_me: failed program was:" >&5
   3304 sed 's/^/| /' conftest.$ac_ext >&5
   3305 
   3306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3308 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3309 See \`config.log' for more details" "$LINENO" 5; }
   3310 fi
   3311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3312 fi
   3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3314 $as_echo "$ac_cv_objext" >&6; }
   3315 OBJEXT=$ac_cv_objext
   3316 ac_objext=$OBJEXT
   3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3319 if ${ac_cv_c_compiler_gnu+:} false; then :
   3320   $as_echo_n "(cached) " >&6
   3321 else
   3322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3323 /* end confdefs.h.  */
   3324 
   3325 int
   3326 main ()
   3327 {
   3328 #ifndef __GNUC__
   3329        choke me
   3330 #endif
   3331 
   3332   ;
   3333   return 0;
   3334 }
   3335 _ACEOF
   3336 if ac_fn_c_try_compile "$LINENO"; then :
   3337   ac_compiler_gnu=yes
   3338 else
   3339   ac_compiler_gnu=no
   3340 fi
   3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3343 
   3344 fi
   3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3347 if test $ac_compiler_gnu = yes; then
   3348   GCC=yes
   3349 else
   3350   GCC=
   3351 fi
   3352 ac_test_CFLAGS=${CFLAGS+set}
   3353 ac_save_CFLAGS=$CFLAGS
   3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3356 if ${ac_cv_prog_cc_g+:} false; then :
   3357   $as_echo_n "(cached) " >&6
   3358 else
   3359   ac_save_c_werror_flag=$ac_c_werror_flag
   3360    ac_c_werror_flag=yes
   3361    ac_cv_prog_cc_g=no
   3362    CFLAGS="-g"
   3363    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3364 /* end confdefs.h.  */
   3365 
   3366 int
   3367 main ()
   3368 {
   3369 
   3370   ;
   3371   return 0;
   3372 }
   3373 _ACEOF
   3374 if ac_fn_c_try_compile "$LINENO"; then :
   3375   ac_cv_prog_cc_g=yes
   3376 else
   3377   CFLAGS=""
   3378       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3379 /* end confdefs.h.  */
   3380 
   3381 int
   3382 main ()
   3383 {
   3384 
   3385   ;
   3386   return 0;
   3387 }
   3388 _ACEOF
   3389 if ac_fn_c_try_compile "$LINENO"; then :
   3390 
   3391 else
   3392   ac_c_werror_flag=$ac_save_c_werror_flag
   3393 	 CFLAGS="-g"
   3394 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3395 /* end confdefs.h.  */
   3396 
   3397 int
   3398 main ()
   3399 {
   3400 
   3401   ;
   3402   return 0;
   3403 }
   3404 _ACEOF
   3405 if ac_fn_c_try_compile "$LINENO"; then :
   3406   ac_cv_prog_cc_g=yes
   3407 fi
   3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3409 fi
   3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3411 fi
   3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3413    ac_c_werror_flag=$ac_save_c_werror_flag
   3414 fi
   3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3416 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3417 if test "$ac_test_CFLAGS" = set; then
   3418   CFLAGS=$ac_save_CFLAGS
   3419 elif test $ac_cv_prog_cc_g = yes; then
   3420   if test "$GCC" = yes; then
   3421     CFLAGS="-g -O2"
   3422   else
   3423     CFLAGS="-g"
   3424   fi
   3425 else
   3426   if test "$GCC" = yes; then
   3427     CFLAGS="-O2"
   3428   else
   3429     CFLAGS=
   3430   fi
   3431 fi
   3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3434 if ${ac_cv_prog_cc_c89+:} false; then :
   3435   $as_echo_n "(cached) " >&6
   3436 else
   3437   ac_cv_prog_cc_c89=no
   3438 ac_save_CC=$CC
   3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3440 /* end confdefs.h.  */
   3441 #include <stdarg.h>
   3442 #include <stdio.h>
   3443 struct stat;
   3444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3445 struct buf { int x; };
   3446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3447 static char *e (p, i)
   3448      char **p;
   3449      int i;
   3450 {
   3451   return p[i];
   3452 }
   3453 static char *f (char * (*g) (char **, int), char **p, ...)
   3454 {
   3455   char *s;
   3456   va_list v;
   3457   va_start (v,p);
   3458   s = g (p, va_arg (v,int));
   3459   va_end (v);
   3460   return s;
   3461 }
   3462 
   3463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3464    function prototypes and stuff, but not '\xHH' hex character constants.
   3465    These don't provoke an error unfortunately, instead are silently treated
   3466    as 'x'.  The following induces an error, until -std is added to get
   3467    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3468    array size at least.  It's necessary to write '\x00'==0 to get something
   3469    that's true only with -std.  */
   3470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3471 
   3472 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3473    inside strings and character constants.  */
   3474 #define FOO(x) 'x'
   3475 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3476 
   3477 int test (int i, double x);
   3478 struct s1 {int (*f) (int a);};
   3479 struct s2 {int (*f) (double a);};
   3480 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3481 int argc;
   3482 char **argv;
   3483 int
   3484 main ()
   3485 {
   3486 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3487   ;
   3488   return 0;
   3489 }
   3490 _ACEOF
   3491 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3492 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3493 do
   3494   CC="$ac_save_CC $ac_arg"
   3495   if ac_fn_c_try_compile "$LINENO"; then :
   3496   ac_cv_prog_cc_c89=$ac_arg
   3497 fi
   3498 rm -f core conftest.err conftest.$ac_objext
   3499   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3500 done
   3501 rm -f conftest.$ac_ext
   3502 CC=$ac_save_CC
   3503 
   3504 fi
   3505 # AC_CACHE_VAL
   3506 case "x$ac_cv_prog_cc_c89" in
   3507   x)
   3508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3509 $as_echo "none needed" >&6; } ;;
   3510   xno)
   3511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3512 $as_echo "unsupported" >&6; } ;;
   3513   *)
   3514     CC="$CC $ac_cv_prog_cc_c89"
   3515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3516 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3517 esac
   3518 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3519 
   3520 fi
   3521 
   3522 ac_ext=c
   3523 ac_cpp='$CPP $CPPFLAGS'
   3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3527 
   3528 
   3529 ac_ext=c
   3530 ac_cpp='$CPP $CPPFLAGS'
   3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3535 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3536 # On Suns, sometimes $CPP names a directory.
   3537 if test -n "$CPP" && test -d "$CPP"; then
   3538   CPP=
   3539 fi
   3540 if test -z "$CPP"; then
   3541   if ${ac_cv_prog_CPP+:} false; then :
   3542   $as_echo_n "(cached) " >&6
   3543 else
   3544       # Double quotes because CPP needs to be expanded
   3545     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3546     do
   3547       ac_preproc_ok=false
   3548 for ac_c_preproc_warn_flag in '' yes
   3549 do
   3550   # Use a header file that comes with gcc, so configuring glibc
   3551   # with a fresh cross-compiler works.
   3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3553   # <limits.h> exists even on freestanding compilers.
   3554   # On the NeXT, cc -E runs the code through the compiler's parser,
   3555   # not just through cpp. "Syntax error" is here to catch this case.
   3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3557 /* end confdefs.h.  */
   3558 #ifdef __STDC__
   3559 # include <limits.h>
   3560 #else
   3561 # include <assert.h>
   3562 #endif
   3563 		     Syntax error
   3564 _ACEOF
   3565 if ac_fn_c_try_cpp "$LINENO"; then :
   3566 
   3567 else
   3568   # Broken: fails on valid input.
   3569 continue
   3570 fi
   3571 rm -f conftest.err conftest.i conftest.$ac_ext
   3572 
   3573   # OK, works on sane cases.  Now check whether nonexistent headers
   3574   # can be detected and how.
   3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3576 /* end confdefs.h.  */
   3577 #include <ac_nonexistent.h>
   3578 _ACEOF
   3579 if ac_fn_c_try_cpp "$LINENO"; then :
   3580   # Broken: success on invalid input.
   3581 continue
   3582 else
   3583   # Passes both tests.
   3584 ac_preproc_ok=:
   3585 break
   3586 fi
   3587 rm -f conftest.err conftest.i conftest.$ac_ext
   3588 
   3589 done
   3590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3591 rm -f conftest.i conftest.err conftest.$ac_ext
   3592 if $ac_preproc_ok; then :
   3593   break
   3594 fi
   3595 
   3596     done
   3597     ac_cv_prog_CPP=$CPP
   3598 
   3599 fi
   3600   CPP=$ac_cv_prog_CPP
   3601 else
   3602   ac_cv_prog_CPP=$CPP
   3603 fi
   3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3605 $as_echo "$CPP" >&6; }
   3606 ac_preproc_ok=false
   3607 for ac_c_preproc_warn_flag in '' yes
   3608 do
   3609   # Use a header file that comes with gcc, so configuring glibc
   3610   # with a fresh cross-compiler works.
   3611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3612   # <limits.h> exists even on freestanding compilers.
   3613   # On the NeXT, cc -E runs the code through the compiler's parser,
   3614   # not just through cpp. "Syntax error" is here to catch this case.
   3615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3616 /* end confdefs.h.  */
   3617 #ifdef __STDC__
   3618 # include <limits.h>
   3619 #else
   3620 # include <assert.h>
   3621 #endif
   3622 		     Syntax error
   3623 _ACEOF
   3624 if ac_fn_c_try_cpp "$LINENO"; then :
   3625 
   3626 else
   3627   # Broken: fails on valid input.
   3628 continue
   3629 fi
   3630 rm -f conftest.err conftest.i conftest.$ac_ext
   3631 
   3632   # OK, works on sane cases.  Now check whether nonexistent headers
   3633   # can be detected and how.
   3634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3635 /* end confdefs.h.  */
   3636 #include <ac_nonexistent.h>
   3637 _ACEOF
   3638 if ac_fn_c_try_cpp "$LINENO"; then :
   3639   # Broken: success on invalid input.
   3640 continue
   3641 else
   3642   # Passes both tests.
   3643 ac_preproc_ok=:
   3644 break
   3645 fi
   3646 rm -f conftest.err conftest.i conftest.$ac_ext
   3647 
   3648 done
   3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3650 rm -f conftest.i conftest.err conftest.$ac_ext
   3651 if $ac_preproc_ok; then :
   3652 
   3653 else
   3654   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   3657 See \`config.log' for more details" "$LINENO" 5; }
   3658 fi
   3659 
   3660 ac_ext=c
   3661 ac_cpp='$CPP $CPPFLAGS'
   3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3665 
   3666 
   3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3668 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3669 if ${ac_cv_path_GREP+:} false; then :
   3670   $as_echo_n "(cached) " >&6
   3671 else
   3672   if test -z "$GREP"; then
   3673   ac_path_GREP_found=false
   3674   # Loop through the user's path and test for each of PROGNAME-LIST
   3675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3677 do
   3678   IFS=$as_save_IFS
   3679   test -z "$as_dir" && as_dir=.
   3680     for ac_prog in grep ggrep; do
   3681     for ac_exec_ext in '' $ac_executable_extensions; do
   3682       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3683       as_fn_executable_p "$ac_path_GREP" || continue
   3684 # Check for GNU ac_path_GREP and select it if it is found.
   3685   # Check for GNU $ac_path_GREP
   3686 case `"$ac_path_GREP" --version 2>&1` in
   3687 *GNU*)
   3688   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3689 *)
   3690   ac_count=0
   3691   $as_echo_n 0123456789 >"conftest.in"
   3692   while :
   3693   do
   3694     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3695     mv "conftest.tmp" "conftest.in"
   3696     cp "conftest.in" "conftest.nl"
   3697     $as_echo 'GREP' >> "conftest.nl"
   3698     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3699     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3700     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3701     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3702       # Best one so far, save it but keep looking for a better one
   3703       ac_cv_path_GREP="$ac_path_GREP"
   3704       ac_path_GREP_max=$ac_count
   3705     fi
   3706     # 10*(2^10) chars as input seems more than enough
   3707     test $ac_count -gt 10 && break
   3708   done
   3709   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3710 esac
   3711 
   3712       $ac_path_GREP_found && break 3
   3713     done
   3714   done
   3715   done
   3716 IFS=$as_save_IFS
   3717   if test -z "$ac_cv_path_GREP"; then
   3718     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3719   fi
   3720 else
   3721   ac_cv_path_GREP=$GREP
   3722 fi
   3723 
   3724 fi
   3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3726 $as_echo "$ac_cv_path_GREP" >&6; }
   3727  GREP="$ac_cv_path_GREP"
   3728 
   3729 
   3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3731 $as_echo_n "checking for egrep... " >&6; }
   3732 if ${ac_cv_path_EGREP+:} false; then :
   3733   $as_echo_n "(cached) " >&6
   3734 else
   3735   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3736    then ac_cv_path_EGREP="$GREP -E"
   3737    else
   3738      if test -z "$EGREP"; then
   3739   ac_path_EGREP_found=false
   3740   # Loop through the user's path and test for each of PROGNAME-LIST
   3741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3743 do
   3744   IFS=$as_save_IFS
   3745   test -z "$as_dir" && as_dir=.
   3746     for ac_prog in egrep; do
   3747     for ac_exec_ext in '' $ac_executable_extensions; do
   3748       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3749       as_fn_executable_p "$ac_path_EGREP" || continue
   3750 # Check for GNU ac_path_EGREP and select it if it is found.
   3751   # Check for GNU $ac_path_EGREP
   3752 case `"$ac_path_EGREP" --version 2>&1` in
   3753 *GNU*)
   3754   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3755 *)
   3756   ac_count=0
   3757   $as_echo_n 0123456789 >"conftest.in"
   3758   while :
   3759   do
   3760     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3761     mv "conftest.tmp" "conftest.in"
   3762     cp "conftest.in" "conftest.nl"
   3763     $as_echo 'EGREP' >> "conftest.nl"
   3764     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3766     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3767     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3768       # Best one so far, save it but keep looking for a better one
   3769       ac_cv_path_EGREP="$ac_path_EGREP"
   3770       ac_path_EGREP_max=$ac_count
   3771     fi
   3772     # 10*(2^10) chars as input seems more than enough
   3773     test $ac_count -gt 10 && break
   3774   done
   3775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3776 esac
   3777 
   3778       $ac_path_EGREP_found && break 3
   3779     done
   3780   done
   3781   done
   3782 IFS=$as_save_IFS
   3783   if test -z "$ac_cv_path_EGREP"; then
   3784     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3785   fi
   3786 else
   3787   ac_cv_path_EGREP=$EGREP
   3788 fi
   3789 
   3790    fi
   3791 fi
   3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3793 $as_echo "$ac_cv_path_EGREP" >&6; }
   3794  EGREP="$ac_cv_path_EGREP"
   3795 
   3796 
   3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3798 $as_echo_n "checking for ANSI C header files... " >&6; }
   3799 if ${ac_cv_header_stdc+:} false; then :
   3800   $as_echo_n "(cached) " >&6
   3801 else
   3802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3803 /* end confdefs.h.  */
   3804 #include <stdlib.h>
   3805 #include <stdarg.h>
   3806 #include <string.h>
   3807 #include <float.h>
   3808 
   3809 int
   3810 main ()
   3811 {
   3812 
   3813   ;
   3814   return 0;
   3815 }
   3816 _ACEOF
   3817 if ac_fn_c_try_compile "$LINENO"; then :
   3818   ac_cv_header_stdc=yes
   3819 else
   3820   ac_cv_header_stdc=no
   3821 fi
   3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3823 
   3824 if test $ac_cv_header_stdc = yes; then
   3825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3827 /* end confdefs.h.  */
   3828 #include <string.h>
   3829 
   3830 _ACEOF
   3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3832   $EGREP "memchr" >/dev/null 2>&1; then :
   3833 
   3834 else
   3835   ac_cv_header_stdc=no
   3836 fi
   3837 rm -f conftest*
   3838 
   3839 fi
   3840 
   3841 if test $ac_cv_header_stdc = yes; then
   3842   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3844 /* end confdefs.h.  */
   3845 #include <stdlib.h>
   3846 
   3847 _ACEOF
   3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3849   $EGREP "free" >/dev/null 2>&1; then :
   3850 
   3851 else
   3852   ac_cv_header_stdc=no
   3853 fi
   3854 rm -f conftest*
   3855 
   3856 fi
   3857 
   3858 if test $ac_cv_header_stdc = yes; then
   3859   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3860   if test "$cross_compiling" = yes; then :
   3861   :
   3862 else
   3863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3864 /* end confdefs.h.  */
   3865 #include <ctype.h>
   3866 #include <stdlib.h>
   3867 #if ((' ' & 0x0FF) == 0x020)
   3868 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3869 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3870 #else
   3871 # define ISLOWER(c) \
   3872 		   (('a' <= (c) && (c) <= 'i') \
   3873 		     || ('j' <= (c) && (c) <= 'r') \
   3874 		     || ('s' <= (c) && (c) <= 'z'))
   3875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3876 #endif
   3877 
   3878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3879 int
   3880 main ()
   3881 {
   3882   int i;
   3883   for (i = 0; i < 256; i++)
   3884     if (XOR (islower (i), ISLOWER (i))
   3885 	|| toupper (i) != TOUPPER (i))
   3886       return 2;
   3887   return 0;
   3888 }
   3889 _ACEOF
   3890 if ac_fn_c_try_run "$LINENO"; then :
   3891 
   3892 else
   3893   ac_cv_header_stdc=no
   3894 fi
   3895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3896   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3897 fi
   3898 
   3899 fi
   3900 fi
   3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3902 $as_echo "$ac_cv_header_stdc" >&6; }
   3903 if test $ac_cv_header_stdc = yes; then
   3904 
   3905 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3906 
   3907 fi
   3908 
   3909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3910 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3911 		  inttypes.h stdint.h unistd.h
   3912 do :
   3913   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3914 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3915 "
   3916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   3917   cat >>confdefs.h <<_ACEOF
   3918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3919 _ACEOF
   3920 
   3921 fi
   3922 
   3923 done
   3924 
   3925 
   3926 
   3927   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3928 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   3929   MINIX=yes
   3930 else
   3931   MINIX=
   3932 fi
   3933 
   3934 
   3935   if test "$MINIX" = yes; then
   3936 
   3937 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3938 
   3939 
   3940 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3941 
   3942 
   3943 $as_echo "#define _MINIX 1" >>confdefs.h
   3944 
   3945   fi
   3946 
   3947 
   3948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3949 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3950 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   3951   $as_echo_n "(cached) " >&6
   3952 else
   3953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3954 /* end confdefs.h.  */
   3955 
   3956 #         define __EXTENSIONS__ 1
   3957           $ac_includes_default
   3958 int
   3959 main ()
   3960 {
   3961 
   3962   ;
   3963   return 0;
   3964 }
   3965 _ACEOF
   3966 if ac_fn_c_try_compile "$LINENO"; then :
   3967   ac_cv_safe_to_define___extensions__=yes
   3968 else
   3969   ac_cv_safe_to_define___extensions__=no
   3970 fi
   3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3972 fi
   3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3974 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3975   test $ac_cv_safe_to_define___extensions__ = yes &&
   3976     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3977 
   3978   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3979 
   3980   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3981 
   3982   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3983 
   3984   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3985 
   3986 
   3987 
   3988 #
   3989 # Enable large file support
   3990 #
   3991 # Check whether --enable-largefile was given.
   3992 if test "${enable_largefile+set}" = set; then :
   3993   enableval=$enable_largefile;
   3994 fi
   3995 
   3996 if test "$enable_largefile" != no; then
   3997 
   3998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   3999 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4000 if ${ac_cv_sys_largefile_CC+:} false; then :
   4001   $as_echo_n "(cached) " >&6
   4002 else
   4003   ac_cv_sys_largefile_CC=no
   4004      if test "$GCC" != yes; then
   4005        ac_save_CC=$CC
   4006        while :; do
   4007 	 # IRIX 6.2 and later do not support large files by default,
   4008 	 # so use the C compiler's -n32 option if that helps.
   4009 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4010 /* end confdefs.h.  */
   4011 #include <sys/types.h>
   4012  /* Check that off_t can represent 2**63 - 1 correctly.
   4013     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4014     since some C++ compilers masquerading as C compilers
   4015     incorrectly reject 9223372036854775807.  */
   4016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4017   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4018 		       && LARGE_OFF_T % 2147483647 == 1)
   4019 		      ? 1 : -1];
   4020 int
   4021 main ()
   4022 {
   4023 
   4024   ;
   4025   return 0;
   4026 }
   4027 _ACEOF
   4028 	 if ac_fn_c_try_compile "$LINENO"; then :
   4029   break
   4030 fi
   4031 rm -f core conftest.err conftest.$ac_objext
   4032 	 CC="$CC -n32"
   4033 	 if ac_fn_c_try_compile "$LINENO"; then :
   4034   ac_cv_sys_largefile_CC=' -n32'; break
   4035 fi
   4036 rm -f core conftest.err conftest.$ac_objext
   4037 	 break
   4038        done
   4039        CC=$ac_save_CC
   4040        rm -f conftest.$ac_ext
   4041     fi
   4042 fi
   4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4044 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4045   if test "$ac_cv_sys_largefile_CC" != no; then
   4046     CC=$CC$ac_cv_sys_largefile_CC
   4047   fi
   4048 
   4049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4050 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4051 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4052   $as_echo_n "(cached) " >&6
   4053 else
   4054   while :; do
   4055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4056 /* end confdefs.h.  */
   4057 #include <sys/types.h>
   4058  /* Check that off_t can represent 2**63 - 1 correctly.
   4059     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4060     since some C++ compilers masquerading as C compilers
   4061     incorrectly reject 9223372036854775807.  */
   4062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4063   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4064 		       && LARGE_OFF_T % 2147483647 == 1)
   4065 		      ? 1 : -1];
   4066 int
   4067 main ()
   4068 {
   4069 
   4070   ;
   4071   return 0;
   4072 }
   4073 _ACEOF
   4074 if ac_fn_c_try_compile "$LINENO"; then :
   4075   ac_cv_sys_file_offset_bits=no; break
   4076 fi
   4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4079 /* end confdefs.h.  */
   4080 #define _FILE_OFFSET_BITS 64
   4081 #include <sys/types.h>
   4082  /* Check that off_t can represent 2**63 - 1 correctly.
   4083     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4084     since some C++ compilers masquerading as C compilers
   4085     incorrectly reject 9223372036854775807.  */
   4086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4087   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4088 		       && LARGE_OFF_T % 2147483647 == 1)
   4089 		      ? 1 : -1];
   4090 int
   4091 main ()
   4092 {
   4093 
   4094   ;
   4095   return 0;
   4096 }
   4097 _ACEOF
   4098 if ac_fn_c_try_compile "$LINENO"; then :
   4099   ac_cv_sys_file_offset_bits=64; break
   4100 fi
   4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4102   ac_cv_sys_file_offset_bits=unknown
   4103   break
   4104 done
   4105 fi
   4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4107 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4108 case $ac_cv_sys_file_offset_bits in #(
   4109   no | unknown) ;;
   4110   *)
   4111 cat >>confdefs.h <<_ACEOF
   4112 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4113 _ACEOF
   4114 ;;
   4115 esac
   4116 rm -rf conftest*
   4117   if test $ac_cv_sys_file_offset_bits = unknown; then
   4118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4119 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4120 if ${ac_cv_sys_large_files+:} false; then :
   4121   $as_echo_n "(cached) " >&6
   4122 else
   4123   while :; do
   4124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4125 /* end confdefs.h.  */
   4126 #include <sys/types.h>
   4127  /* Check that off_t can represent 2**63 - 1 correctly.
   4128     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4129     since some C++ compilers masquerading as C compilers
   4130     incorrectly reject 9223372036854775807.  */
   4131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4132   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4133 		       && LARGE_OFF_T % 2147483647 == 1)
   4134 		      ? 1 : -1];
   4135 int
   4136 main ()
   4137 {
   4138 
   4139   ;
   4140   return 0;
   4141 }
   4142 _ACEOF
   4143 if ac_fn_c_try_compile "$LINENO"; then :
   4144   ac_cv_sys_large_files=no; break
   4145 fi
   4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4148 /* end confdefs.h.  */
   4149 #define _LARGE_FILES 1
   4150 #include <sys/types.h>
   4151  /* Check that off_t can represent 2**63 - 1 correctly.
   4152     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4153     since some C++ compilers masquerading as C compilers
   4154     incorrectly reject 9223372036854775807.  */
   4155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4156   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4157 		       && LARGE_OFF_T % 2147483647 == 1)
   4158 		      ? 1 : -1];
   4159 int
   4160 main ()
   4161 {
   4162 
   4163   ;
   4164   return 0;
   4165 }
   4166 _ACEOF
   4167 if ac_fn_c_try_compile "$LINENO"; then :
   4168   ac_cv_sys_large_files=1; break
   4169 fi
   4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4171   ac_cv_sys_large_files=unknown
   4172   break
   4173 done
   4174 fi
   4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4176 $as_echo "$ac_cv_sys_large_files" >&6; }
   4177 case $ac_cv_sys_large_files in #(
   4178   no | unknown) ;;
   4179   *)
   4180 cat >>confdefs.h <<_ACEOF
   4181 #define _LARGE_FILES $ac_cv_sys_large_files
   4182 _ACEOF
   4183 ;;
   4184 esac
   4185 rm -rf conftest*
   4186   fi
   4187 
   4188 
   4189 fi
   4190 
   4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
   4192 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
   4193 if ${ac_cv_sys_largefile_source+:} false; then :
   4194   $as_echo_n "(cached) " >&6
   4195 else
   4196   while :; do
   4197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4198 /* end confdefs.h.  */
   4199 #include <sys/types.h> /* for off_t */
   4200      #include <stdio.h>
   4201 int
   4202 main ()
   4203 {
   4204 int (*fp) (FILE *, off_t, int) = fseeko;
   4205      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4206   ;
   4207   return 0;
   4208 }
   4209 _ACEOF
   4210 if ac_fn_c_try_link "$LINENO"; then :
   4211   ac_cv_sys_largefile_source=no; break
   4212 fi
   4213 rm -f core conftest.err conftest.$ac_objext \
   4214     conftest$ac_exeext conftest.$ac_ext
   4215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4216 /* end confdefs.h.  */
   4217 #define _LARGEFILE_SOURCE 1
   4218 #include <sys/types.h> /* for off_t */
   4219      #include <stdio.h>
   4220 int
   4221 main ()
   4222 {
   4223 int (*fp) (FILE *, off_t, int) = fseeko;
   4224      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
   4225   ;
   4226   return 0;
   4227 }
   4228 _ACEOF
   4229 if ac_fn_c_try_link "$LINENO"; then :
   4230   ac_cv_sys_largefile_source=1; break
   4231 fi
   4232 rm -f core conftest.err conftest.$ac_objext \
   4233     conftest$ac_exeext conftest.$ac_ext
   4234   ac_cv_sys_largefile_source=unknown
   4235   break
   4236 done
   4237 fi
   4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
   4239 $as_echo "$ac_cv_sys_largefile_source" >&6; }
   4240 case $ac_cv_sys_largefile_source in #(
   4241   no | unknown) ;;
   4242   *)
   4243 cat >>confdefs.h <<_ACEOF
   4244 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
   4245 _ACEOF
   4246 ;;
   4247 esac
   4248 rm -rf conftest*
   4249 
   4250 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
   4251 # in glibc 2.1.3, but that breaks too many other things.
   4252 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
   4253 if test $ac_cv_sys_largefile_source != unknown; then
   4254 
   4255 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
   4256 
   4257 fi
   4258 
   4259 
   4260 LFS_CFLAGS=`getconf LFS_CFLAGS 2>/dev/null`
   4261 LFS_LDFLAGS=`getconf LFS_LDFLAGS 2>/dev/null`
   4262 LFS_LIBS=`getconf LFS_LIBS 2>/dev/null`
   4263 
   4264 
   4265 
   4266 
   4267 
   4268 # Enable RFC 3542 APIs on macOS
   4269 
   4270 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
   4271 
   4272 
   4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4275 set x ${MAKE-make}
   4276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   4278   $as_echo_n "(cached) " >&6
   4279 else
   4280   cat >conftest.make <<\_ACEOF
   4281 SHELL = /bin/sh
   4282 all:
   4283 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4284 _ACEOF
   4285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   4286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4287   *@@@%%%=?*=@@@%%%*)
   4288     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4289   *)
   4290     eval ac_cv_prog_make_${ac_make}_set=no;;
   4291 esac
   4292 rm -f conftest.make
   4293 fi
   4294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4296 $as_echo "yes" >&6; }
   4297   SET_MAKE=
   4298 else
   4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4300 $as_echo "no" >&6; }
   4301   SET_MAKE="MAKE=${MAKE-make}"
   4302 fi
   4303 
   4304 
   4305 case `pwd` in
   4306   *\ * | *\	*)
   4307     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   4308 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   4309 esac
   4310 
   4311 
   4312 
   4313 macro_version='2.4.6'
   4314 macro_revision='2.4.6'
   4315 
   4316 
   4317 
   4318 
   4319 
   4320 
   4321 
   4322 
   4323 
   4324 
   4325 
   4326 
   4327 
   4328 ltmain=$ac_aux_dir/ltmain.sh
   4329 
   4330 # Backslashify metacharacters that are still active within
   4331 # double-quoted strings.
   4332 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   4333 
   4334 # Same as above, but do not quote variable references.
   4335 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   4336 
   4337 # Sed substitution to delay expansion of an escaped shell variable in a
   4338 # double_quote_subst'ed string.
   4339 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   4340 
   4341 # Sed substitution to delay expansion of an escaped single quote.
   4342 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   4343 
   4344 # Sed substitution to avoid accidental globbing in evaled expressions
   4345 no_glob_subst='s/\*/\\\*/g'
   4346 
   4347 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   4348 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   4349 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   4350 
   4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
   4352 $as_echo_n "checking how to print strings... " >&6; }
   4353 # Test print first, because it will be a builtin if present.
   4354 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   4355    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   4356   ECHO='print -r --'
   4357 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   4358   ECHO='printf %s\n'
   4359 else
   4360   # Use this function as a fallback that always works.
   4361   func_fallback_echo ()
   4362   {
   4363     eval 'cat <<_LTECHO_EOF
   4364 $1
   4365 _LTECHO_EOF'
   4366   }
   4367   ECHO='func_fallback_echo'
   4368 fi
   4369 
   4370 # func_echo_all arg...
   4371 # Invoke $ECHO with all args, space-separated.
   4372 func_echo_all ()
   4373 {
   4374     $ECHO ""
   4375 }
   4376 
   4377 case $ECHO in
   4378   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
   4379 $as_echo "printf" >&6; } ;;
   4380   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
   4381 $as_echo "print -r" >&6; } ;;
   4382   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
   4383 $as_echo "cat" >&6; } ;;
   4384 esac
   4385 
   4386 
   4387 
   4388 
   4389 
   4390 
   4391 
   4392 
   4393 
   4394 
   4395 
   4396 
   4397 
   4398 
   4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   4400 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   4401 if ${ac_cv_path_SED+:} false; then :
   4402   $as_echo_n "(cached) " >&6
   4403 else
   4404             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   4405      for ac_i in 1 2 3 4 5 6 7; do
   4406        ac_script="$ac_script$as_nl$ac_script"
   4407      done
   4408      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   4409      { ac_script=; unset ac_script;}
   4410      if test -z "$SED"; then
   4411   ac_path_SED_found=false
   4412   # Loop through the user's path and test for each of PROGNAME-LIST
   4413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4414 for as_dir in $PATH
   4415 do
   4416   IFS=$as_save_IFS
   4417   test -z "$as_dir" && as_dir=.
   4418     for ac_prog in sed gsed; do
   4419     for ac_exec_ext in '' $ac_executable_extensions; do
   4420       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   4421       as_fn_executable_p "$ac_path_SED" || continue
   4422 # Check for GNU ac_path_SED and select it if it is found.
   4423   # Check for GNU $ac_path_SED
   4424 case `"$ac_path_SED" --version 2>&1` in
   4425 *GNU*)
   4426   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   4427 *)
   4428   ac_count=0
   4429   $as_echo_n 0123456789 >"conftest.in"
   4430   while :
   4431   do
   4432     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4433     mv "conftest.tmp" "conftest.in"
   4434     cp "conftest.in" "conftest.nl"
   4435     $as_echo '' >> "conftest.nl"
   4436     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4437     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4438     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4439     if test $ac_count -gt ${ac_path_SED_max-0}; then
   4440       # Best one so far, save it but keep looking for a better one
   4441       ac_cv_path_SED="$ac_path_SED"
   4442       ac_path_SED_max=$ac_count
   4443     fi
   4444     # 10*(2^10) chars as input seems more than enough
   4445     test $ac_count -gt 10 && break
   4446   done
   4447   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4448 esac
   4449 
   4450       $ac_path_SED_found && break 3
   4451     done
   4452   done
   4453   done
   4454 IFS=$as_save_IFS
   4455   if test -z "$ac_cv_path_SED"; then
   4456     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   4457   fi
   4458 else
   4459   ac_cv_path_SED=$SED
   4460 fi
   4461 
   4462 fi
   4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   4464 $as_echo "$ac_cv_path_SED" >&6; }
   4465  SED="$ac_cv_path_SED"
   4466   rm -f conftest.sed
   4467 
   4468 test -z "$SED" && SED=sed
   4469 Xsed="$SED -e 1s/^X//"
   4470 
   4471 
   4472 
   4473 
   4474 
   4475 
   4476 
   4477 
   4478 
   4479 
   4480 
   4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
   4482 $as_echo_n "checking for fgrep... " >&6; }
   4483 if ${ac_cv_path_FGREP+:} false; then :
   4484   $as_echo_n "(cached) " >&6
   4485 else
   4486   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   4487    then ac_cv_path_FGREP="$GREP -F"
   4488    else
   4489      if test -z "$FGREP"; then
   4490   ac_path_FGREP_found=false
   4491   # Loop through the user's path and test for each of PROGNAME-LIST
   4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4494 do
   4495   IFS=$as_save_IFS
   4496   test -z "$as_dir" && as_dir=.
   4497     for ac_prog in fgrep; do
   4498     for ac_exec_ext in '' $ac_executable_extensions; do
   4499       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   4500       as_fn_executable_p "$ac_path_FGREP" || continue
   4501 # Check for GNU ac_path_FGREP and select it if it is found.
   4502   # Check for GNU $ac_path_FGREP
   4503 case `"$ac_path_FGREP" --version 2>&1` in
   4504 *GNU*)
   4505   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   4506 *)
   4507   ac_count=0
   4508   $as_echo_n 0123456789 >"conftest.in"
   4509   while :
   4510   do
   4511     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4512     mv "conftest.tmp" "conftest.in"
   4513     cp "conftest.in" "conftest.nl"
   4514     $as_echo 'FGREP' >> "conftest.nl"
   4515     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4516     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4517     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4518     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   4519       # Best one so far, save it but keep looking for a better one
   4520       ac_cv_path_FGREP="$ac_path_FGREP"
   4521       ac_path_FGREP_max=$ac_count
   4522     fi
   4523     # 10*(2^10) chars as input seems more than enough
   4524     test $ac_count -gt 10 && break
   4525   done
   4526   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4527 esac
   4528 
   4529       $ac_path_FGREP_found && break 3
   4530     done
   4531   done
   4532   done
   4533 IFS=$as_save_IFS
   4534   if test -z "$ac_cv_path_FGREP"; then
   4535     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4536   fi
   4537 else
   4538   ac_cv_path_FGREP=$FGREP
   4539 fi
   4540 
   4541    fi
   4542 fi
   4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
   4544 $as_echo "$ac_cv_path_FGREP" >&6; }
   4545  FGREP="$ac_cv_path_FGREP"
   4546 
   4547 
   4548 test -z "$GREP" && GREP=grep
   4549 
   4550 
   4551 
   4552 
   4553 
   4554 
   4555 
   4556 
   4557 
   4558 
   4559 
   4560 
   4561 
   4562 
   4563 
   4564 
   4565 
   4566 
   4567 
   4568 # Check whether --with-gnu-ld was given.
   4569 if test "${with_gnu_ld+set}" = set; then :
   4570   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
   4571 else
   4572   with_gnu_ld=no
   4573 fi
   4574 
   4575 ac_prog=ld
   4576 if test yes = "$GCC"; then
   4577   # Check if gcc -print-prog-name=ld gives a path.
   4578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
   4579 $as_echo_n "checking for ld used by $CC... " >&6; }
   4580   case $host in
   4581   *-*-mingw*)
   4582     # gcc leaves a trailing carriage return, which upsets mingw
   4583     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   4584   *)
   4585     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   4586   esac
   4587   case $ac_prog in
   4588     # Accept absolute paths.
   4589     [\\/]* | ?:[\\/]*)
   4590       re_direlt='/[^/][^/]*/\.\./'
   4591       # Canonicalize the pathname of ld
   4592       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4593       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4594 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4595       done
   4596       test -z "$LD" && LD=$ac_prog
   4597       ;;
   4598   "")
   4599     # If it fails, then pretend we aren't using GCC.
   4600     ac_prog=ld
   4601     ;;
   4602   *)
   4603     # If it is relative, then search for the first ld in PATH.
   4604     with_gnu_ld=unknown
   4605     ;;
   4606   esac
   4607 elif test yes = "$with_gnu_ld"; then
   4608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   4609 $as_echo_n "checking for GNU ld... " >&6; }
   4610 else
   4611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   4612 $as_echo_n "checking for non-GNU ld... " >&6; }
   4613 fi
   4614 if ${lt_cv_path_LD+:} false; then :
   4615   $as_echo_n "(cached) " >&6
   4616 else
   4617   if test -z "$LD"; then
   4618   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4619   for ac_dir in $PATH; do
   4620     IFS=$lt_save_ifs
   4621     test -z "$ac_dir" && ac_dir=.
   4622     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4623       lt_cv_path_LD=$ac_dir/$ac_prog
   4624       # Check to see if the program is GNU ld.  I'd rather use --version,
   4625       # but apparently some variants of GNU ld only accept -v.
   4626       # Break only if it was the GNU/non-GNU ld that we prefer.
   4627       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4628       *GNU* | *'with BFD'*)
   4629 	test no != "$with_gnu_ld" && break
   4630 	;;
   4631       *)
   4632 	test yes != "$with_gnu_ld" && break
   4633 	;;
   4634       esac
   4635     fi
   4636   done
   4637   IFS=$lt_save_ifs
   4638 else
   4639   lt_cv_path_LD=$LD # Let the user override the test with a path.
   4640 fi
   4641 fi
   4642 
   4643 LD=$lt_cv_path_LD
   4644 if test -n "$LD"; then
   4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   4646 $as_echo "$LD" >&6; }
   4647 else
   4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4649 $as_echo "no" >&6; }
   4650 fi
   4651 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   4653 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   4654 if ${lt_cv_prog_gnu_ld+:} false; then :
   4655   $as_echo_n "(cached) " >&6
   4656 else
   4657   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4658 case `$LD -v 2>&1 </dev/null` in
   4659 *GNU* | *'with BFD'*)
   4660   lt_cv_prog_gnu_ld=yes
   4661   ;;
   4662 *)
   4663   lt_cv_prog_gnu_ld=no
   4664   ;;
   4665 esac
   4666 fi
   4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
   4668 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
   4669 with_gnu_ld=$lt_cv_prog_gnu_ld
   4670 
   4671 
   4672 
   4673 
   4674 
   4675 
   4676 
   4677 
   4678 
   4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
   4680 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
   4681 if ${lt_cv_path_NM+:} false; then :
   4682   $as_echo_n "(cached) " >&6
   4683 else
   4684   if test -n "$NM"; then
   4685   # Let the user override the test.
   4686   lt_cv_path_NM=$NM
   4687 else
   4688   lt_nm_to_check=${ac_tool_prefix}nm
   4689   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4690     lt_nm_to_check="$lt_nm_to_check nm"
   4691   fi
   4692   for lt_tmp_nm in $lt_nm_to_check; do
   4693     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   4694     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4695       IFS=$lt_save_ifs
   4696       test -z "$ac_dir" && ac_dir=.
   4697       tmp_nm=$ac_dir/$lt_tmp_nm
   4698       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
   4699 	# Check to see if the nm accepts a BSD-compat flag.
   4700 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
   4701 	#   nm: unknown option "B" ignored
   4702 	# Tru64's nm complains that /dev/null is an invalid object file
   4703 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
   4704 	case $build_os in
   4705 	mingw*) lt_bad_file=conftest.nm/nofile ;;
   4706 	*) lt_bad_file=/dev/null ;;
   4707 	esac
   4708 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
   4709 	*$lt_bad_file* | *'Invalid file or object type'*)
   4710 	  lt_cv_path_NM="$tmp_nm -B"
   4711 	  break 2
   4712 	  ;;
   4713 	*)
   4714 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4715 	  */dev/null*)
   4716 	    lt_cv_path_NM="$tmp_nm -p"
   4717 	    break 2
   4718 	    ;;
   4719 	  *)
   4720 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4721 	    continue # so that we can try to find one that supports BSD flags
   4722 	    ;;
   4723 	  esac
   4724 	  ;;
   4725 	esac
   4726       fi
   4727     done
   4728     IFS=$lt_save_ifs
   4729   done
   4730   : ${lt_cv_path_NM=no}
   4731 fi
   4732 fi
   4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
   4734 $as_echo "$lt_cv_path_NM" >&6; }
   4735 if test no != "$lt_cv_path_NM"; then
   4736   NM=$lt_cv_path_NM
   4737 else
   4738   # Didn't find any BSD compatible name lister, look for dumpbin.
   4739   if test -n "$DUMPBIN"; then :
   4740     # Let the user override the test.
   4741   else
   4742     if test -n "$ac_tool_prefix"; then
   4743   for ac_prog in dumpbin "link -dump"
   4744   do
   4745     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4748 $as_echo_n "checking for $ac_word... " >&6; }
   4749 if ${ac_cv_prog_DUMPBIN+:} false; then :
   4750   $as_echo_n "(cached) " >&6
   4751 else
   4752   if test -n "$DUMPBIN"; then
   4753   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4754 else
   4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4756 for as_dir in $PATH
   4757 do
   4758   IFS=$as_save_IFS
   4759   test -z "$as_dir" && as_dir=.
   4760     for ac_exec_ext in '' $ac_executable_extensions; do
   4761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4762     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4764     break 2
   4765   fi
   4766 done
   4767   done
   4768 IFS=$as_save_IFS
   4769 
   4770 fi
   4771 fi
   4772 DUMPBIN=$ac_cv_prog_DUMPBIN
   4773 if test -n "$DUMPBIN"; then
   4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
   4775 $as_echo "$DUMPBIN" >&6; }
   4776 else
   4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4778 $as_echo "no" >&6; }
   4779 fi
   4780 
   4781 
   4782     test -n "$DUMPBIN" && break
   4783   done
   4784 fi
   4785 if test -z "$DUMPBIN"; then
   4786   ac_ct_DUMPBIN=$DUMPBIN
   4787   for ac_prog in dumpbin "link -dump"
   4788 do
   4789   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4790 set dummy $ac_prog; ac_word=$2
   4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4792 $as_echo_n "checking for $ac_word... " >&6; }
   4793 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
   4794   $as_echo_n "(cached) " >&6
   4795 else
   4796   if test -n "$ac_ct_DUMPBIN"; then
   4797   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4798 else
   4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4800 for as_dir in $PATH
   4801 do
   4802   IFS=$as_save_IFS
   4803   test -z "$as_dir" && as_dir=.
   4804     for ac_exec_ext in '' $ac_executable_extensions; do
   4805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4806     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4808     break 2
   4809   fi
   4810 done
   4811   done
   4812 IFS=$as_save_IFS
   4813 
   4814 fi
   4815 fi
   4816 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4817 if test -n "$ac_ct_DUMPBIN"; then
   4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
   4819 $as_echo "$ac_ct_DUMPBIN" >&6; }
   4820 else
   4821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4822 $as_echo "no" >&6; }
   4823 fi
   4824 
   4825 
   4826   test -n "$ac_ct_DUMPBIN" && break
   4827 done
   4828 
   4829   if test "x$ac_ct_DUMPBIN" = x; then
   4830     DUMPBIN=":"
   4831   else
   4832     case $cross_compiling:$ac_tool_warned in
   4833 yes:)
   4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4836 ac_tool_warned=yes ;;
   4837 esac
   4838     DUMPBIN=$ac_ct_DUMPBIN
   4839   fi
   4840 fi
   4841 
   4842     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
   4843     *COFF*)
   4844       DUMPBIN="$DUMPBIN -symbols -headers"
   4845       ;;
   4846     *)
   4847       DUMPBIN=:
   4848       ;;
   4849     esac
   4850   fi
   4851 
   4852   if test : != "$DUMPBIN"; then
   4853     NM=$DUMPBIN
   4854   fi
   4855 fi
   4856 test -z "$NM" && NM=nm
   4857 
   4858 
   4859 
   4860 
   4861 
   4862 
   4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
   4864 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
   4865 if ${lt_cv_nm_interface+:} false; then :
   4866   $as_echo_n "(cached) " >&6
   4867 else
   4868   lt_cv_nm_interface="BSD nm"
   4869   echo "int some_variable = 0;" > conftest.$ac_ext
   4870   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
   4871   (eval "$ac_compile" 2>conftest.err)
   4872   cat conftest.err >&5
   4873   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4874   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4875   cat conftest.err >&5
   4876   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
   4877   cat conftest.out >&5
   4878   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4879     lt_cv_nm_interface="MS dumpbin"
   4880   fi
   4881   rm -f conftest*
   4882 fi
   4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
   4884 $as_echo "$lt_cv_nm_interface" >&6; }
   4885 
   4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   4887 $as_echo_n "checking whether ln -s works... " >&6; }
   4888 LN_S=$as_ln_s
   4889 if test "$LN_S" = "ln -s"; then
   4890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4891 $as_echo "yes" >&6; }
   4892 else
   4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   4894 $as_echo "no, using $LN_S" >&6; }
   4895 fi
   4896 
   4897 # find the maximum length of command line arguments
   4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
   4899 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
   4900 if ${lt_cv_sys_max_cmd_len+:} false; then :
   4901   $as_echo_n "(cached) " >&6
   4902 else
   4903     i=0
   4904   teststring=ABCD
   4905 
   4906   case $build_os in
   4907   msdosdjgpp*)
   4908     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4909     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4910     # during glob expansion).  Even if it were fixed, the result of this
   4911     # check would be larger than it should be.
   4912     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4913     ;;
   4914 
   4915   gnu*)
   4916     # Under GNU Hurd, this test is not required because there is
   4917     # no limit to the length of command line arguments.
   4918     # Libtool will interpret -1 as no limit whatsoever
   4919     lt_cv_sys_max_cmd_len=-1;
   4920     ;;
   4921 
   4922   cygwin* | mingw* | cegcc*)
   4923     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4924     # about 5 minutes as the teststring grows exponentially.
   4925     # Worse, since 9x/ME are not pre-emptively multitasking,
   4926     # you end up with a "frozen" computer, even though with patience
   4927     # the test eventually succeeds (with a max line length of 256k).
   4928     # Instead, let's just punt: use the minimum linelength reported by
   4929     # all of the supported platforms: 8192 (on NT/2K/XP).
   4930     lt_cv_sys_max_cmd_len=8192;
   4931     ;;
   4932 
   4933   mint*)
   4934     # On MiNT this can take a long time and run out of memory.
   4935     lt_cv_sys_max_cmd_len=8192;
   4936     ;;
   4937 
   4938   amigaos*)
   4939     # On AmigaOS with pdksh, this test takes hours, literally.
   4940     # So we just punt and use a minimum line length of 8192.
   4941     lt_cv_sys_max_cmd_len=8192;
   4942     ;;
   4943 
   4944   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
   4945     # This has been around since 386BSD, at least.  Likely further.
   4946     if test -x /sbin/sysctl; then
   4947       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4948     elif test -x /usr/sbin/sysctl; then
   4949       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4950     else
   4951       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4952     fi
   4953     # And add a safety zone
   4954     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4955     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4956     ;;
   4957 
   4958   interix*)
   4959     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4960     lt_cv_sys_max_cmd_len=196608
   4961     ;;
   4962 
   4963   os2*)
   4964     # The test takes a long time on OS/2.
   4965     lt_cv_sys_max_cmd_len=8192
   4966     ;;
   4967 
   4968   osf*)
   4969     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4970     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4971     # nice to cause kernel panics so lets avoid the loop below.
   4972     # First set a reasonable default.
   4973     lt_cv_sys_max_cmd_len=16384
   4974     #
   4975     if test -x /sbin/sysconfig; then
   4976       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4977         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4978       esac
   4979     fi
   4980     ;;
   4981   sco3.2v5*)
   4982     lt_cv_sys_max_cmd_len=102400
   4983     ;;
   4984   sysv5* | sco5v6* | sysv4.2uw2*)
   4985     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4986     if test -n "$kargmax"; then
   4987       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4988     else
   4989       lt_cv_sys_max_cmd_len=32768
   4990     fi
   4991     ;;
   4992   *)
   4993     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4994     if test -n "$lt_cv_sys_max_cmd_len" && \
   4995        test undefined != "$lt_cv_sys_max_cmd_len"; then
   4996       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4997       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4998     else
   4999       # Make teststring a little bigger before we do anything with it.
   5000       # a 1K string should be a reasonable start.
   5001       for i in 1 2 3 4 5 6 7 8; do
   5002         teststring=$teststring$teststring
   5003       done
   5004       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   5005       # If test is not a shell built-in, we'll probably end up computing a
   5006       # maximum length that is only half of the actual maximum length, but
   5007       # we can't tell.
   5008       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
   5009 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   5010 	      test 17 != "$i" # 1/2 MB should be enough
   5011       do
   5012         i=`expr $i + 1`
   5013         teststring=$teststring$teststring
   5014       done
   5015       # Only check the string length outside the loop.
   5016       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   5017       teststring=
   5018       # Add a significant safety factor because C++ compilers can tack on
   5019       # massive amounts of additional arguments before passing them to the
   5020       # linker.  It appears as though 1/2 is a usable value.
   5021       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5022     fi
   5023     ;;
   5024   esac
   5025 
   5026 fi
   5027 
   5028 if test -n "$lt_cv_sys_max_cmd_len"; then
   5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
   5030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
   5031 else
   5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
   5033 $as_echo "none" >&6; }
   5034 fi
   5035 max_cmd_len=$lt_cv_sys_max_cmd_len
   5036 
   5037 
   5038 
   5039 
   5040 
   5041 
   5042 : ${CP="cp -f"}
   5043 : ${MV="mv -f"}
   5044 : ${RM="rm -f"}
   5045 
   5046 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   5047   lt_unset=unset
   5048 else
   5049   lt_unset=false
   5050 fi
   5051 
   5052 
   5053 
   5054 
   5055 
   5056 # test EBCDIC or ASCII
   5057 case `echo X|tr X '\101'` in
   5058  A) # ASCII based system
   5059     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   5060   lt_SP2NL='tr \040 \012'
   5061   lt_NL2SP='tr \015\012 \040\040'
   5062   ;;
   5063  *) # EBCDIC based system
   5064   lt_SP2NL='tr \100 \n'
   5065   lt_NL2SP='tr \r\n \100\100'
   5066   ;;
   5067 esac
   5068 
   5069 
   5070 
   5071 
   5072 
   5073 
   5074 
   5075 
   5076 
   5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
   5078 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
   5079 if ${lt_cv_to_host_file_cmd+:} false; then :
   5080   $as_echo_n "(cached) " >&6
   5081 else
   5082   case $host in
   5083   *-*-mingw* )
   5084     case $build in
   5085       *-*-mingw* ) # actually msys
   5086         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
   5087         ;;
   5088       *-*-cygwin* )
   5089         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
   5090         ;;
   5091       * ) # otherwise, assume *nix
   5092         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
   5093         ;;
   5094     esac
   5095     ;;
   5096   *-*-cygwin* )
   5097     case $build in
   5098       *-*-mingw* ) # actually msys
   5099         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
   5100         ;;
   5101       *-*-cygwin* )
   5102         lt_cv_to_host_file_cmd=func_convert_file_noop
   5103         ;;
   5104       * ) # otherwise, assume *nix
   5105         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
   5106         ;;
   5107     esac
   5108     ;;
   5109   * ) # unhandled hosts (and "normal" native builds)
   5110     lt_cv_to_host_file_cmd=func_convert_file_noop
   5111     ;;
   5112 esac
   5113 
   5114 fi
   5115 
   5116 to_host_file_cmd=$lt_cv_to_host_file_cmd
   5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
   5118 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
   5119 
   5120 
   5121 
   5122 
   5123 
   5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
   5125 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
   5126 if ${lt_cv_to_tool_file_cmd+:} false; then :
   5127   $as_echo_n "(cached) " >&6
   5128 else
   5129   #assume ordinary cross tools, or native build.
   5130 lt_cv_to_tool_file_cmd=func_convert_file_noop
   5131 case $host in
   5132   *-*-mingw* )
   5133     case $build in
   5134       *-*-mingw* ) # actually msys
   5135         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
   5136         ;;
   5137     esac
   5138     ;;
   5139 esac
   5140 
   5141 fi
   5142 
   5143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
   5145 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
   5146 
   5147 
   5148 
   5149 
   5150 
   5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
   5152 $as_echo_n "checking for $LD option to reload object files... " >&6; }
   5153 if ${lt_cv_ld_reload_flag+:} false; then :
   5154   $as_echo_n "(cached) " >&6
   5155 else
   5156   lt_cv_ld_reload_flag='-r'
   5157 fi
   5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
   5159 $as_echo "$lt_cv_ld_reload_flag" >&6; }
   5160 reload_flag=$lt_cv_ld_reload_flag
   5161 case $reload_flag in
   5162 "" | " "*) ;;
   5163 *) reload_flag=" $reload_flag" ;;
   5164 esac
   5165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5166 case $host_os in
   5167   cygwin* | mingw* | pw32* | cegcc*)
   5168     if test yes != "$GCC"; then
   5169       reload_cmds=false
   5170     fi
   5171     ;;
   5172   darwin*)
   5173     if test yes = "$GCC"; then
   5174       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
   5175     else
   5176       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   5177     fi
   5178     ;;
   5179 esac
   5180 
   5181 
   5182 
   5183 
   5184 
   5185 
   5186 
   5187 
   5188 
   5189 if test -n "$ac_tool_prefix"; then
   5190   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   5191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5193 $as_echo_n "checking for $ac_word... " >&6; }
   5194 if ${ac_cv_prog_OBJDUMP+:} false; then :
   5195   $as_echo_n "(cached) " >&6
   5196 else
   5197   if test -n "$OBJDUMP"; then
   5198   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   5199 else
   5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5201 for as_dir in $PATH
   5202 do
   5203   IFS=$as_save_IFS
   5204   test -z "$as_dir" && as_dir=.
   5205     for ac_exec_ext in '' $ac_executable_extensions; do
   5206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5207     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   5208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5209     break 2
   5210   fi
   5211 done
   5212   done
   5213 IFS=$as_save_IFS
   5214 
   5215 fi
   5216 fi
   5217 OBJDUMP=$ac_cv_prog_OBJDUMP
   5218 if test -n "$OBJDUMP"; then
   5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
   5220 $as_echo "$OBJDUMP" >&6; }
   5221 else
   5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5223 $as_echo "no" >&6; }
   5224 fi
   5225 
   5226 
   5227 fi
   5228 if test -z "$ac_cv_prog_OBJDUMP"; then
   5229   ac_ct_OBJDUMP=$OBJDUMP
   5230   # Extract the first word of "objdump", so it can be a program name with args.
   5231 set dummy objdump; ac_word=$2
   5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5233 $as_echo_n "checking for $ac_word... " >&6; }
   5234 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
   5235   $as_echo_n "(cached) " >&6
   5236 else
   5237   if test -n "$ac_ct_OBJDUMP"; then
   5238   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   5239 else
   5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5241 for as_dir in $PATH
   5242 do
   5243   IFS=$as_save_IFS
   5244   test -z "$as_dir" && as_dir=.
   5245     for ac_exec_ext in '' $ac_executable_extensions; do
   5246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5247     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   5248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5249     break 2
   5250   fi
   5251 done
   5252   done
   5253 IFS=$as_save_IFS
   5254 
   5255 fi
   5256 fi
   5257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   5258 if test -n "$ac_ct_OBJDUMP"; then
   5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
   5260 $as_echo "$ac_ct_OBJDUMP" >&6; }
   5261 else
   5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5263 $as_echo "no" >&6; }
   5264 fi
   5265 
   5266   if test "x$ac_ct_OBJDUMP" = x; then
   5267     OBJDUMP="false"
   5268   else
   5269     case $cross_compiling:$ac_tool_warned in
   5270 yes:)
   5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5273 ac_tool_warned=yes ;;
   5274 esac
   5275     OBJDUMP=$ac_ct_OBJDUMP
   5276   fi
   5277 else
   5278   OBJDUMP="$ac_cv_prog_OBJDUMP"
   5279 fi
   5280 
   5281 test -z "$OBJDUMP" && OBJDUMP=objdump
   5282 
   5283 
   5284 
   5285 
   5286 
   5287 
   5288 
   5289 
   5290 
   5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
   5292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
   5293 if ${lt_cv_deplibs_check_method+:} false; then :
   5294   $as_echo_n "(cached) " >&6
   5295 else
   5296   lt_cv_file_magic_cmd='$MAGIC_CMD'
   5297 lt_cv_file_magic_test_file=
   5298 lt_cv_deplibs_check_method='unknown'
   5299 # Need to set the preceding variable on all platforms that support
   5300 # interlibrary dependencies.
   5301 # 'none' -- dependencies not supported.
   5302 # 'unknown' -- same as none, but documents that we really don't know.
   5303 # 'pass_all' -- all dependencies passed with no checks.
   5304 # 'test_compile' -- check by making test program.
   5305 # 'file_magic [[regex]]' -- check by looking for files in library path
   5306 # that responds to the $file_magic_cmd with a given extended regex.
   5307 # If you have 'file' or equivalent on your system and you're not sure
   5308 # whether 'pass_all' will *always* work, you probably want this one.
   5309 
   5310 case $host_os in
   5311 aix[4-9]*)
   5312   lt_cv_deplibs_check_method=pass_all
   5313   ;;
   5314 
   5315 beos*)
   5316   lt_cv_deplibs_check_method=pass_all
   5317   ;;
   5318 
   5319 bsdi[45]*)
   5320   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   5321   lt_cv_file_magic_cmd='/usr/bin/file -L'
   5322   lt_cv_file_magic_test_file=/shlib/libc.so
   5323   ;;
   5324 
   5325 cygwin*)
   5326   # func_win32_libid is a shell function defined in ltmain.sh
   5327   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5328   lt_cv_file_magic_cmd='func_win32_libid'
   5329   ;;
   5330 
   5331 mingw* | pw32*)
   5332   # Base MSYS/MinGW do not provide the 'file' command needed by
   5333   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   5334   # unless we find 'file', for example because we are cross-compiling.
   5335   if ( file / ) >/dev/null 2>&1; then
   5336     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   5337     lt_cv_file_magic_cmd='func_win32_libid'
   5338   else
   5339     # Keep this pattern in sync with the one in func_win32_libid.
   5340     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
   5341     lt_cv_file_magic_cmd='$OBJDUMP -f'
   5342   fi
   5343   ;;
   5344 
   5345 cegcc*)
   5346   # use the weaker test based on 'objdump'. See mingw*.
   5347   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   5348   lt_cv_file_magic_cmd='$OBJDUMP -f'
   5349   ;;
   5350 
   5351 darwin* | rhapsody*)
   5352   lt_cv_deplibs_check_method=pass_all
   5353   ;;
   5354 
   5355 freebsd* | dragonfly*)
   5356   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5357     case $host_cpu in
   5358     i*86 )
   5359       # Not sure whether the presence of OpenBSD here was a mistake.
   5360       # Let's accept both of them until this is cleared up.
   5361       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   5362       lt_cv_file_magic_cmd=/usr/bin/file
   5363       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   5364       ;;
   5365     esac
   5366   else
   5367     lt_cv_deplibs_check_method=pass_all
   5368   fi
   5369   ;;
   5370 
   5371 haiku*)
   5372   lt_cv_deplibs_check_method=pass_all
   5373   ;;
   5374 
   5375 hpux10.20* | hpux11*)
   5376   lt_cv_file_magic_cmd=/usr/bin/file
   5377   case $host_cpu in
   5378   ia64*)
   5379     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   5380     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   5381     ;;
   5382   hppa*64*)
   5383     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]'
   5384     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   5385     ;;
   5386   *)
   5387     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
   5388     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   5389     ;;
   5390   esac
   5391   ;;
   5392 
   5393 interix[3-9]*)
   5394   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   5395   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   5396   ;;
   5397 
   5398 irix5* | irix6* | nonstopux*)
   5399   case $LD in
   5400   *-32|*"-32 ") libmagic=32-bit;;
   5401   *-n32|*"-n32 ") libmagic=N32;;
   5402   *-64|*"-64 ") libmagic=64-bit;;
   5403   *) libmagic=never-match;;
   5404   esac
   5405   lt_cv_deplibs_check_method=pass_all
   5406   ;;
   5407 
   5408 # This must be glibc/ELF.
   5409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   5410   lt_cv_deplibs_check_method=pass_all
   5411   ;;
   5412 
   5413 netbsd*)
   5414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   5415     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5416   else
   5417     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   5418   fi
   5419   ;;
   5420 
   5421 newos6*)
   5422   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   5423   lt_cv_file_magic_cmd=/usr/bin/file
   5424   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   5425   ;;
   5426 
   5427 *nto* | *qnx*)
   5428   lt_cv_deplibs_check_method=pass_all
   5429   ;;
   5430 
   5431 openbsd* | bitrig*)
   5432   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   5433     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   5434   else
   5435     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   5436   fi
   5437   ;;
   5438 
   5439 osf3* | osf4* | osf5*)
   5440   lt_cv_deplibs_check_method=pass_all
   5441   ;;
   5442 
   5443 rdos*)
   5444   lt_cv_deplibs_check_method=pass_all
   5445   ;;
   5446 
   5447 solaris*)
   5448   lt_cv_deplibs_check_method=pass_all
   5449   ;;
   5450 
   5451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   5452   lt_cv_deplibs_check_method=pass_all
   5453   ;;
   5454 
   5455 sysv4 | sysv4.3*)
   5456   case $host_vendor in
   5457   motorola)
   5458     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]'
   5459     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   5460     ;;
   5461   ncr)
   5462     lt_cv_deplibs_check_method=pass_all
   5463     ;;
   5464   sequent)
   5465     lt_cv_file_magic_cmd='/bin/file'
   5466     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   5467     ;;
   5468   sni)
   5469     lt_cv_file_magic_cmd='/bin/file'
   5470     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   5471     lt_cv_file_magic_test_file=/lib/libc.so
   5472     ;;
   5473   siemens)
   5474     lt_cv_deplibs_check_method=pass_all
   5475     ;;
   5476   pc)
   5477     lt_cv_deplibs_check_method=pass_all
   5478     ;;
   5479   esac
   5480   ;;
   5481 
   5482 tpf*)
   5483   lt_cv_deplibs_check_method=pass_all
   5484   ;;
   5485 os2*)
   5486   lt_cv_deplibs_check_method=pass_all
   5487   ;;
   5488 esac
   5489 
   5490 fi
   5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
   5492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
   5493 
   5494 file_magic_glob=
   5495 want_nocaseglob=no
   5496 if test "$build" = "$host"; then
   5497   case $host_os in
   5498   mingw* | pw32*)
   5499     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
   5500       want_nocaseglob=yes
   5501     else
   5502       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
   5503     fi
   5504     ;;
   5505   esac
   5506 fi
   5507 
   5508 file_magic_cmd=$lt_cv_file_magic_cmd
   5509 deplibs_check_method=$lt_cv_deplibs_check_method
   5510 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   5511 
   5512 
   5513 
   5514 
   5515 
   5516 
   5517 
   5518 
   5519 
   5520 
   5521 
   5522 
   5523 
   5524 
   5525 
   5526 
   5527 
   5528 
   5529 
   5530 
   5531 
   5532 
   5533 if test -n "$ac_tool_prefix"; then
   5534   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   5535 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5537 $as_echo_n "checking for $ac_word... " >&6; }
   5538 if ${ac_cv_prog_DLLTOOL+:} false; then :
   5539   $as_echo_n "(cached) " >&6
   5540 else
   5541   if test -n "$DLLTOOL"; then
   5542   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   5543 else
   5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5545 for as_dir in $PATH
   5546 do
   5547   IFS=$as_save_IFS
   5548   test -z "$as_dir" && as_dir=.
   5549     for ac_exec_ext in '' $ac_executable_extensions; do
   5550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5551     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   5552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5553     break 2
   5554   fi
   5555 done
   5556   done
   5557 IFS=$as_save_IFS
   5558 
   5559 fi
   5560 fi
   5561 DLLTOOL=$ac_cv_prog_DLLTOOL
   5562 if test -n "$DLLTOOL"; then
   5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   5564 $as_echo "$DLLTOOL" >&6; }
   5565 else
   5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5567 $as_echo "no" >&6; }
   5568 fi
   5569 
   5570 
   5571 fi
   5572 if test -z "$ac_cv_prog_DLLTOOL"; then
   5573   ac_ct_DLLTOOL=$DLLTOOL
   5574   # Extract the first word of "dlltool", so it can be a program name with args.
   5575 set dummy dlltool; ac_word=$2
   5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5577 $as_echo_n "checking for $ac_word... " >&6; }
   5578 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   5579   $as_echo_n "(cached) " >&6
   5580 else
   5581   if test -n "$ac_ct_DLLTOOL"; then
   5582   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   5583 else
   5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5585 for as_dir in $PATH
   5586 do
   5587   IFS=$as_save_IFS
   5588   test -z "$as_dir" && as_dir=.
   5589     for ac_exec_ext in '' $ac_executable_extensions; do
   5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5591     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5593     break 2
   5594   fi
   5595 done
   5596   done
   5597 IFS=$as_save_IFS
   5598 
   5599 fi
   5600 fi
   5601 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   5602 if test -n "$ac_ct_DLLTOOL"; then
   5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   5604 $as_echo "$ac_ct_DLLTOOL" >&6; }
   5605 else
   5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5607 $as_echo "no" >&6; }
   5608 fi
   5609 
   5610   if test "x$ac_ct_DLLTOOL" = x; then
   5611     DLLTOOL="false"
   5612   else
   5613     case $cross_compiling:$ac_tool_warned in
   5614 yes:)
   5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5617 ac_tool_warned=yes ;;
   5618 esac
   5619     DLLTOOL=$ac_ct_DLLTOOL
   5620   fi
   5621 else
   5622   DLLTOOL="$ac_cv_prog_DLLTOOL"
   5623 fi
   5624 
   5625 test -z "$DLLTOOL" && DLLTOOL=dlltool
   5626 
   5627 
   5628 
   5629 
   5630 
   5631 
   5632 
   5633 
   5634 
   5635 
   5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
   5637 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
   5638 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
   5639   $as_echo_n "(cached) " >&6
   5640 else
   5641   lt_cv_sharedlib_from_linklib_cmd='unknown'
   5642 
   5643 case $host_os in
   5644 cygwin* | mingw* | pw32* | cegcc*)
   5645   # two different shell functions defined in ltmain.sh;
   5646   # decide which one to use based on capabilities of $DLLTOOL
   5647   case `$DLLTOOL --help 2>&1` in
   5648   *--identify-strict*)
   5649     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
   5650     ;;
   5651   *)
   5652     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
   5653     ;;
   5654   esac
   5655   ;;
   5656 *)
   5657   # fallback: assume linklib IS sharedlib
   5658   lt_cv_sharedlib_from_linklib_cmd=$ECHO
   5659   ;;
   5660 esac
   5661 
   5662 fi
   5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
   5664 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
   5665 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
   5666 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
   5667 
   5668 
   5669 
   5670 
   5671 
   5672 
   5673 
   5674 if test -n "$ac_tool_prefix"; then
   5675   for ac_prog in ar
   5676   do
   5677     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5680 $as_echo_n "checking for $ac_word... " >&6; }
   5681 if ${ac_cv_prog_AR+:} false; then :
   5682   $as_echo_n "(cached) " >&6
   5683 else
   5684   if test -n "$AR"; then
   5685   ac_cv_prog_AR="$AR" # Let the user override the test.
   5686 else
   5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5688 for as_dir in $PATH
   5689 do
   5690   IFS=$as_save_IFS
   5691   test -z "$as_dir" && as_dir=.
   5692     for ac_exec_ext in '' $ac_executable_extensions; do
   5693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5694     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
   5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5696     break 2
   5697   fi
   5698 done
   5699   done
   5700 IFS=$as_save_IFS
   5701 
   5702 fi
   5703 fi
   5704 AR=$ac_cv_prog_AR
   5705 if test -n "$AR"; then
   5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   5707 $as_echo "$AR" >&6; }
   5708 else
   5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5710 $as_echo "no" >&6; }
   5711 fi
   5712 
   5713 
   5714     test -n "$AR" && break
   5715   done
   5716 fi
   5717 if test -z "$AR"; then
   5718   ac_ct_AR=$AR
   5719   for ac_prog in ar
   5720 do
   5721   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5722 set dummy $ac_prog; ac_word=$2
   5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5724 $as_echo_n "checking for $ac_word... " >&6; }
   5725 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   5726   $as_echo_n "(cached) " >&6
   5727 else
   5728   if test -n "$ac_ct_AR"; then
   5729   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   5730 else
   5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5732 for as_dir in $PATH
   5733 do
   5734   IFS=$as_save_IFS
   5735   test -z "$as_dir" && as_dir=.
   5736     for ac_exec_ext in '' $ac_executable_extensions; do
   5737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5738     ac_cv_prog_ac_ct_AR="$ac_prog"
   5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5740     break 2
   5741   fi
   5742 done
   5743   done
   5744 IFS=$as_save_IFS
   5745 
   5746 fi
   5747 fi
   5748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   5749 if test -n "$ac_ct_AR"; then
   5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   5751 $as_echo "$ac_ct_AR" >&6; }
   5752 else
   5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5754 $as_echo "no" >&6; }
   5755 fi
   5756 
   5757 
   5758   test -n "$ac_ct_AR" && break
   5759 done
   5760 
   5761   if test "x$ac_ct_AR" = x; then
   5762     AR="false"
   5763   else
   5764     case $cross_compiling:$ac_tool_warned in
   5765 yes:)
   5766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5768 ac_tool_warned=yes ;;
   5769 esac
   5770     AR=$ac_ct_AR
   5771   fi
   5772 fi
   5773 
   5774 : ${AR=ar}
   5775 : ${AR_FLAGS=cru}
   5776 
   5777 
   5778 
   5779 
   5780 
   5781 
   5782 
   5783 
   5784 
   5785 
   5786 
   5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
   5788 $as_echo_n "checking for archiver @FILE support... " >&6; }
   5789 if ${lt_cv_ar_at_file+:} false; then :
   5790   $as_echo_n "(cached) " >&6
   5791 else
   5792   lt_cv_ar_at_file=no
   5793    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5794 /* end confdefs.h.  */
   5795 
   5796 int
   5797 main ()
   5798 {
   5799 
   5800   ;
   5801   return 0;
   5802 }
   5803 _ACEOF
   5804 if ac_fn_c_try_compile "$LINENO"; then :
   5805   echo conftest.$ac_objext > conftest.lst
   5806       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
   5807       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5808   (eval $lt_ar_try) 2>&5
   5809   ac_status=$?
   5810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5811   test $ac_status = 0; }
   5812       if test 0 -eq "$ac_status"; then
   5813 	# Ensure the archiver fails upon bogus file names.
   5814 	rm -f conftest.$ac_objext libconftest.a
   5815 	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
   5816   (eval $lt_ar_try) 2>&5
   5817   ac_status=$?
   5818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   5819   test $ac_status = 0; }
   5820 	if test 0 -ne "$ac_status"; then
   5821           lt_cv_ar_at_file=@
   5822         fi
   5823       fi
   5824       rm -f conftest.* libconftest.a
   5825 
   5826 fi
   5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5828 
   5829 fi
   5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
   5831 $as_echo "$lt_cv_ar_at_file" >&6; }
   5832 
   5833 if test no = "$lt_cv_ar_at_file"; then
   5834   archiver_list_spec=
   5835 else
   5836   archiver_list_spec=$lt_cv_ar_at_file
   5837 fi
   5838 
   5839 
   5840 
   5841 
   5842 
   5843 
   5844 
   5845 if test -n "$ac_tool_prefix"; then
   5846   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5847 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5849 $as_echo_n "checking for $ac_word... " >&6; }
   5850 if ${ac_cv_prog_STRIP+:} false; then :
   5851   $as_echo_n "(cached) " >&6
   5852 else
   5853   if test -n "$STRIP"; then
   5854   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5855 else
   5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5857 for as_dir in $PATH
   5858 do
   5859   IFS=$as_save_IFS
   5860   test -z "$as_dir" && as_dir=.
   5861     for ac_exec_ext in '' $ac_executable_extensions; do
   5862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5863     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5865     break 2
   5866   fi
   5867 done
   5868   done
   5869 IFS=$as_save_IFS
   5870 
   5871 fi
   5872 fi
   5873 STRIP=$ac_cv_prog_STRIP
   5874 if test -n "$STRIP"; then
   5875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5876 $as_echo "$STRIP" >&6; }
   5877 else
   5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5879 $as_echo "no" >&6; }
   5880 fi
   5881 
   5882 
   5883 fi
   5884 if test -z "$ac_cv_prog_STRIP"; then
   5885   ac_ct_STRIP=$STRIP
   5886   # Extract the first word of "strip", so it can be a program name with args.
   5887 set dummy strip; ac_word=$2
   5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5889 $as_echo_n "checking for $ac_word... " >&6; }
   5890 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5891   $as_echo_n "(cached) " >&6
   5892 else
   5893   if test -n "$ac_ct_STRIP"; then
   5894   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5895 else
   5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5897 for as_dir in $PATH
   5898 do
   5899   IFS=$as_save_IFS
   5900   test -z "$as_dir" && as_dir=.
   5901     for ac_exec_ext in '' $ac_executable_extensions; do
   5902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5903     ac_cv_prog_ac_ct_STRIP="strip"
   5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5905     break 2
   5906   fi
   5907 done
   5908   done
   5909 IFS=$as_save_IFS
   5910 
   5911 fi
   5912 fi
   5913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5914 if test -n "$ac_ct_STRIP"; then
   5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5916 $as_echo "$ac_ct_STRIP" >&6; }
   5917 else
   5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5919 $as_echo "no" >&6; }
   5920 fi
   5921 
   5922   if test "x$ac_ct_STRIP" = x; then
   5923     STRIP=":"
   5924   else
   5925     case $cross_compiling:$ac_tool_warned in
   5926 yes:)
   5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5929 ac_tool_warned=yes ;;
   5930 esac
   5931     STRIP=$ac_ct_STRIP
   5932   fi
   5933 else
   5934   STRIP="$ac_cv_prog_STRIP"
   5935 fi
   5936 
   5937 test -z "$STRIP" && STRIP=:
   5938 
   5939 
   5940 
   5941 
   5942 
   5943 
   5944 if test -n "$ac_tool_prefix"; then
   5945   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5948 $as_echo_n "checking for $ac_word... " >&6; }
   5949 if ${ac_cv_prog_RANLIB+:} false; then :
   5950   $as_echo_n "(cached) " >&6
   5951 else
   5952   if test -n "$RANLIB"; then
   5953   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5954 else
   5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5956 for as_dir in $PATH
   5957 do
   5958   IFS=$as_save_IFS
   5959   test -z "$as_dir" && as_dir=.
   5960     for ac_exec_ext in '' $ac_executable_extensions; do
   5961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5962     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5964     break 2
   5965   fi
   5966 done
   5967   done
   5968 IFS=$as_save_IFS
   5969 
   5970 fi
   5971 fi
   5972 RANLIB=$ac_cv_prog_RANLIB
   5973 if test -n "$RANLIB"; then
   5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5975 $as_echo "$RANLIB" >&6; }
   5976 else
   5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5978 $as_echo "no" >&6; }
   5979 fi
   5980 
   5981 
   5982 fi
   5983 if test -z "$ac_cv_prog_RANLIB"; then
   5984   ac_ct_RANLIB=$RANLIB
   5985   # Extract the first word of "ranlib", so it can be a program name with args.
   5986 set dummy ranlib; ac_word=$2
   5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5988 $as_echo_n "checking for $ac_word... " >&6; }
   5989 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5990   $as_echo_n "(cached) " >&6
   5991 else
   5992   if test -n "$ac_ct_RANLIB"; then
   5993   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5994 else
   5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5996 for as_dir in $PATH
   5997 do
   5998   IFS=$as_save_IFS
   5999   test -z "$as_dir" && as_dir=.
   6000     for ac_exec_ext in '' $ac_executable_extensions; do
   6001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6002     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6004     break 2
   6005   fi
   6006 done
   6007   done
   6008 IFS=$as_save_IFS
   6009 
   6010 fi
   6011 fi
   6012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6013 if test -n "$ac_ct_RANLIB"; then
   6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6015 $as_echo "$ac_ct_RANLIB" >&6; }
   6016 else
   6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6018 $as_echo "no" >&6; }
   6019 fi
   6020 
   6021   if test "x$ac_ct_RANLIB" = x; then
   6022     RANLIB=":"
   6023   else
   6024     case $cross_compiling:$ac_tool_warned in
   6025 yes:)
   6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6028 ac_tool_warned=yes ;;
   6029 esac
   6030     RANLIB=$ac_ct_RANLIB
   6031   fi
   6032 else
   6033   RANLIB="$ac_cv_prog_RANLIB"
   6034 fi
   6035 
   6036 test -z "$RANLIB" && RANLIB=:
   6037 
   6038 
   6039 
   6040 
   6041 
   6042 
   6043 # Determine commands to create old-style static archives.
   6044 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   6045 old_postinstall_cmds='chmod 644 $oldlib'
   6046 old_postuninstall_cmds=
   6047 
   6048 if test -n "$RANLIB"; then
   6049   case $host_os in
   6050   bitrig* | openbsd*)
   6051     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   6052     ;;
   6053   *)
   6054     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   6055     ;;
   6056   esac
   6057   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   6058 fi
   6059 
   6060 case $host_os in
   6061   darwin*)
   6062     lock_old_archive_extraction=yes ;;
   6063   *)
   6064     lock_old_archive_extraction=no ;;
   6065 esac
   6066 
   6067 
   6068 
   6069 
   6070 
   6071 
   6072 
   6073 
   6074 
   6075 
   6076 
   6077 
   6078 
   6079 
   6080 
   6081 
   6082 
   6083 
   6084 
   6085 
   6086 
   6087 for ac_prog in gawk mawk nawk awk
   6088 do
   6089   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6090 set dummy $ac_prog; ac_word=$2
   6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6092 $as_echo_n "checking for $ac_word... " >&6; }
   6093 if ${ac_cv_prog_AWK+:} false; then :
   6094   $as_echo_n "(cached) " >&6
   6095 else
   6096   if test -n "$AWK"; then
   6097   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   6098 else
   6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6100 for as_dir in $PATH
   6101 do
   6102   IFS=$as_save_IFS
   6103   test -z "$as_dir" && as_dir=.
   6104     for ac_exec_ext in '' $ac_executable_extensions; do
   6105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6106     ac_cv_prog_AWK="$ac_prog"
   6107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6108     break 2
   6109   fi
   6110 done
   6111   done
   6112 IFS=$as_save_IFS
   6113 
   6114 fi
   6115 fi
   6116 AWK=$ac_cv_prog_AWK
   6117 if test -n "$AWK"; then
   6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   6119 $as_echo "$AWK" >&6; }
   6120 else
   6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6122 $as_echo "no" >&6; }
   6123 fi
   6124 
   6125 
   6126   test -n "$AWK" && break
   6127 done
   6128 
   6129 
   6130 
   6131 
   6132 
   6133 
   6134 
   6135 
   6136 
   6137 
   6138 
   6139 
   6140 
   6141 
   6142 
   6143 
   6144 
   6145 
   6146 
   6147 # If no C compiler was specified, use CC.
   6148 LTCC=${LTCC-"$CC"}
   6149 
   6150 # If no C compiler flags were specified, use CFLAGS.
   6151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   6152 
   6153 # Allow CC to be a program name with arguments.
   6154 compiler=$CC
   6155 
   6156 
   6157 # Check for command to grab the raw symbol name followed by C symbol from nm.
   6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
   6159 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
   6160 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
   6161   $as_echo_n "(cached) " >&6
   6162 else
   6163 
   6164 # These are sane defaults that work on at least a few old systems.
   6165 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   6166 
   6167 # Character class describing NM global symbol codes.
   6168 symcode='[BCDEGRST]'
   6169 
   6170 # Regexp to match symbols that can be accessed directly from C.
   6171 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   6172 
   6173 # Define system-specific variables.
   6174 case $host_os in
   6175 aix*)
   6176   symcode='[BCDT]'
   6177   ;;
   6178 cygwin* | mingw* | pw32* | cegcc*)
   6179   symcode='[ABCDGISTW]'
   6180   ;;
   6181 hpux*)
   6182   if test ia64 = "$host_cpu"; then
   6183     symcode='[ABCDEGRST]'
   6184   fi
   6185   ;;
   6186 irix* | nonstopux*)
   6187   symcode='[BCDEGRST]'
   6188   ;;
   6189 osf*)
   6190   symcode='[BCDEGQRST]'
   6191   ;;
   6192 solaris*)
   6193   symcode='[BDRT]'
   6194   ;;
   6195 sco3.2v5*)
   6196   symcode='[DT]'
   6197   ;;
   6198 sysv4.2uw2*)
   6199   symcode='[DT]'
   6200   ;;
   6201 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   6202   symcode='[ABDT]'
   6203   ;;
   6204 sysv4)
   6205   symcode='[DFNSTU]'
   6206   ;;
   6207 esac
   6208 
   6209 # If we're using GNU nm, then use its standard symbol codes.
   6210 case `$NM -V 2>&1` in
   6211 *GNU* | *'with BFD'*)
   6212   symcode='[ABCDGIRSTW]' ;;
   6213 esac
   6214 
   6215 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6216   # Gets list of data symbols to import.
   6217   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
   6218   # Adjust the below global symbol transforms to fixup imported variables.
   6219   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
   6220   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
   6221   lt_c_name_lib_hook="\
   6222   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
   6223   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
   6224 else
   6225   # Disable hooks by default.
   6226   lt_cv_sys_global_symbol_to_import=
   6227   lt_cdecl_hook=
   6228   lt_c_name_hook=
   6229   lt_c_name_lib_hook=
   6230 fi
   6231 
   6232 # Transform an extracted symbol line into a proper C declaration.
   6233 # Some systems (esp. on ia64) link data and code symbols differently,
   6234 # so use this general approach.
   6235 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
   6236 $lt_cdecl_hook\
   6237 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
   6238 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
   6239 
   6240 # Transform an extracted symbol line into symbol name and symbol address
   6241 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
   6242 $lt_c_name_hook\
   6243 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6244 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
   6245 
   6246 # Transform an extracted symbol line into symbol name with lib prefix and
   6247 # symbol address.
   6248 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
   6249 $lt_c_name_lib_hook\
   6250 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
   6251 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
   6252 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
   6253 
   6254 # Handle CRLF in mingw tool chain
   6255 opt_cr=
   6256 case $build_os in
   6257 mingw*)
   6258   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   6259   ;;
   6260 esac
   6261 
   6262 # Try without a prefix underscore, then with it.
   6263 for ac_symprfx in "" "_"; do
   6264 
   6265   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   6266   symxfrm="\\1 $ac_symprfx\\2 \\2"
   6267 
   6268   # Write the raw and C identifiers.
   6269   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6270     # Fake it for dumpbin and say T for any non-static function,
   6271     # D for any global variable and I for any imported variable.
   6272     # Also find C++ and __fastcall symbols from MSVC++,
   6273     # which start with @ or ?.
   6274     lt_cv_sys_global_symbol_pipe="$AWK '"\
   6275 "     {last_section=section; section=\$ 3};"\
   6276 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
   6277 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   6278 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
   6279 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
   6280 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
   6281 "     \$ 0!~/External *\|/{next};"\
   6282 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   6283 "     {if(hide[section]) next};"\
   6284 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
   6285 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
   6286 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
   6287 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
   6288 "     ' prfx=^$ac_symprfx"
   6289   else
   6290     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   6291   fi
   6292   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
   6293 
   6294   # Check to see that the pipe works correctly.
   6295   pipe_works=no
   6296 
   6297   rm -f conftest*
   6298   cat > conftest.$ac_ext <<_LT_EOF
   6299 #ifdef __cplusplus
   6300 extern "C" {
   6301 #endif
   6302 char nm_test_var;
   6303 void nm_test_func(void);
   6304 void nm_test_func(void){}
   6305 #ifdef __cplusplus
   6306 }
   6307 #endif
   6308 int main(){nm_test_var='a';nm_test_func();return(0);}
   6309 _LT_EOF
   6310 
   6311   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6312   (eval $ac_compile) 2>&5
   6313   ac_status=$?
   6314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6315   test $ac_status = 0; }; then
   6316     # Now try to grab the symbols.
   6317     nlist=conftest.nm
   6318     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
   6319   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
   6320   ac_status=$?
   6321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6322   test $ac_status = 0; } && test -s "$nlist"; then
   6323       # Try sorting and uniquifying the output.
   6324       if sort "$nlist" | uniq > "$nlist"T; then
   6325 	mv -f "$nlist"T "$nlist"
   6326       else
   6327 	rm -f "$nlist"T
   6328       fi
   6329 
   6330       # Make sure that we snagged all the symbols we need.
   6331       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   6332 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   6333 	  cat <<_LT_EOF > conftest.$ac_ext
   6334 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
   6335 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
   6336 /* DATA imports from DLLs on WIN32 can't be const, because runtime
   6337    relocations are performed -- see ld's documentation on pseudo-relocs.  */
   6338 # define LT_DLSYM_CONST
   6339 #elif defined __osf__
   6340 /* This system does not cope well with relocations in const data.  */
   6341 # define LT_DLSYM_CONST
   6342 #else
   6343 # define LT_DLSYM_CONST const
   6344 #endif
   6345 
   6346 #ifdef __cplusplus
   6347 extern "C" {
   6348 #endif
   6349 
   6350 _LT_EOF
   6351 	  # Now generate the symbol file.
   6352 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   6353 
   6354 	  cat <<_LT_EOF >> conftest.$ac_ext
   6355 
   6356 /* The mapping between symbol names and symbols.  */
   6357 LT_DLSYM_CONST struct {
   6358   const char *name;
   6359   void       *address;
   6360 }
   6361 lt__PROGRAM__LTX_preloaded_symbols[] =
   6362 {
   6363   { "@PROGRAM@", (void *) 0 },
   6364 _LT_EOF
   6365 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   6366 	  cat <<\_LT_EOF >> conftest.$ac_ext
   6367   {0, (void *) 0}
   6368 };
   6369 
   6370 /* This works around a problem in FreeBSD linker */
   6371 #ifdef FREEBSD_WORKAROUND
   6372 static const void *lt_preloaded_setup() {
   6373   return lt__PROGRAM__LTX_preloaded_symbols;
   6374 }
   6375 #endif
   6376 
   6377 #ifdef __cplusplus
   6378 }
   6379 #endif
   6380 _LT_EOF
   6381 	  # Now try linking the two files.
   6382 	  mv conftest.$ac_objext conftstm.$ac_objext
   6383 	  lt_globsym_save_LIBS=$LIBS
   6384 	  lt_globsym_save_CFLAGS=$CFLAGS
   6385 	  LIBS=conftstm.$ac_objext
   6386 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   6387 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   6388   (eval $ac_link) 2>&5
   6389   ac_status=$?
   6390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6391   test $ac_status = 0; } && test -s conftest$ac_exeext; then
   6392 	    pipe_works=yes
   6393 	  fi
   6394 	  LIBS=$lt_globsym_save_LIBS
   6395 	  CFLAGS=$lt_globsym_save_CFLAGS
   6396 	else
   6397 	  echo "cannot find nm_test_func in $nlist" >&5
   6398 	fi
   6399       else
   6400 	echo "cannot find nm_test_var in $nlist" >&5
   6401       fi
   6402     else
   6403       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   6404     fi
   6405   else
   6406     echo "$progname: failed program was:" >&5
   6407     cat conftest.$ac_ext >&5
   6408   fi
   6409   rm -rf conftest* conftst*
   6410 
   6411   # Do not use the global_symbol_pipe unless it works.
   6412   if test yes = "$pipe_works"; then
   6413     break
   6414   else
   6415     lt_cv_sys_global_symbol_pipe=
   6416   fi
   6417 done
   6418 
   6419 fi
   6420 
   6421 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   6422   lt_cv_sys_global_symbol_to_cdecl=
   6423 fi
   6424 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
   6426 $as_echo "failed" >&6; }
   6427 else
   6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
   6429 $as_echo "ok" >&6; }
   6430 fi
   6431 
   6432 # Response file support.
   6433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   6434   nm_file_list_spec='@'
   6435 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
   6436   nm_file_list_spec='@'
   6437 fi
   6438 
   6439 
   6440 
   6441 
   6442 
   6443 
   6444 
   6445 
   6446 
   6447 
   6448 
   6449 
   6450 
   6451 
   6452 
   6453 
   6454 
   6455 
   6456 
   6457 
   6458 
   6459 
   6460 
   6461 
   6462 
   6463 
   6464 
   6465 
   6466 
   6467 
   6468 
   6469 
   6470 
   6471 
   6472 
   6473 
   6474 
   6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
   6476 $as_echo_n "checking for sysroot... " >&6; }
   6477 
   6478 # Check whether --with-sysroot was given.
   6479 if test "${with_sysroot+set}" = set; then :
   6480   withval=$with_sysroot;
   6481 else
   6482   with_sysroot=no
   6483 fi
   6484 
   6485 
   6486 lt_sysroot=
   6487 case $with_sysroot in #(
   6488  yes)
   6489    if test yes = "$GCC"; then
   6490      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   6491    fi
   6492    ;; #(
   6493  /*)
   6494    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   6495    ;; #(
   6496  no|'')
   6497    ;; #(
   6498  *)
   6499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
   6500 $as_echo "$with_sysroot" >&6; }
   6501    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
   6502    ;;
   6503 esac
   6504 
   6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
   6506 $as_echo "${lt_sysroot:-no}" >&6; }
   6507 
   6508 
   6509 
   6510 
   6511 
   6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
   6513 $as_echo_n "checking for a working dd... " >&6; }
   6514 if ${ac_cv_path_lt_DD+:} false; then :
   6515   $as_echo_n "(cached) " >&6
   6516 else
   6517   printf 0123456789abcdef0123456789abcdef >conftest.i
   6518 cat conftest.i conftest.i >conftest2.i
   6519 : ${lt_DD:=$DD}
   6520 if test -z "$lt_DD"; then
   6521   ac_path_lt_DD_found=false
   6522   # Loop through the user's path and test for each of PROGNAME-LIST
   6523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6524 for as_dir in $PATH
   6525 do
   6526   IFS=$as_save_IFS
   6527   test -z "$as_dir" && as_dir=.
   6528     for ac_prog in dd; do
   6529     for ac_exec_ext in '' $ac_executable_extensions; do
   6530       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
   6531       as_fn_executable_p "$ac_path_lt_DD" || continue
   6532 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6533   cmp -s conftest.i conftest.out \
   6534   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
   6535 fi
   6536       $ac_path_lt_DD_found && break 3
   6537     done
   6538   done
   6539   done
   6540 IFS=$as_save_IFS
   6541   if test -z "$ac_cv_path_lt_DD"; then
   6542     :
   6543   fi
   6544 else
   6545   ac_cv_path_lt_DD=$lt_DD
   6546 fi
   6547 
   6548 rm -f conftest.i conftest2.i conftest.out
   6549 fi
   6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
   6551 $as_echo "$ac_cv_path_lt_DD" >&6; }
   6552 
   6553 
   6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
   6555 $as_echo_n "checking how to truncate binary pipes... " >&6; }
   6556 if ${lt_cv_truncate_bin+:} false; then :
   6557   $as_echo_n "(cached) " >&6
   6558 else
   6559   printf 0123456789abcdef0123456789abcdef >conftest.i
   6560 cat conftest.i conftest.i >conftest2.i
   6561 lt_cv_truncate_bin=
   6562 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
   6563   cmp -s conftest.i conftest.out \
   6564   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
   6565 fi
   6566 rm -f conftest.i conftest2.i conftest.out
   6567 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
   6568 fi
   6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
   6570 $as_echo "$lt_cv_truncate_bin" >&6; }
   6571 
   6572 
   6573 
   6574 
   6575 
   6576 
   6577 
   6578 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   6579 func_cc_basename ()
   6580 {
   6581     for cc_temp in $*""; do
   6582       case $cc_temp in
   6583         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   6584         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   6585         \-*) ;;
   6586         *) break;;
   6587       esac
   6588     done
   6589     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   6590 }
   6591 
   6592 # Check whether --enable-libtool-lock was given.
   6593 if test "${enable_libtool_lock+set}" = set; then :
   6594   enableval=$enable_libtool_lock;
   6595 fi
   6596 
   6597 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
   6598 
   6599 # Some flags need to be propagated to the compiler or linker for good
   6600 # libtool support.
   6601 case $host in
   6602 ia64-*-hpux*)
   6603   # Find out what ABI is being produced by ac_compile, and set mode
   6604   # options accordingly.
   6605   echo 'int i;' > conftest.$ac_ext
   6606   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6607   (eval $ac_compile) 2>&5
   6608   ac_status=$?
   6609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6610   test $ac_status = 0; }; then
   6611     case `/usr/bin/file conftest.$ac_objext` in
   6612       *ELF-32*)
   6613 	HPUX_IA64_MODE=32
   6614 	;;
   6615       *ELF-64*)
   6616 	HPUX_IA64_MODE=64
   6617 	;;
   6618     esac
   6619   fi
   6620   rm -rf conftest*
   6621   ;;
   6622 *-*-irix6*)
   6623   # Find out what ABI is being produced by ac_compile, and set linker
   6624   # options accordingly.
   6625   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6627   (eval $ac_compile) 2>&5
   6628   ac_status=$?
   6629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6630   test $ac_status = 0; }; then
   6631     if test yes = "$lt_cv_prog_gnu_ld"; then
   6632       case `/usr/bin/file conftest.$ac_objext` in
   6633 	*32-bit*)
   6634 	  LD="${LD-ld} -melf32bsmip"
   6635 	  ;;
   6636 	*N32*)
   6637 	  LD="${LD-ld} -melf32bmipn32"
   6638 	  ;;
   6639 	*64-bit*)
   6640 	  LD="${LD-ld} -melf64bmip"
   6641 	;;
   6642       esac
   6643     else
   6644       case `/usr/bin/file conftest.$ac_objext` in
   6645 	*32-bit*)
   6646 	  LD="${LD-ld} -32"
   6647 	  ;;
   6648 	*N32*)
   6649 	  LD="${LD-ld} -n32"
   6650 	  ;;
   6651 	*64-bit*)
   6652 	  LD="${LD-ld} -64"
   6653 	  ;;
   6654       esac
   6655     fi
   6656   fi
   6657   rm -rf conftest*
   6658   ;;
   6659 
   6660 mips64*-*linux*)
   6661   # Find out what ABI is being produced by ac_compile, and set linker
   6662   # options accordingly.
   6663   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
   6664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6665   (eval $ac_compile) 2>&5
   6666   ac_status=$?
   6667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6668   test $ac_status = 0; }; then
   6669     emul=elf
   6670     case `/usr/bin/file conftest.$ac_objext` in
   6671       *32-bit*)
   6672 	emul="${emul}32"
   6673 	;;
   6674       *64-bit*)
   6675 	emul="${emul}64"
   6676 	;;
   6677     esac
   6678     case `/usr/bin/file conftest.$ac_objext` in
   6679       *MSB*)
   6680 	emul="${emul}btsmip"
   6681 	;;
   6682       *LSB*)
   6683 	emul="${emul}ltsmip"
   6684 	;;
   6685     esac
   6686     case `/usr/bin/file conftest.$ac_objext` in
   6687       *N32*)
   6688 	emul="${emul}n32"
   6689 	;;
   6690     esac
   6691     LD="${LD-ld} -m $emul"
   6692   fi
   6693   rm -rf conftest*
   6694   ;;
   6695 
   6696 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
   6697 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   6698   # Find out what ABI is being produced by ac_compile, and set linker
   6699   # options accordingly.  Note that the listed cases only cover the
   6700   # situations where additional linker options are needed (such as when
   6701   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
   6702   # vice versa); the common cases where no linker options are needed do
   6703   # not appear in the list.
   6704   echo 'int i;' > conftest.$ac_ext
   6705   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6706   (eval $ac_compile) 2>&5
   6707   ac_status=$?
   6708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6709   test $ac_status = 0; }; then
   6710     case `/usr/bin/file conftest.o` in
   6711       *32-bit*)
   6712 	case $host in
   6713 	  x86_64-*kfreebsd*-gnu)
   6714 	    LD="${LD-ld} -m elf_i386_fbsd"
   6715 	    ;;
   6716 	  x86_64-*linux*)
   6717 	    case `/usr/bin/file conftest.o` in
   6718 	      *x86-64*)
   6719 		LD="${LD-ld} -m elf32_x86_64"
   6720 		;;
   6721 	      *)
   6722 		LD="${LD-ld} -m elf_i386"
   6723 		;;
   6724 	    esac
   6725 	    ;;
   6726 	  powerpc64le-*linux*)
   6727 	    LD="${LD-ld} -m elf32lppclinux"
   6728 	    ;;
   6729 	  powerpc64-*linux*)
   6730 	    LD="${LD-ld} -m elf32ppclinux"
   6731 	    ;;
   6732 	  s390x-*linux*)
   6733 	    LD="${LD-ld} -m elf_s390"
   6734 	    ;;
   6735 	  sparc64-*linux*)
   6736 	    LD="${LD-ld} -m elf32_sparc"
   6737 	    ;;
   6738 	esac
   6739 	;;
   6740       *64-bit*)
   6741 	case $host in
   6742 	  x86_64-*kfreebsd*-gnu)
   6743 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   6744 	    ;;
   6745 	  x86_64-*linux*)
   6746 	    LD="${LD-ld} -m elf_x86_64"
   6747 	    ;;
   6748 	  powerpcle-*linux*)
   6749 	    LD="${LD-ld} -m elf64lppc"
   6750 	    ;;
   6751 	  powerpc-*linux*)
   6752 	    LD="${LD-ld} -m elf64ppc"
   6753 	    ;;
   6754 	  s390*-*linux*|s390*-*tpf*)
   6755 	    LD="${LD-ld} -m elf64_s390"
   6756 	    ;;
   6757 	  sparc*-*linux*)
   6758 	    LD="${LD-ld} -m elf64_sparc"
   6759 	    ;;
   6760 	esac
   6761 	;;
   6762     esac
   6763   fi
   6764   rm -rf conftest*
   6765   ;;
   6766 
   6767 *-*-sco3.2v5*)
   6768   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   6769   SAVE_CFLAGS=$CFLAGS
   6770   CFLAGS="$CFLAGS -belf"
   6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
   6772 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
   6773 if ${lt_cv_cc_needs_belf+:} false; then :
   6774   $as_echo_n "(cached) " >&6
   6775 else
   6776   ac_ext=c
   6777 ac_cpp='$CPP $CPPFLAGS'
   6778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6781 
   6782      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6783 /* end confdefs.h.  */
   6784 
   6785 int
   6786 main ()
   6787 {
   6788 
   6789   ;
   6790   return 0;
   6791 }
   6792 _ACEOF
   6793 if ac_fn_c_try_link "$LINENO"; then :
   6794   lt_cv_cc_needs_belf=yes
   6795 else
   6796   lt_cv_cc_needs_belf=no
   6797 fi
   6798 rm -f core conftest.err conftest.$ac_objext \
   6799     conftest$ac_exeext conftest.$ac_ext
   6800      ac_ext=c
   6801 ac_cpp='$CPP $CPPFLAGS'
   6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6805 
   6806 fi
   6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
   6808 $as_echo "$lt_cv_cc_needs_belf" >&6; }
   6809   if test yes != "$lt_cv_cc_needs_belf"; then
   6810     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   6811     CFLAGS=$SAVE_CFLAGS
   6812   fi
   6813   ;;
   6814 *-*solaris*)
   6815   # Find out what ABI is being produced by ac_compile, and set linker
   6816   # options accordingly.
   6817   echo 'int i;' > conftest.$ac_ext
   6818   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   6819   (eval $ac_compile) 2>&5
   6820   ac_status=$?
   6821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   6822   test $ac_status = 0; }; then
   6823     case `/usr/bin/file conftest.o` in
   6824     *64-bit*)
   6825       case $lt_cv_prog_gnu_ld in
   6826       yes*)
   6827         case $host in
   6828         i?86-*-solaris*|x86_64-*-solaris*)
   6829           LD="${LD-ld} -m elf_x86_64"
   6830           ;;
   6831         sparc*-*-solaris*)
   6832           LD="${LD-ld} -m elf64_sparc"
   6833           ;;
   6834         esac
   6835         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   6836         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   6837           LD=${LD-ld}_sol2
   6838         fi
   6839         ;;
   6840       *)
   6841 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   6842 	  LD="${LD-ld} -64"
   6843 	fi
   6844 	;;
   6845       esac
   6846       ;;
   6847     esac
   6848   fi
   6849   rm -rf conftest*
   6850   ;;
   6851 esac
   6852 
   6853 need_locks=$enable_libtool_lock
   6854 
   6855 if test -n "$ac_tool_prefix"; then
   6856   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
   6857 set dummy ${ac_tool_prefix}mt; ac_word=$2
   6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6859 $as_echo_n "checking for $ac_word... " >&6; }
   6860 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
   6861   $as_echo_n "(cached) " >&6
   6862 else
   6863   if test -n "$MANIFEST_TOOL"; then
   6864   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
   6865 else
   6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6867 for as_dir in $PATH
   6868 do
   6869   IFS=$as_save_IFS
   6870   test -z "$as_dir" && as_dir=.
   6871     for ac_exec_ext in '' $ac_executable_extensions; do
   6872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6873     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
   6874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6875     break 2
   6876   fi
   6877 done
   6878   done
   6879 IFS=$as_save_IFS
   6880 
   6881 fi
   6882 fi
   6883 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
   6884 if test -n "$MANIFEST_TOOL"; then
   6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
   6886 $as_echo "$MANIFEST_TOOL" >&6; }
   6887 else
   6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6889 $as_echo "no" >&6; }
   6890 fi
   6891 
   6892 
   6893 fi
   6894 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
   6895   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
   6896   # Extract the first word of "mt", so it can be a program name with args.
   6897 set dummy mt; ac_word=$2
   6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6899 $as_echo_n "checking for $ac_word... " >&6; }
   6900 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
   6901   $as_echo_n "(cached) " >&6
   6902 else
   6903   if test -n "$ac_ct_MANIFEST_TOOL"; then
   6904   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
   6905 else
   6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6907 for as_dir in $PATH
   6908 do
   6909   IFS=$as_save_IFS
   6910   test -z "$as_dir" && as_dir=.
   6911     for ac_exec_ext in '' $ac_executable_extensions; do
   6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6913     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
   6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6915     break 2
   6916   fi
   6917 done
   6918   done
   6919 IFS=$as_save_IFS
   6920 
   6921 fi
   6922 fi
   6923 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
   6924 if test -n "$ac_ct_MANIFEST_TOOL"; then
   6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
   6926 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
   6927 else
   6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6929 $as_echo "no" >&6; }
   6930 fi
   6931 
   6932   if test "x$ac_ct_MANIFEST_TOOL" = x; then
   6933     MANIFEST_TOOL=":"
   6934   else
   6935     case $cross_compiling:$ac_tool_warned in
   6936 yes:)
   6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6939 ac_tool_warned=yes ;;
   6940 esac
   6941     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
   6942   fi
   6943 else
   6944   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
   6945 fi
   6946 
   6947 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
   6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
   6949 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
   6950 if ${lt_cv_path_mainfest_tool+:} false; then :
   6951   $as_echo_n "(cached) " >&6
   6952 else
   6953   lt_cv_path_mainfest_tool=no
   6954   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
   6955   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
   6956   cat conftest.err >&5
   6957   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
   6958     lt_cv_path_mainfest_tool=yes
   6959   fi
   6960   rm -f conftest*
   6961 fi
   6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
   6963 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
   6964 if test yes != "$lt_cv_path_mainfest_tool"; then
   6965   MANIFEST_TOOL=:
   6966 fi
   6967 
   6968 
   6969 
   6970 
   6971 
   6972 
   6973   case $host_os in
   6974     rhapsody* | darwin*)
   6975     if test -n "$ac_tool_prefix"; then
   6976   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   6977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6979 $as_echo_n "checking for $ac_word... " >&6; }
   6980 if ${ac_cv_prog_DSYMUTIL+:} false; then :
   6981   $as_echo_n "(cached) " >&6
   6982 else
   6983   if test -n "$DSYMUTIL"; then
   6984   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   6985 else
   6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6987 for as_dir in $PATH
   6988 do
   6989   IFS=$as_save_IFS
   6990   test -z "$as_dir" && as_dir=.
   6991     for ac_exec_ext in '' $ac_executable_extensions; do
   6992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6993     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   6994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6995     break 2
   6996   fi
   6997 done
   6998   done
   6999 IFS=$as_save_IFS
   7000 
   7001 fi
   7002 fi
   7003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   7004 if test -n "$DSYMUTIL"; then
   7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
   7006 $as_echo "$DSYMUTIL" >&6; }
   7007 else
   7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7009 $as_echo "no" >&6; }
   7010 fi
   7011 
   7012 
   7013 fi
   7014 if test -z "$ac_cv_prog_DSYMUTIL"; then
   7015   ac_ct_DSYMUTIL=$DSYMUTIL
   7016   # Extract the first word of "dsymutil", so it can be a program name with args.
   7017 set dummy dsymutil; ac_word=$2
   7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7019 $as_echo_n "checking for $ac_word... " >&6; }
   7020 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
   7021   $as_echo_n "(cached) " >&6
   7022 else
   7023   if test -n "$ac_ct_DSYMUTIL"; then
   7024   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   7025 else
   7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7027 for as_dir in $PATH
   7028 do
   7029   IFS=$as_save_IFS
   7030   test -z "$as_dir" && as_dir=.
   7031     for ac_exec_ext in '' $ac_executable_extensions; do
   7032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7033     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   7034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7035     break 2
   7036   fi
   7037 done
   7038   done
   7039 IFS=$as_save_IFS
   7040 
   7041 fi
   7042 fi
   7043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   7044 if test -n "$ac_ct_DSYMUTIL"; then
   7045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
   7046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
   7047 else
   7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7049 $as_echo "no" >&6; }
   7050 fi
   7051 
   7052   if test "x$ac_ct_DSYMUTIL" = x; then
   7053     DSYMUTIL=":"
   7054   else
   7055     case $cross_compiling:$ac_tool_warned in
   7056 yes:)
   7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7059 ac_tool_warned=yes ;;
   7060 esac
   7061     DSYMUTIL=$ac_ct_DSYMUTIL
   7062   fi
   7063 else
   7064   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   7065 fi
   7066 
   7067     if test -n "$ac_tool_prefix"; then
   7068   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   7069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7071 $as_echo_n "checking for $ac_word... " >&6; }
   7072 if ${ac_cv_prog_NMEDIT+:} false; then :
   7073   $as_echo_n "(cached) " >&6
   7074 else
   7075   if test -n "$NMEDIT"; then
   7076   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   7077 else
   7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7079 for as_dir in $PATH
   7080 do
   7081   IFS=$as_save_IFS
   7082   test -z "$as_dir" && as_dir=.
   7083     for ac_exec_ext in '' $ac_executable_extensions; do
   7084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7085     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   7086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7087     break 2
   7088   fi
   7089 done
   7090   done
   7091 IFS=$as_save_IFS
   7092 
   7093 fi
   7094 fi
   7095 NMEDIT=$ac_cv_prog_NMEDIT
   7096 if test -n "$NMEDIT"; then
   7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
   7098 $as_echo "$NMEDIT" >&6; }
   7099 else
   7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7101 $as_echo "no" >&6; }
   7102 fi
   7103 
   7104 
   7105 fi
   7106 if test -z "$ac_cv_prog_NMEDIT"; then
   7107   ac_ct_NMEDIT=$NMEDIT
   7108   # Extract the first word of "nmedit", so it can be a program name with args.
   7109 set dummy nmedit; ac_word=$2
   7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7111 $as_echo_n "checking for $ac_word... " >&6; }
   7112 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
   7113   $as_echo_n "(cached) " >&6
   7114 else
   7115   if test -n "$ac_ct_NMEDIT"; then
   7116   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   7117 else
   7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7119 for as_dir in $PATH
   7120 do
   7121   IFS=$as_save_IFS
   7122   test -z "$as_dir" && as_dir=.
   7123     for ac_exec_ext in '' $ac_executable_extensions; do
   7124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7125     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   7126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7127     break 2
   7128   fi
   7129 done
   7130   done
   7131 IFS=$as_save_IFS
   7132 
   7133 fi
   7134 fi
   7135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   7136 if test -n "$ac_ct_NMEDIT"; then
   7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
   7138 $as_echo "$ac_ct_NMEDIT" >&6; }
   7139 else
   7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7141 $as_echo "no" >&6; }
   7142 fi
   7143 
   7144   if test "x$ac_ct_NMEDIT" = x; then
   7145     NMEDIT=":"
   7146   else
   7147     case $cross_compiling:$ac_tool_warned in
   7148 yes:)
   7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7151 ac_tool_warned=yes ;;
   7152 esac
   7153     NMEDIT=$ac_ct_NMEDIT
   7154   fi
   7155 else
   7156   NMEDIT="$ac_cv_prog_NMEDIT"
   7157 fi
   7158 
   7159     if test -n "$ac_tool_prefix"; then
   7160   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   7161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7163 $as_echo_n "checking for $ac_word... " >&6; }
   7164 if ${ac_cv_prog_LIPO+:} false; then :
   7165   $as_echo_n "(cached) " >&6
   7166 else
   7167   if test -n "$LIPO"; then
   7168   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   7169 else
   7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7171 for as_dir in $PATH
   7172 do
   7173   IFS=$as_save_IFS
   7174   test -z "$as_dir" && as_dir=.
   7175     for ac_exec_ext in '' $ac_executable_extensions; do
   7176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7177     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7179     break 2
   7180   fi
   7181 done
   7182   done
   7183 IFS=$as_save_IFS
   7184 
   7185 fi
   7186 fi
   7187 LIPO=$ac_cv_prog_LIPO
   7188 if test -n "$LIPO"; then
   7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
   7190 $as_echo "$LIPO" >&6; }
   7191 else
   7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7193 $as_echo "no" >&6; }
   7194 fi
   7195 
   7196 
   7197 fi
   7198 if test -z "$ac_cv_prog_LIPO"; then
   7199   ac_ct_LIPO=$LIPO
   7200   # Extract the first word of "lipo", so it can be a program name with args.
   7201 set dummy lipo; ac_word=$2
   7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7203 $as_echo_n "checking for $ac_word... " >&6; }
   7204 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
   7205   $as_echo_n "(cached) " >&6
   7206 else
   7207   if test -n "$ac_ct_LIPO"; then
   7208   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   7209 else
   7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7211 for as_dir in $PATH
   7212 do
   7213   IFS=$as_save_IFS
   7214   test -z "$as_dir" && as_dir=.
   7215     for ac_exec_ext in '' $ac_executable_extensions; do
   7216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7217     ac_cv_prog_ac_ct_LIPO="lipo"
   7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7219     break 2
   7220   fi
   7221 done
   7222   done
   7223 IFS=$as_save_IFS
   7224 
   7225 fi
   7226 fi
   7227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   7228 if test -n "$ac_ct_LIPO"; then
   7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
   7230 $as_echo "$ac_ct_LIPO" >&6; }
   7231 else
   7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7233 $as_echo "no" >&6; }
   7234 fi
   7235 
   7236   if test "x$ac_ct_LIPO" = x; then
   7237     LIPO=":"
   7238   else
   7239     case $cross_compiling:$ac_tool_warned in
   7240 yes:)
   7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7243 ac_tool_warned=yes ;;
   7244 esac
   7245     LIPO=$ac_ct_LIPO
   7246   fi
   7247 else
   7248   LIPO="$ac_cv_prog_LIPO"
   7249 fi
   7250 
   7251     if test -n "$ac_tool_prefix"; then
   7252   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   7253 set dummy ${ac_tool_prefix}otool; ac_word=$2
   7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7255 $as_echo_n "checking for $ac_word... " >&6; }
   7256 if ${ac_cv_prog_OTOOL+:} false; then :
   7257   $as_echo_n "(cached) " >&6
   7258 else
   7259   if test -n "$OTOOL"; then
   7260   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   7261 else
   7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7263 for as_dir in $PATH
   7264 do
   7265   IFS=$as_save_IFS
   7266   test -z "$as_dir" && as_dir=.
   7267     for ac_exec_ext in '' $ac_executable_extensions; do
   7268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7269     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   7270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7271     break 2
   7272   fi
   7273 done
   7274   done
   7275 IFS=$as_save_IFS
   7276 
   7277 fi
   7278 fi
   7279 OTOOL=$ac_cv_prog_OTOOL
   7280 if test -n "$OTOOL"; then
   7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
   7282 $as_echo "$OTOOL" >&6; }
   7283 else
   7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7285 $as_echo "no" >&6; }
   7286 fi
   7287 
   7288 
   7289 fi
   7290 if test -z "$ac_cv_prog_OTOOL"; then
   7291   ac_ct_OTOOL=$OTOOL
   7292   # Extract the first word of "otool", so it can be a program name with args.
   7293 set dummy otool; ac_word=$2
   7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7295 $as_echo_n "checking for $ac_word... " >&6; }
   7296 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
   7297   $as_echo_n "(cached) " >&6
   7298 else
   7299   if test -n "$ac_ct_OTOOL"; then
   7300   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   7301 else
   7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7303 for as_dir in $PATH
   7304 do
   7305   IFS=$as_save_IFS
   7306   test -z "$as_dir" && as_dir=.
   7307     for ac_exec_ext in '' $ac_executable_extensions; do
   7308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7309     ac_cv_prog_ac_ct_OTOOL="otool"
   7310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7311     break 2
   7312   fi
   7313 done
   7314   done
   7315 IFS=$as_save_IFS
   7316 
   7317 fi
   7318 fi
   7319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   7320 if test -n "$ac_ct_OTOOL"; then
   7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
   7322 $as_echo "$ac_ct_OTOOL" >&6; }
   7323 else
   7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7325 $as_echo "no" >&6; }
   7326 fi
   7327 
   7328   if test "x$ac_ct_OTOOL" = x; then
   7329     OTOOL=":"
   7330   else
   7331     case $cross_compiling:$ac_tool_warned in
   7332 yes:)
   7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7335 ac_tool_warned=yes ;;
   7336 esac
   7337     OTOOL=$ac_ct_OTOOL
   7338   fi
   7339 else
   7340   OTOOL="$ac_cv_prog_OTOOL"
   7341 fi
   7342 
   7343     if test -n "$ac_tool_prefix"; then
   7344   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   7345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7347 $as_echo_n "checking for $ac_word... " >&6; }
   7348 if ${ac_cv_prog_OTOOL64+:} false; then :
   7349   $as_echo_n "(cached) " >&6
   7350 else
   7351   if test -n "$OTOOL64"; then
   7352   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   7353 else
   7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7355 for as_dir in $PATH
   7356 do
   7357   IFS=$as_save_IFS
   7358   test -z "$as_dir" && as_dir=.
   7359     for ac_exec_ext in '' $ac_executable_extensions; do
   7360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7361     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7363     break 2
   7364   fi
   7365 done
   7366   done
   7367 IFS=$as_save_IFS
   7368 
   7369 fi
   7370 fi
   7371 OTOOL64=$ac_cv_prog_OTOOL64
   7372 if test -n "$OTOOL64"; then
   7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
   7374 $as_echo "$OTOOL64" >&6; }
   7375 else
   7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7377 $as_echo "no" >&6; }
   7378 fi
   7379 
   7380 
   7381 fi
   7382 if test -z "$ac_cv_prog_OTOOL64"; then
   7383   ac_ct_OTOOL64=$OTOOL64
   7384   # Extract the first word of "otool64", so it can be a program name with args.
   7385 set dummy otool64; ac_word=$2
   7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7387 $as_echo_n "checking for $ac_word... " >&6; }
   7388 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
   7389   $as_echo_n "(cached) " >&6
   7390 else
   7391   if test -n "$ac_ct_OTOOL64"; then
   7392   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   7393 else
   7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7395 for as_dir in $PATH
   7396 do
   7397   IFS=$as_save_IFS
   7398   test -z "$as_dir" && as_dir=.
   7399     for ac_exec_ext in '' $ac_executable_extensions; do
   7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7401     ac_cv_prog_ac_ct_OTOOL64="otool64"
   7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7403     break 2
   7404   fi
   7405 done
   7406   done
   7407 IFS=$as_save_IFS
   7408 
   7409 fi
   7410 fi
   7411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   7412 if test -n "$ac_ct_OTOOL64"; then
   7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
   7414 $as_echo "$ac_ct_OTOOL64" >&6; }
   7415 else
   7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7417 $as_echo "no" >&6; }
   7418 fi
   7419 
   7420   if test "x$ac_ct_OTOOL64" = x; then
   7421     OTOOL64=":"
   7422   else
   7423     case $cross_compiling:$ac_tool_warned in
   7424 yes:)
   7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7427 ac_tool_warned=yes ;;
   7428 esac
   7429     OTOOL64=$ac_ct_OTOOL64
   7430   fi
   7431 else
   7432   OTOOL64="$ac_cv_prog_OTOOL64"
   7433 fi
   7434 
   7435 
   7436 
   7437 
   7438 
   7439 
   7440 
   7441 
   7442 
   7443 
   7444 
   7445 
   7446 
   7447 
   7448 
   7449 
   7450 
   7451 
   7452 
   7453 
   7454 
   7455 
   7456 
   7457 
   7458 
   7459 
   7460 
   7461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
   7462 $as_echo_n "checking for -single_module linker flag... " >&6; }
   7463 if ${lt_cv_apple_cc_single_mod+:} false; then :
   7464   $as_echo_n "(cached) " >&6
   7465 else
   7466   lt_cv_apple_cc_single_mod=no
   7467       if test -z "$LT_MULTI_MODULE"; then
   7468 	# By default we will add the -single_module flag. You can override
   7469 	# by either setting the environment variable LT_MULTI_MODULE
   7470 	# non-empty at configure time, or by adding -multi_module to the
   7471 	# link flags.
   7472 	rm -rf libconftest.dylib*
   7473 	echo "int foo(void){return 1;}" > conftest.c
   7474 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7475 -dynamiclib -Wl,-single_module conftest.c" >&5
   7476 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   7477 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   7478         _lt_result=$?
   7479 	# If there is a non-empty error log, and "single_module"
   7480 	# appears in it, assume the flag caused a linker warning
   7481         if test -s conftest.err && $GREP single_module conftest.err; then
   7482 	  cat conftest.err >&5
   7483 	# Otherwise, if the output was created with a 0 exit code from
   7484 	# the compiler, it worked.
   7485 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
   7486 	  lt_cv_apple_cc_single_mod=yes
   7487 	else
   7488 	  cat conftest.err >&5
   7489 	fi
   7490 	rm -rf libconftest.dylib*
   7491 	rm -f conftest.*
   7492       fi
   7493 fi
   7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
   7495 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
   7496 
   7497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
   7498 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
   7499 if ${lt_cv_ld_exported_symbols_list+:} false; then :
   7500   $as_echo_n "(cached) " >&6
   7501 else
   7502   lt_cv_ld_exported_symbols_list=no
   7503       save_LDFLAGS=$LDFLAGS
   7504       echo "_main" > conftest.sym
   7505       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   7506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7507 /* end confdefs.h.  */
   7508 
   7509 int
   7510 main ()
   7511 {
   7512 
   7513   ;
   7514   return 0;
   7515 }
   7516 _ACEOF
   7517 if ac_fn_c_try_link "$LINENO"; then :
   7518   lt_cv_ld_exported_symbols_list=yes
   7519 else
   7520   lt_cv_ld_exported_symbols_list=no
   7521 fi
   7522 rm -f core conftest.err conftest.$ac_objext \
   7523     conftest$ac_exeext conftest.$ac_ext
   7524 	LDFLAGS=$save_LDFLAGS
   7525 
   7526 fi
   7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
   7528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
   7529 
   7530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
   7531 $as_echo_n "checking for -force_load linker flag... " >&6; }
   7532 if ${lt_cv_ld_force_load+:} false; then :
   7533   $as_echo_n "(cached) " >&6
   7534 else
   7535   lt_cv_ld_force_load=no
   7536       cat > conftest.c << _LT_EOF
   7537 int forced_loaded() { return 2;}
   7538 _LT_EOF
   7539       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
   7540       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
   7541       echo "$AR cru libconftest.a conftest.o" >&5
   7542       $AR cru libconftest.a conftest.o 2>&5
   7543       echo "$RANLIB libconftest.a" >&5
   7544       $RANLIB libconftest.a 2>&5
   7545       cat > conftest.c << _LT_EOF
   7546 int main() { return 0;}
   7547 _LT_EOF
   7548       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
   7549       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   7550       _lt_result=$?
   7551       if test -s conftest.err && $GREP force_load conftest.err; then
   7552 	cat conftest.err >&5
   7553       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
   7554 	lt_cv_ld_force_load=yes
   7555       else
   7556 	cat conftest.err >&5
   7557       fi
   7558         rm -f conftest.err libconftest.a conftest conftest.c
   7559         rm -rf conftest.dSYM
   7560 
   7561 fi
   7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
   7563 $as_echo "$lt_cv_ld_force_load" >&6; }
   7564     case $host_os in
   7565     rhapsody* | darwin1.[012])
   7566       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
   7567     darwin1.*)
   7568       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7569     darwin*)
   7570       case ${MACOSX_DEPLOYMENT_TARGET},$host in
   7571 	10.[012],*|,*powerpc*)
   7572 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7573 	*)
   7574 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7575       esac
   7576     ;;
   7577   esac
   7578     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7579       _lt_dar_single_mod='$single_module'
   7580     fi
   7581     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7582       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7583     else
   7584       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7585     fi
   7586     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7587       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7588     else
   7589       _lt_dsymutil=
   7590     fi
   7591     ;;
   7592   esac
   7593 
   7594 # func_munge_path_list VARIABLE PATH
   7595 # -----------------------------------
   7596 # VARIABLE is name of variable containing _space_ separated list of
   7597 # directories to be munged by the contents of PATH, which is string
   7598 # having a format:
   7599 # "DIR[:DIR]:"
   7600 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7601 # ":DIR[:DIR]"
   7602 #       string "DIR[ DIR]" will be appended to VARIABLE
   7603 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7604 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7605 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7606 # "DIR[:DIR]"
   7607 #       VARIABLE will be replaced by "DIR[ DIR]"
   7608 func_munge_path_list ()
   7609 {
   7610     case x$2 in
   7611     x)
   7612         ;;
   7613     *:)
   7614         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7615         ;;
   7616     x:*)
   7617         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7618         ;;
   7619     *::*)
   7620         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7621         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7622         ;;
   7623     *)
   7624         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7625         ;;
   7626     esac
   7627 }
   7628 
   7629 for ac_header in dlfcn.h
   7630 do :
   7631   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7632 "
   7633 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7634   cat >>confdefs.h <<_ACEOF
   7635 #define HAVE_DLFCN_H 1
   7636 _ACEOF
   7637 
   7638 fi
   7639 
   7640 done
   7641 
   7642 
   7643 
   7644 
   7645 
   7646 # Set options
   7647 
   7648 
   7649 
   7650         enable_dlopen=no
   7651 
   7652 
   7653   enable_win32_dll=no
   7654 
   7655 
   7656             # Check whether --enable-shared was given.
   7657 if test "${enable_shared+set}" = set; then :
   7658   enableval=$enable_shared; p=${PACKAGE-default}
   7659     case $enableval in
   7660     yes) enable_shared=yes ;;
   7661     no) enable_shared=no ;;
   7662     *)
   7663       enable_shared=no
   7664       # Look at the argument we got.  We use all the common list separators.
   7665       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7666       for pkg in $enableval; do
   7667 	IFS=$lt_save_ifs
   7668 	if test "X$pkg" = "X$p"; then
   7669 	  enable_shared=yes
   7670 	fi
   7671       done
   7672       IFS=$lt_save_ifs
   7673       ;;
   7674     esac
   7675 else
   7676   enable_shared=yes
   7677 fi
   7678 
   7679 
   7680 
   7681 
   7682 
   7683 
   7684 
   7685 
   7686 
   7687   # Check whether --enable-static was given.
   7688 if test "${enable_static+set}" = set; then :
   7689   enableval=$enable_static; p=${PACKAGE-default}
   7690     case $enableval in
   7691     yes) enable_static=yes ;;
   7692     no) enable_static=no ;;
   7693     *)
   7694      enable_static=no
   7695       # Look at the argument we got.  We use all the common list separators.
   7696       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7697       for pkg in $enableval; do
   7698 	IFS=$lt_save_ifs
   7699 	if test "X$pkg" = "X$p"; then
   7700 	  enable_static=yes
   7701 	fi
   7702       done
   7703       IFS=$lt_save_ifs
   7704       ;;
   7705     esac
   7706 else
   7707   enable_static=yes
   7708 fi
   7709 
   7710 
   7711 
   7712 
   7713 
   7714 
   7715 
   7716 
   7717 
   7718 
   7719 # Check whether --with-pic was given.
   7720 if test "${with_pic+set}" = set; then :
   7721   withval=$with_pic; lt_p=${PACKAGE-default}
   7722     case $withval in
   7723     yes|no) pic_mode=$withval ;;
   7724     *)
   7725       pic_mode=default
   7726       # Look at the argument we got.  We use all the common list separators.
   7727       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7728       for lt_pkg in $withval; do
   7729 	IFS=$lt_save_ifs
   7730 	if test "X$lt_pkg" = "X$lt_p"; then
   7731 	  pic_mode=yes
   7732 	fi
   7733       done
   7734       IFS=$lt_save_ifs
   7735       ;;
   7736     esac
   7737 else
   7738   pic_mode=default
   7739 fi
   7740 
   7741 
   7742 
   7743 
   7744 
   7745 
   7746 
   7747 
   7748   # Check whether --enable-fast-install was given.
   7749 if test "${enable_fast_install+set}" = set; then :
   7750   enableval=$enable_fast_install; p=${PACKAGE-default}
   7751     case $enableval in
   7752     yes) enable_fast_install=yes ;;
   7753     no) enable_fast_install=no ;;
   7754     *)
   7755       enable_fast_install=no
   7756       # Look at the argument we got.  We use all the common list separators.
   7757       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7758       for pkg in $enableval; do
   7759 	IFS=$lt_save_ifs
   7760 	if test "X$pkg" = "X$p"; then
   7761 	  enable_fast_install=yes
   7762 	fi
   7763       done
   7764       IFS=$lt_save_ifs
   7765       ;;
   7766     esac
   7767 else
   7768   enable_fast_install=yes
   7769 fi
   7770 
   7771 
   7772 
   7773 
   7774 
   7775 
   7776 
   7777 
   7778   shared_archive_member_spec=
   7779 case $host,$enable_shared in
   7780 power*-*-aix[5-9]*,yes)
   7781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7782 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7783 
   7784 # Check whether --with-aix-soname was given.
   7785 if test "${with_aix_soname+set}" = set; then :
   7786   withval=$with_aix_soname; case $withval in
   7787     aix|svr4|both)
   7788       ;;
   7789     *)
   7790       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7791       ;;
   7792     esac
   7793     lt_cv_with_aix_soname=$with_aix_soname
   7794 else
   7795   if ${lt_cv_with_aix_soname+:} false; then :
   7796   $as_echo_n "(cached) " >&6
   7797 else
   7798   lt_cv_with_aix_soname=aix
   7799 fi
   7800 
   7801     with_aix_soname=$lt_cv_with_aix_soname
   7802 fi
   7803 
   7804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7805 $as_echo "$with_aix_soname" >&6; }
   7806   if test aix != "$with_aix_soname"; then
   7807     # For the AIX way of multilib, we name the shared archive member
   7808     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7809     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7810     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7811     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7812     if test 64 = "${OBJECT_MODE-32}"; then
   7813       shared_archive_member_spec=shr_64
   7814     else
   7815       shared_archive_member_spec=shr
   7816     fi
   7817   fi
   7818   ;;
   7819 *)
   7820   with_aix_soname=aix
   7821   ;;
   7822 esac
   7823 
   7824 
   7825 
   7826 
   7827 
   7828 
   7829 
   7830 
   7831 
   7832 
   7833 # This can be used to rebuild libtool when needed
   7834 LIBTOOL_DEPS=$ltmain
   7835 
   7836 # Always use our own libtool.
   7837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7838 
   7839 
   7840 
   7841 
   7842 
   7843 
   7844 
   7845 
   7846 
   7847 
   7848 
   7849 
   7850 
   7851 
   7852 
   7853 
   7854 
   7855 
   7856 
   7857 
   7858 
   7859 
   7860 
   7861 
   7862 
   7863 
   7864 
   7865 
   7866 
   7867 
   7868 test -z "$LN_S" && LN_S="ln -s"
   7869 
   7870 
   7871 
   7872 
   7873 
   7874 
   7875 
   7876 
   7877 
   7878 
   7879 
   7880 
   7881 
   7882 
   7883 if test -n "${ZSH_VERSION+set}"; then
   7884    setopt NO_GLOB_SUBST
   7885 fi
   7886 
   7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7888 $as_echo_n "checking for objdir... " >&6; }
   7889 if ${lt_cv_objdir+:} false; then :
   7890   $as_echo_n "(cached) " >&6
   7891 else
   7892   rm -f .libs 2>/dev/null
   7893 mkdir .libs 2>/dev/null
   7894 if test -d .libs; then
   7895   lt_cv_objdir=.libs
   7896 else
   7897   # MS-DOS does not allow filenames that begin with a dot.
   7898   lt_cv_objdir=_libs
   7899 fi
   7900 rmdir .libs 2>/dev/null
   7901 fi
   7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7903 $as_echo "$lt_cv_objdir" >&6; }
   7904 objdir=$lt_cv_objdir
   7905 
   7906 
   7907 
   7908 
   7909 
   7910 cat >>confdefs.h <<_ACEOF
   7911 #define LT_OBJDIR "$lt_cv_objdir/"
   7912 _ACEOF
   7913 
   7914 
   7915 
   7916 
   7917 case $host_os in
   7918 aix3*)
   7919   # AIX sometimes has problems with the GCC collect2 program.  For some
   7920   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7921   # vanish in a puff of smoke.
   7922   if test set != "${COLLECT_NAMES+set}"; then
   7923     COLLECT_NAMES=
   7924     export COLLECT_NAMES
   7925   fi
   7926   ;;
   7927 esac
   7928 
   7929 # Global variables:
   7930 ofile=libtool
   7931 can_build_shared=yes
   7932 
   7933 # All known linkers require a '.a' archive for static linking (except MSVC,
   7934 # which needs '.lib').
   7935 libext=a
   7936 
   7937 with_gnu_ld=$lt_cv_prog_gnu_ld
   7938 
   7939 old_CC=$CC
   7940 old_CFLAGS=$CFLAGS
   7941 
   7942 # Set sane defaults for various variables
   7943 test -z "$CC" && CC=cc
   7944 test -z "$LTCC" && LTCC=$CC
   7945 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7946 test -z "$LD" && LD=ld
   7947 test -z "$ac_objext" && ac_objext=o
   7948 
   7949 func_cc_basename $compiler
   7950 cc_basename=$func_cc_basename_result
   7951 
   7952 
   7953 # Only perform the check for file, if the check method requires it
   7954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7955 case $deplibs_check_method in
   7956 file_magic*)
   7957   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7959 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7960 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7961   $as_echo_n "(cached) " >&6
   7962 else
   7963   case $MAGIC_CMD in
   7964 [\\/*] |  ?:[\\/]*)
   7965   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7966   ;;
   7967 *)
   7968   lt_save_MAGIC_CMD=$MAGIC_CMD
   7969   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7970   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7971   for ac_dir in $ac_dummy; do
   7972     IFS=$lt_save_ifs
   7973     test -z "$ac_dir" && ac_dir=.
   7974     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7975       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7976       if test -n "$file_magic_test_file"; then
   7977 	case $deplibs_check_method in
   7978 	"file_magic "*)
   7979 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7980 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7981 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7982 	    $EGREP "$file_magic_regex" > /dev/null; then
   7983 	    :
   7984 	  else
   7985 	    cat <<_LT_EOF 1>&2
   7986 
   7987 *** Warning: the command libtool uses to detect shared libraries,
   7988 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7989 *** The result is that libtool may fail to recognize shared libraries
   7990 *** as such.  This will affect the creation of libtool libraries that
   7991 *** depend on shared libraries, but programs linked with such libtool
   7992 *** libraries will work regardless of this problem.  Nevertheless, you
   7993 *** may want to report the problem to your system manager and/or to
   7994 *** bug-libtool (at] gnu.org
   7995 
   7996 _LT_EOF
   7997 	  fi ;;
   7998 	esac
   7999       fi
   8000       break
   8001     fi
   8002   done
   8003   IFS=$lt_save_ifs
   8004   MAGIC_CMD=$lt_save_MAGIC_CMD
   8005   ;;
   8006 esac
   8007 fi
   8008 
   8009 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8010 if test -n "$MAGIC_CMD"; then
   8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8012 $as_echo "$MAGIC_CMD" >&6; }
   8013 else
   8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8015 $as_echo "no" >&6; }
   8016 fi
   8017 
   8018 
   8019 
   8020 
   8021 
   8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8023   if test -n "$ac_tool_prefix"; then
   8024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8025 $as_echo_n "checking for file... " >&6; }
   8026 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8027   $as_echo_n "(cached) " >&6
   8028 else
   8029   case $MAGIC_CMD in
   8030 [\\/*] |  ?:[\\/]*)
   8031   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8032   ;;
   8033 *)
   8034   lt_save_MAGIC_CMD=$MAGIC_CMD
   8035   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8036   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8037   for ac_dir in $ac_dummy; do
   8038     IFS=$lt_save_ifs
   8039     test -z "$ac_dir" && ac_dir=.
   8040     if test -f "$ac_dir/file"; then
   8041       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8042       if test -n "$file_magic_test_file"; then
   8043 	case $deplibs_check_method in
   8044 	"file_magic "*)
   8045 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8046 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8047 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8048 	    $EGREP "$file_magic_regex" > /dev/null; then
   8049 	    :
   8050 	  else
   8051 	    cat <<_LT_EOF 1>&2
   8052 
   8053 *** Warning: the command libtool uses to detect shared libraries,
   8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8055 *** The result is that libtool may fail to recognize shared libraries
   8056 *** as such.  This will affect the creation of libtool libraries that
   8057 *** depend on shared libraries, but programs linked with such libtool
   8058 *** libraries will work regardless of this problem.  Nevertheless, you
   8059 *** may want to report the problem to your system manager and/or to
   8060 *** bug-libtool (at] gnu.org
   8061 
   8062 _LT_EOF
   8063 	  fi ;;
   8064 	esac
   8065       fi
   8066       break
   8067     fi
   8068   done
   8069   IFS=$lt_save_ifs
   8070   MAGIC_CMD=$lt_save_MAGIC_CMD
   8071   ;;
   8072 esac
   8073 fi
   8074 
   8075 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8076 if test -n "$MAGIC_CMD"; then
   8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8078 $as_echo "$MAGIC_CMD" >&6; }
   8079 else
   8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8081 $as_echo "no" >&6; }
   8082 fi
   8083 
   8084 
   8085   else
   8086     MAGIC_CMD=:
   8087   fi
   8088 fi
   8089 
   8090   fi
   8091   ;;
   8092 esac
   8093 
   8094 # Use C for the default configuration in the libtool script
   8095 
   8096 lt_save_CC=$CC
   8097 ac_ext=c
   8098 ac_cpp='$CPP $CPPFLAGS'
   8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8102 
   8103 
   8104 # Source file extension for C test sources.
   8105 ac_ext=c
   8106 
   8107 # Object file extension for compiled C test sources.
   8108 objext=o
   8109 objext=$objext
   8110 
   8111 # Code to be used in simple compile tests
   8112 lt_simple_compile_test_code="int some_variable = 0;"
   8113 
   8114 # Code to be used in simple link tests
   8115 lt_simple_link_test_code='int main(){return(0);}'
   8116 
   8117 
   8118 
   8119 
   8120 
   8121 
   8122 
   8123 # If no C compiler was specified, use CC.
   8124 LTCC=${LTCC-"$CC"}
   8125 
   8126 # If no C compiler flags were specified, use CFLAGS.
   8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8128 
   8129 # Allow CC to be a program name with arguments.
   8130 compiler=$CC
   8131 
   8132 # Save the default compiler, since it gets overwritten when the other
   8133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8134 compiler_DEFAULT=$CC
   8135 
   8136 # save warnings/boilerplate of simple test code
   8137 ac_outfile=conftest.$ac_objext
   8138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8140 _lt_compiler_boilerplate=`cat conftest.err`
   8141 $RM conftest*
   8142 
   8143 ac_outfile=conftest.$ac_objext
   8144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8146 _lt_linker_boilerplate=`cat conftest.err`
   8147 $RM -r conftest*
   8148 
   8149 
   8150 ## CAVEAT EMPTOR:
   8151 ## There is no encapsulation within the following macros, do not change
   8152 ## the running order or otherwise move them around unless you know exactly
   8153 ## what you are doing...
   8154 if test -n "$compiler"; then
   8155 
   8156 lt_prog_compiler_no_builtin_flag=
   8157 
   8158 if test yes = "$GCC"; then
   8159   case $cc_basename in
   8160   nvcc*)
   8161     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8162   *)
   8163     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8164   esac
   8165 
   8166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8167 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8168 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8169   $as_echo_n "(cached) " >&6
   8170 else
   8171   lt_cv_prog_compiler_rtti_exceptions=no
   8172    ac_outfile=conftest.$ac_objext
   8173    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8174    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   8175    # Insert the option either (1) after the last *FLAGS variable, or
   8176    # (2) before a word containing "conftest.", or (3) at the end.
   8177    # Note that $ac_compile itself does not contain backslashes and begins
   8178    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8179    # The option is referenced via a variable to avoid confusing sed.
   8180    lt_compile=`echo "$ac_compile" | $SED \
   8181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8183    -e 's:$: $lt_compiler_flag:'`
   8184    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8185    (eval "$lt_compile" 2>conftest.err)
   8186    ac_status=$?
   8187    cat conftest.err >&5
   8188    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8189    if (exit $ac_status) && test -s "$ac_outfile"; then
   8190      # The compiler can only warn and ignore the option if not recognized
   8191      # So say no if there are warnings other than the usual output.
   8192      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8193      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8194      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8195        lt_cv_prog_compiler_rtti_exceptions=yes
   8196      fi
   8197    fi
   8198    $RM conftest*
   8199 
   8200 fi
   8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8202 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8203 
   8204 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   8205     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8206 else
   8207     :
   8208 fi
   8209 
   8210 fi
   8211 
   8212 
   8213 
   8214 
   8215 
   8216 
   8217   lt_prog_compiler_wl=
   8218 lt_prog_compiler_pic=
   8219 lt_prog_compiler_static=
   8220 
   8221 
   8222   if test yes = "$GCC"; then
   8223     lt_prog_compiler_wl='-Wl,'
   8224     lt_prog_compiler_static='-static'
   8225 
   8226     case $host_os in
   8227       aix*)
   8228       # All AIX code is PIC.
   8229       if test ia64 = "$host_cpu"; then
   8230 	# AIX 5 now supports IA64 processor
   8231 	lt_prog_compiler_static='-Bstatic'
   8232       fi
   8233       lt_prog_compiler_pic='-fPIC'
   8234       ;;
   8235 
   8236     amigaos*)
   8237       case $host_cpu in
   8238       powerpc)
   8239             # see comment about AmigaOS4 .so support
   8240             lt_prog_compiler_pic='-fPIC'
   8241         ;;
   8242       m68k)
   8243             # FIXME: we need at least 68020 code to build shared libraries, but
   8244             # adding the '-m68020' flag to GCC prevents building anything better,
   8245             # like '-m68040'.
   8246             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   8247         ;;
   8248       esac
   8249       ;;
   8250 
   8251     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   8252       # PIC is the default for these OSes.
   8253       ;;
   8254 
   8255     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8256       # This hack is so that the source file can tell whether it is being
   8257       # built for inclusion in a dll (and should export symbols for example).
   8258       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   8259       # (--disable-auto-import) libraries
   8260       lt_prog_compiler_pic='-DDLL_EXPORT'
   8261       case $host_os in
   8262       os2*)
   8263 	lt_prog_compiler_static='$wl-static'
   8264 	;;
   8265       esac
   8266       ;;
   8267 
   8268     darwin* | rhapsody*)
   8269       # PIC is the default on this platform
   8270       # Common symbols not allowed in MH_DYLIB files
   8271       lt_prog_compiler_pic='-fno-common'
   8272       ;;
   8273 
   8274     haiku*)
   8275       # PIC is the default for Haiku.
   8276       # The "-static" flag exists, but is broken.
   8277       lt_prog_compiler_static=
   8278       ;;
   8279 
   8280     hpux*)
   8281       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   8282       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   8283       # sets the default TLS model and affects inlining.
   8284       case $host_cpu in
   8285       hppa*64*)
   8286 	# +Z the default
   8287 	;;
   8288       *)
   8289 	lt_prog_compiler_pic='-fPIC'
   8290 	;;
   8291       esac
   8292       ;;
   8293 
   8294     interix[3-9]*)
   8295       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8296       # Instead, we relocate shared libraries at runtime.
   8297       ;;
   8298 
   8299     msdosdjgpp*)
   8300       # Just because we use GCC doesn't mean we suddenly get shared libraries
   8301       # on systems that don't support them.
   8302       lt_prog_compiler_can_build_shared=no
   8303       enable_shared=no
   8304       ;;
   8305 
   8306     *nto* | *qnx*)
   8307       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8308       # it will coredump.
   8309       lt_prog_compiler_pic='-fPIC -shared'
   8310       ;;
   8311 
   8312     sysv4*MP*)
   8313       if test -d /usr/nec; then
   8314 	lt_prog_compiler_pic=-Kconform_pic
   8315       fi
   8316       ;;
   8317 
   8318     *)
   8319       lt_prog_compiler_pic='-fPIC'
   8320       ;;
   8321     esac
   8322 
   8323     case $cc_basename in
   8324     nvcc*) # Cuda Compiler Driver 2.2
   8325       lt_prog_compiler_wl='-Xlinker '
   8326       if test -n "$lt_prog_compiler_pic"; then
   8327         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   8328       fi
   8329       ;;
   8330     esac
   8331   else
   8332     # PORTME Check for flag to pass linker flags through the system compiler.
   8333     case $host_os in
   8334     aix*)
   8335       lt_prog_compiler_wl='-Wl,'
   8336       if test ia64 = "$host_cpu"; then
   8337 	# AIX 5 now supports IA64 processor
   8338 	lt_prog_compiler_static='-Bstatic'
   8339       else
   8340 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8341       fi
   8342       ;;
   8343 
   8344     darwin* | rhapsody*)
   8345       # PIC is the default on this platform
   8346       # Common symbols not allowed in MH_DYLIB files
   8347       lt_prog_compiler_pic='-fno-common'
   8348       case $cc_basename in
   8349       nagfor*)
   8350         # NAG Fortran compiler
   8351         lt_prog_compiler_wl='-Wl,-Wl,,'
   8352         lt_prog_compiler_pic='-PIC'
   8353         lt_prog_compiler_static='-Bstatic'
   8354         ;;
   8355       esac
   8356       ;;
   8357 
   8358     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8359       # This hack is so that the source file can tell whether it is being
   8360       # built for inclusion in a dll (and should export symbols for example).
   8361       lt_prog_compiler_pic='-DDLL_EXPORT'
   8362       case $host_os in
   8363       os2*)
   8364 	lt_prog_compiler_static='$wl-static'
   8365 	;;
   8366       esac
   8367       ;;
   8368 
   8369     hpux9* | hpux10* | hpux11*)
   8370       lt_prog_compiler_wl='-Wl,'
   8371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8372       # not for PA HP-UX.
   8373       case $host_cpu in
   8374       hppa*64*|ia64*)
   8375 	# +Z the default
   8376 	;;
   8377       *)
   8378 	lt_prog_compiler_pic='+Z'
   8379 	;;
   8380       esac
   8381       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8382       lt_prog_compiler_static='$wl-a ${wl}archive'
   8383       ;;
   8384 
   8385     irix5* | irix6* | nonstopux*)
   8386       lt_prog_compiler_wl='-Wl,'
   8387       # PIC (with -KPIC) is the default.
   8388       lt_prog_compiler_static='-non_shared'
   8389       ;;
   8390 
   8391     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8392       case $cc_basename in
   8393       # old Intel for x86_64, which still supported -KPIC.
   8394       ecc*)
   8395 	lt_prog_compiler_wl='-Wl,'
   8396 	lt_prog_compiler_pic='-KPIC'
   8397 	lt_prog_compiler_static='-static'
   8398         ;;
   8399       # icc used to be incompatible with GCC.
   8400       # ICC 10 doesn't accept -KPIC any more.
   8401       icc* | ifort*)
   8402 	lt_prog_compiler_wl='-Wl,'
   8403 	lt_prog_compiler_pic='-fPIC'
   8404 	lt_prog_compiler_static='-static'
   8405         ;;
   8406       # Lahey Fortran 8.1.
   8407       lf95*)
   8408 	lt_prog_compiler_wl='-Wl,'
   8409 	lt_prog_compiler_pic='--shared'
   8410 	lt_prog_compiler_static='--static'
   8411 	;;
   8412       nagfor*)
   8413 	# NAG Fortran compiler
   8414 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8415 	lt_prog_compiler_pic='-PIC'
   8416 	lt_prog_compiler_static='-Bstatic'
   8417 	;;
   8418       tcc*)
   8419 	# Fabrice Bellard et al's Tiny C Compiler
   8420 	lt_prog_compiler_wl='-Wl,'
   8421 	lt_prog_compiler_pic='-fPIC'
   8422 	lt_prog_compiler_static='-static'
   8423 	;;
   8424       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8425         # Portland Group compilers (*not* the Pentium gcc compiler,
   8426 	# which looks to be a dead project)
   8427 	lt_prog_compiler_wl='-Wl,'
   8428 	lt_prog_compiler_pic='-fpic'
   8429 	lt_prog_compiler_static='-Bstatic'
   8430         ;;
   8431       ccc*)
   8432         lt_prog_compiler_wl='-Wl,'
   8433         # All Alpha code is PIC.
   8434         lt_prog_compiler_static='-non_shared'
   8435         ;;
   8436       xl* | bgxl* | bgf* | mpixl*)
   8437 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8438 	lt_prog_compiler_wl='-Wl,'
   8439 	lt_prog_compiler_pic='-qpic'
   8440 	lt_prog_compiler_static='-qstaticlink'
   8441 	;;
   8442       *)
   8443 	case `$CC -V 2>&1 | sed 5q` in
   8444 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8445 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8446 	  lt_prog_compiler_pic='-KPIC'
   8447 	  lt_prog_compiler_static='-Bstatic'
   8448 	  lt_prog_compiler_wl=''
   8449 	  ;;
   8450 	*Sun\ F* | *Sun*Fortran*)
   8451 	  lt_prog_compiler_pic='-KPIC'
   8452 	  lt_prog_compiler_static='-Bstatic'
   8453 	  lt_prog_compiler_wl='-Qoption ld '
   8454 	  ;;
   8455 	*Sun\ C*)
   8456 	  # Sun C 5.9
   8457 	  lt_prog_compiler_pic='-KPIC'
   8458 	  lt_prog_compiler_static='-Bstatic'
   8459 	  lt_prog_compiler_wl='-Wl,'
   8460 	  ;;
   8461         *Intel*\ [CF]*Compiler*)
   8462 	  lt_prog_compiler_wl='-Wl,'
   8463 	  lt_prog_compiler_pic='-fPIC'
   8464 	  lt_prog_compiler_static='-static'
   8465 	  ;;
   8466 	*Portland\ Group*)
   8467 	  lt_prog_compiler_wl='-Wl,'
   8468 	  lt_prog_compiler_pic='-fpic'
   8469 	  lt_prog_compiler_static='-Bstatic'
   8470 	  ;;
   8471 	esac
   8472 	;;
   8473       esac
   8474       ;;
   8475 
   8476     newsos6)
   8477       lt_prog_compiler_pic='-KPIC'
   8478       lt_prog_compiler_static='-Bstatic'
   8479       ;;
   8480 
   8481     *nto* | *qnx*)
   8482       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8483       # it will coredump.
   8484       lt_prog_compiler_pic='-fPIC -shared'
   8485       ;;
   8486 
   8487     osf3* | osf4* | osf5*)
   8488       lt_prog_compiler_wl='-Wl,'
   8489       # All OSF/1 code is PIC.
   8490       lt_prog_compiler_static='-non_shared'
   8491       ;;
   8492 
   8493     rdos*)
   8494       lt_prog_compiler_static='-non_shared'
   8495       ;;
   8496 
   8497     solaris*)
   8498       lt_prog_compiler_pic='-KPIC'
   8499       lt_prog_compiler_static='-Bstatic'
   8500       case $cc_basename in
   8501       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8502 	lt_prog_compiler_wl='-Qoption ld ';;
   8503       *)
   8504 	lt_prog_compiler_wl='-Wl,';;
   8505       esac
   8506       ;;
   8507 
   8508     sunos4*)
   8509       lt_prog_compiler_wl='-Qoption ld '
   8510       lt_prog_compiler_pic='-PIC'
   8511       lt_prog_compiler_static='-Bstatic'
   8512       ;;
   8513 
   8514     sysv4 | sysv4.2uw2* | sysv4.3*)
   8515       lt_prog_compiler_wl='-Wl,'
   8516       lt_prog_compiler_pic='-KPIC'
   8517       lt_prog_compiler_static='-Bstatic'
   8518       ;;
   8519 
   8520     sysv4*MP*)
   8521       if test -d /usr/nec; then
   8522 	lt_prog_compiler_pic='-Kconform_pic'
   8523 	lt_prog_compiler_static='-Bstatic'
   8524       fi
   8525       ;;
   8526 
   8527     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8528       lt_prog_compiler_wl='-Wl,'
   8529       lt_prog_compiler_pic='-KPIC'
   8530       lt_prog_compiler_static='-Bstatic'
   8531       ;;
   8532 
   8533     unicos*)
   8534       lt_prog_compiler_wl='-Wl,'
   8535       lt_prog_compiler_can_build_shared=no
   8536       ;;
   8537 
   8538     uts4*)
   8539       lt_prog_compiler_pic='-pic'
   8540       lt_prog_compiler_static='-Bstatic'
   8541       ;;
   8542 
   8543     *)
   8544       lt_prog_compiler_can_build_shared=no
   8545       ;;
   8546     esac
   8547   fi
   8548 
   8549 case $host_os in
   8550   # For platforms that do not support PIC, -DPIC is meaningless:
   8551   *djgpp*)
   8552     lt_prog_compiler_pic=
   8553     ;;
   8554   *)
   8555     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8556     ;;
   8557 esac
   8558 
   8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8560 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8561 if ${lt_cv_prog_compiler_pic+:} false; then :
   8562   $as_echo_n "(cached) " >&6
   8563 else
   8564   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8565 fi
   8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8567 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8568 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8569 
   8570 #
   8571 # Check to make sure the PIC flag actually works.
   8572 #
   8573 if test -n "$lt_prog_compiler_pic"; then
   8574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8575 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8576 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8577   $as_echo_n "(cached) " >&6
   8578 else
   8579   lt_cv_prog_compiler_pic_works=no
   8580    ac_outfile=conftest.$ac_objext
   8581    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8582    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8583    # Insert the option either (1) after the last *FLAGS variable, or
   8584    # (2) before a word containing "conftest.", or (3) at the end.
   8585    # Note that $ac_compile itself does not contain backslashes and begins
   8586    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8587    # The option is referenced via a variable to avoid confusing sed.
   8588    lt_compile=`echo "$ac_compile" | $SED \
   8589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8591    -e 's:$: $lt_compiler_flag:'`
   8592    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8593    (eval "$lt_compile" 2>conftest.err)
   8594    ac_status=$?
   8595    cat conftest.err >&5
   8596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8597    if (exit $ac_status) && test -s "$ac_outfile"; then
   8598      # The compiler can only warn and ignore the option if not recognized
   8599      # So say no if there are warnings other than the usual output.
   8600      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8601      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8602      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8603        lt_cv_prog_compiler_pic_works=yes
   8604      fi
   8605    fi
   8606    $RM conftest*
   8607 
   8608 fi
   8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8610 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8611 
   8612 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8613     case $lt_prog_compiler_pic in
   8614      "" | " "*) ;;
   8615      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8616      esac
   8617 else
   8618     lt_prog_compiler_pic=
   8619      lt_prog_compiler_can_build_shared=no
   8620 fi
   8621 
   8622 fi
   8623 
   8624 
   8625 
   8626 
   8627 
   8628 
   8629 
   8630 
   8631 
   8632 
   8633 
   8634 #
   8635 # Check to make sure the static flag actually works.
   8636 #
   8637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8640 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8641   $as_echo_n "(cached) " >&6
   8642 else
   8643   lt_cv_prog_compiler_static_works=no
   8644    save_LDFLAGS=$LDFLAGS
   8645    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8646    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8647    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8648      # The linker can only warn and ignore the option if not recognized
   8649      # So say no if there are warnings
   8650      if test -s conftest.err; then
   8651        # Append any errors to the config.log.
   8652        cat conftest.err 1>&5
   8653        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8654        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8655        if diff conftest.exp conftest.er2 >/dev/null; then
   8656          lt_cv_prog_compiler_static_works=yes
   8657        fi
   8658      else
   8659        lt_cv_prog_compiler_static_works=yes
   8660      fi
   8661    fi
   8662    $RM -r conftest*
   8663    LDFLAGS=$save_LDFLAGS
   8664 
   8665 fi
   8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8667 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8668 
   8669 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8670     :
   8671 else
   8672     lt_prog_compiler_static=
   8673 fi
   8674 
   8675 
   8676 
   8677 
   8678 
   8679 
   8680 
   8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8683 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8684   $as_echo_n "(cached) " >&6
   8685 else
   8686   lt_cv_prog_compiler_c_o=no
   8687    $RM -r conftest 2>/dev/null
   8688    mkdir conftest
   8689    cd conftest
   8690    mkdir out
   8691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8692 
   8693    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8694    # Insert the option either (1) after the last *FLAGS variable, or
   8695    # (2) before a word containing "conftest.", or (3) at the end.
   8696    # Note that $ac_compile itself does not contain backslashes and begins
   8697    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8698    lt_compile=`echo "$ac_compile" | $SED \
   8699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8701    -e 's:$: $lt_compiler_flag:'`
   8702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8703    (eval "$lt_compile" 2>out/conftest.err)
   8704    ac_status=$?
   8705    cat out/conftest.err >&5
   8706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8707    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8708    then
   8709      # The compiler can only warn and ignore the option if not recognized
   8710      # So say no if there are warnings
   8711      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8712      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8713      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8714        lt_cv_prog_compiler_c_o=yes
   8715      fi
   8716    fi
   8717    chmod u+w . 2>&5
   8718    $RM conftest*
   8719    # SGI C++ compiler will create directory out/ii_files/ for
   8720    # template instantiation
   8721    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8722    $RM out/* && rmdir out
   8723    cd ..
   8724    $RM -r conftest
   8725    $RM conftest*
   8726 
   8727 fi
   8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8729 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8730 
   8731 
   8732 
   8733 
   8734 
   8735 
   8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8737 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8738 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8739   $as_echo_n "(cached) " >&6
   8740 else
   8741   lt_cv_prog_compiler_c_o=no
   8742    $RM -r conftest 2>/dev/null
   8743    mkdir conftest
   8744    cd conftest
   8745    mkdir out
   8746    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8747 
   8748    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8749    # Insert the option either (1) after the last *FLAGS variable, or
   8750    # (2) before a word containing "conftest.", or (3) at the end.
   8751    # Note that $ac_compile itself does not contain backslashes and begins
   8752    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8753    lt_compile=`echo "$ac_compile" | $SED \
   8754    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8755    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8756    -e 's:$: $lt_compiler_flag:'`
   8757    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8758    (eval "$lt_compile" 2>out/conftest.err)
   8759    ac_status=$?
   8760    cat out/conftest.err >&5
   8761    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8762    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8763    then
   8764      # The compiler can only warn and ignore the option if not recognized
   8765      # So say no if there are warnings
   8766      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8767      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8768      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8769        lt_cv_prog_compiler_c_o=yes
   8770      fi
   8771    fi
   8772    chmod u+w . 2>&5
   8773    $RM conftest*
   8774    # SGI C++ compiler will create directory out/ii_files/ for
   8775    # template instantiation
   8776    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8777    $RM out/* && rmdir out
   8778    cd ..
   8779    $RM -r conftest
   8780    $RM conftest*
   8781 
   8782 fi
   8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8784 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8785 
   8786 
   8787 
   8788 
   8789 hard_links=nottested
   8790 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8791   # do not overwrite the value of need_locks provided by the user
   8792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8793 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8794   hard_links=yes
   8795   $RM conftest*
   8796   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8797   touch conftest.a
   8798   ln conftest.a conftest.b 2>&5 || hard_links=no
   8799   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8801 $as_echo "$hard_links" >&6; }
   8802   if test no = "$hard_links"; then
   8803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8804 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8805     need_locks=warn
   8806   fi
   8807 else
   8808   need_locks=no
   8809 fi
   8810 
   8811 
   8812 
   8813 
   8814 
   8815 
   8816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8817 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8818 
   8819   runpath_var=
   8820   allow_undefined_flag=
   8821   always_export_symbols=no
   8822   archive_cmds=
   8823   archive_expsym_cmds=
   8824   compiler_needs_object=no
   8825   enable_shared_with_static_runtimes=no
   8826   export_dynamic_flag_spec=
   8827   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8828   hardcode_automatic=no
   8829   hardcode_direct=no
   8830   hardcode_direct_absolute=no
   8831   hardcode_libdir_flag_spec=
   8832   hardcode_libdir_separator=
   8833   hardcode_minus_L=no
   8834   hardcode_shlibpath_var=unsupported
   8835   inherit_rpath=no
   8836   link_all_deplibs=unknown
   8837   module_cmds=
   8838   module_expsym_cmds=
   8839   old_archive_from_new_cmds=
   8840   old_archive_from_expsyms_cmds=
   8841   thread_safe_flag_spec=
   8842   whole_archive_flag_spec=
   8843   # include_expsyms should be a list of space-separated symbols to be *always*
   8844   # included in the symbol list
   8845   include_expsyms=
   8846   # exclude_expsyms can be an extended regexp of symbols to exclude
   8847   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8848   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8849   # as well as any symbol that contains 'd'.
   8850   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8851   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8852   # platforms (ab)use it in PIC code, but their linkers get confused if
   8853   # the symbol is explicitly referenced.  Since portable code cannot
   8854   # rely on this symbol name, it's probably fine to never include it in
   8855   # preloaded symbol tables.
   8856   # Exclude shared library initialization/finalization symbols.
   8857   extract_expsyms_cmds=
   8858 
   8859   case $host_os in
   8860   cygwin* | mingw* | pw32* | cegcc*)
   8861     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8862     # When not using gcc, we currently assume that we are using
   8863     # Microsoft Visual C++.
   8864     if test yes != "$GCC"; then
   8865       with_gnu_ld=no
   8866     fi
   8867     ;;
   8868   interix*)
   8869     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8870     with_gnu_ld=yes
   8871     ;;
   8872   openbsd* | bitrig*)
   8873     with_gnu_ld=no
   8874     ;;
   8875   esac
   8876 
   8877   ld_shlibs=yes
   8878 
   8879   # On some targets, GNU ld is compatible enough with the native linker
   8880   # that we're better off using the native interface for both.
   8881   lt_use_gnu_ld_interface=no
   8882   if test yes = "$with_gnu_ld"; then
   8883     case $host_os in
   8884       aix*)
   8885 	# The AIX port of GNU ld has always aspired to compatibility
   8886 	# with the native linker.  However, as the warning in the GNU ld
   8887 	# block says, versions before 2.19.5* couldn't really create working
   8888 	# shared libraries, regardless of the interface used.
   8889 	case `$LD -v 2>&1` in
   8890 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8891 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8892 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8893 	  *)
   8894 	    lt_use_gnu_ld_interface=yes
   8895 	    ;;
   8896 	esac
   8897 	;;
   8898       *)
   8899 	lt_use_gnu_ld_interface=yes
   8900 	;;
   8901     esac
   8902   fi
   8903 
   8904   if test yes = "$lt_use_gnu_ld_interface"; then
   8905     # If archive_cmds runs LD, not CC, wlarc should be empty
   8906     wlarc='$wl'
   8907 
   8908     # Set some defaults for GNU ld with shared library support. These
   8909     # are reset later if shared libraries are not supported. Putting them
   8910     # here allows them to be overridden if necessary.
   8911     runpath_var=LD_RUN_PATH
   8912     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8913     export_dynamic_flag_spec='$wl--export-dynamic'
   8914     # ancient GNU ld didn't support --whole-archive et. al.
   8915     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8916       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8917     else
   8918       whole_archive_flag_spec=
   8919     fi
   8920     supports_anon_versioning=no
   8921     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8922       *GNU\ gold*) supports_anon_versioning=yes ;;
   8923       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8924       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8925       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8926       *\ 2.11.*) ;; # other 2.11 versions
   8927       *) supports_anon_versioning=yes ;;
   8928     esac
   8929 
   8930     # See if GNU ld supports shared libraries.
   8931     case $host_os in
   8932     aix[3-9]*)
   8933       # On AIX/PPC, the GNU linker is very broken
   8934       if test ia64 != "$host_cpu"; then
   8935 	ld_shlibs=no
   8936 	cat <<_LT_EOF 1>&2
   8937 
   8938 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8939 *** to be unable to reliably create shared libraries on AIX.
   8940 *** Therefore, libtool is disabling shared libraries support.  If you
   8941 *** really care for shared libraries, you may want to install binutils
   8942 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8943 *** You will then need to restart the configuration process.
   8944 
   8945 _LT_EOF
   8946       fi
   8947       ;;
   8948 
   8949     amigaos*)
   8950       case $host_cpu in
   8951       powerpc)
   8952             # see comment about AmigaOS4 .so support
   8953             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8954             archive_expsym_cmds=''
   8955         ;;
   8956       m68k)
   8957             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)'
   8958             hardcode_libdir_flag_spec='-L$libdir'
   8959             hardcode_minus_L=yes
   8960         ;;
   8961       esac
   8962       ;;
   8963 
   8964     beos*)
   8965       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8966 	allow_undefined_flag=unsupported
   8967 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8968 	# support --undefined.  This deserves some investigation.  FIXME
   8969 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8970       else
   8971 	ld_shlibs=no
   8972       fi
   8973       ;;
   8974 
   8975     cygwin* | mingw* | pw32* | cegcc*)
   8976       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8977       # as there is no search path for DLLs.
   8978       hardcode_libdir_flag_spec='-L$libdir'
   8979       export_dynamic_flag_spec='$wl--export-all-symbols'
   8980       allow_undefined_flag=unsupported
   8981       always_export_symbols=no
   8982       enable_shared_with_static_runtimes=yes
   8983       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'
   8984       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8985 
   8986       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8987         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8988 	# If the export-symbols file already is a .def file, use it as
   8989 	# is; otherwise, prepend EXPORTS...
   8990 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8991           cp $export_symbols $output_objdir/$soname.def;
   8992         else
   8993           echo EXPORTS > $output_objdir/$soname.def;
   8994           cat $export_symbols >> $output_objdir/$soname.def;
   8995         fi~
   8996         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8997       else
   8998 	ld_shlibs=no
   8999       fi
   9000       ;;
   9001 
   9002     haiku*)
   9003       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9004       link_all_deplibs=yes
   9005       ;;
   9006 
   9007     os2*)
   9008       hardcode_libdir_flag_spec='-L$libdir'
   9009       hardcode_minus_L=yes
   9010       allow_undefined_flag=unsupported
   9011       shrext_cmds=.dll
   9012       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9013 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9014 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9015 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9016 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9017 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9018 	emximp -o $lib $output_objdir/$libname.def'
   9019       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9020 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9021 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9022 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9023 	prefix_cmds="$SED"~
   9024 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9025 	  prefix_cmds="$prefix_cmds -e 1d";
   9026 	fi~
   9027 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9028 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9029 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9030 	emximp -o $lib $output_objdir/$libname.def'
   9031       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9032       enable_shared_with_static_runtimes=yes
   9033       ;;
   9034 
   9035     interix[3-9]*)
   9036       hardcode_direct=no
   9037       hardcode_shlibpath_var=no
   9038       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9039       export_dynamic_flag_spec='$wl-E'
   9040       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9041       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9042       # default) and relocated if they conflict, which is a slow very memory
   9043       # consuming and fragmenting process.  To avoid this, we pick a random,
   9044       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9045       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9046       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9047       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'
   9048       ;;
   9049 
   9050     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9051       tmp_diet=no
   9052       if test linux-dietlibc = "$host_os"; then
   9053 	case $cc_basename in
   9054 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9055 	esac
   9056       fi
   9057       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9058 	 && test no = "$tmp_diet"
   9059       then
   9060 	tmp_addflag=' $pic_flag'
   9061 	tmp_sharedflag='-shared'
   9062 	case $cc_basename,$host_cpu in
   9063         pgcc*)				# Portland Group C compiler
   9064 	  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'
   9065 	  tmp_addflag=' $pic_flag'
   9066 	  ;;
   9067 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9068 					# Portland Group f77 and f90 compilers
   9069 	  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'
   9070 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9071 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9072 	  tmp_addflag=' -i_dynamic' ;;
   9073 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9074 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9075 	ifc* | ifort*)			# Intel Fortran compiler
   9076 	  tmp_addflag=' -nofor_main' ;;
   9077 	lf95*)				# Lahey Fortran 8.1
   9078 	  whole_archive_flag_spec=
   9079 	  tmp_sharedflag='--shared' ;;
   9080         nagfor*)                        # NAGFOR 5.3
   9081           tmp_sharedflag='-Wl,-shared' ;;
   9082 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9083 	  tmp_sharedflag='-qmkshrobj'
   9084 	  tmp_addflag= ;;
   9085 	nvcc*)	# Cuda Compiler Driver 2.2
   9086 	  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'
   9087 	  compiler_needs_object=yes
   9088 	  ;;
   9089 	esac
   9090 	case `$CC -V 2>&1 | sed 5q` in
   9091 	*Sun\ C*)			# Sun C 5.9
   9092 	  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'
   9093 	  compiler_needs_object=yes
   9094 	  tmp_sharedflag='-G' ;;
   9095 	*Sun\ F*)			# Sun Fortran 8.3
   9096 	  tmp_sharedflag='-G' ;;
   9097 	esac
   9098 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9099 
   9100         if test yes = "$supports_anon_versioning"; then
   9101           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9102             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9103             echo "local: *; };" >> $output_objdir/$libname.ver~
   9104             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9105         fi
   9106 
   9107 	case $cc_basename in
   9108 	tcc*)
   9109 	  export_dynamic_flag_spec='-rdynamic'
   9110 	  ;;
   9111 	xlf* | bgf* | bgxlf* | mpixlf*)
   9112 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9113 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9114 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9115 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9116 	  if test yes = "$supports_anon_versioning"; then
   9117 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9118               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9119               echo "local: *; };" >> $output_objdir/$libname.ver~
   9120               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9121 	  fi
   9122 	  ;;
   9123 	esac
   9124       else
   9125         ld_shlibs=no
   9126       fi
   9127       ;;
   9128 
   9129     netbsd*)
   9130       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9131 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9132 	wlarc=
   9133       else
   9134 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9135 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9136       fi
   9137       ;;
   9138 
   9139     solaris*)
   9140       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9141 	ld_shlibs=no
   9142 	cat <<_LT_EOF 1>&2
   9143 
   9144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9145 *** create shared libraries on Solaris systems.  Therefore, libtool
   9146 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9147 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9148 *** your PATH or compiler configuration so that the native linker is
   9149 *** used, and then restart.
   9150 
   9151 _LT_EOF
   9152       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9153 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9154 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9155       else
   9156 	ld_shlibs=no
   9157       fi
   9158       ;;
   9159 
   9160     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9161       case `$LD -v 2>&1` in
   9162         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9163 	ld_shlibs=no
   9164 	cat <<_LT_EOF 1>&2
   9165 
   9166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   9167 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9168 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9169 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9170 *** your PATH or compiler configuration so that the native linker is
   9171 *** used, and then restart.
   9172 
   9173 _LT_EOF
   9174 	;;
   9175 	*)
   9176 	  # For security reasons, it is highly recommended that you always
   9177 	  # use absolute paths for naming shared libraries, and exclude the
   9178 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9179 	  # requires that you compile everything twice, which is a pain.
   9180 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9181 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9182 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9183 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9184 	  else
   9185 	    ld_shlibs=no
   9186 	  fi
   9187 	;;
   9188       esac
   9189       ;;
   9190 
   9191     sunos4*)
   9192       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9193       wlarc=
   9194       hardcode_direct=yes
   9195       hardcode_shlibpath_var=no
   9196       ;;
   9197 
   9198     *)
   9199       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9200 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9201 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9202       else
   9203 	ld_shlibs=no
   9204       fi
   9205       ;;
   9206     esac
   9207 
   9208     if test no = "$ld_shlibs"; then
   9209       runpath_var=
   9210       hardcode_libdir_flag_spec=
   9211       export_dynamic_flag_spec=
   9212       whole_archive_flag_spec=
   9213     fi
   9214   else
   9215     # PORTME fill in a description of your system's linker (not GNU ld)
   9216     case $host_os in
   9217     aix3*)
   9218       allow_undefined_flag=unsupported
   9219       always_export_symbols=yes
   9220       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'
   9221       # Note: this linker hardcodes the directories in LIBPATH if there
   9222       # are no directories specified by -L.
   9223       hardcode_minus_L=yes
   9224       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   9225 	# Neither direct hardcoding nor static linking is supported with a
   9226 	# broken collect2.
   9227 	hardcode_direct=unsupported
   9228       fi
   9229       ;;
   9230 
   9231     aix[4-9]*)
   9232       if test ia64 = "$host_cpu"; then
   9233 	# On IA64, the linker does run time linking by default, so we don't
   9234 	# have to do anything special.
   9235 	aix_use_runtimelinking=no
   9236 	exp_sym_flag='-Bexport'
   9237 	no_entry_flag=
   9238       else
   9239 	# If we're using GNU nm, then we don't want the "-C" option.
   9240 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   9241 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   9242 	# weak defined symbols like other global defined symbols, whereas
   9243 	# GNU nm marks them as "W".
   9244 	# While the 'weak' keyword is ignored in the Export File, we need
   9245 	# it in the Import File for the 'aix-soname' feature, so we have
   9246 	# to replace the "-B" option with "-P" for AIX nm.
   9247 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   9248 	  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'
   9249 	else
   9250 	  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'
   9251 	fi
   9252 	aix_use_runtimelinking=no
   9253 
   9254 	# Test if we are trying to use run time linking or normal
   9255 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   9256 	# have runtime linking enabled, and use it for executables.
   9257 	# For shared libraries, we enable/disable runtime linking
   9258 	# depending on the kind of the shared library created -
   9259 	# when "with_aix_soname,aix_use_runtimelinking" is:
   9260 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   9261 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   9262 	#            lib.a           static archive
   9263 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   9264 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   9265 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   9266 	#            lib.a(lib.so.V) shared, rtl:no
   9267 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   9268 	#            lib.a           static archive
   9269 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   9270 	  for ld_flag in $LDFLAGS; do
   9271 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   9272 	    aix_use_runtimelinking=yes
   9273 	    break
   9274 	  fi
   9275 	  done
   9276 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   9277 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   9278 	    # so we don't have lib.a shared libs to link our executables.
   9279 	    # We have to force runtime linking in this case.
   9280 	    aix_use_runtimelinking=yes
   9281 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   9282 	  fi
   9283 	  ;;
   9284 	esac
   9285 
   9286 	exp_sym_flag='-bexport'
   9287 	no_entry_flag='-bnoentry'
   9288       fi
   9289 
   9290       # When large executables or shared objects are built, AIX ld can
   9291       # have problems creating the table of contents.  If linking a library
   9292       # or program results in "error TOC overflow" add -mminimal-toc to
   9293       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   9294       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   9295 
   9296       archive_cmds=''
   9297       hardcode_direct=yes
   9298       hardcode_direct_absolute=yes
   9299       hardcode_libdir_separator=':'
   9300       link_all_deplibs=yes
   9301       file_list_spec='$wl-f,'
   9302       case $with_aix_soname,$aix_use_runtimelinking in
   9303       aix,*) ;; # traditional, no import file
   9304       svr4,* | *,yes) # use import file
   9305 	# The Import File defines what to hardcode.
   9306 	hardcode_direct=no
   9307 	hardcode_direct_absolute=no
   9308 	;;
   9309       esac
   9310 
   9311       if test yes = "$GCC"; then
   9312 	case $host_os in aix4.[012]|aix4.[012].*)
   9313 	# We only want to do this on AIX 4.2 and lower, the check
   9314 	# below for broken collect2 doesn't work under 4.3+
   9315 	  collect2name=`$CC -print-prog-name=collect2`
   9316 	  if test -f "$collect2name" &&
   9317 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   9318 	  then
   9319 	  # We have reworked collect2
   9320 	  :
   9321 	  else
   9322 	  # We have old collect2
   9323 	  hardcode_direct=unsupported
   9324 	  # It fails to find uninstalled libraries when the uninstalled
   9325 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   9326 	  # to unsupported forces relinking
   9327 	  hardcode_minus_L=yes
   9328 	  hardcode_libdir_flag_spec='-L$libdir'
   9329 	  hardcode_libdir_separator=
   9330 	  fi
   9331 	  ;;
   9332 	esac
   9333 	shared_flag='-shared'
   9334 	if test yes = "$aix_use_runtimelinking"; then
   9335 	  shared_flag="$shared_flag "'$wl-G'
   9336 	fi
   9337 	# Need to ensure runtime linking is disabled for the traditional
   9338 	# shared library, or the linker may eventually find shared libraries
   9339 	# /with/ Import File - we do not want to mix them.
   9340 	shared_flag_aix='-shared'
   9341 	shared_flag_svr4='-shared $wl-G'
   9342       else
   9343 	# not using gcc
   9344 	if test ia64 = "$host_cpu"; then
   9345 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   9346 	# chokes on -Wl,-G. The following line is correct:
   9347 	  shared_flag='-G'
   9348 	else
   9349 	  if test yes = "$aix_use_runtimelinking"; then
   9350 	    shared_flag='$wl-G'
   9351 	  else
   9352 	    shared_flag='$wl-bM:SRE'
   9353 	  fi
   9354 	  shared_flag_aix='$wl-bM:SRE'
   9355 	  shared_flag_svr4='$wl-G'
   9356 	fi
   9357       fi
   9358 
   9359       export_dynamic_flag_spec='$wl-bexpall'
   9360       # It seems that -bexpall does not export symbols beginning with
   9361       # underscore (_), so it is better to generate a list of symbols to export.
   9362       always_export_symbols=yes
   9363       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9364 	# Warning - without using the other runtime loading flags (-brtl),
   9365 	# -berok will link without error, but may produce a broken library.
   9366 	allow_undefined_flag='-berok'
   9367         # Determine the default libpath from the value encoded in an
   9368         # empty executable.
   9369         if test set = "${lt_cv_aix_libpath+set}"; then
   9370   aix_libpath=$lt_cv_aix_libpath
   9371 else
   9372   if ${lt_cv_aix_libpath_+:} false; then :
   9373   $as_echo_n "(cached) " >&6
   9374 else
   9375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9376 /* end confdefs.h.  */
   9377 
   9378 int
   9379 main ()
   9380 {
   9381 
   9382   ;
   9383   return 0;
   9384 }
   9385 _ACEOF
   9386 if ac_fn_c_try_link "$LINENO"; then :
   9387 
   9388   lt_aix_libpath_sed='
   9389       /Import File Strings/,/^$/ {
   9390 	  /^0/ {
   9391 	      s/^0  *\([^ ]*\) *$/\1/
   9392 	      p
   9393 	  }
   9394       }'
   9395   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9396   # Check for a 64-bit object if we didn't find anything.
   9397   if test -z "$lt_cv_aix_libpath_"; then
   9398     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9399   fi
   9400 fi
   9401 rm -f core conftest.err conftest.$ac_objext \
   9402     conftest$ac_exeext conftest.$ac_ext
   9403   if test -z "$lt_cv_aix_libpath_"; then
   9404     lt_cv_aix_libpath_=/usr/lib:/lib
   9405   fi
   9406 
   9407 fi
   9408 
   9409   aix_libpath=$lt_cv_aix_libpath_
   9410 fi
   9411 
   9412         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9413         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
   9414       else
   9415 	if test ia64 = "$host_cpu"; then
   9416 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9417 	  allow_undefined_flag="-z nodefs"
   9418 	  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"
   9419 	else
   9420 	 # Determine the default libpath from the value encoded in an
   9421 	 # empty executable.
   9422 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9423   aix_libpath=$lt_cv_aix_libpath
   9424 else
   9425   if ${lt_cv_aix_libpath_+:} false; then :
   9426   $as_echo_n "(cached) " >&6
   9427 else
   9428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9429 /* end confdefs.h.  */
   9430 
   9431 int
   9432 main ()
   9433 {
   9434 
   9435   ;
   9436   return 0;
   9437 }
   9438 _ACEOF
   9439 if ac_fn_c_try_link "$LINENO"; then :
   9440 
   9441   lt_aix_libpath_sed='
   9442       /Import File Strings/,/^$/ {
   9443 	  /^0/ {
   9444 	      s/^0  *\([^ ]*\) *$/\1/
   9445 	      p
   9446 	  }
   9447       }'
   9448   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9449   # Check for a 64-bit object if we didn't find anything.
   9450   if test -z "$lt_cv_aix_libpath_"; then
   9451     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9452   fi
   9453 fi
   9454 rm -f core conftest.err conftest.$ac_objext \
   9455     conftest$ac_exeext conftest.$ac_ext
   9456   if test -z "$lt_cv_aix_libpath_"; then
   9457     lt_cv_aix_libpath_=/usr/lib:/lib
   9458   fi
   9459 
   9460 fi
   9461 
   9462   aix_libpath=$lt_cv_aix_libpath_
   9463 fi
   9464 
   9465 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9466 	  # Warning - without using the other run time loading flags,
   9467 	  # -berok will link without error, but may produce a broken library.
   9468 	  no_undefined_flag=' $wl-bernotok'
   9469 	  allow_undefined_flag=' $wl-berok'
   9470 	  if test yes = "$with_gnu_ld"; then
   9471 	    # We only use this code for GNU lds that support --whole-archive.
   9472 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9473 	  else
   9474 	    # Exported symbols can be pulled into shared objects from archives
   9475 	    whole_archive_flag_spec='$convenience'
   9476 	  fi
   9477 	  archive_cmds_need_lc=yes
   9478 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9479 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9480 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9481 	  if test svr4 != "$with_aix_soname"; then
   9482 	    # This is similar to how AIX traditionally builds its shared libraries.
   9483 	    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'
   9484 	  fi
   9485 	  if test aix != "$with_aix_soname"; then
   9486 	    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'
   9487 	  else
   9488 	    # used by -dlpreopen to get the symbols
   9489 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9490 	  fi
   9491 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9492 	fi
   9493       fi
   9494       ;;
   9495 
   9496     amigaos*)
   9497       case $host_cpu in
   9498       powerpc)
   9499             # see comment about AmigaOS4 .so support
   9500             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9501             archive_expsym_cmds=''
   9502         ;;
   9503       m68k)
   9504             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)'
   9505             hardcode_libdir_flag_spec='-L$libdir'
   9506             hardcode_minus_L=yes
   9507         ;;
   9508       esac
   9509       ;;
   9510 
   9511     bsdi[45]*)
   9512       export_dynamic_flag_spec=-rdynamic
   9513       ;;
   9514 
   9515     cygwin* | mingw* | pw32* | cegcc*)
   9516       # When not using gcc, we currently assume that we are using
   9517       # Microsoft Visual C++.
   9518       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9519       # no search path for DLLs.
   9520       case $cc_basename in
   9521       cl*)
   9522 	# Native MSVC
   9523 	hardcode_libdir_flag_spec=' '
   9524 	allow_undefined_flag=unsupported
   9525 	always_export_symbols=yes
   9526 	file_list_spec='@'
   9527 	# Tell ltmain to make .lib files, not .a files.
   9528 	libext=lib
   9529 	# Tell ltmain to make .dll files, not .so files.
   9530 	shrext_cmds=.dll
   9531 	# FIXME: Setting linknames here is a bad hack.
   9532 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9533 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9534             cp "$export_symbols" "$output_objdir/$soname.def";
   9535             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9536           else
   9537             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9538           fi~
   9539           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9540           linknames='
   9541 	# The linker will not automatically build a static lib if we build a DLL.
   9542 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9543 	enable_shared_with_static_runtimes=yes
   9544 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9545 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9546 	# Don't use ranlib
   9547 	old_postinstall_cmds='chmod 644 $oldlib'
   9548 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9549           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9550           case $lt_outputfile in
   9551             *.exe|*.EXE) ;;
   9552             *)
   9553               lt_outputfile=$lt_outputfile.exe
   9554               lt_tool_outputfile=$lt_tool_outputfile.exe
   9555               ;;
   9556           esac~
   9557           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9558             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9559             $RM "$lt_outputfile.manifest";
   9560           fi'
   9561 	;;
   9562       *)
   9563 	# Assume MSVC wrapper
   9564 	hardcode_libdir_flag_spec=' '
   9565 	allow_undefined_flag=unsupported
   9566 	# Tell ltmain to make .lib files, not .a files.
   9567 	libext=lib
   9568 	# Tell ltmain to make .dll files, not .so files.
   9569 	shrext_cmds=.dll
   9570 	# FIXME: Setting linknames here is a bad hack.
   9571 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9572 	# The linker will automatically build a .lib file if we build a DLL.
   9573 	old_archive_from_new_cmds='true'
   9574 	# FIXME: Should let the user specify the lib program.
   9575 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9576 	enable_shared_with_static_runtimes=yes
   9577 	;;
   9578       esac
   9579       ;;
   9580 
   9581     darwin* | rhapsody*)
   9582 
   9583 
   9584   archive_cmds_need_lc=no
   9585   hardcode_direct=no
   9586   hardcode_automatic=yes
   9587   hardcode_shlibpath_var=unsupported
   9588   if test yes = "$lt_cv_ld_force_load"; then
   9589     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\"`'
   9590 
   9591   else
   9592     whole_archive_flag_spec=''
   9593   fi
   9594   link_all_deplibs=yes
   9595   allow_undefined_flag=$_lt_dar_allow_undefined
   9596   case $cc_basename in
   9597      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9598      *) _lt_dar_can_shared=$GCC ;;
   9599   esac
   9600   if test yes = "$_lt_dar_can_shared"; then
   9601     output_verbose_link_cmd=func_echo_all
   9602     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9603     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9604     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"
   9605     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"
   9606 
   9607   else
   9608   ld_shlibs=no
   9609   fi
   9610 
   9611       ;;
   9612 
   9613     dgux*)
   9614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9615       hardcode_libdir_flag_spec='-L$libdir'
   9616       hardcode_shlibpath_var=no
   9617       ;;
   9618 
   9619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9620     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9621     # does not break anything, and helps significantly (at the cost of a little
   9622     # extra space).
   9623     freebsd2.2*)
   9624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9625       hardcode_libdir_flag_spec='-R$libdir'
   9626       hardcode_direct=yes
   9627       hardcode_shlibpath_var=no
   9628       ;;
   9629 
   9630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9631     freebsd2.*)
   9632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9633       hardcode_direct=yes
   9634       hardcode_minus_L=yes
   9635       hardcode_shlibpath_var=no
   9636       ;;
   9637 
   9638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9639     freebsd* | dragonfly*)
   9640       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9641       hardcode_libdir_flag_spec='-R$libdir'
   9642       hardcode_direct=yes
   9643       hardcode_shlibpath_var=no
   9644       ;;
   9645 
   9646     hpux9*)
   9647       if test yes = "$GCC"; then
   9648 	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'
   9649       else
   9650 	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'
   9651       fi
   9652       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9653       hardcode_libdir_separator=:
   9654       hardcode_direct=yes
   9655 
   9656       # hardcode_minus_L: Not really in the search PATH,
   9657       # but as the default location of the library.
   9658       hardcode_minus_L=yes
   9659       export_dynamic_flag_spec='$wl-E'
   9660       ;;
   9661 
   9662     hpux10*)
   9663       if test yes,no = "$GCC,$with_gnu_ld"; then
   9664 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9665       else
   9666 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9667       fi
   9668       if test no = "$with_gnu_ld"; then
   9669 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9670 	hardcode_libdir_separator=:
   9671 	hardcode_direct=yes
   9672 	hardcode_direct_absolute=yes
   9673 	export_dynamic_flag_spec='$wl-E'
   9674 	# hardcode_minus_L: Not really in the search PATH,
   9675 	# but as the default location of the library.
   9676 	hardcode_minus_L=yes
   9677       fi
   9678       ;;
   9679 
   9680     hpux11*)
   9681       if test yes,no = "$GCC,$with_gnu_ld"; then
   9682 	case $host_cpu in
   9683 	hppa*64*)
   9684 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9685 	  ;;
   9686 	ia64*)
   9687 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9688 	  ;;
   9689 	*)
   9690 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9691 	  ;;
   9692 	esac
   9693       else
   9694 	case $host_cpu in
   9695 	hppa*64*)
   9696 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9697 	  ;;
   9698 	ia64*)
   9699 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9700 	  ;;
   9701 	*)
   9702 
   9703 	  # Older versions of the 11.00 compiler do not understand -b yet
   9704 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9705 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9706 $as_echo_n "checking if $CC understands -b... " >&6; }
   9707 if ${lt_cv_prog_compiler__b+:} false; then :
   9708   $as_echo_n "(cached) " >&6
   9709 else
   9710   lt_cv_prog_compiler__b=no
   9711    save_LDFLAGS=$LDFLAGS
   9712    LDFLAGS="$LDFLAGS -b"
   9713    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9714    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9715      # The linker can only warn and ignore the option if not recognized
   9716      # So say no if there are warnings
   9717      if test -s conftest.err; then
   9718        # Append any errors to the config.log.
   9719        cat conftest.err 1>&5
   9720        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9721        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9722        if diff conftest.exp conftest.er2 >/dev/null; then
   9723          lt_cv_prog_compiler__b=yes
   9724        fi
   9725      else
   9726        lt_cv_prog_compiler__b=yes
   9727      fi
   9728    fi
   9729    $RM -r conftest*
   9730    LDFLAGS=$save_LDFLAGS
   9731 
   9732 fi
   9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9734 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9735 
   9736 if test yes = "$lt_cv_prog_compiler__b"; then
   9737     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9738 else
   9739     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9740 fi
   9741 
   9742 	  ;;
   9743 	esac
   9744       fi
   9745       if test no = "$with_gnu_ld"; then
   9746 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9747 	hardcode_libdir_separator=:
   9748 
   9749 	case $host_cpu in
   9750 	hppa*64*|ia64*)
   9751 	  hardcode_direct=no
   9752 	  hardcode_shlibpath_var=no
   9753 	  ;;
   9754 	*)
   9755 	  hardcode_direct=yes
   9756 	  hardcode_direct_absolute=yes
   9757 	  export_dynamic_flag_spec='$wl-E'
   9758 
   9759 	  # hardcode_minus_L: Not really in the search PATH,
   9760 	  # but as the default location of the library.
   9761 	  hardcode_minus_L=yes
   9762 	  ;;
   9763 	esac
   9764       fi
   9765       ;;
   9766 
   9767     irix5* | irix6* | nonstopux*)
   9768       if test yes = "$GCC"; then
   9769 	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'
   9770 	# Try to use the -exported_symbol ld option, if it does not
   9771 	# work, assume that -exports_file does not work either and
   9772 	# implicitly export all symbols.
   9773 	# This should be the same for all languages, so no per-tag cache variable.
   9774 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9775 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9776 if ${lt_cv_irix_exported_symbol+:} false; then :
   9777   $as_echo_n "(cached) " >&6
   9778 else
   9779   save_LDFLAGS=$LDFLAGS
   9780 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9781 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9782 /* end confdefs.h.  */
   9783 int foo (void) { return 0; }
   9784 _ACEOF
   9785 if ac_fn_c_try_link "$LINENO"; then :
   9786   lt_cv_irix_exported_symbol=yes
   9787 else
   9788   lt_cv_irix_exported_symbol=no
   9789 fi
   9790 rm -f core conftest.err conftest.$ac_objext \
   9791     conftest$ac_exeext conftest.$ac_ext
   9792            LDFLAGS=$save_LDFLAGS
   9793 fi
   9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9795 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9796 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9797           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'
   9798 	fi
   9799       else
   9800 	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'
   9801 	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'
   9802       fi
   9803       archive_cmds_need_lc='no'
   9804       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9805       hardcode_libdir_separator=:
   9806       inherit_rpath=yes
   9807       link_all_deplibs=yes
   9808       ;;
   9809 
   9810     linux*)
   9811       case $cc_basename in
   9812       tcc*)
   9813 	# Fabrice Bellard et al's Tiny C Compiler
   9814 	ld_shlibs=yes
   9815 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9816 	;;
   9817       esac
   9818       ;;
   9819 
   9820     netbsd*)
   9821       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9822 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9823       else
   9824 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9825       fi
   9826       hardcode_libdir_flag_spec='-R$libdir'
   9827       hardcode_direct=yes
   9828       hardcode_shlibpath_var=no
   9829       ;;
   9830 
   9831     newsos6)
   9832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9833       hardcode_direct=yes
   9834       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9835       hardcode_libdir_separator=:
   9836       hardcode_shlibpath_var=no
   9837       ;;
   9838 
   9839     *nto* | *qnx*)
   9840       ;;
   9841 
   9842     openbsd* | bitrig*)
   9843       if test -f /usr/libexec/ld.so; then
   9844 	hardcode_direct=yes
   9845 	hardcode_shlibpath_var=no
   9846 	hardcode_direct_absolute=yes
   9847 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9848 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9849 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9850 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9851 	  export_dynamic_flag_spec='$wl-E'
   9852 	else
   9853 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9854 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9855 	fi
   9856       else
   9857 	ld_shlibs=no
   9858       fi
   9859       ;;
   9860 
   9861     os2*)
   9862       hardcode_libdir_flag_spec='-L$libdir'
   9863       hardcode_minus_L=yes
   9864       allow_undefined_flag=unsupported
   9865       shrext_cmds=.dll
   9866       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9867 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9868 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9869 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9870 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9871 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9872 	emximp -o $lib $output_objdir/$libname.def'
   9873       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9874 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9875 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9876 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9877 	prefix_cmds="$SED"~
   9878 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9879 	  prefix_cmds="$prefix_cmds -e 1d";
   9880 	fi~
   9881 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9882 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9883 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9884 	emximp -o $lib $output_objdir/$libname.def'
   9885       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9886       enable_shared_with_static_runtimes=yes
   9887       ;;
   9888 
   9889     osf3*)
   9890       if test yes = "$GCC"; then
   9891 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9892 	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'
   9893       else
   9894 	allow_undefined_flag=' -expect_unresolved \*'
   9895 	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'
   9896       fi
   9897       archive_cmds_need_lc='no'
   9898       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9899       hardcode_libdir_separator=:
   9900       ;;
   9901 
   9902     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9903       if test yes = "$GCC"; then
   9904 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9905 	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'
   9906 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9907       else
   9908 	allow_undefined_flag=' -expect_unresolved \*'
   9909 	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'
   9910 	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~
   9911           $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'
   9912 
   9913 	# Both c and cxx compiler support -rpath directly
   9914 	hardcode_libdir_flag_spec='-rpath $libdir'
   9915       fi
   9916       archive_cmds_need_lc='no'
   9917       hardcode_libdir_separator=:
   9918       ;;
   9919 
   9920     solaris*)
   9921       no_undefined_flag=' -z defs'
   9922       if test yes = "$GCC"; then
   9923 	wlarc='$wl'
   9924 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9925 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9926           $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'
   9927       else
   9928 	case `$CC -V 2>&1` in
   9929 	*"Compilers 5.0"*)
   9930 	  wlarc=''
   9931 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9932 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9933             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9934 	  ;;
   9935 	*)
   9936 	  wlarc='$wl'
   9937 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9938 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9939             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9940 	  ;;
   9941 	esac
   9942       fi
   9943       hardcode_libdir_flag_spec='-R$libdir'
   9944       hardcode_shlibpath_var=no
   9945       case $host_os in
   9946       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9947       *)
   9948 	# The compiler driver will combine and reorder linker options,
   9949 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9950 	# but is careful enough not to reorder.
   9951 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9952 	if test yes = "$GCC"; then
   9953 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9954 	else
   9955 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9956 	fi
   9957 	;;
   9958       esac
   9959       link_all_deplibs=yes
   9960       ;;
   9961 
   9962     sunos4*)
   9963       if test sequent = "$host_vendor"; then
   9964 	# Use $CC to link under sequent, because it throws in some extra .o
   9965 	# files that make .init and .fini sections work.
   9966 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9967       else
   9968 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9969       fi
   9970       hardcode_libdir_flag_spec='-L$libdir'
   9971       hardcode_direct=yes
   9972       hardcode_minus_L=yes
   9973       hardcode_shlibpath_var=no
   9974       ;;
   9975 
   9976     sysv4)
   9977       case $host_vendor in
   9978 	sni)
   9979 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9980 	  hardcode_direct=yes # is this really true???
   9981 	;;
   9982 	siemens)
   9983 	  ## LD is ld it makes a PLAMLIB
   9984 	  ## CC just makes a GrossModule.
   9985 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9986 	  reload_cmds='$CC -r -o $output$reload_objs'
   9987 	  hardcode_direct=no
   9988         ;;
   9989 	motorola)
   9990 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9991 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9992 	;;
   9993       esac
   9994       runpath_var='LD_RUN_PATH'
   9995       hardcode_shlibpath_var=no
   9996       ;;
   9997 
   9998     sysv4.3*)
   9999       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10000       hardcode_shlibpath_var=no
   10001       export_dynamic_flag_spec='-Bexport'
   10002       ;;
   10003 
   10004     sysv4*MP*)
   10005       if test -d /usr/nec; then
   10006 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10007 	hardcode_shlibpath_var=no
   10008 	runpath_var=LD_RUN_PATH
   10009 	hardcode_runpath_var=yes
   10010 	ld_shlibs=yes
   10011       fi
   10012       ;;
   10013 
   10014     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10015       no_undefined_flag='$wl-z,text'
   10016       archive_cmds_need_lc=no
   10017       hardcode_shlibpath_var=no
   10018       runpath_var='LD_RUN_PATH'
   10019 
   10020       if test yes = "$GCC"; then
   10021 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10022 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10023       else
   10024 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10025 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10026       fi
   10027       ;;
   10028 
   10029     sysv5* | sco3.2v5* | sco5v6*)
   10030       # Note: We CANNOT use -z defs as we might desire, because we do not
   10031       # link with -lc, and that would cause any symbols used from libc to
   10032       # always be unresolved, which means just about no library would
   10033       # ever link correctly.  If we're not using GNU ld we use -z text
   10034       # though, which does catch some bad symbols but isn't as heavy-handed
   10035       # as -z defs.
   10036       no_undefined_flag='$wl-z,text'
   10037       allow_undefined_flag='$wl-z,nodefs'
   10038       archive_cmds_need_lc=no
   10039       hardcode_shlibpath_var=no
   10040       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10041       hardcode_libdir_separator=':'
   10042       link_all_deplibs=yes
   10043       export_dynamic_flag_spec='$wl-Bexport'
   10044       runpath_var='LD_RUN_PATH'
   10045 
   10046       if test yes = "$GCC"; then
   10047 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10048 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10049       else
   10050 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10051 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10052       fi
   10053       ;;
   10054 
   10055     uts4*)
   10056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10057       hardcode_libdir_flag_spec='-L$libdir'
   10058       hardcode_shlibpath_var=no
   10059       ;;
   10060 
   10061     *)
   10062       ld_shlibs=no
   10063       ;;
   10064     esac
   10065 
   10066     if test sni = "$host_vendor"; then
   10067       case $host in
   10068       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10069 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10070 	;;
   10071       esac
   10072     fi
   10073   fi
   10074 
   10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10076 $as_echo "$ld_shlibs" >&6; }
   10077 test no = "$ld_shlibs" && can_build_shared=no
   10078 
   10079 with_gnu_ld=$with_gnu_ld
   10080 
   10081 
   10082 
   10083 
   10084 
   10085 
   10086 
   10087 
   10088 
   10089 
   10090 
   10091 
   10092 
   10093 
   10094 
   10095 #
   10096 # Do we need to explicitly link libc?
   10097 #
   10098 case "x$archive_cmds_need_lc" in
   10099 x|xyes)
   10100   # Assume -lc should be added
   10101   archive_cmds_need_lc=yes
   10102 
   10103   if test yes,yes = "$GCC,$enable_shared"; then
   10104     case $archive_cmds in
   10105     *'~'*)
   10106       # FIXME: we may have to deal with multi-command sequences.
   10107       ;;
   10108     '$CC '*)
   10109       # Test whether the compiler implicitly links with -lc since on some
   10110       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10111       # to ld, don't add -lc before -lgcc.
   10112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10113 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10114 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10115   $as_echo_n "(cached) " >&6
   10116 else
   10117   $RM conftest*
   10118 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10119 
   10120 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10121   (eval $ac_compile) 2>&5
   10122   ac_status=$?
   10123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10124   test $ac_status = 0; } 2>conftest.err; then
   10125 	  soname=conftest
   10126 	  lib=conftest
   10127 	  libobjs=conftest.$ac_objext
   10128 	  deplibs=
   10129 	  wl=$lt_prog_compiler_wl
   10130 	  pic_flag=$lt_prog_compiler_pic
   10131 	  compiler_flags=-v
   10132 	  linker_flags=-v
   10133 	  verstring=
   10134 	  output_objdir=.
   10135 	  libname=conftest
   10136 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10137 	  allow_undefined_flag=
   10138 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10139   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10140   ac_status=$?
   10141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10142   test $ac_status = 0; }
   10143 	  then
   10144 	    lt_cv_archive_cmds_need_lc=no
   10145 	  else
   10146 	    lt_cv_archive_cmds_need_lc=yes
   10147 	  fi
   10148 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10149 	else
   10150 	  cat conftest.err 1>&5
   10151 	fi
   10152 	$RM conftest*
   10153 
   10154 fi
   10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10156 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10157       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10158       ;;
   10159     esac
   10160   fi
   10161   ;;
   10162 esac
   10163 
   10164 
   10165 
   10166 
   10167 
   10168 
   10169 
   10170 
   10171 
   10172 
   10173 
   10174 
   10175 
   10176 
   10177 
   10178 
   10179 
   10180 
   10181 
   10182 
   10183 
   10184 
   10185 
   10186 
   10187 
   10188 
   10189 
   10190 
   10191 
   10192 
   10193 
   10194 
   10195 
   10196 
   10197 
   10198 
   10199 
   10200 
   10201 
   10202 
   10203 
   10204 
   10205 
   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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   10316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   10317 
   10318 if test yes = "$GCC"; then
   10319   case $host_os in
   10320     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   10321     *) lt_awk_arg='/^libraries:/' ;;
   10322   esac
   10323   case $host_os in
   10324     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   10325     *) lt_sed_strip_eq='s|=/|/|g' ;;
   10326   esac
   10327   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   10328   case $lt_search_path_spec in
   10329   *\;*)
   10330     # if the path contains ";" then we assume it to be the separator
   10331     # otherwise default to the standard path separator (i.e. ":") - it is
   10332     # assumed that no part of a normal pathname contains ";" but that should
   10333     # okay in the real world where ";" in dirpaths is itself problematic.
   10334     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   10335     ;;
   10336   *)
   10337     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   10338     ;;
   10339   esac
   10340   # Ok, now we have the path, separated by spaces, we can step through it
   10341   # and add multilib dir if necessary...
   10342   lt_tmp_lt_search_path_spec=
   10343   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   10344   # ...but if some path component already ends with the multilib dir we assume
   10345   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   10346   case "$lt_multi_os_dir; $lt_search_path_spec " in
   10347   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   10348     lt_multi_os_dir=
   10349     ;;
   10350   esac
   10351   for lt_sys_path in $lt_search_path_spec; do
   10352     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   10353       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   10354     elif test -n "$lt_multi_os_dir"; then
   10355       test -d "$lt_sys_path" && \
   10356 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   10357     fi
   10358   done
   10359   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10360 BEGIN {RS = " "; FS = "/|\n";} {
   10361   lt_foo = "";
   10362   lt_count = 0;
   10363   for (lt_i = NF; lt_i > 0; lt_i--) {
   10364     if ($lt_i != "" && $lt_i != ".") {
   10365       if ($lt_i == "..") {
   10366         lt_count++;
   10367       } else {
   10368         if (lt_count == 0) {
   10369           lt_foo = "/" $lt_i lt_foo;
   10370         } else {
   10371           lt_count--;
   10372         }
   10373       }
   10374     }
   10375   }
   10376   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10377   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10378 }'`
   10379   # AWK program above erroneously prepends '/' to C:/dos/paths
   10380   # for these hosts.
   10381   case $host_os in
   10382     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10383       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10384   esac
   10385   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10386 else
   10387   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10388 fi
   10389 library_names_spec=
   10390 libname_spec='lib$name'
   10391 soname_spec=
   10392 shrext_cmds=.so
   10393 postinstall_cmds=
   10394 postuninstall_cmds=
   10395 finish_cmds=
   10396 finish_eval=
   10397 shlibpath_var=
   10398 shlibpath_overrides_runpath=unknown
   10399 version_type=none
   10400 dynamic_linker="$host_os ld.so"
   10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10402 need_lib_prefix=unknown
   10403 hardcode_into_libs=no
   10404 
   10405 # when you set need_version to no, make sure it does not cause -set_version
   10406 # flags to be left without arguments
   10407 need_version=unknown
   10408 
   10409 
   10410 
   10411 case $host_os in
   10412 aix3*)
   10413   version_type=linux # correct to gnu/linux during the next big refactor
   10414   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10415   shlibpath_var=LIBPATH
   10416 
   10417   # AIX 3 has no versioning support, so we append a major version to the name.
   10418   soname_spec='$libname$release$shared_ext$major'
   10419   ;;
   10420 
   10421 aix[4-9]*)
   10422   version_type=linux # correct to gnu/linux during the next big refactor
   10423   need_lib_prefix=no
   10424   need_version=no
   10425   hardcode_into_libs=yes
   10426   if test ia64 = "$host_cpu"; then
   10427     # AIX 5 supports IA64
   10428     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10429     shlibpath_var=LD_LIBRARY_PATH
   10430   else
   10431     # With GCC up to 2.95.x, collect2 would create an import file
   10432     # for dependence libraries.  The import file would start with
   10433     # the line '#! .'.  This would cause the generated library to
   10434     # depend on '.', always an invalid library.  This was fixed in
   10435     # development snapshots of GCC prior to 3.0.
   10436     case $host_os in
   10437       aix4 | aix4.[01] | aix4.[01].*)
   10438       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10439 	   echo ' yes '
   10440 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10441 	:
   10442       else
   10443 	can_build_shared=no
   10444       fi
   10445       ;;
   10446     esac
   10447     # Using Import Files as archive members, it is possible to support
   10448     # filename-based versioning of shared library archives on AIX. While
   10449     # this would work for both with and without runtime linking, it will
   10450     # prevent static linking of such archives. So we do filename-based
   10451     # shared library versioning with .so extension only, which is used
   10452     # when both runtime linking and shared linking is enabled.
   10453     # Unfortunately, runtime linking may impact performance, so we do
   10454     # not want this to be the default eventually. Also, we use the
   10455     # versioned .so libs for executables only if there is the -brtl
   10456     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10457     # To allow for filename-based versioning support, we need to create
   10458     # libNAME.so.V as an archive file, containing:
   10459     # *) an Import File, referring to the versioned filename of the
   10460     #    archive as well as the shared archive member, telling the
   10461     #    bitwidth (32 or 64) of that shared object, and providing the
   10462     #    list of exported symbols of that shared object, eventually
   10463     #    decorated with the 'weak' keyword
   10464     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10465     #    it being seen by the linker.
   10466     # At run time we better use the real file rather than another symlink,
   10467     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10468 
   10469     case $with_aix_soname,$aix_use_runtimelinking in
   10470     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10471     # soname into executable. Probably we can add versioning support to
   10472     # collect2, so additional links can be useful in future.
   10473     aix,yes) # traditional libtool
   10474       dynamic_linker='AIX unversionable lib.so'
   10475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10476       # instead of lib<name>.a to let people know that these are not
   10477       # typical AIX shared libraries.
   10478       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10479       ;;
   10480     aix,no) # traditional AIX only
   10481       dynamic_linker='AIX lib.a(lib.so.V)'
   10482       # We preserve .a as extension for shared libraries through AIX4.2
   10483       # and later when we are not doing run time linking.
   10484       library_names_spec='$libname$release.a $libname.a'
   10485       soname_spec='$libname$release$shared_ext$major'
   10486       ;;
   10487     svr4,*) # full svr4 only
   10488       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10489       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10490       # We do not specify a path in Import Files, so LIBPATH fires.
   10491       shlibpath_overrides_runpath=yes
   10492       ;;
   10493     *,yes) # both, prefer svr4
   10494       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10495       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10496       # unpreferred sharedlib libNAME.a needs extra handling
   10497       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"'
   10498       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"'
   10499       # We do not specify a path in Import Files, so LIBPATH fires.
   10500       shlibpath_overrides_runpath=yes
   10501       ;;
   10502     *,no) # both, prefer aix
   10503       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10504       library_names_spec='$libname$release.a $libname.a'
   10505       soname_spec='$libname$release$shared_ext$major'
   10506       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10507       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)'
   10508       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"'
   10509       ;;
   10510     esac
   10511     shlibpath_var=LIBPATH
   10512   fi
   10513   ;;
   10514 
   10515 amigaos*)
   10516   case $host_cpu in
   10517   powerpc)
   10518     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10519     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10520     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10521     ;;
   10522   m68k)
   10523     library_names_spec='$libname.ixlibrary $libname.a'
   10524     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10525     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'
   10526     ;;
   10527   esac
   10528   ;;
   10529 
   10530 beos*)
   10531   library_names_spec='$libname$shared_ext'
   10532   dynamic_linker="$host_os ld.so"
   10533   shlibpath_var=LIBRARY_PATH
   10534   ;;
   10535 
   10536 bsdi[45]*)
   10537   version_type=linux # correct to gnu/linux during the next big refactor
   10538   need_version=no
   10539   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10540   soname_spec='$libname$release$shared_ext$major'
   10541   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10542   shlibpath_var=LD_LIBRARY_PATH
   10543   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10544   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10545   # the default ld.so.conf also contains /usr/contrib/lib and
   10546   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10547   # libtool to hard-code these into programs
   10548   ;;
   10549 
   10550 cygwin* | mingw* | pw32* | cegcc*)
   10551   version_type=windows
   10552   shrext_cmds=.dll
   10553   need_version=no
   10554   need_lib_prefix=no
   10555 
   10556   case $GCC,$cc_basename in
   10557   yes,*)
   10558     # gcc
   10559     library_names_spec='$libname.dll.a'
   10560     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10561     postinstall_cmds='base_file=`basename \$file`~
   10562       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10563       dldir=$destdir/`dirname \$dlpath`~
   10564       test -d \$dldir || mkdir -p \$dldir~
   10565       $install_prog $dir/$dlname \$dldir/$dlname~
   10566       chmod a+x \$dldir/$dlname~
   10567       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10568         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10569       fi'
   10570     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10571       dlpath=$dir/\$dldll~
   10572        $RM \$dlpath'
   10573     shlibpath_overrides_runpath=yes
   10574 
   10575     case $host_os in
   10576     cygwin*)
   10577       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10578       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10579 
   10580       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10581       ;;
   10582     mingw* | cegcc*)
   10583       # MinGW DLLs use traditional 'lib' prefix
   10584       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10585       ;;
   10586     pw32*)
   10587       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10588       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10589       ;;
   10590     esac
   10591     dynamic_linker='Win32 ld.exe'
   10592     ;;
   10593 
   10594   *,cl*)
   10595     # Native MSVC
   10596     libname_spec='$name'
   10597     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10598     library_names_spec='$libname.dll.lib'
   10599 
   10600     case $build_os in
   10601     mingw*)
   10602       sys_lib_search_path_spec=
   10603       lt_save_ifs=$IFS
   10604       IFS=';'
   10605       for lt_path in $LIB
   10606       do
   10607         IFS=$lt_save_ifs
   10608         # Let DOS variable expansion print the short 8.3 style file name.
   10609         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10610         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10611       done
   10612       IFS=$lt_save_ifs
   10613       # Convert to MSYS style.
   10614       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10615       ;;
   10616     cygwin*)
   10617       # Convert to unix form, then to dos form, then back to unix form
   10618       # but this time dos style (no spaces!) so that the unix form looks
   10619       # like /cygdrive/c/PROGRA~1:/cygdr...
   10620       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10621       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10622       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10623       ;;
   10624     *)
   10625       sys_lib_search_path_spec=$LIB
   10626       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10627         # It is most probably a Windows format PATH.
   10628         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10629       else
   10630         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10631       fi
   10632       # FIXME: find the short name or the path components, as spaces are
   10633       # common. (e.g. "Program Files" -> "PROGRA~1")
   10634       ;;
   10635     esac
   10636 
   10637     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10638     postinstall_cmds='base_file=`basename \$file`~
   10639       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10640       dldir=$destdir/`dirname \$dlpath`~
   10641       test -d \$dldir || mkdir -p \$dldir~
   10642       $install_prog $dir/$dlname \$dldir/$dlname'
   10643     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10644       dlpath=$dir/\$dldll~
   10645        $RM \$dlpath'
   10646     shlibpath_overrides_runpath=yes
   10647     dynamic_linker='Win32 link.exe'
   10648     ;;
   10649 
   10650   *)
   10651     # Assume MSVC wrapper
   10652     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10653     dynamic_linker='Win32 ld.exe'
   10654     ;;
   10655   esac
   10656   # FIXME: first we should search . and the directory the executable is in
   10657   shlibpath_var=PATH
   10658   ;;
   10659 
   10660 darwin* | rhapsody*)
   10661   dynamic_linker="$host_os dyld"
   10662   version_type=darwin
   10663   need_lib_prefix=no
   10664   need_version=no
   10665   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10666   soname_spec='$libname$release$major$shared_ext'
   10667   shlibpath_overrides_runpath=yes
   10668   shlibpath_var=DYLD_LIBRARY_PATH
   10669   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10670 
   10671   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10672   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10673   ;;
   10674 
   10675 dgux*)
   10676   version_type=linux # correct to gnu/linux during the next big refactor
   10677   need_lib_prefix=no
   10678   need_version=no
   10679   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10680   soname_spec='$libname$release$shared_ext$major'
   10681   shlibpath_var=LD_LIBRARY_PATH
   10682   ;;
   10683 
   10684 freebsd* | dragonfly*)
   10685   # DragonFly does not have aout.  When/if they implement a new
   10686   # versioning mechanism, adjust this.
   10687   if test -x /usr/bin/objformat; then
   10688     objformat=`/usr/bin/objformat`
   10689   else
   10690     case $host_os in
   10691     freebsd[23].*) objformat=aout ;;
   10692     *) objformat=elf ;;
   10693     esac
   10694   fi
   10695   version_type=freebsd-$objformat
   10696   case $version_type in
   10697     freebsd-elf*)
   10698       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10699       soname_spec='$libname$release$shared_ext$major'
   10700       need_version=no
   10701       need_lib_prefix=no
   10702       ;;
   10703     freebsd-*)
   10704       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10705       need_version=yes
   10706       ;;
   10707   esac
   10708   shlibpath_var=LD_LIBRARY_PATH
   10709   case $host_os in
   10710   freebsd2.*)
   10711     shlibpath_overrides_runpath=yes
   10712     ;;
   10713   freebsd3.[01]* | freebsdelf3.[01]*)
   10714     shlibpath_overrides_runpath=yes
   10715     hardcode_into_libs=yes
   10716     ;;
   10717   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10718   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10719     shlibpath_overrides_runpath=no
   10720     hardcode_into_libs=yes
   10721     ;;
   10722   *) # from 4.6 on, and DragonFly
   10723     shlibpath_overrides_runpath=yes
   10724     hardcode_into_libs=yes
   10725     ;;
   10726   esac
   10727   ;;
   10728 
   10729 haiku*)
   10730   version_type=linux # correct to gnu/linux during the next big refactor
   10731   need_lib_prefix=no
   10732   need_version=no
   10733   dynamic_linker="$host_os runtime_loader"
   10734   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10735   soname_spec='$libname$release$shared_ext$major'
   10736   shlibpath_var=LIBRARY_PATH
   10737   shlibpath_overrides_runpath=no
   10738   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10739   hardcode_into_libs=yes
   10740   ;;
   10741 
   10742 hpux9* | hpux10* | hpux11*)
   10743   # Give a soname corresponding to the major version so that dld.sl refuses to
   10744   # link against other versions.
   10745   version_type=sunos
   10746   need_lib_prefix=no
   10747   need_version=no
   10748   case $host_cpu in
   10749   ia64*)
   10750     shrext_cmds='.so'
   10751     hardcode_into_libs=yes
   10752     dynamic_linker="$host_os dld.so"
   10753     shlibpath_var=LD_LIBRARY_PATH
   10754     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10755     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10756     soname_spec='$libname$release$shared_ext$major'
   10757     if test 32 = "$HPUX_IA64_MODE"; then
   10758       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10759       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10760     else
   10761       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10762       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10763     fi
   10764     ;;
   10765   hppa*64*)
   10766     shrext_cmds='.sl'
   10767     hardcode_into_libs=yes
   10768     dynamic_linker="$host_os dld.sl"
   10769     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10770     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10771     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10772     soname_spec='$libname$release$shared_ext$major'
   10773     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10775     ;;
   10776   *)
   10777     shrext_cmds='.sl'
   10778     dynamic_linker="$host_os dld.sl"
   10779     shlibpath_var=SHLIB_PATH
   10780     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10781     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10782     soname_spec='$libname$release$shared_ext$major'
   10783     ;;
   10784   esac
   10785   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10786   postinstall_cmds='chmod 555 $lib'
   10787   # or fails outright, so override atomically:
   10788   install_override_mode=555
   10789   ;;
   10790 
   10791 interix[3-9]*)
   10792   version_type=linux # correct to gnu/linux during the next big refactor
   10793   need_lib_prefix=no
   10794   need_version=no
   10795   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10796   soname_spec='$libname$release$shared_ext$major'
   10797   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10798   shlibpath_var=LD_LIBRARY_PATH
   10799   shlibpath_overrides_runpath=no
   10800   hardcode_into_libs=yes
   10801   ;;
   10802 
   10803 irix5* | irix6* | nonstopux*)
   10804   case $host_os in
   10805     nonstopux*) version_type=nonstopux ;;
   10806     *)
   10807 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10808 		version_type=linux # correct to gnu/linux during the next big refactor
   10809 	else
   10810 		version_type=irix
   10811 	fi ;;
   10812   esac
   10813   need_lib_prefix=no
   10814   need_version=no
   10815   soname_spec='$libname$release$shared_ext$major'
   10816   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10817   case $host_os in
   10818   irix5* | nonstopux*)
   10819     libsuff= shlibsuff=
   10820     ;;
   10821   *)
   10822     case $LD in # libtool.m4 will add one of these switches to LD
   10823     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10824       libsuff= shlibsuff= libmagic=32-bit;;
   10825     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10826       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10827     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10828       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10829     *) libsuff= shlibsuff= libmagic=never-match;;
   10830     esac
   10831     ;;
   10832   esac
   10833   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10834   shlibpath_overrides_runpath=no
   10835   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10836   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10837   hardcode_into_libs=yes
   10838   ;;
   10839 
   10840 # No shared lib support for Linux oldld, aout, or coff.
   10841 linux*oldld* | linux*aout* | linux*coff*)
   10842   dynamic_linker=no
   10843   ;;
   10844 
   10845 linux*android*)
   10846   version_type=none # Android doesn't support versioned libraries.
   10847   need_lib_prefix=no
   10848   need_version=no
   10849   library_names_spec='$libname$release$shared_ext'
   10850   soname_spec='$libname$release$shared_ext'
   10851   finish_cmds=
   10852   shlibpath_var=LD_LIBRARY_PATH
   10853   shlibpath_overrides_runpath=yes
   10854 
   10855   # This implies no fast_install, which is unacceptable.
   10856   # Some rework will be needed to allow for fast_install
   10857   # before this can be enabled.
   10858   hardcode_into_libs=yes
   10859 
   10860   dynamic_linker='Android linker'
   10861   # Don't embed -rpath directories since the linker doesn't support them.
   10862   hardcode_libdir_flag_spec='-L$libdir'
   10863   ;;
   10864 
   10865 # This must be glibc/ELF.
   10866 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10867   version_type=linux # correct to gnu/linux during the next big refactor
   10868   need_lib_prefix=no
   10869   need_version=no
   10870   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10871   soname_spec='$libname$release$shared_ext$major'
   10872   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10873   shlibpath_var=LD_LIBRARY_PATH
   10874   shlibpath_overrides_runpath=no
   10875 
   10876   # Some binutils ld are patched to set DT_RUNPATH
   10877   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10878   $as_echo_n "(cached) " >&6
   10879 else
   10880   lt_cv_shlibpath_overrides_runpath=no
   10881     save_LDFLAGS=$LDFLAGS
   10882     save_libdir=$libdir
   10883     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10884 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10886 /* end confdefs.h.  */
   10887 
   10888 int
   10889 main ()
   10890 {
   10891 
   10892   ;
   10893   return 0;
   10894 }
   10895 _ACEOF
   10896 if ac_fn_c_try_link "$LINENO"; then :
   10897   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10898   lt_cv_shlibpath_overrides_runpath=yes
   10899 fi
   10900 fi
   10901 rm -f core conftest.err conftest.$ac_objext \
   10902     conftest$ac_exeext conftest.$ac_ext
   10903     LDFLAGS=$save_LDFLAGS
   10904     libdir=$save_libdir
   10905 
   10906 fi
   10907 
   10908   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10909 
   10910   # This implies no fast_install, which is unacceptable.
   10911   # Some rework will be needed to allow for fast_install
   10912   # before this can be enabled.
   10913   hardcode_into_libs=yes
   10914 
   10915   # Ideally, we could use ldconfig to report *all* directores which are
   10916   # searched for libraries, however this is still not possible.  Aside from not
   10917   # being certain /sbin/ldconfig is available, command
   10918   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10919   # even though it is searched at run-time.  Try to do the best guess by
   10920   # appending ld.so.conf contents (and includes) to the search path.
   10921   if test -f /etc/ld.so.conf; then
   10922     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' ' '`
   10923     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10924   fi
   10925 
   10926   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10927   # powerpc, because MkLinux only supported shared libraries with the
   10928   # GNU dynamic linker.  Since this was broken with cross compilers,
   10929   # most powerpc-linux boxes support dynamic linking these days and
   10930   # people can always --disable-shared, the test was removed, and we
   10931   # assume the GNU/Linux dynamic linker is in use.
   10932   dynamic_linker='GNU/Linux ld.so'
   10933   ;;
   10934 
   10935 netbsd*)
   10936   version_type=sunos
   10937   need_lib_prefix=no
   10938   need_version=no
   10939   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10940     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10941     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10942     dynamic_linker='NetBSD (a.out) ld.so'
   10943   else
   10944     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10945     soname_spec='$libname$release$shared_ext$major'
   10946     dynamic_linker='NetBSD ld.elf_so'
   10947   fi
   10948   shlibpath_var=LD_LIBRARY_PATH
   10949   shlibpath_overrides_runpath=yes
   10950   hardcode_into_libs=yes
   10951   ;;
   10952 
   10953 newsos6)
   10954   version_type=linux # correct to gnu/linux during the next big refactor
   10955   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10956   shlibpath_var=LD_LIBRARY_PATH
   10957   shlibpath_overrides_runpath=yes
   10958   ;;
   10959 
   10960 *nto* | *qnx*)
   10961   version_type=qnx
   10962   need_lib_prefix=no
   10963   need_version=no
   10964   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10965   soname_spec='$libname$release$shared_ext$major'
   10966   shlibpath_var=LD_LIBRARY_PATH
   10967   shlibpath_overrides_runpath=no
   10968   hardcode_into_libs=yes
   10969   dynamic_linker='ldqnx.so'
   10970   ;;
   10971 
   10972 openbsd* | bitrig*)
   10973   version_type=sunos
   10974   sys_lib_dlsearch_path_spec=/usr/lib
   10975   need_lib_prefix=no
   10976   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10977     need_version=no
   10978   else
   10979     need_version=yes
   10980   fi
   10981   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10983   shlibpath_var=LD_LIBRARY_PATH
   10984   shlibpath_overrides_runpath=yes
   10985   ;;
   10986 
   10987 os2*)
   10988   libname_spec='$name'
   10989   version_type=windows
   10990   shrext_cmds=.dll
   10991   need_version=no
   10992   need_lib_prefix=no
   10993   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10994   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   10995     v=$($ECHO $release$versuffix | tr -d .-);
   10996     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   10997     $ECHO $n$v`$shared_ext'
   10998   library_names_spec='${libname}_dll.$libext'
   10999   dynamic_linker='OS/2 ld.exe'
   11000   shlibpath_var=BEGINLIBPATH
   11001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11002   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11003   postinstall_cmds='base_file=`basename \$file`~
   11004     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11005     dldir=$destdir/`dirname \$dlpath`~
   11006     test -d \$dldir || mkdir -p \$dldir~
   11007     $install_prog $dir/$dlname \$dldir/$dlname~
   11008     chmod a+x \$dldir/$dlname~
   11009     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11010       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11011     fi'
   11012   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11013     dlpath=$dir/\$dldll~
   11014     $RM \$dlpath'
   11015   ;;
   11016 
   11017 osf3* | osf4* | osf5*)
   11018   version_type=osf
   11019   need_lib_prefix=no
   11020   need_version=no
   11021   soname_spec='$libname$release$shared_ext$major'
   11022   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11023   shlibpath_var=LD_LIBRARY_PATH
   11024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11025   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11026   ;;
   11027 
   11028 rdos*)
   11029   dynamic_linker=no
   11030   ;;
   11031 
   11032 solaris*)
   11033   version_type=linux # correct to gnu/linux during the next big refactor
   11034   need_lib_prefix=no
   11035   need_version=no
   11036   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11037   soname_spec='$libname$release$shared_ext$major'
   11038   shlibpath_var=LD_LIBRARY_PATH
   11039   shlibpath_overrides_runpath=yes
   11040   hardcode_into_libs=yes
   11041   # ldd complains unless libraries are executable
   11042   postinstall_cmds='chmod +x $lib'
   11043   ;;
   11044 
   11045 sunos4*)
   11046   version_type=sunos
   11047   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11048   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11049   shlibpath_var=LD_LIBRARY_PATH
   11050   shlibpath_overrides_runpath=yes
   11051   if test yes = "$with_gnu_ld"; then
   11052     need_lib_prefix=no
   11053   fi
   11054   need_version=yes
   11055   ;;
   11056 
   11057 sysv4 | sysv4.3*)
   11058   version_type=linux # correct to gnu/linux during the next big refactor
   11059   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11060   soname_spec='$libname$release$shared_ext$major'
   11061   shlibpath_var=LD_LIBRARY_PATH
   11062   case $host_vendor in
   11063     sni)
   11064       shlibpath_overrides_runpath=no
   11065       need_lib_prefix=no
   11066       runpath_var=LD_RUN_PATH
   11067       ;;
   11068     siemens)
   11069       need_lib_prefix=no
   11070       ;;
   11071     motorola)
   11072       need_lib_prefix=no
   11073       need_version=no
   11074       shlibpath_overrides_runpath=no
   11075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11076       ;;
   11077   esac
   11078   ;;
   11079 
   11080 sysv4*MP*)
   11081   if test -d /usr/nec; then
   11082     version_type=linux # correct to gnu/linux during the next big refactor
   11083     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11084     soname_spec='$libname$shared_ext.$major'
   11085     shlibpath_var=LD_LIBRARY_PATH
   11086   fi
   11087   ;;
   11088 
   11089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11090   version_type=sco
   11091   need_lib_prefix=no
   11092   need_version=no
   11093   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11094   soname_spec='$libname$release$shared_ext$major'
   11095   shlibpath_var=LD_LIBRARY_PATH
   11096   shlibpath_overrides_runpath=yes
   11097   hardcode_into_libs=yes
   11098   if test yes = "$with_gnu_ld"; then
   11099     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11100   else
   11101     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11102     case $host_os in
   11103       sco3.2v5*)
   11104         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11105 	;;
   11106     esac
   11107   fi
   11108   sys_lib_dlsearch_path_spec='/usr/lib'
   11109   ;;
   11110 
   11111 tpf*)
   11112   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11113   version_type=linux # correct to gnu/linux during the next big refactor
   11114   need_lib_prefix=no
   11115   need_version=no
   11116   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11117   shlibpath_var=LD_LIBRARY_PATH
   11118   shlibpath_overrides_runpath=no
   11119   hardcode_into_libs=yes
   11120   ;;
   11121 
   11122 uts4*)
   11123   version_type=linux # correct to gnu/linux during the next big refactor
   11124   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11125   soname_spec='$libname$release$shared_ext$major'
   11126   shlibpath_var=LD_LIBRARY_PATH
   11127   ;;
   11128 
   11129 *)
   11130   dynamic_linker=no
   11131   ;;
   11132 esac
   11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11134 $as_echo "$dynamic_linker" >&6; }
   11135 test no = "$dynamic_linker" && can_build_shared=no
   11136 
   11137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11138 if test yes = "$GCC"; then
   11139   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11140 fi
   11141 
   11142 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11143   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11144 fi
   11145 
   11146 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11147   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   11148 fi
   11149 
   11150 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   11151 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   11152 
   11153 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   11154 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   11155 
   11156 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   11157 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   11158 
   11159 
   11160 
   11161 
   11162 
   11163 
   11164 
   11165 
   11166 
   11167 
   11168 
   11169 
   11170 
   11171 
   11172 
   11173 
   11174 
   11175 
   11176 
   11177 
   11178 
   11179 
   11180 
   11181 
   11182 
   11183 
   11184 
   11185 
   11186 
   11187 
   11188 
   11189 
   11190 
   11191 
   11192 
   11193 
   11194 
   11195 
   11196 
   11197 
   11198 
   11199 
   11200 
   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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   11256 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   11257 hardcode_action=
   11258 if test -n "$hardcode_libdir_flag_spec" ||
   11259    test -n "$runpath_var" ||
   11260    test yes = "$hardcode_automatic"; then
   11261 
   11262   # We can hardcode non-existent directories.
   11263   if test no != "$hardcode_direct" &&
   11264      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   11265      # have to relink, otherwise we might link with an installed library
   11266      # when we should be linking with a yet-to-be-installed one
   11267      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   11268      test no != "$hardcode_minus_L"; then
   11269     # Linking always hardcodes the temporary library directory.
   11270     hardcode_action=relink
   11271   else
   11272     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   11273     hardcode_action=immediate
   11274   fi
   11275 else
   11276   # We cannot hardcode anything, or else we can only hardcode existing
   11277   # directories.
   11278   hardcode_action=unsupported
   11279 fi
   11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   11281 $as_echo "$hardcode_action" >&6; }
   11282 
   11283 if test relink = "$hardcode_action" ||
   11284    test yes = "$inherit_rpath"; then
   11285   # Fast installation is not supported
   11286   enable_fast_install=no
   11287 elif test yes = "$shlibpath_overrides_runpath" ||
   11288      test no = "$enable_shared"; then
   11289   # Fast installation is not necessary
   11290   enable_fast_install=needless
   11291 fi
   11292 
   11293 
   11294 
   11295 
   11296 
   11297 
   11298   if test yes != "$enable_dlopen"; then
   11299   enable_dlopen=unknown
   11300   enable_dlopen_self=unknown
   11301   enable_dlopen_self_static=unknown
   11302 else
   11303   lt_cv_dlopen=no
   11304   lt_cv_dlopen_libs=
   11305 
   11306   case $host_os in
   11307   beos*)
   11308     lt_cv_dlopen=load_add_on
   11309     lt_cv_dlopen_libs=
   11310     lt_cv_dlopen_self=yes
   11311     ;;
   11312 
   11313   mingw* | pw32* | cegcc*)
   11314     lt_cv_dlopen=LoadLibrary
   11315     lt_cv_dlopen_libs=
   11316     ;;
   11317 
   11318   cygwin*)
   11319     lt_cv_dlopen=dlopen
   11320     lt_cv_dlopen_libs=
   11321     ;;
   11322 
   11323   darwin*)
   11324     # if libdl is installed we need to link against it
   11325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11327 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11328   $as_echo_n "(cached) " >&6
   11329 else
   11330   ac_check_lib_save_LIBS=$LIBS
   11331 LIBS="-ldl  $LIBS"
   11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11333 /* end confdefs.h.  */
   11334 
   11335 /* Override any GCC internal prototype to avoid an error.
   11336    Use char because int might match the return type of a GCC
   11337    builtin and then its argument prototype would still apply.  */
   11338 #ifdef __cplusplus
   11339 extern "C"
   11340 #endif
   11341 char dlopen ();
   11342 int
   11343 main ()
   11344 {
   11345 return dlopen ();
   11346   ;
   11347   return 0;
   11348 }
   11349 _ACEOF
   11350 if ac_fn_c_try_link "$LINENO"; then :
   11351   ac_cv_lib_dl_dlopen=yes
   11352 else
   11353   ac_cv_lib_dl_dlopen=no
   11354 fi
   11355 rm -f core conftest.err conftest.$ac_objext \
   11356     conftest$ac_exeext conftest.$ac_ext
   11357 LIBS=$ac_check_lib_save_LIBS
   11358 fi
   11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11362   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11363 else
   11364 
   11365     lt_cv_dlopen=dyld
   11366     lt_cv_dlopen_libs=
   11367     lt_cv_dlopen_self=yes
   11368 
   11369 fi
   11370 
   11371     ;;
   11372 
   11373   tpf*)
   11374     # Don't try to run any link tests for TPF.  We know it's impossible
   11375     # because TPF is a cross-compiler, and we know how we open DSOs.
   11376     lt_cv_dlopen=dlopen
   11377     lt_cv_dlopen_libs=
   11378     lt_cv_dlopen_self=no
   11379     ;;
   11380 
   11381   *)
   11382     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11383 if test "x$ac_cv_func_shl_load" = xyes; then :
   11384   lt_cv_dlopen=shl_load
   11385 else
   11386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11387 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11388 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11389   $as_echo_n "(cached) " >&6
   11390 else
   11391   ac_check_lib_save_LIBS=$LIBS
   11392 LIBS="-ldld  $LIBS"
   11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11394 /* end confdefs.h.  */
   11395 
   11396 /* Override any GCC internal prototype to avoid an error.
   11397    Use char because int might match the return type of a GCC
   11398    builtin and then its argument prototype would still apply.  */
   11399 #ifdef __cplusplus
   11400 extern "C"
   11401 #endif
   11402 char shl_load ();
   11403 int
   11404 main ()
   11405 {
   11406 return shl_load ();
   11407   ;
   11408   return 0;
   11409 }
   11410 _ACEOF
   11411 if ac_fn_c_try_link "$LINENO"; then :
   11412   ac_cv_lib_dld_shl_load=yes
   11413 else
   11414   ac_cv_lib_dld_shl_load=no
   11415 fi
   11416 rm -f core conftest.err conftest.$ac_objext \
   11417     conftest$ac_exeext conftest.$ac_ext
   11418 LIBS=$ac_check_lib_save_LIBS
   11419 fi
   11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11421 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11422 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11423   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11424 else
   11425   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11426 if test "x$ac_cv_func_dlopen" = xyes; then :
   11427   lt_cv_dlopen=dlopen
   11428 else
   11429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11430 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11431 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11432   $as_echo_n "(cached) " >&6
   11433 else
   11434   ac_check_lib_save_LIBS=$LIBS
   11435 LIBS="-ldl  $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 dlopen ();
   11446 int
   11447 main ()
   11448 {
   11449 return dlopen ();
   11450   ;
   11451   return 0;
   11452 }
   11453 _ACEOF
   11454 if ac_fn_c_try_link "$LINENO"; then :
   11455   ac_cv_lib_dl_dlopen=yes
   11456 else
   11457   ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
   11464 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11465 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11466   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11467 else
   11468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11469 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11470 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11471   $as_echo_n "(cached) " >&6
   11472 else
   11473   ac_check_lib_save_LIBS=$LIBS
   11474 LIBS="-lsvld  $LIBS"
   11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11476 /* end confdefs.h.  */
   11477 
   11478 /* Override any GCC internal prototype to avoid an error.
   11479    Use char because int might match the return type of a GCC
   11480    builtin and then its argument prototype would still apply.  */
   11481 #ifdef __cplusplus
   11482 extern "C"
   11483 #endif
   11484 char dlopen ();
   11485 int
   11486 main ()
   11487 {
   11488 return dlopen ();
   11489   ;
   11490   return 0;
   11491 }
   11492 _ACEOF
   11493 if ac_fn_c_try_link "$LINENO"; then :
   11494   ac_cv_lib_svld_dlopen=yes
   11495 else
   11496   ac_cv_lib_svld_dlopen=no
   11497 fi
   11498 rm -f core conftest.err conftest.$ac_objext \
   11499     conftest$ac_exeext conftest.$ac_ext
   11500 LIBS=$ac_check_lib_save_LIBS
   11501 fi
   11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11503 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11504 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11505   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11506 else
   11507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11508 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11509 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11510   $as_echo_n "(cached) " >&6
   11511 else
   11512   ac_check_lib_save_LIBS=$LIBS
   11513 LIBS="-ldld  $LIBS"
   11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11515 /* end confdefs.h.  */
   11516 
   11517 /* Override any GCC internal prototype to avoid an error.
   11518    Use char because int might match the return type of a GCC
   11519    builtin and then its argument prototype would still apply.  */
   11520 #ifdef __cplusplus
   11521 extern "C"
   11522 #endif
   11523 char dld_link ();
   11524 int
   11525 main ()
   11526 {
   11527 return dld_link ();
   11528   ;
   11529   return 0;
   11530 }
   11531 _ACEOF
   11532 if ac_fn_c_try_link "$LINENO"; then :
   11533   ac_cv_lib_dld_dld_link=yes
   11534 else
   11535   ac_cv_lib_dld_dld_link=no
   11536 fi
   11537 rm -f core conftest.err conftest.$ac_objext \
   11538     conftest$ac_exeext conftest.$ac_ext
   11539 LIBS=$ac_check_lib_save_LIBS
   11540 fi
   11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11542 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11543 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11544   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11545 fi
   11546 
   11547 
   11548 fi
   11549 
   11550 
   11551 fi
   11552 
   11553 
   11554 fi
   11555 
   11556 
   11557 fi
   11558 
   11559 
   11560 fi
   11561 
   11562     ;;
   11563   esac
   11564 
   11565   if test no = "$lt_cv_dlopen"; then
   11566     enable_dlopen=no
   11567   else
   11568     enable_dlopen=yes
   11569   fi
   11570 
   11571   case $lt_cv_dlopen in
   11572   dlopen)
   11573     save_CPPFLAGS=$CPPFLAGS
   11574     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11575 
   11576     save_LDFLAGS=$LDFLAGS
   11577     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11578 
   11579     save_LIBS=$LIBS
   11580     LIBS="$lt_cv_dlopen_libs $LIBS"
   11581 
   11582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11583 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11584 if ${lt_cv_dlopen_self+:} false; then :
   11585   $as_echo_n "(cached) " >&6
   11586 else
   11587   	  if test yes = "$cross_compiling"; then :
   11588   lt_cv_dlopen_self=cross
   11589 else
   11590   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11591   lt_status=$lt_dlunknown
   11592   cat > conftest.$ac_ext <<_LT_EOF
   11593 #line $LINENO "configure"
   11594 #include "confdefs.h"
   11595 
   11596 #if HAVE_DLFCN_H
   11597 #include <dlfcn.h>
   11598 #endif
   11599 
   11600 #include <stdio.h>
   11601 
   11602 #ifdef RTLD_GLOBAL
   11603 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11604 #else
   11605 #  ifdef DL_GLOBAL
   11606 #    define LT_DLGLOBAL		DL_GLOBAL
   11607 #  else
   11608 #    define LT_DLGLOBAL		0
   11609 #  endif
   11610 #endif
   11611 
   11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11613    find out it does not work in some platform. */
   11614 #ifndef LT_DLLAZY_OR_NOW
   11615 #  ifdef RTLD_LAZY
   11616 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11617 #  else
   11618 #    ifdef DL_LAZY
   11619 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11620 #    else
   11621 #      ifdef RTLD_NOW
   11622 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11623 #      else
   11624 #        ifdef DL_NOW
   11625 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11626 #        else
   11627 #          define LT_DLLAZY_OR_NOW	0
   11628 #        endif
   11629 #      endif
   11630 #    endif
   11631 #  endif
   11632 #endif
   11633 
   11634 /* When -fvisibility=hidden is used, assume the code has been annotated
   11635    correspondingly for the symbols needed.  */
   11636 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11637 int fnord () __attribute__((visibility("default")));
   11638 #endif
   11639 
   11640 int fnord () { return 42; }
   11641 int main ()
   11642 {
   11643   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11644   int status = $lt_dlunknown;
   11645 
   11646   if (self)
   11647     {
   11648       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11649       else
   11650         {
   11651 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11652           else puts (dlerror ());
   11653 	}
   11654       /* dlclose (self); */
   11655     }
   11656   else
   11657     puts (dlerror ());
   11658 
   11659   return status;
   11660 }
   11661 _LT_EOF
   11662   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11663   (eval $ac_link) 2>&5
   11664   ac_status=$?
   11665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11666   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11667     (./conftest; exit; ) >&5 2>/dev/null
   11668     lt_status=$?
   11669     case x$lt_status in
   11670       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11671       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11672       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11673     esac
   11674   else :
   11675     # compilation failed
   11676     lt_cv_dlopen_self=no
   11677   fi
   11678 fi
   11679 rm -fr conftest*
   11680 
   11681 
   11682 fi
   11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11684 $as_echo "$lt_cv_dlopen_self" >&6; }
   11685 
   11686     if test yes = "$lt_cv_dlopen_self"; then
   11687       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11689 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11690 if ${lt_cv_dlopen_self_static+:} false; then :
   11691   $as_echo_n "(cached) " >&6
   11692 else
   11693   	  if test yes = "$cross_compiling"; then :
   11694   lt_cv_dlopen_self_static=cross
   11695 else
   11696   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11697   lt_status=$lt_dlunknown
   11698   cat > conftest.$ac_ext <<_LT_EOF
   11699 #line $LINENO "configure"
   11700 #include "confdefs.h"
   11701 
   11702 #if HAVE_DLFCN_H
   11703 #include <dlfcn.h>
   11704 #endif
   11705 
   11706 #include <stdio.h>
   11707 
   11708 #ifdef RTLD_GLOBAL
   11709 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11710 #else
   11711 #  ifdef DL_GLOBAL
   11712 #    define LT_DLGLOBAL		DL_GLOBAL
   11713 #  else
   11714 #    define LT_DLGLOBAL		0
   11715 #  endif
   11716 #endif
   11717 
   11718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11719    find out it does not work in some platform. */
   11720 #ifndef LT_DLLAZY_OR_NOW
   11721 #  ifdef RTLD_LAZY
   11722 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11723 #  else
   11724 #    ifdef DL_LAZY
   11725 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11726 #    else
   11727 #      ifdef RTLD_NOW
   11728 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11729 #      else
   11730 #        ifdef DL_NOW
   11731 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11732 #        else
   11733 #          define LT_DLLAZY_OR_NOW	0
   11734 #        endif
   11735 #      endif
   11736 #    endif
   11737 #  endif
   11738 #endif
   11739 
   11740 /* When -fvisibility=hidden is used, assume the code has been annotated
   11741    correspondingly for the symbols needed.  */
   11742 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11743 int fnord () __attribute__((visibility("default")));
   11744 #endif
   11745 
   11746 int fnord () { return 42; }
   11747 int main ()
   11748 {
   11749   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11750   int status = $lt_dlunknown;
   11751 
   11752   if (self)
   11753     {
   11754       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11755       else
   11756         {
   11757 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11758           else puts (dlerror ());
   11759 	}
   11760       /* dlclose (self); */
   11761     }
   11762   else
   11763     puts (dlerror ());
   11764 
   11765   return status;
   11766 }
   11767 _LT_EOF
   11768   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11769   (eval $ac_link) 2>&5
   11770   ac_status=$?
   11771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11772   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11773     (./conftest; exit; ) >&5 2>/dev/null
   11774     lt_status=$?
   11775     case x$lt_status in
   11776       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11777       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11778       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11779     esac
   11780   else :
   11781     # compilation failed
   11782     lt_cv_dlopen_self_static=no
   11783   fi
   11784 fi
   11785 rm -fr conftest*
   11786 
   11787 
   11788 fi
   11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11790 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11791     fi
   11792 
   11793     CPPFLAGS=$save_CPPFLAGS
   11794     LDFLAGS=$save_LDFLAGS
   11795     LIBS=$save_LIBS
   11796     ;;
   11797   esac
   11798 
   11799   case $lt_cv_dlopen_self in
   11800   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11801   *) enable_dlopen_self=unknown ;;
   11802   esac
   11803 
   11804   case $lt_cv_dlopen_self_static in
   11805   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11806   *) enable_dlopen_self_static=unknown ;;
   11807   esac
   11808 fi
   11809 
   11810 
   11811 
   11812 
   11813 
   11814 
   11815 
   11816 
   11817 
   11818 
   11819 
   11820 
   11821 
   11822 
   11823 
   11824 
   11825 
   11826 striplib=
   11827 old_striplib=
   11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11829 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11830 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11831   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11832   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11834 $as_echo "yes" >&6; }
   11835 else
   11836 # FIXME - insert some real tests, host_os isn't really good enough
   11837   case $host_os in
   11838   darwin*)
   11839     if test -n "$STRIP"; then
   11840       striplib="$STRIP -x"
   11841       old_striplib="$STRIP -S"
   11842       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11843 $as_echo "yes" >&6; }
   11844     else
   11845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11846 $as_echo "no" >&6; }
   11847     fi
   11848     ;;
   11849   *)
   11850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11851 $as_echo "no" >&6; }
   11852     ;;
   11853   esac
   11854 fi
   11855 
   11856 
   11857 
   11858 
   11859 
   11860 
   11861 
   11862 
   11863 
   11864 
   11865 
   11866 
   11867   # Report what library types will actually be built
   11868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11869 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11871 $as_echo "$can_build_shared" >&6; }
   11872 
   11873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11874 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11875   test no = "$can_build_shared" && enable_shared=no
   11876 
   11877   # On AIX, shared libraries and static libraries use the same namespace, and
   11878   # are all built from PIC.
   11879   case $host_os in
   11880   aix3*)
   11881     test yes = "$enable_shared" && enable_static=no
   11882     if test -n "$RANLIB"; then
   11883       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11884       postinstall_cmds='$RANLIB $lib'
   11885     fi
   11886     ;;
   11887 
   11888   aix[4-9]*)
   11889     if test ia64 != "$host_cpu"; then
   11890       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11891       yes,aix,yes) ;;			# shared object as lib.so file only
   11892       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11893       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11894       esac
   11895     fi
   11896     ;;
   11897   esac
   11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11899 $as_echo "$enable_shared" >&6; }
   11900 
   11901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11902 $as_echo_n "checking whether to build static libraries... " >&6; }
   11903   # Make sure either enable_shared or enable_static is yes.
   11904   test yes = "$enable_shared" || enable_static=yes
   11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11906 $as_echo "$enable_static" >&6; }
   11907 
   11908 
   11909 
   11910 
   11911 fi
   11912 ac_ext=c
   11913 ac_cpp='$CPP $CPPFLAGS'
   11914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11917 
   11918 CC=$lt_save_CC
   11919 
   11920 
   11921 
   11922 
   11923 
   11924 
   11925 
   11926 
   11927 
   11928 
   11929 
   11930 
   11931 
   11932 
   11933 
   11934         ac_config_commands="$ac_config_commands libtool"
   11935 
   11936 
   11937 
   11938 
   11939 # Only expand once:
   11940 
   11941 
   11942 # Find a good install program.  We prefer a C program (faster),
   11943 # so one script is as good as another.  But avoid the broken or
   11944 # incompatible versions:
   11945 # SysV /etc/install, /usr/sbin/install
   11946 # SunOS /usr/etc/install
   11947 # IRIX /sbin/install
   11948 # AIX /bin/install
   11949 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11953 # OS/2's system install, which has a completely different semantic
   11954 # ./install, which can be erroneously created by make from ./install.sh.
   11955 # Reject install programs that cannot install multiple files.
   11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11957 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11958 if test -z "$INSTALL"; then
   11959 if ${ac_cv_path_install+:} false; then :
   11960   $as_echo_n "(cached) " >&6
   11961 else
   11962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11963 for as_dir in $PATH
   11964 do
   11965   IFS=$as_save_IFS
   11966   test -z "$as_dir" && as_dir=.
   11967     # Account for people who put trailing slashes in PATH elements.
   11968 case $as_dir/ in #((
   11969   ./ | .// | /[cC]/* | \
   11970   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11971   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11972   /usr/ucb/* ) ;;
   11973   *)
   11974     # OSF1 and SCO ODT 3.0 have their own names for install.
   11975     # Don't use installbsd from OSF since it installs stuff as root
   11976     # by default.
   11977     for ac_prog in ginstall scoinst install; do
   11978       for ac_exec_ext in '' $ac_executable_extensions; do
   11979 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11980 	  if test $ac_prog = install &&
   11981 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11982 	    # AIX install.  It has an incompatible calling convention.
   11983 	    :
   11984 	  elif test $ac_prog = install &&
   11985 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11986 	    # program-specific install script used by HP pwplus--don't use.
   11987 	    :
   11988 	  else
   11989 	    rm -rf conftest.one conftest.two conftest.dir
   11990 	    echo one > conftest.one
   11991 	    echo two > conftest.two
   11992 	    mkdir conftest.dir
   11993 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11994 	      test -s conftest.one && test -s conftest.two &&
   11995 	      test -s conftest.dir/conftest.one &&
   11996 	      test -s conftest.dir/conftest.two
   11997 	    then
   11998 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   11999 	      break 3
   12000 	    fi
   12001 	  fi
   12002 	fi
   12003       done
   12004     done
   12005     ;;
   12006 esac
   12007 
   12008   done
   12009 IFS=$as_save_IFS
   12010 
   12011 rm -rf conftest.one conftest.two conftest.dir
   12012 
   12013 fi
   12014   if test "${ac_cv_path_install+set}" = set; then
   12015     INSTALL=$ac_cv_path_install
   12016   else
   12017     # As a last resort, use the slow shell script.  Don't cache a
   12018     # value for INSTALL within a source directory, because that will
   12019     # break other packages using the cache if that directory is
   12020     # removed, or if the value is a relative name.
   12021     INSTALL=$ac_install_sh
   12022   fi
   12023 fi
   12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   12025 $as_echo "$INSTALL" >&6; }
   12026 
   12027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   12028 # It thinks the first close brace ends the variable substitution.
   12029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   12030 
   12031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   12032 
   12033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   12034 
   12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   12036 $as_echo_n "checking whether ln -s works... " >&6; }
   12037 LN_S=$as_ln_s
   12038 if test "$LN_S" = "ln -s"; then
   12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12040 $as_echo "yes" >&6; }
   12041 else
   12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   12043 $as_echo "no, using $LN_S" >&6; }
   12044 fi
   12045 
   12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   12047 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   12048 if ${ac_cv_prog_shell+:} false; then :
   12049   $as_echo_n "(cached) " >&6
   12050 else
   12051   ac_test_shell_script='
   12052 			  test "$(expr 1 + 1)" = "2" &&
   12053 			  test "$(( 1 + 1 ))" = "2"
   12054 			  '
   12055 
   12056 			  for ac_cv_prog_shell in \
   12057 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   12058 			    case $ac_cv_prog_shell in #(
   12059   /*) :
   12060 
   12061 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   12062   break
   12063 fi
   12064 				     ;; #(
   12065   *) :
   12066      ;;
   12067 esac
   12068 			  done
   12069 
   12070 fi
   12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   12072 $as_echo "$ac_cv_prog_shell" >&6; }
   12073 	  if test "$ac_cv_prog_shell" = "no"; then :
   12074   SHELL=/bin/sh
   12075 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   12076 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   12077 
   12078 else
   12079   SHELL="$ac_cv_prog_shell"
   12080 
   12081 fi
   12082 
   12083 
   12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   12085 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   12086 if test -z "$MKDIR_P"; then
   12087   if ${ac_cv_path_mkdir+:} false; then :
   12088   $as_echo_n "(cached) " >&6
   12089 else
   12090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12091 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   12092 do
   12093   IFS=$as_save_IFS
   12094   test -z "$as_dir" && as_dir=.
   12095     for ac_prog in mkdir gmkdir; do
   12096 	 for ac_exec_ext in '' $ac_executable_extensions; do
   12097 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   12098 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   12099 	     'mkdir (GNU coreutils) '* | \
   12100 	     'mkdir (coreutils) '* | \
   12101 	     'mkdir (fileutils) '4.1*)
   12102 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   12103 	       break 3;;
   12104 	   esac
   12105 	 done
   12106        done
   12107   done
   12108 IFS=$as_save_IFS
   12109 
   12110 fi
   12111 
   12112   test -d ./--version && rmdir ./--version
   12113   if test "${ac_cv_path_mkdir+set}" = set; then
   12114     MKDIR_P="$ac_cv_path_mkdir -p"
   12115   else
   12116     # As a last resort, use the slow shell script.  Don't cache a
   12117     # value for MKDIR_P within a source directory, because that will
   12118     # break other packages using the cache if that directory is
   12119     # removed, or if the value is a relative name.
   12120     MKDIR_P="$ac_install_sh -d"
   12121   fi
   12122 fi
   12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   12124 $as_echo "$MKDIR_P" >&6; }
   12125 
   12126 
   12127 
   12128 
   12129 
   12130 
   12131 
   12132 
   12133 
   12134 #
   12135 # Use pkg-config
   12136 #
   12137 
   12138 
   12139 
   12140 
   12141 
   12142 
   12143 
   12144 
   12145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12146 	if test -n "$ac_tool_prefix"; then
   12147   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12150 $as_echo_n "checking for $ac_word... " >&6; }
   12151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   12152   $as_echo_n "(cached) " >&6
   12153 else
   12154   case $PKG_CONFIG in
   12155   [\\/]* | ?:[\\/]*)
   12156   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12157   ;;
   12158   *)
   12159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12160 for as_dir in $PATH
   12161 do
   12162   IFS=$as_save_IFS
   12163   test -z "$as_dir" && as_dir=.
   12164     for ac_exec_ext in '' $ac_executable_extensions; do
   12165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12166     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12168     break 2
   12169   fi
   12170 done
   12171   done
   12172 IFS=$as_save_IFS
   12173 
   12174   ;;
   12175 esac
   12176 fi
   12177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12178 if test -n "$PKG_CONFIG"; then
   12179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12180 $as_echo "$PKG_CONFIG" >&6; }
   12181 else
   12182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12183 $as_echo "no" >&6; }
   12184 fi
   12185 
   12186 
   12187 fi
   12188 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12189   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12190   # Extract the first word of "pkg-config", so it can be a program name with args.
   12191 set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
   12195   $as_echo_n "(cached) " >&6
   12196 else
   12197   case $ac_pt_PKG_CONFIG in
   12198   [\\/]* | ?:[\\/]*)
   12199   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12221 if test -n "$ac_pt_PKG_CONFIG"; then
   12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12223 $as_echo "$ac_pt_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   if test "x$ac_pt_PKG_CONFIG" = x; then
   12230     PKG_CONFIG=""
   12231   else
   12232     case $cross_compiling:$ac_tool_warned in
   12233 yes:)
   12234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12236 ac_tool_warned=yes ;;
   12237 esac
   12238     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12239   fi
   12240 else
   12241   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12242 fi
   12243 
   12244 fi
   12245 if test -n "$PKG_CONFIG"; then
   12246 	_pkg_min_version=0.9.0
   12247 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   12248 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   12249 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   12250 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12251 $as_echo "yes" >&6; }
   12252 	else
   12253 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12254 $as_echo "no" >&6; }
   12255 		PKG_CONFIG=""
   12256 	fi
   12257 fi
   12258 if test -z "$PKG_CONFIG"; then :
   12259   as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
   12260 fi
   12261 
   12262 # [pairwise: --enable-buffer-useinline, --disable-buffer-useinline]
   12263 # Check whether --enable-buffer_useinline was given.
   12264 if test "${enable_buffer_useinline+set}" = set; then :
   12265   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   12266 	      then
   12267 
   12268 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12269 
   12270 	      fi
   12271 else
   12272   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12273 
   12274 fi
   12275 
   12276 
   12277 # [pairwise: --enable-warn-shadow, --disable-warn-shadow]
   12278 # Check whether --enable-warn_shadow was given.
   12279 if test "${enable_warn_shadow+set}" = set; then :
   12280   enableval=$enable_warn_shadow;
   12281 fi
   12282 
   12283 
   12284 # [pairwise: --enable-warn-error, --disable-warn-error]
   12285 # Check whether --enable-warn_error was given.
   12286 if test "${enable_warn_error+set}" = set; then :
   12287   enableval=$enable_warn_error;
   12288 fi
   12289 
   12290 
   12291 # [pairwise: --enable-developer, --disable-developer]
   12292 # Check whether --enable-developer was given.
   12293 if test "${enable_developer+set}" = set; then :
   12294   enableval=$enable_developer;
   12295 fi
   12296 
   12297 
   12298 XTARGETS=
   12299 if test "$enable_developer" = "yes"; then :
   12300   STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   12301        test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   12302        test "${enable_querytrace+set}" = set || enable_querytrace=yes
   12303        test "${with_cmocka+set}" = set || with_cmocka=yes
   12304        test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   12305        test "${enable_symtable+set}" = set || enable_symtable=all
   12306        test "${enable_warn_error+set}" = set || enable_warn_error=yes
   12307        test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   12308        test "${with_zlib+set}" = set || with_zlib=yes
   12309        XTARGETS='${XTARGETS}'
   12310 
   12311 fi
   12312 
   12313 
   12314 # Fuzzing is not included in pairwise testing as fuzzing tools are
   12315 # not present in the relevant Docker image.
   12316 #
   12317 # [pairwise: skip]
   12318 # Check whether --enable-fuzzing was given.
   12319 if test "${enable_fuzzing+set}" = set; then :
   12320   enableval=$enable_fuzzing;
   12321 else
   12322   enable_fuzzing=no
   12323 fi
   12324 
   12325 
   12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   12327 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   12328 case $enable_fuzzing in #(
   12329   no) :
   12330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12331 $as_echo "no" >&6; } ;; #(
   12332   afl) :
   12333 
   12334 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   12335 $as_echo "using AFL" >&6; }
   12336 
   12337 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   12338 
   12339 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   12340 	  LIBS="$LIBS -lpthread" ;; #(
   12341   libfuzzer) :
   12342 
   12343 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   12344 $as_echo "using libFuzzer" >&6; }
   12345 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   12346 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   12347   *) :
   12348     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   12349   *) :
   12350      ;;
   12351 esac
   12352 
   12353 if test "$enable_fuzzing" = "afl"; then :
   12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   12355 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   12356        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12357 /* end confdefs.h.  */
   12358 
   12359 int
   12360 main ()
   12361 {
   12362 #ifndef __AFL_COMPILER
   12363 					   #error AFL compiler required
   12364 					   #endif
   12365 
   12366   ;
   12367   return 0;
   12368 }
   12369 _ACEOF
   12370 if ac_fn_c_try_compile "$LINENO"; then :
   12371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12372 $as_echo "yes" >&6; }
   12373 else
   12374   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   12375 fi
   12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12377 
   12378 fi
   12379 
   12380 # [pairwise: --enable-mutex-atomics, --disable-mutex-atomics]
   12381 # Check whether --enable-mutex_atomics was given.
   12382 if test "${enable_mutex_atomics+set}" = set; then :
   12383   enableval=$enable_mutex_atomics;
   12384 else
   12385   enable_mutex_atomics=no
   12386 fi
   12387 
   12388 
   12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to emulate atomics with mutexes" >&5
   12390 $as_echo_n "checking whether to emulate atomics with mutexes... " >&6; }
   12391 case "$enable_mutex_atomics" in
   12392 yes)
   12393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12394 $as_echo "yes" >&6; }
   12395 
   12396 $as_echo "#define ISC_MUTEX_ATOMICS 1" >>confdefs.h
   12397 
   12398         ;;
   12399 no)
   12400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12401 $as_echo "no" >&6; }
   12402         ;;
   12403 *)
   12404         as_fn_error $? "\"--enable-mutex-atomics requires yes or no\"" "$LINENO" 5
   12405         ;;
   12406 esac
   12407 
   12408 #
   12409 # Make very sure that these are the first files processed by
   12410 # config.status, since we use the processed output as the input for
   12411 # AC_SUBST_FILE() substitutions in other files.
   12412 #
   12413 ac_config_files="$ac_config_files make/rules make/includes"
   12414 
   12415 
   12416 # Extract the first word of "ar", so it can be a program name with args.
   12417 set dummy ar; ac_word=$2
   12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12419 $as_echo_n "checking for $ac_word... " >&6; }
   12420 if ${ac_cv_path_AR+:} false; then :
   12421   $as_echo_n "(cached) " >&6
   12422 else
   12423   case $AR in
   12424   [\\/]* | ?:[\\/]*)
   12425   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12426   ;;
   12427   *)
   12428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12429 for as_dir in $PATH
   12430 do
   12431   IFS=$as_save_IFS
   12432   test -z "$as_dir" && as_dir=.
   12433     for ac_exec_ext in '' $ac_executable_extensions; do
   12434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12435     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12437     break 2
   12438   fi
   12439 done
   12440   done
   12441 IFS=$as_save_IFS
   12442 
   12443   ;;
   12444 esac
   12445 fi
   12446 AR=$ac_cv_path_AR
   12447 if test -n "$AR"; then
   12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12449 $as_echo "$AR" >&6; }
   12450 else
   12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12452 $as_echo "no" >&6; }
   12453 fi
   12454 
   12455 
   12456 ARFLAGS="cruv"
   12457 
   12458 
   12459 
   12460 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12461 # "copy" or something.
   12462 LN=ln
   12463 
   12464 
   12465 case "$AR" in
   12466 	"")
   12467 		as_fn_error $? "
   12468 ar program not found.  Please fix your PATH to include the directory in
   12469 which ar resides, or set AR in the environment with the full path to ar.
   12470 " "$LINENO" 5
   12471 
   12472 		;;
   12473 esac
   12474 
   12475 #
   12476 # Look for w3m
   12477 #
   12478 for ac_prog in w3m
   12479 do
   12480   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12481 set dummy $ac_prog; ac_word=$2
   12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12483 $as_echo_n "checking for $ac_word... " >&6; }
   12484 if ${ac_cv_path_W3M+:} false; then :
   12485   $as_echo_n "(cached) " >&6
   12486 else
   12487   case $W3M in
   12488   [\\/]* | ?:[\\/]*)
   12489   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   12490   ;;
   12491   *)
   12492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12493 for as_dir in $PATH
   12494 do
   12495   IFS=$as_save_IFS
   12496   test -z "$as_dir" && as_dir=.
   12497     for ac_exec_ext in '' $ac_executable_extensions; do
   12498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12499     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12501     break 2
   12502   fi
   12503 done
   12504   done
   12505 IFS=$as_save_IFS
   12506 
   12507   ;;
   12508 esac
   12509 fi
   12510 W3M=$ac_cv_path_W3M
   12511 if test -n "$W3M"; then
   12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   12513 $as_echo "$W3M" >&6; }
   12514 else
   12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12516 $as_echo "no" >&6; }
   12517 fi
   12518 
   12519 
   12520   test -n "$W3M" && break
   12521 done
   12522 test -n "$W3M" || W3M="w3m"
   12523 
   12524 
   12525 
   12526 #
   12527 # Look for pandoc
   12528 #
   12529 # Extract the first word of "pandoc", so it can be a program name with args.
   12530 set dummy pandoc; ac_word=$2
   12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12532 $as_echo_n "checking for $ac_word... " >&6; }
   12533 if ${ac_cv_path_PANDOC+:} false; then :
   12534   $as_echo_n "(cached) " >&6
   12535 else
   12536   case $PANDOC in
   12537   [\\/]* | ?:[\\/]*)
   12538   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   12539   ;;
   12540   *)
   12541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12542 for as_dir in $PATH
   12543 do
   12544   IFS=$as_save_IFS
   12545   test -z "$as_dir" && as_dir=.
   12546     for ac_exec_ext in '' $ac_executable_extensions; do
   12547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12548     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   12549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12550     break 2
   12551   fi
   12552 done
   12553   done
   12554 IFS=$as_save_IFS
   12555 
   12556   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   12557   ;;
   12558 esac
   12559 fi
   12560 PANDOC=$ac_cv_path_PANDOC
   12561 if test -n "$PANDOC"; then
   12562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   12563 $as_echo "$PANDOC" >&6; }
   12564 else
   12565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12566 $as_echo "no" >&6; }
   12567 fi
   12568 
   12569 
   12570 
   12571 
   12572 #
   12573 # Perl is optional; it is used only by some of the system test scripts.
   12574 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12575 # but it still compiles without perl, in which case an empty table will be used.
   12576 #
   12577 for ac_prog in perl5 perl
   12578 do
   12579   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12580 set dummy $ac_prog; ac_word=$2
   12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12582 $as_echo_n "checking for $ac_word... " >&6; }
   12583 if ${ac_cv_path_PERL+:} false; then :
   12584   $as_echo_n "(cached) " >&6
   12585 else
   12586   case $PERL in
   12587   [\\/]* | ?:[\\/]*)
   12588   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12589   ;;
   12590   *)
   12591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12592 for as_dir in $PATH
   12593 do
   12594   IFS=$as_save_IFS
   12595   test -z "$as_dir" && as_dir=.
   12596     for ac_exec_ext in '' $ac_executable_extensions; do
   12597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12598     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12600     break 2
   12601   fi
   12602 done
   12603   done
   12604 IFS=$as_save_IFS
   12605 
   12606   ;;
   12607 esac
   12608 fi
   12609 PERL=$ac_cv_path_PERL
   12610 if test -n "$PERL"; then
   12611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12612 $as_echo "$PERL" >&6; }
   12613 else
   12614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12615 $as_echo "no" >&6; }
   12616 fi
   12617 
   12618 
   12619   test -n "$PERL" && break
   12620 done
   12621 
   12622 
   12623 
   12624 #
   12625 # Python is also optional but required by default so that dnssec-keymgr gets
   12626 # installed unless explicitly prevented by the user using --without-python.
   12627 #
   12628 testminvers='import sys
   12629 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12630    exit(1)'
   12631 
   12632 testargparse='try: import argparse
   12633 except: exit(1)'
   12634 
   12635 testply='try: import ply
   12636 except: exit(1)'
   12637 
   12638 testsetup='try: from distutils.core import setup
   12639 except: exit(1)'
   12640 
   12641 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12642 
   12643 
   12644 
   12645 # [pairwise: --with-python, --without-python]
   12646 
   12647 # Check whether --with-python was given.
   12648 if test "${with_python+set}" = set; then :
   12649   withval=$with_python;
   12650 else
   12651   with_python=$default_with_python
   12652 fi
   12653 
   12654 
   12655 # [pairwise: skip]
   12656 
   12657 # Check whether --with-python-install-dir was given.
   12658 if test "${with_python_install_dir+set}" = set; then :
   12659   withval=$with_python_install_dir;
   12660 else
   12661   with_python_install_dir=""
   12662 fi
   12663 
   12664 
   12665 if test "$with_python" = "yes"; then :
   12666   with_python=$default_with_python
   12667 fi
   12668 
   12669 if test "$with_python" = "no"; then :
   12670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12671 $as_echo_n "checking for Python support... " >&6; }
   12672        unset PYTHON
   12673        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12674 $as_echo "disabled" >&6; }
   12675 else
   12676   for p in $with_python
   12677        do
   12678 	 case $p in #(
   12679   /*) :
   12680     PYTHON="$p" ;; #(
   12681   *) :
   12682      ;;
   12683 esac
   12684 
   12685 	 # Extract the first word of "$p", so it can be a program name with args.
   12686 set dummy $p; ac_word=$2
   12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12688 $as_echo_n "checking for $ac_word... " >&6; }
   12689 if ${ac_cv_path_PYTHON+:} false; then :
   12690   $as_echo_n "(cached) " >&6
   12691 else
   12692   case $PYTHON in
   12693   [\\/]* | ?:[\\/]*)
   12694   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12695   ;;
   12696   *)
   12697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12698 for as_dir in $PATH
   12699 do
   12700   IFS=$as_save_IFS
   12701   test -z "$as_dir" && as_dir=.
   12702     for ac_exec_ext in '' $ac_executable_extensions; do
   12703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12704     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12706     break 2
   12707   fi
   12708 done
   12709   done
   12710 IFS=$as_save_IFS
   12711 
   12712   ;;
   12713 esac
   12714 fi
   12715 PYTHON=$ac_cv_path_PYTHON
   12716 if test -n "$PYTHON"; then
   12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12718 $as_echo "$PYTHON" >&6; }
   12719 else
   12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12721 $as_echo "no" >&6; }
   12722 fi
   12723 
   12724 
   12725 	 # Do not cache the result of the check from the previous line.  If the
   12726 	 # first found Python interpreter has missing module dependencies and
   12727 	 # the result of the above check is cached, subsequent module checks
   12728 	 # will erroneously keep on using the cached path to the first found
   12729 	 # Python interpreter instead of different ones.
   12730 	 unset ac_cv_path_PYTHON
   12731 
   12732 	 if test -z "$PYTHON"; then :
   12733   continue
   12734 fi
   12735 
   12736 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12737 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12738 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12740 $as_echo "yes" >&6; }
   12741 else
   12742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12743 $as_echo "no" >&6; }
   12744 		unset PYTHON
   12745 		continue
   12746 fi
   12747 
   12748 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12749 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12750 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12752 $as_echo "yes" >&6; }
   12753 else
   12754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12755 $as_echo "no" >&6; }
   12756 		unset PYTHON
   12757 		continue
   12758 fi
   12759 
   12760 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12761 $as_echo_n "checking Python module 'ply'... " >&6; }
   12762 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12764 $as_echo "yes" >&6; }
   12765 else
   12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12767 $as_echo "no" >&6; }
   12768 		unset PYTHON
   12769 		continue
   12770 fi
   12771 
   12772 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
   12773 $as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
   12774 	 if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
   12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12776 $as_echo "yes" >&6; }
   12777 else
   12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12779 $as_echo "no" >&6; }
   12780 		unset PYTHON
   12781 		continue
   12782 fi
   12783 
   12784 	 # Stop looking any further once we find a Python interpreter
   12785 	 # satisfying all requirements.
   12786 	 break
   12787        done
   12788 
   12789        if test "X$PYTHON" = "X"; then :
   12790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12791 $as_echo_n "checking for Python support... " >&6; }
   12792 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12793 $as_echo "no" >&6; }
   12794 	      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
   12795 fi
   12796 fi
   12797 
   12798 PYTHON_TOOLS=''
   12799 CHECKDS=''
   12800 COVERAGE=''
   12801 KEYMGR=''
   12802 if test "X$PYTHON" != "X"; then :
   12803   PYTHON_TOOLS=python
   12804        CHECKDS=checkds
   12805        COVERAGE=coverage
   12806        KEYMGR=keymgr
   12807        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12808        if test -n "$with_python_install_dir"; then :
   12809   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12810 fi
   12811 fi
   12812 
   12813 
   12814 
   12815 
   12816 
   12817 
   12818 
   12819 #
   12820 # expanded_sysconfdir is needed for replacement in the python utilities
   12821 #
   12822 expanded_sysconfdir=`eval echo $sysconfdir`
   12823 
   12824 
   12825 #
   12826 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12827 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12828 # configure based on the location of the file where it is substituted.
   12829 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12830 # subdirectory of install-sh, This relative path will be wrong for all
   12831 # directories more than one level down from install-sh.
   12832 #
   12833 case "$INSTALL" in
   12834 	/*)
   12835 		;;
   12836 	*)
   12837 		#
   12838 		# Not all systems have dirname.
   12839 		#
   12840 
   12841 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12842 
   12843 
   12844 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12845 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12846 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12847 		INSTALL="$ac_dir/$ac_prog"
   12848 		;;
   12849 esac
   12850 
   12851 for ac_prog in pytest-3 py.test-3 pytest pytest-pypy
   12852 do
   12853   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12854 set dummy $ac_prog; ac_word=$2
   12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12856 $as_echo_n "checking for $ac_word... " >&6; }
   12857 if ${ac_cv_path_PYTEST+:} false; then :
   12858   $as_echo_n "(cached) " >&6
   12859 else
   12860   case $PYTEST in
   12861   [\\/]* | ?:[\\/]*)
   12862   ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
   12863   ;;
   12864   *)
   12865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12866 for as_dir in $PATH
   12867 do
   12868   IFS=$as_save_IFS
   12869   test -z "$as_dir" && as_dir=.
   12870     for ac_exec_ext in '' $ac_executable_extensions; do
   12871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12872     ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
   12873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12874     break 2
   12875   fi
   12876 done
   12877   done
   12878 IFS=$as_save_IFS
   12879 
   12880   ;;
   12881 esac
   12882 fi
   12883 PYTEST=$ac_cv_path_PYTEST
   12884 if test -n "$PYTEST"; then
   12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
   12886 $as_echo "$PYTEST" >&6; }
   12887 else
   12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12889 $as_echo "no" >&6; }
   12890 fi
   12891 
   12892 
   12893   test -n "$PYTEST" && break
   12894 done
   12895 
   12896 if test -z "$PYTEST"; then :
   12897   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
   12898 $as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
   12899 fi
   12900 
   12901 
   12902 
   12903 ac_ext=c
   12904 ac_cpp='$CPP $CPPFLAGS'
   12905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12908 if test -n "$ac_tool_prefix"; then
   12909   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12912 $as_echo_n "checking for $ac_word... " >&6; }
   12913 if ${ac_cv_prog_CC+:} false; then :
   12914   $as_echo_n "(cached) " >&6
   12915 else
   12916   if test -n "$CC"; then
   12917   ac_cv_prog_CC="$CC" # Let the user override the test.
   12918 else
   12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12920 for as_dir in $PATH
   12921 do
   12922   IFS=$as_save_IFS
   12923   test -z "$as_dir" && as_dir=.
   12924     for ac_exec_ext in '' $ac_executable_extensions; do
   12925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12926     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12928     break 2
   12929   fi
   12930 done
   12931   done
   12932 IFS=$as_save_IFS
   12933 
   12934 fi
   12935 fi
   12936 CC=$ac_cv_prog_CC
   12937 if test -n "$CC"; then
   12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12939 $as_echo "$CC" >&6; }
   12940 else
   12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12942 $as_echo "no" >&6; }
   12943 fi
   12944 
   12945 
   12946 fi
   12947 if test -z "$ac_cv_prog_CC"; then
   12948   ac_ct_CC=$CC
   12949   # Extract the first word of "gcc", so it can be a program name with args.
   12950 set dummy gcc; ac_word=$2
   12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12952 $as_echo_n "checking for $ac_word... " >&6; }
   12953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12954   $as_echo_n "(cached) " >&6
   12955 else
   12956   if test -n "$ac_ct_CC"; then
   12957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12958 else
   12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12960 for as_dir in $PATH
   12961 do
   12962   IFS=$as_save_IFS
   12963   test -z "$as_dir" && as_dir=.
   12964     for ac_exec_ext in '' $ac_executable_extensions; do
   12965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12966     ac_cv_prog_ac_ct_CC="gcc"
   12967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12968     break 2
   12969   fi
   12970 done
   12971   done
   12972 IFS=$as_save_IFS
   12973 
   12974 fi
   12975 fi
   12976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12977 if test -n "$ac_ct_CC"; then
   12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12979 $as_echo "$ac_ct_CC" >&6; }
   12980 else
   12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12982 $as_echo "no" >&6; }
   12983 fi
   12984 
   12985   if test "x$ac_ct_CC" = x; then
   12986     CC=""
   12987   else
   12988     case $cross_compiling:$ac_tool_warned in
   12989 yes:)
   12990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12992 ac_tool_warned=yes ;;
   12993 esac
   12994     CC=$ac_ct_CC
   12995   fi
   12996 else
   12997   CC="$ac_cv_prog_CC"
   12998 fi
   12999 
   13000 if test -z "$CC"; then
   13001           if test -n "$ac_tool_prefix"; then
   13002     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   13003 set dummy ${ac_tool_prefix}cc; ac_word=$2
   13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13005 $as_echo_n "checking for $ac_word... " >&6; }
   13006 if ${ac_cv_prog_CC+:} false; then :
   13007   $as_echo_n "(cached) " >&6
   13008 else
   13009   if test -n "$CC"; then
   13010   ac_cv_prog_CC="$CC" # Let the user override the test.
   13011 else
   13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13013 for as_dir in $PATH
   13014 do
   13015   IFS=$as_save_IFS
   13016   test -z "$as_dir" && as_dir=.
   13017     for ac_exec_ext in '' $ac_executable_extensions; do
   13018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13019     ac_cv_prog_CC="${ac_tool_prefix}cc"
   13020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13021     break 2
   13022   fi
   13023 done
   13024   done
   13025 IFS=$as_save_IFS
   13026 
   13027 fi
   13028 fi
   13029 CC=$ac_cv_prog_CC
   13030 if test -n "$CC"; then
   13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13032 $as_echo "$CC" >&6; }
   13033 else
   13034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13035 $as_echo "no" >&6; }
   13036 fi
   13037 
   13038 
   13039   fi
   13040 fi
   13041 if test -z "$CC"; then
   13042   # Extract the first word of "cc", so it can be a program name with args.
   13043 set dummy cc; ac_word=$2
   13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13045 $as_echo_n "checking for $ac_word... " >&6; }
   13046 if ${ac_cv_prog_CC+:} false; then :
   13047   $as_echo_n "(cached) " >&6
   13048 else
   13049   if test -n "$CC"; then
   13050   ac_cv_prog_CC="$CC" # Let the user override the test.
   13051 else
   13052   ac_prog_rejected=no
   13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13054 for as_dir in $PATH
   13055 do
   13056   IFS=$as_save_IFS
   13057   test -z "$as_dir" && as_dir=.
   13058     for ac_exec_ext in '' $ac_executable_extensions; do
   13059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13060     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   13061        ac_prog_rejected=yes
   13062        continue
   13063      fi
   13064     ac_cv_prog_CC="cc"
   13065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13066     break 2
   13067   fi
   13068 done
   13069   done
   13070 IFS=$as_save_IFS
   13071 
   13072 if test $ac_prog_rejected = yes; then
   13073   # We found a bogon in the path, so make sure we never use it.
   13074   set dummy $ac_cv_prog_CC
   13075   shift
   13076   if test $# != 0; then
   13077     # We chose a different compiler from the bogus one.
   13078     # However, it has the same basename, so the bogon will be chosen
   13079     # first if we set CC to just the basename; use the full file name.
   13080     shift
   13081     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   13082   fi
   13083 fi
   13084 fi
   13085 fi
   13086 CC=$ac_cv_prog_CC
   13087 if test -n "$CC"; then
   13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13089 $as_echo "$CC" >&6; }
   13090 else
   13091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13092 $as_echo "no" >&6; }
   13093 fi
   13094 
   13095 
   13096 fi
   13097 if test -z "$CC"; then
   13098   if test -n "$ac_tool_prefix"; then
   13099   for ac_prog in cl.exe
   13100   do
   13101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   13102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13104 $as_echo_n "checking for $ac_word... " >&6; }
   13105 if ${ac_cv_prog_CC+:} false; then :
   13106   $as_echo_n "(cached) " >&6
   13107 else
   13108   if test -n "$CC"; then
   13109   ac_cv_prog_CC="$CC" # Let the user override the test.
   13110 else
   13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13112 for as_dir in $PATH
   13113 do
   13114   IFS=$as_save_IFS
   13115   test -z "$as_dir" && as_dir=.
   13116     for ac_exec_ext in '' $ac_executable_extensions; do
   13117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13118     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   13119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13120     break 2
   13121   fi
   13122 done
   13123   done
   13124 IFS=$as_save_IFS
   13125 
   13126 fi
   13127 fi
   13128 CC=$ac_cv_prog_CC
   13129 if test -n "$CC"; then
   13130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   13131 $as_echo "$CC" >&6; }
   13132 else
   13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13134 $as_echo "no" >&6; }
   13135 fi
   13136 
   13137 
   13138     test -n "$CC" && break
   13139   done
   13140 fi
   13141 if test -z "$CC"; then
   13142   ac_ct_CC=$CC
   13143   for ac_prog in cl.exe
   13144 do
   13145   # Extract the first word of "$ac_prog", so it can be a program name with args.
   13146 set dummy $ac_prog; ac_word=$2
   13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13148 $as_echo_n "checking for $ac_word... " >&6; }
   13149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   13150   $as_echo_n "(cached) " >&6
   13151 else
   13152   if test -n "$ac_ct_CC"; then
   13153   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   13154 else
   13155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13156 for as_dir in $PATH
   13157 do
   13158   IFS=$as_save_IFS
   13159   test -z "$as_dir" && as_dir=.
   13160     for ac_exec_ext in '' $ac_executable_extensions; do
   13161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13162     ac_cv_prog_ac_ct_CC="$ac_prog"
   13163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13164     break 2
   13165   fi
   13166 done
   13167   done
   13168 IFS=$as_save_IFS
   13169 
   13170 fi
   13171 fi
   13172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   13173 if test -n "$ac_ct_CC"; then
   13174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   13175 $as_echo "$ac_ct_CC" >&6; }
   13176 else
   13177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13178 $as_echo "no" >&6; }
   13179 fi
   13180 
   13181 
   13182   test -n "$ac_ct_CC" && break
   13183 done
   13184 
   13185   if test "x$ac_ct_CC" = x; then
   13186     CC=""
   13187   else
   13188     case $cross_compiling:$ac_tool_warned in
   13189 yes:)
   13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13192 ac_tool_warned=yes ;;
   13193 esac
   13194     CC=$ac_ct_CC
   13195   fi
   13196 fi
   13197 
   13198 fi
   13199 
   13200 
   13201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13203 as_fn_error $? "no acceptable C compiler found in \$PATH
   13204 See \`config.log' for more details" "$LINENO" 5; }
   13205 
   13206 # Provide some information about the compiler.
   13207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   13208 set X $ac_compile
   13209 ac_compiler=$2
   13210 for ac_option in --version -v -V -qversion; do
   13211   { { ac_try="$ac_compiler $ac_option >&5"
   13212 case "(($ac_try" in
   13213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13214   *) ac_try_echo=$ac_try;;
   13215 esac
   13216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   13217 $as_echo "$ac_try_echo"; } >&5
   13218   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   13219   ac_status=$?
   13220   if test -s conftest.err; then
   13221     sed '10a\
   13222 ... rest of stderr output deleted ...
   13223          10q' conftest.err >conftest.er1
   13224     cat conftest.er1 >&5
   13225   fi
   13226   rm -f conftest.er1 conftest.err
   13227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13228   test $ac_status = 0; }
   13229 done
   13230 
   13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   13232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   13233 if ${ac_cv_c_compiler_gnu+:} false; then :
   13234   $as_echo_n "(cached) " >&6
   13235 else
   13236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13237 /* end confdefs.h.  */
   13238 
   13239 int
   13240 main ()
   13241 {
   13242 #ifndef __GNUC__
   13243        choke me
   13244 #endif
   13245 
   13246   ;
   13247   return 0;
   13248 }
   13249 _ACEOF
   13250 if ac_fn_c_try_compile "$LINENO"; then :
   13251   ac_compiler_gnu=yes
   13252 else
   13253   ac_compiler_gnu=no
   13254 fi
   13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   13257 
   13258 fi
   13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   13260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   13261 if test $ac_compiler_gnu = yes; then
   13262   GCC=yes
   13263 else
   13264   GCC=
   13265 fi
   13266 ac_test_CFLAGS=${CFLAGS+set}
   13267 ac_save_CFLAGS=$CFLAGS
   13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   13269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   13270 if ${ac_cv_prog_cc_g+:} false; then :
   13271   $as_echo_n "(cached) " >&6
   13272 else
   13273   ac_save_c_werror_flag=$ac_c_werror_flag
   13274    ac_c_werror_flag=yes
   13275    ac_cv_prog_cc_g=no
   13276    CFLAGS="-g"
   13277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13278 /* end confdefs.h.  */
   13279 
   13280 int
   13281 main ()
   13282 {
   13283 
   13284   ;
   13285   return 0;
   13286 }
   13287 _ACEOF
   13288 if ac_fn_c_try_compile "$LINENO"; then :
   13289   ac_cv_prog_cc_g=yes
   13290 else
   13291   CFLAGS=""
   13292       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13293 /* end confdefs.h.  */
   13294 
   13295 int
   13296 main ()
   13297 {
   13298 
   13299   ;
   13300   return 0;
   13301 }
   13302 _ACEOF
   13303 if ac_fn_c_try_compile "$LINENO"; then :
   13304 
   13305 else
   13306   ac_c_werror_flag=$ac_save_c_werror_flag
   13307 	 CFLAGS="-g"
   13308 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13309 /* end confdefs.h.  */
   13310 
   13311 int
   13312 main ()
   13313 {
   13314 
   13315   ;
   13316   return 0;
   13317 }
   13318 _ACEOF
   13319 if ac_fn_c_try_compile "$LINENO"; then :
   13320   ac_cv_prog_cc_g=yes
   13321 fi
   13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13323 fi
   13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13325 fi
   13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13327    ac_c_werror_flag=$ac_save_c_werror_flag
   13328 fi
   13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   13330 $as_echo "$ac_cv_prog_cc_g" >&6; }
   13331 if test "$ac_test_CFLAGS" = set; then
   13332   CFLAGS=$ac_save_CFLAGS
   13333 elif test $ac_cv_prog_cc_g = yes; then
   13334   if test "$GCC" = yes; then
   13335     CFLAGS="-g -O2"
   13336   else
   13337     CFLAGS="-g"
   13338   fi
   13339 else
   13340   if test "$GCC" = yes; then
   13341     CFLAGS="-O2"
   13342   else
   13343     CFLAGS=
   13344   fi
   13345 fi
   13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   13347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   13348 if ${ac_cv_prog_cc_c89+:} false; then :
   13349   $as_echo_n "(cached) " >&6
   13350 else
   13351   ac_cv_prog_cc_c89=no
   13352 ac_save_CC=$CC
   13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13354 /* end confdefs.h.  */
   13355 #include <stdarg.h>
   13356 #include <stdio.h>
   13357 struct stat;
   13358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   13359 struct buf { int x; };
   13360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   13361 static char *e (p, i)
   13362      char **p;
   13363      int i;
   13364 {
   13365   return p[i];
   13366 }
   13367 static char *f (char * (*g) (char **, int), char **p, ...)
   13368 {
   13369   char *s;
   13370   va_list v;
   13371   va_start (v,p);
   13372   s = g (p, va_arg (v,int));
   13373   va_end (v);
   13374   return s;
   13375 }
   13376 
   13377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   13378    function prototypes and stuff, but not '\xHH' hex character constants.
   13379    These don't provoke an error unfortunately, instead are silently treated
   13380    as 'x'.  The following induces an error, until -std is added to get
   13381    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   13382    array size at least.  It's necessary to write '\x00'==0 to get something
   13383    that's true only with -std.  */
   13384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   13385 
   13386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   13387    inside strings and character constants.  */
   13388 #define FOO(x) 'x'
   13389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   13390 
   13391 int test (int i, double x);
   13392 struct s1 {int (*f) (int a);};
   13393 struct s2 {int (*f) (double a);};
   13394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   13395 int argc;
   13396 char **argv;
   13397 int
   13398 main ()
   13399 {
   13400 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   13401   ;
   13402   return 0;
   13403 }
   13404 _ACEOF
   13405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   13406 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   13407 do
   13408   CC="$ac_save_CC $ac_arg"
   13409   if ac_fn_c_try_compile "$LINENO"; then :
   13410   ac_cv_prog_cc_c89=$ac_arg
   13411 fi
   13412 rm -f core conftest.err conftest.$ac_objext
   13413   test "x$ac_cv_prog_cc_c89" != "xno" && break
   13414 done
   13415 rm -f conftest.$ac_ext
   13416 CC=$ac_save_CC
   13417 
   13418 fi
   13419 # AC_CACHE_VAL
   13420 case "x$ac_cv_prog_cc_c89" in
   13421   x)
   13422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13423 $as_echo "none needed" >&6; } ;;
   13424   xno)
   13425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13426 $as_echo "unsupported" >&6; } ;;
   13427   *)
   13428     CC="$CC $ac_cv_prog_cc_c89"
   13429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   13430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   13431 esac
   13432 if test "x$ac_cv_prog_cc_c89" != xno; then :
   13433 
   13434 fi
   13435 
   13436 ac_ext=c
   13437 ac_cpp='$CPP $CPPFLAGS'
   13438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13441 
   13442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   13443 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   13444 if ${ac_cv_prog_cc_c99+:} false; then :
   13445   $as_echo_n "(cached) " >&6
   13446 else
   13447   ac_cv_prog_cc_c99=no
   13448 ac_save_CC=$CC
   13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13450 /* end confdefs.h.  */
   13451 #include <stdarg.h>
   13452 #include <stdbool.h>
   13453 #include <stdlib.h>
   13454 #include <wchar.h>
   13455 #include <stdio.h>
   13456 
   13457 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   13458 #define debug(...) fprintf (stderr, __VA_ARGS__)
   13459 #define showlist(...) puts (#__VA_ARGS__)
   13460 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   13461 static void
   13462 test_varargs_macros (void)
   13463 {
   13464   int x = 1234;
   13465   int y = 5678;
   13466   debug ("Flag");
   13467   debug ("X = %d\n", x);
   13468   showlist (The first, second, and third items.);
   13469   report (x>y, "x is %d but y is %d", x, y);
   13470 }
   13471 
   13472 // Check long long types.
   13473 #define BIG64 18446744073709551615ull
   13474 #define BIG32 4294967295ul
   13475 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   13476 #if !BIG_OK
   13477   your preprocessor is broken;
   13478 #endif
   13479 #if BIG_OK
   13480 #else
   13481   your preprocessor is broken;
   13482 #endif
   13483 static long long int bignum = -9223372036854775807LL;
   13484 static unsigned long long int ubignum = BIG64;
   13485 
   13486 struct incomplete_array
   13487 {
   13488   int datasize;
   13489   double data[];
   13490 };
   13491 
   13492 struct named_init {
   13493   int number;
   13494   const wchar_t *name;
   13495   double average;
   13496 };
   13497 
   13498 typedef const char *ccp;
   13499 
   13500 static inline int
   13501 test_restrict (ccp restrict text)
   13502 {
   13503   // See if C++-style comments work.
   13504   // Iterate through items via the restricted pointer.
   13505   // Also check for declarations in for loops.
   13506   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13507     continue;
   13508   return 0;
   13509 }
   13510 
   13511 // Check varargs and va_copy.
   13512 static void
   13513 test_varargs (const char *format, ...)
   13514 {
   13515   va_list args;
   13516   va_start (args, format);
   13517   va_list args_copy;
   13518   va_copy (args_copy, args);
   13519 
   13520   const char *str;
   13521   int number;
   13522   float fnumber;
   13523 
   13524   while (*format)
   13525     {
   13526       switch (*format++)
   13527 	{
   13528 	case 's': // string
   13529 	  str = va_arg (args_copy, const char *);
   13530 	  break;
   13531 	case 'd': // int
   13532 	  number = va_arg (args_copy, int);
   13533 	  break;
   13534 	case 'f': // float
   13535 	  fnumber = va_arg (args_copy, double);
   13536 	  break;
   13537 	default:
   13538 	  break;
   13539 	}
   13540     }
   13541   va_end (args_copy);
   13542   va_end (args);
   13543 }
   13544 
   13545 int
   13546 main ()
   13547 {
   13548 
   13549   // Check bool.
   13550   _Bool success = false;
   13551 
   13552   // Check restrict.
   13553   if (test_restrict ("String literal") == 0)
   13554     success = true;
   13555   char *restrict newvar = "Another string";
   13556 
   13557   // Check varargs.
   13558   test_varargs ("s, d' f .", "string", 65, 34.234);
   13559   test_varargs_macros ();
   13560 
   13561   // Check flexible array members.
   13562   struct incomplete_array *ia =
   13563     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13564   ia->datasize = 10;
   13565   for (int i = 0; i < ia->datasize; ++i)
   13566     ia->data[i] = i * 1.234;
   13567 
   13568   // Check named initializers.
   13569   struct named_init ni = {
   13570     .number = 34,
   13571     .name = L"Test wide string",
   13572     .average = 543.34343,
   13573   };
   13574 
   13575   ni.number = 58;
   13576 
   13577   int dynamic_array[ni.number];
   13578   dynamic_array[ni.number - 1] = 543;
   13579 
   13580   // work around unused variable warnings
   13581   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13582 	  || dynamic_array[ni.number - 1] != 543);
   13583 
   13584   ;
   13585   return 0;
   13586 }
   13587 _ACEOF
   13588 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13589 do
   13590   CC="$ac_save_CC $ac_arg"
   13591   if ac_fn_c_try_compile "$LINENO"; then :
   13592   ac_cv_prog_cc_c99=$ac_arg
   13593 fi
   13594 rm -f core conftest.err conftest.$ac_objext
   13595   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13596 done
   13597 rm -f conftest.$ac_ext
   13598 CC=$ac_save_CC
   13599 
   13600 fi
   13601 # AC_CACHE_VAL
   13602 case "x$ac_cv_prog_cc_c99" in
   13603   x)
   13604     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13605 $as_echo "none needed" >&6; } ;;
   13606   xno)
   13607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13608 $as_echo "unsupported" >&6; } ;;
   13609   *)
   13610     CC="$CC $ac_cv_prog_cc_c99"
   13611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13612 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13613 esac
   13614 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13615 
   13616 fi
   13617 
   13618 
   13619 
   13620 #
   13621 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
   13622 #
   13623 case $host in #(
   13624   *-solaris*) :
   13625 
   13626 	    if test "$GCC" = "yes"; then :
   13627   LDFLAGS="$LDFLAGS -zrelax=transtls"
   13628 		   { $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
   13629 $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;}
   13630 
   13631 fi
   13632 	 ;; #(
   13633   *-darwin*) :
   13634     LDFLAGS="$LDFLAGS -Wl,-flat_namespace" ;; #(
   13635   *) :
   13636      ;;
   13637 esac
   13638 
   13639 #
   13640 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13641 #
   13642 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13643 	CCNOOPT="-O0"
   13644 fi
   13645 
   13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13647 $as_echo_n "checking for ANSI C header files... " >&6; }
   13648 if ${ac_cv_header_stdc+:} false; then :
   13649   $as_echo_n "(cached) " >&6
   13650 else
   13651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13652 /* end confdefs.h.  */
   13653 #include <stdlib.h>
   13654 #include <stdarg.h>
   13655 #include <string.h>
   13656 #include <float.h>
   13657 
   13658 int
   13659 main ()
   13660 {
   13661 
   13662   ;
   13663   return 0;
   13664 }
   13665 _ACEOF
   13666 if ac_fn_c_try_compile "$LINENO"; then :
   13667   ac_cv_header_stdc=yes
   13668 else
   13669   ac_cv_header_stdc=no
   13670 fi
   13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13672 
   13673 if test $ac_cv_header_stdc = yes; then
   13674   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13676 /* end confdefs.h.  */
   13677 #include <string.h>
   13678 
   13679 _ACEOF
   13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13681   $EGREP "memchr" >/dev/null 2>&1; then :
   13682 
   13683 else
   13684   ac_cv_header_stdc=no
   13685 fi
   13686 rm -f conftest*
   13687 
   13688 fi
   13689 
   13690 if test $ac_cv_header_stdc = yes; then
   13691   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13693 /* end confdefs.h.  */
   13694 #include <stdlib.h>
   13695 
   13696 _ACEOF
   13697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13698   $EGREP "free" >/dev/null 2>&1; then :
   13699 
   13700 else
   13701   ac_cv_header_stdc=no
   13702 fi
   13703 rm -f conftest*
   13704 
   13705 fi
   13706 
   13707 if test $ac_cv_header_stdc = yes; then
   13708   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13709   if test "$cross_compiling" = yes; then :
   13710   :
   13711 else
   13712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13713 /* end confdefs.h.  */
   13714 #include <ctype.h>
   13715 #include <stdlib.h>
   13716 #if ((' ' & 0x0FF) == 0x020)
   13717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13719 #else
   13720 # define ISLOWER(c) \
   13721 		   (('a' <= (c) && (c) <= 'i') \
   13722 		     || ('j' <= (c) && (c) <= 'r') \
   13723 		     || ('s' <= (c) && (c) <= 'z'))
   13724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13725 #endif
   13726 
   13727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13728 int
   13729 main ()
   13730 {
   13731   int i;
   13732   for (i = 0; i < 256; i++)
   13733     if (XOR (islower (i), ISLOWER (i))
   13734 	|| toupper (i) != TOUPPER (i))
   13735       return 2;
   13736   return 0;
   13737 }
   13738 _ACEOF
   13739 if ac_fn_c_try_run "$LINENO"; then :
   13740 
   13741 else
   13742   ac_cv_header_stdc=no
   13743 fi
   13744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13745   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13746 fi
   13747 
   13748 fi
   13749 fi
   13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13751 $as_echo "$ac_cv_header_stdc" >&6; }
   13752 if test $ac_cv_header_stdc = yes; then
   13753 
   13754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13755 
   13756 fi
   13757 
   13758 
   13759 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
   13760 do :
   13761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13763 #ifdef HAVE_SYS_PARAM_H
   13764 # include <sys/param.h>
   13765 #endif
   13766 #ifdef HAVE_SYS_SOCKET_H
   13767 # include <sys/socket.h>
   13768 #endif
   13769 
   13770 "
   13771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13772   cat >>confdefs.h <<_ACEOF
   13773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13774 _ACEOF
   13775 
   13776 fi
   13777 
   13778 done
   13779 
   13780 
   13781 #
   13782 # Check for thread local storage
   13783 #
   13784 for ac_header in threads.h
   13785 do :
   13786   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13787 if test "x$ac_cv_header_threads_h" = xyes; then :
   13788   cat >>confdefs.h <<_ACEOF
   13789 #define HAVE_THREADS_H 1
   13790 _ACEOF
   13791 
   13792 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13793 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13794 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13795 /* end confdefs.h.  */
   13796 
   13797 				  #include <threads.h>
   13798 
   13799 int
   13800 main ()
   13801 {
   13802 
   13803 				  static thread_local int tls = 0;
   13804 				  return (tls);
   13805 
   13806   ;
   13807   return 0;
   13808 }
   13809 
   13810 _ACEOF
   13811 if ac_fn_c_try_compile "$LINENO"; then :
   13812 
   13813 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13814 $as_echo "yes" >&6; }
   13815 
   13816 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13817 
   13818 
   13819 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13820 
   13821 
   13822 else
   13823 
   13824 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13825 
   13826 fi
   13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13828 
   13829 else
   13830 
   13831 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13832 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13833 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13834 /* end confdefs.h.  */
   13835 
   13836 
   13837 int
   13838 main ()
   13839 {
   13840 
   13841 				  static __thread int tls = 0;
   13842 				  return (tls);
   13843 
   13844   ;
   13845   return 0;
   13846 }
   13847 
   13848 _ACEOF
   13849 if ac_fn_c_try_compile "$LINENO"; then :
   13850 
   13851 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13852 $as_echo "yes" >&6; }
   13853 
   13854 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13855 
   13856 
   13857 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13858 
   13859 
   13860 else
   13861 
   13862 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13863 
   13864 fi
   13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13866 
   13867 fi
   13868 
   13869 done
   13870 
   13871 
   13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13874 if ${ac_cv_c_const+:} false; then :
   13875   $as_echo_n "(cached) " >&6
   13876 else
   13877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13878 /* end confdefs.h.  */
   13879 
   13880 int
   13881 main ()
   13882 {
   13883 
   13884 #ifndef __cplusplus
   13885   /* Ultrix mips cc rejects this sort of thing.  */
   13886   typedef int charset[2];
   13887   const charset cs = { 0, 0 };
   13888   /* SunOS 4.1.1 cc rejects this.  */
   13889   char const *const *pcpcc;
   13890   char **ppc;
   13891   /* NEC SVR4.0.2 mips cc rejects this.  */
   13892   struct point {int x, y;};
   13893   static struct point const zero = {0,0};
   13894   /* AIX XL C 1.02.0.0 rejects this.
   13895      It does not let you subtract one const X* pointer from another in
   13896      an arm of an if-expression whose if-part is not a constant
   13897      expression */
   13898   const char *g = "string";
   13899   pcpcc = &g + (g ? g-g : 0);
   13900   /* HPUX 7.0 cc rejects these. */
   13901   ++pcpcc;
   13902   ppc = (char**) pcpcc;
   13903   pcpcc = (char const *const *) ppc;
   13904   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13905     char tx;
   13906     char *t = &tx;
   13907     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13908 
   13909     *t++ = 0;
   13910     if (s) return 0;
   13911   }
   13912   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13913     int x[] = {25, 17};
   13914     const int *foo = &x[0];
   13915     ++foo;
   13916   }
   13917   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13918     typedef const int *iptr;
   13919     iptr p = 0;
   13920     ++p;
   13921   }
   13922   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13923        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13924     struct s { int j; const int *ap[3]; } bx;
   13925     struct s *b = &bx; b->j = 5;
   13926   }
   13927   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13928     const int foo = 10;
   13929     if (!foo) return 0;
   13930   }
   13931   return !cs[0] && !zero.x;
   13932 #endif
   13933 
   13934   ;
   13935   return 0;
   13936 }
   13937 _ACEOF
   13938 if ac_fn_c_try_compile "$LINENO"; then :
   13939   ac_cv_c_const=yes
   13940 else
   13941   ac_cv_c_const=no
   13942 fi
   13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13944 fi
   13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13946 $as_echo "$ac_cv_c_const" >&6; }
   13947 if test $ac_cv_c_const = no; then
   13948 
   13949 $as_echo "#define const /**/" >>confdefs.h
   13950 
   13951 fi
   13952 
   13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13954 $as_echo_n "checking for inline... " >&6; }
   13955 if ${ac_cv_c_inline+:} false; then :
   13956   $as_echo_n "(cached) " >&6
   13957 else
   13958   ac_cv_c_inline=no
   13959 for ac_kw in inline __inline__ __inline; do
   13960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13961 /* end confdefs.h.  */
   13962 #ifndef __cplusplus
   13963 typedef int foo_t;
   13964 static $ac_kw foo_t static_foo () {return 0; }
   13965 $ac_kw foo_t foo () {return 0; }
   13966 #endif
   13967 
   13968 _ACEOF
   13969 if ac_fn_c_try_compile "$LINENO"; then :
   13970   ac_cv_c_inline=$ac_kw
   13971 fi
   13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13973   test "$ac_cv_c_inline" != no && break
   13974 done
   13975 
   13976 fi
   13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13978 $as_echo "$ac_cv_c_inline" >&6; }
   13979 
   13980 case $ac_cv_c_inline in
   13981   inline | yes) ;;
   13982   *)
   13983     case $ac_cv_c_inline in
   13984       no) ac_val=;;
   13985       *) ac_val=$ac_cv_c_inline;;
   13986     esac
   13987     cat >>confdefs.h <<_ACEOF
   13988 #ifndef __cplusplus
   13989 #define inline $ac_val
   13990 #endif
   13991 _ACEOF
   13992     ;;
   13993 esac
   13994 
   13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13996 $as_echo_n "checking for working volatile... " >&6; }
   13997 if ${ac_cv_c_volatile+:} false; then :
   13998   $as_echo_n "(cached) " >&6
   13999 else
   14000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14001 /* end confdefs.h.  */
   14002 
   14003 int
   14004 main ()
   14005 {
   14006 
   14007 volatile int x;
   14008 int * volatile y = (int *) 0;
   14009 return !x && !y;
   14010   ;
   14011   return 0;
   14012 }
   14013 _ACEOF
   14014 if ac_fn_c_try_compile "$LINENO"; then :
   14015   ac_cv_c_volatile=yes
   14016 else
   14017   ac_cv_c_volatile=no
   14018 fi
   14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14020 fi
   14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   14022 $as_echo "$ac_cv_c_volatile" >&6; }
   14023 if test $ac_cv_c_volatile = no; then
   14024 
   14025 $as_echo "#define volatile /**/" >>confdefs.h
   14026 
   14027 fi
   14028 
   14029 
   14030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   14031 $as_echo_n "checking for flexible array members... " >&6; }
   14032 if ${ac_cv_c_flexmember+:} false; then :
   14033   $as_echo_n "(cached) " >&6
   14034 else
   14035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14036 /* end confdefs.h.  */
   14037 #include <stdlib.h>
   14038 	    #include <stdio.h>
   14039 	    #include <stddef.h>
   14040 	    struct s { int n; double d[]; };
   14041 int
   14042 main ()
   14043 {
   14044 int m = getchar ();
   14045 	    struct s *p = malloc (offsetof (struct s, d)
   14046 				  + m * sizeof (double));
   14047 	    p->d[0] = 0.0;
   14048 	    return p->d != (double *) NULL;
   14049   ;
   14050   return 0;
   14051 }
   14052 _ACEOF
   14053 if ac_fn_c_try_compile "$LINENO"; then :
   14054   ac_cv_c_flexmember=yes
   14055 else
   14056   ac_cv_c_flexmember=no
   14057 fi
   14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14059 fi
   14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   14061 $as_echo "$ac_cv_c_flexmember" >&6; }
   14062   if test $ac_cv_c_flexmember = yes; then
   14063 
   14064 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   14065 
   14066   else
   14067     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   14068 
   14069   fi
   14070 
   14071 
   14072 #
   14073 # Check for yield support on ARM processors
   14074 #
   14075 case $host in #(
   14076   arm*) :
   14077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   14078 $as_echo_n "checking for yield instruction support... " >&6; }
   14079 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14080 /* end confdefs.h.  */
   14081 
   14082 int
   14083 main ()
   14084 {
   14085 __asm__ __volatile__ ("yield")
   14086   ;
   14087   return 0;
   14088 }
   14089 _ACEOF
   14090 if ac_fn_c_try_compile "$LINENO"; then :
   14091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14092 $as_echo "yes" >&6; }
   14093 
   14094 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
   14095 
   14096 else
   14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14098 $as_echo "no" >&6; }
   14099 fi
   14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14101   *) :
   14102      ;;
   14103 esac
   14104 
   14105 #
   14106 # Check for pause support on SPARC processors
   14107 #
   14108 case $host in #(
   14109   sparc*) :
   14110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
   14111 $as_echo_n "checking for pause instruction support... " >&6; }
   14112 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14113 /* end confdefs.h.  */
   14114 
   14115 int
   14116 main ()
   14117 {
   14118 __asm__ __volatile__ ("pause")
   14119   ;
   14120   return 0;
   14121 }
   14122 _ACEOF
   14123 if ac_fn_c_try_compile "$LINENO"; then :
   14124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14125 $as_echo "yes" >&6; }
   14126 
   14127 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
   14128 
   14129 else
   14130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14131 $as_echo "no" >&6; }
   14132 fi
   14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   14134   *) :
   14135      ;;
   14136 esac
   14137 
   14138 for ac_func in sysctlbyname
   14139 do :
   14140   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   14141 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   14142   cat >>confdefs.h <<_ACEOF
   14143 #define HAVE_SYSCTLBYNAME 1
   14144 _ACEOF
   14145 
   14146 fi
   14147 done
   14148 
   14149 
   14150 #
   14151 # Check for the existence of mmap to enable the fast format zones
   14152 #
   14153 for ac_func in mmap
   14154 do :
   14155   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   14156 if test "x$ac_cv_func_mmap" = xyes; then :
   14157   cat >>confdefs.h <<_ACEOF
   14158 #define HAVE_MMAP 1
   14159 _ACEOF
   14160 
   14161 fi
   14162 done
   14163 
   14164 
   14165 #
   14166 # Older versions of HP/UX don't define seteuid() and setegid()
   14167 #
   14168 for ac_func in seteuid setresuid
   14169 do :
   14170   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14173   cat >>confdefs.h <<_ACEOF
   14174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14175 _ACEOF
   14176 
   14177 fi
   14178 done
   14179 
   14180 for ac_func in setegid setresgid
   14181 do :
   14182   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14185   cat >>confdefs.h <<_ACEOF
   14186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14187 _ACEOF
   14188 
   14189 fi
   14190 done
   14191 
   14192 
   14193 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14194 if test "x$ac_cv_type_size_t" = xyes; then :
   14195 
   14196 else
   14197 
   14198 cat >>confdefs.h <<_ACEOF
   14199 #define size_t unsigned int
   14200 _ACEOF
   14201 
   14202 fi
   14203 
   14204 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14205 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14206 
   14207 else
   14208 
   14209 cat >>confdefs.h <<_ACEOF
   14210 #define ssize_t int
   14211 _ACEOF
   14212 
   14213 fi
   14214 
   14215 
   14216   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   14217 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14218 
   14219 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   14220 
   14221 else
   14222   for ac_type in 'unsigned int' 'unsigned long int' \
   14223 	'unsigned long long int'; do
   14224        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14225 /* end confdefs.h.  */
   14226 $ac_includes_default
   14227 int
   14228 main ()
   14229 {
   14230 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   14231 test_array [0] = 0;
   14232 return test_array [0];
   14233 
   14234   ;
   14235   return 0;
   14236 }
   14237 _ACEOF
   14238 if ac_fn_c_try_compile "$LINENO"; then :
   14239 
   14240 cat >>confdefs.h <<_ACEOF
   14241 #define uintptr_t $ac_type
   14242 _ACEOF
   14243 
   14244 	  ac_type=
   14245 fi
   14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14247        test -z "$ac_type" && break
   14248      done
   14249 fi
   14250 
   14251 
   14252 
   14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   14254 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   14255 if ${ac_cv_header_time+:} false; then :
   14256   $as_echo_n "(cached) " >&6
   14257 else
   14258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14259 /* end confdefs.h.  */
   14260 #include <sys/types.h>
   14261 #include <sys/time.h>
   14262 #include <time.h>
   14263 
   14264 int
   14265 main ()
   14266 {
   14267 if ((struct tm *) 0)
   14268 return 0;
   14269   ;
   14270   return 0;
   14271 }
   14272 _ACEOF
   14273 if ac_fn_c_try_compile "$LINENO"; then :
   14274   ac_cv_header_time=yes
   14275 else
   14276   ac_cv_header_time=no
   14277 fi
   14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14279 fi
   14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   14281 $as_echo "$ac_cv_header_time" >&6; }
   14282 if test $ac_cv_header_time = yes; then
   14283 
   14284 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   14285 
   14286 fi
   14287 
   14288 
   14289 #
   14290 # check for uname library routine
   14291 #
   14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   14293 $as_echo_n "checking for uname... " >&6; }
   14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14295 /* end confdefs.h.  */
   14296 #include <sys/utsname.h>
   14297        #include <stdio.h>
   14298 
   14299 int
   14300 main ()
   14301 {
   14302 
   14303        struct utsname uts;
   14304        uname(&uts);
   14305        printf("running on %s %s %s for %s\n",
   14306 	      uts.sysname, uts.release, uts.version, uts.machine);
   14307 
   14308   ;
   14309   return 0;
   14310 }
   14311 _ACEOF
   14312 if ac_fn_c_try_compile "$LINENO"; then :
   14313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14314 $as_echo "yes" >&6; }
   14315 
   14316 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   14317 
   14318 
   14319 else
   14320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14321 $as_echo "no" >&6; }
   14322    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   14323 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   14324 
   14325 fi
   14326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14327 
   14328 #
   14329 # check for GCC noreturn attribute
   14330 #
   14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   14332 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14334 /* end confdefs.h.  */
   14335 
   14336 int
   14337 main ()
   14338 {
   14339 void foo() __attribute__((noreturn));
   14340   ;
   14341   return 0;
   14342 }
   14343 _ACEOF
   14344 if ac_fn_c_try_compile "$LINENO"; then :
   14345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14346 $as_echo "yes" >&6; }
   14347 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14348 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   14349 else
   14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14351 $as_echo "no" >&6; }
   14352 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14353 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   14354 fi
   14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14356 
   14357 
   14358 
   14359 #
   14360 # check if we have kqueue
   14361 #
   14362 # [pairwise: --enable-kqueue, --disable-kqueue]
   14363 # Check whether --enable-kqueue was given.
   14364 if test "${enable_kqueue+set}" = set; then :
   14365   enableval=$enable_kqueue;
   14366 else
   14367   enable_kqueue="yes"
   14368 fi
   14369 
   14370 
   14371 if test "$enable_kqueue" = "yes"; then :
   14372   for ac_func in kqueue
   14373 do :
   14374   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   14375 if test "x$ac_cv_func_kqueue" = xyes; then :
   14376   cat >>confdefs.h <<_ACEOF
   14377 #define HAVE_KQUEUE 1
   14378 _ACEOF
   14379 
   14380 fi
   14381 done
   14382 
   14383 fi
   14384 
   14385 #
   14386 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   14387 # so we need to try running the code, not just test its existence.
   14388 #
   14389 # [pairwise: --enable-epoll, --disable-epoll]
   14390 # Check whether --enable-epoll was given.
   14391 if test "${enable_epoll+set}" = set; then :
   14392   enableval=$enable_epoll;
   14393 else
   14394   enable_epoll="yes"
   14395 fi
   14396 
   14397 
   14398 if test "$enable_epoll" = "yes"; then :
   14399   for ac_func in epoll_create1
   14400 do :
   14401   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   14402 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   14403   cat >>confdefs.h <<_ACEOF
   14404 #define HAVE_EPOLL_CREATE1 1
   14405 _ACEOF
   14406 
   14407 fi
   14408 done
   14409 
   14410 fi
   14411 
   14412 #
   14413 # check if we support /dev/poll
   14414 #
   14415 # [pairwise: --enable-devpoll, --disable-devpoll]
   14416 # Check whether --enable-devpoll was given.
   14417 if test "${enable_devpoll+set}" = set; then :
   14418   enableval=$enable_devpoll;
   14419 else
   14420   enable_devpoll="yes"
   14421 fi
   14422 
   14423 if test "$enable_devpoll" = "yes"; then :
   14424   for ac_header in sys/devpoll.h devpoll.h
   14425 do :
   14426   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14429   cat >>confdefs.h <<_ACEOF
   14430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14431 _ACEOF
   14432 
   14433 fi
   14434 
   14435 done
   14436 
   14437 fi
   14438 
   14439 #
   14440 # Find the machine's endian flavor.
   14441 #
   14442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   14443 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   14444 if ${ac_cv_c_bigendian+:} false; then :
   14445   $as_echo_n "(cached) " >&6
   14446 else
   14447   ac_cv_c_bigendian=unknown
   14448     # See if we're dealing with a universal compiler.
   14449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14450 /* end confdefs.h.  */
   14451 #ifndef __APPLE_CC__
   14452 	       not a universal capable compiler
   14453 	     #endif
   14454 	     typedef int dummy;
   14455 
   14456 _ACEOF
   14457 if ac_fn_c_try_compile "$LINENO"; then :
   14458 
   14459 	# Check for potential -arch flags.  It is not universal unless
   14460 	# there are at least two -arch flags with different values.
   14461 	ac_arch=
   14462 	ac_prev=
   14463 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   14464 	 if test -n "$ac_prev"; then
   14465 	   case $ac_word in
   14466 	     i?86 | x86_64 | ppc | ppc64)
   14467 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   14468 		 ac_arch=$ac_word
   14469 	       else
   14470 		 ac_cv_c_bigendian=universal
   14471 		 break
   14472 	       fi
   14473 	       ;;
   14474 	   esac
   14475 	   ac_prev=
   14476 	 elif test "x$ac_word" = "x-arch"; then
   14477 	   ac_prev=arch
   14478 	 fi
   14479        done
   14480 fi
   14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14482     if test $ac_cv_c_bigendian = unknown; then
   14483       # See if sys/param.h defines the BYTE_ORDER macro.
   14484       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14485 /* end confdefs.h.  */
   14486 #include <sys/types.h>
   14487 	     #include <sys/param.h>
   14488 
   14489 int
   14490 main ()
   14491 {
   14492 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   14493 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   14494 		     && LITTLE_ENDIAN)
   14495 	      bogus endian macros
   14496 	     #endif
   14497 
   14498   ;
   14499   return 0;
   14500 }
   14501 _ACEOF
   14502 if ac_fn_c_try_compile "$LINENO"; then :
   14503   # It does; now see whether it defined to BIG_ENDIAN or not.
   14504 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14505 /* end confdefs.h.  */
   14506 #include <sys/types.h>
   14507 		#include <sys/param.h>
   14508 
   14509 int
   14510 main ()
   14511 {
   14512 #if BYTE_ORDER != BIG_ENDIAN
   14513 		 not big endian
   14514 		#endif
   14515 
   14516   ;
   14517   return 0;
   14518 }
   14519 _ACEOF
   14520 if ac_fn_c_try_compile "$LINENO"; then :
   14521   ac_cv_c_bigendian=yes
   14522 else
   14523   ac_cv_c_bigendian=no
   14524 fi
   14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14526 fi
   14527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14528     fi
   14529     if test $ac_cv_c_bigendian = unknown; then
   14530       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   14531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14532 /* end confdefs.h.  */
   14533 #include <limits.h>
   14534 
   14535 int
   14536 main ()
   14537 {
   14538 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   14539 	      bogus endian macros
   14540 	     #endif
   14541 
   14542   ;
   14543   return 0;
   14544 }
   14545 _ACEOF
   14546 if ac_fn_c_try_compile "$LINENO"; then :
   14547   # It does; now see whether it defined to _BIG_ENDIAN or not.
   14548 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14549 /* end confdefs.h.  */
   14550 #include <limits.h>
   14551 
   14552 int
   14553 main ()
   14554 {
   14555 #ifndef _BIG_ENDIAN
   14556 		 not big endian
   14557 		#endif
   14558 
   14559   ;
   14560   return 0;
   14561 }
   14562 _ACEOF
   14563 if ac_fn_c_try_compile "$LINENO"; then :
   14564   ac_cv_c_bigendian=yes
   14565 else
   14566   ac_cv_c_bigendian=no
   14567 fi
   14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14569 fi
   14570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14571     fi
   14572     if test $ac_cv_c_bigendian = unknown; then
   14573       # Compile a test program.
   14574       if test "$cross_compiling" = yes; then :
   14575   # Try to guess by grepping values from an object file.
   14576 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14577 /* end confdefs.h.  */
   14578 short int ascii_mm[] =
   14579 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14580 		short int ascii_ii[] =
   14581 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14582 		int use_ascii (int i) {
   14583 		  return ascii_mm[i] + ascii_ii[i];
   14584 		}
   14585 		short int ebcdic_ii[] =
   14586 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14587 		short int ebcdic_mm[] =
   14588 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14589 		int use_ebcdic (int i) {
   14590 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14591 		}
   14592 		extern int foo;
   14593 
   14594 int
   14595 main ()
   14596 {
   14597 return use_ascii (foo) == use_ebcdic (foo);
   14598   ;
   14599   return 0;
   14600 }
   14601 _ACEOF
   14602 if ac_fn_c_try_compile "$LINENO"; then :
   14603   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14604 	      ac_cv_c_bigendian=yes
   14605 	    fi
   14606 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14607 	      if test "$ac_cv_c_bigendian" = unknown; then
   14608 		ac_cv_c_bigendian=no
   14609 	      else
   14610 		# finding both strings is unlikely to happen, but who knows?
   14611 		ac_cv_c_bigendian=unknown
   14612 	      fi
   14613 	    fi
   14614 fi
   14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14616 else
   14617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14618 /* end confdefs.h.  */
   14619 $ac_includes_default
   14620 int
   14621 main ()
   14622 {
   14623 
   14624 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14625 	     union
   14626 	     {
   14627 	       long int l;
   14628 	       char c[sizeof (long int)];
   14629 	     } u;
   14630 	     u.l = 1;
   14631 	     return u.c[sizeof (long int) - 1] == 1;
   14632 
   14633   ;
   14634   return 0;
   14635 }
   14636 _ACEOF
   14637 if ac_fn_c_try_run "$LINENO"; then :
   14638   ac_cv_c_bigendian=no
   14639 else
   14640   ac_cv_c_bigendian=yes
   14641 fi
   14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14643   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14644 fi
   14645 
   14646     fi
   14647 fi
   14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14649 $as_echo "$ac_cv_c_bigendian" >&6; }
   14650  case $ac_cv_c_bigendian in #(
   14651    yes)
   14652      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14653 ;; #(
   14654    no)
   14655       ;; #(
   14656    universal)
   14657 
   14658 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14659 
   14660      ;; #(
   14661    *)
   14662      as_fn_error $? "unknown endianness
   14663  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14664  esac
   14665 
   14666 
   14667 #
   14668 # GeoIP support?
   14669 #
   14670 # Should be on by default if libmaxminddb exists.
   14671 #
   14672 # [pairwise: skip]
   14673 
   14674 # Check whether --with-geoip2 was given.
   14675 if test "${with_geoip2+set}" = set; then :
   14676   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
   14677 $as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
   14678 else
   14679   with_geoip2="auto"
   14680 fi
   14681 
   14682 
   14683 # [pairwise: --enable-geoip --with-maxminddb=auto, --enable-geoip --with-maxminddb=yes, --disable-geoip]
   14684 # Check whether --enable-geoip was given.
   14685 if test "${enable_geoip+set}" = set; then :
   14686   enableval=$enable_geoip;
   14687 else
   14688   enable_geoip="yes"
   14689 fi
   14690 
   14691 
   14692 # [pairwise: skip]
   14693 
   14694 # Check whether --with-maxminddb was given.
   14695 if test "${with_maxminddb+set}" = set; then :
   14696   withval=$with_maxminddb;
   14697 else
   14698   with_maxminddb="$with_geoip2"
   14699 fi
   14700 
   14701 
   14702 GEOIP2LINKSRCS=
   14703 GEOIP2LINKOBJS=
   14704 if test "$enable_geoip" = "yes"; then :
   14705   case $with_maxminddb in #(
   14706   no) :
   14707     as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
   14708   auto) :
   14709 
   14710 pkg_failed=no
   14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14712 $as_echo_n "checking for libmaxminddb... " >&6; }
   14713 
   14714 if test -n "$MAXMINDDB_CFLAGS"; then
   14715     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14716  elif test -n "$PKG_CONFIG"; then
   14717     if test -n "$PKG_CONFIG" && \
   14718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14719   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14720   ac_status=$?
   14721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14722   test $ac_status = 0; }; then
   14723   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14724 		      test "x$?" != "x0" && pkg_failed=yes
   14725 else
   14726   pkg_failed=yes
   14727 fi
   14728  else
   14729     pkg_failed=untried
   14730 fi
   14731 if test -n "$MAXMINDDB_LIBS"; then
   14732     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14733  elif test -n "$PKG_CONFIG"; then
   14734     if test -n "$PKG_CONFIG" && \
   14735     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14736   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14737   ac_status=$?
   14738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14739   test $ac_status = 0; }; then
   14740   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14741 		      test "x$?" != "x0" && pkg_failed=yes
   14742 else
   14743   pkg_failed=yes
   14744 fi
   14745  else
   14746     pkg_failed=untried
   14747 fi
   14748 
   14749 
   14750 
   14751 if test $pkg_failed = yes; then
   14752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14753 $as_echo "no" >&6; }
   14754 
   14755 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14756         _pkg_short_errors_supported=yes
   14757 else
   14758         _pkg_short_errors_supported=no
   14759 fi
   14760         if test $_pkg_short_errors_supported = yes; then
   14761 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14762         else
   14763 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14764         fi
   14765 	# Put the nasty error message in config.log where it belongs
   14766 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14767 
   14768 	:
   14769 elif test $pkg_failed = untried; then
   14770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14771 $as_echo "no" >&6; }
   14772 	:
   14773 else
   14774 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14775 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14777 $as_echo "yes" >&6; }
   14778 
   14779 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14780 
   14781 
   14782 if test -n "$MAXMINDDB_PREFIX"; then
   14783     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14784  elif test -n "$PKG_CONFIG"; then
   14785     if test -n "$PKG_CONFIG" && \
   14786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14787   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14788   ac_status=$?
   14789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14790   test $ac_status = 0; }; then
   14791   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14792 		      test "x$?" != "x0" && pkg_failed=yes
   14793 else
   14794   pkg_failed=yes
   14795 fi
   14796  else
   14797     pkg_failed=untried
   14798 fi
   14799 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14800 
   14801 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14802   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14803 fi
   14804 					  GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14805 					  GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14806 
   14807 fi ;; #(
   14808   yes) :
   14809 
   14810 pkg_failed=no
   14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14812 $as_echo_n "checking for libmaxminddb... " >&6; }
   14813 
   14814 if test -n "$MAXMINDDB_CFLAGS"; then
   14815     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14816  elif test -n "$PKG_CONFIG"; then
   14817     if test -n "$PKG_CONFIG" && \
   14818     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14819   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14820   ac_status=$?
   14821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14822   test $ac_status = 0; }; then
   14823   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14824 		      test "x$?" != "x0" && pkg_failed=yes
   14825 else
   14826   pkg_failed=yes
   14827 fi
   14828  else
   14829     pkg_failed=untried
   14830 fi
   14831 if test -n "$MAXMINDDB_LIBS"; then
   14832     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14833  elif test -n "$PKG_CONFIG"; then
   14834     if test -n "$PKG_CONFIG" && \
   14835     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14836   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14837   ac_status=$?
   14838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14839   test $ac_status = 0; }; then
   14840   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14841 		      test "x$?" != "x0" && pkg_failed=yes
   14842 else
   14843   pkg_failed=yes
   14844 fi
   14845  else
   14846     pkg_failed=untried
   14847 fi
   14848 
   14849 
   14850 
   14851 if test $pkg_failed = yes; then
   14852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14853 $as_echo "no" >&6; }
   14854 
   14855 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14856         _pkg_short_errors_supported=yes
   14857 else
   14858         _pkg_short_errors_supported=no
   14859 fi
   14860         if test $_pkg_short_errors_supported = yes; then
   14861 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14862         else
   14863 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14864         fi
   14865 	# Put the nasty error message in config.log where it belongs
   14866 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14867 
   14868 	as_fn_error $? "Package requirements (libmaxminddb) were not met:
   14869 
   14870 $MAXMINDDB_PKG_ERRORS
   14871 
   14872 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   14873 installed software in a non-standard prefix.
   14874 
   14875 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14876 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14877 See the pkg-config man page for more details." "$LINENO" 5
   14878 elif test $pkg_failed = untried; then
   14879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14880 $as_echo "no" >&6; }
   14881 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14883 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   14884 is in your PATH or set the PKG_CONFIG environment variable to the full
   14885 path to pkg-config.
   14886 
   14887 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14888 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14889 See the pkg-config man page for more details.
   14890 
   14891 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   14892 See \`config.log' for more details" "$LINENO" 5; }
   14893 else
   14894 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14895 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14897 $as_echo "yes" >&6; }
   14898 
   14899 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14900 
   14901 
   14902 if test -n "$MAXMINDDB_PREFIX"; then
   14903     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14904  elif test -n "$PKG_CONFIG"; then
   14905     if test -n "$PKG_CONFIG" && \
   14906     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14907   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14908   ac_status=$?
   14909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14910   test $ac_status = 0; }; then
   14911   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14912 		      test "x$?" != "x0" && pkg_failed=yes
   14913 else
   14914   pkg_failed=yes
   14915 fi
   14916  else
   14917     pkg_failed=untried
   14918 fi
   14919 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14920 
   14921 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14922   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14923 fi
   14924 					 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14925 					 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14926 
   14927 fi ;; #(
   14928   *) :
   14929      # default
   14930 
   14931 
   14932   CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
   14933 
   14934 
   14935 
   14936   CFLAGS_maxminddb_ax_save_flags=$CFLAGS
   14937 
   14938 
   14939 
   14940   CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
   14941 
   14942 
   14943 
   14944   CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
   14945 
   14946 
   14947 
   14948   ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
   14949 
   14950 
   14951 
   14952   FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
   14953 
   14954 
   14955 
   14956   FCLIBS_maxminddb_ax_save_flags=$FCLIBS
   14957 
   14958 
   14959 
   14960   FFLAGS_maxminddb_ax_save_flags=$FFLAGS
   14961 
   14962 
   14963 
   14964   FLIBS_maxminddb_ax_save_flags=$FLIBS
   14965 
   14966 
   14967 
   14968   GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
   14969 
   14970 
   14971 
   14972   JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
   14973 
   14974 
   14975 
   14976   LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
   14977 
   14978 
   14979 
   14980   LIBS_maxminddb_ax_save_flags=$LIBS
   14981 
   14982 
   14983 
   14984   OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
   14985 
   14986 
   14987 
   14988   OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
   14989 
   14990 
   14991 
   14992   UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
   14993 
   14994 
   14995 
   14996   VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
   14997 
   14998 
   14999 
   15000 		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
   15001 		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
   15002 		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
   15003 		   LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
   15004 		   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
   15005 $as_echo_n "checking for library containing MMDB_open... " >&6; }
   15006 if ${ac_cv_search_MMDB_open+:} false; then :
   15007   $as_echo_n "(cached) " >&6
   15008 else
   15009   ac_func_search_save_LIBS=$LIBS
   15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15011 /* end confdefs.h.  */
   15012 
   15013 /* Override any GCC internal prototype to avoid an error.
   15014    Use char because int might match the return type of a GCC
   15015    builtin and then its argument prototype would still apply.  */
   15016 #ifdef __cplusplus
   15017 extern "C"
   15018 #endif
   15019 char MMDB_open ();
   15020 int
   15021 main ()
   15022 {
   15023 return MMDB_open ();
   15024   ;
   15025   return 0;
   15026 }
   15027 _ACEOF
   15028 for ac_lib in '' maxminddb; do
   15029   if test -z "$ac_lib"; then
   15030     ac_res="none required"
   15031   else
   15032     ac_res=-l$ac_lib
   15033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15034   fi
   15035   if ac_fn_c_try_link "$LINENO"; then :
   15036   ac_cv_search_MMDB_open=$ac_res
   15037 fi
   15038 rm -f core conftest.err conftest.$ac_objext \
   15039     conftest$ac_exeext
   15040   if ${ac_cv_search_MMDB_open+:} false; then :
   15041   break
   15042 fi
   15043 done
   15044 if ${ac_cv_search_MMDB_open+:} false; then :
   15045 
   15046 else
   15047   ac_cv_search_MMDB_open=no
   15048 fi
   15049 rm conftest.$ac_ext
   15050 LIBS=$ac_func_search_save_LIBS
   15051 fi
   15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
   15053 $as_echo "$ac_cv_search_MMDB_open" >&6; }
   15054 ac_res=$ac_cv_search_MMDB_open
   15055 if test "$ac_res" != no; then :
   15056   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15057 
   15058 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   15059 
   15060 				   GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   15061 				   GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   15062 				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_MMDB_open"
   15063 				   { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
   15064 $as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
   15065 				   eval MAXMINDDB_PREFIX=\$$with_maxminddb
   15066 
   15067 else
   15068   as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
   15069 fi
   15070 
   15071 
   15072   CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
   15073 
   15074 
   15075   CFLAGS=$CFLAGS_maxminddb_ax_save_flags
   15076 
   15077 
   15078   CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
   15079 
   15080 
   15081   CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
   15082 
   15083 
   15084   ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
   15085 
   15086 
   15087   FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
   15088 
   15089 
   15090   FCLIBS=$FCLIBS_maxminddb_ax_save_flags
   15091 
   15092 
   15093   FFLAGS=$FFLAGS_maxminddb_ax_save_flags
   15094 
   15095 
   15096   FLIBS=$FLIBS_maxminddb_ax_save_flags
   15097 
   15098 
   15099   GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
   15100 
   15101 
   15102   JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
   15103 
   15104 
   15105   LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
   15106 
   15107 
   15108   LIBS=$LIBS_maxminddb_ax_save_flags
   15109 
   15110 
   15111   OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
   15112 
   15113 
   15114   OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
   15115 
   15116 
   15117   UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
   15118 
   15119 
   15120   VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
   15121 
   15122 
   15123 
   15124 	        ;;
   15125 esac
   15126 
   15127 
   15128 fi
   15129 
   15130 
   15131 
   15132 
   15133 
   15134 
   15135 #
   15136 # Do we have arc4random(), etc ?
   15137 #
   15138 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   15139 do :
   15140   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15143   cat >>confdefs.h <<_ACEOF
   15144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15145 _ACEOF
   15146 
   15147 fi
   15148 done
   15149 
   15150 
   15151 
   15152 
   15153 
   15154 
   15155 ac_ext=c
   15156 ac_cpp='$CPP $CPPFLAGS'
   15157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15160 
   15161 ax_pthread_ok=no
   15162 
   15163 # We used to check for pthread.h first, but this fails if pthread.h
   15164 # requires special compiler flags (e.g. on Tru64 or Sequent).
   15165 # It gets checked for in the link test anyway.
   15166 
   15167 # First of all, check if the user has set any of the PTHREAD_LIBS,
   15168 # etcetera environment variables, and if threads linking works using
   15169 # them:
   15170 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   15171         ax_pthread_save_CC="$CC"
   15172         ax_pthread_save_CFLAGS="$CFLAGS"
   15173         ax_pthread_save_LIBS="$LIBS"
   15174         if test "x$PTHREAD_CC" != "x"; then :
   15175   CC="$PTHREAD_CC"
   15176 fi
   15177         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15178         LIBS="$PTHREAD_LIBS $LIBS"
   15179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   15180 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   15181         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15182 /* end confdefs.h.  */
   15183 
   15184 /* Override any GCC internal prototype to avoid an error.
   15185    Use char because int might match the return type of a GCC
   15186    builtin and then its argument prototype would still apply.  */
   15187 #ifdef __cplusplus
   15188 extern "C"
   15189 #endif
   15190 char pthread_join ();
   15191 int
   15192 main ()
   15193 {
   15194 return pthread_join ();
   15195   ;
   15196   return 0;
   15197 }
   15198 _ACEOF
   15199 if ac_fn_c_try_link "$LINENO"; then :
   15200   ax_pthread_ok=yes
   15201 fi
   15202 rm -f core conftest.err conftest.$ac_objext \
   15203     conftest$ac_exeext conftest.$ac_ext
   15204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15205 $as_echo "$ax_pthread_ok" >&6; }
   15206         if test "x$ax_pthread_ok" = "xno"; then
   15207                 PTHREAD_LIBS=""
   15208                 PTHREAD_CFLAGS=""
   15209         fi
   15210         CC="$ax_pthread_save_CC"
   15211         CFLAGS="$ax_pthread_save_CFLAGS"
   15212         LIBS="$ax_pthread_save_LIBS"
   15213 fi
   15214 
   15215 # We must check for the threads library under a number of different
   15216 # names; the ordering is very important because some systems
   15217 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   15218 # libraries is broken (non-POSIX).
   15219 
   15220 # Create a list of thread flags to try.  Items starting with a "-" are
   15221 # C compiler flags, and other items are library names, except for "none"
   15222 # which indicates that we try without any flags at all, and "pthread-config"
   15223 # which is a program returning the flags for the Pth emulation library.
   15224 
   15225 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   15226 
   15227 # The ordering *is* (sometimes) important.  Some notes on the
   15228 # individual items follow:
   15229 
   15230 # pthreads: AIX (must check this before -lpthread)
   15231 # none: in case threads are in libc; should be tried before -Kthread and
   15232 #       other compiler flags to prevent continual compiler warnings
   15233 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   15234 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   15235 #           (Note: HP C rejects this with "bad form for `-t' option")
   15236 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   15237 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   15238 #      doesn't hurt to check since this sometimes defines pthreads and
   15239 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   15240 #      is present but should not be used directly; and before -mthreads,
   15241 #      because the compiler interprets this as "-mt" + "-hreads")
   15242 # -mthreads: Mingw32/gcc, Lynx/gcc
   15243 # pthread: Linux, etcetera
   15244 # --thread-safe: KAI C++
   15245 # pthread-config: use pthread-config program (for GNU Pth library)
   15246 
   15247 case $host_os in
   15248 
   15249         freebsd*)
   15250 
   15251         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   15252         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   15253 
   15254         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   15255         ;;
   15256 
   15257         hpux*)
   15258 
   15259         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   15260         # multi-threading and also sets -lpthread."
   15261 
   15262         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   15263         ;;
   15264 
   15265         openedition*)
   15266 
   15267         # IBM z/OS requires a feature-test macro to be defined in order to
   15268         # enable POSIX threads at all, so give the user a hint if this is
   15269         # not set. (We don't define these ourselves, as they can affect
   15270         # other portions of the system API in unpredictable ways.)
   15271 
   15272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15273 /* end confdefs.h.  */
   15274 
   15275 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   15276              AX_PTHREAD_ZOS_MISSING
   15277 #            endif
   15278 
   15279 _ACEOF
   15280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15281   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   15282   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   15283 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   15284 fi
   15285 rm -f conftest*
   15286 
   15287         ;;
   15288 
   15289         solaris*)
   15290 
   15291         # On Solaris (at least, for some versions), libc contains stubbed
   15292         # (non-functional) versions of the pthreads routines, so link-based
   15293         # tests will erroneously succeed. (N.B.: The stubs are missing
   15294         # pthread_cleanup_push, or rather a function called by this macro,
   15295         # so we could check for that, but who knows whether they'll stub
   15296         # that too in a future libc.)  So we'll check first for the
   15297         # standard Solaris way of linking pthreads (-mt -lpthread).
   15298 
   15299         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   15300         ;;
   15301 esac
   15302 
   15303 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   15304 
   15305 if test "x$GCC" = "xyes"; then :
   15306   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   15307 fi
   15308 
   15309 # The presence of a feature test macro requesting re-entrant function
   15310 # definitions is, on some systems, a strong hint that pthreads support is
   15311 # correctly enabled
   15312 
   15313 case $host_os in
   15314         darwin* | hpux* | linux* | osf* | solaris*)
   15315         ax_pthread_check_macro="_REENTRANT"
   15316         ;;
   15317 
   15318         aix*)
   15319         ax_pthread_check_macro="_THREAD_SAFE"
   15320         ;;
   15321 
   15322         *)
   15323         ax_pthread_check_macro="--"
   15324         ;;
   15325 esac
   15326 if test "x$ax_pthread_check_macro" = "x--"; then :
   15327   ax_pthread_check_cond=0
   15328 else
   15329   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   15330 fi
   15331 
   15332 # Are we compiling with Clang?
   15333 
   15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   15335 $as_echo_n "checking whether $CC is Clang... " >&6; }
   15336 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   15337   $as_echo_n "(cached) " >&6
   15338 else
   15339   ax_cv_PTHREAD_CLANG=no
   15340      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   15341      if test "x$GCC" = "xyes"; then
   15342         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15343 /* end confdefs.h.  */
   15344 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   15345 #            if defined(__clang__) && defined(__llvm__)
   15346              AX_PTHREAD_CC_IS_CLANG
   15347 #            endif
   15348 
   15349 _ACEOF
   15350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15351   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   15352   ax_cv_PTHREAD_CLANG=yes
   15353 fi
   15354 rm -f conftest*
   15355 
   15356      fi
   15357 
   15358 fi
   15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   15360 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   15361 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   15362 
   15363 ax_pthread_clang_warning=no
   15364 
   15365 # Clang needs special handling, because older versions handle the -pthread
   15366 # option in a rather... idiosyncratic way
   15367 
   15368 if test "x$ax_pthread_clang" = "xyes"; then
   15369 
   15370         # Clang takes -pthread; it has never supported any other flag
   15371 
   15372         # (Note 1: This will need to be revisited if a system that Clang
   15373         # supports has POSIX threads in a separate library.  This tends not
   15374         # to be the way of modern systems, but it's conceivable.)
   15375 
   15376         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   15377         # to get POSIX threads support; the API is always present and
   15378         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   15379         # -pthread does define _REENTRANT, and while the Darwin headers
   15380         # ignore this macro, third-party headers might not.)
   15381 
   15382         PTHREAD_CFLAGS="-pthread"
   15383         PTHREAD_LIBS=
   15384 
   15385         ax_pthread_ok=yes
   15386 
   15387         # However, older versions of Clang make a point of warning the user
   15388         # that, in an invocation where only linking and no compilation is
   15389         # taking place, the -pthread option has no effect ("argument unused
   15390         # during compilation").  They expect -pthread to be passed in only
   15391         # when source code is being compiled.
   15392         #
   15393         # Problem is, this is at odds with the way Automake and most other
   15394         # C build frameworks function, which is that the same flags used in
   15395         # compilation (CFLAGS) are also used in linking.  Many systems
   15396         # supported by AX_PTHREAD require exactly this for POSIX threads
   15397         # support, and in fact it is often not straightforward to specify a
   15398         # flag that is used only in the compilation phase and not in
   15399         # linking.  Such a scenario is extremely rare in practice.
   15400         #
   15401         # Even though use of the -pthread flag in linking would only print
   15402         # a warning, this can be a nuisance for well-run software projects
   15403         # that build with -Werror.  So if the active version of Clang has
   15404         # this misfeature, we search for an option to squash it.
   15405 
   15406         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   15407 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   15408 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   15409   $as_echo_n "(cached) " >&6
   15410 else
   15411   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   15412              # Create an alternate version of $ac_link that compiles and
   15413              # links in two steps (.c -> .o, .o -> exe) instead of one
   15414              # (.c -> exe), because the warning occurs only in the second
   15415              # step
   15416              ax_pthread_save_ac_link="$ac_link"
   15417              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   15418              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   15419              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   15420              ax_pthread_save_CFLAGS="$CFLAGS"
   15421              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   15422                 if test "x$ax_pthread_try" = "xunknown"; then :
   15423   break
   15424 fi
   15425                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   15426                 ac_link="$ax_pthread_save_ac_link"
   15427                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15428 /* end confdefs.h.  */
   15429 int main(void){return 0;}
   15430 _ACEOF
   15431 if ac_fn_c_try_link "$LINENO"; then :
   15432   ac_link="$ax_pthread_2step_ac_link"
   15433                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15434 /* end confdefs.h.  */
   15435 int main(void){return 0;}
   15436 _ACEOF
   15437 if ac_fn_c_try_link "$LINENO"; then :
   15438   break
   15439 fi
   15440 rm -f core conftest.err conftest.$ac_objext \
   15441     conftest$ac_exeext conftest.$ac_ext
   15442 
   15443 fi
   15444 rm -f core conftest.err conftest.$ac_objext \
   15445     conftest$ac_exeext conftest.$ac_ext
   15446              done
   15447              ac_link="$ax_pthread_save_ac_link"
   15448              CFLAGS="$ax_pthread_save_CFLAGS"
   15449              if test "x$ax_pthread_try" = "x"; then :
   15450   ax_pthread_try=no
   15451 fi
   15452              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   15453 
   15454 fi
   15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   15456 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   15457 
   15458         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   15459                 no | unknown) ;;
   15460                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   15461         esac
   15462 
   15463 fi # $ax_pthread_clang = yes
   15464 
   15465 if test "x$ax_pthread_ok" = "xno"; then
   15466 for ax_pthread_try_flag in $ax_pthread_flags; do
   15467 
   15468         case $ax_pthread_try_flag in
   15469                 none)
   15470                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   15471 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   15472                 ;;
   15473 
   15474                 -mt,pthread)
   15475                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   15476 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   15477                 PTHREAD_CFLAGS="-mt"
   15478                 PTHREAD_LIBS="-lpthread"
   15479                 ;;
   15480 
   15481                 -*)
   15482                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   15483 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   15484                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   15485                 ;;
   15486 
   15487                 pthread-config)
   15488                 # Extract the first word of "pthread-config", so it can be a program name with args.
   15489 set dummy pthread-config; ac_word=$2
   15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15491 $as_echo_n "checking for $ac_word... " >&6; }
   15492 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   15493   $as_echo_n "(cached) " >&6
   15494 else
   15495   if test -n "$ax_pthread_config"; then
   15496   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   15497 else
   15498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15499 for as_dir in $PATH
   15500 do
   15501   IFS=$as_save_IFS
   15502   test -z "$as_dir" && as_dir=.
   15503     for ac_exec_ext in '' $ac_executable_extensions; do
   15504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15505     ac_cv_prog_ax_pthread_config="yes"
   15506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15507     break 2
   15508   fi
   15509 done
   15510   done
   15511 IFS=$as_save_IFS
   15512 
   15513   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   15514 fi
   15515 fi
   15516 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   15517 if test -n "$ax_pthread_config"; then
   15518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   15519 $as_echo "$ax_pthread_config" >&6; }
   15520 else
   15521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15522 $as_echo "no" >&6; }
   15523 fi
   15524 
   15525 
   15526                 if test "x$ax_pthread_config" = "xno"; then :
   15527   continue
   15528 fi
   15529                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   15530                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   15531                 ;;
   15532 
   15533                 *)
   15534                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   15535 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   15536                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   15537                 ;;
   15538         esac
   15539 
   15540         ax_pthread_save_CFLAGS="$CFLAGS"
   15541         ax_pthread_save_LIBS="$LIBS"
   15542         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15543         LIBS="$PTHREAD_LIBS $LIBS"
   15544 
   15545         # Check for various functions.  We must include pthread.h,
   15546         # since some functions may be macros.  (On the Sequent, we
   15547         # need a special flag -Kthread to make this header compile.)
   15548         # We check for pthread_join because it is in -lpthread on IRIX
   15549         # while pthread_create is in libc.  We check for pthread_attr_init
   15550         # due to DEC craziness with -lpthreads.  We check for
   15551         # pthread_cleanup_push because it is one of the few pthread
   15552         # functions on Solaris that doesn't have a non-functional libc stub.
   15553         # We try pthread_create on general principles.
   15554 
   15555         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15556 /* end confdefs.h.  */
   15557 #include <pthread.h>
   15558 #                       if $ax_pthread_check_cond
   15559 #                        error "$ax_pthread_check_macro must be defined"
   15560 #                       endif
   15561                         static void routine(void *a) { a = 0; }
   15562                         static void *start_routine(void *a) { return a; }
   15563 int
   15564 main ()
   15565 {
   15566 pthread_t th; pthread_attr_t attr;
   15567                         pthread_create(&th, 0, start_routine, 0);
   15568                         pthread_join(th, 0);
   15569                         pthread_attr_init(&attr);
   15570                         pthread_cleanup_push(routine, 0);
   15571                         pthread_cleanup_pop(0) /* ; */
   15572   ;
   15573   return 0;
   15574 }
   15575 _ACEOF
   15576 if ac_fn_c_try_link "$LINENO"; then :
   15577   ax_pthread_ok=yes
   15578 fi
   15579 rm -f core conftest.err conftest.$ac_objext \
   15580     conftest$ac_exeext conftest.$ac_ext
   15581 
   15582         CFLAGS="$ax_pthread_save_CFLAGS"
   15583         LIBS="$ax_pthread_save_LIBS"
   15584 
   15585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15586 $as_echo "$ax_pthread_ok" >&6; }
   15587         if test "x$ax_pthread_ok" = "xyes"; then :
   15588   break
   15589 fi
   15590 
   15591         PTHREAD_LIBS=""
   15592         PTHREAD_CFLAGS=""
   15593 done
   15594 fi
   15595 
   15596 # Various other checks:
   15597 if test "x$ax_pthread_ok" = "xyes"; then
   15598         ax_pthread_save_CFLAGS="$CFLAGS"
   15599         ax_pthread_save_LIBS="$LIBS"
   15600         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15601         LIBS="$PTHREAD_LIBS $LIBS"
   15602 
   15603         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   15604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   15605 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   15606 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   15607   $as_echo_n "(cached) " >&6
   15608 else
   15609   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   15610              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   15611                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15612 /* end confdefs.h.  */
   15613 #include <pthread.h>
   15614 int
   15615 main ()
   15616 {
   15617 int attr = $ax_pthread_attr; return attr /* ; */
   15618   ;
   15619   return 0;
   15620 }
   15621 _ACEOF
   15622 if ac_fn_c_try_link "$LINENO"; then :
   15623   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   15624 fi
   15625 rm -f core conftest.err conftest.$ac_objext \
   15626     conftest$ac_exeext conftest.$ac_ext
   15627              done
   15628 
   15629 fi
   15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   15631 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   15632         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   15633                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   15634                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   15635 
   15636 cat >>confdefs.h <<_ACEOF
   15637 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   15638 _ACEOF
   15639 
   15640                ax_pthread_joinable_attr_defined=yes
   15641 
   15642 fi
   15643 
   15644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   15645 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   15646 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   15647   $as_echo_n "(cached) " >&6
   15648 else
   15649   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   15650              case $host_os in
   15651              solaris*)
   15652              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   15653              ;;
   15654              esac
   15655 
   15656 fi
   15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   15658 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   15659         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   15660                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   15661   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   15662                ax_pthread_special_flags_added=yes
   15663 fi
   15664 
   15665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   15666 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   15667 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   15668   $as_echo_n "(cached) " >&6
   15669 else
   15670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15671 /* end confdefs.h.  */
   15672 #include <pthread.h>
   15673 int
   15674 main ()
   15675 {
   15676 int i = PTHREAD_PRIO_INHERIT;
   15677   ;
   15678   return 0;
   15679 }
   15680 _ACEOF
   15681 if ac_fn_c_try_link "$LINENO"; then :
   15682   ax_cv_PTHREAD_PRIO_INHERIT=yes
   15683 else
   15684   ax_cv_PTHREAD_PRIO_INHERIT=no
   15685 fi
   15686 rm -f core conftest.err conftest.$ac_objext \
   15687     conftest$ac_exeext conftest.$ac_ext
   15688 
   15689 fi
   15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   15691 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   15692         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   15693                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   15694 
   15695 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   15696 
   15697                ax_pthread_prio_inherit_defined=yes
   15698 
   15699 fi
   15700 
   15701         CFLAGS="$ax_pthread_save_CFLAGS"
   15702         LIBS="$ax_pthread_save_LIBS"
   15703 
   15704         # More AIX lossage: compile with *_r variant
   15705         if test "x$GCC" != "xyes"; then
   15706             case $host_os in
   15707                 aix*)
   15708                 case "x/$CC" in #(
   15709   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   15710     #handle absolute path differently from PATH based program lookup
   15711                      case "x$CC" in #(
   15712   x/*) :
   15713     if as_fn_executable_p ${CC}_r; then :
   15714   PTHREAD_CC="${CC}_r"
   15715 fi ;; #(
   15716   *) :
   15717     for ac_prog in ${CC}_r
   15718 do
   15719   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15720 set dummy $ac_prog; ac_word=$2
   15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15722 $as_echo_n "checking for $ac_word... " >&6; }
   15723 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   15724   $as_echo_n "(cached) " >&6
   15725 else
   15726   if test -n "$PTHREAD_CC"; then
   15727   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   15728 else
   15729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15730 for as_dir in $PATH
   15731 do
   15732   IFS=$as_save_IFS
   15733   test -z "$as_dir" && as_dir=.
   15734     for ac_exec_ext in '' $ac_executable_extensions; do
   15735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15736     ac_cv_prog_PTHREAD_CC="$ac_prog"
   15737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15738     break 2
   15739   fi
   15740 done
   15741   done
   15742 IFS=$as_save_IFS
   15743 
   15744 fi
   15745 fi
   15746 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   15747 if test -n "$PTHREAD_CC"; then
   15748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   15749 $as_echo "$PTHREAD_CC" >&6; }
   15750 else
   15751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15752 $as_echo "no" >&6; }
   15753 fi
   15754 
   15755 
   15756   test -n "$PTHREAD_CC" && break
   15757 done
   15758 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15759  ;;
   15760 esac ;; #(
   15761   *) :
   15762      ;;
   15763 esac
   15764                 ;;
   15765             esac
   15766         fi
   15767 fi
   15768 
   15769 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15770 
   15771 
   15772 
   15773 
   15774 
   15775 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15776 if test "x$ax_pthread_ok" = "xyes"; then
   15777 
   15778 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15779 
   15780         :
   15781 else
   15782         ax_pthread_ok=no
   15783 
   15784 fi
   15785 ac_ext=c
   15786 ac_cpp='$CPP $CPPFLAGS'
   15787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15790 
   15791 
   15792 
   15793 LIBS="$PTHREAD_LIBS $LIBS"
   15794 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15795 CC="$PTHREAD_CC"
   15796 
   15797 for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
   15798 do :
   15799   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15802   cat >>confdefs.h <<_ACEOF
   15803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15804 _ACEOF
   15805 
   15806 fi
   15807 done
   15808 
   15809 
   15810 # [pairwise: --with-locktype=adaptive, --with-locktype=standard]
   15811 
   15812 # Check whether --with-locktype was given.
   15813 if test "${with_locktype+set}" = set; then :
   15814   withval=$with_locktype;
   15815 else
   15816   with_locktype="adaptive"
   15817 fi
   15818 
   15819 
   15820 case $with_locktype in #(
   15821   adaptive) :
   15822 
   15823 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15824 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15825 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15826 /* end confdefs.h.  */
   15827 
   15828 		 #ifndef _GNU_SOURCE
   15829 		 #define _GNU_SOURCE
   15830 		 #endif
   15831 		 #include <pthread.h>
   15832 
   15833 int
   15834 main ()
   15835 {
   15836 
   15837 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15838 
   15839 
   15840   ;
   15841   return 0;
   15842 }
   15843 _ACEOF
   15844 if ac_fn_c_try_compile "$LINENO"; then :
   15845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15846 $as_echo "using adaptive lock type" >&6; }
   15847 
   15848 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15849 
   15850 else
   15851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15852 $as_echo "using standard lock type" >&6; }
   15853 
   15854 fi
   15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15856   standard) :
   15857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15858 $as_echo "using standard lock type" >&6; } ;; #(
   15859   *) :
   15860     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15861         ;;
   15862 esac
   15863 
   15864 for ac_header in sched.h
   15865 do :
   15866   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15867 if test "x$ac_cv_header_sched_h" = xyes; then :
   15868   cat >>confdefs.h <<_ACEOF
   15869 #define HAVE_SCHED_H 1
   15870 _ACEOF
   15871 
   15872 fi
   15873 
   15874 done
   15875 
   15876 
   15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15878 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15879 if ${ac_cv_search_sched_yield+:} false; then :
   15880   $as_echo_n "(cached) " >&6
   15881 else
   15882   ac_func_search_save_LIBS=$LIBS
   15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15884 /* end confdefs.h.  */
   15885 
   15886 /* Override any GCC internal prototype to avoid an error.
   15887    Use char because int might match the return type of a GCC
   15888    builtin and then its argument prototype would still apply.  */
   15889 #ifdef __cplusplus
   15890 extern "C"
   15891 #endif
   15892 char sched_yield ();
   15893 int
   15894 main ()
   15895 {
   15896 return sched_yield ();
   15897   ;
   15898   return 0;
   15899 }
   15900 _ACEOF
   15901 for ac_lib in '' rt; do
   15902   if test -z "$ac_lib"; then
   15903     ac_res="none required"
   15904   else
   15905     ac_res=-l$ac_lib
   15906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15907   fi
   15908   if ac_fn_c_try_link "$LINENO"; then :
   15909   ac_cv_search_sched_yield=$ac_res
   15910 fi
   15911 rm -f core conftest.err conftest.$ac_objext \
   15912     conftest$ac_exeext
   15913   if ${ac_cv_search_sched_yield+:} false; then :
   15914   break
   15915 fi
   15916 done
   15917 if ${ac_cv_search_sched_yield+:} false; then :
   15918 
   15919 else
   15920   ac_cv_search_sched_yield=no
   15921 fi
   15922 rm conftest.$ac_ext
   15923 LIBS=$ac_func_search_save_LIBS
   15924 fi
   15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15926 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15927 ac_res=$ac_cv_search_sched_yield
   15928 if test "$ac_res" != no; then :
   15929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15930 
   15931 fi
   15932 
   15933 for ac_func in sched_yield pthread_yield pthread_yield_np
   15934 do :
   15935   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15937 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15938   cat >>confdefs.h <<_ACEOF
   15939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15940 _ACEOF
   15941 
   15942 fi
   15943 done
   15944 
   15945 
   15946 for ac_header in sys/cpuset.h
   15947 do :
   15948   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15949 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15950   cat >>confdefs.h <<_ACEOF
   15951 #define HAVE_SYS_CPUSET_H 1
   15952 _ACEOF
   15953 
   15954 fi
   15955 
   15956 done
   15957 
   15958 for ac_header in sys/procset.h
   15959 do :
   15960   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15961 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15962   cat >>confdefs.h <<_ACEOF
   15963 #define HAVE_SYS_PROCSET_H 1
   15964 _ACEOF
   15965 
   15966 fi
   15967 
   15968 done
   15969 
   15970 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15971 do :
   15972   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15975   cat >>confdefs.h <<_ACEOF
   15976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15977 _ACEOF
   15978 
   15979 fi
   15980 done
   15981 
   15982 
   15983 # Look for functions relating to thread naming
   15984 for ac_func in pthread_setname_np pthread_set_name_np
   15985 do :
   15986   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15989   cat >>confdefs.h <<_ACEOF
   15990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15991 _ACEOF
   15992 
   15993 fi
   15994 done
   15995 
   15996 for ac_header in pthread_np.h
   15997 do :
   15998   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15999 "
   16000 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   16001   cat >>confdefs.h <<_ACEOF
   16002 #define HAVE_PTHREAD_NP_H 1
   16003 _ACEOF
   16004 
   16005 fi
   16006 
   16007 done
   16008 
   16009 
   16010 # libuv
   16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
   16012 $as_echo_n "checking for libuv... " >&6; }
   16013 
   16014 pkg_failed=no
   16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
   16016 $as_echo_n "checking for libuv >= 1.0.0... " >&6; }
   16017 
   16018 if test -n "$LIBUV_CFLAGS"; then
   16019     pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
   16020  elif test -n "$PKG_CONFIG"; then
   16021     if test -n "$PKG_CONFIG" && \
   16022     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   16023   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   16024   ac_status=$?
   16025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16026   test $ac_status = 0; }; then
   16027   pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
   16028 		      test "x$?" != "x0" && pkg_failed=yes
   16029 else
   16030   pkg_failed=yes
   16031 fi
   16032  else
   16033     pkg_failed=untried
   16034 fi
   16035 if test -n "$LIBUV_LIBS"; then
   16036     pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
   16037  elif test -n "$PKG_CONFIG"; then
   16038     if test -n "$PKG_CONFIG" && \
   16039     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   16040   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   16041   ac_status=$?
   16042   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16043   test $ac_status = 0; }; then
   16044   pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
   16045 		      test "x$?" != "x0" && pkg_failed=yes
   16046 else
   16047   pkg_failed=yes
   16048 fi
   16049  else
   16050     pkg_failed=untried
   16051 fi
   16052 
   16053 
   16054 
   16055 if test $pkg_failed = yes; then
   16056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16057 $as_echo "no" >&6; }
   16058 
   16059 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16060         _pkg_short_errors_supported=yes
   16061 else
   16062         _pkg_short_errors_supported=no
   16063 fi
   16064         if test $_pkg_short_errors_supported = yes; then
   16065 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   16066         else
   16067 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   16068         fi
   16069 	# Put the nasty error message in config.log where it belongs
   16070 	echo "$LIBUV_PKG_ERRORS" >&5
   16071 
   16072 	as_fn_error $? "libuv not found" "$LINENO" 5
   16073 elif test $pkg_failed = untried; then
   16074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16075 $as_echo "no" >&6; }
   16076 	as_fn_error $? "libuv not found" "$LINENO" 5
   16077 else
   16078 	LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
   16079 	LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
   16080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16081 $as_echo "yes" >&6; }
   16082 
   16083 fi
   16084 
   16085 
   16086 
   16087 
   16088 
   16089   CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
   16090 
   16091 
   16092 
   16093   CFLAGS_libuv_ax_save_flags=$CFLAGS
   16094 
   16095 
   16096 
   16097   CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
   16098 
   16099 
   16100 
   16101   CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
   16102 
   16103 
   16104 
   16105   ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
   16106 
   16107 
   16108 
   16109   FCFLAGS_libuv_ax_save_flags=$FCFLAGS
   16110 
   16111 
   16112 
   16113   FCLIBS_libuv_ax_save_flags=$FCLIBS
   16114 
   16115 
   16116 
   16117   FFLAGS_libuv_ax_save_flags=$FFLAGS
   16118 
   16119 
   16120 
   16121   FLIBS_libuv_ax_save_flags=$FLIBS
   16122 
   16123 
   16124 
   16125   GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
   16126 
   16127 
   16128 
   16129   JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
   16130 
   16131 
   16132 
   16133   LDFLAGS_libuv_ax_save_flags=$LDFLAGS
   16134 
   16135 
   16136 
   16137   LIBS_libuv_ax_save_flags=$LIBS
   16138 
   16139 
   16140 
   16141   OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
   16142 
   16143 
   16144 
   16145   OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
   16146 
   16147 
   16148 
   16149   UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
   16150 
   16151 
   16152 
   16153   VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
   16154 
   16155 
   16156 
   16157 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
   16158 LIBS="$LDFLAGS $LIBUV_LIBS"
   16159 # Those functions are only provided in newer versions of libuv, we'll be emulating them
   16160 # for now
   16161 for ac_func in uv_handle_get_data uv_handle_set_data uv_import uv_udp_connect uv_translate_sys_error
   16162 do :
   16163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16166   cat >>confdefs.h <<_ACEOF
   16167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16168 _ACEOF
   16169 
   16170 fi
   16171 done
   16172 
   16173 
   16174   CCASFLAGS=$CCASFLAGS_libuv_ax_save_flags
   16175 
   16176 
   16177   CFLAGS=$CFLAGS_libuv_ax_save_flags
   16178 
   16179 
   16180   CPPFLAGS=$CPPFLAGS_libuv_ax_save_flags
   16181 
   16182 
   16183   CXXFLAGS=$CXXFLAGS_libuv_ax_save_flags
   16184 
   16185 
   16186   ERLCFLAGS=$ERLCFLAGS_libuv_ax_save_flags
   16187 
   16188 
   16189   FCFLAGS=$FCFLAGS_libuv_ax_save_flags
   16190 
   16191 
   16192   FCLIBS=$FCLIBS_libuv_ax_save_flags
   16193 
   16194 
   16195   FFLAGS=$FFLAGS_libuv_ax_save_flags
   16196 
   16197 
   16198   FLIBS=$FLIBS_libuv_ax_save_flags
   16199 
   16200 
   16201   GCJFLAGS=$GCJFLAGS_libuv_ax_save_flags
   16202 
   16203 
   16204   JAVACFLAGS=$JAVACFLAGS_libuv_ax_save_flags
   16205 
   16206 
   16207   LDFLAGS=$LDFLAGS_libuv_ax_save_flags
   16208 
   16209 
   16210   LIBS=$LIBS_libuv_ax_save_flags
   16211 
   16212 
   16213   OBJCFLAGS=$OBJCFLAGS_libuv_ax_save_flags
   16214 
   16215 
   16216   OBJCXXFLAGS=$OBJCXXFLAGS_libuv_ax_save_flags
   16217 
   16218 
   16219   UPCFLAGS=$UPCFLAGS_libuv_ax_save_flags
   16220 
   16221 
   16222   VALAFLAGS=$VALAFLAGS_libuv_ax_save_flags
   16223 
   16224 
   16225 
   16226 
   16227 #
   16228 # flockfile is usually provided by pthreads
   16229 #
   16230 for ac_func in flockfile getc_unlocked
   16231 do :
   16232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16235   cat >>confdefs.h <<_ACEOF
   16236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16237 _ACEOF
   16238 
   16239 fi
   16240 done
   16241 
   16242 
   16243 #
   16244 # Look for sysconf to allow detection of the number of processors.
   16245 #
   16246 for ac_func in sysconf
   16247 do :
   16248   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   16249 if test "x$ac_cv_func_sysconf" = xyes; then :
   16250   cat >>confdefs.h <<_ACEOF
   16251 #define HAVE_SYSCONF 1
   16252 _ACEOF
   16253 
   16254 fi
   16255 done
   16256 
   16257 
   16258 
   16259 
   16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   16261 $as_echo_n "checking for libtool... " >&6; }
   16262 
   16263 # [pairwise: --with-libtool, --without-libtool]
   16264 
   16265 # Check whether --with-libtool was given.
   16266 if test "${with_libtool+set}" = set; then :
   16267   withval=$with_libtool; use_libtool="$withval"
   16268 else
   16269   use_libtool="no"
   16270 fi
   16271 
   16272 NO_LIBTOOL_ISCLIBS=
   16273 NO_LIBTOOL_DNSLIBS=
   16274 case $use_libtool in
   16275 	yes)
   16276 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16277 $as_echo "yes" >&6; }
   16278 
   16279 		O=lo
   16280 		A=la
   16281 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   16282 		LIBTOOL_MODE_COMPILE='--mode=compile'
   16283 		LIBTOOL_MODE_INSTALL='--mode=install'
   16284 		LIBTOOL_MODE_LINK='--mode=link'
   16285 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   16286 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   16287 
   16288 $as_echo "#define USE_LIBTOOL 1" >>confdefs.h
   16289 
   16290 		;;
   16291 	*)
   16292 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16293 $as_echo "no" >&6; }
   16294 		O=o
   16295 		A=a
   16296 		LIBTOOL=
   16297 
   16298 		LIBTOOL_MKDEP_SED=
   16299 		LIBTOOL_MODE_COMPILE=
   16300 		LIBTOOL_MODE_INSTALL=
   16301 		LIBTOOL_MODE_LINK=
   16302 		LIBTOOL_MODE_UNINSTALL=
   16303 		INSTALL_LIBRARY='${INSTALL_DATA}'
   16304 		NO_LIBTOOL_ISCLIBS='${NO_LIBTOOL_ISCLIBS}'
   16305 		NO_LIBTOOL_DNSLIBS='${NO_LIBTOOL_DNSLIBS}'
   16306 		;;
   16307 esac
   16308 
   16309 
   16310 
   16311 
   16312 #
   16313 # Do we want to use pthread rwlock?
   16314 #
   16315 # [pairwise: --enable-pthread-rwlock, --disable-pthread-rwlock]
   16316 # Check whether --enable-pthread_rwlock was given.
   16317 if test "${enable_pthread_rwlock+set}" = set; then :
   16318   enableval=$enable_pthread_rwlock;
   16319 else
   16320   enable_pthread_rwlock=no
   16321 fi
   16322 
   16323 
   16324 if test "$enable_pthread_rwlock" = "yes"; then :
   16325   for ac_func in pthread_rwlock_rdlock
   16326 do :
   16327   ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
   16328 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
   16329   cat >>confdefs.h <<_ACEOF
   16330 #define HAVE_PTHREAD_RWLOCK_RDLOCK 1
   16331 _ACEOF
   16332 
   16333 else
   16334   as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
   16335 fi
   16336 done
   16337 
   16338 
   16339 $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
   16340 
   16341 
   16342 fi
   16343 
   16344 CRYPTO=OpenSSL
   16345 
   16346 #
   16347 # OpenSSL/LibreSSL is mandatory
   16348 #
   16349 
   16350 pkg_failed=no
   16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl libcrypto" >&5
   16352 $as_echo_n "checking for libssl libcrypto... " >&6; }
   16353 
   16354 if test -n "$OPENSSL_CFLAGS"; then
   16355     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16356  elif test -n "$PKG_CONFIG"; then
   16357     if test -n "$PKG_CONFIG" && \
   16358     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
   16359   ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
   16360   ac_status=$?
   16361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16362   test $ac_status = 0; }; then
   16363   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libssl libcrypto" 2>/dev/null`
   16364 		      test "x$?" != "x0" && pkg_failed=yes
   16365 else
   16366   pkg_failed=yes
   16367 fi
   16368  else
   16369     pkg_failed=untried
   16370 fi
   16371 if test -n "$OPENSSL_LIBS"; then
   16372     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16373  elif test -n "$PKG_CONFIG"; then
   16374     if test -n "$PKG_CONFIG" && \
   16375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl libcrypto\""; } >&5
   16376   ($PKG_CONFIG --exists --print-errors "libssl libcrypto") 2>&5
   16377   ac_status=$?
   16378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16379   test $ac_status = 0; }; then
   16380   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libssl libcrypto" 2>/dev/null`
   16381 		      test "x$?" != "x0" && pkg_failed=yes
   16382 else
   16383   pkg_failed=yes
   16384 fi
   16385  else
   16386     pkg_failed=untried
   16387 fi
   16388 
   16389 
   16390 
   16391 if test $pkg_failed = yes; then
   16392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16393 $as_echo "no" >&6; }
   16394 
   16395 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16396         _pkg_short_errors_supported=yes
   16397 else
   16398         _pkg_short_errors_supported=no
   16399 fi
   16400         if test $_pkg_short_errors_supported = yes; then
   16401 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl libcrypto" 2>&1`
   16402         else
   16403 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssl libcrypto" 2>&1`
   16404         fi
   16405 	# Put the nasty error message in config.log where it belongs
   16406 	echo "$OPENSSL_PKG_ERRORS" >&5
   16407 
   16408 
   16409     found=false
   16410     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"
   16411 
   16412 # Check whether --with-openssl was given.
   16413 if test "${with_openssl+set}" = set; then :
   16414   withval=$with_openssl;
   16415 	    case $with_openssl in #(
   16416   ""|y|ye|yes) :
   16417     ssldirs="$default_ssldirs" ;; #(
   16418   n|no) :
   16419     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16420   *) :
   16421     ssldirs="$withval" ;; #(
   16422   *) :
   16423     ssldirs="$default_ssldirs"
   16424 	     ;;
   16425 esac
   16426 
   16427 else
   16428 
   16429             # if pkg-config is installed and openssl has installed a .pc file,
   16430             # then use that information and don't search ssldirs
   16431 
   16432 pkg_failed=no
   16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16434 $as_echo_n "checking for crypto... " >&6; }
   16435 
   16436 if test -n "$OPENSSL_CFLAGS"; then
   16437     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16438  elif test -n "$PKG_CONFIG"; then
   16439     if test -n "$PKG_CONFIG" && \
   16440     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16441   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16442   ac_status=$?
   16443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16444   test $ac_status = 0; }; then
   16445   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16446 		      test "x$?" != "x0" && pkg_failed=yes
   16447 else
   16448   pkg_failed=yes
   16449 fi
   16450  else
   16451     pkg_failed=untried
   16452 fi
   16453 if test -n "$OPENSSL_LIBS"; then
   16454     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16455  elif test -n "$PKG_CONFIG"; then
   16456     if test -n "$PKG_CONFIG" && \
   16457     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16458   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16459   ac_status=$?
   16460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16461   test $ac_status = 0; }; then
   16462   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16463 		      test "x$?" != "x0" && pkg_failed=yes
   16464 else
   16465   pkg_failed=yes
   16466 fi
   16467  else
   16468     pkg_failed=untried
   16469 fi
   16470 
   16471 
   16472 
   16473 if test $pkg_failed = yes; then
   16474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16475 $as_echo "no" >&6; }
   16476 
   16477 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16478         _pkg_short_errors_supported=yes
   16479 else
   16480         _pkg_short_errors_supported=no
   16481 fi
   16482         if test $_pkg_short_errors_supported = yes; then
   16483 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16484         else
   16485 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16486         fi
   16487 	# Put the nasty error message in config.log where it belongs
   16488 	echo "$OPENSSL_PKG_ERRORS" >&5
   16489 
   16490 	ssldirs="$default_ssldirs"
   16491 elif test $pkg_failed = untried; then
   16492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16493 $as_echo "no" >&6; }
   16494 	ssldirs="$default_ssldirs"
   16495 else
   16496 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16497 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16499 $as_echo "yes" >&6; }
   16500 	found=true
   16501 fi
   16502 
   16503 
   16504 
   16505 fi
   16506 
   16507 
   16508 
   16509     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16510     # an 'openssl' subdirectory
   16511 
   16512     if ! $found; then :
   16513 
   16514         OPENSSL_CFLAGS=
   16515         for ssldir in $ssldirs; do
   16516             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16517 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16518 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16519 
   16520 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16521                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto -lssl"
   16522                     found=true
   16523                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16524 $as_echo "yes" >&6; }
   16525                     break
   16526 
   16527 else
   16528 
   16529 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16530 $as_echo "no" >&6; }
   16531 
   16532 fi
   16533         done
   16534 
   16535         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16536         # it will just work!
   16537 
   16538 fi
   16539 
   16540     # try the preprocessor and linker with our new flags,
   16541     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16542 
   16543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16544 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16545     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16546 
   16547     save_LIBS="$LIBS"
   16548     save_CPPFLAGS="$CPPFLAGS"
   16549     LIBS="$OPENSSL_LIBS $LIBS"
   16550     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16552 /* end confdefs.h.  */
   16553 
   16554                 #include <openssl/crypto.h>
   16555 
   16556 int
   16557 main ()
   16558 {
   16559 
   16560 	        OPENSSL_free(NULL);
   16561 
   16562   ;
   16563   return 0;
   16564 }
   16565 _ACEOF
   16566 if ac_fn_c_try_link "$LINENO"; then :
   16567 
   16568             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16569 $as_echo "yes" >&6; }
   16570             :
   16571 
   16572 else
   16573 
   16574             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16575 $as_echo "no" >&6; }
   16576             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16578 as_fn_error $? "OpenSSL/LibreSSL not found
   16579 See \`config.log' for more details" "$LINENO" 5; }
   16580 
   16581 fi
   16582 rm -f core conftest.err conftest.$ac_objext \
   16583     conftest$ac_exeext conftest.$ac_ext
   16584     CPPFLAGS="$save_CPPFLAGS"
   16585     LIBS="$save_LIBS"
   16586 
   16587 
   16588 
   16589 
   16590 elif test $pkg_failed = untried; then
   16591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16592 $as_echo "no" >&6; }
   16593 
   16594     found=false
   16595     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"
   16596 
   16597 # Check whether --with-openssl was given.
   16598 if test "${with_openssl+set}" = set; then :
   16599   withval=$with_openssl;
   16600 	    case $with_openssl in #(
   16601   ""|y|ye|yes) :
   16602     ssldirs="$default_ssldirs" ;; #(
   16603   n|no) :
   16604     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16605   *) :
   16606     ssldirs="$withval" ;; #(
   16607   *) :
   16608     ssldirs="$default_ssldirs"
   16609 	     ;;
   16610 esac
   16611 
   16612 else
   16613 
   16614             # if pkg-config is installed and openssl has installed a .pc file,
   16615             # then use that information and don't search ssldirs
   16616 
   16617 pkg_failed=no
   16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16619 $as_echo_n "checking for crypto... " >&6; }
   16620 
   16621 if test -n "$OPENSSL_CFLAGS"; then
   16622     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16623  elif test -n "$PKG_CONFIG"; then
   16624     if test -n "$PKG_CONFIG" && \
   16625     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16626   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16627   ac_status=$?
   16628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16629   test $ac_status = 0; }; then
   16630   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16631 		      test "x$?" != "x0" && pkg_failed=yes
   16632 else
   16633   pkg_failed=yes
   16634 fi
   16635  else
   16636     pkg_failed=untried
   16637 fi
   16638 if test -n "$OPENSSL_LIBS"; then
   16639     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16640  elif test -n "$PKG_CONFIG"; then
   16641     if test -n "$PKG_CONFIG" && \
   16642     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16643   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16644   ac_status=$?
   16645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16646   test $ac_status = 0; }; then
   16647   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16648 		      test "x$?" != "x0" && pkg_failed=yes
   16649 else
   16650   pkg_failed=yes
   16651 fi
   16652  else
   16653     pkg_failed=untried
   16654 fi
   16655 
   16656 
   16657 
   16658 if test $pkg_failed = yes; then
   16659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16660 $as_echo "no" >&6; }
   16661 
   16662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16663         _pkg_short_errors_supported=yes
   16664 else
   16665         _pkg_short_errors_supported=no
   16666 fi
   16667         if test $_pkg_short_errors_supported = yes; then
   16668 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16669         else
   16670 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16671         fi
   16672 	# Put the nasty error message in config.log where it belongs
   16673 	echo "$OPENSSL_PKG_ERRORS" >&5
   16674 
   16675 	ssldirs="$default_ssldirs"
   16676 elif test $pkg_failed = untried; then
   16677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16678 $as_echo "no" >&6; }
   16679 	ssldirs="$default_ssldirs"
   16680 else
   16681 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16682 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16684 $as_echo "yes" >&6; }
   16685 	found=true
   16686 fi
   16687 
   16688 
   16689 
   16690 fi
   16691 
   16692 
   16693 
   16694     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16695     # an 'openssl' subdirectory
   16696 
   16697     if ! $found; then :
   16698 
   16699         OPENSSL_CFLAGS=
   16700         for ssldir in $ssldirs; do
   16701             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16702 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16703 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16704 
   16705 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16706                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto -lssl"
   16707                     found=true
   16708                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16709 $as_echo "yes" >&6; }
   16710                     break
   16711 
   16712 else
   16713 
   16714 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16715 $as_echo "no" >&6; }
   16716 
   16717 fi
   16718         done
   16719 
   16720         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16721         # it will just work!
   16722 
   16723 fi
   16724 
   16725     # try the preprocessor and linker with our new flags,
   16726     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16727 
   16728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16729 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16730     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16731 
   16732     save_LIBS="$LIBS"
   16733     save_CPPFLAGS="$CPPFLAGS"
   16734     LIBS="$OPENSSL_LIBS $LIBS"
   16735     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16737 /* end confdefs.h.  */
   16738 
   16739                 #include <openssl/crypto.h>
   16740 
   16741 int
   16742 main ()
   16743 {
   16744 
   16745 	        OPENSSL_free(NULL);
   16746 
   16747   ;
   16748   return 0;
   16749 }
   16750 _ACEOF
   16751 if ac_fn_c_try_link "$LINENO"; then :
   16752 
   16753             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16754 $as_echo "yes" >&6; }
   16755             :
   16756 
   16757 else
   16758 
   16759             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16760 $as_echo "no" >&6; }
   16761             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16763 as_fn_error $? "OpenSSL/LibreSSL not found
   16764 See \`config.log' for more details" "$LINENO" 5; }
   16765 
   16766 fi
   16767 rm -f core conftest.err conftest.$ac_objext \
   16768     conftest$ac_exeext conftest.$ac_ext
   16769     CPPFLAGS="$save_CPPFLAGS"
   16770     LIBS="$save_LIBS"
   16771 
   16772 
   16773 
   16774 
   16775 else
   16776 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16777 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16779 $as_echo "yes" >&6; }
   16780 
   16781 fi
   16782 
   16783 
   16784 
   16785   CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
   16786 
   16787 
   16788 
   16789   CFLAGS_openssl_ax_save_flags=$CFLAGS
   16790 
   16791 
   16792 
   16793   CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
   16794 
   16795 
   16796 
   16797   CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
   16798 
   16799 
   16800 
   16801   ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
   16802 
   16803 
   16804 
   16805   FCFLAGS_openssl_ax_save_flags=$FCFLAGS
   16806 
   16807 
   16808 
   16809   FCLIBS_openssl_ax_save_flags=$FCLIBS
   16810 
   16811 
   16812 
   16813   FFLAGS_openssl_ax_save_flags=$FFLAGS
   16814 
   16815 
   16816 
   16817   FLIBS_openssl_ax_save_flags=$FLIBS
   16818 
   16819 
   16820 
   16821   GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
   16822 
   16823 
   16824 
   16825   JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
   16826 
   16827 
   16828 
   16829   LDFLAGS_openssl_ax_save_flags=$LDFLAGS
   16830 
   16831 
   16832 
   16833   LIBS_openssl_ax_save_flags=$LIBS
   16834 
   16835 
   16836 
   16837   OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
   16838 
   16839 
   16840 
   16841   OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
   16842 
   16843 
   16844 
   16845   UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
   16846 
   16847 
   16848 
   16849   VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
   16850 
   16851 
   16852 
   16853 
   16854 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
   16855 LIBS="$LIBS $OPENSSL_LIBS"
   16856 
   16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   16858 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16860 /* end confdefs.h.  */
   16861 #include <openssl/opensslv.h>
   16862 int
   16863 main ()
   16864 {
   16865 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   16866 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   16867 		       #endif
   16868 
   16869   ;
   16870   return 0;
   16871 }
   16872 _ACEOF
   16873 if ac_fn_c_try_compile "$LINENO"; then :
   16874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16875 $as_echo "yes" >&6; }
   16876 else
   16877   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16879 as_fn_error $? "not found
   16880 See \`config.log' for more details" "$LINENO" 5; }
   16881 fi
   16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16883 
   16884 #
   16885 # Check for functions added in OpenSSL or LibreSSL
   16886 #
   16887 
   16888 for ac_func in CRYPTO_zalloc
   16889 do :
   16890   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   16891 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   16892   cat >>confdefs.h <<_ACEOF
   16893 #define HAVE_CRYPTO_ZALLOC 1
   16894 _ACEOF
   16895 
   16896 fi
   16897 done
   16898 
   16899 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   16900 do :
   16901   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16904   cat >>confdefs.h <<_ACEOF
   16905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16906 _ACEOF
   16907 
   16908 fi
   16909 done
   16910 
   16911 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   16912 do :
   16913   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16916   cat >>confdefs.h <<_ACEOF
   16917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16918 _ACEOF
   16919 
   16920 fi
   16921 done
   16922 
   16923 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   16924 do :
   16925   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16926 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16927 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16928   cat >>confdefs.h <<_ACEOF
   16929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16930 _ACEOF
   16931 
   16932 fi
   16933 done
   16934 
   16935 
   16936 #
   16937 # Check for algorithm support in OpenSSL
   16938 #
   16939 
   16940 for ac_func in ECDSA_sign ECDSA_verify
   16941 do :
   16942   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16945   cat >>confdefs.h <<_ACEOF
   16946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16947 _ACEOF
   16948  :
   16949 else
   16950   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16952 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   16953 See \`config.log' for more details" "$LINENO" 5; }
   16954 fi
   16955 done
   16956 
   16957 
   16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   16959 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16961 /* end confdefs.h.  */
   16962 #include <openssl/evp.h>
   16963 		       #include <openssl/ec.h>
   16964 int
   16965 main ()
   16966 {
   16967 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   16968   ;
   16969   return 0;
   16970 }
   16971 _ACEOF
   16972 if ac_fn_c_try_compile "$LINENO"; then :
   16973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16974 $as_echo "yes" >&6; }
   16975 else
   16976   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16978 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   16979 See \`config.log' for more details" "$LINENO" 5; }
   16980 fi
   16981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16982 
   16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   16984 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16986 /* end confdefs.h.  */
   16987 #include <openssl/evp.h>
   16988 		       #include <openssl/ec.h>
   16989 int
   16990 main ()
   16991 {
   16992 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   16993   ;
   16994   return 0;
   16995 }
   16996 _ACEOF
   16997 if ac_fn_c_try_compile "$LINENO"; then :
   16998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16999 $as_echo "yes" >&6; }
   17000 else
   17001   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17003 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   17004 See \`config.log' for more details" "$LINENO" 5; }
   17005 fi
   17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17007 
   17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   17009 $as_echo_n "checking for Ed25519 support... " >&6; }
   17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17011 /* end confdefs.h.  */
   17012 #include <openssl/evp.h>
   17013 		       #include <openssl/ec.h>
   17014 int
   17015 main ()
   17016 {
   17017 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   17018   ;
   17019   return 0;
   17020 }
   17021 _ACEOF
   17022 if ac_fn_c_try_compile "$LINENO"; then :
   17023 
   17024 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   17025 
   17026      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17027 $as_echo "yes" >&6; }
   17028 else
   17029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17030 $as_echo "no" >&6; }
   17031 fi
   17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17033 
   17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   17035 $as_echo_n "checking for Ed448 support... " >&6; }
   17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17037 /* end confdefs.h.  */
   17038 #include <openssl/evp.h>
   17039 		       #include <openssl/ec.h>
   17040 int
   17041 main ()
   17042 {
   17043 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
   17044   ;
   17045   return 0;
   17046 }
   17047 _ACEOF
   17048 if ac_fn_c_try_compile "$LINENO"; then :
   17049 
   17050 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
   17051 
   17052      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17053 $as_echo "yes" >&6; }
   17054 else
   17055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17056 $as_echo "no" >&6; }
   17057 fi
   17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   17059 
   17060 #
   17061 # Check for OpenSSL SHA-1 support
   17062 #
   17063 for ac_func in EVP_sha1
   17064 do :
   17065   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   17066 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   17067   cat >>confdefs.h <<_ACEOF
   17068 #define HAVE_EVP_SHA1 1
   17069 _ACEOF
   17070  :
   17071 else
   17072   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17074 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   17075 See \`config.log' for more details" "$LINENO" 5; }
   17076 fi
   17077 done
   17078 
   17079 
   17080 #
   17081 # Check for OpenSSL SHA-2 support
   17082 #
   17083 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   17084 do :
   17085   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17088   cat >>confdefs.h <<_ACEOF
   17089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17090 _ACEOF
   17091  :
   17092 else
   17093   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17095 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   17096 See \`config.log' for more details" "$LINENO" 5; }
   17097 fi
   17098 done
   17099 
   17100 
   17101 #
   17102 # Check for OpenSSL AES support
   17103 #
   17104 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   17105 do :
   17106   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17108 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17109   cat >>confdefs.h <<_ACEOF
   17110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17111 _ACEOF
   17112  :
   17113 else
   17114   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17116 as_fn_error $? "AES support in OpenSSL is mandatory.
   17117 See \`config.log' for more details" "$LINENO" 5; }
   17118 fi
   17119 done
   17120 
   17121 
   17122 #
   17123 # Check for OpenSSL 1.1.x/LibreSSL functions
   17124 #
   17125 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   17126 do :
   17127   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   17128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   17129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   17130   cat >>confdefs.h <<_ACEOF
   17131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   17132 _ACEOF
   17133 
   17134 fi
   17135 done
   17136 
   17137 
   17138 for ac_func in TLS_server_method
   17139 do :
   17140   ac_fn_c_check_func "$LINENO" "TLS_server_method" "ac_cv_func_TLS_server_method"
   17141 if test "x$ac_cv_func_TLS_server_method" = xyes; then :
   17142   cat >>confdefs.h <<_ACEOF
   17143 #define HAVE_TLS_SERVER_METHOD 1
   17144 _ACEOF
   17145 
   17146 fi
   17147 done
   17148 
   17149 
   17150 #
   17151 # Check whether FIPS mode is available and whether we should enable it
   17152 #
   17153 # FIPS is not included in pairwise testing as the relevant Docker image
   17154 # does not support FIPS mode.
   17155 #
   17156 # [pairwise: skip]
   17157 # Check whether --enable-fips-mode was given.
   17158 if test "${enable_fips_mode+set}" = set; then :
   17159   enableval=$enable_fips_mode;
   17160 else
   17161   enable_fips_mode="no"
   17162 fi
   17163 
   17164 
   17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   17166 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   17167 case $enable_fips_mode in #(
   17168   yes) :
   17169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17170 $as_echo "yes" >&6; }
   17171 		for ac_func in FIPS_mode
   17172 do :
   17173   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   17174 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   17175   cat >>confdefs.h <<_ACEOF
   17176 #define HAVE_FIPS_MODE 1
   17177 _ACEOF
   17178 
   17179 else
   17180   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17182 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   17183 See \`config.log' for more details" "$LINENO" 5; }
   17184 fi
   17185 done
   17186  ;; #(
   17187   no) :
   17188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17189 $as_echo "no" >&6; } ;; #(
   17190   *) :
   17191      ;;
   17192 esac
   17193 
   17194 
   17195   CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
   17196 
   17197 
   17198   CFLAGS=$CFLAGS_openssl_ax_save_flags
   17199 
   17200 
   17201   CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
   17202 
   17203 
   17204   CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
   17205 
   17206 
   17207   ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
   17208 
   17209 
   17210   FCFLAGS=$FCFLAGS_openssl_ax_save_flags
   17211 
   17212 
   17213   FCLIBS=$FCLIBS_openssl_ax_save_flags
   17214 
   17215 
   17216   FFLAGS=$FFLAGS_openssl_ax_save_flags
   17217 
   17218 
   17219   FLIBS=$FLIBS_openssl_ax_save_flags
   17220 
   17221 
   17222   GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
   17223 
   17224 
   17225   JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
   17226 
   17227 
   17228   LDFLAGS=$LDFLAGS_openssl_ax_save_flags
   17229 
   17230 
   17231   LIBS=$LIBS_openssl_ax_save_flags
   17232 
   17233 
   17234   OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
   17235 
   17236 
   17237   OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
   17238 
   17239 
   17240   UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
   17241 
   17242 
   17243   VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
   17244 
   17245 
   17246 
   17247 
   17248 
   17249 
   17250 
   17251 PKCS11_TOOLS=
   17252 PKCS11_TEST=
   17253 PKCS11_MANS=
   17254 #
   17255 # was --enable-native-pkcs11 specified?
   17256 #
   17257 # [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen]
   17258 # Check whether --enable-native-pkcs11 was given.
   17259 if test "${enable_native_pkcs11+set}" = set; then :
   17260   enableval=$enable_native_pkcs11; :
   17261 else
   17262   enable_native_pkcs11="no"
   17263 fi
   17264 
   17265 
   17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   17267 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   17268 case $enable_native_pkcs11 in #(
   17269   no) :
   17270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17271 $as_echo "no" >&6; } ;; #(
   17272   yes) :
   17273     PKCS11_TOOLS=pkcs11
   17274 	       PKCS11_TEST=pkcs11
   17275 	       PKCS11_MANS='${pkcs11_man8_MANS}'
   17276 	       CRYPTO=pkcs11
   17277 	       if $use_threads; then :
   17278   :
   17279 else
   17280   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   17281 fi
   17282 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17283 $as_echo "yes" >&6; }
   17284 	       for ac_func in getpassphrase
   17285 do :
   17286   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   17287 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   17288   cat >>confdefs.h <<_ACEOF
   17289 #define HAVE_GETPASSPHRASE 1
   17290 _ACEOF
   17291 
   17292 fi
   17293 done
   17294 
   17295 	       ;; #(
   17296   *) :
   17297      ;;
   17298 esac
   17299 
   17300 
   17301 
   17302 
   17303 
   17304 case $CRYPTO in #(
   17305   pkcs11) :
   17306 
   17307 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   17308  ;; #(
   17309   *) :
   17310 
   17311 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   17312  ;;
   17313 esac
   17314 
   17315 # preparation for automake
   17316 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   17317 
   17318 #
   17319 # was --with-pkcs11 specified?
   17320 #
   17321 # [pairwise: skip]
   17322 
   17323 # Check whether --with-pkcs11 was given.
   17324 if test "${with_pkcs11+set}" = set; then :
   17325   withval=$with_pkcs11; :
   17326 else
   17327   with_pkcs11="undefined"
   17328 fi
   17329 
   17330 
   17331 case $with_pkcs11 in #(
   17332   yes|auto) :
   17333     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   17334   no|undefined) :
   17335     with_pkcs11="undefined" ;; #(
   17336   *) :
   17337      ;;
   17338 esac
   17339 
   17340 cat >>confdefs.h <<_ACEOF
   17341 #define PK11_LIB_LOCATION "$with_pkcs11"
   17342 _ACEOF
   17343 
   17344 
   17345 # for PKCS11 benchmarks
   17346 
   17347 have_clock_gt=no
   17348 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   17349 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   17350   have_clock_gt=yes
   17351 fi
   17352 
   17353 if test "no" = "$have_clock_gt"; then
   17354 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   17355 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   17356 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   17357   $as_echo_n "(cached) " >&6
   17358 else
   17359   ac_check_lib_save_LIBS=$LIBS
   17360 LIBS="-lrt  $LIBS"
   17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17362 /* end confdefs.h.  */
   17363 
   17364 /* Override any GCC internal prototype to avoid an error.
   17365    Use char because int might match the return type of a GCC
   17366    builtin and then its argument prototype would still apply.  */
   17367 #ifdef __cplusplus
   17368 extern "C"
   17369 #endif
   17370 char clock_gettime ();
   17371 int
   17372 main ()
   17373 {
   17374 return clock_gettime ();
   17375   ;
   17376   return 0;
   17377 }
   17378 _ACEOF
   17379 if ac_fn_c_try_link "$LINENO"; then :
   17380   ac_cv_lib_rt_clock_gettime=yes
   17381 else
   17382   ac_cv_lib_rt_clock_gettime=no
   17383 fi
   17384 rm -f core conftest.err conftest.$ac_objext \
   17385     conftest$ac_exeext conftest.$ac_ext
   17386 LIBS=$ac_check_lib_save_LIBS
   17387 fi
   17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   17389 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   17390 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   17391   have_clock_gt=rt
   17392 fi
   17393 
   17394 fi
   17395 
   17396 if test "no" != "$have_clock_gt"; then
   17397 
   17398 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   17399 
   17400 fi
   17401 
   17402 if test "rt" = "$have_clock_gt"; then
   17403 	LIBS="-lrt $LIBS"
   17404 fi
   17405 
   17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   17407 $as_echo_n "checking for GSSAPI library... " >&6; }
   17408 
   17409 # [pairwise: --with-gssapi=yes, --with-gssapi=auto, --without-gssapi]
   17410 
   17411 # Check whether --with-gssapi was given.
   17412 if test "${with_gssapi+set}" = set; then :
   17413   withval=$with_gssapi; use_gssapi="$withval"
   17414 else
   17415   use_gssapi="auto"
   17416 fi
   17417 
   17418 
   17419 # first try using krb5-config, if that does not work then fall back to "yes" method.
   17420 
   17421 case "$use_gssapi" in
   17422 */krb5-config|krb5-config)
   17423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   17424 $as_echo "trying $use_gssapi" >&6; }
   17425     if test krb5-config = "$use_gssapi"
   17426     then
   17427 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   17428 set dummy $use_gssapi; ac_word=$2
   17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17430 $as_echo_n "checking for $ac_word... " >&6; }
   17431 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   17432   $as_echo_n "(cached) " >&6
   17433 else
   17434   case $KRB5_CONFIG in
   17435   [\\/]* | ?:[\\/]*)
   17436   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   17437   ;;
   17438   *)
   17439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17440 for as_dir in $PATH
   17441 do
   17442   IFS=$as_save_IFS
   17443   test -z "$as_dir" && as_dir=.
   17444     for ac_exec_ext in '' $ac_executable_extensions; do
   17445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17446     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   17447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17448     break 2
   17449   fi
   17450 done
   17451   done
   17452 IFS=$as_save_IFS
   17453 
   17454   ;;
   17455 esac
   17456 fi
   17457 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   17458 if test -n "$KRB5_CONFIG"; then
   17459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   17460 $as_echo "$KRB5_CONFIG" >&6; }
   17461 else
   17462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17463 $as_echo "no" >&6; }
   17464 fi
   17465 
   17466 
   17467     else
   17468 	KRB5_CONFIG="$use_gssapi"
   17469     fi
   17470     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   17471     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   17472     saved_cppflags="$CPPFLAGS"
   17473     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   17474     for ac_header in gssapi.h gssapi/gssapi.h
   17475 do :
   17476   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17479   cat >>confdefs.h <<_ACEOF
   17480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17481 _ACEOF
   17482  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17483 fi
   17484 
   17485 done
   17486 
   17487     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17488 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   17489 $as_echo "krb5-config: gssapi.h not found" >&6; }
   17490 	CPPFLAGS="$saved_cppflags"
   17491 	use_gssapi="yes"
   17492     else
   17493 	for ac_header in krb5/krb5.h krb5.h
   17494 do :
   17495   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17496 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17498   cat >>confdefs.h <<_ACEOF
   17499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17500 _ACEOF
   17501  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17502 fi
   17503 
   17504 done
   17505 
   17506 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17507 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   17508 $as_echo "krb5-config: krb5.h not found" >&6; }
   17509 	    CPPFLAGS="$saved_cppflags"
   17510 	    use_gssapi="yes"
   17511 	else
   17512 	    CPPFLAGS="$saved_cppflags"
   17513 	    saved_libs="$LIBS"
   17514 	    LIBS=$gssapi_libs
   17515 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   17516 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   17517 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17518 /* end confdefs.h.  */
   17519 
   17520 int
   17521 main ()
   17522 {
   17523 gss_acquire_cred();krb5_init_context()
   17524   ;
   17525   return 0;
   17526 }
   17527 _ACEOF
   17528 if ac_fn_c_try_link "$LINENO"; then :
   17529   gssapi_linked=yes
   17530 else
   17531   gssapi_linked=no
   17532 fi
   17533 rm -f core conftest.err conftest.$ac_objext \
   17534     conftest$ac_exeext conftest.$ac_ext
   17535 	    case $gssapi_linked in
   17536 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   17537 $as_echo "krb5-config: linked" >&6; };;
   17538 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   17539 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   17540 		    use_gssapi="yes"
   17541 		    ;;
   17542 	    esac
   17543 	    LIBS=$saved_libs
   17544 	fi
   17545     fi
   17546     if test "yes" = "$use_gssapi"; then
   17547 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   17548 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   17549     fi
   17550     ;;
   17551 esac
   17552 
   17553 case "$host" in
   17554 *darwin*)
   17555 	if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17556 	then
   17557 		use_gssapi=framework
   17558 	fi
   17559 	;;
   17560 esac
   17561 
   17562 # gssapi is just the framework, we really require kerberos v5, so
   17563 # look for those headers (the gssapi headers must be there, too)
   17564 # The problem with this implementation is that it doesn't allow
   17565 # for the specification of gssapi and krb5 headers in different locations,
   17566 # which probably ought to be fixed although fixing might raise the issue of
   17567 # trying to build with incompatible versions of gssapi and krb5.
   17568 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17569 then
   17570 	# first, deal with the obvious
   17571 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   17572 		   -f /usr/include/krb5/krb5.h -o \
   17573 		   -f /usr/include/krb5.h \)   -a \
   17574 		\( -f /usr/include/gssapi.h -o \
   17575 		   -f /usr/include/gssapi/gssapi.h \)
   17576 	then
   17577 		use_gssapi=/usr
   17578 	else
   17579 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   17580 	    for d in $krb5dirs
   17581 	    do
   17582 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   17583 			-f $d/include/krb5.h
   17584 		then
   17585 			if test -f $d/include/gssapi/gssapi.h -o \
   17586 				-f $d/include/gssapi.h
   17587 			then
   17588 				use_gssapi=$d
   17589 				break
   17590 			fi
   17591 		fi
   17592 	    done
   17593 	    if test "auto" = "$use_gssapi"
   17594 	    then
   17595 		use_gssapi="no"
   17596 	    fi
   17597 	fi
   17598 fi
   17599 
   17600 case "$use_gssapi" in
   17601 	no)
   17602 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   17603 $as_echo "disabled" >&6; }
   17604 		USE_GSSAPI=''
   17605 		;;
   17606 	yes)
   17607 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   17608 		;;
   17609 	*/krb5-config|krb5-config)
   17610 		USE_GSSAPI='-DGSSAPI'
   17611 		DST_GSSAPI_INC="$gssapi_cflags"
   17612 		DNS_GSSAPI_LIBS="$gssapi_libs"
   17613 		;;
   17614 	framework)
   17615 		USE_GSSAPI='-DGSSAPI'
   17616 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   17617 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   17618 		DNS_GSSAPI_LIBS="-framework Kerberos"
   17619 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   17620 $as_echo "framework" >&6; }
   17621 		;;
   17622 
   17623 	*)
   17624 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   17625 $as_echo "looking in $use_gssapi/lib" >&6; }
   17626 		USE_GSSAPI='-DGSSAPI'
   17627 		saved_cppflags="$CPPFLAGS"
   17628 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   17629 		for ac_header in gssapi.h gssapi/gssapi.h
   17630 do :
   17631   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17632 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17634   cat >>confdefs.h <<_ACEOF
   17635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17636 _ACEOF
   17637  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17638 		     gssapi_hack="#include <$ac_header>"
   17639 fi
   17640 
   17641 done
   17642 
   17643 
   17644 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17645 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   17646 		fi
   17647 
   17648 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   17649 do :
   17650   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17651 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17652 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17653   cat >>confdefs.h <<_ACEOF
   17654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17655 _ACEOF
   17656  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   17657 		     gssapi_krb5_hack="#include <$ac_header>"
   17658 fi
   17659 
   17660 done
   17661 
   17662 
   17663 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   17664 do :
   17665   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17666 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17668   cat >>confdefs.h <<_ACEOF
   17669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17670 _ACEOF
   17671  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17672 		    krb5_hack="#include <$ac_header>"
   17673 fi
   17674 
   17675 done
   17676 
   17677 
   17678 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17679 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   17680 		fi
   17681 
   17682 		#
   17683 		# XXXDCL This probably doesn't work right on all systems.
   17684 		# It will need to be worked on as problems become evident.
   17685 		#
   17686 		# Essentially the problems here relate to two different
   17687 		# areas.  The first area is building with either KTH
   17688 		# or MIT Kerberos, particularly when both are present on
   17689 		# the machine.  The other is static versus dynamic linking.
   17690 		#
   17691 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   17692 		# up the works if one implementation ends up trying to
   17693 		# use the other's krb.  This is unfortunately a situation
   17694 		# that very easily arises.
   17695 		#
   17696 		# Dynamic linking when the dependency information is built
   17697 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   17698 		# all such problems go away, but when that setup is not
   17699 		# present, because either the dynamic libraries lack
   17700 		# dependencies or static linking is being done, then the
   17701 		# problems start to show up.
   17702 		saved_libs="$LIBS"
   17703 		for TRY_LIBS in \
   17704 		    "-lgssapi_krb5" \
   17705 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   17706 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   17707 		    "-lgssapi" \
   17708 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   17709 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17710 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17711 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   17712 		    "-lgss -lkrb5"
   17713 		do
   17714 		    # Note that this does not include $saved_libs, because
   17715 		    # on FreeBSD machines this configure script has added
   17716 		    # -L/usr/local/lib to LIBS, which can make the
   17717 		    # -lgssapi_krb5 test succeed with shared libraries even
   17718 		    # when you are trying to build with KTH in /usr/lib.
   17719 		    if test "/usr" = "$use_gssapi"
   17720 		    then
   17721 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   17722 		    else
   17723 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   17724 		    fi
   17725 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   17726 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   17727 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17728 /* end confdefs.h.  */
   17729 
   17730 #include <sys/types.h>
   17731 $gssapi_hack
   17732 $gssapi_krb5_hack
   17733 $krb5_hack
   17734 
   17735 int
   17736 main ()
   17737 {
   17738 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   17739 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   17740 gsskrb5_register_acceptor_identity(NULL);
   17741 #endif
   17742   ;
   17743   return 0;
   17744 }
   17745 _ACEOF
   17746 if ac_fn_c_try_link "$LINENO"; then :
   17747   gssapi_linked=yes
   17748 else
   17749   gssapi_linked=no
   17750 fi
   17751 rm -f core conftest.err conftest.$ac_objext \
   17752     conftest$ac_exeext conftest.$ac_ext
   17753 		    case $gssapi_linked in
   17754 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17755 $as_echo "yes" >&6; }; break ;;
   17756 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17757 $as_echo "no" >&6; } ;;
   17758 		    esac
   17759 		done
   17760 
   17761 		CPPFLAGS="$saved_cppflags"
   17762 
   17763 		case $gssapi_linked in
   17764 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   17765 		esac
   17766 
   17767 		#
   17768 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   17769 		# but MIT in /usr/local/lib and trying to build with KTH.
   17770 		# /usr/local/lib can end up earlier on the link lines.
   17771 		# Like most kludges, this one is not only inelegant it
   17772 		# is also likely to be the wrong thing to do at least as
   17773 		# many times as it is the right thing.  Something better
   17774 		# needs to be done.
   17775 		#
   17776 		if test "/usr" = "$use_gssapi" -a \
   17777 			-f /usr/local/lib/libkrb5.a; then
   17778 		    FIX_KTH_VS_MIT=yes
   17779 		fi
   17780 
   17781 		case "$FIX_KTH_VS_MIT" in
   17782 		yes)
   17783 		    case "$enable_static_linking" in
   17784 		    yes) gssapi_lib_suffix=".a"  ;;
   17785 		    *)   gssapi_lib_suffix=".so" ;;
   17786 		    esac
   17787 
   17788 		    for lib in $LIBS; do
   17789 			case $lib in
   17790 			-L*)
   17791 			    ;;
   17792 			-l*)
   17793 			    new_lib=`echo $lib |
   17794 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   17795 					 -e s%$%$gssapi_lib_suffix%`
   17796 			    NEW_LIBS="$NEW_LIBS $new_lib"
   17797 			    ;;
   17798 			*)
   17799 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   17800 			    ;;
   17801 			esac
   17802 		    done
   17803 		    LIBS="$NEW_LIBS"
   17804 		    ;;
   17805 		esac
   17806 
   17807 		DST_GSSAPI_INC="-I$use_gssapi/include"
   17808 		DNS_GSSAPI_LIBS="$LIBS"
   17809 
   17810 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   17811 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   17812 		LIBS="$saved_libs"
   17813 		;;
   17814 esac
   17815 
   17816 
   17817 
   17818 
   17819 
   17820 
   17821 
   17822 
   17823 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   17824 
   17825 #
   17826 # Applications linking with libdns also need to link with these libraries.
   17827 #
   17828 
   17829 
   17830 
   17831 #
   17832 # was --with-lmdb specified?
   17833 #
   17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   17835 $as_echo_n "checking for lmdb library... " >&6; }
   17836 
   17837 # [pairwise: --with-lmdb=auto, --with-lmdb=yes, --without-lmdb]
   17838 
   17839 # Check whether --with-lmdb was given.
   17840 if test "${with_lmdb+set}" = set; then :
   17841   withval=$with_lmdb; use_lmdb="$withval"
   17842 else
   17843   use_lmdb="auto"
   17844 fi
   17845 
   17846 
   17847 have_lmdb=""
   17848 case "$use_lmdb" in
   17849 	no)
   17850 		LMDB_LIBS=""
   17851 		;;
   17852 	auto|yes)
   17853 		for d in /usr /usr/local /opt/local
   17854 		do
   17855 			if test -f "${d}/include/lmdb.h"
   17856 			then
   17857 				if test ${d} != /usr
   17858 				then
   17859 					LMDB_CFLAGS="-I ${d}/include"
   17860 					LMDB_LIBS="-L${d}/lib"
   17861 				fi
   17862 				have_lmdb="yes"
   17863 			fi
   17864 		done
   17865 		;;
   17866 	*)
   17867 		if test -f "${use_lmdb}/include/lmdb.h"
   17868 		then
   17869 			LMDB_CFLAGS="-I${use_lmdb}/include"
   17870 			LMDB_LIBS="-L${use_lmdb}/lib"
   17871 			have_lmdb="yes"
   17872 		else
   17873 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   17874 		fi
   17875 		;;
   17876 esac
   17877 
   17878 if test "X${have_lmdb}" != "X"
   17879 then
   17880 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17881 $as_echo "yes" >&6; }
   17882 
   17883 
   17884   CCASFLAGS_lmdb_ax_save_flags=$CCASFLAGS
   17885 
   17886 
   17887 
   17888   CFLAGS_lmdb_ax_save_flags=$CFLAGS
   17889 
   17890 
   17891 
   17892   CPPFLAGS_lmdb_ax_save_flags=$CPPFLAGS
   17893 
   17894 
   17895 
   17896   CXXFLAGS_lmdb_ax_save_flags=$CXXFLAGS
   17897 
   17898 
   17899 
   17900   ERLCFLAGS_lmdb_ax_save_flags=$ERLCFLAGS
   17901 
   17902 
   17903 
   17904   FCFLAGS_lmdb_ax_save_flags=$FCFLAGS
   17905 
   17906 
   17907 
   17908   FCLIBS_lmdb_ax_save_flags=$FCLIBS
   17909 
   17910 
   17911 
   17912   FFLAGS_lmdb_ax_save_flags=$FFLAGS
   17913 
   17914 
   17915 
   17916   FLIBS_lmdb_ax_save_flags=$FLIBS
   17917 
   17918 
   17919 
   17920   GCJFLAGS_lmdb_ax_save_flags=$GCJFLAGS
   17921 
   17922 
   17923 
   17924   JAVACFLAGS_lmdb_ax_save_flags=$JAVACFLAGS
   17925 
   17926 
   17927 
   17928   LDFLAGS_lmdb_ax_save_flags=$LDFLAGS
   17929 
   17930 
   17931 
   17932   LIBS_lmdb_ax_save_flags=$LIBS
   17933 
   17934 
   17935 
   17936   OBJCFLAGS_lmdb_ax_save_flags=$OBJCFLAGS
   17937 
   17938 
   17939 
   17940   OBJCXXFLAGS_lmdb_ax_save_flags=$OBJCXXFLAGS
   17941 
   17942 
   17943 
   17944   UPCFLAGS_lmdb_ax_save_flags=$UPCFLAGS
   17945 
   17946 
   17947 
   17948   VALAFLAGS_lmdb_ax_save_flags=$VALAFLAGS
   17949 
   17950 
   17951 
   17952 	CFLAGS="$CFLAGS $LMDB_CFLAGS"
   17953 	LIBS="$LIBS $LMDB_LIBS"
   17954 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   17955 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   17956 if ${ac_cv_search_mdb_env_create+:} false; then :
   17957   $as_echo_n "(cached) " >&6
   17958 else
   17959   ac_func_search_save_LIBS=$LIBS
   17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17961 /* end confdefs.h.  */
   17962 
   17963 /* Override any GCC internal prototype to avoid an error.
   17964    Use char because int might match the return type of a GCC
   17965    builtin and then its argument prototype would still apply.  */
   17966 #ifdef __cplusplus
   17967 extern "C"
   17968 #endif
   17969 char mdb_env_create ();
   17970 int
   17971 main ()
   17972 {
   17973 return mdb_env_create ();
   17974   ;
   17975   return 0;
   17976 }
   17977 _ACEOF
   17978 for ac_lib in '' lmdb; do
   17979   if test -z "$ac_lib"; then
   17980     ac_res="none required"
   17981   else
   17982     ac_res=-l$ac_lib
   17983     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17984   fi
   17985   if ac_fn_c_try_link "$LINENO"; then :
   17986   ac_cv_search_mdb_env_create=$ac_res
   17987 fi
   17988 rm -f core conftest.err conftest.$ac_objext \
   17989     conftest$ac_exeext
   17990   if ${ac_cv_search_mdb_env_create+:} false; then :
   17991   break
   17992 fi
   17993 done
   17994 if ${ac_cv_search_mdb_env_create+:} false; then :
   17995 
   17996 else
   17997   ac_cv_search_mdb_env_create=no
   17998 fi
   17999 rm conftest.$ac_ext
   18000 LIBS=$ac_func_search_save_LIBS
   18001 fi
   18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   18003 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   18004 ac_res=$ac_cv_search_mdb_env_create
   18005 if test "$ac_res" != no; then :
   18006   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   18007 
   18008 else
   18009   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   18010 			have_lmdb=""
   18011 fi
   18012 
   18013 	LMDB_LIBS="$LMDB_LIBS $ac_cv_search_mdb_env_create"
   18014 
   18015   CCASFLAGS=$CCASFLAGS_lmdb_ax_save_flags
   18016 
   18017 
   18018   CFLAGS=$CFLAGS_lmdb_ax_save_flags
   18019 
   18020 
   18021   CPPFLAGS=$CPPFLAGS_lmdb_ax_save_flags
   18022 
   18023 
   18024   CXXFLAGS=$CXXFLAGS_lmdb_ax_save_flags
   18025 
   18026 
   18027   ERLCFLAGS=$ERLCFLAGS_lmdb_ax_save_flags
   18028 
   18029 
   18030   FCFLAGS=$FCFLAGS_lmdb_ax_save_flags
   18031 
   18032 
   18033   FCLIBS=$FCLIBS_lmdb_ax_save_flags
   18034 
   18035 
   18036   FFLAGS=$FFLAGS_lmdb_ax_save_flags
   18037 
   18038 
   18039   FLIBS=$FLIBS_lmdb_ax_save_flags
   18040 
   18041 
   18042   GCJFLAGS=$GCJFLAGS_lmdb_ax_save_flags
   18043 
   18044 
   18045   JAVACFLAGS=$JAVACFLAGS_lmdb_ax_save_flags
   18046 
   18047 
   18048   LDFLAGS=$LDFLAGS_lmdb_ax_save_flags
   18049 
   18050 
   18051   LIBS=$LIBS_lmdb_ax_save_flags
   18052 
   18053 
   18054   OBJCFLAGS=$OBJCFLAGS_lmdb_ax_save_flags
   18055 
   18056 
   18057   OBJCXXFLAGS=$OBJCXXFLAGS_lmdb_ax_save_flags
   18058 
   18059 
   18060   UPCFLAGS=$UPCFLAGS_lmdb_ax_save_flags
   18061 
   18062 
   18063   VALAFLAGS=$VALAFLAGS_lmdb_ax_save_flags
   18064 
   18065 
   18066 
   18067 elif test "X$use_lmdb" = Xyes
   18068 then
   18069 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   18070 else
   18071 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18072 $as_echo "no" >&6; }
   18073 fi
   18074 
   18075 
   18076 
   18077 NZD_TOOLS=""
   18078 NZDSRCS=
   18079 NZDTARGETS=
   18080 if test "X${have_lmdb}" != "X"
   18081 then
   18082 
   18083 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   18084 
   18085 	NZD_TOOLS="nzd"
   18086 	NZDSRCS='${NZDSRCS}'
   18087 	NZDTARGETS='${NZDTARGETS}'
   18088 	NZD_MANS='${nzd_man8_MANS}'
   18089 fi
   18090 
   18091 
   18092 
   18093 
   18094 
   18095 #
   18096 # was --with-libxml2 specified?
   18097 #
   18098 # [pairwise: --with-libxml2=auto, --with-libxml2=yes, --without-libxml2]
   18099 
   18100 # Check whether --with-libxml2 was given.
   18101 if test "${with_libxml2+set}" = set; then :
   18102   withval=$with_libxml2;
   18103 else
   18104   with_libxml2="auto"
   18105 fi
   18106 
   18107 
   18108 case $with_libxml2 in #(
   18109   no) :
   18110      ;; #(
   18111   auto) :
   18112 
   18113 pkg_failed=no
   18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18115 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18116 
   18117 if test -n "$LIBXML2_CFLAGS"; then
   18118     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18119  elif test -n "$PKG_CONFIG"; then
   18120     if test -n "$PKG_CONFIG" && \
   18121     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18122   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18123   ac_status=$?
   18124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18125   test $ac_status = 0; }; then
   18126   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18127 		      test "x$?" != "x0" && pkg_failed=yes
   18128 else
   18129   pkg_failed=yes
   18130 fi
   18131  else
   18132     pkg_failed=untried
   18133 fi
   18134 if test -n "$LIBXML2_LIBS"; then
   18135     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18136  elif test -n "$PKG_CONFIG"; then
   18137     if test -n "$PKG_CONFIG" && \
   18138     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18139   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18140   ac_status=$?
   18141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18142   test $ac_status = 0; }; then
   18143   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18144 		      test "x$?" != "x0" && pkg_failed=yes
   18145 else
   18146   pkg_failed=yes
   18147 fi
   18148  else
   18149     pkg_failed=untried
   18150 fi
   18151 
   18152 
   18153 
   18154 if test $pkg_failed = yes; then
   18155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18156 $as_echo "no" >&6; }
   18157 
   18158 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18159         _pkg_short_errors_supported=yes
   18160 else
   18161         _pkg_short_errors_supported=no
   18162 fi
   18163         if test $_pkg_short_errors_supported = yes; then
   18164 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18165         else
   18166 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18167         fi
   18168 	# Put the nasty error message in config.log where it belongs
   18169 	echo "$LIBXML2_PKG_ERRORS" >&5
   18170 
   18171 	:
   18172 elif test $pkg_failed = untried; then
   18173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18174 $as_echo "no" >&6; }
   18175 	:
   18176 else
   18177 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18178 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18180 $as_echo "yes" >&6; }
   18181 
   18182 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18183 
   18184 fi ;; #(
   18185   yes) :
   18186 
   18187 pkg_failed=no
   18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   18189 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   18190 
   18191 if test -n "$LIBXML2_CFLAGS"; then
   18192     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   18193  elif test -n "$PKG_CONFIG"; then
   18194     if test -n "$PKG_CONFIG" && \
   18195     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18196   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18197   ac_status=$?
   18198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18199   test $ac_status = 0; }; then
   18200   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18201 		      test "x$?" != "x0" && pkg_failed=yes
   18202 else
   18203   pkg_failed=yes
   18204 fi
   18205  else
   18206     pkg_failed=untried
   18207 fi
   18208 if test -n "$LIBXML2_LIBS"; then
   18209     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   18210  elif test -n "$PKG_CONFIG"; then
   18211     if test -n "$PKG_CONFIG" && \
   18212     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   18213   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   18214   ac_status=$?
   18215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18216   test $ac_status = 0; }; then
   18217   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   18218 		      test "x$?" != "x0" && pkg_failed=yes
   18219 else
   18220   pkg_failed=yes
   18221 fi
   18222  else
   18223     pkg_failed=untried
   18224 fi
   18225 
   18226 
   18227 
   18228 if test $pkg_failed = yes; then
   18229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18230 $as_echo "no" >&6; }
   18231 
   18232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18233         _pkg_short_errors_supported=yes
   18234 else
   18235         _pkg_short_errors_supported=no
   18236 fi
   18237         if test $_pkg_short_errors_supported = yes; then
   18238 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18239         else
   18240 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   18241         fi
   18242 	# Put the nasty error message in config.log where it belongs
   18243 	echo "$LIBXML2_PKG_ERRORS" >&5
   18244 
   18245 	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
   18246 
   18247 $LIBXML2_PKG_ERRORS
   18248 
   18249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18250 installed software in a non-standard prefix.
   18251 
   18252 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18253 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18254 See the pkg-config man page for more details." "$LINENO" 5
   18255 elif test $pkg_failed = untried; then
   18256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18257 $as_echo "no" >&6; }
   18258 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18260 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18261 is in your PATH or set the PKG_CONFIG environment variable to the full
   18262 path to pkg-config.
   18263 
   18264 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   18265 and LIBXML2_LIBS to avoid the need to call pkg-config.
   18266 See the pkg-config man page for more details.
   18267 
   18268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18269 See \`config.log' for more details" "$LINENO" 5; }
   18270 else
   18271 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   18272 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   18273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18274 $as_echo "yes" >&6; }
   18275 
   18276 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   18277 
   18278 fi ;; #(
   18279   *) :
   18280     as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18281 esac
   18282 
   18283 #
   18284 # DEPRECATED
   18285 #
   18286 # [pairwise: skip]
   18287 
   18288 # Check whether --with-libjson was given.
   18289 if test "${with_libjson+set}" = set; then :
   18290   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
   18291 $as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
   18292 else
   18293   with_libjson="detect"
   18294 fi
   18295 
   18296 
   18297 #
   18298 # was --with-json-c specified?
   18299 #
   18300 # [pairwise: --with-json-c=detect, --with-json-c=yes, --without-json-c]
   18301 
   18302 # Check whether --with-json-c was given.
   18303 if test "${with_json_c+set}" = set; then :
   18304   withval=$with_json_c;
   18305 else
   18306   with_json_c="$with_libjson"
   18307 fi
   18308 
   18309 
   18310 case $with_json_c in #(
   18311   no) :
   18312      ;; #(
   18313   detect) :
   18314 
   18315 pkg_failed=no
   18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18317 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18318 
   18319 if test -n "$JSON_C_CFLAGS"; then
   18320     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18321  elif test -n "$PKG_CONFIG"; then
   18322     if test -n "$PKG_CONFIG" && \
   18323     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18324   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18325   ac_status=$?
   18326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18327   test $ac_status = 0; }; then
   18328   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18329 		      test "x$?" != "x0" && pkg_failed=yes
   18330 else
   18331   pkg_failed=yes
   18332 fi
   18333  else
   18334     pkg_failed=untried
   18335 fi
   18336 if test -n "$JSON_C_LIBS"; then
   18337     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18338  elif test -n "$PKG_CONFIG"; then
   18339     if test -n "$PKG_CONFIG" && \
   18340     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18341   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18342   ac_status=$?
   18343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18344   test $ac_status = 0; }; then
   18345   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18346 		      test "x$?" != "x0" && pkg_failed=yes
   18347 else
   18348   pkg_failed=yes
   18349 fi
   18350  else
   18351     pkg_failed=untried
   18352 fi
   18353 
   18354 
   18355 
   18356 if test $pkg_failed = yes; then
   18357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18358 $as_echo "no" >&6; }
   18359 
   18360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18361         _pkg_short_errors_supported=yes
   18362 else
   18363         _pkg_short_errors_supported=no
   18364 fi
   18365         if test $_pkg_short_errors_supported = yes; then
   18366 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18367         else
   18368 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18369         fi
   18370 	# Put the nasty error message in config.log where it belongs
   18371 	echo "$JSON_C_PKG_ERRORS" >&5
   18372 
   18373 	:
   18374 elif test $pkg_failed = untried; then
   18375         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18376 $as_echo "no" >&6; }
   18377 	:
   18378 else
   18379 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18380 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18382 $as_echo "yes" >&6; }
   18383 
   18384 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18385 
   18386 fi ;; #(
   18387   yes) :
   18388 
   18389 pkg_failed=no
   18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18391 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18392 
   18393 if test -n "$JSON_C_CFLAGS"; then
   18394     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   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 \"json-c >= 0.11\""; } >&5
   18398   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 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_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 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 if test -n "$JSON_C_LIBS"; then
   18411     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18412  elif test -n "$PKG_CONFIG"; then
   18413     if test -n "$PKG_CONFIG" && \
   18414     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18415   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18416   ac_status=$?
   18417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18418   test $ac_status = 0; }; then
   18419   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18420 		      test "x$?" != "x0" && pkg_failed=yes
   18421 else
   18422   pkg_failed=yes
   18423 fi
   18424  else
   18425     pkg_failed=untried
   18426 fi
   18427 
   18428 
   18429 
   18430 if test $pkg_failed = yes; then
   18431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18432 $as_echo "no" >&6; }
   18433 
   18434 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18435         _pkg_short_errors_supported=yes
   18436 else
   18437         _pkg_short_errors_supported=no
   18438 fi
   18439         if test $_pkg_short_errors_supported = yes; then
   18440 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18441         else
   18442 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18443         fi
   18444 	# Put the nasty error message in config.log where it belongs
   18445 	echo "$JSON_C_PKG_ERRORS" >&5
   18446 
   18447 	as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
   18448 
   18449 $JSON_C_PKG_ERRORS
   18450 
   18451 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18452 installed software in a non-standard prefix.
   18453 
   18454 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18455 and JSON_C_LIBS to avoid the need to call pkg-config.
   18456 See the pkg-config man page for more details." "$LINENO" 5
   18457 elif test $pkg_failed = untried; then
   18458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18459 $as_echo "no" >&6; }
   18460 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18462 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18463 is in your PATH or set the PKG_CONFIG environment variable to the full
   18464 path to pkg-config.
   18465 
   18466 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18467 and JSON_C_LIBS to avoid the need to call pkg-config.
   18468 See the pkg-config man page for more details.
   18469 
   18470 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18471 See \`config.log' for more details" "$LINENO" 5; }
   18472 else
   18473 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18474 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18476 $as_echo "yes" >&6; }
   18477 
   18478 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18479 
   18480 fi ;; #(
   18481   *) :
   18482     as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
   18483         ;;
   18484 esac
   18485 
   18486 
   18487 
   18488 
   18489 # [pairwise: --with-zlib=auto, --with-zlib=yes, --without-zlib]
   18490 
   18491 # Check whether --with-zlib was given.
   18492 if test "${with_zlib+set}" = set; then :
   18493   withval=$with_zlib;
   18494 else
   18495   with_zlib="auto"
   18496 fi
   18497 
   18498 
   18499 case $with_zlib in #(
   18500   no) :
   18501      ;; #(
   18502   auto) :
   18503 
   18504 pkg_failed=no
   18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18506 $as_echo_n "checking for zlib... " >&6; }
   18507 
   18508 if test -n "$ZLIB_CFLAGS"; then
   18509     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18510  elif test -n "$PKG_CONFIG"; then
   18511     if test -n "$PKG_CONFIG" && \
   18512     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18513   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18514   ac_status=$?
   18515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18516   test $ac_status = 0; }; then
   18517   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18518 		      test "x$?" != "x0" && pkg_failed=yes
   18519 else
   18520   pkg_failed=yes
   18521 fi
   18522  else
   18523     pkg_failed=untried
   18524 fi
   18525 if test -n "$ZLIB_LIBS"; then
   18526     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18527  elif test -n "$PKG_CONFIG"; then
   18528     if test -n "$PKG_CONFIG" && \
   18529     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18530   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18531   ac_status=$?
   18532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18533   test $ac_status = 0; }; then
   18534   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18535 		      test "x$?" != "x0" && pkg_failed=yes
   18536 else
   18537   pkg_failed=yes
   18538 fi
   18539  else
   18540     pkg_failed=untried
   18541 fi
   18542 
   18543 
   18544 
   18545 if test $pkg_failed = yes; then
   18546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18547 $as_echo "no" >&6; }
   18548 
   18549 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18550         _pkg_short_errors_supported=yes
   18551 else
   18552         _pkg_short_errors_supported=no
   18553 fi
   18554         if test $_pkg_short_errors_supported = yes; then
   18555 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18556         else
   18557 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18558         fi
   18559 	# Put the nasty error message in config.log where it belongs
   18560 	echo "$ZLIB_PKG_ERRORS" >&5
   18561 
   18562 	:
   18563 elif test $pkg_failed = untried; then
   18564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18565 $as_echo "no" >&6; }
   18566 	:
   18567 else
   18568 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18569 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18571 $as_echo "yes" >&6; }
   18572 
   18573 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18574 
   18575 fi ;; #(
   18576   yes) :
   18577 
   18578 pkg_failed=no
   18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18580 $as_echo_n "checking for zlib... " >&6; }
   18581 
   18582 if test -n "$ZLIB_CFLAGS"; then
   18583     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18584  elif test -n "$PKG_CONFIG"; then
   18585     if test -n "$PKG_CONFIG" && \
   18586     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18587   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18588   ac_status=$?
   18589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18590   test $ac_status = 0; }; then
   18591   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18592 		      test "x$?" != "x0" && pkg_failed=yes
   18593 else
   18594   pkg_failed=yes
   18595 fi
   18596  else
   18597     pkg_failed=untried
   18598 fi
   18599 if test -n "$ZLIB_LIBS"; then
   18600     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18601  elif test -n "$PKG_CONFIG"; then
   18602     if test -n "$PKG_CONFIG" && \
   18603     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18604   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18605   ac_status=$?
   18606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18607   test $ac_status = 0; }; then
   18608   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18609 		      test "x$?" != "x0" && pkg_failed=yes
   18610 else
   18611   pkg_failed=yes
   18612 fi
   18613  else
   18614     pkg_failed=untried
   18615 fi
   18616 
   18617 
   18618 
   18619 if test $pkg_failed = yes; then
   18620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18621 $as_echo "no" >&6; }
   18622 
   18623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18624         _pkg_short_errors_supported=yes
   18625 else
   18626         _pkg_short_errors_supported=no
   18627 fi
   18628         if test $_pkg_short_errors_supported = yes; then
   18629 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18630         else
   18631 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18632         fi
   18633 	# Put the nasty error message in config.log where it belongs
   18634 	echo "$ZLIB_PKG_ERRORS" >&5
   18635 
   18636 	as_fn_error $? "Package requirements (zlib) were not met:
   18637 
   18638 $ZLIB_PKG_ERRORS
   18639 
   18640 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18641 installed software in a non-standard prefix.
   18642 
   18643 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18644 and ZLIB_LIBS to avoid the need to call pkg-config.
   18645 See the pkg-config man page for more details." "$LINENO" 5
   18646 elif test $pkg_failed = untried; then
   18647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18648 $as_echo "no" >&6; }
   18649 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18651 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18652 is in your PATH or set the PKG_CONFIG environment variable to the full
   18653 path to pkg-config.
   18654 
   18655 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18656 and ZLIB_LIBS to avoid the need to call pkg-config.
   18657 See the pkg-config man page for more details.
   18658 
   18659 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18660 See \`config.log' for more details" "$LINENO" 5; }
   18661 else
   18662 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18663 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18665 $as_echo "yes" >&6; }
   18666 
   18667 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18668 
   18669 fi ;; #(
   18670   *) :
   18671     as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18672 esac
   18673 
   18674 
   18675 
   18676 #
   18677 # In solaris 10, SMF can manage named service
   18678 #
   18679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   18680 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   18681 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   18682   $as_echo_n "(cached) " >&6
   18683 else
   18684   ac_check_lib_save_LIBS=$LIBS
   18685 LIBS="-lscf  $LIBS"
   18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18687 /* end confdefs.h.  */
   18688 
   18689 /* Override any GCC internal prototype to avoid an error.
   18690    Use char because int might match the return type of a GCC
   18691    builtin and then its argument prototype would still apply.  */
   18692 #ifdef __cplusplus
   18693 extern "C"
   18694 #endif
   18695 char smf_enable_instance ();
   18696 int
   18697 main ()
   18698 {
   18699 return smf_enable_instance ();
   18700   ;
   18701   return 0;
   18702 }
   18703 _ACEOF
   18704 if ac_fn_c_try_link "$LINENO"; then :
   18705   ac_cv_lib_scf_smf_enable_instance=yes
   18706 else
   18707   ac_cv_lib_scf_smf_enable_instance=no
   18708 fi
   18709 rm -f core conftest.err conftest.$ac_objext \
   18710     conftest$ac_exeext conftest.$ac_ext
   18711 LIBS=$ac_check_lib_save_LIBS
   18712 fi
   18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   18714 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   18715 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   18716   cat >>confdefs.h <<_ACEOF
   18717 #define HAVE_LIBSCF 1
   18718 _ACEOF
   18719 
   18720   LIBS="-lscf $LIBS"
   18721 
   18722 fi
   18723 
   18724 
   18725 #
   18726 # Additional compiler settings.
   18727 #
   18728 MKDEPCC="$CC"
   18729 
   18730 MKDEPCFLAGS="-M"
   18731 case $host in #(
   18732   *-solaris*) :
   18733 
   18734 	    if test "$GCC" != "yes"; then :
   18735   MKDEPCFLAGS="-xM"
   18736 fi ;; #(
   18737   *) :
   18738      ;;
   18739 esac
   18740 
   18741 if test "$GCC" = "yes"; then :
   18742   STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
   18743 
   18744 fi
   18745 
   18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
   18747 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
   18748 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
   18749   $as_echo_n "(cached) " >&6
   18750 else
   18751 
   18752   ax_check_save_flags=$CFLAGS
   18753   CFLAGS="$CFLAGS  -fno-strict-aliasing"
   18754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18755 /* end confdefs.h.  */
   18756 
   18757 int
   18758 main ()
   18759 {
   18760 
   18761   ;
   18762   return 0;
   18763 }
   18764 _ACEOF
   18765 if ac_fn_c_try_compile "$LINENO"; then :
   18766   ax_cv_check_cflags___fno_strict_aliasing=yes
   18767 else
   18768   ax_cv_check_cflags___fno_strict_aliasing=no
   18769 fi
   18770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18771   CFLAGS=$ax_check_save_flags
   18772 fi
   18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
   18774 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
   18775 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
   18776   STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   18777 else
   18778   :
   18779 fi
   18780 
   18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
   18782 $as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
   18783 if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
   18784   $as_echo_n "(cached) " >&6
   18785 else
   18786 
   18787   ax_check_save_flags=$CFLAGS
   18788   CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
   18789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18790 /* end confdefs.h.  */
   18791 
   18792 int
   18793 main ()
   18794 {
   18795 
   18796   ;
   18797   return 0;
   18798 }
   18799 _ACEOF
   18800 if ac_fn_c_try_compile "$LINENO"; then :
   18801   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
   18802 else
   18803   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
   18804 fi
   18805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18806   CFLAGS=$ax_check_save_flags
   18807 fi
   18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
   18809 $as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
   18810 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
   18811   STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   18812 else
   18813   :
   18814 fi
   18815 
   18816 if test "$enable_warn_shadow" = "yes"; then :
   18817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
   18818 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
   18819 if ${ax_cv_check_cflags___Wshadow+:} false; then :
   18820   $as_echo_n "(cached) " >&6
   18821 else
   18822 
   18823   ax_check_save_flags=$CFLAGS
   18824   CFLAGS="$CFLAGS  -Wshadow"
   18825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18826 /* end confdefs.h.  */
   18827 
   18828 int
   18829 main ()
   18830 {
   18831 
   18832   ;
   18833   return 0;
   18834 }
   18835 _ACEOF
   18836 if ac_fn_c_try_compile "$LINENO"; then :
   18837   ax_cv_check_cflags___Wshadow=yes
   18838 else
   18839   ax_cv_check_cflags___Wshadow=no
   18840 fi
   18841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18842   CFLAGS=$ax_check_save_flags
   18843 fi
   18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
   18845 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
   18846 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
   18847   STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   18848 else
   18849   :
   18850 fi
   18851 
   18852 fi
   18853 if test "$enable_warn_error" = "yes"; then :
   18854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
   18855 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
   18856 if ${ax_cv_check_cflags___Werror+:} false; then :
   18857   $as_echo_n "(cached) " >&6
   18858 else
   18859 
   18860   ax_check_save_flags=$CFLAGS
   18861   CFLAGS="$CFLAGS  -Werror"
   18862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18863 /* end confdefs.h.  */
   18864 
   18865 int
   18866 main ()
   18867 {
   18868 
   18869   ;
   18870   return 0;
   18871 }
   18872 _ACEOF
   18873 if ac_fn_c_try_compile "$LINENO"; then :
   18874   ax_cv_check_cflags___Werror=yes
   18875 else
   18876   ax_cv_check_cflags___Werror=no
   18877 fi
   18878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18879   CFLAGS=$ax_check_save_flags
   18880 fi
   18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
   18882 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
   18883 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
   18884   STD_CWARNINGS="$STD_CWARNINGS -Werror"
   18885 else
   18886   :
   18887 fi
   18888 
   18889 fi
   18890 
   18891 
   18892 
   18893 
   18894 
   18895 #
   18896 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   18897 #
   18898 # AC_CHECK_LIB(xnet, socket, ,
   18899 #    AC_CHECK_LIB(socket, socket)
   18900 # )
   18901 #
   18902 # Use this for now, instead:
   18903 #
   18904 case "$host" in
   18905 	*-linux*)
   18906 		;;
   18907 	*)
   18908 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   18909 $as_echo_n "checking for socket in -lsocket... " >&6; }
   18910 if ${ac_cv_lib_socket_socket+:} false; then :
   18911   $as_echo_n "(cached) " >&6
   18912 else
   18913   ac_check_lib_save_LIBS=$LIBS
   18914 LIBS="-lsocket  $LIBS"
   18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18916 /* end confdefs.h.  */
   18917 
   18918 /* Override any GCC internal prototype to avoid an error.
   18919    Use char because int might match the return type of a GCC
   18920    builtin and then its argument prototype would still apply.  */
   18921 #ifdef __cplusplus
   18922 extern "C"
   18923 #endif
   18924 char socket ();
   18925 int
   18926 main ()
   18927 {
   18928 return socket ();
   18929   ;
   18930   return 0;
   18931 }
   18932 _ACEOF
   18933 if ac_fn_c_try_link "$LINENO"; then :
   18934   ac_cv_lib_socket_socket=yes
   18935 else
   18936   ac_cv_lib_socket_socket=no
   18937 fi
   18938 rm -f core conftest.err conftest.$ac_objext \
   18939     conftest$ac_exeext conftest.$ac_ext
   18940 LIBS=$ac_check_lib_save_LIBS
   18941 fi
   18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   18943 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   18944 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   18945   cat >>confdefs.h <<_ACEOF
   18946 #define HAVE_LIBSOCKET 1
   18947 _ACEOF
   18948 
   18949   LIBS="-lsocket $LIBS"
   18950 
   18951 fi
   18952 
   18953 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   18954 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   18955 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   18956   $as_echo_n "(cached) " >&6
   18957 else
   18958   ac_check_lib_save_LIBS=$LIBS
   18959 LIBS="-lnsl  $LIBS"
   18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18961 /* end confdefs.h.  */
   18962 
   18963 /* Override any GCC internal prototype to avoid an error.
   18964    Use char because int might match the return type of a GCC
   18965    builtin and then its argument prototype would still apply.  */
   18966 #ifdef __cplusplus
   18967 extern "C"
   18968 #endif
   18969 char inet_addr ();
   18970 int
   18971 main ()
   18972 {
   18973 return inet_addr ();
   18974   ;
   18975   return 0;
   18976 }
   18977 _ACEOF
   18978 if ac_fn_c_try_link "$LINENO"; then :
   18979   ac_cv_lib_nsl_inet_addr=yes
   18980 else
   18981   ac_cv_lib_nsl_inet_addr=no
   18982 fi
   18983 rm -f core conftest.err conftest.$ac_objext \
   18984     conftest$ac_exeext conftest.$ac_ext
   18985 LIBS=$ac_check_lib_save_LIBS
   18986 fi
   18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   18988 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   18989 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   18990   cat >>confdefs.h <<_ACEOF
   18991 #define HAVE_LIBNSL 1
   18992 _ACEOF
   18993 
   18994   LIBS="-lnsl $LIBS"
   18995 
   18996 fi
   18997 
   18998 		;;
   18999 esac
   19000 
   19001 #
   19002 # Work around Solaris's select() limitations.
   19003 #
   19004 case "$host" in
   19005 	*-solaris2.[89]|*-solaris2.1?)
   19006 
   19007 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   19008 
   19009 	;;
   19010 esac
   19011 
   19012 #
   19013 # Purify support
   19014 #
   19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   19016 $as_echo_n "checking whether to use purify... " >&6; }
   19017 
   19018 # Purify is not included in pairwise testing as that tool is not present
   19019 # in the relevant Docker image.
   19020 #
   19021 # [pairwise: skip]
   19022 
   19023 # Check whether --with-purify was given.
   19024 if test "${with_purify+set}" = set; then :
   19025   withval=$with_purify; use_purify="$withval"
   19026 else
   19027   use_purify="no"
   19028 fi
   19029 
   19030 
   19031 case "$use_purify" in
   19032 	no)
   19033 		;;
   19034 	yes)
   19035 		# Extract the first word of "purify", so it can be a program name with args.
   19036 set dummy purify; ac_word=$2
   19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19038 $as_echo_n "checking for $ac_word... " >&6; }
   19039 if ${ac_cv_path_purify_path+:} false; then :
   19040   $as_echo_n "(cached) " >&6
   19041 else
   19042   case $purify_path in
   19043   [\\/]* | ?:[\\/]*)
   19044   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   19045   ;;
   19046   *)
   19047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19048 for as_dir in $PATH
   19049 do
   19050   IFS=$as_save_IFS
   19051   test -z "$as_dir" && as_dir=.
   19052     for ac_exec_ext in '' $ac_executable_extensions; do
   19053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19054     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   19055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19056     break 2
   19057   fi
   19058 done
   19059   done
   19060 IFS=$as_save_IFS
   19061 
   19062   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   19063   ;;
   19064 esac
   19065 fi
   19066 purify_path=$ac_cv_path_purify_path
   19067 if test -n "$purify_path"; then
   19068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   19069 $as_echo "$purify_path" >&6; }
   19070 else
   19071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19072 $as_echo "no" >&6; }
   19073 fi
   19074 
   19075 
   19076 		;;
   19077 	*)
   19078 		purify_path="$use_purify"
   19079 		;;
   19080 esac
   19081 
   19082 case "$use_purify" in
   19083 	no)
   19084 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19085 $as_echo "no" >&6; }
   19086 		PURIFY=""
   19087 		;;
   19088 	*)
   19089 		if test -f "$purify_path" || test purify = "$purify_path"; then
   19090 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   19091 $as_echo "$purify_path" >&6; }
   19092 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   19093 			PURIFY="$purify_path $PURIFYFLAGS"
   19094 		else
   19095 			as_fn_error $? "$purify_path not found.
   19096 
   19097 Please choose the proper path with the following command:
   19098 
   19099     configure --with-purify=PATH
   19100 " "$LINENO" 5
   19101 		fi
   19102 		;;
   19103 esac
   19104 
   19105 
   19106 
   19107 #
   19108 # Google/Great Performance Tools CPU Profiler
   19109 #
   19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   19111 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   19112 
   19113 # Google/Great Performance Tools CPU Profiler is not included in
   19114 # pairwise testing as that tool is not present in the relevant Docker
   19115 # image.
   19116 #
   19117 # [pairwise: skip]
   19118 
   19119 # Check whether --with-gperftools-profiler was given.
   19120 if test "${with_gperftools_profiler+set}" = set; then :
   19121   withval=$with_gperftools_profiler; use_profiler="$withval"
   19122 else
   19123   use_profiler="no"
   19124 fi
   19125 
   19126 
   19127 case $use_profiler in
   19128 	yes)
   19129 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19130 $as_echo "yes" >&6; }
   19131 
   19132 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   19133 
   19134 		LIBS="$LIBS -lprofiler"
   19135 		;;
   19136 	*)
   19137 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19138 $as_echo "no" >&6; }
   19139 		;;
   19140 esac
   19141 
   19142 #
   19143 # enable/disable dumping stack backtrace.  Also check if the system supports
   19144 # glibc-compatible backtrace() function.
   19145 #
   19146 # [pairwise: --enable-backtrace, --disable-backtrace]
   19147 # Check whether --enable-backtrace was given.
   19148 if test "${enable_backtrace+set}" = set; then :
   19149   enableval=$enable_backtrace;
   19150 else
   19151   enable_backtrace="yes"
   19152 fi
   19153 
   19154 
   19155 if test "$enable_backtrace" = "yes"; then :
   19156 
   19157 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   19158 
   19159        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19160 /* end confdefs.h.  */
   19161 #include <execinfo.h>
   19162 int
   19163 main ()
   19164 {
   19165 return (backtrace((void **)0, 0));
   19166 
   19167   ;
   19168   return 0;
   19169 }
   19170 _ACEOF
   19171 if ac_fn_c_try_link "$LINENO"; then :
   19172 
   19173 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   19174 
   19175 else
   19176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19177 /* end confdefs.h.  */
   19178 #include <stddef.h>
   19179 int
   19180 main ()
   19181 {
   19182 return _Unwind_Backtrace(NULL, NULL);
   19183 
   19184   ;
   19185   return 0;
   19186 }
   19187 _ACEOF
   19188 if ac_fn_c_try_link "$LINENO"; then :
   19189 
   19190 $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
   19191 
   19192 
   19193 fi
   19194 rm -f core conftest.err conftest.$ac_objext \
   19195     conftest$ac_exeext conftest.$ac_ext
   19196 
   19197 fi
   19198 rm -f core conftest.err conftest.$ac_objext \
   19199     conftest$ac_exeext conftest.$ac_ext
   19200 fi
   19201 
   19202 # [pairwise: --enable-symtable, --disable-symtable]
   19203 # Check whether --enable-symtable was given.
   19204 if test "${enable_symtable+set}" = set; then :
   19205   enableval=$enable_symtable; want_symtable="$enableval"
   19206 else
   19207   want_symtable="minimal"
   19208 fi
   19209 
   19210 case $want_symtable in
   19211 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   19212 	if test "" = "$PERL"
   19213 	then
   19214 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   19215 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   19216 	fi
   19217 	if test "yes" = "$use_libtool"; then
   19218 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   19219 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   19220 	else
   19221 		# we generate the internal symbol table only for those systems
   19222 		# known to work to avoid unexpected build failure.  Also, warn
   19223 		# about unsupported systems when the feature is enabled
   19224 		#  manually.
   19225 		case $host_os in
   19226 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   19227 			MKSYMTBL_PROGRAM="$PERL"
   19228 			if test "all" = "$want_symtable"; then
   19229 				ALWAYS_MAKE_SYMTABLE="yes"
   19230 			fi
   19231 			;;
   19232 		*)
   19233 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   19234 			then
   19235 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   19236 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   19237 			fi
   19238 		esac
   19239 	fi
   19240 	;;
   19241 *)
   19242 	;;
   19243 esac
   19244 
   19245 
   19246 
   19247 #
   19248 # File name extension for static archive files, for those few places
   19249 # where they are treated differently from dynamic ones.
   19250 #
   19251 SA=a
   19252 
   19253 
   19254 
   19255 
   19256 
   19257 
   19258 
   19259 
   19260 
   19261 
   19262 BIND9_CO_RULE=".c.$O:"
   19263 
   19264 
   19265 #
   19266 # Here begins a very long section to determine the system's networking
   19267 # capabilities.  The order of the tests is significant.
   19268 #
   19269 
   19270 #
   19271 # We do the IPv6 compilation checking after libtool so that we can put
   19272 # the right suffix on the files.
   19273 #
   19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   19275 $as_echo_n "checking for IPv6 structures... " >&6; }
   19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19277 /* end confdefs.h.  */
   19278 
   19279        #include <sys/types.h>
   19280        #include <sys/socket.h>
   19281        #include <netinet/in.h>
   19282 
   19283 int
   19284 main ()
   19285 {
   19286 
   19287        struct sockaddr_in6 sin6;
   19288        struct in6_addr in6;
   19289        struct in6_pktinfo in6_pi;
   19290        struct sockaddr_storage storage;
   19291        in6 = in6addr_any;
   19292        in6 = in6addr_loopback;
   19293        sin6.sin6_scope_id = 0;
   19294        return (0);
   19295 
   19296   ;
   19297   return 0;
   19298 }
   19299 _ACEOF
   19300 if ac_fn_c_try_compile "$LINENO"; then :
   19301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19302 $as_echo "yes" >&6; }
   19303 else
   19304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19306 as_fn_error $? "IPv6 support is mandatory
   19307 See \`config.log' for more details" "$LINENO" 5; }
   19308 fi
   19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19310 
   19311 #
   19312 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   19313 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   19314 # comment in lib/isc/unix/socket.c).
   19315 #
   19316 # [pairwise: --enable-tcp-fastopen, --disable-tcp-fastopen]
   19317 # Check whether --enable-tcp_fastopen was given.
   19318 if test "${enable_tcp_fastopen+set}" = set; then :
   19319   enableval=$enable_tcp_fastopen;
   19320 else
   19321   enable_tcp_fastopen="yes"
   19322 fi
   19323 
   19324 
   19325 if test "$enable_tcp_fastopen" = "yes"; then :
   19326 
   19327 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   19328 
   19329 fi
   19330 
   19331 #
   19332 # Check for some other useful functions that are not ever-present.
   19333 #
   19334 for ac_func in strlcpy strlcat
   19335 do :
   19336   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19339   cat >>confdefs.h <<_ACEOF
   19340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19341 _ACEOF
   19342 
   19343 fi
   19344 done
   19345 
   19346 
   19347 
   19348 
   19349 # [pairwise: --with-readline=auto, --with-readline=yes, --without-readline]
   19350 
   19351 # Check whether --with-readline was given.
   19352 if test "${with_readline+set}" = set; then :
   19353   withval=$with_readline; use_readline="$withval"
   19354 else
   19355   use_readline="auto"
   19356 fi
   19357 
   19358 case "$use_readline" in
   19359 no)	;;
   19360 *)
   19361 	saved_LIBS="$LIBS"
   19362 	case "$use_readline" in
   19363 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   19364 	*) try_readline="$use_readline"
   19365 	esac
   19366 	for readline in "$try_readline" $or_readline
   19367 	do
   19368 		LIBS="$readline"
   19369 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   19370 $as_echo "$as_me: checking for readline with $readline" >&6;}
   19371 		for ac_func in readline
   19372 do :
   19373   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19374 if test "x$ac_cv_func_readline" = xyes; then :
   19375   cat >>confdefs.h <<_ACEOF
   19376 #define HAVE_READLINE 1
   19377 _ACEOF
   19378 
   19379 fi
   19380 done
   19381 
   19382 		if test "yes" = "$ac_cv_func_readline"
   19383 		then
   19384 			READLINE_LIB="$readline"
   19385 			break
   19386 		fi
   19387 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   19388 		do
   19389 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   19390 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   19391 			unset ac_cv_func_readline
   19392 			LIBS="$readline $lib"
   19393 			for ac_func in readline
   19394 do :
   19395   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19396 if test "x$ac_cv_func_readline" = xyes; then :
   19397   cat >>confdefs.h <<_ACEOF
   19398 #define HAVE_READLINE 1
   19399 _ACEOF
   19400 
   19401 fi
   19402 done
   19403 
   19404 			if test "yes" = "$ac_cv_func_readline"
   19405 			then
   19406 				READLINE_LIB="$readline $lib"
   19407 				break
   19408 			fi
   19409 		done
   19410 		if test "yes" = "$ac_cv_func_readline"
   19411 		then
   19412 			break
   19413 		fi
   19414 	done
   19415 	if test "auto" != "$use_readline" &&
   19416 	   test "X$READLINE_LIB" = "X"
   19417 	then
   19418 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   19419 	fi
   19420 	LIBS="$saved_LIBS"
   19421 	;;
   19422 esac
   19423 if test "yes" = "$ac_cv_func_readline"
   19424 then
   19425 	case "$READLINE_LIB" in
   19426 	*edit*)
   19427 		for ac_header in editline/readline.h
   19428 do :
   19429   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   19430 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   19431   cat >>confdefs.h <<_ACEOF
   19432 #define HAVE_EDITLINE_READLINE_H 1
   19433 _ACEOF
   19434 
   19435 fi
   19436 
   19437 done
   19438 
   19439 		for ac_header in edit/readline/readline.h
   19440 do :
   19441   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   19442 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   19443   cat >>confdefs.h <<_ACEOF
   19444 #define HAVE_EDIT_READLINE_READLINE_H 1
   19445 _ACEOF
   19446 
   19447 fi
   19448 
   19449 done
   19450 
   19451 		for ac_header in edit/readline/history.h
   19452 do :
   19453   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   19454 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   19455   cat >>confdefs.h <<_ACEOF
   19456 #define HAVE_EDIT_READLINE_HISTORY_H 1
   19457 _ACEOF
   19458 
   19459 fi
   19460 
   19461 done
   19462 
   19463 		;;
   19464 	esac
   19465 	for ac_header in readline/readline.h
   19466 do :
   19467   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   19468 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   19469   cat >>confdefs.h <<_ACEOF
   19470 #define HAVE_READLINE_READLINE_H 1
   19471 _ACEOF
   19472 
   19473 fi
   19474 
   19475 done
   19476 
   19477 	for ac_header in readline/history.h
   19478 do :
   19479   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   19480 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   19481   cat >>confdefs.h <<_ACEOF
   19482 #define HAVE_READLINE_HISTORY_H 1
   19483 _ACEOF
   19484 
   19485 fi
   19486 
   19487 done
   19488 
   19489 fi
   19490 
   19491 #
   19492 # Use our own SPNEGO implementation?
   19493 #
   19494 # [pairwise: --enable-isc-spnego, --disable-isc-spnego]
   19495 # Check whether --enable-isc-spnego was given.
   19496 if test "${enable_isc_spnego+set}" = set; then :
   19497   enableval=$enable_isc_spnego;
   19498 fi
   19499 
   19500 
   19501 if test -n "$USE_GSSAPI"
   19502 then
   19503 	case "$enable_isc_spnego" in
   19504 		yes|'')
   19505 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   19506 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   19507 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   19508 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   19509 $as_echo "using SPNEGO from lib/dns" >&6; }
   19510 			;;
   19511 		no)
   19512 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   19513 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   19514 			;;
   19515 	esac
   19516 fi
   19517 
   19518 
   19519 
   19520 
   19521 
   19522 
   19523 #
   19524 # Security Stuff
   19525 #
   19526 # Note it is very recommended to *not* disable chroot(),
   19527 # this is only because chroot() was made obsolete by Posix.
   19528 #
   19529 # [pairwise: --enable-chroot, --disable-chroot]
   19530 # Check whether --enable-chroot was given.
   19531 if test "${enable_chroot+set}" = set; then :
   19532   enableval=$enable_chroot;
   19533 fi
   19534 
   19535 case "$enable_chroot" in
   19536 	yes|'')
   19537 		for ac_func in chroot
   19538 do :
   19539   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   19540 if test "x$ac_cv_func_chroot" = xyes; then :
   19541   cat >>confdefs.h <<_ACEOF
   19542 #define HAVE_CHROOT 1
   19543 _ACEOF
   19544 
   19545 fi
   19546 done
   19547 
   19548 		;;
   19549 	no)
   19550 		;;
   19551 esac
   19552 
   19553 LIBCAP_LIBS=""
   19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   19555 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   19556 
   19557 # [pairwise: --enable-linux-caps, --disable-linux-caps]
   19558 # Check whether --enable-linux-caps was given.
   19559 if test "${enable_linux_caps+set}" = set; then :
   19560   enableval=$enable_linux_caps;
   19561 else
   19562   case $host in #(
   19563   *-linux*) :
   19564     enable_linux_caps=yes ;; #(
   19565   *) :
   19566     enable_linux_caps=no ;;
   19567 esac
   19568 fi
   19569 
   19570 
   19571 if test "$enable_linux_caps" = "yes"; then :
   19572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19573 $as_echo "yes" >&6; }
   19574        for ac_header in sys/capability.h
   19575 do :
   19576   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   19577 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   19578   cat >>confdefs.h <<_ACEOF
   19579 #define HAVE_SYS_CAPABILITY_H 1
   19580 _ACEOF
   19581 
   19582 else
   19583   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19584 fi
   19585 
   19586 done
   19587 
   19588 
   19589 
   19590   CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
   19591 
   19592 
   19593 
   19594   CFLAGS_cap_ax_save_flags=$CFLAGS
   19595 
   19596 
   19597 
   19598   CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
   19599 
   19600 
   19601 
   19602   CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
   19603 
   19604 
   19605 
   19606   ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
   19607 
   19608 
   19609 
   19610   FCFLAGS_cap_ax_save_flags=$FCFLAGS
   19611 
   19612 
   19613 
   19614   FCLIBS_cap_ax_save_flags=$FCLIBS
   19615 
   19616 
   19617 
   19618   FFLAGS_cap_ax_save_flags=$FFLAGS
   19619 
   19620 
   19621 
   19622   FLIBS_cap_ax_save_flags=$FLIBS
   19623 
   19624 
   19625 
   19626   GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
   19627 
   19628 
   19629 
   19630   JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
   19631 
   19632 
   19633 
   19634   LDFLAGS_cap_ax_save_flags=$LDFLAGS
   19635 
   19636 
   19637 
   19638   LIBS_cap_ax_save_flags=$LIBS
   19639 
   19640 
   19641 
   19642   OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
   19643 
   19644 
   19645 
   19646   OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
   19647 
   19648 
   19649 
   19650   UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
   19651 
   19652 
   19653 
   19654   VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
   19655 
   19656 
   19657 
   19658        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   19659 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   19660 if ${ac_cv_search_cap_set_proc+:} false; then :
   19661   $as_echo_n "(cached) " >&6
   19662 else
   19663   ac_func_search_save_LIBS=$LIBS
   19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19665 /* end confdefs.h.  */
   19666 
   19667 /* Override any GCC internal prototype to avoid an error.
   19668    Use char because int might match the return type of a GCC
   19669    builtin and then its argument prototype would still apply.  */
   19670 #ifdef __cplusplus
   19671 extern "C"
   19672 #endif
   19673 char cap_set_proc ();
   19674 int
   19675 main ()
   19676 {
   19677 return cap_set_proc ();
   19678   ;
   19679   return 0;
   19680 }
   19681 _ACEOF
   19682 for ac_lib in '' cap; do
   19683   if test -z "$ac_lib"; then
   19684     ac_res="none required"
   19685   else
   19686     ac_res=-l$ac_lib
   19687     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19688   fi
   19689   if ac_fn_c_try_link "$LINENO"; then :
   19690   ac_cv_search_cap_set_proc=$ac_res
   19691 fi
   19692 rm -f core conftest.err conftest.$ac_objext \
   19693     conftest$ac_exeext
   19694   if ${ac_cv_search_cap_set_proc+:} false; then :
   19695   break
   19696 fi
   19697 done
   19698 if ${ac_cv_search_cap_set_proc+:} false; then :
   19699 
   19700 else
   19701   ac_cv_search_cap_set_proc=no
   19702 fi
   19703 rm conftest.$ac_ext
   19704 LIBS=$ac_func_search_save_LIBS
   19705 fi
   19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   19707 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   19708 ac_res=$ac_cv_search_cap_set_proc
   19709 if test "$ac_res" != no; then :
   19710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19711   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   19712 else
   19713   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19714 fi
   19715 
   19716 
   19717   CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
   19718 
   19719 
   19720   CFLAGS=$CFLAGS_cap_ax_save_flags
   19721 
   19722 
   19723   CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
   19724 
   19725 
   19726   CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
   19727 
   19728 
   19729   ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
   19730 
   19731 
   19732   FCFLAGS=$FCFLAGS_cap_ax_save_flags
   19733 
   19734 
   19735   FCLIBS=$FCLIBS_cap_ax_save_flags
   19736 
   19737 
   19738   FFLAGS=$FFLAGS_cap_ax_save_flags
   19739 
   19740 
   19741   FLIBS=$FLIBS_cap_ax_save_flags
   19742 
   19743 
   19744   GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
   19745 
   19746 
   19747   JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
   19748 
   19749 
   19750   LDFLAGS=$LDFLAGS_cap_ax_save_flags
   19751 
   19752 
   19753   LIBS=$LIBS_cap_ax_save_flags
   19754 
   19755 
   19756   OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
   19757 
   19758 
   19759   OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
   19760 
   19761 
   19762   UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
   19763 
   19764 
   19765   VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
   19766 
   19767 
   19768 
   19769 else
   19770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19771 $as_echo "no" >&6; }
   19772 fi
   19773 
   19774 
   19775 for ac_header in sys/un.h
   19776 do :
   19777   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   19778 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   19779   cat >>confdefs.h <<_ACEOF
   19780 #define HAVE_SYS_UN_H 1
   19781 _ACEOF
   19782  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   19783 
   19784 else
   19785   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   19786 
   19787 fi
   19788 
   19789 done
   19790 
   19791 
   19792 
   19793 case "$host" in
   19794 *-solaris*)
   19795 
   19796 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   19797 
   19798 	;;
   19799 esac
   19800 
   19801 #
   19802 # Time Zone Stuff
   19803 #
   19804 for ac_func in tzset
   19805 do :
   19806   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   19807 if test "x$ac_cv_func_tzset" = xyes; then :
   19808   cat >>confdefs.h <<_ACEOF
   19809 #define HAVE_TZSET 1
   19810 _ACEOF
   19811 
   19812 fi
   19813 done
   19814 
   19815 
   19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   19817 $as_echo_n "checking for optarg declaration... " >&6; }
   19818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19819 /* end confdefs.h.  */
   19820 
   19821 #include <unistd.h>
   19822 
   19823 int
   19824 main ()
   19825 {
   19826 optarg = 0;
   19827   ;
   19828   return 0;
   19829 }
   19830 _ACEOF
   19831 if ac_fn_c_try_compile "$LINENO"; then :
   19832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19833 $as_echo "yes" >&6; }
   19834 else
   19835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19836 $as_echo "no" >&6; }
   19837 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   19838 
   19839 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   19840 
   19841 fi
   19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19843 
   19844 #
   19845 # Check for nanoseconds in file stats
   19846 #
   19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   19848 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   19849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19850 /* end confdefs.h.  */
   19851 #include <sys/fcntl.h>
   19852 int
   19853 main ()
   19854 {
   19855 struct stat s;
   19856        return(s.st_mtim.tv_nsec);
   19857 
   19858   ;
   19859   return 0;
   19860 }
   19861 _ACEOF
   19862 if ac_fn_c_try_compile "$LINENO"; then :
   19863 
   19864 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   19865 
   19866 fi
   19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19868 
   19869 #
   19870 # Check for if_nametoindex() for IPv6 scoped addresses support
   19871 #
   19872 for ac_func in if_nametoindex
   19873 do :
   19874   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   19875 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   19876   cat >>confdefs.h <<_ACEOF
   19877 #define HAVE_IF_NAMETOINDEX 1
   19878 _ACEOF
   19879 
   19880 fi
   19881 done
   19882 
   19883 
   19884 for ac_func in nanosleep usleep explicit_bzero
   19885 do :
   19886   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19887 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19888 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19889   cat >>confdefs.h <<_ACEOF
   19890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19891 _ACEOF
   19892 
   19893 fi
   19894 done
   19895 
   19896 
   19897 ISC_ATOMIC_LIBS=""
   19898 for ac_header in stdatomic.h
   19899 do :
   19900   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   19901 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   19902   cat >>confdefs.h <<_ACEOF
   19903 #define HAVE_STDATOMIC_H 1
   19904 _ACEOF
   19905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   19906 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   19907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19908 /* end confdefs.h.  */
   19909 #include <stdatomic.h>
   19910 int
   19911 main ()
   19912 {
   19913 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19914 
   19915   ;
   19916   return 0;
   19917 }
   19918 _ACEOF
   19919 if ac_fn_c_try_compile "$LINENO"; then :
   19920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   19921 $as_echo "stdatomic.h" >&6; }
   19922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   19923 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   19924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19925 /* end confdefs.h.  */
   19926 #include <stdatomic.h>
   19927 int
   19928 main ()
   19929 {
   19930 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19931 
   19932   ;
   19933   return 0;
   19934 }
   19935 _ACEOF
   19936 if ac_fn_c_try_link "$LINENO"; then :
   19937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19938 $as_echo "no" >&6; }
   19939 else
   19940   ISC_ATOMIC_LIBS="-latomic"
   19941 
   19942 
   19943   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   19944 
   19945 
   19946 
   19947   CFLAGS_atomic_ax_save_flags=$CFLAGS
   19948 
   19949 
   19950 
   19951   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   19952 
   19953 
   19954 
   19955   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   19956 
   19957 
   19958 
   19959   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   19960 
   19961 
   19962 
   19963   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   19964 
   19965 
   19966 
   19967   FCLIBS_atomic_ax_save_flags=$FCLIBS
   19968 
   19969 
   19970 
   19971   FFLAGS_atomic_ax_save_flags=$FFLAGS
   19972 
   19973 
   19974 
   19975   FLIBS_atomic_ax_save_flags=$FLIBS
   19976 
   19977 
   19978 
   19979   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   19980 
   19981 
   19982 
   19983   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   19984 
   19985 
   19986 
   19987   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   19988 
   19989 
   19990 
   19991   LIBS_atomic_ax_save_flags=$LIBS
   19992 
   19993 
   19994 
   19995   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   19996 
   19997 
   19998 
   19999   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   20000 
   20001 
   20002 
   20003   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   20004 
   20005 
   20006 
   20007   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   20008 
   20009 
   20010 
   20011 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20012 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20013 /* end confdefs.h.  */
   20014 #include <stdatomic.h>
   20015 int
   20016 main ()
   20017 {
   20018 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   20019 
   20020   ;
   20021   return 0;
   20022 }
   20023 _ACEOF
   20024 if ac_fn_c_try_link "$LINENO"; then :
   20025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20026 $as_echo "yes" >&6; }
   20027 else
   20028   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20030 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   20031 See \`config.log' for more details" "$LINENO" 5; }
   20032 fi
   20033 rm -f core conftest.err conftest.$ac_objext \
   20034     conftest$ac_exeext conftest.$ac_ext
   20035 
   20036   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   20037 
   20038 
   20039   CFLAGS=$CFLAGS_atomic_ax_save_flags
   20040 
   20041 
   20042   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   20043 
   20044 
   20045   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   20046 
   20047 
   20048   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   20049 
   20050 
   20051   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   20052 
   20053 
   20054   FCLIBS=$FCLIBS_atomic_ax_save_flags
   20055 
   20056 
   20057   FFLAGS=$FFLAGS_atomic_ax_save_flags
   20058 
   20059 
   20060   FLIBS=$FLIBS_atomic_ax_save_flags
   20061 
   20062 
   20063   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   20064 
   20065 
   20066   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   20067 
   20068 
   20069   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   20070 
   20071 
   20072   LIBS=$LIBS_atomic_ax_save_flags
   20073 
   20074 
   20075   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   20076 
   20077 
   20078   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   20079 
   20080 
   20081   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   20082 
   20083 
   20084   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   20085 
   20086 
   20087 
   20088 
   20089 fi
   20090 rm -f core conftest.err conftest.$ac_objext \
   20091     conftest$ac_exeext conftest.$ac_ext
   20092 
   20093 else
   20094   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20096 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
   20097 See \`config.log' for more details" "$LINENO" 5; }
   20098 
   20099 fi
   20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20101 else
   20102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   20103 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   20104    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20105 /* end confdefs.h.  */
   20106 #include <inttypes.h>
   20107 int
   20108 main ()
   20109 {
   20110 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20111 
   20112   ;
   20113   return 0;
   20114 }
   20115 _ACEOF
   20116 if ac_fn_c_try_compile "$LINENO"; then :
   20117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   20118 $as_echo "__atomic builtins" >&6; }
   20119 
   20120 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   20121 
   20122       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   20123 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   20124       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20125 /* end confdefs.h.  */
   20126 #include <inttypes.h>
   20127 int
   20128 main ()
   20129 {
   20130 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20131 
   20132   ;
   20133   return 0;
   20134 }
   20135 _ACEOF
   20136 if ac_fn_c_try_link "$LINENO"; then :
   20137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20138 $as_echo "no" >&6; }
   20139 else
   20140   ISC_ATOMIC_LIBS="-latomic"
   20141 
   20142 
   20143   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   20144 
   20145 
   20146 
   20147   CFLAGS_atomic_ax_save_flags=$CFLAGS
   20148 
   20149 
   20150 
   20151   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   20152 
   20153 
   20154 
   20155   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   20156 
   20157 
   20158 
   20159   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   20160 
   20161 
   20162 
   20163   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   20164 
   20165 
   20166 
   20167   FCLIBS_atomic_ax_save_flags=$FCLIBS
   20168 
   20169 
   20170 
   20171   FFLAGS_atomic_ax_save_flags=$FFLAGS
   20172 
   20173 
   20174 
   20175   FLIBS_atomic_ax_save_flags=$FLIBS
   20176 
   20177 
   20178 
   20179   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   20180 
   20181 
   20182 
   20183   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   20184 
   20185 
   20186 
   20187   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   20188 
   20189 
   20190 
   20191   LIBS_atomic_ax_save_flags=$LIBS
   20192 
   20193 
   20194 
   20195   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   20196 
   20197 
   20198 
   20199   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   20200 
   20201 
   20202 
   20203   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   20204 
   20205 
   20206 
   20207   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   20208 
   20209 
   20210 
   20211 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20212 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20213 /* end confdefs.h.  */
   20214 #include <inttypes.h>
   20215 int
   20216 main ()
   20217 {
   20218 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   20219 
   20220   ;
   20221   return 0;
   20222 }
   20223 _ACEOF
   20224 if ac_fn_c_try_link "$LINENO"; then :
   20225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20226 $as_echo "yes" >&6; }
   20227 else
   20228   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   20229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   20230 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   20231 See \`config.log' for more details" "$LINENO" 5; }
   20232 fi
   20233 rm -f core conftest.err conftest.$ac_objext \
   20234     conftest$ac_exeext conftest.$ac_ext
   20235 
   20236   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   20237 
   20238 
   20239   CFLAGS=$CFLAGS_atomic_ax_save_flags
   20240 
   20241 
   20242   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   20243 
   20244 
   20245   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   20246 
   20247 
   20248   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   20249 
   20250 
   20251   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   20252 
   20253 
   20254   FCLIBS=$FCLIBS_atomic_ax_save_flags
   20255 
   20256 
   20257   FFLAGS=$FFLAGS_atomic_ax_save_flags
   20258 
   20259 
   20260   FLIBS=$FLIBS_atomic_ax_save_flags
   20261 
   20262 
   20263   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   20264 
   20265 
   20266   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   20267 
   20268 
   20269   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   20270 
   20271 
   20272   LIBS=$LIBS_atomic_ax_save_flags
   20273 
   20274 
   20275   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   20276 
   20277 
   20278   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   20279 
   20280 
   20281   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   20282 
   20283 
   20284   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   20285 
   20286 
   20287 
   20288 
   20289 fi
   20290 rm -f core conftest.err conftest.$ac_objext \
   20291     conftest$ac_exeext conftest.$ac_ext
   20292 
   20293 else
   20294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   20295 $as_echo "__sync builtins" >&6; }
   20296 
   20297 fi
   20298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20299 
   20300 fi
   20301 
   20302 done
   20303 
   20304 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   20305 
   20306 for ac_header in stdalign.h
   20307 do :
   20308   ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
   20309 if test "x$ac_cv_header_stdalign_h" = xyes; then :
   20310   cat >>confdefs.h <<_ACEOF
   20311 #define HAVE_STDALIGN_H 1
   20312 _ACEOF
   20313 
   20314 fi
   20315 
   20316 done
   20317 
   20318 
   20319 for ac_header in uchar.h
   20320 do :
   20321   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   20322 if test "x$ac_cv_header_uchar_h" = xyes; then :
   20323   cat >>confdefs.h <<_ACEOF
   20324 #define HAVE_UCHAR_H 1
   20325 _ACEOF
   20326 
   20327 fi
   20328 
   20329 done
   20330 
   20331 
   20332 #
   20333 # Check for __builtin_unreachable
   20334 #
   20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   20336 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20338 /* end confdefs.h.  */
   20339 
   20340 int
   20341 main ()
   20342 {
   20343 __builtin_unreachable();
   20344 
   20345   ;
   20346   return 0;
   20347 }
   20348 _ACEOF
   20349 if ac_fn_c_try_link "$LINENO"; then :
   20350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20351 $as_echo "yes" >&6; }
   20352 
   20353 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   20354 
   20355 
   20356 else
   20357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20358 $as_echo "no" >&6; }
   20359 
   20360 fi
   20361 rm -f core conftest.err conftest.$ac_objext \
   20362     conftest$ac_exeext conftest.$ac_ext
   20363 
   20364 #
   20365 # Check for __builtin_expect
   20366 #
   20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   20368 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20370 /* end confdefs.h.  */
   20371 
   20372 int
   20373 main ()
   20374 {
   20375 
   20376 	return (__builtin_expect(1, 1) ? 1 : 0);
   20377 
   20378   ;
   20379   return 0;
   20380 }
   20381 _ACEOF
   20382 if ac_fn_c_try_link "$LINENO"; then :
   20383 
   20384 	have_builtin_expect=yes
   20385 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20386 $as_echo "yes" >&6; }
   20387 
   20388 else
   20389 
   20390 	have_builtin_expect=no
   20391 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20392 $as_echo "no" >&6; }
   20393 
   20394 fi
   20395 rm -f core conftest.err conftest.$ac_objext \
   20396     conftest$ac_exeext conftest.$ac_ext
   20397 if test "yes" = "$have_builtin_expect"; then
   20398 
   20399 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   20400 
   20401 fi
   20402 
   20403 #
   20404 # Check for __builtin_clz
   20405 #
   20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   20407 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20409 /* end confdefs.h.  */
   20410 
   20411 int
   20412 main ()
   20413 {
   20414 
   20415 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   20416 
   20417   ;
   20418   return 0;
   20419 }
   20420 _ACEOF
   20421 if ac_fn_c_try_link "$LINENO"; then :
   20422 
   20423 	have_builtin_clz=yes
   20424 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20425 $as_echo "yes" >&6; }
   20426 
   20427 else
   20428 
   20429 	have_builtin_clz=no
   20430 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20431 $as_echo "no" >&6; }
   20432 
   20433 fi
   20434 rm -f core conftest.err conftest.$ac_objext \
   20435     conftest$ac_exeext conftest.$ac_ext
   20436 if test "yes" = "$have_builtin_clz"; then
   20437 
   20438 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   20439 
   20440 fi
   20441 
   20442 #
   20443 # Activate "rrset-order fixed" or not?
   20444 #
   20445 # [pairwise: --enable-fixed-rrset, --disable-fixed-rrset]
   20446 # Check whether --enable-fixed-rrset was given.
   20447 if test "${enable_fixed_rrset+set}" = set; then :
   20448   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   20449 else
   20450   enable_fixed="no"
   20451 fi
   20452 
   20453 case "$enable_fixed" in
   20454 	yes)
   20455 
   20456 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   20457 
   20458 		;;
   20459 	no)
   20460 		;;
   20461 	*)
   20462 		;;
   20463 esac
   20464 
   20465 #
   20466 # Activate dnstap?
   20467 #
   20468 # [pairwise: --enable-dnstap, --disable-dnstap]
   20469 # Check whether --enable-dnstap was given.
   20470 if test "${enable_dnstap+set}" = set; then :
   20471   enableval=$enable_dnstap; use_dnstap=$enableval
   20472 else
   20473   use_dnstap=no
   20474 fi
   20475 
   20476 
   20477 DNSTAP=
   20478 DNSTAPSRCS=
   20479 DNSTAPOBJS=
   20480 DNSTAPTARGETS=
   20481 if test "x$use_dnstap" != "xno"; then
   20482 
   20483 	# [pairwise: skip]
   20484 
   20485 # Check whether --with-protobuf-c was given.
   20486 if test "${with_protobuf_c+set}" = set; then :
   20487   withval=$with_protobuf_c;
   20488 	    # workaround for protobuf-c includes at old dir
   20489 	    # before protobuf-c-1.0.0
   20490 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   20491 	    then
   20492 		PROTOBUF_C_CFLAGS="-I$withval/include/google"
   20493 	    else
   20494 		PROTOBUF_C_CFLAGS="-I$withval/include"
   20495 	    fi
   20496 	    PROTOBUF_C_LIBS="-L$withval/lib"
   20497 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20498 set dummy protoc-c; ac_word=$2
   20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20500 $as_echo_n "checking for $ac_word... " >&6; }
   20501 if ${ac_cv_path_PROTOC_C+:} false; then :
   20502   $as_echo_n "(cached) " >&6
   20503 else
   20504   case $PROTOC_C in
   20505   [\\/]* | ?:[\\/]*)
   20506   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20507   ;;
   20508   *)
   20509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20510 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20511 do
   20512   IFS=$as_save_IFS
   20513   test -z "$as_dir" && as_dir=.
   20514     for ac_exec_ext in '' $ac_executable_extensions; do
   20515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20516     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20518     break 2
   20519   fi
   20520 done
   20521   done
   20522 IFS=$as_save_IFS
   20523 
   20524   ;;
   20525 esac
   20526 fi
   20527 PROTOC_C=$ac_cv_path_PROTOC_C
   20528 if test -n "$PROTOC_C"; then
   20529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20530 $as_echo "$PROTOC_C" >&6; }
   20531 else
   20532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20533 $as_echo "no" >&6; }
   20534 fi
   20535 
   20536 
   20537 
   20538 else
   20539 
   20540 	    # workaround for protobuf-c includes at old dir
   20541 	    # before protobuf-c-1.0.0
   20542 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   20543 	    then
   20544 		PROTOBUF_C_CFLAGS="-I/usr/include/google"
   20545 	    else
   20546 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   20547 		then
   20548 		    PROTOBUF_C_CFLAGS="-I/usr/local/include/google"
   20549 		    PROTOBUF_C_LIBS="-L/usr/local/lib"
   20550 		elif test -f /opt/local/include/google/protobuf-c/protobuf-c.h
   20551 		then
   20552 		    PROTOBUF_C_CFLAGS="-I/opt/local/include/google"
   20553 		    PROTOBUF_C_LIBS="-L/opt/local/lib"
   20554 		fi
   20555 	    fi
   20556 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20557 set dummy protoc-c; ac_word=$2
   20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20559 $as_echo_n "checking for $ac_word... " >&6; }
   20560 if ${ac_cv_path_PROTOC_C+:} false; then :
   20561   $as_echo_n "(cached) " >&6
   20562 else
   20563   case $PROTOC_C in
   20564   [\\/]* | ?:[\\/]*)
   20565   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20566   ;;
   20567   *)
   20568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20569 for as_dir in $PATH
   20570 do
   20571   IFS=$as_save_IFS
   20572   test -z "$as_dir" && as_dir=.
   20573     for ac_exec_ext in '' $ac_executable_extensions; do
   20574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20575     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20577     break 2
   20578   fi
   20579 done
   20580   done
   20581 IFS=$as_save_IFS
   20582 
   20583   ;;
   20584 esac
   20585 fi
   20586 PROTOC_C=$ac_cv_path_PROTOC_C
   20587 if test -n "$PROTOC_C"; then
   20588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20589 $as_echo "$PROTOC_C" >&6; }
   20590 else
   20591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20592 $as_echo "no" >&6; }
   20593 fi
   20594 
   20595 
   20596 
   20597 fi
   20598 
   20599 	if test -z "$PROTOC_C"; then
   20600 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   20601 	fi
   20602 
   20603 	# [pairwise: skip]
   20604 
   20605 # Check whether --with-libfstrm was given.
   20606 if test "${with_libfstrm+set}" = set; then :
   20607   withval=$with_libfstrm;
   20608 	    FSTRM_CFLAGS="-I$withval/include"
   20609 	    FSTRM_LIBS="-L$withval/lib"
   20610 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   20611 set dummy fstrm_capture; ac_word=$2
   20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20613 $as_echo_n "checking for $ac_word... " >&6; }
   20614 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20615   $as_echo_n "(cached) " >&6
   20616 else
   20617   case $FSTRM_CAPTURE in
   20618   [\\/]* | ?:[\\/]*)
   20619   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20620   ;;
   20621   *)
   20622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20623 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20624 do
   20625   IFS=$as_save_IFS
   20626   test -z "$as_dir" && as_dir=.
   20627     for ac_exec_ext in '' $ac_executable_extensions; do
   20628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20629     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20631     break 2
   20632   fi
   20633 done
   20634   done
   20635 IFS=$as_save_IFS
   20636 
   20637   ;;
   20638 esac
   20639 fi
   20640 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20641 if test -n "$FSTRM_CAPTURE"; then
   20642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20643 $as_echo "$FSTRM_CAPTURE" >&6; }
   20644 else
   20645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20646 $as_echo "no" >&6; }
   20647 fi
   20648 
   20649 
   20650 
   20651 else
   20652 
   20653 	    for d in /usr /usr/local /opt/local
   20654 	    do
   20655 		if test -f "${d}/include/fstrm.h"
   20656 		then
   20657 		    if test ${d} != /usr
   20658 		    then
   20659 			FSTRM_CFLAGS="-I${d}/include"
   20660 			FSTRM_LIBS="-L${d}/lib"
   20661 		    fi
   20662 		    have_fstrm="$d"
   20663 		    break
   20664 		fi
   20665 	    done
   20666 	    if test -z "$have_fstrm"; then
   20667 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20668 set dummy fstrm_capture; ac_word=$2
   20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20670 $as_echo_n "checking for $ac_word... " >&6; }
   20671 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20672   $as_echo_n "(cached) " >&6
   20673 else
   20674   case $FSTRM_CAPTURE in
   20675   [\\/]* | ?:[\\/]*)
   20676   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20677   ;;
   20678   *)
   20679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20680 for as_dir in $PATH
   20681 do
   20682   IFS=$as_save_IFS
   20683   test -z "$as_dir" && as_dir=.
   20684     for ac_exec_ext in '' $ac_executable_extensions; do
   20685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20686     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20688     break 2
   20689   fi
   20690 done
   20691   done
   20692 IFS=$as_save_IFS
   20693 
   20694   ;;
   20695 esac
   20696 fi
   20697 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20698 if test -n "$FSTRM_CAPTURE"; then
   20699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20700 $as_echo "$FSTRM_CAPTURE" >&6; }
   20701 else
   20702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20703 $as_echo "no" >&6; }
   20704 fi
   20705 
   20706 
   20707 	    else
   20708 		# Extract the first word of "fstrm_capture", so it can be a program name with args.
   20709 set dummy fstrm_capture; ac_word=$2
   20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20711 $as_echo_n "checking for $ac_word... " >&6; }
   20712 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20713   $as_echo_n "(cached) " >&6
   20714 else
   20715   case $FSTRM_CAPTURE in
   20716   [\\/]* | ?:[\\/]*)
   20717   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20718   ;;
   20719   *)
   20720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20721 for as_dir in $PATH$PATH_SEPARATOR$have_fstrm/bin
   20722 do
   20723   IFS=$as_save_IFS
   20724   test -z "$as_dir" && as_dir=.
   20725     for ac_exec_ext in '' $ac_executable_extensions; do
   20726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20727     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20729     break 2
   20730   fi
   20731 done
   20732   done
   20733 IFS=$as_save_IFS
   20734 
   20735   ;;
   20736 esac
   20737 fi
   20738 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20739 if test -n "$FSTRM_CAPTURE"; then
   20740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20741 $as_echo "$FSTRM_CAPTURE" >&6; }
   20742 else
   20743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20744 $as_echo "no" >&6; }
   20745 fi
   20746 
   20747 
   20748 	    fi
   20749 
   20750 fi
   20751 
   20752 
   20753 
   20754   CCASFLAGS_dnstap_ax_save_flags=$CCASFLAGS
   20755 
   20756 
   20757 
   20758   CFLAGS_dnstap_ax_save_flags=$CFLAGS
   20759 
   20760 
   20761 
   20762   CPPFLAGS_dnstap_ax_save_flags=$CPPFLAGS
   20763 
   20764 
   20765 
   20766   CXXFLAGS_dnstap_ax_save_flags=$CXXFLAGS
   20767 
   20768 
   20769 
   20770   ERLCFLAGS_dnstap_ax_save_flags=$ERLCFLAGS
   20771 
   20772 
   20773 
   20774   FCFLAGS_dnstap_ax_save_flags=$FCFLAGS
   20775 
   20776 
   20777 
   20778   FCLIBS_dnstap_ax_save_flags=$FCLIBS
   20779 
   20780 
   20781 
   20782   FFLAGS_dnstap_ax_save_flags=$FFLAGS
   20783 
   20784 
   20785 
   20786   FLIBS_dnstap_ax_save_flags=$FLIBS
   20787 
   20788 
   20789 
   20790   GCJFLAGS_dnstap_ax_save_flags=$GCJFLAGS
   20791 
   20792 
   20793 
   20794   JAVACFLAGS_dnstap_ax_save_flags=$JAVACFLAGS
   20795 
   20796 
   20797 
   20798   LDFLAGS_dnstap_ax_save_flags=$LDFLAGS
   20799 
   20800 
   20801 
   20802   LIBS_dnstap_ax_save_flags=$LIBS
   20803 
   20804 
   20805 
   20806   OBJCFLAGS_dnstap_ax_save_flags=$OBJCFLAGS
   20807 
   20808 
   20809 
   20810   OBJCXXFLAGS_dnstap_ax_save_flags=$OBJCXXFLAGS
   20811 
   20812 
   20813 
   20814   UPCFLAGS_dnstap_ax_save_flags=$UPCFLAGS
   20815 
   20816 
   20817 
   20818   VALAFLAGS_dnstap_ax_save_flags=$VALAFLAGS
   20819 
   20820 
   20821 
   20822 	CFLAGS="$CFLAGS $PROTOBUF_C_CFLAGS $FSTRM_CFLAGS"
   20823 	LIBS="$LDFLAGS $PROTOBUF_C_LIBS $FSTRM_LIBS"
   20824 
   20825 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   20826 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   20827 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20828   $as_echo_n "(cached) " >&6
   20829 else
   20830   ac_func_search_save_LIBS=$LIBS
   20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20832 /* end confdefs.h.  */
   20833 
   20834 /* Override any GCC internal prototype to avoid an error.
   20835    Use char because int might match the return type of a GCC
   20836    builtin and then its argument prototype would still apply.  */
   20837 #ifdef __cplusplus
   20838 extern "C"
   20839 #endif
   20840 char fstrm_iothr_init ();
   20841 int
   20842 main ()
   20843 {
   20844 return fstrm_iothr_init ();
   20845   ;
   20846   return 0;
   20847 }
   20848 _ACEOF
   20849 for ac_lib in '' fstrm; do
   20850   if test -z "$ac_lib"; then
   20851     ac_res="none required"
   20852   else
   20853     ac_res=-l$ac_lib
   20854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20855   fi
   20856   if ac_fn_c_try_link "$LINENO"; then :
   20857   ac_cv_search_fstrm_iothr_init=$ac_res
   20858 fi
   20859 rm -f core conftest.err conftest.$ac_objext \
   20860     conftest$ac_exeext
   20861   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20862   break
   20863 fi
   20864 done
   20865 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20866 
   20867 else
   20868   ac_cv_search_fstrm_iothr_init=no
   20869 fi
   20870 rm conftest.$ac_ext
   20871 LIBS=$ac_func_search_save_LIBS
   20872 fi
   20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   20874 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   20875 ac_res=$ac_cv_search_fstrm_iothr_init
   20876 if test "$ac_res" != no; then :
   20877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20878 
   20879 else
   20880   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   20881 fi
   20882 
   20883 	FSTRM_LIBS="$FSTRM_LIBS $ac_cv_search_fstrm_iothr_init"
   20884 
   20885 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   20886 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   20887 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20888   $as_echo_n "(cached) " >&6
   20889 else
   20890   ac_func_search_save_LIBS=$LIBS
   20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20892 /* end confdefs.h.  */
   20893 
   20894 /* Override any GCC internal prototype to avoid an error.
   20895    Use char because int might match the return type of a GCC
   20896    builtin and then its argument prototype would still apply.  */
   20897 #ifdef __cplusplus
   20898 extern "C"
   20899 #endif
   20900 char protobuf_c_message_pack ();
   20901 int
   20902 main ()
   20903 {
   20904 return protobuf_c_message_pack ();
   20905   ;
   20906   return 0;
   20907 }
   20908 _ACEOF
   20909 for ac_lib in '' protobuf-c; do
   20910   if test -z "$ac_lib"; then
   20911     ac_res="none required"
   20912   else
   20913     ac_res=-l$ac_lib
   20914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20915   fi
   20916   if ac_fn_c_try_link "$LINENO"; then :
   20917   ac_cv_search_protobuf_c_message_pack=$ac_res
   20918 fi
   20919 rm -f core conftest.err conftest.$ac_objext \
   20920     conftest$ac_exeext
   20921   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20922   break
   20923 fi
   20924 done
   20925 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20926 
   20927 else
   20928   ac_cv_search_protobuf_c_message_pack=no
   20929 fi
   20930 rm conftest.$ac_ext
   20931 LIBS=$ac_func_search_save_LIBS
   20932 fi
   20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   20934 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   20935 ac_res=$ac_cv_search_protobuf_c_message_pack
   20936 if test "$ac_res" != no; then :
   20937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20938 
   20939 else
   20940   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   20941 fi
   20942 
   20943 	PROTOBUF_C_LIBS="$PROTOBUF_C_LIBS $ac_cv_search_protobuf_c_message_pack"
   20944 
   20945 
   20946   CCASFLAGS=$CCASFLAGS_dnstap_ax_save_flags
   20947 
   20948 
   20949   CFLAGS=$CFLAGS_dnstap_ax_save_flags
   20950 
   20951 
   20952   CPPFLAGS=$CPPFLAGS_dnstap_ax_save_flags
   20953 
   20954 
   20955   CXXFLAGS=$CXXFLAGS_dnstap_ax_save_flags
   20956 
   20957 
   20958   ERLCFLAGS=$ERLCFLAGS_dnstap_ax_save_flags
   20959 
   20960 
   20961   FCFLAGS=$FCFLAGS_dnstap_ax_save_flags
   20962 
   20963 
   20964   FCLIBS=$FCLIBS_dnstap_ax_save_flags
   20965 
   20966 
   20967   FFLAGS=$FFLAGS_dnstap_ax_save_flags
   20968 
   20969 
   20970   FLIBS=$FLIBS_dnstap_ax_save_flags
   20971 
   20972 
   20973   GCJFLAGS=$GCJFLAGS_dnstap_ax_save_flags
   20974 
   20975 
   20976   JAVACFLAGS=$JAVACFLAGS_dnstap_ax_save_flags
   20977 
   20978 
   20979   LDFLAGS=$LDFLAGS_dnstap_ax_save_flags
   20980 
   20981 
   20982   LIBS=$LIBS_dnstap_ax_save_flags
   20983 
   20984 
   20985   OBJCFLAGS=$OBJCFLAGS_dnstap_ax_save_flags
   20986 
   20987 
   20988   OBJCXXFLAGS=$OBJCXXFLAGS_dnstap_ax_save_flags
   20989 
   20990 
   20991   UPCFLAGS=$UPCFLAGS_dnstap_ax_save_flags
   20992 
   20993 
   20994   VALAFLAGS=$VALAFLAGS_dnstap_ax_save_flags
   20995 
   20996 
   20997 
   20998 
   20999 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   21000 
   21001 	DNSTAP=dnstap
   21002 	DNSTAPSRCS='${DNSTAPSRCS}'
   21003 	DNSTAPOBJS='${DNSTAPOBJS}'
   21004 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   21005 	DNSTAP_MANS='${dnstap_man1_MANS}'
   21006 fi
   21007 
   21008 
   21009 
   21010 
   21011 
   21012 
   21013 
   21014 
   21015 
   21016 
   21017 #
   21018 #  The following sets up how non-blocking i/o is established.
   21019 #  cygwin and solaris 2.x (x<5) require special handling.
   21020 #
   21021 case "$host" in
   21022 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   21023 ;;
   21024 *-solaris2.[01234])
   21025 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   21026 
   21027 
   21028 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   21029 
   21030 	;;
   21031 *)
   21032 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   21033 
   21034 	;;
   21035 esac
   21036 #
   21037 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   21038 # This prevents the source address being set.
   21039 #
   21040 case "$host" in
   21041 *-solaris2.[012345]|*-solaris2.5.1)
   21042 
   21043 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   21044 
   21045 	;;
   21046 esac
   21047 #
   21048 # The following sections deal with tools used for formatting
   21049 # the documentation.  They are all optional, unless you are
   21050 # a developer editing the documentation source.
   21051 #
   21052 
   21053 #
   21054 # The following sections deal with tools used for formatting
   21055 # the documentation.  They are all optional, unless you are
   21056 # a developer editing the documentation source.
   21057 #
   21058 
   21059 #
   21060 # Look for sphinx-build
   21061 #
   21062 
   21063 # Extract the first word of "sphinx-build", so it can be a program name with args.
   21064 set dummy sphinx-build; ac_word=$2
   21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21066 $as_echo_n "checking for $ac_word... " >&6; }
   21067 if ${ac_cv_path_SPHINX_BUILD+:} false; then :
   21068   $as_echo_n "(cached) " >&6
   21069 else
   21070   case $SPHINX_BUILD in
   21071   [\\/]* | ?:[\\/]*)
   21072   ac_cv_path_SPHINX_BUILD="$SPHINX_BUILD" # Let the user override the test with a path.
   21073   ;;
   21074   *)
   21075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21076 for as_dir in $PATH
   21077 do
   21078   IFS=$as_save_IFS
   21079   test -z "$as_dir" && as_dir=.
   21080     for ac_exec_ext in '' $ac_executable_extensions; do
   21081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21082     ac_cv_path_SPHINX_BUILD="$as_dir/$ac_word$ac_exec_ext"
   21083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21084     break 2
   21085   fi
   21086 done
   21087   done
   21088 IFS=$as_save_IFS
   21089 
   21090   test -z "$ac_cv_path_SPHINX_BUILD" && ac_cv_path_SPHINX_BUILD=":"
   21091   ;;
   21092 esac
   21093 fi
   21094 SPHINX_BUILD=$ac_cv_path_SPHINX_BUILD
   21095 if test -n "$SPHINX_BUILD"; then
   21096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_BUILD" >&5
   21097 $as_echo "$SPHINX_BUILD" >&6; }
   21098 else
   21099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21100 $as_echo "no" >&6; }
   21101 fi
   21102 
   21103 
   21104  if test "$SPHINX_BUILD" != ":"; then
   21105   HAVE_SPHINX_BUILD_TRUE=
   21106   HAVE_SPHINX_BUILD_FALSE='#'
   21107 else
   21108   HAVE_SPHINX_BUILD_TRUE='#'
   21109   HAVE_SPHINX_BUILD_FALSE=
   21110 fi
   21111 
   21112 
   21113 # Extract the first word of "xelatex", so it can be a program name with args.
   21114 set dummy xelatex; ac_word=$2
   21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21116 $as_echo_n "checking for $ac_word... " >&6; }
   21117 if ${ac_cv_path_XELATEX+:} false; then :
   21118   $as_echo_n "(cached) " >&6
   21119 else
   21120   case $XELATEX in
   21121   [\\/]* | ?:[\\/]*)
   21122   ac_cv_path_XELATEX="$XELATEX" # Let the user override the test with a path.
   21123   ;;
   21124   *)
   21125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21126 for as_dir in $PATH
   21127 do
   21128   IFS=$as_save_IFS
   21129   test -z "$as_dir" && as_dir=.
   21130     for ac_exec_ext in '' $ac_executable_extensions; do
   21131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21132     ac_cv_path_XELATEX="$as_dir/$ac_word$ac_exec_ext"
   21133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21134     break 2
   21135   fi
   21136 done
   21137   done
   21138 IFS=$as_save_IFS
   21139 
   21140   test -z "$ac_cv_path_XELATEX" && ac_cv_path_XELATEX=":"
   21141   ;;
   21142 esac
   21143 fi
   21144 XELATEX=$ac_cv_path_XELATEX
   21145 if test -n "$XELATEX"; then
   21146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XELATEX" >&5
   21147 $as_echo "$XELATEX" >&6; }
   21148 else
   21149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21150 $as_echo "no" >&6; }
   21151 fi
   21152 
   21153 
   21154 # Extract the first word of "latexmk", so it can be a program name with args.
   21155 set dummy latexmk; ac_word=$2
   21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21157 $as_echo_n "checking for $ac_word... " >&6; }
   21158 if ${ac_cv_path_LATEXMK+:} false; then :
   21159   $as_echo_n "(cached) " >&6
   21160 else
   21161   case $LATEXMK in
   21162   [\\/]* | ?:[\\/]*)
   21163   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21164   ;;
   21165   *)
   21166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21167 for as_dir in $PATH
   21168 do
   21169   IFS=$as_save_IFS
   21170   test -z "$as_dir" && as_dir=.
   21171     for ac_exec_ext in '' $ac_executable_extensions; do
   21172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21173     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21175     break 2
   21176   fi
   21177 done
   21178   done
   21179 IFS=$as_save_IFS
   21180 
   21181   test -z "$ac_cv_path_LATEXMK" && ac_cv_path_LATEXMK=":"
   21182   ;;
   21183 esac
   21184 fi
   21185 LATEXMK=$ac_cv_path_LATEXMK
   21186 if test -n "$LATEXMK"; then
   21187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21188 $as_echo "$LATEXMK" >&6; }
   21189 else
   21190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21191 $as_echo "no" >&6; }
   21192 fi
   21193 
   21194 
   21195  if test "$XELATEX" != ":" && test "$LATEXMK" != ":"; then
   21196   HAVE_XELATEX_TRUE=
   21197   HAVE_XELATEX_FALSE='#'
   21198 else
   21199   HAVE_XELATEX_TRUE='#'
   21200   HAVE_XELATEX_FALSE=
   21201 fi
   21202 
   21203 
   21204 #
   21205 # Pull release date from CHANGES file last modification date
   21206 # for reproducible builds
   21207 #
   21208 release_date=`date -r CHANGES +%Y-%m-%d`
   21209 RELEASE_DATE=$release_date
   21210 
   21211 
   21212 # Don't build the documentation if the sphinx-build is not present
   21213 PDFTARGET=
   21214 HTMLTARGET=
   21215 MANSRCS=
   21216 if test -n "$SPHINX_BUILD"; then :
   21217 
   21218 	  MANSRCS='$(MANPAGES_IN)'
   21219 	  HTMLTARGET='html dirhtml'
   21220 	  for ac_prog in pdflatex
   21221 do
   21222   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21223 set dummy $ac_prog; ac_word=$2
   21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21225 $as_echo_n "checking for $ac_word... " >&6; }
   21226 if ${ac_cv_path_PDFLATEX+:} false; then :
   21227   $as_echo_n "(cached) " >&6
   21228 else
   21229   case $PDFLATEX in
   21230   [\\/]* | ?:[\\/]*)
   21231   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   21232   ;;
   21233   *)
   21234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21235 for as_dir in $PATH
   21236 do
   21237   IFS=$as_save_IFS
   21238   test -z "$as_dir" && as_dir=.
   21239     for ac_exec_ext in '' $ac_executable_extensions; do
   21240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21241     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   21242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21243     break 2
   21244   fi
   21245 done
   21246   done
   21247 IFS=$as_save_IFS
   21248 
   21249   ;;
   21250 esac
   21251 fi
   21252 PDFLATEX=$ac_cv_path_PDFLATEX
   21253 if test -n "$PDFLATEX"; then
   21254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   21255 $as_echo "$PDFLATEX" >&6; }
   21256 else
   21257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21258 $as_echo "no" >&6; }
   21259 fi
   21260 
   21261 
   21262   test -n "$PDFLATEX" && break
   21263 done
   21264 
   21265 	  for ac_prog in latexmk
   21266 do
   21267   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21268 set dummy $ac_prog; ac_word=$2
   21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21270 $as_echo_n "checking for $ac_word... " >&6; }
   21271 if ${ac_cv_path_LATEXMK+:} false; then :
   21272   $as_echo_n "(cached) " >&6
   21273 else
   21274   case $LATEXMK in
   21275   [\\/]* | ?:[\\/]*)
   21276   ac_cv_path_LATEXMK="$LATEXMK" # Let the user override the test with a path.
   21277   ;;
   21278   *)
   21279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21280 for as_dir in $PATH
   21281 do
   21282   IFS=$as_save_IFS
   21283   test -z "$as_dir" && as_dir=.
   21284     for ac_exec_ext in '' $ac_executable_extensions; do
   21285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21286     ac_cv_path_LATEXMK="$as_dir/$ac_word$ac_exec_ext"
   21287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21288     break 2
   21289   fi
   21290 done
   21291   done
   21292 IFS=$as_save_IFS
   21293 
   21294   ;;
   21295 esac
   21296 fi
   21297 LATEXMK=$ac_cv_path_LATEXMK
   21298 if test -n "$LATEXMK"; then
   21299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEXMK" >&5
   21300 $as_echo "$LATEXMK" >&6; }
   21301 else
   21302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21303 $as_echo "no" >&6; }
   21304 fi
   21305 
   21306 
   21307   test -n "$LATEXMK" && break
   21308 done
   21309 
   21310 	  if test -n "$PDFLATEX" && test -n "$LATEXMK"; then :
   21311 
   21312 		    PDFTARGET='pdf'
   21313 
   21314 fi
   21315 
   21316 fi
   21317 
   21318 
   21319 
   21320 
   21321 #
   21322 # Look for Doxygen
   21323 #
   21324 for ac_prog in doxygen
   21325 do
   21326   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21327 set dummy $ac_prog; ac_word=$2
   21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21329 $as_echo_n "checking for $ac_word... " >&6; }
   21330 if ${ac_cv_path_DOXYGEN+:} false; then :
   21331   $as_echo_n "(cached) " >&6
   21332 else
   21333   case $DOXYGEN in
   21334   [\\/]* | ?:[\\/]*)
   21335   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   21336   ;;
   21337   *)
   21338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21339 for as_dir in $PATH
   21340 do
   21341   IFS=$as_save_IFS
   21342   test -z "$as_dir" && as_dir=.
   21343     for ac_exec_ext in '' $ac_executable_extensions; do
   21344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21345     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   21346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21347     break 2
   21348   fi
   21349 done
   21350   done
   21351 IFS=$as_save_IFS
   21352 
   21353   ;;
   21354 esac
   21355 fi
   21356 DOXYGEN=$ac_cv_path_DOXYGEN
   21357 if test -n "$DOXYGEN"; then
   21358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   21359 $as_echo "$DOXYGEN" >&6; }
   21360 else
   21361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21362 $as_echo "no" >&6; }
   21363 fi
   21364 
   21365 
   21366   test -n "$DOXYGEN" && break
   21367 done
   21368 
   21369 
   21370 
   21371 #
   21372 # Look for curl
   21373 #
   21374 
   21375 # Extract the first word of "curl", so it can be a program name with args.
   21376 set dummy curl; ac_word=$2
   21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21378 $as_echo_n "checking for $ac_word... " >&6; }
   21379 if ${ac_cv_path_CURL+:} false; then :
   21380   $as_echo_n "(cached) " >&6
   21381 else
   21382   case $CURL in
   21383   [\\/]* | ?:[\\/]*)
   21384   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   21385   ;;
   21386   *)
   21387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21388 for as_dir in $PATH
   21389 do
   21390   IFS=$as_save_IFS
   21391   test -z "$as_dir" && as_dir=.
   21392     for ac_exec_ext in '' $ac_executable_extensions; do
   21393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21394     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   21395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21396     break 2
   21397   fi
   21398 done
   21399   done
   21400 IFS=$as_save_IFS
   21401 
   21402   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   21403   ;;
   21404 esac
   21405 fi
   21406 CURL=$ac_cv_path_CURL
   21407 if test -n "$CURL"; then
   21408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   21409 $as_echo "$CURL" >&6; }
   21410 else
   21411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21412 $as_echo "no" >&6; }
   21413 fi
   21414 
   21415 
   21416 
   21417 
   21418 #
   21419 # IDN support using libidn2
   21420 #
   21421 
   21422 LIBIDN2_CFLAGS=
   21423 LIBIDN2_LDFLAGS=
   21424 LIBIDN2_LIBS=
   21425 
   21426 # [pairwise: --with-libidn2=yes, --without-libidn2]
   21427 
   21428 # Check whether --with-libidn2 was given.
   21429 if test "${with_libidn2+set}" = set; then :
   21430   withval=$with_libidn2; with_libidn2="$withval"
   21431 else
   21432   with_libidn2="no"
   21433 fi
   21434 
   21435 case $with_libidn2 in #(
   21436   yes) :
   21437 
   21438 pkg_failed=no
   21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   21440 $as_echo_n "checking for libidn2... " >&6; }
   21441 
   21442 if test -n "$LIBIDN2_CFLAGS"; then
   21443     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   21444  elif test -n "$PKG_CONFIG"; then
   21445     if test -n "$PKG_CONFIG" && \
   21446     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21447   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21448   ac_status=$?
   21449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21450   test $ac_status = 0; }; then
   21451   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   21452 		      test "x$?" != "x0" && pkg_failed=yes
   21453 else
   21454   pkg_failed=yes
   21455 fi
   21456  else
   21457     pkg_failed=untried
   21458 fi
   21459 if test -n "$LIBIDN2_LIBS"; then
   21460     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   21461  elif test -n "$PKG_CONFIG"; then
   21462     if test -n "$PKG_CONFIG" && \
   21463     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21464   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21465   ac_status=$?
   21466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21467   test $ac_status = 0; }; then
   21468   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   21469 		      test "x$?" != "x0" && pkg_failed=yes
   21470 else
   21471   pkg_failed=yes
   21472 fi
   21473  else
   21474     pkg_failed=untried
   21475 fi
   21476 
   21477 
   21478 
   21479 if test $pkg_failed = yes; then
   21480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21481 $as_echo "no" >&6; }
   21482 
   21483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21484         _pkg_short_errors_supported=yes
   21485 else
   21486         _pkg_short_errors_supported=no
   21487 fi
   21488         if test $_pkg_short_errors_supported = yes; then
   21489 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   21490         else
   21491 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   21492         fi
   21493 	# Put the nasty error message in config.log where it belongs
   21494 	echo "$LIBIDN2_PKG_ERRORS" >&5
   21495 
   21496 	as_fn_error $? "Package requirements (libidn2) were not met:
   21497 
   21498 $LIBIDN2_PKG_ERRORS
   21499 
   21500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21501 installed software in a non-standard prefix.
   21502 
   21503 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21504 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21505 See the pkg-config man page for more details." "$LINENO" 5
   21506 elif test $pkg_failed = untried; then
   21507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21508 $as_echo "no" >&6; }
   21509 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21511 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21512 is in your PATH or set the PKG_CONFIG environment variable to the full
   21513 path to pkg-config.
   21514 
   21515 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21516 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21517 See the pkg-config man page for more details.
   21518 
   21519 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21520 See \`config.log' for more details" "$LINENO" 5; }
   21521 else
   21522 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   21523 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   21524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21525 $as_echo "yes" >&6; }
   21526 
   21527 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21528 
   21529 fi ;; #(
   21530   no) :
   21531      ;; #(
   21532   *) :
   21533 
   21534 
   21535   CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
   21536 
   21537 
   21538 
   21539   CFLAGS_libidn2_ax_save_flags=$CFLAGS
   21540 
   21541 
   21542 
   21543   CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
   21544 
   21545 
   21546 
   21547   CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
   21548 
   21549 
   21550 
   21551   ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
   21552 
   21553 
   21554 
   21555   FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
   21556 
   21557 
   21558 
   21559   FCLIBS_libidn2_ax_save_flags=$FCLIBS
   21560 
   21561 
   21562 
   21563   FFLAGS_libidn2_ax_save_flags=$FFLAGS
   21564 
   21565 
   21566 
   21567   FLIBS_libidn2_ax_save_flags=$FLIBS
   21568 
   21569 
   21570 
   21571   GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
   21572 
   21573 
   21574 
   21575   JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
   21576 
   21577 
   21578 
   21579   LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
   21580 
   21581 
   21582 
   21583   LIBS_libidn2_ax_save_flags=$LIBS
   21584 
   21585 
   21586 
   21587   OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
   21588 
   21589 
   21590 
   21591   OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
   21592 
   21593 
   21594 
   21595   UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
   21596 
   21597 
   21598 
   21599   VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
   21600 
   21601 
   21602 
   21603 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   21604 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   21605 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   21606 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   21607 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   21608 		 for ac_header in idn2.h
   21609 do :
   21610   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   21611 if test "x$ac_cv_header_idn2_h" = xyes; then :
   21612   cat >>confdefs.h <<_ACEOF
   21613 #define HAVE_IDN2_H 1
   21614 _ACEOF
   21615 
   21616 else
   21617   as_fn_error $? "idn2.h not found" "$LINENO" 5
   21618 fi
   21619 
   21620 done
   21621 
   21622 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   21623 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   21624 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21625   $as_echo_n "(cached) " >&6
   21626 else
   21627   ac_func_search_save_LIBS=$LIBS
   21628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21629 /* end confdefs.h.  */
   21630 
   21631 /* Override any GCC internal prototype to avoid an error.
   21632    Use char because int might match the return type of a GCC
   21633    builtin and then its argument prototype would still apply.  */
   21634 #ifdef __cplusplus
   21635 extern "C"
   21636 #endif
   21637 char idn2_to_ascii_lz ();
   21638 int
   21639 main ()
   21640 {
   21641 return idn2_to_ascii_lz ();
   21642   ;
   21643   return 0;
   21644 }
   21645 _ACEOF
   21646 for ac_lib in '' idn2; do
   21647   if test -z "$ac_lib"; then
   21648     ac_res="none required"
   21649   else
   21650     ac_res=-l$ac_lib
   21651     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21652   fi
   21653   if ac_fn_c_try_link "$LINENO"; then :
   21654   ac_cv_search_idn2_to_ascii_lz=$ac_res
   21655 fi
   21656 rm -f core conftest.err conftest.$ac_objext \
   21657     conftest$ac_exeext
   21658   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21659   break
   21660 fi
   21661 done
   21662 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21663 
   21664 else
   21665   ac_cv_search_idn2_to_ascii_lz=no
   21666 fi
   21667 rm conftest.$ac_ext
   21668 LIBS=$ac_func_search_save_LIBS
   21669 fi
   21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   21671 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   21672 ac_res=$ac_cv_search_idn2_to_ascii_lz
   21673 if test "$ac_res" != no; then :
   21674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21675   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   21676 
   21677 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21678 
   21679 else
   21680   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   21681 fi
   21682 
   21683 
   21684   CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
   21685 
   21686 
   21687   CFLAGS=$CFLAGS_libidn2_ax_save_flags
   21688 
   21689 
   21690   CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
   21691 
   21692 
   21693   CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
   21694 
   21695 
   21696   ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
   21697 
   21698 
   21699   FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
   21700 
   21701 
   21702   FCLIBS=$FCLIBS_libidn2_ax_save_flags
   21703 
   21704 
   21705   FFLAGS=$FFLAGS_libidn2_ax_save_flags
   21706 
   21707 
   21708   FLIBS=$FLIBS_libidn2_ax_save_flags
   21709 
   21710 
   21711   GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
   21712 
   21713 
   21714   JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
   21715 
   21716 
   21717   LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
   21718 
   21719 
   21720   LIBS=$LIBS_libidn2_ax_save_flags
   21721 
   21722 
   21723   OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
   21724 
   21725 
   21726   OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
   21727 
   21728 
   21729   UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
   21730 
   21731 
   21732   VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
   21733 
   21734 
   21735  ;; #(
   21736   *) :
   21737      ;;
   21738 esac
   21739 
   21740 
   21741 
   21742 
   21743 #
   21744 # Check whether to build with cmocka unit testing framework
   21745 #
   21746 # [pairwise: --with-cmocka=detect, --with-cmocka=yes, --without-cmocka]
   21747 
   21748 # Check whether --with-cmocka was given.
   21749 if test "${with_cmocka+set}" = set; then :
   21750   withval=$with_cmocka;
   21751 else
   21752   with_cmocka=detect
   21753 fi
   21754 
   21755 
   21756 case $with_cmocka in #(
   21757   no) :
   21758      ;; #(
   21759   detect) :
   21760 
   21761 pkg_failed=no
   21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21763 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21764 
   21765 if test -n "$CMOCKA_CFLAGS"; then
   21766     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21767  elif test -n "$PKG_CONFIG"; then
   21768     if test -n "$PKG_CONFIG" && \
   21769     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21770   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21771   ac_status=$?
   21772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21773   test $ac_status = 0; }; then
   21774   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21775 		      test "x$?" != "x0" && pkg_failed=yes
   21776 else
   21777   pkg_failed=yes
   21778 fi
   21779  else
   21780     pkg_failed=untried
   21781 fi
   21782 if test -n "$CMOCKA_LIBS"; then
   21783     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21784  elif test -n "$PKG_CONFIG"; then
   21785     if test -n "$PKG_CONFIG" && \
   21786     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21787   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21788   ac_status=$?
   21789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21790   test $ac_status = 0; }; then
   21791   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21792 		      test "x$?" != "x0" && pkg_failed=yes
   21793 else
   21794   pkg_failed=yes
   21795 fi
   21796  else
   21797     pkg_failed=untried
   21798 fi
   21799 
   21800 
   21801 
   21802 if test $pkg_failed = yes; then
   21803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21804 $as_echo "no" >&6; }
   21805 
   21806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21807         _pkg_short_errors_supported=yes
   21808 else
   21809         _pkg_short_errors_supported=no
   21810 fi
   21811         if test $_pkg_short_errors_supported = yes; then
   21812 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21813         else
   21814 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21815         fi
   21816 	# Put the nasty error message in config.log where it belongs
   21817 	echo "$CMOCKA_PKG_ERRORS" >&5
   21818 
   21819 	with_cmocka=no
   21820 elif test $pkg_failed = untried; then
   21821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21822 $as_echo "no" >&6; }
   21823 	with_cmocka=no
   21824 else
   21825 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21826 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21828 $as_echo "yes" >&6; }
   21829 
   21830 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21831 
   21832 fi ;; #(
   21833   yes) :
   21834 
   21835 pkg_failed=no
   21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21837 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21838 
   21839 if test -n "$CMOCKA_CFLAGS"; then
   21840     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21841  elif test -n "$PKG_CONFIG"; then
   21842     if test -n "$PKG_CONFIG" && \
   21843     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21844   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21845   ac_status=$?
   21846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21847   test $ac_status = 0; }; then
   21848   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21849 		      test "x$?" != "x0" && pkg_failed=yes
   21850 else
   21851   pkg_failed=yes
   21852 fi
   21853  else
   21854     pkg_failed=untried
   21855 fi
   21856 if test -n "$CMOCKA_LIBS"; then
   21857     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21858  elif test -n "$PKG_CONFIG"; then
   21859     if test -n "$PKG_CONFIG" && \
   21860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21861   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21862   ac_status=$?
   21863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21864   test $ac_status = 0; }; then
   21865   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21866 		      test "x$?" != "x0" && pkg_failed=yes
   21867 else
   21868   pkg_failed=yes
   21869 fi
   21870  else
   21871     pkg_failed=untried
   21872 fi
   21873 
   21874 
   21875 
   21876 if test $pkg_failed = yes; then
   21877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21878 $as_echo "no" >&6; }
   21879 
   21880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21881         _pkg_short_errors_supported=yes
   21882 else
   21883         _pkg_short_errors_supported=no
   21884 fi
   21885         if test $_pkg_short_errors_supported = yes; then
   21886 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21887         else
   21888 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21889         fi
   21890 	# Put the nasty error message in config.log where it belongs
   21891 	echo "$CMOCKA_PKG_ERRORS" >&5
   21892 
   21893 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   21894 
   21895 $CMOCKA_PKG_ERRORS
   21896 
   21897 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21898 installed software in a non-standard prefix.
   21899 
   21900 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21901 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21902 See the pkg-config man page for more details." "$LINENO" 5
   21903 elif test $pkg_failed = untried; then
   21904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21905 $as_echo "no" >&6; }
   21906 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21908 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21909 is in your PATH or set the PKG_CONFIG environment variable to the full
   21910 path to pkg-config.
   21911 
   21912 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21913 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21914 See the pkg-config man page for more details.
   21915 
   21916 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21917 See \`config.log' for more details" "$LINENO" 5; }
   21918 else
   21919 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21920 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21922 $as_echo "yes" >&6; }
   21923 
   21924 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21925 
   21926 fi ;; #(
   21927   *) :
   21928     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   21929         ;;
   21930 esac
   21931 
   21932 
   21933 
   21934 #
   21935 # Check for kyua execution engine if CMocka was requested
   21936 # and bail out if execution engine was not found
   21937 #
   21938 
   21939 if test "$with_cmocka" != "no"; then :
   21940   for ac_prog in kyua
   21941 do
   21942   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21943 set dummy $ac_prog; ac_word=$2
   21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21945 $as_echo_n "checking for $ac_word... " >&6; }
   21946 if ${ac_cv_path_KYUA+:} false; then :
   21947   $as_echo_n "(cached) " >&6
   21948 else
   21949   case $KYUA in
   21950   [\\/]* | ?:[\\/]*)
   21951   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   21952   ;;
   21953   *)
   21954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21955 for as_dir in $PATH
   21956 do
   21957   IFS=$as_save_IFS
   21958   test -z "$as_dir" && as_dir=.
   21959     for ac_exec_ext in '' $ac_executable_extensions; do
   21960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21961     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   21962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21963     break 2
   21964   fi
   21965 done
   21966   done
   21967 IFS=$as_save_IFS
   21968 
   21969   ;;
   21970 esac
   21971 fi
   21972 KYUA=$ac_cv_path_KYUA
   21973 if test -n "$KYUA"; then
   21974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   21975 $as_echo "$KYUA" >&6; }
   21976 else
   21977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21978 $as_echo "no" >&6; }
   21979 fi
   21980 
   21981 
   21982   test -n "$KYUA" && break
   21983 done
   21984 
   21985        if test -z "$KYUA"; then :
   21986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   21987 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   21988 else
   21989   UNITTESTS=tests
   21990 fi
   21991 fi
   21992 
   21993 
   21994 
   21995 #
   21996 # Check for -Wl,--wrap= support
   21997 #
   21998 
   21999 LD_WRAP_TESTS=false
   22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   22001 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   22002 
   22003 
   22004   CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
   22005 
   22006 
   22007 
   22008   CFLAGS_wrap_ax_save_flags=$CFLAGS
   22009 
   22010 
   22011 
   22012   CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
   22013 
   22014 
   22015 
   22016   CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
   22017 
   22018 
   22019 
   22020   ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
   22021 
   22022 
   22023 
   22024   FCFLAGS_wrap_ax_save_flags=$FCFLAGS
   22025 
   22026 
   22027 
   22028   FCLIBS_wrap_ax_save_flags=$FCLIBS
   22029 
   22030 
   22031 
   22032   FFLAGS_wrap_ax_save_flags=$FFLAGS
   22033 
   22034 
   22035 
   22036   FLIBS_wrap_ax_save_flags=$FLIBS
   22037 
   22038 
   22039 
   22040   GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
   22041 
   22042 
   22043 
   22044   JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
   22045 
   22046 
   22047 
   22048   LDFLAGS_wrap_ax_save_flags=$LDFLAGS
   22049 
   22050 
   22051 
   22052   LIBS_wrap_ax_save_flags=$LIBS
   22053 
   22054 
   22055 
   22056   OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
   22057 
   22058 
   22059 
   22060   OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
   22061 
   22062 
   22063 
   22064   UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
   22065 
   22066 
   22067 
   22068   VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
   22069 
   22070 
   22071 
   22072 LDFLAGS="-Wl,--wrap,exit"
   22073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22074 /* end confdefs.h.  */
   22075 #include <stdlib.h>
   22076 		       void __real_exit (int status);
   22077 		       void __wrap_exit (int status) { __real_exit (0); }
   22078 
   22079 int
   22080 main ()
   22081 {
   22082 exit (1);
   22083   ;
   22084   return 0;
   22085 }
   22086 _ACEOF
   22087 if ac_fn_c_try_link "$LINENO"; then :
   22088   LD_WRAP_TESTS=true
   22089 
   22090 $as_echo "#define LD_WRAP 1" >>confdefs.h
   22091 
   22092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22093 $as_echo "yes" >&6; }
   22094 else
   22095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22096 $as_echo "no" >&6; }
   22097 fi
   22098 rm -f core conftest.err conftest.$ac_objext \
   22099     conftest$ac_exeext conftest.$ac_ext
   22100 
   22101   CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
   22102 
   22103 
   22104   CFLAGS=$CFLAGS_wrap_ax_save_flags
   22105 
   22106 
   22107   CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
   22108 
   22109 
   22110   CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
   22111 
   22112 
   22113   ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
   22114 
   22115 
   22116   FCFLAGS=$FCFLAGS_wrap_ax_save_flags
   22117 
   22118 
   22119   FCLIBS=$FCLIBS_wrap_ax_save_flags
   22120 
   22121 
   22122   FFLAGS=$FFLAGS_wrap_ax_save_flags
   22123 
   22124 
   22125   FLIBS=$FLIBS_wrap_ax_save_flags
   22126 
   22127 
   22128   GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
   22129 
   22130 
   22131   JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
   22132 
   22133 
   22134   LDFLAGS=$LDFLAGS_wrap_ax_save_flags
   22135 
   22136 
   22137   LIBS=$LIBS_wrap_ax_save_flags
   22138 
   22139 
   22140   OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
   22141 
   22142 
   22143   OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
   22144 
   22145 
   22146   UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
   22147 
   22148 
   22149   VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
   22150 
   22151 
   22152 
   22153 
   22154 
   22155 
   22156 #
   22157 # Check for i18n
   22158 #
   22159 for ac_header in locale.h
   22160 do :
   22161   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   22162 if test "x$ac_cv_header_locale_h" = xyes; then :
   22163   cat >>confdefs.h <<_ACEOF
   22164 #define HAVE_LOCALE_H 1
   22165 _ACEOF
   22166 
   22167 fi
   22168 
   22169 done
   22170 
   22171 for ac_func in setlocale
   22172 do :
   22173   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   22174 if test "x$ac_cv_func_setlocale" = xyes; then :
   22175   cat >>confdefs.h <<_ACEOF
   22176 #define HAVE_SETLOCALE 1
   22177 _ACEOF
   22178 
   22179 fi
   22180 done
   22181 
   22182 
   22183 #
   22184 # was --with-tuning specified?
   22185 #
   22186 # [pairwise: --with-tuning=small, --without-tuning]
   22187 
   22188 # Check whether --with-tuning was given.
   22189 if test "${with_tuning+set}" = set; then :
   22190   withval=$with_tuning;
   22191 else
   22192   with_tuning=no
   22193 fi
   22194 
   22195 
   22196 case $with_tuning in #(
   22197   small) :
   22198     { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
   22199 $as_echo "$as_me: using small system tuning" >&6;} ;; #(
   22200   *) :
   22201 
   22202 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   22203 
   22204 	 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
   22205 $as_echo "$as_me: using default system tuning" >&6;} ;;
   22206 esac
   22207 
   22208 #
   22209 # was --enable-querytrace specified?
   22210 #
   22211 # [pairwise: --enable-querytrace, --disable-querytrace]
   22212 # Check whether --enable-querytrace was given.
   22213 if test "${enable_querytrace+set}" = set; then :
   22214   enableval=$enable_querytrace; want_querytrace="$enableval"
   22215 else
   22216   want_querytrace="no"
   22217 fi
   22218 
   22219 
   22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   22221 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   22222 case "$want_querytrace" in
   22223 yes)
   22224 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22225 $as_echo "yes" >&6; }
   22226 
   22227 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   22228 
   22229 	;;
   22230 no)
   22231 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22232 $as_echo "no" >&6; }
   22233 	;;
   22234 *)
   22235 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   22236 	;;
   22237 esac
   22238 
   22239 #
   22240 # Was --disable-auto-validation specified?
   22241 #
   22242 
   22243 validation_default=auto
   22244 
   22245 # [pairwise: --enable-auto-validation, --disable-auto-validation]
   22246 # Check whether --enable-auto-validation was given.
   22247 if test "${enable_auto_validation+set}" = set; then :
   22248   enableval=$enable_auto_validation; :
   22249 else
   22250   enable_auto_validation=yes
   22251 fi
   22252 
   22253 if test "$enable_auto_validation" = "no"; then :
   22254   validation_default=yes
   22255 fi
   22256 
   22257 cat >>confdefs.h <<_ACEOF
   22258 #define VALIDATION_DEFAULT "$validation_default"
   22259 _ACEOF
   22260 
   22261 
   22262 #
   22263 # Substitutions
   22264 #
   22265 
   22266 BIND9_TOP_BUILDDIR=`pwd`
   22267 
   22268 
   22269 
   22270 
   22271 
   22272 
   22273 
   22274 
   22275 if test "X$srcdir" != "X"; then
   22276 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   22277 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   22278 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   22279 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   22280 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   22281 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   22282 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   22283 else
   22284 	BIND9_ISC_BUILDINCLUDE=""
   22285 	BIND9_ISCCC_BUILDINCLUDE=""
   22286 	BIND9_ISCCFG_BUILDINCLUDE=""
   22287 	BIND9_DNS_BUILDINCLUDE=""
   22288 	BIND9_NS_BUILDINCLUDE=""
   22289 	BIND9_BIND9_BUILDINCLUDE=""
   22290 	BIND9_IRS_BUILDINCLUDE=""
   22291 fi
   22292 
   22293 
   22294 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   22295 
   22296 
   22297 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   22298 
   22299 . "$srcdir/version"
   22300 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   22301 
   22302 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   22303 
   22304 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22305 
   22306 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   22307 
   22308 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   22309 
   22310 
   22311 BIND9_SRCID="SRCID=unset_id"
   22312 if test -f "${srcdir}/srcid"; then
   22313 	. "${srcdir}/srcid"
   22314 	BIND9_SRCID="SRCID=$SRCID"
   22315 elif test -d "${srcdir}/.git"; then
   22316 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   22317 fi
   22318 
   22319 
   22320 
   22321 if test -z "$ac_configure_args"; then
   22322 	BIND9_CONFIGARGS="defaults"
   22323 else
   22324 	for a in $ac_configure_args
   22325 	do
   22326 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   22327 	done
   22328 fi
   22329 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   22330 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   22331 
   22332 
   22333 
   22334 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   22335 
   22336 #
   22337 # Configure any DLZ drivers.
   22338 #
   22339 # If config.dlz.in selects one or more DLZ drivers, it will set
   22340 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   22341 # build DLZ drivers in contrib.
   22342 #
   22343 # This section has to come after the libtool stuff because it needs to
   22344 # know how to name the driver object files.
   22345 #
   22346 
   22347 CONTRIB_DLZ=""
   22348 DLZ_DRIVER_INCLUDES=""
   22349 DLZ_DRIVER_LIBS=""
   22350 DLZ_DRIVER_SRCS=""
   22351 DLZ_DRIVER_OBJS=""
   22352 DLZ_SYSTEM_TEST=""
   22353 DLZ_DRIVER_MYSQL_INCLUDES=""
   22354 DLZ_DRIVER_MYSQL_LIBS=""
   22355 
   22356 #
   22357 # Configure support for building a shared library object
   22358 #
   22359 # Even when libtool is available it can't always be relied upon
   22360 # to build an object that can be dlopen()'ed, but this is necessary
   22361 # for building the dlzexternal system test, so we'll try it the
   22362 # old-fashioned way.
   22363 #
   22364 SO="so"
   22365 SO_CFLAGS=""
   22366 SO_LDFLAGS=""
   22367 SO_LD=""
   22368 SO_TARGETS=""
   22369 SO_STRIP="cat"
   22370 
   22371 # [pairwise: skip]
   22372 
   22373 # Check whether --with-dlopen was given.
   22374 if test "${with_dlopen+set}" = set; then :
   22375   withval=$with_dlopen;
   22376 else
   22377   with_dlopen="auto"
   22378 fi
   22379 
   22380 
   22381 
   22382 #
   22383 # If PIC is disabled, dlopen must also be
   22384 #
   22385 if test "$pic_mode" = "no"; then :
   22386   case $with_dlopen in #(
   22387   auto) :
   22388     with_dlopen="no" ;; #(
   22389   yes) :
   22390     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   22391   *) :
   22392      ;;
   22393 esac
   22394 fi
   22395 
   22396 case $with_dlopen in #(
   22397   auto|yes) :
   22398 
   22399 	  # -fsanitize=thread hijacks dlopen and dlclose so use dlsym.
   22400 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   22401 $as_echo_n "checking for library containing dlsym... " >&6; }
   22402 if ${ac_cv_search_dlsym+:} false; then :
   22403   $as_echo_n "(cached) " >&6
   22404 else
   22405   ac_func_search_save_LIBS=$LIBS
   22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22407 /* end confdefs.h.  */
   22408 
   22409 /* Override any GCC internal prototype to avoid an error.
   22410    Use char because int might match the return type of a GCC
   22411    builtin and then its argument prototype would still apply.  */
   22412 #ifdef __cplusplus
   22413 extern "C"
   22414 #endif
   22415 char dlsym ();
   22416 int
   22417 main ()
   22418 {
   22419 return dlsym ();
   22420   ;
   22421   return 0;
   22422 }
   22423 _ACEOF
   22424 for ac_lib in '' dl; do
   22425   if test -z "$ac_lib"; then
   22426     ac_res="none required"
   22427   else
   22428     ac_res=-l$ac_lib
   22429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22430   fi
   22431   if ac_fn_c_try_link "$LINENO"; then :
   22432   ac_cv_search_dlsym=$ac_res
   22433 fi
   22434 rm -f core conftest.err conftest.$ac_objext \
   22435     conftest$ac_exeext
   22436   if ${ac_cv_search_dlsym+:} false; then :
   22437   break
   22438 fi
   22439 done
   22440 if ${ac_cv_search_dlsym+:} false; then :
   22441 
   22442 else
   22443   ac_cv_search_dlsym=no
   22444 fi
   22445 rm conftest.$ac_ext
   22446 LIBS=$ac_func_search_save_LIBS
   22447 fi
   22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   22449 $as_echo "$ac_cv_search_dlsym" >&6; }
   22450 ac_res=$ac_cv_search_dlsym
   22451 if test "$ac_res" != no; then :
   22452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22453 
   22454 fi
   22455 
   22456 	  for ac_func in dlopen dlclose dlsym
   22457 do :
   22458   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   22460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   22461   cat >>confdefs.h <<_ACEOF
   22462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22463 _ACEOF
   22464  with_dlopen="yes"
   22465 else
   22466   with_dlopen="no"
   22467 fi
   22468 done
   22469 
   22470 	 ;; #(
   22471   *) :
   22472      ;;
   22473 esac
   22474 
   22475 if test "$with_dlopen" = "yes"; then :
   22476   case $host in #(
   22477   *-linux*|*-gnu*) :
   22478 
   22479 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   22480 		 SO_CFLAGS="-fPIC"
   22481 		 SO_LDFLAGS=""
   22482 		 if test "$use_libtool" = "yes"; then :
   22483 
   22484 			 SO_LDFLAGS="-Xcompiler -shared"
   22485 			 SO_LD="${CC}"
   22486 
   22487 else
   22488 
   22489 			 SO_LDFLAGS="-shared"
   22490 			 SO_LD="${CC}"
   22491 
   22492 fi
   22493 	        ;; #(
   22494   *-freebsd*|*-openbsd*|*-netbsd*) :
   22495 
   22496 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   22497 		 SO_CFLAGS="-fpic"
   22498 		 if test "$use_libtool" = "yes"; then :
   22499 
   22500 			 SO_LDFLAGS="-Xcompiler -shared"
   22501 			 SO_LD="${CC}"
   22502 
   22503 else
   22504 
   22505 			 SO_LDFLAGS="-shared"
   22506 			 SO_LD="${CC}"
   22507 
   22508 fi
   22509 	        ;; #(
   22510   *-darwin*) :
   22511 
   22512 		 SO_CFLAGS="-fPIC"
   22513                  SO_LD="${CC}"
   22514 		 if test "$use_libtool" = "yes"; then :
   22515 
   22516 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   22517 
   22518 else
   22519 
   22520 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   22521 
   22522 fi
   22523 	        ;; #(
   22524   *-solaris*) :
   22525 
   22526 		 SO_CFLAGS="-KPIC"
   22527 		 SO_LDFLAGS="-G -z text"
   22528 		 SO_LD="ld"
   22529 	        ;; #(
   22530   ia64-hp-hpux*) :
   22531 
   22532 		 SO_CFLAGS="+z"
   22533 	         SO_LDFLAGS="-b"
   22534 		 SO_LD="${CC}"
   22535 	        ;; #(
   22536   *) :
   22537 
   22538 		 SO_CFLAGS="-fPIC"
   22539 	        ;;
   22540 esac
   22541        if test "$GCC" = "yes"; then :
   22542 
   22543 	       SO_CFLAGS="-fPIC"
   22544 	       if test -z "$SO_LD"; then :
   22545   if test "$use_libtool" = "yes"; then :
   22546 
   22547 			      SO_LDFLAGS="-Xcompiler -shared"
   22548 			      SO_LD="${CC}"
   22549 
   22550 else
   22551 
   22552 			      SO_LDFLAGS="-shared"
   22553 			      SO_LD="${CC}"
   22554 
   22555 fi
   22556 
   22557 fi
   22558 
   22559 fi
   22560        # If we still don't know how to make shared objects, don't make any.
   22561        if test -n "$SO_LD"; then :
   22562   SO_TARGETS="\${SO_TARGETS}"
   22563 
   22564 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   22565 
   22566 
   22567 fi
   22568 
   22569 fi
   22570 
   22571 if test "$with_dlopen" = "no" -a "$enable_native_pkcs11" = "yes"; then :
   22572   as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5
   22573 fi
   22574 
   22575 CFLAGS="$CFLAGS $SO_CFLAGS"
   22576 
   22577 
   22578 
   22579 
   22580 
   22581 
   22582 
   22583 
   22584 #
   22585 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   22586 # interface.
   22587 #
   22588 # DNSRPS can be compiled into BIND everywhere with a reasonably
   22589 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   22590 #
   22591 dnsrps_avail=yes
   22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   22593 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   22594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22595 /* end confdefs.h.  */
   22596 
   22597 int
   22598 main ()
   22599 {
   22600 
   22601        extern void f(char *p __attribute__((unused)), ...)
   22602        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   22603 
   22604   ;
   22605   return 0;
   22606 }
   22607 _ACEOF
   22608 if ac_fn_c_try_compile "$LINENO"; then :
   22609 
   22610     librpz_have_attr=yes
   22611 
   22612 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   22613 
   22614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22615 $as_echo "yes" >&6; }
   22616 
   22617 else
   22618 
   22619     librpz_have_attr=no
   22620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22621 $as_echo "no" >&6; }
   22622 
   22623 fi
   22624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22625 
   22626 # DNSRPS is not included in pairwise testing as the librpz library is not
   22627 # present in the relevant Docker image.
   22628 #
   22629 # [pairwise: skip]
   22630 # Check whether --enable-dnsrps-dl was given.
   22631 if test "${enable_dnsrps_dl+set}" = set; then :
   22632   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   22633 else
   22634   enable_librpz_dl="$with_dlopen"
   22635 fi
   22636 
   22637 
   22638 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   22639   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   22640 fi
   22641 
   22642 # [pairwise: skip]
   22643 
   22644 # Check whether --with-dnsrps-libname was given.
   22645 if test "${with_dnsrps_libname+set}" = set; then :
   22646   withval=$with_dnsrps_libname; librpz_name="$withval"
   22647 else
   22648   librpz_name="librpz.so"
   22649 fi
   22650 
   22651 
   22652 # [pairwise: skip]
   22653 
   22654 # Check whether --with-dnsrps-dir was given.
   22655 if test "${with_dnsrps_dir+set}" = set; then :
   22656   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   22657 else
   22658   librpz_path="$librpz_name"
   22659 fi
   22660 
   22661 
   22662 cat >>confdefs.h <<_ACEOF
   22663 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   22664 _ACEOF
   22665 
   22666 if test "$enable_librpz_dl" = "yes"; then :
   22667 
   22668 	dnsrps_lib_open=2
   22669 
   22670 else
   22671 
   22672 	dnsrps_lib_open=1
   22673 	# Add librpz.so to linked libraries if we are not using dlopen()
   22674 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   22675 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   22676 if ${ac_cv_search_librpz_client_create+:} false; then :
   22677   $as_echo_n "(cached) " >&6
   22678 else
   22679   ac_func_search_save_LIBS=$LIBS
   22680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22681 /* end confdefs.h.  */
   22682 
   22683 /* Override any GCC internal prototype to avoid an error.
   22684    Use char because int might match the return type of a GCC
   22685    builtin and then its argument prototype would still apply.  */
   22686 #ifdef __cplusplus
   22687 extern "C"
   22688 #endif
   22689 char librpz_client_create ();
   22690 int
   22691 main ()
   22692 {
   22693 return librpz_client_create ();
   22694   ;
   22695   return 0;
   22696 }
   22697 _ACEOF
   22698 for ac_lib in '' rpz; do
   22699   if test -z "$ac_lib"; then
   22700     ac_res="none required"
   22701   else
   22702     ac_res=-l$ac_lib
   22703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22704   fi
   22705   if ac_fn_c_try_link "$LINENO"; then :
   22706   ac_cv_search_librpz_client_create=$ac_res
   22707 fi
   22708 rm -f core conftest.err conftest.$ac_objext \
   22709     conftest$ac_exeext
   22710   if ${ac_cv_search_librpz_client_create+:} false; then :
   22711   break
   22712 fi
   22713 done
   22714 if ${ac_cv_search_librpz_client_create+:} false; then :
   22715 
   22716 else
   22717   ac_cv_search_librpz_client_create=no
   22718 fi
   22719 rm conftest.$ac_ext
   22720 LIBS=$ac_func_search_save_LIBS
   22721 fi
   22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   22723 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   22724 ac_res=$ac_cv_search_librpz_client_create
   22725 if test "$ac_res" != no; then :
   22726   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22727 
   22728 else
   22729   dnsrps_lib_open=0
   22730 		 dnsrps_avail=no
   22731 fi
   22732 
   22733 
   22734 fi
   22735 
   22736 cat >>confdefs.h <<_ACEOF
   22737 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   22738 _ACEOF
   22739 
   22740 
   22741 # [pairwise: skip]
   22742 # Check whether --enable-dnsrps was given.
   22743 if test "${enable_dnsrps+set}" = set; then :
   22744   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   22745 else
   22746   enable_dnsrps=no
   22747 fi
   22748 
   22749 
   22750 if test "$enable_dnsrps" != "no"; then :
   22751 
   22752 	if test "$dnsrps_avail" != "yes"; then :
   22753   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22754 fi
   22755 	if test "$dnsrps_lib_open" = "0"; then :
   22756   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22757 fi
   22758 
   22759 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   22760 
   22761 
   22762 fi
   22763 
   22764 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   22765 #
   22766 # Permission to use, copy, modify, and distribute this software for any
   22767 # purpose with or without fee is hereby granted, provided that the above
   22768 # copyright notice and this permission notice appear in all copies.
   22769 #
   22770 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   22771 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   22772 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   22773 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   22774 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   22775 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   22776 # PERFORMANCE OF THIS SOFTWARE.
   22777 
   22778 #
   22779 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   22780 #
   22781 dlzdir='${DLZ_DRIVER_DIR}'
   22782 
   22783 #
   22784 # Private autoconf macro to simplify configuring drivers:
   22785 #
   22786 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   22787 #
   22788 # where:
   22789 #   DEFINE is FOO (to define -DDLZ_FOO)
   22790 #   DRIVER is dlz_foo_driver (sources without the .c)
   22791 #   INCLUDES is any necessary include definitions
   22792 #   LIBS is any necessary library definitions
   22793 #
   22794 
   22795 
   22796 #
   22797 # Check for the various DLZ drivers
   22798 #
   22799 
   22800 #
   22801 # Was --with-dlz-postgres specified?
   22802 #
   22803 
   22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   22805 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   22806 
   22807 # Check whether --with-dlz_postgres was given.
   22808 if test "${with_dlz_postgres+set}" = set; then :
   22809   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   22810 else
   22811   use_dlz_postgres="no"
   22812 fi
   22813 
   22814 
   22815 if test "$use_dlz_postgres" != "no"
   22816 then
   22817 	if test "$use_dlz_postgres" != "yes"
   22818         then
   22819                 for ac_prog in pg_config
   22820 do
   22821   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22822 set dummy $ac_prog; ac_word=$2
   22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22824 $as_echo_n "checking for $ac_word... " >&6; }
   22825 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22826   $as_echo_n "(cached) " >&6
   22827 else
   22828   case $PG_CONFIG in
   22829   [\\/]* | ?:[\\/]*)
   22830   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22831   ;;
   22832   *)
   22833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22834 for as_dir in $use_dlz_postgres/bin
   22835 do
   22836   IFS=$as_save_IFS
   22837   test -z "$as_dir" && as_dir=.
   22838     for ac_exec_ext in '' $ac_executable_extensions; do
   22839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22840     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22842     break 2
   22843   fi
   22844 done
   22845   done
   22846 IFS=$as_save_IFS
   22847 
   22848   ;;
   22849 esac
   22850 fi
   22851 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22852 if test -n "$PG_CONFIG"; then
   22853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22854 $as_echo "$PG_CONFIG" >&6; }
   22855 else
   22856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22857 $as_echo "no" >&6; }
   22858 fi
   22859 
   22860 
   22861   test -n "$PG_CONFIG" && break
   22862 done
   22863 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22864 
   22865 	else
   22866                 for ac_prog in pg_config
   22867 do
   22868   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22869 set dummy $ac_prog; ac_word=$2
   22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22871 $as_echo_n "checking for $ac_word... " >&6; }
   22872 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22873   $as_echo_n "(cached) " >&6
   22874 else
   22875   case $PG_CONFIG in
   22876   [\\/]* | ?:[\\/]*)
   22877   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22878   ;;
   22879   *)
   22880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22881 for as_dir in $PATH
   22882 do
   22883   IFS=$as_save_IFS
   22884   test -z "$as_dir" && as_dir=.
   22885     for ac_exec_ext in '' $ac_executable_extensions; do
   22886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22887     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22889     break 2
   22890   fi
   22891 done
   22892   done
   22893 IFS=$as_save_IFS
   22894 
   22895   ;;
   22896 esac
   22897 fi
   22898 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22899 if test -n "$PG_CONFIG"; then
   22900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22901 $as_echo "$PG_CONFIG" >&6; }
   22902 else
   22903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22904 $as_echo "no" >&6; }
   22905 fi
   22906 
   22907 
   22908   test -n "$PG_CONFIG" && break
   22909 done
   22910 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22911 
   22912 	fi
   22913 
   22914 	if test "$PG_CONFIG" != "not found"
   22915 	then
   22916 		use_dlz_postgres=`$PG_CONFIG --includedir`
   22917 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   22918 	else
   22919 		pgprefix="$use_dlz_postgres"
   22920 		use_dlz_postgres="$pgprefix/include"
   22921 		use_dlz_postgres_lib="$pgprefix/lib"
   22922 	fi
   22923 fi
   22924 
   22925 if test "$use_dlz_postgres" = "yes/include"
   22926 then
   22927 	# User did not specify path and Postgres didn't say - guess it
   22928 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   22929 	for d in $pgdirs
   22930 	do
   22931 		if test -f $d/include/libpq-fe.h
   22932 		then
   22933 			use_dlz_postgres=$d/include
   22934 			use_dlz_postgres_lib=$d/lib
   22935 			break
   22936 		fi
   22937 	done
   22938 fi
   22939 
   22940 if test "$use_dlz_postgres" = "yes/include"
   22941 then
   22942 	# Still no joy, give up
   22943 
   22944 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   22945 $as_echo "not found" >&6; }
   22946 	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
   22947 fi
   22948 
   22949 case "$use_dlz_postgres" in
   22950 	no)
   22951 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22952 $as_echo "no" >&6; }
   22953 		;;
   22954 	*)
   22955 
   22956 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   22957 	for i in dlz_postgres_driver
   22958 	do
   22959 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   22960 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   22961 	done
   22962 	if test -n "-I$use_dlz_postgres"
   22963 	then
   22964 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   22965 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   22966 	fi
   22967 	if test -n "-L$use_dlz_postgres_lib -lpq"
   22968 	then
   22969 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   22970 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   22971 	fi
   22972 
   22973 
   22974 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   22975 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   22976 		;;
   22977 esac
   22978 
   22979 
   22980 #
   22981 # Was --with-dlz-mysql specified?
   22982 #
   22983 
   22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   22985 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   22986 
   22987 # Check whether --with-dlz_mysql was given.
   22988 if test "${with_dlz_mysql+set}" = set; then :
   22989   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   22990 else
   22991   use_dlz_mysql="no"
   22992 fi
   22993 
   22994 
   22995 mysql_include=""
   22996 mysql_lib=""
   22997 if test "$use_dlz_mysql" = "yes"
   22998 then
   22999 	for ac_prog in mysql_config
   23000 do
   23001   # Extract the first word of "$ac_prog", so it can be a program name with args.
   23002 set dummy $ac_prog; ac_word=$2
   23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   23004 $as_echo_n "checking for $ac_word... " >&6; }
   23005 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   23006   $as_echo_n "(cached) " >&6
   23007 else
   23008   if test -n "$MYSQL_CONFIG"; then
   23009   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   23010 else
   23011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23012 for as_dir in $PATH
   23013 do
   23014   IFS=$as_save_IFS
   23015   test -z "$as_dir" && as_dir=.
   23016     for ac_exec_ext in '' $ac_executable_extensions; do
   23017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   23018     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   23019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   23020     break 2
   23021   fi
   23022 done
   23023   done
   23024 IFS=$as_save_IFS
   23025 
   23026 fi
   23027 fi
   23028 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   23029 if test -n "$MYSQL_CONFIG"; then
   23030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   23031 $as_echo "$MYSQL_CONFIG" >&6; }
   23032 else
   23033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23034 $as_echo "no" >&6; }
   23035 fi
   23036 
   23037 
   23038   test -n "$MYSQL_CONFIG" && break
   23039 done
   23040 
   23041 	if test -n "$MYSQL_CONFIG"
   23042 	then
   23043 		mysql_include=`${MYSQL_CONFIG} --include`
   23044 		mysql_lib=`${MYSQL_CONFIG} --libs`
   23045 		use_dlz_mysql="config"
   23046 
   23047 	else
   23048 		# User did not specify a path - guess it
   23049 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   23050 		for d in $mysqldirs
   23051 		do
   23052 			if test -f $d/include/mysql/mysql.h
   23053 			then
   23054 				use_dlz_mysql=$d
   23055 				mysql_include=$d/include/mysql
   23056 				break
   23057 			elif test -f $d/include/mysql.h
   23058 			then
   23059 				use_dlz_mysql=$d
   23060 				mysql_include=$d/include
   23061 				break
   23062 			fi
   23063 		done
   23064 	fi
   23065 elif test "$use_dlz_mysql" != "no"
   23066 then
   23067 	d=$use_dlz_mysql
   23068 	if test -f $d/include/mysql/mysql.h
   23069 	then
   23070 		mysql_include=$d/include/mysql
   23071 	elif test -f $d/include/mysql.h
   23072 	then
   23073 		mysql_include=$d/include
   23074 	fi
   23075 fi
   23076 
   23077 if test "$use_dlz_mysql" = "yes"
   23078 then
   23079 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23080 $as_echo "not found" >&6; }
   23081 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   23082 fi
   23083 
   23084 case "$use_dlz_mysql" in
   23085 	no)
   23086 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23087 $as_echo "no" >&6; }
   23088 		;;
   23089 	config)
   23090 
   23091 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23092 	for i in dlz_mysql_driver
   23093 	do
   23094 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23095 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23096 	done
   23097 	if test -n "${mysql_include}"
   23098 	then
   23099 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   23100 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   23101 	fi
   23102 	if test -n "${mysql_lib}"
   23103 	then
   23104 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   23105 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   23106 	fi
   23107 
   23108 
   23109 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   23110 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   23111 		;;
   23112 	*)
   23113 		if test -d "$use_dlz_mysql/lib/mysql"
   23114 		then
   23115 			mysql_lib="$use_dlz_mysql/lib/mysql"
   23116 		else
   23117 			mysql_lib="$use_dlz_mysql/lib"
   23118 		fi
   23119 
   23120 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23121 	for i in dlz_mysql_driver
   23122 	do
   23123 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23124 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23125 	done
   23126 	if test -n "-I${mysql_include}"
   23127 	then
   23128 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   23129 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   23130 	fi
   23131 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23132 	then
   23133 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23134 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23135 	fi
   23136 
   23137 
   23138 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   23139 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   23140 		;;
   23141 esac
   23142 
   23143 
   23144 #
   23145 # Was --with-dlz-bdb specified?
   23146 #
   23147 
   23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   23149 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   23150 
   23151 # Check whether --with-dlz_bdb was given.
   23152 if test "${with_dlz_bdb+set}" = set; then :
   23153   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   23154 else
   23155   use_dlz_bdb="no"
   23156 fi
   23157 
   23158 
   23159 case "$use_dlz_bdb" in
   23160 	no)
   23161 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23162 $as_echo "no" >&6; }
   23163 		;;
   23164 	*)
   23165 		if test "$use_dlz_bdb" = "yes"
   23166 		then
   23167 			# User did not specify a path - guess directories
   23168 			bdbdirs="/usr/local /usr/pkg /usr"
   23169 		elif test -d "$use_dlz_bdb"
   23170 		then
   23171 			# User specified directory and it exists
   23172 			bdbdirs="$use_dlz_bdb"
   23173 		else
   23174 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23175 $as_echo "not found" >&6; }
   23176 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   23177 			bdbdirs=""
   23178 		fi
   23179 
   23180 		# Use path we were given or guessed.  This is insanely
   23181 		# complicated because we have to search for a bunch of
   23182 		# platform-specific variations and have to check
   23183 		# separately for include and library directories.
   23184 
   23185 		# Set both to yes, so we can check them later
   23186 		dlz_bdb_inc="yes"
   23187 		dlz_bdb_libs="yes"
   23188 
   23189                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   23190 $as_echo "" >&6; }
   23191 		for dd in $bdbdirs
   23192 		do
   23193 			# Skip nonexistent directories
   23194 			if test ! -d "$dd"
   23195 			then
   23196 				continue
   23197 			fi
   23198 
   23199 			# Check other locations for includes.
   23200 			# Order is important (sigh).
   23201 
   23202 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   23203 			# include a blank element first
   23204 			for d in "" $bdb_incdirs
   23205 			do
   23206 				if test -f "$dd/include${d}/db.h"
   23207 				then
   23208 					dlz_bdb_inc="-I$dd/include${d}"
   23209 					break
   23210 				fi
   23211 			done
   23212 
   23213 			# Give up on this directory if we couldn't
   23214 			# find the include subdir
   23215 
   23216 			if test "$dlz_bdb_inc" = "yes"
   23217 			then
   23218 				continue
   23219 			fi
   23220 
   23221 			# Look for libname other than libdb.so.
   23222 			# Order is important (sigh).
   23223 
   23224 			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"
   23225 			for d in $bdb_libnames
   23226 			do
   23227 				if test "$dd" = "/usr"
   23228 				then
   23229 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   23231 $as_echo_n "checking for db_create in -l$d... " >&6; }
   23232 if eval \${$as_ac_Lib+:} false; then :
   23233   $as_echo_n "(cached) " >&6
   23234 else
   23235   ac_check_lib_save_LIBS=$LIBS
   23236 LIBS="-l$d  $LIBS"
   23237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23238 /* end confdefs.h.  */
   23239 
   23240 /* Override any GCC internal prototype to avoid an error.
   23241    Use char because int might match the return type of a GCC
   23242    builtin and then its argument prototype would still apply.  */
   23243 #ifdef __cplusplus
   23244 extern "C"
   23245 #endif
   23246 char db_create ();
   23247 int
   23248 main ()
   23249 {
   23250 return db_create ();
   23251   ;
   23252   return 0;
   23253 }
   23254 _ACEOF
   23255 if ac_fn_c_try_link "$LINENO"; then :
   23256   eval "$as_ac_Lib=yes"
   23257 else
   23258   eval "$as_ac_Lib=no"
   23259 fi
   23260 rm -f core conftest.err conftest.$ac_objext \
   23261     conftest$ac_exeext conftest.$ac_ext
   23262 LIBS=$ac_check_lib_save_LIBS
   23263 fi
   23264 eval ac_res=\$$as_ac_Lib
   23265 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   23266 $as_echo "$ac_res" >&6; }
   23267 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   23268   dlz_bdb_libs="-l${d}"
   23269 fi
   23270 
   23271 					if test $dlz_bdb_libs != "yes"
   23272 					then
   23273 						break
   23274 					fi
   23275 				elif test -f "$dd/lib/lib${d}.so"
   23276 				then
   23277 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   23278 					break
   23279 				fi
   23280 			done
   23281 
   23282 			# If we found both incdir and lib, we're done
   23283 			if test "$dlz_bdb_libs" != "yes"
   23284 			then
   23285 				break
   23286 			fi
   23287 
   23288 			# Otherwise, we're starting over
   23289 
   23290 			dlz_bdb_inc="yes"
   23291 			dlz_bdb_libs="yes"
   23292 		done
   23293 
   23294 		# Done searching, now make sure we got everything.
   23295 
   23296 		if test "$dlz_bdb_inc" = "yes"
   23297 		then
   23298 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   23299 		fi
   23300 
   23301 		if test "$dlz_bdb_libs" = "yes"
   23302 		then
   23303 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23304 $as_echo "not found" >&6; }
   23305 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   23306 		fi
   23307 
   23308 
   23309 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   23310 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   23311 	do
   23312 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23313 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23314 	done
   23315 	if test -n "$dlz_bdb_inc"
   23316 	then
   23317 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   23318 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   23319 	fi
   23320 	if test -n "$dlz_bdb_libs"
   23321 	then
   23322 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   23323 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   23324 	fi
   23325 
   23326 
   23327 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   23328 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   23329 
   23330 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   23331 
   23332 		;;
   23333 esac
   23334 
   23335 
   23336 #
   23337 # Was --with-dlz-filesystem specified?
   23338 #
   23339 
   23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   23341 $as_echo_n "checking for file system DLZ driver... " >&6; }
   23342 
   23343 # Check whether --with-dlz_filesystem was given.
   23344 if test "${with_dlz_filesystem+set}" = set; then :
   23345   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   23346 else
   23347   use_dlz_filesystem="no"
   23348 fi
   23349 
   23350 
   23351 case "$use_dlz_filesystem" in
   23352 	no)
   23353 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23354 $as_echo "no" >&6; }
   23355 		;;
   23356 	*)
   23357 
   23358 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   23359 	for i in dlz_filesystem_driver
   23360 	do
   23361 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23362 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23363 	done
   23364 	if test -n ""
   23365 	then
   23366 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23367 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   23368 	fi
   23369 	if test -n ""
   23370 	then
   23371 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23372 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   23373 	fi
   23374 
   23375 		DLZ_SYSTEM_TEST=filesystem
   23376 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23377 $as_echo "yes" >&6; }
   23378 		;;
   23379 esac
   23380 
   23381 
   23382 #
   23383 # Was --with-dlz-ldap specified?
   23384 #
   23385 
   23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   23387 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   23388 
   23389 # Check whether --with-dlz_ldap was given.
   23390 if test "${with_dlz_ldap+set}" = set; then :
   23391   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   23392 else
   23393   use_dlz_ldap="no"
   23394 fi
   23395 
   23396 
   23397 if test "$use_dlz_ldap" = "yes"
   23398 then
   23399 	# User did not specify a path - guess it
   23400 	ldapdirs="/usr /usr/local /usr/pkg"
   23401 	for d in $ldapdirs
   23402 	do
   23403 		if test -f $d/include/ldap.h
   23404 		then
   23405 			use_dlz_ldap=$d
   23406 			break
   23407 		fi
   23408 	done
   23409 fi
   23410 
   23411 if test "$use_dlz_ldap" = "yes"
   23412 then
   23413 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23414 $as_echo "not found" >&6; }
   23415 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   23416 fi
   23417 
   23418 case "$use_dlz_ldap" in
   23419 	no)
   23420 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23421 $as_echo "no" >&6; }
   23422 		;;
   23423 	*)
   23424 
   23425 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   23426 	for i in dlz_ldap_driver
   23427 	do
   23428 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23429 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23430 	done
   23431 	if test -n "-I$use_dlz_ldap/include"
   23432 	then
   23433 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   23434 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   23435 	fi
   23436 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   23437 	then
   23438 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   23439 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   23440 	fi
   23441 
   23442 
   23443 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   23444 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   23445 		;;
   23446 esac
   23447 
   23448 
   23449 #
   23450 # Was --with-dlz-odbc specified?
   23451 #
   23452 
   23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   23454 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   23455 
   23456 # Check whether --with-dlz_odbc was given.
   23457 if test "${with_dlz_odbc+set}" = set; then :
   23458   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   23459 else
   23460   use_dlz_odbc="no"
   23461 fi
   23462 
   23463 
   23464 if test "$use_dlz_odbc" = "yes"
   23465 then
   23466 	# User did not specify a path - guess it
   23467 	libodbc_found=no
   23468 	sql_h_found=no
   23469 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   23470 if test "x$ac_cv_header_sql_h" = xyes; then :
   23471   sql_h_found=yes
   23472 fi
   23473 
   23474 
   23475 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   23476 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   23477 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   23478   $as_echo_n "(cached) " >&6
   23479 else
   23480   ac_check_lib_save_LIBS=$LIBS
   23481 LIBS="-lodbc  $LIBS"
   23482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23483 /* end confdefs.h.  */
   23484 
   23485 /* Override any GCC internal prototype to avoid an error.
   23486    Use char because int might match the return type of a GCC
   23487    builtin and then its argument prototype would still apply.  */
   23488 #ifdef __cplusplus
   23489 extern "C"
   23490 #endif
   23491 char SQLConnect ();
   23492 int
   23493 main ()
   23494 {
   23495 return SQLConnect ();
   23496   ;
   23497   return 0;
   23498 }
   23499 _ACEOF
   23500 if ac_fn_c_try_link "$LINENO"; then :
   23501   ac_cv_lib_odbc_SQLConnect=yes
   23502 else
   23503   ac_cv_lib_odbc_SQLConnect=no
   23504 fi
   23505 rm -f core conftest.err conftest.$ac_objext \
   23506     conftest$ac_exeext conftest.$ac_ext
   23507 LIBS=$ac_check_lib_save_LIBS
   23508 fi
   23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   23510 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   23511 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   23512   libodbc_found=yes
   23513 fi
   23514 
   23515 
   23516 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   23517 	then
   23518 		use_dlz_odbc=system
   23519 		dlz_odbc_include=""
   23520 		dlz_odbc_libs="-lodbc"
   23521 	else
   23522 		odbcdirs="/usr /usr/local /usr/pkg"
   23523 		for d in $odbcdirs
   23524 		do
   23525 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   23526 			then
   23527 				use_dlz_odbc=$d
   23528 				dlz_odbc_include="-I$use_dlz_odbc/include"
   23529 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   23530 				break
   23531 			fi
   23532 		done
   23533 	fi
   23534 fi
   23535 
   23536 case "$use_dlz_odbc" in
   23537 	no)
   23538 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23539 $as_echo "no" >&6; }
   23540 		;;
   23541 	yes)
   23542 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23543 $as_echo "not found" >&6; }
   23544 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   23545 		;;
   23546 	*)
   23547 
   23548 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   23549 	for i in dlz_odbc_driver
   23550 	do
   23551 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23552 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23553 	done
   23554 	if test -n "$dlz_odbc_include"
   23555 	then
   23556 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   23557 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   23558 	fi
   23559 	if test -n "$dlz_odbc_libs"
   23560 	then
   23561 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   23562 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   23563 	fi
   23564 
   23565 
   23566 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   23567 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   23568 		;;
   23569 esac
   23570 
   23571 
   23572 #
   23573 # Was --with-dlz-stub specified?
   23574 #
   23575 
   23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   23577 $as_echo_n "checking for stub DLZ driver... " >&6; }
   23578 
   23579 # Check whether --with-dlz_stub was given.
   23580 if test "${with_dlz_stub+set}" = set; then :
   23581   withval=$with_dlz_stub; use_dlz_stub="$withval"
   23582 else
   23583   use_dlz_stub="no"
   23584 fi
   23585 
   23586 
   23587 case "$use_dlz_stub" in
   23588 	no)
   23589 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23590 $as_echo "no" >&6; }
   23591 		;;
   23592 	*)
   23593 
   23594 
   23595 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   23596 	for i in dlz_stub_driver
   23597 	do
   23598 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23599 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23600 	done
   23601 	if test -n ""
   23602 	then
   23603 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23604 		DLZ_DRIVER_STUB_INCLUDES=""
   23605 	fi
   23606 	if test -n ""
   23607 	then
   23608 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23609 		DLZ_DRIVER_STUB_LIBS=""
   23610 	fi
   23611 
   23612 
   23613 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23614 $as_echo "yes" >&6; }
   23615 		;;
   23616 esac
   23617 
   23618 # Add any additional DLZ drivers here.
   23619 
   23620 #
   23621 # Finally, some generic stuff that applies to all drivers, assuming
   23622 # we're compiling contrib DLZ drivers at all.
   23623 #
   23624 if test -n "$CONTRIB_DLZ"
   23625 then
   23626 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   23627 
   23628 	#
   23629 	# Where to find DLZ driver header files.
   23630 	#
   23631 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   23632 
   23633 	#
   23634 	# Initialization and shutdown wrappers, helper functions.
   23635 	#
   23636 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   23637 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   23638 fi
   23639 
   23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   23641 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   23642 
   23643 if test -n "$CONTRIB_DLZ"
   23644 then
   23645 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23646 $as_echo "yes" >&6; }
   23647 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   23648 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   23649 
   23650 else
   23651 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23652 $as_echo "no" >&6; }
   23653 	DLZ_DRIVER_RULES=/dev/null
   23654 fi
   23655 
   23656 
   23657 
   23658 
   23659 
   23660 
   23661 
   23662 
   23663 
   23664 
   23665 
   23666 if test "yes" = "$cross_compiling"; then
   23667 	if test -z "$BUILD_CC"; then
   23668 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   23669 	fi
   23670 	BUILD_CFLAGS="$BUILD_CFLAGS"
   23671 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   23672 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   23673 	BUILD_LIBS="$BUILD_LIBS"
   23674 else
   23675 	BUILD_CC="$CC"
   23676 	BUILD_CFLAGS="$CFLAGS"
   23677 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   23678 	BUILD_LDFLAGS="$LDFLAGS"
   23679 	BUILD_LIBS="$LIBS"
   23680 fi
   23681 
   23682 NEWFLAGS=""
   23683 for e in $BUILD_LDFLAGS ; do
   23684     case $e in
   23685 	-L*)
   23686 	    case $host_os in
   23687 		netbsd*)
   23688 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23689 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23690 		    ;;
   23691 		freebsd*)
   23692 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23693 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23694 		    ;;
   23695 		solaris*)
   23696 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23697 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23698 		    ;;
   23699 		*)
   23700 		    NEWFLAGS="$NEWFLAGS $e"
   23701 		    ;;
   23702 		esac
   23703 	    ;;
   23704 	*)
   23705 	    NEWFLAGS="$NEWFLAGS $e"
   23706 	    ;;
   23707     esac
   23708 done
   23709 BUILD_LDFLAGS="$NEWFLAGS"
   23710 
   23711 NEWFLAGS=""
   23712 for e in $DNS_GSSAPI_LIBS ; do
   23713     case $e in
   23714 	-L*)
   23715 	    case $host_os in
   23716 		netbsd*)
   23717 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23718 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23719 		    ;;
   23720 		freebsd*)
   23721 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23722 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23723 		    ;;
   23724 		solaris*)
   23725 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23726 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23727 		    ;;
   23728 		*)
   23729 		    NEWFLAGS="$NEWFLAGS $e"
   23730 		    ;;
   23731 		esac
   23732 	    ;;
   23733 	*)
   23734 	    NEWFLAGS="$NEWFLAGS $e"
   23735 	    ;;
   23736     esac
   23737 done
   23738 DNS_GSSAPI_LIBS="$NEWFLAGS"
   23739 
   23740 NEWFLAGS=""
   23741 for e in $ISC_OPENSSL_LIBS ; do
   23742     case $e in
   23743 	-L*)
   23744 	    case $host_os in
   23745 		netbsd*)
   23746 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23747 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23748 		    ;;
   23749 		freebsd*)
   23750 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23751 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23752 		    ;;
   23753 		solaris*)
   23754 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23755 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23756 		    ;;
   23757 		*)
   23758 		    NEWFLAGS="$NEWFLAGS $e"
   23759 		    ;;
   23760 		esac
   23761 	    ;;
   23762 	*)
   23763 	    NEWFLAGS="$NEWFLAGS $e"
   23764 	    ;;
   23765     esac
   23766 done
   23767 ISC_OPENSSL_LIBS="$NEWFLAGS"
   23768 
   23769 NEWFLAGS=""
   23770 for e in $DNS_CRYPTO_LIBS ; do
   23771     case $e in
   23772 	-L*)
   23773 	    case $host_os in
   23774 		netbsd*)
   23775 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23776 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23777 		    ;;
   23778 		freebsd*)
   23779 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23780 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23781 		    ;;
   23782 		solaris*)
   23783 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23784 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23785 		    ;;
   23786 		*)
   23787 		    NEWFLAGS="$NEWFLAGS $e"
   23788 		    ;;
   23789 		esac
   23790 	    ;;
   23791 	*)
   23792 	    NEWFLAGS="$NEWFLAGS $e"
   23793 	    ;;
   23794     esac
   23795 done
   23796 DNS_CRYPTO_LIBS="$NEWFLAGS"
   23797 
   23798 
   23799 
   23800 
   23801 
   23802 
   23803 
   23804 #
   23805 # Commands to run at the end of config.status.
   23806 # Don't just put these into configure, it won't work right if somebody
   23807 # runs config.status directly (which autoconf allows).
   23808 #
   23809 
   23810 ac_config_commands="$ac_config_commands chmod"
   23811 
   23812 
   23813 #
   23814 # Files to configure.  These are listed here because we used to
   23815 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   23816 # elsewhere if there's a good reason for doing so.
   23817 #
   23818 
   23819 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 lib/samples/Makefile lib/samples/Makefile-postinstall make/Makefile make/mkdep unit/unittest.sh util/check-make-install"
   23820 
   23821 
   23822 #
   23823 # Do it
   23824 #
   23825 
   23826 cat >confcache <<\_ACEOF
   23827 # This file is a shell script that caches the results of configure
   23828 # tests run on this system so they can be shared between configure
   23829 # scripts and configure runs, see configure's option --config-cache.
   23830 # It is not useful on other systems.  If it contains results you don't
   23831 # want to keep, you may remove or edit it.
   23832 #
   23833 # config.status only pays attention to the cache file if you give it
   23834 # the --recheck option to rerun configure.
   23835 #
   23836 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   23837 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   23838 # following values.
   23839 
   23840 _ACEOF
   23841 
   23842 # The following way of writing the cache mishandles newlines in values,
   23843 # but we know of no workaround that is simple, portable, and efficient.
   23844 # So, we kill variables containing newlines.
   23845 # Ultrix sh set writes to stderr and can't be redirected directly,
   23846 # and sets the high bit in the cache file unless we assign to the vars.
   23847 (
   23848   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   23849     eval ac_val=\$$ac_var
   23850     case $ac_val in #(
   23851     *${as_nl}*)
   23852       case $ac_var in #(
   23853       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   23854 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   23855       esac
   23856       case $ac_var in #(
   23857       _ | IFS | as_nl) ;; #(
   23858       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   23859       *) { eval $ac_var=; unset $ac_var;} ;;
   23860       esac ;;
   23861     esac
   23862   done
   23863 
   23864   (set) 2>&1 |
   23865     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   23866     *${as_nl}ac_space=\ *)
   23867       # `set' does not quote correctly, so add quotes: double-quote
   23868       # substitution turns \\\\ into \\, and sed turns \\ into \.
   23869       sed -n \
   23870 	"s/'/'\\\\''/g;
   23871 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   23872       ;; #(
   23873     *)
   23874       # `set' quotes correctly as required by POSIX, so do not add quotes.
   23875       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   23876       ;;
   23877     esac |
   23878     sort
   23879 ) |
   23880   sed '
   23881      /^ac_cv_env_/b end
   23882      t clear
   23883      :clear
   23884      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   23885      t end
   23886      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   23887      :end' >>confcache
   23888 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   23889   if test -w "$cache_file"; then
   23890     if test "x$cache_file" != "x/dev/null"; then
   23891       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   23892 $as_echo "$as_me: updating cache $cache_file" >&6;}
   23893       if test ! -f "$cache_file" || test -h "$cache_file"; then
   23894 	cat confcache >"$cache_file"
   23895       else
   23896         case $cache_file in #(
   23897         */* | ?:*)
   23898 	  mv -f confcache "$cache_file"$$ &&
   23899 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   23900         *)
   23901 	  mv -f confcache "$cache_file" ;;
   23902 	esac
   23903       fi
   23904     fi
   23905   else
   23906     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   23907 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   23908   fi
   23909 fi
   23910 rm -f confcache
   23911 
   23912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   23913 # Let make expand exec_prefix.
   23914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   23915 
   23916 DEFS=-DHAVE_CONFIG_H
   23917 
   23918 ac_libobjs=
   23919 ac_ltlibobjs=
   23920 U=
   23921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   23922   # 1. Remove the extension, and $U if already installed.
   23923   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   23924   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   23925   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   23926   #    will be set to the directory where LIBOBJS objects are built.
   23927   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   23928   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   23929 done
   23930 LIBOBJS=$ac_libobjs
   23931 
   23932 LTLIBOBJS=$ac_ltlibobjs
   23933 
   23934 
   23935 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   23936   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   23937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23938 fi
   23939 
   23940 if test -z "${HAVE_SPHINX_BUILD_TRUE}" && test -z "${HAVE_SPHINX_BUILD_FALSE}"; then
   23941   as_fn_error $? "conditional \"HAVE_SPHINX_BUILD\" was never defined.
   23942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23943 fi
   23944 if test -z "${HAVE_XELATEX_TRUE}" && test -z "${HAVE_XELATEX_FALSE}"; then
   23945   as_fn_error $? "conditional \"HAVE_XELATEX\" was never defined.
   23946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23947 fi
   23948 
   23949 : "${CONFIG_STATUS=./config.status}"
   23950 ac_write_fail=0
   23951 ac_clean_files_save=$ac_clean_files
   23952 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   23953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   23954 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   23955 as_write_fail=0
   23956 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   23957 #! $SHELL
   23958 # Generated by $as_me.
   23959 # Run this file to recreate the current configuration.
   23960 # Compiler output produced by configure, useful for debugging
   23961 # configure, is in config.log if it exists.
   23962 
   23963 debug=false
   23964 ac_cs_recheck=false
   23965 ac_cs_silent=false
   23966 
   23967 SHELL=\${CONFIG_SHELL-$SHELL}
   23968 export SHELL
   23969 _ASEOF
   23970 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   23971 ## -------------------- ##
   23972 ## M4sh Initialization. ##
   23973 ## -------------------- ##
   23974 
   23975 # Be more Bourne compatible
   23976 DUALCASE=1; export DUALCASE # for MKS sh
   23977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   23978   emulate sh
   23979   NULLCMD=:
   23980   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23981   # is contrary to our usage.  Disable this feature.
   23982   alias -g '${1+"$@"}'='"$@"'
   23983   setopt NO_GLOB_SUBST
   23984 else
   23985   case `(set -o) 2>/dev/null` in #(
   23986   *posix*) :
   23987     set -o posix ;; #(
   23988   *) :
   23989      ;;
   23990 esac
   23991 fi
   23992 
   23993 
   23994 as_nl='
   23995 '
   23996 export as_nl
   23997 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   23998 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   23999 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   24000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   24001 # Prefer a ksh shell builtin over an external printf program on Solaris,
   24002 # but without wasting forks for bash or zsh.
   24003 if test -z "$BASH_VERSION$ZSH_VERSION" \
   24004     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   24005   as_echo='print -r --'
   24006   as_echo_n='print -rn --'
   24007 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   24008   as_echo='printf %s\n'
   24009   as_echo_n='printf %s'
   24010 else
   24011   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   24012     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   24013     as_echo_n='/usr/ucb/echo -n'
   24014   else
   24015     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   24016     as_echo_n_body='eval
   24017       arg=$1;
   24018       case $arg in #(
   24019       *"$as_nl"*)
   24020 	expr "X$arg" : "X\\(.*\\)$as_nl";
   24021 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   24022       esac;
   24023       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   24024     '
   24025     export as_echo_n_body
   24026     as_echo_n='sh -c $as_echo_n_body as_echo'
   24027   fi
   24028   export as_echo_body
   24029   as_echo='sh -c $as_echo_body as_echo'
   24030 fi
   24031 
   24032 # The user is always right.
   24033 if test "${PATH_SEPARATOR+set}" != set; then
   24034   PATH_SEPARATOR=:
   24035   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   24036     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   24037       PATH_SEPARATOR=';'
   24038   }
   24039 fi
   24040 
   24041 
   24042 # IFS
   24043 # We need space, tab and new line, in precisely that order.  Quoting is
   24044 # there to prevent editors from complaining about space-tab.
   24045 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   24046 # splitting by setting IFS to empty value.)
   24047 IFS=" ""	$as_nl"
   24048 
   24049 # Find who we are.  Look in the path if we contain no directory separator.
   24050 as_myself=
   24051 case $0 in #((
   24052   *[\\/]* ) as_myself=$0 ;;
   24053   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   24054 for as_dir in $PATH
   24055 do
   24056   IFS=$as_save_IFS
   24057   test -z "$as_dir" && as_dir=.
   24058     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   24059   done
   24060 IFS=$as_save_IFS
   24061 
   24062      ;;
   24063 esac
   24064 # We did not find ourselves, most probably we were run as `sh COMMAND'
   24065 # in which case we are not to be found in the path.
   24066 if test "x$as_myself" = x; then
   24067   as_myself=$0
   24068 fi
   24069 if test ! -f "$as_myself"; then
   24070   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   24071   exit 1
   24072 fi
   24073 
   24074 # Unset variables that we do not need and which cause bugs (e.g. in
   24075 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   24076 # suppresses any "Segmentation fault" message there.  '((' could
   24077 # trigger a bug in pdksh 5.2.14.
   24078 for as_var in BASH_ENV ENV MAIL MAILPATH
   24079 do eval test x\${$as_var+set} = xset \
   24080   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   24081 done
   24082 PS1='$ '
   24083 PS2='> '
   24084 PS4='+ '
   24085 
   24086 # NLS nuisances.
   24087 LC_ALL=C
   24088 export LC_ALL
   24089 LANGUAGE=C
   24090 export LANGUAGE
   24091 
   24092 # CDPATH.
   24093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24094 
   24095 
   24096 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   24097 # ----------------------------------------
   24098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   24099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   24100 # script with STATUS, using 1 if that was 0.
   24101 as_fn_error ()
   24102 {
   24103   as_status=$1; test $as_status -eq 0 && as_status=1
   24104   if test "$4"; then
   24105     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   24106     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   24107   fi
   24108   $as_echo "$as_me: error: $2" >&2
   24109   as_fn_exit $as_status
   24110 } # as_fn_error
   24111 
   24112 
   24113 # as_fn_set_status STATUS
   24114 # -----------------------
   24115 # Set $? to STATUS, without forking.
   24116 as_fn_set_status ()
   24117 {
   24118   return $1
   24119 } # as_fn_set_status
   24120 
   24121 # as_fn_exit STATUS
   24122 # -----------------
   24123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   24124 as_fn_exit ()
   24125 {
   24126   set +e
   24127   as_fn_set_status $1
   24128   exit $1
   24129 } # as_fn_exit
   24130 
   24131 # as_fn_unset VAR
   24132 # ---------------
   24133 # Portably unset VAR.
   24134 as_fn_unset ()
   24135 {
   24136   { eval $1=; unset $1;}
   24137 }
   24138 as_unset=as_fn_unset
   24139 # as_fn_append VAR VALUE
   24140 # ----------------------
   24141 # Append the text in VALUE to the end of the definition contained in VAR. Take
   24142 # advantage of any shell optimizations that allow amortized linear growth over
   24143 # repeated appends, instead of the typical quadratic growth present in naive
   24144 # implementations.
   24145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   24146   eval 'as_fn_append ()
   24147   {
   24148     eval $1+=\$2
   24149   }'
   24150 else
   24151   as_fn_append ()
   24152   {
   24153     eval $1=\$$1\$2
   24154   }
   24155 fi # as_fn_append
   24156 
   24157 # as_fn_arith ARG...
   24158 # ------------------
   24159 # Perform arithmetic evaluation on the ARGs, and store the result in the
   24160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   24161 # must be portable across $(()) and expr.
   24162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   24163   eval 'as_fn_arith ()
   24164   {
   24165     as_val=$(( $* ))
   24166   }'
   24167 else
   24168   as_fn_arith ()
   24169   {
   24170     as_val=`expr "$@" || test $? -eq 1`
   24171   }
   24172 fi # as_fn_arith
   24173 
   24174 
   24175 if expr a : '\(a\)' >/dev/null 2>&1 &&
   24176    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   24177   as_expr=expr
   24178 else
   24179   as_expr=false
   24180 fi
   24181 
   24182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   24183   as_basename=basename
   24184 else
   24185   as_basename=false
   24186 fi
   24187 
   24188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   24189   as_dirname=dirname
   24190 else
   24191   as_dirname=false
   24192 fi
   24193 
   24194 as_me=`$as_basename -- "$0" ||
   24195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   24196 	 X"$0" : 'X\(//\)$' \| \
   24197 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   24198 $as_echo X/"$0" |
   24199     sed '/^.*\/\([^/][^/]*\)\/*$/{
   24200 	    s//\1/
   24201 	    q
   24202 	  }
   24203 	  /^X\/\(\/\/\)$/{
   24204 	    s//\1/
   24205 	    q
   24206 	  }
   24207 	  /^X\/\(\/\).*/{
   24208 	    s//\1/
   24209 	    q
   24210 	  }
   24211 	  s/.*/./; q'`
   24212 
   24213 # Avoid depending upon Character Ranges.
   24214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   24215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   24216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   24217 as_cr_digits='0123456789'
   24218 as_cr_alnum=$as_cr_Letters$as_cr_digits
   24219 
   24220 ECHO_C= ECHO_N= ECHO_T=
   24221 case `echo -n x` in #(((((
   24222 -n*)
   24223   case `echo 'xy\c'` in
   24224   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   24225   xy)  ECHO_C='\c';;
   24226   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   24227        ECHO_T='	';;
   24228   esac;;
   24229 *)
   24230   ECHO_N='-n';;
   24231 esac
   24232 
   24233 rm -f conf$$ conf$$.exe conf$$.file
   24234 if test -d conf$$.dir; then
   24235   rm -f conf$$.dir/conf$$.file
   24236 else
   24237   rm -f conf$$.dir
   24238   mkdir conf$$.dir 2>/dev/null
   24239 fi
   24240 if (echo >conf$$.file) 2>/dev/null; then
   24241   if ln -s conf$$.file conf$$ 2>/dev/null; then
   24242     as_ln_s='ln -s'
   24243     # ... but there are two gotchas:
   24244     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   24245     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   24246     # In both cases, we have to default to `cp -pR'.
   24247     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   24248       as_ln_s='cp -pR'
   24249   elif ln conf$$.file conf$$ 2>/dev/null; then
   24250     as_ln_s=ln
   24251   else
   24252     as_ln_s='cp -pR'
   24253   fi
   24254 else
   24255   as_ln_s='cp -pR'
   24256 fi
   24257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   24258 rmdir conf$$.dir 2>/dev/null
   24259 
   24260 
   24261 # as_fn_mkdir_p
   24262 # -------------
   24263 # Create "$as_dir" as a directory, including parents if necessary.
   24264 as_fn_mkdir_p ()
   24265 {
   24266 
   24267   case $as_dir in #(
   24268   -*) as_dir=./$as_dir;;
   24269   esac
   24270   test -d "$as_dir" || eval $as_mkdir_p || {
   24271     as_dirs=
   24272     while :; do
   24273       case $as_dir in #(
   24274       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   24275       *) as_qdir=$as_dir;;
   24276       esac
   24277       as_dirs="'$as_qdir' $as_dirs"
   24278       as_dir=`$as_dirname -- "$as_dir" ||
   24279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   24280 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   24281 	 X"$as_dir" : 'X\(//\)$' \| \
   24282 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   24283 $as_echo X"$as_dir" |
   24284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   24285 	    s//\1/
   24286 	    q
   24287 	  }
   24288 	  /^X\(\/\/\)[^/].*/{
   24289 	    s//\1/
   24290 	    q
   24291 	  }
   24292 	  /^X\(\/\/\)$/{
   24293 	    s//\1/
   24294 	    q
   24295 	  }
   24296 	  /^X\(\/\).*/{
   24297 	    s//\1/
   24298 	    q
   24299 	  }
   24300 	  s/.*/./; q'`
   24301       test -d "$as_dir" && break
   24302     done
   24303     test -z "$as_dirs" || eval "mkdir $as_dirs"
   24304   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   24305 
   24306 
   24307 } # as_fn_mkdir_p
   24308 if mkdir -p . 2>/dev/null; then
   24309   as_mkdir_p='mkdir -p "$as_dir"'
   24310 else
   24311   test -d ./-p && rmdir ./-p
   24312   as_mkdir_p=false
   24313 fi
   24314 
   24315 
   24316 # as_fn_executable_p FILE
   24317 # -----------------------
   24318 # Test if FILE is an executable regular file.
   24319 as_fn_executable_p ()
   24320 {
   24321   test -f "$1" && test -x "$1"
   24322 } # as_fn_executable_p
   24323 as_test_x='test -x'
   24324 as_executable_p=as_fn_executable_p
   24325 
   24326 # Sed expression to map a string onto a valid CPP name.
   24327 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   24328 
   24329 # Sed expression to map a string onto a valid variable name.
   24330 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   24331 
   24332 
   24333 exec 6>&1
   24334 ## ----------------------------------- ##
   24335 ## Main body of $CONFIG_STATUS script. ##
   24336 ## ----------------------------------- ##
   24337 _ASEOF
   24338 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   24339 
   24340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24341 # Save the log message, to keep $0 and so on meaningful, and to
   24342 # report actual input values of CONFIG_FILES etc. instead of their
   24343 # values after options handling.
   24344 ac_log="
   24345 This file was extended by BIND $as_me 9.16, which was
   24346 generated by GNU Autoconf 2.69.  Invocation command line was
   24347 
   24348   CONFIG_FILES    = $CONFIG_FILES
   24349   CONFIG_HEADERS  = $CONFIG_HEADERS
   24350   CONFIG_LINKS    = $CONFIG_LINKS
   24351   CONFIG_COMMANDS = $CONFIG_COMMANDS
   24352   $ $0 $@
   24353 
   24354 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   24355 "
   24356 
   24357 _ACEOF
   24358 
   24359 case $ac_config_files in *"
   24360 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   24361 esac
   24362 
   24363 case $ac_config_headers in *"
   24364 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   24365 esac
   24366 
   24367 
   24368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24369 # Files that config.status was made for.
   24370 config_files="$ac_config_files"
   24371 config_headers="$ac_config_headers"
   24372 config_commands="$ac_config_commands"
   24373 
   24374 _ACEOF
   24375 
   24376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24377 ac_cs_usage="\
   24378 \`$as_me' instantiates files and other configuration actions
   24379 from templates according to the current configuration.  Unless the files
   24380 and actions are specified as TAGs, all are instantiated by default.
   24381 
   24382 Usage: $0 [OPTION]... [TAG]...
   24383 
   24384   -h, --help       print this help, then exit
   24385   -V, --version    print version number and configuration settings, then exit
   24386       --config     print configuration, then exit
   24387   -q, --quiet, --silent
   24388                    do not print progress messages
   24389   -d, --debug      don't remove temporary files
   24390       --recheck    update $as_me by reconfiguring in the same conditions
   24391       --file=FILE[:TEMPLATE]
   24392                    instantiate the configuration file FILE
   24393       --header=FILE[:TEMPLATE]
   24394                    instantiate the configuration header FILE
   24395 
   24396 Configuration files:
   24397 $config_files
   24398 
   24399 Configuration headers:
   24400 $config_headers
   24401 
   24402 Configuration commands:
   24403 $config_commands
   24404 
   24405 Report bugs to <info@isc.org>.
   24406 BIND home page: <https://www.isc.org/downloads/>."
   24407 
   24408 _ACEOF
   24409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   24411 ac_cs_version="\\
   24412 BIND config.status 9.16
   24413 configured by $0, generated by GNU Autoconf 2.69,
   24414   with options \\"\$ac_cs_config\\"
   24415 
   24416 Copyright (C) 2012 Free Software Foundation, Inc.
   24417 This config.status script is free software; the Free Software Foundation
   24418 gives unlimited permission to copy, distribute and modify it."
   24419 
   24420 ac_pwd='$ac_pwd'
   24421 srcdir='$srcdir'
   24422 INSTALL='$INSTALL'
   24423 MKDIR_P='$MKDIR_P'
   24424 AWK='$AWK'
   24425 test -n "\$AWK" || AWK=awk
   24426 _ACEOF
   24427 
   24428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24429 # The default lists apply if the user does not specify any file.
   24430 ac_need_defaults=:
   24431 while test $# != 0
   24432 do
   24433   case $1 in
   24434   --*=?*)
   24435     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24436     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   24437     ac_shift=:
   24438     ;;
   24439   --*=)
   24440     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24441     ac_optarg=
   24442     ac_shift=:
   24443     ;;
   24444   *)
   24445     ac_option=$1
   24446     ac_optarg=$2
   24447     ac_shift=shift
   24448     ;;
   24449   esac
   24450 
   24451   case $ac_option in
   24452   # Handling of the options.
   24453   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   24454     ac_cs_recheck=: ;;
   24455   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   24456     $as_echo "$ac_cs_version"; exit ;;
   24457   --config | --confi | --conf | --con | --co | --c )
   24458     $as_echo "$ac_cs_config"; exit ;;
   24459   --debug | --debu | --deb | --de | --d | -d )
   24460     debug=: ;;
   24461   --file | --fil | --fi | --f )
   24462     $ac_shift
   24463     case $ac_optarg in
   24464     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24465     '') as_fn_error $? "missing file argument" ;;
   24466     esac
   24467     as_fn_append CONFIG_FILES " '$ac_optarg'"
   24468     ac_need_defaults=false;;
   24469   --header | --heade | --head | --hea )
   24470     $ac_shift
   24471     case $ac_optarg in
   24472     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24473     esac
   24474     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   24475     ac_need_defaults=false;;
   24476   --he | --h)
   24477     # Conflict between --help and --header
   24478     as_fn_error $? "ambiguous option: \`$1'
   24479 Try \`$0 --help' for more information.";;
   24480   --help | --hel | -h )
   24481     $as_echo "$ac_cs_usage"; exit ;;
   24482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   24483   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   24484     ac_cs_silent=: ;;
   24485 
   24486   # This is an error.
   24487   -*) as_fn_error $? "unrecognized option: \`$1'
   24488 Try \`$0 --help' for more information." ;;
   24489 
   24490   *) as_fn_append ac_config_targets " $1"
   24491      ac_need_defaults=false ;;
   24492 
   24493   esac
   24494   shift
   24495 done
   24496 
   24497 ac_configure_extra_args=
   24498 
   24499 if $ac_cs_silent; then
   24500   exec 6>/dev/null
   24501   ac_configure_extra_args="$ac_configure_extra_args --silent"
   24502 fi
   24503 
   24504 _ACEOF
   24505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24506 if \$ac_cs_recheck; then
   24507   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   24508   shift
   24509   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   24510   CONFIG_SHELL='$SHELL'
   24511   export CONFIG_SHELL
   24512   exec "\$@"
   24513 fi
   24514 
   24515 _ACEOF
   24516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24517 exec 5>>config.log
   24518 {
   24519   echo
   24520   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   24521 ## Running $as_me. ##
   24522 _ASBOX
   24523   $as_echo "$ac_log"
   24524 } >&5
   24525 
   24526 _ACEOF
   24527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24528 #
   24529 # INIT-COMMANDS
   24530 #
   24531 
   24532 
   24533 # The HP-UX ksh and POSIX shell print the target directory to stdout
   24534 # if CDPATH is set.
   24535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24536 
   24537 sed_quote_subst='$sed_quote_subst'
   24538 double_quote_subst='$double_quote_subst'
   24539 delay_variable_subst='$delay_variable_subst'
   24540 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   24541 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   24542 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   24543 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   24544 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   24545 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   24546 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   24547 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   24548 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   24549 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   24550 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   24551 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   24552 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   24553 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   24554 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   24555 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   24556 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   24557 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   24558 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   24559 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   24560 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   24561 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   24562 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   24563 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   24564 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   24565 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   24566 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   24567 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   24568 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   24569 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   24570 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   24571 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   24572 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   24573 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   24574 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   24575 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   24576 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   24577 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   24578 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   24579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   24580 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   24581 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   24582 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   24583 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   24584 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   24585 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   24586 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24587 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24588 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   24589 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   24590 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   24591 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   24592 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   24593 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   24594 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   24595 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   24596 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   24597 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   24598 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"`'
   24599 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   24600 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   24601 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   24602 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   24603 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   24604 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   24605 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   24606 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   24607 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   24608 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   24609 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   24610 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   24611 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   24612 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   24613 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   24614 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   24615 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   24616 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   24617 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   24618 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   24619 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24620 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   24621 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   24622 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   24623 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   24624 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   24625 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   24626 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24627 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   24628 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24629 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   24630 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24631 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   24632 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24633 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24634 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   24635 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   24636 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   24637 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   24638 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   24639 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24640 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   24641 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   24642 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   24643 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   24644 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   24645 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   24646 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   24647 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   24648 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   24649 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   24650 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   24651 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   24652 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   24653 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   24654 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   24655 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24656 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   24657 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   24658 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   24659 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   24660 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   24661 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24662 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24663 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   24664 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   24665 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   24666 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   24667 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   24668 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   24669 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   24670 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   24671 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   24672 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   24673 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   24674 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   24675 
   24676 LTCC='$LTCC'
   24677 LTCFLAGS='$LTCFLAGS'
   24678 compiler='$compiler_DEFAULT'
   24679 
   24680 # A function that is used when there is no print builtin or printf.
   24681 func_fallback_echo ()
   24682 {
   24683   eval 'cat <<_LTECHO_EOF
   24684 \$1
   24685 _LTECHO_EOF'
   24686 }
   24687 
   24688 # Quote evaled strings.
   24689 for var in SHELL \
   24690 ECHO \
   24691 PATH_SEPARATOR \
   24692 SED \
   24693 GREP \
   24694 EGREP \
   24695 FGREP \
   24696 LD \
   24697 NM \
   24698 LN_S \
   24699 lt_SP2NL \
   24700 lt_NL2SP \
   24701 reload_flag \
   24702 OBJDUMP \
   24703 deplibs_check_method \
   24704 file_magic_cmd \
   24705 file_magic_glob \
   24706 want_nocaseglob \
   24707 DLLTOOL \
   24708 sharedlib_from_linklib_cmd \
   24709 AR \
   24710 AR_FLAGS \
   24711 archiver_list_spec \
   24712 STRIP \
   24713 RANLIB \
   24714 CC \
   24715 CFLAGS \
   24716 compiler \
   24717 lt_cv_sys_global_symbol_pipe \
   24718 lt_cv_sys_global_symbol_to_cdecl \
   24719 lt_cv_sys_global_symbol_to_import \
   24720 lt_cv_sys_global_symbol_to_c_name_address \
   24721 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   24722 lt_cv_nm_interface \
   24723 nm_file_list_spec \
   24724 lt_cv_truncate_bin \
   24725 lt_prog_compiler_no_builtin_flag \
   24726 lt_prog_compiler_pic \
   24727 lt_prog_compiler_wl \
   24728 lt_prog_compiler_static \
   24729 lt_cv_prog_compiler_c_o \
   24730 need_locks \
   24731 MANIFEST_TOOL \
   24732 DSYMUTIL \
   24733 NMEDIT \
   24734 LIPO \
   24735 OTOOL \
   24736 OTOOL64 \
   24737 shrext_cmds \
   24738 export_dynamic_flag_spec \
   24739 whole_archive_flag_spec \
   24740 compiler_needs_object \
   24741 with_gnu_ld \
   24742 allow_undefined_flag \
   24743 no_undefined_flag \
   24744 hardcode_libdir_flag_spec \
   24745 hardcode_libdir_separator \
   24746 exclude_expsyms \
   24747 include_expsyms \
   24748 file_list_spec \
   24749 variables_saved_for_relink \
   24750 libname_spec \
   24751 library_names_spec \
   24752 soname_spec \
   24753 install_override_mode \
   24754 finish_eval \
   24755 old_striplib \
   24756 striplib; do
   24757     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24758     *[\\\\\\\`\\"\\\$]*)
   24759       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24760       ;;
   24761     *)
   24762       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24763       ;;
   24764     esac
   24765 done
   24766 
   24767 # Double-quote double-evaled strings.
   24768 for var in reload_cmds \
   24769 old_postinstall_cmds \
   24770 old_postuninstall_cmds \
   24771 old_archive_cmds \
   24772 extract_expsyms_cmds \
   24773 old_archive_from_new_cmds \
   24774 old_archive_from_expsyms_cmds \
   24775 archive_cmds \
   24776 archive_expsym_cmds \
   24777 module_cmds \
   24778 module_expsym_cmds \
   24779 export_symbols_cmds \
   24780 prelink_cmds \
   24781 postlink_cmds \
   24782 postinstall_cmds \
   24783 postuninstall_cmds \
   24784 finish_cmds \
   24785 sys_lib_search_path_spec \
   24786 configure_time_dlsearch_path \
   24787 configure_time_lt_sys_library_path; do
   24788     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24789     *[\\\\\\\`\\"\\\$]*)
   24790       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24791       ;;
   24792     *)
   24793       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24794       ;;
   24795     esac
   24796 done
   24797 
   24798 ac_aux_dir='$ac_aux_dir'
   24799 
   24800 # See if we are running on zsh, and set the options that allow our
   24801 # commands through without removal of \ escapes INIT.
   24802 if test -n "\${ZSH_VERSION+set}"; then
   24803    setopt NO_GLOB_SUBST
   24804 fi
   24805 
   24806 
   24807     PACKAGE='$PACKAGE'
   24808     VERSION='$VERSION'
   24809     RM='$RM'
   24810     ofile='$ofile'
   24811 
   24812 
   24813 
   24814 
   24815 _ACEOF
   24816 
   24817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24818 
   24819 # Handling of arguments.
   24820 for ac_config_target in $ac_config_targets
   24821 do
   24822   case $ac_config_target in
   24823     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   24824     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   24825     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   24826     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   24827     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   24828     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   24829     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   24830     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   24831     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   24832     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   24833     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   24834     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   24835     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   24836     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   24837     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   24838     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   24839     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   24840     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   24841     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   24842     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   24843     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   24844     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   24845     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   24846     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   24847     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   24848     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   24849     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   24850     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   24851     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   24852     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   24853     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   24854     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   24855     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   24856     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   24857     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   24858     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   24859     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   24860     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   24861     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   24862     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   24863     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   24864     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   24865     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   24866     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   24867     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   24868     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   24869     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   24870     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   24871     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   24872     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   24873     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   24874     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   24875     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   24876     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   24877     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   24878     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   24879     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   24880     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   24881     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   24882     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   24883     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   24884     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   24885     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   24886     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   24887     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   24888     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   24889     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   24890     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   24891     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
   24892     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   24893     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   24894     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   24895     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   24896     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   24897     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   24898     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   24899     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   24900     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   24901     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   24902     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   24903     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   24904     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   24905     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   24906     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   24907     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   24908     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   24909     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   24910     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   24911     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   24912     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   24913     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   24914     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   24915     "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
   24916     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   24917     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   24918     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   24919     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   24920     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   24921     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   24922     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   24923     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   24924     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   24925     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   24926     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   24927     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   24928     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   24929     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   24930     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   24931     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   24932     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   24933     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   24934     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   24935     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   24936     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   24937     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   24938     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   24939     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   24940     "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
   24941 
   24942   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   24943   esac
   24944 done
   24945 
   24946 
   24947 # If the user did not use the arguments to specify the items to instantiate,
   24948 # then the envvar interface is used.  Set only those that are not.
   24949 # We use the long form for the default assignment because of an extremely
   24950 # bizarre bug on SunOS 4.1.3.
   24951 if $ac_need_defaults; then
   24952   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   24953   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   24954   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   24955 fi
   24956 
   24957 # Have a temporary directory for convenience.  Make it in the build tree
   24958 # simply because there is no reason against having it here, and in addition,
   24959 # creating and moving files from /tmp can sometimes cause problems.
   24960 # Hook for its removal unless debugging.
   24961 # Note that there is a small window in which the directory will not be cleaned:
   24962 # after its creation but before its name has been assigned to `$tmp'.
   24963 $debug ||
   24964 {
   24965   tmp= ac_tmp=
   24966   trap 'exit_status=$?
   24967   : "${ac_tmp:=$tmp}"
   24968   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   24969 ' 0
   24970   trap 'as_fn_exit 1' 1 2 13 15
   24971 }
   24972 # Create a (secure) tmp directory for tmp files.
   24973 
   24974 {
   24975   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   24976   test -d "$tmp"
   24977 }  ||
   24978 {
   24979   tmp=./conf$$-$RANDOM
   24980   (umask 077 && mkdir "$tmp")
   24981 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   24982 ac_tmp=$tmp
   24983 
   24984 # Set up the scripts for CONFIG_FILES section.
   24985 # No need to generate them if there are no CONFIG_FILES.
   24986 # This happens for instance with `./config.status config.h'.
   24987 if test -n "$CONFIG_FILES"; then
   24988 
   24989 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   24990   ac_cs_awk_getline=:
   24991   ac_cs_awk_pipe_init=
   24992   ac_cs_awk_read_file='
   24993       while ((getline aline < (F[key])) > 0)
   24994 	print(aline)
   24995       close(F[key])'
   24996   ac_cs_awk_pipe_fini=
   24997 else
   24998   ac_cs_awk_getline=false
   24999   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   25000   ac_cs_awk_read_file='
   25001       print "|#_!!_#|"
   25002       print "cat " F[key] " &&"
   25003       '$ac_cs_awk_pipe_init
   25004   # The final `:' finishes the AND list.
   25005   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   25006 fi
   25007 ac_cr=`echo X | tr X '\015'`
   25008 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   25009 # But we know of no other shell where ac_cr would be empty at this
   25010 # point, so we can use a bashism as a fallback.
   25011 if test "x$ac_cr" = x; then
   25012   eval ac_cr=\$\'\\r\'
   25013 fi
   25014 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   25015 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   25016   ac_cs_awk_cr='\\r'
   25017 else
   25018   ac_cs_awk_cr=$ac_cr
   25019 fi
   25020 
   25021 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   25022 _ACEOF
   25023 
   25024 # Create commands to substitute file output variables.
   25025 {
   25026   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   25027   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   25028   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   25029   echo "_ACAWK" &&
   25030   echo "_ACEOF"
   25031 } >conf$$files.sh &&
   25032 . ./conf$$files.sh ||
   25033   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25034 rm -f conf$$files.sh
   25035 
   25036 {
   25037   echo "cat >conf$$subs.awk <<_ACEOF" &&
   25038   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   25039   echo "_ACEOF"
   25040 } >conf$$subs.sh ||
   25041   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   25043 ac_delim='%!_!# '
   25044 for ac_last_try in false false false false false :; do
   25045   . ./conf$$subs.sh ||
   25046     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25047 
   25048   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   25049   if test $ac_delim_n = $ac_delim_num; then
   25050     break
   25051   elif $ac_last_try; then
   25052     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   25053   else
   25054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25055   fi
   25056 done
   25057 rm -f conf$$subs.sh
   25058 
   25059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25060 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   25061 _ACEOF
   25062 sed -n '
   25063 h
   25064 s/^/S["/; s/!.*/"]=/
   25065 p
   25066 g
   25067 s/^[^!]*!//
   25068 :repl
   25069 t repl
   25070 s/'"$ac_delim"'$//
   25071 t delim
   25072 :nl
   25073 h
   25074 s/\(.\{148\}\)..*/\1/
   25075 t more1
   25076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   25077 p
   25078 n
   25079 b repl
   25080 :more1
   25081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25082 p
   25083 g
   25084 s/.\{148\}//
   25085 t nl
   25086 :delim
   25087 h
   25088 s/\(.\{148\}\)..*/\1/
   25089 t more2
   25090 s/["\\]/\\&/g; s/^/"/; s/$/"/
   25091 p
   25092 b
   25093 :more2
   25094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   25095 p
   25096 g
   25097 s/.\{148\}//
   25098 t delim
   25099 ' <conf$$subs.awk | sed '
   25100 /^[^""]/{
   25101   N
   25102   s/\n//
   25103 }
   25104 ' >>$CONFIG_STATUS || ac_write_fail=1
   25105 rm -f conf$$subs.awk
   25106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25107 _ACAWK
   25108 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   25109   for (key in S) S_is_set[key] = 1
   25110   FS = ""
   25111   \$ac_cs_awk_pipe_init
   25112 }
   25113 {
   25114   line = $ 0
   25115   nfields = split(line, field, "@")
   25116   substed = 0
   25117   len = length(field[1])
   25118   for (i = 2; i < nfields; i++) {
   25119     key = field[i]
   25120     keylen = length(key)
   25121     if (S_is_set[key]) {
   25122       value = S[key]
   25123       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   25124       len += length(value) + length(field[++i])
   25125       substed = 1
   25126     } else
   25127       len += 1 + keylen
   25128   }
   25129   if (nfields == 3 && !substed) {
   25130     key = field[2]
   25131     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   25132       \$ac_cs_awk_read_file
   25133       next
   25134     }
   25135   }
   25136   print line
   25137 }
   25138 \$ac_cs_awk_pipe_fini
   25139 _ACAWK
   25140 _ACEOF
   25141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25142 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   25143   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   25144 else
   25145   cat
   25146 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   25147   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   25148 _ACEOF
   25149 
   25150 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   25151 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   25152 # trailing colons and then remove the whole line if VPATH becomes empty
   25153 # (actually we leave an empty line to preserve line numbers).
   25154 if test "x$srcdir" = x.; then
   25155   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   25156 h
   25157 s///
   25158 s/^/:/
   25159 s/[	 ]*$/:/
   25160 s/:\$(srcdir):/:/g
   25161 s/:\${srcdir}:/:/g
   25162 s/:@srcdir@:/:/g
   25163 s/^:*//
   25164 s/:*$//
   25165 x
   25166 s/\(=[	 ]*\).*/\1/
   25167 G
   25168 s/\n//
   25169 s/^[^=]*=[	 ]*$//
   25170 }'
   25171 fi
   25172 
   25173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25174 fi # test -n "$CONFIG_FILES"
   25175 
   25176 # Set up the scripts for CONFIG_HEADERS section.
   25177 # No need to generate them if there are no CONFIG_HEADERS.
   25178 # This happens for instance with `./config.status Makefile'.
   25179 if test -n "$CONFIG_HEADERS"; then
   25180 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   25181 BEGIN {
   25182 _ACEOF
   25183 
   25184 # Transform confdefs.h into an awk script `defines.awk', embedded as
   25185 # here-document in config.status, that substitutes the proper values into
   25186 # config.h.in to produce config.h.
   25187 
   25188 # Create a delimiter string that does not exist in confdefs.h, to ease
   25189 # handling of long lines.
   25190 ac_delim='%!_!# '
   25191 for ac_last_try in false false :; do
   25192   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   25193   if test -z "$ac_tt"; then
   25194     break
   25195   elif $ac_last_try; then
   25196     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   25197   else
   25198     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25199   fi
   25200 done
   25201 
   25202 # For the awk script, D is an array of macro values keyed by name,
   25203 # likewise P contains macro parameters if any.  Preserve backslash
   25204 # newline sequences.
   25205 
   25206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   25207 sed -n '
   25208 s/.\{148\}/&'"$ac_delim"'/g
   25209 t rset
   25210 :rset
   25211 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   25212 t def
   25213 d
   25214 :def
   25215 s/\\$//
   25216 t bsnl
   25217 s/["\\]/\\&/g
   25218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25219 D["\1"]=" \3"/p
   25220 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   25221 d
   25222 :bsnl
   25223 s/["\\]/\\&/g
   25224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25225 D["\1"]=" \3\\\\\\n"\\/p
   25226 t cont
   25227 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   25228 t cont
   25229 d
   25230 :cont
   25231 n
   25232 s/.\{148\}/&'"$ac_delim"'/g
   25233 t clear
   25234 :clear
   25235 s/\\$//
   25236 t bsnlc
   25237 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   25238 d
   25239 :bsnlc
   25240 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   25241 b cont
   25242 ' <confdefs.h | sed '
   25243 s/'"$ac_delim"'/"\\\
   25244 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   25245 
   25246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25247   for (key in D) D_is_set[key] = 1
   25248   FS = ""
   25249 }
   25250 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   25251   line = \$ 0
   25252   split(line, arg, " ")
   25253   if (arg[1] == "#") {
   25254     defundef = arg[2]
   25255     mac1 = arg[3]
   25256   } else {
   25257     defundef = substr(arg[1], 2)
   25258     mac1 = arg[2]
   25259   }
   25260   split(mac1, mac2, "(") #)
   25261   macro = mac2[1]
   25262   prefix = substr(line, 1, index(line, defundef) - 1)
   25263   if (D_is_set[macro]) {
   25264     # Preserve the white space surrounding the "#".
   25265     print prefix "define", macro P[macro] D[macro]
   25266     next
   25267   } else {
   25268     # Replace #undef with comments.  This is necessary, for example,
   25269     # in the case of _POSIX_SOURCE, which is predefined and required
   25270     # on some systems where configure will not decide to define it.
   25271     if (defundef == "undef") {
   25272       print "/*", prefix defundef, macro, "*/"
   25273       next
   25274     }
   25275   }
   25276 }
   25277 { print }
   25278 _ACAWK
   25279 _ACEOF
   25280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25281   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   25282 fi # test -n "$CONFIG_HEADERS"
   25283 
   25284 
   25285 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   25286 shift
   25287 for ac_tag
   25288 do
   25289   case $ac_tag in
   25290   :[FHLC]) ac_mode=$ac_tag; continue;;
   25291   esac
   25292   case $ac_mode$ac_tag in
   25293   :[FHL]*:*);;
   25294   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   25295   :[FH]-) ac_tag=-:-;;
   25296   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   25297   esac
   25298   ac_save_IFS=$IFS
   25299   IFS=:
   25300   set x $ac_tag
   25301   IFS=$ac_save_IFS
   25302   shift
   25303   ac_file=$1
   25304   shift
   25305 
   25306   case $ac_mode in
   25307   :L) ac_source=$1;;
   25308   :[FH])
   25309     ac_file_inputs=
   25310     for ac_f
   25311     do
   25312       case $ac_f in
   25313       -) ac_f="$ac_tmp/stdin";;
   25314       *) # Look for the file first in the build tree, then in the source tree
   25315 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   25316 	 # because $ac_f cannot contain `:'.
   25317 	 test -f "$ac_f" ||
   25318 	   case $ac_f in
   25319 	   [\\/$]*) false;;
   25320 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   25321 	   esac ||
   25322 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   25323       esac
   25324       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   25325       as_fn_append ac_file_inputs " '$ac_f'"
   25326     done
   25327 
   25328     # Let's still pretend it is `configure' which instantiates (i.e., don't
   25329     # use $as_me), people would be surprised to read:
   25330     #    /* config.h.  Generated by config.status.  */
   25331     configure_input='Generated from '`
   25332 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   25333 	`' by configure.'
   25334     if test x"$ac_file" != x-; then
   25335       configure_input="$ac_file.  $configure_input"
   25336       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   25337 $as_echo "$as_me: creating $ac_file" >&6;}
   25338     fi
   25339     # Neutralize special characters interpreted by sed in replacement strings.
   25340     case $configure_input in #(
   25341     *\&* | *\|* | *\\* )
   25342        ac_sed_conf_input=`$as_echo "$configure_input" |
   25343        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   25344     *) ac_sed_conf_input=$configure_input;;
   25345     esac
   25346 
   25347     case $ac_tag in
   25348     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   25349       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   25350     esac
   25351     ;;
   25352   esac
   25353 
   25354   ac_dir=`$as_dirname -- "$ac_file" ||
   25355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25356 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   25357 	 X"$ac_file" : 'X\(//\)$' \| \
   25358 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   25359 $as_echo X"$ac_file" |
   25360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   25361 	    s//\1/
   25362 	    q
   25363 	  }
   25364 	  /^X\(\/\/\)[^/].*/{
   25365 	    s//\1/
   25366 	    q
   25367 	  }
   25368 	  /^X\(\/\/\)$/{
   25369 	    s//\1/
   25370 	    q
   25371 	  }
   25372 	  /^X\(\/\).*/{
   25373 	    s//\1/
   25374 	    q
   25375 	  }
   25376 	  s/.*/./; q'`
   25377   as_dir="$ac_dir"; as_fn_mkdir_p
   25378   ac_builddir=.
   25379 
   25380 case "$ac_dir" in
   25381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25382 *)
   25383   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   25384   # A ".." for each directory in $ac_dir_suffix.
   25385   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   25386   case $ac_top_builddir_sub in
   25387   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25388   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   25389   esac ;;
   25390 esac
   25391 ac_abs_top_builddir=$ac_pwd
   25392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   25393 # for backward compatibility:
   25394 ac_top_builddir=$ac_top_build_prefix
   25395 
   25396 case $srcdir in
   25397   .)  # We are building in place.
   25398     ac_srcdir=.
   25399     ac_top_srcdir=$ac_top_builddir_sub
   25400     ac_abs_top_srcdir=$ac_pwd ;;
   25401   [\\/]* | ?:[\\/]* )  # Absolute name.
   25402     ac_srcdir=$srcdir$ac_dir_suffix;
   25403     ac_top_srcdir=$srcdir
   25404     ac_abs_top_srcdir=$srcdir ;;
   25405   *) # Relative name.
   25406     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   25407     ac_top_srcdir=$ac_top_build_prefix$srcdir
   25408     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   25409 esac
   25410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   25411 
   25412 
   25413   case $ac_mode in
   25414   :F)
   25415   #
   25416   # CONFIG_FILE
   25417   #
   25418 
   25419   case $INSTALL in
   25420   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   25421   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   25422   esac
   25423   ac_MKDIR_P=$MKDIR_P
   25424   case $MKDIR_P in
   25425   [\\/$]* | ?:[\\/]* ) ;;
   25426   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   25427   esac
   25428 _ACEOF
   25429 
   25430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25431 # If the template does not know about datarootdir, expand it.
   25432 # FIXME: This hack should be removed a few years after 2.60.
   25433 ac_datarootdir_hack=; ac_datarootdir_seen=
   25434 ac_sed_dataroot='
   25435 /datarootdir/ {
   25436   p
   25437   q
   25438 }
   25439 /@datadir@/p
   25440 /@docdir@/p
   25441 /@infodir@/p
   25442 /@localedir@/p
   25443 /@mandir@/p'
   25444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   25445 *datarootdir*) ac_datarootdir_seen=yes;;
   25446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   25447   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   25448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   25449 _ACEOF
   25450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25451   ac_datarootdir_hack='
   25452   s&@datadir@&$datadir&g
   25453   s&@docdir@&$docdir&g
   25454   s&@infodir@&$infodir&g
   25455   s&@localedir@&$localedir&g
   25456   s&@mandir@&$mandir&g
   25457   s&\\\${datarootdir}&$datarootdir&g' ;;
   25458 esac
   25459 _ACEOF
   25460 
   25461 # Neutralize VPATH when `$srcdir' = `.'.
   25462 # Shell code in configure.ac might set extrasub.
   25463 # FIXME: do we really want to maintain this feature?
   25464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25465 ac_sed_extra="$ac_vpsub
   25466 $extrasub
   25467 _ACEOF
   25468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25469 :t
   25470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   25471 s|@configure_input@|$ac_sed_conf_input|;t t
   25472 s&@top_builddir@&$ac_top_builddir_sub&;t t
   25473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   25474 s&@srcdir@&$ac_srcdir&;t t
   25475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   25476 s&@top_srcdir@&$ac_top_srcdir&;t t
   25477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   25478 s&@builddir@&$ac_builddir&;t t
   25479 s&@abs_builddir@&$ac_abs_builddir&;t t
   25480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   25481 s&@INSTALL@&$ac_INSTALL&;t t
   25482 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   25483 $ac_datarootdir_hack
   25484 "
   25485 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   25486 if $ac_cs_awk_getline; then
   25487   $AWK -f "$ac_tmp/subs.awk"
   25488 else
   25489   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   25490 fi \
   25491   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25492 
   25493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   25494   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   25495   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   25496       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   25497   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25498 which seems to be undefined.  Please make sure it is defined" >&5
   25499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25500 which seems to be undefined.  Please make sure it is defined" >&2;}
   25501 
   25502   rm -f "$ac_tmp/stdin"
   25503   case $ac_file in
   25504   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   25505   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   25506   esac \
   25507   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25508  ;;
   25509   :H)
   25510   #
   25511   # CONFIG_HEADER
   25512   #
   25513   if test x"$ac_file" != x-; then
   25514     {
   25515       $as_echo "/* $configure_input  */" \
   25516       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   25517     } >"$ac_tmp/config.h" \
   25518       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25519     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   25520       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   25521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   25522     else
   25523       rm -f "$ac_file"
   25524       mv "$ac_tmp/config.h" "$ac_file" \
   25525 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25526     fi
   25527   else
   25528     $as_echo "/* $configure_input  */" \
   25529       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   25530       || as_fn_error $? "could not create -" "$LINENO" 5
   25531   fi
   25532  ;;
   25533 
   25534   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   25535 $as_echo "$as_me: executing $ac_file commands" >&6;}
   25536  ;;
   25537   esac
   25538 
   25539 
   25540   case $ac_file$ac_mode in
   25541     "libtool":C)
   25542 
   25543     # See if we are running on zsh, and set the options that allow our
   25544     # commands through without removal of \ escapes.
   25545     if test -n "${ZSH_VERSION+set}"; then
   25546       setopt NO_GLOB_SUBST
   25547     fi
   25548 
   25549     cfgfile=${ofile}T
   25550     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   25551     $RM "$cfgfile"
   25552 
   25553     cat <<_LT_EOF >> "$cfgfile"
   25554 #! $SHELL
   25555 # Generated automatically by $as_me ($PACKAGE) $VERSION
   25556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   25557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   25558 
   25559 # Provide generalized library-building support services.
   25560 # Written by Gordon Matzigkeit, 1996
   25561 
   25562 # Copyright (C) 2014 Free Software Foundation, Inc.
   25563 # This is free software; see the source for copying conditions.  There is NO
   25564 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   25565 
   25566 # GNU Libtool is free software; you can redistribute it and/or modify
   25567 # it under the terms of the GNU General Public License as published by
   25568 # the Free Software Foundation; either version 2 of of the License, or
   25569 # (at your option) any later version.
   25570 #
   25571 # As a special exception to the GNU General Public License, if you
   25572 # distribute this file as part of a program or library that is built
   25573 # using GNU Libtool, you may include this file under the  same
   25574 # distribution terms that you use for the rest of that program.
   25575 #
   25576 # GNU Libtool is distributed in the hope that it will be useful, but
   25577 # WITHOUT ANY WARRANTY; without even the implied warranty of
   25578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   25579 # GNU General Public License for more details.
   25580 #
   25581 # You should have received a copy of the GNU General Public License
   25582 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   25583 
   25584 
   25585 # The names of the tagged configurations supported by this script.
   25586 available_tags=''
   25587 
   25588 # Configured defaults for sys_lib_dlsearch_path munging.
   25589 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   25590 
   25591 # ### BEGIN LIBTOOL CONFIG
   25592 
   25593 # Which release of libtool.m4 was used?
   25594 macro_version=$macro_version
   25595 macro_revision=$macro_revision
   25596 
   25597 # Whether or not to build shared libraries.
   25598 build_libtool_libs=$enable_shared
   25599 
   25600 # Whether or not to build static libraries.
   25601 build_old_libs=$enable_static
   25602 
   25603 # What type of objects to build.
   25604 pic_mode=$pic_mode
   25605 
   25606 # Whether or not to optimize for fast installation.
   25607 fast_install=$enable_fast_install
   25608 
   25609 # Shared archive member basename,for filename based shared library versioning on AIX.
   25610 shared_archive_member_spec=$shared_archive_member_spec
   25611 
   25612 # Shell to use when invoking shell scripts.
   25613 SHELL=$lt_SHELL
   25614 
   25615 # An echo program that protects backslashes.
   25616 ECHO=$lt_ECHO
   25617 
   25618 # The PATH separator for the build system.
   25619 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   25620 
   25621 # The host system.
   25622 host_alias=$host_alias
   25623 host=$host
   25624 host_os=$host_os
   25625 
   25626 # The build system.
   25627 build_alias=$build_alias
   25628 build=$build
   25629 build_os=$build_os
   25630 
   25631 # A sed program that does not truncate output.
   25632 SED=$lt_SED
   25633 
   25634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   25635 Xsed="\$SED -e 1s/^X//"
   25636 
   25637 # A grep program that handles long lines.
   25638 GREP=$lt_GREP
   25639 
   25640 # An ERE matcher.
   25641 EGREP=$lt_EGREP
   25642 
   25643 # A literal string matcher.
   25644 FGREP=$lt_FGREP
   25645 
   25646 # A BSD- or MS-compatible name lister.
   25647 NM=$lt_NM
   25648 
   25649 # Whether we need soft or hard links.
   25650 LN_S=$lt_LN_S
   25651 
   25652 # What is the maximum length of a command?
   25653 max_cmd_len=$max_cmd_len
   25654 
   25655 # Object file suffix (normally "o").
   25656 objext=$ac_objext
   25657 
   25658 # Executable file suffix (normally "").
   25659 exeext=$exeext
   25660 
   25661 # whether the shell understands "unset".
   25662 lt_unset=$lt_unset
   25663 
   25664 # turn spaces into newlines.
   25665 SP2NL=$lt_lt_SP2NL
   25666 
   25667 # turn newlines into spaces.
   25668 NL2SP=$lt_lt_NL2SP
   25669 
   25670 # convert \$build file names to \$host format.
   25671 to_host_file_cmd=$lt_cv_to_host_file_cmd
   25672 
   25673 # convert \$build files to toolchain format.
   25674 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   25675 
   25676 # An object symbol dumper.
   25677 OBJDUMP=$lt_OBJDUMP
   25678 
   25679 # Method to check whether dependent libraries are shared objects.
   25680 deplibs_check_method=$lt_deplibs_check_method
   25681 
   25682 # Command to use when deplibs_check_method = "file_magic".
   25683 file_magic_cmd=$lt_file_magic_cmd
   25684 
   25685 # How to find potential files when deplibs_check_method = "file_magic".
   25686 file_magic_glob=$lt_file_magic_glob
   25687 
   25688 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   25689 want_nocaseglob=$lt_want_nocaseglob
   25690 
   25691 # DLL creation program.
   25692 DLLTOOL=$lt_DLLTOOL
   25693 
   25694 # Command to associate shared and link libraries.
   25695 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   25696 
   25697 # The archiver.
   25698 AR=$lt_AR
   25699 
   25700 # Flags to create an archive.
   25701 AR_FLAGS=$lt_AR_FLAGS
   25702 
   25703 # How to feed a file listing to the archiver.
   25704 archiver_list_spec=$lt_archiver_list_spec
   25705 
   25706 # A symbol stripping program.
   25707 STRIP=$lt_STRIP
   25708 
   25709 # Commands used to install an old-style archive.
   25710 RANLIB=$lt_RANLIB
   25711 old_postinstall_cmds=$lt_old_postinstall_cmds
   25712 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   25713 
   25714 # Whether to use a lock for old archive extraction.
   25715 lock_old_archive_extraction=$lock_old_archive_extraction
   25716 
   25717 # A C compiler.
   25718 LTCC=$lt_CC
   25719 
   25720 # LTCC compiler flags.
   25721 LTCFLAGS=$lt_CFLAGS
   25722 
   25723 # Take the output of nm and produce a listing of raw symbols and C names.
   25724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   25725 
   25726 # Transform the output of nm in a proper C declaration.
   25727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   25728 
   25729 # Transform the output of nm into a list of symbols to manually relocate.
   25730 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   25731 
   25732 # Transform the output of nm in a C name address pair.
   25733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   25734 
   25735 # Transform the output of nm in a C name address pair when lib prefix is needed.
   25736 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   25737 
   25738 # The name lister interface.
   25739 nm_interface=$lt_lt_cv_nm_interface
   25740 
   25741 # Specify filename containing input files for \$NM.
   25742 nm_file_list_spec=$lt_nm_file_list_spec
   25743 
   25744 # The root where to search for dependent libraries,and where our libraries should be installed.
   25745 lt_sysroot=$lt_sysroot
   25746 
   25747 # Command to truncate a binary pipe.
   25748 lt_truncate_bin=$lt_lt_cv_truncate_bin
   25749 
   25750 # The name of the directory that contains temporary libtool files.
   25751 objdir=$objdir
   25752 
   25753 # Used to examine libraries when file_magic_cmd begins with "file".
   25754 MAGIC_CMD=$MAGIC_CMD
   25755 
   25756 # Must we lock files when doing compilation?
   25757 need_locks=$lt_need_locks
   25758 
   25759 # Manifest tool.
   25760 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   25761 
   25762 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   25763 DSYMUTIL=$lt_DSYMUTIL
   25764 
   25765 # Tool to change global to local symbols on Mac OS X.
   25766 NMEDIT=$lt_NMEDIT
   25767 
   25768 # Tool to manipulate fat objects and archives on Mac OS X.
   25769 LIPO=$lt_LIPO
   25770 
   25771 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   25772 OTOOL=$lt_OTOOL
   25773 
   25774 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   25775 OTOOL64=$lt_OTOOL64
   25776 
   25777 # Old archive suffix (normally "a").
   25778 libext=$libext
   25779 
   25780 # Shared library suffix (normally ".so").
   25781 shrext_cmds=$lt_shrext_cmds
   25782 
   25783 # The commands to extract the exported symbol list from a shared archive.
   25784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   25785 
   25786 # Variables whose values should be saved in libtool wrapper scripts and
   25787 # restored at link time.
   25788 variables_saved_for_relink=$lt_variables_saved_for_relink
   25789 
   25790 # Do we need the "lib" prefix for modules?
   25791 need_lib_prefix=$need_lib_prefix
   25792 
   25793 # Do we need a version for libraries?
   25794 need_version=$need_version
   25795 
   25796 # Library versioning type.
   25797 version_type=$version_type
   25798 
   25799 # Shared library runtime path variable.
   25800 runpath_var=$runpath_var
   25801 
   25802 # Shared library path variable.
   25803 shlibpath_var=$shlibpath_var
   25804 
   25805 # Is shlibpath searched before the hard-coded library search path?
   25806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   25807 
   25808 # Format of library name prefix.
   25809 libname_spec=$lt_libname_spec
   25810 
   25811 # List of archive names.  First name is the real one, the rest are links.
   25812 # The last name is the one that the linker finds with -lNAME
   25813 library_names_spec=$lt_library_names_spec
   25814 
   25815 # The coded name of the library, if different from the real name.
   25816 soname_spec=$lt_soname_spec
   25817 
   25818 # Permission mode override for installation of shared libraries.
   25819 install_override_mode=$lt_install_override_mode
   25820 
   25821 # Command to use after installation of a shared archive.
   25822 postinstall_cmds=$lt_postinstall_cmds
   25823 
   25824 # Command to use after uninstallation of a shared archive.
   25825 postuninstall_cmds=$lt_postuninstall_cmds
   25826 
   25827 # Commands used to finish a libtool library installation in a directory.
   25828 finish_cmds=$lt_finish_cmds
   25829 
   25830 # As "finish_cmds", except a single script fragment to be evaled but
   25831 # not shown.
   25832 finish_eval=$lt_finish_eval
   25833 
   25834 # Whether we should hardcode library paths into libraries.
   25835 hardcode_into_libs=$hardcode_into_libs
   25836 
   25837 # Compile-time system search path for libraries.
   25838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   25839 
   25840 # Detected run-time system search path for libraries.
   25841 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   25842 
   25843 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   25844 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   25845 
   25846 # Whether dlopen is supported.
   25847 dlopen_support=$enable_dlopen
   25848 
   25849 # Whether dlopen of programs is supported.
   25850 dlopen_self=$enable_dlopen_self
   25851 
   25852 # Whether dlopen of statically linked programs is supported.
   25853 dlopen_self_static=$enable_dlopen_self_static
   25854 
   25855 # Commands to strip libraries.
   25856 old_striplib=$lt_old_striplib
   25857 striplib=$lt_striplib
   25858 
   25859 
   25860 # The linker used to build libraries.
   25861 LD=$lt_LD
   25862 
   25863 # How to create reloadable object files.
   25864 reload_flag=$lt_reload_flag
   25865 reload_cmds=$lt_reload_cmds
   25866 
   25867 # Commands used to build an old-style archive.
   25868 old_archive_cmds=$lt_old_archive_cmds
   25869 
   25870 # A language specific compiler.
   25871 CC=$lt_compiler
   25872 
   25873 # Is the compiler the GNU compiler?
   25874 with_gcc=$GCC
   25875 
   25876 # Compiler flag to turn off builtin functions.
   25877 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   25878 
   25879 # Additional compiler flags for building library objects.
   25880 pic_flag=$lt_lt_prog_compiler_pic
   25881 
   25882 # How to pass a linker flag through the compiler.
   25883 wl=$lt_lt_prog_compiler_wl
   25884 
   25885 # Compiler flag to prevent dynamic linking.
   25886 link_static_flag=$lt_lt_prog_compiler_static
   25887 
   25888 # Does compiler simultaneously support -c and -o options?
   25889 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   25890 
   25891 # Whether or not to add -lc for building shared libraries.
   25892 build_libtool_need_lc=$archive_cmds_need_lc
   25893 
   25894 # Whether or not to disallow shared libs when runtime libs are static.
   25895 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   25896 
   25897 # Compiler flag to allow reflexive dlopens.
   25898 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   25899 
   25900 # Compiler flag to generate shared objects directly from archives.
   25901 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   25902 
   25903 # Whether the compiler copes with passing no objects directly.
   25904 compiler_needs_object=$lt_compiler_needs_object
   25905 
   25906 # Create an old-style archive from a shared archive.
   25907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   25908 
   25909 # Create a temporary old-style archive to link instead of a shared archive.
   25910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   25911 
   25912 # Commands used to build a shared archive.
   25913 archive_cmds=$lt_archive_cmds
   25914 archive_expsym_cmds=$lt_archive_expsym_cmds
   25915 
   25916 # Commands used to build a loadable module if different from building
   25917 # a shared archive.
   25918 module_cmds=$lt_module_cmds
   25919 module_expsym_cmds=$lt_module_expsym_cmds
   25920 
   25921 # Whether we are building with GNU ld or not.
   25922 with_gnu_ld=$lt_with_gnu_ld
   25923 
   25924 # Flag that allows shared libraries with undefined symbols to be built.
   25925 allow_undefined_flag=$lt_allow_undefined_flag
   25926 
   25927 # Flag that enforces no undefined symbols.
   25928 no_undefined_flag=$lt_no_undefined_flag
   25929 
   25930 # Flag to hardcode \$libdir into a binary during linking.
   25931 # This must work even if \$libdir does not exist
   25932 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   25933 
   25934 # Whether we need a single "-rpath" flag with a separated argument.
   25935 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   25936 
   25937 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25938 # DIR into the resulting binary.
   25939 hardcode_direct=$hardcode_direct
   25940 
   25941 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25942 # DIR into the resulting binary and the resulting library dependency is
   25943 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   25944 # library is relocated.
   25945 hardcode_direct_absolute=$hardcode_direct_absolute
   25946 
   25947 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   25948 # into the resulting binary.
   25949 hardcode_minus_L=$hardcode_minus_L
   25950 
   25951 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   25952 # into the resulting binary.
   25953 hardcode_shlibpath_var=$hardcode_shlibpath_var
   25954 
   25955 # Set to "yes" if building a shared library automatically hardcodes DIR
   25956 # into the library and all subsequent libraries and executables linked
   25957 # against it.
   25958 hardcode_automatic=$hardcode_automatic
   25959 
   25960 # Set to yes if linker adds runtime paths of dependent libraries
   25961 # to runtime path list.
   25962 inherit_rpath=$inherit_rpath
   25963 
   25964 # Whether libtool must link a program against all its dependency libraries.
   25965 link_all_deplibs=$link_all_deplibs
   25966 
   25967 # Set to "yes" if exported symbols are required.
   25968 always_export_symbols=$always_export_symbols
   25969 
   25970 # The commands to list exported symbols.
   25971 export_symbols_cmds=$lt_export_symbols_cmds
   25972 
   25973 # Symbols that should not be listed in the preloaded symbols.
   25974 exclude_expsyms=$lt_exclude_expsyms
   25975 
   25976 # Symbols that must always be exported.
   25977 include_expsyms=$lt_include_expsyms
   25978 
   25979 # Commands necessary for linking programs (against libraries) with templates.
   25980 prelink_cmds=$lt_prelink_cmds
   25981 
   25982 # Commands necessary for finishing linking programs.
   25983 postlink_cmds=$lt_postlink_cmds
   25984 
   25985 # Specify filename containing input files.
   25986 file_list_spec=$lt_file_list_spec
   25987 
   25988 # How to hardcode a shared library path into an executable.
   25989 hardcode_action=$hardcode_action
   25990 
   25991 # ### END LIBTOOL CONFIG
   25992 
   25993 _LT_EOF
   25994 
   25995     cat <<'_LT_EOF' >> "$cfgfile"
   25996 
   25997 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   25998 
   25999 # func_munge_path_list VARIABLE PATH
   26000 # -----------------------------------
   26001 # VARIABLE is name of variable containing _space_ separated list of
   26002 # directories to be munged by the contents of PATH, which is string
   26003 # having a format:
   26004 # "DIR[:DIR]:"
   26005 #       string "DIR[ DIR]" will be prepended to VARIABLE
   26006 # ":DIR[:DIR]"
   26007 #       string "DIR[ DIR]" will be appended to VARIABLE
   26008 # "DIRP[:DIRP]::[DIRA:]DIRA"
   26009 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   26010 #       "DIRA[ DIRA]" will be appended to VARIABLE
   26011 # "DIR[:DIR]"
   26012 #       VARIABLE will be replaced by "DIR[ DIR]"
   26013 func_munge_path_list ()
   26014 {
   26015     case x$2 in
   26016     x)
   26017         ;;
   26018     *:)
   26019         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   26020         ;;
   26021     x:*)
   26022         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   26023         ;;
   26024     *::*)
   26025         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   26026         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   26027         ;;
   26028     *)
   26029         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   26030         ;;
   26031     esac
   26032 }
   26033 
   26034 
   26035 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   26036 func_cc_basename ()
   26037 {
   26038     for cc_temp in $*""; do
   26039       case $cc_temp in
   26040         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   26041         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   26042         \-*) ;;
   26043         *) break;;
   26044       esac
   26045     done
   26046     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   26047 }
   26048 
   26049 
   26050 # ### END FUNCTIONS SHARED WITH CONFIGURE
   26051 
   26052 _LT_EOF
   26053 
   26054   case $host_os in
   26055   aix3*)
   26056     cat <<\_LT_EOF >> "$cfgfile"
   26057 # AIX sometimes has problems with the GCC collect2 program.  For some
   26058 # reason, if we set the COLLECT_NAMES environment variable, the problems
   26059 # vanish in a puff of smoke.
   26060 if test set != "${COLLECT_NAMES+set}"; then
   26061   COLLECT_NAMES=
   26062   export COLLECT_NAMES
   26063 fi
   26064 _LT_EOF
   26065     ;;
   26066   esac
   26067 
   26068 
   26069 ltmain=$ac_aux_dir/ltmain.sh
   26070 
   26071 
   26072   # We use sed instead of cat because bash on DJGPP gets confused if
   26073   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   26074   # text mode, it properly converts lines to CR/LF.  This bash problem
   26075   # is reportedly fixed, but why not run on old versions too?
   26076   sed '$q' "$ltmain" >> "$cfgfile" \
   26077      || (rm -f "$cfgfile"; exit 1)
   26078 
   26079    mv -f "$cfgfile" "$ofile" ||
   26080     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   26081   chmod +x "$ofile"
   26082 
   26083  ;;
   26084     "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
   26085 
   26086   esac
   26087 done # for ac_tag
   26088 
   26089 
   26090 as_fn_exit 0
   26091 _ACEOF
   26092 ac_clean_files=$ac_clean_files_save
   26093 
   26094 test $ac_write_fail = 0 ||
   26095   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   26096 
   26097 
   26098 # configure is writing to config.log, and then calls config.status.
   26099 # config.status does its own redirection, appending to config.log.
   26100 # Unfortunately, on DOS this fails, as config.log is still kept open
   26101 # by configure, so config.status won't be able to write to it; its
   26102 # output is simply discarded.  So we exec the FD to /dev/null,
   26103 # effectively closing config.log, so it can be properly (re)opened and
   26104 # appended to by config.status.  When coming back to configure, we
   26105 # need to make the FD available again.
   26106 if test "$no_create" != yes; then
   26107   ac_cs_success=:
   26108   ac_config_status_args=
   26109   test "$silent" = yes &&
   26110     ac_config_status_args="$ac_config_status_args --quiet"
   26111   exec 5>/dev/null
   26112   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   26113   exec 5>>config.log
   26114   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   26115   # would make configure fail if this is the last instruction.
   26116   $ac_cs_success || as_fn_exit 1
   26117 fi
   26118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   26119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   26120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   26121 fi
   26122 
   26123 
   26124 #
   26125 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   26126 #
   26127 # [pairwise: --with-make-clean, --without-make-clean]
   26128 
   26129 # Check whether --with-make-clean was given.
   26130 if test "${with_make_clean+set}" = set; then :
   26131   withval=$with_make_clean; make_clean="$withval"
   26132 else
   26133   make_clean="yes"
   26134 fi
   26135 
   26136 case "$make_clean" in
   26137 yes)
   26138 	if test "yes" != "$no_create"
   26139 	then
   26140 		if test "yes" = "$silent"
   26141 		then
   26142 			make clean > /dev/null
   26143 		else
   26144 			make clean
   26145 		fi
   26146 	fi
   26147 	;;
   26148 esac
   26149 
   26150 # [pairwise: --enable-full-report, --disable-full-report]
   26151 # Check whether --enable-full-report was given.
   26152 if test "${enable_full_report+set}" = set; then :
   26153   enableval=$enable_full_report;
   26154 fi
   26155 
   26156 
   26157 report() {
   26158     echo "==============================================================================="
   26159     echo "Configuration summary:"
   26160     echo "-------------------------------------------------------------------------------"
   26161     echo "Optional features enabled:"
   26162     if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
   26163 	echo "    Mutex lock type: $with_locktype"
   26164     fi
   26165     test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
   26166     test "no" = "$use_dnstap" || \
   26167 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26168     test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
   26169     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   26170 
   26171     # these lines are only printed if run with --enable-full-report
   26172     if test "yes" = "$enable_full_report"; then
   26173 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   26174 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   26175 	test "X$LIBXML2_LIBS" = "X" || echo "    XML statistics (--with-libxml2)"
   26176 	test "X$JSON_C_LIBS" = "X" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
   26177 	test "X$ZLIB_LIBS" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   26178 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26179 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   26180     fi
   26181 
   26182     test "yes" = "$enable_dnsrps" && \
   26183 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26184     test "yes" = "$enable_fixed" && \
   26185 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26186     test "yes" = "$enable_backtrace" && \
   26187 	echo "    Print backtrace on crash (--enable-backtrace)"
   26188     test "minimal" = "$want_symtable" && \
   26189 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   26190     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   26191 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   26192     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26193     test "yes" = "$want_querytrace" && \
   26194 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26195     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26196 
   26197     test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
   26198 
   26199     test "$CRYPTO" = "pkcs11" && (
   26200 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26201 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   26202     )
   26203 
   26204     echo "    Dynamically loadable zone (DLZ) drivers:"
   26205     test "no" = "$use_dlz_bdb" || \
   26206 	echo "        Berkeley DB (--with-dlz-bdb)"
   26207     test "no" = "$use_dlz_ldap" || \
   26208 	echo "        LDAP (--with-dlz-ldap)"
   26209     test "no" = "$use_dlz_mysql" || \
   26210 	echo "        MySQL (--with-dlz-mysql)"
   26211     test "no" = "$use_dlz_odbc" || \
   26212 	echo "        ODBC (--with-dlz-odbc)"
   26213     test "no" = "$use_dlz_postgres" || \
   26214 	echo "        Postgres (--with-dlz-postgres)"
   26215     test "no" = "$use_dlz_filesystem" || \
   26216 	echo "        Filesystem (--with-dlz-filesystem)"
   26217     test "no" = "$use_dlz_stub" || \
   26218 	echo "        Stub (--with-dlz-stub)"
   26219     test "$use_dlz_bdb $use_dlz_ldap $use_dlz_mysql $use_dlz_odbc $use_dlz_postgres $use_dlz_filesystem $use_dlz_stub" = "no no no no no no no" && echo "        None"
   26220 
   26221     echo "-------------------------------------------------------------------------------"
   26222 
   26223     echo "Features disabled or unavailable on this platform:"
   26224     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   26225     test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
   26226 
   26227     test "no" = "$use_dnstap" && \
   26228 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26229     test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
   26230     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   26231 
   26232     test "no" = "$enable_dnsrps" && \
   26233 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26234 
   26235     test "yes" = "$enable_fixed" || \
   26236 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26237 
   26238     test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enablee-auto-validation)"
   26239 
   26240     test "$CRYPTO" = "pkcs11" || (
   26241 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26242     )
   26243 
   26244     test "yes" = "$enable_backtrace" || \
   26245 	echo "    Print backtrace on crash (--enable-backtrace)"
   26246     test "yes" = "$want_querytrace" || \
   26247 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26248 
   26249     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26250     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26251 
   26252     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   26253     test "X$LIBXML2_LIBS" = "X" && echo "    XML statistics (--with-libxml2)"
   26254     test "X$JSON_C_LIBS" = "X" && echo "    JSON statistics (--with-json-c)"
   26255     test "X$ZLIB_LIBS" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   26256     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26257     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   26258 
   26259     echo "-------------------------------------------------------------------------------"
   26260     echo "Configured paths:"
   26261     echo "    prefix: $prefix"
   26262     echo "    sysconfdir: $sysconfdir"
   26263     echo "    localstatedir: $localstatedir"
   26264     echo "-------------------------------------------------------------------------------"
   26265     echo "Compiler: $CC"
   26266     $CC --version 2>&1 | sed 's/^/    /'
   26267 
   26268     if test "X$ac_unrecognized_opts" != "X"; then
   26269 	echo "Unrecognized options:"
   26270 	echo "    $ac_unrecognized_opts"
   26271     fi
   26272 
   26273     if test "yes" != "$enable_full_report"; then
   26274 	echo "-------------------------------------------------------------------------------"
   26275 	echo "For more detail, use --enable-full-report."
   26276     fi
   26277     echo "==============================================================================="
   26278 }
   26279 
   26280 if test "yes" != "$silent"; then
   26281 	report
   26282 fi
   26283 
   26284 # Tell Emacs to edit this file in shell mode.
   26285 # Local Variables:
   26286 # mode: sh
   26287 # End:
   26288