Home | History | Annotate | Line # | Download | only in dist
configure revision 1.9
      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_VERSIONSHORT
    659 BIND9_VERSIONSTRING
    660 BIND9_MAJOR
    661 BIND9_VERSION
    662 BIND9_DESCRIPTION
    663 BIND9_PRODUCT
    664 BIND9_IRS_BUILDINCLUDE
    665 BIND9_BIND9_BUILDINCLUDE
    666 BIND9_NS_BUILDINCLUDE
    667 BIND9_DNS_BUILDINCLUDE
    668 BIND9_ISCCFG_BUILDINCLUDE
    669 BIND9_ISCCC_BUILDINCLUDE
    670 BIND9_ISC_BUILDINCLUDE
    671 BIND9_TOP_BUILDDIR
    672 WRAP_NAME
    673 WRAP_INTERPOSE
    674 LD_WRAP_TESTS
    675 KYUA
    676 UNITTESTS
    677 CMOCKA_LIBS
    678 CMOCKA_CFLAGS
    679 LIBIDN2_LDFLAGS
    680 LIBIDN2_LIBS
    681 LIBIDN2_CFLAGS
    682 XSLT_DOCBOOK_MAKETOC_XHTML
    683 XSLT_DOCBOOK_MAKETOC_HTML
    684 XSLT_DOCBOOK_CHUNKTOC_XHTML
    685 XSLT_DOCBOOK_CHUNKTOC_HTML
    686 XSLT_DOCBOOK_CHUNK_XHTML
    687 XSLT_DOCBOOK_CHUNK_HTML
    688 XSLT_DOCBOOK_STYLE_MAN
    689 XSLT_DOCBOOK_STYLE_XHTML
    690 XSLT_DOCBOOK_STYLE_HTML
    691 CURL
    692 DOXYGEN
    693 XMLLINT
    694 XSLTPROC
    695 PANDOC
    696 W3M
    697 DBLATEX
    698 PDFLATEX
    699 LATEX
    700 DNSTAPTARGETS
    701 DNSTAPOBJS
    702 DNSTAPSRCS
    703 DNSTAP
    704 FSTRM_CAPTURE
    705 PROTOC_C
    706 ISC_PLATFORM_HAVESYSUNH
    707 LIBCAP_LIBS
    708 DST_EXTRA_SRCS
    709 DST_EXTRA_OBJS
    710 USE_ISC_SPNEGO
    711 READLINE_LIB
    712 BIND9_CO_RULE
    713 LIBTOOL_MODE_UNINSTALL
    714 LIBTOOL_MODE_LINK
    715 LIBTOOL_MODE_INSTALL
    716 LIBTOOL_MODE_COMPILE
    717 LIBTOOL_MKDEP_SED
    718 SA
    719 A
    720 O
    721 ALWAYS_MAKE_SYMTABLE
    722 MKSYMTBL_PROGRAM
    723 PURIFY
    724 purify_path
    725 MKDEPPROG
    726 MKDEPCFLAGS
    727 MKDEPCC
    728 ZLIB_LIBS
    729 ZLIB_CFLAGS
    730 JSON_C_LIBS
    731 JSON_C_CFLAGS
    732 LIBXML2_LIBS
    733 LIBXML2_CFLAGS
    734 NZDTARGETS
    735 NZDSRCS
    736 NZD_TOOLS
    737 DNS_CRYPTO_LIBS
    738 DNS_GSSAPI_LIBS
    739 DST_GSSAPI_INC
    740 USE_GSSAPI
    741 ISC_PLATFORM_KRB5HEADER
    742 ISC_PLATFORM_GSSAPI_KRB5_HEADER
    743 ISC_PLATFORM_GSSAPIHEADER
    744 ISC_PLATFORM_HAVEGSSAPI
    745 KRB5_CONFIG
    746 CRYPTO
    747 PKCS11_TOOLS
    748 PKCS11_TEST
    749 OPENSSL_LIBS
    750 OPENSSL_CFLAGS
    751 INSTALL_LIBRARY
    752 ALWAYS_DEFINES
    753 LIBUV_LIBS
    754 LIBUV_CFLAGS
    755 PTHREAD_CFLAGS
    756 PTHREAD_LIBS
    757 PTHREAD_CC
    758 ax_pthread_config
    759 GEOIP2LINKOBJS
    760 GEOIP2LINKSRCS
    761 MAXMINDDB_PREFIX
    762 MAXMINDDB_LIBS
    763 MAXMINDDB_CFLAGS
    764 ISC_PLATFORM_NORETURN_POST
    765 ISC_PLATFORM_NORETURN_PRE
    766 PYTEST
    767 expanded_sysconfdir
    768 PYTHON_INSTALL_LIB
    769 PYTHON_INSTALL_DIR
    770 PYTHON_TOOLS
    771 KEYMGR
    772 COVERAGE
    773 CHECKDS
    774 PYTHON
    775 PERL
    776 LN
    777 ARFLAGS
    778 XTARGETS
    779 PKG_CONFIG_LIBDIR
    780 PKG_CONFIG_PATH
    781 PKG_CONFIG
    782 BACKTRACECFLAGS
    783 CCNOOPT
    784 CCOPT
    785 STD_CWARNINGS
    786 STD_CDEFINES
    787 STD_CINCLUDES
    788 INSTALL_DATA
    789 INSTALL_SCRIPT
    790 INSTALL_PROGRAM
    791 LT_SYS_LIBRARY_PATH
    792 OTOOL64
    793 OTOOL
    794 LIPO
    795 NMEDIT
    796 DSYMUTIL
    797 MANIFEST_TOOL
    798 AWK
    799 RANLIB
    800 STRIP
    801 ac_ct_AR
    802 AR
    803 DLLTOOL
    804 OBJDUMP
    805 LN_S
    806 NM
    807 ac_ct_DUMPBIN
    808 DUMPBIN
    809 LD
    810 FGREP
    811 SED
    812 LIBTOOL
    813 SET_MAKE
    814 LFS_LIBS
    815 LFS_LDFLAGS
    816 LFS_CFLAGS
    817 EGREP
    818 GREP
    819 CPP
    820 OBJEXT
    821 EXEEXT
    822 ac_ct_CC
    823 CPPFLAGS
    824 LDFLAGS
    825 CFLAGS
    826 CC
    827 host_os
    828 host_vendor
    829 host_cpu
    830 host
    831 build_os
    832 build_vendor
    833 build_cpu
    834 build
    835 MAINT
    836 MAINTAINER_MODE_FALSE
    837 MAINTAINER_MODE_TRUE
    838 target_alias
    839 host_alias
    840 build_alias
    841 LIBS
    842 ECHO_T
    843 ECHO_N
    844 ECHO_C
    845 DEFS
    846 mandir
    847 localedir
    848 libdir
    849 psdir
    850 pdfdir
    851 dvidir
    852 htmldir
    853 infodir
    854 docdir
    855 oldincludedir
    856 includedir
    857 localstatedir
    858 sharedstatedir
    859 sysconfdir
    860 datadir
    861 datarootdir
    862 libexecdir
    863 sbindir
    864 bindir
    865 program_transform_name
    866 prefix
    867 exec_prefix
    868 PACKAGE_URL
    869 PACKAGE_BUGREPORT
    870 PACKAGE_STRING
    871 PACKAGE_VERSION
    872 PACKAGE_TARNAME
    873 PACKAGE_NAME
    874 PATH_SEPARATOR
    875 SHELL'
    876 ac_subst_files='BIND9_MAKE_INCLUDES
    877 BIND9_MAKE_RULES
    878 LIBISC_API
    879 LIBISCCC_API
    880 LIBISCCFG_API
    881 LIBDNS_API
    882 LIBDNS_MAPAPI
    883 LIBBIND9_API
    884 LIBIRS_API
    885 LIBNS_API
    886 DLZ_DRIVER_RULES'
    887 ac_user_opts='
    888 enable_option_checking
    889 enable_maintainer_mode
    890 enable_largefile
    891 enable_shared
    892 enable_static
    893 with_pic
    894 enable_fast_install
    895 with_aix_soname
    896 with_gnu_ld
    897 with_sysroot
    898 enable_libtool_lock
    899 enable_buffer_useinline
    900 enable_warn_shadow
    901 enable_warn_error
    902 enable_developer
    903 enable_fuzzing
    904 enable_mutex_atomics
    905 with_python
    906 with_python_install_dir
    907 enable_kqueue
    908 enable_epoll
    909 enable_devpoll
    910 with_geoip2
    911 enable_geoip
    912 with_maxminddb
    913 with_locktype
    914 with_libtool
    915 enable_pthread_rwlock
    916 with_openssl
    917 enable_fips_mode
    918 enable_native_pkcs11
    919 with_pkcs11
    920 with_gssapi
    921 with_lmdb
    922 with_libxml2
    923 with_libjson
    924 with_json_c
    925 with_zlib
    926 with_purify
    927 with_gperftools_profiler
    928 enable_backtrace
    929 enable_symtable
    930 enable_tcp_fastopen
    931 with_readline
    932 enable_isc_spnego
    933 enable_chroot
    934 enable_linux_caps
    935 enable_fixed_rrset
    936 enable_dnstap
    937 with_protobuf_c
    938 with_libfstrm
    939 with_docbook_xsl
    940 with_libidn2
    941 with_cmocka
    942 with_tuning
    943 enable_querytrace
    944 enable_auto_validation
    945 with_dlopen
    946 enable_dnsrps_dl
    947 with_dnsrps_libname
    948 with_dnsrps_dir
    949 enable_dnsrps
    950 with_dlz_postgres
    951 with_dlz_mysql
    952 with_dlz_bdb
    953 with_dlz_filesystem
    954 with_dlz_ldap
    955 with_dlz_odbc
    956 with_dlz_stub
    957 with_make_clean
    958 enable_full_report
    959 '
    960       ac_precious_vars='build_alias
    961 host_alias
    962 target_alias
    963 CC
    964 CFLAGS
    965 LDFLAGS
    966 LIBS
    967 CPPFLAGS
    968 CPP
    969 LT_SYS_LIBRARY_PATH
    970 PKG_CONFIG
    971 PKG_CONFIG_PATH
    972 PKG_CONFIG_LIBDIR
    973 PYTHON
    974 MAXMINDDB_CFLAGS
    975 MAXMINDDB_LIBS
    976 MAXMINDDB_PREFIX
    977 LIBUV_CFLAGS
    978 LIBUV_LIBS
    979 OPENSSL_CFLAGS
    980 OPENSSL_LIBS
    981 LIBXML2_CFLAGS
    982 LIBXML2_LIBS
    983 JSON_C_CFLAGS
    984 JSON_C_LIBS
    985 ZLIB_CFLAGS
    986 ZLIB_LIBS
    987 LIBIDN2_CFLAGS
    988 LIBIDN2_LIBS
    989 CMOCKA_CFLAGS
    990 CMOCKA_LIBS
    991 KYUA'
    992 
    993 
    994 # Initialize some variables set by options.
    995 ac_init_help=
    996 ac_init_version=false
    997 ac_unrecognized_opts=
    998 ac_unrecognized_sep=
    999 # The variables have the same names as the options, with
   1000 # dashes changed to underlines.
   1001 cache_file=/dev/null
   1002 exec_prefix=NONE
   1003 no_create=
   1004 no_recursion=
   1005 prefix=NONE
   1006 program_prefix=NONE
   1007 program_suffix=NONE
   1008 program_transform_name=s,x,x,
   1009 silent=
   1010 site=
   1011 srcdir=
   1012 verbose=
   1013 x_includes=NONE
   1014 x_libraries=NONE
   1015 
   1016 # Installation directory options.
   1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
   1018 # and all the variables that are supposed to be based on exec_prefix
   1019 # by default will actually change.
   1020 # Use braces instead of parens because sh, perl, etc. also accept them.
   1021 # (The list follows the same order as the GNU Coding Standards.)
   1022 bindir='${exec_prefix}/bin'
   1023 sbindir='${exec_prefix}/sbin'
   1024 libexecdir='${exec_prefix}/libexec'
   1025 datarootdir='${prefix}/share'
   1026 datadir='${datarootdir}'
   1027 sysconfdir='${prefix}/etc'
   1028 sharedstatedir='${prefix}/com'
   1029 localstatedir='${prefix}/var'
   1030 includedir='${prefix}/include'
   1031 oldincludedir='/usr/include'
   1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   1033 infodir='${datarootdir}/info'
   1034 htmldir='${docdir}'
   1035 dvidir='${docdir}'
   1036 pdfdir='${docdir}'
   1037 psdir='${docdir}'
   1038 libdir='${exec_prefix}/lib'
   1039 localedir='${datarootdir}/locale'
   1040 mandir='${datarootdir}/man'
   1041 
   1042 ac_prev=
   1043 ac_dashdash=
   1044 for ac_option
   1045 do
   1046   # If the previous option needs an argument, assign it.
   1047   if test -n "$ac_prev"; then
   1048     eval $ac_prev=\$ac_option
   1049     ac_prev=
   1050     continue
   1051   fi
   1052 
   1053   case $ac_option in
   1054   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1055   *=)   ac_optarg= ;;
   1056   *)    ac_optarg=yes ;;
   1057   esac
   1058 
   1059   # Accept the important Cygnus configure options, so we can diagnose typos.
   1060 
   1061   case $ac_dashdash$ac_option in
   1062   --)
   1063     ac_dashdash=yes ;;
   1064 
   1065   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1066     ac_prev=bindir ;;
   1067   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1068     bindir=$ac_optarg ;;
   1069 
   1070   -build | --build | --buil | --bui | --bu)
   1071     ac_prev=build_alias ;;
   1072   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1073     build_alias=$ac_optarg ;;
   1074 
   1075   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1076   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1077     ac_prev=cache_file ;;
   1078   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1079   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1080     cache_file=$ac_optarg ;;
   1081 
   1082   --config-cache | -C)
   1083     cache_file=config.cache ;;
   1084 
   1085   -datadir | --datadir | --datadi | --datad)
   1086     ac_prev=datadir ;;
   1087   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1088     datadir=$ac_optarg ;;
   1089 
   1090   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1091   | --dataroo | --dataro | --datar)
   1092     ac_prev=datarootdir ;;
   1093   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1094   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1095     datarootdir=$ac_optarg ;;
   1096 
   1097   -disable-* | --disable-*)
   1098     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1099     # Reject names that are not valid shell variable names.
   1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1101       as_fn_error $? "invalid feature name: $ac_useropt"
   1102     ac_useropt_orig=$ac_useropt
   1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1104     case $ac_user_opts in
   1105       *"
   1106 "enable_$ac_useropt"
   1107 "*) ;;
   1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1109 	 ac_unrecognized_sep=', ';;
   1110     esac
   1111     eval enable_$ac_useropt=no ;;
   1112 
   1113   -docdir | --docdir | --docdi | --doc | --do)
   1114     ac_prev=docdir ;;
   1115   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1116     docdir=$ac_optarg ;;
   1117 
   1118   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1119     ac_prev=dvidir ;;
   1120   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1121     dvidir=$ac_optarg ;;
   1122 
   1123   -enable-* | --enable-*)
   1124     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1125     # Reject names that are not valid shell variable names.
   1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1127       as_fn_error $? "invalid feature name: $ac_useropt"
   1128     ac_useropt_orig=$ac_useropt
   1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1130     case $ac_user_opts in
   1131       *"
   1132 "enable_$ac_useropt"
   1133 "*) ;;
   1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1135 	 ac_unrecognized_sep=', ';;
   1136     esac
   1137     eval enable_$ac_useropt=\$ac_optarg ;;
   1138 
   1139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1141   | --exec | --exe | --ex)
   1142     ac_prev=exec_prefix ;;
   1143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1145   | --exec=* | --exe=* | --ex=*)
   1146     exec_prefix=$ac_optarg ;;
   1147 
   1148   -gas | --gas | --ga | --g)
   1149     # Obsolete; use --with-gas.
   1150     with_gas=yes ;;
   1151 
   1152   -help | --help | --hel | --he | -h)
   1153     ac_init_help=long ;;
   1154   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1155     ac_init_help=recursive ;;
   1156   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1157     ac_init_help=short ;;
   1158 
   1159   -host | --host | --hos | --ho)
   1160     ac_prev=host_alias ;;
   1161   -host=* | --host=* | --hos=* | --ho=*)
   1162     host_alias=$ac_optarg ;;
   1163 
   1164   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1165     ac_prev=htmldir ;;
   1166   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1167   | --ht=*)
   1168     htmldir=$ac_optarg ;;
   1169 
   1170   -includedir | --includedir | --includedi | --included | --include \
   1171   | --includ | --inclu | --incl | --inc)
   1172     ac_prev=includedir ;;
   1173   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1174   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1175     includedir=$ac_optarg ;;
   1176 
   1177   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1178     ac_prev=infodir ;;
   1179   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1180     infodir=$ac_optarg ;;
   1181 
   1182   -libdir | --libdir | --libdi | --libd)
   1183     ac_prev=libdir ;;
   1184   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1185     libdir=$ac_optarg ;;
   1186 
   1187   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1188   | --libexe | --libex | --libe)
   1189     ac_prev=libexecdir ;;
   1190   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1191   | --libexe=* | --libex=* | --libe=*)
   1192     libexecdir=$ac_optarg ;;
   1193 
   1194   -localedir | --localedir | --localedi | --localed | --locale)
   1195     ac_prev=localedir ;;
   1196   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1197     localedir=$ac_optarg ;;
   1198 
   1199   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1200   | --localstate | --localstat | --localsta | --localst | --locals)
   1201     ac_prev=localstatedir ;;
   1202   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1203   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1204     localstatedir=$ac_optarg ;;
   1205 
   1206   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1207     ac_prev=mandir ;;
   1208   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1209     mandir=$ac_optarg ;;
   1210 
   1211   -nfp | --nfp | --nf)
   1212     # Obsolete; use --without-fp.
   1213     with_fp=no ;;
   1214 
   1215   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1216   | --no-cr | --no-c | -n)
   1217     no_create=yes ;;
   1218 
   1219   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1220   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1221     no_recursion=yes ;;
   1222 
   1223   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1224   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1225   | --oldin | --oldi | --old | --ol | --o)
   1226     ac_prev=oldincludedir ;;
   1227   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1228   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1229   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1230     oldincludedir=$ac_optarg ;;
   1231 
   1232   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1233     ac_prev=prefix ;;
   1234   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1235     prefix=$ac_optarg ;;
   1236 
   1237   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1238   | --program-pre | --program-pr | --program-p)
   1239     ac_prev=program_prefix ;;
   1240   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1241   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1242     program_prefix=$ac_optarg ;;
   1243 
   1244   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1245   | --program-suf | --program-su | --program-s)
   1246     ac_prev=program_suffix ;;
   1247   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1248   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1249     program_suffix=$ac_optarg ;;
   1250 
   1251   -program-transform-name | --program-transform-name \
   1252   | --program-transform-nam | --program-transform-na \
   1253   | --program-transform-n | --program-transform- \
   1254   | --program-transform | --program-transfor \
   1255   | --program-transfo | --program-transf \
   1256   | --program-trans | --program-tran \
   1257   | --progr-tra | --program-tr | --program-t)
   1258     ac_prev=program_transform_name ;;
   1259   -program-transform-name=* | --program-transform-name=* \
   1260   | --program-transform-nam=* | --program-transform-na=* \
   1261   | --program-transform-n=* | --program-transform-=* \
   1262   | --program-transform=* | --program-transfor=* \
   1263   | --program-transfo=* | --program-transf=* \
   1264   | --program-trans=* | --program-tran=* \
   1265   | --progr-tra=* | --program-tr=* | --program-t=*)
   1266     program_transform_name=$ac_optarg ;;
   1267 
   1268   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1269     ac_prev=pdfdir ;;
   1270   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1271     pdfdir=$ac_optarg ;;
   1272 
   1273   -psdir | --psdir | --psdi | --psd | --ps)
   1274     ac_prev=psdir ;;
   1275   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1276     psdir=$ac_optarg ;;
   1277 
   1278   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1279   | -silent | --silent | --silen | --sile | --sil)
   1280     silent=yes ;;
   1281 
   1282   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1283     ac_prev=sbindir ;;
   1284   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1285   | --sbi=* | --sb=*)
   1286     sbindir=$ac_optarg ;;
   1287 
   1288   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1289   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1290   | --sharedst | --shareds | --shared | --share | --shar \
   1291   | --sha | --sh)
   1292     ac_prev=sharedstatedir ;;
   1293   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1294   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1295   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1296   | --sha=* | --sh=*)
   1297     sharedstatedir=$ac_optarg ;;
   1298 
   1299   -site | --site | --sit)
   1300     ac_prev=site ;;
   1301   -site=* | --site=* | --sit=*)
   1302     site=$ac_optarg ;;
   1303 
   1304   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1305     ac_prev=srcdir ;;
   1306   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1307     srcdir=$ac_optarg ;;
   1308 
   1309   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1310   | --syscon | --sysco | --sysc | --sys | --sy)
   1311     ac_prev=sysconfdir ;;
   1312   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1313   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1314     sysconfdir=$ac_optarg ;;
   1315 
   1316   -target | --target | --targe | --targ | --tar | --ta | --t)
   1317     ac_prev=target_alias ;;
   1318   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1319     target_alias=$ac_optarg ;;
   1320 
   1321   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1322     verbose=yes ;;
   1323 
   1324   -version | --version | --versio | --versi | --vers | -V)
   1325     ac_init_version=: ;;
   1326 
   1327   -with-* | --with-*)
   1328     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1329     # Reject names that are not valid shell variable names.
   1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1331       as_fn_error $? "invalid package name: $ac_useropt"
   1332     ac_useropt_orig=$ac_useropt
   1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1334     case $ac_user_opts in
   1335       *"
   1336 "with_$ac_useropt"
   1337 "*) ;;
   1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1339 	 ac_unrecognized_sep=', ';;
   1340     esac
   1341     eval with_$ac_useropt=\$ac_optarg ;;
   1342 
   1343   -without-* | --without-*)
   1344     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1345     # Reject names that are not valid shell variable names.
   1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1347       as_fn_error $? "invalid package name: $ac_useropt"
   1348     ac_useropt_orig=$ac_useropt
   1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1350     case $ac_user_opts in
   1351       *"
   1352 "with_$ac_useropt"
   1353 "*) ;;
   1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1355 	 ac_unrecognized_sep=', ';;
   1356     esac
   1357     eval with_$ac_useropt=no ;;
   1358 
   1359   --x)
   1360     # Obsolete; use --with-x.
   1361     with_x=yes ;;
   1362 
   1363   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1364   | --x-incl | --x-inc | --x-in | --x-i)
   1365     ac_prev=x_includes ;;
   1366   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1367   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1368     x_includes=$ac_optarg ;;
   1369 
   1370   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1371   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1372     ac_prev=x_libraries ;;
   1373   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1374   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1375     x_libraries=$ac_optarg ;;
   1376 
   1377   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1378 Try \`$0 --help' for more information"
   1379     ;;
   1380 
   1381   *=*)
   1382     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1383     # Reject names that are not valid shell variable names.
   1384     case $ac_envvar in #(
   1385       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1386       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1387     esac
   1388     eval $ac_envvar=\$ac_optarg
   1389     export $ac_envvar ;;
   1390 
   1391   *)
   1392     # FIXME: should be removed in autoconf 3.0.
   1393     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1394     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1395       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1396     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1397     ;;
   1398 
   1399   esac
   1400 done
   1401 
   1402 if test -n "$ac_prev"; then
   1403   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1404   as_fn_error $? "missing argument to $ac_option"
   1405 fi
   1406 
   1407 if test -n "$ac_unrecognized_opts"; then
   1408   case $enable_option_checking in
   1409     no) ;;
   1410     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1411     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1412   esac
   1413 fi
   1414 
   1415 # Check all directory arguments for consistency.
   1416 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1417 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1418 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1419 		libdir localedir mandir
   1420 do
   1421   eval ac_val=\$$ac_var
   1422   # Remove trailing slashes.
   1423   case $ac_val in
   1424     */ )
   1425       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1426       eval $ac_var=\$ac_val;;
   1427   esac
   1428   # Be sure to have absolute directory names.
   1429   case $ac_val in
   1430     [\\/$]* | ?:[\\/]* )  continue;;
   1431     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1432   esac
   1433   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1434 done
   1435 
   1436 # There might be people who depend on the old broken behavior: `$host'
   1437 # used to hold the argument of --host etc.
   1438 # FIXME: To remove some day.
   1439 build=$build_alias
   1440 host=$host_alias
   1441 target=$target_alias
   1442 
   1443 # FIXME: To remove some day.
   1444 if test "x$host_alias" != x; then
   1445   if test "x$build_alias" = x; then
   1446     cross_compiling=maybe
   1447   elif test "x$build_alias" != "x$host_alias"; then
   1448     cross_compiling=yes
   1449   fi
   1450 fi
   1451 
   1452 ac_tool_prefix=
   1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1454 
   1455 test "$silent" = yes && exec 6>/dev/null
   1456 
   1457 
   1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1459 ac_ls_di=`ls -di .` &&
   1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1461   as_fn_error $? "working directory cannot be determined"
   1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1463   as_fn_error $? "pwd does not report name of working directory"
   1464 
   1465 
   1466 # Find the source files, if location was not specified.
   1467 if test -z "$srcdir"; then
   1468   ac_srcdir_defaulted=yes
   1469   # Try the directory containing this script, then the parent directory.
   1470   ac_confdir=`$as_dirname -- "$as_myself" ||
   1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1472 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1473 	 X"$as_myself" : 'X\(//\)$' \| \
   1474 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1475 $as_echo X"$as_myself" |
   1476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1477 	    s//\1/
   1478 	    q
   1479 	  }
   1480 	  /^X\(\/\/\)[^/].*/{
   1481 	    s//\1/
   1482 	    q
   1483 	  }
   1484 	  /^X\(\/\/\)$/{
   1485 	    s//\1/
   1486 	    q
   1487 	  }
   1488 	  /^X\(\/\).*/{
   1489 	    s//\1/
   1490 	    q
   1491 	  }
   1492 	  s/.*/./; q'`
   1493   srcdir=$ac_confdir
   1494   if test ! -r "$srcdir/$ac_unique_file"; then
   1495     srcdir=..
   1496   fi
   1497 else
   1498   ac_srcdir_defaulted=no
   1499 fi
   1500 if test ! -r "$srcdir/$ac_unique_file"; then
   1501   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1502   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1503 fi
   1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1505 ac_abs_confdir=`(
   1506 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1507 	pwd)`
   1508 # When building in place, set srcdir=.
   1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1510   srcdir=.
   1511 fi
   1512 # Remove unnecessary trailing slashes from srcdir.
   1513 # Double slashes in file names in object file debugging info
   1514 # mess up M-x gdb in Emacs.
   1515 case $srcdir in
   1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1517 esac
   1518 for ac_var in $ac_precious_vars; do
   1519   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1520   eval ac_env_${ac_var}_value=\$${ac_var}
   1521   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1522   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1523 done
   1524 
   1525 #
   1526 # Report the --help message.
   1527 #
   1528 if test "$ac_init_help" = "long"; then
   1529   # Omit some internal or obsolete options to make the list less imposing.
   1530   # This message is too long to be a string in the A/UX 3.1 sh.
   1531   cat <<_ACEOF
   1532 \`configure' configures BIND 9.16 to adapt to many kinds of systems.
   1533 
   1534 Usage: $0 [OPTION]... [VAR=VALUE]...
   1535 
   1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1537 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1538 
   1539 Defaults for the options are specified in brackets.
   1540 
   1541 Configuration:
   1542   -h, --help              display this help and exit
   1543       --help=short        display options specific to this package
   1544       --help=recursive    display the short help of all the included packages
   1545   -V, --version           display version information and exit
   1546   -q, --quiet, --silent   do not print \`checking ...' messages
   1547       --cache-file=FILE   cache test results in FILE [disabled]
   1548   -C, --config-cache      alias for \`--cache-file=config.cache'
   1549   -n, --no-create         do not create output files
   1550       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1551 
   1552 Installation directories:
   1553   --prefix=PREFIX         install architecture-independent files in PREFIX
   1554                           [$ac_default_prefix]
   1555   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1556                           [PREFIX]
   1557 
   1558 By default, \`make install' will install all the files in
   1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1561 for instance \`--prefix=\$HOME'.
   1562 
   1563 For better control, use the options below.
   1564 
   1565 Fine tuning of the installation directories:
   1566   --bindir=DIR            user executables [EPREFIX/bin]
   1567   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1568   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1569   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1570   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1571   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1572   --libdir=DIR            object code libraries [EPREFIX/lib]
   1573   --includedir=DIR        C header files [PREFIX/include]
   1574   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1575   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1576   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1577   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1578   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1579   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1580   --docdir=DIR            documentation root [DATAROOTDIR/doc/bind]
   1581   --htmldir=DIR           html documentation [DOCDIR]
   1582   --dvidir=DIR            dvi documentation [DOCDIR]
   1583   --pdfdir=DIR            pdf documentation [DOCDIR]
   1584   --psdir=DIR             ps documentation [DOCDIR]
   1585 _ACEOF
   1586 
   1587   cat <<\_ACEOF
   1588 
   1589 System types:
   1590   --build=BUILD     configure for building on BUILD [guessed]
   1591   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1592 _ACEOF
   1593 fi
   1594 
   1595 if test -n "$ac_init_help"; then
   1596   case $ac_init_help in
   1597      short | recursive ) echo "Configuration of BIND 9.16:";;
   1598    esac
   1599   cat <<\_ACEOF
   1600 
   1601 Optional Features:
   1602   --disable-option-checking  ignore unrecognized --enable/--with options
   1603   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1604   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1605   --disable-maintainer-mode
   1606                           disable make rules and dependencies not useful (and
   1607                           sometimes confusing) to the casual installer
   1608   --disable-largefile     omit support for large files
   1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1610   --enable-static[=PKGS]  build static libraries [default=yes]
   1611   --enable-fast-install[=PKGS]
   1612                           optimize for fast installation [default=yes]
   1613   --disable-libtool-lock  avoid locking (might break parallel builds)
   1614   --enable-buffer-useinline
   1615                           define ISC_BUFFER_USEINLINE when compiling
   1616                           [default=yes]
   1617   --enable-warn-shadow    turn on -Wshadow when compiling
   1618   --enable-warn-error     turn on -Werror when compiling
   1619   --enable-developer      enable developer build settings
   1620   --enable-fuzzing=<afl|libfuzzer>
   1621                           Enable fuzzing using American Fuzzy Lop or libFuzzer
   1622                           (default=no)
   1623   --enable-mutex-atomics  emulate atomics by mutex-locked variables, useful
   1624                           for debugging [default=no]
   1625   --enable-kqueue         use BSD kqueue when available [default=yes]
   1626   --enable-epoll          use Linux epoll when available [default=auto]
   1627   --enable-devpoll        use /dev/poll when available [default=yes]
   1628   --disable-geoip         support GeoIP2 geolocation ACLs if available
   1629                           [default=yes]
   1630   --enable-pthread-rwlock use pthread rwlock instead of internal rwlock
   1631                           implementation
   1632   --enable-fips-mode      enable FIPS mode in OpenSSL library [default=no]
   1633   --enable-native-pkcs11  use native PKCS11 for public-key crypto [default=no]
   1634   --enable-backtrace      log stack backtrace on abort [default=yes]
   1635   --enable-symtable       use internal symbol table for backtrace
   1636                           [all|minimal(default)|none]
   1637   --disable-tcp-fastopen  disable TCP Fast Open support [default=yes]
   1638   --disable-isc-spnego    use SPNEGO from GSSAPI library
   1639   --disable-chroot        disable chroot
   1640   --disable-linux-caps    disable Linux capabilities
   1641   --enable-fixed-rrset    enable fixed rrset ordering [default=no]
   1642   --enable-dnstap         enable dnstap support (requires fstrm, protobuf-c)
   1643   --enable-querytrace     enable very verbose query trace logging [default=no]
   1644   --enable-auto-validation
   1645                           turn on DNSSEC validation by default, using the IANA
   1646                           root key [default=yes]
   1647   --enable-dnsrps-dl      DNS Response Policy Service delayed link
   1648                           [default=$librpz_dl]
   1649   --enable-dnsrps         enable DNS Response Policy Service API
   1650   --enable-full-report    report values of all configure options
   1651 
   1652 Optional Packages:
   1653   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1654   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1655   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
   1656                           both]
   1657   --with-aix-soname=aix|svr4|both
   1658                           shared library versioning (aka "SONAME") variant to
   1659                           provide on AIX, [default=aix].
   1660   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1661   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
   1662                           compiler's sysroot if not specified).
   1663   --with-python=PATH      specify path to Python interpreter
   1664   --with-python-install-dir=PATH
   1665                           installation directory for Python modules
   1666   --with-geoip2           deprecated, use --with-maxminddb
   1667   --with-maxminddb=PATH   Build with MaxMind GeoIP2 support (auto|yes|no|path)
   1668                           [default=auto]
   1669   --with-locktype=ARG     Specify mutex lock type (adaptive or standard)
   1670   --with-libtool          use GNU libtool
   1671   --with-openssl=DIR      root of the OpenSSL directory
   1672   --with-pkcs11=PATH      Build with PKCS11 support [no|path] (PATH is for the
   1673                           PKCS11 provider)
   1674   --with-gssapi=PATH|/path/krb5-config
   1675                           Specify path for system-supplied GSSAPI
   1676                           [default=auto]
   1677   --with-lmdb=PATH        build with LMDB library [yes|no|path]
   1678   --with-libxml2          build with libxml2 library [yes|no|auto] (default is
   1679                           auto)
   1680   --with-libjson          deprecated, use --with-json-c
   1681   --with-json-c           build with json-c library [yes|no|detect] (default
   1682                           is detect)
   1683   --with-zlib             build with zlib for HTTP compression [default=yes]
   1684   --with-purify=PATH      use Rational purify
   1685   --with-gperftools-profiler
   1686                           use gperftools CPU profiler
   1687   --with-readline=LIBSPEC specify readline library [default auto]
   1688   --with-protobuf-c=path  Path where protobuf-c is installed, for dnstap
   1689   --with-libfstrm=path    Path where libfstrm is installed, for dnstap
   1690   --with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
   1691   --with-libidn2=PATH     enable IDN support using GNU libidn2
   1692                           [yes|no(default)|path]
   1693   --with-cmocka=detect    enable CMocka based tests (default is detect)
   1694   --with-tuning=ARG       Specify server tuning (default or small)
   1695   --with-dlopen=ARG       support dynamically loadable DLZ and DYNDB drivers
   1696   --with-dnsrps-libname   DNSRPS provider library name (librpz.so)
   1697   --with-dnsrps-dir       path to DNSRPS provider library
   1698   --with-dlz-postgres=PATH
   1699                           Build with Postgres DLZ driver [yes|no|path].
   1700                           (Required to use Postgres with DLZ)
   1701   --with-dlz-mysql=PATH   Build with MySQL DLZ driver [yes|no|path]. (Required
   1702                           to use MySQL with DLZ)
   1703   --with-dlz-bdb=PATH     Build with Berkeley DB DLZ driver [yes|no|path].
   1704                           (Required to use Berkeley DB with DLZ)
   1705   --with-dlz-filesystem=ARG
   1706                           Build with filesystem DLZ driver [yes|no]. (Required
   1707                           to use file system driver with DLZ)
   1708   --with-dlz-ldap=PATH    Build with LDAP DLZ driver [yes|no|path]. (Required
   1709                           to use LDAP with DLZ)
   1710   --with-dlz-odbc=PATH    Build with ODBC DLZ driver [yes|no|path]. (Required
   1711                           to use ODBC with DLZ)
   1712   --with-dlz-stub=ARG     Build with stub DLZ driver [yes|no]. (Required to
   1713                           use stub driver with DLZ)
   1714   --with-make-clean       run "make clean" at end of configure [yes|no]
   1715 
   1716 Some influential environment variables:
   1717   CC          C compiler command
   1718   CFLAGS      C compiler flags
   1719   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1720               nonstandard directory <lib dir>
   1721   LIBS        libraries to pass to the linker, e.g. -l<library>
   1722   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1723               you have headers in a nonstandard directory <include dir>
   1724   CPP         C preprocessor
   1725   LT_SYS_LIBRARY_PATH
   1726               User-defined run-time library search path.
   1727   PKG_CONFIG  path to pkg-config utility
   1728   PKG_CONFIG_PATH
   1729               directories to add to pkg-config's search path
   1730   PKG_CONFIG_LIBDIR
   1731               path overriding pkg-config's built-in search path
   1732   PYTHON      path to python executable
   1733   MAXMINDDB_CFLAGS
   1734               C compiler flags for MAXMINDDB, overriding pkg-config
   1735   MAXMINDDB_LIBS
   1736               linker flags for MAXMINDDB, overriding pkg-config
   1737   MAXMINDDB_PREFIX
   1738               value of prefix for libmaxminddb, overriding pkg-config
   1739   LIBUV_CFLAGS
   1740               C compiler flags for LIBUV, overriding pkg-config
   1741   LIBUV_LIBS  linker flags for LIBUV, overriding pkg-config
   1742   OPENSSL_CFLAGS
   1743               C compiler flags for OPENSSL, overriding pkg-config
   1744   OPENSSL_LIBS
   1745               linker flags for OPENSSL, overriding pkg-config
   1746   LIBXML2_CFLAGS
   1747               C compiler flags for LIBXML2, overriding pkg-config
   1748   LIBXML2_LIBS
   1749               linker flags for LIBXML2, overriding pkg-config
   1750   JSON_C_CFLAGS
   1751               C compiler flags for JSON_C, overriding pkg-config
   1752   JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
   1753   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
   1754   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
   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*) # darwin 5.x on
   7570       # if running on 10.5 or later, the deployment target defaults
   7571       # to the OS version, if on x86, and 10.4, the deployment
   7572       # target defaults to 10.4. Don't you love it?
   7573       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   7574 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   7575 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7576 	10.[012][,.]*)
   7577 	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
   7578 	10.*)
   7579 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
   7580       esac
   7581     ;;
   7582   esac
   7583     if test yes = "$lt_cv_apple_cc_single_mod"; then
   7584       _lt_dar_single_mod='$single_module'
   7585     fi
   7586     if test yes = "$lt_cv_ld_exported_symbols_list"; then
   7587       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
   7588     else
   7589       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
   7590     fi
   7591     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
   7592       _lt_dsymutil='~$DSYMUTIL $lib || :'
   7593     else
   7594       _lt_dsymutil=
   7595     fi
   7596     ;;
   7597   esac
   7598 
   7599 # func_munge_path_list VARIABLE PATH
   7600 # -----------------------------------
   7601 # VARIABLE is name of variable containing _space_ separated list of
   7602 # directories to be munged by the contents of PATH, which is string
   7603 # having a format:
   7604 # "DIR[:DIR]:"
   7605 #       string "DIR[ DIR]" will be prepended to VARIABLE
   7606 # ":DIR[:DIR]"
   7607 #       string "DIR[ DIR]" will be appended to VARIABLE
   7608 # "DIRP[:DIRP]::[DIRA:]DIRA"
   7609 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   7610 #       "DIRA[ DIRA]" will be appended to VARIABLE
   7611 # "DIR[:DIR]"
   7612 #       VARIABLE will be replaced by "DIR[ DIR]"
   7613 func_munge_path_list ()
   7614 {
   7615     case x$2 in
   7616     x)
   7617         ;;
   7618     *:)
   7619         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   7620         ;;
   7621     x:*)
   7622         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   7623         ;;
   7624     *::*)
   7625         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   7626         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   7627         ;;
   7628     *)
   7629         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   7630         ;;
   7631     esac
   7632 }
   7633 
   7634 for ac_header in dlfcn.h
   7635 do :
   7636   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   7637 "
   7638 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   7639   cat >>confdefs.h <<_ACEOF
   7640 #define HAVE_DLFCN_H 1
   7641 _ACEOF
   7642 
   7643 fi
   7644 
   7645 done
   7646 
   7647 
   7648 
   7649 
   7650 
   7651 # Set options
   7652 
   7653 
   7654 
   7655         enable_dlopen=no
   7656 
   7657 
   7658   enable_win32_dll=no
   7659 
   7660 
   7661             # Check whether --enable-shared was given.
   7662 if test "${enable_shared+set}" = set; then :
   7663   enableval=$enable_shared; p=${PACKAGE-default}
   7664     case $enableval in
   7665     yes) enable_shared=yes ;;
   7666     no) enable_shared=no ;;
   7667     *)
   7668       enable_shared=no
   7669       # Look at the argument we got.  We use all the common list separators.
   7670       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7671       for pkg in $enableval; do
   7672 	IFS=$lt_save_ifs
   7673 	if test "X$pkg" = "X$p"; then
   7674 	  enable_shared=yes
   7675 	fi
   7676       done
   7677       IFS=$lt_save_ifs
   7678       ;;
   7679     esac
   7680 else
   7681   enable_shared=yes
   7682 fi
   7683 
   7684 
   7685 
   7686 
   7687 
   7688 
   7689 
   7690 
   7691 
   7692   # Check whether --enable-static was given.
   7693 if test "${enable_static+set}" = set; then :
   7694   enableval=$enable_static; p=${PACKAGE-default}
   7695     case $enableval in
   7696     yes) enable_static=yes ;;
   7697     no) enable_static=no ;;
   7698     *)
   7699      enable_static=no
   7700       # Look at the argument we got.  We use all the common list separators.
   7701       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7702       for pkg in $enableval; do
   7703 	IFS=$lt_save_ifs
   7704 	if test "X$pkg" = "X$p"; then
   7705 	  enable_static=yes
   7706 	fi
   7707       done
   7708       IFS=$lt_save_ifs
   7709       ;;
   7710     esac
   7711 else
   7712   enable_static=yes
   7713 fi
   7714 
   7715 
   7716 
   7717 
   7718 
   7719 
   7720 
   7721 
   7722 
   7723 
   7724 # Check whether --with-pic was given.
   7725 if test "${with_pic+set}" = set; then :
   7726   withval=$with_pic; lt_p=${PACKAGE-default}
   7727     case $withval in
   7728     yes|no) pic_mode=$withval ;;
   7729     *)
   7730       pic_mode=default
   7731       # Look at the argument we got.  We use all the common list separators.
   7732       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7733       for lt_pkg in $withval; do
   7734 	IFS=$lt_save_ifs
   7735 	if test "X$lt_pkg" = "X$lt_p"; then
   7736 	  pic_mode=yes
   7737 	fi
   7738       done
   7739       IFS=$lt_save_ifs
   7740       ;;
   7741     esac
   7742 else
   7743   pic_mode=default
   7744 fi
   7745 
   7746 
   7747 
   7748 
   7749 
   7750 
   7751 
   7752 
   7753   # Check whether --enable-fast-install was given.
   7754 if test "${enable_fast_install+set}" = set; then :
   7755   enableval=$enable_fast_install; p=${PACKAGE-default}
   7756     case $enableval in
   7757     yes) enable_fast_install=yes ;;
   7758     no) enable_fast_install=no ;;
   7759     *)
   7760       enable_fast_install=no
   7761       # Look at the argument we got.  We use all the common list separators.
   7762       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
   7763       for pkg in $enableval; do
   7764 	IFS=$lt_save_ifs
   7765 	if test "X$pkg" = "X$p"; then
   7766 	  enable_fast_install=yes
   7767 	fi
   7768       done
   7769       IFS=$lt_save_ifs
   7770       ;;
   7771     esac
   7772 else
   7773   enable_fast_install=yes
   7774 fi
   7775 
   7776 
   7777 
   7778 
   7779 
   7780 
   7781 
   7782 
   7783   shared_archive_member_spec=
   7784 case $host,$enable_shared in
   7785 power*-*-aix[5-9]*,yes)
   7786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
   7787 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
   7788 
   7789 # Check whether --with-aix-soname was given.
   7790 if test "${with_aix_soname+set}" = set; then :
   7791   withval=$with_aix_soname; case $withval in
   7792     aix|svr4|both)
   7793       ;;
   7794     *)
   7795       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
   7796       ;;
   7797     esac
   7798     lt_cv_with_aix_soname=$with_aix_soname
   7799 else
   7800   if ${lt_cv_with_aix_soname+:} false; then :
   7801   $as_echo_n "(cached) " >&6
   7802 else
   7803   lt_cv_with_aix_soname=aix
   7804 fi
   7805 
   7806     with_aix_soname=$lt_cv_with_aix_soname
   7807 fi
   7808 
   7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
   7810 $as_echo "$with_aix_soname" >&6; }
   7811   if test aix != "$with_aix_soname"; then
   7812     # For the AIX way of multilib, we name the shared archive member
   7813     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
   7814     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
   7815     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
   7816     # the AIX toolchain works better with OBJECT_MODE set (default 32).
   7817     if test 64 = "${OBJECT_MODE-32}"; then
   7818       shared_archive_member_spec=shr_64
   7819     else
   7820       shared_archive_member_spec=shr
   7821     fi
   7822   fi
   7823   ;;
   7824 *)
   7825   with_aix_soname=aix
   7826   ;;
   7827 esac
   7828 
   7829 
   7830 
   7831 
   7832 
   7833 
   7834 
   7835 
   7836 
   7837 
   7838 # This can be used to rebuild libtool when needed
   7839 LIBTOOL_DEPS=$ltmain
   7840 
   7841 # Always use our own libtool.
   7842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   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 
   7869 
   7870 
   7871 
   7872 
   7873 test -z "$LN_S" && LN_S="ln -s"
   7874 
   7875 
   7876 
   7877 
   7878 
   7879 
   7880 
   7881 
   7882 
   7883 
   7884 
   7885 
   7886 
   7887 
   7888 if test -n "${ZSH_VERSION+set}"; then
   7889    setopt NO_GLOB_SUBST
   7890 fi
   7891 
   7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
   7893 $as_echo_n "checking for objdir... " >&6; }
   7894 if ${lt_cv_objdir+:} false; then :
   7895   $as_echo_n "(cached) " >&6
   7896 else
   7897   rm -f .libs 2>/dev/null
   7898 mkdir .libs 2>/dev/null
   7899 if test -d .libs; then
   7900   lt_cv_objdir=.libs
   7901 else
   7902   # MS-DOS does not allow filenames that begin with a dot.
   7903   lt_cv_objdir=_libs
   7904 fi
   7905 rmdir .libs 2>/dev/null
   7906 fi
   7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
   7908 $as_echo "$lt_cv_objdir" >&6; }
   7909 objdir=$lt_cv_objdir
   7910 
   7911 
   7912 
   7913 
   7914 
   7915 cat >>confdefs.h <<_ACEOF
   7916 #define LT_OBJDIR "$lt_cv_objdir/"
   7917 _ACEOF
   7918 
   7919 
   7920 
   7921 
   7922 case $host_os in
   7923 aix3*)
   7924   # AIX sometimes has problems with the GCC collect2 program.  For some
   7925   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7926   # vanish in a puff of smoke.
   7927   if test set != "${COLLECT_NAMES+set}"; then
   7928     COLLECT_NAMES=
   7929     export COLLECT_NAMES
   7930   fi
   7931   ;;
   7932 esac
   7933 
   7934 # Global variables:
   7935 ofile=libtool
   7936 can_build_shared=yes
   7937 
   7938 # All known linkers require a '.a' archive for static linking (except MSVC,
   7939 # which needs '.lib').
   7940 libext=a
   7941 
   7942 with_gnu_ld=$lt_cv_prog_gnu_ld
   7943 
   7944 old_CC=$CC
   7945 old_CFLAGS=$CFLAGS
   7946 
   7947 # Set sane defaults for various variables
   7948 test -z "$CC" && CC=cc
   7949 test -z "$LTCC" && LTCC=$CC
   7950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7951 test -z "$LD" && LD=ld
   7952 test -z "$ac_objext" && ac_objext=o
   7953 
   7954 func_cc_basename $compiler
   7955 cc_basename=$func_cc_basename_result
   7956 
   7957 
   7958 # Only perform the check for file, if the check method requires it
   7959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7960 case $deplibs_check_method in
   7961 file_magic*)
   7962   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
   7964 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
   7965 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   7966   $as_echo_n "(cached) " >&6
   7967 else
   7968   case $MAGIC_CMD in
   7969 [\\/*] |  ?:[\\/]*)
   7970   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   7971   ;;
   7972 *)
   7973   lt_save_MAGIC_CMD=$MAGIC_CMD
   7974   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   7975   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7976   for ac_dir in $ac_dummy; do
   7977     IFS=$lt_save_ifs
   7978     test -z "$ac_dir" && ac_dir=.
   7979     if test -f "$ac_dir/${ac_tool_prefix}file"; then
   7980       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
   7981       if test -n "$file_magic_test_file"; then
   7982 	case $deplibs_check_method in
   7983 	"file_magic "*)
   7984 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7985 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   7986 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7987 	    $EGREP "$file_magic_regex" > /dev/null; then
   7988 	    :
   7989 	  else
   7990 	    cat <<_LT_EOF 1>&2
   7991 
   7992 *** Warning: the command libtool uses to detect shared libraries,
   7993 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7994 *** The result is that libtool may fail to recognize shared libraries
   7995 *** as such.  This will affect the creation of libtool libraries that
   7996 *** depend on shared libraries, but programs linked with such libtool
   7997 *** libraries will work regardless of this problem.  Nevertheless, you
   7998 *** may want to report the problem to your system manager and/or to
   7999 *** bug-libtool (at] gnu.org
   8000 
   8001 _LT_EOF
   8002 	  fi ;;
   8003 	esac
   8004       fi
   8005       break
   8006     fi
   8007   done
   8008   IFS=$lt_save_ifs
   8009   MAGIC_CMD=$lt_save_MAGIC_CMD
   8010   ;;
   8011 esac
   8012 fi
   8013 
   8014 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8015 if test -n "$MAGIC_CMD"; then
   8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8017 $as_echo "$MAGIC_CMD" >&6; }
   8018 else
   8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8020 $as_echo "no" >&6; }
   8021 fi
   8022 
   8023 
   8024 
   8025 
   8026 
   8027 if test -z "$lt_cv_path_MAGIC_CMD"; then
   8028   if test -n "$ac_tool_prefix"; then
   8029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
   8030 $as_echo_n "checking for file... " >&6; }
   8031 if ${lt_cv_path_MAGIC_CMD+:} false; then :
   8032   $as_echo_n "(cached) " >&6
   8033 else
   8034   case $MAGIC_CMD in
   8035 [\\/*] |  ?:[\\/]*)
   8036   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
   8037   ;;
   8038 *)
   8039   lt_save_MAGIC_CMD=$MAGIC_CMD
   8040   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
   8041   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   8042   for ac_dir in $ac_dummy; do
   8043     IFS=$lt_save_ifs
   8044     test -z "$ac_dir" && ac_dir=.
   8045     if test -f "$ac_dir/file"; then
   8046       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
   8047       if test -n "$file_magic_test_file"; then
   8048 	case $deplibs_check_method in
   8049 	"file_magic "*)
   8050 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   8051 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8052 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   8053 	    $EGREP "$file_magic_regex" > /dev/null; then
   8054 	    :
   8055 	  else
   8056 	    cat <<_LT_EOF 1>&2
   8057 
   8058 *** Warning: the command libtool uses to detect shared libraries,
   8059 *** $file_magic_cmd, produces output that libtool cannot recognize.
   8060 *** The result is that libtool may fail to recognize shared libraries
   8061 *** as such.  This will affect the creation of libtool libraries that
   8062 *** depend on shared libraries, but programs linked with such libtool
   8063 *** libraries will work regardless of this problem.  Nevertheless, you
   8064 *** may want to report the problem to your system manager and/or to
   8065 *** bug-libtool (at] gnu.org
   8066 
   8067 _LT_EOF
   8068 	  fi ;;
   8069 	esac
   8070       fi
   8071       break
   8072     fi
   8073   done
   8074   IFS=$lt_save_ifs
   8075   MAGIC_CMD=$lt_save_MAGIC_CMD
   8076   ;;
   8077 esac
   8078 fi
   8079 
   8080 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
   8081 if test -n "$MAGIC_CMD"; then
   8082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
   8083 $as_echo "$MAGIC_CMD" >&6; }
   8084 else
   8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8086 $as_echo "no" >&6; }
   8087 fi
   8088 
   8089 
   8090   else
   8091     MAGIC_CMD=:
   8092   fi
   8093 fi
   8094 
   8095   fi
   8096   ;;
   8097 esac
   8098 
   8099 # Use C for the default configuration in the libtool script
   8100 
   8101 lt_save_CC=$CC
   8102 ac_ext=c
   8103 ac_cpp='$CPP $CPPFLAGS'
   8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8107 
   8108 
   8109 # Source file extension for C test sources.
   8110 ac_ext=c
   8111 
   8112 # Object file extension for compiled C test sources.
   8113 objext=o
   8114 objext=$objext
   8115 
   8116 # Code to be used in simple compile tests
   8117 lt_simple_compile_test_code="int some_variable = 0;"
   8118 
   8119 # Code to be used in simple link tests
   8120 lt_simple_link_test_code='int main(){return(0);}'
   8121 
   8122 
   8123 
   8124 
   8125 
   8126 
   8127 
   8128 # If no C compiler was specified, use CC.
   8129 LTCC=${LTCC-"$CC"}
   8130 
   8131 # If no C compiler flags were specified, use CFLAGS.
   8132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   8133 
   8134 # Allow CC to be a program name with arguments.
   8135 compiler=$CC
   8136 
   8137 # Save the default compiler, since it gets overwritten when the other
   8138 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   8139 compiler_DEFAULT=$CC
   8140 
   8141 # save warnings/boilerplate of simple test code
   8142 ac_outfile=conftest.$ac_objext
   8143 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   8144 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8145 _lt_compiler_boilerplate=`cat conftest.err`
   8146 $RM conftest*
   8147 
   8148 ac_outfile=conftest.$ac_objext
   8149 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   8150 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   8151 _lt_linker_boilerplate=`cat conftest.err`
   8152 $RM -r conftest*
   8153 
   8154 
   8155 ## CAVEAT EMPTOR:
   8156 ## There is no encapsulation within the following macros, do not change
   8157 ## the running order or otherwise move them around unless you know exactly
   8158 ## what you are doing...
   8159 if test -n "$compiler"; then
   8160 
   8161 lt_prog_compiler_no_builtin_flag=
   8162 
   8163 if test yes = "$GCC"; then
   8164   case $cc_basename in
   8165   nvcc*)
   8166     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
   8167   *)
   8168     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
   8169   esac
   8170 
   8171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   8172 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
   8173 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
   8174   $as_echo_n "(cached) " >&6
   8175 else
   8176   lt_cv_prog_compiler_rtti_exceptions=no
   8177    ac_outfile=conftest.$ac_objext
   8178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8179    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
   8180    # Insert the option either (1) after the last *FLAGS variable, or
   8181    # (2) before a word containing "conftest.", or (3) at the end.
   8182    # Note that $ac_compile itself does not contain backslashes and begins
   8183    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8184    # The option is referenced via a variable to avoid confusing sed.
   8185    lt_compile=`echo "$ac_compile" | $SED \
   8186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8188    -e 's:$: $lt_compiler_flag:'`
   8189    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8190    (eval "$lt_compile" 2>conftest.err)
   8191    ac_status=$?
   8192    cat conftest.err >&5
   8193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8194    if (exit $ac_status) && test -s "$ac_outfile"; then
   8195      # The compiler can only warn and ignore the option if not recognized
   8196      # So say no if there are warnings other than the usual output.
   8197      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8198      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8199      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8200        lt_cv_prog_compiler_rtti_exceptions=yes
   8201      fi
   8202    fi
   8203    $RM conftest*
   8204 
   8205 fi
   8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   8207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   8208 
   8209 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
   8210     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   8211 else
   8212     :
   8213 fi
   8214 
   8215 fi
   8216 
   8217 
   8218 
   8219 
   8220 
   8221 
   8222   lt_prog_compiler_wl=
   8223 lt_prog_compiler_pic=
   8224 lt_prog_compiler_static=
   8225 
   8226 
   8227   if test yes = "$GCC"; then
   8228     lt_prog_compiler_wl='-Wl,'
   8229     lt_prog_compiler_static='-static'
   8230 
   8231     case $host_os in
   8232       aix*)
   8233       # All AIX code is PIC.
   8234       if test ia64 = "$host_cpu"; then
   8235 	# AIX 5 now supports IA64 processor
   8236 	lt_prog_compiler_static='-Bstatic'
   8237       fi
   8238       lt_prog_compiler_pic='-fPIC'
   8239       ;;
   8240 
   8241     amigaos*)
   8242       case $host_cpu in
   8243       powerpc)
   8244             # see comment about AmigaOS4 .so support
   8245             lt_prog_compiler_pic='-fPIC'
   8246         ;;
   8247       m68k)
   8248             # FIXME: we need at least 68020 code to build shared libraries, but
   8249             # adding the '-m68020' flag to GCC prevents building anything better,
   8250             # like '-m68040'.
   8251             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   8252         ;;
   8253       esac
   8254       ;;
   8255 
   8256     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   8257       # PIC is the default for these OSes.
   8258       ;;
   8259 
   8260     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8261       # This hack is so that the source file can tell whether it is being
   8262       # built for inclusion in a dll (and should export symbols for example).
   8263       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   8264       # (--disable-auto-import) libraries
   8265       lt_prog_compiler_pic='-DDLL_EXPORT'
   8266       case $host_os in
   8267       os2*)
   8268 	lt_prog_compiler_static='$wl-static'
   8269 	;;
   8270       esac
   8271       ;;
   8272 
   8273     darwin* | rhapsody*)
   8274       # PIC is the default on this platform
   8275       # Common symbols not allowed in MH_DYLIB files
   8276       lt_prog_compiler_pic='-fno-common'
   8277       ;;
   8278 
   8279     haiku*)
   8280       # PIC is the default for Haiku.
   8281       # The "-static" flag exists, but is broken.
   8282       lt_prog_compiler_static=
   8283       ;;
   8284 
   8285     hpux*)
   8286       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   8287       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   8288       # sets the default TLS model and affects inlining.
   8289       case $host_cpu in
   8290       hppa*64*)
   8291 	# +Z the default
   8292 	;;
   8293       *)
   8294 	lt_prog_compiler_pic='-fPIC'
   8295 	;;
   8296       esac
   8297       ;;
   8298 
   8299     interix[3-9]*)
   8300       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   8301       # Instead, we relocate shared libraries at runtime.
   8302       ;;
   8303 
   8304     msdosdjgpp*)
   8305       # Just because we use GCC doesn't mean we suddenly get shared libraries
   8306       # on systems that don't support them.
   8307       lt_prog_compiler_can_build_shared=no
   8308       enable_shared=no
   8309       ;;
   8310 
   8311     *nto* | *qnx*)
   8312       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8313       # it will coredump.
   8314       lt_prog_compiler_pic='-fPIC -shared'
   8315       ;;
   8316 
   8317     sysv4*MP*)
   8318       if test -d /usr/nec; then
   8319 	lt_prog_compiler_pic=-Kconform_pic
   8320       fi
   8321       ;;
   8322 
   8323     *)
   8324       lt_prog_compiler_pic='-fPIC'
   8325       ;;
   8326     esac
   8327 
   8328     case $cc_basename in
   8329     nvcc*) # Cuda Compiler Driver 2.2
   8330       lt_prog_compiler_wl='-Xlinker '
   8331       if test -n "$lt_prog_compiler_pic"; then
   8332         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
   8333       fi
   8334       ;;
   8335     esac
   8336   else
   8337     # PORTME Check for flag to pass linker flags through the system compiler.
   8338     case $host_os in
   8339     aix*)
   8340       lt_prog_compiler_wl='-Wl,'
   8341       if test ia64 = "$host_cpu"; then
   8342 	# AIX 5 now supports IA64 processor
   8343 	lt_prog_compiler_static='-Bstatic'
   8344       else
   8345 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   8346       fi
   8347       ;;
   8348 
   8349     darwin* | rhapsody*)
   8350       # PIC is the default on this platform
   8351       # Common symbols not allowed in MH_DYLIB files
   8352       lt_prog_compiler_pic='-fno-common'
   8353       case $cc_basename in
   8354       nagfor*)
   8355         # NAG Fortran compiler
   8356         lt_prog_compiler_wl='-Wl,-Wl,,'
   8357         lt_prog_compiler_pic='-PIC'
   8358         lt_prog_compiler_static='-Bstatic'
   8359         ;;
   8360       esac
   8361       ;;
   8362 
   8363     mingw* | cygwin* | pw32* | os2* | cegcc*)
   8364       # This hack is so that the source file can tell whether it is being
   8365       # built for inclusion in a dll (and should export symbols for example).
   8366       lt_prog_compiler_pic='-DDLL_EXPORT'
   8367       case $host_os in
   8368       os2*)
   8369 	lt_prog_compiler_static='$wl-static'
   8370 	;;
   8371       esac
   8372       ;;
   8373 
   8374     hpux9* | hpux10* | hpux11*)
   8375       lt_prog_compiler_wl='-Wl,'
   8376       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   8377       # not for PA HP-UX.
   8378       case $host_cpu in
   8379       hppa*64*|ia64*)
   8380 	# +Z the default
   8381 	;;
   8382       *)
   8383 	lt_prog_compiler_pic='+Z'
   8384 	;;
   8385       esac
   8386       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   8387       lt_prog_compiler_static='$wl-a ${wl}archive'
   8388       ;;
   8389 
   8390     irix5* | irix6* | nonstopux*)
   8391       lt_prog_compiler_wl='-Wl,'
   8392       # PIC (with -KPIC) is the default.
   8393       lt_prog_compiler_static='-non_shared'
   8394       ;;
   8395 
   8396     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   8397       case $cc_basename in
   8398       # old Intel for x86_64, which still supported -KPIC.
   8399       ecc*)
   8400 	lt_prog_compiler_wl='-Wl,'
   8401 	lt_prog_compiler_pic='-KPIC'
   8402 	lt_prog_compiler_static='-static'
   8403         ;;
   8404       # icc used to be incompatible with GCC.
   8405       # ICC 10 doesn't accept -KPIC any more.
   8406       icc* | ifort*)
   8407 	lt_prog_compiler_wl='-Wl,'
   8408 	lt_prog_compiler_pic='-fPIC'
   8409 	lt_prog_compiler_static='-static'
   8410         ;;
   8411       # Lahey Fortran 8.1.
   8412       lf95*)
   8413 	lt_prog_compiler_wl='-Wl,'
   8414 	lt_prog_compiler_pic='--shared'
   8415 	lt_prog_compiler_static='--static'
   8416 	;;
   8417       nagfor*)
   8418 	# NAG Fortran compiler
   8419 	lt_prog_compiler_wl='-Wl,-Wl,,'
   8420 	lt_prog_compiler_pic='-PIC'
   8421 	lt_prog_compiler_static='-Bstatic'
   8422 	;;
   8423       tcc*)
   8424 	# Fabrice Bellard et al's Tiny C Compiler
   8425 	lt_prog_compiler_wl='-Wl,'
   8426 	lt_prog_compiler_pic='-fPIC'
   8427 	lt_prog_compiler_static='-static'
   8428 	;;
   8429       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
   8430         # Portland Group compilers (*not* the Pentium gcc compiler,
   8431 	# which looks to be a dead project)
   8432 	lt_prog_compiler_wl='-Wl,'
   8433 	lt_prog_compiler_pic='-fpic'
   8434 	lt_prog_compiler_static='-Bstatic'
   8435         ;;
   8436       ccc*)
   8437         lt_prog_compiler_wl='-Wl,'
   8438         # All Alpha code is PIC.
   8439         lt_prog_compiler_static='-non_shared'
   8440         ;;
   8441       xl* | bgxl* | bgf* | mpixl*)
   8442 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
   8443 	lt_prog_compiler_wl='-Wl,'
   8444 	lt_prog_compiler_pic='-qpic'
   8445 	lt_prog_compiler_static='-qstaticlink'
   8446 	;;
   8447       *)
   8448 	case `$CC -V 2>&1 | sed 5q` in
   8449 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
   8450 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   8451 	  lt_prog_compiler_pic='-KPIC'
   8452 	  lt_prog_compiler_static='-Bstatic'
   8453 	  lt_prog_compiler_wl=''
   8454 	  ;;
   8455 	*Sun\ F* | *Sun*Fortran*)
   8456 	  lt_prog_compiler_pic='-KPIC'
   8457 	  lt_prog_compiler_static='-Bstatic'
   8458 	  lt_prog_compiler_wl='-Qoption ld '
   8459 	  ;;
   8460 	*Sun\ C*)
   8461 	  # Sun C 5.9
   8462 	  lt_prog_compiler_pic='-KPIC'
   8463 	  lt_prog_compiler_static='-Bstatic'
   8464 	  lt_prog_compiler_wl='-Wl,'
   8465 	  ;;
   8466         *Intel*\ [CF]*Compiler*)
   8467 	  lt_prog_compiler_wl='-Wl,'
   8468 	  lt_prog_compiler_pic='-fPIC'
   8469 	  lt_prog_compiler_static='-static'
   8470 	  ;;
   8471 	*Portland\ Group*)
   8472 	  lt_prog_compiler_wl='-Wl,'
   8473 	  lt_prog_compiler_pic='-fpic'
   8474 	  lt_prog_compiler_static='-Bstatic'
   8475 	  ;;
   8476 	esac
   8477 	;;
   8478       esac
   8479       ;;
   8480 
   8481     newsos6)
   8482       lt_prog_compiler_pic='-KPIC'
   8483       lt_prog_compiler_static='-Bstatic'
   8484       ;;
   8485 
   8486     *nto* | *qnx*)
   8487       # QNX uses GNU C++, but need to define -shared option too, otherwise
   8488       # it will coredump.
   8489       lt_prog_compiler_pic='-fPIC -shared'
   8490       ;;
   8491 
   8492     osf3* | osf4* | osf5*)
   8493       lt_prog_compiler_wl='-Wl,'
   8494       # All OSF/1 code is PIC.
   8495       lt_prog_compiler_static='-non_shared'
   8496       ;;
   8497 
   8498     rdos*)
   8499       lt_prog_compiler_static='-non_shared'
   8500       ;;
   8501 
   8502     solaris*)
   8503       lt_prog_compiler_pic='-KPIC'
   8504       lt_prog_compiler_static='-Bstatic'
   8505       case $cc_basename in
   8506       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
   8507 	lt_prog_compiler_wl='-Qoption ld ';;
   8508       *)
   8509 	lt_prog_compiler_wl='-Wl,';;
   8510       esac
   8511       ;;
   8512 
   8513     sunos4*)
   8514       lt_prog_compiler_wl='-Qoption ld '
   8515       lt_prog_compiler_pic='-PIC'
   8516       lt_prog_compiler_static='-Bstatic'
   8517       ;;
   8518 
   8519     sysv4 | sysv4.2uw2* | sysv4.3*)
   8520       lt_prog_compiler_wl='-Wl,'
   8521       lt_prog_compiler_pic='-KPIC'
   8522       lt_prog_compiler_static='-Bstatic'
   8523       ;;
   8524 
   8525     sysv4*MP*)
   8526       if test -d /usr/nec; then
   8527 	lt_prog_compiler_pic='-Kconform_pic'
   8528 	lt_prog_compiler_static='-Bstatic'
   8529       fi
   8530       ;;
   8531 
   8532     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   8533       lt_prog_compiler_wl='-Wl,'
   8534       lt_prog_compiler_pic='-KPIC'
   8535       lt_prog_compiler_static='-Bstatic'
   8536       ;;
   8537 
   8538     unicos*)
   8539       lt_prog_compiler_wl='-Wl,'
   8540       lt_prog_compiler_can_build_shared=no
   8541       ;;
   8542 
   8543     uts4*)
   8544       lt_prog_compiler_pic='-pic'
   8545       lt_prog_compiler_static='-Bstatic'
   8546       ;;
   8547 
   8548     *)
   8549       lt_prog_compiler_can_build_shared=no
   8550       ;;
   8551     esac
   8552   fi
   8553 
   8554 case $host_os in
   8555   # For platforms that do not support PIC, -DPIC is meaningless:
   8556   *djgpp*)
   8557     lt_prog_compiler_pic=
   8558     ;;
   8559   *)
   8560     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   8561     ;;
   8562 esac
   8563 
   8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
   8565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
   8566 if ${lt_cv_prog_compiler_pic+:} false; then :
   8567   $as_echo_n "(cached) " >&6
   8568 else
   8569   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
   8570 fi
   8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
   8572 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
   8573 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
   8574 
   8575 #
   8576 # Check to make sure the PIC flag actually works.
   8577 #
   8578 if test -n "$lt_prog_compiler_pic"; then
   8579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   8580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
   8581 if ${lt_cv_prog_compiler_pic_works+:} false; then :
   8582   $as_echo_n "(cached) " >&6
   8583 else
   8584   lt_cv_prog_compiler_pic_works=no
   8585    ac_outfile=conftest.$ac_objext
   8586    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8587    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
   8588    # Insert the option either (1) after the last *FLAGS variable, or
   8589    # (2) before a word containing "conftest.", or (3) at the end.
   8590    # Note that $ac_compile itself does not contain backslashes and begins
   8591    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8592    # The option is referenced via a variable to avoid confusing sed.
   8593    lt_compile=`echo "$ac_compile" | $SED \
   8594    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8596    -e 's:$: $lt_compiler_flag:'`
   8597    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8598    (eval "$lt_compile" 2>conftest.err)
   8599    ac_status=$?
   8600    cat conftest.err >&5
   8601    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8602    if (exit $ac_status) && test -s "$ac_outfile"; then
   8603      # The compiler can only warn and ignore the option if not recognized
   8604      # So say no if there are warnings other than the usual output.
   8605      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   8606      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8607      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   8608        lt_cv_prog_compiler_pic_works=yes
   8609      fi
   8610    fi
   8611    $RM conftest*
   8612 
   8613 fi
   8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
   8615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
   8616 
   8617 if test yes = "$lt_cv_prog_compiler_pic_works"; then
   8618     case $lt_prog_compiler_pic in
   8619      "" | " "*) ;;
   8620      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   8621      esac
   8622 else
   8623     lt_prog_compiler_pic=
   8624      lt_prog_compiler_can_build_shared=no
   8625 fi
   8626 
   8627 fi
   8628 
   8629 
   8630 
   8631 
   8632 
   8633 
   8634 
   8635 
   8636 
   8637 
   8638 
   8639 #
   8640 # Check to make sure the static flag actually works.
   8641 #
   8642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   8644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
   8645 if ${lt_cv_prog_compiler_static_works+:} false; then :
   8646   $as_echo_n "(cached) " >&6
   8647 else
   8648   lt_cv_prog_compiler_static_works=no
   8649    save_LDFLAGS=$LDFLAGS
   8650    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   8651    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   8652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   8653      # The linker can only warn and ignore the option if not recognized
   8654      # So say no if there are warnings
   8655      if test -s conftest.err; then
   8656        # Append any errors to the config.log.
   8657        cat conftest.err 1>&5
   8658        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   8659        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   8660        if diff conftest.exp conftest.er2 >/dev/null; then
   8661          lt_cv_prog_compiler_static_works=yes
   8662        fi
   8663      else
   8664        lt_cv_prog_compiler_static_works=yes
   8665      fi
   8666    fi
   8667    $RM -r conftest*
   8668    LDFLAGS=$save_LDFLAGS
   8669 
   8670 fi
   8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
   8672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
   8673 
   8674 if test yes = "$lt_cv_prog_compiler_static_works"; then
   8675     :
   8676 else
   8677     lt_prog_compiler_static=
   8678 fi
   8679 
   8680 
   8681 
   8682 
   8683 
   8684 
   8685 
   8686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8688 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8689   $as_echo_n "(cached) " >&6
   8690 else
   8691   lt_cv_prog_compiler_c_o=no
   8692    $RM -r conftest 2>/dev/null
   8693    mkdir conftest
   8694    cd conftest
   8695    mkdir out
   8696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8697 
   8698    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8699    # Insert the option either (1) after the last *FLAGS variable, or
   8700    # (2) before a word containing "conftest.", or (3) at the end.
   8701    # Note that $ac_compile itself does not contain backslashes and begins
   8702    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8703    lt_compile=`echo "$ac_compile" | $SED \
   8704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8706    -e 's:$: $lt_compiler_flag:'`
   8707    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8708    (eval "$lt_compile" 2>out/conftest.err)
   8709    ac_status=$?
   8710    cat out/conftest.err >&5
   8711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8712    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8713    then
   8714      # The compiler can only warn and ignore the option if not recognized
   8715      # So say no if there are warnings
   8716      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8717      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8718      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8719        lt_cv_prog_compiler_c_o=yes
   8720      fi
   8721    fi
   8722    chmod u+w . 2>&5
   8723    $RM conftest*
   8724    # SGI C++ compiler will create directory out/ii_files/ for
   8725    # template instantiation
   8726    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8727    $RM out/* && rmdir out
   8728    cd ..
   8729    $RM -r conftest
   8730    $RM conftest*
   8731 
   8732 fi
   8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8735 
   8736 
   8737 
   8738 
   8739 
   8740 
   8741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
   8742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
   8743 if ${lt_cv_prog_compiler_c_o+:} false; then :
   8744   $as_echo_n "(cached) " >&6
   8745 else
   8746   lt_cv_prog_compiler_c_o=no
   8747    $RM -r conftest 2>/dev/null
   8748    mkdir conftest
   8749    cd conftest
   8750    mkdir out
   8751    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   8752 
   8753    lt_compiler_flag="-o out/conftest2.$ac_objext"
   8754    # Insert the option either (1) after the last *FLAGS variable, or
   8755    # (2) before a word containing "conftest.", or (3) at the end.
   8756    # Note that $ac_compile itself does not contain backslashes and begins
   8757    # with a dollar sign (not a hyphen), so the echo should work correctly.
   8758    lt_compile=`echo "$ac_compile" | $SED \
   8759    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   8760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   8761    -e 's:$: $lt_compiler_flag:'`
   8762    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
   8763    (eval "$lt_compile" 2>out/conftest.err)
   8764    ac_status=$?
   8765    cat out/conftest.err >&5
   8766    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8767    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   8768    then
   8769      # The compiler can only warn and ignore the option if not recognized
   8770      # So say no if there are warnings
   8771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
   8772      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   8773      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   8774        lt_cv_prog_compiler_c_o=yes
   8775      fi
   8776    fi
   8777    chmod u+w . 2>&5
   8778    $RM conftest*
   8779    # SGI C++ compiler will create directory out/ii_files/ for
   8780    # template instantiation
   8781    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   8782    $RM out/* && rmdir out
   8783    cd ..
   8784    $RM -r conftest
   8785    $RM conftest*
   8786 
   8787 fi
   8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
   8789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
   8790 
   8791 
   8792 
   8793 
   8794 hard_links=nottested
   8795 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
   8796   # do not overwrite the value of need_locks provided by the user
   8797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
   8798 $as_echo_n "checking if we can lock with hard links... " >&6; }
   8799   hard_links=yes
   8800   $RM conftest*
   8801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8802   touch conftest.a
   8803   ln conftest.a conftest.b 2>&5 || hard_links=no
   8804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   8805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
   8806 $as_echo "$hard_links" >&6; }
   8807   if test no = "$hard_links"; then
   8808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
   8809 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
   8810     need_locks=warn
   8811   fi
   8812 else
   8813   need_locks=no
   8814 fi
   8815 
   8816 
   8817 
   8818 
   8819 
   8820 
   8821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   8822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
   8823 
   8824   runpath_var=
   8825   allow_undefined_flag=
   8826   always_export_symbols=no
   8827   archive_cmds=
   8828   archive_expsym_cmds=
   8829   compiler_needs_object=no
   8830   enable_shared_with_static_runtimes=no
   8831   export_dynamic_flag_spec=
   8832   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   8833   hardcode_automatic=no
   8834   hardcode_direct=no
   8835   hardcode_direct_absolute=no
   8836   hardcode_libdir_flag_spec=
   8837   hardcode_libdir_separator=
   8838   hardcode_minus_L=no
   8839   hardcode_shlibpath_var=unsupported
   8840   inherit_rpath=no
   8841   link_all_deplibs=unknown
   8842   module_cmds=
   8843   module_expsym_cmds=
   8844   old_archive_from_new_cmds=
   8845   old_archive_from_expsyms_cmds=
   8846   thread_safe_flag_spec=
   8847   whole_archive_flag_spec=
   8848   # include_expsyms should be a list of space-separated symbols to be *always*
   8849   # included in the symbol list
   8850   include_expsyms=
   8851   # exclude_expsyms can be an extended regexp of symbols to exclude
   8852   # it will be wrapped by ' (' and ')$', so one must not match beginning or
   8853   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
   8854   # as well as any symbol that contains 'd'.
   8855   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   8856   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   8857   # platforms (ab)use it in PIC code, but their linkers get confused if
   8858   # the symbol is explicitly referenced.  Since portable code cannot
   8859   # rely on this symbol name, it's probably fine to never include it in
   8860   # preloaded symbol tables.
   8861   # Exclude shared library initialization/finalization symbols.
   8862   extract_expsyms_cmds=
   8863 
   8864   case $host_os in
   8865   cygwin* | mingw* | pw32* | cegcc*)
   8866     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   8867     # When not using gcc, we currently assume that we are using
   8868     # Microsoft Visual C++.
   8869     if test yes != "$GCC"; then
   8870       with_gnu_ld=no
   8871     fi
   8872     ;;
   8873   interix*)
   8874     # we just hope/assume this is gcc and not c89 (= MSVC++)
   8875     with_gnu_ld=yes
   8876     ;;
   8877   openbsd* | bitrig*)
   8878     with_gnu_ld=no
   8879     ;;
   8880   esac
   8881 
   8882   ld_shlibs=yes
   8883 
   8884   # On some targets, GNU ld is compatible enough with the native linker
   8885   # that we're better off using the native interface for both.
   8886   lt_use_gnu_ld_interface=no
   8887   if test yes = "$with_gnu_ld"; then
   8888     case $host_os in
   8889       aix*)
   8890 	# The AIX port of GNU ld has always aspired to compatibility
   8891 	# with the native linker.  However, as the warning in the GNU ld
   8892 	# block says, versions before 2.19.5* couldn't really create working
   8893 	# shared libraries, regardless of the interface used.
   8894 	case `$LD -v 2>&1` in
   8895 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
   8896 	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
   8897 	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
   8898 	  *)
   8899 	    lt_use_gnu_ld_interface=yes
   8900 	    ;;
   8901 	esac
   8902 	;;
   8903       *)
   8904 	lt_use_gnu_ld_interface=yes
   8905 	;;
   8906     esac
   8907   fi
   8908 
   8909   if test yes = "$lt_use_gnu_ld_interface"; then
   8910     # If archive_cmds runs LD, not CC, wlarc should be empty
   8911     wlarc='$wl'
   8912 
   8913     # Set some defaults for GNU ld with shared library support. These
   8914     # are reset later if shared libraries are not supported. Putting them
   8915     # here allows them to be overridden if necessary.
   8916     runpath_var=LD_RUN_PATH
   8917     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   8918     export_dynamic_flag_spec='$wl--export-dynamic'
   8919     # ancient GNU ld didn't support --whole-archive et. al.
   8920     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   8921       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
   8922     else
   8923       whole_archive_flag_spec=
   8924     fi
   8925     supports_anon_versioning=no
   8926     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
   8927       *GNU\ gold*) supports_anon_versioning=yes ;;
   8928       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   8929       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   8930       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   8931       *\ 2.11.*) ;; # other 2.11 versions
   8932       *) supports_anon_versioning=yes ;;
   8933     esac
   8934 
   8935     # See if GNU ld supports shared libraries.
   8936     case $host_os in
   8937     aix[3-9]*)
   8938       # On AIX/PPC, the GNU linker is very broken
   8939       if test ia64 != "$host_cpu"; then
   8940 	ld_shlibs=no
   8941 	cat <<_LT_EOF 1>&2
   8942 
   8943 *** Warning: the GNU linker, at least up to release 2.19, is reported
   8944 *** to be unable to reliably create shared libraries on AIX.
   8945 *** Therefore, libtool is disabling shared libraries support.  If you
   8946 *** really care for shared libraries, you may want to install binutils
   8947 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
   8948 *** You will then need to restart the configuration process.
   8949 
   8950 _LT_EOF
   8951       fi
   8952       ;;
   8953 
   8954     amigaos*)
   8955       case $host_cpu in
   8956       powerpc)
   8957             # see comment about AmigaOS4 .so support
   8958             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8959             archive_expsym_cmds=''
   8960         ;;
   8961       m68k)
   8962             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)'
   8963             hardcode_libdir_flag_spec='-L$libdir'
   8964             hardcode_minus_L=yes
   8965         ;;
   8966       esac
   8967       ;;
   8968 
   8969     beos*)
   8970       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8971 	allow_undefined_flag=unsupported
   8972 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8973 	# support --undefined.  This deserves some investigation.  FIXME
   8974 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   8975       else
   8976 	ld_shlibs=no
   8977       fi
   8978       ;;
   8979 
   8980     cygwin* | mingw* | pw32* | cegcc*)
   8981       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8982       # as there is no search path for DLLs.
   8983       hardcode_libdir_flag_spec='-L$libdir'
   8984       export_dynamic_flag_spec='$wl--export-all-symbols'
   8985       allow_undefined_flag=unsupported
   8986       always_export_symbols=no
   8987       enable_shared_with_static_runtimes=yes
   8988       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'
   8989       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
   8990 
   8991       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8992         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8993 	# If the export-symbols file already is a .def file, use it as
   8994 	# is; otherwise, prepend EXPORTS...
   8995 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   8996           cp $export_symbols $output_objdir/$soname.def;
   8997         else
   8998           echo EXPORTS > $output_objdir/$soname.def;
   8999           cat $export_symbols >> $output_objdir/$soname.def;
   9000         fi~
   9001         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   9002       else
   9003 	ld_shlibs=no
   9004       fi
   9005       ;;
   9006 
   9007     haiku*)
   9008       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9009       link_all_deplibs=yes
   9010       ;;
   9011 
   9012     os2*)
   9013       hardcode_libdir_flag_spec='-L$libdir'
   9014       hardcode_minus_L=yes
   9015       allow_undefined_flag=unsupported
   9016       shrext_cmds=.dll
   9017       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9018 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9019 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9020 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9021 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9022 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9023 	emximp -o $lib $output_objdir/$libname.def'
   9024       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9025 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9026 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9027 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9028 	prefix_cmds="$SED"~
   9029 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9030 	  prefix_cmds="$prefix_cmds -e 1d";
   9031 	fi~
   9032 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9033 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9034 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9035 	emximp -o $lib $output_objdir/$libname.def'
   9036       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9037       enable_shared_with_static_runtimes=yes
   9038       ;;
   9039 
   9040     interix[3-9]*)
   9041       hardcode_direct=no
   9042       hardcode_shlibpath_var=no
   9043       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9044       export_dynamic_flag_spec='$wl-E'
   9045       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   9046       # Instead, shared libraries are loaded at an image base (0x10000000 by
   9047       # default) and relocated if they conflict, which is a slow very memory
   9048       # consuming and fragmenting process.  To avoid this, we pick a random,
   9049       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   9050       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   9051       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   9052       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'
   9053       ;;
   9054 
   9055     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
   9056       tmp_diet=no
   9057       if test linux-dietlibc = "$host_os"; then
   9058 	case $cc_basename in
   9059 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   9060 	esac
   9061       fi
   9062       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   9063 	 && test no = "$tmp_diet"
   9064       then
   9065 	tmp_addflag=' $pic_flag'
   9066 	tmp_sharedflag='-shared'
   9067 	case $cc_basename,$host_cpu in
   9068         pgcc*)				# Portland Group C compiler
   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'
   9071 	  ;;
   9072 	pgf77* | pgf90* | pgf95* | pgfortran*)
   9073 					# Portland Group f77 and f90 compilers
   9074 	  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'
   9075 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   9076 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   9077 	  tmp_addflag=' -i_dynamic' ;;
   9078 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   9079 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   9080 	ifc* | ifort*)			# Intel Fortran compiler
   9081 	  tmp_addflag=' -nofor_main' ;;
   9082 	lf95*)				# Lahey Fortran 8.1
   9083 	  whole_archive_flag_spec=
   9084 	  tmp_sharedflag='--shared' ;;
   9085         nagfor*)                        # NAGFOR 5.3
   9086           tmp_sharedflag='-Wl,-shared' ;;
   9087 	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
   9088 	  tmp_sharedflag='-qmkshrobj'
   9089 	  tmp_addflag= ;;
   9090 	nvcc*)	# Cuda Compiler Driver 2.2
   9091 	  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'
   9092 	  compiler_needs_object=yes
   9093 	  ;;
   9094 	esac
   9095 	case `$CC -V 2>&1 | sed 5q` in
   9096 	*Sun\ C*)			# Sun C 5.9
   9097 	  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'
   9098 	  compiler_needs_object=yes
   9099 	  tmp_sharedflag='-G' ;;
   9100 	*Sun\ F*)			# Sun Fortran 8.3
   9101 	  tmp_sharedflag='-G' ;;
   9102 	esac
   9103 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9104 
   9105         if test yes = "$supports_anon_versioning"; then
   9106           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9107             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9108             echo "local: *; };" >> $output_objdir/$libname.ver~
   9109             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
   9110         fi
   9111 
   9112 	case $cc_basename in
   9113 	tcc*)
   9114 	  export_dynamic_flag_spec='-rdynamic'
   9115 	  ;;
   9116 	xlf* | bgf* | bgxlf* | mpixlf*)
   9117 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   9118 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   9119 	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9120 	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
   9121 	  if test yes = "$supports_anon_versioning"; then
   9122 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   9123               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   9124               echo "local: *; };" >> $output_objdir/$libname.ver~
   9125               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   9126 	  fi
   9127 	  ;;
   9128 	esac
   9129       else
   9130         ld_shlibs=no
   9131       fi
   9132       ;;
   9133 
   9134     netbsd*)
   9135       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9136 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   9137 	wlarc=
   9138       else
   9139 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9140 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9141       fi
   9142       ;;
   9143 
   9144     solaris*)
   9145       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   9146 	ld_shlibs=no
   9147 	cat <<_LT_EOF 1>&2
   9148 
   9149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   9150 *** create shared libraries on Solaris systems.  Therefore, libtool
   9151 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9152 *** binutils to release 2.9.1 or newer.  Another option is to modify
   9153 *** your PATH or compiler configuration so that the native linker is
   9154 *** used, and then restart.
   9155 
   9156 _LT_EOF
   9157       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9158 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9159 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9160       else
   9161 	ld_shlibs=no
   9162       fi
   9163       ;;
   9164 
   9165     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   9166       case `$LD -v 2>&1` in
   9167         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   9168 	ld_shlibs=no
   9169 	cat <<_LT_EOF 1>&2
   9170 
   9171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
   9172 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   9173 *** is disabling shared libraries support.  We urge you to upgrade GNU
   9174 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   9175 *** your PATH or compiler configuration so that the native linker is
   9176 *** used, and then restart.
   9177 
   9178 _LT_EOF
   9179 	;;
   9180 	*)
   9181 	  # For security reasons, it is highly recommended that you always
   9182 	  # use absolute paths for naming shared libraries, and exclude the
   9183 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   9184 	  # requires that you compile everything twice, which is a pain.
   9185 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9186 	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9187 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9188 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9189 	  else
   9190 	    ld_shlibs=no
   9191 	  fi
   9192 	;;
   9193       esac
   9194       ;;
   9195 
   9196     sunos4*)
   9197       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9198       wlarc=
   9199       hardcode_direct=yes
   9200       hardcode_shlibpath_var=no
   9201       ;;
   9202 
   9203     *)
   9204       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   9205 	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9206 	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
   9207       else
   9208 	ld_shlibs=no
   9209       fi
   9210       ;;
   9211     esac
   9212 
   9213     if test no = "$ld_shlibs"; then
   9214       runpath_var=
   9215       hardcode_libdir_flag_spec=
   9216       export_dynamic_flag_spec=
   9217       whole_archive_flag_spec=
   9218     fi
   9219   else
   9220     # PORTME fill in a description of your system's linker (not GNU ld)
   9221     case $host_os in
   9222     aix3*)
   9223       allow_undefined_flag=unsupported
   9224       always_export_symbols=yes
   9225       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'
   9226       # Note: this linker hardcodes the directories in LIBPATH if there
   9227       # are no directories specified by -L.
   9228       hardcode_minus_L=yes
   9229       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
   9230 	# Neither direct hardcoding nor static linking is supported with a
   9231 	# broken collect2.
   9232 	hardcode_direct=unsupported
   9233       fi
   9234       ;;
   9235 
   9236     aix[4-9]*)
   9237       if test ia64 = "$host_cpu"; then
   9238 	# On IA64, the linker does run time linking by default, so we don't
   9239 	# have to do anything special.
   9240 	aix_use_runtimelinking=no
   9241 	exp_sym_flag='-Bexport'
   9242 	no_entry_flag=
   9243       else
   9244 	# If we're using GNU nm, then we don't want the "-C" option.
   9245 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
   9246 	# Without the "-l" option, or with the "-B" option, AIX nm treats
   9247 	# weak defined symbols like other global defined symbols, whereas
   9248 	# GNU nm marks them as "W".
   9249 	# While the 'weak' keyword is ignored in the Export File, we need
   9250 	# it in the Import File for the 'aix-soname' feature, so we have
   9251 	# to replace the "-B" option with "-P" for AIX nm.
   9252 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   9253 	  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'
   9254 	else
   9255 	  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'
   9256 	fi
   9257 	aix_use_runtimelinking=no
   9258 
   9259 	# Test if we are trying to use run time linking or normal
   9260 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   9261 	# have runtime linking enabled, and use it for executables.
   9262 	# For shared libraries, we enable/disable runtime linking
   9263 	# depending on the kind of the shared library created -
   9264 	# when "with_aix_soname,aix_use_runtimelinking" is:
   9265 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
   9266 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
   9267 	#            lib.a           static archive
   9268 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
   9269 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
   9270 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
   9271 	#            lib.a(lib.so.V) shared, rtl:no
   9272 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
   9273 	#            lib.a           static archive
   9274 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   9275 	  for ld_flag in $LDFLAGS; do
   9276 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
   9277 	    aix_use_runtimelinking=yes
   9278 	    break
   9279 	  fi
   9280 	  done
   9281 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
   9282 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
   9283 	    # so we don't have lib.a shared libs to link our executables.
   9284 	    # We have to force runtime linking in this case.
   9285 	    aix_use_runtimelinking=yes
   9286 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
   9287 	  fi
   9288 	  ;;
   9289 	esac
   9290 
   9291 	exp_sym_flag='-bexport'
   9292 	no_entry_flag='-bnoentry'
   9293       fi
   9294 
   9295       # When large executables or shared objects are built, AIX ld can
   9296       # have problems creating the table of contents.  If linking a library
   9297       # or program results in "error TOC overflow" add -mminimal-toc to
   9298       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   9299       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   9300 
   9301       archive_cmds=''
   9302       hardcode_direct=yes
   9303       hardcode_direct_absolute=yes
   9304       hardcode_libdir_separator=':'
   9305       link_all_deplibs=yes
   9306       file_list_spec='$wl-f,'
   9307       case $with_aix_soname,$aix_use_runtimelinking in
   9308       aix,*) ;; # traditional, no import file
   9309       svr4,* | *,yes) # use import file
   9310 	# The Import File defines what to hardcode.
   9311 	hardcode_direct=no
   9312 	hardcode_direct_absolute=no
   9313 	;;
   9314       esac
   9315 
   9316       if test yes = "$GCC"; then
   9317 	case $host_os in aix4.[012]|aix4.[012].*)
   9318 	# We only want to do this on AIX 4.2 and lower, the check
   9319 	# below for broken collect2 doesn't work under 4.3+
   9320 	  collect2name=`$CC -print-prog-name=collect2`
   9321 	  if test -f "$collect2name" &&
   9322 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   9323 	  then
   9324 	  # We have reworked collect2
   9325 	  :
   9326 	  else
   9327 	  # We have old collect2
   9328 	  hardcode_direct=unsupported
   9329 	  # It fails to find uninstalled libraries when the uninstalled
   9330 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   9331 	  # to unsupported forces relinking
   9332 	  hardcode_minus_L=yes
   9333 	  hardcode_libdir_flag_spec='-L$libdir'
   9334 	  hardcode_libdir_separator=
   9335 	  fi
   9336 	  ;;
   9337 	esac
   9338 	shared_flag='-shared'
   9339 	if test yes = "$aix_use_runtimelinking"; then
   9340 	  shared_flag="$shared_flag "'$wl-G'
   9341 	fi
   9342 	# Need to ensure runtime linking is disabled for the traditional
   9343 	# shared library, or the linker may eventually find shared libraries
   9344 	# /with/ Import File - we do not want to mix them.
   9345 	shared_flag_aix='-shared'
   9346 	shared_flag_svr4='-shared $wl-G'
   9347       else
   9348 	# not using gcc
   9349 	if test ia64 = "$host_cpu"; then
   9350 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   9351 	# chokes on -Wl,-G. The following line is correct:
   9352 	  shared_flag='-G'
   9353 	else
   9354 	  if test yes = "$aix_use_runtimelinking"; then
   9355 	    shared_flag='$wl-G'
   9356 	  else
   9357 	    shared_flag='$wl-bM:SRE'
   9358 	  fi
   9359 	  shared_flag_aix='$wl-bM:SRE'
   9360 	  shared_flag_svr4='$wl-G'
   9361 	fi
   9362       fi
   9363 
   9364       export_dynamic_flag_spec='$wl-bexpall'
   9365       # It seems that -bexpall does not export symbols beginning with
   9366       # underscore (_), so it is better to generate a list of symbols to export.
   9367       always_export_symbols=yes
   9368       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
   9369 	# Warning - without using the other runtime loading flags (-brtl),
   9370 	# -berok will link without error, but may produce a broken library.
   9371 	allow_undefined_flag='-berok'
   9372         # Determine the default libpath from the value encoded in an
   9373         # empty executable.
   9374         if test set = "${lt_cv_aix_libpath+set}"; then
   9375   aix_libpath=$lt_cv_aix_libpath
   9376 else
   9377   if ${lt_cv_aix_libpath_+:} false; then :
   9378   $as_echo_n "(cached) " >&6
   9379 else
   9380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9381 /* end confdefs.h.  */
   9382 
   9383 int
   9384 main ()
   9385 {
   9386 
   9387   ;
   9388   return 0;
   9389 }
   9390 _ACEOF
   9391 if ac_fn_c_try_link "$LINENO"; then :
   9392 
   9393   lt_aix_libpath_sed='
   9394       /Import File Strings/,/^$/ {
   9395 	  /^0/ {
   9396 	      s/^0  *\([^ ]*\) *$/\1/
   9397 	      p
   9398 	  }
   9399       }'
   9400   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9401   # Check for a 64-bit object if we didn't find anything.
   9402   if test -z "$lt_cv_aix_libpath_"; then
   9403     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9404   fi
   9405 fi
   9406 rm -f core conftest.err conftest.$ac_objext \
   9407     conftest$ac_exeext conftest.$ac_ext
   9408   if test -z "$lt_cv_aix_libpath_"; then
   9409     lt_cv_aix_libpath_=/usr/lib:/lib
   9410   fi
   9411 
   9412 fi
   9413 
   9414   aix_libpath=$lt_cv_aix_libpath_
   9415 fi
   9416 
   9417         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9418         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
   9419       else
   9420 	if test ia64 = "$host_cpu"; then
   9421 	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
   9422 	  allow_undefined_flag="-z nodefs"
   9423 	  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"
   9424 	else
   9425 	 # Determine the default libpath from the value encoded in an
   9426 	 # empty executable.
   9427 	 if test set = "${lt_cv_aix_libpath+set}"; then
   9428   aix_libpath=$lt_cv_aix_libpath
   9429 else
   9430   if ${lt_cv_aix_libpath_+:} false; then :
   9431   $as_echo_n "(cached) " >&6
   9432 else
   9433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9434 /* end confdefs.h.  */
   9435 
   9436 int
   9437 main ()
   9438 {
   9439 
   9440   ;
   9441   return 0;
   9442 }
   9443 _ACEOF
   9444 if ac_fn_c_try_link "$LINENO"; then :
   9445 
   9446   lt_aix_libpath_sed='
   9447       /Import File Strings/,/^$/ {
   9448 	  /^0/ {
   9449 	      s/^0  *\([^ ]*\) *$/\1/
   9450 	      p
   9451 	  }
   9452       }'
   9453   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9454   # Check for a 64-bit object if we didn't find anything.
   9455   if test -z "$lt_cv_aix_libpath_"; then
   9456     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   9457   fi
   9458 fi
   9459 rm -f core conftest.err conftest.$ac_objext \
   9460     conftest$ac_exeext conftest.$ac_ext
   9461   if test -z "$lt_cv_aix_libpath_"; then
   9462     lt_cv_aix_libpath_=/usr/lib:/lib
   9463   fi
   9464 
   9465 fi
   9466 
   9467   aix_libpath=$lt_cv_aix_libpath_
   9468 fi
   9469 
   9470 	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
   9471 	  # Warning - without using the other run time loading flags,
   9472 	  # -berok will link without error, but may produce a broken library.
   9473 	  no_undefined_flag=' $wl-bernotok'
   9474 	  allow_undefined_flag=' $wl-berok'
   9475 	  if test yes = "$with_gnu_ld"; then
   9476 	    # We only use this code for GNU lds that support --whole-archive.
   9477 	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
   9478 	  else
   9479 	    # Exported symbols can be pulled into shared objects from archives
   9480 	    whole_archive_flag_spec='$convenience'
   9481 	  fi
   9482 	  archive_cmds_need_lc=yes
   9483 	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
   9484 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
   9485 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
   9486 	  if test svr4 != "$with_aix_soname"; then
   9487 	    # This is similar to how AIX traditionally builds its shared libraries.
   9488 	    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'
   9489 	  fi
   9490 	  if test aix != "$with_aix_soname"; then
   9491 	    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'
   9492 	  else
   9493 	    # used by -dlpreopen to get the symbols
   9494 	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
   9495 	  fi
   9496 	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
   9497 	fi
   9498       fi
   9499       ;;
   9500 
   9501     amigaos*)
   9502       case $host_cpu in
   9503       powerpc)
   9504             # see comment about AmigaOS4 .so support
   9505             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
   9506             archive_expsym_cmds=''
   9507         ;;
   9508       m68k)
   9509             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)'
   9510             hardcode_libdir_flag_spec='-L$libdir'
   9511             hardcode_minus_L=yes
   9512         ;;
   9513       esac
   9514       ;;
   9515 
   9516     bsdi[45]*)
   9517       export_dynamic_flag_spec=-rdynamic
   9518       ;;
   9519 
   9520     cygwin* | mingw* | pw32* | cegcc*)
   9521       # When not using gcc, we currently assume that we are using
   9522       # Microsoft Visual C++.
   9523       # hardcode_libdir_flag_spec is actually meaningless, as there is
   9524       # no search path for DLLs.
   9525       case $cc_basename in
   9526       cl*)
   9527 	# Native MSVC
   9528 	hardcode_libdir_flag_spec=' '
   9529 	allow_undefined_flag=unsupported
   9530 	always_export_symbols=yes
   9531 	file_list_spec='@'
   9532 	# Tell ltmain to make .lib files, not .a files.
   9533 	libext=lib
   9534 	# Tell ltmain to make .dll files, not .so files.
   9535 	shrext_cmds=.dll
   9536 	# FIXME: Setting linknames here is a bad hack.
   9537 	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
   9538 	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
   9539             cp "$export_symbols" "$output_objdir/$soname.def";
   9540             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
   9541           else
   9542             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
   9543           fi~
   9544           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
   9545           linknames='
   9546 	# The linker will not automatically build a static lib if we build a DLL.
   9547 	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
   9548 	enable_shared_with_static_runtimes=yes
   9549 	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
   9550 	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   9551 	# Don't use ranlib
   9552 	old_postinstall_cmds='chmod 644 $oldlib'
   9553 	postlink_cmds='lt_outputfile="@OUTPUT@"~
   9554           lt_tool_outputfile="@TOOL_OUTPUT@"~
   9555           case $lt_outputfile in
   9556             *.exe|*.EXE) ;;
   9557             *)
   9558               lt_outputfile=$lt_outputfile.exe
   9559               lt_tool_outputfile=$lt_tool_outputfile.exe
   9560               ;;
   9561           esac~
   9562           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
   9563             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
   9564             $RM "$lt_outputfile.manifest";
   9565           fi'
   9566 	;;
   9567       *)
   9568 	# Assume MSVC wrapper
   9569 	hardcode_libdir_flag_spec=' '
   9570 	allow_undefined_flag=unsupported
   9571 	# Tell ltmain to make .lib files, not .a files.
   9572 	libext=lib
   9573 	# Tell ltmain to make .dll files, not .so files.
   9574 	shrext_cmds=.dll
   9575 	# FIXME: Setting linknames here is a bad hack.
   9576 	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
   9577 	# The linker will automatically build a .lib file if we build a DLL.
   9578 	old_archive_from_new_cmds='true'
   9579 	# FIXME: Should let the user specify the lib program.
   9580 	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   9581 	enable_shared_with_static_runtimes=yes
   9582 	;;
   9583       esac
   9584       ;;
   9585 
   9586     darwin* | rhapsody*)
   9587 
   9588 
   9589   archive_cmds_need_lc=no
   9590   hardcode_direct=no
   9591   hardcode_automatic=yes
   9592   hardcode_shlibpath_var=unsupported
   9593   if test yes = "$lt_cv_ld_force_load"; then
   9594     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\"`'
   9595 
   9596   else
   9597     whole_archive_flag_spec=''
   9598   fi
   9599   link_all_deplibs=yes
   9600   allow_undefined_flag=$_lt_dar_allow_undefined
   9601   case $cc_basename in
   9602      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
   9603      *) _lt_dar_can_shared=$GCC ;;
   9604   esac
   9605   if test yes = "$_lt_dar_can_shared"; then
   9606     output_verbose_link_cmd=func_echo_all
   9607     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
   9608     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
   9609     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"
   9610     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"
   9611 
   9612   else
   9613   ld_shlibs=no
   9614   fi
   9615 
   9616       ;;
   9617 
   9618     dgux*)
   9619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9620       hardcode_libdir_flag_spec='-L$libdir'
   9621       hardcode_shlibpath_var=no
   9622       ;;
   9623 
   9624     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   9625     # support.  Future versions do this automatically, but an explicit c++rt0.o
   9626     # does not break anything, and helps significantly (at the cost of a little
   9627     # extra space).
   9628     freebsd2.2*)
   9629       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   9630       hardcode_libdir_flag_spec='-R$libdir'
   9631       hardcode_direct=yes
   9632       hardcode_shlibpath_var=no
   9633       ;;
   9634 
   9635     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   9636     freebsd2.*)
   9637       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   9638       hardcode_direct=yes
   9639       hardcode_minus_L=yes
   9640       hardcode_shlibpath_var=no
   9641       ;;
   9642 
   9643     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   9644     freebsd* | dragonfly*)
   9645       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9646       hardcode_libdir_flag_spec='-R$libdir'
   9647       hardcode_direct=yes
   9648       hardcode_shlibpath_var=no
   9649       ;;
   9650 
   9651     hpux9*)
   9652       if test yes = "$GCC"; then
   9653 	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'
   9654       else
   9655 	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'
   9656       fi
   9657       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9658       hardcode_libdir_separator=:
   9659       hardcode_direct=yes
   9660 
   9661       # hardcode_minus_L: Not really in the search PATH,
   9662       # but as the default location of the library.
   9663       hardcode_minus_L=yes
   9664       export_dynamic_flag_spec='$wl-E'
   9665       ;;
   9666 
   9667     hpux10*)
   9668       if test yes,no = "$GCC,$with_gnu_ld"; then
   9669 	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9670       else
   9671 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9672       fi
   9673       if test no = "$with_gnu_ld"; then
   9674 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9675 	hardcode_libdir_separator=:
   9676 	hardcode_direct=yes
   9677 	hardcode_direct_absolute=yes
   9678 	export_dynamic_flag_spec='$wl-E'
   9679 	# hardcode_minus_L: Not really in the search PATH,
   9680 	# but as the default location of the library.
   9681 	hardcode_minus_L=yes
   9682       fi
   9683       ;;
   9684 
   9685     hpux11*)
   9686       if test yes,no = "$GCC,$with_gnu_ld"; then
   9687 	case $host_cpu in
   9688 	hppa*64*)
   9689 	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9690 	  ;;
   9691 	ia64*)
   9692 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9693 	  ;;
   9694 	*)
   9695 	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9696 	  ;;
   9697 	esac
   9698       else
   9699 	case $host_cpu in
   9700 	hppa*64*)
   9701 	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9702 	  ;;
   9703 	ia64*)
   9704 	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   9705 	  ;;
   9706 	*)
   9707 
   9708 	  # Older versions of the 11.00 compiler do not understand -b yet
   9709 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
   9710 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
   9711 $as_echo_n "checking if $CC understands -b... " >&6; }
   9712 if ${lt_cv_prog_compiler__b+:} false; then :
   9713   $as_echo_n "(cached) " >&6
   9714 else
   9715   lt_cv_prog_compiler__b=no
   9716    save_LDFLAGS=$LDFLAGS
   9717    LDFLAGS="$LDFLAGS -b"
   9718    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   9719    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   9720      # The linker can only warn and ignore the option if not recognized
   9721      # So say no if there are warnings
   9722      if test -s conftest.err; then
   9723        # Append any errors to the config.log.
   9724        cat conftest.err 1>&5
   9725        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   9726        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   9727        if diff conftest.exp conftest.er2 >/dev/null; then
   9728          lt_cv_prog_compiler__b=yes
   9729        fi
   9730      else
   9731        lt_cv_prog_compiler__b=yes
   9732      fi
   9733    fi
   9734    $RM -r conftest*
   9735    LDFLAGS=$save_LDFLAGS
   9736 
   9737 fi
   9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
   9739 $as_echo "$lt_cv_prog_compiler__b" >&6; }
   9740 
   9741 if test yes = "$lt_cv_prog_compiler__b"; then
   9742     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   9743 else
   9744     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   9745 fi
   9746 
   9747 	  ;;
   9748 	esac
   9749       fi
   9750       if test no = "$with_gnu_ld"; then
   9751 	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
   9752 	hardcode_libdir_separator=:
   9753 
   9754 	case $host_cpu in
   9755 	hppa*64*|ia64*)
   9756 	  hardcode_direct=no
   9757 	  hardcode_shlibpath_var=no
   9758 	  ;;
   9759 	*)
   9760 	  hardcode_direct=yes
   9761 	  hardcode_direct_absolute=yes
   9762 	  export_dynamic_flag_spec='$wl-E'
   9763 
   9764 	  # hardcode_minus_L: Not really in the search PATH,
   9765 	  # but as the default location of the library.
   9766 	  hardcode_minus_L=yes
   9767 	  ;;
   9768 	esac
   9769       fi
   9770       ;;
   9771 
   9772     irix5* | irix6* | nonstopux*)
   9773       if test yes = "$GCC"; then
   9774 	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'
   9775 	# Try to use the -exported_symbol ld option, if it does not
   9776 	# work, assume that -exports_file does not work either and
   9777 	# implicitly export all symbols.
   9778 	# This should be the same for all languages, so no per-tag cache variable.
   9779 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
   9780 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
   9781 if ${lt_cv_irix_exported_symbol+:} false; then :
   9782   $as_echo_n "(cached) " >&6
   9783 else
   9784   save_LDFLAGS=$LDFLAGS
   9785 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
   9786 	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9787 /* end confdefs.h.  */
   9788 int foo (void) { return 0; }
   9789 _ACEOF
   9790 if ac_fn_c_try_link "$LINENO"; then :
   9791   lt_cv_irix_exported_symbol=yes
   9792 else
   9793   lt_cv_irix_exported_symbol=no
   9794 fi
   9795 rm -f core conftest.err conftest.$ac_objext \
   9796     conftest$ac_exeext conftest.$ac_ext
   9797            LDFLAGS=$save_LDFLAGS
   9798 fi
   9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
   9800 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
   9801 	if test yes = "$lt_cv_irix_exported_symbol"; then
   9802           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'
   9803 	fi
   9804       else
   9805 	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'
   9806 	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'
   9807       fi
   9808       archive_cmds_need_lc='no'
   9809       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9810       hardcode_libdir_separator=:
   9811       inherit_rpath=yes
   9812       link_all_deplibs=yes
   9813       ;;
   9814 
   9815     linux*)
   9816       case $cc_basename in
   9817       tcc*)
   9818 	# Fabrice Bellard et al's Tiny C Compiler
   9819 	ld_shlibs=yes
   9820 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9821 	;;
   9822       esac
   9823       ;;
   9824 
   9825     netbsd*)
   9826       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9827 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   9828       else
   9829 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   9830       fi
   9831       hardcode_libdir_flag_spec='-R$libdir'
   9832       hardcode_direct=yes
   9833       hardcode_shlibpath_var=no
   9834       ;;
   9835 
   9836     newsos6)
   9837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9838       hardcode_direct=yes
   9839       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9840       hardcode_libdir_separator=:
   9841       hardcode_shlibpath_var=no
   9842       ;;
   9843 
   9844     *nto* | *qnx*)
   9845       ;;
   9846 
   9847     openbsd* | bitrig*)
   9848       if test -f /usr/libexec/ld.so; then
   9849 	hardcode_direct=yes
   9850 	hardcode_shlibpath_var=no
   9851 	hardcode_direct_absolute=yes
   9852 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   9853 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9854 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
   9855 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9856 	  export_dynamic_flag_spec='$wl-E'
   9857 	else
   9858 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   9859 	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
   9860 	fi
   9861       else
   9862 	ld_shlibs=no
   9863       fi
   9864       ;;
   9865 
   9866     os2*)
   9867       hardcode_libdir_flag_spec='-L$libdir'
   9868       hardcode_minus_L=yes
   9869       allow_undefined_flag=unsupported
   9870       shrext_cmds=.dll
   9871       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9872 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9873 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9874 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9875 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
   9876 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9877 	emximp -o $lib $output_objdir/$libname.def'
   9878       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
   9879 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
   9880 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
   9881 	$ECHO EXPORTS >> $output_objdir/$libname.def~
   9882 	prefix_cmds="$SED"~
   9883 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
   9884 	  prefix_cmds="$prefix_cmds -e 1d";
   9885 	fi~
   9886 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
   9887 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
   9888 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
   9889 	emximp -o $lib $output_objdir/$libname.def'
   9890       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
   9891       enable_shared_with_static_runtimes=yes
   9892       ;;
   9893 
   9894     osf3*)
   9895       if test yes = "$GCC"; then
   9896 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9897 	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'
   9898       else
   9899 	allow_undefined_flag=' -expect_unresolved \*'
   9900 	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'
   9901       fi
   9902       archive_cmds_need_lc='no'
   9903       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9904       hardcode_libdir_separator=:
   9905       ;;
   9906 
   9907     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   9908       if test yes = "$GCC"; then
   9909 	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
   9910 	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'
   9911 	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
   9912       else
   9913 	allow_undefined_flag=' -expect_unresolved \*'
   9914 	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'
   9915 	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~
   9916           $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'
   9917 
   9918 	# Both c and cxx compiler support -rpath directly
   9919 	hardcode_libdir_flag_spec='-rpath $libdir'
   9920       fi
   9921       archive_cmds_need_lc='no'
   9922       hardcode_libdir_separator=:
   9923       ;;
   9924 
   9925     solaris*)
   9926       no_undefined_flag=' -z defs'
   9927       if test yes = "$GCC"; then
   9928 	wlarc='$wl'
   9929 	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
   9930 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9931           $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'
   9932       else
   9933 	case `$CC -V 2>&1` in
   9934 	*"Compilers 5.0"*)
   9935 	  wlarc=''
   9936 	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9937 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9938             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   9939 	  ;;
   9940 	*)
   9941 	  wlarc='$wl'
   9942 	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9943 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   9944             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   9945 	  ;;
   9946 	esac
   9947       fi
   9948       hardcode_libdir_flag_spec='-R$libdir'
   9949       hardcode_shlibpath_var=no
   9950       case $host_os in
   9951       solaris2.[0-5] | solaris2.[0-5].*) ;;
   9952       *)
   9953 	# The compiler driver will combine and reorder linker options,
   9954 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
   9955 	# but is careful enough not to reorder.
   9956 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   9957 	if test yes = "$GCC"; then
   9958 	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
   9959 	else
   9960 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   9961 	fi
   9962 	;;
   9963       esac
   9964       link_all_deplibs=yes
   9965       ;;
   9966 
   9967     sunos4*)
   9968       if test sequent = "$host_vendor"; then
   9969 	# Use $CC to link under sequent, because it throws in some extra .o
   9970 	# files that make .init and .fini sections work.
   9971 	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   9972       else
   9973 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   9974       fi
   9975       hardcode_libdir_flag_spec='-L$libdir'
   9976       hardcode_direct=yes
   9977       hardcode_minus_L=yes
   9978       hardcode_shlibpath_var=no
   9979       ;;
   9980 
   9981     sysv4)
   9982       case $host_vendor in
   9983 	sni)
   9984 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9985 	  hardcode_direct=yes # is this really true???
   9986 	;;
   9987 	siemens)
   9988 	  ## LD is ld it makes a PLAMLIB
   9989 	  ## CC just makes a GrossModule.
   9990 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   9991 	  reload_cmds='$CC -r -o $output$reload_objs'
   9992 	  hardcode_direct=no
   9993         ;;
   9994 	motorola)
   9995 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   9996 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   9997 	;;
   9998       esac
   9999       runpath_var='LD_RUN_PATH'
   10000       hardcode_shlibpath_var=no
   10001       ;;
   10002 
   10003     sysv4.3*)
   10004       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10005       hardcode_shlibpath_var=no
   10006       export_dynamic_flag_spec='-Bexport'
   10007       ;;
   10008 
   10009     sysv4*MP*)
   10010       if test -d /usr/nec; then
   10011 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10012 	hardcode_shlibpath_var=no
   10013 	runpath_var=LD_RUN_PATH
   10014 	hardcode_runpath_var=yes
   10015 	ld_shlibs=yes
   10016       fi
   10017       ;;
   10018 
   10019     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   10020       no_undefined_flag='$wl-z,text'
   10021       archive_cmds_need_lc=no
   10022       hardcode_shlibpath_var=no
   10023       runpath_var='LD_RUN_PATH'
   10024 
   10025       if test yes = "$GCC"; then
   10026 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10027 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10028       else
   10029 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10030 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10031       fi
   10032       ;;
   10033 
   10034     sysv5* | sco3.2v5* | sco5v6*)
   10035       # Note: We CANNOT use -z defs as we might desire, because we do not
   10036       # link with -lc, and that would cause any symbols used from libc to
   10037       # always be unresolved, which means just about no library would
   10038       # ever link correctly.  If we're not using GNU ld we use -z text
   10039       # though, which does catch some bad symbols but isn't as heavy-handed
   10040       # as -z defs.
   10041       no_undefined_flag='$wl-z,text'
   10042       allow_undefined_flag='$wl-z,nodefs'
   10043       archive_cmds_need_lc=no
   10044       hardcode_shlibpath_var=no
   10045       hardcode_libdir_flag_spec='$wl-R,$libdir'
   10046       hardcode_libdir_separator=':'
   10047       link_all_deplibs=yes
   10048       export_dynamic_flag_spec='$wl-Bexport'
   10049       runpath_var='LD_RUN_PATH'
   10050 
   10051       if test yes = "$GCC"; then
   10052 	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10053 	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10054       else
   10055 	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10056 	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   10057       fi
   10058       ;;
   10059 
   10060     uts4*)
   10061       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   10062       hardcode_libdir_flag_spec='-L$libdir'
   10063       hardcode_shlibpath_var=no
   10064       ;;
   10065 
   10066     *)
   10067       ld_shlibs=no
   10068       ;;
   10069     esac
   10070 
   10071     if test sni = "$host_vendor"; then
   10072       case $host in
   10073       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   10074 	export_dynamic_flag_spec='$wl-Blargedynsym'
   10075 	;;
   10076       esac
   10077     fi
   10078   fi
   10079 
   10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
   10081 $as_echo "$ld_shlibs" >&6; }
   10082 test no = "$ld_shlibs" && can_build_shared=no
   10083 
   10084 with_gnu_ld=$with_gnu_ld
   10085 
   10086 
   10087 
   10088 
   10089 
   10090 
   10091 
   10092 
   10093 
   10094 
   10095 
   10096 
   10097 
   10098 
   10099 
   10100 #
   10101 # Do we need to explicitly link libc?
   10102 #
   10103 case "x$archive_cmds_need_lc" in
   10104 x|xyes)
   10105   # Assume -lc should be added
   10106   archive_cmds_need_lc=yes
   10107 
   10108   if test yes,yes = "$GCC,$enable_shared"; then
   10109     case $archive_cmds in
   10110     *'~'*)
   10111       # FIXME: we may have to deal with multi-command sequences.
   10112       ;;
   10113     '$CC '*)
   10114       # Test whether the compiler implicitly links with -lc since on some
   10115       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   10116       # to ld, don't add -lc before -lgcc.
   10117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
   10118 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
   10119 if ${lt_cv_archive_cmds_need_lc+:} false; then :
   10120   $as_echo_n "(cached) " >&6
   10121 else
   10122   $RM conftest*
   10123 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   10124 
   10125 	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
   10126   (eval $ac_compile) 2>&5
   10127   ac_status=$?
   10128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10129   test $ac_status = 0; } 2>conftest.err; then
   10130 	  soname=conftest
   10131 	  lib=conftest
   10132 	  libobjs=conftest.$ac_objext
   10133 	  deplibs=
   10134 	  wl=$lt_prog_compiler_wl
   10135 	  pic_flag=$lt_prog_compiler_pic
   10136 	  compiler_flags=-v
   10137 	  linker_flags=-v
   10138 	  verstring=
   10139 	  output_objdir=.
   10140 	  libname=conftest
   10141 	  lt_save_allow_undefined_flag=$allow_undefined_flag
   10142 	  allow_undefined_flag=
   10143 	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
   10144   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   10145   ac_status=$?
   10146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   10147   test $ac_status = 0; }
   10148 	  then
   10149 	    lt_cv_archive_cmds_need_lc=no
   10150 	  else
   10151 	    lt_cv_archive_cmds_need_lc=yes
   10152 	  fi
   10153 	  allow_undefined_flag=$lt_save_allow_undefined_flag
   10154 	else
   10155 	  cat conftest.err 1>&5
   10156 	fi
   10157 	$RM conftest*
   10158 
   10159 fi
   10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
   10161 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
   10162       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
   10163       ;;
   10164     esac
   10165   fi
   10166   ;;
   10167 esac
   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 
   10316 
   10317 
   10318 
   10319 
   10320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
   10321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
   10322 
   10323 if test yes = "$GCC"; then
   10324   case $host_os in
   10325     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
   10326     *) lt_awk_arg='/^libraries:/' ;;
   10327   esac
   10328   case $host_os in
   10329     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
   10330     *) lt_sed_strip_eq='s|=/|/|g' ;;
   10331   esac
   10332   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
   10333   case $lt_search_path_spec in
   10334   *\;*)
   10335     # if the path contains ";" then we assume it to be the separator
   10336     # otherwise default to the standard path separator (i.e. ":") - it is
   10337     # assumed that no part of a normal pathname contains ";" but that should
   10338     # okay in the real world where ";" in dirpaths is itself problematic.
   10339     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
   10340     ;;
   10341   *)
   10342     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
   10343     ;;
   10344   esac
   10345   # Ok, now we have the path, separated by spaces, we can step through it
   10346   # and add multilib dir if necessary...
   10347   lt_tmp_lt_search_path_spec=
   10348   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   10349   # ...but if some path component already ends with the multilib dir we assume
   10350   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
   10351   case "$lt_multi_os_dir; $lt_search_path_spec " in
   10352   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
   10353     lt_multi_os_dir=
   10354     ;;
   10355   esac
   10356   for lt_sys_path in $lt_search_path_spec; do
   10357     if test -d "$lt_sys_path$lt_multi_os_dir"; then
   10358       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
   10359     elif test -n "$lt_multi_os_dir"; then
   10360       test -d "$lt_sys_path" && \
   10361 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   10362     fi
   10363   done
   10364   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
   10365 BEGIN {RS = " "; FS = "/|\n";} {
   10366   lt_foo = "";
   10367   lt_count = 0;
   10368   for (lt_i = NF; lt_i > 0; lt_i--) {
   10369     if ($lt_i != "" && $lt_i != ".") {
   10370       if ($lt_i == "..") {
   10371         lt_count++;
   10372       } else {
   10373         if (lt_count == 0) {
   10374           lt_foo = "/" $lt_i lt_foo;
   10375         } else {
   10376           lt_count--;
   10377         }
   10378       }
   10379     }
   10380   }
   10381   if (lt_foo != "") { lt_freq[lt_foo]++; }
   10382   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   10383 }'`
   10384   # AWK program above erroneously prepends '/' to C:/dos/paths
   10385   # for these hosts.
   10386   case $host_os in
   10387     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
   10388       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
   10389   esac
   10390   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
   10391 else
   10392   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   10393 fi
   10394 library_names_spec=
   10395 libname_spec='lib$name'
   10396 soname_spec=
   10397 shrext_cmds=.so
   10398 postinstall_cmds=
   10399 postuninstall_cmds=
   10400 finish_cmds=
   10401 finish_eval=
   10402 shlibpath_var=
   10403 shlibpath_overrides_runpath=unknown
   10404 version_type=none
   10405 dynamic_linker="$host_os ld.so"
   10406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   10407 need_lib_prefix=unknown
   10408 hardcode_into_libs=no
   10409 
   10410 # when you set need_version to no, make sure it does not cause -set_version
   10411 # flags to be left without arguments
   10412 need_version=unknown
   10413 
   10414 
   10415 
   10416 case $host_os in
   10417 aix3*)
   10418   version_type=linux # correct to gnu/linux during the next big refactor
   10419   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
   10420   shlibpath_var=LIBPATH
   10421 
   10422   # AIX 3 has no versioning support, so we append a major version to the name.
   10423   soname_spec='$libname$release$shared_ext$major'
   10424   ;;
   10425 
   10426 aix[4-9]*)
   10427   version_type=linux # correct to gnu/linux during the next big refactor
   10428   need_lib_prefix=no
   10429   need_version=no
   10430   hardcode_into_libs=yes
   10431   if test ia64 = "$host_cpu"; then
   10432     # AIX 5 supports IA64
   10433     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
   10434     shlibpath_var=LD_LIBRARY_PATH
   10435   else
   10436     # With GCC up to 2.95.x, collect2 would create an import file
   10437     # for dependence libraries.  The import file would start with
   10438     # the line '#! .'.  This would cause the generated library to
   10439     # depend on '.', always an invalid library.  This was fixed in
   10440     # development snapshots of GCC prior to 3.0.
   10441     case $host_os in
   10442       aix4 | aix4.[01] | aix4.[01].*)
   10443       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   10444 	   echo ' yes '
   10445 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
   10446 	:
   10447       else
   10448 	can_build_shared=no
   10449       fi
   10450       ;;
   10451     esac
   10452     # Using Import Files as archive members, it is possible to support
   10453     # filename-based versioning of shared library archives on AIX. While
   10454     # this would work for both with and without runtime linking, it will
   10455     # prevent static linking of such archives. So we do filename-based
   10456     # shared library versioning with .so extension only, which is used
   10457     # when both runtime linking and shared linking is enabled.
   10458     # Unfortunately, runtime linking may impact performance, so we do
   10459     # not want this to be the default eventually. Also, we use the
   10460     # versioned .so libs for executables only if there is the -brtl
   10461     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
   10462     # To allow for filename-based versioning support, we need to create
   10463     # libNAME.so.V as an archive file, containing:
   10464     # *) an Import File, referring to the versioned filename of the
   10465     #    archive as well as the shared archive member, telling the
   10466     #    bitwidth (32 or 64) of that shared object, and providing the
   10467     #    list of exported symbols of that shared object, eventually
   10468     #    decorated with the 'weak' keyword
   10469     # *) the shared object with the F_LOADONLY flag set, to really avoid
   10470     #    it being seen by the linker.
   10471     # At run time we better use the real file rather than another symlink,
   10472     # but for link time we create the symlink libNAME.so -> libNAME.so.V
   10473 
   10474     case $with_aix_soname,$aix_use_runtimelinking in
   10475     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
   10476     # soname into executable. Probably we can add versioning support to
   10477     # collect2, so additional links can be useful in future.
   10478     aix,yes) # traditional libtool
   10479       dynamic_linker='AIX unversionable lib.so'
   10480       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   10481       # instead of lib<name>.a to let people know that these are not
   10482       # typical AIX shared libraries.
   10483       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10484       ;;
   10485     aix,no) # traditional AIX only
   10486       dynamic_linker='AIX lib.a(lib.so.V)'
   10487       # We preserve .a as extension for shared libraries through AIX4.2
   10488       # and later when we are not doing run time linking.
   10489       library_names_spec='$libname$release.a $libname.a'
   10490       soname_spec='$libname$release$shared_ext$major'
   10491       ;;
   10492     svr4,*) # full svr4 only
   10493       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
   10494       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10495       # We do not specify a path in Import Files, so LIBPATH fires.
   10496       shlibpath_overrides_runpath=yes
   10497       ;;
   10498     *,yes) # both, prefer svr4
   10499       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
   10500       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
   10501       # unpreferred sharedlib libNAME.a needs extra handling
   10502       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"'
   10503       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"'
   10504       # We do not specify a path in Import Files, so LIBPATH fires.
   10505       shlibpath_overrides_runpath=yes
   10506       ;;
   10507     *,no) # both, prefer aix
   10508       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
   10509       library_names_spec='$libname$release.a $libname.a'
   10510       soname_spec='$libname$release$shared_ext$major'
   10511       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
   10512       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)'
   10513       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"'
   10514       ;;
   10515     esac
   10516     shlibpath_var=LIBPATH
   10517   fi
   10518   ;;
   10519 
   10520 amigaos*)
   10521   case $host_cpu in
   10522   powerpc)
   10523     # Since July 2007 AmigaOS4 officially supports .so libraries.
   10524     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   10525     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10526     ;;
   10527   m68k)
   10528     library_names_spec='$libname.ixlibrary $libname.a'
   10529     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   10530     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'
   10531     ;;
   10532   esac
   10533   ;;
   10534 
   10535 beos*)
   10536   library_names_spec='$libname$shared_ext'
   10537   dynamic_linker="$host_os ld.so"
   10538   shlibpath_var=LIBRARY_PATH
   10539   ;;
   10540 
   10541 bsdi[45]*)
   10542   version_type=linux # correct to gnu/linux during the next big refactor
   10543   need_version=no
   10544   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10545   soname_spec='$libname$release$shared_ext$major'
   10546   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   10547   shlibpath_var=LD_LIBRARY_PATH
   10548   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   10549   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   10550   # the default ld.so.conf also contains /usr/contrib/lib and
   10551   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   10552   # libtool to hard-code these into programs
   10553   ;;
   10554 
   10555 cygwin* | mingw* | pw32* | cegcc*)
   10556   version_type=windows
   10557   shrext_cmds=.dll
   10558   need_version=no
   10559   need_lib_prefix=no
   10560 
   10561   case $GCC,$cc_basename in
   10562   yes,*)
   10563     # gcc
   10564     library_names_spec='$libname.dll.a'
   10565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10566     postinstall_cmds='base_file=`basename \$file`~
   10567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10568       dldir=$destdir/`dirname \$dlpath`~
   10569       test -d \$dldir || mkdir -p \$dldir~
   10570       $install_prog $dir/$dlname \$dldir/$dlname~
   10571       chmod a+x \$dldir/$dlname~
   10572       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   10573         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   10574       fi'
   10575     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10576       dlpath=$dir/\$dldll~
   10577        $RM \$dlpath'
   10578     shlibpath_overrides_runpath=yes
   10579 
   10580     case $host_os in
   10581     cygwin*)
   10582       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   10583       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10584 
   10585       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
   10586       ;;
   10587     mingw* | cegcc*)
   10588       # MinGW DLLs use traditional 'lib' prefix
   10589       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10590       ;;
   10591     pw32*)
   10592       # pw32 DLLs use 'pw' prefix rather than 'lib'
   10593       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10594       ;;
   10595     esac
   10596     dynamic_linker='Win32 ld.exe'
   10597     ;;
   10598 
   10599   *,cl*)
   10600     # Native MSVC
   10601     libname_spec='$name'
   10602     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
   10603     library_names_spec='$libname.dll.lib'
   10604 
   10605     case $build_os in
   10606     mingw*)
   10607       sys_lib_search_path_spec=
   10608       lt_save_ifs=$IFS
   10609       IFS=';'
   10610       for lt_path in $LIB
   10611       do
   10612         IFS=$lt_save_ifs
   10613         # Let DOS variable expansion print the short 8.3 style file name.
   10614         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
   10615         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
   10616       done
   10617       IFS=$lt_save_ifs
   10618       # Convert to MSYS style.
   10619       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
   10620       ;;
   10621     cygwin*)
   10622       # Convert to unix form, then to dos form, then back to unix form
   10623       # but this time dos style (no spaces!) so that the unix form looks
   10624       # like /cygdrive/c/PROGRA~1:/cygdr...
   10625       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
   10626       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
   10627       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10628       ;;
   10629     *)
   10630       sys_lib_search_path_spec=$LIB
   10631       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   10632         # It is most probably a Windows format PATH.
   10633         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   10634       else
   10635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
   10636       fi
   10637       # FIXME: find the short name or the path components, as spaces are
   10638       # common. (e.g. "Program Files" -> "PROGRA~1")
   10639       ;;
   10640     esac
   10641 
   10642     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   10643     postinstall_cmds='base_file=`basename \$file`~
   10644       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
   10645       dldir=$destdir/`dirname \$dlpath`~
   10646       test -d \$dldir || mkdir -p \$dldir~
   10647       $install_prog $dir/$dlname \$dldir/$dlname'
   10648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   10649       dlpath=$dir/\$dldll~
   10650        $RM \$dlpath'
   10651     shlibpath_overrides_runpath=yes
   10652     dynamic_linker='Win32 link.exe'
   10653     ;;
   10654 
   10655   *)
   10656     # Assume MSVC wrapper
   10657     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
   10658     dynamic_linker='Win32 ld.exe'
   10659     ;;
   10660   esac
   10661   # FIXME: first we should search . and the directory the executable is in
   10662   shlibpath_var=PATH
   10663   ;;
   10664 
   10665 darwin* | rhapsody*)
   10666   dynamic_linker="$host_os dyld"
   10667   version_type=darwin
   10668   need_lib_prefix=no
   10669   need_version=no
   10670   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
   10671   soname_spec='$libname$release$major$shared_ext'
   10672   shlibpath_overrides_runpath=yes
   10673   shlibpath_var=DYLD_LIBRARY_PATH
   10674   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   10675 
   10676   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   10677   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   10678   ;;
   10679 
   10680 dgux*)
   10681   version_type=linux # correct to gnu/linux during the next big refactor
   10682   need_lib_prefix=no
   10683   need_version=no
   10684   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10685   soname_spec='$libname$release$shared_ext$major'
   10686   shlibpath_var=LD_LIBRARY_PATH
   10687   ;;
   10688 
   10689 freebsd* | dragonfly*)
   10690   # DragonFly does not have aout.  When/if they implement a new
   10691   # versioning mechanism, adjust this.
   10692   if test -x /usr/bin/objformat; then
   10693     objformat=`/usr/bin/objformat`
   10694   else
   10695     case $host_os in
   10696     freebsd[23].*) objformat=aout ;;
   10697     *) objformat=elf ;;
   10698     esac
   10699   fi
   10700   version_type=freebsd-$objformat
   10701   case $version_type in
   10702     freebsd-elf*)
   10703       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10704       soname_spec='$libname$release$shared_ext$major'
   10705       need_version=no
   10706       need_lib_prefix=no
   10707       ;;
   10708     freebsd-*)
   10709       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10710       need_version=yes
   10711       ;;
   10712   esac
   10713   shlibpath_var=LD_LIBRARY_PATH
   10714   case $host_os in
   10715   freebsd2.*)
   10716     shlibpath_overrides_runpath=yes
   10717     ;;
   10718   freebsd3.[01]* | freebsdelf3.[01]*)
   10719     shlibpath_overrides_runpath=yes
   10720     hardcode_into_libs=yes
   10721     ;;
   10722   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   10723   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   10724     shlibpath_overrides_runpath=no
   10725     hardcode_into_libs=yes
   10726     ;;
   10727   *) # from 4.6 on, and DragonFly
   10728     shlibpath_overrides_runpath=yes
   10729     hardcode_into_libs=yes
   10730     ;;
   10731   esac
   10732   ;;
   10733 
   10734 haiku*)
   10735   version_type=linux # correct to gnu/linux during the next big refactor
   10736   need_lib_prefix=no
   10737   need_version=no
   10738   dynamic_linker="$host_os runtime_loader"
   10739   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10740   soname_spec='$libname$release$shared_ext$major'
   10741   shlibpath_var=LIBRARY_PATH
   10742   shlibpath_overrides_runpath=no
   10743   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
   10744   hardcode_into_libs=yes
   10745   ;;
   10746 
   10747 hpux9* | hpux10* | hpux11*)
   10748   # Give a soname corresponding to the major version so that dld.sl refuses to
   10749   # link against other versions.
   10750   version_type=sunos
   10751   need_lib_prefix=no
   10752   need_version=no
   10753   case $host_cpu in
   10754   ia64*)
   10755     shrext_cmds='.so'
   10756     hardcode_into_libs=yes
   10757     dynamic_linker="$host_os dld.so"
   10758     shlibpath_var=LD_LIBRARY_PATH
   10759     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10760     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10761     soname_spec='$libname$release$shared_ext$major'
   10762     if test 32 = "$HPUX_IA64_MODE"; then
   10763       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   10764       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
   10765     else
   10766       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   10767       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
   10768     fi
   10769     ;;
   10770   hppa*64*)
   10771     shrext_cmds='.sl'
   10772     hardcode_into_libs=yes
   10773     dynamic_linker="$host_os dld.sl"
   10774     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   10775     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   10776     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10777     soname_spec='$libname$release$shared_ext$major'
   10778     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   10779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   10780     ;;
   10781   *)
   10782     shrext_cmds='.sl'
   10783     dynamic_linker="$host_os dld.sl"
   10784     shlibpath_var=SHLIB_PATH
   10785     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   10786     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10787     soname_spec='$libname$release$shared_ext$major'
   10788     ;;
   10789   esac
   10790   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
   10791   postinstall_cmds='chmod 555 $lib'
   10792   # or fails outright, so override atomically:
   10793   install_override_mode=555
   10794   ;;
   10795 
   10796 interix[3-9]*)
   10797   version_type=linux # correct to gnu/linux during the next big refactor
   10798   need_lib_prefix=no
   10799   need_version=no
   10800   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10801   soname_spec='$libname$release$shared_ext$major'
   10802   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   10803   shlibpath_var=LD_LIBRARY_PATH
   10804   shlibpath_overrides_runpath=no
   10805   hardcode_into_libs=yes
   10806   ;;
   10807 
   10808 irix5* | irix6* | nonstopux*)
   10809   case $host_os in
   10810     nonstopux*) version_type=nonstopux ;;
   10811     *)
   10812 	if test yes = "$lt_cv_prog_gnu_ld"; then
   10813 		version_type=linux # correct to gnu/linux during the next big refactor
   10814 	else
   10815 		version_type=irix
   10816 	fi ;;
   10817   esac
   10818   need_lib_prefix=no
   10819   need_version=no
   10820   soname_spec='$libname$release$shared_ext$major'
   10821   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
   10822   case $host_os in
   10823   irix5* | nonstopux*)
   10824     libsuff= shlibsuff=
   10825     ;;
   10826   *)
   10827     case $LD in # libtool.m4 will add one of these switches to LD
   10828     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   10829       libsuff= shlibsuff= libmagic=32-bit;;
   10830     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   10831       libsuff=32 shlibsuff=N32 libmagic=N32;;
   10832     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   10833       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   10834     *) libsuff= shlibsuff= libmagic=never-match;;
   10835     esac
   10836     ;;
   10837   esac
   10838   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   10839   shlibpath_overrides_runpath=no
   10840   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
   10841   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
   10842   hardcode_into_libs=yes
   10843   ;;
   10844 
   10845 # No shared lib support for Linux oldld, aout, or coff.
   10846 linux*oldld* | linux*aout* | linux*coff*)
   10847   dynamic_linker=no
   10848   ;;
   10849 
   10850 linux*android*)
   10851   version_type=none # Android doesn't support versioned libraries.
   10852   need_lib_prefix=no
   10853   need_version=no
   10854   library_names_spec='$libname$release$shared_ext'
   10855   soname_spec='$libname$release$shared_ext'
   10856   finish_cmds=
   10857   shlibpath_var=LD_LIBRARY_PATH
   10858   shlibpath_overrides_runpath=yes
   10859 
   10860   # This implies no fast_install, which is unacceptable.
   10861   # Some rework will be needed to allow for fast_install
   10862   # before this can be enabled.
   10863   hardcode_into_libs=yes
   10864 
   10865   dynamic_linker='Android linker'
   10866   # Don't embed -rpath directories since the linker doesn't support them.
   10867   hardcode_libdir_flag_spec='-L$libdir'
   10868   ;;
   10869 
   10870 # This must be glibc/ELF.
   10871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   10872   version_type=linux # correct to gnu/linux during the next big refactor
   10873   need_lib_prefix=no
   10874   need_version=no
   10875   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10876   soname_spec='$libname$release$shared_ext$major'
   10877   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   10878   shlibpath_var=LD_LIBRARY_PATH
   10879   shlibpath_overrides_runpath=no
   10880 
   10881   # Some binutils ld are patched to set DT_RUNPATH
   10882   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
   10883   $as_echo_n "(cached) " >&6
   10884 else
   10885   lt_cv_shlibpath_overrides_runpath=no
   10886     save_LDFLAGS=$LDFLAGS
   10887     save_libdir=$libdir
   10888     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   10889 	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   10890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10891 /* end confdefs.h.  */
   10892 
   10893 int
   10894 main ()
   10895 {
   10896 
   10897   ;
   10898   return 0;
   10899 }
   10900 _ACEOF
   10901 if ac_fn_c_try_link "$LINENO"; then :
   10902   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
   10903   lt_cv_shlibpath_overrides_runpath=yes
   10904 fi
   10905 fi
   10906 rm -f core conftest.err conftest.$ac_objext \
   10907     conftest$ac_exeext conftest.$ac_ext
   10908     LDFLAGS=$save_LDFLAGS
   10909     libdir=$save_libdir
   10910 
   10911 fi
   10912 
   10913   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
   10914 
   10915   # This implies no fast_install, which is unacceptable.
   10916   # Some rework will be needed to allow for fast_install
   10917   # before this can be enabled.
   10918   hardcode_into_libs=yes
   10919 
   10920   # Ideally, we could use ldconfig to report *all* directores which are
   10921   # searched for libraries, however this is still not possible.  Aside from not
   10922   # being certain /sbin/ldconfig is available, command
   10923   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
   10924   # even though it is searched at run-time.  Try to do the best guess by
   10925   # appending ld.so.conf contents (and includes) to the search path.
   10926   if test -f /etc/ld.so.conf; then
   10927     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' ' '`
   10928     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   10929   fi
   10930 
   10931   # We used to test for /lib/ld.so.1 and disable shared libraries on
   10932   # powerpc, because MkLinux only supported shared libraries with the
   10933   # GNU dynamic linker.  Since this was broken with cross compilers,
   10934   # most powerpc-linux boxes support dynamic linking these days and
   10935   # people can always --disable-shared, the test was removed, and we
   10936   # assume the GNU/Linux dynamic linker is in use.
   10937   dynamic_linker='GNU/Linux ld.so'
   10938   ;;
   10939 
   10940 netbsd*)
   10941   version_type=sunos
   10942   need_lib_prefix=no
   10943   need_version=no
   10944   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   10945     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10946     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10947     dynamic_linker='NetBSD (a.out) ld.so'
   10948   else
   10949     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10950     soname_spec='$libname$release$shared_ext$major'
   10951     dynamic_linker='NetBSD ld.elf_so'
   10952   fi
   10953   shlibpath_var=LD_LIBRARY_PATH
   10954   shlibpath_overrides_runpath=yes
   10955   hardcode_into_libs=yes
   10956   ;;
   10957 
   10958 newsos6)
   10959   version_type=linux # correct to gnu/linux during the next big refactor
   10960   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10961   shlibpath_var=LD_LIBRARY_PATH
   10962   shlibpath_overrides_runpath=yes
   10963   ;;
   10964 
   10965 *nto* | *qnx*)
   10966   version_type=qnx
   10967   need_lib_prefix=no
   10968   need_version=no
   10969   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   10970   soname_spec='$libname$release$shared_ext$major'
   10971   shlibpath_var=LD_LIBRARY_PATH
   10972   shlibpath_overrides_runpath=no
   10973   hardcode_into_libs=yes
   10974   dynamic_linker='ldqnx.so'
   10975   ;;
   10976 
   10977 openbsd* | bitrig*)
   10978   version_type=sunos
   10979   sys_lib_dlsearch_path_spec=/usr/lib
   10980   need_lib_prefix=no
   10981   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
   10982     need_version=no
   10983   else
   10984     need_version=yes
   10985   fi
   10986   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   10987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   10988   shlibpath_var=LD_LIBRARY_PATH
   10989   shlibpath_overrides_runpath=yes
   10990   ;;
   10991 
   10992 os2*)
   10993   libname_spec='$name'
   10994   version_type=windows
   10995   shrext_cmds=.dll
   10996   need_version=no
   10997   need_lib_prefix=no
   10998   # OS/2 can only load a DLL with a base name of 8 characters or less.
   10999   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
   11000     v=$($ECHO $release$versuffix | tr -d .-);
   11001     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
   11002     $ECHO $n$v`$shared_ext'
   11003   library_names_spec='${libname}_dll.$libext'
   11004   dynamic_linker='OS/2 ld.exe'
   11005   shlibpath_var=BEGINLIBPATH
   11006   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11007   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11008   postinstall_cmds='base_file=`basename \$file`~
   11009     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
   11010     dldir=$destdir/`dirname \$dlpath`~
   11011     test -d \$dldir || mkdir -p \$dldir~
   11012     $install_prog $dir/$dlname \$dldir/$dlname~
   11013     chmod a+x \$dldir/$dlname~
   11014     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   11015       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   11016     fi'
   11017   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
   11018     dlpath=$dir/\$dldll~
   11019     $RM \$dlpath'
   11020   ;;
   11021 
   11022 osf3* | osf4* | osf5*)
   11023   version_type=osf
   11024   need_lib_prefix=no
   11025   need_version=no
   11026   soname_spec='$libname$release$shared_ext$major'
   11027   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11028   shlibpath_var=LD_LIBRARY_PATH
   11029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11030   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11031   ;;
   11032 
   11033 rdos*)
   11034   dynamic_linker=no
   11035   ;;
   11036 
   11037 solaris*)
   11038   version_type=linux # correct to gnu/linux during the next big refactor
   11039   need_lib_prefix=no
   11040   need_version=no
   11041   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11042   soname_spec='$libname$release$shared_ext$major'
   11043   shlibpath_var=LD_LIBRARY_PATH
   11044   shlibpath_overrides_runpath=yes
   11045   hardcode_into_libs=yes
   11046   # ldd complains unless libraries are executable
   11047   postinstall_cmds='chmod +x $lib'
   11048   ;;
   11049 
   11050 sunos4*)
   11051   version_type=sunos
   11052   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
   11053   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11054   shlibpath_var=LD_LIBRARY_PATH
   11055   shlibpath_overrides_runpath=yes
   11056   if test yes = "$with_gnu_ld"; then
   11057     need_lib_prefix=no
   11058   fi
   11059   need_version=yes
   11060   ;;
   11061 
   11062 sysv4 | sysv4.3*)
   11063   version_type=linux # correct to gnu/linux during the next big refactor
   11064   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11065   soname_spec='$libname$release$shared_ext$major'
   11066   shlibpath_var=LD_LIBRARY_PATH
   11067   case $host_vendor in
   11068     sni)
   11069       shlibpath_overrides_runpath=no
   11070       need_lib_prefix=no
   11071       runpath_var=LD_RUN_PATH
   11072       ;;
   11073     siemens)
   11074       need_lib_prefix=no
   11075       ;;
   11076     motorola)
   11077       need_lib_prefix=no
   11078       need_version=no
   11079       shlibpath_overrides_runpath=no
   11080       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11081       ;;
   11082   esac
   11083   ;;
   11084 
   11085 sysv4*MP*)
   11086   if test -d /usr/nec; then
   11087     version_type=linux # correct to gnu/linux during the next big refactor
   11088     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
   11089     soname_spec='$libname$shared_ext.$major'
   11090     shlibpath_var=LD_LIBRARY_PATH
   11091   fi
   11092   ;;
   11093 
   11094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   11095   version_type=sco
   11096   need_lib_prefix=no
   11097   need_version=no
   11098   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
   11099   soname_spec='$libname$release$shared_ext$major'
   11100   shlibpath_var=LD_LIBRARY_PATH
   11101   shlibpath_overrides_runpath=yes
   11102   hardcode_into_libs=yes
   11103   if test yes = "$with_gnu_ld"; then
   11104     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   11105   else
   11106     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   11107     case $host_os in
   11108       sco3.2v5*)
   11109         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   11110 	;;
   11111     esac
   11112   fi
   11113   sys_lib_dlsearch_path_spec='/usr/lib'
   11114   ;;
   11115 
   11116 tpf*)
   11117   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   11118   version_type=linux # correct to gnu/linux during the next big refactor
   11119   need_lib_prefix=no
   11120   need_version=no
   11121   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11122   shlibpath_var=LD_LIBRARY_PATH
   11123   shlibpath_overrides_runpath=no
   11124   hardcode_into_libs=yes
   11125   ;;
   11126 
   11127 uts4*)
   11128   version_type=linux # correct to gnu/linux during the next big refactor
   11129   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
   11130   soname_spec='$libname$release$shared_ext$major'
   11131   shlibpath_var=LD_LIBRARY_PATH
   11132   ;;
   11133 
   11134 *)
   11135   dynamic_linker=no
   11136   ;;
   11137 esac
   11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
   11139 $as_echo "$dynamic_linker" >&6; }
   11140 test no = "$dynamic_linker" && can_build_shared=no
   11141 
   11142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11143 if test yes = "$GCC"; then
   11144   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11145 fi
   11146 
   11147 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
   11148   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
   11149 fi
   11150 
   11151 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
   11152   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
   11153 fi
   11154 
   11155 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
   11156 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
   11157 
   11158 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
   11159 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
   11160 
   11161 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
   11162 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
   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 
   11256 
   11257 
   11258 
   11259 
   11260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
   11261 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
   11262 hardcode_action=
   11263 if test -n "$hardcode_libdir_flag_spec" ||
   11264    test -n "$runpath_var" ||
   11265    test yes = "$hardcode_automatic"; then
   11266 
   11267   # We can hardcode non-existent directories.
   11268   if test no != "$hardcode_direct" &&
   11269      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   11270      # have to relink, otherwise we might link with an installed library
   11271      # when we should be linking with a yet-to-be-installed one
   11272      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
   11273      test no != "$hardcode_minus_L"; then
   11274     # Linking always hardcodes the temporary library directory.
   11275     hardcode_action=relink
   11276   else
   11277     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   11278     hardcode_action=immediate
   11279   fi
   11280 else
   11281   # We cannot hardcode anything, or else we can only hardcode existing
   11282   # directories.
   11283   hardcode_action=unsupported
   11284 fi
   11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
   11286 $as_echo "$hardcode_action" >&6; }
   11287 
   11288 if test relink = "$hardcode_action" ||
   11289    test yes = "$inherit_rpath"; then
   11290   # Fast installation is not supported
   11291   enable_fast_install=no
   11292 elif test yes = "$shlibpath_overrides_runpath" ||
   11293      test no = "$enable_shared"; then
   11294   # Fast installation is not necessary
   11295   enable_fast_install=needless
   11296 fi
   11297 
   11298 
   11299 
   11300 
   11301 
   11302 
   11303   if test yes != "$enable_dlopen"; then
   11304   enable_dlopen=unknown
   11305   enable_dlopen_self=unknown
   11306   enable_dlopen_self_static=unknown
   11307 else
   11308   lt_cv_dlopen=no
   11309   lt_cv_dlopen_libs=
   11310 
   11311   case $host_os in
   11312   beos*)
   11313     lt_cv_dlopen=load_add_on
   11314     lt_cv_dlopen_libs=
   11315     lt_cv_dlopen_self=yes
   11316     ;;
   11317 
   11318   mingw* | pw32* | cegcc*)
   11319     lt_cv_dlopen=LoadLibrary
   11320     lt_cv_dlopen_libs=
   11321     ;;
   11322 
   11323   cygwin*)
   11324     lt_cv_dlopen=dlopen
   11325     lt_cv_dlopen_libs=
   11326     ;;
   11327 
   11328   darwin*)
   11329     # if libdl is installed we need to link against it
   11330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11332 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11333   $as_echo_n "(cached) " >&6
   11334 else
   11335   ac_check_lib_save_LIBS=$LIBS
   11336 LIBS="-ldl  $LIBS"
   11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11338 /* end confdefs.h.  */
   11339 
   11340 /* Override any GCC internal prototype to avoid an error.
   11341    Use char because int might match the return type of a GCC
   11342    builtin and then its argument prototype would still apply.  */
   11343 #ifdef __cplusplus
   11344 extern "C"
   11345 #endif
   11346 char dlopen ();
   11347 int
   11348 main ()
   11349 {
   11350 return dlopen ();
   11351   ;
   11352   return 0;
   11353 }
   11354 _ACEOF
   11355 if ac_fn_c_try_link "$LINENO"; then :
   11356   ac_cv_lib_dl_dlopen=yes
   11357 else
   11358   ac_cv_lib_dl_dlopen=no
   11359 fi
   11360 rm -f core conftest.err conftest.$ac_objext \
   11361     conftest$ac_exeext conftest.$ac_ext
   11362 LIBS=$ac_check_lib_save_LIBS
   11363 fi
   11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11366 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11367   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11368 else
   11369 
   11370     lt_cv_dlopen=dyld
   11371     lt_cv_dlopen_libs=
   11372     lt_cv_dlopen_self=yes
   11373 
   11374 fi
   11375 
   11376     ;;
   11377 
   11378   tpf*)
   11379     # Don't try to run any link tests for TPF.  We know it's impossible
   11380     # because TPF is a cross-compiler, and we know how we open DSOs.
   11381     lt_cv_dlopen=dlopen
   11382     lt_cv_dlopen_libs=
   11383     lt_cv_dlopen_self=no
   11384     ;;
   11385 
   11386   *)
   11387     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
   11388 if test "x$ac_cv_func_shl_load" = xyes; then :
   11389   lt_cv_dlopen=shl_load
   11390 else
   11391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
   11392 $as_echo_n "checking for shl_load in -ldld... " >&6; }
   11393 if ${ac_cv_lib_dld_shl_load+:} false; then :
   11394   $as_echo_n "(cached) " >&6
   11395 else
   11396   ac_check_lib_save_LIBS=$LIBS
   11397 LIBS="-ldld  $LIBS"
   11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11399 /* end confdefs.h.  */
   11400 
   11401 /* Override any GCC internal prototype to avoid an error.
   11402    Use char because int might match the return type of a GCC
   11403    builtin and then its argument prototype would still apply.  */
   11404 #ifdef __cplusplus
   11405 extern "C"
   11406 #endif
   11407 char shl_load ();
   11408 int
   11409 main ()
   11410 {
   11411 return shl_load ();
   11412   ;
   11413   return 0;
   11414 }
   11415 _ACEOF
   11416 if ac_fn_c_try_link "$LINENO"; then :
   11417   ac_cv_lib_dld_shl_load=yes
   11418 else
   11419   ac_cv_lib_dld_shl_load=no
   11420 fi
   11421 rm -f core conftest.err conftest.$ac_objext \
   11422     conftest$ac_exeext conftest.$ac_ext
   11423 LIBS=$ac_check_lib_save_LIBS
   11424 fi
   11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
   11426 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
   11427 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
   11428   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
   11429 else
   11430   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
   11431 if test "x$ac_cv_func_dlopen" = xyes; then :
   11432   lt_cv_dlopen=dlopen
   11433 else
   11434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11436 if ${ac_cv_lib_dl_dlopen+:} false; then :
   11437   $as_echo_n "(cached) " >&6
   11438 else
   11439   ac_check_lib_save_LIBS=$LIBS
   11440 LIBS="-ldl  $LIBS"
   11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11442 /* end confdefs.h.  */
   11443 
   11444 /* Override any GCC internal prototype to avoid an error.
   11445    Use char because int might match the return type of a GCC
   11446    builtin and then its argument prototype would still apply.  */
   11447 #ifdef __cplusplus
   11448 extern "C"
   11449 #endif
   11450 char dlopen ();
   11451 int
   11452 main ()
   11453 {
   11454 return dlopen ();
   11455   ;
   11456   return 0;
   11457 }
   11458 _ACEOF
   11459 if ac_fn_c_try_link "$LINENO"; then :
   11460   ac_cv_lib_dl_dlopen=yes
   11461 else
   11462   ac_cv_lib_dl_dlopen=no
   11463 fi
   11464 rm -f core conftest.err conftest.$ac_objext \
   11465     conftest$ac_exeext conftest.$ac_ext
   11466 LIBS=$ac_check_lib_save_LIBS
   11467 fi
   11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   11469 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   11470 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
   11471   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
   11472 else
   11473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
   11474 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
   11475 if ${ac_cv_lib_svld_dlopen+:} false; then :
   11476   $as_echo_n "(cached) " >&6
   11477 else
   11478   ac_check_lib_save_LIBS=$LIBS
   11479 LIBS="-lsvld  $LIBS"
   11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11481 /* end confdefs.h.  */
   11482 
   11483 /* Override any GCC internal prototype to avoid an error.
   11484    Use char because int might match the return type of a GCC
   11485    builtin and then its argument prototype would still apply.  */
   11486 #ifdef __cplusplus
   11487 extern "C"
   11488 #endif
   11489 char dlopen ();
   11490 int
   11491 main ()
   11492 {
   11493 return dlopen ();
   11494   ;
   11495   return 0;
   11496 }
   11497 _ACEOF
   11498 if ac_fn_c_try_link "$LINENO"; then :
   11499   ac_cv_lib_svld_dlopen=yes
   11500 else
   11501   ac_cv_lib_svld_dlopen=no
   11502 fi
   11503 rm -f core conftest.err conftest.$ac_objext \
   11504     conftest$ac_exeext conftest.$ac_ext
   11505 LIBS=$ac_check_lib_save_LIBS
   11506 fi
   11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
   11508 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
   11509 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
   11510   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
   11511 else
   11512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
   11513 $as_echo_n "checking for dld_link in -ldld... " >&6; }
   11514 if ${ac_cv_lib_dld_dld_link+:} false; then :
   11515   $as_echo_n "(cached) " >&6
   11516 else
   11517   ac_check_lib_save_LIBS=$LIBS
   11518 LIBS="-ldld  $LIBS"
   11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11520 /* end confdefs.h.  */
   11521 
   11522 /* Override any GCC internal prototype to avoid an error.
   11523    Use char because int might match the return type of a GCC
   11524    builtin and then its argument prototype would still apply.  */
   11525 #ifdef __cplusplus
   11526 extern "C"
   11527 #endif
   11528 char dld_link ();
   11529 int
   11530 main ()
   11531 {
   11532 return dld_link ();
   11533   ;
   11534   return 0;
   11535 }
   11536 _ACEOF
   11537 if ac_fn_c_try_link "$LINENO"; then :
   11538   ac_cv_lib_dld_dld_link=yes
   11539 else
   11540   ac_cv_lib_dld_dld_link=no
   11541 fi
   11542 rm -f core conftest.err conftest.$ac_objext \
   11543     conftest$ac_exeext conftest.$ac_ext
   11544 LIBS=$ac_check_lib_save_LIBS
   11545 fi
   11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
   11547 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
   11548 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
   11549   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
   11550 fi
   11551 
   11552 
   11553 fi
   11554 
   11555 
   11556 fi
   11557 
   11558 
   11559 fi
   11560 
   11561 
   11562 fi
   11563 
   11564 
   11565 fi
   11566 
   11567     ;;
   11568   esac
   11569 
   11570   if test no = "$lt_cv_dlopen"; then
   11571     enable_dlopen=no
   11572   else
   11573     enable_dlopen=yes
   11574   fi
   11575 
   11576   case $lt_cv_dlopen in
   11577   dlopen)
   11578     save_CPPFLAGS=$CPPFLAGS
   11579     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   11580 
   11581     save_LDFLAGS=$LDFLAGS
   11582     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   11583 
   11584     save_LIBS=$LIBS
   11585     LIBS="$lt_cv_dlopen_libs $LIBS"
   11586 
   11587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
   11588 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
   11589 if ${lt_cv_dlopen_self+:} false; then :
   11590   $as_echo_n "(cached) " >&6
   11591 else
   11592   	  if test yes = "$cross_compiling"; then :
   11593   lt_cv_dlopen_self=cross
   11594 else
   11595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11596   lt_status=$lt_dlunknown
   11597   cat > conftest.$ac_ext <<_LT_EOF
   11598 #line $LINENO "configure"
   11599 #include "confdefs.h"
   11600 
   11601 #if HAVE_DLFCN_H
   11602 #include <dlfcn.h>
   11603 #endif
   11604 
   11605 #include <stdio.h>
   11606 
   11607 #ifdef RTLD_GLOBAL
   11608 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11609 #else
   11610 #  ifdef DL_GLOBAL
   11611 #    define LT_DLGLOBAL		DL_GLOBAL
   11612 #  else
   11613 #    define LT_DLGLOBAL		0
   11614 #  endif
   11615 #endif
   11616 
   11617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11618    find out it does not work in some platform. */
   11619 #ifndef LT_DLLAZY_OR_NOW
   11620 #  ifdef RTLD_LAZY
   11621 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11622 #  else
   11623 #    ifdef DL_LAZY
   11624 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11625 #    else
   11626 #      ifdef RTLD_NOW
   11627 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11628 #      else
   11629 #        ifdef DL_NOW
   11630 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11631 #        else
   11632 #          define LT_DLLAZY_OR_NOW	0
   11633 #        endif
   11634 #      endif
   11635 #    endif
   11636 #  endif
   11637 #endif
   11638 
   11639 /* When -fvisibility=hidden is used, assume the code has been annotated
   11640    correspondingly for the symbols needed.  */
   11641 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11642 int fnord () __attribute__((visibility("default")));
   11643 #endif
   11644 
   11645 int fnord () { return 42; }
   11646 int main ()
   11647 {
   11648   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11649   int status = $lt_dlunknown;
   11650 
   11651   if (self)
   11652     {
   11653       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11654       else
   11655         {
   11656 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11657           else puts (dlerror ());
   11658 	}
   11659       /* dlclose (self); */
   11660     }
   11661   else
   11662     puts (dlerror ());
   11663 
   11664   return status;
   11665 }
   11666 _LT_EOF
   11667   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11668   (eval $ac_link) 2>&5
   11669   ac_status=$?
   11670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11671   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11672     (./conftest; exit; ) >&5 2>/dev/null
   11673     lt_status=$?
   11674     case x$lt_status in
   11675       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   11676       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   11677       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
   11678     esac
   11679   else :
   11680     # compilation failed
   11681     lt_cv_dlopen_self=no
   11682   fi
   11683 fi
   11684 rm -fr conftest*
   11685 
   11686 
   11687 fi
   11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
   11689 $as_echo "$lt_cv_dlopen_self" >&6; }
   11690 
   11691     if test yes = "$lt_cv_dlopen_self"; then
   11692       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   11693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
   11694 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
   11695 if ${lt_cv_dlopen_self_static+:} false; then :
   11696   $as_echo_n "(cached) " >&6
   11697 else
   11698   	  if test yes = "$cross_compiling"; then :
   11699   lt_cv_dlopen_self_static=cross
   11700 else
   11701   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   11702   lt_status=$lt_dlunknown
   11703   cat > conftest.$ac_ext <<_LT_EOF
   11704 #line $LINENO "configure"
   11705 #include "confdefs.h"
   11706 
   11707 #if HAVE_DLFCN_H
   11708 #include <dlfcn.h>
   11709 #endif
   11710 
   11711 #include <stdio.h>
   11712 
   11713 #ifdef RTLD_GLOBAL
   11714 #  define LT_DLGLOBAL		RTLD_GLOBAL
   11715 #else
   11716 #  ifdef DL_GLOBAL
   11717 #    define LT_DLGLOBAL		DL_GLOBAL
   11718 #  else
   11719 #    define LT_DLGLOBAL		0
   11720 #  endif
   11721 #endif
   11722 
   11723 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   11724    find out it does not work in some platform. */
   11725 #ifndef LT_DLLAZY_OR_NOW
   11726 #  ifdef RTLD_LAZY
   11727 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   11728 #  else
   11729 #    ifdef DL_LAZY
   11730 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   11731 #    else
   11732 #      ifdef RTLD_NOW
   11733 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   11734 #      else
   11735 #        ifdef DL_NOW
   11736 #          define LT_DLLAZY_OR_NOW	DL_NOW
   11737 #        else
   11738 #          define LT_DLLAZY_OR_NOW	0
   11739 #        endif
   11740 #      endif
   11741 #    endif
   11742 #  endif
   11743 #endif
   11744 
   11745 /* When -fvisibility=hidden is used, assume the code has been annotated
   11746    correspondingly for the symbols needed.  */
   11747 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
   11748 int fnord () __attribute__((visibility("default")));
   11749 #endif
   11750 
   11751 int fnord () { return 42; }
   11752 int main ()
   11753 {
   11754   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   11755   int status = $lt_dlunknown;
   11756 
   11757   if (self)
   11758     {
   11759       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   11760       else
   11761         {
   11762 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
   11763           else puts (dlerror ());
   11764 	}
   11765       /* dlclose (self); */
   11766     }
   11767   else
   11768     puts (dlerror ());
   11769 
   11770   return status;
   11771 }
   11772 _LT_EOF
   11773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
   11774   (eval $ac_link) 2>&5
   11775   ac_status=$?
   11776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   11777   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
   11778     (./conftest; exit; ) >&5 2>/dev/null
   11779     lt_status=$?
   11780     case x$lt_status in
   11781       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   11782       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   11783       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
   11784     esac
   11785   else :
   11786     # compilation failed
   11787     lt_cv_dlopen_self_static=no
   11788   fi
   11789 fi
   11790 rm -fr conftest*
   11791 
   11792 
   11793 fi
   11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
   11795 $as_echo "$lt_cv_dlopen_self_static" >&6; }
   11796     fi
   11797 
   11798     CPPFLAGS=$save_CPPFLAGS
   11799     LDFLAGS=$save_LDFLAGS
   11800     LIBS=$save_LIBS
   11801     ;;
   11802   esac
   11803 
   11804   case $lt_cv_dlopen_self in
   11805   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   11806   *) enable_dlopen_self=unknown ;;
   11807   esac
   11808 
   11809   case $lt_cv_dlopen_self_static in
   11810   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   11811   *) enable_dlopen_self_static=unknown ;;
   11812   esac
   11813 fi
   11814 
   11815 
   11816 
   11817 
   11818 
   11819 
   11820 
   11821 
   11822 
   11823 
   11824 
   11825 
   11826 
   11827 
   11828 
   11829 
   11830 
   11831 striplib=
   11832 old_striplib=
   11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
   11834 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
   11835 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
   11836   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   11837   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11839 $as_echo "yes" >&6; }
   11840 else
   11841 # FIXME - insert some real tests, host_os isn't really good enough
   11842   case $host_os in
   11843   darwin*)
   11844     if test -n "$STRIP"; then
   11845       striplib="$STRIP -x"
   11846       old_striplib="$STRIP -S"
   11847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11848 $as_echo "yes" >&6; }
   11849     else
   11850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11851 $as_echo "no" >&6; }
   11852     fi
   11853     ;;
   11854   *)
   11855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11856 $as_echo "no" >&6; }
   11857     ;;
   11858   esac
   11859 fi
   11860 
   11861 
   11862 
   11863 
   11864 
   11865 
   11866 
   11867 
   11868 
   11869 
   11870 
   11871 
   11872   # Report what library types will actually be built
   11873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
   11874 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
   11875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
   11876 $as_echo "$can_build_shared" >&6; }
   11877 
   11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
   11879 $as_echo_n "checking whether to build shared libraries... " >&6; }
   11880   test no = "$can_build_shared" && enable_shared=no
   11881 
   11882   # On AIX, shared libraries and static libraries use the same namespace, and
   11883   # are all built from PIC.
   11884   case $host_os in
   11885   aix3*)
   11886     test yes = "$enable_shared" && enable_static=no
   11887     if test -n "$RANLIB"; then
   11888       archive_cmds="$archive_cmds~\$RANLIB \$lib"
   11889       postinstall_cmds='$RANLIB $lib'
   11890     fi
   11891     ;;
   11892 
   11893   aix[4-9]*)
   11894     if test ia64 != "$host_cpu"; then
   11895       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
   11896       yes,aix,yes) ;;			# shared object as lib.so file only
   11897       yes,svr4,*) ;;			# shared object as lib.so archive member only
   11898       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
   11899       esac
   11900     fi
   11901     ;;
   11902   esac
   11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
   11904 $as_echo "$enable_shared" >&6; }
   11905 
   11906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
   11907 $as_echo_n "checking whether to build static libraries... " >&6; }
   11908   # Make sure either enable_shared or enable_static is yes.
   11909   test yes = "$enable_shared" || enable_static=yes
   11910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
   11911 $as_echo "$enable_static" >&6; }
   11912 
   11913 
   11914 
   11915 
   11916 fi
   11917 ac_ext=c
   11918 ac_cpp='$CPP $CPPFLAGS'
   11919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11922 
   11923 CC=$lt_save_CC
   11924 
   11925 
   11926 
   11927 
   11928 
   11929 
   11930 
   11931 
   11932 
   11933 
   11934 
   11935 
   11936 
   11937 
   11938 
   11939         ac_config_commands="$ac_config_commands libtool"
   11940 
   11941 
   11942 
   11943 
   11944 # Only expand once:
   11945 
   11946 
   11947 # Find a good install program.  We prefer a C program (faster),
   11948 # so one script is as good as another.  But avoid the broken or
   11949 # incompatible versions:
   11950 # SysV /etc/install, /usr/sbin/install
   11951 # SunOS /usr/etc/install
   11952 # IRIX /sbin/install
   11953 # AIX /bin/install
   11954 # AmigaOS /C/install, which installs bootblocks on floppy discs
   11955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   11956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   11957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   11958 # OS/2's system install, which has a completely different semantic
   11959 # ./install, which can be erroneously created by make from ./install.sh.
   11960 # Reject install programs that cannot install multiple files.
   11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   11962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   11963 if test -z "$INSTALL"; then
   11964 if ${ac_cv_path_install+:} false; then :
   11965   $as_echo_n "(cached) " >&6
   11966 else
   11967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11968 for as_dir in $PATH
   11969 do
   11970   IFS=$as_save_IFS
   11971   test -z "$as_dir" && as_dir=.
   11972     # Account for people who put trailing slashes in PATH elements.
   11973 case $as_dir/ in #((
   11974   ./ | .// | /[cC]/* | \
   11975   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   11976   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   11977   /usr/ucb/* ) ;;
   11978   *)
   11979     # OSF1 and SCO ODT 3.0 have their own names for install.
   11980     # Don't use installbsd from OSF since it installs stuff as root
   11981     # by default.
   11982     for ac_prog in ginstall scoinst install; do
   11983       for ac_exec_ext in '' $ac_executable_extensions; do
   11984 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   11985 	  if test $ac_prog = install &&
   11986 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11987 	    # AIX install.  It has an incompatible calling convention.
   11988 	    :
   11989 	  elif test $ac_prog = install &&
   11990 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   11991 	    # program-specific install script used by HP pwplus--don't use.
   11992 	    :
   11993 	  else
   11994 	    rm -rf conftest.one conftest.two conftest.dir
   11995 	    echo one > conftest.one
   11996 	    echo two > conftest.two
   11997 	    mkdir conftest.dir
   11998 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   11999 	      test -s conftest.one && test -s conftest.two &&
   12000 	      test -s conftest.dir/conftest.one &&
   12001 	      test -s conftest.dir/conftest.two
   12002 	    then
   12003 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   12004 	      break 3
   12005 	    fi
   12006 	  fi
   12007 	fi
   12008       done
   12009     done
   12010     ;;
   12011 esac
   12012 
   12013   done
   12014 IFS=$as_save_IFS
   12015 
   12016 rm -rf conftest.one conftest.two conftest.dir
   12017 
   12018 fi
   12019   if test "${ac_cv_path_install+set}" = set; then
   12020     INSTALL=$ac_cv_path_install
   12021   else
   12022     # As a last resort, use the slow shell script.  Don't cache a
   12023     # value for INSTALL within a source directory, because that will
   12024     # break other packages using the cache if that directory is
   12025     # removed, or if the value is a relative name.
   12026     INSTALL=$ac_install_sh
   12027   fi
   12028 fi
   12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   12030 $as_echo "$INSTALL" >&6; }
   12031 
   12032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   12033 # It thinks the first close brace ends the variable substitution.
   12034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   12035 
   12036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   12037 
   12038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   12039 
   12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   12041 $as_echo_n "checking whether ln -s works... " >&6; }
   12042 LN_S=$as_ln_s
   12043 if test "$LN_S" = "ln -s"; then
   12044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12045 $as_echo "yes" >&6; }
   12046 else
   12047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   12048 $as_echo "no, using $LN_S" >&6; }
   12049 fi
   12050 
   12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compatible shell" >&5
   12052 $as_echo_n "checking for a POSIX-compatible shell... " >&6; }
   12053 if ${ac_cv_prog_shell+:} false; then :
   12054   $as_echo_n "(cached) " >&6
   12055 else
   12056   ac_test_shell_script='
   12057 			  test "$(expr 1 + 1)" = "2" &&
   12058 			  test "$(( 1 + 1 ))" = "2"
   12059 			  '
   12060 
   12061 			  for ac_cv_prog_shell in \
   12062 			    "$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
   12063 			    case $ac_cv_prog_shell in #(
   12064   /*) :
   12065 
   12066 				      if "$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null; then :
   12067   break
   12068 fi
   12069 				     ;; #(
   12070   *) :
   12071      ;;
   12072 esac
   12073 			  done
   12074 
   12075 fi
   12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_shell" >&5
   12077 $as_echo "$ac_cv_prog_shell" >&6; }
   12078 	  if test "$ac_cv_prog_shell" = "no"; then :
   12079   SHELL=/bin/sh
   12080 		 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
   12081 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
   12082 
   12083 else
   12084   SHELL="$ac_cv_prog_shell"
   12085 
   12086 fi
   12087 
   12088 
   12089 
   12090 
   12091 
   12092 
   12093 
   12094 
   12095 
   12096 
   12097 #
   12098 # Use pkg-config
   12099 #
   12100 
   12101 
   12102 
   12103 
   12104 
   12105 
   12106 
   12107 
   12108 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   12109 	if test -n "$ac_tool_prefix"; then
   12110   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   12111 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12113 $as_echo_n "checking for $ac_word... " >&6; }
   12114 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   12115   $as_echo_n "(cached) " >&6
   12116 else
   12117   case $PKG_CONFIG in
   12118   [\\/]* | ?:[\\/]*)
   12119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   12120   ;;
   12121   *)
   12122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12123 for as_dir in $PATH
   12124 do
   12125   IFS=$as_save_IFS
   12126   test -z "$as_dir" && as_dir=.
   12127     for ac_exec_ext in '' $ac_executable_extensions; do
   12128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12131     break 2
   12132   fi
   12133 done
   12134   done
   12135 IFS=$as_save_IFS
   12136 
   12137   ;;
   12138 esac
   12139 fi
   12140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   12141 if test -n "$PKG_CONFIG"; then
   12142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   12143 $as_echo "$PKG_CONFIG" >&6; }
   12144 else
   12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12146 $as_echo "no" >&6; }
   12147 fi
   12148 
   12149 
   12150 fi
   12151 if test -z "$ac_cv_path_PKG_CONFIG"; then
   12152   ac_pt_PKG_CONFIG=$PKG_CONFIG
   12153   # Extract the first word of "pkg-config", so it can be a program name with args.
   12154 set dummy pkg-config; ac_word=$2
   12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12156 $as_echo_n "checking for $ac_word... " >&6; }
   12157 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   12158   $as_echo_n "(cached) " >&6
   12159 else
   12160   case $ac_pt_PKG_CONFIG in
   12161   [\\/]* | ?:[\\/]*)
   12162   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   12163   ;;
   12164   *)
   12165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12166 for as_dir in $PATH
   12167 do
   12168   IFS=$as_save_IFS
   12169   test -z "$as_dir" && as_dir=.
   12170     for ac_exec_ext in '' $ac_executable_extensions; do
   12171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12172     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   12173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12174     break 2
   12175   fi
   12176 done
   12177   done
   12178 IFS=$as_save_IFS
   12179 
   12180   ;;
   12181 esac
   12182 fi
   12183 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   12184 if test -n "$ac_pt_PKG_CONFIG"; then
   12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   12186 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   12187 else
   12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12189 $as_echo "no" >&6; }
   12190 fi
   12191 
   12192   if test "x$ac_pt_PKG_CONFIG" = x; then
   12193     PKG_CONFIG=""
   12194   else
   12195     case $cross_compiling:$ac_tool_warned in
   12196 yes:)
   12197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12199 ac_tool_warned=yes ;;
   12200 esac
   12201     PKG_CONFIG=$ac_pt_PKG_CONFIG
   12202   fi
   12203 else
   12204   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   12205 fi
   12206 
   12207 fi
   12208 if test -n "$PKG_CONFIG"; then
   12209 	_pkg_min_version=0.9.0
   12210 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   12211 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   12212 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   12213 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12214 $as_echo "yes" >&6; }
   12215 	else
   12216 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12217 $as_echo "no" >&6; }
   12218 		PKG_CONFIG=""
   12219 	fi
   12220 fi
   12221 if test -z "$PKG_CONFIG"; then :
   12222   as_fn_error $? "The pkg-config script could not be found or is too old." "$LINENO" 5
   12223 fi
   12224 
   12225 # Check whether --enable-buffer_useinline was given.
   12226 if test "${enable_buffer_useinline+set}" = set; then :
   12227   enableval=$enable_buffer_useinline; if test yes = "${enable}"
   12228 	      then
   12229 
   12230 $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12231 
   12232 	      fi
   12233 else
   12234   $as_echo "#define ISC_BUFFER_USEINLINE 1" >>confdefs.h
   12235 
   12236 fi
   12237 
   12238 
   12239 # Check whether --enable-warn_shadow was given.
   12240 if test "${enable_warn_shadow+set}" = set; then :
   12241   enableval=$enable_warn_shadow;
   12242 fi
   12243 
   12244 
   12245 # Check whether --enable-warn_error was given.
   12246 if test "${enable_warn_error+set}" = set; then :
   12247   enableval=$enable_warn_error;
   12248 fi
   12249 
   12250 
   12251 # Check whether --enable-developer was given.
   12252 if test "${enable_developer+set}" = set; then :
   12253   enableval=$enable_developer;
   12254 fi
   12255 
   12256 
   12257 XTARGETS=
   12258 if test "$enable_developer" = "yes"; then :
   12259   STD_CDEFINES="$STD_CDEFINES -DISC_MEM_DEFAULTFILL=1 -DISC_LIST_CHECKINIT=1"
   12260        test "${enable_fixed_rrset+set}" = set || enable_fixed_rrset=yes
   12261        test "${enable_querytrace+set}" = set || enable_querytrace=yes
   12262        test "${with_cmocka+set}" = set || with_cmocka=yes
   12263        test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
   12264        test "${enable_symtable+set}" = set || enable_symtable=all
   12265        test "${enable_warn_error+set}" = set || enable_warn_error=yes
   12266        test "${enable_warn_shadow+set}" = set || enable_warn_shadow=yes
   12267        test "${with_zlib+set}" = set || with_zlib=yes
   12268        XTARGETS='${XTARGETS}'
   12269 
   12270 fi
   12271 
   12272 
   12273 # Check whether --enable-fuzzing was given.
   12274 if test "${enable_fuzzing+set}" = set; then :
   12275   enableval=$enable_fuzzing;
   12276 else
   12277   enable_fuzzing=no
   12278 fi
   12279 
   12280 
   12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing mode" >&5
   12282 $as_echo_n "checking whether to enable fuzzing mode... " >&6; }
   12283 case $enable_fuzzing in #(
   12284   no) :
   12285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12286 $as_echo "no" >&6; } ;; #(
   12287   afl) :
   12288 
   12289 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using AFL" >&5
   12290 $as_echo "using AFL" >&6; }
   12291 
   12292 $as_echo "#define ENABLE_AFL 1" >>confdefs.h
   12293 
   12294 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1"
   12295 	  LIBS="$LIBS -lpthread" ;; #(
   12296   libfuzzer) :
   12297 
   12298 	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libFuzzer" >&5
   12299 $as_echo "using libFuzzer" >&6; }
   12300 	  CFLAGS="$CFLAGS -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -fsanitize=fuzzer,address,undefined"
   12301 	  LDFLAGS="$LDFLAGS -fsanitize=fuzzer,address,undefined" ;; #(
   12302   *) :
   12303     as_fn_error $? "You need to explicitly select the fuzzer" "$LINENO" 5 ;; #(
   12304   *) :
   12305      ;;
   12306 esac
   12307 
   12308 if test "$enable_fuzzing" = "afl"; then :
   12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"for AFL enabled compiler\"" >&5
   12310 $as_echo_n "checking \"for AFL enabled compiler\"... " >&6; }
   12311        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12312 /* end confdefs.h.  */
   12313 
   12314 int
   12315 main ()
   12316 {
   12317 #ifndef __AFL_COMPILER
   12318 					   #error AFL compiler required
   12319 					   #endif
   12320 
   12321   ;
   12322   return 0;
   12323 }
   12324 _ACEOF
   12325 if ac_fn_c_try_compile "$LINENO"; then :
   12326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12327 $as_echo "yes" >&6; }
   12328 else
   12329   as_fn_error $? "set CC=afl-<gcc|clang> when --enable-fuzzing=afl is used" "$LINENO" 5
   12330 fi
   12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12332 
   12333 fi
   12334 
   12335 # Check whether --enable-mutex_atomics was given.
   12336 if test "${enable_mutex_atomics+set}" = set; then :
   12337   enableval=$enable_mutex_atomics;
   12338 else
   12339   enable_mutex_atomics=no
   12340 fi
   12341 
   12342 
   12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to emulate atomics with mutexes" >&5
   12344 $as_echo_n "checking whether to emulate atomics with mutexes... " >&6; }
   12345 case "$enable_mutex_atomics" in
   12346 yes)
   12347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12348 $as_echo "yes" >&6; }
   12349 
   12350 $as_echo "#define ISC_MUTEX_ATOMICS 1" >>confdefs.h
   12351 
   12352         ;;
   12353 no)
   12354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12355 $as_echo "no" >&6; }
   12356         ;;
   12357 *)
   12358         as_fn_error $? "\"--enable-mutex-atomics requires yes or no\"" "$LINENO" 5
   12359         ;;
   12360 esac
   12361 
   12362 #
   12363 # Make very sure that these are the first files processed by
   12364 # config.status, since we use the processed output as the input for
   12365 # AC_SUBST_FILE() substitutions in other files.
   12366 #
   12367 ac_config_files="$ac_config_files make/rules make/includes"
   12368 
   12369 
   12370 # Extract the first word of "ar", so it can be a program name with args.
   12371 set dummy ar; ac_word=$2
   12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12373 $as_echo_n "checking for $ac_word... " >&6; }
   12374 if ${ac_cv_path_AR+:} false; then :
   12375   $as_echo_n "(cached) " >&6
   12376 else
   12377   case $AR in
   12378   [\\/]* | ?:[\\/]*)
   12379   ac_cv_path_AR="$AR" # Let the user override the test with a path.
   12380   ;;
   12381   *)
   12382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12383 for as_dir in $PATH
   12384 do
   12385   IFS=$as_save_IFS
   12386   test -z "$as_dir" && as_dir=.
   12387     for ac_exec_ext in '' $ac_executable_extensions; do
   12388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12389     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
   12390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12391     break 2
   12392   fi
   12393 done
   12394   done
   12395 IFS=$as_save_IFS
   12396 
   12397   ;;
   12398 esac
   12399 fi
   12400 AR=$ac_cv_path_AR
   12401 if test -n "$AR"; then
   12402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   12403 $as_echo "$AR" >&6; }
   12404 else
   12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12406 $as_echo "no" >&6; }
   12407 fi
   12408 
   12409 
   12410 ARFLAGS="cruv"
   12411 
   12412 
   12413 
   12414 # The POSIX ln(1) program.  Non-POSIX systems may substitute
   12415 # "copy" or something.
   12416 LN=ln
   12417 
   12418 
   12419 case "$AR" in
   12420 	"")
   12421 		as_fn_error $? "
   12422 ar program not found.  Please fix your PATH to include the directory in
   12423 which ar resides, or set AR in the environment with the full path to ar.
   12424 " "$LINENO" 5
   12425 
   12426 		;;
   12427 esac
   12428 
   12429 #
   12430 # Perl is optional; it is used only by some of the system test scripts.
   12431 # Note: the backtrace feature (see below) uses perl to build the symbol table,
   12432 # but it still compiles without perl, in which case an empty table will be used.
   12433 #
   12434 for ac_prog in perl5 perl
   12435 do
   12436   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12437 set dummy $ac_prog; ac_word=$2
   12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12439 $as_echo_n "checking for $ac_word... " >&6; }
   12440 if ${ac_cv_path_PERL+:} false; then :
   12441   $as_echo_n "(cached) " >&6
   12442 else
   12443   case $PERL in
   12444   [\\/]* | ?:[\\/]*)
   12445   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
   12446   ;;
   12447   *)
   12448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12449 for as_dir in $PATH
   12450 do
   12451   IFS=$as_save_IFS
   12452   test -z "$as_dir" && as_dir=.
   12453     for ac_exec_ext in '' $ac_executable_extensions; do
   12454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12455     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
   12456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12457     break 2
   12458   fi
   12459 done
   12460   done
   12461 IFS=$as_save_IFS
   12462 
   12463   ;;
   12464 esac
   12465 fi
   12466 PERL=$ac_cv_path_PERL
   12467 if test -n "$PERL"; then
   12468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
   12469 $as_echo "$PERL" >&6; }
   12470 else
   12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12472 $as_echo "no" >&6; }
   12473 fi
   12474 
   12475 
   12476   test -n "$PERL" && break
   12477 done
   12478 
   12479 
   12480 
   12481 #
   12482 # Python is also optional but required by default so that dnssec-keymgr gets
   12483 # installed unless explicitly prevented by the user using --without-python.
   12484 #
   12485 testminvers='import sys
   12486 if (sys.version_info < (2,7)) or (sys.version_info < (3,2) and sys.version_info >= (3,0)):
   12487    exit(1)'
   12488 
   12489 testargparse='try: import argparse
   12490 except: exit(1)'
   12491 
   12492 testply='try: import ply
   12493 except: exit(1)'
   12494 
   12495 testsetup='try: from distutils.core import setup
   12496 except: exit(1)'
   12497 
   12498 default_with_python="python python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python2 python2.7"
   12499 
   12500 
   12501 
   12502 
   12503 # Check whether --with-python was given.
   12504 if test "${with_python+set}" = set; then :
   12505   withval=$with_python;
   12506 else
   12507   with_python=$default_with_python
   12508 fi
   12509 
   12510 
   12511 # Check whether --with-python-install-dir was given.
   12512 if test "${with_python_install_dir+set}" = set; then :
   12513   withval=$with_python_install_dir;
   12514 else
   12515   with_python_install_dir=""
   12516 fi
   12517 
   12518 
   12519 if test "$with_python" = "yes"; then :
   12520   with_python=$default_with_python
   12521 fi
   12522 
   12523 if test "$with_python" = "no"; then :
   12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12525 $as_echo_n "checking for Python support... " >&6; }
   12526        unset PYTHON
   12527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   12528 $as_echo "disabled" >&6; }
   12529 else
   12530   for p in $with_python
   12531        do
   12532 	 case $p in #(
   12533   /*) :
   12534     PYTHON="$p" ;; #(
   12535   *) :
   12536      ;;
   12537 esac
   12538 
   12539 	 # Extract the first word of "$p", so it can be a program name with args.
   12540 set dummy $p; ac_word=$2
   12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12542 $as_echo_n "checking for $ac_word... " >&6; }
   12543 if ${ac_cv_path_PYTHON+:} false; then :
   12544   $as_echo_n "(cached) " >&6
   12545 else
   12546   case $PYTHON in
   12547   [\\/]* | ?:[\\/]*)
   12548   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
   12549   ;;
   12550   *)
   12551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12552 for as_dir in $PATH
   12553 do
   12554   IFS=$as_save_IFS
   12555   test -z "$as_dir" && as_dir=.
   12556     for ac_exec_ext in '' $ac_executable_extensions; do
   12557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12558     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
   12559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12560     break 2
   12561   fi
   12562 done
   12563   done
   12564 IFS=$as_save_IFS
   12565 
   12566   ;;
   12567 esac
   12568 fi
   12569 PYTHON=$ac_cv_path_PYTHON
   12570 if test -n "$PYTHON"; then
   12571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
   12572 $as_echo "$PYTHON" >&6; }
   12573 else
   12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12575 $as_echo "no" >&6; }
   12576 fi
   12577 
   12578 
   12579 	 # Do not cache the result of the check from the previous line.  If the
   12580 	 # first found Python interpreter has missing module dependencies and
   12581 	 # the result of the above check is cached, subsequent module checks
   12582 	 # will erroneously keep on using the cached path to the first found
   12583 	 # Python interpreter instead of different ones.
   12584 	 unset ac_cv_path_PYTHON
   12585 
   12586 	 if test -z "$PYTHON"; then :
   12587   continue
   12588 fi
   12589 
   12590 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2" >&5
   12591 $as_echo_n "checking if $PYTHON is python2 version >= 2.7 or python3 version >= 3.2... " >&6; }
   12592 	 if "$PYTHON" -c "$testminvers" 2>/dev/null; then :
   12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12594 $as_echo "yes" >&6; }
   12595 else
   12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12597 $as_echo "no" >&6; }
   12598 		unset PYTHON
   12599 		continue
   12600 fi
   12601 
   12602 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'argparse'" >&5
   12603 $as_echo_n "checking Python module 'argparse'... " >&6; }
   12604 	 if "$PYTHON" -c "$testargparse" 2>/dev/null; then :
   12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12606 $as_echo "yes" >&6; }
   12607 else
   12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12609 $as_echo "no" >&6; }
   12610 		unset PYTHON
   12611 		continue
   12612 fi
   12613 
   12614 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'ply'" >&5
   12615 $as_echo_n "checking Python module 'ply'... " >&6; }
   12616 	 if "$PYTHON" -c "$testply" 2>/dev/null; then :
   12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12618 $as_echo "yes" >&6; }
   12619 else
   12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12621 $as_echo "no" >&6; }
   12622 		unset PYTHON
   12623 		continue
   12624 fi
   12625 
   12626 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python module 'distutils.core setup'" >&5
   12627 $as_echo_n "checking Python module 'distutils.core setup'... " >&6; }
   12628 	 if "$PYTHON" -c "$testsetup" 2>/dev/null; then :
   12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12630 $as_echo "yes" >&6; }
   12631 else
   12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12633 $as_echo "no" >&6; }
   12634 		unset PYTHON
   12635 		continue
   12636 fi
   12637 
   12638 	 # Stop looking any further once we find a Python interpreter
   12639 	 # satisfying all requirements.
   12640 	 break
   12641        done
   12642 
   12643        if test "X$PYTHON" = "X"; then :
   12644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
   12645 $as_echo_n "checking for Python support... " >&6; }
   12646 	      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12647 $as_echo "no" >&6; }
   12648 	      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
   12649 fi
   12650 fi
   12651 
   12652 PYTHON_TOOLS=''
   12653 CHECKDS=''
   12654 COVERAGE=''
   12655 KEYMGR=''
   12656 if test "X$PYTHON" != "X"; then :
   12657   PYTHON_TOOLS=python
   12658        CHECKDS=checkds
   12659        COVERAGE=coverage
   12660        KEYMGR=keymgr
   12661        PYTHON_INSTALL_DIR="$with_python_install_dir"
   12662        if test -n "$with_python_install_dir"; then :
   12663   PYTHON_INSTALL_LIB="--install-lib=$with_python_install_dir"
   12664 fi
   12665 fi
   12666 
   12667 
   12668 
   12669 
   12670 
   12671 
   12672 
   12673 #
   12674 # expanded_sysconfdir is needed for replacement in the python utilities
   12675 #
   12676 expanded_sysconfdir=`eval echo $sysconfdir`
   12677 
   12678 
   12679 #
   12680 # Make sure INSTALL uses an absolute path, else it will be wrong in all
   12681 # Makefiles, since they use make/rules.in and INSTALL will be adjusted by
   12682 # configure based on the location of the file where it is substituted.
   12683 # Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate
   12684 # subdirectory of install-sh, This relative path will be wrong for all
   12685 # directories more than one level down from install-sh.
   12686 #
   12687 case "$INSTALL" in
   12688 	/*)
   12689 		;;
   12690 	*)
   12691 		#
   12692 		# Not all systems have dirname.
   12693 		#
   12694 
   12695 		ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`"
   12696 
   12697 
   12698 		ac_prog="`echo $INSTALL | sed 's%.*/%%'`"
   12699 		test "X$ac_dir" = "X$ac_prog" && ac_dir=.
   12700 		test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`"
   12701 		INSTALL="$ac_dir/$ac_prog"
   12702 		;;
   12703 esac
   12704 
   12705 for ac_prog in pytest-3 pytest pytest-pypy
   12706 do
   12707   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12708 set dummy $ac_prog; ac_word=$2
   12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12710 $as_echo_n "checking for $ac_word... " >&6; }
   12711 if ${ac_cv_path_PYTEST+:} false; then :
   12712   $as_echo_n "(cached) " >&6
   12713 else
   12714   case $PYTEST in
   12715   [\\/]* | ?:[\\/]*)
   12716   ac_cv_path_PYTEST="$PYTEST" # Let the user override the test with a path.
   12717   ;;
   12718   *)
   12719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12720 for as_dir in $PATH
   12721 do
   12722   IFS=$as_save_IFS
   12723   test -z "$as_dir" && as_dir=.
   12724     for ac_exec_ext in '' $ac_executable_extensions; do
   12725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12726     ac_cv_path_PYTEST="$as_dir/$ac_word$ac_exec_ext"
   12727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12728     break 2
   12729   fi
   12730 done
   12731   done
   12732 IFS=$as_save_IFS
   12733 
   12734   ;;
   12735 esac
   12736 fi
   12737 PYTEST=$ac_cv_path_PYTEST
   12738 if test -n "$PYTEST"; then
   12739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTEST" >&5
   12740 $as_echo "$PYTEST" >&6; }
   12741 else
   12742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12743 $as_echo "no" >&6; }
   12744 fi
   12745 
   12746 
   12747   test -n "$PYTEST" && break
   12748 done
   12749 
   12750 if test -z "$PYTEST"; then :
   12751   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pytest not found, some system tests will be skipped" >&5
   12752 $as_echo "$as_me: WARNING: pytest not found, some system tests will be skipped" >&2;}
   12753 fi
   12754 
   12755 
   12756 
   12757 ac_ext=c
   12758 ac_cpp='$CPP $CPPFLAGS'
   12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12762 if test -n "$ac_tool_prefix"; then
   12763   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   12764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12766 $as_echo_n "checking for $ac_word... " >&6; }
   12767 if ${ac_cv_prog_CC+:} false; then :
   12768   $as_echo_n "(cached) " >&6
   12769 else
   12770   if test -n "$CC"; then
   12771   ac_cv_prog_CC="$CC" # Let the user override the test.
   12772 else
   12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12774 for as_dir in $PATH
   12775 do
   12776   IFS=$as_save_IFS
   12777   test -z "$as_dir" && as_dir=.
   12778     for ac_exec_ext in '' $ac_executable_extensions; do
   12779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12780     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   12781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12782     break 2
   12783   fi
   12784 done
   12785   done
   12786 IFS=$as_save_IFS
   12787 
   12788 fi
   12789 fi
   12790 CC=$ac_cv_prog_CC
   12791 if test -n "$CC"; then
   12792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12793 $as_echo "$CC" >&6; }
   12794 else
   12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12796 $as_echo "no" >&6; }
   12797 fi
   12798 
   12799 
   12800 fi
   12801 if test -z "$ac_cv_prog_CC"; then
   12802   ac_ct_CC=$CC
   12803   # Extract the first word of "gcc", so it can be a program name with args.
   12804 set dummy gcc; ac_word=$2
   12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12806 $as_echo_n "checking for $ac_word... " >&6; }
   12807 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   12808   $as_echo_n "(cached) " >&6
   12809 else
   12810   if test -n "$ac_ct_CC"; then
   12811   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   12812 else
   12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12814 for as_dir in $PATH
   12815 do
   12816   IFS=$as_save_IFS
   12817   test -z "$as_dir" && as_dir=.
   12818     for ac_exec_ext in '' $ac_executable_extensions; do
   12819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12820     ac_cv_prog_ac_ct_CC="gcc"
   12821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12822     break 2
   12823   fi
   12824 done
   12825   done
   12826 IFS=$as_save_IFS
   12827 
   12828 fi
   12829 fi
   12830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   12831 if test -n "$ac_ct_CC"; then
   12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   12833 $as_echo "$ac_ct_CC" >&6; }
   12834 else
   12835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12836 $as_echo "no" >&6; }
   12837 fi
   12838 
   12839   if test "x$ac_ct_CC" = x; then
   12840     CC=""
   12841   else
   12842     case $cross_compiling:$ac_tool_warned in
   12843 yes:)
   12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   12845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   12846 ac_tool_warned=yes ;;
   12847 esac
   12848     CC=$ac_ct_CC
   12849   fi
   12850 else
   12851   CC="$ac_cv_prog_CC"
   12852 fi
   12853 
   12854 if test -z "$CC"; then
   12855           if test -n "$ac_tool_prefix"; then
   12856     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   12857 set dummy ${ac_tool_prefix}cc; ac_word=$2
   12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12859 $as_echo_n "checking for $ac_word... " >&6; }
   12860 if ${ac_cv_prog_CC+:} false; then :
   12861   $as_echo_n "(cached) " >&6
   12862 else
   12863   if test -n "$CC"; then
   12864   ac_cv_prog_CC="$CC" # Let the user override the test.
   12865 else
   12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12867 for as_dir in $PATH
   12868 do
   12869   IFS=$as_save_IFS
   12870   test -z "$as_dir" && as_dir=.
   12871     for ac_exec_ext in '' $ac_executable_extensions; do
   12872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12873     ac_cv_prog_CC="${ac_tool_prefix}cc"
   12874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12875     break 2
   12876   fi
   12877 done
   12878   done
   12879 IFS=$as_save_IFS
   12880 
   12881 fi
   12882 fi
   12883 CC=$ac_cv_prog_CC
   12884 if test -n "$CC"; then
   12885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12886 $as_echo "$CC" >&6; }
   12887 else
   12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12889 $as_echo "no" >&6; }
   12890 fi
   12891 
   12892 
   12893   fi
   12894 fi
   12895 if test -z "$CC"; then
   12896   # Extract the first word of "cc", so it can be a program name with args.
   12897 set dummy cc; ac_word=$2
   12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12899 $as_echo_n "checking for $ac_word... " >&6; }
   12900 if ${ac_cv_prog_CC+:} false; then :
   12901   $as_echo_n "(cached) " >&6
   12902 else
   12903   if test -n "$CC"; then
   12904   ac_cv_prog_CC="$CC" # Let the user override the test.
   12905 else
   12906   ac_prog_rejected=no
   12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12908 for as_dir in $PATH
   12909 do
   12910   IFS=$as_save_IFS
   12911   test -z "$as_dir" && as_dir=.
   12912     for ac_exec_ext in '' $ac_executable_extensions; do
   12913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12914     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   12915        ac_prog_rejected=yes
   12916        continue
   12917      fi
   12918     ac_cv_prog_CC="cc"
   12919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12920     break 2
   12921   fi
   12922 done
   12923   done
   12924 IFS=$as_save_IFS
   12925 
   12926 if test $ac_prog_rejected = yes; then
   12927   # We found a bogon in the path, so make sure we never use it.
   12928   set dummy $ac_cv_prog_CC
   12929   shift
   12930   if test $# != 0; then
   12931     # We chose a different compiler from the bogus one.
   12932     # However, it has the same basename, so the bogon will be chosen
   12933     # first if we set CC to just the basename; use the full file name.
   12934     shift
   12935     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   12936   fi
   12937 fi
   12938 fi
   12939 fi
   12940 CC=$ac_cv_prog_CC
   12941 if test -n "$CC"; then
   12942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12943 $as_echo "$CC" >&6; }
   12944 else
   12945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12946 $as_echo "no" >&6; }
   12947 fi
   12948 
   12949 
   12950 fi
   12951 if test -z "$CC"; then
   12952   if test -n "$ac_tool_prefix"; then
   12953   for ac_prog in cl.exe
   12954   do
   12955     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   12956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12958 $as_echo_n "checking for $ac_word... " >&6; }
   12959 if ${ac_cv_prog_CC+:} false; then :
   12960   $as_echo_n "(cached) " >&6
   12961 else
   12962   if test -n "$CC"; then
   12963   ac_cv_prog_CC="$CC" # Let the user override the test.
   12964 else
   12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12966 for as_dir in $PATH
   12967 do
   12968   IFS=$as_save_IFS
   12969   test -z "$as_dir" && as_dir=.
   12970     for ac_exec_ext in '' $ac_executable_extensions; do
   12971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12972     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   12973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12974     break 2
   12975   fi
   12976 done
   12977   done
   12978 IFS=$as_save_IFS
   12979 
   12980 fi
   12981 fi
   12982 CC=$ac_cv_prog_CC
   12983 if test -n "$CC"; then
   12984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   12985 $as_echo "$CC" >&6; }
   12986 else
   12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12988 $as_echo "no" >&6; }
   12989 fi
   12990 
   12991 
   12992     test -n "$CC" && break
   12993   done
   12994 fi
   12995 if test -z "$CC"; then
   12996   ac_ct_CC=$CC
   12997   for ac_prog in cl.exe
   12998 do
   12999   # Extract the first word of "$ac_prog", so it can be a program name with args.
   13000 set dummy $ac_prog; ac_word=$2
   13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13002 $as_echo_n "checking for $ac_word... " >&6; }
   13003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   13004   $as_echo_n "(cached) " >&6
   13005 else
   13006   if test -n "$ac_ct_CC"; then
   13007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   13008 else
   13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13010 for as_dir in $PATH
   13011 do
   13012   IFS=$as_save_IFS
   13013   test -z "$as_dir" && as_dir=.
   13014     for ac_exec_ext in '' $ac_executable_extensions; do
   13015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13016     ac_cv_prog_ac_ct_CC="$ac_prog"
   13017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13018     break 2
   13019   fi
   13020 done
   13021   done
   13022 IFS=$as_save_IFS
   13023 
   13024 fi
   13025 fi
   13026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   13027 if test -n "$ac_ct_CC"; then
   13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   13029 $as_echo "$ac_ct_CC" >&6; }
   13030 else
   13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13032 $as_echo "no" >&6; }
   13033 fi
   13034 
   13035 
   13036   test -n "$ac_ct_CC" && break
   13037 done
   13038 
   13039   if test "x$ac_ct_CC" = x; then
   13040     CC=""
   13041   else
   13042     case $cross_compiling:$ac_tool_warned in
   13043 yes:)
   13044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   13045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   13046 ac_tool_warned=yes ;;
   13047 esac
   13048     CC=$ac_ct_CC
   13049   fi
   13050 fi
   13051 
   13052 fi
   13053 
   13054 
   13055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   13056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   13057 as_fn_error $? "no acceptable C compiler found in \$PATH
   13058 See \`config.log' for more details" "$LINENO" 5; }
   13059 
   13060 # Provide some information about the compiler.
   13061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   13062 set X $ac_compile
   13063 ac_compiler=$2
   13064 for ac_option in --version -v -V -qversion; do
   13065   { { ac_try="$ac_compiler $ac_option >&5"
   13066 case "(($ac_try" in
   13067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   13068   *) ac_try_echo=$ac_try;;
   13069 esac
   13070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   13071 $as_echo "$ac_try_echo"; } >&5
   13072   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   13073   ac_status=$?
   13074   if test -s conftest.err; then
   13075     sed '10a\
   13076 ... rest of stderr output deleted ...
   13077          10q' conftest.err >conftest.er1
   13078     cat conftest.er1 >&5
   13079   fi
   13080   rm -f conftest.er1 conftest.err
   13081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   13082   test $ac_status = 0; }
   13083 done
   13084 
   13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   13086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   13087 if ${ac_cv_c_compiler_gnu+:} false; then :
   13088   $as_echo_n "(cached) " >&6
   13089 else
   13090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13091 /* end confdefs.h.  */
   13092 
   13093 int
   13094 main ()
   13095 {
   13096 #ifndef __GNUC__
   13097        choke me
   13098 #endif
   13099 
   13100   ;
   13101   return 0;
   13102 }
   13103 _ACEOF
   13104 if ac_fn_c_try_compile "$LINENO"; then :
   13105   ac_compiler_gnu=yes
   13106 else
   13107   ac_compiler_gnu=no
   13108 fi
   13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   13111 
   13112 fi
   13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   13114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   13115 if test $ac_compiler_gnu = yes; then
   13116   GCC=yes
   13117 else
   13118   GCC=
   13119 fi
   13120 ac_test_CFLAGS=${CFLAGS+set}
   13121 ac_save_CFLAGS=$CFLAGS
   13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   13123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   13124 if ${ac_cv_prog_cc_g+:} false; then :
   13125   $as_echo_n "(cached) " >&6
   13126 else
   13127   ac_save_c_werror_flag=$ac_c_werror_flag
   13128    ac_c_werror_flag=yes
   13129    ac_cv_prog_cc_g=no
   13130    CFLAGS="-g"
   13131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13132 /* end confdefs.h.  */
   13133 
   13134 int
   13135 main ()
   13136 {
   13137 
   13138   ;
   13139   return 0;
   13140 }
   13141 _ACEOF
   13142 if ac_fn_c_try_compile "$LINENO"; then :
   13143   ac_cv_prog_cc_g=yes
   13144 else
   13145   CFLAGS=""
   13146       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13147 /* end confdefs.h.  */
   13148 
   13149 int
   13150 main ()
   13151 {
   13152 
   13153   ;
   13154   return 0;
   13155 }
   13156 _ACEOF
   13157 if ac_fn_c_try_compile "$LINENO"; then :
   13158 
   13159 else
   13160   ac_c_werror_flag=$ac_save_c_werror_flag
   13161 	 CFLAGS="-g"
   13162 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13163 /* end confdefs.h.  */
   13164 
   13165 int
   13166 main ()
   13167 {
   13168 
   13169   ;
   13170   return 0;
   13171 }
   13172 _ACEOF
   13173 if ac_fn_c_try_compile "$LINENO"; then :
   13174   ac_cv_prog_cc_g=yes
   13175 fi
   13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13177 fi
   13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13179 fi
   13180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13181    ac_c_werror_flag=$ac_save_c_werror_flag
   13182 fi
   13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   13184 $as_echo "$ac_cv_prog_cc_g" >&6; }
   13185 if test "$ac_test_CFLAGS" = set; then
   13186   CFLAGS=$ac_save_CFLAGS
   13187 elif test $ac_cv_prog_cc_g = yes; then
   13188   if test "$GCC" = yes; then
   13189     CFLAGS="-g -O2"
   13190   else
   13191     CFLAGS="-g"
   13192   fi
   13193 else
   13194   if test "$GCC" = yes; then
   13195     CFLAGS="-O2"
   13196   else
   13197     CFLAGS=
   13198   fi
   13199 fi
   13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   13201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   13202 if ${ac_cv_prog_cc_c89+:} false; then :
   13203   $as_echo_n "(cached) " >&6
   13204 else
   13205   ac_cv_prog_cc_c89=no
   13206 ac_save_CC=$CC
   13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13208 /* end confdefs.h.  */
   13209 #include <stdarg.h>
   13210 #include <stdio.h>
   13211 struct stat;
   13212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   13213 struct buf { int x; };
   13214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   13215 static char *e (p, i)
   13216      char **p;
   13217      int i;
   13218 {
   13219   return p[i];
   13220 }
   13221 static char *f (char * (*g) (char **, int), char **p, ...)
   13222 {
   13223   char *s;
   13224   va_list v;
   13225   va_start (v,p);
   13226   s = g (p, va_arg (v,int));
   13227   va_end (v);
   13228   return s;
   13229 }
   13230 
   13231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   13232    function prototypes and stuff, but not '\xHH' hex character constants.
   13233    These don't provoke an error unfortunately, instead are silently treated
   13234    as 'x'.  The following induces an error, until -std is added to get
   13235    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   13236    array size at least.  It's necessary to write '\x00'==0 to get something
   13237    that's true only with -std.  */
   13238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   13239 
   13240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   13241    inside strings and character constants.  */
   13242 #define FOO(x) 'x'
   13243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   13244 
   13245 int test (int i, double x);
   13246 struct s1 {int (*f) (int a);};
   13247 struct s2 {int (*f) (double a);};
   13248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   13249 int argc;
   13250 char **argv;
   13251 int
   13252 main ()
   13253 {
   13254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   13255   ;
   13256   return 0;
   13257 }
   13258 _ACEOF
   13259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   13260 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   13261 do
   13262   CC="$ac_save_CC $ac_arg"
   13263   if ac_fn_c_try_compile "$LINENO"; then :
   13264   ac_cv_prog_cc_c89=$ac_arg
   13265 fi
   13266 rm -f core conftest.err conftest.$ac_objext
   13267   test "x$ac_cv_prog_cc_c89" != "xno" && break
   13268 done
   13269 rm -f conftest.$ac_ext
   13270 CC=$ac_save_CC
   13271 
   13272 fi
   13273 # AC_CACHE_VAL
   13274 case "x$ac_cv_prog_cc_c89" in
   13275   x)
   13276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13277 $as_echo "none needed" >&6; } ;;
   13278   xno)
   13279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13280 $as_echo "unsupported" >&6; } ;;
   13281   *)
   13282     CC="$CC $ac_cv_prog_cc_c89"
   13283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   13284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   13285 esac
   13286 if test "x$ac_cv_prog_cc_c89" != xno; then :
   13287 
   13288 fi
   13289 
   13290 ac_ext=c
   13291 ac_cpp='$CPP $CPPFLAGS'
   13292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13295 
   13296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
   13297 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
   13298 if ${ac_cv_prog_cc_c99+:} false; then :
   13299   $as_echo_n "(cached) " >&6
   13300 else
   13301   ac_cv_prog_cc_c99=no
   13302 ac_save_CC=$CC
   13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13304 /* end confdefs.h.  */
   13305 #include <stdarg.h>
   13306 #include <stdbool.h>
   13307 #include <stdlib.h>
   13308 #include <wchar.h>
   13309 #include <stdio.h>
   13310 
   13311 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
   13312 #define debug(...) fprintf (stderr, __VA_ARGS__)
   13313 #define showlist(...) puts (#__VA_ARGS__)
   13314 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
   13315 static void
   13316 test_varargs_macros (void)
   13317 {
   13318   int x = 1234;
   13319   int y = 5678;
   13320   debug ("Flag");
   13321   debug ("X = %d\n", x);
   13322   showlist (The first, second, and third items.);
   13323   report (x>y, "x is %d but y is %d", x, y);
   13324 }
   13325 
   13326 // Check long long types.
   13327 #define BIG64 18446744073709551615ull
   13328 #define BIG32 4294967295ul
   13329 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
   13330 #if !BIG_OK
   13331   your preprocessor is broken;
   13332 #endif
   13333 #if BIG_OK
   13334 #else
   13335   your preprocessor is broken;
   13336 #endif
   13337 static long long int bignum = -9223372036854775807LL;
   13338 static unsigned long long int ubignum = BIG64;
   13339 
   13340 struct incomplete_array
   13341 {
   13342   int datasize;
   13343   double data[];
   13344 };
   13345 
   13346 struct named_init {
   13347   int number;
   13348   const wchar_t *name;
   13349   double average;
   13350 };
   13351 
   13352 typedef const char *ccp;
   13353 
   13354 static inline int
   13355 test_restrict (ccp restrict text)
   13356 {
   13357   // See if C++-style comments work.
   13358   // Iterate through items via the restricted pointer.
   13359   // Also check for declarations in for loops.
   13360   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
   13361     continue;
   13362   return 0;
   13363 }
   13364 
   13365 // Check varargs and va_copy.
   13366 static void
   13367 test_varargs (const char *format, ...)
   13368 {
   13369   va_list args;
   13370   va_start (args, format);
   13371   va_list args_copy;
   13372   va_copy (args_copy, args);
   13373 
   13374   const char *str;
   13375   int number;
   13376   float fnumber;
   13377 
   13378   while (*format)
   13379     {
   13380       switch (*format++)
   13381 	{
   13382 	case 's': // string
   13383 	  str = va_arg (args_copy, const char *);
   13384 	  break;
   13385 	case 'd': // int
   13386 	  number = va_arg (args_copy, int);
   13387 	  break;
   13388 	case 'f': // float
   13389 	  fnumber = va_arg (args_copy, double);
   13390 	  break;
   13391 	default:
   13392 	  break;
   13393 	}
   13394     }
   13395   va_end (args_copy);
   13396   va_end (args);
   13397 }
   13398 
   13399 int
   13400 main ()
   13401 {
   13402 
   13403   // Check bool.
   13404   _Bool success = false;
   13405 
   13406   // Check restrict.
   13407   if (test_restrict ("String literal") == 0)
   13408     success = true;
   13409   char *restrict newvar = "Another string";
   13410 
   13411   // Check varargs.
   13412   test_varargs ("s, d' f .", "string", 65, 34.234);
   13413   test_varargs_macros ();
   13414 
   13415   // Check flexible array members.
   13416   struct incomplete_array *ia =
   13417     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
   13418   ia->datasize = 10;
   13419   for (int i = 0; i < ia->datasize; ++i)
   13420     ia->data[i] = i * 1.234;
   13421 
   13422   // Check named initializers.
   13423   struct named_init ni = {
   13424     .number = 34,
   13425     .name = L"Test wide string",
   13426     .average = 543.34343,
   13427   };
   13428 
   13429   ni.number = 58;
   13430 
   13431   int dynamic_array[ni.number];
   13432   dynamic_array[ni.number - 1] = 543;
   13433 
   13434   // work around unused variable warnings
   13435   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
   13436 	  || dynamic_array[ni.number - 1] != 543);
   13437 
   13438   ;
   13439   return 0;
   13440 }
   13441 _ACEOF
   13442 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
   13443 do
   13444   CC="$ac_save_CC $ac_arg"
   13445   if ac_fn_c_try_compile "$LINENO"; then :
   13446   ac_cv_prog_cc_c99=$ac_arg
   13447 fi
   13448 rm -f core conftest.err conftest.$ac_objext
   13449   test "x$ac_cv_prog_cc_c99" != "xno" && break
   13450 done
   13451 rm -f conftest.$ac_ext
   13452 CC=$ac_save_CC
   13453 
   13454 fi
   13455 # AC_CACHE_VAL
   13456 case "x$ac_cv_prog_cc_c99" in
   13457   x)
   13458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   13459 $as_echo "none needed" >&6; } ;;
   13460   xno)
   13461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   13462 $as_echo "unsupported" >&6; } ;;
   13463   *)
   13464     CC="$CC $ac_cv_prog_cc_c99"
   13465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
   13466 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
   13467 esac
   13468 if test "x$ac_cv_prog_cc_c99" != xno; then :
   13469 
   13470 fi
   13471 
   13472 
   13473 
   13474 #
   13475 # Using Solaris linker with gcc on Solaris breaks Thread Local Storage
   13476 #
   13477 case $host in #(
   13478   *-solaris*) :
   13479 
   13480 	    if test "$GCC" = "yes"; then :
   13481   LDFLAGS="$LDFLAGS -zrelax=transtls"
   13482 		   { $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
   13483 $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;}
   13484 
   13485 fi
   13486 	 ;; #(
   13487   *) :
   13488      ;;
   13489 esac
   13490 
   13491 #
   13492 # CCNOOPT defaults to -O0 on gcc and disables optimization when is last
   13493 #
   13494 if test "X$CCNOOPT" = "X" -a "X$GCC" = "Xyes"; then
   13495 	CCNOOPT="-O0"
   13496 fi
   13497 
   13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   13499 $as_echo_n "checking for ANSI C header files... " >&6; }
   13500 if ${ac_cv_header_stdc+:} false; then :
   13501   $as_echo_n "(cached) " >&6
   13502 else
   13503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13504 /* end confdefs.h.  */
   13505 #include <stdlib.h>
   13506 #include <stdarg.h>
   13507 #include <string.h>
   13508 #include <float.h>
   13509 
   13510 int
   13511 main ()
   13512 {
   13513 
   13514   ;
   13515   return 0;
   13516 }
   13517 _ACEOF
   13518 if ac_fn_c_try_compile "$LINENO"; then :
   13519   ac_cv_header_stdc=yes
   13520 else
   13521   ac_cv_header_stdc=no
   13522 fi
   13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13524 
   13525 if test $ac_cv_header_stdc = yes; then
   13526   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   13527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13528 /* end confdefs.h.  */
   13529 #include <string.h>
   13530 
   13531 _ACEOF
   13532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13533   $EGREP "memchr" >/dev/null 2>&1; then :
   13534 
   13535 else
   13536   ac_cv_header_stdc=no
   13537 fi
   13538 rm -f conftest*
   13539 
   13540 fi
   13541 
   13542 if test $ac_cv_header_stdc = yes; then
   13543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   13544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13545 /* end confdefs.h.  */
   13546 #include <stdlib.h>
   13547 
   13548 _ACEOF
   13549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13550   $EGREP "free" >/dev/null 2>&1; then :
   13551 
   13552 else
   13553   ac_cv_header_stdc=no
   13554 fi
   13555 rm -f conftest*
   13556 
   13557 fi
   13558 
   13559 if test $ac_cv_header_stdc = yes; then
   13560   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   13561   if test "$cross_compiling" = yes; then :
   13562   :
   13563 else
   13564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13565 /* end confdefs.h.  */
   13566 #include <ctype.h>
   13567 #include <stdlib.h>
   13568 #if ((' ' & 0x0FF) == 0x020)
   13569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   13570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   13571 #else
   13572 # define ISLOWER(c) \
   13573 		   (('a' <= (c) && (c) <= 'i') \
   13574 		     || ('j' <= (c) && (c) <= 'r') \
   13575 		     || ('s' <= (c) && (c) <= 'z'))
   13576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   13577 #endif
   13578 
   13579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   13580 int
   13581 main ()
   13582 {
   13583   int i;
   13584   for (i = 0; i < 256; i++)
   13585     if (XOR (islower (i), ISLOWER (i))
   13586 	|| toupper (i) != TOUPPER (i))
   13587       return 2;
   13588   return 0;
   13589 }
   13590 _ACEOF
   13591 if ac_fn_c_try_run "$LINENO"; then :
   13592 
   13593 else
   13594   ac_cv_header_stdc=no
   13595 fi
   13596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13597   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13598 fi
   13599 
   13600 fi
   13601 fi
   13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   13603 $as_echo "$ac_cv_header_stdc" >&6; }
   13604 if test $ac_cv_header_stdc = yes; then
   13605 
   13606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   13607 
   13608 fi
   13609 
   13610 
   13611 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
   13612 do :
   13613   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   13615 #ifdef HAVE_SYS_PARAM_H
   13616 # include <sys/param.h>
   13617 #endif
   13618 #ifdef HAVE_SYS_SOCKET_H
   13619 # include <sys/socket.h>
   13620 #endif
   13621 
   13622 "
   13623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13624   cat >>confdefs.h <<_ACEOF
   13625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13626 _ACEOF
   13627 
   13628 fi
   13629 
   13630 done
   13631 
   13632 
   13633 #
   13634 # Check for thread local storage
   13635 #
   13636 for ac_header in threads.h
   13637 do :
   13638   ac_fn_c_check_header_mongrel "$LINENO" "threads.h" "ac_cv_header_threads_h" "$ac_includes_default"
   13639 if test "x$ac_cv_header_threads_h" = xyes; then :
   13640   cat >>confdefs.h <<_ACEOF
   13641 #define HAVE_THREADS_H 1
   13642 _ACEOF
   13643 
   13644 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 Thread-Local Storage using thread_local" >&5
   13645 $as_echo_n "checking for C11 Thread-Local Storage using thread_local... " >&6; }
   13646 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13647 /* end confdefs.h.  */
   13648 
   13649 				  #include <threads.h>
   13650 
   13651 int
   13652 main ()
   13653 {
   13654 
   13655 				  static thread_local int tls = 0;
   13656 				  return (tls);
   13657 
   13658   ;
   13659   return 0;
   13660 }
   13661 
   13662 _ACEOF
   13663 if ac_fn_c_try_compile "$LINENO"; then :
   13664 
   13665 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13666 $as_echo "yes" >&6; }
   13667 
   13668 $as_echo "#define HAVE_THREAD_LOCAL 1" >>confdefs.h
   13669 
   13670 
   13671 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13672 
   13673 
   13674 else
   13675 
   13676 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13677 
   13678 fi
   13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13680 
   13681 else
   13682 
   13683 		     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Thread-Local Storage using __thread" >&5
   13684 $as_echo_n "checking for Thread-Local Storage using __thread... " >&6; }
   13685 		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13686 /* end confdefs.h.  */
   13687 
   13688 
   13689 int
   13690 main ()
   13691 {
   13692 
   13693 				  static __thread int tls = 0;
   13694 				  return (tls);
   13695 
   13696   ;
   13697   return 0;
   13698 }
   13699 
   13700 _ACEOF
   13701 if ac_fn_c_try_compile "$LINENO"; then :
   13702 
   13703 			     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13704 $as_echo "yes" >&6; }
   13705 
   13706 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
   13707 
   13708 
   13709 $as_echo "#define HAVE_TLS 1" >>confdefs.h
   13710 
   13711 
   13712 else
   13713 
   13714 			     as_fn_error $? "Thread Local Storage support required, update your toolchain to build BIND 9" "$LINENO" 5
   13715 
   13716 fi
   13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13718 
   13719 fi
   13720 
   13721 done
   13722 
   13723 
   13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   13725 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   13726 if ${ac_cv_c_const+:} false; then :
   13727   $as_echo_n "(cached) " >&6
   13728 else
   13729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13730 /* end confdefs.h.  */
   13731 
   13732 int
   13733 main ()
   13734 {
   13735 
   13736 #ifndef __cplusplus
   13737   /* Ultrix mips cc rejects this sort of thing.  */
   13738   typedef int charset[2];
   13739   const charset cs = { 0, 0 };
   13740   /* SunOS 4.1.1 cc rejects this.  */
   13741   char const *const *pcpcc;
   13742   char **ppc;
   13743   /* NEC SVR4.0.2 mips cc rejects this.  */
   13744   struct point {int x, y;};
   13745   static struct point const zero = {0,0};
   13746   /* AIX XL C 1.02.0.0 rejects this.
   13747      It does not let you subtract one const X* pointer from another in
   13748      an arm of an if-expression whose if-part is not a constant
   13749      expression */
   13750   const char *g = "string";
   13751   pcpcc = &g + (g ? g-g : 0);
   13752   /* HPUX 7.0 cc rejects these. */
   13753   ++pcpcc;
   13754   ppc = (char**) pcpcc;
   13755   pcpcc = (char const *const *) ppc;
   13756   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   13757     char tx;
   13758     char *t = &tx;
   13759     char const *s = 0 ? (char *) 0 : (char const *) 0;
   13760 
   13761     *t++ = 0;
   13762     if (s) return 0;
   13763   }
   13764   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   13765     int x[] = {25, 17};
   13766     const int *foo = &x[0];
   13767     ++foo;
   13768   }
   13769   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   13770     typedef const int *iptr;
   13771     iptr p = 0;
   13772     ++p;
   13773   }
   13774   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   13775        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   13776     struct s { int j; const int *ap[3]; } bx;
   13777     struct s *b = &bx; b->j = 5;
   13778   }
   13779   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   13780     const int foo = 10;
   13781     if (!foo) return 0;
   13782   }
   13783   return !cs[0] && !zero.x;
   13784 #endif
   13785 
   13786   ;
   13787   return 0;
   13788 }
   13789 _ACEOF
   13790 if ac_fn_c_try_compile "$LINENO"; then :
   13791   ac_cv_c_const=yes
   13792 else
   13793   ac_cv_c_const=no
   13794 fi
   13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13796 fi
   13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   13798 $as_echo "$ac_cv_c_const" >&6; }
   13799 if test $ac_cv_c_const = no; then
   13800 
   13801 $as_echo "#define const /**/" >>confdefs.h
   13802 
   13803 fi
   13804 
   13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   13806 $as_echo_n "checking for inline... " >&6; }
   13807 if ${ac_cv_c_inline+:} false; then :
   13808   $as_echo_n "(cached) " >&6
   13809 else
   13810   ac_cv_c_inline=no
   13811 for ac_kw in inline __inline__ __inline; do
   13812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13813 /* end confdefs.h.  */
   13814 #ifndef __cplusplus
   13815 typedef int foo_t;
   13816 static $ac_kw foo_t static_foo () {return 0; }
   13817 $ac_kw foo_t foo () {return 0; }
   13818 #endif
   13819 
   13820 _ACEOF
   13821 if ac_fn_c_try_compile "$LINENO"; then :
   13822   ac_cv_c_inline=$ac_kw
   13823 fi
   13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13825   test "$ac_cv_c_inline" != no && break
   13826 done
   13827 
   13828 fi
   13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   13830 $as_echo "$ac_cv_c_inline" >&6; }
   13831 
   13832 case $ac_cv_c_inline in
   13833   inline | yes) ;;
   13834   *)
   13835     case $ac_cv_c_inline in
   13836       no) ac_val=;;
   13837       *) ac_val=$ac_cv_c_inline;;
   13838     esac
   13839     cat >>confdefs.h <<_ACEOF
   13840 #ifndef __cplusplus
   13841 #define inline $ac_val
   13842 #endif
   13843 _ACEOF
   13844     ;;
   13845 esac
   13846 
   13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
   13848 $as_echo_n "checking for working volatile... " >&6; }
   13849 if ${ac_cv_c_volatile+:} false; then :
   13850   $as_echo_n "(cached) " >&6
   13851 else
   13852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13853 /* end confdefs.h.  */
   13854 
   13855 int
   13856 main ()
   13857 {
   13858 
   13859 volatile int x;
   13860 int * volatile y = (int *) 0;
   13861 return !x && !y;
   13862   ;
   13863   return 0;
   13864 }
   13865 _ACEOF
   13866 if ac_fn_c_try_compile "$LINENO"; then :
   13867   ac_cv_c_volatile=yes
   13868 else
   13869   ac_cv_c_volatile=no
   13870 fi
   13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13872 fi
   13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
   13874 $as_echo "$ac_cv_c_volatile" >&6; }
   13875 if test $ac_cv_c_volatile = no; then
   13876 
   13877 $as_echo "#define volatile /**/" >>confdefs.h
   13878 
   13879 fi
   13880 
   13881 
   13882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
   13883 $as_echo_n "checking for flexible array members... " >&6; }
   13884 if ${ac_cv_c_flexmember+:} false; then :
   13885   $as_echo_n "(cached) " >&6
   13886 else
   13887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13888 /* end confdefs.h.  */
   13889 #include <stdlib.h>
   13890 	    #include <stdio.h>
   13891 	    #include <stddef.h>
   13892 	    struct s { int n; double d[]; };
   13893 int
   13894 main ()
   13895 {
   13896 int m = getchar ();
   13897 	    struct s *p = malloc (offsetof (struct s, d)
   13898 				  + m * sizeof (double));
   13899 	    p->d[0] = 0.0;
   13900 	    return p->d != (double *) NULL;
   13901   ;
   13902   return 0;
   13903 }
   13904 _ACEOF
   13905 if ac_fn_c_try_compile "$LINENO"; then :
   13906   ac_cv_c_flexmember=yes
   13907 else
   13908   ac_cv_c_flexmember=no
   13909 fi
   13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13911 fi
   13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
   13913 $as_echo "$ac_cv_c_flexmember" >&6; }
   13914   if test $ac_cv_c_flexmember = yes; then
   13915 
   13916 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
   13917 
   13918   else
   13919     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
   13920 
   13921   fi
   13922 
   13923 
   13924 #
   13925 # Check for yield support on ARM processors
   13926 #
   13927 case $host in #(
   13928   arm*) :
   13929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yield instruction support" >&5
   13930 $as_echo_n "checking for yield instruction support... " >&6; }
   13931 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13932 /* end confdefs.h.  */
   13933 
   13934 int
   13935 main ()
   13936 {
   13937 __asm__ __volatile__ ("yield")
   13938   ;
   13939   return 0;
   13940 }
   13941 _ACEOF
   13942 if ac_fn_c_try_compile "$LINENO"; then :
   13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13944 $as_echo "yes" >&6; }
   13945 
   13946 $as_echo "#define HAVE_ARM_YIELD 1" >>confdefs.h
   13947 
   13948 else
   13949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13950 $as_echo "no" >&6; }
   13951 fi
   13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13953   *) :
   13954      ;;
   13955 esac
   13956 
   13957 #
   13958 # Check for pause support on SPARC processors
   13959 #
   13960 case $host in #(
   13961   sparc*) :
   13962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause instruction support" >&5
   13963 $as_echo_n "checking for pause instruction support... " >&6; }
   13964 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13965 /* end confdefs.h.  */
   13966 
   13967 int
   13968 main ()
   13969 {
   13970 __asm__ __volatile__ ("pause")
   13971   ;
   13972   return 0;
   13973 }
   13974 _ACEOF
   13975 if ac_fn_c_try_compile "$LINENO"; then :
   13976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13977 $as_echo "yes" >&6; }
   13978 
   13979 $as_echo "#define HAVE_SPARC_PAUSE 1" >>confdefs.h
   13980 
   13981 else
   13982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13983 $as_echo "no" >&6; }
   13984 fi
   13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   13986   *) :
   13987      ;;
   13988 esac
   13989 
   13990 for ac_func in sysctlbyname
   13991 do :
   13992   ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
   13993 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
   13994   cat >>confdefs.h <<_ACEOF
   13995 #define HAVE_SYSCTLBYNAME 1
   13996 _ACEOF
   13997 
   13998 fi
   13999 done
   14000 
   14001 
   14002 #
   14003 # Check for the existence of mmap to enable the fast format zones
   14004 #
   14005 for ac_func in mmap
   14006 do :
   14007   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
   14008 if test "x$ac_cv_func_mmap" = xyes; then :
   14009   cat >>confdefs.h <<_ACEOF
   14010 #define HAVE_MMAP 1
   14011 _ACEOF
   14012 
   14013 fi
   14014 done
   14015 
   14016 
   14017 #
   14018 # Older versions of HP/UX don't define seteuid() and setegid()
   14019 #
   14020 for ac_func in seteuid setresuid
   14021 do :
   14022   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14025   cat >>confdefs.h <<_ACEOF
   14026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14027 _ACEOF
   14028 
   14029 fi
   14030 done
   14031 
   14032 for ac_func in setegid setresgid
   14033 do :
   14034   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14037   cat >>confdefs.h <<_ACEOF
   14038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14039 _ACEOF
   14040 
   14041 fi
   14042 done
   14043 
   14044 
   14045 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   14046 if test "x$ac_cv_type_size_t" = xyes; then :
   14047 
   14048 else
   14049 
   14050 cat >>confdefs.h <<_ACEOF
   14051 #define size_t unsigned int
   14052 _ACEOF
   14053 
   14054 fi
   14055 
   14056 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
   14057 if test "x$ac_cv_type_ssize_t" = xyes; then :
   14058 
   14059 else
   14060 
   14061 cat >>confdefs.h <<_ACEOF
   14062 #define ssize_t int
   14063 _ACEOF
   14064 
   14065 fi
   14066 
   14067 
   14068   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
   14069 if test "x$ac_cv_type_uintptr_t" = xyes; then :
   14070 
   14071 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
   14072 
   14073 else
   14074   for ac_type in 'unsigned int' 'unsigned long int' \
   14075 	'unsigned long long int'; do
   14076        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14077 /* end confdefs.h.  */
   14078 $ac_includes_default
   14079 int
   14080 main ()
   14081 {
   14082 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
   14083 test_array [0] = 0;
   14084 return test_array [0];
   14085 
   14086   ;
   14087   return 0;
   14088 }
   14089 _ACEOF
   14090 if ac_fn_c_try_compile "$LINENO"; then :
   14091 
   14092 cat >>confdefs.h <<_ACEOF
   14093 #define uintptr_t $ac_type
   14094 _ACEOF
   14095 
   14096 	  ac_type=
   14097 fi
   14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14099        test -z "$ac_type" && break
   14100      done
   14101 fi
   14102 
   14103 
   14104 
   14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
   14106 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
   14107 if ${ac_cv_header_time+:} false; then :
   14108   $as_echo_n "(cached) " >&6
   14109 else
   14110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14111 /* end confdefs.h.  */
   14112 #include <sys/types.h>
   14113 #include <sys/time.h>
   14114 #include <time.h>
   14115 
   14116 int
   14117 main ()
   14118 {
   14119 if ((struct tm *) 0)
   14120 return 0;
   14121   ;
   14122   return 0;
   14123 }
   14124 _ACEOF
   14125 if ac_fn_c_try_compile "$LINENO"; then :
   14126   ac_cv_header_time=yes
   14127 else
   14128   ac_cv_header_time=no
   14129 fi
   14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14131 fi
   14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
   14133 $as_echo "$ac_cv_header_time" >&6; }
   14134 if test $ac_cv_header_time = yes; then
   14135 
   14136 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
   14137 
   14138 fi
   14139 
   14140 
   14141 #
   14142 # check for uname library routine
   14143 #
   14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uname" >&5
   14145 $as_echo_n "checking for uname... " >&6; }
   14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14147 /* end confdefs.h.  */
   14148 #include <sys/utsname.h>
   14149        #include <stdio.h>
   14150 
   14151 int
   14152 main ()
   14153 {
   14154 
   14155        struct utsname uts;
   14156        uname(&uts);
   14157        printf("running on %s %s %s for %s\n",
   14158 	      uts.sysname, uts.release, uts.version, uts.machine);
   14159 
   14160   ;
   14161   return 0;
   14162 }
   14163 _ACEOF
   14164 if ac_fn_c_try_compile "$LINENO"; then :
   14165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14166 $as_echo "yes" >&6; }
   14167 
   14168 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
   14169 
   14170 
   14171 else
   14172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14173 $as_echo "no" >&6; }
   14174    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uname is not correctly supported" >&5
   14175 $as_echo "$as_me: WARNING: uname is not correctly supported" >&2;}
   14176 
   14177 fi
   14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14179 
   14180 #
   14181 # check for GCC noreturn attribute
   14182 #
   14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC noreturn attribute" >&5
   14184 $as_echo_n "checking for GCC noreturn attribute... " >&6; }
   14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14186 /* end confdefs.h.  */
   14187 
   14188 int
   14189 main ()
   14190 {
   14191 void foo() __attribute__((noreturn));
   14192   ;
   14193   return 0;
   14194 }
   14195 _ACEOF
   14196 if ac_fn_c_try_compile "$LINENO"; then :
   14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14198 $as_echo "yes" >&6; }
   14199 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14200 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST __attribute__((noreturn))"
   14201 else
   14202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14203 $as_echo "no" >&6; }
   14204 		ISC_PLATFORM_NORETURN_PRE="#define ISC_PLATFORM_NORETURN_PRE"
   14205 		ISC_PLATFORM_NORETURN_POST="#define ISC_PLATFORM_NORETURN_POST"
   14206 fi
   14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14208 
   14209 
   14210 
   14211 #
   14212 # check if we have kqueue
   14213 #
   14214 # Check whether --enable-kqueue was given.
   14215 if test "${enable_kqueue+set}" = set; then :
   14216   enableval=$enable_kqueue;
   14217 else
   14218   enable_kqueue="yes"
   14219 fi
   14220 
   14221 
   14222 if test "$enable_kqueue" = "yes"; then :
   14223   for ac_func in kqueue
   14224 do :
   14225   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
   14226 if test "x$ac_cv_func_kqueue" = xyes; then :
   14227   cat >>confdefs.h <<_ACEOF
   14228 #define HAVE_KQUEUE 1
   14229 _ACEOF
   14230 
   14231 fi
   14232 done
   14233 
   14234 fi
   14235 
   14236 #
   14237 # check if we have epoll.  Linux kernel 2.4 has epoll_create() which fails,
   14238 # so we need to try running the code, not just test its existence.
   14239 #
   14240 # Check whether --enable-epoll was given.
   14241 if test "${enable_epoll+set}" = set; then :
   14242   enableval=$enable_epoll;
   14243 else
   14244   enable_epoll="yes"
   14245 fi
   14246 
   14247 
   14248 if test "$enable_epoll" = "yes"; then :
   14249   for ac_func in epoll_create1
   14250 do :
   14251   ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
   14252 if test "x$ac_cv_func_epoll_create1" = xyes; then :
   14253   cat >>confdefs.h <<_ACEOF
   14254 #define HAVE_EPOLL_CREATE1 1
   14255 _ACEOF
   14256 
   14257 fi
   14258 done
   14259 
   14260 fi
   14261 
   14262 #
   14263 # check if we support /dev/poll
   14264 #
   14265 # Check whether --enable-devpoll was given.
   14266 if test "${enable_devpoll+set}" = set; then :
   14267   enableval=$enable_devpoll;
   14268 else
   14269   enable_devpoll="yes"
   14270 fi
   14271 
   14272 if test "$enable_devpoll" = "yes"; then :
   14273   for ac_header in sys/devpoll.h devpoll.h
   14274 do :
   14275   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   14276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   14277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   14278   cat >>confdefs.h <<_ACEOF
   14279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   14280 _ACEOF
   14281 
   14282 fi
   14283 
   14284 done
   14285 
   14286 fi
   14287 
   14288 #
   14289 # Find the machine's endian flavor.
   14290 #
   14291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   14292 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   14293 if ${ac_cv_c_bigendian+:} false; then :
   14294   $as_echo_n "(cached) " >&6
   14295 else
   14296   ac_cv_c_bigendian=unknown
   14297     # See if we're dealing with a universal compiler.
   14298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14299 /* end confdefs.h.  */
   14300 #ifndef __APPLE_CC__
   14301 	       not a universal capable compiler
   14302 	     #endif
   14303 	     typedef int dummy;
   14304 
   14305 _ACEOF
   14306 if ac_fn_c_try_compile "$LINENO"; then :
   14307 
   14308 	# Check for potential -arch flags.  It is not universal unless
   14309 	# there are at least two -arch flags with different values.
   14310 	ac_arch=
   14311 	ac_prev=
   14312 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   14313 	 if test -n "$ac_prev"; then
   14314 	   case $ac_word in
   14315 	     i?86 | x86_64 | ppc | ppc64)
   14316 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   14317 		 ac_arch=$ac_word
   14318 	       else
   14319 		 ac_cv_c_bigendian=universal
   14320 		 break
   14321 	       fi
   14322 	       ;;
   14323 	   esac
   14324 	   ac_prev=
   14325 	 elif test "x$ac_word" = "x-arch"; then
   14326 	   ac_prev=arch
   14327 	 fi
   14328        done
   14329 fi
   14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14331     if test $ac_cv_c_bigendian = unknown; then
   14332       # See if sys/param.h defines the BYTE_ORDER macro.
   14333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14334 /* end confdefs.h.  */
   14335 #include <sys/types.h>
   14336 	     #include <sys/param.h>
   14337 
   14338 int
   14339 main ()
   14340 {
   14341 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   14342 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   14343 		     && LITTLE_ENDIAN)
   14344 	      bogus endian macros
   14345 	     #endif
   14346 
   14347   ;
   14348   return 0;
   14349 }
   14350 _ACEOF
   14351 if ac_fn_c_try_compile "$LINENO"; then :
   14352   # It does; now see whether it defined to BIG_ENDIAN or not.
   14353 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14354 /* end confdefs.h.  */
   14355 #include <sys/types.h>
   14356 		#include <sys/param.h>
   14357 
   14358 int
   14359 main ()
   14360 {
   14361 #if BYTE_ORDER != BIG_ENDIAN
   14362 		 not big endian
   14363 		#endif
   14364 
   14365   ;
   14366   return 0;
   14367 }
   14368 _ACEOF
   14369 if ac_fn_c_try_compile "$LINENO"; then :
   14370   ac_cv_c_bigendian=yes
   14371 else
   14372   ac_cv_c_bigendian=no
   14373 fi
   14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14375 fi
   14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14377     fi
   14378     if test $ac_cv_c_bigendian = unknown; then
   14379       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   14380       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14381 /* end confdefs.h.  */
   14382 #include <limits.h>
   14383 
   14384 int
   14385 main ()
   14386 {
   14387 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   14388 	      bogus endian macros
   14389 	     #endif
   14390 
   14391   ;
   14392   return 0;
   14393 }
   14394 _ACEOF
   14395 if ac_fn_c_try_compile "$LINENO"; then :
   14396   # It does; now see whether it defined to _BIG_ENDIAN or not.
   14397 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14398 /* end confdefs.h.  */
   14399 #include <limits.h>
   14400 
   14401 int
   14402 main ()
   14403 {
   14404 #ifndef _BIG_ENDIAN
   14405 		 not big endian
   14406 		#endif
   14407 
   14408   ;
   14409   return 0;
   14410 }
   14411 _ACEOF
   14412 if ac_fn_c_try_compile "$LINENO"; then :
   14413   ac_cv_c_bigendian=yes
   14414 else
   14415   ac_cv_c_bigendian=no
   14416 fi
   14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14418 fi
   14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14420     fi
   14421     if test $ac_cv_c_bigendian = unknown; then
   14422       # Compile a test program.
   14423       if test "$cross_compiling" = yes; then :
   14424   # Try to guess by grepping values from an object file.
   14425 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14426 /* end confdefs.h.  */
   14427 short int ascii_mm[] =
   14428 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   14429 		short int ascii_ii[] =
   14430 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   14431 		int use_ascii (int i) {
   14432 		  return ascii_mm[i] + ascii_ii[i];
   14433 		}
   14434 		short int ebcdic_ii[] =
   14435 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   14436 		short int ebcdic_mm[] =
   14437 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   14438 		int use_ebcdic (int i) {
   14439 		  return ebcdic_mm[i] + ebcdic_ii[i];
   14440 		}
   14441 		extern int foo;
   14442 
   14443 int
   14444 main ()
   14445 {
   14446 return use_ascii (foo) == use_ebcdic (foo);
   14447   ;
   14448   return 0;
   14449 }
   14450 _ACEOF
   14451 if ac_fn_c_try_compile "$LINENO"; then :
   14452   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   14453 	      ac_cv_c_bigendian=yes
   14454 	    fi
   14455 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   14456 	      if test "$ac_cv_c_bigendian" = unknown; then
   14457 		ac_cv_c_bigendian=no
   14458 	      else
   14459 		# finding both strings is unlikely to happen, but who knows?
   14460 		ac_cv_c_bigendian=unknown
   14461 	      fi
   14462 	    fi
   14463 fi
   14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14465 else
   14466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14467 /* end confdefs.h.  */
   14468 $ac_includes_default
   14469 int
   14470 main ()
   14471 {
   14472 
   14473 	     /* Are we little or big endian?  From Harbison&Steele.  */
   14474 	     union
   14475 	     {
   14476 	       long int l;
   14477 	       char c[sizeof (long int)];
   14478 	     } u;
   14479 	     u.l = 1;
   14480 	     return u.c[sizeof (long int) - 1] == 1;
   14481 
   14482   ;
   14483   return 0;
   14484 }
   14485 _ACEOF
   14486 if ac_fn_c_try_run "$LINENO"; then :
   14487   ac_cv_c_bigendian=no
   14488 else
   14489   ac_cv_c_bigendian=yes
   14490 fi
   14491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14492   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14493 fi
   14494 
   14495     fi
   14496 fi
   14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   14498 $as_echo "$ac_cv_c_bigendian" >&6; }
   14499  case $ac_cv_c_bigendian in #(
   14500    yes)
   14501      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   14502 ;; #(
   14503    no)
   14504       ;; #(
   14505    universal)
   14506 
   14507 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   14508 
   14509      ;; #(
   14510    *)
   14511      as_fn_error $? "unknown endianness
   14512  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   14513  esac
   14514 
   14515 
   14516 #
   14517 # GeoIP support?
   14518 #
   14519 # Should be on by default if libmaxminddb exists.
   14520 #
   14521 
   14522 # Check whether --with-geoip2 was given.
   14523 if test "${with_geoip2+set}" = set; then :
   14524   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
   14525 $as_echo "$as_me: WARNING: --with-geoip2 is DEPRECATED and will be removed in a future release, use --with-maxminddb instead" >&2;}
   14526 else
   14527   with_geoip2="auto"
   14528 fi
   14529 
   14530 
   14531 # Check whether --enable-geoip was given.
   14532 if test "${enable_geoip+set}" = set; then :
   14533   enableval=$enable_geoip;
   14534 else
   14535   enable_geoip="yes"
   14536 fi
   14537 
   14538 
   14539 
   14540 # Check whether --with-maxminddb was given.
   14541 if test "${with_maxminddb+set}" = set; then :
   14542   withval=$with_maxminddb;
   14543 else
   14544   with_maxminddb="$with_geoip2"
   14545 fi
   14546 
   14547 
   14548 GEOIP2LINKSRCS=
   14549 GEOIP2LINKOBJS=
   14550 if test "$enable_geoip" = "yes"; then :
   14551   case $with_maxminddb in #(
   14552   no) :
   14553     as_fn_error $? "Use '--disable-geoip' to disable the GeoIP" "$LINENO" 5 ;; #(
   14554   auto) :
   14555 
   14556 pkg_failed=no
   14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14558 $as_echo_n "checking for libmaxminddb... " >&6; }
   14559 
   14560 if test -n "$MAXMINDDB_CFLAGS"; then
   14561     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14562  elif test -n "$PKG_CONFIG"; then
   14563     if test -n "$PKG_CONFIG" && \
   14564     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14565   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14566   ac_status=$?
   14567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14568   test $ac_status = 0; }; then
   14569   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14570 		      test "x$?" != "x0" && pkg_failed=yes
   14571 else
   14572   pkg_failed=yes
   14573 fi
   14574  else
   14575     pkg_failed=untried
   14576 fi
   14577 if test -n "$MAXMINDDB_LIBS"; then
   14578     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14579  elif test -n "$PKG_CONFIG"; then
   14580     if test -n "$PKG_CONFIG" && \
   14581     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14582   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14583   ac_status=$?
   14584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14585   test $ac_status = 0; }; then
   14586   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14587 		      test "x$?" != "x0" && pkg_failed=yes
   14588 else
   14589   pkg_failed=yes
   14590 fi
   14591  else
   14592     pkg_failed=untried
   14593 fi
   14594 
   14595 
   14596 
   14597 if test $pkg_failed = yes; then
   14598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14599 $as_echo "no" >&6; }
   14600 
   14601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14602         _pkg_short_errors_supported=yes
   14603 else
   14604         _pkg_short_errors_supported=no
   14605 fi
   14606         if test $_pkg_short_errors_supported = yes; then
   14607 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14608         else
   14609 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14610         fi
   14611 	# Put the nasty error message in config.log where it belongs
   14612 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14613 
   14614 	:
   14615 elif test $pkg_failed = untried; then
   14616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14617 $as_echo "no" >&6; }
   14618 	:
   14619 else
   14620 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14621 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14623 $as_echo "yes" >&6; }
   14624 
   14625 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14626 
   14627 
   14628 if test -n "$MAXMINDDB_PREFIX"; then
   14629     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14630  elif test -n "$PKG_CONFIG"; then
   14631     if test -n "$PKG_CONFIG" && \
   14632     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14633   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14634   ac_status=$?
   14635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14636   test $ac_status = 0; }; then
   14637   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14638 		      test "x$?" != "x0" && pkg_failed=yes
   14639 else
   14640   pkg_failed=yes
   14641 fi
   14642  else
   14643     pkg_failed=untried
   14644 fi
   14645 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14646 
   14647 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14648   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14649 fi
   14650 					  GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14651 					  GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14652 
   14653 fi ;; #(
   14654   yes) :
   14655 
   14656 pkg_failed=no
   14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb" >&5
   14658 $as_echo_n "checking for libmaxminddb... " >&6; }
   14659 
   14660 if test -n "$MAXMINDDB_CFLAGS"; then
   14661     pkg_cv_MAXMINDDB_CFLAGS="$MAXMINDDB_CFLAGS"
   14662  elif test -n "$PKG_CONFIG"; then
   14663     if test -n "$PKG_CONFIG" && \
   14664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14665   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14666   ac_status=$?
   14667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14668   test $ac_status = 0; }; then
   14669   pkg_cv_MAXMINDDB_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb" 2>/dev/null`
   14670 		      test "x$?" != "x0" && pkg_failed=yes
   14671 else
   14672   pkg_failed=yes
   14673 fi
   14674  else
   14675     pkg_failed=untried
   14676 fi
   14677 if test -n "$MAXMINDDB_LIBS"; then
   14678     pkg_cv_MAXMINDDB_LIBS="$MAXMINDDB_LIBS"
   14679  elif test -n "$PKG_CONFIG"; then
   14680     if test -n "$PKG_CONFIG" && \
   14681     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14682   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14683   ac_status=$?
   14684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14685   test $ac_status = 0; }; then
   14686   pkg_cv_MAXMINDDB_LIBS=`$PKG_CONFIG --libs "libmaxminddb" 2>/dev/null`
   14687 		      test "x$?" != "x0" && pkg_failed=yes
   14688 else
   14689   pkg_failed=yes
   14690 fi
   14691  else
   14692     pkg_failed=untried
   14693 fi
   14694 
   14695 
   14696 
   14697 if test $pkg_failed = yes; then
   14698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14699 $as_echo "no" >&6; }
   14700 
   14701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   14702         _pkg_short_errors_supported=yes
   14703 else
   14704         _pkg_short_errors_supported=no
   14705 fi
   14706         if test $_pkg_short_errors_supported = yes; then
   14707 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14708         else
   14709 	        MAXMINDDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb" 2>&1`
   14710         fi
   14711 	# Put the nasty error message in config.log where it belongs
   14712 	echo "$MAXMINDDB_PKG_ERRORS" >&5
   14713 
   14714 	as_fn_error $? "Package requirements (libmaxminddb) were not met:
   14715 
   14716 $MAXMINDDB_PKG_ERRORS
   14717 
   14718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   14719 installed software in a non-standard prefix.
   14720 
   14721 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14722 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14723 See the pkg-config man page for more details." "$LINENO" 5
   14724 elif test $pkg_failed = untried; then
   14725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14726 $as_echo "no" >&6; }
   14727 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   14728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   14729 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   14730 is in your PATH or set the PKG_CONFIG environment variable to the full
   14731 path to pkg-config.
   14732 
   14733 Alternatively, you may set the environment variables MAXMINDDB_CFLAGS
   14734 and MAXMINDDB_LIBS to avoid the need to call pkg-config.
   14735 See the pkg-config man page for more details.
   14736 
   14737 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   14738 See \`config.log' for more details" "$LINENO" 5; }
   14739 else
   14740 	MAXMINDDB_CFLAGS=$pkg_cv_MAXMINDDB_CFLAGS
   14741 	MAXMINDDB_LIBS=$pkg_cv_MAXMINDDB_LIBS
   14742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14743 $as_echo "yes" >&6; }
   14744 
   14745 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14746 
   14747 
   14748 if test -n "$MAXMINDDB_PREFIX"; then
   14749     pkg_cv_MAXMINDDB_PREFIX="$MAXMINDDB_PREFIX"
   14750  elif test -n "$PKG_CONFIG"; then
   14751     if test -n "$PKG_CONFIG" && \
   14752     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb\""; } >&5
   14753   ($PKG_CONFIG --exists --print-errors "libmaxminddb") 2>&5
   14754   ac_status=$?
   14755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   14756   test $ac_status = 0; }; then
   14757   pkg_cv_MAXMINDDB_PREFIX=`$PKG_CONFIG --variable="prefix" "libmaxminddb" 2>/dev/null`
   14758 		      test "x$?" != "x0" && pkg_failed=yes
   14759 else
   14760   pkg_failed=yes
   14761 fi
   14762  else
   14763     pkg_failed=untried
   14764 fi
   14765 MAXMINDDB_PREFIX=$pkg_cv_MAXMINDDB_PREFIX
   14766 
   14767 if test "x$MAXMINDDB_PREFIX" = x""; then :
   14768   as_fn_error $? "libmaxminddb prefix not found in pkg-config; set MAXMINDDB_PREFIX in the environment" "$LINENO" 5
   14769 fi
   14770 					 GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14771 					 GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14772 
   14773 fi ;; #(
   14774   *) :
   14775      # default
   14776 
   14777 
   14778   CCASFLAGS_maxminddb_ax_save_flags=$CCASFLAGS
   14779 
   14780 
   14781 
   14782   CFLAGS_maxminddb_ax_save_flags=$CFLAGS
   14783 
   14784 
   14785 
   14786   CPPFLAGS_maxminddb_ax_save_flags=$CPPFLAGS
   14787 
   14788 
   14789 
   14790   CXXFLAGS_maxminddb_ax_save_flags=$CXXFLAGS
   14791 
   14792 
   14793 
   14794   ERLCFLAGS_maxminddb_ax_save_flags=$ERLCFLAGS
   14795 
   14796 
   14797 
   14798   FCFLAGS_maxminddb_ax_save_flags=$FCFLAGS
   14799 
   14800 
   14801 
   14802   FCLIBS_maxminddb_ax_save_flags=$FCLIBS
   14803 
   14804 
   14805 
   14806   FFLAGS_maxminddb_ax_save_flags=$FFLAGS
   14807 
   14808 
   14809 
   14810   FLIBS_maxminddb_ax_save_flags=$FLIBS
   14811 
   14812 
   14813 
   14814   GCJFLAGS_maxminddb_ax_save_flags=$GCJFLAGS
   14815 
   14816 
   14817 
   14818   JAVACFLAGS_maxminddb_ax_save_flags=$JAVACFLAGS
   14819 
   14820 
   14821 
   14822   LDFLAGS_maxminddb_ax_save_flags=$LDFLAGS
   14823 
   14824 
   14825 
   14826   LIBS_maxminddb_ax_save_flags=$LIBS
   14827 
   14828 
   14829 
   14830   OBJCFLAGS_maxminddb_ax_save_flags=$OBJCFLAGS
   14831 
   14832 
   14833 
   14834   OBJCXXFLAGS_maxminddb_ax_save_flags=$OBJCXXFLAGS
   14835 
   14836 
   14837 
   14838   UPCFLAGS_maxminddb_ax_save_flags=$UPCFLAGS
   14839 
   14840 
   14841 
   14842   VALAFLAGS_maxminddb_ax_save_flags=$VALAFLAGS
   14843 
   14844 
   14845 
   14846 		   MAXMINDDB_CFLAGS="-I$with_maxminddb/include"
   14847 		   MAXMINDDB_LIBS="-L$with_maxminddb/lib"
   14848 		   CFLAGS="$CFLAGS $MAXMINDDB_CFLAGS"
   14849 		   LDFLAGS="$LDFLAGS $MAXMINDDB_LIBS"
   14850 		   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MMDB_open" >&5
   14851 $as_echo_n "checking for library containing MMDB_open... " >&6; }
   14852 if ${ac_cv_search_MMDB_open+:} false; then :
   14853   $as_echo_n "(cached) " >&6
   14854 else
   14855   ac_func_search_save_LIBS=$LIBS
   14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14857 /* end confdefs.h.  */
   14858 
   14859 /* Override any GCC internal prototype to avoid an error.
   14860    Use char because int might match the return type of a GCC
   14861    builtin and then its argument prototype would still apply.  */
   14862 #ifdef __cplusplus
   14863 extern "C"
   14864 #endif
   14865 char MMDB_open ();
   14866 int
   14867 main ()
   14868 {
   14869 return MMDB_open ();
   14870   ;
   14871   return 0;
   14872 }
   14873 _ACEOF
   14874 for ac_lib in '' maxminddb; do
   14875   if test -z "$ac_lib"; then
   14876     ac_res="none required"
   14877   else
   14878     ac_res=-l$ac_lib
   14879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14880   fi
   14881   if ac_fn_c_try_link "$LINENO"; then :
   14882   ac_cv_search_MMDB_open=$ac_res
   14883 fi
   14884 rm -f core conftest.err conftest.$ac_objext \
   14885     conftest$ac_exeext
   14886   if ${ac_cv_search_MMDB_open+:} false; then :
   14887   break
   14888 fi
   14889 done
   14890 if ${ac_cv_search_MMDB_open+:} false; then :
   14891 
   14892 else
   14893   ac_cv_search_MMDB_open=no
   14894 fi
   14895 rm conftest.$ac_ext
   14896 LIBS=$ac_func_search_save_LIBS
   14897 fi
   14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MMDB_open" >&5
   14899 $as_echo "$ac_cv_search_MMDB_open" >&6; }
   14900 ac_res=$ac_cv_search_MMDB_open
   14901 if test "$ac_res" != no; then :
   14902   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14903 
   14904 $as_echo "#define HAVE_GEOIP2 1" >>confdefs.h
   14905 
   14906 				   GEOIP2LINKSRCS='${GEOIP2LINKSRCS}'
   14907 				   GEOIP2LINKOBJS='${GEOIP2LINKOBJS}'
   14908 				   MAXMINDDB_LIBS="$MAXMINDDB_LIBS $ac_cv_search_mmdb_open"
   14909 				   { $as_echo "$as_me:${as_lineno-$LINENO}: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&5
   14910 $as_echo "$as_me: GeoIP2 default database path set to $with_maxminddb/share/GeoIP" >&6;}
   14911 				   eval MAXMINDDB_PREFIX=\$$with_maxminddb
   14912 
   14913 else
   14914   as_fn_error $? "GeoIP2 requested, but libmaxminddb not found" "$LINENO" 5
   14915 fi
   14916 
   14917 
   14918   CCASFLAGS=$CCASFLAGS_maxminddb_ax_save_flags
   14919 
   14920 
   14921   CFLAGS=$CFLAGS_maxminddb_ax_save_flags
   14922 
   14923 
   14924   CPPFLAGS=$CPPFLAGS_maxminddb_ax_save_flags
   14925 
   14926 
   14927   CXXFLAGS=$CXXFLAGS_maxminddb_ax_save_flags
   14928 
   14929 
   14930   ERLCFLAGS=$ERLCFLAGS_maxminddb_ax_save_flags
   14931 
   14932 
   14933   FCFLAGS=$FCFLAGS_maxminddb_ax_save_flags
   14934 
   14935 
   14936   FCLIBS=$FCLIBS_maxminddb_ax_save_flags
   14937 
   14938 
   14939   FFLAGS=$FFLAGS_maxminddb_ax_save_flags
   14940 
   14941 
   14942   FLIBS=$FLIBS_maxminddb_ax_save_flags
   14943 
   14944 
   14945   GCJFLAGS=$GCJFLAGS_maxminddb_ax_save_flags
   14946 
   14947 
   14948   JAVACFLAGS=$JAVACFLAGS_maxminddb_ax_save_flags
   14949 
   14950 
   14951   LDFLAGS=$LDFLAGS_maxminddb_ax_save_flags
   14952 
   14953 
   14954   LIBS=$LIBS_maxminddb_ax_save_flags
   14955 
   14956 
   14957   OBJCFLAGS=$OBJCFLAGS_maxminddb_ax_save_flags
   14958 
   14959 
   14960   OBJCXXFLAGS=$OBJCXXFLAGS_maxminddb_ax_save_flags
   14961 
   14962 
   14963   UPCFLAGS=$UPCFLAGS_maxminddb_ax_save_flags
   14964 
   14965 
   14966   VALAFLAGS=$VALAFLAGS_maxminddb_ax_save_flags
   14967 
   14968 
   14969 
   14970 	        ;;
   14971 esac
   14972 
   14973 
   14974 fi
   14975 
   14976 
   14977 
   14978 
   14979 
   14980 
   14981 #
   14982 # Do we have arc4random(), etc ?
   14983 #
   14984 for ac_func in arc4random arc4random_buf arc4random_uniform getrandom
   14985 do :
   14986   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14989   cat >>confdefs.h <<_ACEOF
   14990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14991 _ACEOF
   14992 
   14993 fi
   14994 done
   14995 
   14996 
   14997 
   14998 
   14999 
   15000 
   15001 ac_ext=c
   15002 ac_cpp='$CPP $CPPFLAGS'
   15003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15006 
   15007 ax_pthread_ok=no
   15008 
   15009 # We used to check for pthread.h first, but this fails if pthread.h
   15010 # requires special compiler flags (e.g. on Tru64 or Sequent).
   15011 # It gets checked for in the link test anyway.
   15012 
   15013 # First of all, check if the user has set any of the PTHREAD_LIBS,
   15014 # etcetera environment variables, and if threads linking works using
   15015 # them:
   15016 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   15017         ax_pthread_save_CC="$CC"
   15018         ax_pthread_save_CFLAGS="$CFLAGS"
   15019         ax_pthread_save_LIBS="$LIBS"
   15020         if test "x$PTHREAD_CC" != "x"; then :
   15021   CC="$PTHREAD_CC"
   15022 fi
   15023         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15024         LIBS="$PTHREAD_LIBS $LIBS"
   15025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   15026 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   15027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15028 /* end confdefs.h.  */
   15029 
   15030 /* Override any GCC internal prototype to avoid an error.
   15031    Use char because int might match the return type of a GCC
   15032    builtin and then its argument prototype would still apply.  */
   15033 #ifdef __cplusplus
   15034 extern "C"
   15035 #endif
   15036 char pthread_join ();
   15037 int
   15038 main ()
   15039 {
   15040 return pthread_join ();
   15041   ;
   15042   return 0;
   15043 }
   15044 _ACEOF
   15045 if ac_fn_c_try_link "$LINENO"; then :
   15046   ax_pthread_ok=yes
   15047 fi
   15048 rm -f core conftest.err conftest.$ac_objext \
   15049     conftest$ac_exeext conftest.$ac_ext
   15050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15051 $as_echo "$ax_pthread_ok" >&6; }
   15052         if test "x$ax_pthread_ok" = "xno"; then
   15053                 PTHREAD_LIBS=""
   15054                 PTHREAD_CFLAGS=""
   15055         fi
   15056         CC="$ax_pthread_save_CC"
   15057         CFLAGS="$ax_pthread_save_CFLAGS"
   15058         LIBS="$ax_pthread_save_LIBS"
   15059 fi
   15060 
   15061 # We must check for the threads library under a number of different
   15062 # names; the ordering is very important because some systems
   15063 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   15064 # libraries is broken (non-POSIX).
   15065 
   15066 # Create a list of thread flags to try.  Items starting with a "-" are
   15067 # C compiler flags, and other items are library names, except for "none"
   15068 # which indicates that we try without any flags at all, and "pthread-config"
   15069 # which is a program returning the flags for the Pth emulation library.
   15070 
   15071 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   15072 
   15073 # The ordering *is* (sometimes) important.  Some notes on the
   15074 # individual items follow:
   15075 
   15076 # pthreads: AIX (must check this before -lpthread)
   15077 # none: in case threads are in libc; should be tried before -Kthread and
   15078 #       other compiler flags to prevent continual compiler warnings
   15079 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   15080 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   15081 #           (Note: HP C rejects this with "bad form for `-t' option")
   15082 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   15083 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   15084 #      doesn't hurt to check since this sometimes defines pthreads and
   15085 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   15086 #      is present but should not be used directly; and before -mthreads,
   15087 #      because the compiler interprets this as "-mt" + "-hreads")
   15088 # -mthreads: Mingw32/gcc, Lynx/gcc
   15089 # pthread: Linux, etcetera
   15090 # --thread-safe: KAI C++
   15091 # pthread-config: use pthread-config program (for GNU Pth library)
   15092 
   15093 case $host_os in
   15094 
   15095         freebsd*)
   15096 
   15097         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   15098         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   15099 
   15100         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   15101         ;;
   15102 
   15103         hpux*)
   15104 
   15105         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   15106         # multi-threading and also sets -lpthread."
   15107 
   15108         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   15109         ;;
   15110 
   15111         openedition*)
   15112 
   15113         # IBM z/OS requires a feature-test macro to be defined in order to
   15114         # enable POSIX threads at all, so give the user a hint if this is
   15115         # not set. (We don't define these ourselves, as they can affect
   15116         # other portions of the system API in unpredictable ways.)
   15117 
   15118         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15119 /* end confdefs.h.  */
   15120 
   15121 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   15122              AX_PTHREAD_ZOS_MISSING
   15123 #            endif
   15124 
   15125 _ACEOF
   15126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15127   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   15128   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   15129 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   15130 fi
   15131 rm -f conftest*
   15132 
   15133         ;;
   15134 
   15135         solaris*)
   15136 
   15137         # On Solaris (at least, for some versions), libc contains stubbed
   15138         # (non-functional) versions of the pthreads routines, so link-based
   15139         # tests will erroneously succeed. (N.B.: The stubs are missing
   15140         # pthread_cleanup_push, or rather a function called by this macro,
   15141         # so we could check for that, but who knows whether they'll stub
   15142         # that too in a future libc.)  So we'll check first for the
   15143         # standard Solaris way of linking pthreads (-mt -lpthread).
   15144 
   15145         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   15146         ;;
   15147 esac
   15148 
   15149 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   15150 
   15151 if test "x$GCC" = "xyes"; then :
   15152   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   15153 fi
   15154 
   15155 # The presence of a feature test macro requesting re-entrant function
   15156 # definitions is, on some systems, a strong hint that pthreads support is
   15157 # correctly enabled
   15158 
   15159 case $host_os in
   15160         darwin* | hpux* | linux* | osf* | solaris*)
   15161         ax_pthread_check_macro="_REENTRANT"
   15162         ;;
   15163 
   15164         aix*)
   15165         ax_pthread_check_macro="_THREAD_SAFE"
   15166         ;;
   15167 
   15168         *)
   15169         ax_pthread_check_macro="--"
   15170         ;;
   15171 esac
   15172 if test "x$ax_pthread_check_macro" = "x--"; then :
   15173   ax_pthread_check_cond=0
   15174 else
   15175   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   15176 fi
   15177 
   15178 # Are we compiling with Clang?
   15179 
   15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   15181 $as_echo_n "checking whether $CC is Clang... " >&6; }
   15182 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   15183   $as_echo_n "(cached) " >&6
   15184 else
   15185   ax_cv_PTHREAD_CLANG=no
   15186      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   15187      if test "x$GCC" = "xyes"; then
   15188         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15189 /* end confdefs.h.  */
   15190 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   15191 #            if defined(__clang__) && defined(__llvm__)
   15192              AX_PTHREAD_CC_IS_CLANG
   15193 #            endif
   15194 
   15195 _ACEOF
   15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   15197   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   15198   ax_cv_PTHREAD_CLANG=yes
   15199 fi
   15200 rm -f conftest*
   15201 
   15202      fi
   15203 
   15204 fi
   15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   15206 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   15207 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   15208 
   15209 ax_pthread_clang_warning=no
   15210 
   15211 # Clang needs special handling, because older versions handle the -pthread
   15212 # option in a rather... idiosyncratic way
   15213 
   15214 if test "x$ax_pthread_clang" = "xyes"; then
   15215 
   15216         # Clang takes -pthread; it has never supported any other flag
   15217 
   15218         # (Note 1: This will need to be revisited if a system that Clang
   15219         # supports has POSIX threads in a separate library.  This tends not
   15220         # to be the way of modern systems, but it's conceivable.)
   15221 
   15222         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   15223         # to get POSIX threads support; the API is always present and
   15224         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   15225         # -pthread does define _REENTRANT, and while the Darwin headers
   15226         # ignore this macro, third-party headers might not.)
   15227 
   15228         PTHREAD_CFLAGS="-pthread"
   15229         PTHREAD_LIBS=
   15230 
   15231         ax_pthread_ok=yes
   15232 
   15233         # However, older versions of Clang make a point of warning the user
   15234         # that, in an invocation where only linking and no compilation is
   15235         # taking place, the -pthread option has no effect ("argument unused
   15236         # during compilation").  They expect -pthread to be passed in only
   15237         # when source code is being compiled.
   15238         #
   15239         # Problem is, this is at odds with the way Automake and most other
   15240         # C build frameworks function, which is that the same flags used in
   15241         # compilation (CFLAGS) are also used in linking.  Many systems
   15242         # supported by AX_PTHREAD require exactly this for POSIX threads
   15243         # support, and in fact it is often not straightforward to specify a
   15244         # flag that is used only in the compilation phase and not in
   15245         # linking.  Such a scenario is extremely rare in practice.
   15246         #
   15247         # Even though use of the -pthread flag in linking would only print
   15248         # a warning, this can be a nuisance for well-run software projects
   15249         # that build with -Werror.  So if the active version of Clang has
   15250         # this misfeature, we search for an option to squash it.
   15251 
   15252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   15253 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   15254 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   15255   $as_echo_n "(cached) " >&6
   15256 else
   15257   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   15258              # Create an alternate version of $ac_link that compiles and
   15259              # links in two steps (.c -> .o, .o -> exe) instead of one
   15260              # (.c -> exe), because the warning occurs only in the second
   15261              # step
   15262              ax_pthread_save_ac_link="$ac_link"
   15263              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   15264              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   15265              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   15266              ax_pthread_save_CFLAGS="$CFLAGS"
   15267              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   15268                 if test "x$ax_pthread_try" = "xunknown"; then :
   15269   break
   15270 fi
   15271                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   15272                 ac_link="$ax_pthread_save_ac_link"
   15273                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15274 /* end confdefs.h.  */
   15275 int main(void){return 0;}
   15276 _ACEOF
   15277 if ac_fn_c_try_link "$LINENO"; then :
   15278   ac_link="$ax_pthread_2step_ac_link"
   15279                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15280 /* end confdefs.h.  */
   15281 int main(void){return 0;}
   15282 _ACEOF
   15283 if ac_fn_c_try_link "$LINENO"; then :
   15284   break
   15285 fi
   15286 rm -f core conftest.err conftest.$ac_objext \
   15287     conftest$ac_exeext conftest.$ac_ext
   15288 
   15289 fi
   15290 rm -f core conftest.err conftest.$ac_objext \
   15291     conftest$ac_exeext conftest.$ac_ext
   15292              done
   15293              ac_link="$ax_pthread_save_ac_link"
   15294              CFLAGS="$ax_pthread_save_CFLAGS"
   15295              if test "x$ax_pthread_try" = "x"; then :
   15296   ax_pthread_try=no
   15297 fi
   15298              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   15299 
   15300 fi
   15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   15302 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   15303 
   15304         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   15305                 no | unknown) ;;
   15306                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   15307         esac
   15308 
   15309 fi # $ax_pthread_clang = yes
   15310 
   15311 if test "x$ax_pthread_ok" = "xno"; then
   15312 for ax_pthread_try_flag in $ax_pthread_flags; do
   15313 
   15314         case $ax_pthread_try_flag in
   15315                 none)
   15316                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   15317 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   15318                 ;;
   15319 
   15320                 -mt,pthread)
   15321                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   15322 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   15323                 PTHREAD_CFLAGS="-mt"
   15324                 PTHREAD_LIBS="-lpthread"
   15325                 ;;
   15326 
   15327                 -*)
   15328                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   15329 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   15330                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   15331                 ;;
   15332 
   15333                 pthread-config)
   15334                 # Extract the first word of "pthread-config", so it can be a program name with args.
   15335 set dummy pthread-config; ac_word=$2
   15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15337 $as_echo_n "checking for $ac_word... " >&6; }
   15338 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   15339   $as_echo_n "(cached) " >&6
   15340 else
   15341   if test -n "$ax_pthread_config"; then
   15342   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   15343 else
   15344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15345 for as_dir in $PATH
   15346 do
   15347   IFS=$as_save_IFS
   15348   test -z "$as_dir" && as_dir=.
   15349     for ac_exec_ext in '' $ac_executable_extensions; do
   15350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15351     ac_cv_prog_ax_pthread_config="yes"
   15352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15353     break 2
   15354   fi
   15355 done
   15356   done
   15357 IFS=$as_save_IFS
   15358 
   15359   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   15360 fi
   15361 fi
   15362 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   15363 if test -n "$ax_pthread_config"; then
   15364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   15365 $as_echo "$ax_pthread_config" >&6; }
   15366 else
   15367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15368 $as_echo "no" >&6; }
   15369 fi
   15370 
   15371 
   15372                 if test "x$ax_pthread_config" = "xno"; then :
   15373   continue
   15374 fi
   15375                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   15376                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   15377                 ;;
   15378 
   15379                 *)
   15380                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   15381 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   15382                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   15383                 ;;
   15384         esac
   15385 
   15386         ax_pthread_save_CFLAGS="$CFLAGS"
   15387         ax_pthread_save_LIBS="$LIBS"
   15388         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15389         LIBS="$PTHREAD_LIBS $LIBS"
   15390 
   15391         # Check for various functions.  We must include pthread.h,
   15392         # since some functions may be macros.  (On the Sequent, we
   15393         # need a special flag -Kthread to make this header compile.)
   15394         # We check for pthread_join because it is in -lpthread on IRIX
   15395         # while pthread_create is in libc.  We check for pthread_attr_init
   15396         # due to DEC craziness with -lpthreads.  We check for
   15397         # pthread_cleanup_push because it is one of the few pthread
   15398         # functions on Solaris that doesn't have a non-functional libc stub.
   15399         # We try pthread_create on general principles.
   15400 
   15401         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15402 /* end confdefs.h.  */
   15403 #include <pthread.h>
   15404 #                       if $ax_pthread_check_cond
   15405 #                        error "$ax_pthread_check_macro must be defined"
   15406 #                       endif
   15407                         static void routine(void *a) { a = 0; }
   15408                         static void *start_routine(void *a) { return a; }
   15409 int
   15410 main ()
   15411 {
   15412 pthread_t th; pthread_attr_t attr;
   15413                         pthread_create(&th, 0, start_routine, 0);
   15414                         pthread_join(th, 0);
   15415                         pthread_attr_init(&attr);
   15416                         pthread_cleanup_push(routine, 0);
   15417                         pthread_cleanup_pop(0) /* ; */
   15418   ;
   15419   return 0;
   15420 }
   15421 _ACEOF
   15422 if ac_fn_c_try_link "$LINENO"; then :
   15423   ax_pthread_ok=yes
   15424 fi
   15425 rm -f core conftest.err conftest.$ac_objext \
   15426     conftest$ac_exeext conftest.$ac_ext
   15427 
   15428         CFLAGS="$ax_pthread_save_CFLAGS"
   15429         LIBS="$ax_pthread_save_LIBS"
   15430 
   15431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   15432 $as_echo "$ax_pthread_ok" >&6; }
   15433         if test "x$ax_pthread_ok" = "xyes"; then :
   15434   break
   15435 fi
   15436 
   15437         PTHREAD_LIBS=""
   15438         PTHREAD_CFLAGS=""
   15439 done
   15440 fi
   15441 
   15442 # Various other checks:
   15443 if test "x$ax_pthread_ok" = "xyes"; then
   15444         ax_pthread_save_CFLAGS="$CFLAGS"
   15445         ax_pthread_save_LIBS="$LIBS"
   15446         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15447         LIBS="$PTHREAD_LIBS $LIBS"
   15448 
   15449         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   15450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   15451 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   15452 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   15453   $as_echo_n "(cached) " >&6
   15454 else
   15455   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   15456              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   15457                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15458 /* end confdefs.h.  */
   15459 #include <pthread.h>
   15460 int
   15461 main ()
   15462 {
   15463 int attr = $ax_pthread_attr; return attr /* ; */
   15464   ;
   15465   return 0;
   15466 }
   15467 _ACEOF
   15468 if ac_fn_c_try_link "$LINENO"; then :
   15469   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   15470 fi
   15471 rm -f core conftest.err conftest.$ac_objext \
   15472     conftest$ac_exeext conftest.$ac_ext
   15473              done
   15474 
   15475 fi
   15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   15477 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   15478         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   15479                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   15480                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   15481 
   15482 cat >>confdefs.h <<_ACEOF
   15483 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   15484 _ACEOF
   15485 
   15486                ax_pthread_joinable_attr_defined=yes
   15487 
   15488 fi
   15489 
   15490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   15491 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   15492 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   15493   $as_echo_n "(cached) " >&6
   15494 else
   15495   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   15496              case $host_os in
   15497              solaris*)
   15498              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   15499              ;;
   15500              esac
   15501 
   15502 fi
   15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   15504 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   15505         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   15506                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   15507   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   15508                ax_pthread_special_flags_added=yes
   15509 fi
   15510 
   15511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   15512 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   15513 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   15514   $as_echo_n "(cached) " >&6
   15515 else
   15516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15517 /* end confdefs.h.  */
   15518 #include <pthread.h>
   15519 int
   15520 main ()
   15521 {
   15522 int i = PTHREAD_PRIO_INHERIT;
   15523   ;
   15524   return 0;
   15525 }
   15526 _ACEOF
   15527 if ac_fn_c_try_link "$LINENO"; then :
   15528   ax_cv_PTHREAD_PRIO_INHERIT=yes
   15529 else
   15530   ax_cv_PTHREAD_PRIO_INHERIT=no
   15531 fi
   15532 rm -f core conftest.err conftest.$ac_objext \
   15533     conftest$ac_exeext conftest.$ac_ext
   15534 
   15535 fi
   15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   15537 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   15538         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   15539                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   15540 
   15541 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   15542 
   15543                ax_pthread_prio_inherit_defined=yes
   15544 
   15545 fi
   15546 
   15547         CFLAGS="$ax_pthread_save_CFLAGS"
   15548         LIBS="$ax_pthread_save_LIBS"
   15549 
   15550         # More AIX lossage: compile with *_r variant
   15551         if test "x$GCC" != "xyes"; then
   15552             case $host_os in
   15553                 aix*)
   15554                 case "x/$CC" in #(
   15555   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   15556     #handle absolute path differently from PATH based program lookup
   15557                      case "x$CC" in #(
   15558   x/*) :
   15559     if as_fn_executable_p ${CC}_r; then :
   15560   PTHREAD_CC="${CC}_r"
   15561 fi ;; #(
   15562   *) :
   15563     for ac_prog in ${CC}_r
   15564 do
   15565   # Extract the first word of "$ac_prog", so it can be a program name with args.
   15566 set dummy $ac_prog; ac_word=$2
   15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   15568 $as_echo_n "checking for $ac_word... " >&6; }
   15569 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   15570   $as_echo_n "(cached) " >&6
   15571 else
   15572   if test -n "$PTHREAD_CC"; then
   15573   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   15574 else
   15575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15576 for as_dir in $PATH
   15577 do
   15578   IFS=$as_save_IFS
   15579   test -z "$as_dir" && as_dir=.
   15580     for ac_exec_ext in '' $ac_executable_extensions; do
   15581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   15582     ac_cv_prog_PTHREAD_CC="$ac_prog"
   15583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   15584     break 2
   15585   fi
   15586 done
   15587   done
   15588 IFS=$as_save_IFS
   15589 
   15590 fi
   15591 fi
   15592 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   15593 if test -n "$PTHREAD_CC"; then
   15594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   15595 $as_echo "$PTHREAD_CC" >&6; }
   15596 else
   15597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15598 $as_echo "no" >&6; }
   15599 fi
   15600 
   15601 
   15602   test -n "$PTHREAD_CC" && break
   15603 done
   15604 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15605  ;;
   15606 esac ;; #(
   15607   *) :
   15608      ;;
   15609 esac
   15610                 ;;
   15611             esac
   15612         fi
   15613 fi
   15614 
   15615 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   15616 
   15617 
   15618 
   15619 
   15620 
   15621 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   15622 if test "x$ax_pthread_ok" = "xyes"; then
   15623 
   15624 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
   15625 
   15626         :
   15627 else
   15628         ax_pthread_ok=no
   15629 
   15630 fi
   15631 ac_ext=c
   15632 ac_cpp='$CPP $CPPFLAGS'
   15633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15636 
   15637 
   15638 
   15639 LIBS="$PTHREAD_LIBS $LIBS"
   15640 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   15641 CC="$PTHREAD_CC"
   15642 
   15643 for ac_func in pthread_attr_getstacksize pthread_attr_setstacksize
   15644 do :
   15645   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15646 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15647 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15648   cat >>confdefs.h <<_ACEOF
   15649 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15650 _ACEOF
   15651 
   15652 fi
   15653 done
   15654 
   15655 
   15656 
   15657 # Check whether --with-locktype was given.
   15658 if test "${with_locktype+set}" = set; then :
   15659   withval=$with_locktype;
   15660 else
   15661   with_locktype="adaptive"
   15662 fi
   15663 
   15664 
   15665 case $with_locktype in #(
   15666   adaptive) :
   15667 
   15668 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5
   15669 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; }
   15670 	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15671 /* end confdefs.h.  */
   15672 
   15673 		 #ifndef _GNU_SOURCE
   15674 		 #define _GNU_SOURCE
   15675 		 #endif
   15676 		 #include <pthread.h>
   15677 
   15678 int
   15679 main ()
   15680 {
   15681 
   15682 		 return (PTHREAD_MUTEX_ADAPTIVE_NP);
   15683 
   15684 
   15685   ;
   15686   return 0;
   15687 }
   15688 _ACEOF
   15689 if ac_fn_c_try_compile "$LINENO"; then :
   15690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using adaptive lock type" >&5
   15691 $as_echo "using adaptive lock type" >&6; }
   15692 
   15693 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
   15694 
   15695 else
   15696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15697 $as_echo "using standard lock type" >&6; }
   15698 
   15699 fi
   15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; #(
   15701   standard) :
   15702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using standard lock type" >&5
   15703 $as_echo "using standard lock type" >&6; } ;; #(
   15704   *) :
   15705     as_fn_error $? "You must specify \"adaptive\" or \"standard\" for --with-locktype." "$LINENO" 5
   15706         ;;
   15707 esac
   15708 
   15709 for ac_header in sched.h
   15710 do :
   15711   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
   15712 if test "x$ac_cv_header_sched_h" = xyes; then :
   15713   cat >>confdefs.h <<_ACEOF
   15714 #define HAVE_SCHED_H 1
   15715 _ACEOF
   15716 
   15717 fi
   15718 
   15719 done
   15720 
   15721 
   15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
   15723 $as_echo_n "checking for library containing sched_yield... " >&6; }
   15724 if ${ac_cv_search_sched_yield+:} false; then :
   15725   $as_echo_n "(cached) " >&6
   15726 else
   15727   ac_func_search_save_LIBS=$LIBS
   15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15729 /* end confdefs.h.  */
   15730 
   15731 /* Override any GCC internal prototype to avoid an error.
   15732    Use char because int might match the return type of a GCC
   15733    builtin and then its argument prototype would still apply.  */
   15734 #ifdef __cplusplus
   15735 extern "C"
   15736 #endif
   15737 char sched_yield ();
   15738 int
   15739 main ()
   15740 {
   15741 return sched_yield ();
   15742   ;
   15743   return 0;
   15744 }
   15745 _ACEOF
   15746 for ac_lib in '' rt; do
   15747   if test -z "$ac_lib"; then
   15748     ac_res="none required"
   15749   else
   15750     ac_res=-l$ac_lib
   15751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   15752   fi
   15753   if ac_fn_c_try_link "$LINENO"; then :
   15754   ac_cv_search_sched_yield=$ac_res
   15755 fi
   15756 rm -f core conftest.err conftest.$ac_objext \
   15757     conftest$ac_exeext
   15758   if ${ac_cv_search_sched_yield+:} false; then :
   15759   break
   15760 fi
   15761 done
   15762 if ${ac_cv_search_sched_yield+:} false; then :
   15763 
   15764 else
   15765   ac_cv_search_sched_yield=no
   15766 fi
   15767 rm conftest.$ac_ext
   15768 LIBS=$ac_func_search_save_LIBS
   15769 fi
   15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
   15771 $as_echo "$ac_cv_search_sched_yield" >&6; }
   15772 ac_res=$ac_cv_search_sched_yield
   15773 if test "$ac_res" != no; then :
   15774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   15775 
   15776 fi
   15777 
   15778 for ac_func in sched_yield pthread_yield pthread_yield_np
   15779 do :
   15780   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15781 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15782 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15783   cat >>confdefs.h <<_ACEOF
   15784 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15785 _ACEOF
   15786 
   15787 fi
   15788 done
   15789 
   15790 
   15791 for ac_header in sys/cpuset.h
   15792 do :
   15793   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
   15794 if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
   15795   cat >>confdefs.h <<_ACEOF
   15796 #define HAVE_SYS_CPUSET_H 1
   15797 _ACEOF
   15798 
   15799 fi
   15800 
   15801 done
   15802 
   15803 for ac_header in sys/procset.h
   15804 do :
   15805   ac_fn_c_check_header_mongrel "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
   15806 if test "x$ac_cv_header_sys_procset_h" = xyes; then :
   15807   cat >>confdefs.h <<_ACEOF
   15808 #define HAVE_SYS_PROCSET_H 1
   15809 _ACEOF
   15810 
   15811 fi
   15812 
   15813 done
   15814 
   15815 for ac_func in pthread_setaffinity_np cpuset_setaffinity processor_bind sched_setaffinity
   15816 do :
   15817   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15819 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15820   cat >>confdefs.h <<_ACEOF
   15821 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15822 _ACEOF
   15823 
   15824 fi
   15825 done
   15826 
   15827 
   15828 # Look for functions relating to thread naming
   15829 for ac_func in pthread_setname_np pthread_set_name_np
   15830 do :
   15831   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   15832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   15833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   15834   cat >>confdefs.h <<_ACEOF
   15835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   15836 _ACEOF
   15837 
   15838 fi
   15839 done
   15840 
   15841 for ac_header in pthread_np.h
   15842 do :
   15843   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h>
   15844 "
   15845 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
   15846   cat >>confdefs.h <<_ACEOF
   15847 #define HAVE_PTHREAD_NP_H 1
   15848 _ACEOF
   15849 
   15850 fi
   15851 
   15852 done
   15853 
   15854 
   15855 # libuv
   15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv" >&5
   15857 $as_echo_n "checking for libuv... " >&6; }
   15858 
   15859 pkg_failed=no
   15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuv >= 1.0.0" >&5
   15861 $as_echo_n "checking for libuv >= 1.0.0... " >&6; }
   15862 
   15863 if test -n "$LIBUV_CFLAGS"; then
   15864     pkg_cv_LIBUV_CFLAGS="$LIBUV_CFLAGS"
   15865  elif test -n "$PKG_CONFIG"; then
   15866     if test -n "$PKG_CONFIG" && \
   15867     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   15868   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   15869   ac_status=$?
   15870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15871   test $ac_status = 0; }; then
   15872   pkg_cv_LIBUV_CFLAGS=`$PKG_CONFIG --cflags "libuv >= 1.0.0" 2>/dev/null`
   15873 		      test "x$?" != "x0" && pkg_failed=yes
   15874 else
   15875   pkg_failed=yes
   15876 fi
   15877  else
   15878     pkg_failed=untried
   15879 fi
   15880 if test -n "$LIBUV_LIBS"; then
   15881     pkg_cv_LIBUV_LIBS="$LIBUV_LIBS"
   15882  elif test -n "$PKG_CONFIG"; then
   15883     if test -n "$PKG_CONFIG" && \
   15884     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuv >= 1.0.0\""; } >&5
   15885   ($PKG_CONFIG --exists --print-errors "libuv >= 1.0.0") 2>&5
   15886   ac_status=$?
   15887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   15888   test $ac_status = 0; }; then
   15889   pkg_cv_LIBUV_LIBS=`$PKG_CONFIG --libs "libuv >= 1.0.0" 2>/dev/null`
   15890 		      test "x$?" != "x0" && pkg_failed=yes
   15891 else
   15892   pkg_failed=yes
   15893 fi
   15894  else
   15895     pkg_failed=untried
   15896 fi
   15897 
   15898 
   15899 
   15900 if test $pkg_failed = yes; then
   15901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15902 $as_echo "no" >&6; }
   15903 
   15904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   15905         _pkg_short_errors_supported=yes
   15906 else
   15907         _pkg_short_errors_supported=no
   15908 fi
   15909         if test $_pkg_short_errors_supported = yes; then
   15910 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   15911         else
   15912 	        LIBUV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuv >= 1.0.0" 2>&1`
   15913         fi
   15914 	# Put the nasty error message in config.log where it belongs
   15915 	echo "$LIBUV_PKG_ERRORS" >&5
   15916 
   15917 	as_fn_error $? "libuv not found" "$LINENO" 5
   15918 elif test $pkg_failed = untried; then
   15919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15920 $as_echo "no" >&6; }
   15921 	as_fn_error $? "libuv not found" "$LINENO" 5
   15922 else
   15923 	LIBUV_CFLAGS=$pkg_cv_LIBUV_CFLAGS
   15924 	LIBUV_LIBS=$pkg_cv_LIBUV_LIBS
   15925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15926 $as_echo "yes" >&6; }
   15927 
   15928 fi
   15929 
   15930 
   15931   CCASFLAGS_libuv_ax_save_flags=$CCASFLAGS
   15932 
   15933 
   15934 
   15935   CFLAGS_libuv_ax_save_flags=$CFLAGS
   15936 
   15937 
   15938 
   15939   CPPFLAGS_libuv_ax_save_flags=$CPPFLAGS
   15940 
   15941 
   15942 
   15943   CXXFLAGS_libuv_ax_save_flags=$CXXFLAGS
   15944 
   15945 
   15946 
   15947   ERLCFLAGS_libuv_ax_save_flags=$ERLCFLAGS
   15948 
   15949 
   15950 
   15951   FCFLAGS_libuv_ax_save_flags=$FCFLAGS
   15952 
   15953 
   15954 
   15955   FCLIBS_libuv_ax_save_flags=$FCLIBS
   15956 
   15957 
   15958 
   15959   FFLAGS_libuv_ax_save_flags=$FFLAGS
   15960 
   15961 
   15962 
   15963   FLIBS_libuv_ax_save_flags=$FLIBS
   15964 
   15965 
   15966 
   15967   GCJFLAGS_libuv_ax_save_flags=$GCJFLAGS
   15968 
   15969 
   15970 
   15971   JAVACFLAGS_libuv_ax_save_flags=$JAVACFLAGS
   15972 
   15973 
   15974 
   15975   LDFLAGS_libuv_ax_save_flags=$LDFLAGS
   15976 
   15977 
   15978 
   15979   LIBS_libuv_ax_save_flags=$LIBS
   15980 
   15981 
   15982 
   15983   OBJCFLAGS_libuv_ax_save_flags=$OBJCFLAGS
   15984 
   15985 
   15986 
   15987   OBJCXXFLAGS_libuv_ax_save_flags=$OBJCXXFLAGS
   15988 
   15989 
   15990 
   15991   UPCFLAGS_libuv_ax_save_flags=$UPCFLAGS
   15992 
   15993 
   15994 
   15995   VALAFLAGS_libuv_ax_save_flags=$VALAFLAGS
   15996 
   15997 
   15998 
   15999 
   16000 CFLAGS="$CFLAGS $LIBUV_CFLAGS"
   16001 LIBS="$LIBS $LIBUV_LIBS"
   16002 
   16003 # Those functions are only provided in newer versions of libuv, we'll be emulating them
   16004 # for now
   16005 for ac_func in uv_handle_get_data uv_handle_set_data uv_import
   16006 do :
   16007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16010   cat >>confdefs.h <<_ACEOF
   16011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16012 _ACEOF
   16013 
   16014 fi
   16015 done
   16016 
   16017 
   16018 #
   16019 # flockfile is usually provided by pthreads
   16020 #
   16021 for ac_func in flockfile getc_unlocked
   16022 do :
   16023   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16025 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16026   cat >>confdefs.h <<_ACEOF
   16027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16028 _ACEOF
   16029 
   16030 fi
   16031 done
   16032 
   16033 
   16034 #
   16035 # Look for sysconf to allow detection of the number of processors.
   16036 #
   16037 for ac_func in sysconf
   16038 do :
   16039   ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
   16040 if test "x$ac_cv_func_sysconf" = xyes; then :
   16041   cat >>confdefs.h <<_ACEOF
   16042 #define HAVE_SYSCONF 1
   16043 _ACEOF
   16044 
   16045 fi
   16046 done
   16047 
   16048 
   16049 
   16050 
   16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtool" >&5
   16052 $as_echo_n "checking for libtool... " >&6; }
   16053 
   16054 # Check whether --with-libtool was given.
   16055 if test "${with_libtool+set}" = set; then :
   16056   withval=$with_libtool; use_libtool="$withval"
   16057 else
   16058   use_libtool="no"
   16059 fi
   16060 
   16061 
   16062 case $use_libtool in
   16063 	yes)
   16064 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16065 $as_echo "yes" >&6; }
   16066 
   16067 		O=lo
   16068 		A=la
   16069 		LIBTOOL_MKDEP_SED='s;\.o;\.lo;'
   16070 		LIBTOOL_MODE_COMPILE='--mode=compile'
   16071 		LIBTOOL_MODE_INSTALL='--mode=install'
   16072 		LIBTOOL_MODE_LINK='--mode=link'
   16073 		LIBTOOL_MODE_UNINSTALL='--mode=uninstall'
   16074 		INSTALL_LIBRARY='${INSTALL_PROGRAM}'
   16075 
   16076 $as_echo "#define USE_LIBTOOL 1" >>confdefs.h
   16077 
   16078 		;;
   16079 	*)
   16080 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16081 $as_echo "no" >&6; }
   16082 		O=o
   16083 		A=a
   16084 		LIBTOOL=
   16085 
   16086 		LIBTOOL_MKDEP_SED=
   16087 		LIBTOOL_MODE_COMPILE=
   16088 		LIBTOOL_MODE_INSTALL=
   16089 		LIBTOOL_MODE_LINK=
   16090 		LIBTOOL_MODE_UNINSTALL=
   16091 		INSTALL_LIBRARY='${INSTALL_DATA}'
   16092 		;;
   16093 esac
   16094 
   16095 
   16096 #
   16097 # Do we want to use pthread rwlock?
   16098 #
   16099 # Check whether --enable-pthread_rwlock was given.
   16100 if test "${enable_pthread_rwlock+set}" = set; then :
   16101   enableval=$enable_pthread_rwlock;
   16102 else
   16103   enable_pthread_rwlock=no
   16104 fi
   16105 
   16106 
   16107 if test "$enable_pthread_rwlock" = "yes"; then :
   16108   for ac_func in pthread_rwlock_rdlock
   16109 do :
   16110   ac_fn_c_check_func "$LINENO" "pthread_rwlock_rdlock" "ac_cv_func_pthread_rwlock_rdlock"
   16111 if test "x$ac_cv_func_pthread_rwlock_rdlock" = xyes; then :
   16112   cat >>confdefs.h <<_ACEOF
   16113 #define HAVE_PTHREAD_RWLOCK_RDLOCK 1
   16114 _ACEOF
   16115 
   16116 else
   16117   as_fn_error $? "pthread_rwlock_rdlock requested but not found" "$LINENO" 5
   16118 fi
   16119 done
   16120 
   16121 
   16122 $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
   16123 
   16124 
   16125 fi
   16126 
   16127 CRYPTO=OpenSSL
   16128 
   16129 #
   16130 # OpenSSL/LibreSSL is mandatory
   16131 #
   16132 
   16133 pkg_failed=no
   16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
   16135 $as_echo_n "checking for libcrypto... " >&6; }
   16136 
   16137 if test -n "$OPENSSL_CFLAGS"; then
   16138     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16139  elif test -n "$PKG_CONFIG"; then
   16140     if test -n "$PKG_CONFIG" && \
   16141     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   16142   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   16143   ac_status=$?
   16144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16145   test $ac_status = 0; }; then
   16146   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
   16147 		      test "x$?" != "x0" && pkg_failed=yes
   16148 else
   16149   pkg_failed=yes
   16150 fi
   16151  else
   16152     pkg_failed=untried
   16153 fi
   16154 if test -n "$OPENSSL_LIBS"; then
   16155     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16156  elif test -n "$PKG_CONFIG"; then
   16157     if test -n "$PKG_CONFIG" && \
   16158     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
   16159   ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
   16160   ac_status=$?
   16161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16162   test $ac_status = 0; }; then
   16163   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
   16164 		      test "x$?" != "x0" && pkg_failed=yes
   16165 else
   16166   pkg_failed=yes
   16167 fi
   16168  else
   16169     pkg_failed=untried
   16170 fi
   16171 
   16172 
   16173 
   16174 if test $pkg_failed = yes; then
   16175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16176 $as_echo "no" >&6; }
   16177 
   16178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16179         _pkg_short_errors_supported=yes
   16180 else
   16181         _pkg_short_errors_supported=no
   16182 fi
   16183         if test $_pkg_short_errors_supported = yes; then
   16184 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1`
   16185         else
   16186 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1`
   16187         fi
   16188 	# Put the nasty error message in config.log where it belongs
   16189 	echo "$OPENSSL_PKG_ERRORS" >&5
   16190 
   16191 
   16192     found=false
   16193     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"
   16194 
   16195 # Check whether --with-openssl was given.
   16196 if test "${with_openssl+set}" = set; then :
   16197   withval=$with_openssl;
   16198 	    case $with_openssl in #(
   16199   ""|y|ye|yes) :
   16200     ssldirs="$default_ssldirs" ;; #(
   16201   n|no) :
   16202     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16203   *) :
   16204     ssldirs="$withval" ;; #(
   16205   *) :
   16206     ssldirs="$default_ssldirs"
   16207 	     ;;
   16208 esac
   16209 
   16210 else
   16211 
   16212             # if pkg-config is installed and openssl has installed a .pc file,
   16213             # then use that information and don't search ssldirs
   16214 
   16215 pkg_failed=no
   16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16217 $as_echo_n "checking for crypto... " >&6; }
   16218 
   16219 if test -n "$OPENSSL_CFLAGS"; then
   16220     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16221  elif test -n "$PKG_CONFIG"; then
   16222     if test -n "$PKG_CONFIG" && \
   16223     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16224   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16225   ac_status=$?
   16226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16227   test $ac_status = 0; }; then
   16228   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16229 		      test "x$?" != "x0" && pkg_failed=yes
   16230 else
   16231   pkg_failed=yes
   16232 fi
   16233  else
   16234     pkg_failed=untried
   16235 fi
   16236 if test -n "$OPENSSL_LIBS"; then
   16237     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16238  elif test -n "$PKG_CONFIG"; then
   16239     if test -n "$PKG_CONFIG" && \
   16240     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16241   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16242   ac_status=$?
   16243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16244   test $ac_status = 0; }; then
   16245   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16246 		      test "x$?" != "x0" && pkg_failed=yes
   16247 else
   16248   pkg_failed=yes
   16249 fi
   16250  else
   16251     pkg_failed=untried
   16252 fi
   16253 
   16254 
   16255 
   16256 if test $pkg_failed = yes; then
   16257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16258 $as_echo "no" >&6; }
   16259 
   16260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16261         _pkg_short_errors_supported=yes
   16262 else
   16263         _pkg_short_errors_supported=no
   16264 fi
   16265         if test $_pkg_short_errors_supported = yes; then
   16266 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16267         else
   16268 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16269         fi
   16270 	# Put the nasty error message in config.log where it belongs
   16271 	echo "$OPENSSL_PKG_ERRORS" >&5
   16272 
   16273 	ssldirs="$default_ssldirs"
   16274 elif test $pkg_failed = untried; then
   16275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16276 $as_echo "no" >&6; }
   16277 	ssldirs="$default_ssldirs"
   16278 else
   16279 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16280 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16282 $as_echo "yes" >&6; }
   16283 	found=true
   16284 fi
   16285 
   16286 
   16287 
   16288 fi
   16289 
   16290 
   16291 
   16292     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16293     # an 'openssl' subdirectory
   16294 
   16295     if ! $found; then :
   16296 
   16297         OPENSSL_CFLAGS=
   16298         for ssldir in $ssldirs; do
   16299             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16300 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16301 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16302 
   16303 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16304                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   16305                     found=true
   16306                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16307 $as_echo "yes" >&6; }
   16308                     break
   16309 
   16310 else
   16311 
   16312 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16313 $as_echo "no" >&6; }
   16314 
   16315 fi
   16316         done
   16317 
   16318         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16319         # it will just work!
   16320 
   16321 fi
   16322 
   16323     # try the preprocessor and linker with our new flags,
   16324     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16325 
   16326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16327 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16328     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16329 
   16330     save_LIBS="$LIBS"
   16331     save_CPPFLAGS="$CPPFLAGS"
   16332     LIBS="$OPENSSL_LIBS $LIBS"
   16333     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16335 /* end confdefs.h.  */
   16336 
   16337                 #include <openssl/crypto.h>
   16338 
   16339 int
   16340 main ()
   16341 {
   16342 
   16343 	        OPENSSL_free(NULL);
   16344 
   16345   ;
   16346   return 0;
   16347 }
   16348 _ACEOF
   16349 if ac_fn_c_try_link "$LINENO"; then :
   16350 
   16351             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16352 $as_echo "yes" >&6; }
   16353             :
   16354 
   16355 else
   16356 
   16357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16358 $as_echo "no" >&6; }
   16359             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16361 as_fn_error $? "OpenSSL/LibreSSL not found
   16362 See \`config.log' for more details" "$LINENO" 5; }
   16363 
   16364 fi
   16365 rm -f core conftest.err conftest.$ac_objext \
   16366     conftest$ac_exeext conftest.$ac_ext
   16367     CPPFLAGS="$save_CPPFLAGS"
   16368     LIBS="$save_LIBS"
   16369 
   16370 
   16371 
   16372 
   16373 elif test $pkg_failed = untried; then
   16374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16375 $as_echo "no" >&6; }
   16376 
   16377     found=false
   16378     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"
   16379 
   16380 # Check whether --with-openssl was given.
   16381 if test "${with_openssl+set}" = set; then :
   16382   withval=$with_openssl;
   16383 	    case $with_openssl in #(
   16384   ""|y|ye|yes) :
   16385     ssldirs="$default_ssldirs" ;; #(
   16386   n|no) :
   16387     as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 ;; #(
   16388   *) :
   16389     ssldirs="$withval" ;; #(
   16390   *) :
   16391     ssldirs="$default_ssldirs"
   16392 	     ;;
   16393 esac
   16394 
   16395 else
   16396 
   16397             # if pkg-config is installed and openssl has installed a .pc file,
   16398             # then use that information and don't search ssldirs
   16399 
   16400 pkg_failed=no
   16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto" >&5
   16402 $as_echo_n "checking for crypto... " >&6; }
   16403 
   16404 if test -n "$OPENSSL_CFLAGS"; then
   16405     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
   16406  elif test -n "$PKG_CONFIG"; then
   16407     if test -n "$PKG_CONFIG" && \
   16408     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16409   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16410   ac_status=$?
   16411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16412   test $ac_status = 0; }; then
   16413   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "crypto" 2>/dev/null`
   16414 		      test "x$?" != "x0" && pkg_failed=yes
   16415 else
   16416   pkg_failed=yes
   16417 fi
   16418  else
   16419     pkg_failed=untried
   16420 fi
   16421 if test -n "$OPENSSL_LIBS"; then
   16422     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
   16423  elif test -n "$PKG_CONFIG"; then
   16424     if test -n "$PKG_CONFIG" && \
   16425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"crypto\""; } >&5
   16426   ($PKG_CONFIG --exists --print-errors "crypto") 2>&5
   16427   ac_status=$?
   16428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   16429   test $ac_status = 0; }; then
   16430   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "crypto" 2>/dev/null`
   16431 		      test "x$?" != "x0" && pkg_failed=yes
   16432 else
   16433   pkg_failed=yes
   16434 fi
   16435  else
   16436     pkg_failed=untried
   16437 fi
   16438 
   16439 
   16440 
   16441 if test $pkg_failed = yes; then
   16442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16443 $as_echo "no" >&6; }
   16444 
   16445 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   16446         _pkg_short_errors_supported=yes
   16447 else
   16448         _pkg_short_errors_supported=no
   16449 fi
   16450         if test $_pkg_short_errors_supported = yes; then
   16451 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "crypto" 2>&1`
   16452         else
   16453 	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "crypto" 2>&1`
   16454         fi
   16455 	# Put the nasty error message in config.log where it belongs
   16456 	echo "$OPENSSL_PKG_ERRORS" >&5
   16457 
   16458 	ssldirs="$default_ssldirs"
   16459 elif test $pkg_failed = untried; then
   16460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16461 $as_echo "no" >&6; }
   16462 	ssldirs="$default_ssldirs"
   16463 else
   16464 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16465 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16467 $as_echo "yes" >&6; }
   16468 	found=true
   16469 fi
   16470 
   16471 
   16472 
   16473 fi
   16474 
   16475 
   16476 
   16477     # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
   16478     # an 'openssl' subdirectory
   16479 
   16480     if ! $found; then :
   16481 
   16482         OPENSSL_CFLAGS=
   16483         for ssldir in $ssldirs; do
   16484             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
   16485 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
   16486 	    if test -f "$ssldir/include/openssl/ssl.h"; then :
   16487 
   16488 		    OPENSSL_CFLAGS="-I$ssldir/include"
   16489                     OPENSSL_LIBS="-L$ssldir/lib -lcrypto"
   16490                     found=true
   16491                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16492 $as_echo "yes" >&6; }
   16493                     break
   16494 
   16495 else
   16496 
   16497 		    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16498 $as_echo "no" >&6; }
   16499 
   16500 fi
   16501         done
   16502 
   16503         # if the file wasn't found, well, go ahead and try the link anyway -- maybe
   16504         # it will just work!
   16505 
   16506 fi
   16507 
   16508     # try the preprocessor and linker with our new flags,
   16509     # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
   16510 
   16511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
   16512 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
   16513     # AC_MSG_NOTICE([Trying link with OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_CFLAGS=$OPENSSL_CFLAGS])
   16514 
   16515     save_LIBS="$LIBS"
   16516     save_CPPFLAGS="$CPPFLAGS"
   16517     LIBS="$OPENSSL_LIBS $LIBS"
   16518     CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
   16519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16520 /* end confdefs.h.  */
   16521 
   16522                 #include <openssl/crypto.h>
   16523 
   16524 int
   16525 main ()
   16526 {
   16527 
   16528 	        OPENSSL_free(NULL);
   16529 
   16530   ;
   16531   return 0;
   16532 }
   16533 _ACEOF
   16534 if ac_fn_c_try_link "$LINENO"; then :
   16535 
   16536             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16537 $as_echo "yes" >&6; }
   16538             :
   16539 
   16540 else
   16541 
   16542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16543 $as_echo "no" >&6; }
   16544             { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16546 as_fn_error $? "OpenSSL/LibreSSL not found
   16547 See \`config.log' for more details" "$LINENO" 5; }
   16548 
   16549 fi
   16550 rm -f core conftest.err conftest.$ac_objext \
   16551     conftest$ac_exeext conftest.$ac_ext
   16552     CPPFLAGS="$save_CPPFLAGS"
   16553     LIBS="$save_LIBS"
   16554 
   16555 
   16556 
   16557 
   16558 else
   16559 	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
   16560 	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
   16561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16562 $as_echo "yes" >&6; }
   16563 
   16564 fi
   16565 
   16566 
   16567 
   16568   CCASFLAGS_openssl_ax_save_flags=$CCASFLAGS
   16569 
   16570 
   16571 
   16572   CFLAGS_openssl_ax_save_flags=$CFLAGS
   16573 
   16574 
   16575 
   16576   CPPFLAGS_openssl_ax_save_flags=$CPPFLAGS
   16577 
   16578 
   16579 
   16580   CXXFLAGS_openssl_ax_save_flags=$CXXFLAGS
   16581 
   16582 
   16583 
   16584   ERLCFLAGS_openssl_ax_save_flags=$ERLCFLAGS
   16585 
   16586 
   16587 
   16588   FCFLAGS_openssl_ax_save_flags=$FCFLAGS
   16589 
   16590 
   16591 
   16592   FCLIBS_openssl_ax_save_flags=$FCLIBS
   16593 
   16594 
   16595 
   16596   FFLAGS_openssl_ax_save_flags=$FFLAGS
   16597 
   16598 
   16599 
   16600   FLIBS_openssl_ax_save_flags=$FLIBS
   16601 
   16602 
   16603 
   16604   GCJFLAGS_openssl_ax_save_flags=$GCJFLAGS
   16605 
   16606 
   16607 
   16608   JAVACFLAGS_openssl_ax_save_flags=$JAVACFLAGS
   16609 
   16610 
   16611 
   16612   LDFLAGS_openssl_ax_save_flags=$LDFLAGS
   16613 
   16614 
   16615 
   16616   LIBS_openssl_ax_save_flags=$LIBS
   16617 
   16618 
   16619 
   16620   OBJCFLAGS_openssl_ax_save_flags=$OBJCFLAGS
   16621 
   16622 
   16623 
   16624   OBJCXXFLAGS_openssl_ax_save_flags=$OBJCXXFLAGS
   16625 
   16626 
   16627 
   16628   UPCFLAGS_openssl_ax_save_flags=$UPCFLAGS
   16629 
   16630 
   16631 
   16632   VALAFLAGS_openssl_ax_save_flags=$VALAFLAGS
   16633 
   16634 
   16635 
   16636 
   16637 CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
   16638 LIBS="$LIBS $OPENSSL_LIBS"
   16639 
   16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 1.0.0 or LibreSSL" >&5
   16641 $as_echo_n "checking for OpenSSL >= 1.0.0 or LibreSSL... " >&6; }
   16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16643 /* end confdefs.h.  */
   16644 #include <openssl/opensslv.h>
   16645 int
   16646 main ()
   16647 {
   16648 #if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER < 0x1000000fL)
   16649 		       #error OpenSSL >= 1.0.0 or LibreSSL required
   16650 		       #endif
   16651 
   16652   ;
   16653   return 0;
   16654 }
   16655 _ACEOF
   16656 if ac_fn_c_try_compile "$LINENO"; then :
   16657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16658 $as_echo "yes" >&6; }
   16659 else
   16660   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16662 as_fn_error $? "not found
   16663 See \`config.log' for more details" "$LINENO" 5; }
   16664 fi
   16665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16666 
   16667 #
   16668 # Check for functions added in OpenSSL or LibreSSL
   16669 #
   16670 
   16671 for ac_func in CRYPTO_zalloc
   16672 do :
   16673   ac_fn_c_check_func "$LINENO" "CRYPTO_zalloc" "ac_cv_func_CRYPTO_zalloc"
   16674 if test "x$ac_cv_func_CRYPTO_zalloc" = xyes; then :
   16675   cat >>confdefs.h <<_ACEOF
   16676 #define HAVE_CRYPTO_ZALLOC 1
   16677 _ACEOF
   16678 
   16679 fi
   16680 done
   16681 
   16682 for ac_func in EVP_CIPHER_CTX_new EVP_CIPHER_CTX_free
   16683 do :
   16684   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16686 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16687   cat >>confdefs.h <<_ACEOF
   16688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16689 _ACEOF
   16690 
   16691 fi
   16692 done
   16693 
   16694 for ac_func in EVP_MD_CTX_new EVP_MD_CTX_free EVP_MD_CTX_reset
   16695 do :
   16696   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16697 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16698 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16699   cat >>confdefs.h <<_ACEOF
   16700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16701 _ACEOF
   16702 
   16703 fi
   16704 done
   16705 
   16706 for ac_func in HMAC_CTX_new HMAC_CTX_free HMAC_CTX_reset HMAC_CTX_get_md
   16707 do :
   16708   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16710 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16711   cat >>confdefs.h <<_ACEOF
   16712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16713 _ACEOF
   16714 
   16715 fi
   16716 done
   16717 
   16718 
   16719 #
   16720 # Check for algorithm support in OpenSSL
   16721 #
   16722 
   16723 for ac_func in ECDSA_sign ECDSA_verify
   16724 do :
   16725   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16728   cat >>confdefs.h <<_ACEOF
   16729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16730 _ACEOF
   16731  :
   16732 else
   16733   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16735 as_fn_error $? "ECDSA support in OpenSSL is mandatory.
   16736 See \`config.log' for more details" "$LINENO" 5; }
   16737 fi
   16738 done
   16739 
   16740 
   16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-256 support" >&5
   16742 $as_echo_n "checking for ECDSA P-256 support... " >&6; }
   16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16744 /* end confdefs.h.  */
   16745 #include <openssl/evp.h>
   16746 		       #include <openssl/ec.h>
   16747 int
   16748 main ()
   16749 {
   16750 EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
   16751   ;
   16752   return 0;
   16753 }
   16754 _ACEOF
   16755 if ac_fn_c_try_compile "$LINENO"; then :
   16756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16757 $as_echo "yes" >&6; }
   16758 else
   16759   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16761 as_fn_error $? "not found.  ECDSA P-256 support in OpenSSL is mandatory.
   16762 See \`config.log' for more details" "$LINENO" 5; }
   16763 fi
   16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16765 
   16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECDSA P-384 support" >&5
   16767 $as_echo_n "checking for ECDSA P-384 support... " >&6; }
   16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16769 /* end confdefs.h.  */
   16770 #include <openssl/evp.h>
   16771 		       #include <openssl/ec.h>
   16772 int
   16773 main ()
   16774 {
   16775 EC_KEY *key = EC_KEY_new_by_curve_name(NID_secp384r1);
   16776   ;
   16777   return 0;
   16778 }
   16779 _ACEOF
   16780 if ac_fn_c_try_compile "$LINENO"; then :
   16781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16782 $as_echo "yes" >&6; }
   16783 else
   16784   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16786 as_fn_error $? "not found.  ECDSA P-384 support in OpenSSL is mandatory.
   16787 See \`config.log' for more details" "$LINENO" 5; }
   16788 fi
   16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16790 
   16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed25519 support" >&5
   16792 $as_echo_n "checking for Ed25519 support... " >&6; }
   16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16794 /* end confdefs.h.  */
   16795 #include <openssl/evp.h>
   16796 		       #include <openssl/ec.h>
   16797 int
   16798 main ()
   16799 {
   16800 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED25519);
   16801   ;
   16802   return 0;
   16803 }
   16804 _ACEOF
   16805 if ac_fn_c_try_compile "$LINENO"; then :
   16806 
   16807 $as_echo "#define HAVE_OPENSSL_ED25519 1" >>confdefs.h
   16808 
   16809      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16810 $as_echo "yes" >&6; }
   16811 else
   16812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16813 $as_echo "no" >&6; }
   16814 fi
   16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16816 
   16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ed448 support" >&5
   16818 $as_echo_n "checking for Ed448 support... " >&6; }
   16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16820 /* end confdefs.h.  */
   16821 #include <openssl/evp.h>
   16822 		       #include <openssl/ec.h>
   16823 int
   16824 main ()
   16825 {
   16826 EC_KEY *key = EC_KEY_new_by_curve_name(NID_ED448);
   16827   ;
   16828   return 0;
   16829 }
   16830 _ACEOF
   16831 if ac_fn_c_try_compile "$LINENO"; then :
   16832 
   16833 $as_echo "#define HAVE_OPENSSL_ED448 1" >>confdefs.h
   16834 
   16835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16836 $as_echo "yes" >&6; }
   16837 else
   16838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16839 $as_echo "no" >&6; }
   16840 fi
   16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16842 
   16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SipHash support" >&5
   16844 $as_echo_n "checking for SipHash support... " >&6; }
   16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16846 /* end confdefs.h.  */
   16847 #include <openssl/evp.h>
   16848 		       #include <openssl/opensslv.h>
   16849 int
   16850 main ()
   16851 {
   16852 #if OPENSSL_VERSION_NUMBER < 0x10101010L
   16853 		       #error OpenSSL >= 1.1.1a required for working SipHash initialization
   16854 		       #endif
   16855 		       EVP_PKEY *key = EVP_PKEY_new_raw_private_key(
   16856 			   EVP_PKEY_SIPHASH, NULL, NULL, 0);
   16857   ;
   16858   return 0;
   16859 }
   16860 _ACEOF
   16861 if ac_fn_c_try_compile "$LINENO"; then :
   16862 
   16863 $as_echo "#define HAVE_OPENSSL_SIPHASH 1" >>confdefs.h
   16864 
   16865      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16866 $as_echo "yes" >&6; }
   16867 else
   16868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16869 $as_echo "no" >&6; }
   16870 fi
   16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16872 
   16873 #
   16874 # Check for OpenSSL SHA-1 support
   16875 #
   16876 for ac_func in EVP_sha1
   16877 do :
   16878   ac_fn_c_check_func "$LINENO" "EVP_sha1" "ac_cv_func_EVP_sha1"
   16879 if test "x$ac_cv_func_EVP_sha1" = xyes; then :
   16880   cat >>confdefs.h <<_ACEOF
   16881 #define HAVE_EVP_SHA1 1
   16882 _ACEOF
   16883  :
   16884 else
   16885   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16887 as_fn_error $? "SHA-1 support in OpenSSL is mandatory.
   16888 See \`config.log' for more details" "$LINENO" 5; }
   16889 fi
   16890 done
   16891 
   16892 
   16893 #
   16894 # Check for OpenSSL SHA-2 support
   16895 #
   16896 for ac_func in EVP_sha224 EVP_sha256 EVP_sha384 EVP_sha512
   16897 do :
   16898   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16901   cat >>confdefs.h <<_ACEOF
   16902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16903 _ACEOF
   16904  :
   16905 else
   16906   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16908 as_fn_error $? "SHA-2 support in OpenSSL is mandatory.
   16909 See \`config.log' for more details" "$LINENO" 5; }
   16910 fi
   16911 done
   16912 
   16913 
   16914 #
   16915 # Check for OpenSSL AES support
   16916 #
   16917 for ac_func in EVP_aes_128_ecb EVP_aes_192_ecb EVP_aes_256_ecb
   16918 do :
   16919   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16920 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16921 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16922   cat >>confdefs.h <<_ACEOF
   16923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16924 _ACEOF
   16925  :
   16926 else
   16927   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16929 as_fn_error $? "AES support in OpenSSL is mandatory.
   16930 See \`config.log' for more details" "$LINENO" 5; }
   16931 fi
   16932 done
   16933 
   16934 
   16935 #
   16936 # Check for OpenSSL 1.1.x/LibreSSL functions
   16937 #
   16938 for ac_func in DH_get0_key ECDSA_SIG_get0 RSA_set0_key
   16939 do :
   16940   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   16941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   16942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   16943   cat >>confdefs.h <<_ACEOF
   16944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   16945 _ACEOF
   16946 
   16947 fi
   16948 done
   16949 
   16950 
   16951 #
   16952 # Check whether FIPS mode is available and whether we should enable it
   16953 #
   16954 # Check whether --enable-fips-mode was given.
   16955 if test "${enable_fips_mode+set}" = set; then :
   16956   enableval=$enable_fips_mode;
   16957 else
   16958   enable_fips_mode="no"
   16959 fi
   16960 
   16961 
   16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FIPS mode in OpenSSL library" >&5
   16963 $as_echo_n "checking whether to enable FIPS mode in OpenSSL library... " >&6; }
   16964 case $enable_fips_mode in #(
   16965   yes) :
   16966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   16967 $as_echo "yes" >&6; }
   16968 		for ac_func in FIPS_mode
   16969 do :
   16970   ac_fn_c_check_func "$LINENO" "FIPS_mode" "ac_cv_func_FIPS_mode"
   16971 if test "x$ac_cv_func_FIPS_mode" = xyes; then :
   16972   cat >>confdefs.h <<_ACEOF
   16973 #define HAVE_FIPS_MODE 1
   16974 _ACEOF
   16975 
   16976 else
   16977   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   16978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   16979 as_fn_error $? "OpenSSL FIPS mode requested but not available.
   16980 See \`config.log' for more details" "$LINENO" 5; }
   16981 fi
   16982 done
   16983  ;; #(
   16984   no) :
   16985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16986 $as_echo "no" >&6; } ;; #(
   16987   *) :
   16988      ;;
   16989 esac
   16990 
   16991 
   16992   CCASFLAGS=$CCASFLAGS_openssl_ax_save_flags
   16993 
   16994 
   16995   CFLAGS=$CFLAGS_openssl_ax_save_flags
   16996 
   16997 
   16998   CPPFLAGS=$CPPFLAGS_openssl_ax_save_flags
   16999 
   17000 
   17001   CXXFLAGS=$CXXFLAGS_openssl_ax_save_flags
   17002 
   17003 
   17004   ERLCFLAGS=$ERLCFLAGS_openssl_ax_save_flags
   17005 
   17006 
   17007   FCFLAGS=$FCFLAGS_openssl_ax_save_flags
   17008 
   17009 
   17010   FCLIBS=$FCLIBS_openssl_ax_save_flags
   17011 
   17012 
   17013   FFLAGS=$FFLAGS_openssl_ax_save_flags
   17014 
   17015 
   17016   FLIBS=$FLIBS_openssl_ax_save_flags
   17017 
   17018 
   17019   GCJFLAGS=$GCJFLAGS_openssl_ax_save_flags
   17020 
   17021 
   17022   JAVACFLAGS=$JAVACFLAGS_openssl_ax_save_flags
   17023 
   17024 
   17025   LDFLAGS=$LDFLAGS_openssl_ax_save_flags
   17026 
   17027 
   17028   LIBS=$LIBS_openssl_ax_save_flags
   17029 
   17030 
   17031   OBJCFLAGS=$OBJCFLAGS_openssl_ax_save_flags
   17032 
   17033 
   17034   OBJCXXFLAGS=$OBJCXXFLAGS_openssl_ax_save_flags
   17035 
   17036 
   17037   UPCFLAGS=$UPCFLAGS_openssl_ax_save_flags
   17038 
   17039 
   17040   VALAFLAGS=$VALAFLAGS_openssl_ax_save_flags
   17041 
   17042 
   17043 
   17044 
   17045 
   17046 
   17047 
   17048 PKCS11_TOOLS=
   17049 PKCS11_TEST=
   17050 #
   17051 # was --enable-native-pkcs11 specified?
   17052 #
   17053 # Check whether --enable-native-pkcs11 was given.
   17054 if test "${enable_native_pkcs11+set}" = set; then :
   17055   enableval=$enable_native_pkcs11; :
   17056 else
   17057   enable_native_pkcs11="no"
   17058 fi
   17059 
   17060 
   17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11 for Public-Key Cryptography" >&5
   17062 $as_echo_n "checking for PKCS11 for Public-Key Cryptography... " >&6; }
   17063 case $enable_native_pkcs11 in #(
   17064   no) :
   17065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17066 $as_echo "no" >&6; } ;; #(
   17067   yes) :
   17068     PKCS11_TOOLS=pkcs11
   17069 	       PKCS11_TEST=pkcs11
   17070 	       CRYPTO=pkcs11
   17071 	       if $use_threads; then :
   17072   :
   17073 else
   17074   as_fn_error $? "PKCS11 requires threading support" "$LINENO" 5
   17075 fi
   17076 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17077 $as_echo "yes" >&6; }
   17078 	       for ac_func in getpassphrase
   17079 do :
   17080   ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
   17081 if test "x$ac_cv_func_getpassphrase" = xyes; then :
   17082   cat >>confdefs.h <<_ACEOF
   17083 #define HAVE_GETPASSPHRASE 1
   17084 _ACEOF
   17085 
   17086 fi
   17087 done
   17088 
   17089 	       ;; #(
   17090   *) :
   17091      ;;
   17092 esac
   17093 
   17094 
   17095 
   17096 
   17097 case $CRYPTO in #(
   17098   pkcs11) :
   17099 
   17100 $as_echo "#define USE_PKCS11 1" >>confdefs.h
   17101  ;; #(
   17102   *) :
   17103 
   17104 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   17105  ;;
   17106 esac
   17107 
   17108 # preparation for automake
   17109 # AM_CONDITIONAL([PKCS11_TOOLS], [test "$with_native_pkcs11" = "yes"])
   17110 
   17111 #
   17112 # was --with-pkcs11 specified?
   17113 #
   17114 
   17115 # Check whether --with-pkcs11 was given.
   17116 if test "${with_pkcs11+set}" = set; then :
   17117   withval=$with_pkcs11; :
   17118 else
   17119   with_pkcs11="undefined"
   17120 fi
   17121 
   17122 
   17123 case $with_pkcs11 in #(
   17124   yes|auto) :
   17125     as_fn_error $? "--with-pkcs11 needs explicit path to the PKCS11 library" "$LINENO" 5 ;; #(
   17126   no|undefined) :
   17127     with_pkcs11="undefined" ;; #(
   17128   *) :
   17129      ;;
   17130 esac
   17131 
   17132 cat >>confdefs.h <<_ACEOF
   17133 #define PK11_LIB_LOCATION "$with_pkcs11"
   17134 _ACEOF
   17135 
   17136 
   17137 # for PKCS11 benchmarks
   17138 
   17139 have_clock_gt=no
   17140 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
   17141 if test "x$ac_cv_func_clock_gettime" = xyes; then :
   17142   have_clock_gt=yes
   17143 fi
   17144 
   17145 if test "no" = "$have_clock_gt"; then
   17146 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
   17147 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
   17148 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
   17149   $as_echo_n "(cached) " >&6
   17150 else
   17151   ac_check_lib_save_LIBS=$LIBS
   17152 LIBS="-lrt  $LIBS"
   17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17154 /* end confdefs.h.  */
   17155 
   17156 /* Override any GCC internal prototype to avoid an error.
   17157    Use char because int might match the return type of a GCC
   17158    builtin and then its argument prototype would still apply.  */
   17159 #ifdef __cplusplus
   17160 extern "C"
   17161 #endif
   17162 char clock_gettime ();
   17163 int
   17164 main ()
   17165 {
   17166 return clock_gettime ();
   17167   ;
   17168   return 0;
   17169 }
   17170 _ACEOF
   17171 if ac_fn_c_try_link "$LINENO"; then :
   17172   ac_cv_lib_rt_clock_gettime=yes
   17173 else
   17174   ac_cv_lib_rt_clock_gettime=no
   17175 fi
   17176 rm -f core conftest.err conftest.$ac_objext \
   17177     conftest$ac_exeext conftest.$ac_ext
   17178 LIBS=$ac_check_lib_save_LIBS
   17179 fi
   17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
   17181 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
   17182 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
   17183   have_clock_gt=rt
   17184 fi
   17185 
   17186 fi
   17187 
   17188 if test "no" != "$have_clock_gt"; then
   17189 
   17190 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
   17191 
   17192 fi
   17193 
   17194 if test "rt" = "$have_clock_gt"; then
   17195 	LIBS="-lrt $LIBS"
   17196 fi
   17197 
   17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library" >&5
   17199 $as_echo_n "checking for GSSAPI library... " >&6; }
   17200 
   17201 # Check whether --with-gssapi was given.
   17202 if test "${with_gssapi+set}" = set; then :
   17203   withval=$with_gssapi; use_gssapi="$withval"
   17204 else
   17205   use_gssapi="auto"
   17206 fi
   17207 
   17208 
   17209 # first try using krb5-config, if that does not work then fall back to "yes" method.
   17210 
   17211 case "$use_gssapi" in
   17212 */krb5-config|krb5-config)
   17213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $use_gssapi" >&5
   17214 $as_echo "trying $use_gssapi" >&6; }
   17215     if test krb5-config = "$use_gssapi"
   17216     then
   17217 	# Extract the first word of "$use_gssapi", so it can be a program name with args.
   17218 set dummy $use_gssapi; ac_word=$2
   17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   17220 $as_echo_n "checking for $ac_word... " >&6; }
   17221 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
   17222   $as_echo_n "(cached) " >&6
   17223 else
   17224   case $KRB5_CONFIG in
   17225   [\\/]* | ?:[\\/]*)
   17226   ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
   17227   ;;
   17228   *)
   17229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   17230 for as_dir in $PATH
   17231 do
   17232   IFS=$as_save_IFS
   17233   test -z "$as_dir" && as_dir=.
   17234     for ac_exec_ext in '' $ac_executable_extensions; do
   17235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   17236     ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   17237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   17238     break 2
   17239   fi
   17240 done
   17241   done
   17242 IFS=$as_save_IFS
   17243 
   17244   ;;
   17245 esac
   17246 fi
   17247 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
   17248 if test -n "$KRB5_CONFIG"; then
   17249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
   17250 $as_echo "$KRB5_CONFIG" >&6; }
   17251 else
   17252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17253 $as_echo "no" >&6; }
   17254 fi
   17255 
   17256 
   17257     else
   17258 	KRB5_CONFIG="$use_gssapi"
   17259     fi
   17260     gssapi_cflags=`$KRB5_CONFIG --cflags gssapi`
   17261     gssapi_libs=`$KRB5_CONFIG --libs gssapi`
   17262     saved_cppflags="$CPPFLAGS"
   17263     CPPFLAGS="$gssapi_cflags $CPPFLAGS"
   17264     for ac_header in gssapi.h gssapi/gssapi.h
   17265 do :
   17266   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17267 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17269   cat >>confdefs.h <<_ACEOF
   17270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17271 _ACEOF
   17272  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17273 fi
   17274 
   17275 done
   17276 
   17277     if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17278 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: gssapi.h not found" >&5
   17279 $as_echo "krb5-config: gssapi.h not found" >&6; }
   17280 	CPPFLAGS="$saved_cppflags"
   17281 	use_gssapi="yes"
   17282     else
   17283 	for ac_header in krb5/krb5.h krb5.h
   17284 do :
   17285   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17288   cat >>confdefs.h <<_ACEOF
   17289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17290 _ACEOF
   17291  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17292 fi
   17293 
   17294 done
   17295 
   17296 	if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17297 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: krb5.h not found" >&5
   17298 $as_echo "krb5-config: krb5.h not found" >&6; }
   17299 	    CPPFLAGS="$saved_cppflags"
   17300 	    use_gssapi="yes"
   17301 	else
   17302 	    CPPFLAGS="$saved_cppflags"
   17303 	    saved_libs="$LIBS"
   17304 	    LIBS=$gssapi_libs
   17305 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config linking as $LIBS" >&5
   17306 $as_echo_n "checking krb5-config linking as $LIBS... " >&6; }
   17307 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17308 /* end confdefs.h.  */
   17309 
   17310 int
   17311 main ()
   17312 {
   17313 gss_acquire_cred();krb5_init_context()
   17314   ;
   17315   return 0;
   17316 }
   17317 _ACEOF
   17318 if ac_fn_c_try_link "$LINENO"; then :
   17319   gssapi_linked=yes
   17320 else
   17321   gssapi_linked=no
   17322 fi
   17323 rm -f core conftest.err conftest.$ac_objext \
   17324     conftest$ac_exeext conftest.$ac_ext
   17325 	    case $gssapi_linked in
   17326 		yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: linked" >&5
   17327 $as_echo "krb5-config: linked" >&6; };;
   17328 		no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5-config: could not determine proper GSSAPI linkage" >&5
   17329 $as_echo "krb5-config: could not determine proper GSSAPI linkage" >&6; }
   17330 		    use_gssapi="yes"
   17331 		    ;;
   17332 	    esac
   17333 	    LIBS=$saved_libs
   17334 	fi
   17335     fi
   17336     if test "yes" = "$use_gssapi"; then
   17337 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSAPI library, non krb5-config method" >&5
   17338 $as_echo_n "checking for GSSAPI library, non krb5-config method... " >&6; }
   17339     fi
   17340     ;;
   17341 esac
   17342 
   17343 case "$host" in
   17344 *darwin*)
   17345 	if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17346 	then
   17347 		use_gssapi=framework
   17348 	fi
   17349 	;;
   17350 esac
   17351 
   17352 # gssapi is just the framework, we really require kerberos v5, so
   17353 # look for those headers (the gssapi headers must be there, too)
   17354 # The problem with this implementation is that it doesn't allow
   17355 # for the specification of gssapi and krb5 headers in different locations,
   17356 # which probably ought to be fixed although fixing might raise the issue of
   17357 # trying to build with incompatible versions of gssapi and krb5.
   17358 if test "yes" = "$use_gssapi" -o "auto" = "$use_gssapi"
   17359 then
   17360 	# first, deal with the obvious
   17361 	if test \( -f /usr/include/kerberosv5/krb5.h -o \
   17362 		   -f /usr/include/krb5/krb5.h -o \
   17363 		   -f /usr/include/krb5.h \)   -a \
   17364 		\( -f /usr/include/gssapi.h -o \
   17365 		   -f /usr/include/gssapi/gssapi.h \)
   17366 	then
   17367 		use_gssapi=/usr
   17368 	else
   17369 	    krb5dirs="/usr/local /usr/local/krb5 /usr/local/kerberosv5 /usr/local/kerberos /usr/pkg /usr/krb5 /usr/kerberosv5 /usr/kerberos /usr"
   17370 	    for d in $krb5dirs
   17371 	    do
   17372 		if test -f $d/include/gssapi/gssapi_krb5.h -o \
   17373 			-f $d/include/krb5.h
   17374 		then
   17375 			if test -f $d/include/gssapi/gssapi.h -o \
   17376 				-f $d/include/gssapi.h
   17377 			then
   17378 				use_gssapi=$d
   17379 				break
   17380 			fi
   17381 		fi
   17382 	    done
   17383 	    if test "auto" = "$use_gssapi"
   17384 	    then
   17385 		use_gssapi="no"
   17386 	    fi
   17387 	fi
   17388 fi
   17389 
   17390 case "$use_gssapi" in
   17391 	no)
   17392 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
   17393 $as_echo "disabled" >&6; }
   17394 		USE_GSSAPI=''
   17395 		;;
   17396 	yes)
   17397 		as_fn_error $? "--with-gssapi must specify a path" "$LINENO" 5
   17398 		;;
   17399 	*/krb5-config|krb5-config)
   17400 		USE_GSSAPI='-DGSSAPI'
   17401 		DST_GSSAPI_INC="$gssapi_cflags"
   17402 		DNS_GSSAPI_LIBS="$gssapi_libs"
   17403 		;;
   17404 	framework)
   17405 		USE_GSSAPI='-DGSSAPI'
   17406 		ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <Kerberos/Kerberos.h>"
   17407 		ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <Kerberos/Kerberos.h>"
   17408 		DNS_GSSAPI_LIBS="-framework Kerberos"
   17409 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: framework" >&5
   17410 $as_echo "framework" >&6; }
   17411 		;;
   17412 
   17413 	*)
   17414 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: looking in $use_gssapi/lib" >&5
   17415 $as_echo "looking in $use_gssapi/lib" >&6; }
   17416 		USE_GSSAPI='-DGSSAPI'
   17417 		saved_cppflags="$CPPFLAGS"
   17418 		CPPFLAGS="-I$use_gssapi/include $CPPFLAGS"
   17419 		for ac_header in gssapi.h gssapi/gssapi.h
   17420 do :
   17421   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17424   cat >>confdefs.h <<_ACEOF
   17425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17426 _ACEOF
   17427  ISC_PLATFORM_GSSAPIHEADER="#define ISC_PLATFORM_GSSAPIHEADER <$ac_header>"
   17428 		     gssapi_hack="#include <$ac_header>"
   17429 fi
   17430 
   17431 done
   17432 
   17433 
   17434 		if test "" = "$ISC_PLATFORM_GSSAPIHEADER"; then
   17435 		    as_fn_error $? "gssapi.h not found" "$LINENO" 5
   17436 		fi
   17437 
   17438 		for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
   17439 do :
   17440   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17443   cat >>confdefs.h <<_ACEOF
   17444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17445 _ACEOF
   17446  ISC_PLATFORM_GSSAPI_KRB5_HEADER="#define ISC_PLATFORM_GSSAPI_KRB5_HEADER <$ac_header>"
   17447 		     gssapi_krb5_hack="#include <$ac_header>"
   17448 fi
   17449 
   17450 done
   17451 
   17452 
   17453 		for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h
   17454 do :
   17455   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   17456 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   17457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   17458   cat >>confdefs.h <<_ACEOF
   17459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   17460 _ACEOF
   17461  ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"
   17462 		    krb5_hack="#include <$ac_header>"
   17463 fi
   17464 
   17465 done
   17466 
   17467 
   17468 		if test "" = "$ISC_PLATFORM_KRB5HEADER"; then
   17469 		    as_fn_error $? "krb5.h not found" "$LINENO" 5
   17470 		fi
   17471 
   17472 		#
   17473 		# XXXDCL This probably doesn't work right on all systems.
   17474 		# It will need to be worked on as problems become evident.
   17475 		#
   17476 		# Essentially the problems here relate to two different
   17477 		# areas.  The first area is building with either KTH
   17478 		# or MIT Kerberos, particularly when both are present on
   17479 		# the machine.  The other is static versus dynamic linking.
   17480 		#
   17481 		# On the KTH vs MIT issue, Both have libkrb5 that can mess
   17482 		# up the works if one implementation ends up trying to
   17483 		# use the other's krb.  This is unfortunately a situation
   17484 		# that very easily arises.
   17485 		#
   17486 		# Dynamic linking when the dependency information is built
   17487 		# into MIT's libgssapi_krb5 or KTH's libgssapi magically makes
   17488 		# all such problems go away, but when that setup is not
   17489 		# present, because either the dynamic libraries lack
   17490 		# dependencies or static linking is being done, then the
   17491 		# problems start to show up.
   17492 		saved_libs="$LIBS"
   17493 		for TRY_LIBS in \
   17494 		    "-lgssapi_krb5" \
   17495 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
   17496 		    "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \
   17497 		    "-lgssapi" \
   17498 		    "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \
   17499 		    "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17500 		    "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \
   17501 		    "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \
   17502 		    "-lgss -lkrb5"
   17503 		do
   17504 		    # Note that this does not include $saved_libs, because
   17505 		    # on FreeBSD machines this configure script has added
   17506 		    # -L/usr/local/lib to LIBS, which can make the
   17507 		    # -lgssapi_krb5 test succeed with shared libraries even
   17508 		    # when you are trying to build with KTH in /usr/lib.
   17509 		    if test "/usr" = "$use_gssapi"
   17510 		    then
   17511 			    LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS"
   17512 		    else
   17513 			    LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS"
   17514 		    fi
   17515 		    { $as_echo "$as_me:${as_lineno-$LINENO}: checking linking as $TRY_LIBS" >&5
   17516 $as_echo_n "checking linking as $TRY_LIBS... " >&6; }
   17517 		    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17518 /* end confdefs.h.  */
   17519 
   17520 #include <sys/types.h>
   17521 $gssapi_hack
   17522 $gssapi_krb5_hack
   17523 $krb5_hack
   17524 
   17525 int
   17526 main ()
   17527 {
   17528 gss_acquire_cred(NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);krb5_init_context(NULL);
   17529 #if defined(HAVE_GSSAPI_KRB5_H) || defined(HAVE_GSSAPI_GSSAPI_KRB5_H)
   17530 gsskrb5_register_acceptor_identity(NULL);
   17531 #endif
   17532   ;
   17533   return 0;
   17534 }
   17535 _ACEOF
   17536 if ac_fn_c_try_link "$LINENO"; then :
   17537   gssapi_linked=yes
   17538 else
   17539   gssapi_linked=no
   17540 fi
   17541 rm -f core conftest.err conftest.$ac_objext \
   17542     conftest$ac_exeext conftest.$ac_ext
   17543 		    case $gssapi_linked in
   17544 		    yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17545 $as_echo "yes" >&6; }; break ;;
   17546 		    no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17547 $as_echo "no" >&6; } ;;
   17548 		    esac
   17549 		done
   17550 
   17551 		CPPFLAGS="$saved_cppflags"
   17552 
   17553 		case $gssapi_linked in
   17554 		no) as_fn_error $? "could not determine proper GSSAPI linkage" "$LINENO" 5 ;;
   17555 		esac
   17556 
   17557 		#
   17558 		# XXXDCL Major kludge.  Tries to cope with KTH in /usr/lib
   17559 		# but MIT in /usr/local/lib and trying to build with KTH.
   17560 		# /usr/local/lib can end up earlier on the link lines.
   17561 		# Like most kludges, this one is not only inelegant it
   17562 		# is also likely to be the wrong thing to do at least as
   17563 		# many times as it is the right thing.  Something better
   17564 		# needs to be done.
   17565 		#
   17566 		if test "/usr" = "$use_gssapi" -a \
   17567 			-f /usr/local/lib/libkrb5.a; then
   17568 		    FIX_KTH_VS_MIT=yes
   17569 		fi
   17570 
   17571 		case "$FIX_KTH_VS_MIT" in
   17572 		yes)
   17573 		    case "$enable_static_linking" in
   17574 		    yes) gssapi_lib_suffix=".a"  ;;
   17575 		    *)   gssapi_lib_suffix=".so" ;;
   17576 		    esac
   17577 
   17578 		    for lib in $LIBS; do
   17579 			case $lib in
   17580 			-L*)
   17581 			    ;;
   17582 			-l*)
   17583 			    new_lib=`echo $lib |
   17584 				     sed -e s%^-l%$use_gssapi/lib/lib% \
   17585 					 -e s%$%$gssapi_lib_suffix%`
   17586 			    NEW_LIBS="$NEW_LIBS $new_lib"
   17587 			    ;;
   17588 			*)
   17589 			   as_fn_error $? "KTH vs MIT Kerberos confusion!" "$LINENO" 5
   17590 			    ;;
   17591 			esac
   17592 		    done
   17593 		    LIBS="$NEW_LIBS"
   17594 		    ;;
   17595 		esac
   17596 
   17597 		DST_GSSAPI_INC="-I$use_gssapi/include"
   17598 		DNS_GSSAPI_LIBS="$LIBS"
   17599 
   17600 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&5
   17601 $as_echo "using GSSAPI from $use_gssapi/lib and $use_gssapi/include" >&6; }
   17602 		LIBS="$saved_libs"
   17603 		;;
   17604 esac
   17605 
   17606 
   17607 
   17608 
   17609 
   17610 
   17611 
   17612 
   17613 
   17614 DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
   17615 
   17616 #
   17617 # Applications linking with libdns also need to link with these libraries.
   17618 #
   17619 
   17620 
   17621 
   17622 #
   17623 # was --with-lmdb specified?
   17624 #
   17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lmdb library" >&5
   17626 $as_echo_n "checking for lmdb library... " >&6; }
   17627 
   17628 # Check whether --with-lmdb was given.
   17629 if test "${with_lmdb+set}" = set; then :
   17630   withval=$with_lmdb; use_lmdb="$withval"
   17631 else
   17632   use_lmdb="auto"
   17633 fi
   17634 
   17635 
   17636 have_lmdb=""
   17637 case "$use_lmdb" in
   17638 	no)
   17639 		lmdb_libs=""
   17640 		;;
   17641 	auto|yes)
   17642 		for d in /usr /usr/local /opt/local
   17643 		do
   17644 			if test -f "${d}/include/lmdb.h"
   17645 			then
   17646 				if test ${d} != /usr
   17647 				then
   17648 					lmdb_cflags="-I ${d}/include"
   17649 					LIBS="$LIBS -L${d}/lib"
   17650 				fi
   17651 				have_lmdb="yes"
   17652 			fi
   17653 		done
   17654 		;;
   17655 	*)
   17656 		if test -f "${use_lmdb}/include/lmdb.h"
   17657 		then
   17658 			lmdb_cflags="-I${use_lmdb}/include"
   17659 			LIBS="$LIBS -L${use_lmdb}/lib"
   17660 			have_lmdb="yes"
   17661 		else
   17662 			as_fn_error $? "$use_lmdb/include/lmdb.h not found." "$LINENO" 5
   17663 		fi
   17664 		;;
   17665 esac
   17666 
   17667 if test "X${have_lmdb}" != "X"
   17668 then
   17669 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17670 $as_echo "yes" >&6; }
   17671 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mdb_env_create" >&5
   17672 $as_echo_n "checking for library containing mdb_env_create... " >&6; }
   17673 if ${ac_cv_search_mdb_env_create+:} false; then :
   17674   $as_echo_n "(cached) " >&6
   17675 else
   17676   ac_func_search_save_LIBS=$LIBS
   17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17678 /* end confdefs.h.  */
   17679 
   17680 /* Override any GCC internal prototype to avoid an error.
   17681    Use char because int might match the return type of a GCC
   17682    builtin and then its argument prototype would still apply.  */
   17683 #ifdef __cplusplus
   17684 extern "C"
   17685 #endif
   17686 char mdb_env_create ();
   17687 int
   17688 main ()
   17689 {
   17690 return mdb_env_create ();
   17691   ;
   17692   return 0;
   17693 }
   17694 _ACEOF
   17695 for ac_lib in '' lmdb; do
   17696   if test -z "$ac_lib"; then
   17697     ac_res="none required"
   17698   else
   17699     ac_res=-l$ac_lib
   17700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   17701   fi
   17702   if ac_fn_c_try_link "$LINENO"; then :
   17703   ac_cv_search_mdb_env_create=$ac_res
   17704 fi
   17705 rm -f core conftest.err conftest.$ac_objext \
   17706     conftest$ac_exeext
   17707   if ${ac_cv_search_mdb_env_create+:} false; then :
   17708   break
   17709 fi
   17710 done
   17711 if ${ac_cv_search_mdb_env_create+:} false; then :
   17712 
   17713 else
   17714   ac_cv_search_mdb_env_create=no
   17715 fi
   17716 rm conftest.$ac_ext
   17717 LIBS=$ac_func_search_save_LIBS
   17718 fi
   17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mdb_env_create" >&5
   17720 $as_echo "$ac_cv_search_mdb_env_create" >&6; }
   17721 ac_res=$ac_cv_search_mdb_env_create
   17722 if test "$ac_res" != no; then :
   17723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   17724 
   17725 else
   17726   as_fn_error $? "found lmdb include but not library." "$LINENO" 5
   17727 			have_lmdb=""
   17728 fi
   17729 
   17730 elif test "X$use_lmdb" = Xyes
   17731 then
   17732 	as_fn_error $? "include/lmdb.h not found." "$LINENO" 5
   17733 else
   17734 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17735 $as_echo "no" >&6; }
   17736 fi
   17737 
   17738 NZD_TOOLS=""
   17739 NZDSRCS=
   17740 NZDTARGETS=
   17741 if test "X${have_lmdb}" != "X"
   17742 then
   17743 	CFLAGS="$CFLAGS $lmdb_cflags"
   17744 
   17745 $as_echo "#define HAVE_LMDB 1" >>confdefs.h
   17746 
   17747 	NZD_TOOLS="nzd"
   17748 	NZDSRCS='${NZDSRCS}'
   17749 	NZDTARGETS='${NZDTARGETS}'
   17750 fi
   17751 
   17752 
   17753 
   17754 
   17755 #
   17756 # was --with-libxml2 specified?
   17757 #
   17758 
   17759 # Check whether --with-libxml2 was given.
   17760 if test "${with_libxml2+set}" = set; then :
   17761   withval=$with_libxml2;
   17762 else
   17763   with_libxml2="auto"
   17764 fi
   17765 
   17766 
   17767 case $with_libxml2 in #(
   17768   no) :
   17769      ;; #(
   17770   auto) :
   17771 
   17772 pkg_failed=no
   17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   17774 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   17775 
   17776 if test -n "$LIBXML2_CFLAGS"; then
   17777     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   17778  elif test -n "$PKG_CONFIG"; then
   17779     if test -n "$PKG_CONFIG" && \
   17780     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   17781   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   17782   ac_status=$?
   17783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17784   test $ac_status = 0; }; then
   17785   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   17786 		      test "x$?" != "x0" && pkg_failed=yes
   17787 else
   17788   pkg_failed=yes
   17789 fi
   17790  else
   17791     pkg_failed=untried
   17792 fi
   17793 if test -n "$LIBXML2_LIBS"; then
   17794     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   17795  elif test -n "$PKG_CONFIG"; then
   17796     if test -n "$PKG_CONFIG" && \
   17797     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   17798   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   17799   ac_status=$?
   17800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17801   test $ac_status = 0; }; then
   17802   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   17803 		      test "x$?" != "x0" && pkg_failed=yes
   17804 else
   17805   pkg_failed=yes
   17806 fi
   17807  else
   17808     pkg_failed=untried
   17809 fi
   17810 
   17811 
   17812 
   17813 if test $pkg_failed = yes; then
   17814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17815 $as_echo "no" >&6; }
   17816 
   17817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   17818         _pkg_short_errors_supported=yes
   17819 else
   17820         _pkg_short_errors_supported=no
   17821 fi
   17822         if test $_pkg_short_errors_supported = yes; then
   17823 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   17824         else
   17825 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   17826         fi
   17827 	# Put the nasty error message in config.log where it belongs
   17828 	echo "$LIBXML2_PKG_ERRORS" >&5
   17829 
   17830 	:
   17831 elif test $pkg_failed = untried; then
   17832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17833 $as_echo "no" >&6; }
   17834 	:
   17835 else
   17836 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   17837 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   17838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17839 $as_echo "yes" >&6; }
   17840 
   17841 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   17842 
   17843 fi ;; #(
   17844   yes) :
   17845 
   17846 pkg_failed=no
   17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
   17848 $as_echo_n "checking for libxml-2.0 >= 2.6.0... " >&6; }
   17849 
   17850 if test -n "$LIBXML2_CFLAGS"; then
   17851     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
   17852  elif test -n "$PKG_CONFIG"; then
   17853     if test -n "$PKG_CONFIG" && \
   17854     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   17855   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   17856   ac_status=$?
   17857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17858   test $ac_status = 0; }; then
   17859   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
   17860 		      test "x$?" != "x0" && pkg_failed=yes
   17861 else
   17862   pkg_failed=yes
   17863 fi
   17864  else
   17865     pkg_failed=untried
   17866 fi
   17867 if test -n "$LIBXML2_LIBS"; then
   17868     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
   17869  elif test -n "$PKG_CONFIG"; then
   17870     if test -n "$PKG_CONFIG" && \
   17871     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
   17872   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
   17873   ac_status=$?
   17874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17875   test $ac_status = 0; }; then
   17876   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
   17877 		      test "x$?" != "x0" && pkg_failed=yes
   17878 else
   17879   pkg_failed=yes
   17880 fi
   17881  else
   17882     pkg_failed=untried
   17883 fi
   17884 
   17885 
   17886 
   17887 if test $pkg_failed = yes; then
   17888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17889 $as_echo "no" >&6; }
   17890 
   17891 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   17892         _pkg_short_errors_supported=yes
   17893 else
   17894         _pkg_short_errors_supported=no
   17895 fi
   17896         if test $_pkg_short_errors_supported = yes; then
   17897 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   17898         else
   17899 	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
   17900         fi
   17901 	# Put the nasty error message in config.log where it belongs
   17902 	echo "$LIBXML2_PKG_ERRORS" >&5
   17903 
   17904 	as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met:
   17905 
   17906 $LIBXML2_PKG_ERRORS
   17907 
   17908 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   17909 installed software in a non-standard prefix.
   17910 
   17911 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   17912 and LIBXML2_LIBS to avoid the need to call pkg-config.
   17913 See the pkg-config man page for more details." "$LINENO" 5
   17914 elif test $pkg_failed = untried; then
   17915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   17916 $as_echo "no" >&6; }
   17917 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   17918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   17919 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   17920 is in your PATH or set the PKG_CONFIG environment variable to the full
   17921 path to pkg-config.
   17922 
   17923 Alternatively, you may set the environment variables LIBXML2_CFLAGS
   17924 and LIBXML2_LIBS to avoid the need to call pkg-config.
   17925 See the pkg-config man page for more details.
   17926 
   17927 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   17928 See \`config.log' for more details" "$LINENO" 5; }
   17929 else
   17930 	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
   17931 	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
   17932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   17933 $as_echo "yes" >&6; }
   17934 
   17935 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
   17936 
   17937 fi ;; #(
   17938   *) :
   17939     as_fn_error $? "Specifying libxml2 installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   17940 esac
   17941 
   17942 #
   17943 # DEPRECATED
   17944 #
   17945 
   17946 # Check whether --with-libjson was given.
   17947 if test "${with_libjson+set}" = set; then :
   17948   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
   17949 $as_echo "$as_me: WARNING: --with-libjson is DEPRECATED and will be removed in a future release, use --with-json-c instead" >&2;}
   17950 else
   17951   with_libjson="detect"
   17952 fi
   17953 
   17954 
   17955 #
   17956 # was --with-json-c specified?
   17957 #
   17958 
   17959 # Check whether --with-json-c was given.
   17960 if test "${with_json_c+set}" = set; then :
   17961   withval=$with_json_c;
   17962 else
   17963   with_json_c="$with_libjson"
   17964 fi
   17965 
   17966 
   17967 case $with_json_c in #(
   17968   no) :
   17969      ;; #(
   17970   detect) :
   17971 
   17972 pkg_failed=no
   17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   17974 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   17975 
   17976 if test -n "$JSON_C_CFLAGS"; then
   17977     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   17978  elif test -n "$PKG_CONFIG"; then
   17979     if test -n "$PKG_CONFIG" && \
   17980     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   17981   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   17982   ac_status=$?
   17983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   17984   test $ac_status = 0; }; then
   17985   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   17986 		      test "x$?" != "x0" && pkg_failed=yes
   17987 else
   17988   pkg_failed=yes
   17989 fi
   17990  else
   17991     pkg_failed=untried
   17992 fi
   17993 if test -n "$JSON_C_LIBS"; then
   17994     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   17995  elif test -n "$PKG_CONFIG"; then
   17996     if test -n "$PKG_CONFIG" && \
   17997     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   17998   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   17999   ac_status=$?
   18000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18001   test $ac_status = 0; }; then
   18002   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18003 		      test "x$?" != "x0" && pkg_failed=yes
   18004 else
   18005   pkg_failed=yes
   18006 fi
   18007  else
   18008     pkg_failed=untried
   18009 fi
   18010 
   18011 
   18012 
   18013 if test $pkg_failed = yes; then
   18014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18015 $as_echo "no" >&6; }
   18016 
   18017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18018         _pkg_short_errors_supported=yes
   18019 else
   18020         _pkg_short_errors_supported=no
   18021 fi
   18022         if test $_pkg_short_errors_supported = yes; then
   18023 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18024         else
   18025 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18026         fi
   18027 	# Put the nasty error message in config.log where it belongs
   18028 	echo "$JSON_C_PKG_ERRORS" >&5
   18029 
   18030 	:
   18031 elif test $pkg_failed = untried; then
   18032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18033 $as_echo "no" >&6; }
   18034 	:
   18035 else
   18036 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18037 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18039 $as_echo "yes" >&6; }
   18040 
   18041 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18042 
   18043 fi ;; #(
   18044   yes) :
   18045 
   18046 pkg_failed=no
   18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json-c >= 0.11" >&5
   18048 $as_echo_n "checking for json-c >= 0.11... " >&6; }
   18049 
   18050 if test -n "$JSON_C_CFLAGS"; then
   18051     pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
   18052  elif test -n "$PKG_CONFIG"; then
   18053     if test -n "$PKG_CONFIG" && \
   18054     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18055   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18056   ac_status=$?
   18057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18058   test $ac_status = 0; }; then
   18059   pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c >= 0.11" 2>/dev/null`
   18060 		      test "x$?" != "x0" && pkg_failed=yes
   18061 else
   18062   pkg_failed=yes
   18063 fi
   18064  else
   18065     pkg_failed=untried
   18066 fi
   18067 if test -n "$JSON_C_LIBS"; then
   18068     pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
   18069  elif test -n "$PKG_CONFIG"; then
   18070     if test -n "$PKG_CONFIG" && \
   18071     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c >= 0.11\""; } >&5
   18072   ($PKG_CONFIG --exists --print-errors "json-c >= 0.11") 2>&5
   18073   ac_status=$?
   18074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18075   test $ac_status = 0; }; then
   18076   pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c >= 0.11" 2>/dev/null`
   18077 		      test "x$?" != "x0" && pkg_failed=yes
   18078 else
   18079   pkg_failed=yes
   18080 fi
   18081  else
   18082     pkg_failed=untried
   18083 fi
   18084 
   18085 
   18086 
   18087 if test $pkg_failed = yes; then
   18088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18089 $as_echo "no" >&6; }
   18090 
   18091 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18092         _pkg_short_errors_supported=yes
   18093 else
   18094         _pkg_short_errors_supported=no
   18095 fi
   18096         if test $_pkg_short_errors_supported = yes; then
   18097 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18098         else
   18099 	        JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c >= 0.11" 2>&1`
   18100         fi
   18101 	# Put the nasty error message in config.log where it belongs
   18102 	echo "$JSON_C_PKG_ERRORS" >&5
   18103 
   18104 	as_fn_error $? "Package requirements (json-c >= 0.11) were not met:
   18105 
   18106 $JSON_C_PKG_ERRORS
   18107 
   18108 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18109 installed software in a non-standard prefix.
   18110 
   18111 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18112 and JSON_C_LIBS to avoid the need to call pkg-config.
   18113 See the pkg-config man page for more details." "$LINENO" 5
   18114 elif test $pkg_failed = untried; then
   18115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18116 $as_echo "no" >&6; }
   18117 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18119 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18120 is in your PATH or set the PKG_CONFIG environment variable to the full
   18121 path to pkg-config.
   18122 
   18123 Alternatively, you may set the environment variables JSON_C_CFLAGS
   18124 and JSON_C_LIBS to avoid the need to call pkg-config.
   18125 See the pkg-config man page for more details.
   18126 
   18127 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18128 See \`config.log' for more details" "$LINENO" 5; }
   18129 else
   18130 	JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
   18131 	JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
   18132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18133 $as_echo "yes" >&6; }
   18134 
   18135 $as_echo "#define HAVE_JSON_C 1" >>confdefs.h
   18136 
   18137 fi ;; #(
   18138   *) :
   18139     as_fn_error $? "Specifying json-c installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5
   18140         ;;
   18141 esac
   18142 
   18143 
   18144 
   18145 
   18146 
   18147 # Check whether --with-zlib was given.
   18148 if test "${with_zlib+set}" = set; then :
   18149   withval=$with_zlib;
   18150 else
   18151   with_zlib="auto"
   18152 fi
   18153 
   18154 
   18155 case $with_zlib in #(
   18156   no) :
   18157      ;; #(
   18158   auto) :
   18159 
   18160 pkg_failed=no
   18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18162 $as_echo_n "checking for zlib... " >&6; }
   18163 
   18164 if test -n "$ZLIB_CFLAGS"; then
   18165     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18166  elif test -n "$PKG_CONFIG"; then
   18167     if test -n "$PKG_CONFIG" && \
   18168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18169   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18170   ac_status=$?
   18171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18172   test $ac_status = 0; }; then
   18173   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18174 		      test "x$?" != "x0" && pkg_failed=yes
   18175 else
   18176   pkg_failed=yes
   18177 fi
   18178  else
   18179     pkg_failed=untried
   18180 fi
   18181 if test -n "$ZLIB_LIBS"; then
   18182     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18183  elif test -n "$PKG_CONFIG"; then
   18184     if test -n "$PKG_CONFIG" && \
   18185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18186   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18187   ac_status=$?
   18188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18189   test $ac_status = 0; }; then
   18190   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18191 		      test "x$?" != "x0" && pkg_failed=yes
   18192 else
   18193   pkg_failed=yes
   18194 fi
   18195  else
   18196     pkg_failed=untried
   18197 fi
   18198 
   18199 
   18200 
   18201 if test $pkg_failed = yes; then
   18202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18203 $as_echo "no" >&6; }
   18204 
   18205 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18206         _pkg_short_errors_supported=yes
   18207 else
   18208         _pkg_short_errors_supported=no
   18209 fi
   18210         if test $_pkg_short_errors_supported = yes; then
   18211 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18212         else
   18213 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18214         fi
   18215 	# Put the nasty error message in config.log where it belongs
   18216 	echo "$ZLIB_PKG_ERRORS" >&5
   18217 
   18218 	:
   18219 elif test $pkg_failed = untried; then
   18220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18221 $as_echo "no" >&6; }
   18222 	:
   18223 else
   18224 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18225 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18227 $as_echo "yes" >&6; }
   18228 
   18229 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18230 
   18231 fi ;; #(
   18232   yes) :
   18233 
   18234 pkg_failed=no
   18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
   18236 $as_echo_n "checking for zlib... " >&6; }
   18237 
   18238 if test -n "$ZLIB_CFLAGS"; then
   18239     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
   18240  elif test -n "$PKG_CONFIG"; then
   18241     if test -n "$PKG_CONFIG" && \
   18242     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18243   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18244   ac_status=$?
   18245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18246   test $ac_status = 0; }; then
   18247   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
   18248 		      test "x$?" != "x0" && pkg_failed=yes
   18249 else
   18250   pkg_failed=yes
   18251 fi
   18252  else
   18253     pkg_failed=untried
   18254 fi
   18255 if test -n "$ZLIB_LIBS"; then
   18256     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
   18257  elif test -n "$PKG_CONFIG"; then
   18258     if test -n "$PKG_CONFIG" && \
   18259     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
   18260   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
   18261   ac_status=$?
   18262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   18263   test $ac_status = 0; }; then
   18264   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
   18265 		      test "x$?" != "x0" && pkg_failed=yes
   18266 else
   18267   pkg_failed=yes
   18268 fi
   18269  else
   18270     pkg_failed=untried
   18271 fi
   18272 
   18273 
   18274 
   18275 if test $pkg_failed = yes; then
   18276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18277 $as_echo "no" >&6; }
   18278 
   18279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   18280         _pkg_short_errors_supported=yes
   18281 else
   18282         _pkg_short_errors_supported=no
   18283 fi
   18284         if test $_pkg_short_errors_supported = yes; then
   18285 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
   18286         else
   18287 	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
   18288         fi
   18289 	# Put the nasty error message in config.log where it belongs
   18290 	echo "$ZLIB_PKG_ERRORS" >&5
   18291 
   18292 	as_fn_error $? "Package requirements (zlib) were not met:
   18293 
   18294 $ZLIB_PKG_ERRORS
   18295 
   18296 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   18297 installed software in a non-standard prefix.
   18298 
   18299 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18300 and ZLIB_LIBS to avoid the need to call pkg-config.
   18301 See the pkg-config man page for more details." "$LINENO" 5
   18302 elif test $pkg_failed = untried; then
   18303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18304 $as_echo "no" >&6; }
   18305 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18307 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   18308 is in your PATH or set the PKG_CONFIG environment variable to the full
   18309 path to pkg-config.
   18310 
   18311 Alternatively, you may set the environment variables ZLIB_CFLAGS
   18312 and ZLIB_LIBS to avoid the need to call pkg-config.
   18313 See the pkg-config man page for more details.
   18314 
   18315 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   18316 See \`config.log' for more details" "$LINENO" 5; }
   18317 else
   18318 	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
   18319 	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
   18320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18321 $as_echo "yes" >&6; }
   18322 
   18323 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
   18324 
   18325 fi ;; #(
   18326   *) :
   18327     as_fn_error $? "Specifying zlib installation path is not supported, adjust PKG_CONFIG_PATH instead" "$LINENO" 5 ;;
   18328 esac
   18329 
   18330 
   18331 
   18332 #
   18333 # In solaris 10, SMF can manage named service
   18334 #
   18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smf_enable_instance in -lscf" >&5
   18336 $as_echo_n "checking for smf_enable_instance in -lscf... " >&6; }
   18337 if ${ac_cv_lib_scf_smf_enable_instance+:} false; then :
   18338   $as_echo_n "(cached) " >&6
   18339 else
   18340   ac_check_lib_save_LIBS=$LIBS
   18341 LIBS="-lscf  $LIBS"
   18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18343 /* end confdefs.h.  */
   18344 
   18345 /* Override any GCC internal prototype to avoid an error.
   18346    Use char because int might match the return type of a GCC
   18347    builtin and then its argument prototype would still apply.  */
   18348 #ifdef __cplusplus
   18349 extern "C"
   18350 #endif
   18351 char smf_enable_instance ();
   18352 int
   18353 main ()
   18354 {
   18355 return smf_enable_instance ();
   18356   ;
   18357   return 0;
   18358 }
   18359 _ACEOF
   18360 if ac_fn_c_try_link "$LINENO"; then :
   18361   ac_cv_lib_scf_smf_enable_instance=yes
   18362 else
   18363   ac_cv_lib_scf_smf_enable_instance=no
   18364 fi
   18365 rm -f core conftest.err conftest.$ac_objext \
   18366     conftest$ac_exeext conftest.$ac_ext
   18367 LIBS=$ac_check_lib_save_LIBS
   18368 fi
   18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_smf_enable_instance" >&5
   18370 $as_echo "$ac_cv_lib_scf_smf_enable_instance" >&6; }
   18371 if test "x$ac_cv_lib_scf_smf_enable_instance" = xyes; then :
   18372   cat >>confdefs.h <<_ACEOF
   18373 #define HAVE_LIBSCF 1
   18374 _ACEOF
   18375 
   18376   LIBS="-lscf $LIBS"
   18377 
   18378 fi
   18379 
   18380 
   18381 #
   18382 # Additional compiler settings.
   18383 #
   18384 MKDEPCC="$CC"
   18385 
   18386 MKDEPCFLAGS="-M"
   18387 case $host in #(
   18388   *-solaris*) :
   18389 
   18390 	    if test "$GCC" != "yes"; then :
   18391   MKDEPCFLAGS="-xM"
   18392 fi ;; #(
   18393   *) :
   18394      ;;
   18395 esac
   18396 
   18397 if test "$GCC" = "yes"; then :
   18398   STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers"
   18399 
   18400 fi
   18401 
   18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
   18403 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
   18404 if ${ax_cv_check_cflags___fno_strict_aliasing+:} false; then :
   18405   $as_echo_n "(cached) " >&6
   18406 else
   18407 
   18408   ax_check_save_flags=$CFLAGS
   18409   CFLAGS="$CFLAGS  -fno-strict-aliasing"
   18410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18411 /* end confdefs.h.  */
   18412 
   18413 int
   18414 main ()
   18415 {
   18416 
   18417   ;
   18418   return 0;
   18419 }
   18420 _ACEOF
   18421 if ac_fn_c_try_compile "$LINENO"; then :
   18422   ax_cv_check_cflags___fno_strict_aliasing=yes
   18423 else
   18424   ax_cv_check_cflags___fno_strict_aliasing=no
   18425 fi
   18426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18427   CFLAGS=$ax_check_save_flags
   18428 fi
   18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_strict_aliasing" >&5
   18430 $as_echo "$ax_cv_check_cflags___fno_strict_aliasing" >&6; }
   18431 if test "x$ax_cv_check_cflags___fno_strict_aliasing" = xyes; then :
   18432   STD_CWARNINGS="$STD_CWARNINGS -fno-strict-aliasing"
   18433 else
   18434   :
   18435 fi
   18436 
   18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks" >&5
   18438 $as_echo_n "checking whether C compiler accepts -Werror -fno-delete-null-pointer-checks... " >&6; }
   18439 if ${ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks+:} false; then :
   18440   $as_echo_n "(cached) " >&6
   18441 else
   18442 
   18443   ax_check_save_flags=$CFLAGS
   18444   CFLAGS="$CFLAGS  -Werror -fno-delete-null-pointer-checks"
   18445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18446 /* end confdefs.h.  */
   18447 
   18448 int
   18449 main ()
   18450 {
   18451 
   18452   ;
   18453   return 0;
   18454 }
   18455 _ACEOF
   18456 if ac_fn_c_try_compile "$LINENO"; then :
   18457   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=yes
   18458 else
   18459   ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks=no
   18460 fi
   18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18462   CFLAGS=$ax_check_save_flags
   18463 fi
   18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&5
   18465 $as_echo "$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" >&6; }
   18466 if test "x$ax_cv_check_cflags___Werror__fno_delete_null_pointer_checks" = xyes; then :
   18467   STC_CWARNINGS="$STD_CWARNINGS -fno-delete-null-pointer-checks"
   18468 else
   18469   :
   18470 fi
   18471 
   18472 if test "$enable_warn_shadow" = "yes"; then :
   18473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wshadow" >&5
   18474 $as_echo_n "checking whether C compiler accepts -Wshadow... " >&6; }
   18475 if ${ax_cv_check_cflags___Wshadow+:} false; then :
   18476   $as_echo_n "(cached) " >&6
   18477 else
   18478 
   18479   ax_check_save_flags=$CFLAGS
   18480   CFLAGS="$CFLAGS  -Wshadow"
   18481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18482 /* end confdefs.h.  */
   18483 
   18484 int
   18485 main ()
   18486 {
   18487 
   18488   ;
   18489   return 0;
   18490 }
   18491 _ACEOF
   18492 if ac_fn_c_try_compile "$LINENO"; then :
   18493   ax_cv_check_cflags___Wshadow=yes
   18494 else
   18495   ax_cv_check_cflags___Wshadow=no
   18496 fi
   18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18498   CFLAGS=$ax_check_save_flags
   18499 fi
   18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wshadow" >&5
   18501 $as_echo "$ax_cv_check_cflags___Wshadow" >&6; }
   18502 if test "x$ax_cv_check_cflags___Wshadow" = xyes; then :
   18503   STD_CWARNINGS="$STD_CWARNINGS -Wshadow"
   18504 else
   18505   :
   18506 fi
   18507 
   18508 fi
   18509 if test "$enable_warn_error" = "yes"; then :
   18510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
   18511 $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
   18512 if ${ax_cv_check_cflags___Werror+:} false; then :
   18513   $as_echo_n "(cached) " >&6
   18514 else
   18515 
   18516   ax_check_save_flags=$CFLAGS
   18517   CFLAGS="$CFLAGS  -Werror"
   18518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18519 /* end confdefs.h.  */
   18520 
   18521 int
   18522 main ()
   18523 {
   18524 
   18525   ;
   18526   return 0;
   18527 }
   18528 _ACEOF
   18529 if ac_fn_c_try_compile "$LINENO"; then :
   18530   ax_cv_check_cflags___Werror=yes
   18531 else
   18532   ax_cv_check_cflags___Werror=no
   18533 fi
   18534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18535   CFLAGS=$ax_check_save_flags
   18536 fi
   18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
   18538 $as_echo "$ax_cv_check_cflags___Werror" >&6; }
   18539 if test "x$ax_cv_check_cflags___Werror" = xyes; then :
   18540   STD_CWARNINGS="$STD_CWARNINGS -Werror"
   18541 else
   18542   :
   18543 fi
   18544 
   18545 fi
   18546 
   18547 
   18548 
   18549 
   18550 
   18551 #
   18552 # -lxnet buys us one big porting headache...  standards, gotta love 'em.
   18553 #
   18554 # AC_CHECK_LIB(xnet, socket, ,
   18555 #    AC_CHECK_LIB(socket, socket)
   18556 # )
   18557 #
   18558 # Use this for now, instead:
   18559 #
   18560 case "$host" in
   18561 	*-linux*)
   18562 		;;
   18563 	*)
   18564 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
   18565 $as_echo_n "checking for socket in -lsocket... " >&6; }
   18566 if ${ac_cv_lib_socket_socket+:} false; then :
   18567   $as_echo_n "(cached) " >&6
   18568 else
   18569   ac_check_lib_save_LIBS=$LIBS
   18570 LIBS="-lsocket  $LIBS"
   18571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18572 /* end confdefs.h.  */
   18573 
   18574 /* Override any GCC internal prototype to avoid an error.
   18575    Use char because int might match the return type of a GCC
   18576    builtin and then its argument prototype would still apply.  */
   18577 #ifdef __cplusplus
   18578 extern "C"
   18579 #endif
   18580 char socket ();
   18581 int
   18582 main ()
   18583 {
   18584 return socket ();
   18585   ;
   18586   return 0;
   18587 }
   18588 _ACEOF
   18589 if ac_fn_c_try_link "$LINENO"; then :
   18590   ac_cv_lib_socket_socket=yes
   18591 else
   18592   ac_cv_lib_socket_socket=no
   18593 fi
   18594 rm -f core conftest.err conftest.$ac_objext \
   18595     conftest$ac_exeext conftest.$ac_ext
   18596 LIBS=$ac_check_lib_save_LIBS
   18597 fi
   18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
   18599 $as_echo "$ac_cv_lib_socket_socket" >&6; }
   18600 if test "x$ac_cv_lib_socket_socket" = xyes; then :
   18601   cat >>confdefs.h <<_ACEOF
   18602 #define HAVE_LIBSOCKET 1
   18603 _ACEOF
   18604 
   18605   LIBS="-lsocket $LIBS"
   18606 
   18607 fi
   18608 
   18609 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
   18610 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
   18611 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
   18612   $as_echo_n "(cached) " >&6
   18613 else
   18614   ac_check_lib_save_LIBS=$LIBS
   18615 LIBS="-lnsl  $LIBS"
   18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18617 /* end confdefs.h.  */
   18618 
   18619 /* Override any GCC internal prototype to avoid an error.
   18620    Use char because int might match the return type of a GCC
   18621    builtin and then its argument prototype would still apply.  */
   18622 #ifdef __cplusplus
   18623 extern "C"
   18624 #endif
   18625 char inet_addr ();
   18626 int
   18627 main ()
   18628 {
   18629 return inet_addr ();
   18630   ;
   18631   return 0;
   18632 }
   18633 _ACEOF
   18634 if ac_fn_c_try_link "$LINENO"; then :
   18635   ac_cv_lib_nsl_inet_addr=yes
   18636 else
   18637   ac_cv_lib_nsl_inet_addr=no
   18638 fi
   18639 rm -f core conftest.err conftest.$ac_objext \
   18640     conftest$ac_exeext conftest.$ac_ext
   18641 LIBS=$ac_check_lib_save_LIBS
   18642 fi
   18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
   18644 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
   18645 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
   18646   cat >>confdefs.h <<_ACEOF
   18647 #define HAVE_LIBNSL 1
   18648 _ACEOF
   18649 
   18650   LIBS="-lnsl $LIBS"
   18651 
   18652 fi
   18653 
   18654 		;;
   18655 esac
   18656 
   18657 #
   18658 # Work around Solaris's select() limitations.
   18659 #
   18660 case "$host" in
   18661 	*-solaris2.[89]|*-solaris2.1?)
   18662 
   18663 $as_echo "#define FD_SETSIZE 65536" >>confdefs.h
   18664 
   18665 	;;
   18666 esac
   18667 
   18668 #
   18669 # Purify support
   18670 #
   18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use purify" >&5
   18672 $as_echo_n "checking whether to use purify... " >&6; }
   18673 
   18674 # Check whether --with-purify was given.
   18675 if test "${with_purify+set}" = set; then :
   18676   withval=$with_purify; use_purify="$withval"
   18677 else
   18678   use_purify="no"
   18679 fi
   18680 
   18681 
   18682 case "$use_purify" in
   18683 	no)
   18684 		;;
   18685 	yes)
   18686 		# Extract the first word of "purify", so it can be a program name with args.
   18687 set dummy purify; ac_word=$2
   18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   18689 $as_echo_n "checking for $ac_word... " >&6; }
   18690 if ${ac_cv_path_purify_path+:} false; then :
   18691   $as_echo_n "(cached) " >&6
   18692 else
   18693   case $purify_path in
   18694   [\\/]* | ?:[\\/]*)
   18695   ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path.
   18696   ;;
   18697   *)
   18698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   18699 for as_dir in $PATH
   18700 do
   18701   IFS=$as_save_IFS
   18702   test -z "$as_dir" && as_dir=.
   18703     for ac_exec_ext in '' $ac_executable_extensions; do
   18704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   18705     ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext"
   18706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   18707     break 2
   18708   fi
   18709 done
   18710   done
   18711 IFS=$as_save_IFS
   18712 
   18713   test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify"
   18714   ;;
   18715 esac
   18716 fi
   18717 purify_path=$ac_cv_path_purify_path
   18718 if test -n "$purify_path"; then
   18719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   18720 $as_echo "$purify_path" >&6; }
   18721 else
   18722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18723 $as_echo "no" >&6; }
   18724 fi
   18725 
   18726 
   18727 		;;
   18728 	*)
   18729 		purify_path="$use_purify"
   18730 		;;
   18731 esac
   18732 
   18733 case "$use_purify" in
   18734 	no)
   18735 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18736 $as_echo "no" >&6; }
   18737 		PURIFY=""
   18738 		;;
   18739 	*)
   18740 		if test -f "$purify_path" || test purify = "$purify_path"; then
   18741 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $purify_path" >&5
   18742 $as_echo "$purify_path" >&6; }
   18743 			PURIFYFLAGS="`echo $PURIFYOPTIONS`"
   18744 			PURIFY="$purify_path $PURIFYFLAGS"
   18745 		else
   18746 			as_fn_error $? "$purify_path not found.
   18747 
   18748 Please choose the proper path with the following command:
   18749 
   18750     configure --with-purify=PATH
   18751 " "$LINENO" 5
   18752 		fi
   18753 		;;
   18754 esac
   18755 
   18756 
   18757 
   18758 #
   18759 # Google/Great Performance Tools CPU Profiler
   18760 #
   18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use gperftools profiler" >&5
   18762 $as_echo_n "checking whether to use gperftools profiler... " >&6; }
   18763 
   18764 # Check whether --with-gperftools-profiler was given.
   18765 if test "${with_gperftools_profiler+set}" = set; then :
   18766   withval=$with_gperftools_profiler; use_profiler="$withval"
   18767 else
   18768   use_profiler="no"
   18769 fi
   18770 
   18771 
   18772 case $use_profiler in
   18773 	yes)
   18774 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18775 $as_echo "yes" >&6; }
   18776 
   18777 $as_echo "#define HAVE_GPERFTOOLS_PROFILER 1" >>confdefs.h
   18778 
   18779 		LIBS="$LIBS -lprofiler"
   18780 		;;
   18781 	*)
   18782 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   18783 $as_echo "no" >&6; }
   18784 		;;
   18785 esac
   18786 
   18787 #
   18788 # enable/disable dumping stack backtrace.  Also check if the system supports
   18789 # glibc-compatible backtrace() function.
   18790 #
   18791 # Check whether --enable-backtrace was given.
   18792 if test "${enable_backtrace+set}" = set; then :
   18793   enableval=$enable_backtrace;
   18794 else
   18795   enable_backtrace="yes"
   18796 fi
   18797 
   18798 
   18799 if test "$enable_backtrace" = "yes"; then :
   18800 
   18801 $as_echo "#define USE_BACKTRACE 1" >>confdefs.h
   18802 
   18803        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18804 /* end confdefs.h.  */
   18805 #include <execinfo.h>
   18806 int
   18807 main ()
   18808 {
   18809 return (backtrace((void **)0, 0));
   18810 
   18811   ;
   18812   return 0;
   18813 }
   18814 _ACEOF
   18815 if ac_fn_c_try_link "$LINENO"; then :
   18816 
   18817 $as_echo "#define HAVE_LIBCTRACE 1" >>confdefs.h
   18818 
   18819 
   18820 fi
   18821 rm -f core conftest.err conftest.$ac_objext \
   18822     conftest$ac_exeext conftest.$ac_ext
   18823 fi
   18824 
   18825 # Check whether --enable-symtable was given.
   18826 if test "${enable_symtable+set}" = set; then :
   18827   enableval=$enable_symtable; want_symtable="$enableval"
   18828 else
   18829   want_symtable="minimal"
   18830 fi
   18831 
   18832 case $want_symtable in
   18833 yes|all|minimal)     # "yes" is a hidden value equivalent to "minimal"
   18834 	if test "" = "$PERL"
   18835 	then
   18836 		as_fn_error $? "Internal symbol table requires perl but no perl is found.
   18837 Install perl or explicitly disable the feature by --disable-symtable." "$LINENO" 5
   18838 	fi
   18839 	if test "yes" = "$use_libtool"; then
   18840 		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&5
   18841 $as_echo "$as_me: WARNING: Internal symbol table does not work with libtool.  Disabling symbol table." >&2;}
   18842 	else
   18843 		# we generate the internal symbol table only for those systems
   18844 		# known to work to avoid unexpected build failure.  Also, warn
   18845 		# about unsupported systems when the feature is enabled
   18846 		#  manually.
   18847 		case $host_os in
   18848 		freebsd*|netbsd*|openbsd*|linux*|solaris*|darwin*)
   18849 			MKSYMTBL_PROGRAM="$PERL"
   18850 			if test "all" = "$want_symtable"; then
   18851 				ALWAYS_MAKE_SYMTABLE="yes"
   18852 			fi
   18853 			;;
   18854 		*)
   18855 			if test "yes" = "$want_symtable" -o "all" = "$want_symtable"
   18856 			then
   18857 				{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&5
   18858 $as_echo "$as_me: WARNING: this system is not known to generate internal symbol table safely; disabling it" >&2;}
   18859 			fi
   18860 		esac
   18861 	fi
   18862 	;;
   18863 *)
   18864 	;;
   18865 esac
   18866 
   18867 
   18868 
   18869 #
   18870 # File name extension for static archive files, for those few places
   18871 # where they are treated differently from dynamic ones.
   18872 #
   18873 SA=a
   18874 
   18875 
   18876 
   18877 
   18878 
   18879 
   18880 
   18881 
   18882 
   18883 
   18884 BIND9_CO_RULE=".c.$O:"
   18885 
   18886 
   18887 #
   18888 # Here begins a very long section to determine the system's networking
   18889 # capabilities.  The order of the tests is significant.
   18890 #
   18891 
   18892 #
   18893 # We do the IPv6 compilation checking after libtool so that we can put
   18894 # the right suffix on the files.
   18895 #
   18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
   18897 $as_echo_n "checking for IPv6 structures... " >&6; }
   18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18899 /* end confdefs.h.  */
   18900 
   18901        #include <sys/types.h>
   18902        #include <sys/socket.h>
   18903        #include <netinet/in.h>
   18904 
   18905 int
   18906 main ()
   18907 {
   18908 
   18909        struct sockaddr_in6 sin6;
   18910        struct in6_addr in6;
   18911        struct in6_pktinfo in6_pi;
   18912        struct sockaddr_storage storage;
   18913        in6 = in6addr_any;
   18914        in6 = in6addr_loopback;
   18915        sin6.sin6_scope_id = 0;
   18916        return (0);
   18917 
   18918   ;
   18919   return 0;
   18920 }
   18921 _ACEOF
   18922 if ac_fn_c_try_compile "$LINENO"; then :
   18923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   18924 $as_echo "yes" >&6; }
   18925 else
   18926   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   18927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   18928 as_fn_error $? "IPv6 support is mandatory
   18929 See \`config.log' for more details" "$LINENO" 5; }
   18930 fi
   18931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   18932 
   18933 #
   18934 # Allow forcibly disabling TCP Fast Open support as autodetection might yield
   18935 # confusing results on some systems (e.g. FreeBSD; see set_tcp_fastopen()
   18936 # comment in lib/isc/unix/socket.c).
   18937 #
   18938 
   18939 # Check whether --enable-tcp_fastopen was given.
   18940 if test "${enable_tcp_fastopen+set}" = set; then :
   18941   enableval=$enable_tcp_fastopen;
   18942 else
   18943   enable_tcp_fastopen="yes"
   18944 fi
   18945 
   18946 
   18947 if test "$enable_tcp_fastopen" = "yes"; then :
   18948 
   18949 $as_echo "#define ENABLE_TCP_FASTOPEN 1" >>confdefs.h
   18950 
   18951 fi
   18952 
   18953 #
   18954 # Check for some other useful functions that are not ever-present.
   18955 #
   18956 for ac_func in strlcpy strlcat
   18957 do :
   18958   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   18959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   18960 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   18961   cat >>confdefs.h <<_ACEOF
   18962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   18963 _ACEOF
   18964 
   18965 fi
   18966 done
   18967 
   18968 
   18969 
   18970 
   18971 # Check whether --with-readline was given.
   18972 if test "${with_readline+set}" = set; then :
   18973   withval=$with_readline; use_readline="$withval"
   18974 else
   18975   use_readline="auto"
   18976 fi
   18977 
   18978 case "$use_readline" in
   18979 no)	;;
   18980 *)
   18981 	saved_LIBS="$LIBS"
   18982 	case "$use_readline" in
   18983 	yes|auto) try_readline="-ledit"; or_readline="-lreadline" ;;
   18984 	*) try_readline="$use_readline"
   18985 	esac
   18986 	for readline in "$try_readline" $or_readline
   18987 	do
   18988 		LIBS="$readline"
   18989 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline" >&5
   18990 $as_echo "$as_me: checking for readline with $readline" >&6;}
   18991 		for ac_func in readline
   18992 do :
   18993   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   18994 if test "x$ac_cv_func_readline" = xyes; then :
   18995   cat >>confdefs.h <<_ACEOF
   18996 #define HAVE_READLINE 1
   18997 _ACEOF
   18998 
   18999 fi
   19000 done
   19001 
   19002 		if test "yes" = "$ac_cv_func_readline"
   19003 		then
   19004 			READLINE_LIB="$readline"
   19005 			break
   19006 		fi
   19007 		for lib in -lterminfo -ltermcap -lncurses -lcurses
   19008 		do
   19009 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline with $readline $lib" >&5
   19010 $as_echo "$as_me: checking for readline with $readline $lib" >&6;}
   19011 			unset ac_cv_func_readline
   19012 			LIBS="$readline $lib"
   19013 			for ac_func in readline
   19014 do :
   19015   ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
   19016 if test "x$ac_cv_func_readline" = xyes; then :
   19017   cat >>confdefs.h <<_ACEOF
   19018 #define HAVE_READLINE 1
   19019 _ACEOF
   19020 
   19021 fi
   19022 done
   19023 
   19024 			if test "yes" = "$ac_cv_func_readline"
   19025 			then
   19026 				READLINE_LIB="$readline $lib"
   19027 				break
   19028 			fi
   19029 		done
   19030 		if test "yes" = "$ac_cv_func_readline"
   19031 		then
   19032 			break
   19033 		fi
   19034 	done
   19035 	if test "auto" != "$use_readline" &&
   19036 	   test "X$READLINE_LIB" = "X"
   19037 	then
   19038 		as_fn_error $? "The readline library was not found." "$LINENO" 5
   19039 	fi
   19040 	LIBS="$saved_LIBS"
   19041 	;;
   19042 esac
   19043 if test "yes" = "$ac_cv_func_readline"
   19044 then
   19045 	case "$READLINE_LIB" in
   19046 	*edit*)
   19047 		for ac_header in editline/readline.h
   19048 do :
   19049   ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
   19050 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
   19051   cat >>confdefs.h <<_ACEOF
   19052 #define HAVE_EDITLINE_READLINE_H 1
   19053 _ACEOF
   19054 
   19055 fi
   19056 
   19057 done
   19058 
   19059 		for ac_header in edit/readline/readline.h
   19060 do :
   19061   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
   19062 if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
   19063   cat >>confdefs.h <<_ACEOF
   19064 #define HAVE_EDIT_READLINE_READLINE_H 1
   19065 _ACEOF
   19066 
   19067 fi
   19068 
   19069 done
   19070 
   19071 		for ac_header in edit/readline/history.h
   19072 do :
   19073   ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/history.h" "ac_cv_header_edit_readline_history_h" "$ac_includes_default"
   19074 if test "x$ac_cv_header_edit_readline_history_h" = xyes; then :
   19075   cat >>confdefs.h <<_ACEOF
   19076 #define HAVE_EDIT_READLINE_HISTORY_H 1
   19077 _ACEOF
   19078 
   19079 fi
   19080 
   19081 done
   19082 
   19083 		;;
   19084 	esac
   19085 	for ac_header in readline/readline.h
   19086 do :
   19087   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
   19088 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
   19089   cat >>confdefs.h <<_ACEOF
   19090 #define HAVE_READLINE_READLINE_H 1
   19091 _ACEOF
   19092 
   19093 fi
   19094 
   19095 done
   19096 
   19097 	for ac_header in readline/history.h
   19098 do :
   19099   ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
   19100 if test "x$ac_cv_header_readline_history_h" = xyes; then :
   19101   cat >>confdefs.h <<_ACEOF
   19102 #define HAVE_READLINE_HISTORY_H 1
   19103 _ACEOF
   19104 
   19105 fi
   19106 
   19107 done
   19108 
   19109 fi
   19110 
   19111 #
   19112 # Use our own SPNEGO implementation?
   19113 #
   19114 # Check whether --enable-isc-spnego was given.
   19115 if test "${enable_isc_spnego+set}" = set; then :
   19116   enableval=$enable_isc_spnego;
   19117 fi
   19118 
   19119 
   19120 if test -n "$USE_GSSAPI"
   19121 then
   19122 	case "$enable_isc_spnego" in
   19123 		yes|'')
   19124 			USE_ISC_SPNEGO='-DUSE_ISC_SPNEGO'
   19125 			DST_EXTRA_OBJS="$DST_EXTRA_OBJS spnego.$O"
   19126 			DST_EXTRA_SRCS="$DST_EXTRA_SRCS spnego.c"
   19127 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from lib/dns" >&5
   19128 $as_echo "using SPNEGO from lib/dns" >&6; }
   19129 			;;
   19130 		no)
   19131 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using SPNEGO from GSSAPI library" >&5
   19132 $as_echo "using SPNEGO from GSSAPI library" >&6; }
   19133 			;;
   19134 	esac
   19135 fi
   19136 
   19137 
   19138 
   19139 
   19140 
   19141 
   19142 #
   19143 # Security Stuff
   19144 #
   19145 # Note it is very recommended to *not* disable chroot(),
   19146 # this is only because chroot() was made obsolete by Posix.
   19147 # Check whether --enable-chroot was given.
   19148 if test "${enable_chroot+set}" = set; then :
   19149   enableval=$enable_chroot;
   19150 fi
   19151 
   19152 case "$enable_chroot" in
   19153 	yes|'')
   19154 		for ac_func in chroot
   19155 do :
   19156   ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
   19157 if test "x$ac_cv_func_chroot" = xyes; then :
   19158   cat >>confdefs.h <<_ACEOF
   19159 #define HAVE_CHROOT 1
   19160 _ACEOF
   19161 
   19162 fi
   19163 done
   19164 
   19165 		;;
   19166 	no)
   19167 		;;
   19168 esac
   19169 
   19170 LIBCAP_LIBS=""
   19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capabilities" >&5
   19172 $as_echo_n "checking whether to enable Linux capabilities... " >&6; }
   19173 # Check whether --enable-linux-caps was given.
   19174 if test "${enable_linux_caps+set}" = set; then :
   19175   enableval=$enable_linux_caps;
   19176 else
   19177   case $host in #(
   19178   *-linux*) :
   19179     enable_linux_caps=yes ;; #(
   19180   *) :
   19181     enable_linux_caps=no ;;
   19182 esac
   19183 fi
   19184 
   19185 
   19186 if test "$enable_linux_caps" = "yes"; then :
   19187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19188 $as_echo "yes" >&6; }
   19189        for ac_header in sys/capability.h
   19190 do :
   19191   ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
   19192 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
   19193   cat >>confdefs.h <<_ACEOF
   19194 #define HAVE_SYS_CAPABILITY_H 1
   19195 _ACEOF
   19196 
   19197 else
   19198   as_fn_error $? "sys/capability.h header is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19199 fi
   19200 
   19201 done
   19202 
   19203 
   19204 
   19205   CCASFLAGS_cap_ax_save_flags=$CCASFLAGS
   19206 
   19207 
   19208 
   19209   CFLAGS_cap_ax_save_flags=$CFLAGS
   19210 
   19211 
   19212 
   19213   CPPFLAGS_cap_ax_save_flags=$CPPFLAGS
   19214 
   19215 
   19216 
   19217   CXXFLAGS_cap_ax_save_flags=$CXXFLAGS
   19218 
   19219 
   19220 
   19221   ERLCFLAGS_cap_ax_save_flags=$ERLCFLAGS
   19222 
   19223 
   19224 
   19225   FCFLAGS_cap_ax_save_flags=$FCFLAGS
   19226 
   19227 
   19228 
   19229   FCLIBS_cap_ax_save_flags=$FCLIBS
   19230 
   19231 
   19232 
   19233   FFLAGS_cap_ax_save_flags=$FFLAGS
   19234 
   19235 
   19236 
   19237   FLIBS_cap_ax_save_flags=$FLIBS
   19238 
   19239 
   19240 
   19241   GCJFLAGS_cap_ax_save_flags=$GCJFLAGS
   19242 
   19243 
   19244 
   19245   JAVACFLAGS_cap_ax_save_flags=$JAVACFLAGS
   19246 
   19247 
   19248 
   19249   LDFLAGS_cap_ax_save_flags=$LDFLAGS
   19250 
   19251 
   19252 
   19253   LIBS_cap_ax_save_flags=$LIBS
   19254 
   19255 
   19256 
   19257   OBJCFLAGS_cap_ax_save_flags=$OBJCFLAGS
   19258 
   19259 
   19260 
   19261   OBJCXXFLAGS_cap_ax_save_flags=$OBJCXXFLAGS
   19262 
   19263 
   19264 
   19265   UPCFLAGS_cap_ax_save_flags=$UPCFLAGS
   19266 
   19267 
   19268 
   19269   VALAFLAGS_cap_ax_save_flags=$VALAFLAGS
   19270 
   19271 
   19272 
   19273        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cap_set_proc" >&5
   19274 $as_echo_n "checking for library containing cap_set_proc... " >&6; }
   19275 if ${ac_cv_search_cap_set_proc+:} false; then :
   19276   $as_echo_n "(cached) " >&6
   19277 else
   19278   ac_func_search_save_LIBS=$LIBS
   19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19280 /* end confdefs.h.  */
   19281 
   19282 /* Override any GCC internal prototype to avoid an error.
   19283    Use char because int might match the return type of a GCC
   19284    builtin and then its argument prototype would still apply.  */
   19285 #ifdef __cplusplus
   19286 extern "C"
   19287 #endif
   19288 char cap_set_proc ();
   19289 int
   19290 main ()
   19291 {
   19292 return cap_set_proc ();
   19293   ;
   19294   return 0;
   19295 }
   19296 _ACEOF
   19297 for ac_lib in '' cap; do
   19298   if test -z "$ac_lib"; then
   19299     ac_res="none required"
   19300   else
   19301     ac_res=-l$ac_lib
   19302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19303   fi
   19304   if ac_fn_c_try_link "$LINENO"; then :
   19305   ac_cv_search_cap_set_proc=$ac_res
   19306 fi
   19307 rm -f core conftest.err conftest.$ac_objext \
   19308     conftest$ac_exeext
   19309   if ${ac_cv_search_cap_set_proc+:} false; then :
   19310   break
   19311 fi
   19312 done
   19313 if ${ac_cv_search_cap_set_proc+:} false; then :
   19314 
   19315 else
   19316   ac_cv_search_cap_set_proc=no
   19317 fi
   19318 rm conftest.$ac_ext
   19319 LIBS=$ac_func_search_save_LIBS
   19320 fi
   19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cap_set_proc" >&5
   19322 $as_echo "$ac_cv_search_cap_set_proc" >&6; }
   19323 ac_res=$ac_cv_search_cap_set_proc
   19324 if test "$ac_res" != no; then :
   19325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19326   LIBCAP_LIBS="$ac_cv_search_cap_set_proc"
   19327 else
   19328   as_fn_error $? "libcap is required for Linux capabilities support. Either install libcap or use --disable-linux-caps." "$LINENO" 5
   19329 fi
   19330 
   19331 
   19332   CCASFLAGS=$CCASFLAGS_cap_ax_save_flags
   19333 
   19334 
   19335   CFLAGS=$CFLAGS_cap_ax_save_flags
   19336 
   19337 
   19338   CPPFLAGS=$CPPFLAGS_cap_ax_save_flags
   19339 
   19340 
   19341   CXXFLAGS=$CXXFLAGS_cap_ax_save_flags
   19342 
   19343 
   19344   ERLCFLAGS=$ERLCFLAGS_cap_ax_save_flags
   19345 
   19346 
   19347   FCFLAGS=$FCFLAGS_cap_ax_save_flags
   19348 
   19349 
   19350   FCLIBS=$FCLIBS_cap_ax_save_flags
   19351 
   19352 
   19353   FFLAGS=$FFLAGS_cap_ax_save_flags
   19354 
   19355 
   19356   FLIBS=$FLIBS_cap_ax_save_flags
   19357 
   19358 
   19359   GCJFLAGS=$GCJFLAGS_cap_ax_save_flags
   19360 
   19361 
   19362   JAVACFLAGS=$JAVACFLAGS_cap_ax_save_flags
   19363 
   19364 
   19365   LDFLAGS=$LDFLAGS_cap_ax_save_flags
   19366 
   19367 
   19368   LIBS=$LIBS_cap_ax_save_flags
   19369 
   19370 
   19371   OBJCFLAGS=$OBJCFLAGS_cap_ax_save_flags
   19372 
   19373 
   19374   OBJCXXFLAGS=$OBJCXXFLAGS_cap_ax_save_flags
   19375 
   19376 
   19377   UPCFLAGS=$UPCFLAGS_cap_ax_save_flags
   19378 
   19379 
   19380   VALAFLAGS=$VALAFLAGS_cap_ax_save_flags
   19381 
   19382 
   19383 
   19384 else
   19385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19386 $as_echo "no" >&6; }
   19387 fi
   19388 
   19389 
   19390 for ac_header in sys/un.h
   19391 do :
   19392   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
   19393 if test "x$ac_cv_header_sys_un_h" = xyes; then :
   19394   cat >>confdefs.h <<_ACEOF
   19395 #define HAVE_SYS_UN_H 1
   19396 _ACEOF
   19397  ISC_PLATFORM_HAVESYSUNH="#define ISC_PLATFORM_HAVESYSUNH 1"
   19398 
   19399 else
   19400   ISC_PLATFORM_HAVESYSUNH="#undef ISC_PLATFORM_HAVESYSUNH"
   19401 
   19402 fi
   19403 
   19404 done
   19405 
   19406 
   19407 
   19408 case "$host" in
   19409 *-solaris*)
   19410 
   19411 $as_echo "#define NEED_SECURE_DIRECTORY 1" >>confdefs.h
   19412 
   19413 	;;
   19414 esac
   19415 
   19416 #
   19417 # Time Zone Stuff
   19418 #
   19419 for ac_func in tzset
   19420 do :
   19421   ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
   19422 if test "x$ac_cv_func_tzset" = xyes; then :
   19423   cat >>confdefs.h <<_ACEOF
   19424 #define HAVE_TZSET 1
   19425 _ACEOF
   19426 
   19427 fi
   19428 done
   19429 
   19430 
   19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optarg declaration" >&5
   19432 $as_echo_n "checking for optarg declaration... " >&6; }
   19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19434 /* end confdefs.h.  */
   19435 
   19436 #include <unistd.h>
   19437 
   19438 int
   19439 main ()
   19440 {
   19441 optarg = 0;
   19442   ;
   19443   return 0;
   19444 }
   19445 _ACEOF
   19446 if ac_fn_c_try_compile "$LINENO"; then :
   19447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19448 $as_echo "yes" >&6; }
   19449 else
   19450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19451 $as_echo "no" >&6; }
   19452 GEN_NEED_OPTARG="-DNEED_OPTARG=1"
   19453 
   19454 $as_echo "#define NEED_OPTARG 1" >>confdefs.h
   19455 
   19456 fi
   19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19458 
   19459 #
   19460 # Check for nanoseconds in file stats
   19461 #
   19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_mtim.tv_nsec" >&5
   19463 $as_echo_n "checking for st_mtim.tv_nsec... " >&6; }
   19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19465 /* end confdefs.h.  */
   19466 #include <sys/fcntl.h>
   19467 int
   19468 main ()
   19469 {
   19470 struct stat s;
   19471        return(s.st_mtim.tv_nsec);
   19472 
   19473   ;
   19474   return 0;
   19475 }
   19476 _ACEOF
   19477 if ac_fn_c_try_compile "$LINENO"; then :
   19478 
   19479 $as_echo "#define HAVE_STAT_NSEC 1" >>confdefs.h
   19480 
   19481 fi
   19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19483 
   19484 #
   19485 # Check for if_nametoindex() for IPv6 scoped addresses support
   19486 #
   19487 for ac_func in if_nametoindex
   19488 do :
   19489   ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
   19490 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
   19491   cat >>confdefs.h <<_ACEOF
   19492 #define HAVE_IF_NAMETOINDEX 1
   19493 _ACEOF
   19494 
   19495 fi
   19496 done
   19497 
   19498 
   19499 for ac_func in nanosleep usleep explicit_bzero
   19500 do :
   19501   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   19502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   19503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   19504   cat >>confdefs.h <<_ACEOF
   19505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   19506 _ACEOF
   19507 
   19508 fi
   19509 done
   19510 
   19511 
   19512 ISC_ATOMIC_LIBS=""
   19513 for ac_header in stdatomic.h
   19514 do :
   19515   ac_fn_c_check_header_mongrel "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
   19516 if test "x$ac_cv_header_stdatomic_h" = xyes; then :
   19517   cat >>confdefs.h <<_ACEOF
   19518 #define HAVE_STDATOMIC_H 1
   19519 _ACEOF
   19520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   19521 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   19522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19523 /* end confdefs.h.  */
   19524 #include <stdatomic.h>
   19525 int
   19526 main ()
   19527 {
   19528 atomic_int_fast32_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19529 
   19530   ;
   19531   return 0;
   19532 }
   19533 _ACEOF
   19534 if ac_fn_c_try_compile "$LINENO"; then :
   19535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdatomic.h" >&5
   19536 $as_echo "stdatomic.h" >&6; }
   19537       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit stdatomic.h functions" >&5
   19538 $as_echo_n "checking whether -latomic is needed for 64-bit stdatomic.h functions... " >&6; }
   19539       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19540 /* end confdefs.h.  */
   19541 #include <stdatomic.h>
   19542 int
   19543 main ()
   19544 {
   19545 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19546 
   19547   ;
   19548   return 0;
   19549 }
   19550 _ACEOF
   19551 if ac_fn_c_try_link "$LINENO"; then :
   19552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19553 $as_echo "no" >&6; }
   19554 else
   19555   ISC_ATOMIC_LIBS="-latomic"
   19556 
   19557 
   19558   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   19559 
   19560 
   19561 
   19562   CFLAGS_atomic_ax_save_flags=$CFLAGS
   19563 
   19564 
   19565 
   19566   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   19567 
   19568 
   19569 
   19570   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   19571 
   19572 
   19573 
   19574   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   19575 
   19576 
   19577 
   19578   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   19579 
   19580 
   19581 
   19582   FCLIBS_atomic_ax_save_flags=$FCLIBS
   19583 
   19584 
   19585 
   19586   FFLAGS_atomic_ax_save_flags=$FFLAGS
   19587 
   19588 
   19589 
   19590   FLIBS_atomic_ax_save_flags=$FLIBS
   19591 
   19592 
   19593 
   19594   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   19595 
   19596 
   19597 
   19598   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   19599 
   19600 
   19601 
   19602   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   19603 
   19604 
   19605 
   19606   LIBS_atomic_ax_save_flags=$LIBS
   19607 
   19608 
   19609 
   19610   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   19611 
   19612 
   19613 
   19614   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   19615 
   19616 
   19617 
   19618   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   19619 
   19620 
   19621 
   19622   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   19623 
   19624 
   19625 
   19626 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   19627 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19628 /* end confdefs.h.  */
   19629 #include <stdatomic.h>
   19630 int
   19631 main ()
   19632 {
   19633 atomic_int_fast64_t val = 0; atomic_fetch_add_explicit(&val, 1, memory_order_relaxed);
   19634 
   19635   ;
   19636   return 0;
   19637 }
   19638 _ACEOF
   19639 if ac_fn_c_try_link "$LINENO"; then :
   19640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19641 $as_echo "yes" >&6; }
   19642 else
   19643   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19645 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   19646 See \`config.log' for more details" "$LINENO" 5; }
   19647 fi
   19648 rm -f core conftest.err conftest.$ac_objext \
   19649     conftest$ac_exeext conftest.$ac_ext
   19650 
   19651   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   19652 
   19653 
   19654   CFLAGS=$CFLAGS_atomic_ax_save_flags
   19655 
   19656 
   19657   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   19658 
   19659 
   19660   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   19661 
   19662 
   19663   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   19664 
   19665 
   19666   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   19667 
   19668 
   19669   FCLIBS=$FCLIBS_atomic_ax_save_flags
   19670 
   19671 
   19672   FFLAGS=$FFLAGS_atomic_ax_save_flags
   19673 
   19674 
   19675   FLIBS=$FLIBS_atomic_ax_save_flags
   19676 
   19677 
   19678   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   19679 
   19680 
   19681   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   19682 
   19683 
   19684   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   19685 
   19686 
   19687   LIBS=$LIBS_atomic_ax_save_flags
   19688 
   19689 
   19690   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   19691 
   19692 
   19693   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   19694 
   19695 
   19696   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   19697 
   19698 
   19699   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   19700 
   19701 
   19702 
   19703 
   19704 fi
   19705 rm -f core conftest.err conftest.$ac_objext \
   19706     conftest$ac_exeext conftest.$ac_ext
   19707 
   19708 else
   19709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19711 as_fn_error $? "stdatomic.h header found, but compilation failed, please fix your toolchain.
   19712 See \`config.log' for more details" "$LINENO" 5; }
   19713 
   19714 fi
   19715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19716 else
   19717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory model aware atomic operations" >&5
   19718 $as_echo_n "checking for memory model aware atomic operations... " >&6; }
   19719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19720 /* end confdefs.h.  */
   19721 #include <inttypes.h>
   19722 int
   19723 main ()
   19724 {
   19725 int32_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   19726 
   19727   ;
   19728   return 0;
   19729 }
   19730 _ACEOF
   19731 if ac_fn_c_try_compile "$LINENO"; then :
   19732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __atomic builtins" >&5
   19733 $as_echo "__atomic builtins" >&6; }
   19734 
   19735 $as_echo "#define HAVE___ATOMIC 1" >>confdefs.h
   19736 
   19737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed for 64-bit __atomic builtins" >&5
   19738 $as_echo_n "checking whether -latomic is needed for 64-bit __atomic builtins... " >&6; }
   19739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19740 /* end confdefs.h.  */
   19741 #include <inttypes.h>
   19742 int
   19743 main ()
   19744 {
   19745 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   19746 
   19747   ;
   19748   return 0;
   19749 }
   19750 _ACEOF
   19751 if ac_fn_c_try_link "$LINENO"; then :
   19752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19753 $as_echo "no" >&6; }
   19754 else
   19755   ISC_ATOMIC_LIBS="-latomic"
   19756 
   19757 
   19758   CCASFLAGS_atomic_ax_save_flags=$CCASFLAGS
   19759 
   19760 
   19761 
   19762   CFLAGS_atomic_ax_save_flags=$CFLAGS
   19763 
   19764 
   19765 
   19766   CPPFLAGS_atomic_ax_save_flags=$CPPFLAGS
   19767 
   19768 
   19769 
   19770   CXXFLAGS_atomic_ax_save_flags=$CXXFLAGS
   19771 
   19772 
   19773 
   19774   ERLCFLAGS_atomic_ax_save_flags=$ERLCFLAGS
   19775 
   19776 
   19777 
   19778   FCFLAGS_atomic_ax_save_flags=$FCFLAGS
   19779 
   19780 
   19781 
   19782   FCLIBS_atomic_ax_save_flags=$FCLIBS
   19783 
   19784 
   19785 
   19786   FFLAGS_atomic_ax_save_flags=$FFLAGS
   19787 
   19788 
   19789 
   19790   FLIBS_atomic_ax_save_flags=$FLIBS
   19791 
   19792 
   19793 
   19794   GCJFLAGS_atomic_ax_save_flags=$GCJFLAGS
   19795 
   19796 
   19797 
   19798   JAVACFLAGS_atomic_ax_save_flags=$JAVACFLAGS
   19799 
   19800 
   19801 
   19802   LDFLAGS_atomic_ax_save_flags=$LDFLAGS
   19803 
   19804 
   19805 
   19806   LIBS_atomic_ax_save_flags=$LIBS
   19807 
   19808 
   19809 
   19810   OBJCFLAGS_atomic_ax_save_flags=$OBJCFLAGS
   19811 
   19812 
   19813 
   19814   OBJCXXFLAGS_atomic_ax_save_flags=$OBJCXXFLAGS
   19815 
   19816 
   19817 
   19818   UPCFLAGS_atomic_ax_save_flags=$UPCFLAGS
   19819 
   19820 
   19821 
   19822   VALAFLAGS_atomic_ax_save_flags=$VALAFLAGS
   19823 
   19824 
   19825 
   19826 	 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   19827 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19828 /* end confdefs.h.  */
   19829 #include <inttypes.h>
   19830 int
   19831 main ()
   19832 {
   19833 int64_t val = 0; __atomic_fetch_add(&val, 1, __ATOMIC_RELAXED);
   19834 
   19835   ;
   19836   return 0;
   19837 }
   19838 _ACEOF
   19839 if ac_fn_c_try_link "$LINENO"; then :
   19840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19841 $as_echo "yes" >&6; }
   19842 else
   19843   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   19844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   19845 as_fn_error $? "libatomic needed, but linking with -latomic failed, please fix your toolchain.
   19846 See \`config.log' for more details" "$LINENO" 5; }
   19847 fi
   19848 rm -f core conftest.err conftest.$ac_objext \
   19849     conftest$ac_exeext conftest.$ac_ext
   19850 
   19851   CCASFLAGS=$CCASFLAGS_atomic_ax_save_flags
   19852 
   19853 
   19854   CFLAGS=$CFLAGS_atomic_ax_save_flags
   19855 
   19856 
   19857   CPPFLAGS=$CPPFLAGS_atomic_ax_save_flags
   19858 
   19859 
   19860   CXXFLAGS=$CXXFLAGS_atomic_ax_save_flags
   19861 
   19862 
   19863   ERLCFLAGS=$ERLCFLAGS_atomic_ax_save_flags
   19864 
   19865 
   19866   FCFLAGS=$FCFLAGS_atomic_ax_save_flags
   19867 
   19868 
   19869   FCLIBS=$FCLIBS_atomic_ax_save_flags
   19870 
   19871 
   19872   FFLAGS=$FFLAGS_atomic_ax_save_flags
   19873 
   19874 
   19875   FLIBS=$FLIBS_atomic_ax_save_flags
   19876 
   19877 
   19878   GCJFLAGS=$GCJFLAGS_atomic_ax_save_flags
   19879 
   19880 
   19881   JAVACFLAGS=$JAVACFLAGS_atomic_ax_save_flags
   19882 
   19883 
   19884   LDFLAGS=$LDFLAGS_atomic_ax_save_flags
   19885 
   19886 
   19887   LIBS=$LIBS_atomic_ax_save_flags
   19888 
   19889 
   19890   OBJCFLAGS=$OBJCFLAGS_atomic_ax_save_flags
   19891 
   19892 
   19893   OBJCXXFLAGS=$OBJCXXFLAGS_atomic_ax_save_flags
   19894 
   19895 
   19896   UPCFLAGS=$UPCFLAGS_atomic_ax_save_flags
   19897 
   19898 
   19899   VALAFLAGS=$VALAFLAGS_atomic_ax_save_flags
   19900 
   19901 
   19902 
   19903 
   19904 fi
   19905 rm -f core conftest.err conftest.$ac_objext \
   19906     conftest$ac_exeext conftest.$ac_ext
   19907 
   19908 else
   19909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __sync builtins" >&5
   19910 $as_echo "__sync builtins" >&6; }
   19911 
   19912 fi
   19913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19914 
   19915 fi
   19916 
   19917 done
   19918 
   19919 LIBS="$LIBS $ISC_ATOMIC_LIBS"
   19920 
   19921 for ac_header in stdalign.h
   19922 do :
   19923   ac_fn_c_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
   19924 if test "x$ac_cv_header_stdalign_h" = xyes; then :
   19925   cat >>confdefs.h <<_ACEOF
   19926 #define HAVE_STDALIGN_H 1
   19927 _ACEOF
   19928 
   19929 fi
   19930 
   19931 done
   19932 
   19933 
   19934 for ac_header in uchar.h
   19935 do :
   19936   ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
   19937 if test "x$ac_cv_header_uchar_h" = xyes; then :
   19938   cat >>confdefs.h <<_ACEOF
   19939 #define HAVE_UCHAR_H 1
   19940 _ACEOF
   19941 
   19942 fi
   19943 
   19944 done
   19945 
   19946 
   19947 #
   19948 # Check for __builtin_unreachable
   19949 #
   19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_unreachable()" >&5
   19951 $as_echo_n "checking compiler support for __builtin_unreachable()... " >&6; }
   19952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19953 /* end confdefs.h.  */
   19954 
   19955 int
   19956 main ()
   19957 {
   19958 __builtin_unreachable();
   19959 
   19960   ;
   19961   return 0;
   19962 }
   19963 _ACEOF
   19964 if ac_fn_c_try_link "$LINENO"; then :
   19965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   19966 $as_echo "yes" >&6; }
   19967 
   19968 $as_echo "#define HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
   19969 
   19970 
   19971 else
   19972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19973 $as_echo "no" >&6; }
   19974 
   19975 fi
   19976 rm -f core conftest.err conftest.$ac_objext \
   19977     conftest$ac_exeext conftest.$ac_ext
   19978 
   19979 #
   19980 # Check for __builtin_expect
   19981 #
   19982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_expect" >&5
   19983 $as_echo_n "checking compiler support for __builtin_expect... " >&6; }
   19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19985 /* end confdefs.h.  */
   19986 
   19987 int
   19988 main ()
   19989 {
   19990 
   19991 	return (__builtin_expect(1, 1) ? 1 : 0);
   19992 
   19993   ;
   19994   return 0;
   19995 }
   19996 _ACEOF
   19997 if ac_fn_c_try_link "$LINENO"; then :
   19998 
   19999 	have_builtin_expect=yes
   20000 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20001 $as_echo "yes" >&6; }
   20002 
   20003 else
   20004 
   20005 	have_builtin_expect=no
   20006 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20007 $as_echo "no" >&6; }
   20008 
   20009 fi
   20010 rm -f core conftest.err conftest.$ac_objext \
   20011     conftest$ac_exeext conftest.$ac_ext
   20012 if test "yes" = "$have_builtin_expect"; then
   20013 
   20014 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
   20015 
   20016 fi
   20017 
   20018 #
   20019 # Check for __builtin_clz
   20020 #
   20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for __builtin_clz" >&5
   20022 $as_echo_n "checking compiler support for __builtin_clz... " >&6; }
   20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20024 /* end confdefs.h.  */
   20025 
   20026 int
   20027 main ()
   20028 {
   20029 
   20030 	return (__builtin_clz(0xff) == 24 ? 1 : 0);
   20031 
   20032   ;
   20033   return 0;
   20034 }
   20035 _ACEOF
   20036 if ac_fn_c_try_link "$LINENO"; then :
   20037 
   20038 	have_builtin_clz=yes
   20039 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   20040 $as_echo "yes" >&6; }
   20041 
   20042 else
   20043 
   20044 	have_builtin_clz=no
   20045 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20046 $as_echo "no" >&6; }
   20047 
   20048 fi
   20049 rm -f core conftest.err conftest.$ac_objext \
   20050     conftest$ac_exeext conftest.$ac_ext
   20051 if test "yes" = "$have_builtin_clz"; then
   20052 
   20053 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h
   20054 
   20055 fi
   20056 
   20057 #
   20058 # Activate "rrset-order fixed" or not?
   20059 #
   20060 # Check whether --enable-fixed-rrset was given.
   20061 if test "${enable_fixed_rrset+set}" = set; then :
   20062   enableval=$enable_fixed_rrset; enable_fixed="$enableval"
   20063 else
   20064   enable_fixed="no"
   20065 fi
   20066 
   20067 case "$enable_fixed" in
   20068 	yes)
   20069 
   20070 $as_echo "#define DNS_RDATASET_FIXED 1" >>confdefs.h
   20071 
   20072 		;;
   20073 	no)
   20074 		;;
   20075 	*)
   20076 		;;
   20077 esac
   20078 
   20079 #
   20080 # Activate dnstap?
   20081 #
   20082 # Check whether --enable-dnstap was given.
   20083 if test "${enable_dnstap+set}" = set; then :
   20084   enableval=$enable_dnstap; use_dnstap=$enableval
   20085 else
   20086   use_dnstap=no
   20087 fi
   20088 
   20089 
   20090 DNSTAP=
   20091 DNSTAPSRCS=
   20092 DNSTAPOBJS=
   20093 DNSTAPTARGETS=
   20094 if test "x$use_dnstap" != "xno"; then
   20095 
   20096 # Check whether --with-protobuf-c was given.
   20097 if test "${with_protobuf_c+set}" = set; then :
   20098   withval=$with_protobuf_c;
   20099 	    # workaround for protobuf-c includes at old dir
   20100 	    # before protobuf-c-1.0.0
   20101 	    if test -f $withval/include/google/protobuf-c/protobuf-c.h
   20102 	    then
   20103 		CFLAGS="$CFLAGS -I$withval/include/google"
   20104 	    else
   20105 		CFLAGS="$CFLAGS -I$withval/include"
   20106 	    fi
   20107 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   20108 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20109 set dummy protoc-c; ac_word=$2
   20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20111 $as_echo_n "checking for $ac_word... " >&6; }
   20112 if ${ac_cv_path_PROTOC_C+:} false; then :
   20113   $as_echo_n "(cached) " >&6
   20114 else
   20115   case $PROTOC_C in
   20116   [\\/]* | ?:[\\/]*)
   20117   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20118   ;;
   20119   *)
   20120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20121 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20122 do
   20123   IFS=$as_save_IFS
   20124   test -z "$as_dir" && as_dir=.
   20125     for ac_exec_ext in '' $ac_executable_extensions; do
   20126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20127     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20129     break 2
   20130   fi
   20131 done
   20132   done
   20133 IFS=$as_save_IFS
   20134 
   20135   ;;
   20136 esac
   20137 fi
   20138 PROTOC_C=$ac_cv_path_PROTOC_C
   20139 if test -n "$PROTOC_C"; then
   20140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20141 $as_echo "$PROTOC_C" >&6; }
   20142 else
   20143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20144 $as_echo "no" >&6; }
   20145 fi
   20146 
   20147 
   20148 
   20149 else
   20150 
   20151 	    # workaround for protobuf-c includes at old dir
   20152 	    # before protobuf-c-1.0.0
   20153 	    if test -f /usr/include/google/protobuf-c/protobuf-c.h
   20154 	    then
   20155 		CFLAGS="$CFLAGS -I/usr/include/google"
   20156 	    else
   20157 		if test -f /usr/local/include/google/protobuf-c/protobuf-c.h
   20158 		then
   20159 		    CFLAGS="$CFLAGS -I/usr/local/include/google"
   20160 		    LDFLAGS="$LDFLAGS -L/usr/local/lib"
   20161 		fi
   20162 	    fi
   20163 	    # Extract the first word of "protoc-c", so it can be a program name with args.
   20164 set dummy protoc-c; ac_word=$2
   20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20166 $as_echo_n "checking for $ac_word... " >&6; }
   20167 if ${ac_cv_path_PROTOC_C+:} false; then :
   20168   $as_echo_n "(cached) " >&6
   20169 else
   20170   case $PROTOC_C in
   20171   [\\/]* | ?:[\\/]*)
   20172   ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
   20173   ;;
   20174   *)
   20175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20176 for as_dir in $PATH
   20177 do
   20178   IFS=$as_save_IFS
   20179   test -z "$as_dir" && as_dir=.
   20180     for ac_exec_ext in '' $ac_executable_extensions; do
   20181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20182     ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
   20183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20184     break 2
   20185   fi
   20186 done
   20187   done
   20188 IFS=$as_save_IFS
   20189 
   20190   ;;
   20191 esac
   20192 fi
   20193 PROTOC_C=$ac_cv_path_PROTOC_C
   20194 if test -n "$PROTOC_C"; then
   20195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
   20196 $as_echo "$PROTOC_C" >&6; }
   20197 else
   20198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20199 $as_echo "no" >&6; }
   20200 fi
   20201 
   20202 
   20203 
   20204 fi
   20205 
   20206 	if test -z "$PROTOC_C"; then
   20207 		as_fn_error $? "The protoc-c program was not found." "$LINENO" 5
   20208 	fi
   20209 
   20210 # Check whether --with-libfstrm was given.
   20211 if test "${with_libfstrm+set}" = set; then :
   20212   withval=$with_libfstrm;
   20213 	    CFLAGS="$CFLAGS -I$withval/include"
   20214 	    LDFLAGS="$LDFLAGS -L$withval/lib"
   20215 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   20216 set dummy fstrm_capture; ac_word=$2
   20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20218 $as_echo_n "checking for $ac_word... " >&6; }
   20219 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20220   $as_echo_n "(cached) " >&6
   20221 else
   20222   case $FSTRM_CAPTURE in
   20223   [\\/]* | ?:[\\/]*)
   20224   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20225   ;;
   20226   *)
   20227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20228 for as_dir in $PATH$PATH_SEPARATOR$withval/bin
   20229 do
   20230   IFS=$as_save_IFS
   20231   test -z "$as_dir" && as_dir=.
   20232     for ac_exec_ext in '' $ac_executable_extensions; do
   20233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20234     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20236     break 2
   20237   fi
   20238 done
   20239   done
   20240 IFS=$as_save_IFS
   20241 
   20242   ;;
   20243 esac
   20244 fi
   20245 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20246 if test -n "$FSTRM_CAPTURE"; then
   20247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20248 $as_echo "$FSTRM_CAPTURE" >&6; }
   20249 else
   20250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20251 $as_echo "no" >&6; }
   20252 fi
   20253 
   20254 
   20255 
   20256 else
   20257 
   20258 	    # Extract the first word of "fstrm_capture", so it can be a program name with args.
   20259 set dummy fstrm_capture; ac_word=$2
   20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20261 $as_echo_n "checking for $ac_word... " >&6; }
   20262 if ${ac_cv_path_FSTRM_CAPTURE+:} false; then :
   20263   $as_echo_n "(cached) " >&6
   20264 else
   20265   case $FSTRM_CAPTURE in
   20266   [\\/]* | ?:[\\/]*)
   20267   ac_cv_path_FSTRM_CAPTURE="$FSTRM_CAPTURE" # Let the user override the test with a path.
   20268   ;;
   20269   *)
   20270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20271 for as_dir in $PATH
   20272 do
   20273   IFS=$as_save_IFS
   20274   test -z "$as_dir" && as_dir=.
   20275     for ac_exec_ext in '' $ac_executable_extensions; do
   20276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20277     ac_cv_path_FSTRM_CAPTURE="$as_dir/$ac_word$ac_exec_ext"
   20278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20279     break 2
   20280   fi
   20281 done
   20282   done
   20283 IFS=$as_save_IFS
   20284 
   20285   ;;
   20286 esac
   20287 fi
   20288 FSTRM_CAPTURE=$ac_cv_path_FSTRM_CAPTURE
   20289 if test -n "$FSTRM_CAPTURE"; then
   20290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSTRM_CAPTURE" >&5
   20291 $as_echo "$FSTRM_CAPTURE" >&6; }
   20292 else
   20293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20294 $as_echo "no" >&6; }
   20295 fi
   20296 
   20297 
   20298 
   20299 fi
   20300 
   20301 
   20302 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
   20303 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
   20304 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20305   $as_echo_n "(cached) " >&6
   20306 else
   20307   ac_func_search_save_LIBS=$LIBS
   20308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20309 /* end confdefs.h.  */
   20310 
   20311 /* Override any GCC internal prototype to avoid an error.
   20312    Use char because int might match the return type of a GCC
   20313    builtin and then its argument prototype would still apply.  */
   20314 #ifdef __cplusplus
   20315 extern "C"
   20316 #endif
   20317 char fstrm_iothr_init ();
   20318 int
   20319 main ()
   20320 {
   20321 return fstrm_iothr_init ();
   20322   ;
   20323   return 0;
   20324 }
   20325 _ACEOF
   20326 for ac_lib in '' fstrm; do
   20327   if test -z "$ac_lib"; then
   20328     ac_res="none required"
   20329   else
   20330     ac_res=-l$ac_lib
   20331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20332   fi
   20333   if ac_fn_c_try_link "$LINENO"; then :
   20334   ac_cv_search_fstrm_iothr_init=$ac_res
   20335 fi
   20336 rm -f core conftest.err conftest.$ac_objext \
   20337     conftest$ac_exeext
   20338   if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20339   break
   20340 fi
   20341 done
   20342 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
   20343 
   20344 else
   20345   ac_cv_search_fstrm_iothr_init=no
   20346 fi
   20347 rm conftest.$ac_ext
   20348 LIBS=$ac_func_search_save_LIBS
   20349 fi
   20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
   20351 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
   20352 ac_res=$ac_cv_search_fstrm_iothr_init
   20353 if test "$ac_res" != no; then :
   20354   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20355 
   20356 else
   20357   as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
   20358 fi
   20359 
   20360 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
   20361 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
   20362 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20363   $as_echo_n "(cached) " >&6
   20364 else
   20365   ac_func_search_save_LIBS=$LIBS
   20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   20367 /* end confdefs.h.  */
   20368 
   20369 /* Override any GCC internal prototype to avoid an error.
   20370    Use char because int might match the return type of a GCC
   20371    builtin and then its argument prototype would still apply.  */
   20372 #ifdef __cplusplus
   20373 extern "C"
   20374 #endif
   20375 char protobuf_c_message_pack ();
   20376 int
   20377 main ()
   20378 {
   20379 return protobuf_c_message_pack ();
   20380   ;
   20381   return 0;
   20382 }
   20383 _ACEOF
   20384 for ac_lib in '' protobuf-c; do
   20385   if test -z "$ac_lib"; then
   20386     ac_res="none required"
   20387   else
   20388     ac_res=-l$ac_lib
   20389     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   20390   fi
   20391   if ac_fn_c_try_link "$LINENO"; then :
   20392   ac_cv_search_protobuf_c_message_pack=$ac_res
   20393 fi
   20394 rm -f core conftest.err conftest.$ac_objext \
   20395     conftest$ac_exeext
   20396   if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20397   break
   20398 fi
   20399 done
   20400 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
   20401 
   20402 else
   20403   ac_cv_search_protobuf_c_message_pack=no
   20404 fi
   20405 rm conftest.$ac_ext
   20406 LIBS=$ac_func_search_save_LIBS
   20407 fi
   20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
   20409 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
   20410 ac_res=$ac_cv_search_protobuf_c_message_pack
   20411 if test "$ac_res" != no; then :
   20412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   20413 
   20414 else
   20415   as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
   20416 fi
   20417 
   20418 
   20419 
   20420 $as_echo "#define HAVE_DNSTAP 1" >>confdefs.h
   20421 
   20422 	DNSTAP=dnstap
   20423 	DNSTAPSRCS='${DNSTAPSRCS}'
   20424 	DNSTAPOBJS='${DNSTAPOBJS}'
   20425 	DNSTAPTARGETS='${DNSTAPTARGETS}'
   20426 fi
   20427 
   20428 
   20429 
   20430 
   20431 
   20432 #
   20433 #  The following sets up how non-blocking i/o is established.
   20434 #  cygwin and solaris 2.x (x<5) require special handling.
   20435 #
   20436 case "$host" in
   20437 *-cygwin*) $as_echo "#define PORT_NONBLOCK O_NDELAY" >>confdefs.h
   20438 ;;
   20439 *-solaris2.[01234])
   20440 	$as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   20441 
   20442 
   20443 $as_echo "#define USE_FIONBIO_IOCTL 1" >>confdefs.h
   20444 
   20445 	;;
   20446 *)
   20447 $as_echo "#define PORT_NONBLOCK O_NONBLOCK" >>confdefs.h
   20448 
   20449 	;;
   20450 esac
   20451 #
   20452 # Solaris 2.5.1 and earlier cannot bind() then connect() a TCP socket.
   20453 # This prevents the source address being set.
   20454 #
   20455 case "$host" in
   20456 *-solaris2.[012345]|*-solaris2.5.1)
   20457 
   20458 $as_echo "#define BROKEN_TCP_BIND_BEFORE_CONNECT 1" >>confdefs.h
   20459 
   20460 	;;
   20461 esac
   20462 #
   20463 # The following sections deal with tools used for formatting
   20464 # the documentation.  They are all optional, unless you are
   20465 # a developer editing the documentation source.
   20466 #
   20467 
   20468 #
   20469 # Look for TeX.
   20470 #
   20471 
   20472 for ac_prog in latex
   20473 do
   20474   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20475 set dummy $ac_prog; ac_word=$2
   20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20477 $as_echo_n "checking for $ac_word... " >&6; }
   20478 if ${ac_cv_path_LATEX+:} false; then :
   20479   $as_echo_n "(cached) " >&6
   20480 else
   20481   case $LATEX in
   20482   [\\/]* | ?:[\\/]*)
   20483   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
   20484   ;;
   20485   *)
   20486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20487 for as_dir in $PATH
   20488 do
   20489   IFS=$as_save_IFS
   20490   test -z "$as_dir" && as_dir=.
   20491     for ac_exec_ext in '' $ac_executable_extensions; do
   20492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20493     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
   20494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20495     break 2
   20496   fi
   20497 done
   20498   done
   20499 IFS=$as_save_IFS
   20500 
   20501   ;;
   20502 esac
   20503 fi
   20504 LATEX=$ac_cv_path_LATEX
   20505 if test -n "$LATEX"; then
   20506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
   20507 $as_echo "$LATEX" >&6; }
   20508 else
   20509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20510 $as_echo "no" >&6; }
   20511 fi
   20512 
   20513 
   20514   test -n "$LATEX" && break
   20515 done
   20516 test -n "$LATEX" || LATEX="latex"
   20517 
   20518 
   20519 
   20520 for ac_prog in pdflatex
   20521 do
   20522   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20523 set dummy $ac_prog; ac_word=$2
   20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20525 $as_echo_n "checking for $ac_word... " >&6; }
   20526 if ${ac_cv_path_PDFLATEX+:} false; then :
   20527   $as_echo_n "(cached) " >&6
   20528 else
   20529   case $PDFLATEX in
   20530   [\\/]* | ?:[\\/]*)
   20531   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
   20532   ;;
   20533   *)
   20534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20535 for as_dir in $PATH
   20536 do
   20537   IFS=$as_save_IFS
   20538   test -z "$as_dir" && as_dir=.
   20539     for ac_exec_ext in '' $ac_executable_extensions; do
   20540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20541     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
   20542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20543     break 2
   20544   fi
   20545 done
   20546   done
   20547 IFS=$as_save_IFS
   20548 
   20549   ;;
   20550 esac
   20551 fi
   20552 PDFLATEX=$ac_cv_path_PDFLATEX
   20553 if test -n "$PDFLATEX"; then
   20554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
   20555 $as_echo "$PDFLATEX" >&6; }
   20556 else
   20557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20558 $as_echo "no" >&6; }
   20559 fi
   20560 
   20561 
   20562   test -n "$PDFLATEX" && break
   20563 done
   20564 test -n "$PDFLATEX" || PDFLATEX="pdflatex"
   20565 
   20566 
   20567 
   20568 for ac_prog in dblatex
   20569 do
   20570   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20571 set dummy $ac_prog; ac_word=$2
   20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20573 $as_echo_n "checking for $ac_word... " >&6; }
   20574 if ${ac_cv_path_DBLATEX+:} false; then :
   20575   $as_echo_n "(cached) " >&6
   20576 else
   20577   case $DBLATEX in
   20578   [\\/]* | ?:[\\/]*)
   20579   ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
   20580   ;;
   20581   *)
   20582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20583 for as_dir in $PATH
   20584 do
   20585   IFS=$as_save_IFS
   20586   test -z "$as_dir" && as_dir=.
   20587     for ac_exec_ext in '' $ac_executable_extensions; do
   20588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20589     ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
   20590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20591     break 2
   20592   fi
   20593 done
   20594   done
   20595 IFS=$as_save_IFS
   20596 
   20597   ;;
   20598 esac
   20599 fi
   20600 DBLATEX=$ac_cv_path_DBLATEX
   20601 if test -n "$DBLATEX"; then
   20602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
   20603 $as_echo "$DBLATEX" >&6; }
   20604 else
   20605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20606 $as_echo "no" >&6; }
   20607 fi
   20608 
   20609 
   20610   test -n "$DBLATEX" && break
   20611 done
   20612 test -n "$DBLATEX" || DBLATEX="dblatex"
   20613 
   20614 
   20615 
   20616 #
   20617 # Look for w3m
   20618 #
   20619 
   20620 for ac_prog in w3m
   20621 do
   20622   # Extract the first word of "$ac_prog", so it can be a program name with args.
   20623 set dummy $ac_prog; ac_word=$2
   20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20625 $as_echo_n "checking for $ac_word... " >&6; }
   20626 if ${ac_cv_path_W3M+:} false; then :
   20627   $as_echo_n "(cached) " >&6
   20628 else
   20629   case $W3M in
   20630   [\\/]* | ?:[\\/]*)
   20631   ac_cv_path_W3M="$W3M" # Let the user override the test with a path.
   20632   ;;
   20633   *)
   20634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20635 for as_dir in $PATH
   20636 do
   20637   IFS=$as_save_IFS
   20638   test -z "$as_dir" && as_dir=.
   20639     for ac_exec_ext in '' $ac_executable_extensions; do
   20640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20641     ac_cv_path_W3M="$as_dir/$ac_word$ac_exec_ext"
   20642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20643     break 2
   20644   fi
   20645 done
   20646   done
   20647 IFS=$as_save_IFS
   20648 
   20649   ;;
   20650 esac
   20651 fi
   20652 W3M=$ac_cv_path_W3M
   20653 if test -n "$W3M"; then
   20654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $W3M" >&5
   20655 $as_echo "$W3M" >&6; }
   20656 else
   20657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20658 $as_echo "no" >&6; }
   20659 fi
   20660 
   20661 
   20662   test -n "$W3M" && break
   20663 done
   20664 test -n "$W3M" || W3M="w3m"
   20665 
   20666 
   20667 
   20668 #
   20669 # Look for pandoc
   20670 #
   20671 # Extract the first word of "pandoc", so it can be a program name with args.
   20672 set dummy pandoc; ac_word=$2
   20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20674 $as_echo_n "checking for $ac_word... " >&6; }
   20675 if ${ac_cv_path_PANDOC+:} false; then :
   20676   $as_echo_n "(cached) " >&6
   20677 else
   20678   case $PANDOC in
   20679   [\\/]* | ?:[\\/]*)
   20680   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
   20681   ;;
   20682   *)
   20683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20684 for as_dir in $PATH
   20685 do
   20686   IFS=$as_save_IFS
   20687   test -z "$as_dir" && as_dir=.
   20688     for ac_exec_ext in '' $ac_executable_extensions; do
   20689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20690     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
   20691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20692     break 2
   20693   fi
   20694 done
   20695   done
   20696 IFS=$as_save_IFS
   20697 
   20698   test -z "$ac_cv_path_PANDOC" && ac_cv_path_PANDOC="pandoc"
   20699   ;;
   20700 esac
   20701 fi
   20702 PANDOC=$ac_cv_path_PANDOC
   20703 if test -n "$PANDOC"; then
   20704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
   20705 $as_echo "$PANDOC" >&6; }
   20706 else
   20707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20708 $as_echo "no" >&6; }
   20709 fi
   20710 
   20711 
   20712 
   20713 
   20714 
   20715 #
   20716 # Look for xsltproc (libxslt)
   20717 #
   20718 
   20719 # Extract the first word of "xsltproc", so it can be a program name with args.
   20720 set dummy xsltproc; ac_word=$2
   20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20722 $as_echo_n "checking for $ac_word... " >&6; }
   20723 if ${ac_cv_path_XSLTPROC+:} false; then :
   20724   $as_echo_n "(cached) " >&6
   20725 else
   20726   case $XSLTPROC in
   20727   [\\/]* | ?:[\\/]*)
   20728   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   20729   ;;
   20730   *)
   20731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20732 for as_dir in $PATH
   20733 do
   20734   IFS=$as_save_IFS
   20735   test -z "$as_dir" && as_dir=.
   20736     for ac_exec_ext in '' $ac_executable_extensions; do
   20737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20738     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   20739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20740     break 2
   20741   fi
   20742 done
   20743   done
   20744 IFS=$as_save_IFS
   20745 
   20746   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
   20747   ;;
   20748 esac
   20749 fi
   20750 XSLTPROC=$ac_cv_path_XSLTPROC
   20751 if test -n "$XSLTPROC"; then
   20752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   20753 $as_echo "$XSLTPROC" >&6; }
   20754 else
   20755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20756 $as_echo "no" >&6; }
   20757 fi
   20758 
   20759 
   20760 
   20761 
   20762 #
   20763 # Look for xmllint (libxml2)
   20764 #
   20765 
   20766 # Extract the first word of "xmllint", so it can be a program name with args.
   20767 set dummy xmllint; ac_word=$2
   20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20769 $as_echo_n "checking for $ac_word... " >&6; }
   20770 if ${ac_cv_path_XMLLINT+:} false; then :
   20771   $as_echo_n "(cached) " >&6
   20772 else
   20773   case $XMLLINT in
   20774   [\\/]* | ?:[\\/]*)
   20775   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
   20776   ;;
   20777   *)
   20778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20779 for as_dir in $PATH
   20780 do
   20781   IFS=$as_save_IFS
   20782   test -z "$as_dir" && as_dir=.
   20783     for ac_exec_ext in '' $ac_executable_extensions; do
   20784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20785     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
   20786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20787     break 2
   20788   fi
   20789 done
   20790   done
   20791 IFS=$as_save_IFS
   20792 
   20793   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="xmllint"
   20794   ;;
   20795 esac
   20796 fi
   20797 XMLLINT=$ac_cv_path_XMLLINT
   20798 if test -n "$XMLLINT"; then
   20799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
   20800 $as_echo "$XMLLINT" >&6; }
   20801 else
   20802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20803 $as_echo "no" >&6; }
   20804 fi
   20805 
   20806 
   20807 
   20808 
   20809 #
   20810 # Look for Doxygen
   20811 #
   20812 
   20813 # Extract the first word of "doxygen", so it can be a program name with args.
   20814 set dummy doxygen; ac_word=$2
   20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20816 $as_echo_n "checking for $ac_word... " >&6; }
   20817 if ${ac_cv_path_DOXYGEN+:} false; then :
   20818   $as_echo_n "(cached) " >&6
   20819 else
   20820   case $DOXYGEN in
   20821   [\\/]* | ?:[\\/]*)
   20822   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
   20823   ;;
   20824   *)
   20825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20826 for as_dir in $PATH
   20827 do
   20828   IFS=$as_save_IFS
   20829   test -z "$as_dir" && as_dir=.
   20830     for ac_exec_ext in '' $ac_executable_extensions; do
   20831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20832     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
   20833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20834     break 2
   20835   fi
   20836 done
   20837   done
   20838 IFS=$as_save_IFS
   20839 
   20840   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
   20841   ;;
   20842 esac
   20843 fi
   20844 DOXYGEN=$ac_cv_path_DOXYGEN
   20845 if test -n "$DOXYGEN"; then
   20846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
   20847 $as_echo "$DOXYGEN" >&6; }
   20848 else
   20849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20850 $as_echo "no" >&6; }
   20851 fi
   20852 
   20853 
   20854 
   20855 
   20856 #
   20857 # Look for curl
   20858 #
   20859 
   20860 # Extract the first word of "curl", so it can be a program name with args.
   20861 set dummy curl; ac_word=$2
   20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   20863 $as_echo_n "checking for $ac_word... " >&6; }
   20864 if ${ac_cv_path_CURL+:} false; then :
   20865   $as_echo_n "(cached) " >&6
   20866 else
   20867   case $CURL in
   20868   [\\/]* | ?:[\\/]*)
   20869   ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
   20870   ;;
   20871   *)
   20872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   20873 for as_dir in $PATH
   20874 do
   20875   IFS=$as_save_IFS
   20876   test -z "$as_dir" && as_dir=.
   20877     for ac_exec_ext in '' $ac_executable_extensions; do
   20878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   20879     ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
   20880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   20881     break 2
   20882   fi
   20883 done
   20884   done
   20885 IFS=$as_save_IFS
   20886 
   20887   test -z "$ac_cv_path_CURL" && ac_cv_path_CURL="curl"
   20888   ;;
   20889 esac
   20890 fi
   20891 CURL=$ac_cv_path_CURL
   20892 if test -n "$CURL"; then
   20893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
   20894 $as_echo "$CURL" >&6; }
   20895 else
   20896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   20897 $as_echo "no" >&6; }
   20898 fi
   20899 
   20900 
   20901 
   20902 
   20903 #
   20904 # Subroutine for searching for an ordinary file (e.g., a stylesheet)
   20905 # in a number of directories:
   20906 #
   20907 #   NOM_PATH_FILE(VARIABLE, FILENAME, DIRECTORIES)
   20908 #
   20909 # If the file FILENAME is found in one of the DIRECTORIES, the shell
   20910 # variable VARIABLE is defined to its absolute pathname.  Otherwise,
   20911 # it is set to FILENAME, with no directory prefix (that's not terribly
   20912 # useful, but looks less confusing in substitutions than leaving it
   20913 # empty).  The variable VARIABLE will be substituted into output files.
   20914 #
   20915 
   20916 
   20917 
   20918 #
   20919 # Look for Docbook-XSL stylesheets.  Location probably varies by system.
   20920 # If it's not explicitly specified, guess where it might be found, based on
   20921 # where SGML stuff lives on some systems (FreeBSD is the only one we're sure
   20922 # of at the moment).
   20923 #
   20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook-XSL path" >&5
   20925 $as_echo_n "checking for Docbook-XSL path... " >&6; }
   20926 
   20927 # Check whether --with-docbook-xsl was given.
   20928 if test "${with_docbook_xsl+set}" = set; then :
   20929   withval=$with_docbook_xsl; docbook_path="$withval"
   20930 else
   20931   docbook_path="auto"
   20932 fi
   20933 
   20934 case "$docbook_path" in
   20935 auto)
   20936 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
   20937 $as_echo "auto" >&6; }
   20938 	docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl"
   20939 	;;
   20940 *)
   20941 	docbook_xsl_trees="$withval"
   20942 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $docbook_xsl_trees" >&5
   20943 $as_echo "$docbook_xsl_trees" >&6; }
   20944 	;;
   20945 esac
   20946 
   20947 #
   20948 # Look for stylesheets we need.
   20949 #
   20950 
   20951 
   20952 XSLT_DOCBOOK_STYLE_HTML=""
   20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/docbook.xsl" >&5
   20954 $as_echo_n "checking for html/docbook.xsl... " >&6; }
   20955 for d in $docbook_xsl_trees
   20956 do
   20957 	f=$d/html/docbook.xsl
   20958 	if test -f $f
   20959 	then
   20960 		XSLT_DOCBOOK_STYLE_HTML=$f
   20961 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   20962 $as_echo "$f" >&6; }
   20963 		break
   20964 	fi
   20965 done
   20966 if test "X$XSLT_DOCBOOK_STYLE_HTML" = "X"
   20967 then
   20968 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   20969 $as_echo "\"not found\"" >&6; };
   20970 	XSLT_DOCBOOK_STYLE_HTML=html/docbook.xsl
   20971 fi
   20972 
   20973 
   20974 
   20975 XSLT_DOCBOOK_STYLE_XHTML=""
   20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/docbook.xsl" >&5
   20977 $as_echo_n "checking for xhtml/docbook.xsl... " >&6; }
   20978 for d in $docbook_xsl_trees
   20979 do
   20980 	f=$d/xhtml/docbook.xsl
   20981 	if test -f $f
   20982 	then
   20983 		XSLT_DOCBOOK_STYLE_XHTML=$f
   20984 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   20985 $as_echo "$f" >&6; }
   20986 		break
   20987 	fi
   20988 done
   20989 if test "X$XSLT_DOCBOOK_STYLE_XHTML" = "X"
   20990 then
   20991 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   20992 $as_echo "\"not found\"" >&6; };
   20993 	XSLT_DOCBOOK_STYLE_XHTML=xhtml/docbook.xsl
   20994 fi
   20995 
   20996 
   20997 
   20998 XSLT_DOCBOOK_STYLE_MAN=""
   20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for manpages/docbook.xsl" >&5
   21000 $as_echo_n "checking for manpages/docbook.xsl... " >&6; }
   21001 for d in $docbook_xsl_trees
   21002 do
   21003 	f=$d/manpages/docbook.xsl
   21004 	if test -f $f
   21005 	then
   21006 		XSLT_DOCBOOK_STYLE_MAN=$f
   21007 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21008 $as_echo "$f" >&6; }
   21009 		break
   21010 	fi
   21011 done
   21012 if test "X$XSLT_DOCBOOK_STYLE_MAN" = "X"
   21013 then
   21014 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21015 $as_echo "\"not found\"" >&6; };
   21016 	XSLT_DOCBOOK_STYLE_MAN=manpages/docbook.xsl
   21017 fi
   21018 
   21019 
   21020 
   21021 XSLT_DOCBOOK_CHUNK_HTML=""
   21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunk.xsl" >&5
   21023 $as_echo_n "checking for html/chunk.xsl... " >&6; }
   21024 for d in $docbook_xsl_trees
   21025 do
   21026 	f=$d/html/chunk.xsl
   21027 	if test -f $f
   21028 	then
   21029 		XSLT_DOCBOOK_CHUNK_HTML=$f
   21030 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21031 $as_echo "$f" >&6; }
   21032 		break
   21033 	fi
   21034 done
   21035 if test "X$XSLT_DOCBOOK_CHUNK_HTML" = "X"
   21036 then
   21037 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21038 $as_echo "\"not found\"" >&6; };
   21039 	XSLT_DOCBOOK_CHUNK_HTML=html/chunk.xsl
   21040 fi
   21041 
   21042 
   21043 
   21044 XSLT_DOCBOOK_CHUNK_XHTML=""
   21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunk.xsl" >&5
   21046 $as_echo_n "checking for xhtml/chunk.xsl... " >&6; }
   21047 for d in $docbook_xsl_trees
   21048 do
   21049 	f=$d/xhtml/chunk.xsl
   21050 	if test -f $f
   21051 	then
   21052 		XSLT_DOCBOOK_CHUNK_XHTML=$f
   21053 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21054 $as_echo "$f" >&6; }
   21055 		break
   21056 	fi
   21057 done
   21058 if test "X$XSLT_DOCBOOK_CHUNK_XHTML" = "X"
   21059 then
   21060 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21061 $as_echo "\"not found\"" >&6; };
   21062 	XSLT_DOCBOOK_CHUNK_XHTML=xhtml/chunk.xsl
   21063 fi
   21064 
   21065 
   21066 
   21067 XSLT_DOCBOOK_CHUNKTOC_HTML=""
   21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/chunktoc.xsl" >&5
   21069 $as_echo_n "checking for html/chunktoc.xsl... " >&6; }
   21070 for d in $docbook_xsl_trees
   21071 do
   21072 	f=$d/html/chunktoc.xsl
   21073 	if test -f $f
   21074 	then
   21075 		XSLT_DOCBOOK_CHUNKTOC_HTML=$f
   21076 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21077 $as_echo "$f" >&6; }
   21078 		break
   21079 	fi
   21080 done
   21081 if test "X$XSLT_DOCBOOK_CHUNKTOC_HTML" = "X"
   21082 then
   21083 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21084 $as_echo "\"not found\"" >&6; };
   21085 	XSLT_DOCBOOK_CHUNKTOC_HTML=html/chunktoc.xsl
   21086 fi
   21087 
   21088 
   21089 
   21090 XSLT_DOCBOOK_CHUNKTOC_XHTML=""
   21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/chunktoc.xsl" >&5
   21092 $as_echo_n "checking for xhtml/chunktoc.xsl... " >&6; }
   21093 for d in $docbook_xsl_trees
   21094 do
   21095 	f=$d/xhtml/chunktoc.xsl
   21096 	if test -f $f
   21097 	then
   21098 		XSLT_DOCBOOK_CHUNKTOC_XHTML=$f
   21099 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21100 $as_echo "$f" >&6; }
   21101 		break
   21102 	fi
   21103 done
   21104 if test "X$XSLT_DOCBOOK_CHUNKTOC_XHTML" = "X"
   21105 then
   21106 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21107 $as_echo "\"not found\"" >&6; };
   21108 	XSLT_DOCBOOK_CHUNKTOC_XHTML=xhtml/chunktoc.xsl
   21109 fi
   21110 
   21111 
   21112 
   21113 XSLT_DOCBOOK_MAKETOC_HTML=""
   21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for html/maketoc.xsl" >&5
   21115 $as_echo_n "checking for html/maketoc.xsl... " >&6; }
   21116 for d in $docbook_xsl_trees
   21117 do
   21118 	f=$d/html/maketoc.xsl
   21119 	if test -f $f
   21120 	then
   21121 		XSLT_DOCBOOK_MAKETOC_HTML=$f
   21122 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21123 $as_echo "$f" >&6; }
   21124 		break
   21125 	fi
   21126 done
   21127 if test "X$XSLT_DOCBOOK_MAKETOC_HTML" = "X"
   21128 then
   21129 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21130 $as_echo "\"not found\"" >&6; };
   21131 	XSLT_DOCBOOK_MAKETOC_HTML=html/maketoc.xsl
   21132 fi
   21133 
   21134 
   21135 
   21136 XSLT_DOCBOOK_MAKETOC_XHTML=""
   21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xhtml/maketoc.xsl" >&5
   21138 $as_echo_n "checking for xhtml/maketoc.xsl... " >&6; }
   21139 for d in $docbook_xsl_trees
   21140 do
   21141 	f=$d/xhtml/maketoc.xsl
   21142 	if test -f $f
   21143 	then
   21144 		XSLT_DOCBOOK_MAKETOC_XHTML=$f
   21145 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f" >&5
   21146 $as_echo "$f" >&6; }
   21147 		break
   21148 	fi
   21149 done
   21150 if test "X$XSLT_DOCBOOK_MAKETOC_XHTML" = "X"
   21151 then
   21152 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
   21153 $as_echo "\"not found\"" >&6; };
   21154 	XSLT_DOCBOOK_MAKETOC_XHTML=xhtml/maketoc.xsl
   21155 fi
   21156 
   21157 
   21158 
   21159 #
   21160 # IDN support using libidn2
   21161 #
   21162 
   21163 LIBIDN2_CFLAGS=
   21164 LIBIDN2_LDFLAGS=
   21165 LIBIDN2_LIBS=
   21166 
   21167 # Check whether --with-libidn2 was given.
   21168 if test "${with_libidn2+set}" = set; then :
   21169   withval=$with_libidn2; with_libidn2="$withval"
   21170 else
   21171   with_libidn2="no"
   21172 fi
   21173 
   21174 case $with_libidn2 in #(
   21175   yes) :
   21176 
   21177 pkg_failed=no
   21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2" >&5
   21179 $as_echo_n "checking for libidn2... " >&6; }
   21180 
   21181 if test -n "$LIBIDN2_CFLAGS"; then
   21182     pkg_cv_LIBIDN2_CFLAGS="$LIBIDN2_CFLAGS"
   21183  elif test -n "$PKG_CONFIG"; then
   21184     if test -n "$PKG_CONFIG" && \
   21185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21186   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21187   ac_status=$?
   21188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21189   test $ac_status = 0; }; then
   21190   pkg_cv_LIBIDN2_CFLAGS=`$PKG_CONFIG --cflags "libidn2" 2>/dev/null`
   21191 		      test "x$?" != "x0" && pkg_failed=yes
   21192 else
   21193   pkg_failed=yes
   21194 fi
   21195  else
   21196     pkg_failed=untried
   21197 fi
   21198 if test -n "$LIBIDN2_LIBS"; then
   21199     pkg_cv_LIBIDN2_LIBS="$LIBIDN2_LIBS"
   21200  elif test -n "$PKG_CONFIG"; then
   21201     if test -n "$PKG_CONFIG" && \
   21202     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn2\""; } >&5
   21203   ($PKG_CONFIG --exists --print-errors "libidn2") 2>&5
   21204   ac_status=$?
   21205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21206   test $ac_status = 0; }; then
   21207   pkg_cv_LIBIDN2_LIBS=`$PKG_CONFIG --libs "libidn2" 2>/dev/null`
   21208 		      test "x$?" != "x0" && pkg_failed=yes
   21209 else
   21210   pkg_failed=yes
   21211 fi
   21212  else
   21213     pkg_failed=untried
   21214 fi
   21215 
   21216 
   21217 
   21218 if test $pkg_failed = yes; then
   21219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21220 $as_echo "no" >&6; }
   21221 
   21222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21223         _pkg_short_errors_supported=yes
   21224 else
   21225         _pkg_short_errors_supported=no
   21226 fi
   21227         if test $_pkg_short_errors_supported = yes; then
   21228 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn2" 2>&1`
   21229         else
   21230 	        LIBIDN2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn2" 2>&1`
   21231         fi
   21232 	# Put the nasty error message in config.log where it belongs
   21233 	echo "$LIBIDN2_PKG_ERRORS" >&5
   21234 
   21235 	as_fn_error $? "Package requirements (libidn2) were not met:
   21236 
   21237 $LIBIDN2_PKG_ERRORS
   21238 
   21239 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21240 installed software in a non-standard prefix.
   21241 
   21242 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21243 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21244 See the pkg-config man page for more details." "$LINENO" 5
   21245 elif test $pkg_failed = untried; then
   21246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21247 $as_echo "no" >&6; }
   21248 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21250 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21251 is in your PATH or set the PKG_CONFIG environment variable to the full
   21252 path to pkg-config.
   21253 
   21254 Alternatively, you may set the environment variables LIBIDN2_CFLAGS
   21255 and LIBIDN2_LIBS to avoid the need to call pkg-config.
   21256 See the pkg-config man page for more details.
   21257 
   21258 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21259 See \`config.log' for more details" "$LINENO" 5; }
   21260 else
   21261 	LIBIDN2_CFLAGS=$pkg_cv_LIBIDN2_CFLAGS
   21262 	LIBIDN2_LIBS=$pkg_cv_LIBIDN2_LIBS
   21263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21264 $as_echo "yes" >&6; }
   21265 
   21266 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21267 
   21268 fi ;; #(
   21269   no) :
   21270      ;; #(
   21271   *) :
   21272 
   21273 
   21274   CCASFLAGS_libidn2_ax_save_flags=$CCASFLAGS
   21275 
   21276 
   21277 
   21278   CFLAGS_libidn2_ax_save_flags=$CFLAGS
   21279 
   21280 
   21281 
   21282   CPPFLAGS_libidn2_ax_save_flags=$CPPFLAGS
   21283 
   21284 
   21285 
   21286   CXXFLAGS_libidn2_ax_save_flags=$CXXFLAGS
   21287 
   21288 
   21289 
   21290   ERLCFLAGS_libidn2_ax_save_flags=$ERLCFLAGS
   21291 
   21292 
   21293 
   21294   FCFLAGS_libidn2_ax_save_flags=$FCFLAGS
   21295 
   21296 
   21297 
   21298   FCLIBS_libidn2_ax_save_flags=$FCLIBS
   21299 
   21300 
   21301 
   21302   FFLAGS_libidn2_ax_save_flags=$FFLAGS
   21303 
   21304 
   21305 
   21306   FLIBS_libidn2_ax_save_flags=$FLIBS
   21307 
   21308 
   21309 
   21310   GCJFLAGS_libidn2_ax_save_flags=$GCJFLAGS
   21311 
   21312 
   21313 
   21314   JAVACFLAGS_libidn2_ax_save_flags=$JAVACFLAGS
   21315 
   21316 
   21317 
   21318   LDFLAGS_libidn2_ax_save_flags=$LDFLAGS
   21319 
   21320 
   21321 
   21322   LIBS_libidn2_ax_save_flags=$LIBS
   21323 
   21324 
   21325 
   21326   OBJCFLAGS_libidn2_ax_save_flags=$OBJCFLAGS
   21327 
   21328 
   21329 
   21330   OBJCXXFLAGS_libidn2_ax_save_flags=$OBJCXXFLAGS
   21331 
   21332 
   21333 
   21334   UPCFLAGS_libidn2_ax_save_flags=$UPCFLAGS
   21335 
   21336 
   21337 
   21338   VALAFLAGS_libidn2_ax_save_flags=$VALAFLAGS
   21339 
   21340 
   21341 
   21342 		 LIBIDN2_CFLAGS="-I$with_libidn2/include"
   21343 		 LIBIDN2_LDFLAGS="-L$with_libidn2/lib"
   21344 		 CFLAGS="$LIBIDN2_CFLAGS $CFLAGS"
   21345 		 CPPFLAGS="$LIBIDN2_CFLAGS $CPPFLAGS"
   21346 		 LDFLAGS="$LIBIDN2_LDFLAGS $LDFLAGS"
   21347 		 for ac_header in idn2.h
   21348 do :
   21349   ac_fn_c_check_header_mongrel "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
   21350 if test "x$ac_cv_header_idn2_h" = xyes; then :
   21351   cat >>confdefs.h <<_ACEOF
   21352 #define HAVE_IDN2_H 1
   21353 _ACEOF
   21354 
   21355 else
   21356   as_fn_error $? "idn2.h not found" "$LINENO" 5
   21357 fi
   21358 
   21359 done
   21360 
   21361 		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_to_ascii_lz" >&5
   21362 $as_echo_n "checking for library containing idn2_to_ascii_lz... " >&6; }
   21363 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21364   $as_echo_n "(cached) " >&6
   21365 else
   21366   ac_func_search_save_LIBS=$LIBS
   21367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21368 /* end confdefs.h.  */
   21369 
   21370 /* Override any GCC internal prototype to avoid an error.
   21371    Use char because int might match the return type of a GCC
   21372    builtin and then its argument prototype would still apply.  */
   21373 #ifdef __cplusplus
   21374 extern "C"
   21375 #endif
   21376 char idn2_to_ascii_lz ();
   21377 int
   21378 main ()
   21379 {
   21380 return idn2_to_ascii_lz ();
   21381   ;
   21382   return 0;
   21383 }
   21384 _ACEOF
   21385 for ac_lib in '' idn2; do
   21386   if test -z "$ac_lib"; then
   21387     ac_res="none required"
   21388   else
   21389     ac_res=-l$ac_lib
   21390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   21391   fi
   21392   if ac_fn_c_try_link "$LINENO"; then :
   21393   ac_cv_search_idn2_to_ascii_lz=$ac_res
   21394 fi
   21395 rm -f core conftest.err conftest.$ac_objext \
   21396     conftest$ac_exeext
   21397   if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21398   break
   21399 fi
   21400 done
   21401 if ${ac_cv_search_idn2_to_ascii_lz+:} false; then :
   21402 
   21403 else
   21404   ac_cv_search_idn2_to_ascii_lz=no
   21405 fi
   21406 rm conftest.$ac_ext
   21407 LIBS=$ac_func_search_save_LIBS
   21408 fi
   21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_idn2_to_ascii_lz" >&5
   21410 $as_echo "$ac_cv_search_idn2_to_ascii_lz" >&6; }
   21411 ac_res=$ac_cv_search_idn2_to_ascii_lz
   21412 if test "$ac_res" != no; then :
   21413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   21414   LIBIDN2_LIBS="$ac_cv_search_idn2_to_ascii_lz"
   21415 
   21416 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
   21417 
   21418 else
   21419   as_fn_error $? "libidn2 requested, but not found" "$LINENO" 5
   21420 fi
   21421 
   21422 
   21423   CCASFLAGS=$CCASFLAGS_libidn2_ax_save_flags
   21424 
   21425 
   21426   CFLAGS=$CFLAGS_libidn2_ax_save_flags
   21427 
   21428 
   21429   CPPFLAGS=$CPPFLAGS_libidn2_ax_save_flags
   21430 
   21431 
   21432   CXXFLAGS=$CXXFLAGS_libidn2_ax_save_flags
   21433 
   21434 
   21435   ERLCFLAGS=$ERLCFLAGS_libidn2_ax_save_flags
   21436 
   21437 
   21438   FCFLAGS=$FCFLAGS_libidn2_ax_save_flags
   21439 
   21440 
   21441   FCLIBS=$FCLIBS_libidn2_ax_save_flags
   21442 
   21443 
   21444   FFLAGS=$FFLAGS_libidn2_ax_save_flags
   21445 
   21446 
   21447   FLIBS=$FLIBS_libidn2_ax_save_flags
   21448 
   21449 
   21450   GCJFLAGS=$GCJFLAGS_libidn2_ax_save_flags
   21451 
   21452 
   21453   JAVACFLAGS=$JAVACFLAGS_libidn2_ax_save_flags
   21454 
   21455 
   21456   LDFLAGS=$LDFLAGS_libidn2_ax_save_flags
   21457 
   21458 
   21459   LIBS=$LIBS_libidn2_ax_save_flags
   21460 
   21461 
   21462   OBJCFLAGS=$OBJCFLAGS_libidn2_ax_save_flags
   21463 
   21464 
   21465   OBJCXXFLAGS=$OBJCXXFLAGS_libidn2_ax_save_flags
   21466 
   21467 
   21468   UPCFLAGS=$UPCFLAGS_libidn2_ax_save_flags
   21469 
   21470 
   21471   VALAFLAGS=$VALAFLAGS_libidn2_ax_save_flags
   21472 
   21473 
   21474  ;; #(
   21475   *) :
   21476      ;;
   21477 esac
   21478 
   21479 
   21480 
   21481 
   21482 #
   21483 # Check whether to build with cmocka unit testing framework
   21484 #
   21485 
   21486 
   21487 # Check whether --with-cmocka was given.
   21488 if test "${with_cmocka+set}" = set; then :
   21489   withval=$with_cmocka;
   21490 else
   21491   with_cmocka=detect
   21492 fi
   21493 
   21494 
   21495 case $with_cmocka in #(
   21496   no) :
   21497      ;; #(
   21498   detect) :
   21499 
   21500 pkg_failed=no
   21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21502 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21503 
   21504 if test -n "$CMOCKA_CFLAGS"; then
   21505     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21506  elif test -n "$PKG_CONFIG"; then
   21507     if test -n "$PKG_CONFIG" && \
   21508     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21509   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21510   ac_status=$?
   21511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21512   test $ac_status = 0; }; then
   21513   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21514 		      test "x$?" != "x0" && pkg_failed=yes
   21515 else
   21516   pkg_failed=yes
   21517 fi
   21518  else
   21519     pkg_failed=untried
   21520 fi
   21521 if test -n "$CMOCKA_LIBS"; then
   21522     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21523  elif test -n "$PKG_CONFIG"; then
   21524     if test -n "$PKG_CONFIG" && \
   21525     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21526   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21527   ac_status=$?
   21528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21529   test $ac_status = 0; }; then
   21530   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21531 		      test "x$?" != "x0" && pkg_failed=yes
   21532 else
   21533   pkg_failed=yes
   21534 fi
   21535  else
   21536     pkg_failed=untried
   21537 fi
   21538 
   21539 
   21540 
   21541 if test $pkg_failed = yes; then
   21542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21543 $as_echo "no" >&6; }
   21544 
   21545 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21546         _pkg_short_errors_supported=yes
   21547 else
   21548         _pkg_short_errors_supported=no
   21549 fi
   21550         if test $_pkg_short_errors_supported = yes; then
   21551 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21552         else
   21553 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21554         fi
   21555 	# Put the nasty error message in config.log where it belongs
   21556 	echo "$CMOCKA_PKG_ERRORS" >&5
   21557 
   21558 	with_cmocka=no
   21559 elif test $pkg_failed = untried; then
   21560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21561 $as_echo "no" >&6; }
   21562 	with_cmocka=no
   21563 else
   21564 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21565 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21567 $as_echo "yes" >&6; }
   21568 
   21569 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21570 
   21571 				     UNITTESTS=tests
   21572 fi ;; #(
   21573   yes) :
   21574 
   21575 pkg_failed=no
   21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmocka >= 1.0.0" >&5
   21577 $as_echo_n "checking for cmocka >= 1.0.0... " >&6; }
   21578 
   21579 if test -n "$CMOCKA_CFLAGS"; then
   21580     pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
   21581  elif test -n "$PKG_CONFIG"; then
   21582     if test -n "$PKG_CONFIG" && \
   21583     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21584   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21585   ac_status=$?
   21586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21587   test $ac_status = 0; }; then
   21588   pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0.0" 2>/dev/null`
   21589 		      test "x$?" != "x0" && pkg_failed=yes
   21590 else
   21591   pkg_failed=yes
   21592 fi
   21593  else
   21594     pkg_failed=untried
   21595 fi
   21596 if test -n "$CMOCKA_LIBS"; then
   21597     pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
   21598  elif test -n "$PKG_CONFIG"; then
   21599     if test -n "$PKG_CONFIG" && \
   21600     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0.0\""; } >&5
   21601   ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0.0") 2>&5
   21602   ac_status=$?
   21603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   21604   test $ac_status = 0; }; then
   21605   pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0.0" 2>/dev/null`
   21606 		      test "x$?" != "x0" && pkg_failed=yes
   21607 else
   21608   pkg_failed=yes
   21609 fi
   21610  else
   21611     pkg_failed=untried
   21612 fi
   21613 
   21614 
   21615 
   21616 if test $pkg_failed = yes; then
   21617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21618 $as_echo "no" >&6; }
   21619 
   21620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   21621         _pkg_short_errors_supported=yes
   21622 else
   21623         _pkg_short_errors_supported=no
   21624 fi
   21625         if test $_pkg_short_errors_supported = yes; then
   21626 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21627         else
   21628 	        CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0.0" 2>&1`
   21629         fi
   21630 	# Put the nasty error message in config.log where it belongs
   21631 	echo "$CMOCKA_PKG_ERRORS" >&5
   21632 
   21633 	as_fn_error $? "Package requirements (cmocka >= 1.0.0) were not met:
   21634 
   21635 $CMOCKA_PKG_ERRORS
   21636 
   21637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
   21638 installed software in a non-standard prefix.
   21639 
   21640 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21641 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21642 See the pkg-config man page for more details." "$LINENO" 5
   21643 elif test $pkg_failed = untried; then
   21644         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21645 $as_echo "no" >&6; }
   21646 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   21647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   21648 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
   21649 is in your PATH or set the PKG_CONFIG environment variable to the full
   21650 path to pkg-config.
   21651 
   21652 Alternatively, you may set the environment variables CMOCKA_CFLAGS
   21653 and CMOCKA_LIBS to avoid the need to call pkg-config.
   21654 See the pkg-config man page for more details.
   21655 
   21656 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
   21657 See \`config.log' for more details" "$LINENO" 5; }
   21658 else
   21659 	CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
   21660 	CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
   21661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21662 $as_echo "yes" >&6; }
   21663 
   21664 $as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
   21665 
   21666 fi
   21667 	                          UNITTESTS=tests ;; #(
   21668   *) :
   21669     as_fn_error $? "Use PKG_CONFIG_PATH to specify path to CMocka library" "$LINENO" 5
   21670         ;;
   21671 esac
   21672 
   21673 
   21674 
   21675 
   21676 #
   21677 # Check for kyua execution engine if CMocka was requested
   21678 # and bail out if execution engine was not found
   21679 #
   21680 
   21681 if test "$with_cmocka" != "no"; then :
   21682   for ac_prog in kyua
   21683 do
   21684   # Extract the first word of "$ac_prog", so it can be a program name with args.
   21685 set dummy $ac_prog; ac_word=$2
   21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   21687 $as_echo_n "checking for $ac_word... " >&6; }
   21688 if ${ac_cv_path_KYUA+:} false; then :
   21689   $as_echo_n "(cached) " >&6
   21690 else
   21691   case $KYUA in
   21692   [\\/]* | ?:[\\/]*)
   21693   ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
   21694   ;;
   21695   *)
   21696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   21697 for as_dir in $PATH
   21698 do
   21699   IFS=$as_save_IFS
   21700   test -z "$as_dir" && as_dir=.
   21701     for ac_exec_ext in '' $ac_executable_extensions; do
   21702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   21703     ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
   21704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   21705     break 2
   21706   fi
   21707 done
   21708   done
   21709 IFS=$as_save_IFS
   21710 
   21711   ;;
   21712 esac
   21713 fi
   21714 KYUA=$ac_cv_path_KYUA
   21715 if test -n "$KYUA"; then
   21716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
   21717 $as_echo "$KYUA" >&6; }
   21718 else
   21719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21720 $as_echo "no" >&6; }
   21721 fi
   21722 
   21723 
   21724   test -n "$KYUA" && break
   21725 done
   21726 
   21727        if test -z "$KYUA"; then :
   21728   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: kyua test execution engine not found" >&5
   21729 $as_echo "$as_me: WARNING: kyua test execution engine not found" >&2;}
   21730 fi
   21731 fi
   21732 
   21733 
   21734 
   21735 #
   21736 # Check for -Wl,--wrap= support
   21737 #
   21738 
   21739 LD_WRAP_TESTS=false
   21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for --wrap option" >&5
   21741 $as_echo_n "checking for linker support for --wrap option... " >&6; }
   21742 
   21743 
   21744   CCASFLAGS_wrap_ax_save_flags=$CCASFLAGS
   21745 
   21746 
   21747 
   21748   CFLAGS_wrap_ax_save_flags=$CFLAGS
   21749 
   21750 
   21751 
   21752   CPPFLAGS_wrap_ax_save_flags=$CPPFLAGS
   21753 
   21754 
   21755 
   21756   CXXFLAGS_wrap_ax_save_flags=$CXXFLAGS
   21757 
   21758 
   21759 
   21760   ERLCFLAGS_wrap_ax_save_flags=$ERLCFLAGS
   21761 
   21762 
   21763 
   21764   FCFLAGS_wrap_ax_save_flags=$FCFLAGS
   21765 
   21766 
   21767 
   21768   FCLIBS_wrap_ax_save_flags=$FCLIBS
   21769 
   21770 
   21771 
   21772   FFLAGS_wrap_ax_save_flags=$FFLAGS
   21773 
   21774 
   21775 
   21776   FLIBS_wrap_ax_save_flags=$FLIBS
   21777 
   21778 
   21779 
   21780   GCJFLAGS_wrap_ax_save_flags=$GCJFLAGS
   21781 
   21782 
   21783 
   21784   JAVACFLAGS_wrap_ax_save_flags=$JAVACFLAGS
   21785 
   21786 
   21787 
   21788   LDFLAGS_wrap_ax_save_flags=$LDFLAGS
   21789 
   21790 
   21791 
   21792   LIBS_wrap_ax_save_flags=$LIBS
   21793 
   21794 
   21795 
   21796   OBJCFLAGS_wrap_ax_save_flags=$OBJCFLAGS
   21797 
   21798 
   21799 
   21800   OBJCXXFLAGS_wrap_ax_save_flags=$OBJCXXFLAGS
   21801 
   21802 
   21803 
   21804   UPCFLAGS_wrap_ax_save_flags=$UPCFLAGS
   21805 
   21806 
   21807 
   21808   VALAFLAGS_wrap_ax_save_flags=$VALAFLAGS
   21809 
   21810 
   21811 
   21812 LDFLAGS="-Wl,-wrap,exit"
   21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21814 /* end confdefs.h.  */
   21815 #include <stdlib.h>
   21816 		       void __real_exit (int status);
   21817 		       void __wrap_exit (int status) { __real_exit (status); }
   21818 
   21819 int
   21820 main ()
   21821 {
   21822 exit (1);
   21823   ;
   21824   return 0;
   21825 }
   21826 _ACEOF
   21827 if ac_fn_c_try_link "$LINENO"; then :
   21828   LD_WRAP_TESTS=true
   21829 
   21830 $as_echo "#define LD_WRAP 1" >>confdefs.h
   21831 
   21832      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21833 $as_echo "yes" >&6; }
   21834 else
   21835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21836 $as_echo "no" >&6; }
   21837 fi
   21838 rm -f core conftest.err conftest.$ac_objext \
   21839     conftest$ac_exeext conftest.$ac_ext
   21840 
   21841   CCASFLAGS=$CCASFLAGS_wrap_ax_save_flags
   21842 
   21843 
   21844   CFLAGS=$CFLAGS_wrap_ax_save_flags
   21845 
   21846 
   21847   CPPFLAGS=$CPPFLAGS_wrap_ax_save_flags
   21848 
   21849 
   21850   CXXFLAGS=$CXXFLAGS_wrap_ax_save_flags
   21851 
   21852 
   21853   ERLCFLAGS=$ERLCFLAGS_wrap_ax_save_flags
   21854 
   21855 
   21856   FCFLAGS=$FCFLAGS_wrap_ax_save_flags
   21857 
   21858 
   21859   FCLIBS=$FCLIBS_wrap_ax_save_flags
   21860 
   21861 
   21862   FFLAGS=$FFLAGS_wrap_ax_save_flags
   21863 
   21864 
   21865   FLIBS=$FLIBS_wrap_ax_save_flags
   21866 
   21867 
   21868   GCJFLAGS=$GCJFLAGS_wrap_ax_save_flags
   21869 
   21870 
   21871   JAVACFLAGS=$JAVACFLAGS_wrap_ax_save_flags
   21872 
   21873 
   21874   LDFLAGS=$LDFLAGS_wrap_ax_save_flags
   21875 
   21876 
   21877   LIBS=$LIBS_wrap_ax_save_flags
   21878 
   21879 
   21880   OBJCFLAGS=$OBJCFLAGS_wrap_ax_save_flags
   21881 
   21882 
   21883   OBJCXXFLAGS=$OBJCXXFLAGS_wrap_ax_save_flags
   21884 
   21885 
   21886   UPCFLAGS=$UPCFLAGS_wrap_ax_save_flags
   21887 
   21888 
   21889   VALAFLAGS=$VALAFLAGS_wrap_ax_save_flags
   21890 
   21891 
   21892 
   21893 
   21894 
   21895 
   21896 WRAP_INTERPOSE=
   21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker support for '-z interpose' option" >&5
   21898 $as_echo_n "checking for linker support for '-z interpose' option... " >&6; }
   21899 
   21900 
   21901   CCASFLAGS_interpose_ax_save_flags=$CCASFLAGS
   21902 
   21903 
   21904 
   21905   CFLAGS_interpose_ax_save_flags=$CFLAGS
   21906 
   21907 
   21908 
   21909   CPPFLAGS_interpose_ax_save_flags=$CPPFLAGS
   21910 
   21911 
   21912 
   21913   CXXFLAGS_interpose_ax_save_flags=$CXXFLAGS
   21914 
   21915 
   21916 
   21917   ERLCFLAGS_interpose_ax_save_flags=$ERLCFLAGS
   21918 
   21919 
   21920 
   21921   FCFLAGS_interpose_ax_save_flags=$FCFLAGS
   21922 
   21923 
   21924 
   21925   FCLIBS_interpose_ax_save_flags=$FCLIBS
   21926 
   21927 
   21928 
   21929   FFLAGS_interpose_ax_save_flags=$FFLAGS
   21930 
   21931 
   21932 
   21933   FLIBS_interpose_ax_save_flags=$FLIBS
   21934 
   21935 
   21936 
   21937   GCJFLAGS_interpose_ax_save_flags=$GCJFLAGS
   21938 
   21939 
   21940 
   21941   JAVACFLAGS_interpose_ax_save_flags=$JAVACFLAGS
   21942 
   21943 
   21944 
   21945   LDFLAGS_interpose_ax_save_flags=$LDFLAGS
   21946 
   21947 
   21948 
   21949   LIBS_interpose_ax_save_flags=$LIBS
   21950 
   21951 
   21952 
   21953   OBJCFLAGS_interpose_ax_save_flags=$OBJCFLAGS
   21954 
   21955 
   21956 
   21957   OBJCXXFLAGS_interpose_ax_save_flags=$OBJCXXFLAGS
   21958 
   21959 
   21960 
   21961   UPCFLAGS_interpose_ax_save_flags=$UPCFLAGS
   21962 
   21963 
   21964 
   21965   VALAFLAGS_interpose_ax_save_flags=$VALAFLAGS
   21966 
   21967 
   21968 
   21969 LDFLAGS="-Wl,-z,interpose"
   21970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   21971 /* end confdefs.h.  */
   21972 
   21973 int
   21974 main ()
   21975 {
   21976 
   21977   ;
   21978   return 0;
   21979 }
   21980 _ACEOF
   21981 if ac_fn_c_try_link "$LINENO"; then :
   21982   WRAP_INTERPOSE="-Wl,-z,interpose"
   21983      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   21984 $as_echo "yes" >&6; }
   21985 else
   21986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   21987 $as_echo "no" >&6; }
   21988 fi
   21989 rm -f core conftest.err conftest.$ac_objext \
   21990     conftest$ac_exeext conftest.$ac_ext
   21991 
   21992   CCASFLAGS=$CCASFLAGS_interpose_ax_save_flags
   21993 
   21994 
   21995   CFLAGS=$CFLAGS_interpose_ax_save_flags
   21996 
   21997 
   21998   CPPFLAGS=$CPPFLAGS_interpose_ax_save_flags
   21999 
   22000 
   22001   CXXFLAGS=$CXXFLAGS_interpose_ax_save_flags
   22002 
   22003 
   22004   ERLCFLAGS=$ERLCFLAGS_interpose_ax_save_flags
   22005 
   22006 
   22007   FCFLAGS=$FCFLAGS_interpose_ax_save_flags
   22008 
   22009 
   22010   FCLIBS=$FCLIBS_interpose_ax_save_flags
   22011 
   22012 
   22013   FFLAGS=$FFLAGS_interpose_ax_save_flags
   22014 
   22015 
   22016   FLIBS=$FLIBS_interpose_ax_save_flags
   22017 
   22018 
   22019   GCJFLAGS=$GCJFLAGS_interpose_ax_save_flags
   22020 
   22021 
   22022   JAVACFLAGS=$JAVACFLAGS_interpose_ax_save_flags
   22023 
   22024 
   22025   LDFLAGS=$LDFLAGS_interpose_ax_save_flags
   22026 
   22027 
   22028   LIBS=$LIBS_interpose_ax_save_flags
   22029 
   22030 
   22031   OBJCFLAGS=$OBJCFLAGS_interpose_ax_save_flags
   22032 
   22033 
   22034   OBJCXXFLAGS=$OBJCXXFLAGS_interpose_ax_save_flags
   22035 
   22036 
   22037   UPCFLAGS=$UPCFLAGS_interpose_ax_save_flags
   22038 
   22039 
   22040   VALAFLAGS=$VALAFLAGS_interpose_ax_save_flags
   22041 
   22042 
   22043 
   22044 
   22045 
   22046 
   22047 WRAP_NAME=''
   22048 case $host in #(
   22049   *-darwin*) :
   22050     WRAP_NAME='${WRAP_NAME}' ;; #(
   22051   *) :
   22052      ;;
   22053 esac
   22054 
   22055 
   22056 #
   22057 # Check for i18n
   22058 #
   22059 for ac_header in locale.h
   22060 do :
   22061   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
   22062 if test "x$ac_cv_header_locale_h" = xyes; then :
   22063   cat >>confdefs.h <<_ACEOF
   22064 #define HAVE_LOCALE_H 1
   22065 _ACEOF
   22066 
   22067 fi
   22068 
   22069 done
   22070 
   22071 for ac_func in setlocale
   22072 do :
   22073   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
   22074 if test "x$ac_cv_func_setlocale" = xyes; then :
   22075   cat >>confdefs.h <<_ACEOF
   22076 #define HAVE_SETLOCALE 1
   22077 _ACEOF
   22078 
   22079 fi
   22080 done
   22081 
   22082 
   22083 #
   22084 # was --with-tuning specified?
   22085 #
   22086 
   22087 # Check whether --with-tuning was given.
   22088 if test "${with_tuning+set}" = set; then :
   22089   withval=$with_tuning;
   22090 else
   22091   with_tuning=no
   22092 fi
   22093 
   22094 
   22095 case $with_tuning in #(
   22096   small) :
   22097     { $as_echo "$as_me:${as_lineno-$LINENO}: using small system tuning" >&5
   22098 $as_echo "$as_me: using small system tuning" >&6;} ;; #(
   22099   *) :
   22100 
   22101 $as_echo "#define TUNE_LARGE 1" >>confdefs.h
   22102 
   22103 	 { $as_echo "$as_me:${as_lineno-$LINENO}: using default system tuning" >&5
   22104 $as_echo "$as_me: using default system tuning" >&6;} ;;
   22105 esac
   22106 
   22107 #
   22108 # was --enable-querytrace specified?
   22109 #
   22110 # Check whether --enable-querytrace was given.
   22111 if test "${enable_querytrace+set}" = set; then :
   22112   enableval=$enable_querytrace; want_querytrace="$enableval"
   22113 else
   22114   want_querytrace="no"
   22115 fi
   22116 
   22117 
   22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable query trace logging" >&5
   22119 $as_echo_n "checking whether to enable query trace logging... " >&6; }
   22120 case "$want_querytrace" in
   22121 yes)
   22122 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22123 $as_echo "yes" >&6; }
   22124 
   22125 $as_echo "#define WANT_QUERYTRACE 1" >>confdefs.h
   22126 
   22127 	;;
   22128 no)
   22129 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22130 $as_echo "no" >&6; }
   22131 	;;
   22132 *)
   22133 	as_fn_error $? "\"--enable-querytrace requires yes or no\"" "$LINENO" 5
   22134 	;;
   22135 esac
   22136 
   22137 #
   22138 # Was --disable-auto-validation specified?
   22139 #
   22140 validation_default=auto
   22141 # Check whether --enable-auto-validation was given.
   22142 if test "${enable_auto_validation+set}" = set; then :
   22143   enableval=$enable_auto_validation; :
   22144 else
   22145   enable_auto_validation=yes
   22146 fi
   22147 
   22148 if test "$enable_auto_validation" = "no"; then :
   22149   validation_default=yes
   22150 fi
   22151 
   22152 cat >>confdefs.h <<_ACEOF
   22153 #define VALIDATION_DEFAULT "$validation_default"
   22154 _ACEOF
   22155 
   22156 
   22157 #
   22158 # Substitutions
   22159 #
   22160 
   22161 BIND9_TOP_BUILDDIR=`pwd`
   22162 
   22163 
   22164 
   22165 
   22166 
   22167 
   22168 
   22169 
   22170 if test "X$srcdir" != "X"; then
   22171 	BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
   22172 	BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
   22173 	BIND9_ISCCFG_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccfg/include"
   22174 	BIND9_DNS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns/include"
   22175 	BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
   22176 	BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
   22177 	BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
   22178 else
   22179 	BIND9_ISC_BUILDINCLUDE=""
   22180 	BIND9_ISCCC_BUILDINCLUDE=""
   22181 	BIND9_ISCCFG_BUILDINCLUDE=""
   22182 	BIND9_DNS_BUILDINCLUDE=""
   22183 	BIND9_NS_BUILDINCLUDE=""
   22184 	BIND9_BIND9_BUILDINCLUDE=""
   22185 	BIND9_IRS_BUILDINCLUDE=""
   22186 fi
   22187 
   22188 
   22189 BIND9_MAKE_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes
   22190 
   22191 
   22192 BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
   22193 
   22194 . "$srcdir/version"
   22195 BIND9_PRODUCT="PRODUCT=\"${PRODUCT}\""
   22196 
   22197 BIND9_DESCRIPTION="DESCRIPTION=\"${DESCRIPTION}\""
   22198 
   22199 BIND9_VERSION="${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22200 
   22201 BIND9_MAJOR="MAJOR=${MAJORVER}.${MINORVER}"
   22202 
   22203 BIND9_VERSIONSTRING="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}${DESCRIPTION:+ }${DESCRIPTION}"
   22204 
   22205 BIND9_VERSIONSHORT="${PRODUCT} ${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}${EXTENSIONS}"
   22206 
   22207 
   22208 BIND9_SRCID="SRCID=unset_id"
   22209 if test -f "${srcdir}/srcid"; then
   22210 	. "${srcdir}/srcid"
   22211 	BIND9_SRCID="SRCID=$SRCID"
   22212 elif test -d "${srcdir}/.git"; then
   22213 	BIND9_SRCID="SRCID="`(cd "${srcdir}";git rev-parse --short HEAD)`
   22214 fi
   22215 
   22216 
   22217 
   22218 if test -z "$ac_configure_args"; then
   22219 	BIND9_CONFIGARGS="defaults"
   22220 else
   22221 	for a in $ac_configure_args
   22222 	do
   22223 		BIND9_CONFIGARGS="$BIND9_CONFIGARGS $a"
   22224 	done
   22225 fi
   22226 BIND9_CONFIGARGS="`echo $BIND9_CONFIGARGS | sed 's/^ //'`"
   22227 BIND9_CONFIGARGS="CONFIGARGS=${BIND9_CONFIGARGS}"
   22228 
   22229 
   22230 
   22231 LIBISC_API="$srcdir/lib/isc/api"
   22232 
   22233 
   22234 LIBISCCC_API="$srcdir/lib/isccc/api"
   22235 
   22236 
   22237 LIBISCCFG_API="$srcdir/lib/isccfg/api"
   22238 
   22239 
   22240 LIBDNS_API="$srcdir/lib/dns/api"
   22241 
   22242 
   22243 LIBDNS_MAPAPI="$srcdir/lib/dns/mapapi"
   22244 
   22245 
   22246 LIBBIND9_API="$srcdir/lib/bind9/api"
   22247 
   22248 
   22249 LIBIRS_API="$srcdir/lib/irs/api"
   22250 
   22251 
   22252 LIBNS_API="$srcdir/lib/ns/api"
   22253 
   22254 #
   22255 # Configure any DLZ drivers.
   22256 #
   22257 # If config.dlz.in selects one or more DLZ drivers, it will set
   22258 # CONTRIB_DLZ to a non-empty value, which will be our clue to
   22259 # build DLZ drivers in contrib.
   22260 #
   22261 # This section has to come after the libtool stuff because it needs to
   22262 # know how to name the driver object files.
   22263 #
   22264 
   22265 CONTRIB_DLZ=""
   22266 DLZ_DRIVER_INCLUDES=""
   22267 DLZ_DRIVER_LIBS=""
   22268 DLZ_DRIVER_SRCS=""
   22269 DLZ_DRIVER_OBJS=""
   22270 DLZ_SYSTEM_TEST=""
   22271 DLZ_DRIVER_MYSQL_INCLUDES=""
   22272 DLZ_DRIVER_MYSQL_LIBS=""
   22273 
   22274 #
   22275 # Configure support for building a shared library object
   22276 #
   22277 # Even when libtool is available it can't always be relied upon
   22278 # to build an object that can be dlopen()'ed, but this is necessary
   22279 # for building the dlzexternal system test, so we'll try it the
   22280 # old-fashioned way.
   22281 #
   22282 SO="so"
   22283 SO_CFLAGS=""
   22284 SO_LDFLAGS=""
   22285 SO_LD=""
   22286 SO_TARGETS=""
   22287 SO_STRIP="cat"
   22288 
   22289 
   22290 # Check whether --with-dlopen was given.
   22291 if test "${with_dlopen+set}" = set; then :
   22292   withval=$with_dlopen;
   22293 else
   22294   with_dlopen="auto"
   22295 fi
   22296 
   22297 
   22298 
   22299 #
   22300 # If PIC is disabled, dlopen must also be
   22301 #
   22302 if test "$pic_mode" = "no"; then :
   22303   case $with_dlopen in #(
   22304   auto) :
   22305     with_dlopen="no" ;; #(
   22306   yes) :
   22307     as_fn_error $? "--with-dlopen requires PIC" "$LINENO" 5 ;; #(
   22308   *) :
   22309      ;;
   22310 esac
   22311 fi
   22312 
   22313 case $with_dlopen in #(
   22314   auto|yes) :
   22315 
   22316 	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   22317 $as_echo_n "checking for library containing dlopen... " >&6; }
   22318 if ${ac_cv_search_dlopen+:} false; then :
   22319   $as_echo_n "(cached) " >&6
   22320 else
   22321   ac_func_search_save_LIBS=$LIBS
   22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22323 /* end confdefs.h.  */
   22324 
   22325 /* Override any GCC internal prototype to avoid an error.
   22326    Use char because int might match the return type of a GCC
   22327    builtin and then its argument prototype would still apply.  */
   22328 #ifdef __cplusplus
   22329 extern "C"
   22330 #endif
   22331 char dlopen ();
   22332 int
   22333 main ()
   22334 {
   22335 return dlopen ();
   22336   ;
   22337   return 0;
   22338 }
   22339 _ACEOF
   22340 for ac_lib in '' dl; do
   22341   if test -z "$ac_lib"; then
   22342     ac_res="none required"
   22343   else
   22344     ac_res=-l$ac_lib
   22345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22346   fi
   22347   if ac_fn_c_try_link "$LINENO"; then :
   22348   ac_cv_search_dlopen=$ac_res
   22349 fi
   22350 rm -f core conftest.err conftest.$ac_objext \
   22351     conftest$ac_exeext
   22352   if ${ac_cv_search_dlopen+:} false; then :
   22353   break
   22354 fi
   22355 done
   22356 if ${ac_cv_search_dlopen+:} false; then :
   22357 
   22358 else
   22359   ac_cv_search_dlopen=no
   22360 fi
   22361 rm conftest.$ac_ext
   22362 LIBS=$ac_func_search_save_LIBS
   22363 fi
   22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   22365 $as_echo "$ac_cv_search_dlopen" >&6; }
   22366 ac_res=$ac_cv_search_dlopen
   22367 if test "$ac_res" != no; then :
   22368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22369 
   22370 fi
   22371 
   22372 	  for ac_func in dlopen dlclose dlsym
   22373 do :
   22374   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   22375 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   22376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   22377   cat >>confdefs.h <<_ACEOF
   22378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   22379 _ACEOF
   22380  with_dlopen="yes"
   22381 else
   22382   with_dlopen="no"
   22383 fi
   22384 done
   22385 
   22386 	 ;; #(
   22387   *) :
   22388      ;;
   22389 esac
   22390 
   22391 if test "$with_dlopen" = "yes"; then :
   22392   case $host in #(
   22393   *-linux*|*-gnu*) :
   22394 
   22395 		 LDFLAGS="${LDFLAGS} -Wl,--export-dynamic"
   22396 		 SO_CFLAGS="-fPIC"
   22397 		 SO_LDFLAGS=""
   22398 		 if test "$use_libtool" = "yes"; then :
   22399 
   22400 			 SO_LDFLAGS="-Xcompiler -shared"
   22401 			 SO_LD="${CC}"
   22402 
   22403 else
   22404 
   22405 			 SO_LDFLAGS="-shared"
   22406 			 SO_LD="${CC}"
   22407 
   22408 fi
   22409 	        ;; #(
   22410   *-freebsd*|*-openbsd*|*-netbsd*) :
   22411 
   22412 		 LDFLAGS="${LDFLAGS} -Wl,-E"
   22413 		 SO_CFLAGS="-fpic"
   22414 		 if test "$use_libtool" = "yes"; then :
   22415 
   22416 			 SO_LDFLAGS="-Xcompiler -shared"
   22417 			 SO_LD="${CC}"
   22418 
   22419 else
   22420 
   22421 			 SO_LDFLAGS="-shared"
   22422 			 SO_LD="${CC}"
   22423 
   22424 fi
   22425 	        ;; #(
   22426   *-darwin*) :
   22427 
   22428 		 SO_CFLAGS="-fPIC"
   22429                  SO_LD="${CC}"
   22430 		 if test "$use_libtool" = "yes"; then :
   22431 
   22432 			 SO_LDFLAGS="-Xcompiler -dynamiclib -undefined dynamic_lookup"
   22433 
   22434 else
   22435 
   22436 			 SO_LDFLAGS="-dynamiclib -undefined dynamic_lookup"
   22437 
   22438 fi
   22439 	        ;; #(
   22440   *-solaris*) :
   22441 
   22442 		 SO_CFLAGS="-KPIC"
   22443 		 SO_LDFLAGS="-G -z text"
   22444 		 SO_LD="ld"
   22445 	        ;; #(
   22446   ia64-hp-hpux*) :
   22447 
   22448 		 SO_CFLAGS="+z"
   22449 	         SO_LDFLAGS="-b"
   22450 		 SO_LD="${CC}"
   22451 	        ;; #(
   22452   *) :
   22453 
   22454 		 SO_CFLAGS="-fPIC"
   22455 	        ;;
   22456 esac
   22457        if test "$GCC" = "yes"; then :
   22458 
   22459 	       SO_CFLAGS="-fPIC"
   22460 	       if test -z "$SO_LD"; then :
   22461   if test "$use_libtool" = "yes"; then :
   22462 
   22463 			      SO_LDFLAGS="-Xcompiler -shared"
   22464 			      SO_LD="${CC}"
   22465 
   22466 else
   22467 
   22468 			      SO_LDFLAGS="-shared"
   22469 			      SO_LD="${CC}"
   22470 
   22471 fi
   22472 
   22473 fi
   22474 
   22475 fi
   22476        # If we still don't know how to make shared objects, don't make any.
   22477        if test -n "$SO_LD"; then :
   22478   SO_TARGETS="\${SO_TARGETS}"
   22479 
   22480 $as_echo "#define ISC_DLZ_DLOPEN 1" >>confdefs.h
   22481 
   22482 
   22483 fi
   22484 
   22485 fi
   22486 
   22487 CFLAGS="$CFLAGS $SO_CFLAGS"
   22488 
   22489 
   22490 
   22491 
   22492 
   22493 
   22494 
   22495 
   22496 #
   22497 # Response policy rewriting using DNS Response Policy Service (DNSRPS)
   22498 # interface.
   22499 #
   22500 # DNSRPS can be compiled into BIND everywhere with a reasonably
   22501 # modern C compiler.  It is enabled on systems with dlopen() and librpz.so.
   22502 #
   22503 dnsrps_avail=yes
   22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librpz __attribute__s" >&5
   22505 $as_echo_n "checking for librpz __attribute__s... " >&6; }
   22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22507 /* end confdefs.h.  */
   22508 
   22509 int
   22510 main ()
   22511 {
   22512 
   22513        extern void f(char *p __attribute__((unused)), ...)
   22514        __attribute__((format(printf,1,2))) __attribute__((__noreturn__));
   22515 
   22516   ;
   22517   return 0;
   22518 }
   22519 _ACEOF
   22520 if ac_fn_c_try_compile "$LINENO"; then :
   22521 
   22522     librpz_have_attr=yes
   22523 
   22524 $as_echo "#define LIBRPZ_HAVE_ATTR 1" >>confdefs.h
   22525 
   22526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   22527 $as_echo "yes" >&6; }
   22528 
   22529 else
   22530 
   22531     librpz_have_attr=no
   22532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22533 $as_echo "no" >&6; }
   22534 
   22535 fi
   22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   22537 
   22538 # Check whether --enable-dnsrps-dl was given.
   22539 if test "${enable_dnsrps_dl+set}" = set; then :
   22540   enableval=$enable_dnsrps_dl; enable_librpz_dl="$enableval"
   22541 else
   22542   enable_librpz_dl="$with_dlopen"
   22543 fi
   22544 
   22545 
   22546 if test "$enable_librpz_dl" = "yes" -a "$with_dlopen" = "no"; then :
   22547   as_fn_error $? "DNS Response Policy Service delayed link requires dlopen to be enabled" "$LINENO" 5
   22548 fi
   22549 
   22550 
   22551 # Check whether --with-dnsrps-libname was given.
   22552 if test "${with_dnsrps_libname+set}" = set; then :
   22553   withval=$with_dnsrps_libname; librpz_name="$withval"
   22554 else
   22555   librpz_name="librpz.so"
   22556 fi
   22557 
   22558 
   22559 # Check whether --with-dnsrps-dir was given.
   22560 if test "${with_dnsrps_dir+set}" = set; then :
   22561   withval=$with_dnsrps_dir; librpz_path="$withval/$librpz_name"
   22562 else
   22563   librpz_path="$librpz_name"
   22564 fi
   22565 
   22566 
   22567 cat >>confdefs.h <<_ACEOF
   22568 #define DNSRPS_LIBRPZ_PATH "$librpz_path"
   22569 _ACEOF
   22570 
   22571 if test "$enable_librpz_dl" = "yes"; then :
   22572 
   22573 	dnsrps_lib_open=2
   22574 
   22575 else
   22576 
   22577 	dnsrps_lib_open=1
   22578 	# Add librpz.so to linked libraries if we are not using dlopen()
   22579 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing librpz_client_create" >&5
   22580 $as_echo_n "checking for library containing librpz_client_create... " >&6; }
   22581 if ${ac_cv_search_librpz_client_create+:} false; then :
   22582   $as_echo_n "(cached) " >&6
   22583 else
   22584   ac_func_search_save_LIBS=$LIBS
   22585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   22586 /* end confdefs.h.  */
   22587 
   22588 /* Override any GCC internal prototype to avoid an error.
   22589    Use char because int might match the return type of a GCC
   22590    builtin and then its argument prototype would still apply.  */
   22591 #ifdef __cplusplus
   22592 extern "C"
   22593 #endif
   22594 char librpz_client_create ();
   22595 int
   22596 main ()
   22597 {
   22598 return librpz_client_create ();
   22599   ;
   22600   return 0;
   22601 }
   22602 _ACEOF
   22603 for ac_lib in '' rpz; do
   22604   if test -z "$ac_lib"; then
   22605     ac_res="none required"
   22606   else
   22607     ac_res=-l$ac_lib
   22608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   22609   fi
   22610   if ac_fn_c_try_link "$LINENO"; then :
   22611   ac_cv_search_librpz_client_create=$ac_res
   22612 fi
   22613 rm -f core conftest.err conftest.$ac_objext \
   22614     conftest$ac_exeext
   22615   if ${ac_cv_search_librpz_client_create+:} false; then :
   22616   break
   22617 fi
   22618 done
   22619 if ${ac_cv_search_librpz_client_create+:} false; then :
   22620 
   22621 else
   22622   ac_cv_search_librpz_client_create=no
   22623 fi
   22624 rm conftest.$ac_ext
   22625 LIBS=$ac_func_search_save_LIBS
   22626 fi
   22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_librpz_client_create" >&5
   22628 $as_echo "$ac_cv_search_librpz_client_create" >&6; }
   22629 ac_res=$ac_cv_search_librpz_client_create
   22630 if test "$ac_res" != no; then :
   22631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   22632 
   22633 else
   22634   dnsrps_lib_open=0
   22635 		 dnsrps_avail=no
   22636 fi
   22637 
   22638 
   22639 fi
   22640 
   22641 cat >>confdefs.h <<_ACEOF
   22642 #define DNSRPS_LIB_OPEN $dnsrps_lib_open
   22643 _ACEOF
   22644 
   22645 
   22646 # Check whether --enable-dnsrps was given.
   22647 if test "${enable_dnsrps+set}" = set; then :
   22648   enableval=$enable_dnsrps; enable_dnsrps=$enableval
   22649 else
   22650   enable_dnsrps=no
   22651 fi
   22652 
   22653 
   22654 if test "$enable_dnsrps" != "no"; then :
   22655 
   22656 	if test "$dnsrps_avail" != "yes"; then :
   22657   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22658 fi
   22659 	if test "$dnsrps_lib_open" = "0"; then :
   22660   as_fn_error $? "dlopen and librpz.so needed for DNSRPS" "$LINENO" 5
   22661 fi
   22662 
   22663 $as_echo "#define USE_DNSRPS 1" >>confdefs.h
   22664 
   22665 
   22666 fi
   22667 
   22668 # Copyright (C) 2005  Internet Systems Consortium, Inc. ("ISC")
   22669 #
   22670 # Permission to use, copy, modify, and distribute this software for any
   22671 # purpose with or without fee is hereby granted, provided that the above
   22672 # copyright notice and this permission notice appear in all copies.
   22673 #
   22674 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
   22675 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
   22676 # AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
   22677 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
   22678 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
   22679 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   22680 # PERFORMANCE OF THIS SOFTWARE.
   22681 
   22682 #
   22683 # Shorthand.  Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
   22684 #
   22685 dlzdir='${DLZ_DRIVER_DIR}'
   22686 
   22687 #
   22688 # Private autoconf macro to simplify configuring drivers:
   22689 #
   22690 #   DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
   22691 #
   22692 # where:
   22693 #   DEFINE is FOO (to define -DDLZ_FOO)
   22694 #   DRIVER is dlz_foo_driver (sources without the .c)
   22695 #   INCLUDES is any necessary include definitions
   22696 #   LIBS is any necessary library definitions
   22697 #
   22698 
   22699 
   22700 #
   22701 # Check for the various DLZ drivers
   22702 #
   22703 
   22704 #
   22705 # Was --with-dlz-postgres specified?
   22706 #
   22707 
   22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
   22709 $as_echo_n "checking for Postgres DLZ driver... " >&6; }
   22710 
   22711 # Check whether --with-dlz_postgres was given.
   22712 if test "${with_dlz_postgres+set}" = set; then :
   22713   withval=$with_dlz_postgres; use_dlz_postgres="$withval"
   22714 else
   22715   use_dlz_postgres="no"
   22716 fi
   22717 
   22718 
   22719 if test "$use_dlz_postgres" != "no"
   22720 then
   22721 	if test "$use_dlz_postgres" != "yes"
   22722         then
   22723                 for ac_prog in pg_config
   22724 do
   22725   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22726 set dummy $ac_prog; ac_word=$2
   22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22728 $as_echo_n "checking for $ac_word... " >&6; }
   22729 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22730   $as_echo_n "(cached) " >&6
   22731 else
   22732   case $PG_CONFIG in
   22733   [\\/]* | ?:[\\/]*)
   22734   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22735   ;;
   22736   *)
   22737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22738 for as_dir in $use_dlz_postgres/bin
   22739 do
   22740   IFS=$as_save_IFS
   22741   test -z "$as_dir" && as_dir=.
   22742     for ac_exec_ext in '' $ac_executable_extensions; do
   22743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22744     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22746     break 2
   22747   fi
   22748 done
   22749   done
   22750 IFS=$as_save_IFS
   22751 
   22752   ;;
   22753 esac
   22754 fi
   22755 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22756 if test -n "$PG_CONFIG"; then
   22757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22758 $as_echo "$PG_CONFIG" >&6; }
   22759 else
   22760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22761 $as_echo "no" >&6; }
   22762 fi
   22763 
   22764 
   22765   test -n "$PG_CONFIG" && break
   22766 done
   22767 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22768 
   22769 	else
   22770                 for ac_prog in pg_config
   22771 do
   22772   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22773 set dummy $ac_prog; ac_word=$2
   22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22775 $as_echo_n "checking for $ac_word... " >&6; }
   22776 if ${ac_cv_path_PG_CONFIG+:} false; then :
   22777   $as_echo_n "(cached) " >&6
   22778 else
   22779   case $PG_CONFIG in
   22780   [\\/]* | ?:[\\/]*)
   22781   ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
   22782   ;;
   22783   *)
   22784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22785 for as_dir in $PATH
   22786 do
   22787   IFS=$as_save_IFS
   22788   test -z "$as_dir" && as_dir=.
   22789     for ac_exec_ext in '' $ac_executable_extensions; do
   22790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22791     ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   22792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22793     break 2
   22794   fi
   22795 done
   22796   done
   22797 IFS=$as_save_IFS
   22798 
   22799   ;;
   22800 esac
   22801 fi
   22802 PG_CONFIG=$ac_cv_path_PG_CONFIG
   22803 if test -n "$PG_CONFIG"; then
   22804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
   22805 $as_echo "$PG_CONFIG" >&6; }
   22806 else
   22807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22808 $as_echo "no" >&6; }
   22809 fi
   22810 
   22811 
   22812   test -n "$PG_CONFIG" && break
   22813 done
   22814 test -n "$PG_CONFIG" || PG_CONFIG="not found"
   22815 
   22816 	fi
   22817 
   22818 	if test "$PG_CONFIG" != "not found"
   22819 	then
   22820 		use_dlz_postgres=`$PG_CONFIG --includedir`
   22821 		use_dlz_postgres_lib=`$PG_CONFIG --libdir`
   22822 	else
   22823 		pgprefix="$use_dlz_postgres"
   22824 		use_dlz_postgres="$pgprefix/include"
   22825 		use_dlz_postgres_lib="$pgprefix/lib"
   22826 	fi
   22827 fi
   22828 
   22829 if test "$use_dlz_postgres" = "yes/include"
   22830 then
   22831 	# User did not specify path and Postgres didn't say - guess it
   22832 	pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
   22833 	for d in $pgdirs
   22834 	do
   22835 		if test -f $d/include/libpq-fe.h
   22836 		then
   22837 			use_dlz_postgres=$d/include
   22838 			use_dlz_postgres_lib=$d/lib
   22839 			break
   22840 		fi
   22841 	done
   22842 fi
   22843 
   22844 if test "$use_dlz_postgres" = "yes/include"
   22845 then
   22846 	# Still no joy, give up
   22847 
   22848 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   22849 $as_echo "not found" >&6; }
   22850 	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
   22851 fi
   22852 
   22853 case "$use_dlz_postgres" in
   22854 	no)
   22855 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22856 $as_echo "no" >&6; }
   22857 		;;
   22858 	*)
   22859 
   22860 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
   22861 	for i in dlz_postgres_driver
   22862 	do
   22863 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   22864 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   22865 	done
   22866 	if test -n "-I$use_dlz_postgres"
   22867 	then
   22868 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
   22869 		DLZ_DRIVER_POSTGRES_INCLUDES="-I$use_dlz_postgres"
   22870 	fi
   22871 	if test -n "-L$use_dlz_postgres_lib -lpq"
   22872 	then
   22873 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
   22874 		DLZ_DRIVER_POSTGRES_LIBS="-L$use_dlz_postgres_lib -lpq"
   22875 	fi
   22876 
   22877 
   22878 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
   22879 $as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
   22880 		;;
   22881 esac
   22882 
   22883 
   22884 #
   22885 # Was --with-dlz-mysql specified?
   22886 #
   22887 
   22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
   22889 $as_echo_n "checking for MySQL DLZ driver... " >&6; }
   22890 
   22891 # Check whether --with-dlz_mysql was given.
   22892 if test "${with_dlz_mysql+set}" = set; then :
   22893   withval=$with_dlz_mysql; use_dlz_mysql="$withval"
   22894 else
   22895   use_dlz_mysql="no"
   22896 fi
   22897 
   22898 
   22899 mysql_include=""
   22900 mysql_lib=""
   22901 if test "$use_dlz_mysql" = "yes"
   22902 then
   22903 	for ac_prog in mysql_config
   22904 do
   22905   # Extract the first word of "$ac_prog", so it can be a program name with args.
   22906 set dummy $ac_prog; ac_word=$2
   22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   22908 $as_echo_n "checking for $ac_word... " >&6; }
   22909 if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
   22910   $as_echo_n "(cached) " >&6
   22911 else
   22912   if test -n "$MYSQL_CONFIG"; then
   22913   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   22914 else
   22915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   22916 for as_dir in $PATH
   22917 do
   22918   IFS=$as_save_IFS
   22919   test -z "$as_dir" && as_dir=.
   22920     for ac_exec_ext in '' $ac_executable_extensions; do
   22921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   22922     ac_cv_prog_MYSQL_CONFIG="$ac_prog"
   22923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   22924     break 2
   22925   fi
   22926 done
   22927   done
   22928 IFS=$as_save_IFS
   22929 
   22930 fi
   22931 fi
   22932 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   22933 if test -n "$MYSQL_CONFIG"; then
   22934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   22935 $as_echo "$MYSQL_CONFIG" >&6; }
   22936 else
   22937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22938 $as_echo "no" >&6; }
   22939 fi
   22940 
   22941 
   22942   test -n "$MYSQL_CONFIG" && break
   22943 done
   22944 
   22945 	if test -n "$MYSQL_CONFIG"
   22946 	then
   22947 		mysql_include=`${MYSQL_CONFIG} --include`
   22948 		mysql_lib=`${MYSQL_CONFIG} --libs`
   22949 		use_dlz_mysql="config"
   22950 
   22951 	else
   22952 		# User did not specify a path - guess it
   22953 		mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
   22954 		for d in $mysqldirs
   22955 		do
   22956 			if test -f $d/include/mysql/mysql.h
   22957 			then
   22958 				use_dlz_mysql=$d
   22959 				mysql_include=$d/include/mysql
   22960 				break
   22961 			elif test -f $d/include/mysql.h
   22962 			then
   22963 				use_dlz_mysql=$d
   22964 				mysql_include=$d/include
   22965 				break
   22966 			fi
   22967 		done
   22968 	fi
   22969 elif test "$use_dlz_mysql" != "no"
   22970 then
   22971 	d=$use_dlz_mysql
   22972 	if test -f $d/include/mysql/mysql.h
   22973 	then
   22974 		mysql_include=$d/include/mysql
   22975 	elif test -f $d/include/mysql.h
   22976 	then
   22977 		mysql_include=$d/include
   22978 	fi
   22979 fi
   22980 
   22981 if test "$use_dlz_mysql" = "yes"
   22982 then
   22983 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   22984 $as_echo "not found" >&6; }
   22985 	as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
   22986 fi
   22987 
   22988 case "$use_dlz_mysql" in
   22989 	no)
   22990 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   22991 $as_echo "no" >&6; }
   22992 		;;
   22993 	config)
   22994 
   22995 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   22996 	for i in dlz_mysql_driver
   22997 	do
   22998 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   22999 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23000 	done
   23001 	if test -n "${mysql_include}"
   23002 	then
   23003 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES ${mysql_include}"
   23004 		DLZ_DRIVER_MYSQL_INCLUDES="${mysql_include}"
   23005 	fi
   23006 	if test -n "${mysql_lib}"
   23007 	then
   23008 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS ${mysql_lib}"
   23009 		DLZ_DRIVER_MYSQL_LIBS="${mysql_lib}"
   23010 	fi
   23011 
   23012 
   23013 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&5
   23014 $as_echo "using mysql with libs ${mysql_lib} and includes ${mysql_include}" >&6; }
   23015 		;;
   23016 	*)
   23017 		if test -d "$use_dlz_mysql/lib/mysql"
   23018 		then
   23019 			mysql_lib="$use_dlz_mysql/lib/mysql"
   23020 		else
   23021 			mysql_lib="$use_dlz_mysql/lib"
   23022 		fi
   23023 
   23024 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
   23025 	for i in dlz_mysql_driver
   23026 	do
   23027 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23028 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23029 	done
   23030 	if test -n "-I${mysql_include}"
   23031 	then
   23032 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
   23033 		DLZ_DRIVER_MYSQL_INCLUDES="-I${mysql_include}"
   23034 	fi
   23035 	if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23036 	then
   23037 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23038 		DLZ_DRIVER_MYSQL_LIBS="-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
   23039 	fi
   23040 
   23041 
   23042 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
   23043 $as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
   23044 		;;
   23045 esac
   23046 
   23047 
   23048 #
   23049 # Was --with-dlz-bdb specified?
   23050 #
   23051 
   23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
   23053 $as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
   23054 
   23055 # Check whether --with-dlz_bdb was given.
   23056 if test "${with_dlz_bdb+set}" = set; then :
   23057   withval=$with_dlz_bdb; use_dlz_bdb="$withval"
   23058 else
   23059   use_dlz_bdb="no"
   23060 fi
   23061 
   23062 
   23063 case "$use_dlz_bdb" in
   23064 	no)
   23065 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23066 $as_echo "no" >&6; }
   23067 		;;
   23068 	*)
   23069 		if test "$use_dlz_bdb" = "yes"
   23070 		then
   23071 			# User did not specify a path - guess directories
   23072 			bdbdirs="/usr/local /usr/pkg /usr"
   23073 		elif test -d "$use_dlz_bdb"
   23074 		then
   23075 			# User specified directory and it exists
   23076 			bdbdirs="$use_dlz_bdb"
   23077 		else
   23078 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23079 $as_echo "not found" >&6; }
   23080 			as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
   23081 			bdbdirs=""
   23082 		fi
   23083 
   23084 		# Use path we were given or guessed.  This is insanely
   23085 		# complicated because we have to search for a bunch of
   23086 		# platform-specific variations and have to check
   23087 		# separately for include and library directories.
   23088 
   23089 		# Set both to yes, so we can check them later
   23090 		dlz_bdb_inc="yes"
   23091 		dlz_bdb_libs="yes"
   23092 
   23093                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   23094 $as_echo "" >&6; }
   23095 		for dd in $bdbdirs
   23096 		do
   23097 			# Skip nonexistent directories
   23098 			if test ! -d "$dd"
   23099 			then
   23100 				continue
   23101 			fi
   23102 
   23103 			# Check other locations for includes.
   23104 			# Order is important (sigh).
   23105 
   23106 			bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
   23107 			# include a blank element first
   23108 			for d in "" $bdb_incdirs
   23109 			do
   23110 				if test -f "$dd/include${d}/db.h"
   23111 				then
   23112 					dlz_bdb_inc="-I$dd/include${d}"
   23113 					break
   23114 				fi
   23115 			done
   23116 
   23117 			# Give up on this directory if we couldn't
   23118 			# find the include subdir
   23119 
   23120 			if test "$dlz_bdb_inc" = "yes"
   23121 			then
   23122 				continue
   23123 			fi
   23124 
   23125 			# Look for libname other than libdb.so.
   23126 			# Order is important (sigh).
   23127 
   23128 			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"
   23129 			for d in $bdb_libnames
   23130 			do
   23131 				if test "$dd" = "/usr"
   23132 				then
   23133 					as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
   23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
   23135 $as_echo_n "checking for db_create in -l$d... " >&6; }
   23136 if eval \${$as_ac_Lib+:} false; then :
   23137   $as_echo_n "(cached) " >&6
   23138 else
   23139   ac_check_lib_save_LIBS=$LIBS
   23140 LIBS="-l$d  $LIBS"
   23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23142 /* end confdefs.h.  */
   23143 
   23144 /* Override any GCC internal prototype to avoid an error.
   23145    Use char because int might match the return type of a GCC
   23146    builtin and then its argument prototype would still apply.  */
   23147 #ifdef __cplusplus
   23148 extern "C"
   23149 #endif
   23150 char db_create ();
   23151 int
   23152 main ()
   23153 {
   23154 return db_create ();
   23155   ;
   23156   return 0;
   23157 }
   23158 _ACEOF
   23159 if ac_fn_c_try_link "$LINENO"; then :
   23160   eval "$as_ac_Lib=yes"
   23161 else
   23162   eval "$as_ac_Lib=no"
   23163 fi
   23164 rm -f core conftest.err conftest.$ac_objext \
   23165     conftest$ac_exeext conftest.$ac_ext
   23166 LIBS=$ac_check_lib_save_LIBS
   23167 fi
   23168 eval ac_res=\$$as_ac_Lib
   23169 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   23170 $as_echo "$ac_res" >&6; }
   23171 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
   23172   dlz_bdb_libs="-l${d}"
   23173 fi
   23174 
   23175 					if test $dlz_bdb_libs != "yes"
   23176 					then
   23177 						break
   23178 					fi
   23179 				elif test -f "$dd/lib/lib${d}.so"
   23180 				then
   23181 					dlz_bdb_libs="-L${dd}/lib -l${d}"
   23182 					break
   23183 				fi
   23184 			done
   23185 
   23186 			# If we found both incdir and lib, we're done
   23187 			if test "$dlz_bdb_libs" != "yes"
   23188 			then
   23189 				break
   23190 			fi
   23191 
   23192 			# Otherwise, we're starting over
   23193 
   23194 			dlz_bdb_inc="yes"
   23195 			dlz_bdb_libs="yes"
   23196 		done
   23197 
   23198 		# Done searching, now make sure we got everything.
   23199 
   23200 		if test "$dlz_bdb_inc" = "yes"
   23201 		then
   23202 			as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
   23203 		fi
   23204 
   23205 		if test "$dlz_bdb_libs" = "yes"
   23206 		then
   23207 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23208 $as_echo "not found" >&6; }
   23209 			as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
   23210 		fi
   23211 
   23212 
   23213 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
   23214 	for i in dlz_bdb_driver dlz_bdbhpt_driver
   23215 	do
   23216 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23217 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23218 	done
   23219 	if test -n "$dlz_bdb_inc"
   23220 	then
   23221 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
   23222 		DLZ_DRIVER_BDB_INCLUDES="$dlz_bdb_inc"
   23223 	fi
   23224 	if test -n "$dlz_bdb_libs"
   23225 	then
   23226 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
   23227 		DLZ_DRIVER_BDB_LIBS="$dlz_bdb_libs"
   23228 	fi
   23229 
   23230 
   23231 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
   23232 $as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
   23233 
   23234 		ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
   23235 
   23236 		;;
   23237 esac
   23238 
   23239 
   23240 #
   23241 # Was --with-dlz-filesystem specified?
   23242 #
   23243 
   23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
   23245 $as_echo_n "checking for file system DLZ driver... " >&6; }
   23246 
   23247 # Check whether --with-dlz_filesystem was given.
   23248 if test "${with_dlz_filesystem+set}" = set; then :
   23249   withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
   23250 else
   23251   use_dlz_filesystem="no"
   23252 fi
   23253 
   23254 
   23255 case "$use_dlz_filesystem" in
   23256 	no)
   23257 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23258 $as_echo "no" >&6; }
   23259 		;;
   23260 	*)
   23261 
   23262 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
   23263 	for i in dlz_filesystem_driver
   23264 	do
   23265 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23266 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23267 	done
   23268 	if test -n ""
   23269 	then
   23270 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23271 		DLZ_DRIVER_FILESYSTEM_INCLUDES=""
   23272 	fi
   23273 	if test -n ""
   23274 	then
   23275 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23276 		DLZ_DRIVER_FILESYSTEM_LIBS=""
   23277 	fi
   23278 
   23279 		DLZ_SYSTEM_TEST=filesystem
   23280 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23281 $as_echo "yes" >&6; }
   23282 		;;
   23283 esac
   23284 
   23285 
   23286 #
   23287 # Was --with-dlz-ldap specified?
   23288 #
   23289 
   23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
   23291 $as_echo_n "checking for LDAP DLZ driver... " >&6; }
   23292 
   23293 # Check whether --with-dlz_ldap was given.
   23294 if test "${with_dlz_ldap+set}" = set; then :
   23295   withval=$with_dlz_ldap; use_dlz_ldap="$withval"
   23296 else
   23297   use_dlz_ldap="no"
   23298 fi
   23299 
   23300 
   23301 if test "$use_dlz_ldap" = "yes"
   23302 then
   23303 	# User did not specify a path - guess it
   23304 	ldapdirs="/usr /usr/local /usr/pkg"
   23305 	for d in $ldapdirs
   23306 	do
   23307 		if test -f $d/include/ldap.h
   23308 		then
   23309 			use_dlz_ldap=$d
   23310 			break
   23311 		fi
   23312 	done
   23313 fi
   23314 
   23315 if test "$use_dlz_ldap" = "yes"
   23316 then
   23317 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23318 $as_echo "not found" >&6; }
   23319 	as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
   23320 fi
   23321 
   23322 case "$use_dlz_ldap" in
   23323 	no)
   23324 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23325 $as_echo "no" >&6; }
   23326 		;;
   23327 	*)
   23328 
   23329 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
   23330 	for i in dlz_ldap_driver
   23331 	do
   23332 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23333 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23334 	done
   23335 	if test -n "-I$use_dlz_ldap/include"
   23336 	then
   23337 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
   23338 		DLZ_DRIVER_LDAP_INCLUDES="-I$use_dlz_ldap/include"
   23339 	fi
   23340 	if test -n "-L$use_dlz_ldap/lib -lldap -llber"
   23341 	then
   23342 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
   23343 		DLZ_DRIVER_LDAP_LIBS="-L$use_dlz_ldap/lib -lldap -llber"
   23344 	fi
   23345 
   23346 
   23347 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
   23348 $as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
   23349 		;;
   23350 esac
   23351 
   23352 
   23353 #
   23354 # Was --with-dlz-odbc specified?
   23355 #
   23356 
   23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
   23358 $as_echo_n "checking for ODBC DLZ driver... " >&6; }
   23359 
   23360 # Check whether --with-dlz_odbc was given.
   23361 if test "${with_dlz_odbc+set}" = set; then :
   23362   withval=$with_dlz_odbc; use_dlz_odbc="$withval"
   23363 else
   23364   use_dlz_odbc="no"
   23365 fi
   23366 
   23367 
   23368 if test "$use_dlz_odbc" = "yes"
   23369 then
   23370 	# User did not specify a path - guess it
   23371 	libodbc_found=no
   23372 	sql_h_found=no
   23373 	ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
   23374 if test "x$ac_cv_header_sql_h" = xyes; then :
   23375   sql_h_found=yes
   23376 fi
   23377 
   23378 
   23379 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
   23380 $as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
   23381 if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
   23382   $as_echo_n "(cached) " >&6
   23383 else
   23384   ac_check_lib_save_LIBS=$LIBS
   23385 LIBS="-lodbc  $LIBS"
   23386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   23387 /* end confdefs.h.  */
   23388 
   23389 /* Override any GCC internal prototype to avoid an error.
   23390    Use char because int might match the return type of a GCC
   23391    builtin and then its argument prototype would still apply.  */
   23392 #ifdef __cplusplus
   23393 extern "C"
   23394 #endif
   23395 char SQLConnect ();
   23396 int
   23397 main ()
   23398 {
   23399 return SQLConnect ();
   23400   ;
   23401   return 0;
   23402 }
   23403 _ACEOF
   23404 if ac_fn_c_try_link "$LINENO"; then :
   23405   ac_cv_lib_odbc_SQLConnect=yes
   23406 else
   23407   ac_cv_lib_odbc_SQLConnect=no
   23408 fi
   23409 rm -f core conftest.err conftest.$ac_objext \
   23410     conftest$ac_exeext conftest.$ac_ext
   23411 LIBS=$ac_check_lib_save_LIBS
   23412 fi
   23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
   23414 $as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
   23415 if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
   23416   libodbc_found=yes
   23417 fi
   23418 
   23419 
   23420 	if test $libodbc_found = "yes" -o $sql_h_found = "yes"
   23421 	then
   23422 		use_dlz_odbc=system
   23423 		dlz_odbc_include=""
   23424 		dlz_odbc_libs="-lodbc"
   23425 	else
   23426 		odbcdirs="/usr /usr/local /usr/pkg"
   23427 		for d in $odbcdirs
   23428 		do
   23429 			if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
   23430 			then
   23431 				use_dlz_odbc=$d
   23432 				dlz_odbc_include="-I$use_dlz_odbc/include"
   23433 				dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
   23434 				break
   23435 			fi
   23436 		done
   23437 	fi
   23438 fi
   23439 
   23440 case "$use_dlz_odbc" in
   23441 	no)
   23442 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23443 $as_echo "no" >&6; }
   23444 		;;
   23445 	yes)
   23446 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
   23447 $as_echo "not found" >&6; }
   23448 		as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
   23449 		;;
   23450 	*)
   23451 
   23452 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
   23453 	for i in dlz_odbc_driver
   23454 	do
   23455 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23456 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23457 	done
   23458 	if test -n "$dlz_odbc_include"
   23459 	then
   23460 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
   23461 		DLZ_DRIVER_ODBC_INCLUDES="$dlz_odbc_include"
   23462 	fi
   23463 	if test -n "$dlz_odbc_libs"
   23464 	then
   23465 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
   23466 		DLZ_DRIVER_ODBC_LIBS="$dlz_odbc_libs"
   23467 	fi
   23468 
   23469 
   23470 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
   23471 $as_echo "using ODBC from $use_dlz_odbc" >&6; }
   23472 		;;
   23473 esac
   23474 
   23475 
   23476 #
   23477 # Was --with-dlz-stub specified?
   23478 #
   23479 
   23480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
   23481 $as_echo_n "checking for stub DLZ driver... " >&6; }
   23482 
   23483 # Check whether --with-dlz_stub was given.
   23484 if test "${with_dlz_stub+set}" = set; then :
   23485   withval=$with_dlz_stub; use_dlz_stub="$withval"
   23486 else
   23487   use_dlz_stub="no"
   23488 fi
   23489 
   23490 
   23491 case "$use_dlz_stub" in
   23492 	no)
   23493 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23494 $as_echo "no" >&6; }
   23495 		;;
   23496 	*)
   23497 
   23498 
   23499 	CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
   23500 	for i in dlz_stub_driver
   23501 	do
   23502 		DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
   23503 		DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
   23504 	done
   23505 	if test -n ""
   23506 	then
   23507 		DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
   23508 		DLZ_DRIVER_STUB_INCLUDES=""
   23509 	fi
   23510 	if test -n ""
   23511 	then
   23512 		DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
   23513 		DLZ_DRIVER_STUB_LIBS=""
   23514 	fi
   23515 
   23516 
   23517 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23518 $as_echo "yes" >&6; }
   23519 		;;
   23520 esac
   23521 
   23522 # Add any additional DLZ drivers here.
   23523 
   23524 #
   23525 # Finally, some generic stuff that applies to all drivers, assuming
   23526 # we're compiling contrib DLZ drivers at all.
   23527 #
   23528 if test -n "$CONTRIB_DLZ"
   23529 then
   23530 	CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
   23531 
   23532 	#
   23533 	# Where to find DLZ driver header files.
   23534 	#
   23535 	DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
   23536 
   23537 	#
   23538 	# Initialization and shutdown wrappers, helper functions.
   23539 	#
   23540 	DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
   23541 	DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
   23542 fi
   23543 
   23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
   23545 $as_echo_n "checking contributed DLZ drivers... " >&6; }
   23546 
   23547 if test -n "$CONTRIB_DLZ"
   23548 then
   23549 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   23550 $as_echo "yes" >&6; }
   23551 	DLZ_DRIVER_RULES=contrib/dlz/drivers/rules
   23552 	ac_config_files="$ac_config_files $DLZ_DRIVER_RULES contrib/dlz/modules/mysql/Makefile contrib/dlz/modules/mysqldyn/Makefile"
   23553 
   23554 else
   23555 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   23556 $as_echo "no" >&6; }
   23557 	DLZ_DRIVER_RULES=/dev/null
   23558 fi
   23559 
   23560 
   23561 
   23562 
   23563 
   23564 
   23565 
   23566 
   23567 
   23568 
   23569 
   23570 if test "yes" = "$cross_compiling"; then
   23571 	if test -z "$BUILD_CC"; then
   23572 		as_fn_error $? "BUILD_CC not set" "$LINENO" 5
   23573 	fi
   23574 	BUILD_CFLAGS="$BUILD_CFLAGS"
   23575 	BUILD_CPPFLAGS="$BUILD_CPPFLAGS"
   23576 	BUILD_LDFLAGS="$BUILD_LDFLAGS"
   23577 	BUILD_LIBS="$BUILD_LIBS"
   23578 else
   23579 	BUILD_CC="$CC"
   23580 	BUILD_CFLAGS="$CFLAGS"
   23581 	BUILD_CPPFLAGS="$CPPFLAGS $GEN_NEED_OPTARG"
   23582 	BUILD_LDFLAGS="$LDFLAGS"
   23583 	BUILD_LIBS="$LIBS"
   23584 fi
   23585 
   23586 NEWFLAGS=""
   23587 for e in $BUILD_LDFLAGS ; do
   23588     case $e in
   23589 	-L*)
   23590 	    case $host_os in
   23591 		netbsd*)
   23592 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23593 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23594 		    ;;
   23595 		freebsd*)
   23596 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23597 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23598 		    ;;
   23599 		solaris*)
   23600 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23601 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23602 		    ;;
   23603 		*)
   23604 		    NEWFLAGS="$NEWFLAGS $e"
   23605 		    ;;
   23606 		esac
   23607 	    ;;
   23608 	*)
   23609 	    NEWFLAGS="$NEWFLAGS $e"
   23610 	    ;;
   23611     esac
   23612 done
   23613 BUILD_LDFLAGS="$NEWFLAGS"
   23614 
   23615 NEWFLAGS=""
   23616 for e in $DNS_GSSAPI_LIBS ; do
   23617     case $e in
   23618 	-L*)
   23619 	    case $host_os in
   23620 		netbsd*)
   23621 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23622 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23623 		    ;;
   23624 		freebsd*)
   23625 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23626 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23627 		    ;;
   23628 		solaris*)
   23629 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23630 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23631 		    ;;
   23632 		*)
   23633 		    NEWFLAGS="$NEWFLAGS $e"
   23634 		    ;;
   23635 		esac
   23636 	    ;;
   23637 	*)
   23638 	    NEWFLAGS="$NEWFLAGS $e"
   23639 	    ;;
   23640     esac
   23641 done
   23642 DNS_GSSAPI_LIBS="$NEWFLAGS"
   23643 
   23644 NEWFLAGS=""
   23645 for e in $ISC_OPENSSL_LIBS ; do
   23646     case $e in
   23647 	-L*)
   23648 	    case $host_os in
   23649 		netbsd*)
   23650 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23651 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23652 		    ;;
   23653 		freebsd*)
   23654 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23655 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23656 		    ;;
   23657 		solaris*)
   23658 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23659 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23660 		    ;;
   23661 		*)
   23662 		    NEWFLAGS="$NEWFLAGS $e"
   23663 		    ;;
   23664 		esac
   23665 	    ;;
   23666 	*)
   23667 	    NEWFLAGS="$NEWFLAGS $e"
   23668 	    ;;
   23669     esac
   23670 done
   23671 ISC_OPENSSL_LIBS="$NEWFLAGS"
   23672 
   23673 NEWFLAGS=""
   23674 for e in $DNS_CRYPTO_LIBS ; do
   23675     case $e in
   23676 	-L*)
   23677 	    case $host_os in
   23678 		netbsd*)
   23679 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23680 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23681 		    ;;
   23682 		freebsd*)
   23683 		    ee=`echo $e | sed -e 's%^-L%-Wl,-rpath,%'`
   23684 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23685 		    ;;
   23686 		solaris*)
   23687 		    ee=`echo $e | sed -e 's%^-L%-R%'`
   23688 		    NEWFLAGS="$NEWFLAGS $e $ee"
   23689 		    ;;
   23690 		*)
   23691 		    NEWFLAGS="$NEWFLAGS $e"
   23692 		    ;;
   23693 		esac
   23694 	    ;;
   23695 	*)
   23696 	    NEWFLAGS="$NEWFLAGS $e"
   23697 	    ;;
   23698     esac
   23699 done
   23700 DNS_CRYPTO_LIBS="$NEWFLAGS"
   23701 
   23702 
   23703 
   23704 
   23705 
   23706 
   23707 
   23708 #
   23709 # Commands to run at the end of config.status.
   23710 # Don't just put these into configure, it won't work right if somebody
   23711 # runs config.status directly (which autoconf allows).
   23712 #
   23713 
   23714 ac_config_commands="$ac_config_commands chmod"
   23715 
   23716 
   23717 #
   23718 # Files to configure.  These are listed here because we used to
   23719 # specify them as arguments to AC_OUTPUT.  It's (now) ok to move these
   23720 # elsewhere if there's a good reason for doing so.
   23721 #
   23722 
   23723 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/arm/noteversion.xml doc/arm/pkgversion.xml doc/arm/releaseinfo.xml doc/doxygen/Doxyfile doc/doxygen/Makefile doc/doxygen/doxygen-input-filter doc/misc/Makefile doc/tex/Makefile doc/tex/armstyle.sty doc/xsl/Makefile doc/xsl/isc-docbook-chunk.xsl doc/xsl/isc-docbook-html.xsl doc/xsl/isc-manpage.xsl doc/xsl/isc-notes-html.xsl 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"
   23724 
   23725 
   23726 #
   23727 # Do it
   23728 #
   23729 
   23730 cat >confcache <<\_ACEOF
   23731 # This file is a shell script that caches the results of configure
   23732 # tests run on this system so they can be shared between configure
   23733 # scripts and configure runs, see configure's option --config-cache.
   23734 # It is not useful on other systems.  If it contains results you don't
   23735 # want to keep, you may remove or edit it.
   23736 #
   23737 # config.status only pays attention to the cache file if you give it
   23738 # the --recheck option to rerun configure.
   23739 #
   23740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   23741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   23742 # following values.
   23743 
   23744 _ACEOF
   23745 
   23746 # The following way of writing the cache mishandles newlines in values,
   23747 # but we know of no workaround that is simple, portable, and efficient.
   23748 # So, we kill variables containing newlines.
   23749 # Ultrix sh set writes to stderr and can't be redirected directly,
   23750 # and sets the high bit in the cache file unless we assign to the vars.
   23751 (
   23752   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   23753     eval ac_val=\$$ac_var
   23754     case $ac_val in #(
   23755     *${as_nl}*)
   23756       case $ac_var in #(
   23757       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   23758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   23759       esac
   23760       case $ac_var in #(
   23761       _ | IFS | as_nl) ;; #(
   23762       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   23763       *) { eval $ac_var=; unset $ac_var;} ;;
   23764       esac ;;
   23765     esac
   23766   done
   23767 
   23768   (set) 2>&1 |
   23769     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   23770     *${as_nl}ac_space=\ *)
   23771       # `set' does not quote correctly, so add quotes: double-quote
   23772       # substitution turns \\\\ into \\, and sed turns \\ into \.
   23773       sed -n \
   23774 	"s/'/'\\\\''/g;
   23775 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   23776       ;; #(
   23777     *)
   23778       # `set' quotes correctly as required by POSIX, so do not add quotes.
   23779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   23780       ;;
   23781     esac |
   23782     sort
   23783 ) |
   23784   sed '
   23785      /^ac_cv_env_/b end
   23786      t clear
   23787      :clear
   23788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   23789      t end
   23790      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   23791      :end' >>confcache
   23792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   23793   if test -w "$cache_file"; then
   23794     if test "x$cache_file" != "x/dev/null"; then
   23795       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   23796 $as_echo "$as_me: updating cache $cache_file" >&6;}
   23797       if test ! -f "$cache_file" || test -h "$cache_file"; then
   23798 	cat confcache >"$cache_file"
   23799       else
   23800         case $cache_file in #(
   23801         */* | ?:*)
   23802 	  mv -f confcache "$cache_file"$$ &&
   23803 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   23804         *)
   23805 	  mv -f confcache "$cache_file" ;;
   23806 	esac
   23807       fi
   23808     fi
   23809   else
   23810     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   23811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   23812   fi
   23813 fi
   23814 rm -f confcache
   23815 
   23816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   23817 # Let make expand exec_prefix.
   23818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   23819 
   23820 DEFS=-DHAVE_CONFIG_H
   23821 
   23822 ac_libobjs=
   23823 ac_ltlibobjs=
   23824 U=
   23825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   23826   # 1. Remove the extension, and $U if already installed.
   23827   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   23828   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   23829   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   23830   #    will be set to the directory where LIBOBJS objects are built.
   23831   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   23832   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   23833 done
   23834 LIBOBJS=$ac_libobjs
   23835 
   23836 LTLIBOBJS=$ac_ltlibobjs
   23837 
   23838 
   23839 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   23840   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   23841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   23842 fi
   23843 
   23844 
   23845 : "${CONFIG_STATUS=./config.status}"
   23846 ac_write_fail=0
   23847 ac_clean_files_save=$ac_clean_files
   23848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   23849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   23850 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   23851 as_write_fail=0
   23852 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   23853 #! $SHELL
   23854 # Generated by $as_me.
   23855 # Run this file to recreate the current configuration.
   23856 # Compiler output produced by configure, useful for debugging
   23857 # configure, is in config.log if it exists.
   23858 
   23859 debug=false
   23860 ac_cs_recheck=false
   23861 ac_cs_silent=false
   23862 
   23863 SHELL=\${CONFIG_SHELL-$SHELL}
   23864 export SHELL
   23865 _ASEOF
   23866 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   23867 ## -------------------- ##
   23868 ## M4sh Initialization. ##
   23869 ## -------------------- ##
   23870 
   23871 # Be more Bourne compatible
   23872 DUALCASE=1; export DUALCASE # for MKS sh
   23873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   23874   emulate sh
   23875   NULLCMD=:
   23876   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23877   # is contrary to our usage.  Disable this feature.
   23878   alias -g '${1+"$@"}'='"$@"'
   23879   setopt NO_GLOB_SUBST
   23880 else
   23881   case `(set -o) 2>/dev/null` in #(
   23882   *posix*) :
   23883     set -o posix ;; #(
   23884   *) :
   23885      ;;
   23886 esac
   23887 fi
   23888 
   23889 
   23890 as_nl='
   23891 '
   23892 export as_nl
   23893 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   23894 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   23895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   23896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   23897 # Prefer a ksh shell builtin over an external printf program on Solaris,
   23898 # but without wasting forks for bash or zsh.
   23899 if test -z "$BASH_VERSION$ZSH_VERSION" \
   23900     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   23901   as_echo='print -r --'
   23902   as_echo_n='print -rn --'
   23903 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   23904   as_echo='printf %s\n'
   23905   as_echo_n='printf %s'
   23906 else
   23907   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   23908     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   23909     as_echo_n='/usr/ucb/echo -n'
   23910   else
   23911     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   23912     as_echo_n_body='eval
   23913       arg=$1;
   23914       case $arg in #(
   23915       *"$as_nl"*)
   23916 	expr "X$arg" : "X\\(.*\\)$as_nl";
   23917 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   23918       esac;
   23919       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   23920     '
   23921     export as_echo_n_body
   23922     as_echo_n='sh -c $as_echo_n_body as_echo'
   23923   fi
   23924   export as_echo_body
   23925   as_echo='sh -c $as_echo_body as_echo'
   23926 fi
   23927 
   23928 # The user is always right.
   23929 if test "${PATH_SEPARATOR+set}" != set; then
   23930   PATH_SEPARATOR=:
   23931   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   23932     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   23933       PATH_SEPARATOR=';'
   23934   }
   23935 fi
   23936 
   23937 
   23938 # IFS
   23939 # We need space, tab and new line, in precisely that order.  Quoting is
   23940 # there to prevent editors from complaining about space-tab.
   23941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   23942 # splitting by setting IFS to empty value.)
   23943 IFS=" ""	$as_nl"
   23944 
   23945 # Find who we are.  Look in the path if we contain no directory separator.
   23946 as_myself=
   23947 case $0 in #((
   23948   *[\\/]* ) as_myself=$0 ;;
   23949   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   23950 for as_dir in $PATH
   23951 do
   23952   IFS=$as_save_IFS
   23953   test -z "$as_dir" && as_dir=.
   23954     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   23955   done
   23956 IFS=$as_save_IFS
   23957 
   23958      ;;
   23959 esac
   23960 # We did not find ourselves, most probably we were run as `sh COMMAND'
   23961 # in which case we are not to be found in the path.
   23962 if test "x$as_myself" = x; then
   23963   as_myself=$0
   23964 fi
   23965 if test ! -f "$as_myself"; then
   23966   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   23967   exit 1
   23968 fi
   23969 
   23970 # Unset variables that we do not need and which cause bugs (e.g. in
   23971 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   23972 # suppresses any "Segmentation fault" message there.  '((' could
   23973 # trigger a bug in pdksh 5.2.14.
   23974 for as_var in BASH_ENV ENV MAIL MAILPATH
   23975 do eval test x\${$as_var+set} = xset \
   23976   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   23977 done
   23978 PS1='$ '
   23979 PS2='> '
   23980 PS4='+ '
   23981 
   23982 # NLS nuisances.
   23983 LC_ALL=C
   23984 export LC_ALL
   23985 LANGUAGE=C
   23986 export LANGUAGE
   23987 
   23988 # CDPATH.
   23989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   23990 
   23991 
   23992 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   23993 # ----------------------------------------
   23994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   23995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   23996 # script with STATUS, using 1 if that was 0.
   23997 as_fn_error ()
   23998 {
   23999   as_status=$1; test $as_status -eq 0 && as_status=1
   24000   if test "$4"; then
   24001     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   24002     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   24003   fi
   24004   $as_echo "$as_me: error: $2" >&2
   24005   as_fn_exit $as_status
   24006 } # as_fn_error
   24007 
   24008 
   24009 # as_fn_set_status STATUS
   24010 # -----------------------
   24011 # Set $? to STATUS, without forking.
   24012 as_fn_set_status ()
   24013 {
   24014   return $1
   24015 } # as_fn_set_status
   24016 
   24017 # as_fn_exit STATUS
   24018 # -----------------
   24019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   24020 as_fn_exit ()
   24021 {
   24022   set +e
   24023   as_fn_set_status $1
   24024   exit $1
   24025 } # as_fn_exit
   24026 
   24027 # as_fn_unset VAR
   24028 # ---------------
   24029 # Portably unset VAR.
   24030 as_fn_unset ()
   24031 {
   24032   { eval $1=; unset $1;}
   24033 }
   24034 as_unset=as_fn_unset
   24035 # as_fn_append VAR VALUE
   24036 # ----------------------
   24037 # Append the text in VALUE to the end of the definition contained in VAR. Take
   24038 # advantage of any shell optimizations that allow amortized linear growth over
   24039 # repeated appends, instead of the typical quadratic growth present in naive
   24040 # implementations.
   24041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   24042   eval 'as_fn_append ()
   24043   {
   24044     eval $1+=\$2
   24045   }'
   24046 else
   24047   as_fn_append ()
   24048   {
   24049     eval $1=\$$1\$2
   24050   }
   24051 fi # as_fn_append
   24052 
   24053 # as_fn_arith ARG...
   24054 # ------------------
   24055 # Perform arithmetic evaluation on the ARGs, and store the result in the
   24056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   24057 # must be portable across $(()) and expr.
   24058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   24059   eval 'as_fn_arith ()
   24060   {
   24061     as_val=$(( $* ))
   24062   }'
   24063 else
   24064   as_fn_arith ()
   24065   {
   24066     as_val=`expr "$@" || test $? -eq 1`
   24067   }
   24068 fi # as_fn_arith
   24069 
   24070 
   24071 if expr a : '\(a\)' >/dev/null 2>&1 &&
   24072    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   24073   as_expr=expr
   24074 else
   24075   as_expr=false
   24076 fi
   24077 
   24078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   24079   as_basename=basename
   24080 else
   24081   as_basename=false
   24082 fi
   24083 
   24084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   24085   as_dirname=dirname
   24086 else
   24087   as_dirname=false
   24088 fi
   24089 
   24090 as_me=`$as_basename -- "$0" ||
   24091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   24092 	 X"$0" : 'X\(//\)$' \| \
   24093 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   24094 $as_echo X/"$0" |
   24095     sed '/^.*\/\([^/][^/]*\)\/*$/{
   24096 	    s//\1/
   24097 	    q
   24098 	  }
   24099 	  /^X\/\(\/\/\)$/{
   24100 	    s//\1/
   24101 	    q
   24102 	  }
   24103 	  /^X\/\(\/\).*/{
   24104 	    s//\1/
   24105 	    q
   24106 	  }
   24107 	  s/.*/./; q'`
   24108 
   24109 # Avoid depending upon Character Ranges.
   24110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   24111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   24112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   24113 as_cr_digits='0123456789'
   24114 as_cr_alnum=$as_cr_Letters$as_cr_digits
   24115 
   24116 ECHO_C= ECHO_N= ECHO_T=
   24117 case `echo -n x` in #(((((
   24118 -n*)
   24119   case `echo 'xy\c'` in
   24120   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   24121   xy)  ECHO_C='\c';;
   24122   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   24123        ECHO_T='	';;
   24124   esac;;
   24125 *)
   24126   ECHO_N='-n';;
   24127 esac
   24128 
   24129 rm -f conf$$ conf$$.exe conf$$.file
   24130 if test -d conf$$.dir; then
   24131   rm -f conf$$.dir/conf$$.file
   24132 else
   24133   rm -f conf$$.dir
   24134   mkdir conf$$.dir 2>/dev/null
   24135 fi
   24136 if (echo >conf$$.file) 2>/dev/null; then
   24137   if ln -s conf$$.file conf$$ 2>/dev/null; then
   24138     as_ln_s='ln -s'
   24139     # ... but there are two gotchas:
   24140     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   24141     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   24142     # In both cases, we have to default to `cp -pR'.
   24143     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   24144       as_ln_s='cp -pR'
   24145   elif ln conf$$.file conf$$ 2>/dev/null; then
   24146     as_ln_s=ln
   24147   else
   24148     as_ln_s='cp -pR'
   24149   fi
   24150 else
   24151   as_ln_s='cp -pR'
   24152 fi
   24153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   24154 rmdir conf$$.dir 2>/dev/null
   24155 
   24156 
   24157 # as_fn_mkdir_p
   24158 # -------------
   24159 # Create "$as_dir" as a directory, including parents if necessary.
   24160 as_fn_mkdir_p ()
   24161 {
   24162 
   24163   case $as_dir in #(
   24164   -*) as_dir=./$as_dir;;
   24165   esac
   24166   test -d "$as_dir" || eval $as_mkdir_p || {
   24167     as_dirs=
   24168     while :; do
   24169       case $as_dir in #(
   24170       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   24171       *) as_qdir=$as_dir;;
   24172       esac
   24173       as_dirs="'$as_qdir' $as_dirs"
   24174       as_dir=`$as_dirname -- "$as_dir" ||
   24175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   24176 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   24177 	 X"$as_dir" : 'X\(//\)$' \| \
   24178 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   24179 $as_echo X"$as_dir" |
   24180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   24181 	    s//\1/
   24182 	    q
   24183 	  }
   24184 	  /^X\(\/\/\)[^/].*/{
   24185 	    s//\1/
   24186 	    q
   24187 	  }
   24188 	  /^X\(\/\/\)$/{
   24189 	    s//\1/
   24190 	    q
   24191 	  }
   24192 	  /^X\(\/\).*/{
   24193 	    s//\1/
   24194 	    q
   24195 	  }
   24196 	  s/.*/./; q'`
   24197       test -d "$as_dir" && break
   24198     done
   24199     test -z "$as_dirs" || eval "mkdir $as_dirs"
   24200   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   24201 
   24202 
   24203 } # as_fn_mkdir_p
   24204 if mkdir -p . 2>/dev/null; then
   24205   as_mkdir_p='mkdir -p "$as_dir"'
   24206 else
   24207   test -d ./-p && rmdir ./-p
   24208   as_mkdir_p=false
   24209 fi
   24210 
   24211 
   24212 # as_fn_executable_p FILE
   24213 # -----------------------
   24214 # Test if FILE is an executable regular file.
   24215 as_fn_executable_p ()
   24216 {
   24217   test -f "$1" && test -x "$1"
   24218 } # as_fn_executable_p
   24219 as_test_x='test -x'
   24220 as_executable_p=as_fn_executable_p
   24221 
   24222 # Sed expression to map a string onto a valid CPP name.
   24223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   24224 
   24225 # Sed expression to map a string onto a valid variable name.
   24226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   24227 
   24228 
   24229 exec 6>&1
   24230 ## ----------------------------------- ##
   24231 ## Main body of $CONFIG_STATUS script. ##
   24232 ## ----------------------------------- ##
   24233 _ASEOF
   24234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   24235 
   24236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24237 # Save the log message, to keep $0 and so on meaningful, and to
   24238 # report actual input values of CONFIG_FILES etc. instead of their
   24239 # values after options handling.
   24240 ac_log="
   24241 This file was extended by BIND $as_me 9.16, which was
   24242 generated by GNU Autoconf 2.69.  Invocation command line was
   24243 
   24244   CONFIG_FILES    = $CONFIG_FILES
   24245   CONFIG_HEADERS  = $CONFIG_HEADERS
   24246   CONFIG_LINKS    = $CONFIG_LINKS
   24247   CONFIG_COMMANDS = $CONFIG_COMMANDS
   24248   $ $0 $@
   24249 
   24250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   24251 "
   24252 
   24253 _ACEOF
   24254 
   24255 case $ac_config_files in *"
   24256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   24257 esac
   24258 
   24259 case $ac_config_headers in *"
   24260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   24261 esac
   24262 
   24263 
   24264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24265 # Files that config.status was made for.
   24266 config_files="$ac_config_files"
   24267 config_headers="$ac_config_headers"
   24268 config_commands="$ac_config_commands"
   24269 
   24270 _ACEOF
   24271 
   24272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24273 ac_cs_usage="\
   24274 \`$as_me' instantiates files and other configuration actions
   24275 from templates according to the current configuration.  Unless the files
   24276 and actions are specified as TAGs, all are instantiated by default.
   24277 
   24278 Usage: $0 [OPTION]... [TAG]...
   24279 
   24280   -h, --help       print this help, then exit
   24281   -V, --version    print version number and configuration settings, then exit
   24282       --config     print configuration, then exit
   24283   -q, --quiet, --silent
   24284                    do not print progress messages
   24285   -d, --debug      don't remove temporary files
   24286       --recheck    update $as_me by reconfiguring in the same conditions
   24287       --file=FILE[:TEMPLATE]
   24288                    instantiate the configuration file FILE
   24289       --header=FILE[:TEMPLATE]
   24290                    instantiate the configuration header FILE
   24291 
   24292 Configuration files:
   24293 $config_files
   24294 
   24295 Configuration headers:
   24296 $config_headers
   24297 
   24298 Configuration commands:
   24299 $config_commands
   24300 
   24301 Report bugs to <info@isc.org>.
   24302 BIND home page: <https://www.isc.org/downloads/>."
   24303 
   24304 _ACEOF
   24305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   24307 ac_cs_version="\\
   24308 BIND config.status 9.16
   24309 configured by $0, generated by GNU Autoconf 2.69,
   24310   with options \\"\$ac_cs_config\\"
   24311 
   24312 Copyright (C) 2012 Free Software Foundation, Inc.
   24313 This config.status script is free software; the Free Software Foundation
   24314 gives unlimited permission to copy, distribute and modify it."
   24315 
   24316 ac_pwd='$ac_pwd'
   24317 srcdir='$srcdir'
   24318 INSTALL='$INSTALL'
   24319 AWK='$AWK'
   24320 test -n "\$AWK" || AWK=awk
   24321 _ACEOF
   24322 
   24323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24324 # The default lists apply if the user does not specify any file.
   24325 ac_need_defaults=:
   24326 while test $# != 0
   24327 do
   24328   case $1 in
   24329   --*=?*)
   24330     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24331     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   24332     ac_shift=:
   24333     ;;
   24334   --*=)
   24335     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   24336     ac_optarg=
   24337     ac_shift=:
   24338     ;;
   24339   *)
   24340     ac_option=$1
   24341     ac_optarg=$2
   24342     ac_shift=shift
   24343     ;;
   24344   esac
   24345 
   24346   case $ac_option in
   24347   # Handling of the options.
   24348   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   24349     ac_cs_recheck=: ;;
   24350   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   24351     $as_echo "$ac_cs_version"; exit ;;
   24352   --config | --confi | --conf | --con | --co | --c )
   24353     $as_echo "$ac_cs_config"; exit ;;
   24354   --debug | --debu | --deb | --de | --d | -d )
   24355     debug=: ;;
   24356   --file | --fil | --fi | --f )
   24357     $ac_shift
   24358     case $ac_optarg in
   24359     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24360     '') as_fn_error $? "missing file argument" ;;
   24361     esac
   24362     as_fn_append CONFIG_FILES " '$ac_optarg'"
   24363     ac_need_defaults=false;;
   24364   --header | --heade | --head | --hea )
   24365     $ac_shift
   24366     case $ac_optarg in
   24367     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   24368     esac
   24369     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   24370     ac_need_defaults=false;;
   24371   --he | --h)
   24372     # Conflict between --help and --header
   24373     as_fn_error $? "ambiguous option: \`$1'
   24374 Try \`$0 --help' for more information.";;
   24375   --help | --hel | -h )
   24376     $as_echo "$ac_cs_usage"; exit ;;
   24377   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   24378   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   24379     ac_cs_silent=: ;;
   24380 
   24381   # This is an error.
   24382   -*) as_fn_error $? "unrecognized option: \`$1'
   24383 Try \`$0 --help' for more information." ;;
   24384 
   24385   *) as_fn_append ac_config_targets " $1"
   24386      ac_need_defaults=false ;;
   24387 
   24388   esac
   24389   shift
   24390 done
   24391 
   24392 ac_configure_extra_args=
   24393 
   24394 if $ac_cs_silent; then
   24395   exec 6>/dev/null
   24396   ac_configure_extra_args="$ac_configure_extra_args --silent"
   24397 fi
   24398 
   24399 _ACEOF
   24400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24401 if \$ac_cs_recheck; then
   24402   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   24403   shift
   24404   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   24405   CONFIG_SHELL='$SHELL'
   24406   export CONFIG_SHELL
   24407   exec "\$@"
   24408 fi
   24409 
   24410 _ACEOF
   24411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24412 exec 5>>config.log
   24413 {
   24414   echo
   24415   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   24416 ## Running $as_me. ##
   24417 _ASBOX
   24418   $as_echo "$ac_log"
   24419 } >&5
   24420 
   24421 _ACEOF
   24422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24423 #
   24424 # INIT-COMMANDS
   24425 #
   24426 
   24427 
   24428 # The HP-UX ksh and POSIX shell print the target directory to stdout
   24429 # if CDPATH is set.
   24430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   24431 
   24432 sed_quote_subst='$sed_quote_subst'
   24433 double_quote_subst='$double_quote_subst'
   24434 delay_variable_subst='$delay_variable_subst'
   24435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
   24436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
   24437 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
   24438 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
   24439 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
   24440 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
   24441 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
   24442 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
   24443 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
   24444 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
   24445 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
   24446 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
   24447 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
   24448 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
   24449 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
   24450 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
   24451 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
   24452 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
   24453 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
   24454 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
   24455 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
   24456 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
   24457 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
   24458 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
   24459 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
   24460 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
   24461 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
   24462 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
   24463 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
   24464 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
   24465 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
   24466 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
   24467 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
   24468 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
   24469 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
   24470 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
   24471 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
   24472 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
   24473 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
   24474 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
   24475 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
   24476 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
   24477 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
   24478 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
   24479 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
   24480 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
   24481 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24482 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24483 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
   24484 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
   24485 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
   24486 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
   24487 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
   24488 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
   24489 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
   24490 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
   24491 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
   24492 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
   24493 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"`'
   24494 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
   24495 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
   24496 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
   24497 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
   24498 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
   24499 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
   24500 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
   24501 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
   24502 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
   24503 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
   24504 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
   24505 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
   24506 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
   24507 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
   24508 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
   24509 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
   24510 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
   24511 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
   24512 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
   24513 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
   24514 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24515 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
   24516 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
   24517 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
   24518 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
   24519 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
   24520 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
   24521 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
   24522 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
   24523 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24524 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
   24525 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
   24526 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
   24527 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24528 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
   24529 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
   24530 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
   24531 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
   24532 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
   24533 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
   24534 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24535 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
   24536 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
   24537 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
   24538 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
   24539 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
   24540 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
   24541 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
   24542 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
   24543 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
   24544 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
   24545 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
   24546 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
   24547 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
   24548 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
   24549 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
   24550 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
   24551 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
   24552 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
   24553 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
   24554 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
   24555 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
   24556 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
   24557 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
   24558 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
   24559 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
   24560 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
   24561 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
   24562 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
   24563 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
   24564 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
   24565 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
   24566 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
   24567 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
   24568 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
   24569 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
   24570 
   24571 LTCC='$LTCC'
   24572 LTCFLAGS='$LTCFLAGS'
   24573 compiler='$compiler_DEFAULT'
   24574 
   24575 # A function that is used when there is no print builtin or printf.
   24576 func_fallback_echo ()
   24577 {
   24578   eval 'cat <<_LTECHO_EOF
   24579 \$1
   24580 _LTECHO_EOF'
   24581 }
   24582 
   24583 # Quote evaled strings.
   24584 for var in SHELL \
   24585 ECHO \
   24586 PATH_SEPARATOR \
   24587 SED \
   24588 GREP \
   24589 EGREP \
   24590 FGREP \
   24591 LD \
   24592 NM \
   24593 LN_S \
   24594 lt_SP2NL \
   24595 lt_NL2SP \
   24596 reload_flag \
   24597 OBJDUMP \
   24598 deplibs_check_method \
   24599 file_magic_cmd \
   24600 file_magic_glob \
   24601 want_nocaseglob \
   24602 DLLTOOL \
   24603 sharedlib_from_linklib_cmd \
   24604 AR \
   24605 AR_FLAGS \
   24606 archiver_list_spec \
   24607 STRIP \
   24608 RANLIB \
   24609 CC \
   24610 CFLAGS \
   24611 compiler \
   24612 lt_cv_sys_global_symbol_pipe \
   24613 lt_cv_sys_global_symbol_to_cdecl \
   24614 lt_cv_sys_global_symbol_to_import \
   24615 lt_cv_sys_global_symbol_to_c_name_address \
   24616 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
   24617 lt_cv_nm_interface \
   24618 nm_file_list_spec \
   24619 lt_cv_truncate_bin \
   24620 lt_prog_compiler_no_builtin_flag \
   24621 lt_prog_compiler_pic \
   24622 lt_prog_compiler_wl \
   24623 lt_prog_compiler_static \
   24624 lt_cv_prog_compiler_c_o \
   24625 need_locks \
   24626 MANIFEST_TOOL \
   24627 DSYMUTIL \
   24628 NMEDIT \
   24629 LIPO \
   24630 OTOOL \
   24631 OTOOL64 \
   24632 shrext_cmds \
   24633 export_dynamic_flag_spec \
   24634 whole_archive_flag_spec \
   24635 compiler_needs_object \
   24636 with_gnu_ld \
   24637 allow_undefined_flag \
   24638 no_undefined_flag \
   24639 hardcode_libdir_flag_spec \
   24640 hardcode_libdir_separator \
   24641 exclude_expsyms \
   24642 include_expsyms \
   24643 file_list_spec \
   24644 variables_saved_for_relink \
   24645 libname_spec \
   24646 library_names_spec \
   24647 soname_spec \
   24648 install_override_mode \
   24649 finish_eval \
   24650 old_striplib \
   24651 striplib; do
   24652     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24653     *[\\\\\\\`\\"\\\$]*)
   24654       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24655       ;;
   24656     *)
   24657       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24658       ;;
   24659     esac
   24660 done
   24661 
   24662 # Double-quote double-evaled strings.
   24663 for var in reload_cmds \
   24664 old_postinstall_cmds \
   24665 old_postuninstall_cmds \
   24666 old_archive_cmds \
   24667 extract_expsyms_cmds \
   24668 old_archive_from_new_cmds \
   24669 old_archive_from_expsyms_cmds \
   24670 archive_cmds \
   24671 archive_expsym_cmds \
   24672 module_cmds \
   24673 module_expsym_cmds \
   24674 export_symbols_cmds \
   24675 prelink_cmds \
   24676 postlink_cmds \
   24677 postinstall_cmds \
   24678 postuninstall_cmds \
   24679 finish_cmds \
   24680 sys_lib_search_path_spec \
   24681 configure_time_dlsearch_path \
   24682 configure_time_lt_sys_library_path; do
   24683     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   24684     *[\\\\\\\`\\"\\\$]*)
   24685       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
   24686       ;;
   24687     *)
   24688       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   24689       ;;
   24690     esac
   24691 done
   24692 
   24693 ac_aux_dir='$ac_aux_dir'
   24694 
   24695 # See if we are running on zsh, and set the options that allow our
   24696 # commands through without removal of \ escapes INIT.
   24697 if test -n "\${ZSH_VERSION+set}"; then
   24698    setopt NO_GLOB_SUBST
   24699 fi
   24700 
   24701 
   24702     PACKAGE='$PACKAGE'
   24703     VERSION='$VERSION'
   24704     RM='$RM'
   24705     ofile='$ofile'
   24706 
   24707 
   24708 
   24709 
   24710 _ACEOF
   24711 
   24712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   24713 
   24714 # Handling of arguments.
   24715 for ac_config_target in $ac_config_targets
   24716 do
   24717   case $ac_config_target in
   24718     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
   24719     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
   24720     "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
   24721     "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
   24722     "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
   24723     "$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
   24724     "contrib/dlz/modules/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysql/Makefile" ;;
   24725     "contrib/dlz/modules/mysqldyn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/modules/mysqldyn/Makefile" ;;
   24726     "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
   24727     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   24728     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
   24729     "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
   24730     "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
   24731     "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
   24732     "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
   24733     "bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
   24734     "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
   24735     "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
   24736     "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
   24737     "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
   24738     "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
   24739     "bin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES bin/plugins/Makefile" ;;
   24740     "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
   24741     "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
   24742     "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
   24743     "bin/python/dnssec-keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-keymgr.py" ;;
   24744     "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
   24745     "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
   24746     "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
   24747     "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
   24748     "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
   24749     "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
   24750     "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
   24751     "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
   24752     "bin/python/isc/keymgr.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keymgr.py" ;;
   24753     "bin/python/isc/keyseries.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyseries.py" ;;
   24754     "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
   24755     "bin/python/isc/policy.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/policy.py" ;;
   24756     "bin/python/isc/rndc.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/rndc.py" ;;
   24757     "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
   24758     "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
   24759     "bin/python/isc/tests/policy_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/policy_test.py" ;;
   24760     "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
   24761     "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
   24762     "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
   24763     "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
   24764     "bin/tests/optional/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/optional/Makefile" ;;
   24765     "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
   24766     "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
   24767     "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
   24768     "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
   24769     "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
   24770     "bin/tests/system/dlzexternal/ns1/dlzs.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/dlzs.conf" ;;
   24771     "bin/tests/system/dyndb/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/Makefile" ;;
   24772     "bin/tests/system/dyndb/driver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dyndb/driver/Makefile" ;;
   24773     "bin/tests/system/pipelined/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/pipelined/Makefile" ;;
   24774     "bin/tests/system/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rndc/Makefile" ;;
   24775     "bin/tests/system/rpz/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rpz/Makefile" ;;
   24776     "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
   24777     "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
   24778     "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
   24779     "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
   24780     "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
   24781     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   24782     "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
   24783     "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
   24784     "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
   24785     "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
   24786     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
   24787     "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
   24788     "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
   24789     "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
   24790     "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
   24791     "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
   24792     "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
   24793     "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
   24794     "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
   24795     "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
   24796     "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
   24797     "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
   24798     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
   24799     "lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
   24800     "lib/bind9/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/Makefile" ;;
   24801     "lib/bind9/include/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/include/bind9/Makefile" ;;
   24802     "lib/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/Makefile" ;;
   24803     "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
   24804     "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
   24805     "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
   24806     "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
   24807     "lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
   24808     "lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
   24809     "lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
   24810     "lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
   24811     "lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
   24812     "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
   24813     "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;;
   24814     "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;;
   24815     "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;;
   24816     "lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
   24817     "lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
   24818     "lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
   24819     "lib/isc/netmgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/netmgr/Makefile" ;;
   24820     "lib/isc/pthreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/Makefile" ;;
   24821     "lib/isc/pthreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/Makefile" ;;
   24822     "lib/isc/pthreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/pthreads/include/isc/Makefile" ;;
   24823     "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
   24824     "lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
   24825     "lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
   24826     "lib/isc/unix/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/isc/Makefile" ;;
   24827     "lib/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/Makefile" ;;
   24828     "lib/isccc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/Makefile" ;;
   24829     "lib/isccc/include/isccc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/include/isccc/Makefile" ;;
   24830     "lib/isccc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccc/tests/Makefile" ;;
   24831     "lib/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/Makefile" ;;
   24832     "lib/isccfg/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/Makefile" ;;
   24833     "lib/isccfg/include/isccfg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/include/isccfg/Makefile" ;;
   24834     "lib/isccfg/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isccfg/tests/Makefile" ;;
   24835     "lib/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/Makefile" ;;
   24836     "lib/ns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/Makefile" ;;
   24837     "lib/ns/include/ns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/include/ns/Makefile" ;;
   24838     "lib/ns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ns/tests/Makefile" ;;
   24839     "lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
   24840     "lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
   24841     "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
   24842     "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
   24843     "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
   24844     "util/check-make-install") CONFIG_FILES="$CONFIG_FILES util/check-make-install" ;;
   24845 
   24846   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   24847   esac
   24848 done
   24849 
   24850 
   24851 # If the user did not use the arguments to specify the items to instantiate,
   24852 # then the envvar interface is used.  Set only those that are not.
   24853 # We use the long form for the default assignment because of an extremely
   24854 # bizarre bug on SunOS 4.1.3.
   24855 if $ac_need_defaults; then
   24856   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   24857   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   24858   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   24859 fi
   24860 
   24861 # Have a temporary directory for convenience.  Make it in the build tree
   24862 # simply because there is no reason against having it here, and in addition,
   24863 # creating and moving files from /tmp can sometimes cause problems.
   24864 # Hook for its removal unless debugging.
   24865 # Note that there is a small window in which the directory will not be cleaned:
   24866 # after its creation but before its name has been assigned to `$tmp'.
   24867 $debug ||
   24868 {
   24869   tmp= ac_tmp=
   24870   trap 'exit_status=$?
   24871   : "${ac_tmp:=$tmp}"
   24872   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   24873 ' 0
   24874   trap 'as_fn_exit 1' 1 2 13 15
   24875 }
   24876 # Create a (secure) tmp directory for tmp files.
   24877 
   24878 {
   24879   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   24880   test -d "$tmp"
   24881 }  ||
   24882 {
   24883   tmp=./conf$$-$RANDOM
   24884   (umask 077 && mkdir "$tmp")
   24885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   24886 ac_tmp=$tmp
   24887 
   24888 # Set up the scripts for CONFIG_FILES section.
   24889 # No need to generate them if there are no CONFIG_FILES.
   24890 # This happens for instance with `./config.status config.h'.
   24891 if test -n "$CONFIG_FILES"; then
   24892 
   24893 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   24894   ac_cs_awk_getline=:
   24895   ac_cs_awk_pipe_init=
   24896   ac_cs_awk_read_file='
   24897       while ((getline aline < (F[key])) > 0)
   24898 	print(aline)
   24899       close(F[key])'
   24900   ac_cs_awk_pipe_fini=
   24901 else
   24902   ac_cs_awk_getline=false
   24903   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   24904   ac_cs_awk_read_file='
   24905       print "|#_!!_#|"
   24906       print "cat " F[key] " &&"
   24907       '$ac_cs_awk_pipe_init
   24908   # The final `:' finishes the AND list.
   24909   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   24910 fi
   24911 ac_cr=`echo X | tr X '\015'`
   24912 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   24913 # But we know of no other shell where ac_cr would be empty at this
   24914 # point, so we can use a bashism as a fallback.
   24915 if test "x$ac_cr" = x; then
   24916   eval ac_cr=\$\'\\r\'
   24917 fi
   24918 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   24919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   24920   ac_cs_awk_cr='\\r'
   24921 else
   24922   ac_cs_awk_cr=$ac_cr
   24923 fi
   24924 
   24925 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   24926 _ACEOF
   24927 
   24928 # Create commands to substitute file output variables.
   24929 {
   24930   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   24931   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   24932   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   24933   echo "_ACAWK" &&
   24934   echo "_ACEOF"
   24935 } >conf$$files.sh &&
   24936 . ./conf$$files.sh ||
   24937   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   24938 rm -f conf$$files.sh
   24939 
   24940 {
   24941   echo "cat >conf$$subs.awk <<_ACEOF" &&
   24942   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   24943   echo "_ACEOF"
   24944 } >conf$$subs.sh ||
   24945   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   24946 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   24947 ac_delim='%!_!# '
   24948 for ac_last_try in false false false false false :; do
   24949   . ./conf$$subs.sh ||
   24950     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   24951 
   24952   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   24953   if test $ac_delim_n = $ac_delim_num; then
   24954     break
   24955   elif $ac_last_try; then
   24956     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   24957   else
   24958     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   24959   fi
   24960 done
   24961 rm -f conf$$subs.sh
   24962 
   24963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   24964 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   24965 _ACEOF
   24966 sed -n '
   24967 h
   24968 s/^/S["/; s/!.*/"]=/
   24969 p
   24970 g
   24971 s/^[^!]*!//
   24972 :repl
   24973 t repl
   24974 s/'"$ac_delim"'$//
   24975 t delim
   24976 :nl
   24977 h
   24978 s/\(.\{148\}\)..*/\1/
   24979 t more1
   24980 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   24981 p
   24982 n
   24983 b repl
   24984 :more1
   24985 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   24986 p
   24987 g
   24988 s/.\{148\}//
   24989 t nl
   24990 :delim
   24991 h
   24992 s/\(.\{148\}\)..*/\1/
   24993 t more2
   24994 s/["\\]/\\&/g; s/^/"/; s/$/"/
   24995 p
   24996 b
   24997 :more2
   24998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   24999 p
   25000 g
   25001 s/.\{148\}//
   25002 t delim
   25003 ' <conf$$subs.awk | sed '
   25004 /^[^""]/{
   25005   N
   25006   s/\n//
   25007 }
   25008 ' >>$CONFIG_STATUS || ac_write_fail=1
   25009 rm -f conf$$subs.awk
   25010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25011 _ACAWK
   25012 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   25013   for (key in S) S_is_set[key] = 1
   25014   FS = ""
   25015   \$ac_cs_awk_pipe_init
   25016 }
   25017 {
   25018   line = $ 0
   25019   nfields = split(line, field, "@")
   25020   substed = 0
   25021   len = length(field[1])
   25022   for (i = 2; i < nfields; i++) {
   25023     key = field[i]
   25024     keylen = length(key)
   25025     if (S_is_set[key]) {
   25026       value = S[key]
   25027       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   25028       len += length(value) + length(field[++i])
   25029       substed = 1
   25030     } else
   25031       len += 1 + keylen
   25032   }
   25033   if (nfields == 3 && !substed) {
   25034     key = field[2]
   25035     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   25036       \$ac_cs_awk_read_file
   25037       next
   25038     }
   25039   }
   25040   print line
   25041 }
   25042 \$ac_cs_awk_pipe_fini
   25043 _ACAWK
   25044 _ACEOF
   25045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25046 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   25047   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   25048 else
   25049   cat
   25050 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   25051   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   25052 _ACEOF
   25053 
   25054 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   25055 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   25056 # trailing colons and then remove the whole line if VPATH becomes empty
   25057 # (actually we leave an empty line to preserve line numbers).
   25058 if test "x$srcdir" = x.; then
   25059   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   25060 h
   25061 s///
   25062 s/^/:/
   25063 s/[	 ]*$/:/
   25064 s/:\$(srcdir):/:/g
   25065 s/:\${srcdir}:/:/g
   25066 s/:@srcdir@:/:/g
   25067 s/^:*//
   25068 s/:*$//
   25069 x
   25070 s/\(=[	 ]*\).*/\1/
   25071 G
   25072 s/\n//
   25073 s/^[^=]*=[	 ]*$//
   25074 }'
   25075 fi
   25076 
   25077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25078 fi # test -n "$CONFIG_FILES"
   25079 
   25080 # Set up the scripts for CONFIG_HEADERS section.
   25081 # No need to generate them if there are no CONFIG_HEADERS.
   25082 # This happens for instance with `./config.status Makefile'.
   25083 if test -n "$CONFIG_HEADERS"; then
   25084 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   25085 BEGIN {
   25086 _ACEOF
   25087 
   25088 # Transform confdefs.h into an awk script `defines.awk', embedded as
   25089 # here-document in config.status, that substitutes the proper values into
   25090 # config.h.in to produce config.h.
   25091 
   25092 # Create a delimiter string that does not exist in confdefs.h, to ease
   25093 # handling of long lines.
   25094 ac_delim='%!_!# '
   25095 for ac_last_try in false false :; do
   25096   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   25097   if test -z "$ac_tt"; then
   25098     break
   25099   elif $ac_last_try; then
   25100     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   25101   else
   25102     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   25103   fi
   25104 done
   25105 
   25106 # For the awk script, D is an array of macro values keyed by name,
   25107 # likewise P contains macro parameters if any.  Preserve backslash
   25108 # newline sequences.
   25109 
   25110 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   25111 sed -n '
   25112 s/.\{148\}/&'"$ac_delim"'/g
   25113 t rset
   25114 :rset
   25115 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   25116 t def
   25117 d
   25118 :def
   25119 s/\\$//
   25120 t bsnl
   25121 s/["\\]/\\&/g
   25122 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25123 D["\1"]=" \3"/p
   25124 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   25125 d
   25126 :bsnl
   25127 s/["\\]/\\&/g
   25128 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   25129 D["\1"]=" \3\\\\\\n"\\/p
   25130 t cont
   25131 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   25132 t cont
   25133 d
   25134 :cont
   25135 n
   25136 s/.\{148\}/&'"$ac_delim"'/g
   25137 t clear
   25138 :clear
   25139 s/\\$//
   25140 t bsnlc
   25141 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   25142 d
   25143 :bsnlc
   25144 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   25145 b cont
   25146 ' <confdefs.h | sed '
   25147 s/'"$ac_delim"'/"\\\
   25148 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   25149 
   25150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25151   for (key in D) D_is_set[key] = 1
   25152   FS = ""
   25153 }
   25154 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   25155   line = \$ 0
   25156   split(line, arg, " ")
   25157   if (arg[1] == "#") {
   25158     defundef = arg[2]
   25159     mac1 = arg[3]
   25160   } else {
   25161     defundef = substr(arg[1], 2)
   25162     mac1 = arg[2]
   25163   }
   25164   split(mac1, mac2, "(") #)
   25165   macro = mac2[1]
   25166   prefix = substr(line, 1, index(line, defundef) - 1)
   25167   if (D_is_set[macro]) {
   25168     # Preserve the white space surrounding the "#".
   25169     print prefix "define", macro P[macro] D[macro]
   25170     next
   25171   } else {
   25172     # Replace #undef with comments.  This is necessary, for example,
   25173     # in the case of _POSIX_SOURCE, which is predefined and required
   25174     # on some systems where configure will not decide to define it.
   25175     if (defundef == "undef") {
   25176       print "/*", prefix defundef, macro, "*/"
   25177       next
   25178     }
   25179   }
   25180 }
   25181 { print }
   25182 _ACAWK
   25183 _ACEOF
   25184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25185   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   25186 fi # test -n "$CONFIG_HEADERS"
   25187 
   25188 
   25189 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   25190 shift
   25191 for ac_tag
   25192 do
   25193   case $ac_tag in
   25194   :[FHLC]) ac_mode=$ac_tag; continue;;
   25195   esac
   25196   case $ac_mode$ac_tag in
   25197   :[FHL]*:*);;
   25198   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   25199   :[FH]-) ac_tag=-:-;;
   25200   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   25201   esac
   25202   ac_save_IFS=$IFS
   25203   IFS=:
   25204   set x $ac_tag
   25205   IFS=$ac_save_IFS
   25206   shift
   25207   ac_file=$1
   25208   shift
   25209 
   25210   case $ac_mode in
   25211   :L) ac_source=$1;;
   25212   :[FH])
   25213     ac_file_inputs=
   25214     for ac_f
   25215     do
   25216       case $ac_f in
   25217       -) ac_f="$ac_tmp/stdin";;
   25218       *) # Look for the file first in the build tree, then in the source tree
   25219 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   25220 	 # because $ac_f cannot contain `:'.
   25221 	 test -f "$ac_f" ||
   25222 	   case $ac_f in
   25223 	   [\\/$]*) false;;
   25224 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   25225 	   esac ||
   25226 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   25227       esac
   25228       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   25229       as_fn_append ac_file_inputs " '$ac_f'"
   25230     done
   25231 
   25232     # Let's still pretend it is `configure' which instantiates (i.e., don't
   25233     # use $as_me), people would be surprised to read:
   25234     #    /* config.h.  Generated by config.status.  */
   25235     configure_input='Generated from '`
   25236 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   25237 	`' by configure.'
   25238     if test x"$ac_file" != x-; then
   25239       configure_input="$ac_file.  $configure_input"
   25240       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   25241 $as_echo "$as_me: creating $ac_file" >&6;}
   25242     fi
   25243     # Neutralize special characters interpreted by sed in replacement strings.
   25244     case $configure_input in #(
   25245     *\&* | *\|* | *\\* )
   25246        ac_sed_conf_input=`$as_echo "$configure_input" |
   25247        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   25248     *) ac_sed_conf_input=$configure_input;;
   25249     esac
   25250 
   25251     case $ac_tag in
   25252     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   25253       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   25254     esac
   25255     ;;
   25256   esac
   25257 
   25258   ac_dir=`$as_dirname -- "$ac_file" ||
   25259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   25260 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   25261 	 X"$ac_file" : 'X\(//\)$' \| \
   25262 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   25263 $as_echo X"$ac_file" |
   25264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   25265 	    s//\1/
   25266 	    q
   25267 	  }
   25268 	  /^X\(\/\/\)[^/].*/{
   25269 	    s//\1/
   25270 	    q
   25271 	  }
   25272 	  /^X\(\/\/\)$/{
   25273 	    s//\1/
   25274 	    q
   25275 	  }
   25276 	  /^X\(\/\).*/{
   25277 	    s//\1/
   25278 	    q
   25279 	  }
   25280 	  s/.*/./; q'`
   25281   as_dir="$ac_dir"; as_fn_mkdir_p
   25282   ac_builddir=.
   25283 
   25284 case "$ac_dir" in
   25285 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25286 *)
   25287   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   25288   # A ".." for each directory in $ac_dir_suffix.
   25289   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   25290   case $ac_top_builddir_sub in
   25291   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   25292   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   25293   esac ;;
   25294 esac
   25295 ac_abs_top_builddir=$ac_pwd
   25296 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   25297 # for backward compatibility:
   25298 ac_top_builddir=$ac_top_build_prefix
   25299 
   25300 case $srcdir in
   25301   .)  # We are building in place.
   25302     ac_srcdir=.
   25303     ac_top_srcdir=$ac_top_builddir_sub
   25304     ac_abs_top_srcdir=$ac_pwd ;;
   25305   [\\/]* | ?:[\\/]* )  # Absolute name.
   25306     ac_srcdir=$srcdir$ac_dir_suffix;
   25307     ac_top_srcdir=$srcdir
   25308     ac_abs_top_srcdir=$srcdir ;;
   25309   *) # Relative name.
   25310     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   25311     ac_top_srcdir=$ac_top_build_prefix$srcdir
   25312     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   25313 esac
   25314 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   25315 
   25316 
   25317   case $ac_mode in
   25318   :F)
   25319   #
   25320   # CONFIG_FILE
   25321   #
   25322 
   25323   case $INSTALL in
   25324   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   25325   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   25326   esac
   25327 _ACEOF
   25328 
   25329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25330 # If the template does not know about datarootdir, expand it.
   25331 # FIXME: This hack should be removed a few years after 2.60.
   25332 ac_datarootdir_hack=; ac_datarootdir_seen=
   25333 ac_sed_dataroot='
   25334 /datarootdir/ {
   25335   p
   25336   q
   25337 }
   25338 /@datadir@/p
   25339 /@docdir@/p
   25340 /@infodir@/p
   25341 /@localedir@/p
   25342 /@mandir@/p'
   25343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   25344 *datarootdir*) ac_datarootdir_seen=yes;;
   25345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   25346   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   25347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   25348 _ACEOF
   25349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25350   ac_datarootdir_hack='
   25351   s&@datadir@&$datadir&g
   25352   s&@docdir@&$docdir&g
   25353   s&@infodir@&$infodir&g
   25354   s&@localedir@&$localedir&g
   25355   s&@mandir@&$mandir&g
   25356   s&\\\${datarootdir}&$datarootdir&g' ;;
   25357 esac
   25358 _ACEOF
   25359 
   25360 # Neutralize VPATH when `$srcdir' = `.'.
   25361 # Shell code in configure.ac might set extrasub.
   25362 # FIXME: do we really want to maintain this feature?
   25363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   25364 ac_sed_extra="$ac_vpsub
   25365 $extrasub
   25366 _ACEOF
   25367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   25368 :t
   25369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   25370 s|@configure_input@|$ac_sed_conf_input|;t t
   25371 s&@top_builddir@&$ac_top_builddir_sub&;t t
   25372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   25373 s&@srcdir@&$ac_srcdir&;t t
   25374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   25375 s&@top_srcdir@&$ac_top_srcdir&;t t
   25376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   25377 s&@builddir@&$ac_builddir&;t t
   25378 s&@abs_builddir@&$ac_abs_builddir&;t t
   25379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   25380 s&@INSTALL@&$ac_INSTALL&;t t
   25381 $ac_datarootdir_hack
   25382 "
   25383 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   25384 if $ac_cs_awk_getline; then
   25385   $AWK -f "$ac_tmp/subs.awk"
   25386 else
   25387   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   25388 fi \
   25389   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25390 
   25391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   25392   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   25393   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   25394       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   25395   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25396 which seems to be undefined.  Please make sure it is defined" >&5
   25397 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   25398 which seems to be undefined.  Please make sure it is defined" >&2;}
   25399 
   25400   rm -f "$ac_tmp/stdin"
   25401   case $ac_file in
   25402   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   25403   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   25404   esac \
   25405   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25406  ;;
   25407   :H)
   25408   #
   25409   # CONFIG_HEADER
   25410   #
   25411   if test x"$ac_file" != x-; then
   25412     {
   25413       $as_echo "/* $configure_input  */" \
   25414       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   25415     } >"$ac_tmp/config.h" \
   25416       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25417     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   25418       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   25419 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   25420     else
   25421       rm -f "$ac_file"
   25422       mv "$ac_tmp/config.h" "$ac_file" \
   25423 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   25424     fi
   25425   else
   25426     $as_echo "/* $configure_input  */" \
   25427       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   25428       || as_fn_error $? "could not create -" "$LINENO" 5
   25429   fi
   25430  ;;
   25431 
   25432   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   25433 $as_echo "$as_me: executing $ac_file commands" >&6;}
   25434  ;;
   25435   esac
   25436 
   25437 
   25438   case $ac_file$ac_mode in
   25439     "libtool":C)
   25440 
   25441     # See if we are running on zsh, and set the options that allow our
   25442     # commands through without removal of \ escapes.
   25443     if test -n "${ZSH_VERSION+set}"; then
   25444       setopt NO_GLOB_SUBST
   25445     fi
   25446 
   25447     cfgfile=${ofile}T
   25448     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   25449     $RM "$cfgfile"
   25450 
   25451     cat <<_LT_EOF >> "$cfgfile"
   25452 #! $SHELL
   25453 # Generated automatically by $as_me ($PACKAGE) $VERSION
   25454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   25455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   25456 
   25457 # Provide generalized library-building support services.
   25458 # Written by Gordon Matzigkeit, 1996
   25459 
   25460 # Copyright (C) 2014 Free Software Foundation, Inc.
   25461 # This is free software; see the source for copying conditions.  There is NO
   25462 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   25463 
   25464 # GNU Libtool is free software; you can redistribute it and/or modify
   25465 # it under the terms of the GNU General Public License as published by
   25466 # the Free Software Foundation; either version 2 of of the License, or
   25467 # (at your option) any later version.
   25468 #
   25469 # As a special exception to the GNU General Public License, if you
   25470 # distribute this file as part of a program or library that is built
   25471 # using GNU Libtool, you may include this file under the  same
   25472 # distribution terms that you use for the rest of that program.
   25473 #
   25474 # GNU Libtool is distributed in the hope that it will be useful, but
   25475 # WITHOUT ANY WARRANTY; without even the implied warranty of
   25476 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   25477 # GNU General Public License for more details.
   25478 #
   25479 # You should have received a copy of the GNU General Public License
   25480 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
   25481 
   25482 
   25483 # The names of the tagged configurations supported by this script.
   25484 available_tags=''
   25485 
   25486 # Configured defaults for sys_lib_dlsearch_path munging.
   25487 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
   25488 
   25489 # ### BEGIN LIBTOOL CONFIG
   25490 
   25491 # Which release of libtool.m4 was used?
   25492 macro_version=$macro_version
   25493 macro_revision=$macro_revision
   25494 
   25495 # Whether or not to build shared libraries.
   25496 build_libtool_libs=$enable_shared
   25497 
   25498 # Whether or not to build static libraries.
   25499 build_old_libs=$enable_static
   25500 
   25501 # What type of objects to build.
   25502 pic_mode=$pic_mode
   25503 
   25504 # Whether or not to optimize for fast installation.
   25505 fast_install=$enable_fast_install
   25506 
   25507 # Shared archive member basename,for filename based shared library versioning on AIX.
   25508 shared_archive_member_spec=$shared_archive_member_spec
   25509 
   25510 # Shell to use when invoking shell scripts.
   25511 SHELL=$lt_SHELL
   25512 
   25513 # An echo program that protects backslashes.
   25514 ECHO=$lt_ECHO
   25515 
   25516 # The PATH separator for the build system.
   25517 PATH_SEPARATOR=$lt_PATH_SEPARATOR
   25518 
   25519 # The host system.
   25520 host_alias=$host_alias
   25521 host=$host
   25522 host_os=$host_os
   25523 
   25524 # The build system.
   25525 build_alias=$build_alias
   25526 build=$build
   25527 build_os=$build_os
   25528 
   25529 # A sed program that does not truncate output.
   25530 SED=$lt_SED
   25531 
   25532 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   25533 Xsed="\$SED -e 1s/^X//"
   25534 
   25535 # A grep program that handles long lines.
   25536 GREP=$lt_GREP
   25537 
   25538 # An ERE matcher.
   25539 EGREP=$lt_EGREP
   25540 
   25541 # A literal string matcher.
   25542 FGREP=$lt_FGREP
   25543 
   25544 # A BSD- or MS-compatible name lister.
   25545 NM=$lt_NM
   25546 
   25547 # Whether we need soft or hard links.
   25548 LN_S=$lt_LN_S
   25549 
   25550 # What is the maximum length of a command?
   25551 max_cmd_len=$max_cmd_len
   25552 
   25553 # Object file suffix (normally "o").
   25554 objext=$ac_objext
   25555 
   25556 # Executable file suffix (normally "").
   25557 exeext=$exeext
   25558 
   25559 # whether the shell understands "unset".
   25560 lt_unset=$lt_unset
   25561 
   25562 # turn spaces into newlines.
   25563 SP2NL=$lt_lt_SP2NL
   25564 
   25565 # turn newlines into spaces.
   25566 NL2SP=$lt_lt_NL2SP
   25567 
   25568 # convert \$build file names to \$host format.
   25569 to_host_file_cmd=$lt_cv_to_host_file_cmd
   25570 
   25571 # convert \$build files to toolchain format.
   25572 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
   25573 
   25574 # An object symbol dumper.
   25575 OBJDUMP=$lt_OBJDUMP
   25576 
   25577 # Method to check whether dependent libraries are shared objects.
   25578 deplibs_check_method=$lt_deplibs_check_method
   25579 
   25580 # Command to use when deplibs_check_method = "file_magic".
   25581 file_magic_cmd=$lt_file_magic_cmd
   25582 
   25583 # How to find potential files when deplibs_check_method = "file_magic".
   25584 file_magic_glob=$lt_file_magic_glob
   25585 
   25586 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
   25587 want_nocaseglob=$lt_want_nocaseglob
   25588 
   25589 # DLL creation program.
   25590 DLLTOOL=$lt_DLLTOOL
   25591 
   25592 # Command to associate shared and link libraries.
   25593 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
   25594 
   25595 # The archiver.
   25596 AR=$lt_AR
   25597 
   25598 # Flags to create an archive.
   25599 AR_FLAGS=$lt_AR_FLAGS
   25600 
   25601 # How to feed a file listing to the archiver.
   25602 archiver_list_spec=$lt_archiver_list_spec
   25603 
   25604 # A symbol stripping program.
   25605 STRIP=$lt_STRIP
   25606 
   25607 # Commands used to install an old-style archive.
   25608 RANLIB=$lt_RANLIB
   25609 old_postinstall_cmds=$lt_old_postinstall_cmds
   25610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   25611 
   25612 # Whether to use a lock for old archive extraction.
   25613 lock_old_archive_extraction=$lock_old_archive_extraction
   25614 
   25615 # A C compiler.
   25616 LTCC=$lt_CC
   25617 
   25618 # LTCC compiler flags.
   25619 LTCFLAGS=$lt_CFLAGS
   25620 
   25621 # Take the output of nm and produce a listing of raw symbols and C names.
   25622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   25623 
   25624 # Transform the output of nm in a proper C declaration.
   25625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   25626 
   25627 # Transform the output of nm into a list of symbols to manually relocate.
   25628 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
   25629 
   25630 # Transform the output of nm in a C name address pair.
   25631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   25632 
   25633 # Transform the output of nm in a C name address pair when lib prefix is needed.
   25634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
   25635 
   25636 # The name lister interface.
   25637 nm_interface=$lt_lt_cv_nm_interface
   25638 
   25639 # Specify filename containing input files for \$NM.
   25640 nm_file_list_spec=$lt_nm_file_list_spec
   25641 
   25642 # The root where to search for dependent libraries,and where our libraries should be installed.
   25643 lt_sysroot=$lt_sysroot
   25644 
   25645 # Command to truncate a binary pipe.
   25646 lt_truncate_bin=$lt_lt_cv_truncate_bin
   25647 
   25648 # The name of the directory that contains temporary libtool files.
   25649 objdir=$objdir
   25650 
   25651 # Used to examine libraries when file_magic_cmd begins with "file".
   25652 MAGIC_CMD=$MAGIC_CMD
   25653 
   25654 # Must we lock files when doing compilation?
   25655 need_locks=$lt_need_locks
   25656 
   25657 # Manifest tool.
   25658 MANIFEST_TOOL=$lt_MANIFEST_TOOL
   25659 
   25660 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
   25661 DSYMUTIL=$lt_DSYMUTIL
   25662 
   25663 # Tool to change global to local symbols on Mac OS X.
   25664 NMEDIT=$lt_NMEDIT
   25665 
   25666 # Tool to manipulate fat objects and archives on Mac OS X.
   25667 LIPO=$lt_LIPO
   25668 
   25669 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
   25670 OTOOL=$lt_OTOOL
   25671 
   25672 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
   25673 OTOOL64=$lt_OTOOL64
   25674 
   25675 # Old archive suffix (normally "a").
   25676 libext=$libext
   25677 
   25678 # Shared library suffix (normally ".so").
   25679 shrext_cmds=$lt_shrext_cmds
   25680 
   25681 # The commands to extract the exported symbol list from a shared archive.
   25682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   25683 
   25684 # Variables whose values should be saved in libtool wrapper scripts and
   25685 # restored at link time.
   25686 variables_saved_for_relink=$lt_variables_saved_for_relink
   25687 
   25688 # Do we need the "lib" prefix for modules?
   25689 need_lib_prefix=$need_lib_prefix
   25690 
   25691 # Do we need a version for libraries?
   25692 need_version=$need_version
   25693 
   25694 # Library versioning type.
   25695 version_type=$version_type
   25696 
   25697 # Shared library runtime path variable.
   25698 runpath_var=$runpath_var
   25699 
   25700 # Shared library path variable.
   25701 shlibpath_var=$shlibpath_var
   25702 
   25703 # Is shlibpath searched before the hard-coded library search path?
   25704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   25705 
   25706 # Format of library name prefix.
   25707 libname_spec=$lt_libname_spec
   25708 
   25709 # List of archive names.  First name is the real one, the rest are links.
   25710 # The last name is the one that the linker finds with -lNAME
   25711 library_names_spec=$lt_library_names_spec
   25712 
   25713 # The coded name of the library, if different from the real name.
   25714 soname_spec=$lt_soname_spec
   25715 
   25716 # Permission mode override for installation of shared libraries.
   25717 install_override_mode=$lt_install_override_mode
   25718 
   25719 # Command to use after installation of a shared archive.
   25720 postinstall_cmds=$lt_postinstall_cmds
   25721 
   25722 # Command to use after uninstallation of a shared archive.
   25723 postuninstall_cmds=$lt_postuninstall_cmds
   25724 
   25725 # Commands used to finish a libtool library installation in a directory.
   25726 finish_cmds=$lt_finish_cmds
   25727 
   25728 # As "finish_cmds", except a single script fragment to be evaled but
   25729 # not shown.
   25730 finish_eval=$lt_finish_eval
   25731 
   25732 # Whether we should hardcode library paths into libraries.
   25733 hardcode_into_libs=$hardcode_into_libs
   25734 
   25735 # Compile-time system search path for libraries.
   25736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   25737 
   25738 # Detected run-time system search path for libraries.
   25739 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
   25740 
   25741 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
   25742 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
   25743 
   25744 # Whether dlopen is supported.
   25745 dlopen_support=$enable_dlopen
   25746 
   25747 # Whether dlopen of programs is supported.
   25748 dlopen_self=$enable_dlopen_self
   25749 
   25750 # Whether dlopen of statically linked programs is supported.
   25751 dlopen_self_static=$enable_dlopen_self_static
   25752 
   25753 # Commands to strip libraries.
   25754 old_striplib=$lt_old_striplib
   25755 striplib=$lt_striplib
   25756 
   25757 
   25758 # The linker used to build libraries.
   25759 LD=$lt_LD
   25760 
   25761 # How to create reloadable object files.
   25762 reload_flag=$lt_reload_flag
   25763 reload_cmds=$lt_reload_cmds
   25764 
   25765 # Commands used to build an old-style archive.
   25766 old_archive_cmds=$lt_old_archive_cmds
   25767 
   25768 # A language specific compiler.
   25769 CC=$lt_compiler
   25770 
   25771 # Is the compiler the GNU compiler?
   25772 with_gcc=$GCC
   25773 
   25774 # Compiler flag to turn off builtin functions.
   25775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   25776 
   25777 # Additional compiler flags for building library objects.
   25778 pic_flag=$lt_lt_prog_compiler_pic
   25779 
   25780 # How to pass a linker flag through the compiler.
   25781 wl=$lt_lt_prog_compiler_wl
   25782 
   25783 # Compiler flag to prevent dynamic linking.
   25784 link_static_flag=$lt_lt_prog_compiler_static
   25785 
   25786 # Does compiler simultaneously support -c and -o options?
   25787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   25788 
   25789 # Whether or not to add -lc for building shared libraries.
   25790 build_libtool_need_lc=$archive_cmds_need_lc
   25791 
   25792 # Whether or not to disallow shared libs when runtime libs are static.
   25793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   25794 
   25795 # Compiler flag to allow reflexive dlopens.
   25796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   25797 
   25798 # Compiler flag to generate shared objects directly from archives.
   25799 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   25800 
   25801 # Whether the compiler copes with passing no objects directly.
   25802 compiler_needs_object=$lt_compiler_needs_object
   25803 
   25804 # Create an old-style archive from a shared archive.
   25805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   25806 
   25807 # Create a temporary old-style archive to link instead of a shared archive.
   25808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   25809 
   25810 # Commands used to build a shared archive.
   25811 archive_cmds=$lt_archive_cmds
   25812 archive_expsym_cmds=$lt_archive_expsym_cmds
   25813 
   25814 # Commands used to build a loadable module if different from building
   25815 # a shared archive.
   25816 module_cmds=$lt_module_cmds
   25817 module_expsym_cmds=$lt_module_expsym_cmds
   25818 
   25819 # Whether we are building with GNU ld or not.
   25820 with_gnu_ld=$lt_with_gnu_ld
   25821 
   25822 # Flag that allows shared libraries with undefined symbols to be built.
   25823 allow_undefined_flag=$lt_allow_undefined_flag
   25824 
   25825 # Flag that enforces no undefined symbols.
   25826 no_undefined_flag=$lt_no_undefined_flag
   25827 
   25828 # Flag to hardcode \$libdir into a binary during linking.
   25829 # This must work even if \$libdir does not exist
   25830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   25831 
   25832 # Whether we need a single "-rpath" flag with a separated argument.
   25833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   25834 
   25835 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25836 # DIR into the resulting binary.
   25837 hardcode_direct=$hardcode_direct
   25838 
   25839 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
   25840 # DIR into the resulting binary and the resulting library dependency is
   25841 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
   25842 # library is relocated.
   25843 hardcode_direct_absolute=$hardcode_direct_absolute
   25844 
   25845 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   25846 # into the resulting binary.
   25847 hardcode_minus_L=$hardcode_minus_L
   25848 
   25849 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   25850 # into the resulting binary.
   25851 hardcode_shlibpath_var=$hardcode_shlibpath_var
   25852 
   25853 # Set to "yes" if building a shared library automatically hardcodes DIR
   25854 # into the library and all subsequent libraries and executables linked
   25855 # against it.
   25856 hardcode_automatic=$hardcode_automatic
   25857 
   25858 # Set to yes if linker adds runtime paths of dependent libraries
   25859 # to runtime path list.
   25860 inherit_rpath=$inherit_rpath
   25861 
   25862 # Whether libtool must link a program against all its dependency libraries.
   25863 link_all_deplibs=$link_all_deplibs
   25864 
   25865 # Set to "yes" if exported symbols are required.
   25866 always_export_symbols=$always_export_symbols
   25867 
   25868 # The commands to list exported symbols.
   25869 export_symbols_cmds=$lt_export_symbols_cmds
   25870 
   25871 # Symbols that should not be listed in the preloaded symbols.
   25872 exclude_expsyms=$lt_exclude_expsyms
   25873 
   25874 # Symbols that must always be exported.
   25875 include_expsyms=$lt_include_expsyms
   25876 
   25877 # Commands necessary for linking programs (against libraries) with templates.
   25878 prelink_cmds=$lt_prelink_cmds
   25879 
   25880 # Commands necessary for finishing linking programs.
   25881 postlink_cmds=$lt_postlink_cmds
   25882 
   25883 # Specify filename containing input files.
   25884 file_list_spec=$lt_file_list_spec
   25885 
   25886 # How to hardcode a shared library path into an executable.
   25887 hardcode_action=$hardcode_action
   25888 
   25889 # ### END LIBTOOL CONFIG
   25890 
   25891 _LT_EOF
   25892 
   25893     cat <<'_LT_EOF' >> "$cfgfile"
   25894 
   25895 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
   25896 
   25897 # func_munge_path_list VARIABLE PATH
   25898 # -----------------------------------
   25899 # VARIABLE is name of variable containing _space_ separated list of
   25900 # directories to be munged by the contents of PATH, which is string
   25901 # having a format:
   25902 # "DIR[:DIR]:"
   25903 #       string "DIR[ DIR]" will be prepended to VARIABLE
   25904 # ":DIR[:DIR]"
   25905 #       string "DIR[ DIR]" will be appended to VARIABLE
   25906 # "DIRP[:DIRP]::[DIRA:]DIRA"
   25907 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
   25908 #       "DIRA[ DIRA]" will be appended to VARIABLE
   25909 # "DIR[:DIR]"
   25910 #       VARIABLE will be replaced by "DIR[ DIR]"
   25911 func_munge_path_list ()
   25912 {
   25913     case x$2 in
   25914     x)
   25915         ;;
   25916     *:)
   25917         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
   25918         ;;
   25919     x:*)
   25920         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
   25921         ;;
   25922     *::*)
   25923         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
   25924         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
   25925         ;;
   25926     *)
   25927         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
   25928         ;;
   25929     esac
   25930 }
   25931 
   25932 
   25933 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   25934 func_cc_basename ()
   25935 {
   25936     for cc_temp in $*""; do
   25937       case $cc_temp in
   25938         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   25939         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   25940         \-*) ;;
   25941         *) break;;
   25942       esac
   25943     done
   25944     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   25945 }
   25946 
   25947 
   25948 # ### END FUNCTIONS SHARED WITH CONFIGURE
   25949 
   25950 _LT_EOF
   25951 
   25952   case $host_os in
   25953   aix3*)
   25954     cat <<\_LT_EOF >> "$cfgfile"
   25955 # AIX sometimes has problems with the GCC collect2 program.  For some
   25956 # reason, if we set the COLLECT_NAMES environment variable, the problems
   25957 # vanish in a puff of smoke.
   25958 if test set != "${COLLECT_NAMES+set}"; then
   25959   COLLECT_NAMES=
   25960   export COLLECT_NAMES
   25961 fi
   25962 _LT_EOF
   25963     ;;
   25964   esac
   25965 
   25966 
   25967 ltmain=$ac_aux_dir/ltmain.sh
   25968 
   25969 
   25970   # We use sed instead of cat because bash on DJGPP gets confused if
   25971   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   25972   # text mode, it properly converts lines to CR/LF.  This bash problem
   25973   # is reportedly fixed, but why not run on old versions too?
   25974   sed '$q' "$ltmain" >> "$cfgfile" \
   25975      || (rm -f "$cfgfile"; exit 1)
   25976 
   25977    mv -f "$cfgfile" "$ofile" ||
   25978     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   25979   chmod +x "$ofile"
   25980 
   25981  ;;
   25982     "chmod":C) chmod a+x doc/doxygen/doxygen-input-filter ;;
   25983 
   25984   esac
   25985 done # for ac_tag
   25986 
   25987 
   25988 as_fn_exit 0
   25989 _ACEOF
   25990 ac_clean_files=$ac_clean_files_save
   25991 
   25992 test $ac_write_fail = 0 ||
   25993   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   25994 
   25995 
   25996 # configure is writing to config.log, and then calls config.status.
   25997 # config.status does its own redirection, appending to config.log.
   25998 # Unfortunately, on DOS this fails, as config.log is still kept open
   25999 # by configure, so config.status won't be able to write to it; its
   26000 # output is simply discarded.  So we exec the FD to /dev/null,
   26001 # effectively closing config.log, so it can be properly (re)opened and
   26002 # appended to by config.status.  When coming back to configure, we
   26003 # need to make the FD available again.
   26004 if test "$no_create" != yes; then
   26005   ac_cs_success=:
   26006   ac_config_status_args=
   26007   test "$silent" = yes &&
   26008     ac_config_status_args="$ac_config_status_args --quiet"
   26009   exec 5>/dev/null
   26010   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   26011   exec 5>>config.log
   26012   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   26013   # would make configure fail if this is the last instruction.
   26014   $ac_cs_success || as_fn_exit 1
   26015 fi
   26016 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   26017   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   26018 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   26019 fi
   26020 
   26021 
   26022 #
   26023 # Now that the Makefiles exist we can ensure that everything is rebuilt.
   26024 #
   26025 
   26026 # Check whether --with-make-clean was given.
   26027 if test "${with_make_clean+set}" = set; then :
   26028   withval=$with_make_clean; make_clean="$withval"
   26029 else
   26030   make_clean="yes"
   26031 fi
   26032 
   26033 case "$make_clean" in
   26034 yes)
   26035 	if test "yes" != "$no_create"
   26036 	then
   26037 		if test "yes" = "$silent"
   26038 		then
   26039 			make clean > /dev/null
   26040 		else
   26041 			make clean
   26042 		fi
   26043 	fi
   26044 	;;
   26045 esac
   26046 
   26047 # Check whether --enable-full-report was given.
   26048 if test "${enable_full_report+set}" = set; then :
   26049   enableval=$enable_full_report;
   26050 fi
   26051 
   26052 
   26053 report() {
   26054     echo "==============================================================================="
   26055     echo "Configuration summary:"
   26056     echo "-------------------------------------------------------------------------------"
   26057     echo "Optional features enabled:"
   26058     if test "yes" = "$enable_full_report" -o "standard" = "$with_locktype"; then
   26059 	echo "    Mutex lock type: $with_locktype"
   26060     fi
   26061     test "small" = "$with_tuning" && echo "    Small-system tuning (--with-tuning)"
   26062     test "no" = "$use_dnstap" || \
   26063 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26064     test -z "$MAXMINDDB_LIBS" || echo "    GeoIP2 access control (--enable-geoip)"
   26065     test "no" = "$use_gssapi" || echo "    GSS-API (--with-gssapi)"
   26066 
   26067     # these lines are only printed if run with --enable-full-report
   26068     if test "yes" = "$enable_full_report"; then
   26069 	test "no" = "$found_ipv6" || echo "    IPv6 support (--enable-ipv6)"
   26070 	test "X$PYTHON" = "X" || echo "    Python tools (--with-python)"
   26071 	test "X$LIBXML2_LIBS" = "X" || echo "    XML statistics (--with-libxml2)"
   26072 	test "X$JSON_C_LIBS" = "X" || echo "    JSON statistics (--with-json-c): $JSON_C_CFLAGS $JSON_C_LIBS"
   26073 	test "X$ZLIB_LIBS" = "X" || echo "    HTTP zlib compression (--with-zlib)"
   26074 	test "X$NZD_TOOLS" = "X" || echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26075 	test "no" = "$with_libidn2" || echo "    IDN support (--with-libidn2)"
   26076     fi
   26077 
   26078     test "yes" = "$enable_dnsrps" && \
   26079 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26080     test "yes" = "$enable_fixed" && \
   26081 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26082     test "yes" = "$enable_backtrace" && \
   26083 	echo "    Print backtrace on crash (--enable-backtrace)"
   26084     test "minimal" = "$want_symtable" && \
   26085 	echo "    Use symbol table for backtrace, named only (--enable-symtable)"
   26086     test "yes" = "$want_symtable" -o "all" = "$want_symtable" && \
   26087 	echo "    Use symbol table for backtrace, all binaries (--enable-symtable=all)"
   26088     test "no" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26089     test "yes" = "$want_querytrace" && \
   26090 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26091     test "no" = "$with_cmocka" || echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26092 
   26093     test "auto" = "$validation_default" && echo "    DNSSEC validation active by default (--enable-auto-validation)"
   26094 
   26095     test "$CRYPTO" = "pkcs11" && (
   26096 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26097 	echo "    PKCS#11 module (--with-pkcs11): $with_pkcs11"
   26098     )
   26099 
   26100     echo "    Dynamically loadable zone (DLZ) drivers:"
   26101     test "no" = "$use_dlz_bdb" || \
   26102 	echo "        Berkeley DB (--with-dlz-bdb)"
   26103     test "no" = "$use_dlz_ldap" || \
   26104 	echo "        LDAP (--with-dlz-ldap)"
   26105     test "no" = "$use_dlz_mysql" || \
   26106 	echo "        MySQL (--with-dlz-mysql)"
   26107     test "no" = "$use_dlz_odbc" || \
   26108 	echo "        ODBC (--with-dlz-odbc)"
   26109     test "no" = "$use_dlz_postgres" || \
   26110 	echo "        Postgres (--with-dlz-postgres)"
   26111     test "no" = "$use_dlz_filesystem" || \
   26112 	echo "        Filesystem (--with-dlz-filesystem)"
   26113     test "no" = "$use_dlz_stub" || \
   26114 	echo "        Stub (--with-dlz-stub)"
   26115     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"
   26116 
   26117     echo "-------------------------------------------------------------------------------"
   26118 
   26119     echo "Features disabled or unavailable on this platform:"
   26120     test "no" = "$found_ipv6" && echo "    IPv6 support (--enable-ipv6)"
   26121     test "small" = "$with_tuning" || echo "    Small-system tuning (--with-tuning)"
   26122 
   26123     test "no" = "$use_dnstap" && \
   26124 	    echo "    Allow 'dnstap' packet logging (--enable-dnstap)"
   26125     test -z "$MAXMINDDB_LIBS" && echo "    GeoIP2 access control (--enable-geoip)"
   26126     test "no" = "$use_gssapi" && echo "    GSS-API (--with-gssapi)"
   26127 
   26128     test "no" = "$enable_dnsrps" && \
   26129 	echo "    DNS Response Policy Service interface (--enable-dnsrps)"
   26130 
   26131     test "yes" = "$enable_fixed" || \
   26132 	echo "    Allow 'fixed' rrset-order (--enable-fixed-rrset)"
   26133 
   26134     test "yes" = "$validation_default" && echo "    DNSSEC validation requires configuration (--enablee-auto-validation)"
   26135 
   26136     test "$CRYPTO" = "pkcs11" || (
   26137 	echo "    Using PKCS#11 for Public-Key Cryptography (--with-native-pkcs11)"
   26138     )
   26139 
   26140     test "yes" = "$enable_backtrace" || \
   26141 	echo "    Print backtrace on crash (--enable-backtrace)"
   26142     test "yes" = "$want_querytrace" || \
   26143 	echo "    Very verbose query trace logging (--enable-querytrace)"
   26144 
   26145     test "yes" = "$use_libtool" || echo "    Use GNU libtool (--with-libtool)"
   26146     test "no" = "$with_cmocka" && echo "    CMocka Unit Testing Framework (--with-cmocka)"
   26147 
   26148     test "X$PYTHON" = "X" && echo "    Python tools (--with-python)"
   26149     test "X$LIBXML2_LIBS" = "X" && echo "    XML statistics (--with-libxml2)"
   26150     test "X$JSON_C_LIBS" = "X" && echo "    JSON statistics (--with-json-c)"
   26151     test "X$ZLIB_LIBS" = "X" && echo "    HTTP zlib compression (--with-zlib)"
   26152     test "X$NZD_TOOLS" = "X" && echo "    LMDB database to store configuration for 'addzone' zones (--with-lmdb)"
   26153     test "no" = "$with_libidn2" && echo "    IDN support (--with-libidn2)"
   26154 
   26155     echo "-------------------------------------------------------------------------------"
   26156     echo "Configured paths:"
   26157     echo "    prefix: $prefix"
   26158     echo "    sysconfdir: $sysconfdir"
   26159     echo "    localstatedir: $localstatedir"
   26160     echo "-------------------------------------------------------------------------------"
   26161     echo "Compiler: $CC"
   26162     $CC --version 2>&1 | sed 's/^/    /'
   26163 
   26164     if test "X$ac_unrecognized_opts" != "X"; then
   26165 	echo "Unrecognized options:"
   26166 	echo "    $ac_unrecognized_opts"
   26167     fi
   26168 
   26169     if test "yes" != "$enable_full_report"; then
   26170 	echo "-------------------------------------------------------------------------------"
   26171 	echo "For more detail, use --enable-full-report."
   26172     fi
   26173     echo "==============================================================================="
   26174 }
   26175 
   26176 if test "yes" != "$silent"; then
   26177 	report
   26178 fi
   26179 
   26180 # Tell Emacs to edit this file in shell mode.
   26181 # Local Variables:
   26182 # mode: sh
   26183 # End:
   26184